diff --git a/p__Classrooms__Lists__Exercise__Add__index.2d7f9bbb.async.js b/p__Classrooms__Lists__Exercise__Add__index.d888c925.async.js similarity index 78% rename from p__Classrooms__Lists__Exercise__Add__index.2d7f9bbb.async.js rename to p__Classrooms__Lists__Exercise__Add__index.d888c925.async.js index 5d8cfc6c2b..c9c0f9fee1 100644 --- a/p__Classrooms__Lists__Exercise__Add__index.2d7f9bbb.async.js +++ b/p__Classrooms__Lists__Exercise__Add__index.d888c925.async.js @@ -1,6 +1,6 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return tt}});var E=ne(54476),ve=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Je=xe,We=ne(7657),Ae=function(Re,Qe){return ve.createElement(We.Z,(0,E.Z)({},Re,{ref:Qe,icon:Je}))},Ue=ve.forwardRef(Ae),tt=Ue},12893:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return tt}});var E=ne(54476),ve=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Je=xe,We=ne(7657),Ae=function(Re,Qe){return ve.createElement(We.Z,(0,E.Z)({},Re,{ref:Qe,icon:Je}))},Ue=ve.forwardRef(Ae),tt=Ue},32134:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return tt}});var E=ne(54476),ve=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Je=xe,We=ne(7657),Ae=function(Re,Qe){return ve.createElement(We.Z,(0,E.Z)({},Re,{ref:Qe,icon:Je}))},Ue=ve.forwardRef(Ae),tt=Ue},93135:function(){"use strict"},87492:function(){"use strict"},71043:function(_t,Pt){"use strict";Pt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},51291:function(_t,Pt){"use strict";Pt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},24565:function(_t,Pt){"use strict";Pt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1",zhishidian:"zhishidian___fS6sq",tags_list:"tags_list___ia3sA",tag_item:"tag_item___QZC19",tag_icon:"tag_icon___ATbW9"}},16651:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Se,Re,Qe)=>Re in Se?ve(Se,Re,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Se[Re]=Qe,Ue=(Se,Re)=>{for(var Qe in Re||(Re={}))Je.call(Re,Qe)&&Ae(Se,Qe,Re[Qe]);if(xe)for(var Qe of xe(Re))We.call(Re,Qe)&&Ae(Se,Qe,Re[Qe]);return Se};const tt=Se=>React.createElement("svg",Ue({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Se),React.createElement("title",null,"\u6D4B\u8BD5AI\u8BC4\u5206"),React.createElement("path",{d:"M5.19 1.488a2.133 2.133 0 0 1 3.62 0l.96 1.54a.25.25 0 0 0 .152.11l1.76.437a2.133 2.133 0 0 1 1.12 3.443l-1.234 1.465.136 1.912a2.133 2.133 0 0 1-1.823 2.263l-.152.016a2.133 2.133 0 0 1-.954-.15l-1.681-.683a.25.25 0 0 0-.188 0l-1.681.682a2.133 2.133 0 0 1-2.93-2.128l.13-1.81a.25.25 0 0 0-.058-.178L1.198 7.018a2.133 2.133 0 0 1 1.12-3.443l1.76-.436a.25.25 0 0 0 .152-.11Zm2.053.543a.633.633 0 0 0-.78.25l-.96 1.54a1.75 1.75 0 0 1-1.064.774l-1.761.436a.633.633 0 0 0-.332 1.022L3.514 7.44c.294.348.44.797.407 1.251l-.13 1.81a.633.633 0 0 0 .87.631l1.681-.682a1.75 1.75 0 0 1 1.316 0l1.681.682a.633.633 0 0 0 .87-.631l-.18-2.518 1.625-1.931a.633.633 0 0 0-.332-1.022l-1.761-.436a1.75 1.75 0 0 1-1.065-.774l-.959-1.54a.633.633 0 0 0-.203-.203Zm1.544 5.23a.75.75 0 0 1 .102 1.493l-.102.007H5.362a.75.75 0 0 1-.102-1.494l.102-.006h3.425Z",fill:"#3061D0",fillRule:"nonzero"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuMTkgMS40ODhhMi4xMz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0uMTAyLTEuNDk0bC4xMDItLjAwNmgzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},4387:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Se,Re,Qe)=>Re in Se?ve(Se,Re,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Se[Re]=Qe,Ue=(Se,Re)=>{for(var Qe in Re||(Re={}))Je.call(Re,Qe)&&Ae(Se,Qe,Re[Qe]);if(xe)for(var Qe of xe(Re))We.call(Re,Qe)&&Ae(Se,Qe,Re[Qe]);return Se};const tt=Se=>React.createElement("svg",Ue({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Se),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},23783:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Se,Re,Qe)=>Re in Se?ve(Se,Re,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Se[Re]=Qe,Ue=(Se,Re)=>{for(var Qe in Re||(Re={}))Je.call(Re,Qe)&&Ae(Se,Qe,Re[Qe]);if(xe)for(var Qe of xe(Re))We.call(Re,Qe)&&Ae(Se,Qe,Re[Qe]);return Se};const tt=Se=>React.createElement("svg",Ue({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Se),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Pt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},90451:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var _t={},Pt="5.0",ne={},E=null,ve=!1,xe=!1,Je=null,We=!1,Ae=null,Ue=null,tt=0;tt4?parseFloat(je):5};_t.setHTML5Codebase=function(je,Ve){Ue=je,lt(je,Ve)},_t.setJavaCodebase=_t.setJavaCodebaseVersion=_t.isCompiledInstalled=_t.setPreCompiledScriptPath=_t.setPreCompiledResourcePath=function(){},_t.setHTML5CodebaseVersion=function(je,Ve){var pt=parseFloat(je);if(pt!==NaN&&pt<5){console.log("The GeoGebra HTML5 codebase version "+pt+" is deprecated. Using version latest instead.");return}Ae=je,ge(je,Ve)},_t.getHTML5CodebaseVersion=function(){return Ge},_t.getParameters=function(){return ne},_t.setFontsCSSURL=function(je){it=je},_t.setGiacJSURL=function(je){},_t.setJNLPFile=function(je){Re=je},_t.setJNLPBaseDir=function(je){},_t.inject=function(){function je(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ve="auto",pt=ne.id,Kt,kt=!1,dn=0;dn=5)return!0;var je=_t.getAppletObject();return je&&typeof je.recalculateEnvironments=="function"?(je.recalculateEnvironments(),!0):!1},_t.startAnimation=function(){var je=_t.getAppletObject();return je&&typeof je.startAnimation=="function"?(je.startAnimation(),!0):!1},_t.stopAnimation=function(){var je=_t.getAppletObject();return je&&typeof je.stopAnimation=="function"?(je.stopAnimation(),!0):!1},_t.getAppletObject=function(){var je=ne.id!==void 0?ne.id:"ggbApplet";return window[je]},_t.resize=function(){};var ut=function(je,Ve,pt){var Kt=document.createElement("param");Kt.setAttribute("name",Ve),Kt.setAttribute("value",pt),je.appendChild(Kt)},Le=function(je){return je&&je!=="false"},ze=function(je,Ve,pt){Ke(Ge)<=4.2&&(pt=!0);var Kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ge||ggbHTML5LoadedCodebaseIsWebSimple&&!Be)&&(Kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var dn=Ve.width,dt=Ve.height;if(Ve.disableAutoScale=Ve.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ve.disableAutoScale,Ve.width!==void 0)if(Ke(Ge)<=4.4)Le(Ve.showToolBar)&&(Ve.height-=7),Le(Ve.showAlgebraInput)&&(Ve.height-=37),Ve.width<605&&Le(Ve.showToolBar)&&(Ve.width=605,dn=605);else{var Nt=100;(Le(Ve.showToolBar)||Le(Ve.showMenuBar))&&(Ve.hasOwnProperty("customToolBar")&&(Ve.customToolbar=Ve.customToolBar),Nt=Le(Ve.showMenuBar)?245:155),dn=5?(Ve.appletOnLoad=function(Nn){var Pr=je.querySelector(".ggb_preview");Pr&&Pr.parentNode.removeChild(Pr),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(se),window.GGBT_wsf_view&&$(window).trigger("resize"),he(Nn)},ae||se.appendChild(ce)):kt.appendChild(ce),se.appendChild(kt),ae||je.appendChild(se),setTimeout(function(){_t.resize()},1)}else{var me=document.createElement("div");me.className="applet_scaler",me.style.position="relative",me.style.display="block",me.appendChild(kt),je.appendChild(me),Ve.appletOnLoad=function(Nn){_t.resize(),he(Nn)}}function le(Nn,Pr){Pr&&typeof Pr.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Nn,Pr.appletOnLoad):renderGGBElement(Nn),wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pr)}function ot(Nn,Pr){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Nn,params:Pr}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vr){le(Vr.article,Vr.params)}),html5AppletsToProcess=null)},Ke(Ge)<5&&(Nn.className+=" geogebraweb")):le(Nn,Pr)}if(Kt){scriptLoadStarted=!0;for(var Ht=0;Ht0?(mn.remove(),se.attr("id","fullscreencontent").show(),jQuery(he).append(se),window.dispatchEvent(new Event("resize"))):ze(mn,Ve,!1),window.GGBT_wsf_view.launchFullScreen(he)}else ht=Kt,ze(je,Ve,!1);if(!window.GGBT_wsf_view)for(dt=0;dtje/4*3&&(mn=je/4*3),he=mn/5.8,Nt.setAttribute("src",Pe),Nt.setAttribute("width",mn),Nt.setAttribute("height",he);var se=(je-mn)/2,ae=(Ve-he)/2;Nt.style.left=se+"px",Nt.style.top=ae+"px",kt.appendChild(Nt)}}return kt.appendChild(dt),kt},Ft=function(je){return je=je.toLowerCase(),je==="html5"||je==="screenshot"?je:"html5"},De=["web","webSimple","web3d","tablet","tablet3d","phone"],ge=function(je,Ve){if(Ge=je,Ve){lt(Ge,!0);return}var pt=!ve;if(pt){var Kt=Ke(Ge);!isNaN(Kt)&&Kt<4.4&&(pt=!1)}var kt,dn;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var dt=Ge.indexOf("//");dt>0?dn=Ge:dt===0?dn=kt+Ge:dn="https://www.geogebra.org/apps/5.2.814.0/";for(var Nt in De)if(Ge.slice(De[Nt].length*-1)===De[Nt]||Ge.slice((De[Nt].length+1)*-1)===De[Nt]+"/"){lt(dn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&pt&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Le(ne.showToolBar)&&!Le(ne.showMenuBar)&&!Le(ne.showAlgebraInput)&&!Le(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?dn+="webSimple/":dn+="web3d/",lt(dn,!1)},lt=function(je,Ve){if(je.requirejs){Qe=je;return}je.slice(-1)!=="/"&&(je+="/"),Qe=je,Ve===null&&(Ve=je.indexOf("http")===-1),qe=Ve,Oe="web.nocache.js",Be=!1;var pt=Qe.split("/");pt.length>1&&(!Ve&&pt[pt.length-2]==="webSimple"?(Oe="webSimple.nocache.js",Be=!0):De.indexOf(pt[pt.length-2])>=0&&(Oe=pt[pt.length-2]+".nocache.js")),pt=je.split("/"),Ge=pt[pt.length-3],Ge.substr(0,4)==="test"?Ge=Ge.substr(4,1)+"."+Ge.substr(5,1):(Ge.substr(0,3)==="war"||Ge.substr(0,4)==="beta")&&(Ge="5.0");var Kt=parseFloat(Ge);Kt!==NaN&&Kt<5&&je.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kt+" is deprecated. Using version latest instead."),ge("5.0",Ve))},wt=function(je,Ve){window.console&&window.console.log&&(!Ve||typeof Ve.showLogging=="undefined"||Ve.showLogging&&Ve.showLogging!=="false")&&console.log(je)};ne.material_id!==void 0?At(yt):yt();function yt(){var je=Pt;Ae!==null?je=Ae:parseFloat(je)<5&&(je="5.0"),ge(je,!1),Ue!==null&<(Ue,qe),We=!0}return _t},GGBAppletUtils=function(){"use strict";function _t(){return window.GGBT_wsf_edit!==void 0}function Pt(We,Ae){Ae!=1?(We.style.transformOrigin="0% 0% 0px",We.style.webkitTransformOrigin="0% 0% 0px",We.style.transform="scale("+Ae+","+Ae+")",We.style.webkitTransform="scale("+Ae+","+Ae+")",We.style.maxWidth="initial",We.querySelector(".ggb_preview")!==null&&(We.querySelector(".ggb_preview").style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[0]!==void 0&&(We.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[1]!==void 0&&(We.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(We.style.transform="none",We.style.webkitTransform="none")}function ne(We,Ae,Ue,tt,Se,Re){var Qe=null;if(Re!=null&&Re!="")for(var qe=We.parentNode;qe!=null;)if((" "+qe.className+" ").indexOf(" "+Re+" ")>-1){Qe=qe;break}else qe=qe.parentNode;var ht=0,Ge=0,Oe=0,Be=0,be=0,Pe=0,Ye=0;if(Qe)ht=Qe.offsetWidth,Ge=Math.max(tt?Qe.offsetWidth:0,Qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ht=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=ht):(ht=window.innerWidth,Ge=window.innerHeight,Oe=window.innerWidth),We){var it=We.getBoundingClientRect();it.left>0&&it.left<=ht&&(Se===void 0||!Se)&&(document.dir==="rtl"?(be=ht-it.width-it.left,Pe=Oe<=480?10:30):(Pe=it.left,be=Oe<=480?10:30),Be=Pe+be)}if(We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=We.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be=40,Ye=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be=0,Ye=40)}}return We&&((Ue===void 0||!Ue)&&Ae>0&&Ae+Be1&&(Re=!0)),Ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Re=!0),!(We.hasOwnProperty("disableAutoScale")&&We.disableAutoScale))Se=E(We,Ae,Re,Ue,We.scaleContainerClass);else return tt;return Re&&(!We.hasOwnProperty("scale")||tt===1)?Se:Math.min(tt,Se)}function xe(We){var Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),tt=We.getBoundingClientRect(),Se=(Ae-tt.width)/2,Re=(Ue-tt.height)/2;Re<0&&(Re=0),We.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Se<40?We.style.left="40px":We.style.left=Se+"px",We.style.top=Re+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Re<40?We.style.top="40px":We.style.top=Re+"px",We.style.left=Se+"px")}function Je(We,Ae){var Ue=We.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(We)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var tt=ve(Ae,We);_t()&&Ue.setAttribute("data-param-scale",tt);for(var Se=null,Re=0;Re=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_t){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_t){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_t){var Pt=c[_t];return Pt==null?null:Pt},r=d,webModule.__errFn=e}function B(){function _t(We){var Ae=We.lastIndexOf(rb);Ae==-1&&(Ae=We.length);var Ue=We.indexOf(sb);Ue==-1&&(Ue=We.length);var tt=We.lastIndexOf(tb,Math.min(Ue,Ae));return tt>=O?We.substring(O,tt+P):W}function Pt(We){if(!We.match(/^\w+:\/\//)){var Ae=o.createElement(ub);Ae.src=We+vb,We=_t(Ae.src)}return We}function ne(){var We=__gwt_getMetaProperty(wb);return We!=null?We:W}function E(){for(var We=o.getElementsByTagName(_),Ae=O;AeO?We[We.length-P].href:W}function xe(){var We=o.location;return We.href==We.protocol+zb+We.host+We.pathname+We.search+We.hash}var Je=ne();return Je==W&&(Je=E()),Je==W&&(Je=ve()),Je==W&&xe()&&(Je=_t(o.location.href)),Je=Pt(Je),Je}function C(_t){return _t.match(/^\//)||_t.match(/^[a-zA-Z]+:\/\//)?_t:webModule.__moduleBase+_t}function D(){var _t=[],Pt=O,ne=[],E=[];function ve(We){var Ae=E[We](),Ue=ne[We];if(Ae in Ue)return Ae;var tt=[];for(var Se in Ue)tt[Ue[Se]]=Se;throw r&&r(We,tt,Ae),null}if(__gwt_isKnownPropertyValue=function(We,Ae){return Ae in ne[We]},webModule.__getPropMap=function(){var We={};for(var Ae in ne)ne.hasOwnProperty(Ae)&&(We[Ae]=ve(Ae));return We},webModule.__computePropValue=ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var Je=xe.indexOf(Db);Je!=-1&&(Pt=parseInt(xe.substring(Je+P),$),xe=xe.substring(O,Je))}catch(We){}return webModule.__softPermutationId=Pt,C(xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},29385:function(_t,Pt,ne){"use strict";ne.d(Pt,{Ax:function(){return Je},Ds:function(){return We},KI:function(){return Ue},SI:function(){return xe},f1:function(){return ve}});var E=ne(51802);function ve(tt){let Se=!0;if(tt.length>0){for(let Re=0;ReBe in Oe?xe(Oe,Be,{enumerable:!0,configurable:!0,writable:!0,value:be}):Oe[Be]=be,Re=(Oe,Be)=>{for(var be in Be||(Be={}))Ue.call(Be,be)&&Se(Oe,be,Be[be]);if(Ae)for(var be of Ae(Be))tt.call(Be,be)&&Se(Oe,be,Be[be]);return Oe},Qe=(Oe,Be)=>Je(Oe,We(Be)),qe=(Oe,Be)=>{var be={};for(var Pe in Oe)Ue.call(Oe,Pe)&&Be.indexOf(Pe)<0&&(be[Pe]=Oe[Pe]);if(Oe!=null&&Ae)for(var Pe of Ae(Oe))Be.indexOf(Pe)<0&&tt.call(Oe,Pe)&&(be[Pe]=Oe[Pe]);return be},ht=(Oe,Be,be)=>new Promise((Pe,Ye)=>{var it=nt=>{try{Ke(be.next(nt))}catch(Et){Ye(Et)}},pe=nt=>{try{Ke(be.throw(nt))}catch(Et){Ye(Et)}},Ke=nt=>nt.done?Pe(nt.value):Promise.resolve(nt.value).then(it,pe);Ke((be=be.apply(Oe,Be)).next())});const Ge=Oe=>{var Be=Oe,{children:be}=Be,Pe=qe(Be,["children"]);const[Ye,it]=(0,ve.useState)(!1);return ve.createElement(E.ZP,Qe(Re({},Pe),{loading:Ye,onClick:pe=>ht(void 0,null,function*(){try{it(!0),yield Pe.onClick(pe),it(!1)}catch(Ke){console.error(Ke),it(!1)}})}),be)}},9150:function(_t,Pt,ne){"use strict";var E=ne(86204),ve=ne.n(E),xe=Object.defineProperty,Je=(tt,Se,Re)=>Se in tt?xe(tt,Se,{enumerable:!0,configurable:!0,writable:!0,value:Re}):tt[Se]=Re,We=(tt,Se,Re)=>Je(tt,typeof Se!="symbol"?Se+"":Se,Re),Ae=(tt,Se,Re)=>new Promise((Qe,qe)=>{var ht=Be=>{try{Oe(Re.next(Be))}catch(be){qe(be)}},Ge=Be=>{try{Oe(Re.throw(Be))}catch(be){qe(be)}},Oe=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(ht,Ge);Oe((Re=Re.apply(tt,Se)).next())});class Ue extends E.EventEmitter{constructor(Se,Re){super(),We(this,"url"),We(this,"body"),We(this,"fullContent",""),We(this,"controller",null),We(this,"buffer",""),this.url=Se,this.body=Re}startStream(){return Ae(this,null,function*(){this.controller=new AbortController;const{signal:Se}=this.controller;try{const Re=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Se});if(!Re.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Re.status}`);const Qe=Re.headers.get("content-type");if(!Qe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Qe.includes("application/json")){const Ge=yield Re.json();this.emit("error",Ge);return}if(!Qe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const qe=Re.body.getReader(),ht=new TextDecoder("utf-8");for(;;){const{done:Ge,value:Oe}=yield qe.read();if(Ge)break;const Be=ht.decode(Oe,{stream:!0});this.buffer+=Be;const be=this.buffer.split(` -`);this.buffer=be.pop()||"";for(const Pe of be)if(Pe.startsWith("data:")){const Ye=Pe.slice(5).trim();if(Ye==="[DONE]")break;try{const it=JSON.parse(Ye);it.data&&this.handleData(it.data)}catch(it){this.buffer=Pe+` -`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",it)}}}this.emit("done",this.fullContent)}catch(Re){Re.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Re.message)}})}handleData(Se){Se.content&&(this.fullContent+=Se.content,this.emit("data",{chunk:Se,full:this.fullContent}))}cancelRequest(){var Se;(Se=this.controller)==null||Se.abort()}}Pt.Z=Ue},42065:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ht}});var E=ne(59301),ve=ne(36207),xe=ne(77019),Je=ne(5269),We={smartWrp:"smartWrp___NjRcB"},Ae=ne(86746),Ue=ne(86475),tt=ne(32981),Se=ne(59301),Re=(Ge,Oe,Be)=>new Promise((be,Pe)=>{var Ye=Ke=>{try{pe(Be.next(Ke))}catch(nt){Pe(nt)}},it=Ke=>{try{pe(Be.throw(Ke))}catch(nt){Pe(nt)}},pe=Ke=>Ke.done?be(Ke.value):Promise.resolve(Ke.value).then(Ye,it);pe((Be=Be.apply(Ge,Oe)).next())});const Qe=` +(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return tt}});var E=ne(54476),ve=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Je=xe,We=ne(7657),Ae=function(He,Qe){return ve.createElement(We.Z,(0,E.Z)({},He,{ref:Qe,icon:Je}))},Ue=ve.forwardRef(Ae),tt=Ue},12893:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return tt}});var E=ne(54476),ve=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Je=xe,We=ne(7657),Ae=function(He,Qe){return ve.createElement(We.Z,(0,E.Z)({},He,{ref:Qe,icon:Je}))},Ue=ve.forwardRef(Ae),tt=Ue},32134:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return tt}});var E=ne(54476),ve=ne(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Je=xe,We=ne(7657),Ae=function(He,Qe){return ve.createElement(We.Z,(0,E.Z)({},He,{ref:Qe,icon:Je}))},Ue=ve.forwardRef(Ae),tt=Ue},93135:function(){"use strict"},87492:function(){"use strict"},71043:function(Bt,_t){"use strict";_t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},51291:function(Bt,_t){"use strict";_t.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},24565:function(Bt,_t){"use strict";_t.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1",zhishidian:"zhishidian___fS6sq",tags_list:"tags_list___ia3sA",tag_item:"tag_item___QZC19",tag_icon:"tag_icon___ATbW9"}},16651:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Se,He,Qe)=>He in Se?ve(Se,He,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Se[He]=Qe,Ue=(Se,He)=>{for(var Qe in He||(He={}))Je.call(He,Qe)&&Ae(Se,Qe,He[Qe]);if(xe)for(var Qe of xe(He))We.call(He,Qe)&&Ae(Se,Qe,He[Qe]);return Se};const tt=Se=>React.createElement("svg",Ue({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Se),React.createElement("title",null,"\u6D4B\u8BD5AI\u8BC4\u5206"),React.createElement("path",{d:"M5.19 1.488a2.133 2.133 0 0 1 3.62 0l.96 1.54a.25.25 0 0 0 .152.11l1.76.437a2.133 2.133 0 0 1 1.12 3.443l-1.234 1.465.136 1.912a2.133 2.133 0 0 1-1.823 2.263l-.152.016a2.133 2.133 0 0 1-.954-.15l-1.681-.683a.25.25 0 0 0-.188 0l-1.681.682a2.133 2.133 0 0 1-2.93-2.128l.13-1.81a.25.25 0 0 0-.058-.178L1.198 7.018a2.133 2.133 0 0 1 1.12-3.443l1.76-.436a.25.25 0 0 0 .152-.11Zm2.053.543a.633.633 0 0 0-.78.25l-.96 1.54a1.75 1.75 0 0 1-1.064.774l-1.761.436a.633.633 0 0 0-.332 1.022L3.514 7.44c.294.348.44.797.407 1.251l-.13 1.81a.633.633 0 0 0 .87.631l1.681-.682a1.75 1.75 0 0 1 1.316 0l1.681.682a.633.633 0 0 0 .87-.631l-.18-2.518 1.625-1.931a.633.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LjMxNiAwbDEuNjgxLjY4MmEuNjMzLjYzMyAwIDAgMCAuODctLjYzMWwtLjE4LTIuNTE4IDEuNjI1LTEuOTMxYS42MzMuNjMzIDAgMCAwLS4zMzItMS4wMjJsLTEuNzYxLS40MzZhMS43NSAxLjc1IDAgMCAxLTEuMDY1LS43NzRsLS45NTktMS41NGEuNjMzLjYzMyAwIDAgMC0uMjAzLS4yMDNabTEuNTQ0IDUuMjNhLjc1Ljc1IDAgMCAxIC4xMDIgMS40OTNsLS4xMDIuMDA3SDUuMzYyYS43NS43NSAwIDAgMS0uMTAyLTEuNDk0bC4xMDItLjAwNmgzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},4387:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Se,He,Qe)=>He in Se?ve(Se,He,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Se[He]=Qe,Ue=(Se,He)=>{for(var Qe in He||(He={}))Je.call(He,Qe)&&Ae(Se,Qe,He[Qe]);if(xe)for(var Qe of xe(He))We.call(He,Qe)&&Ae(Se,Qe,He[Qe]);return Se};const tt=Se=>React.createElement("svg",Ue({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Se),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));_t.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},23783:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Se,He,Qe)=>He in Se?ve(Se,He,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Se[He]=Qe,Ue=(Se,He)=>{for(var Qe in He||(He={}))Je.call(He,Qe)&&Ae(Se,Qe,He[Qe]);if(xe)for(var Qe of xe(He))We.call(He,Qe)&&Ae(Se,Qe,He[Qe]);return Se};const tt=Se=>React.createElement("svg",Ue({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Se),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));_t.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},90451:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Bt={},_t="5.0",ne={},E=null,ve=!1,xe=!1,Je=null,We=!1,Ae=null,Ue=null,tt=0;tt4?parseFloat(Ze):5};Bt.setHTML5Codebase=function(Ze,Ve){Ue=Ze,lt(Ze,Ve)},Bt.setJavaCodebase=Bt.setJavaCodebaseVersion=Bt.isCompiledInstalled=Bt.setPreCompiledScriptPath=Bt.setPreCompiledResourcePath=function(){},Bt.setHTML5CodebaseVersion=function(Ze,Ve){var ft=parseFloat(Ze);if(ft!==NaN&&ft<5){console.log("The GeoGebra HTML5 codebase version "+ft+" is deprecated. Using version latest instead.");return}Ae=Ze,ge(Ze,Ve)},Bt.getHTML5CodebaseVersion=function(){return Ge},Bt.getParameters=function(){return ne},Bt.setFontsCSSURL=function(Ze){it=Ze},Bt.setGiacJSURL=function(Ze){},Bt.setJNLPFile=function(Ze){He=Ze},Bt.setJNLPBaseDir=function(Ze){},Bt.inject=function(){function Ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ve="auto",ft=ne.id,Kt,kt=!1,dn=0;dn=5)return!0;var Ze=Bt.getAppletObject();return Ze&&typeof Ze.recalculateEnvironments=="function"?(Ze.recalculateEnvironments(),!0):!1},Bt.startAnimation=function(){var Ze=Bt.getAppletObject();return Ze&&typeof Ze.startAnimation=="function"?(Ze.startAnimation(),!0):!1},Bt.stopAnimation=function(){var Ze=Bt.getAppletObject();return Ze&&typeof Ze.stopAnimation=="function"?(Ze.stopAnimation(),!0):!1},Bt.getAppletObject=function(){var Ze=ne.id!==void 0?ne.id:"ggbApplet";return window[Ze]},Bt.resize=function(){};var ht=function(Ze,Ve,ft){var Kt=document.createElement("param");Kt.setAttribute("name",Ve),Kt.setAttribute("value",ft),Ze.appendChild(Kt)},Pe=function(Ze){return Ze&&Ze!=="false"},ze=function(Ze,Ve,ft){Ke(Ge)<=4.2&&(ft=!0);var Kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ge||ggbHTML5LoadedCodebaseIsWebSimple&&!Be)&&(Kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var dn=Ve.width,ct=Ve.height;if(Ve.disableAutoScale=Ve.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ve.disableAutoScale,Ve.width!==void 0)if(Ke(Ge)<=4.4)Pe(Ve.showToolBar)&&(Ve.height-=7),Pe(Ve.showAlgebraInput)&&(Ve.height-=37),Ve.width<605&&Pe(Ve.showToolBar)&&(Ve.width=605,dn=605);else{var Nt=100;(Pe(Ve.showToolBar)||Pe(Ve.showMenuBar))&&(Ve.hasOwnProperty("customToolBar")&&(Ve.customToolbar=Ve.customToolBar),Nt=Pe(Ve.showMenuBar)?245:155),dn=5?(Ve.appletOnLoad=function(Nn){var Pr=Ze.querySelector(".ggb_preview");Pr&&Pr.parentNode.removeChild(Pr),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(se),window.GGBT_wsf_view&&$(window).trigger("resize"),he(Nn)},ae||se.appendChild(ce)):kt.appendChild(ce),se.appendChild(kt),ae||Ze.appendChild(se),setTimeout(function(){Bt.resize()},1)}else{var me=document.createElement("div");me.className="applet_scaler",me.style.position="relative",me.style.display="block",me.appendChild(kt),Ze.appendChild(me),Ve.appletOnLoad=function(Nn){Bt.resize(),he(Nn)}}function le(Nn,Pr){Pr&&typeof Pr.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Nn,Pr.appletOnLoad):renderGGBElement(Nn),Et("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pr)}function ot(Nn,Pr){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Nn,params:Pr}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vr){le(Vr.article,Vr.params)}),html5AppletsToProcess=null)},Ke(Ge)<5&&(Nn.className+=" geogebraweb")):le(Nn,Pr)}if(Kt){scriptLoadStarted=!0;for(var Ht=0;Ht0?(mn.remove(),se.attr("id","fullscreencontent").show(),jQuery(he).append(se),window.dispatchEvent(new Event("resize"))):ze(mn,Ve,!1),window.GGBT_wsf_view.launchFullScreen(he)}else pt=Kt,ze(Ze,Ve,!1);if(!window.GGBT_wsf_view)for(ct=0;ctZe/4*3&&(mn=Ze/4*3),he=mn/5.8,Nt.setAttribute("src",Ne),Nt.setAttribute("width",mn),Nt.setAttribute("height",he);var se=(Ze-mn)/2,ae=(Ve-he)/2;Nt.style.left=se+"px",Nt.style.top=ae+"px",kt.appendChild(Nt)}}return kt.appendChild(ct),kt},Ft=function(Ze){return Ze=Ze.toLowerCase(),Ze==="html5"||Ze==="screenshot"?Ze:"html5"},De=["web","webSimple","web3d","tablet","tablet3d","phone"],ge=function(Ze,Ve){if(Ge=Ze,Ve){lt(Ge,!0);return}var ft=!ve;if(ft){var Kt=Ke(Ge);!isNaN(Kt)&&Kt<4.4&&(ft=!1)}var kt,dn;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var ct=Ge.indexOf("//");ct>0?dn=Ge:ct===0?dn=kt+Ge:dn="https://www.geogebra.org/apps/5.2.814.0/";for(var Nt in De)if(Ge.slice(De[Nt].length*-1)===De[Nt]||Ge.slice((De[Nt].length+1)*-1)===De[Nt]+"/"){lt(dn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ft&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Pe(ne.showToolBar)&&!Pe(ne.showMenuBar)&&!Pe(ne.showAlgebraInput)&&!Pe(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?dn+="webSimple/":dn+="web3d/",lt(dn,!1)},lt=function(Ze,Ve){if(Ze.requirejs){Qe=Ze;return}Ze.slice(-1)!=="/"&&(Ze+="/"),Qe=Ze,Ve===null&&(Ve=Ze.indexOf("http")===-1),qe=Ve,Oe="web.nocache.js",Be=!1;var ft=Qe.split("/");ft.length>1&&(!Ve&&ft[ft.length-2]==="webSimple"?(Oe="webSimple.nocache.js",Be=!0):De.indexOf(ft[ft.length-2])>=0&&(Oe=ft[ft.length-2]+".nocache.js")),ft=Ze.split("/"),Ge=ft[ft.length-3],Ge.substr(0,4)==="test"?Ge=Ge.substr(4,1)+"."+Ge.substr(5,1):(Ge.substr(0,3)==="war"||Ge.substr(0,4)==="beta")&&(Ge="5.0");var Kt=parseFloat(Ge);Kt!==NaN&&Kt<5&&Ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kt+" is deprecated. Using version latest instead."),ge("5.0",Ve))},Et=function(Ze,Ve){window.console&&window.console.log&&(!Ve||typeof Ve.showLogging=="undefined"||Ve.showLogging&&Ve.showLogging!=="false")&&console.log(Ze)};ne.material_id!==void 0?At(yt):yt();function yt(){var Ze=_t;Ae!==null?Ze=Ae:parseFloat(Ze)<5&&(Ze="5.0"),ge(Ze,!1),Ue!==null&<(Ue,qe),We=!0}return Bt},GGBAppletUtils=function(){"use strict";function Bt(){return window.GGBT_wsf_edit!==void 0}function _t(We,Ae){Ae!=1?(We.style.transformOrigin="0% 0% 0px",We.style.webkitTransformOrigin="0% 0% 0px",We.style.transform="scale("+Ae+","+Ae+")",We.style.webkitTransform="scale("+Ae+","+Ae+")",We.style.maxWidth="initial",We.querySelector(".ggb_preview")!==null&&(We.querySelector(".ggb_preview").style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[0]!==void 0&&(We.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),We.querySelectorAll(".ggb_preview img")[1]!==void 0&&(We.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(We.style.transform="none",We.style.webkitTransform="none")}function ne(We,Ae,Ue,tt,Se,He){var Qe=null;if(He!=null&&He!="")for(var qe=We.parentNode;qe!=null;)if((" "+qe.className+" ").indexOf(" "+He+" ")>-1){Qe=qe;break}else qe=qe.parentNode;var pt=0,Ge=0,Oe=0,Be=0,be=0,Ne=0,Ye=0;if(Qe)pt=Qe.offsetWidth,Ge=Math.max(tt?Qe.offsetWidth:0,Qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(pt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=pt):(pt=window.innerWidth,Ge=window.innerHeight,Oe=window.innerWidth),We){var it=We.getBoundingClientRect();it.left>0&&it.left<=pt&&(Se===void 0||!Se)&&(document.dir==="rtl"?(be=pt-it.width-it.left,Ne=Oe<=480?10:30):(Ne=it.left,be=Oe<=480?10:30),Be=Ne+be)}if(We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=We.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be=40,Ye=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be=0,Ye=40)}}return We&&((Ue===void 0||!Ue)&&Ae>0&&Ae+Be1&&(He=!0)),Ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(He=!0),!(We.hasOwnProperty("disableAutoScale")&&We.disableAutoScale))Se=E(We,Ae,He,Ue,We.scaleContainerClass);else return tt;return He&&(!We.hasOwnProperty("scale")||tt===1)?Se:Math.min(tt,Se)}function xe(We){var Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),tt=We.getBoundingClientRect(),Se=(Ae-tt.width)/2,He=(Ue-tt.height)/2;He<0&&(He=0),We.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Se<40?We.style.left="40px":We.style.left=Se+"px",We.style.top=He+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He<40?We.style.top="40px":We.style.top=He+"px",We.style.left=Se+"px")}function Je(We,Ae){var Ue=We.querySelector(".appletParameters");if(Ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!==Ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(We)}if(Ue.parentElement&&/fullscreen/.test(Ue.parentElement.className))return;var tt=ve(Ae,We);Bt()&&Ue.setAttribute("data-param-scale",tt);for(var Se=null,He=0;He=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Bt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Bt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Bt){var _t=c[Bt];return _t==null?null:_t},r=d,webModule.__errFn=e}function B(){function Bt(We){var Ae=We.lastIndexOf(rb);Ae==-1&&(Ae=We.length);var Ue=We.indexOf(sb);Ue==-1&&(Ue=We.length);var tt=We.lastIndexOf(tb,Math.min(Ue,Ae));return tt>=O?We.substring(O,tt+P):W}function _t(We){if(!We.match(/^\w+:\/\//)){var Ae=o.createElement(ub);Ae.src=We+vb,We=Bt(Ae.src)}return We}function ne(){var We=__gwt_getMetaProperty(wb);return We!=null?We:W}function E(){for(var We=o.getElementsByTagName(_),Ae=O;AeO?We[We.length-P].href:W}function xe(){var We=o.location;return We.href==We.protocol+zb+We.host+We.pathname+We.search+We.hash}var Je=ne();return Je==W&&(Je=E()),Je==W&&(Je=ve()),Je==W&&xe()&&(Je=Bt(o.location.href)),Je=_t(Je),Je}function C(Bt){return Bt.match(/^\//)||Bt.match(/^[a-zA-Z]+:\/\//)?Bt:webModule.__moduleBase+Bt}function D(){var Bt=[],_t=O,ne=[],E=[];function ve(We){var Ae=E[We](),Ue=ne[We];if(Ae in Ue)return Ae;var tt=[];for(var Se in Ue)tt[Ue[Se]]=Se;throw r&&r(We,tt,Ae),null}if(__gwt_isKnownPropertyValue=function(We,Ae){return Ae in ne[We]},webModule.__getPropMap=function(){var We={};for(var Ae in ne)ne.hasOwnProperty(Ae)&&(We[Ae]=ve(Ae));return We},webModule.__computePropValue=ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var Je=xe.indexOf(Db);Je!=-1&&(_t=parseInt(xe.substring(Je+P),$),xe=xe.substring(O,Je))}catch(We){}return webModule.__softPermutationId=_t,C(xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},29385:function(Bt,_t,ne){"use strict";ne.d(_t,{Ax:function(){return Je},Ds:function(){return We},KI:function(){return Ue},SI:function(){return xe},f1:function(){return ve}});var E=ne(51802);function ve(tt){let Se=!0;if(tt.length>0){for(let He=0;HeBe in Oe?xe(Oe,Be,{enumerable:!0,configurable:!0,writable:!0,value:be}):Oe[Be]=be,He=(Oe,Be)=>{for(var be in Be||(Be={}))Ue.call(Be,be)&&Se(Oe,be,Be[be]);if(Ae)for(var be of Ae(Be))tt.call(Be,be)&&Se(Oe,be,Be[be]);return Oe},Qe=(Oe,Be)=>Je(Oe,We(Be)),qe=(Oe,Be)=>{var be={};for(var Ne in Oe)Ue.call(Oe,Ne)&&Be.indexOf(Ne)<0&&(be[Ne]=Oe[Ne]);if(Oe!=null&&Ae)for(var Ne of Ae(Oe))Be.indexOf(Ne)<0&&tt.call(Oe,Ne)&&(be[Ne]=Oe[Ne]);return be},pt=(Oe,Be,be)=>new Promise((Ne,Ye)=>{var it=nt=>{try{Ke(be.next(nt))}catch(bt){Ye(bt)}},pe=nt=>{try{Ke(be.throw(nt))}catch(bt){Ye(bt)}},Ke=nt=>nt.done?Ne(nt.value):Promise.resolve(nt.value).then(it,pe);Ke((be=be.apply(Oe,Be)).next())});const Ge=Oe=>{var Be=Oe,{children:be}=Be,Ne=qe(Be,["children"]);const[Ye,it]=(0,ve.useState)(!1);return ve.createElement(E.ZP,Qe(He({},Ne),{loading:Ye,onClick:pe=>pt(void 0,null,function*(){try{it(!0),yield Ne.onClick(pe),it(!1)}catch(Ke){console.error(Ke),it(!1)}})}),be)}},9150:function(Bt,_t,ne){"use strict";var E=ne(86204),ve=ne.n(E),xe=Object.defineProperty,Je=(tt,Se,He)=>Se in tt?xe(tt,Se,{enumerable:!0,configurable:!0,writable:!0,value:He}):tt[Se]=He,We=(tt,Se,He)=>Je(tt,typeof Se!="symbol"?Se+"":Se,He),Ae=(tt,Se,He)=>new Promise((Qe,qe)=>{var pt=Be=>{try{Oe(He.next(Be))}catch(be){qe(be)}},Ge=Be=>{try{Oe(He.throw(Be))}catch(be){qe(be)}},Oe=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(pt,Ge);Oe((He=He.apply(tt,Se)).next())});class Ue extends E.EventEmitter{constructor(Se,He){super(),We(this,"url"),We(this,"body"),We(this,"fullContent",""),We(this,"controller",null),We(this,"buffer",""),this.url=Se,this.body=He}startStream(){return Ae(this,null,function*(){this.controller=new AbortController;const{signal:Se}=this.controller;try{const He=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Se});if(!He.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${He.status}`);const Qe=He.headers.get("content-type");if(!Qe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Qe.includes("application/json")){const Ge=yield He.json();this.emit("error",Ge);return}if(!Qe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const qe=He.body.getReader(),pt=new TextDecoder("utf-8");for(;;){const{done:Ge,value:Oe}=yield qe.read();if(Ge)break;const Be=pt.decode(Oe,{stream:!0});this.buffer+=Be;const be=this.buffer.split(` +`);this.buffer=be.pop()||"";for(const Ne of be)if(Ne.startsWith("data:")){const Ye=Ne.slice(5).trim();if(Ye==="[DONE]")break;try{const it=JSON.parse(Ye);it.data&&this.handleData(it.data)}catch(it){this.buffer=Ne+` +`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",it)}}}this.emit("done",this.fullContent)}catch(He){He.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",He.message)}})}handleData(Se){Se.content&&(this.fullContent+=Se.content,this.emit("data",{chunk:Se,full:this.fullContent}))}cancelRequest(){var Se;(Se=this.controller)==null||Se.abort()}}_t.Z=Ue},42065:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return pt}});var E=ne(59301),ve=ne(36207),xe=ne(77019),Je=ne(5269),We={smartWrp:"smartWrp___NjRcB"},Ae=ne(86746),Ue=ne(86475),tt=ne(32981),Se=ne(59301),He=(Ge,Oe,Be)=>new Promise((be,Ne)=>{var Ye=Ke=>{try{pe(Be.next(Ke))}catch(nt){Ne(nt)}},it=Ke=>{try{pe(Be.throw(Ke))}catch(nt){Ne(nt)}},pe=Ke=>Ke.done?be(Ke.value):Promise.resolve(Ke.value).then(Ye,it);pe((Be=Be.apply(Ge,Oe)).next())});const Qe=` @@ -136,37 +136,37 @@ initArrayDisplay(); <\/script> -`;function qe({open:Ge=!0,onChange:Oe,defaultValue:Be,placement:be,width:Pe,height:Ye,extra:it,onDynamic:pe,onOpenChange:Ke,showExtra:nt=!0}){const Et=(0,E.useRef)(null),At=(0,E.useRef)(null),[st,Xe]=(0,E.useState)(Be||""),[ut,Le]=(0,E.useState)(Be||""),[ze,Ne]=(0,E.useState)(!!Ge),[at,Bt]=(0,E.useState)(1),ct={selectOnLineNumbers:!0};(0,E.useEffect)(()=>{Ge&&(Xe(Be),Le(Be),Ne(!0))},[Ge,Be]),(0,E.useEffect)(()=>{st!==""&&(clearTimeout(At.current),At.current=setTimeout(()=>{const Ft=document.createElement("iframe");if(Ft.style.width="100%",Ft.style.height="100%",Ft.style.border="0",Et.current){Et.current.innerHTML="",Et.current.appendChild(Ft);const De=Ft.contentDocument||Ft.contentWindow.document;De.open(),De.write(st),De.close()}},1e3))},[Ge,st]);const $e=Ft=>{Xe(Ft),Oe==null||Oe(Ft,ut)};return Se.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:Ye||"100vh",rootClassName:We.smartWrp,destroyOnClose:!0,onClose:()=>{Ne(!1),Ke==null||Ke(st)},extra:nt&&Se.createElement("div",null,Se.createElement(Ue.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:at,onChange:Ft=>Bt(Ft)}),Se.createElement(tt.Z,{type:"primary",className:"ml20",onClick:()=>Re(this,null,function*(){yield pe(st,()=>{Ne(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Se.createElement(xe.Z,{className:"h100"},Se.createElement(Je.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:at===1?"block":"none"}},Se.createElement("div",{className:"h100",ref:Et})),Se.createElement(Je.Z,{flex:"1",style:{display:at===2?"block":"none"}},Se.createElement(Ae.ZP,{height:"90vh",value:Be,language:"html",theme:"vs",showMiniMap:!1,options:ct,onChange:$e}))))}var ht=qe},94239:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Ve}});var E=ne(59301),ve=ne(53894),xe=ne(66328),Je=ne(84821),We=ne(18369),Ae=ne(56102),Ue={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},tt=ne(6767),Se=ne(75786),Re=ne(40797),Qe=ne(91378),qe=ne(15342),ht=ne.n(qe),Ge=ne(19453),Oe=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pe=(pt,Kt,kt)=>Kt in pt?Oe(pt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):pt[Kt]=kt,Ke=(pt,Kt)=>{for(var kt in Kt||(Kt={}))Ye.call(Kt,kt)&&pe(pt,kt,Kt[kt]);if(Pe)for(var kt of Pe(Kt))it.call(Kt,kt)&&pe(pt,kt,Kt[kt]);return pt},nt=(pt,Kt)=>Be(pt,be(Kt));const Et={},At=[];function st(pt){const Kt=pt||Et;return function(kt,dn){(0,Ge.S4)(kt,"element",function(dt,Nt){const mn=Array.isArray(dt.properties.className)?dt.properties.className:At,he=mn.includes("language-math"),se=mn.includes("math-display"),ae=mn.includes("math-inline");let ce=se;if(!he&&!se&&!ae)return;let me=Nt[Nt.length-1],le=dt;if(dt.tagName==="code"&&he&&me&&me.type==="element"&&me.tagName==="pre"&&(le=me,me=Nt[Nt.length-2],ce=!0),!me)return;const ot=(0,Qe.l)(le,{whitespace:"pre"});let Ht;try{const kn=ht().renderToString(ot,nt(Ke({},Kt),{displayMode:ce,throwOnError:!0}));Ht=(0,Re.N)(` +`;function qe({open:Ge=!0,onChange:Oe,defaultValue:Be,placement:be,width:Ne,height:Ye,extra:it,onDynamic:pe,onOpenChange:Ke,showExtra:nt=!0}){const bt=(0,E.useRef)(null),At=(0,E.useRef)(null),[ut,Xe]=(0,E.useState)(Be||""),[ht,Pe]=(0,E.useState)(Be||""),[ze,Te]=(0,E.useState)(!!Ge),[rt,Pt]=(0,E.useState)(1),st={selectOnLineNumbers:!0};(0,E.useEffect)(()=>{Ge&&(Xe(Be),Pe(Be),Te(!0))},[Ge,Be]),(0,E.useEffect)(()=>{ut!==""&&(clearTimeout(At.current),At.current=setTimeout(()=>{const Ft=document.createElement("iframe");if(Ft.style.width="100%",Ft.style.height="100%",Ft.style.border="0",bt.current){bt.current.innerHTML="",bt.current.appendChild(Ft);const De=Ft.contentDocument||Ft.contentWindow.document;De.open(),De.write(ut),De.close()}},1e3))},[Ge,ut]);const et=Ft=>{Xe(Ft),Oe==null||Oe(Ft,ht)};return Se.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:Ye||"100vh",rootClassName:We.smartWrp,destroyOnClose:!0,onClose:()=>{Te(!1),Ke==null||Ke(ut)},extra:nt&&Se.createElement("div",null,Se.createElement(Ue.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:rt,onChange:Ft=>Pt(Ft)}),Se.createElement(tt.Z,{type:"primary",className:"ml20",onClick:()=>He(this,null,function*(){yield pe(ut,()=>{Te(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Se.createElement(xe.Z,{className:"h100"},Se.createElement(Je.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:rt===1?"block":"none"}},Se.createElement("div",{className:"h100",ref:bt})),Se.createElement(Je.Z,{flex:"1",style:{display:rt===2?"block":"none"}},Se.createElement(Ae.ZP,{height:"90vh",value:Be,language:"html",theme:"vs",showMiniMap:!1,options:st,onChange:et}))))}var pt=qe},94239:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Ve}});var E=ne(59301),ve=ne(53894),xe=ne(66328),Je=ne(84821),We=ne(18369),Ae=ne(56102),Ue={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},tt=ne(6767),Se=ne(75786),He=ne(40797),Qe=ne(91378),qe=ne(15342),pt=ne.n(qe),Ge=ne(19453),Oe=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pe=(ft,Kt,kt)=>Kt in ft?Oe(ft,Kt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):ft[Kt]=kt,Ke=(ft,Kt)=>{for(var kt in Kt||(Kt={}))Ye.call(Kt,kt)&&pe(ft,kt,Kt[kt]);if(Ne)for(var kt of Ne(Kt))it.call(Kt,kt)&&pe(ft,kt,Kt[kt]);return ft},nt=(ft,Kt)=>Be(ft,be(Kt));const bt={},At=[];function ut(ft){const Kt=ft||bt;return function(kt,dn){(0,Ge.S4)(kt,"element",function(ct,Nt){const mn=Array.isArray(ct.properties.className)?ct.properties.className:At,he=mn.includes("language-math"),se=mn.includes("math-display"),ae=mn.includes("math-inline");let ce=se;if(!he&&!se&&!ae)return;let me=Nt[Nt.length-1],le=ct;if(ct.tagName==="code"&&he&&me&&me.type==="element"&&me.tagName==="pre"&&(le=me,me=Nt[Nt.length-2],ce=!0),!me)return;const ot=(0,Qe.l)(le,{whitespace:"pre"});let Ht;try{const kn=pt().renderToString(ot,nt(Ke({},Kt),{displayMode:ce,throwOnError:!0}));Ht=(0,He.N)(` ${kn} - `,{fragment:!0}).children}catch(kn){const wn=kn;dn.message("Could not render math with KaTeX",{ancestors:[...Nt,dt],cause:wn,place:dt.position,ruleId:wn.name.toLowerCase(),source:"rehype-katex"}),Ht=[{type:"element",tagName:"mathx",properties:{"data-text":ot},children:[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(Kt.errorColor||"#cc0000"),title:String(kn)},children:[{type:"text",value:ot}]}]}]}const on=me.children.indexOf(le);return me.children.splice(on,1,...Ht),Ge.AM})}}var Xe=ne(55468),ut=ne(3369),Le=ne(20570),ze=ne(12103),Ne=ne(42065),at=Object.defineProperty,Bt=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ge=(pt,Kt,kt)=>Kt in pt?at(pt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):pt[Kt]=kt,lt=(pt,Kt)=>{for(var kt in Kt||(Kt={}))Ft.call(Kt,kt)&&ge(pt,kt,Kt[kt]);if($e)for(var kt of $e(Kt))De.call(Kt,kt)&&ge(pt,kt,Kt[kt]);return pt},wt=(pt,Kt)=>Bt(pt,ct(Kt)),yt=(pt,Kt)=>{var kt={};for(var dn in pt)Ft.call(pt,dn)&&Kt.indexOf(dn)<0&&(kt[dn]=pt[dn]);if(pt!=null&&$e)for(var dn of $e(pt))Kt.indexOf(dn)<0&&De.call(pt,dn)&&(kt[dn]=pt[dn]);return kt},Ve=({onFinish:pt,value:Kt,streamingStatus:kt,cancelIndex:dn,loadImage:dt,onDynamic:Nt,isHiddenHtml:mn})=>{const[he,se]=(0,E.useState)(""),[ae,ce]=(0,E.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[me,le]=(0,E.useState)(0),[ot,Ht]=(0,E.useState)(!1),on=Xn=>Xn,kn=()=>{Ht(!0),pt==null||pt()};(0,E.useEffect)(()=>{const Nn=dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A + `,{fragment:!0}).children}catch(kn){const wn=kn;dn.message("Could not render math with KaTeX",{ancestors:[...Nt,ct],cause:wn,place:ct.position,ruleId:wn.name.toLowerCase(),source:"rehype-katex"}),Ht=[{type:"element",tagName:"mathx",properties:{"data-text":ot},children:[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(Kt.errorColor||"#cc0000"),title:String(kn)},children:[{type:"text",value:ot}]}]}]}const on=me.children.indexOf(le);return me.children.splice(on,1,...Ht),Ge.AM})}}var Xe=ne(55468),ht=ne(3369),Pe=ne(20570),ze=ne(12103),Te=ne(42065),rt=Object.defineProperty,Pt=Object.defineProperties,st=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ge=(ft,Kt,kt)=>Kt in ft?rt(ft,Kt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):ft[Kt]=kt,lt=(ft,Kt)=>{for(var kt in Kt||(Kt={}))Ft.call(Kt,kt)&&ge(ft,kt,Kt[kt]);if(et)for(var kt of et(Kt))De.call(Kt,kt)&&ge(ft,kt,Kt[kt]);return ft},Et=(ft,Kt)=>Pt(ft,st(Kt)),yt=(ft,Kt)=>{var kt={};for(var dn in ft)Ft.call(ft,dn)&&Kt.indexOf(dn)<0&&(kt[dn]=ft[dn]);if(ft!=null&&et)for(var dn of et(ft))Kt.indexOf(dn)<0&&De.call(ft,dn)&&(kt[dn]=ft[dn]);return kt},Ve=({onFinish:ft,value:Kt,streamingStatus:kt,cancelIndex:dn,loadImage:ct,onDynamic:Nt,isHiddenHtml:mn})=>{const[he,se]=(0,E.useState)(""),[ae,ce]=(0,E.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[me,le]=(0,E.useState)(0),[ot,Ht]=(0,E.useState)(!1),on=Xn=>Xn,kn=()=>{Ht(!0),ft==null||ft()};(0,E.useEffect)(()=>{const Nn=ct?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${Kt}`:Kt;if(!ot)if(dt||!kt||dn>0){se(Nn),le(Nn.length),(!kt||dn>0)&&!dt&&kn();return}else if((Nn==null?void 0:Nn.length)<4)se(Nn),le(Nn.length);else if(me{se(Nn.slice(0,me+2)),le(Ar=>Ar+2)},Pr>10?Math.max(500/(Pr/2),20):50);return()=>clearInterval(Vr)}else kt||kn()},[Kt,kt,dn,dt,me]);const wn=(0,E.useMemo)(()=>E.createElement("section",{className:`${Ue.answer} fadeIn animated edu_md`},E.createElement(ve.UG,{remarkPlugins:[Xe.Z,ut.Z,Le.Z],rehypePlugins:[st,Je.Z],components:{code(Xn){var Nn=Xn,{node:Pr,inline:Vr,className:Ar,children:Jn}=Nn,va=yt(Nn,["node","inline","className","children"]);const Qr=/language-(\w+)/.exec(Ar||""),ur=String(Jn).trim();return Vr||!Qr?E.createElement("code",lt({className:Ar},va),Jn):E.createElement("code",{className:Ue.codeCopy,"data-text":`\`\`\`${Qr?Qr[1]:""} +${Kt}`:Kt;if(!ot)if(ct||!kt||dn>0){se(Nn),le(Nn.length),(!kt||dn>0)&&!ct&&kn();return}else if((Nn==null?void 0:Nn.length)<4)se(Nn),le(Nn.length);else if(me{se(Nn.slice(0,me+2)),le(Ar=>Ar+2)},Pr>10?Math.max(500/(Pr/2),20):50);return()=>clearInterval(Vr)}else kt||kn()},[Kt,kt,dn,ct,me]);const wn=(0,E.useMemo)(()=>E.createElement("section",{className:`${Ue.answer} fadeIn animated edu_md`},E.createElement(ve.UG,{remarkPlugins:[Xe.Z,ht.Z,Pe.Z],rehypePlugins:[ut,Je.Z],components:{code(Xn){var Nn=Xn,{node:Pr,inline:Vr,className:Ar,children:Jn}=Nn,va=yt(Nn,["node","inline","className","children"]);const Qr=/language-(\w+)/.exec(Ar||""),ur=String(Jn).trim();return Vr||!Qr?E.createElement("code",lt({className:Ar},va),Jn):E.createElement("code",{className:Ue.codeCopy,"data-text":`\`\`\`${Qr?Qr[1]:""} ${Jn} -\`\`\``},!mn&&E.createElement(Ae.CopyToClipboard,{text:ur,onCopy:()=>tt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},E.createElement("button",null,"\u590D\u5236")),!mn&&Qr[1]==="html"&&ot&&E.createElement("button",{className:Ue.runCode,onClick:()=>{ce(lt({},wt(lt({},ae),{open:++ae.open,defaultValue:ur,language:Qr[1]})))}},"\u8FD0\u884CHTML"),E.createElement(xe.Z,lt({wrapLongLines:!0,style:We.Z,language:Qr[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},va),ur))},img({node:Xn}){var Nn;const Pr=(Nn=Xn.properties)==null?void 0:Nn.src;return E.createElement(Se.Z,{src:Pr,width:320,"data-text":Pr,onLoad:()=>dt&&setTimeout(()=>kn(),500)})},a:Xn=>{var Nn=Xn,{node:Pr}=Nn,Vr=yt(Nn,["node"]);return E.createElement("a",wt(lt({},Vr),{target:"_blank",rel:"noopener noreferrer"}))}}},ot?he:`${he}__`)),[he,ot]);return E.createElement(E.Fragment,null,E.createElement(Ne.Z,{defaultValue:ae.defaultValue,open:ae.open,language:ae.language,height:ae.height,onChange:(Xn,Nn)=>{se(he.replaceAll(Nn,Xn))},onDynamic:Nt}),wn)}},89300:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(qe,ht,Ge)=>ht in qe?ve(qe,ht,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):qe[ht]=Ge,Ue=(qe,ht)=>{for(var Ge in ht||(ht={}))Je.call(ht,Ge)&&Ae(qe,Ge,ht[Ge]);if(xe)for(var Ge of xe(ht))We.call(ht,Ge)&&Ae(qe,Ge,ht[Ge]);return qe},tt=(qe,ht)=>{var Ge={};for(var Oe in qe)Je.call(qe,Oe)&&ht.indexOf(Oe)<0&&(Ge[Oe]=qe[Oe]);if(qe!=null&&xe)for(var Oe of xe(qe))ht.indexOf(Oe)<0&&We.call(qe,Oe)&&(Ge[Oe]=qe[Oe]);return Ge};const Se=ne(20441),Re={};Se.keys().forEach(qe=>{const ht=qe.replace("./","").replace(".svg","");Re[ht]=Se(qe)});const Qe=qe=>{var ht=qe,{filename:Ge}=ht,Oe=tt(ht,["filename"]),Be;const be=((Be=Ge==null?void 0:Ge.split(".").pop())==null?void 0:Be.toLowerCase())||"unknown",Pe=Re[be]||Re.default;return E.createElement("img",Ue({src:Pe,alt:be},Oe))};Pt.Z=Qe},35349:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ht}});var E=ne(59301),ve={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},xe=ne(37285),Je=ne(89300),We=ne(25399),Ae=ne(37639),Ue=ne(44977),tt=ne(70892),Se=(Ge,Oe,Be)=>new Promise((be,Pe)=>{var Ye=Ke=>{try{pe(Be.next(Ke))}catch(nt){Pe(nt)}},it=Ke=>{try{pe(Be.throw(Ke))}catch(nt){Pe(nt)}},pe=Ke=>Ke.done?be(Ke.value):Promise.resolve(Ke.value).then(Ye,it);pe((Be=Be.apply(Ge,Oe)).next())}),Qe=({item:Ge})=>{var Oe,Be,be,Pe,Ye;const[it,pe]=(0,E.useState)(!1),[Ke,nt]=(0,E.useState)({}),Et=(0,E.useRef)(),[At,st]=(0,E.useState)(!1);let Xe=[{name:"subject",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-kecheng1"})},{name:"shixun",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"challenge",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"document",icon:E.createElement(Je.Z,{filename:Ge==null?void 0:Ge.name,style:{width:16,height:16,marginRight:5}})}];return E.createElement("div",{className:ve.f_l_c},E.createElement(We.Z,{title:Ge==null?void 0:Ge.name},E.createElement(Ae.Z,{placement:"top",content:E.createElement("div",null,E.createElement(xe.Z,null),E.createElement("pre",{className:ve.preclass,style:{maxWidth:600,maxHeight:400}},(Ge==null?void 0:Ge.type)==="document"&&((Oe=Ge==null?void 0:Ge.contents)==null?void 0:Oe.toString()),(Ge==null?void 0:Ge.type)!=="document"&&E.createElement("a",{target:"_blank",href:(Be=Ge==null?void 0:Ge.contents)==null?void 0:Be.toString()},(be=Ge==null?void 0:Ge.contents)==null?void 0:be.toString()))),title:E.createElement("div",null,(Pe=Xe==null?void 0:Xe.find(ut=>(ut==null?void 0:ut.name)===Ge.type))==null?void 0:Pe.icon,Ge==null?void 0:Ge.name),trigger:"click",open:it,onOpenChange:ut=>Se(void 0,null,function*(){var Le;if(Ge!=null&&Ge.deployable_type){let ze={};(Ge==null?void 0:Ge.deployable_type)=="Course"?ze.course_id=Ge==null?void 0:Ge.deployable_id:ze.subject_id=Ge==null?void 0:Ge.deployable_id;let Ne=yield(0,tt.ZP)("/api/users/get_permissions.json",{method:"get",params:ze});if(!((Le=Ne==null?void 0:Ne.data)!=null&&Le.manager)){pe(ut);return}}if(!(Ge!=null&&Ge.web_url))pe(ut);else{const Bt=new URL(Ge==null?void 0:Ge.web_url).pathname.split("/").pop().split(".").pop();if(Bt==="txt"){st(!0);let ct=yield(0,tt.ZP)(Ge==null?void 0:Ge.web_url,{method:"get"},!1,!1,!0);st(!1);const Ft=new TextDecoder("utf-8").decode(ct);Et.current=Ft,nt({file_type:"txt",url:Ge==null?void 0:Ge.web_url})}else nt({file_type:["docx","doc"].includes(Bt)?"office":Bt,url:Ge==null?void 0:Ge.web_url})}})},E.createElement("div",{className:ve.officediv},(Ye=Xe==null?void 0:Xe.find(ut=>(ut==null?void 0:ut.name)===Ge.type))==null?void 0:Ye.icon,Ge==null?void 0:Ge.name))),E.createElement(Ue.Z,{close:!0,monacoEditor:{value:Et.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:Ke==null?void 0:Ke.url,type:Ke==null?void 0:Ke.file_type,disabledDownload:!0,onClose:()=>nt({})}))},ht=({Filelist:Ge})=>E.createElement("div",null,E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),E.createElement(xe.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),E.createElement("div",{className:ve.f_l_c},Ge==null?void 0:Ge.map(Oe=>E.createElement(Qe,{item:Oe}))))},38774:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Xe}});var E=ne(59301),ve=ne(6767),xe=ne(36207),Je=ne(77019),We=ne(62957),Ae=ne(37568),Ue=ne(94968),tt=ne(25399),Se=ne(82326),Re=ne(5269),Qe=ne(4875),qe={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},ht=ne(86475),Ge=ne(51802),Oe=ne(64047),Be=ne(70892),be=ne(69359),Pe=ne(95203),Ye=ne(91858),it=ne(49004),pe=ne(56176),Ke=ne(5524),nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXB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pFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Et=ne(88634),At=(ut,Le,ze)=>new Promise((Ne,at)=>{var Bt=Ft=>{try{$e(ze.next(Ft))}catch(De){at(De)}},ct=Ft=>{try{$e(ze.throw(Ft))}catch(De){at(De)}},$e=Ft=>Ft.done?Ne(Ft.value):Promise.resolve(Ft.value).then(Bt,ct);$e((ze=ze.apply(ut,Le)).next())}),Xe=(0,E.forwardRef)(({onUpdateNum:ut,onSave:Le},ze)=>{var Ne;const at=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 -\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[Bt,ct]=(0,E.useState)(!1),[$e,Ft]=(0,E.useState)([]),[De,ge]=(0,E.useState)(null),[lt,wt]=(0,E.useState)([]),[yt,je]=(0,E.useState)(0),[Ve,pt]=(0,E.useState)(0),[Kt,kt]=(0,E.useState)(!1),[dn,dt]=(0,E.useState)(""),[Nt,mn]=(0,E.useState)(0),[he,se]=(0,E.useState)(0),[ae,ce]=(0,E.useState)(0),[me,le]=(0,E.useState)(0),[ot,Ht]=(0,E.useState)(0),[on,kn]=(0,E.useState)(0),[wn,Xn]=(0,E.useState)(0),[Nn,Pr]=(0,E.useState)(0),Vr=(0,Et.useParams)(),[Ar,Jn]=(0,E.useState)(),[va,Qr]=(0,E.useState)([]),[ur,Sn]=(0,E.useState)(Ke.Q),{contentRef:sr,value:un,status:Er,open:Br,close:Xa}=ur,Da=(0,it.Z)({contentRef:sr,status:Er}),{openProgress:Sr,closeProgress:En,CreateProgressModal:nr,progressOpen:$r}=(0,Ye.Z)();(0,E.useEffect)(()=>{De&&Ii(),De===!1&&(Xa(),ut==null||ut(),Ft([]),dt(""),mn(0),se(0),ce(0),le(0),Ht(0),kn(0),Xn(0),Pr(0))},[De]);const Aa=()=>{ge(!0)};(0,E.useImperativeHandle)(ze,()=>({onClick:Aa}));const ga=ea=>{kt(!0),je(ea),pt(0)},Ei=ea=>At(void 0,null,function*(){const Ir=ea.name.split(".").slice(-1)[0].toLowerCase();if(["docx","doc","pdf","png","jpg"].indexOf(Ir)==-1)return ve.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject();const Ut=["docx","doc","pdf"],Un=["png","jpg"];return Ut.indexOf(Ir)!=-1&&ea.size/1024/1024>100?(ve.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ft([]),Promise.reject()):Un.indexOf(Ir)!=-1&&ea.size/1024/1024>10?(ve.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ft([]),Promise.reject()):!0}),Ii=()=>At(void 0,null,function*(){var ea;const Ir=yield(0,Be.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Ir.status===0&&(je(Ir.total_number),pt(Ir.remaining_number));let qt=yield(0,Be.ZP)("/api/ai/agents/library_resource_list.json",{method:"get"});(qt==null?void 0:qt.status)===0&&Qr((ea=qt==null?void 0:qt.data)==null?void 0:ea.map(Ut=>({value:Ut==null?void 0:Ut.coze_id,disabled:!(Ut!=null&&Ut.have_file),label:E.createElement("span",null,Ut==null?void 0:Ut.name,!(Ut!=null&&Ut.have_file)&&"\uFF08\u5185\u5BB9\u4E3A\u7A7A\uFF09")})))}),Ja=ea=>(ea=ea||"",ea=String(ea),ea=ea.replace(/\s+/g,""),ea),ri=(ea=!0)=>At(void 0,null,function*(){var Ir,qt;const Ut=[{name:"\u5355\u9009\u9898",num:Nt||0},{name:"\u591A\u9009\u9898",num:he||0},{name:"\u5224\u65AD\u9898",num:ae||0},{name:"\u586B\u7A7A\u9898",num:me||0},{name:"\u7B80\u7B54\u9898",num:ot||0},{name:"\u7EC4\u5408\u9898",num:Nn||0},{name:"\u7F16\u7A0B\u9898",num:on||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:wn||0}];if(ea){if(Ja(dn)){if(dn.length>1e3){ve.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{ve.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Ja(dn)&&!($e!=null&&$e.length)){ve.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const Dn=Ut.reduce((rr,Rn)=>rr+Rn.num,0);if(Dn===0){ve.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(Dn>50){ve.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(yt!==-1){kt(!0);return}}kt(!1);const Lt={scene_type:6,request_identifier:Math.random(),file_id:(qt=(Ir=$e[0])==null?void 0:Ir.response)==null?void 0:qt.id,content:dn,count_arr:Ut.map(Dn=>Dn.num).join(","),course_id:Vr==null?void 0:Vr.coursesId,coze_id:Ar};yield Br(Lt),Ii()}),hi=()=>At(void 0,null,function*(){const ea=Da();if(Le){ge(!1),Le(ea);return}Sr(),ct(!0),wt([]);const Ir=new FormData;Ir.append("html",ea);const qt=yield(0,Be.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Ir},!0);if((qt==null?void 0:qt.status)===0)if(qt!=null&&qt.data){En(100),wt(qt==null?void 0:qt.data);return}else ve.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");ct(!1),En()}),$i=()=>At(void 0,null,function*(){const ea=Da();(0,Pe.RG)(ea)}),Ha=["uploading","error"].includes((Ne=$e==null?void 0:$e[0])==null?void 0:Ne.status);return E.createElement(E.Fragment,null,E.createElement(pe.Z,{visible:Kt,totalCount:yt,usedCount:Ve,onCancel:()=>kt(!1),onOk:()=>ri(!1)}),E.createElement(xe.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:E.createElement("div",{className:qe.extraHeader},E.createElement(Je.Z,{align:"middle"},!Er&&!!un&&E.createElement(E.Fragment,null,E.createElement(ht.op,{onClick:hi,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),E.createElement(ht.op,{onClick:$i,shape:"default",type:"text"},E.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),E.createElement("i",{onClick:()=>{const ea=Ir=>{We.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ir,onOk:()=>{ge(!1)}})};if(Er){ea("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else un?ea("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ge(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:De},E.createElement("div",{className:qe.wrap},E.createElement("div",{className:qe.left},E.createElement("div",{className:qe.tip},E.createElement("img",{src:nt}),E.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),E.createElement("div",{className:"mb10 mt20 c-black"},E.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),E.createElement(Ae.default.TextArea,{style:{height:160},className:"mb20",value:dn,placeholder:at,onChange:ea=>{dt(ea.target.value)}}),E.createElement(Ue.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${Ge.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:$e,withCredentials:!0,data:{upload_type:1},beforeUpload:Ei,onChange:({file:ea})=>{var Ir,qt;if(ea.status==="removed")return;ea.status==="done"&&((Ir=ea==null?void 0:ea.response)==null?void 0:Ir.status)!==0&&(ea.status="error",ea.response=(qt=ea==null?void 0:ea.response)==null?void 0:qt.message),Ft([ea]);const Ut=ea.name.split(".").slice(-1)[0].toLowerCase(),Un=["docx","doc","pdf"],Lt=["png","jpg"];Un.indexOf(Ut)!=-1&&ea.size/1024/1024>100&&Ft([]),Lt.indexOf(Ut)!=-1&&ea.size/1024/1024>10&&Ft([])},onRemove:()=>Ft([])},E.createElement(tt.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\u4E0D\u8D85\u8FC7100M,\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},E.createElement(ht.op,{style:{borderRadius:2}},E.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),E.createElement("div",{className:"c-black mt20"},E.createElement("div",{className:"mb10 c-black"},E.createElement("b",null,"\u77E5\u8BC6\u5E93 "),E.createElement(Se.default,{onChange:ea=>{Jn(ea)},style:{marginLeft:10,width:"80%"},options:va}))),E.createElement("div",{className:"c-black mt20"},E.createElement("div",{className:"mb10 c-black"},E.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),E.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",E.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),E.createElement(Je.Z,{style:{gap:16}},E.createElement(Re.Z,null,E.createElement("label",null,"\u5355\u9009\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:Nt,onChange:mn,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u591A\u9009\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:he,onChange:se,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u5224\u65AD\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:ae,onChange:ce,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u586B\u7A7A\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:me,onChange:le,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u7B80\u7B54\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:ot,onChange:Ht,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u7EC4\u5408\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:Nn,onChange:Pr,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u7F16\u7A0B\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:on,onChange:kn,style:{marginLeft:"8px"}})),E.createElement(Re.Z,null,E.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:wn,onChange:Xn,style:{marginLeft:"8px"}})))),Er?E.createElement("div",{onClick:Xa,className:qe.bottomBtn},E.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Ha?E.createElement("div",{className:`${qe.bottomBtn} ${qe.disabled}`},E.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):E.createElement("div",{onClick:()=>{ri()},className:qe.bottomBtn},E.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),E.createElement(Ke.Z,{onStatusChange:Sn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!$r,noRestrictModal:ga,stringTransformer:be.o,onError:ea=>{Object.prototype.toString.call(ea)==="[object Object]"&&ea.status===-9&&ga(ea.data)}}))),E.createElement(xe.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Bt},E.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},E.createElement("img",{src:ne(36413),alt:"\u667A\u80FD\u51FA\u9898"}),E.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),E.createElement(Oe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:lt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>ct(!1),onSuccess:()=>{ct(!1),ge(!1)}}),E.createElement("div",{style:{height:70}})),nr("\u5904\u7406\u4E2D"))})},93287:function(_t,Pt,ne){"use strict";var E=ne(59301);const ve=({scrollBoxRef:xe,bottomInspectRef:Je,contentRef:We,status:Ae,rootMargin:Ue="70px",bottomOffset:tt=110})=>{const[Se,Re]=(0,E.useState)(!0),Qe=(0,E.useRef)(!1);return(0,E.useEffect)(()=>{if(!xe.current||!Je.current)return;const qe=new IntersectionObserver(([ht])=>{var Ge,Oe,Be,be;if(!document.contains(ht.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Ge=ht.rootBounds)==null?void 0:Ge.width)===0&&((Oe=ht.rootBounds)==null?void 0:Oe.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((Be=ht.boundingClientRect)==null?void 0:Be.width)===0&&((be=ht.boundingClientRect)==null?void 0:be.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}Re(ht.isIntersecting)},{root:xe.current,rootMargin:Ue,threshold:0});return qe.observe(Je.current),()=>{qe.disconnect()}},[xe.current,Je.current,Ue]),(0,E.useEffect)(()=>{if(!Ae)return;const qe=xe.current,ht=We.current;Qe.current=!1;let Ge=qe.scrollTop;const Oe=()=>{const{scrollTop:be,scrollHeight:Pe,clientHeight:Ye}=qe;be>Ge?be+Ye>=Pe-tt&&(qe.scrollTop=qe.scrollHeight,Qe.current=!1):be{Qe.current||(qe.scrollTop=qe.scrollHeight)});return Be.observe(ht),()=>{setTimeout(()=>{Be.unobserve(ht)},250),qe.removeEventListener("scroll",Oe)}},[Ae]),Se};Pt.Z=ve},49004:function(_t,Pt,ne){"use strict";var E=ne(59301);const ve=({contentRef:xe,status:Je})=>((0,E.useEffect)(()=>{!Je&&(xe!=null&&xe.current)&&xe.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Ue=>{Ue.tagName.toLowerCase()==="code"?Ue.parentElement&&(Ue.parentElement.contentEditable="false"):Ue.tagName.toLowerCase()==="mathx"&&(Ue.contentEditable="false")})},[Je]),(Ae=!1)=>{const Ue=Qe=>{const qe={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Qe.replace(/&[^;]+;/g,ht=>qe[ht]||ht)};if(!xe.current)return"";const tt=xe.current.cloneNode(!0);tt.querySelectorAll("code[data-text], mathx[data-text]").forEach(Qe=>{let qe=Qe.getAttribute("data-text");Qe.tagName.toLowerCase()==="code"?qe=qe.replace(/```.*\n|\n```/g,""):Qe.tagName.toLowerCase()==="mathx"&&(qe=`$$${qe}$$`);const ht=document.createTextNode(qe);Qe.parentNode.replaceChild(ht,Qe)}),Ae&&tt.querySelectorAll('[data-select="disabled"]').forEach(qe=>{var ht;const Ge=qe.textContent||"",Oe=document.createTextNode(Ge+` -`);(ht=qe.parentNode)==null||ht.replaceChild(Oe,qe)});let Re=tt.innerHTML;return Ae||(Re=Re.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),Re=Re.replace(/

/g,""),Re=Re.replace(/<\/p>/g,` -`),Re=Re.replace(/
/g,` -`),Re=Re.replace(/\r\n/g,` -`),Re=Re.replace(/<[^>]*>/g,""),Re=Ue(Re),Re});Pt.Z=ve},91858:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return qe}});var E=ne(59301),ve=ne(62957),xe=ne(77019),Je=ne(89787),We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY0mWhsyuZvfRM48Tzj4i9vpv3+aHf7QMH4qXVqbPnr8ETqWxIi0SAUEgCURoFDD+QswDuANkswJkEIZ8HkmnA0QBfALj/2U6Mr4kt+u3nOo9vamryS+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jGw7t50BzvGMZfReD5gKa60JP5x3tyTULH511wgn2cBH/QIFoH+CVv7h/wUrEjqqNhhkIiEBIgtGXAFrapDgiXVFdDlSWcqQ5Q9YBfCEAHMhlgH8s6kWV5jhXnlPW43Ie45wz7nINjJGOJyIxXWdM12gD0zTxlj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xpW+hxW2LZOqc07MGSVHHOzFse2HcMTzird+6m2pffHzve5AjAPledkuC+HbLVvcXCyGlwehTKgiSp3ticY6C3ObLfUubD6PNBI/MTAIlFHk5pHKkQ9XMgqMtVa6tgAOH8vjx08OYCjjq4ePCCF2ijD8vc4vzX/h1QJwpuM3d4+0VCdrL4bAOsfBVaGPCy1L1pHxgkB+bFmjPWGroF8qEPEb+PzPsvND33m7EM5NRT+83CenqBJZzSmM68xttRUorEJSFa8xQOI+yUScYcAoFkM8sWkIL+3lo2YY+HFyUsp7EM69d/+XROG1BGGic508Kav7Ev5FCctp8+rx0Aox8cPNf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",tt={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Se=ne(59301);const Re=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var qe=()=>{const[ht,Ge]=(0,E.useState)(0),[Oe,Be]=(0,E.useState)(!1),[be,Pe]=(0,E.useState)(!0),Ye=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(be)return;const At=()=>{Ge(st=>st>=99?(clearInterval(Ye.current),99):st+1)};return Ye.current=setInterval(At,5e4/99),()=>clearInterval(Ye.current)},[be]);const it=()=>{Ge(0),Be(!0),Pe(!1)},pe=(At=0)=>{Pe(!0),Ge(At),Be(!1)},Ke=At=>{const st=At/1048576;let Xe;return st<=.3?Xe=3:st<=.5?Xe=5:st<=1?Xe=10:st<=2?Xe=20:st<=3?Xe=30:st<=10?Xe=st*10:Xe=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Xe}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},nt=()=>Se.createElement("span",{className:tt.dotLoading},Se.createElement("span",null,"."),Se.createElement("span",null,"."),Se.createElement("span",null,"."));return{progress:ht,progressOpen:Oe,openProgress:it,closeProgress:pe,toggleLock:()=>Pe(At=>!At),CreateProgressModal:(At=Re,st)=>(typeof At=="string"&&(At=[At,At,At]),Se.createElement(ve.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:Oe,title:null,footer:null,width:500,afterClose:()=>Ge(0)},Se.createElement(xe.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},ht<=30&&Se.createElement(Se.Fragment,null,Se.createElement("img",{src:We,alt:"Step 1"}),Se.createElement("div",{className:"mt20 c-light-primary"},At[0],nt())),ht>30&&ht<60&&Se.createElement(Se.Fragment,null,Se.createElement("img",{src:Ae,alt:"Step 2"}),Se.createElement("div",{className:"mt20 c-light-primary"},At[1],nt())),ht>=60&&Se.createElement(Se.Fragment,null,Se.createElement("img",{src:Ue,alt:"Step 3"}),Se.createElement("div",{className:"mt20 c-light-primary"},At[2],nt())),Se.createElement(Je.Z,{className:tt.progress,status:"active",style:{width:"auto"},size:[300,8],percent:ht}),!!st&&Se.createElement("div",{className:"c-grey-999"},Ke(st)))))}}},28602:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return lt}});var E=ne(59301),ve=ne(75727),xe=ne(6767),Je=ne(25399),We=ne(37568),Ae=ne(7939),Ue=ne(94239),tt={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},Re=({position:wt,children:yt})=>{const{left:je=0,top:Ve=0}=wt||{},[pt,Kt]=(0,E.useState)(je),[kt,dn]=(0,E.useState)(Ve),dt=(0,E.useRef)(null),Nt=()=>{if(dt.current){const mn=dt.current.offsetWidth,he=dt.current.offsetHeight,se=window.innerWidth,ae=window.innerHeight;let ce=je,me=Ve;je+mn>se&&(ce=se-mn),ce<0&&(ce=0),Ve+he>ae&&(me=ae-he),me<0&&(me=0),Kt(ce),dn(me)}};return(0,E.useEffect)(()=>{if(!dt.current||!wt)return;const mn=new ResizeObserver(()=>{Nt()});return mn.observe(dt.current),()=>{mn.disconnect()}},[je,Ve,wt]),(0,E.useEffect)(()=>{wt&&Nt()},[je,Ve,wt]),wt?E.createElement("div",{ref:dt,style:{position:"fixed",left:`${pt}px`,top:`${kt}px`,zIndex:1050}},yt):null},Qe=ne(51802),qe=ne(56102),ht=ne(9150),Ge=Object.defineProperty,Oe=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(wt,yt,je)=>yt in wt?Ge(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:je}):wt[yt]=je,pe=(wt,yt)=>{for(var je in yt||(yt={}))Pe.call(yt,je)&&it(wt,je,yt[je]);if(be)for(var je of be(yt))Ye.call(yt,je)&&it(wt,je,yt[je]);return wt},Ke=(wt,yt)=>Oe(wt,Be(yt)),nt=(wt,yt,je)=>new Promise((Ve,pt)=>{var Kt=dt=>{try{dn(je.next(dt))}catch(Nt){pt(Nt)}},kt=dt=>{try{dn(je.throw(dt))}catch(Nt){pt(Nt)}},dn=dt=>dt.done?Ve(dt.value):Promise.resolve(dt.value).then(Kt,kt);dn((je=je.apply(wt,yt)).next())}),At=({visible:wt,position:yt,selectText:je,applyRefinedText:Ve,fetchUrl:pt,noRestrictModal:Kt})=>{var kt;const[dn,dt]=(0,E.useState)(!1),[Nt,mn]=(0,E.useState)([]),[he,se]=(0,E.useState)(""),[ae,ce]=(0,E.useState)(1),[me,le]=(0,E.useState)(""),[ot,Ht]=(0,E.useState)(!1),on=(0,E.useRef)(null),[kn,wn]=(0,E.useState)(!1),[Xn,Nn]=(0,E.useState)(0),Pr=(0,E.useRef)(!1),Vr=((kt=Nt==null?void 0:Nt[(Nt==null?void 0:Nt.length)-1])==null?void 0:kt.loading)===!0;(0,E.useEffect)(()=>{if(wt){ce(1);return}wn(!1),dt(!1),Ar(),Nn(0),mn([]),ce(0)},[wt]);const Ar=()=>{var nr,$r;se(""),le(""),($r=(nr=on.current)==null?void 0:nr.cancelRequest)==null||$r.call(nr)},Jn=(...nr)=>nt(void 0,[...nr],function*($r="",Aa=Nt){const ga=Date.now(),Ei=[...Aa,{text:$r,key:ga,sender:"user",show:!0},{loading:!0,key:ga,sender:"AI",show:!0}];ce(2),mn(Ei);const Ii=Qr(Aa),Ja={no_record_times:!0,prompt:$r,history:Ii};on.current=new ht.Z(Qe.Z.API_SERVER+pt,Ja),yield new Promise(ri=>{on.current.on("data",hi=>{const{chunk:{msg:$i},full:Ha}=hi,ea=$i==="error";wn(!0),le(Er(Ha)),mn(Ir=>Ir.map((qt,Ut)=>Ut===Ir.length-1?Ke(pe({},qt),{text:Ha,loading:!1,error:ea}):qt))}),on.current.on("done",()=>ri()),on.current.on("error",hi=>{const $i="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(hi)==="[object Object]"&&hi.status===-9&&(ce(1),Kt(hi.data)),mn(Ha=>Ha.map((ea,Ir)=>Ir===Ha.length-1?Ke(pe({},ea),{text:$i,loading:!1,error:!0}):ea)),ri()}),on.current.on("cancelled",()=>ri()),on.current.startStream()}),dt(!1)}),va=nr=>{se(nr.target.value)},Qr=nr=>nr.reduce((Aa,ga)=>{if(ga.sender==="user"){const Ei=nr.find(Ii=>Ii.key===ga.key&&Ii.sender==="AI");Ei&&(Ei!=null&&Ei.text)&&!(Ei!=null&&Ei.error)&&Aa.push({question:ga.text,answer:Ei.text})}return Aa},[]),ur=()=>{if(En)return;const nr=Br("\u6539\u5199");Ar(),dt(!0),Jn(nr)},Sn=nr=>{if(nr.key==="Enter"&&!nr.shiftKey){if(nr.preventDefault(),Pr.current||Sr)return;ur()}},sr=()=>{var nr,$r;Nn(Aa=>Aa+1),($r=(nr=on.current)==null?void 0:nr.cancelRequest)==null||$r.call(nr),dt(!1),wn(!1)},un=[{key:"1",label:E.createElement("span",null," ",E.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:E.createElement("span",null,E.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:E.createElement("span",null," ",E.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Er=(nr="")=>{const $r=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Aa,ga)=>{$r.push(`\u7B54\u6848${ga+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ga+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ga+1})\u8F93\u51FA\uFF1A`)}),$r.forEach(Aa=>{const ga=new RegExp(Aa,"g");nr=nr.replace(ga,`**${Aa}** `)}),nr},Br=nr=>nr==="\u6539\u5199"?`${he}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${je}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${je}\uFF0C${nr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Xa=nr=>{let $r="";nr.key==="1"&&($r=Br("\u6DA6\u8272")),nr.key==="2"&&($r=Br("\u6269\u5199")),nr.key==="3"&&($r=Br("\u7F29\u5199")),Ar(),dt(!0),Jn($r)},Da=()=>{const nr=Nt.splice(Nt.length-2),{text:$r}=(nr==null?void 0:nr[0])||{};Ar(),dt(!0),Jn($r,Nt)},Sr=dn||kn,En=(he==null?void 0:he.trim())==="";return wt?E.createElement(ve.Z,{open:En&&!Sr&&(ot||!me),overlayStyle:{minWidth:200},menu:{items:un,onClick:Xa}},E.createElement(Re,{position:yt},E.createElement("div",{className:tt.wrap},ae===2&&E.createElement(E.Fragment,null,E.createElement("div",{className:tt.chatContainer},Vr&&E.createElement("div",{className:tt.loadingWrp},E.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),E.createElement("div",{className:"ai-loading"})),me&&E.createElement(Ue.Z,{cancelIndex:Xn,streamingStatus:dn,loadImage:!1,onFinish:()=>nt(void 0,null,function*(){Nn(0),setTimeout(()=>wn(!1),0)}),value:me})),E.createElement("div",{className:tt.btnContainer},E.createElement("div",{onClick:()=>Ve(!0,me),className:tt.btn,style:{padding:"0 16px",width:"initial"}},E.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),E.createElement("div",{onClick:()=>Ve(!1,me),className:tt.btn,style:{padding:"0 16px",width:"initial"}},E.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),E.createElement(qe.CopyToClipboard,{text:me,onCopy:()=>xe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},E.createElement(Je.Z,{title:"\u590D\u5236"},E.createElement("div",{className:tt.btn,style:{marginLeft:"auto"}},E.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),E.createElement(Je.Z,{title:"\u91CD\u65B0\u751F\u6210"},E.createElement("div",{onClick:Da,className:tt.btn},E.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),E.createElement(Je.Z,{title:"\u5220\u9664"},E.createElement("div",{onClick:()=>{ce(1),Ar(),mn([])},className:tt.btn},E.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),E.createElement("div",{className:tt.inputContainer},E.createElement(We.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:he,bordered:!1,onFocus:()=>Ht(!0),onBlur:()=>setTimeout(()=>Ht(!1),300),onChange:va,onPressEnter:Sn,onCompositionStart:()=>Pr.current=!0,onCompositionEnd:()=>Pr.current=!1}),kn?E.createElement("div",{className:`iconfont icon-tingzhihuida ${tt.cancelBtn}`,onClick:sr}):E.createElement(Ae.ZP,{className:En?tt.sendBtnDisabled:tt.sendBtn,icon:E.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Sr,onClick:ur}))))):E.createElement(E.Fragment,null)},st={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Xe=Object.defineProperty,ut=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ne=(wt,yt,je)=>yt in wt?Xe(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:je}):wt[yt]=je,at=(wt,yt)=>{for(var je in yt||(yt={}))Le.call(yt,je)&&Ne(wt,je,yt[je]);if(ut)for(var je of ut(yt))ze.call(yt,je)&&Ne(wt,je,yt[je]);return wt};const Bt=wt=>React.createElement("svg",at({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},wt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var ct="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ft=(0,E.forwardRef)(({initialContent:wt,onButtonClick:yt},je)=>{const[Ve,pt]=(0,E.useState)(null),[Kt,kt]=(0,E.useState)(null),[dn,dt]=(0,E.useState)(""),[Nt,mn]=(0,E.useState)(null),he=je,se=on=>{const kn=document.elementFromPoint(10,on),wn=document.createRange();let Xn=null;const Nn=document.createTreeWalker(he.current,NodeFilter.SHOW_TEXT,{acceptNode:ur=>{const Sn=document.createRange();Sn.selectNodeContents(ur);const sr=Sn.getBoundingClientRect();return sr.top<=on&&sr.bottom>=on?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Pr="",Vr,Ar,Jn=null,va=null,Qr=null;for(;Vr=Nn.nextNode();){Vr.parentNode.getAttribute("data-select")==="disabled"&&(Ar=!0),Pr+=Vr.textContent,va||(va=Vr),Qr=Vr;const ur=document.createRange();ur.selectNodeContents(Vr);const Sn=ur.getBoundingClientRect();Jn===null&&(Jn=Sn.top)}if(va&&Qr&&!Ar){const ur=document.createRange();ur.setStart(va,0),ur.setEnd(Qr,Qr.textContent.length),mn(ur)}else mn(null);return kt(Jn-1),Ar?"":Pr.trim()};function ae(on){for(;on.parentElement&&on.parentElement.tagName.toLowerCase()!=="section";){var kn=window.getComputedStyle(on.parentElement);if(kn.pointerEvents==="none")return!0;on=on.parentElement}return!1}const ce=on=>{var kn,wn;if(ae(on.target)){kt(-1e6);return}if(((wn=(kn=document.getSelection())==null?void 0:kn.toString)==null?void 0:wn.call(kn))!==""){kt(-1e6);return}const Xn=se(on.clientY);if((Xn==null?void 0:Xn.trim())===""){kt(-1e6);return}const Nn=he.current.getBoundingClientRect();pt(Nn.left-30),dt(Xn)},me=()=>{},le=on=>{yt&&dn&&yt(dn,on.clientX,on.clientY,Nt)},ot=()=>{if(Nt){const on=window.getSelection();on.removeAllRanges(),on.addRange(Nt)}},Ht=()=>{window.getSelection().removeAllRanges()};return(0,E.useEffect)(()=>{const on=he.current;return on.addEventListener("mousemove",ce),on.addEventListener("mouseleave",me),()=>{on.removeEventListener("mousemove",ce),on.removeEventListener("mouseleave",me),Ht()}},[wt]),E.createElement("div",{className:st["hover-line-container2"]},Kt!==null&&E.createElement("div",{className:st["line-button-container"],style:{top:Kt,left:Ve},onMouseEnter:()=>{ot()},onMouseLeave:()=>{Ht(),kt(null),dt(""),mn(null)}},E.createElement("div",{className:st.button,onClick:le},E.createElement("img",{src:ct}),E.createElement("span",null,"AI\u6539\u5199"))))}),De={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},lt=({nodeRef:wt,noRestrictModal:yt})=>{const[je,Ve]=(0,E.useState)(null),[pt,Kt]=(0,E.useState)(null),[kt,dn]=(0,E.useState)(!1),[dt,Nt]=(0,E.useState)(null),[mn,he]=(0,E.useState)(!1),[se,ae]=(0,E.useState)(!1),ce=wt,me=(0,E.useRef)(null),le=(0,E.useRef)(null),[ot,Ht]=(0,E.useState)("");(0,E.useEffect)(()=>{je!=null&&je.toString()&&Ht(je==null?void 0:je.toString())},[je==null?void 0:je.toString()]);const on=()=>{const Nn=window.getSelection(),Pr=ce.current.scrollTop,Vr=ce.current.getBoundingClientRect();if(Nn.rangeCount>0&&Nn.toString().length>0){const Ar=Nn.getRangeAt(0);Ve(Ar.cloneRange());const Jn=Ar.getBoundingClientRect(),va=40;let Qr=Jn.top+Pr-5+va;Qr{if(!Nn||Nn.rangeCount===0){he(!1);return}const Vr=Nn.getRangeAt(0).getBoundingClientRect(),Ar=window.getComputedStyle(ce.current),Jn=parseInt(Ar.lineHeight),va=parseInt(Ar.paddingTop),Qr=ce.current.scrollTop,ur=ce.current.getBoundingClientRect(),Sn=Vr.top-ur.top+Qr,sr=Math.floor((Sn-va)/Jn),un=va+sr*Jn-Qr;Nt(un),he(!0)},wn=Nn=>{ce.current&&!ce.current.contains(Nn.target)&&ae(!1)};(0,E.useEffect)(()=>{const Nn=ce.current;return Nn.addEventListener("scroll",on),Nn.addEventListener("input",on),Nn.addEventListener("click",on),Nn.addEventListener("mouseup",on),Nn.addEventListener("keyup",on),Nn.addEventListener("click",on),document.addEventListener("mousedown",wn),()=>{Nn.removeEventListener("scroll",on),Nn.removeEventListener("input",on),Nn.removeEventListener("click",on),Nn.removeEventListener("mouseup",on),Nn.removeEventListener("keyup",on),Nn.removeEventListener("click",on),document.removeEventListener("mousedown",wn)}},[]);const Xn=(Nn=!0,Pr)=>{if(!je)return;const Vr=le.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),Ar=je.cloneRange(),Jn=window.getSelection();if(Jn.removeAllRanges(),Jn.addRange(Ar),Nn){Ar.deleteContents();const va=document.createElement("div");va.innerHTML=Vr;const Qr=Array.from(va.childNodes);for(;Qr.length>0;)Ar.insertNode(Qr.pop())}else{Ar.collapse(!1);const va=document.createElement("div");va.innerHTML=" "+Vr;const Qr=Array.from(va.childNodes);for(;Qr.length>0;)Ar.insertNode(Qr.pop())}Jn.removeAllRanges(),Ve(null),dn(!1),Kt(null)};return E.createElement("section",{ref:le},pt&&E.createElement("div",{ref:me,className:De.toolbar,style:{top:pt==null?void 0:pt.top,left:pt==null?void 0:pt.left}},E.createElement("div",{className:De.button,onClick:()=>dn(!0)},E.createElement("img",{src:ct}),E.createElement("span",null,"AI\u6539\u5199"))),E.createElement(At,{key:JSON.stringify(pt),noRestrictModal:yt,visible:kt,position:pt,selectText:ot,applyRefinedText:Xn,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),ce.current&&E.createElement(Ft,{ref:ce,onButtonClick:(Nn,Pr,Vr,Ar)=>{Ve(Ar),dn(!0),Ht(Nn),Kt({left:Pr,top:Vr+20})}}))}},56176:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return We}});var E=ne(59301),ve=ne(62957),xe={num:"num___VQiqB"},We=({visible:Ae,usedCount:Ue,totalCount:tt,onOk:Se,onCancel:Re})=>{const Qe=()=>Ue>0?E.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",tt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",E.createElement("span",{className:xe.num},Ue),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):E.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",tt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",E.createElement("span",{className:xe.num},Ue),"\u6B21\uFF09\u3002");return E.createElement(ve.default,{centered:!0,open:Ae,zIndex:1e4,title:"\u63D0\u793A",width:620,onCancel:Re,onOk:Se,footer:Ue>0?void 0:null},Qe())}},5524:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return be},Q:function(){return Oe}});var E=ne(59301),ve={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},xe=ne(9150),Je=ne(51802),We=ne(94239),Ae=ne(28602),Ue=ne(93287),tt=ne(42431),Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/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CffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",Re=ne(92310),Qe=ne.n(Re),qe=ne(6767),ht=ne(35349),Ge=(Pe,Ye,it)=>new Promise((pe,Ke)=>{var nt=st=>{try{At(it.next(st))}catch(Xe){Ke(Xe)}},Et=st=>{try{At(it.throw(st))}catch(Xe){Ke(Xe)}},At=st=>st.done?pe(st.value):Promise.resolve(st.value).then(nt,Et);At((it=it.apply(Pe,Ye)).next())});const Oe={contentRef:{current:null},value:null,status:!1,open:()=>Ge(void 0,null,function*(){}),close:()=>{}};var be=({className:Pe,style:Ye,onChange:it,onSuccess:pe,onCancel:Ke,onError:nt,fetchUrl:Et,noRestrictModal:At=()=>{},showEditableToolbar:st,bottomOffset:Xe=110,loadingText:ut,showEmptyData:Le=!0,onStatusChange:ze,stringTransformer:Ne,bottomContainerNode:at})=>{const[Bt,ct]=(0,E.useState)(!1),[$e,Ft]=(0,E.useState)(""),[De,ge]=(0,E.useState)(0),[lt,wt]=(0,E.useState)(!1),yt=(0,E.useRef)(null),je=(0,E.useRef)(null),Ve=(0,E.useRef)(null),pt=(0,E.useRef)(null),Kt=(0,Ue.Z)({scrollBoxRef:pt,bottomInspectRef:Ve,contentRef:je,status:lt,bottomOffset:Xe}),kt=Bt||lt;(0,E.useEffect)(()=>{it==null||it($e)},[$e]);const[dn,dt]=(0,E.useState)([]);(0,E.useEffect)(()=>{ze==null||ze({contentRef:je,status:kt,value:$e,open:Nt,close:mn})},[kt,$e]);const Nt=se=>Ge(void 0,null,function*(){ct(!0),Ft(""),dt([]),ge(0);const ae=Et;se!=null&&se.fetchUrl&&delete se.fetchUrl,yt.current=new xe.Z(`${Je.Z.API_SERVER}${ae}`,se),yield new Promise((ce,me)=>{yt.current.on("data",le=>{var ot;let{chunk:{content:Ht,type:on}}=le;wt(!0),on==="text"&&Ft(kn=>Ne?Ne(kn+Ht):kn+Ht),on==="knowledge"&&(console.log("---knowledge-",le==null?void 0:le.chunk),dt((ot=le==null?void 0:le.chunk)==null?void 0:ot.content))}),yt.current.on("done",()=>{ce()}),yt.current.on("error",le=>{Object.prototype.toString.call(le)==="[object Object]"&&le.status===-1&&qe.ZP.warning((le==null?void 0:le.message)||""),ce(),nt==null||nt(le)}),yt.current.on("cancelled",()=>{ce(),Ke==null||Ke()}),yt.current.startStream()}),ct(!1)}),mn=()=>{var se,ae;ge(1),(ae=(se=yt.current)==null?void 0:se.cancelRequest)==null||ae.call(se),ct(!1),wt(!1)},he=(0,E.useMemo)(()=>je.current?E.createElement(Ae.Z,{noRestrictModal:At,nodeRef:je}):E.createElement(E.Fragment,null),[je.current]);return E.createElement(E.Fragment,null,E.createElement("div",{className:Qe()(ve.container,Pe),style:Ye,ref:pt},E.createElement("div",{ref:je,className:ve.liWrap,contentEditable:!kt},$e&&E.createElement(We.Z,{cancelIndex:De,streamingStatus:Bt,loadImage:!1,onFinish:()=>Ge(void 0,null,function*(){ge(0),setTimeout(()=>wt(!1),0),pe==null||pe($e)}),value:$e}),(dn==null?void 0:dn.length)>0&&E.createElement(ht.Z,{Filelist:dn})),!$e&&!kt&&E.createElement("div",{className:ve.imgBox},E.createElement("img",{width:56,src:Se}),E.createElement("span",null,"\u9884\u89C8\u533A")),Le&&kt&&E.createElement(tt.Z,{text:ut}),!Kt&&E.createElement("div",{className:ve.backBottom,onClick:()=>{pt.current.scrollTop=pt.current.scrollHeight}},E.createElement("i",{className:"iconfont icon-huidaodibu"})),E.createElement("div",{ref:Ve}),at),!kt&&st&&he)}},42431:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Je}});var E=ne(59301),ve={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Je=({text:We})=>E.createElement("div",null,E.createElement("div",{className:ve.loading},E.createElement("div",{className:ve.dot}),E.createElement("div",{className:ve.dot}),E.createElement("div",{className:ve.dot})),!!We&&E.createElement("div",{className:"mt5"},We))},69359:function(_t,Pt,ne){"use strict";ne.d(Pt,{o:function(){return E}});const E=ve=>(ve=ve.replace(new RegExp("(?$1'),ve=ve.replace(new RegExp("(?tt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},E.createElement("button",null,"\u590D\u5236")),!mn&&Qr[1]==="html"&&ot&&E.createElement("button",{className:Ue.runCode,onClick:()=>{ce(lt({},Et(lt({},ae),{open:++ae.open,defaultValue:ur,language:Qr[1]})))}},"\u8FD0\u884CHTML"),E.createElement(xe.Z,lt({wrapLongLines:!0,style:We.Z,language:Qr[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},va),ur))},img({node:Xn}){var Nn;const Pr=(Nn=Xn.properties)==null?void 0:Nn.src;return E.createElement(Se.Z,{src:Pr,width:320,"data-text":Pr,onLoad:()=>ct&&setTimeout(()=>kn(),500)})},a:Xn=>{var Nn=Xn,{node:Pr}=Nn,Vr=yt(Nn,["node"]);return E.createElement("a",Et(lt({},Vr),{target:"_blank",rel:"noopener noreferrer"}))}}},ot?he:`${he}__`)),[he,ot]);return E.createElement(E.Fragment,null,E.createElement(Te.Z,{defaultValue:ae.defaultValue,open:ae.open,language:ae.language,height:ae.height,onChange:(Xn,Nn)=>{se(he.replaceAll(Nn,Xn))},onDynamic:Nt}),wn)}},89300:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(qe,pt,Ge)=>pt in qe?ve(qe,pt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):qe[pt]=Ge,Ue=(qe,pt)=>{for(var Ge in pt||(pt={}))Je.call(pt,Ge)&&Ae(qe,Ge,pt[Ge]);if(xe)for(var Ge of xe(pt))We.call(pt,Ge)&&Ae(qe,Ge,pt[Ge]);return qe},tt=(qe,pt)=>{var Ge={};for(var Oe in qe)Je.call(qe,Oe)&&pt.indexOf(Oe)<0&&(Ge[Oe]=qe[Oe]);if(qe!=null&&xe)for(var Oe of xe(qe))pt.indexOf(Oe)<0&&We.call(qe,Oe)&&(Ge[Oe]=qe[Oe]);return Ge};const Se=ne(20441),He={};Se.keys().forEach(qe=>{const pt=qe.replace("./","").replace(".svg","");He[pt]=Se(qe)});const Qe=qe=>{var pt=qe,{filename:Ge}=pt,Oe=tt(pt,["filename"]),Be;const be=((Be=Ge==null?void 0:Ge.split(".").pop())==null?void 0:Be.toLowerCase())||"unknown",Ne=He[be]||He.default;return E.createElement("img",Ue({src:Ne,alt:be},Oe))};_t.Z=Qe},35349:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return pt}});var E=ne(59301),ve={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},xe=ne(37285),Je=ne(89300),We=ne(25399),Ae=ne(37639),Ue=ne(44977),tt=ne(70892),Se=(Ge,Oe,Be)=>new Promise((be,Ne)=>{var Ye=Ke=>{try{pe(Be.next(Ke))}catch(nt){Ne(nt)}},it=Ke=>{try{pe(Be.throw(Ke))}catch(nt){Ne(nt)}},pe=Ke=>Ke.done?be(Ke.value):Promise.resolve(Ke.value).then(Ye,it);pe((Be=Be.apply(Ge,Oe)).next())}),Qe=({item:Ge})=>{var Oe,Be,be,Ne,Ye;const[it,pe]=(0,E.useState)(!1),[Ke,nt]=(0,E.useState)({}),bt=(0,E.useRef)(),[At,ut]=(0,E.useState)(!1);let Xe=[{name:"subject",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-kecheng1"})},{name:"shixun",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"challenge",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"document",icon:E.createElement(Je.Z,{filename:Ge==null?void 0:Ge.name,style:{width:16,height:16,marginRight:5}})}];return E.createElement("div",{className:ve.f_l_c},E.createElement(We.Z,{title:Ge==null?void 0:Ge.name},E.createElement(Ae.Z,{placement:"top",content:E.createElement("div",null,E.createElement(xe.Z,null),E.createElement("pre",{className:ve.preclass,style:{maxWidth:600,maxHeight:400}},(Ge==null?void 0:Ge.type)==="document"&&((Oe=Ge==null?void 0:Ge.contents)==null?void 0:Oe.toString()),(Ge==null?void 0:Ge.type)!=="document"&&E.createElement("a",{target:"_blank",href:(Be=Ge==null?void 0:Ge.contents)==null?void 0:Be.toString()},(be=Ge==null?void 0:Ge.contents)==null?void 0:be.toString()))),title:E.createElement("div",null,(Ne=Xe==null?void 0:Xe.find(ht=>(ht==null?void 0:ht.name)===Ge.type))==null?void 0:Ne.icon,Ge==null?void 0:Ge.name),trigger:"click",open:it,onOpenChange:ht=>Se(void 0,null,function*(){var Pe;if(Ge!=null&&Ge.deployable_type){let ze={};(Ge==null?void 0:Ge.deployable_type)=="Course"?ze.course_id=Ge==null?void 0:Ge.deployable_id:ze.subject_id=Ge==null?void 0:Ge.deployable_id;let Te=yield(0,tt.ZP)("/api/users/get_permissions.json",{method:"get",params:ze});if(!((Pe=Te==null?void 0:Te.data)!=null&&Pe.manager)){pe(ht);return}}if(!(Ge!=null&&Ge.web_url))pe(ht);else{const Pt=new URL(Ge==null?void 0:Ge.web_url).pathname.split("/").pop().split(".").pop();if(Pt==="txt"){ut(!0);let st=yield(0,tt.ZP)(Ge==null?void 0:Ge.web_url,{method:"get"},!1,!1,!0);ut(!1);const Ft=new TextDecoder("utf-8").decode(st);bt.current=Ft,nt({file_type:"txt",url:Ge==null?void 0:Ge.web_url})}else nt({file_type:["docx","doc"].includes(Pt)?"office":Pt,url:Ge==null?void 0:Ge.web_url})}})},E.createElement("div",{className:ve.officediv},(Ye=Xe==null?void 0:Xe.find(ht=>(ht==null?void 0:ht.name)===Ge.type))==null?void 0:Ye.icon,Ge==null?void 0:Ge.name))),E.createElement(Ue.Z,{close:!0,monacoEditor:{value:bt.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:Ke==null?void 0:Ke.url,type:Ke==null?void 0:Ke.file_type,disabledDownload:!0,onClose:()=>nt({})}))},pt=({Filelist:Ge})=>E.createElement("div",null,E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),E.createElement(xe.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),E.createElement("div",{className:ve.f_l_c},Ge==null?void 0:Ge.map(Oe=>E.createElement(Qe,{item:Oe}))))},38774:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Xe}});var E=ne(59301),ve=ne(6767),xe=ne(36207),Je=ne(77019),We=ne(62957),Ae=ne(37568),Ue=ne(94968),tt=ne(25399),Se=ne(82326),He=ne(5269),Qe=ne(4875),qe={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},pt=ne(86475),Ge=ne(51802),Oe=ne(64047),Be=ne(70892),be=ne(69359),Ne=ne(95203),Ye=ne(91858),it=ne(49004),pe=ne(56176),Ke=ne(5524),n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QOGc/hrPcs47R3HoqdSNI0cwqrV7/EExsH6LRqIeWRsAVB0iNXO5P2BQvItWhWV0wdyjF/82aSbgkVSYb3+hxnD7NoblVbOs05Z339vNfttvsTxpp46e+x8GRBMfTwlHWPtX+jZ+fgeS+/PJzY3VUkLNm4YS1JK8n69q1sH2inoEaotmvJZOAT71/FGw47ADuVonVuPWvu3c0TT3ejogAVCFI1VTy6fZjISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",bt=ne(88634),At=(ht,Pe,ze)=>new Promise((Te,rt)=>{var Pt=Ft=>{try{et(ze.next(Ft))}catch(De){rt(De)}},st=Ft=>{try{et(ze.throw(Ft))}catch(De){rt(De)}},et=Ft=>Ft.done?Te(Ft.value):Promise.resolve(Ft.value).then(Pt,st);et((ze=ze.apply(ht,Pe)).next())}),Xe=(0,E.forwardRef)(({onUpdateNum:ht,onSave:Pe},ze)=>{var Te;const rt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 +\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[Pt,st]=(0,E.useState)(!1),[et,Ft]=(0,E.useState)([]),[De,ge]=(0,E.useState)(null),[lt,Et]=(0,E.useState)([]),[yt,Ze]=(0,E.useState)(0),[Ve,ft]=(0,E.useState)(0),[Kt,kt]=(0,E.useState)(!1),[dn,ct]=(0,E.useState)(""),[Nt,mn]=(0,E.useState)(0),[he,se]=(0,E.useState)(0),[ae,ce]=(0,E.useState)(0),[me,le]=(0,E.useState)(0),[ot,Ht]=(0,E.useState)(0),[on,kn]=(0,E.useState)(0),[wn,Xn]=(0,E.useState)(0),[Nn,Pr]=(0,E.useState)(0),Vr=(0,bt.useParams)(),[Ar,Jn]=(0,E.useState)(),[va,Qr]=(0,E.useState)([]),[ur,Sn]=(0,E.useState)(Ke.Q),{contentRef:sr,value:un,status:Er,open:Br,close:Xa}=ur,Da=(0,it.Z)({contentRef:sr,status:Er}),{openProgress:Sr,closeProgress:En,CreateProgressModal:nr,progressOpen:$r}=(0,Ye.Z)();(0,E.useEffect)(()=>{De&&Ii(),De===!1&&(Xa(),ht==null||ht(),Ft([]),ct(""),mn(0),se(0),ce(0),le(0),Ht(0),kn(0),Xn(0),Pr(0))},[De]);const Aa=()=>{ge(!0)};(0,E.useImperativeHandle)(ze,()=>({onClick:Aa}));const ga=ea=>{kt(!0),Ze(ea),ft(0)},Ei=ea=>At(void 0,null,function*(){const Ir=ea.name.split(".").slice(-1)[0].toLowerCase();if(["docx","doc","pdf","png","jpg"].indexOf(Ir)==-1)return ve.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject();const Ut=["docx","doc","pdf"],Un=["png","jpg"];return Ut.indexOf(Ir)!=-1&&ea.size/1024/1024>100?(ve.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ft([]),Promise.reject()):Un.indexOf(Ir)!=-1&&ea.size/1024/1024>10?(ve.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Ft([]),Promise.reject()):!0}),Ii=()=>At(void 0,null,function*(){var ea;const Ir=yield(0,Be.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Ir.status===0&&(Ze(Ir.total_number),ft(Ir.remaining_number));let qt=yield(0,Be.ZP)("/api/ai/agents/library_resource_list.json",{method:"get"});(qt==null?void 0:qt.status)===0&&Qr((ea=qt==null?void 0:qt.data)==null?void 0:ea.map(Ut=>({value:Ut==null?void 0:Ut.coze_id,disabled:!(Ut!=null&&Ut.have_file),label:E.createElement("span",null,Ut==null?void 0:Ut.name,!(Ut!=null&&Ut.have_file)&&"\uFF08\u5185\u5BB9\u4E3A\u7A7A\uFF09")})))}),Ja=ea=>(ea=ea||"",ea=String(ea),ea=ea.replace(/\s+/g,""),ea),ri=(ea=!0)=>At(void 0,null,function*(){var Ir,qt;const Ut=[{name:"\u5355\u9009\u9898",num:Nt||0},{name:"\u591A\u9009\u9898",num:he||0},{name:"\u5224\u65AD\u9898",num:ae||0},{name:"\u586B\u7A7A\u9898",num:me||0},{name:"\u7B80\u7B54\u9898",num:ot||0},{name:"\u7EC4\u5408\u9898",num:Nn||0},{name:"\u7F16\u7A0B\u9898",num:on||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:wn||0}];if(ea){if(Ja(dn)){if(dn.length>1e3){ve.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{ve.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Ja(dn)&&!(et!=null&&et.length)){ve.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const Dn=Ut.reduce((rr,Rn)=>rr+Rn.num,0);if(Dn===0){ve.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(Dn>50){ve.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(yt!==-1){kt(!0);return}}kt(!1);const Lt={scene_type:6,request_identifier:Math.random(),file_id:(qt=(Ir=et[0])==null?void 0:Ir.response)==null?void 0:qt.id,content:dn,count_arr:Ut.map(Dn=>Dn.num).join(","),course_id:Vr==null?void 0:Vr.coursesId,coze_id:Ar};yield Br(Lt),Ii()}),hi=()=>At(void 0,null,function*(){const ea=Da();if(Pe){ge(!1),Pe(ea);return}Sr(),st(!0),Et([]);const Ir=new FormData;Ir.append("html",ea);const qt=yield(0,Be.ZP)("/api/intelligent_imports/import.json",{method:"post",body:Ir},!0);if((qt==null?void 0:qt.status)===0)if(qt!=null&&qt.data){En(100),Et(qt==null?void 0:qt.data);return}else ve.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");st(!1),En()}),$i=()=>At(void 0,null,function*(){const ea=Da();(0,Ne.RG)(ea)}),Ha=["uploading","error"].includes((Te=et==null?void 0:et[0])==null?void 0:Te.status);return E.createElement(E.Fragment,null,E.createElement(pe.Z,{visible:Kt,totalCount:yt,usedCount:Ve,onCancel:()=>kt(!1),onOk:()=>ri(!1)}),E.createElement(xe.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:E.createElement("div",{className:qe.extraHeader},E.createElement(Je.Z,{align:"middle"},!Er&&!!un&&E.createElement(E.Fragment,null,E.createElement(pt.op,{onClick:hi,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),E.createElement(pt.op,{onClick:$i,shape:"default",type:"text"},E.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),E.createElement("i",{onClick:()=>{const ea=Ir=>{We.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ir,onOk:()=>{ge(!1)}})};if(Er){ea("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else un?ea("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ge(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:De},E.createElement("div",{className:qe.wrap},E.createElement("div",{className:qe.left},E.createElement("div",{className:qe.tip},E.createElement("img",{src:nt}),E.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),E.createElement("div",{className:"mb10 mt20 c-black"},E.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),E.createElement(Ae.default.TextArea,{style:{height:160},className:"mb20",value:dn,placeholder:rt,onChange:ea=>{ct(ea.target.value)}}),E.createElement(Ue.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${Ge.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:et,withCredentials:!0,data:{upload_type:1},beforeUpload:Ei,onChange:({file:ea})=>{var Ir,qt;if(ea.status==="removed")return;ea.status==="done"&&((Ir=ea==null?void 0:ea.response)==null?void 0:Ir.status)!==0&&(ea.status="error",ea.response=(qt=ea==null?void 0:ea.response)==null?void 0:qt.message),Ft([ea]);const Ut=ea.name.split(".").slice(-1)[0].toLowerCase(),Un=["docx","doc","pdf"],Lt=["png","jpg"];Un.indexOf(Ut)!=-1&&ea.size/1024/1024>100&&Ft([]),Lt.indexOf(Ut)!=-1&&ea.size/1024/1024>10&&Ft([])},onRemove:()=>Ft([])},E.createElement(tt.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\u4E0D\u8D85\u8FC7100M,\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},E.createElement(pt.op,{style:{borderRadius:2}},E.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),E.createElement("div",{className:"c-black mt20"},E.createElement("div",{className:"mb10 c-black"},E.createElement("b",null,"\u77E5\u8BC6\u5E93 "),E.createElement(Se.default,{onChange:ea=>{Jn(ea)},style:{marginLeft:10,width:"80%"},options:va}))),E.createElement("div",{className:"c-black mt20"},E.createElement("div",{className:"mb10 c-black"},E.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),E.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",E.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),E.createElement(Je.Z,{style:{gap:16}},E.createElement(He.Z,null,E.createElement("label",null,"\u5355\u9009\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:Nt,onChange:mn,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u591A\u9009\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:he,onChange:se,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u5224\u65AD\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:ae,onChange:ce,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u586B\u7A7A\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:me,onChange:le,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u7B80\u7B54\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:ot,onChange:Ht,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u7EC4\u5408\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:Nn,onChange:Pr,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u7F16\u7A0B\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:on,onChange:kn,style:{marginLeft:"8px"}})),E.createElement(He.Z,null,E.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),E.createElement(Qe.Z,{min:0,max:10,value:wn,onChange:Xn,style:{marginLeft:"8px"}})))),Er?E.createElement("div",{onClick:Xa,className:qe.bottomBtn},E.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Ha?E.createElement("div",{className:`${qe.bottomBtn} ${qe.disabled}`},E.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):E.createElement("div",{onClick:()=>{ri()},className:qe.bottomBtn},E.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),E.createElement(Ke.Z,{onStatusChange:Sn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!$r,noRestrictModal:ga,stringTransformer:be.o,onError:ea=>{Object.prototype.toString.call(ea)==="[object Object]"&&ea.status===-9&&ga(ea.data)}}))),E.createElement(xe.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Pt},E.createElement(Je.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},E.createElement("img",{src:ne(36413),alt:"\u667A\u80FD\u51FA\u9898"}),E.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),E.createElement(Oe.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:lt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>st(!1),onSuccess:()=>{st(!1),ge(!1)}}),E.createElement("div",{style:{height:70}})),nr("\u5904\u7406\u4E2D"))})},93287:function(Bt,_t,ne){"use strict";var E=ne(59301);const ve=({scrollBoxRef:xe,bottomInspectRef:Je,contentRef:We,status:Ae,rootMargin:Ue="70px",bottomOffset:tt=110})=>{const[Se,He]=(0,E.useState)(!0),Qe=(0,E.useRef)(!1);return(0,E.useEffect)(()=>{if(!xe.current||!Je.current)return;const qe=new IntersectionObserver(([pt])=>{var Ge,Oe,Be,be;if(!document.contains(pt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Ge=pt.rootBounds)==null?void 0:Ge.width)===0&&((Oe=pt.rootBounds)==null?void 0:Oe.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((Be=pt.boundingClientRect)==null?void 0:Be.width)===0&&((be=pt.boundingClientRect)==null?void 0:be.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}He(pt.isIntersecting)},{root:xe.current,rootMargin:Ue,threshold:0});return qe.observe(Je.current),()=>{qe.disconnect()}},[xe.current,Je.current,Ue]),(0,E.useEffect)(()=>{if(!Ae)return;const qe=xe.current,pt=We.current;Qe.current=!1;let Ge=qe.scrollTop;const Oe=()=>{const{scrollTop:be,scrollHeight:Ne,clientHeight:Ye}=qe;be>Ge?be+Ye>=Ne-tt&&(qe.scrollTop=qe.scrollHeight,Qe.current=!1):be{Qe.current||(qe.scrollTop=qe.scrollHeight)});return Be.observe(pt),()=>{setTimeout(()=>{Be.unobserve(pt)},250),qe.removeEventListener("scroll",Oe)}},[Ae]),Se};_t.Z=ve},49004:function(Bt,_t,ne){"use strict";var E=ne(59301);const ve=({contentRef:xe,status:Je})=>((0,E.useEffect)(()=>{!Je&&(xe!=null&&xe.current)&&xe.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Ue=>{Ue.tagName.toLowerCase()==="code"?Ue.parentElement&&(Ue.parentElement.contentEditable="false"):Ue.tagName.toLowerCase()==="mathx"&&(Ue.contentEditable="false")})},[Je]),(Ae=!1)=>{const Ue=Qe=>{const qe={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Qe.replace(/&[^;]+;/g,pt=>qe[pt]||pt)};if(!xe.current)return"";const tt=xe.current.cloneNode(!0);tt.querySelectorAll("code[data-text], mathx[data-text]").forEach(Qe=>{let qe=Qe.getAttribute("data-text");Qe.tagName.toLowerCase()==="code"?qe=qe.replace(/```.*\n|\n```/g,""):Qe.tagName.toLowerCase()==="mathx"&&(qe=`$$${qe}$$`);const pt=document.createTextNode(qe);Qe.parentNode.replaceChild(pt,Qe)}),Ae&&tt.querySelectorAll('[data-select="disabled"]').forEach(qe=>{var pt;const Ge=qe.textContent||"",Oe=document.createTextNode(Ge+` +`);(pt=qe.parentNode)==null||pt.replaceChild(Oe,qe)});let He=tt.innerHTML;return Ae||(He=He.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),He=He.replace(/

/g,""),He=He.replace(/<\/p>/g,` +`),He=He.replace(/
/g,` +`),He=He.replace(/\r\n/g,` +`),He=He.replace(/<[^>]*>/g,""),He=Ue(He),He});_t.Z=ve},91858:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return qe}});var E=ne(59301),ve=ne(62957),xe=ne(77019),Je=ne(89787),We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1A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uoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",tt={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Se=ne(59301);const He=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var qe=()=>{const[pt,Ge]=(0,E.useState)(0),[Oe,Be]=(0,E.useState)(!1),[be,Ne]=(0,E.useState)(!0),Ye=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(be)return;const At=()=>{Ge(ut=>ut>=99?(clearInterval(Ye.current),99):ut+1)};return Ye.current=setInterval(At,5e4/99),()=>clearInterval(Ye.current)},[be]);const it=()=>{Ge(0),Be(!0),Ne(!1)},pe=(At=0)=>{Ne(!0),Ge(At),Be(!1)},Ke=At=>{const ut=At/1048576;let Xe;return ut<=.3?Xe=3:ut<=.5?Xe=5:ut<=1?Xe=10:ut<=2?Xe=20:ut<=3?Xe=30:ut<=10?Xe=ut*10:Xe=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Xe}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},nt=()=>Se.createElement("span",{className:tt.dotLoading},Se.createElement("span",null,"."),Se.createElement("span",null,"."),Se.createElement("span",null,"."));return{progress:pt,progressOpen:Oe,openProgress:it,closeProgress:pe,toggleLock:()=>Ne(At=>!At),CreateProgressModal:(At=He,ut)=>(typeof At=="string"&&(At=[At,At,At]),Se.createElement(ve.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:Oe,title:null,footer:null,width:500,afterClose:()=>Ge(0)},Se.createElement(xe.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},pt<=30&&Se.createElement(Se.Fragment,null,Se.createElement("img",{src:We,alt:"Step 1"}),Se.createElement("div",{className:"mt20 c-light-primary"},At[0],nt())),pt>30&&pt<60&&Se.createElement(Se.Fragment,null,Se.createElement("img",{src:Ae,alt:"Step 2"}),Se.createElement("div",{className:"mt20 c-light-primary"},At[1],nt())),pt>=60&&Se.createElement(Se.Fragment,null,Se.createElement("img",{src:Ue,alt:"Step 3"}),Se.createElement("div",{className:"mt20 c-light-primary"},At[2],nt())),Se.createElement(Je.Z,{className:tt.progress,status:"active",style:{width:"auto"},size:[300,8],percent:pt}),!!ut&&Se.createElement("div",{className:"c-grey-999"},Ke(ut)))))}}},28602:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return lt}});var E=ne(59301),ve=ne(75727),xe=ne(6767),Je=ne(25399),We=ne(37568),Ae=ne(7939),Ue=ne(94239),tt={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},He=({position:Et,children:yt})=>{const{left:Ze=0,top:Ve=0}=Et||{},[ft,Kt]=(0,E.useState)(Ze),[kt,dn]=(0,E.useState)(Ve),ct=(0,E.useRef)(null),Nt=()=>{if(ct.current){const mn=ct.current.offsetWidth,he=ct.current.offsetHeight,se=window.innerWidth,ae=window.innerHeight;let ce=Ze,me=Ve;Ze+mn>se&&(ce=se-mn),ce<0&&(ce=0),Ve+he>ae&&(me=ae-he),me<0&&(me=0),Kt(ce),dn(me)}};return(0,E.useEffect)(()=>{if(!ct.current||!Et)return;const mn=new ResizeObserver(()=>{Nt()});return mn.observe(ct.current),()=>{mn.disconnect()}},[Ze,Ve,Et]),(0,E.useEffect)(()=>{Et&&Nt()},[Ze,Ve,Et]),Et?E.createElement("div",{ref:ct,style:{position:"fixed",left:`${ft}px`,top:`${kt}px`,zIndex:1050}},yt):null},Qe=ne(51802),qe=ne(56102),pt=ne(9150),Ge=Object.defineProperty,Oe=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(Et,yt,Ze)=>yt in Et?Ge(Et,yt,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Et[yt]=Ze,pe=(Et,yt)=>{for(var Ze in yt||(yt={}))Ne.call(yt,Ze)&&it(Et,Ze,yt[Ze]);if(be)for(var Ze of be(yt))Ye.call(yt,Ze)&&it(Et,Ze,yt[Ze]);return Et},Ke=(Et,yt)=>Oe(Et,Be(yt)),nt=(Et,yt,Ze)=>new Promise((Ve,ft)=>{var Kt=ct=>{try{dn(Ze.next(ct))}catch(Nt){ft(Nt)}},kt=ct=>{try{dn(Ze.throw(ct))}catch(Nt){ft(Nt)}},dn=ct=>ct.done?Ve(ct.value):Promise.resolve(ct.value).then(Kt,kt);dn((Ze=Ze.apply(Et,yt)).next())}),At=({visible:Et,position:yt,selectText:Ze,applyRefinedText:Ve,fetchUrl:ft,noRestrictModal:Kt})=>{var kt;const[dn,ct]=(0,E.useState)(!1),[Nt,mn]=(0,E.useState)([]),[he,se]=(0,E.useState)(""),[ae,ce]=(0,E.useState)(1),[me,le]=(0,E.useState)(""),[ot,Ht]=(0,E.useState)(!1),on=(0,E.useRef)(null),[kn,wn]=(0,E.useState)(!1),[Xn,Nn]=(0,E.useState)(0),Pr=(0,E.useRef)(!1),Vr=((kt=Nt==null?void 0:Nt[(Nt==null?void 0:Nt.length)-1])==null?void 0:kt.loading)===!0;(0,E.useEffect)(()=>{if(Et){ce(1);return}wn(!1),ct(!1),Ar(),Nn(0),mn([]),ce(0)},[Et]);const Ar=()=>{var nr,$r;se(""),le(""),($r=(nr=on.current)==null?void 0:nr.cancelRequest)==null||$r.call(nr)},Jn=(...nr)=>nt(void 0,[...nr],function*($r="",Aa=Nt){const ga=Date.now(),Ei=[...Aa,{text:$r,key:ga,sender:"user",show:!0},{loading:!0,key:ga,sender:"AI",show:!0}];ce(2),mn(Ei);const Ii=Qr(Aa),Ja={no_record_times:!0,prompt:$r,history:Ii};on.current=new pt.Z(Qe.Z.API_SERVER+ft,Ja),yield new Promise(ri=>{on.current.on("data",hi=>{const{chunk:{msg:$i},full:Ha}=hi,ea=$i==="error";wn(!0),le(Er(Ha)),mn(Ir=>Ir.map((qt,Ut)=>Ut===Ir.length-1?Ke(pe({},qt),{text:Ha,loading:!1,error:ea}):qt))}),on.current.on("done",()=>ri()),on.current.on("error",hi=>{const $i="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(hi)==="[object Object]"&&hi.status===-9&&(ce(1),Kt(hi.data)),mn(Ha=>Ha.map((ea,Ir)=>Ir===Ha.length-1?Ke(pe({},ea),{text:$i,loading:!1,error:!0}):ea)),ri()}),on.current.on("cancelled",()=>ri()),on.current.startStream()}),ct(!1)}),va=nr=>{se(nr.target.value)},Qr=nr=>nr.reduce((Aa,ga)=>{if(ga.sender==="user"){const Ei=nr.find(Ii=>Ii.key===ga.key&&Ii.sender==="AI");Ei&&(Ei!=null&&Ei.text)&&!(Ei!=null&&Ei.error)&&Aa.push({question:ga.text,answer:Ei.text})}return Aa},[]),ur=()=>{if(En)return;const nr=Br("\u6539\u5199");Ar(),ct(!0),Jn(nr)},Sn=nr=>{if(nr.key==="Enter"&&!nr.shiftKey){if(nr.preventDefault(),Pr.current||Sr)return;ur()}},sr=()=>{var nr,$r;Nn(Aa=>Aa+1),($r=(nr=on.current)==null?void 0:nr.cancelRequest)==null||$r.call(nr),ct(!1),wn(!1)},un=[{key:"1",label:E.createElement("span",null," ",E.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:E.createElement("span",null,E.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:E.createElement("span",null," ",E.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Er=(nr="")=>{const $r=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Aa,ga)=>{$r.push(`\u7B54\u6848${ga+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ga+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ga+1})\u8F93\u51FA\uFF1A`)}),$r.forEach(Aa=>{const ga=new RegExp(Aa,"g");nr=nr.replace(ga,`**${Aa}** `)}),nr},Br=nr=>nr==="\u6539\u5199"?`${he}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Ze}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Ze}\uFF0C${nr}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Xa=nr=>{let $r="";nr.key==="1"&&($r=Br("\u6DA6\u8272")),nr.key==="2"&&($r=Br("\u6269\u5199")),nr.key==="3"&&($r=Br("\u7F29\u5199")),Ar(),ct(!0),Jn($r)},Da=()=>{const nr=Nt.splice(Nt.length-2),{text:$r}=(nr==null?void 0:nr[0])||{};Ar(),ct(!0),Jn($r,Nt)},Sr=dn||kn,En=(he==null?void 0:he.trim())==="";return Et?E.createElement(ve.Z,{open:En&&!Sr&&(ot||!me),overlayStyle:{minWidth:200},menu:{items:un,onClick:Xa}},E.createElement(He,{position:yt},E.createElement("div",{className:tt.wrap},ae===2&&E.createElement(E.Fragment,null,E.createElement("div",{className:tt.chatContainer},Vr&&E.createElement("div",{className:tt.loadingWrp},E.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),E.createElement("div",{className:"ai-loading"})),me&&E.createElement(Ue.Z,{cancelIndex:Xn,streamingStatus:dn,loadImage:!1,onFinish:()=>nt(void 0,null,function*(){Nn(0),setTimeout(()=>wn(!1),0)}),value:me})),E.createElement("div",{className:tt.btnContainer},E.createElement("div",{onClick:()=>Ve(!0,me),className:tt.btn,style:{padding:"0 16px",width:"initial"}},E.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),E.createElement("div",{onClick:()=>Ve(!1,me),className:tt.btn,style:{padding:"0 16px",width:"initial"}},E.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),E.createElement(qe.CopyToClipboard,{text:me,onCopy:()=>xe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},E.createElement(Je.Z,{title:"\u590D\u5236"},E.createElement("div",{className:tt.btn,style:{marginLeft:"auto"}},E.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),E.createElement(Je.Z,{title:"\u91CD\u65B0\u751F\u6210"},E.createElement("div",{onClick:Da,className:tt.btn},E.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),E.createElement(Je.Z,{title:"\u5220\u9664"},E.createElement("div",{onClick:()=>{ce(1),Ar(),mn([])},className:tt.btn},E.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),E.createElement("div",{className:tt.inputContainer},E.createElement(We.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:he,bordered:!1,onFocus:()=>Ht(!0),onBlur:()=>setTimeout(()=>Ht(!1),300),onChange:va,onPressEnter:Sn,onCompositionStart:()=>Pr.current=!0,onCompositionEnd:()=>Pr.current=!1}),kn?E.createElement("div",{className:`iconfont icon-tingzhihuida ${tt.cancelBtn}`,onClick:sr}):E.createElement(Ae.ZP,{className:En?tt.sendBtnDisabled:tt.sendBtn,icon:E.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Sr,onClick:ur}))))):E.createElement(E.Fragment,null)},ut={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Xe=Object.defineProperty,ht=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Te=(Et,yt,Ze)=>yt in Et?Xe(Et,yt,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Et[yt]=Ze,rt=(Et,yt)=>{for(var Ze in yt||(yt={}))Pe.call(yt,Ze)&&Te(Et,Ze,yt[Ze]);if(ht)for(var Ze of ht(yt))ze.call(yt,Ze)&&Te(Et,Ze,yt[Ze]);return Et};const Pt=Et=>React.createElement("svg",rt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Et),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var st="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ft=(0,E.forwardRef)(({initialContent:Et,onButtonClick:yt},Ze)=>{const[Ve,ft]=(0,E.useState)(null),[Kt,kt]=(0,E.useState)(null),[dn,ct]=(0,E.useState)(""),[Nt,mn]=(0,E.useState)(null),he=Ze,se=on=>{const kn=document.elementFromPoint(10,on),wn=document.createRange();let Xn=null;const Nn=document.createTreeWalker(he.current,NodeFilter.SHOW_TEXT,{acceptNode:ur=>{const Sn=document.createRange();Sn.selectNodeContents(ur);const sr=Sn.getBoundingClientRect();return sr.top<=on&&sr.bottom>=on?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Pr="",Vr,Ar,Jn=null,va=null,Qr=null;for(;Vr=Nn.nextNode();){Vr.parentNode.getAttribute("data-select")==="disabled"&&(Ar=!0),Pr+=Vr.textContent,va||(va=Vr),Qr=Vr;const ur=document.createRange();ur.selectNodeContents(Vr);const Sn=ur.getBoundingClientRect();Jn===null&&(Jn=Sn.top)}if(va&&Qr&&!Ar){const ur=document.createRange();ur.setStart(va,0),ur.setEnd(Qr,Qr.textContent.length),mn(ur)}else mn(null);return kt(Jn-1),Ar?"":Pr.trim()};function ae(on){for(;on.parentElement&&on.parentElement.tagName.toLowerCase()!=="section";){var kn=window.getComputedStyle(on.parentElement);if(kn.pointerEvents==="none")return!0;on=on.parentElement}return!1}const ce=on=>{var kn,wn;if(ae(on.target)){kt(-1e6);return}if(((wn=(kn=document.getSelection())==null?void 0:kn.toString)==null?void 0:wn.call(kn))!==""){kt(-1e6);return}const Xn=se(on.clientY);if((Xn==null?void 0:Xn.trim())===""){kt(-1e6);return}const Nn=he.current.getBoundingClientRect();ft(Nn.left-30),ct(Xn)},me=()=>{},le=on=>{yt&&dn&&yt(dn,on.clientX,on.clientY,Nt)},ot=()=>{if(Nt){const on=window.getSelection();on.removeAllRanges(),on.addRange(Nt)}},Ht=()=>{window.getSelection().removeAllRanges()};return(0,E.useEffect)(()=>{const on=he.current;return on.addEventListener("mousemove",ce),on.addEventListener("mouseleave",me),()=>{on.removeEventListener("mousemove",ce),on.removeEventListener("mouseleave",me),Ht()}},[Et]),E.createElement("div",{className:ut["hover-line-container2"]},Kt!==null&&E.createElement("div",{className:ut["line-button-container"],style:{top:Kt,left:Ve},onMouseEnter:()=>{ot()},onMouseLeave:()=>{Ht(),kt(null),ct(""),mn(null)}},E.createElement("div",{className:ut.button,onClick:le},E.createElement("img",{src:st}),E.createElement("span",null,"AI\u6539\u5199"))))}),De={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},lt=({nodeRef:Et,noRestrictModal:yt})=>{const[Ze,Ve]=(0,E.useState)(null),[ft,Kt]=(0,E.useState)(null),[kt,dn]=(0,E.useState)(!1),[ct,Nt]=(0,E.useState)(null),[mn,he]=(0,E.useState)(!1),[se,ae]=(0,E.useState)(!1),ce=Et,me=(0,E.useRef)(null),le=(0,E.useRef)(null),[ot,Ht]=(0,E.useState)("");(0,E.useEffect)(()=>{Ze!=null&&Ze.toString()&&Ht(Ze==null?void 0:Ze.toString())},[Ze==null?void 0:Ze.toString()]);const on=()=>{const Nn=window.getSelection(),Pr=ce.current.scrollTop,Vr=ce.current.getBoundingClientRect();if(Nn.rangeCount>0&&Nn.toString().length>0){const Ar=Nn.getRangeAt(0);Ve(Ar.cloneRange());const Jn=Ar.getBoundingClientRect(),va=40;let Qr=Jn.top+Pr-5+va;Qr{if(!Nn||Nn.rangeCount===0){he(!1);return}const Vr=Nn.getRangeAt(0).getBoundingClientRect(),Ar=window.getComputedStyle(ce.current),Jn=parseInt(Ar.lineHeight),va=parseInt(Ar.paddingTop),Qr=ce.current.scrollTop,ur=ce.current.getBoundingClientRect(),Sn=Vr.top-ur.top+Qr,sr=Math.floor((Sn-va)/Jn),un=va+sr*Jn-Qr;Nt(un),he(!0)},wn=Nn=>{ce.current&&!ce.current.contains(Nn.target)&&ae(!1)};(0,E.useEffect)(()=>{const Nn=ce.current;return Nn.addEventListener("scroll",on),Nn.addEventListener("input",on),Nn.addEventListener("click",on),Nn.addEventListener("mouseup",on),Nn.addEventListener("keyup",on),Nn.addEventListener("click",on),document.addEventListener("mousedown",wn),()=>{Nn.removeEventListener("scroll",on),Nn.removeEventListener("input",on),Nn.removeEventListener("click",on),Nn.removeEventListener("mouseup",on),Nn.removeEventListener("keyup",on),Nn.removeEventListener("click",on),document.removeEventListener("mousedown",wn)}},[]);const Xn=(Nn=!0,Pr)=>{if(!Ze)return;const Vr=le.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),Ar=Ze.cloneRange(),Jn=window.getSelection();if(Jn.removeAllRanges(),Jn.addRange(Ar),Nn){Ar.deleteContents();const va=document.createElement("div");va.innerHTML=Vr;const Qr=Array.from(va.childNodes);for(;Qr.length>0;)Ar.insertNode(Qr.pop())}else{Ar.collapse(!1);const va=document.createElement("div");va.innerHTML=" "+Vr;const Qr=Array.from(va.childNodes);for(;Qr.length>0;)Ar.insertNode(Qr.pop())}Jn.removeAllRanges(),Ve(null),dn(!1),Kt(null)};return E.createElement("section",{ref:le},ft&&E.createElement("div",{ref:me,className:De.toolbar,style:{top:ft==null?void 0:ft.top,left:ft==null?void 0:ft.left}},E.createElement("div",{className:De.button,onClick:()=>dn(!0)},E.createElement("img",{src:st}),E.createElement("span",null,"AI\u6539\u5199"))),E.createElement(At,{key:JSON.stringify(ft),noRestrictModal:yt,visible:kt,position:ft,selectText:ot,applyRefinedText:Xn,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),ce.current&&E.createElement(Ft,{ref:ce,onButtonClick:(Nn,Pr,Vr,Ar)=>{Ve(Ar),dn(!0),Ht(Nn),Kt({left:Pr,top:Vr+20})}}))}},56176:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return We}});var E=ne(59301),ve=ne(62957),xe={num:"num___VQiqB"},We=({visible:Ae,usedCount:Ue,totalCount:tt,onOk:Se,onCancel:He})=>{const Qe=()=>Ue>0?E.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",tt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",E.createElement("span",{className:xe.num},Ue),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):E.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",tt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",E.createElement("span",{className:xe.num},Ue),"\u6B21\uFF09\u3002");return E.createElement(ve.default,{centered:!0,open:Ae,zIndex:1e4,title:"\u63D0\u793A",width:620,onCancel:He,onOk:Se,footer:Ue>0?void 0:null},Qe())}},5524:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return be},Q:function(){return Oe}});var E=ne(59301),ve={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},xe=ne(9150),Je=ne(51802),We=ne(94239),Ae=ne(28602),Ue=ne(93287),tt=ne(42431),Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/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){Ke(Xe)}},bt=ut=>{try{At(it.throw(ut))}catch(Xe){Ke(Xe)}},At=ut=>ut.done?pe(ut.value):Promise.resolve(ut.value).then(nt,bt);At((it=it.apply(Ne,Ye)).next())});const Oe={contentRef:{current:null},value:null,status:!1,open:()=>Ge(void 0,null,function*(){}),close:()=>{}};var be=({className:Ne,style:Ye,onChange:it,onSuccess:pe,onCancel:Ke,onError:nt,fetchUrl:bt,noRestrictModal:At=()=>{},showEditableToolbar:ut,bottomOffset:Xe=110,loadingText:ht,showEmptyData:Pe=!0,onStatusChange:ze,stringTransformer:Te,bottomContainerNode:rt})=>{const[Pt,st]=(0,E.useState)(!1),[et,Ft]=(0,E.useState)(""),[De,ge]=(0,E.useState)(0),[lt,Et]=(0,E.useState)(!1),yt=(0,E.useRef)(null),Ze=(0,E.useRef)(null),Ve=(0,E.useRef)(null),ft=(0,E.useRef)(null),Kt=(0,Ue.Z)({scrollBoxRef:ft,bottomInspectRef:Ve,contentRef:Ze,status:lt,bottomOffset:Xe}),kt=Pt||lt;(0,E.useEffect)(()=>{it==null||it(et)},[et]);const[dn,ct]=(0,E.useState)([]);(0,E.useEffect)(()=>{ze==null||ze({contentRef:Ze,status:kt,value:et,open:Nt,close:mn})},[kt,et]);const Nt=se=>Ge(void 0,null,function*(){st(!0),Ft(""),ct([]),ge(0);const ae=bt;se!=null&&se.fetchUrl&&delete se.fetchUrl,yt.current=new xe.Z(`${Je.Z.API_SERVER}${ae}`,se),yield new Promise((ce,me)=>{yt.current.on("data",le=>{var ot;let{chunk:{content:Ht,type:on}}=le;Et(!0),on==="text"&&Ft(kn=>Te?Te(kn+Ht):kn+Ht),on==="knowledge"&&(console.log("---knowledge-",le==null?void 0:le.chunk),ct((ot=le==null?void 0:le.chunk)==null?void 0:ot.content))}),yt.current.on("done",()=>{ce()}),yt.current.on("error",le=>{Object.prototype.toString.call(le)==="[object Object]"&&le.status===-1&&qe.ZP.warning((le==null?void 0:le.message)||""),ce(),nt==null||nt(le)}),yt.current.on("cancelled",()=>{ce(),Ke==null||Ke()}),yt.current.startStream()}),st(!1)}),mn=()=>{var se,ae;ge(1),(ae=(se=yt.current)==null?void 0:se.cancelRequest)==null||ae.call(se),st(!1),Et(!1)},he=(0,E.useMemo)(()=>Ze.current?E.createElement(Ae.Z,{noRestrictModal:At,nodeRef:Ze}):E.createElement(E.Fragment,null),[Ze.current]);return E.createElement(E.Fragment,null,E.createElement("div",{className:Qe()(ve.container,Ne),style:Ye,ref:ft},E.createElement("div",{ref:Ze,className:ve.liWrap,contentEditable:!kt},et&&E.createElement(We.Z,{cancelIndex:De,streamingStatus:Pt,loadImage:!1,onFinish:()=>Ge(void 0,null,function*(){ge(0),setTimeout(()=>Et(!1),0),pe==null||pe(et)}),value:et}),(dn==null?void 0:dn.length)>0&&E.createElement(pt.Z,{Filelist:dn})),!et&&!kt&&E.createElement("div",{className:ve.imgBox},E.createElement("img",{width:56,src:Se}),E.createElement("span",null,"\u9884\u89C8\u533A")),Pe&&kt&&E.createElement(tt.Z,{text:ht}),!Kt&&E.createElement("div",{className:ve.backBottom,onClick:()=>{ft.current.scrollTop=ft.current.scrollHeight}},E.createElement("i",{className:"iconfont icon-huidaodibu"})),E.createElement("div",{ref:Ve}),rt),!kt&&ut&&he)}},42431:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Je}});var E=ne(59301),ve={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Je=({text:We})=>E.createElement("div",null,E.createElement("div",{className:ve.loading},E.createElement("div",{className:ve.dot}),E.createElement("div",{className:ve.dot}),E.createElement("div",{className:ve.dot})),!!We&&E.createElement("div",{className:"mt5"},We))},69359:function(Bt,_t,ne){"use strict";ne.d(_t,{o:function(){return E}});const E=ve=>(ve=ve.replace(new RegExp("(?$1'),ve=ve.replace(new RegExp("(?$1 -`),ve)},9019:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ht}});var E=ne(59301),ve=ne(6767),xe=ne(37568),Je={codeBox:"codeBox___WpkVl"},We=ne(92310),Ae=ne.n(We),Ue=Object.defineProperty,tt=(Ge,Oe,Be)=>Oe in Ge?Ue(Ge,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ge[Oe]=Be,Se=(Ge,Oe,Be)=>tt(Ge,typeof Oe!="symbol"?Oe+"":Oe,Be),Re=(Ge,Oe,Be)=>new Promise((be,Pe)=>{var Ye=Ke=>{try{pe(Be.next(Ke))}catch(nt){Pe(nt)}},it=Ke=>{try{pe(Be.throw(Ke))}catch(nt){Pe(nt)}},pe=Ke=>Ke.done?be(Ke.value):Promise.resolve(Ke.value).then(Ye,it);pe((Be=Be.apply(Ge,Oe)).next())});class Qe extends E.Component{constructor(Oe){super(Oe),Se(this,"canvas"),Se(this,"randomNum",(Be,be)=>Math.floor(Math.random()*(be-Be)+Be)),Se(this,"drawPic",()=>{this.randomCode()}),Se(this,"reloadPic",()=>{this.drawPic()}),Se(this,"changeCode",Be=>{console.log(Be.target.value,222),this.setState({value:Be.target.value,showError:!1})}),Se(this,"onVerify",()=>{let Be;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Be=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Be=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Be=!1),this.setState({showError:Be}),Be}),this.canvas=E.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(Oe,Be){const be=this.randomNum(Oe,Be),Pe=this.randomNum(Oe,Be),Ye=this.randomNum(Oe,Be);return`rgb(${be}, ${Pe}, ${Ye})`}drawText(Oe,Be,be){Oe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Pe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Oe.font=Pe+"px SimHei";const Ye=10,it=(this.state.contentWidth-40)/(this.state.code.length-1);let pe=Ye;be>0&&(pe=Ye+be*it);let Ke=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Pe>40&&(Ke=40);const nt=this.randomNum(-10,10);Oe.translate(pe,Ke),Oe.rotate(nt*Math.PI/180),Oe.fillText(Be,0,0),Oe.rotate(-nt*Math.PI/180),Oe.translate(-pe,-Ke)}drawLine(Oe){for(let Be=0;Be<1;Be++)Oe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Oe.beginPath(),Oe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Oe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Oe.stroke()}drawDot(Oe){for(let Be=0;Be<100;Be++)Oe.fillStyle=this.randomColor(0,255),Oe.beginPath(),Oe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Oe.fill()}randomCode(){let Oe="";const Be="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let be=0;be{const Pe=this.canvas.current.getContext("2d");Pe.textBaseline="bottom",Pe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Pe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Ye=0;Ye{let Be;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Oe),React.createElement(Qe,{ref:be=>Be=be})),onOk:()=>Re(void 0,null,function*(){if(Be.onVerify())return Promise.reject();Ge()})})};var ht=Qe},26203:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return be}});var E=ne(59301),ve=ne(18287),xe=ne(82136),Je={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},We=Object.defineProperty,Ae=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Qe=(Pe,Ye,it)=>Ye in Pe?We(Pe,Ye,{enumerable:!0,configurable:!0,writable:!0,value:it}):Pe[Ye]=it,qe=(Pe,Ye)=>{for(var it in Ye||(Ye={}))Se.call(Ye,it)&&Qe(Pe,it,Ye[it]);if(tt)for(var it of tt(Ye))Re.call(Ye,it)&&Qe(Pe,it,Ye[it]);return Pe},ht=(Pe,Ye)=>Ae(Pe,Ue(Ye)),Ge=(Pe,Ye)=>{var it={};for(var pe in Pe)Se.call(Pe,pe)&&Ye.indexOf(pe)<0&&(it[pe]=Pe[pe]);if(Pe!=null&&tt)for(var pe of tt(Pe))Ye.indexOf(pe)<0&&Re.call(Pe,pe)&&(it[pe]=Pe[pe]);return it},Oe=(Pe,Ye,it)=>new Promise((pe,Ke)=>{var nt=st=>{try{At(it.next(st))}catch(Xe){Ke(Xe)}},Et=st=>{try{At(it.throw(st))}catch(Xe){Ke(Xe)}},At=st=>st.done?pe(st.value):Promise.resolve(st.value).then(nt,Et);At((it=it.apply(Pe,Ye)).next())}),be=Pe=>{var Ye=Pe,{value:it,onChange:pe,defaultValue:Ke,disabled:nt}=Ye,Et=Ge(Ye,["value","onChange","defaultValue","disabled"]);const[At,st]=(0,E.useState)([]),[Xe,ut]=(0,E.useState)("1");(0,E.useEffect)(()=>{Le()},[]);const Le=()=>Oe(void 0,null,function*(){const at=yield(0,xe.NZ)({});if(at!=null&&at.data){const Bt=[{title:E.createElement("div",{title:"\u6839\u76EE\u5F55",className:Je.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:E.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:ze(at.data||[])}];st(Bt),ut("2")}}),ze=at=>{function Bt(ct){const $e=ct.children,Ft=Array.isArray($e)&&$e.length>0,De=ct==null?void 0:ct.group_id;return{title:E.createElement("div",{title:ct==null?void 0:ct.name,className:Je.name},ct==null?void 0:ct.name),value:De,key:De,icon:E.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ft?$e==null?void 0:$e.map(ge=>Bt(ge)):[]}}return at==null?void 0:at.map(ct=>Bt(ct))},Ne=Ke?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:it,defaultExpandedKeys:it};return E.createElement("div",{className:Je.customTree},E.createElement(ve.default,qe(ht(qe({key:Xe},Ne),{showIcon:!0,treeData:At,onSelect:pe,disabled:nt}),Et)))}},4799:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Je}});var E=ne(59301),ve={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Je=({number:We,active:Ae,className:Ue})=>E.createElement("div",{className:`${ve.digitalLabel} ${Ae?ve.active:""} ${Ue}`},We)},54746:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Pe}});var E=ne(59301),ve=ne(18287),xe={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Je=ne(73631),We=ne(5623),Ae=ne(82136),Ue=Object.defineProperty,tt=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,ht=(Ye,it,pe)=>it in Ye?Ue(Ye,it,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ye[it]=pe,Ge=(Ye,it)=>{for(var pe in it||(it={}))Qe.call(it,pe)&&ht(Ye,pe,it[pe]);if(Re)for(var pe of Re(it))qe.call(it,pe)&&ht(Ye,pe,it[pe]);return Ye},Oe=(Ye,it)=>tt(Ye,Se(it)),Be=(Ye,it,pe)=>new Promise((Ke,nt)=>{var Et=Xe=>{try{st(pe.next(Xe))}catch(ut){nt(ut)}},At=Xe=>{try{st(pe.throw(Xe))}catch(ut){nt(ut)}},st=Xe=>Xe.done?Ke(Xe.value):Promise.resolve(Xe.value).then(Et,At);st((pe=pe.apply(Ye,it)).next())}),Pe=({value:Ye,onChange:it,scrollId:pe})=>{const[Ke,nt]=(0,E.useState)([]);(0,E.useEffect)(()=>{Et()},[]);const Et=()=>Be(void 0,null,function*(){const ze=yield(0,Ae.NZ)({});if(ze!=null&&ze.data){const Ne=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:E.createElement("img",{src:Je,className:xe.folderIcon}),isLeaf:!1,children:At(ze.data||[])}];nt(Ne)}}),At=ze=>ze.map(Ne=>({title:Ne.name,key:Ne.group_id,icon:E.createElement("img",{src:Je,className:xe.folderIcon}),isLeaf:Ne.children.length===0,children:At(Ne.children)})),st=(ze,Ne,at)=>ze.map(Bt=>Bt.key===Ne?Ge(Ge({},Bt),at):Bt.children?Oe(Ge({},Bt),{children:st(Bt.children,Ne,at)}):Bt),Xe=(ze,Ne,at)=>ze.map(Bt=>{if(Bt.key===Ne)return Oe(Ge({},Bt),{icon:at?E.createElement("img",{src:We,className:xe.folderIcon}):E.createElement("img",{src:Je,className:xe.folderIcon})});if(Bt.children)return Oe(Ge({},Bt),{children:Xe(Bt.children,Ne,at)})}),ut=(ze,Ne)=>{nt(at=>Xe(at,Ne.node.key,Ne.expanded))},Le=Ye?{selectedKeys:Ye,defaultExpandedKeys:Ye}:{};return Ke.length>0&&E.createElement("div",{id:pe||""},E.createElement(ve.default,Ge({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ke,className:xe.folderWrapper,onSelect:it,onExpand:ut},Le)))}},85421:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Ae}});var E=ne(37639),ve={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},xe=ne(32637),Je=ne(59301),Ae=({type:Ue,style:tt})=>{const Se=Je.createElement("div",{className:ve.wrap,onClick:Re=>{Re.preventDefault(),Re.stopPropagation()}},Je.createElement("p",null,Ue==="shixun"||Ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Je.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Je.createElement("div",{className:ve.contact},Je.createElement("div",{className:ve.img},Je.createElement("img",{src:xe,width:"124px",height:"124px"})),Je.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Je.createElement(E.Z,{content:Se},Je.createElement("span",{className:ve.text,style:tt},"\u9AD8\u6D88\u8017"))}},52929:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Qe}});var E=ne(59301),ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=ne(92310),Je=ne.n(xe),We=ne(29787),Ae=ne(2859),Ue=ne(70892),tt=ne(95203),Se=(qe,ht,Ge)=>new Promise((Oe,Be)=>{var be=it=>{try{Ye(Ge.next(it))}catch(pe){Be(pe)}},Pe=it=>{try{Ye(Ge.throw(it))}catch(pe){Be(pe)}},Ye=it=>it.done?Oe(it.value):Promise.resolve(it.value).then(be,Pe);Ye((Ge=Ge.apply(qe,ht)).next())}),Qe=({data:qe,className:ht,fullWidth:Ge,style:Oe={},onClose:Be,onOk:be,showFullTools:Pe,noAssociationId:Ye})=>{const it=(0,E.useRef)(null),pe=(0,E.useRef)(null),Ke=(0,E.useRef)(null),nt=(0,E.useRef)(null),[Et,At]=(0,E.useState)(!1),[st,Xe]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(Ke.current||(Ke.current=document.createElement("style"),document.head.appendChild(Ke.current)),qe!=null&&qe.visible?(document.body.setAttribute("data-custom","y-hidden"),Ke.current.innerHTML=" html { overflow-y: hidden; }",qe!=null&&qe.src&&ut()):(document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)),()=>{document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)}),[qe==null?void 0:qe.visible]);const ut=()=>Se(void 0,null,function*(){At(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const at=yield(0,tt.ZJ)(qe==null?void 0:qe.src);it.current.src="",it.current.src=at,it.current.onload=function(){Ne()},At(!1),Xe("")}),Le=at=>Se(void 0,null,function*(){At(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bt=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:qe.title,file:at.dataUrl}});Bt!=null&&Bt.id&&!Ye?(yield(0,Ue.ZP)(`/api/attachments/${qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bt==null?void 0:Bt.id,settings:JSON.stringify(at.state)}})).status===0&&be():Bt!=null&&Bt.id&&be(Bt),At(!1),Xe("")}),ze=()=>{const at=document.querySelector('a[href="https://markerjs.com/"]');at&&at.parentNode&&(at.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ct=>{const $e=document.querySelector(ct.name);$e&&$e.setAttribute("title",ct.title)})},Ne=()=>{pe.current=new Ae.hP(it.current),pe.current.targetRoot=nt.current,pe.current.addEventListener("render",Le),pe.current.addEventListener("beforeclose",Be),Pe&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),qe!=null&&qe.snapshotData&&pe.current.restoreState(qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ze()},300)};return E.createElement(E.Fragment,null,(qe==null?void 0:qe.visible)&&E.createElement(We.Z,{spinning:Et,tip:st,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:nt,className:Je()(ve.imageDimensions,ht,Ge?ve.fullWidth:""),style:Oe},E.createElement("img",{className:ve.img,ref:it}))))}},64047:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ae},$:function(){return se}});var E=ne(59301),ve={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},xe=ne(92310),Je=ne.n(xe),We=ne(28284),Ae=ne(6767),Ue=ne(62957),tt=ne(4875),Se=ne(77019),Re=ne(62673),Qe=ne(75727),qe=ne(94968),ht=ne(7939),Ge=ne(89787),Oe=ne(37568),Be=ne(86475),be=ne(51802),Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJR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IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",Ke=ne(70892),nt=ne(54746),Et=ne(5623),At=ne(12103),st=ne(28618),Xe=ne(10426),ut=ne(15342),Le=ne.n(ut),ze=(ce,me,le)=>new Promise((ot,Ht)=>{var on=Xn=>{try{wn(le.next(Xn))}catch(Nn){Ht(Nn)}},kn=Xn=>{try{wn(le.throw(Xn))}catch(Nn){Ht(Nn)}},wn=Xn=>Xn.done?ot(Xn.value):Promise.resolve(Xn.value).then(on,kn);wn((le=le.apply(ce,me)).next())}),at=E.memo(({tagName:ce="div",value:me="",className:le,style:ot={},onBlur:Ht,id:on})=>{const kn=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(!kn.current)return;ze(void 0,null,function*(){const Nn=kn.current;Nn.innerHTML="";const Pr=me==null?void 0:me.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Vr of Pr)if(Vr.startsWith("$$")&&Vr.endsWith("$$")||Vr.startsWith("`$$")&&Vr.endsWith("$$`")){const Ar=Vr.startsWith("`$$")?Vr.slice(3,-3):Vr.slice(2,-2),Jn=document.createElement("span");Jn.setAttribute("contentEditable","false"),Jn.setAttribute("title",Vr),Jn.className="edu_latex",Nn.appendChild(Jn),Le().render(Ar,Jn,{throwOnError:!1})}else{const Ar=Vr==null?void 0:Vr.replace(/<[^>]*>/g,Jn=>Jn.startsWith("{var Xn,Nn;if(Ht&&kn.current){const Vr=kn.current.cloneNode(!0),Ar=Vr.querySelectorAll("span.edu_latex");for(let Jn of Ar){const va=Jn.getAttribute("title"),Qr=document.createTextNode(va||""),ur=Jn;(Nn=(Xn=ur.parentNode)==null?void 0:Xn.replaceChild)==null||Nn.call(Xn,Qr,ur)}Ht(Vr.innerHTML)}};return E.createElement(E.Fragment,null,E.createElement(ce,{ref:kn,contentEditable:!0,className:le,style:ot,onBlur:wn}))}),Bt=ne(82772),ct=ne(86050),$e=ne(38774),Ft=ne(33797),De=Object.defineProperty,ge=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ve=(ce,me,le)=>me in ce?De(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[me]=le,pt=(ce,me)=>{for(var le in me||(me={}))yt.call(me,le)&&Ve(ce,le,me[le]);if(wt)for(var le of wt(me))je.call(me,le)&&Ve(ce,le,me[le]);return ce},Kt=(ce,me)=>ge(ce,lt(me)),kt=(ce,me,le)=>new Promise((ot,Ht)=>{var on=Xn=>{try{wn(le.next(Xn))}catch(Nn){Ht(Nn)}},kn=Xn=>{try{wn(le.throw(Xn))}catch(Nn){Ht(Nn)}},wn=Xn=>Xn.done?ot(Xn.value):Promise.resolve(Xn.value).then(on,kn);wn((le=le.apply(ce,me)).next())});const dn=ce=>{ce.preventDefault();let le=(ce.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,le)},dt=ce=>{ce.key==="Enter"&&ce.preventDefault()},Nt=({children:ce,style:me})=>E.createElement("div",{className:ve.leftBox,style:me,onPaste:dn},ce),mn=({children:ce,style:me,className:le})=>E.createElement("div",{className:Je()(ve.rightBox,le),style:me,onPaste:dn},ce),he=({className:ce,style:me={},width:le=1200,onCancel:ot=()=>{},onSuccess:Ht=()=>{},gather:on={},mode:kn=1,stickyTop:wn=0,subDisciplineId:Xn=[],hideWordFeatures:Nn,dataSource:Pr=[],customLeftHeadNode:Vr,customRightHeadNode:Ar,customLeftContent:Jn,hideRecognition:va=!1,onExchange:Qr,isSingleSelection:ur=!1,underpinBackgroundStyle:Sn={},headExtraNode:sr,isRefreshItemBank:un=!1,okText:Er="\u786E\u5B9A\u5BFC\u5165",onSave:Br})=>{var Xa;const[Da,Sr]=(0,E.useState)(1),[En,nr]=(0,E.useState)(0),[$r,Aa]=(0,E.useState)(""),[ga,Ei]=(0,E.useState)(!1),[Ii,Ja]=(0,E.useState)([]),[ri,hi]=(0,E.useState)([]),[$i,Ha]=(0,E.useState)(!1),[ea,Ir]=(0,E.useState)(!1),[qt,Ut]=(0,E.useState)(!1),[Un,Lt]=(0,E.useState)(!1),[Dn,rr]=(0,E.useState)([]),[Rn,ar]=(0,E.useState)(1),[wr,er]=(0,E.useState)(!1),[Vt,On]=(0,E.useState)(!0),[Cr,Hr]=(0,E.useState)(0),[jr,Nr]=(0,E.useState)(!1),[Ga]=We.default.useForm(),[za]=We.default.useForm(),An=(0,E.useRef)(null),rn=(0,E.useRef)(null),Yi=(0,E.useRef)(),$o=(0,E.useRef)(null),Ki=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xt=["C","C++","Java","Python","JavaScript","Ruby"];(0,E.useEffect)(()=>{Pr!=null&&Pr.length&&to(Pr)},[Pr]),(0,E.useEffect)(()=>{Da===2&&An.current.focus()},[Da]),(0,E.useEffect)(()=>{qt&&Tt()},[qt]);const tn=()=>{if(Da===1){Ae.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>kt(void 0,null,function*(){Sr(1)})})},Tt=()=>kt(void 0,null,function*(){const _e=yield(0,Ke.ZP)("/api/disciplines.json",{method:"get",params:{source:kn===1?"new_question":"subject"}});rr(_e.disciplines||[])}),It=_e=>{const Jt=[],nn=(Fn,Zt)=>{Fn.length>=2&&Jt.push(Fn.join(""));for(let Xt=Zt;Xt<_e.length;Xt++)Fn.push(_e[Xt]),nn(Fn,Xt+1),Fn.pop()};return nn([],0),Jt},Zn=_e=>(_e=_e||"",_e=String(_e),_e=_e.replace(/\s+/g,""),_e),Gn=_e=>(_e=_e||"",_e=String(_e),_e=_e.replace(/

/g,""),_e=_e.replace(/
/g,` +`),ve)},9019:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return pt}});var E=ne(59301),ve=ne(6767),xe=ne(37568),Je={codeBox:"codeBox___WpkVl"},We=ne(92310),Ae=ne.n(We),Ue=Object.defineProperty,tt=(Ge,Oe,Be)=>Oe in Ge?Ue(Ge,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ge[Oe]=Be,Se=(Ge,Oe,Be)=>tt(Ge,typeof Oe!="symbol"?Oe+"":Oe,Be),He=(Ge,Oe,Be)=>new Promise((be,Ne)=>{var Ye=Ke=>{try{pe(Be.next(Ke))}catch(nt){Ne(nt)}},it=Ke=>{try{pe(Be.throw(Ke))}catch(nt){Ne(nt)}},pe=Ke=>Ke.done?be(Ke.value):Promise.resolve(Ke.value).then(Ye,it);pe((Be=Be.apply(Ge,Oe)).next())});class Qe extends E.Component{constructor(Oe){super(Oe),Se(this,"canvas"),Se(this,"randomNum",(Be,be)=>Math.floor(Math.random()*(be-Be)+Be)),Se(this,"drawPic",()=>{this.randomCode()}),Se(this,"reloadPic",()=>{this.drawPic()}),Se(this,"changeCode",Be=>{console.log(Be.target.value,222),this.setState({value:Be.target.value,showError:!1})}),Se(this,"onVerify",()=>{let Be;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Be=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Be=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Be=!1),this.setState({showError:Be}),Be}),this.canvas=E.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(Oe,Be){const be=this.randomNum(Oe,Be),Ne=this.randomNum(Oe,Be),Ye=this.randomNum(Oe,Be);return`rgb(${be}, ${Ne}, ${Ye})`}drawText(Oe,Be,be){Oe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Ne=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Oe.font=Ne+"px SimHei";const Ye=10,it=(this.state.contentWidth-40)/(this.state.code.length-1);let pe=Ye;be>0&&(pe=Ye+be*it);let Ke=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Ne>40&&(Ke=40);const nt=this.randomNum(-10,10);Oe.translate(pe,Ke),Oe.rotate(nt*Math.PI/180),Oe.fillText(Be,0,0),Oe.rotate(-nt*Math.PI/180),Oe.translate(-pe,-Ke)}drawLine(Oe){for(let Be=0;Be<1;Be++)Oe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Oe.beginPath(),Oe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Oe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Oe.stroke()}drawDot(Oe){for(let Be=0;Be<100;Be++)Oe.fillStyle=this.randomColor(0,255),Oe.beginPath(),Oe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Oe.fill()}randomCode(){let Oe="";const Be="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let be=0;be{const Ne=this.canvas.current.getContext("2d");Ne.textBaseline="bottom",Ne.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Ne.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Ye=0;Ye{let Be;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Oe),React.createElement(Qe,{ref:be=>Be=be})),onOk:()=>He(void 0,null,function*(){if(Be.onVerify())return Promise.reject();Ge()})})};var pt=Qe},26203:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return be}});var E=ne(59301),ve=ne(18287),xe=ne(82136),Je={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},We=Object.defineProperty,Ae=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Qe=(Ne,Ye,it)=>Ye in Ne?We(Ne,Ye,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ne[Ye]=it,qe=(Ne,Ye)=>{for(var it in Ye||(Ye={}))Se.call(Ye,it)&&Qe(Ne,it,Ye[it]);if(tt)for(var it of tt(Ye))He.call(Ye,it)&&Qe(Ne,it,Ye[it]);return Ne},pt=(Ne,Ye)=>Ae(Ne,Ue(Ye)),Ge=(Ne,Ye)=>{var it={};for(var pe in Ne)Se.call(Ne,pe)&&Ye.indexOf(pe)<0&&(it[pe]=Ne[pe]);if(Ne!=null&&tt)for(var pe of tt(Ne))Ye.indexOf(pe)<0&&He.call(Ne,pe)&&(it[pe]=Ne[pe]);return it},Oe=(Ne,Ye,it)=>new Promise((pe,Ke)=>{var nt=ut=>{try{At(it.next(ut))}catch(Xe){Ke(Xe)}},bt=ut=>{try{At(it.throw(ut))}catch(Xe){Ke(Xe)}},At=ut=>ut.done?pe(ut.value):Promise.resolve(ut.value).then(nt,bt);At((it=it.apply(Ne,Ye)).next())}),be=Ne=>{var Ye=Ne,{value:it,onChange:pe,defaultValue:Ke,disabled:nt}=Ye,bt=Ge(Ye,["value","onChange","defaultValue","disabled"]);const[At,ut]=(0,E.useState)([]),[Xe,ht]=(0,E.useState)("1");(0,E.useEffect)(()=>{Pe()},[]);const Pe=()=>Oe(void 0,null,function*(){const rt=yield(0,xe.NZ)({});if(rt!=null&&rt.data){const Pt=[{title:E.createElement("div",{title:"\u6839\u76EE\u5F55",className:Je.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:E.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:ze(rt.data||[])}];ut(Pt),ht("2")}}),ze=rt=>{function Pt(st){const et=st.children,Ft=Array.isArray(et)&&et.length>0,De=st==null?void 0:st.group_id;return{title:E.createElement("div",{title:st==null?void 0:st.name,className:Je.name},st==null?void 0:st.name),value:De,key:De,icon:E.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ft?et==null?void 0:et.map(ge=>Pt(ge)):[]}}return rt==null?void 0:rt.map(st=>Pt(st))},Te=Ke?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:it,defaultExpandedKeys:it};return E.createElement("div",{className:Je.customTree},E.createElement(ve.default,qe(pt(qe({key:Xe},Te),{showIcon:!0,treeData:At,onSelect:pe,disabled:nt}),bt)))}},4799:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Je}});var E=ne(59301),ve={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Je=({number:We,active:Ae,className:Ue})=>E.createElement("div",{className:`${ve.digitalLabel} ${Ae?ve.active:""} ${Ue}`},We)},54746:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Ne}});var E=ne(59301),ve=ne(18287),xe={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Je=ne(73631),We=ne(5623),Ae=ne(82136),Ue=Object.defineProperty,tt=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,pt=(Ye,it,pe)=>it in Ye?Ue(Ye,it,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ye[it]=pe,Ge=(Ye,it)=>{for(var pe in it||(it={}))Qe.call(it,pe)&&pt(Ye,pe,it[pe]);if(He)for(var pe of He(it))qe.call(it,pe)&&pt(Ye,pe,it[pe]);return Ye},Oe=(Ye,it)=>tt(Ye,Se(it)),Be=(Ye,it,pe)=>new Promise((Ke,nt)=>{var bt=Xe=>{try{ut(pe.next(Xe))}catch(ht){nt(ht)}},At=Xe=>{try{ut(pe.throw(Xe))}catch(ht){nt(ht)}},ut=Xe=>Xe.done?Ke(Xe.value):Promise.resolve(Xe.value).then(bt,At);ut((pe=pe.apply(Ye,it)).next())}),Ne=({value:Ye,onChange:it,scrollId:pe})=>{const[Ke,nt]=(0,E.useState)([]);(0,E.useEffect)(()=>{bt()},[]);const bt=()=>Be(void 0,null,function*(){const ze=yield(0,Ae.NZ)({});if(ze!=null&&ze.data){const Te=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:E.createElement("img",{src:Je,className:xe.folderIcon}),isLeaf:!1,children:At(ze.data||[])}];nt(Te)}}),At=ze=>ze.map(Te=>({title:Te.name,key:Te.group_id,icon:E.createElement("img",{src:Je,className:xe.folderIcon}),isLeaf:Te.children.length===0,children:At(Te.children)})),ut=(ze,Te,rt)=>ze.map(Pt=>Pt.key===Te?Ge(Ge({},Pt),rt):Pt.children?Oe(Ge({},Pt),{children:ut(Pt.children,Te,rt)}):Pt),Xe=(ze,Te,rt)=>ze.map(Pt=>{if(Pt.key===Te)return Oe(Ge({},Pt),{icon:rt?E.createElement("img",{src:We,className:xe.folderIcon}):E.createElement("img",{src:Je,className:xe.folderIcon})});if(Pt.children)return Oe(Ge({},Pt),{children:Xe(Pt.children,Te,rt)})}),ht=(ze,Te)=>{nt(rt=>Xe(rt,Te.node.key,Te.expanded))},Pe=Ye?{selectedKeys:Ye,defaultExpandedKeys:Ye}:{};return Ke.length>0&&E.createElement("div",{id:pe||""},E.createElement(ve.default,Ge({showLine:{showLeafIcon:!1},showIcon:!0,treeData:Ke,className:xe.folderWrapper,onSelect:it,onExpand:ht},Pe)))}},85421:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Ae}});var E=ne(37639),ve={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},xe=ne(32637),Je=ne(59301),Ae=({type:Ue,style:tt})=>{const Se=Je.createElement("div",{className:ve.wrap,onClick:He=>{He.preventDefault(),He.stopPropagation()}},Je.createElement("p",null,Ue==="shixun"||Ue==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Je.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ue==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Je.createElement("div",{className:ve.contact},Je.createElement("div",{className:ve.img},Je.createElement("img",{src:xe,width:"124px",height:"124px"})),Je.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Je.createElement(E.Z,{content:Se},Je.createElement("span",{className:ve.text,style:tt},"\u9AD8\u6D88\u8017"))}},52929:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Qe}});var E=ne(59301),ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=ne(92310),Je=ne.n(xe),We=ne(29787),Ae=ne(2859),Ue=ne(70892),tt=ne(95203),Se=(qe,pt,Ge)=>new Promise((Oe,Be)=>{var be=it=>{try{Ye(Ge.next(it))}catch(pe){Be(pe)}},Ne=it=>{try{Ye(Ge.throw(it))}catch(pe){Be(pe)}},Ye=it=>it.done?Oe(it.value):Promise.resolve(it.value).then(be,Ne);Ye((Ge=Ge.apply(qe,pt)).next())}),Qe=({data:qe,className:pt,fullWidth:Ge,style:Oe={},onClose:Be,onOk:be,showFullTools:Ne,noAssociationId:Ye})=>{const it=(0,E.useRef)(null),pe=(0,E.useRef)(null),Ke=(0,E.useRef)(null),nt=(0,E.useRef)(null),[bt,At]=(0,E.useState)(!1),[ut,Xe]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(Ke.current||(Ke.current=document.createElement("style"),document.head.appendChild(Ke.current)),qe!=null&&qe.visible?(document.body.setAttribute("data-custom","y-hidden"),Ke.current.innerHTML=" html { overflow-y: hidden; }",qe!=null&&qe.src&&ht()):(document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)),()=>{document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)}),[qe==null?void 0:qe.visible]);const ht=()=>Se(void 0,null,function*(){At(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const rt=yield(0,tt.ZJ)(qe==null?void 0:qe.src);it.current.src="",it.current.src=rt,it.current.onload=function(){Te()},At(!1),Xe("")}),Pe=rt=>Se(void 0,null,function*(){At(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Pt=yield(0,Ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:qe.title,file:rt.dataUrl}});Pt!=null&&Pt.id&&!Ye?(yield(0,Ue.ZP)(`/api/attachments/${qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Pt==null?void 0:Pt.id,settings:JSON.stringify(rt.state)}})).status===0&&be():Pt!=null&&Pt.id&&be(Pt),At(!1),Xe("")}),ze=()=>{const rt=document.querySelector('a[href="https://markerjs.com/"]');rt&&rt.parentNode&&(rt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(st=>{const et=document.querySelector(st.name);et&&et.setAttribute("title",st.title)})},Te=()=>{pe.current=new Ae.hP(it.current),pe.current.targetRoot=nt.current,pe.current.addEventListener("render",Pe),pe.current.addEventListener("beforeclose",Be),Ne&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),qe!=null&&qe.snapshotData&&pe.current.restoreState(qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ze()},300)};return E.createElement(E.Fragment,null,(qe==null?void 0:qe.visible)&&E.createElement(We.Z,{spinning:bt,tip:ut,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:nt,className:Je()(ve.imageDimensions,pt,Ge?ve.fullWidth:""),style:Oe},E.createElement("img",{className:ve.img,ref:it}))))}},64047:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return ae},$:function(){return se}});var E=ne(59301),ve={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},xe=ne(92310),Je=ne.n(xe),We=ne(28284),Ae=ne(6767),Ue=ne(62957),tt=ne(4875),Se=ne(77019),He=ne(62673),Qe=ne(75727),qe=ne(94968),pt=ne(7939),Ge=ne(89787),Oe=ne(37568),Be=ne(86475),be=ne(51802),Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5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EEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",Ke=ne(70892),nt=ne(54746),bt=ne(5623),At=ne(12103),ut=ne(28618),Xe=ne(10426),ht=ne(15342),Pe=ne.n(ht),ze=(ce,me,le)=>new Promise((ot,Ht)=>{var on=Xn=>{try{wn(le.next(Xn))}catch(Nn){Ht(Nn)}},kn=Xn=>{try{wn(le.throw(Xn))}catch(Nn){Ht(Nn)}},wn=Xn=>Xn.done?ot(Xn.value):Promise.resolve(Xn.value).then(on,kn);wn((le=le.apply(ce,me)).next())}),rt=E.memo(({tagName:ce="div",value:me="",className:le,style:ot={},onBlur:Ht,id:on})=>{const kn=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(!kn.current)return;ze(void 0,null,function*(){const Nn=kn.current;Nn.innerHTML="";const Pr=me==null?void 0:me.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Vr of Pr)if(Vr.startsWith("$$")&&Vr.endsWith("$$")||Vr.startsWith("`$$")&&Vr.endsWith("$$`")){const Ar=Vr.startsWith("`$$")?Vr.slice(3,-3):Vr.slice(2,-2),Jn=document.createElement("span");Jn.setAttribute("contentEditable","false"),Jn.setAttribute("title",Vr),Jn.className="edu_latex",Nn.appendChild(Jn),Pe().render(Ar,Jn,{throwOnError:!1})}else{const Ar=Vr==null?void 0:Vr.replace(/<[^>]*>/g,Jn=>Jn.startsWith("{var Xn,Nn;if(Ht&&kn.current){const Vr=kn.current.cloneNode(!0),Ar=Vr.querySelectorAll("span.edu_latex");for(let Jn of Ar){const va=Jn.getAttribute("title"),Qr=document.createTextNode(va||""),ur=Jn;(Nn=(Xn=ur.parentNode)==null?void 0:Xn.replaceChild)==null||Nn.call(Xn,Qr,ur)}Ht(Vr.innerHTML)}};return E.createElement(E.Fragment,null,E.createElement(ce,{ref:kn,contentEditable:!0,className:le,style:ot,onBlur:wn}))}),Pt=ne(82772),st=ne(86050),et=ne(38774),Ft=ne(33797),De=Object.defineProperty,ge=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ve=(ce,me,le)=>me in ce?De(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[me]=le,ft=(ce,me)=>{for(var le in me||(me={}))yt.call(me,le)&&Ve(ce,le,me[le]);if(Et)for(var le of Et(me))Ze.call(me,le)&&Ve(ce,le,me[le]);return ce},Kt=(ce,me)=>ge(ce,lt(me)),kt=(ce,me,le)=>new Promise((ot,Ht)=>{var on=Xn=>{try{wn(le.next(Xn))}catch(Nn){Ht(Nn)}},kn=Xn=>{try{wn(le.throw(Xn))}catch(Nn){Ht(Nn)}},wn=Xn=>Xn.done?ot(Xn.value):Promise.resolve(Xn.value).then(on,kn);wn((le=le.apply(ce,me)).next())});const dn=ce=>{ce.preventDefault();let le=(ce.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,le)},ct=ce=>{ce.key==="Enter"&&ce.preventDefault()},Nt=({children:ce,style:me})=>E.createElement("div",{className:ve.leftBox,style:me,onPaste:dn},ce),mn=({children:ce,style:me,className:le})=>E.createElement("div",{className:Je()(ve.rightBox,le),style:me,onPaste:dn},ce),he=({className:ce,style:me={},width:le=1200,onCancel:ot=()=>{},onSuccess:Ht=()=>{},gather:on={},mode:kn=1,stickyTop:wn=0,subDisciplineId:Xn=[],hideWordFeatures:Nn,dataSource:Pr=[],customLeftHeadNode:Vr,customRightHeadNode:Ar,customLeftContent:Jn,hideRecognition:va=!1,onExchange:Qr,isSingleSelection:ur=!1,underpinBackgroundStyle:Sn={},headExtraNode:sr,isRefreshItemBank:un=!1,okText:Er="\u786E\u5B9A\u5BFC\u5165",onSave:Br})=>{var Xa;const[Da,Sr]=(0,E.useState)(1),[En,nr]=(0,E.useState)(0),[$r,Aa]=(0,E.useState)(""),[ga,Ei]=(0,E.useState)(!1),[Ii,Ja]=(0,E.useState)([]),[ri,hi]=(0,E.useState)([]),[$i,Ha]=(0,E.useState)(!1),[ea,Ir]=(0,E.useState)(!1),[qt,Ut]=(0,E.useState)(!1),[Un,Lt]=(0,E.useState)(!1),[Dn,rr]=(0,E.useState)([]),[Rn,ar]=(0,E.useState)(1),[wr,er]=(0,E.useState)(!1),[Vt,On]=(0,E.useState)(!0),[Cr,Hr]=(0,E.useState)(0),[jr,Nr]=(0,E.useState)(!1),[Ga]=We.default.useForm(),[za]=We.default.useForm(),An=(0,E.useRef)(null),rn=(0,E.useRef)(null),Yi=(0,E.useRef)(),$o=(0,E.useRef)(null),Ki=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],wt=["C","C++","Java","Python","JavaScript","Ruby"];(0,E.useEffect)(()=>{Pr!=null&&Pr.length&&to(Pr)},[Pr]),(0,E.useEffect)(()=>{Da===2&&An.current.focus()},[Da]),(0,E.useEffect)(()=>{qt&&Tt()},[qt]);const tn=()=>{if(Da===1){Ae.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>kt(void 0,null,function*(){Sr(1)})})},Tt=()=>kt(void 0,null,function*(){const _e=yield(0,Ke.ZP)("/api/disciplines.json",{method:"get",params:{source:kn===1?"new_question":"subject"}});rr(_e.disciplines||[])}),It=_e=>{const Jt=[],nn=(Fn,Zt)=>{Fn.length>=2&&Jt.push(Fn.join(""));for(let Xt=Zt;Xt<_e.length;Xt++)Fn.push(_e[Xt]),nn(Fn,Xt+1),Fn.pop()};return nn([],0),Jt},Zn=_e=>(_e=_e||"",_e=String(_e),_e=_e.replace(/\s+/g,""),_e),Gn=_e=>(_e=_e||"",_e=String(_e),_e=_e.replace(/
/g,""),_e=_e.replace(/
/g,` `),_e=_e.replace(/<\/div>/g,` -`),_e=tr(_e),_e),yn=_e=>_e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),tr=_e=>_e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Mr=_e=>{var Jt;const nn=_e.clipboardData;if(nn){const Fn=nn.types.toString(),Zt=nn.items;if(Fn==="Files"||nn.types.indexOf("Files")>-1){_e.preventDefault();try{let Xt=Zt[1];((Jt=Zt[0])==null?void 0:Jt.kind)==="file"&&(Xt=Zt[0]);const an=Xt.getAsFile();(0,Xe.I)(an,Qt=>{var en;if(Qt.id){if(((en=an==null?void 0:an.type)==null?void 0:en.indexOf("image"))>-1){const Wn=``;document.execCommand("insertText",!1,Wn)}}else(Qt==null?void 0:Qt.status)===401&&(document.location.href="/user/login")})}catch(Xt){Ae.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Tr(_e,Jt){return kt(this,null,function*(){if(typeof _e=="string")return yield Jt(_e);if(typeof _e!="object"||_e===null)return _e;if(Array.isArray(_e))return yield Promise.all(_e.map(Zt=>kt(this,null,function*(){return yield Tr(Zt,Jt)})));const nn={};for(const Fn in _e)if(Object.prototype.hasOwnProperty.call(_e,Fn)){const Zt=_e[Fn];typeof Zt=="string"?nn[Fn]=yield Jt(Zt):typeof Zt=="object"?nn[Fn]=yield Tr(Zt,Jt):nn[Fn]=Zt}return nn})}const Qa=()=>kt(void 0,null,function*(){var _e;Ei(!0),Aa("\u5904\u7406\u4E2D"),yield new Promise(Fn=>setTimeout(Fn,1e3));let Jt=(_e=rn.current)==null?void 0:_e.querySelectorAll('[data-text="edit"]'),nn="";try{Jt.forEach(function(Fn){var Zt,Xt,an,Qt;const en=Fn.cloneNode(!0),Wn=en.querySelectorAll("span.edu_latex");for(let pr of Wn){const cr=pr.getAttribute("title"),Xr=document.createTextNode(cr),ca=pr;(Xt=(Zt=ca.parentNode)==null?void 0:Zt.replaceChild)==null||Xt.call(Zt,Xr,ca)}const fr=en.querySelectorAll("span[style]");for(let pr of fr)if(pr.style.fontFamily){const cr=pr.innerHTML,Xr=document.createTextNode(cr),ca=pr;(Qt=(an=ca.parentNode)==null?void 0:an.replaceChild)==null||Qt.call(an,Xr,ca)}en==null||en.childNodes.forEach(function(pr){pr.nodeType===Node.ELEMENT_NODE&&pr.localName!=="h5"&&pr.localName!=="h4"?nn+=`

${pr.innerHTML}

`:pr.nodeType===Node.TEXT_NODE&&(nn+=`

${pr.textContent}

`)})}),Fi("/api/intelligent_imports/import.json",{html:tr(nn)})}catch(Fn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Fn)}}),ua=_e=>{let Jt=_e.filter(nn=>!!(nn!=null&&nn.type));return Jt=Jt.map(nn=>{var Fn,Zt;const Xt=(Fn=Qi.find(Qt=>Qt.id===(nn==null?void 0:nn.type)))==null?void 0:Fn.deal,an=Kt(pt({},nn),{id:String(Math.random()).slice(-6),knowledgePoint:(Zt=Zn(nn==null?void 0:nn.knowledgePoint))==null?void 0:Zt.replaceAll(";","\uFF1B")});return Xt?Xt(an):an}),Jt},ta=()=>{if(Da===1){Ae.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Qa})},Ua=()=>E.createElement("div",{className:ve.row},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,{style:{height:675}},Da===1&&E.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Sr(2)},E.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",E.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",E.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",E.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",E.createElement("br",null)),E.createElement("div",{className:ve.imgBox,style:{marginTop:75}},E.createElement("img",{width:56,src:Ye}),E.createElement("span",null,"\u7F16\u8F91\u533A"))),Da===2&&E.createElement("div",{"data-text":"edit",onBlur:()=>{An.current.innerHTML||Sr(1)},ref:An,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),E.createElement("div",{className:ve.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},E.createElement("div",{className:ve.imgBox,style:{marginTop:240}},E.createElement("img",{width:56,src:it}),E.createElement("span",null,"\u9884\u89C8\u533A")))),Kr=(_e,Jt,nn,Fn)=>{var Zt;console.log(_e,Jt,nn,Fn,"onDataChange\u4FEE\u6539\u6570\u503C");const Xt=JSON.parse(JSON.stringify(ri));Fn===void 0?Xt[Jt][_e]=nn:Xt[Jt].questions[Fn][_e]=nn;const an=pt({},Xt[Jt]),Qt=(Zt=Qi.find(en=>en.id===(an==null?void 0:an.type)))==null?void 0:Zt.deal;Xt[Jt]=Qt(an),hi(Xt)},ya=(_e,Jt,nn)=>{var Fn;const Zt=nn!==void 0,Xt=(Fn=Qi.find(en=>en.id===(_e==null?void 0:_e.type)))==null?void 0:Fn.type,an=`${Jt+1}.${nn===void 0?"":nn+1+"."}`,Qt=`${(_e==null?void 0:_e.type)==="7"?"{{":""}${an}\u3010${Xt}\u3011${(_e==null?void 0:_e.question)||""}`;return E.createElement(E.Fragment,null,Zt&&E.createElement("h4",{contentEditable:!0}),E.createElement(at,{id:_e==null?void 0:_e.id,tagName:"div",value:Qt}))},qa=(_e,Jt)=>kt(void 0,null,function*(){var nn;const Fn=yield Qr(_e,Jt),Zt=(nn=Fn==null?void 0:Fn.data)==null?void 0:nn.content;if(Zt!=null&&Zt.length){const Xt=ua(Zt)[0];Ii.splice(Jt,1,Xt),ri.splice(Jt,1,Xt),Ja([...Ii]),hi([...ri])}}),ai=(_e,Jt,nn)=>{var Fn;const Zt=nn!==void 0,Xt=(Fn=Qi.find(Qt=>Qt.id===(_e==null?void 0:_e.type)))==null?void 0:Fn.type,an=`${Jt+1}.${nn===void 0?"":nn+1+"."}`;return Zt?E.createElement("div",{style:{padding:"10px 18px"}},`${an}\u3010${Xt}\u3011`,E.createElement(at,{id:_e==null?void 0:_e.id,tagName:"span",className:ve.edit,onBlur:Qt=>Kr("question",Jt,Qt,nn),value:(_e==null?void 0:_e.question)||""})):E.createElement(E.Fragment,null,E.createElement("div",{className:ve.actionHead},E.createElement("div",{className:"c-light-primary"},`${an}\u3010${Xt}\u3011`),kn!==1&&E.createElement(tt.Z,{disabled:(_e==null?void 0:_e.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Qt=>Kr("score",Jt,Qt,nn),value:_e==null?void 0:_e.score}),E.createElement(Se.Z,{align:"middle",style:{marginLeft:"auto"}},!!Qr&&E.createElement("span",{className:"current c-light-primary mr30",onClick:()=>qa(_e,Jt)},E.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),E.createElement(Re.default,{onChange:Qt=>Kr("checked",Jt,Qt.target.checked,nn),checked:!!(_e!=null&&_e.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),E.createElement(at,{id:_e==null?void 0:_e.id,tagName:"div",style:{padding:"10px 18px"},className:ve.edit,onBlur:Qt=>Kr("question",Jt,Qt,nn),value:_e==null?void 0:_e.question}))},bi=(_e,Jt,nn)=>E.createElement(E.Fragment,null,["0","1","2","4"].includes(_e==null?void 0:_e.type)&&E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u7B54\u6848\uFF1A${Jt||""}`,tagName:"p"}),!nn&&E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u96BE\u5EA6\uFF1A${(_e==null?void 0:_e.difficulty)||""}`,tagName:"p"}),(_e==null?void 0:_e.type)!=="7"&&E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u89E3\u6790\uFF1A${(_e==null?void 0:_e.analyze)||""}`,tagName:"p"}),!nn&&E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(_e==null?void 0:_e.knowledgePoint)||""}`,tagName:"p"})),Ba=(_e,Jt,nn,Fn)=>{const Zt=Fn!==void 0,Xt=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],an=Zt&&!_e.last&&!_e.errorMsg?{marginBottom:10}:{},Qt=Xt.map(en=>({key:en,label:en,onClick:()=>Kr("difficulty",nn,en,Fn)}));return E.createElement("div",{className:ve.liWrap,style:an},["4"].includes(_e==null?void 0:_e.type)&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),E.createElement(at,{id:_e==null?void 0:_e.id,tagName:"div",className:`${ve.edit} c-black`,onBlur:en=>Kr("answer",nn,[en],Fn),value:Jt})),!Zt&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Qe.Z,{menu:{items:Qt}},E.createElement("span",{className:"c-light-primary"},_e==null?void 0:_e.difficulty,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(_e==null?void 0:_e.type)!=="7"&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),E.createElement(at,{id:_e==null?void 0:_e.id,tagName:"div",className:`${ve.edit} c-grey-333`,onBlur:en=>Kr("analyze",nn,en,Fn),value:_e==null?void 0:_e.analyze})),!Zt&&E.createElement("div",{onKeyDown:dt,className:ve.li},E.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),E.createElement(at,{id:_e==null?void 0:_e.id,tagName:"div",value:(_e==null?void 0:_e.knowledgePoint)||"",className:`${ve.edit} c-grey-333`,onBlur:en=>Kr("knowledgePoint",nn,Zn(Gn(en)),Fn)})))},ra=_e=>E.createElement(E.Fragment,null,typeof(_e==null?void 0:_e.errorMsg)=="string"&&!!(_e!=null&&_e.errorMsg)&&E.createElement("h5",{contentEditable:!1},E.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),E.createElement("div",null,_e==null?void 0:_e.errorMsg))),eo=_e=>E.createElement(E.Fragment,null,typeof(_e==null?void 0:_e.errorMsg)=="string"&&!!(_e!=null&&_e.errorMsg)&&E.createElement("h5",null,E.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),E.createElement("div",null,_e==null?void 0:_e.errorMsg))),wi=(_e,Jt,nn,Fn)=>{let Zt="flex";return(ur&&Cr!==Fn||$i&&!(nn!=null&&nn.errorMsg))&&(Zt="none"),E.createElement("div",{className:ve.row,style:{display:Zt}},E.createElement("div",{className:ve.leftLayout},Jn||E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},_e))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:nn!=null&&nn.errorMsg?ve.error:""},Jt)))},Qi=[{id:"0",type:"\u5355\u9009\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0;let an=(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn[0];const Qt=E.createElement(E.Fragment,null,ya(_e,Jt,nn),(Zt=_e==null?void 0:_e.options)==null?void 0:Zt.map((pr,cr)=>E.createElement(at,{id:_e==null?void 0:_e.id,key:cr,value:`${Ki[cr]}.${pr}`,tagName:"p"})),bi(_e,an,Xt),ra(_e));let en=Xt?_e:ri[Jt];const Wn=en==null?void 0:en.options,fr=E.createElement(E.Fragment,null,ai(en,Jt,nn),Wn==null?void 0:Wn.map((pr,cr)=>{var Xr;return E.createElement("div",{key:cr,className:ve.option},E.createElement("aside",{className:((Xr=en==null?void 0:en.answer)==null?void 0:Xr[0])===Ki[cr]?ve.active:"",onClick:()=>Kr("answer",Jt,[Ki[cr]],nn)},Ki[cr]),E.createElement(at,{id:en==null?void 0:en.id,tagName:"div",className:`${ve.text}`,onBlur:ca=>{Wn[cr]=ca,Kr("options",Jt,Wn,nn)},value:pr}))}),Ba(en,"",Jt,nn),eo(en));return Xt?[Qt,fr]:wi(Qt,fr,en,Jt)},deal:_e=>{var Jt,nn,Fn;_e.score=_e.score===void 0?2:_e.score;let Zt=Zn((Jt=_e==null?void 0:_e.answer)==null?void 0:Jt[0]).toUpperCase();_e.answer=Zt?[Zt]:[];let Xt=[];if(!(_e!=null&&_e.options))Xt.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{_e.options=(nn=_e.options)==null?void 0:nn.slice(0,15);const an=_e.options.map(en=>en==null?void 0:en.trim().replace(/^\s+|\s+$/g,""));new Set(an).size!==an.length&&Xt.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Zt||Xt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),Zt&&(Ki.slice(0,((Fn=_e==null?void 0:_e.options)==null?void 0:Fn.length)||15).includes(Zt)||Xt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),Zn(_e==null?void 0:_e.question)||Xt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Xt.join(` -`),_e}},{id:"1",type:"\u591A\u9009\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0;let an=(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn[0];const Qt=E.createElement(E.Fragment,null,ya(_e,Jt,nn),(Zt=_e==null?void 0:_e.options)==null?void 0:Zt.map((pr,cr)=>E.createElement(at,{id:_e==null?void 0:_e.id,key:cr,value:`${Ki[cr]}.${pr}`,tagName:"p"})),bi(_e,an,Xt),ra(_e));let en=Xt?_e:ri[Jt];const Wn=en==null?void 0:en.options,fr=E.createElement(E.Fragment,null,ai(en,Jt,nn),Wn==null?void 0:Wn.map((pr,cr)=>{var Xr,ca;return E.createElement("div",{key:cr,className:ve.option},E.createElement("aside",{className:(ca=(Xr=en==null?void 0:en.answer)==null?void 0:Xr[0])!=null&&ca.includes(Ki[cr])?ve.active:"",onClick:()=>{var La;let Pa=((La=en==null?void 0:en.answer)==null?void 0:La[0])||"";const Xi=Ki[cr];Pa.includes(Xi)?Pa=Pa.replace(new RegExp(Xi,"g"),""):Pa+=Xi,Pa=Pa.split("").sort().join(""),Kr("answer",Jt,[Pa],nn)}},Ki[cr]),E.createElement(at,{id:en==null?void 0:en.id,tagName:"div",className:`${ve.text}`,onBlur:La=>{Wn[cr]=La,Kr("options",Jt,Wn,nn)},value:pr}))}),Ba(en,"",Jt,nn),eo(en));return Xt?[Qt,fr]:wi(Qt,fr,en,Jt)},deal:_e=>{var Jt,nn,Fn;_e.score=_e.score===void 0?2:_e.score;let Zt=Zn((Jt=_e==null?void 0:_e.answer)==null?void 0:Jt[0]).toUpperCase().split("").sort().join("");_e.answer=Zt?[Zt]:[];let Xt=[];if(!(_e!=null&&_e.options))Xt.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{_e.options=(nn=_e.options)==null?void 0:nn.slice(0,15);const an=_e.options.map(en=>en==null?void 0:en.trim().replace(/^\s+|\s+$/g,""));new Set(an).size!==an.length&&Xt.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(Zt||Xt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),Zt){const an=Ki.slice(0,((Fn=_e==null?void 0:_e.options)==null?void 0:Fn.length)||15);It(an).includes(Zt)||Xt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return Zn(_e==null?void 0:_e.question)||Xt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Xt.join(` +`),_e=tr(_e),_e),yn=_e=>_e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),tr=_e=>_e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Mr=_e=>{var Jt;const nn=_e.clipboardData;if(nn){const Fn=nn.types.toString(),Zt=nn.items;if(Fn==="Files"||nn.types.indexOf("Files")>-1){_e.preventDefault();try{let Xt=Zt[1];((Jt=Zt[0])==null?void 0:Jt.kind)==="file"&&(Xt=Zt[0]);const an=Xt.getAsFile();(0,Xe.I)(an,Qt=>{var en;if(Qt.id){if(((en=an==null?void 0:an.type)==null?void 0:en.indexOf("image"))>-1){const Wn=``;document.execCommand("insertText",!1,Wn)}}else(Qt==null?void 0:Qt.status)===401&&(document.location.href="/user/login")})}catch(Xt){Ae.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Tr(_e,Jt){return kt(this,null,function*(){if(typeof _e=="string")return yield Jt(_e);if(typeof _e!="object"||_e===null)return _e;if(Array.isArray(_e))return yield Promise.all(_e.map(Zt=>kt(this,null,function*(){return yield Tr(Zt,Jt)})));const nn={};for(const Fn in _e)if(Object.prototype.hasOwnProperty.call(_e,Fn)){const Zt=_e[Fn];typeof Zt=="string"?nn[Fn]=yield Jt(Zt):typeof Zt=="object"?nn[Fn]=yield Tr(Zt,Jt):nn[Fn]=Zt}return nn})}const Qa=()=>kt(void 0,null,function*(){var _e;Ei(!0),Aa("\u5904\u7406\u4E2D"),yield new Promise(Fn=>setTimeout(Fn,1e3));let Jt=(_e=rn.current)==null?void 0:_e.querySelectorAll('[data-text="edit"]'),nn="";try{Jt.forEach(function(Fn){var Zt,Xt,an,Qt;const en=Fn.cloneNode(!0),Wn=en.querySelectorAll("span.edu_latex");for(let pr of Wn){const cr=pr.getAttribute("title"),Xr=document.createTextNode(cr),ca=pr;(Xt=(Zt=ca.parentNode)==null?void 0:Zt.replaceChild)==null||Xt.call(Zt,Xr,ca)}const fr=en.querySelectorAll("span[style]");for(let pr of fr)if(pr.style.fontFamily){const cr=pr.innerHTML,Xr=document.createTextNode(cr),ca=pr;(Qt=(an=ca.parentNode)==null?void 0:an.replaceChild)==null||Qt.call(an,Xr,ca)}en==null||en.childNodes.forEach(function(pr){pr.nodeType===Node.ELEMENT_NODE&&pr.localName!=="h5"&&pr.localName!=="h4"?nn+=`

${pr.innerHTML}

`:pr.nodeType===Node.TEXT_NODE&&(nn+=`

${pr.textContent}

`)})}),Fi("/api/intelligent_imports/import.json",{html:tr(nn)})}catch(Fn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Fn)}}),ua=_e=>{let Jt=_e.filter(nn=>!!(nn!=null&&nn.type));return Jt=Jt.map(nn=>{var Fn,Zt;const Xt=(Fn=Qi.find(Qt=>Qt.id===(nn==null?void 0:nn.type)))==null?void 0:Fn.deal,an=Kt(ft({},nn),{id:String(Math.random()).slice(-6),knowledgePoint:(Zt=Zn(nn==null?void 0:nn.knowledgePoint))==null?void 0:Zt.replaceAll(";","\uFF1B")});return Xt?Xt(an):an}),Jt},ta=()=>{if(Da===1){Ae.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Qa})},Ua=()=>E.createElement("div",{className:ve.row},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,{style:{height:675}},Da===1&&E.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Sr(2)},E.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",E.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",E.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",E.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",E.createElement("br",null)),E.createElement("div",{className:ve.imgBox,style:{marginTop:75}},E.createElement("img",{width:56,src:Ye}),E.createElement("span",null,"\u7F16\u8F91\u533A"))),Da===2&&E.createElement("div",{"data-text":"edit",onBlur:()=>{An.current.innerHTML||Sr(1)},ref:An,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),E.createElement("div",{className:ve.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},E.createElement("div",{className:ve.imgBox,style:{marginTop:240}},E.createElement("img",{width:56,src:it}),E.createElement("span",null,"\u9884\u89C8\u533A")))),Kr=(_e,Jt,nn,Fn)=>{var Zt;console.log(_e,Jt,nn,Fn,"onDataChange\u4FEE\u6539\u6570\u503C");const Xt=JSON.parse(JSON.stringify(ri));Fn===void 0?Xt[Jt][_e]=nn:Xt[Jt].questions[Fn][_e]=nn;const an=ft({},Xt[Jt]),Qt=(Zt=Qi.find(en=>en.id===(an==null?void 0:an.type)))==null?void 0:Zt.deal;Xt[Jt]=Qt(an),hi(Xt)},ya=(_e,Jt,nn)=>{var Fn;const Zt=nn!==void 0,Xt=(Fn=Qi.find(en=>en.id===(_e==null?void 0:_e.type)))==null?void 0:Fn.type,an=`${Jt+1}.${nn===void 0?"":nn+1+"."}`,Qt=`${(_e==null?void 0:_e.type)==="7"?"{{":""}${an}\u3010${Xt}\u3011${(_e==null?void 0:_e.question)||""}`;return E.createElement(E.Fragment,null,Zt&&E.createElement("h4",{contentEditable:!0}),E.createElement(rt,{id:_e==null?void 0:_e.id,tagName:"div",value:Qt}))},qa=(_e,Jt)=>kt(void 0,null,function*(){var nn;const Fn=yield Qr(_e,Jt),Zt=(nn=Fn==null?void 0:Fn.data)==null?void 0:nn.content;if(Zt!=null&&Zt.length){const Xt=ua(Zt)[0];Ii.splice(Jt,1,Xt),ri.splice(Jt,1,Xt),Ja([...Ii]),hi([...ri])}}),ai=(_e,Jt,nn)=>{var Fn;const Zt=nn!==void 0,Xt=(Fn=Qi.find(Qt=>Qt.id===(_e==null?void 0:_e.type)))==null?void 0:Fn.type,an=`${Jt+1}.${nn===void 0?"":nn+1+"."}`;return Zt?E.createElement("div",{style:{padding:"10px 18px"}},`${an}\u3010${Xt}\u3011`,E.createElement(rt,{id:_e==null?void 0:_e.id,tagName:"span",className:ve.edit,onBlur:Qt=>Kr("question",Jt,Qt,nn),value:(_e==null?void 0:_e.question)||""})):E.createElement(E.Fragment,null,E.createElement("div",{className:ve.actionHead},E.createElement("div",{className:"c-light-primary"},`${an}\u3010${Xt}\u3011`),kn!==1&&E.createElement(tt.Z,{disabled:(_e==null?void 0:_e.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Qt=>Kr("score",Jt,Qt,nn),value:_e==null?void 0:_e.score}),E.createElement(Se.Z,{align:"middle",style:{marginLeft:"auto"}},!!Qr&&E.createElement("span",{className:"current c-light-primary mr30",onClick:()=>qa(_e,Jt)},E.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),E.createElement(He.default,{onChange:Qt=>Kr("checked",Jt,Qt.target.checked,nn),checked:!!(_e!=null&&_e.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),E.createElement(rt,{id:_e==null?void 0:_e.id,tagName:"div",style:{padding:"10px 18px"},className:ve.edit,onBlur:Qt=>Kr("question",Jt,Qt,nn),value:_e==null?void 0:_e.question}))},bi=(_e,Jt,nn)=>E.createElement(E.Fragment,null,["0","1","2","4"].includes(_e==null?void 0:_e.type)&&E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u7B54\u6848\uFF1A${Jt||""}`,tagName:"p"}),!nn&&E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u96BE\u5EA6\uFF1A${(_e==null?void 0:_e.difficulty)||""}`,tagName:"p"}),(_e==null?void 0:_e.type)!=="7"&&E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u89E3\u6790\uFF1A${(_e==null?void 0:_e.analyze)||""}`,tagName:"p"}),!nn&&E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(_e==null?void 0:_e.knowledgePoint)||""}`,tagName:"p"})),Ba=(_e,Jt,nn,Fn)=>{const Zt=Fn!==void 0,Xt=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],an=Zt&&!_e.last&&!_e.errorMsg?{marginBottom:10}:{},Qt=Xt.map(en=>({key:en,label:en,onClick:()=>Kr("difficulty",nn,en,Fn)}));return E.createElement("div",{className:ve.liWrap,style:an},["4"].includes(_e==null?void 0:_e.type)&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),E.createElement(rt,{id:_e==null?void 0:_e.id,tagName:"div",className:`${ve.edit} c-black`,onBlur:en=>Kr("answer",nn,[en],Fn),value:Jt})),!Zt&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Qe.Z,{menu:{items:Qt}},E.createElement("span",{className:"c-light-primary"},_e==null?void 0:_e.difficulty,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(_e==null?void 0:_e.type)!=="7"&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),E.createElement(rt,{id:_e==null?void 0:_e.id,tagName:"div",className:`${ve.edit} c-grey-333`,onBlur:en=>Kr("analyze",nn,en,Fn),value:_e==null?void 0:_e.analyze})),!Zt&&E.createElement("div",{onKeyDown:ct,className:ve.li},E.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),E.createElement(rt,{id:_e==null?void 0:_e.id,tagName:"div",value:(_e==null?void 0:_e.knowledgePoint)||"",className:`${ve.edit} c-grey-333`,onBlur:en=>Kr("knowledgePoint",nn,Zn(Gn(en)),Fn)})))},ra=_e=>E.createElement(E.Fragment,null,typeof(_e==null?void 0:_e.errorMsg)=="string"&&!!(_e!=null&&_e.errorMsg)&&E.createElement("h5",{contentEditable:!1},E.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),E.createElement("div",null,_e==null?void 0:_e.errorMsg))),eo=_e=>E.createElement(E.Fragment,null,typeof(_e==null?void 0:_e.errorMsg)=="string"&&!!(_e!=null&&_e.errorMsg)&&E.createElement("h5",null,E.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),E.createElement("div",null,_e==null?void 0:_e.errorMsg))),wi=(_e,Jt,nn,Fn)=>{let Zt="flex";return(ur&&Cr!==Fn||$i&&!(nn!=null&&nn.errorMsg))&&(Zt="none"),E.createElement("div",{className:ve.row,style:{display:Zt}},E.createElement("div",{className:ve.leftLayout},Jn||E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},_e))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:nn!=null&&nn.errorMsg?ve.error:""},Jt)))},Qi=[{id:"0",type:"\u5355\u9009\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0;let an=(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn[0];const Qt=E.createElement(E.Fragment,null,ya(_e,Jt,nn),(Zt=_e==null?void 0:_e.options)==null?void 0:Zt.map((pr,cr)=>E.createElement(rt,{id:_e==null?void 0:_e.id,key:cr,value:`${Ki[cr]}.${pr}`,tagName:"p"})),bi(_e,an,Xt),ra(_e));let en=Xt?_e:ri[Jt];const Wn=en==null?void 0:en.options,fr=E.createElement(E.Fragment,null,ai(en,Jt,nn),Wn==null?void 0:Wn.map((pr,cr)=>{var Xr;return E.createElement("div",{key:cr,className:ve.option},E.createElement("aside",{className:((Xr=en==null?void 0:en.answer)==null?void 0:Xr[0])===Ki[cr]?ve.active:"",onClick:()=>Kr("answer",Jt,[Ki[cr]],nn)},Ki[cr]),E.createElement(rt,{id:en==null?void 0:en.id,tagName:"div",className:`${ve.text}`,onBlur:ca=>{Wn[cr]=ca,Kr("options",Jt,Wn,nn)},value:pr}))}),Ba(en,"",Jt,nn),eo(en));return Xt?[Qt,fr]:wi(Qt,fr,en,Jt)},deal:_e=>{var Jt,nn,Fn;_e.score=_e.score===void 0?2:_e.score;let Zt=Zn((Jt=_e==null?void 0:_e.answer)==null?void 0:Jt[0]).toUpperCase();_e.answer=Zt?[Zt]:[];let Xt=[];if(!(_e!=null&&_e.options))Xt.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{_e.options=(nn=_e.options)==null?void 0:nn.slice(0,15);const an=_e.options.map(en=>en==null?void 0:en.trim().replace(/^\s+|\s+$/g,""));new Set(an).size!==an.length&&Xt.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Zt||Xt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),Zt&&(Ki.slice(0,((Fn=_e==null?void 0:_e.options)==null?void 0:Fn.length)||15).includes(Zt)||Xt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),Zn(_e==null?void 0:_e.question)||Xt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Xt.join(` +`),_e}},{id:"1",type:"\u591A\u9009\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0;let an=(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn[0];const Qt=E.createElement(E.Fragment,null,ya(_e,Jt,nn),(Zt=_e==null?void 0:_e.options)==null?void 0:Zt.map((pr,cr)=>E.createElement(rt,{id:_e==null?void 0:_e.id,key:cr,value:`${Ki[cr]}.${pr}`,tagName:"p"})),bi(_e,an,Xt),ra(_e));let en=Xt?_e:ri[Jt];const Wn=en==null?void 0:en.options,fr=E.createElement(E.Fragment,null,ai(en,Jt,nn),Wn==null?void 0:Wn.map((pr,cr)=>{var Xr,ca;return E.createElement("div",{key:cr,className:ve.option},E.createElement("aside",{className:(ca=(Xr=en==null?void 0:en.answer)==null?void 0:Xr[0])!=null&&ca.includes(Ki[cr])?ve.active:"",onClick:()=>{var La;let Pa=((La=en==null?void 0:en.answer)==null?void 0:La[0])||"";const Xi=Ki[cr];Pa.includes(Xi)?Pa=Pa.replace(new RegExp(Xi,"g"),""):Pa+=Xi,Pa=Pa.split("").sort().join(""),Kr("answer",Jt,[Pa],nn)}},Ki[cr]),E.createElement(rt,{id:en==null?void 0:en.id,tagName:"div",className:`${ve.text}`,onBlur:La=>{Wn[cr]=La,Kr("options",Jt,Wn,nn)},value:pr}))}),Ba(en,"",Jt,nn),eo(en));return Xt?[Qt,fr]:wi(Qt,fr,en,Jt)},deal:_e=>{var Jt,nn,Fn;_e.score=_e.score===void 0?2:_e.score;let Zt=Zn((Jt=_e==null?void 0:_e.answer)==null?void 0:Jt[0]).toUpperCase().split("").sort().join("");_e.answer=Zt?[Zt]:[];let Xt=[];if(!(_e!=null&&_e.options))Xt.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{_e.options=(nn=_e.options)==null?void 0:nn.slice(0,15);const an=_e.options.map(en=>en==null?void 0:en.trim().replace(/^\s+|\s+$/g,""));new Set(an).size!==an.length&&Xt.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(Zt||Xt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),Zt){const an=Ki.slice(0,((Fn=_e==null?void 0:_e.options)==null?void 0:Fn.length)||15);It(an).includes(Zt)||Xt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return Zn(_e==null?void 0:_e.question)||Xt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Xt.join(` `),_e}},{id:"2",type:"\u5224\u65AD\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0;let an=(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn[0];const Qt=E.createElement(E.Fragment,null,ya(_e,Jt,nn),bi(_e,an,Xt),ra(_e));let en=Xt?_e:ri[Jt];const Wn=["\u6B63\u786E","\u9519\u8BEF"];let fr=((Zt=en==null?void 0:en.answer)==null?void 0:Zt[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(fr)?fr="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(fr)&&(fr="\u9519\u8BEF");const pr=E.createElement(E.Fragment,null,ai(en,Jt,nn),Wn==null?void 0:Wn.map((cr,Xr)=>E.createElement("div",{key:Xr,className:ve.option},E.createElement("aside",{style:{borderRadius:2},className:fr===cr?ve.active:"",onClick:()=>Kr("answer",Jt,[cr],nn)},cr==="\u6B63\u786E"?"T":"F"),E.createElement("div",{style:{pointerEvents:"none"},className:`${ve.text}`},cr))),Ba(en,"",Jt,nn),eo(en));return Xt?[Qt,pr]:wi(Qt,pr,en,Jt)},deal:_e=>{var Jt;_e.score=_e.score===void 0?2:_e.score;let nn=Zn((Jt=_e==null?void 0:_e.answer)==null?void 0:Jt[0]);_e.answer=nn?[nn]:[];let Fn=[];return nn||Fn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),nn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(nn)&&Fn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Zn(_e==null?void 0:_e.question)||Fn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Fn.join(` -`),_e}},{id:"3",type:"\u586B\u7A7A\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0,an=E.createElement(E.Fragment,null,ya(_e,Jt,nn),(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn.map((Wn,fr)=>E.createElement(at,{id:_e==null?void 0:_e.id,key:fr,tagName:"p",value:`\u7B54\u6848${fr+1}\uFF1A${Wn.text||""}`})),bi(_e,"",Xt),ra(_e));let Qt=Xt?_e:ri[Jt];const en=E.createElement(E.Fragment,null,ai(Qt,Jt,nn),(Zt=Qt==null?void 0:Qt.answer)==null?void 0:Zt.map((Wn,fr)=>E.createElement("div",{key:fr,className:ve.option},E.createElement("aside",{className:ve.fill},"\u586B\u7A7A\u9879",fr+1),Wn.model===1&&E.createElement(at,{id:Qt==null?void 0:Qt.id,tagName:"div",onBlur:pr=>{Qt.answer[fr].latex=Gn(pr),Kr("answer",Jt,Qt.answer,nn)},className:`${ve.text}`,value:Wn.latex}),Wn.model===2&&E.createElement(st.Z,{value:Wn.latex,onChange:pr=>{Qt.answer[fr].latex=pr,Kr("answer",Jt,Qt.answer,nn)}}))),Ba(Qt,"",Jt,nn),eo(Qt));return Xt?[an,en]:wi(an,en,Qt,Jt)},deal:_e=>{var Jt;_e.score=_e.score===void 0?2:_e.score;const nn=(Jt=_e.answer)==null?void 0:Jt.map(Zt=>{if(Object.prototype.toString.call(Zt)==="[object Object]")return Zt;Zt=Zt==null?void 0:Zt.trim();const Xt={model:1,text:Zt,latex:Zt};return Zt.startsWith("$$")&&Zt.endsWith("$$")||Zt.startsWith("`$$")&&Zt.endsWith("$$`")?(Xt.model=2,Xt.latex=Zt.slice(2,-2)):Xt.latex=Gn(Zt),Xt});_e.answer=nn;let Fn=[];return nn||Fn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Zn(_e==null?void 0:_e.question)||Fn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Fn.join(` +`),_e}},{id:"3",type:"\u586B\u7A7A\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0,an=E.createElement(E.Fragment,null,ya(_e,Jt,nn),(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn.map((Wn,fr)=>E.createElement(rt,{id:_e==null?void 0:_e.id,key:fr,tagName:"p",value:`\u7B54\u6848${fr+1}\uFF1A${Wn.text||""}`})),bi(_e,"",Xt),ra(_e));let Qt=Xt?_e:ri[Jt];const en=E.createElement(E.Fragment,null,ai(Qt,Jt,nn),(Zt=Qt==null?void 0:Qt.answer)==null?void 0:Zt.map((Wn,fr)=>E.createElement("div",{key:fr,className:ve.option},E.createElement("aside",{className:ve.fill},"\u586B\u7A7A\u9879",fr+1),Wn.model===1&&E.createElement(rt,{id:Qt==null?void 0:Qt.id,tagName:"div",onBlur:pr=>{Qt.answer[fr].latex=Gn(pr),Kr("answer",Jt,Qt.answer,nn)},className:`${ve.text}`,value:Wn.latex}),Wn.model===2&&E.createElement(ut.Z,{value:Wn.latex,onChange:pr=>{Qt.answer[fr].latex=pr,Kr("answer",Jt,Qt.answer,nn)}}))),Ba(Qt,"",Jt,nn),eo(Qt));return Xt?[an,en]:wi(an,en,Qt,Jt)},deal:_e=>{var Jt;_e.score=_e.score===void 0?2:_e.score;const nn=(Jt=_e.answer)==null?void 0:Jt.map(Zt=>{if(Object.prototype.toString.call(Zt)==="[object Object]")return Zt;Zt=Zt==null?void 0:Zt.trim();const Xt={model:1,text:Zt,latex:Zt};return Zt.startsWith("$$")&&Zt.endsWith("$$")||Zt.startsWith("`$$")&&Zt.endsWith("$$`")?(Xt.model=2,Xt.latex=Zt.slice(2,-2)):Xt.latex=Gn(Zt),Xt});_e.answer=nn;let Fn=[];return nn||Fn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Zn(_e==null?void 0:_e.question)||Fn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Fn.join(` `),_e}},{id:"4",type:"\u7B80\u7B54\u9898",element:(_e,Jt,nn)=>{var Fn,Zt;const Xt=nn!==void 0;let an=(Fn=_e==null?void 0:_e.answer)==null?void 0:Fn[0];const Qt=E.createElement(E.Fragment,null,ya(_e,Jt,nn),bi(_e,an,Xt),ra(_e));let en=Xt?_e:ri[Jt];const Wn=E.createElement(E.Fragment,null,ai(en,Jt,nn),Ba(en,(Zt=en==null?void 0:en.answer)==null?void 0:Zt[0],Jt,nn),eo(en));return Xt?[Qt,Wn]:wi(Qt,Wn,en,Jt)},deal:_e=>{_e.score=_e.score===void 0?5:_e.score;let Jt=[];return Zn(_e==null?void 0:_e.question)||Jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),_e.errorMsg=Jt.join(` -`),_e}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(_e,Jt)=>{var nn,Fn;const Zt=ri[Jt],Xt=xt.slice(0,4).map(an=>({key:an,label:an,onClick:()=>Kr("platform",Jt,an)}));return E.createElement("div",{className:ve.row,style:{display:$i?Zt!=null&&Zt.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},ya(_e,Jt),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(_e==null?void 0:_e.description)||""}`,tagName:"p"}),bi(_e),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${_e==null?void 0:_e.timeLimit}`,tagName:"p"}),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(_e==null?void 0:_e.platform)||""}`,tagName:"p"}),E.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),E.createElement("h4",null),E.createElement(at,{id:_e==null?void 0:_e.id,value:(_e==null?void 0:_e.code)||"",tagName:"div"}),(nn=_e==null?void 0:_e.inputs)==null?void 0:nn.map((an,Qt)=>{var en;return E.createElement(E.Fragment,{key:Qt},E.createElement("h4",null),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Qt+1})\u8F93\u5165\uFF1A${an||""}`,tagName:"div"}),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Qt+1})\u8F93\u51FA\uFF1A${((en=_e==null?void 0:_e.outputs)==null?void 0:en[Qt])||""}`,tagName:"div"}))}),ra(_e)))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:Zt!=null&&Zt.errorMsg?ve.error:""},ai(Zt,Jt),E.createElement("div",{className:ve.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:Zt==null?void 0:Zt.description,tagName:"div",onBlur:an=>Kr("description",Jt,an)}))),Ba(Zt,"",Jt),E.createElement("div",{className:ve.liWrap},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:Zt==null?void 0:Zt.timeLimit,tagName:"div",onBlur:an=>Kr("timeLimit",Jt,Gn(an))})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Qe.Z,{menu:{items:Xt}},E.createElement("span",{className:"c-light-primary"},Zt==null?void 0:Zt.platform,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),E.createElement("div",{className:ve.li,style:{flexDirection:"column",alignItems:"start"}},E.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.code)||"",onBlur:an=>Kr("code",Jt,Gn(an)),tagName:"div"}))),(Fn=Zt==null?void 0:Zt.inputs)==null?void 0:Fn.map((an,Qt)=>{var en;return E.createElement("div",{className:ve.liWrap,key:Qt},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Qt+1,")\u8F93\u5165\uFF1A"),E.createElement(at,{id:Zt==null?void 0:Zt.id,value:an||"",className:ve.edit,onBlur:Wn=>{const fr=[...(Zt==null?void 0:Zt.inputs)||[]];fr[Qt]=Gn(Wn),Kr("inputs",Jt,fr)},tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Qt+1,")\u8F93\u51FA\uFF1A"),E.createElement(at,{id:Zt==null?void 0:Zt.id,value:((en=Zt==null?void 0:Zt.outputs)==null?void 0:en[Qt])||"",className:ve.edit,onBlur:Wn=>{const fr=[...(Zt==null?void 0:Zt.outputs)||[]];fr[Qt]=Gn(Wn),Kr("outputs",Jt,fr)},tagName:"div"})))}),eo(Zt))))},deal:_e=>{var Jt,nn,Fn;_e.score=_e.score===void 0?10:_e.score,_e.code=(Jt=_e.code)==null?void 0:Jt.trim();let Zt=[];Zn(_e==null?void 0:_e.question)?((nn=_e==null?void 0:_e.question)==null?void 0:nn.length)>60&&Zt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):Zt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zn(_e==null?void 0:_e.description)||Zt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Xt=Zn(String((_e==null?void 0:_e.timeLimit)||""));if(_e.timeLimit=Xt,(!Xt||Xt&&!["3","4","5","6","7","8","9","10"].includes(Xt))&&Zt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),_e.platform=Zn(_e==null?void 0:_e.platform),_e!=null&&_e.platform){const an=["c","c++","java","python"],Qt=(Fn=_e==null?void 0:_e.platform)==null?void 0:Fn.toLowerCase(),en=an.findIndex(Wn=>Wn===Qt);en>-1?_e.platform=xt[en]:Zt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else Zt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(_e!=null&&_e.inputs)||!(_e!=null&&_e.outputs))_e.inputs=[],_e.outputs=[],Zt.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const an=Math.min(_e.inputs.length,_e.outputs.length);_e.inputs=_e.inputs.slice(0,an),_e.outputs=_e.outputs.slice(0,an),_e.outputs.some(Qt=>!Zn(Qt))&&Zt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return _e.errorMsg=Zt.join(` +`),_e}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(_e,Jt)=>{var nn,Fn;const Zt=ri[Jt],Xt=wt.slice(0,4).map(an=>({key:an,label:an,onClick:()=>Kr("platform",Jt,an)}));return E.createElement("div",{className:ve.row,style:{display:$i?Zt!=null&&Zt.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},ya(_e,Jt),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(_e==null?void 0:_e.description)||""}`,tagName:"p"}),bi(_e),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${_e==null?void 0:_e.timeLimit}`,tagName:"p"}),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(_e==null?void 0:_e.platform)||""}`,tagName:"p"}),E.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),E.createElement("h4",null),E.createElement(rt,{id:_e==null?void 0:_e.id,value:(_e==null?void 0:_e.code)||"",tagName:"div"}),(nn=_e==null?void 0:_e.inputs)==null?void 0:nn.map((an,Qt)=>{var en;return E.createElement(E.Fragment,{key:Qt},E.createElement("h4",null),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Qt+1})\u8F93\u5165\uFF1A${an||""}`,tagName:"div"}),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Qt+1})\u8F93\u51FA\uFF1A${((en=_e==null?void 0:_e.outputs)==null?void 0:en[Qt])||""}`,tagName:"div"}))}),ra(_e)))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:Zt!=null&&Zt.errorMsg?ve.error:""},ai(Zt,Jt),E.createElement("div",{className:ve.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:Zt==null?void 0:Zt.description,tagName:"div",onBlur:an=>Kr("description",Jt,an)}))),Ba(Zt,"",Jt),E.createElement("div",{className:ve.liWrap},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:Zt==null?void 0:Zt.timeLimit,tagName:"div",onBlur:an=>Kr("timeLimit",Jt,Gn(an))})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Qe.Z,{menu:{items:Xt}},E.createElement("span",{className:"c-light-primary"},Zt==null?void 0:Zt.platform,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),E.createElement("div",{className:ve.li,style:{flexDirection:"column",alignItems:"start"}},E.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.code)||"",onBlur:an=>Kr("code",Jt,Gn(an)),tagName:"div"}))),(Fn=Zt==null?void 0:Zt.inputs)==null?void 0:Fn.map((an,Qt)=>{var en;return E.createElement("div",{className:ve.liWrap,key:Qt},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Qt+1,")\u8F93\u5165\uFF1A"),E.createElement(rt,{id:Zt==null?void 0:Zt.id,value:an||"",className:ve.edit,onBlur:Wn=>{const fr=[...(Zt==null?void 0:Zt.inputs)||[]];fr[Qt]=Gn(Wn),Kr("inputs",Jt,fr)},tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Qt+1,")\u8F93\u51FA\uFF1A"),E.createElement(rt,{id:Zt==null?void 0:Zt.id,value:((en=Zt==null?void 0:Zt.outputs)==null?void 0:en[Qt])||"",className:ve.edit,onBlur:Wn=>{const fr=[...(Zt==null?void 0:Zt.outputs)||[]];fr[Qt]=Gn(Wn),Kr("outputs",Jt,fr)},tagName:"div"})))}),eo(Zt))))},deal:_e=>{var Jt,nn,Fn;_e.score=_e.score===void 0?10:_e.score,_e.code=(Jt=_e.code)==null?void 0:Jt.trim();let Zt=[];Zn(_e==null?void 0:_e.question)?((nn=_e==null?void 0:_e.question)==null?void 0:nn.length)>60&&Zt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):Zt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zn(_e==null?void 0:_e.description)||Zt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Xt=Zn(String((_e==null?void 0:_e.timeLimit)||""));if(_e.timeLimit=Xt,(!Xt||Xt&&!["3","4","5","6","7","8","9","10"].includes(Xt))&&Zt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),_e.platform=Zn(_e==null?void 0:_e.platform),_e!=null&&_e.platform){const an=["c","c++","java","python"],Qt=(Fn=_e==null?void 0:_e.platform)==null?void 0:Fn.toLowerCase(),en=an.findIndex(Wn=>Wn===Qt);en>-1?_e.platform=wt[en]:Zt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else Zt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(_e!=null&&_e.inputs)||!(_e!=null&&_e.outputs))_e.inputs=[],_e.outputs=[],Zt.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const an=Math.min(_e.inputs.length,_e.outputs.length);_e.inputs=_e.inputs.slice(0,an),_e.outputs=_e.outputs.slice(0,an),_e.outputs.some(Qt=>!Zn(Qt))&&Zt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return _e.errorMsg=Zt.join(` `),_e}},{id:"7",type:"\u7EC4\u5408\u9898",element:(_e,Jt)=>{var nn,Fn;const Zt=ri[Jt];return E.createElement("div",{className:ve.row,style:{display:$i?Zt!=null&&Zt.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},ya(_e,Jt),bi(_e),(nn=_e==null?void 0:_e.questions)==null?void 0:nn.map((Xt,an)=>{var Qt;const en=(Qt=Qi.find(Wn=>Wn.id===(Xt==null?void 0:Xt.type)))==null?void 0:Qt.element;return E.createElement(E.Fragment,{key:`left-${_e.id}-${an}`},en(Xt,Jt,an)[0])}),ra(_e),E.createElement("p",{contentEditable:!0},"}}")))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:Zt!=null&&Zt.errorMsg?ve.error:""},ai(Zt,Jt),Ba(Zt,"",Jt),(Fn=Zt==null?void 0:Zt.questions)==null?void 0:Fn.map((Xt,an)=>{var Qt;const en=(Qt=Qi.find(Wn=>Wn.id===(Xt==null?void 0:Xt.type)))==null?void 0:Qt.element;return E.createElement(E.Fragment,{key:`right-${Zt.id}-${an}`},en(Xt,Jt,an)[1])}),eo(Zt))))},deal:_e=>{var Jt,nn,Fn,Zt,Xt;const an=ua,Qt=[...Qi],en=Qt.findIndex(cr=>cr.id==="0"),Wn=Qt.findIndex(cr=>cr.id==="1");if(en!==-1){const cr=Qt[en].deal;Qt[en].deal=Xr=>{const ca=cr(Xr);return ca.errorMsg&&(ca.errorMsg=ca.errorMsg.split(` `).filter(La=>La!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` `)),ca}}if(Wn!==-1){const cr=Qt[Wn].deal;Qt[Wn].deal=Xr=>{const ca=cr(Xr);return ca.errorMsg&&(ca.errorMsg=ca.errorMsg.split(` `).filter(La=>La!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` `)),ca}}_e.questions=(Jt=_e.questions)!=null&&Jt.length?ua(_e.questions.slice(0,20)):[],_e.questions=(nn=_e.questions)==null?void 0:nn.map((cr,Xr)=>{var ca;if(cr.type==="0"||cr.type==="1"){const La=(ca=cr.options)==null?void 0:ca.map(Pa=>Pa==null?void 0:Pa.trim().replace(/^\s+|\s+$/g,""));La&&new Set(La).size!==La.length&&(cr.errorMsg=(cr.errorMsg?cr.errorMsg+` -`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Kt(pt({},cr),{last:Xr===_e.questions.length-1})});const fr=(Fn=_e.questions)==null?void 0:Fn.reduce((cr,Xr)=>{const ca=parseFloat(Xr.score);return isNaN(ca)?cr:cr+ca},0);_e.score=fr;let pr=[];return(Zt=_e.questions)!=null&&Zt.length?_e.errorMsg=((Xt=_e.questions)==null?void 0:Xt.findIndex(cr=>!!cr.errorMsg))>-1:pr.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Zn(_e==null?void 0:_e.question)||pr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pr.length&&(_e.errorMsg=pr.join(` -`)),_e}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(_e,Jt)=>{var nn,Fn;const Zt=ri[Jt],Xt=xt.map(an=>({key:an,label:an,onClick:()=>Kr("platform",Jt,an)}));return E.createElement("div",{className:ve.row,style:{display:$i?Zt!=null&&Zt.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},ya(_e,Jt),bi(_e),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${_e==null?void 0:_e.timeLimit}`,tagName:"p"}),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(_e==null?void 0:_e.platform)||""}`,tagName:"p"}),E.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),E.createElement("h4",null),E.createElement(at,{id:_e==null?void 0:_e.id,value:(_e==null?void 0:_e.code)||"",tagName:"div"}),E.createElement("h4",null),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(_e==null?void 0:_e.input)||""}`,tagName:"p"}),E.createElement(at,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(_e==null?void 0:_e.output)||""}`,tagName:"p"}),(nn=_e==null?void 0:_e.answer)==null?void 0:nn.map((an,Qt)=>E.createElement(at,{key:Qt,id:_e==null?void 0:_e.id,value:`\u7B54\u6848${Qt+1}\uFF1A${an||""}`,tagName:"p"})),ra(_e)))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:Zt!=null&&Zt.errorMsg?ve.error:""},ai(Zt,Jt),Ba(Zt,"",Jt),E.createElement("div",{className:ve.liWrap},E.createElement("div",{className:ve.li,onKeyDown:dt},E.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:Zt==null?void 0:Zt.timeLimit,tagName:"div",onBlur:an=>Kr("timeLimit",Jt,Gn(an))})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Qe.Z,{menu:{items:Xt}},E.createElement("span",{className:"c-light-primary"},Zt==null?void 0:Zt.platform,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),E.createElement("div",{className:ve.li,style:{flexDirection:"column",alignItems:"start"}},E.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.code)||"",onBlur:an=>Kr("code",Jt,Gn(an)),tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.input)||"",onBlur:an=>Kr("input",Jt,Gn(an)),tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),E.createElement(at,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.output)||"",onBlur:an=>Kr("output",Jt,Gn(an)),tagName:"div"}))),E.createElement("div",{className:ve.liWrap},(Fn=Zt==null?void 0:Zt.answer)==null?void 0:Fn.map((an,Qt)=>E.createElement("div",{className:ve.li,key:Qt},E.createElement("aside",null,"\u7B54\u6848",Qt+1,"\uFF1A"),E.createElement(at,{id:Zt==null?void 0:Zt.id,value:an||"",className:ve.edit,onBlur:en=>{const Wn=[...(Zt==null?void 0:Zt.answer)||[]];Wn[Qt]=Gn(en),Kr("output",Jt,Wn)},tagName:"div"})))),eo(Zt))))},deal:_e=>{var Jt,nn,Fn,Zt,Xt,an,Qt,en;_e.score=_e.score===void 0?10:_e.score,_e.code=(Fn=(nn=(Jt=_e.code)==null?void 0:Jt.trim())==null?void 0:nn.replace(/@_@/g,"@\u2581@"))==null?void 0:Fn.replace(/@__@/g,"@\u2581\u2581@");let Wn=[];if(Zn(_e==null?void 0:_e.question)||Wn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zn(_e==null?void 0:_e.code)?/@▁@|@▁▁@/.test(_e==null?void 0:_e.code)?(Zt=_e==null?void 0:_e.answer)!=null&&Zt.length&&((Xt=_e==null?void 0:_e.code.match(/@▁@|@▁▁@/g))==null?void 0:Xt.length)!==((an=_e==null?void 0:_e.answer)==null?void 0:an.length)&&Wn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Wn.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Wn.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),_e!=null&&_e.answer?(Qt=_e.answer)!=null&&Qt.some(pr=>!Zn(pr))&&Wn.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Wn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),_e.platform=Zn(_e==null?void 0:_e.platform),_e!=null&&_e.platform){const pr=["c","c++","java","python","javascript","ruby"],cr=(en=_e==null?void 0:_e.platform)==null?void 0:en.toLowerCase(),Xr=pr.findIndex(ca=>ca===cr);Xr>-1?_e.platform=xt[Xr]:Wn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Wn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Zn(_e==null?void 0:_e.output)||Wn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const fr=Zn(String((_e==null?void 0:_e.timeLimit)||""));return _e.timeLimit=fr,(!fr||fr&&!["3","4","5","6","7","8","9","10"].includes(fr))&&Wn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),_e.errorMsg=Wn.join(` -`),_e}}],Hi=()=>E.createElement(E.Fragment,null,Ii.filter(_e=>{var Jt;return!!((Jt=Qi.find(Fn=>Fn.id===(_e==null?void 0:_e.type)))==null?void 0:Jt.element)}).map((_e,Jt)=>{var nn;const Fn=(nn=Qi.find(Zt=>Zt.id===(_e==null?void 0:_e.type)))==null?void 0:nn.element;return E.createElement(E.Fragment,{key:_e.id},Fn(_e,Jt))})),oo=()=>kt(void 0,null,function*(){const _e=ri.filter(Jt=>!Jt.checked);if(Da!==3||!_e.length){Ae.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Br){Nr(!0),yield Br(ri),Nr(!1);return}Ga.setFieldsValue({course_discipline_id:Xn}),Ut(!0)}),na=(_e,Jt=[])=>{if(typeof _e=="string")return _e.trim();if(Array.isArray(_e))return _e.map(nn=>na(nn,Jt));if(typeof _e=="object"&&_e!==null){const nn={};for(const Fn in _e)_e.hasOwnProperty(Fn)&&(Jt.includes(Fn)?nn[Fn]=_e[Fn]:nn[Fn]=na(_e[Fn],Jt));return nn}return _e},to=_e=>kt(void 0,null,function*(){const Jt=ua(na(_e));Ja(Jt),hi(JSON.parse(JSON.stringify(Jt))),Sr(3),Ei(!1),Ha(!1)});(0,E.useEffect)(()=>{if(Vt)return;const _e=()=>{nr(Jt=>Jt>=90?(clearInterval(Yi.current),90):Jt+1)};return Yi.current=setInterval(_e,5e4/90),()=>clearInterval(Yi.current)},[Vt]);const Fi=(_e,Jt)=>{On(!1);const nn=new FormData;Object.keys(Jt).forEach(Zt=>{nn.append(Zt,Jt[Zt])});const Fn=new window.XMLHttpRequest;Fn.withCredentials=!0,Fn.addEventListener("load",function(Zt){return kt(this,null,function*(){var Xt,an;try{const Qt=JSON.parse((Xt=Zt==null?void 0:Zt.target)==null?void 0:Xt.response);if(On(!0),nr(100),yield new Promise(en=>setTimeout(()=>en(),780)),Qt.status===0){if(!((an=Qt==null?void 0:Qt.data)!=null&&an.length)){Ae.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Ei(!1);return}to((Qt==null?void 0:Qt.data)||[])}else Ei(!1),Ae.ZP.warning(Qt==null?void 0:Qt.message)}catch(Qt){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Qt)}})}),Fn.addEventListener("error",()=>{Ei(!1)}),Fn.open("POST",`${be.Z.API_SERVER}${_e}`),Fn.send(nn)},Oo=_e=>kt(void 0,null,function*(){const Jt=_e.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(Jt)==-1?(Ae.ZP.error(`${_e.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Ei(!0),Aa("\u5904\u7406\u4E2D"),Fi("/api/intelligent_imports/import.json",{file:_e}),Promise.reject())});let Ni=[{key:1,label:E.createElement(qe.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Oo},E.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Bt.Ny)()||(0,Bt.$O)())&&Ni.push({key:2,label:E.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{$o.current.onClick()}});const li=[ri.length,(Xa=ri.filter(_e=>!!(_e!=null&&_e.errorMsg)))==null?void 0:Xa.length];return E.createElement("div",{className:Je()(ve.intelligentBox,"intelligent-body-curb",ce),style:Kt(pt({},me),{width:le}),ref:rn},E.createElement("div",{className:ve.underpin},E.createElement("b",{style:Sn}),E.createElement("b",{style:Sn})),E.createElement("div",{className:ve.head,style:{top:wn}},E.createElement("div",{className:ve.leftLayout},Vr||E.createElement(E.Fragment,null,E.createElement(Se.Z,{align:"middle"},E.createElement("div",{className:ve.title},"\u8BD5\u9898\u7F16\u8F91"),!Nn&&E.createElement(Be.op,{href:`${be.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",E.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),E.createElement(Be.op,{onClick:tn,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Nn&&E.createElement(Qe.Z,{overlayClassName:ve.menu,menu:{items:Ni}},E.createElement(Be.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!sr&&sr),E.createElement("div",{className:ve.tip},E.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),E.createElement(Se.Z,{className:ve.rightLayout,style:{alignItems:"start"}},Ar||E.createElement(E.Fragment,null,E.createElement("div",{className:ve.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Da)&&E.createElement(Re.default,{className:"ml20",checked:$i,onChange:_e=>Ha(_e.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Da)&&E.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",E.createElement("span",{className:"ml5 mr5 c-light-primary"},li[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",E.createElement("span",{className:"ml5 mr5 c-red-e53"},li[1]),"\u9898")),ur&&E.createElement("div",{className:ve.tabs},Ii==null?void 0:Ii.map((_e,Jt)=>E.createElement("div",{onClick:()=>{Hr(Jt)},className:Cr===Jt&&ve.active,key:Jt},"\u65B0\u9898",Jt+1)))),E.createElement("div",{className:ve.centerBox},E.createElement("img",{className:"mb10",src:pe,width:56}),!va&&E.createElement(Be.op,{onClick:ta},"\u8BC6\u522B"))),[1,2].includes(Da)&&Ua(),[3].includes(Da)&&Hi(),E.createElement("div",{className:"pb10"}),E.createElement("div",{className:ve.buttonFixed},E.createElement("div",{className:ve.buttonWrap},E.createElement(ht.ZP,{size:"middle",className:`${ve.button} mr20`,onClick:ot},"\u53D6\u6D88"),E.createElement(ht.ZP,{size:"middle",type:"primary",loading:jr,className:`${ve.button}`,onClick:oo},Er))),E.createElement(Ue.default,{centered:!0,closable:!1,destroyOnClose:!0,open:ga,title:null,footer:null,width:320,afterClose:()=>nr(0)},E.createElement(Se.Z,{align:"middle",style:{flexDirection:"column"}},E.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},$r,E.createElement("span",{className:ve.dotLoading},E.createElement("span",null,"."),E.createElement("span",null,"."),E.createElement("span",null,"."))),E.createElement(Ge.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:En}),E.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",E.createElement("span",{className:"ml5 c-light-primary"},En,"%")))),E.createElement(Ue.default,{centered:!0,open:qt,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:ea,width:500,onCancel:()=>Ut(!1),onOk:()=>Ga.submit(),afterClose:()=>{Ga.resetFields()}},E.createElement(We.default,{style:{maxHeight:550},form:Ga,layout:"horizontal",colon:!1,size:"large",onFinish:_e=>kt(void 0,null,function*(){var Jt,nn,Fn,Zt,Xt;const an=ri.filter(Wn=>!Wn.checked&&!Wn.errorMsg);Ir(!0);const Qt=()=>kt(void 0,null,function*(){var Wn,fr;const pr=yield(0,Ke.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Kt(pt(pt({},on),_e),{list:an,mode:kn})});pr.status===0&&(un&&((Wn=pr==null?void 0:pr.data)!=null&&Wn.success)&&window.location.pathname==="/problemset"&&(ct.Z.publish("refresh-item-bank",_e.group_id),yield new Promise(cr=>setTimeout(()=>cr(),1500))),Ae.ZP.success(`\u6210\u529F\u5BFC\u5165${(fr=pr==null?void 0:pr.data)==null?void 0:fr.success}\u9053\u8BD5\u9898`,3),Ht(pr),Ut(!1)),Ir(!1)});if(kn!==1){yield Qt();return}const en=yield(0,Ke.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:ri,mode:kn}});if(en.status===0){if(!((Jt=en==null?void 0:en.data)!=null&&Jt.error_size)){yield Qt();return}Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Ir(!1)},title:"\u63D0\u793A",content:E.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",E.createElement("span",{className:"c-light-primary ml5 mr5"},(nn=en==null?void 0:en.data)==null?void 0:nn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",E.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Fn=en==null?void 0:en.data)==null?void 0:Fn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",E.createElement("span",{className:"ml5 mr5"},(Xt=(Zt=en==null?void 0:en.data)==null?void 0:Zt.index)==null?void 0:Xt.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Qt})}})},E.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),E.createElement(We.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},E.createElement(Ft.q,null)),kn===1&&E.createElement(We.default.Item,{label:E.createElement(Se.Z,{align:"middle",style:{justifyContent:"space-between"}},E.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),E.createElement("div",{onClick:()=>Lt(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},E.createElement("img",{className:"mr5 primary-hover",src:Et}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},E.createElement(nt.Z,{key:Rn})))),E.createElement(Ue.default,{centered:!0,open:Un,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:wr,onCancel:()=>Lt(!1),onOk:()=>za.submit(),afterClose:()=>{za.resetFields()}},E.createElement(We.default,{style:{maxHeight:550},form:za,layout:"horizontal",colon:!1,size:"large",onFinish:_e=>kt(void 0,null,function*(){var Jt;er(!0),(yield(0,Ke.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:_e.name,parent_id:(Jt=_e==null?void 0:_e.parent_id)==null?void 0:Jt[0]}})).status===0?(ar(Rn+1),setTimeout(()=>{Ae.ZP.success("\u64CD\u4F5C\u6210\u529F"),Lt(!1),er(!1)},1e3)):er(!1)})},E.createElement(We.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},E.createElement(Oe.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),E.createElement(We.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},E.createElement(nt.Z,null)))),E.createElement($e.Z,{onSave:_e=>{Ei(!0),Aa("\u5904\u7406\u4E2D"),Fi("/api/intelligent_imports/import.json",{html:_e})},ref:$o}))},se=Pe;var ae=he},28618:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=ne(71043),xe=ne(48136),Je=ne(34171),We=ne(62957),Ae=ne(59301);const Ue=(0,E.forwardRef)(({callback:tt,width:Se,onChange:Re,disabled:Qe,readOnly:qe,type:ht="",value:Ge="",style:Oe={}},Be)=>{const be=(0,E.useRef)(),Pe=(0,E.useRef)(),[Ye,it]=(0,E.useState)(0),[pe,Ke]=(0,E.useState)(0),[nt,Et]=(0,E.useState)(!1),At=()=>{var Le=document.createElement("div");Le.innerHTML=be.current.getValue();var ze=Le.innerText;return tt&&tt(ze),ze};(0,E.useImperativeHandle)(Be,()=>({getData:At}));const st=Le=>{Le.preventDefault();const ze=Le.clientX-Ye,Ne=Le.clientY-pe;document.body.onmousemove=at=>{let Bt=at.clientX-ze,ct=at.clientY-Ne;const $e=document.getElementsByClassName("markdown-popup-form")[0],Ft=window.innerWidth-$e.offsetWidth,De=window.innerHeight-$e.offsetHeight;Bt=Math.max(0,Math.min(Bt,Ft)),ct=Math.max(0,Math.min(ct,De)),Xe(at.clientX,at.clientY,ze,Ne)&&(it(Bt),Ke(ct))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xe=(Le,ze,Ne,at)=>{const Bt=document.body.clientHeight,ct=document.body.clientWidth;return Le<20&&Ne>Le||Le>ct-20&&Neze||ze>Bt-20&&at{nt&&setTimeout(()=>{const Le=document.getElementsByClassName("markdown-popup-form")[0],ze=window.innerWidth/2-Le.offsetWidth/2,Ne=window.innerHeight/2-Le.offsetHeight/2;it(ze),Ke(Ne)},0)},[nt]);const ut=()=>{Qe||qe||Et(!0)};return Ae.createElement("div",{style:Oe},Ae.createElement("div",{style:{width:Se||"100%",position:"relative"},className:`${ve.Z.mathFillWrap} ${Qe||qe?"cursorDefault":""}`,onClick:()=>ut()},Ae.createElement("math-field",{disabled:Qe,locale:"zh_cn",class:`${ve.Z.mathField} ${ht}`,readOnly:qe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:be,style:{width:"100%",fontSize:Ge?18:14},value:Ge||""})),Ae.createElement(We.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Ye,top:pe},title:Ae.createElement("div",{style:{cursor:"move"},onMouseDown:st},"\u8F93\u5165\u516C\u5F0F"),open:nt,onOk:()=>{const Le=Pe.current.getData();be.current.setValue(Le),Re(Le),Et(!1)},onCancel:()=>{Et(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ae.createElement(Je.Z,{value:Ge,ref:Pe,onChange:Re,showSaveButton:!1})))});Pt.Z=Ue},34171:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=ne(77019),xe=ne(5269),Je=ne(31691),We=ne(7939),Ae=ne(67495),Ue=ne(71043),tt=ne(48136),Se=ne(59301);const Re=(0,E.forwardRef)(({callback:Qe,showSaveButton:qe,value:ht=""},Ge)=>{const Oe=(0,E.useRef)(),Be=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],be=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r +`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Kt(ft({},cr),{last:Xr===_e.questions.length-1})});const fr=(Fn=_e.questions)==null?void 0:Fn.reduce((cr,Xr)=>{const ca=parseFloat(Xr.score);return isNaN(ca)?cr:cr+ca},0);_e.score=fr;let pr=[];return(Zt=_e.questions)!=null&&Zt.length?_e.errorMsg=((Xt=_e.questions)==null?void 0:Xt.findIndex(cr=>!!cr.errorMsg))>-1:pr.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Zn(_e==null?void 0:_e.question)||pr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pr.length&&(_e.errorMsg=pr.join(` +`)),_e}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(_e,Jt)=>{var nn,Fn;const Zt=ri[Jt],Xt=wt.map(an=>({key:an,label:an,onClick:()=>Kr("platform",Jt,an)}));return E.createElement("div",{className:ve.row,style:{display:$i?Zt!=null&&Zt.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(Nt,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},ya(_e,Jt),bi(_e),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${_e==null?void 0:_e.timeLimit}`,tagName:"p"}),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(_e==null?void 0:_e.platform)||""}`,tagName:"p"}),E.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),E.createElement("h4",null),E.createElement(rt,{id:_e==null?void 0:_e.id,value:(_e==null?void 0:_e.code)||"",tagName:"div"}),E.createElement("h4",null),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(_e==null?void 0:_e.input)||""}`,tagName:"p"}),E.createElement(rt,{id:_e==null?void 0:_e.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(_e==null?void 0:_e.output)||""}`,tagName:"p"}),(nn=_e==null?void 0:_e.answer)==null?void 0:nn.map((an,Qt)=>E.createElement(rt,{key:Qt,id:_e==null?void 0:_e.id,value:`\u7B54\u6848${Qt+1}\uFF1A${an||""}`,tagName:"p"})),ra(_e)))),E.createElement("div",{className:ve.rightLayout},E.createElement(mn,{className:Zt!=null&&Zt.errorMsg?ve.error:""},ai(Zt,Jt),Ba(Zt,"",Jt),E.createElement("div",{className:ve.liWrap},E.createElement("div",{className:ve.li,onKeyDown:ct},E.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:Zt==null?void 0:Zt.timeLimit,tagName:"div",onBlur:an=>Kr("timeLimit",Jt,Gn(an))})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Qe.Z,{menu:{items:Xt}},E.createElement("span",{className:"c-light-primary"},Zt==null?void 0:Zt.platform,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),E.createElement("div",{className:ve.li,style:{flexDirection:"column",alignItems:"start"}},E.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.code)||"",onBlur:an=>Kr("code",Jt,Gn(an)),tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.input)||"",onBlur:an=>Kr("input",Jt,Gn(an)),tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),E.createElement(rt,{className:ve.edit,id:Zt==null?void 0:Zt.id,value:(Zt==null?void 0:Zt.output)||"",onBlur:an=>Kr("output",Jt,Gn(an)),tagName:"div"}))),E.createElement("div",{className:ve.liWrap},(Fn=Zt==null?void 0:Zt.answer)==null?void 0:Fn.map((an,Qt)=>E.createElement("div",{className:ve.li,key:Qt},E.createElement("aside",null,"\u7B54\u6848",Qt+1,"\uFF1A"),E.createElement(rt,{id:Zt==null?void 0:Zt.id,value:an||"",className:ve.edit,onBlur:en=>{const Wn=[...(Zt==null?void 0:Zt.answer)||[]];Wn[Qt]=Gn(en),Kr("output",Jt,Wn)},tagName:"div"})))),eo(Zt))))},deal:_e=>{var Jt,nn,Fn,Zt,Xt,an,Qt,en;_e.score=_e.score===void 0?10:_e.score,_e.code=(Fn=(nn=(Jt=_e.code)==null?void 0:Jt.trim())==null?void 0:nn.replace(/@_@/g,"@\u2581@"))==null?void 0:Fn.replace(/@__@/g,"@\u2581\u2581@");let Wn=[];if(Zn(_e==null?void 0:_e.question)||Wn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Zn(_e==null?void 0:_e.code)?/@▁@|@▁▁@/.test(_e==null?void 0:_e.code)?(Zt=_e==null?void 0:_e.answer)!=null&&Zt.length&&((Xt=_e==null?void 0:_e.code.match(/@▁@|@▁▁@/g))==null?void 0:Xt.length)!==((an=_e==null?void 0:_e.answer)==null?void 0:an.length)&&Wn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Wn.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Wn.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),_e!=null&&_e.answer?(Qt=_e.answer)!=null&&Qt.some(pr=>!Zn(pr))&&Wn.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Wn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),_e.platform=Zn(_e==null?void 0:_e.platform),_e!=null&&_e.platform){const pr=["c","c++","java","python","javascript","ruby"],cr=(en=_e==null?void 0:_e.platform)==null?void 0:en.toLowerCase(),Xr=pr.findIndex(ca=>ca===cr);Xr>-1?_e.platform=wt[Xr]:Wn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Wn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");Zn(_e==null?void 0:_e.output)||Wn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const fr=Zn(String((_e==null?void 0:_e.timeLimit)||""));return _e.timeLimit=fr,(!fr||fr&&!["3","4","5","6","7","8","9","10"].includes(fr))&&Wn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),_e.errorMsg=Wn.join(` +`),_e}}],Hi=()=>E.createElement(E.Fragment,null,Ii.filter(_e=>{var Jt;return!!((Jt=Qi.find(Fn=>Fn.id===(_e==null?void 0:_e.type)))==null?void 0:Jt.element)}).map((_e,Jt)=>{var nn;const Fn=(nn=Qi.find(Zt=>Zt.id===(_e==null?void 0:_e.type)))==null?void 0:nn.element;return E.createElement(E.Fragment,{key:_e.id},Fn(_e,Jt))})),oo=()=>kt(void 0,null,function*(){const _e=ri.filter(Jt=>!Jt.checked);if(Da!==3||!_e.length){Ae.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Br){Nr(!0),yield Br(ri),Nr(!1);return}Ga.setFieldsValue({course_discipline_id:Xn}),Ut(!0)}),na=(_e,Jt=[])=>{if(typeof _e=="string")return _e.trim();if(Array.isArray(_e))return _e.map(nn=>na(nn,Jt));if(typeof _e=="object"&&_e!==null){const nn={};for(const Fn in _e)_e.hasOwnProperty(Fn)&&(Jt.includes(Fn)?nn[Fn]=_e[Fn]:nn[Fn]=na(_e[Fn],Jt));return nn}return _e},to=_e=>kt(void 0,null,function*(){const Jt=ua(na(_e));Ja(Jt),hi(JSON.parse(JSON.stringify(Jt))),Sr(3),Ei(!1),Ha(!1)});(0,E.useEffect)(()=>{if(Vt)return;const _e=()=>{nr(Jt=>Jt>=90?(clearInterval(Yi.current),90):Jt+1)};return Yi.current=setInterval(_e,5e4/90),()=>clearInterval(Yi.current)},[Vt]);const Fi=(_e,Jt)=>{On(!1);const nn=new FormData;Object.keys(Jt).forEach(Zt=>{nn.append(Zt,Jt[Zt])});const Fn=new window.XMLHttpRequest;Fn.withCredentials=!0,Fn.addEventListener("load",function(Zt){return kt(this,null,function*(){var Xt,an;try{const Qt=JSON.parse((Xt=Zt==null?void 0:Zt.target)==null?void 0:Xt.response);if(On(!0),nr(100),yield new Promise(en=>setTimeout(()=>en(),780)),Qt.status===0){if(!((an=Qt==null?void 0:Qt.data)!=null&&an.length)){Ae.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Ei(!1);return}to((Qt==null?void 0:Qt.data)||[])}else Ei(!1),Ae.ZP.warning(Qt==null?void 0:Qt.message)}catch(Qt){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Qt)}})}),Fn.addEventListener("error",()=>{Ei(!1)}),Fn.open("POST",`${be.Z.API_SERVER}${_e}`),Fn.send(nn)},Oo=_e=>kt(void 0,null,function*(){const Jt=_e.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(Jt)==-1?(Ae.ZP.error(`${_e.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Ei(!0),Aa("\u5904\u7406\u4E2D"),Fi("/api/intelligent_imports/import.json",{file:_e}),Promise.reject())});let Ni=[{key:1,label:E.createElement(qe.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Oo},E.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Pt.Ny)()||(0,Pt.$O)())&&Ni.push({key:2,label:E.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{$o.current.onClick()}});const li=[ri.length,(Xa=ri.filter(_e=>!!(_e!=null&&_e.errorMsg)))==null?void 0:Xa.length];return E.createElement("div",{className:Je()(ve.intelligentBox,"intelligent-body-curb",ce),style:Kt(ft({},me),{width:le}),ref:rn},E.createElement("div",{className:ve.underpin},E.createElement("b",{style:Sn}),E.createElement("b",{style:Sn})),E.createElement("div",{className:ve.head,style:{top:wn}},E.createElement("div",{className:ve.leftLayout},Vr||E.createElement(E.Fragment,null,E.createElement(Se.Z,{align:"middle"},E.createElement("div",{className:ve.title},"\u8BD5\u9898\u7F16\u8F91"),!Nn&&E.createElement(Be.op,{href:`${be.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",E.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),E.createElement(Be.op,{onClick:tn,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Nn&&E.createElement(Qe.Z,{overlayClassName:ve.menu,menu:{items:Ni}},E.createElement(Be.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!sr&&sr),E.createElement("div",{className:ve.tip},E.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),E.createElement(Se.Z,{className:ve.rightLayout,style:{alignItems:"start"}},Ar||E.createElement(E.Fragment,null,E.createElement("div",{className:ve.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Da)&&E.createElement(He.default,{className:"ml20",checked:$i,onChange:_e=>Ha(_e.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Da)&&E.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",E.createElement("span",{className:"ml5 mr5 c-light-primary"},li[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",E.createElement("span",{className:"ml5 mr5 c-red-e53"},li[1]),"\u9898")),ur&&E.createElement("div",{className:ve.tabs},Ii==null?void 0:Ii.map((_e,Jt)=>E.createElement("div",{onClick:()=>{Hr(Jt)},className:Cr===Jt&&ve.active,key:Jt},"\u65B0\u9898",Jt+1)))),E.createElement("div",{className:ve.centerBox},E.createElement("img",{className:"mb10",src:pe,width:56}),!va&&E.createElement(Be.op,{onClick:ta},"\u8BC6\u522B"))),[1,2].includes(Da)&&Ua(),[3].includes(Da)&&Hi(),E.createElement("div",{className:"pb10"}),E.createElement("div",{className:ve.buttonFixed},E.createElement("div",{className:ve.buttonWrap},E.createElement(pt.ZP,{size:"middle",className:`${ve.button} mr20`,onClick:ot},"\u53D6\u6D88"),E.createElement(pt.ZP,{size:"middle",type:"primary",loading:jr,className:`${ve.button}`,onClick:oo},Er))),E.createElement(Ue.default,{centered:!0,closable:!1,destroyOnClose:!0,open:ga,title:null,footer:null,width:320,afterClose:()=>nr(0)},E.createElement(Se.Z,{align:"middle",style:{flexDirection:"column"}},E.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},$r,E.createElement("span",{className:ve.dotLoading},E.createElement("span",null,"."),E.createElement("span",null,"."),E.createElement("span",null,"."))),E.createElement(Ge.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:En}),E.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",E.createElement("span",{className:"ml5 c-light-primary"},En,"%")))),E.createElement(Ue.default,{centered:!0,open:qt,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:ea,width:500,onCancel:()=>Ut(!1),onOk:()=>Ga.submit(),afterClose:()=>{Ga.resetFields()}},E.createElement(We.default,{style:{maxHeight:550},form:Ga,layout:"horizontal",colon:!1,size:"large",onFinish:_e=>kt(void 0,null,function*(){var Jt,nn,Fn,Zt,Xt;const an=ri.filter(Wn=>!Wn.checked&&!Wn.errorMsg);Ir(!0);const Qt=()=>kt(void 0,null,function*(){var Wn,fr;const pr=yield(0,Ke.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Kt(ft(ft({},on),_e),{list:an,mode:kn})});pr.status===0&&(un&&((Wn=pr==null?void 0:pr.data)!=null&&Wn.success)&&window.location.pathname==="/problemset"&&(st.Z.publish("refresh-item-bank",_e.group_id),yield new Promise(cr=>setTimeout(()=>cr(),1500))),Ae.ZP.success(`\u6210\u529F\u5BFC\u5165${(fr=pr==null?void 0:pr.data)==null?void 0:fr.success}\u9053\u8BD5\u9898`,3),Ht(pr),Ut(!1)),Ir(!1)});if(kn!==1){yield Qt();return}const en=yield(0,Ke.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:ri,mode:kn}});if(en.status===0){if(!((Jt=en==null?void 0:en.data)!=null&&Jt.error_size)){yield Qt();return}Ue.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Ir(!1)},title:"\u63D0\u793A",content:E.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",E.createElement("span",{className:"c-light-primary ml5 mr5"},(nn=en==null?void 0:en.data)==null?void 0:nn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",E.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Fn=en==null?void 0:en.data)==null?void 0:Fn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",E.createElement("span",{className:"ml5 mr5"},(Xt=(Zt=en==null?void 0:en.data)==null?void 0:Zt.index)==null?void 0:Xt.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Qt})}})},E.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),E.createElement(We.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},E.createElement(Ft.q,null)),kn===1&&E.createElement(We.default.Item,{label:E.createElement(Se.Z,{align:"middle",style:{justifyContent:"space-between"}},E.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),E.createElement("div",{onClick:()=>Lt(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},E.createElement("img",{className:"mr5 primary-hover",src:bt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},E.createElement(nt.Z,{key:Rn})))),E.createElement(Ue.default,{centered:!0,open:Un,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:wr,onCancel:()=>Lt(!1),onOk:()=>za.submit(),afterClose:()=>{za.resetFields()}},E.createElement(We.default,{style:{maxHeight:550},form:za,layout:"horizontal",colon:!1,size:"large",onFinish:_e=>kt(void 0,null,function*(){var Jt;er(!0),(yield(0,Ke.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:_e.name,parent_id:(Jt=_e==null?void 0:_e.parent_id)==null?void 0:Jt[0]}})).status===0?(ar(Rn+1),setTimeout(()=>{Ae.ZP.success("\u64CD\u4F5C\u6210\u529F"),Lt(!1),er(!1)},1e3)):er(!1)})},E.createElement(We.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},E.createElement(Oe.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),E.createElement(We.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},E.createElement(nt.Z,null)))),E.createElement(et.Z,{onSave:_e=>{Ei(!0),Aa("\u5904\u7406\u4E2D"),Fi("/api/intelligent_imports/import.json",{html:_e})},ref:$o}))},se=Ne;var ae=he},28618:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=ne(71043),xe=ne(48136),Je=ne(34171),We=ne(62957),Ae=ne(59301);const Ue=(0,E.forwardRef)(({callback:tt,width:Se,onChange:He,disabled:Qe,readOnly:qe,type:pt="",value:Ge="",style:Oe={}},Be)=>{const be=(0,E.useRef)(),Ne=(0,E.useRef)(),[Ye,it]=(0,E.useState)(0),[pe,Ke]=(0,E.useState)(0),[nt,bt]=(0,E.useState)(!1),At=()=>{var Pe=document.createElement("div");Pe.innerHTML=be.current.getValue();var ze=Pe.innerText;return tt&&tt(ze),ze};(0,E.useImperativeHandle)(Be,()=>({getData:At}));const ut=Pe=>{Pe.preventDefault();const ze=Pe.clientX-Ye,Te=Pe.clientY-pe;document.body.onmousemove=rt=>{let Pt=rt.clientX-ze,st=rt.clientY-Te;const et=document.getElementsByClassName("markdown-popup-form")[0],Ft=window.innerWidth-et.offsetWidth,De=window.innerHeight-et.offsetHeight;Pt=Math.max(0,Math.min(Pt,Ft)),st=Math.max(0,Math.min(st,De)),Xe(rt.clientX,rt.clientY,ze,Te)&&(it(Pt),Ke(st))},document.body.onmouseup=function(){document.body.onmousemove=null}},Xe=(Pe,ze,Te,rt)=>{const Pt=document.body.clientHeight,st=document.body.clientWidth;return Pe<20&&Te>Pe||Pe>st-20&&Teze||ze>Pt-20&&rt{nt&&setTimeout(()=>{const Pe=document.getElementsByClassName("markdown-popup-form")[0],ze=window.innerWidth/2-Pe.offsetWidth/2,Te=window.innerHeight/2-Pe.offsetHeight/2;it(ze),Ke(Te)},0)},[nt]);const ht=()=>{Qe||qe||bt(!0)};return Ae.createElement("div",{style:Oe},Ae.createElement("div",{style:{width:Se||"100%",position:"relative"},className:`${ve.Z.mathFillWrap} ${Qe||qe?"cursorDefault":""}`,onClick:()=>ht()},Ae.createElement("math-field",{disabled:Qe,locale:"zh_cn",class:`${ve.Z.mathField} ${pt}`,readOnly:qe,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:be,style:{width:"100%",fontSize:Ge?18:14},value:Ge||""})),Ae.createElement(We.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Ye,top:pe},title:Ae.createElement("div",{style:{cursor:"move"},onMouseDown:ut},"\u8F93\u5165\u516C\u5F0F"),open:nt,onOk:()=>{const Pe=Ne.current.getData();be.current.setValue(Pe),He(Pe),bt(!1)},onCancel:()=>{bt(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ae.createElement(Je.Z,{value:Ge,ref:Ne,onChange:He,showSaveButton:!1})))});_t.Z=Ue},34171:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=ne(77019),xe=ne(5269),Je=ne(31691),We=ne(7939),Ae=ne(67495),Ue=ne(71043),tt=ne(48136),Se=ne(59301);const He=(0,E.forwardRef)(({callback:Qe,showSaveButton:qe,value:pt=""},Ge)=>{const Oe=(0,E.useRef)(),Be=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],be=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r @@ -234,7 +234,7 @@ ${Jn} \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r -\\end{array}`}]}]}],Pe=pe=>{Oe.current.setValue(Oe.current.getValue()+" "+pe.value+" ")},Ye=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Se.createElement(ve.Z,{className:Ue.Z.lists,gutter:[10,10]},Be.map((pe,Ke)=>Se.createElement(xe.Z,{flex:"110px",className:Ue.Z.item},Se.createElement("div",null,Se.createElement(Ae.Z,{value:`$$${pe.value}$$`}),pe.name),Se.createElement("div",{className:Ue.Z.children},pe.children.map((nt,Et)=>Se.createElement("div",{key:Et},Se.createElement("h1",null,nt.name),Se.createElement(ve.Z,{gutter:[10,10]},nt.data.map((At,st)=>Se.createElement(xe.Z,{key:st,onClick:()=>Pe(At),className:Ue.Z.diamond},Se.createElement(Ae.Z,{value:"`$$"+At.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Se.createElement(ve.Z,{className:Ue.Z.lists,gutter:[10,10]},be.map((pe,Ke)=>Se.createElement(xe.Z,{flex:"110px",className:Ue.Z.item},Se.createElement("div",null,Se.createElement(Ae.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Se.createElement("div",{className:Ue.Z.children},pe.children.map((nt,Et)=>Se.createElement("div",{key:Et},nt.name&&Se.createElement("h1",null,nt.name),Se.createElement(ve.Z,{gutter:[10,10]},nt.data.map((At,st)=>Se.createElement(xe.Z,{key:st,onClick:()=>Pe(At),className:Ue.Z.diamond},Se.createElement(Ae.Z,{value:"`$$"+At.value+"$$`"}))))))))))}],it=()=>{var pe=document.createElement("div");pe.innerHTML=Oe.current.getValue();var Ke=pe.innerText;return Qe&&Qe(Ke),Ke};return(0,E.useImperativeHandle)(Ge,()=>({getData:it})),Se.createElement("div",{className:Ue.Z.mathWrap},Se.createElement(Je.default,{defaultActiveKey:"1",items:Ye}),Se.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Oe,style:{width:800,marginTop:30,fontSize:18}},ht||""),qe&&Se.createElement("div",{className:Ue.Z.button},Se.createElement(We.ZP,{size:"large",onClick:it,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Pt.Z=Re},28860:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=ne(93314),xe=ne(7939),Je=Object.defineProperty,We=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Re=(Ge,Oe,Be)=>Oe in Ge?Je(Ge,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ge[Oe]=Be,Qe=(Ge,Oe)=>{for(var Be in Oe||(Oe={}))tt.call(Oe,Be)&&Re(Ge,Be,Oe[Be]);if(Ue)for(var Be of Ue(Oe))Se.call(Oe,Be)&&Re(Ge,Be,Oe[Be]);return Ge},qe=(Ge,Oe)=>We(Ge,Ae(Oe));const ht=({img:Ge,buttonProps:Oe={},styles:Be={},customText:be,ButtonText:Pe,ButtonClick:Ye,Buttonclass:it,ButtonTwo:pe,imgStyles:Ke,loading:nt=!1,className:Et=""})=>E.createElement("section",{className:`tc animated fadeIn ${Et}`,style:Qe({color:"#999",margin:"100px auto",visibility:nt?"hidden":"visible"},Be)},E.createElement("img",{src:Ge||ve,style:qe(Qe({},Ke),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},be||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Pe&&E.createElement(xe.ZP,Qe({className:it,onClick:Ye},Oe),Pe),pe&&pe);Pt.Z=ht},44977:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return it}});var E=ne(59301),ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},xe=ne(7939),Je=ne(70557),We=ne(86746),Ae=ne(25399),Ue=ne(95203),tt=ne(34359),Se=ne(28860),Re=ne(51802),Qe=ne(27120),qe=ne(59301),ht=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(pe,Ke,nt)=>Ke in pe?ht(pe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):pe[Ke]=nt,Pe=(pe,Ke)=>{for(var nt in Ke||(Ke={}))Oe.call(Ke,nt)&&be(pe,nt,Ke[nt]);if(Ge)for(var nt of Ge(Ke))Be.call(Ke,nt)&&be(pe,nt,Ke[nt]);return pe},Ye=(pe,Ke,nt)=>new Promise((Et,At)=>{var st=Le=>{try{ut(nt.next(Le))}catch(ze){At(ze)}},Xe=Le=>{try{ut(nt.throw(Le))}catch(ze){At(ze)}},ut=Le=>Le.done?Et(Le.value):Promise.resolve(Le.value).then(st,Xe);ut((nt=nt.apply(pe,Ke)).next())}),it=({editOffice:pe="view",data:Ke,issaver:nt,onSaver:Et,theme:At,type:st,filename:Xe,monacoEditor:ut,className:Le,style:ze,close:Ne,onClose:at,hasMask:Bt,disabledDownload:ct,onImgDimensions:$e,showNodata:Ft,recordInfo:De})=>{const[ge,lt]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[wt,yt]=(0,E.useState)(""),[je,Ve]=(0,E.useState)(),pt=window.ENV==="build"?"/react/build":"",Kt=location.host.startsWith("localhost")?Re.Z.PROXY_SERVER:Re.Z.API_SERVER,dn=10*(1024*1024),dt=(0,E.useRef)();Ke!=null&&Ke.startsWith("/api")&&st!=="txt"&&(Ke=Re.Z.API_SERVER+Ke);const Nt=me=>me.substring(me.lastIndexOf("/")+1).split(".").pop();Xe&&ut&&(ut.filename=Xe),(0,E.useEffect)(()=>{var me,le;const ot=(le=(me=document.cookie)==null?void 0:me.replace(/\s/g,""))==null?void 0:le.split(";");ot==null||ot.map(Ht=>{let on=Ht.split("=");on[0]==="_educoder_session"&&yt(on[1])})},[]),(0,E.useEffect)(()=>{st==="office"&&(Ke.indexOf("bigfilescdn.")>-1||Ke.indexOf("bigfiles1")>-1?Ve({url:Ke,fileType:Nt(Ke),model:Ke.indexOf("model=edit")?"edit":"view"}):Ke.indexOf("coze")>-1?Ve({url:Ke,fileType:"doc",model:"view"}):he())},[st,Ke]);function mn(me){return Ye(this,null,function*(){me.data.type==="pdfdata"&&(Et(me.data.data),window.removeEventListener("message",mn,!1)),console.log("mess---:",me.data)})}const he=()=>Ye(void 0,null,function*(){console.log("data:",Ke);let me=Ke;Ke.startsWith("http")||(me=location.origin+me);let le=new URL(me).pathname.split("/").pop();const ot=yield(0,tt.gJ)({attachment_id:le});ot.url=Kt+ot.url,Ve(ot)}),se=()=>{if(Ke.startsWith("http")||Ke.startsWith("blob:")){ae();return}(0,Ue.Sv)(Xe||"educoder",Ke,Xe)},ae=()=>{De&&(0,Qe.fc)({id:De==null?void 0:De.id,watch_type:1,course_id:De==null?void 0:De.course_id}),(0,Ue.Nd)(Xe||"educoder",decodeURIComponent(Ke))};(0,E.useEffect)(()=>(window.addEventListener("message",ce),()=>{window.removeEventListener("message",ce)}),[]);const ce=me=>{var le;((le=me==null?void 0:me.data)==null?void 0:le.type)==="closePop"&&at()};return qe.createElement("div",{style:Pe({},ze||{}),className:`${Bt&&ve.bgBlack} ${st?ve.wrp:"hide"}`},Ne&&qe.createElement("div",{id:"closePop",className:ve.close,ref:dt},!!$e&&qe.createElement(Ae.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>dt.current},qe.createElement("span",{onClick:()=>{at(),$e()}},qe.createElement("i",{className:"icon-yulanpizhu"}))),!ct&&window.parent===window&&qe.createElement(Ae.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>dt.current},qe.createElement("span",{onClick:ae},qe.createElement("i",{className:"icon-quxiaozhiding"}))),nt&&qe.createElement(Ae.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>dt.current},qe.createElement("span",{className:"",onClick:()=>{const me=document.getElementById("pdfiframe");window.addEventListener("message",mn,!1),setTimeout(()=>{me.contentWindow.postMessage("getData","*")},300)}},qe.createElement("i",{className:"icon-baocun"}))),qe.createElement(Ae.Z,{title:"\u5173\u95ED",getPopupContainer:()=>dt.current},qe.createElement("span",{className:"",onClick:()=>{at()}},qe.createElement("i",{className:"icon-guanbi1"})))),qe.createElement("div",{className:`${ve[Le]} ${Le} ${ve.monaco} ${st==="txt"?"show":"hide"}`},st==="txt"&&qe.createElement(qe.Fragment,null,qe.createElement(We.ZP,Pe({},ut)))),st==="audio"&&qe.createElement("audio",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ke}`,autoPlay:!0}),st==="video"&&qe.createElement(qe.Fragment,null,(Ke==null?void 0:Ke.indexOf("http"))>-1?qe.createElement("video",{controls:!0,src:`${Ke}`,autoPlay:!0}):qe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ke}`,autoPlay:!0})),st==="office"&&je&&qe.createElement("iframe",{src:`${pt}/office.html?key=${je.key}&url=${btoa(je.url)}&callbackUrl=${Kt+(je.callbackUrl||"")}&fileType=${je.fileType}&title=${je.title||""}&model=${pe}&officeServer=${Re.Z.ONLYOFFICE}&disabledDownload=${!!ct}`}),st==="html"&&qe.createElement("iframe",{src:Ke+"&disposition=inline"}),st==="pdf"&&qe.createElement("iframe",{id:"pdfiframe",src:`${pt}/js/pdf/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(Ke)}&disabledDownload=${!!ct}&model=${pe}`}),st==="image"&&qe.createElement("img",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ke}`}),(st==="other"||st==="download")&&qe.createElement(qe.Fragment,null,Ft?qe.createElement(Se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:qe.createElement(xe.ZP,{icon:qe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:se,disabled:ct},"\u4E0B\u8F7D")}):qe.createElement(xe.ZP,{type:"primary",size:"middle",onClick:se,disabled:ct},qe.createElement(Je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),st==="flowChart"&&qe.createElement("div",{className:"embed"},qe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},459:function(_t,Pt,ne){"use strict";ne.d(Pt,{Q:function(){return Se},Z:function(){return Qe}});var E=ne(59301),ve={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},xe=ne(92310),Je=ne.n(xe),We=ne(62957),Ae=ne(6767),Ue=ne(62673),tt=(qe,ht,Ge)=>new Promise((Oe,Be)=>{var be=it=>{try{Ye(Ge.next(it))}catch(pe){Be(pe)}},Pe=it=>{try{Ye(Ge.throw(it))}catch(pe){Be(pe)}},Ye=it=>it.done?Oe(it.value):Promise.resolve(it.value).then(be,Pe);Ye((Ge=Ge.apply(qe,ht)).next())});const Se=({title:qe="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:ht=[],visible:Ge,setVisible:Oe,tip:Be,onOk:be})=>{const[Pe,Ye]=(0,E.useState)([]),[it,pe]=(0,E.useState)(!1);return(0,E.useEffect)(()=>{Ge&&Ye(ht)},[Ge]),E.createElement(We.default,{centered:!0,open:Ge,title:qe,confirmLoading:it,width:564,onOk:()=>tt(void 0,null,function*(){if(!Pe.length){Ae.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}pe(!0),yield be(Pe),pe(!1)}),onCancel:()=>Oe(!1)},!!Be&&E.createElement("div",{className:"c-grey-666 font16 mb10"},Be),E.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},E.createElement(Ue.default.Group,{value:Pe,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Ke=>{Ye(Ke)}})))};var Qe=({title:qe="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:ht,style:Ge={},onEdit:Oe,dataSource:Be=[]})=>{const be={C:E.createElement("div",{className:ve.c},"C"),"C++":E.createElement("div",{className:ve.cpp},"C++"),Java:E.createElement("div",{className:ve.java},"Java"),Python:E.createElement("div",{className:ve.python},"Python")};return E.createElement("div",{className:Je()(ve.tags,ht),style:Ge},!!qe&&E.createElement("div",{className:ve.text},qe),E.createElement("div",{className:ve.tagWrap},Be==null?void 0:Be.map(Pe=>E.createElement(E.Fragment,{key:Pe},be[Pe]))),!!Oe&&E.createElement("div",{onClick:Oe,className:`iconfont icon-bianji_Hover ${ve.edit}`}))}},64652:function(_t,Pt,ne){"use strict";ne.d(Pt,{t:function(){return ae}});var E=ne(59301),ve=ne(37568),xe=ne(28284),Je=ne(62957),We=ne(77019),Ae=ne(5269),Ue=ne(4875),tt=ne(82326),Se=ne(47889),Re=ne(6183),Qe=ne(88634),qe=ne(51291),ht=ne(6767),Ge=ne(7939),Oe=ne(29787),Be=ne(24334),be={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},Pe=ne(70892),Ye=ne(57788),it=ne(15945),pe=ne(56102),Ke=ne(86053),nt=ne(59301),Et=Object.defineProperty,At=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ze=(ce,me,le)=>me in ce?Et(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[me]=le,Ne=(ce,me)=>{for(var le in me||(me={}))ut.call(me,le)&&ze(ce,le,me[le]);if(Xe)for(var le of Xe(me))Le.call(me,le)&&ze(ce,le,me[le]);return ce},at=(ce,me)=>At(ce,st(me)),Bt=(ce,me,le)=>new Promise((ot,Ht)=>{var on=Xn=>{try{wn(le.next(Xn))}catch(Nn){Ht(Nn)}},kn=Xn=>{try{wn(le.throw(Xn))}catch(Nn){Ht(Nn)}},wn=Xn=>Xn.done?ot(Xn.value):Promise.resolve(Xn.value).then(on,kn);wn((le=le.apply(ce,me)).next())}),$e=({buttonProps:ce,buttonText:me,form:le,hackIdentifier:ot="",answerKey:Ht,data:on})=>{const[kn,wn]=(0,E.useState)(!1),[Xn,Nn]=(0,E.useState)(!1),[Pr,Vr]=(0,E.useState)(!1),[Ar,Jn]=(0,E.useState)({}),[va,Qr]=(0,E.useState)(""),[ur,Sn]=(0,E.useState)(""),sr=(0,E.useRef)(ot),un=(0,E.useRef)(""),Er=(0,E.useRef)(!1);(0,E.useEffect)(()=>{Pr&&Sr()},[Pr]),(0,E.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Br=()=>new Date().getTime(),Xa=on==null?void 0:on.code,Da=()=>{var $r,Aa;let ga=Xa?on==null?void 0:on.code:($r=le.getFieldValue("hack_codes"))==null?void 0:$r.code,Ei=Xa?on==null?void 0:on.answer_content:le.getFieldValue(Ht),Ii=Xa?on==null?void 0:on.input:(Aa=le.getFieldValue("hack_sets"))==null?void 0:Aa.input;Ei==null||Ei.forEach(Ja=>{const ri=Ja.value||Ja.answer_text||"";ga=ga.replace(/(@▁@|@▁▁@)/,ri)}),Sn(Ii),Qr(ga),Jn({}),Vr(!0)},Sr=()=>Bt(void 0,null,function*(){var $r,Aa,ga,Ei;const Ii=Br(),Ja=Xa?on==null?void 0:on.time_limit:($r=le.getFieldsValue())==null?void 0:$r.hack.time_limit,ri=Xa?(Aa=on==null?void 0:on.answer_content)==null?void 0:Aa.length:(Ei=(ga=le.getFieldsValue())==null?void 0:ga.standard_answers)==null?void 0:Ei.length;wn(!0),yield(0,Ye.bM)(un.current,{test_hack_code:va,test_input:ur});function hi(){return Bt(this,null,function*(){const{status:$i,data:Ha}=yield(0,Ye.rX)(un.current,"submit"),Ir=Br()-Ii>(Ja+3)*1e3*ri;if(Er.current){if(Ir){ht.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),wn(!1);return}if($i===0){wn(!1),Jn(at(Ne({},Ha),{showText:!0}));return}setTimeout(hi,1e3)}})}hi()}),En=()=>Bt(void 0,null,function*(){var $r,Aa,ga,Ei,Ii,Ja,ri;if(!on){try{yield le.validateFields()}catch(ea){(ga=(Aa=($r=ea==null?void 0:ea.errorFields)==null?void 0:$r[0])==null?void 0:Aa.name)!=null&&ga.includes("standard_answers")?ht.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):ht.ZP.error(ea.errorFields[0].errors[0]),le.scrollToField(ea.errorFields[0].name,{behavior:"smooth",block:"center"});return}Nn(!0);let $i="";const Ha=le.getFieldsValue();sr.current?$i=yield(0,Pe.ZP)(`/api/problems/${sr.current}.json`,{method:"put",body:at(Ne({},Ha),{hack:at(Ne({},Ha==null?void 0:Ha.hack),{sub_discipline_id:(ri=(Ja=Ha==null?void 0:Ha.hack)==null?void 0:Ja.sub_discipline_id)==null?void 0:ri[1],difficult:Ha.difficulty,item_banks_group_id:Ha.item_banks_group_id}),hack_codes:at(Ne({},Ha.hack_codes),{code:Be.Base64.encode(Ha.hack_codes.code)}),update_hack_sets:[Ne({},Ha.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):($i=yield(0,Pe.ZP)("/api/problems.json",{method:"post",body:at(Ne({},Ha),{hack:at(Ne({},Ha==null?void 0:Ha.hack),{sub_discipline_id:(Ii=(Ei=Ha==null?void 0:Ha.hack)==null?void 0:Ei.sub_discipline_id)==null?void 0:Ii[1],difficult:Ha.difficulty,item_banks_group_id:Ha.item_banks_group_id}),hack_codes:at(Ne({},Ha.hack_codes),{code:Be.Base64.encode(Ha.hack_codes.code)}),hack_sets:[Ne({},Ha.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),sr.current=$i==null?void 0:$i.identifier,sessionStorage.projectFill=$i==null?void 0:$i.identifier)}const hi=yield(0,Pe.ZP)(`/api/problems/${sr.current}/start.json`,{method:"get"});if((hi==null?void 0:hi.status)===0){un.current=hi==null?void 0:hi.identifier,Er.current=!0,Nn(!1),Da();return}Nn(!1)}),nr=$r=>{const{status:Aa,error_msg:ga,execute_time:Ei,output:Ii,input:Ja,expected_output:ri}=$r;let hi=null;switch(Aa){case Ke.h.OK:hi=nt.createElement(nt.Fragment,null,nt.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ei/1e3,"\u79D2"),nt.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ke.h.NOMATCH:hi=nt.createElement(nt.Fragment,null,nt.createElement("div",null,"\u8F93\u5165\uFF1A"),nt.createElement("pre",{style:{fontFamily:"initial"}},Ja),nt.createElement("div",null,"\u8F93\u51FA\uFF1A"),nt.createElement("pre",{style:{fontFamily:"initial"}},Ii&&Be.Base64.decode(Ii)),nt.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),nt.createElement("pre",{style:{fontFamily:"initial"}},ri&&Be.Base64.decode(ri)));break;case Ke.h.EXECUTEFAILURE:hi=nt.createElement(nt.Fragment,null,nt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",nt.createElement("pre",null,Ja)),nt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),nt.createElement("pre",{className:"error"},Be.Base64.decode(ga)));break;case Ke.h.COMPILEFAILURE:hi=nt.createElement(nt.Fragment,null,nt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",nt.createElement("pre",null,Ja)),nt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),nt.createElement("pre",{className:"error"},Be.Base64.decode(ga)));break;case Ke.h.PODFAILURE:hi=nt.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ke.h.TIMEOUT:hi=nt.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return nt.createElement(nt.Fragment,null," ",hi," ")};return nt.createElement("div",null,nt.createElement(Ge.ZP,at(Ne({loading:Xn},ce),{onClick:En}),me),nt.createElement(Je.default,{open:Pr,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:kn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Sr(),onCancel:()=>{Er.current=!1,Vr(!1)}},nt.createElement("div",{className:be.result},nt.createElement("div",{className:be.left},nt.createElement("div",{className:"mb20"},nt.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!on&&nt.createElement(pe.CopyToClipboard,{text:va,onCopy:()=>ht.ZP.success("\u590D\u5236\u6210\u529F")},nt.createElement("span",{style:{float:"right"},className:"current c-light-primary"},nt.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),nt.createElement(it.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:va,onChange:$r=>Qr($r)})),nt.createElement("div",{className:be.right},nt.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),nt.createElement("div",{className:be.box},nt.createElement("div",{className:be.li},nt.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:ur,onChange:$r=>Sn($r.target.value),bordered:!1,style:{height:180}}))),nt.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),nt.createElement("div",{className:be.box},nt.createElement(Oe.Z,{spinning:kn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},nt.createElement("div",{className:be.li,style:{height:196,overflow:"auto",padding:10}},nr(Ar))))))))},Ft=ne(87169),De=ne(59301),ge=Object.defineProperty,lt=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,pt=(ce,me,le)=>me in ce?ge(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[me]=le,Kt=(ce,me)=>{for(var le in me||(me={}))je.call(me,le)&&pt(ce,le,me[le]);if(yt)for(var le of yt(me))Ve.call(me,le)&&pt(ce,le,me[le]);return ce},kt=(ce,me)=>lt(ce,wt(me)),dn=(ce,me)=>{var le={};for(var ot in ce)je.call(ce,ot)&&me.indexOf(ot)<0&&(le[ot]=ce[ot]);if(ce!=null&&yt)for(var ot of yt(ce))me.indexOf(ot)<0&&Ve.call(ce,ot)&&(le[ot]=ce[ot]);return le};const{TextArea:dt}=ve.default,Nt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],mn=({value:ce,onChange:me})=>De.createElement(Switch,{checked:ce,onChange:le=>{me(le)}}),he="@\u2581@",se="@\u2581\u2581@",ae=({questionTitlePlaceholder:ce,form:me,scoreByBlank:le=!1,hackidentifier:ot,answerKey:Ht})=>{const[on,kn]=(0,E.useState)(!1),[wn,Xn]=(0,E.useState)(!1),Pr=(0,Qe.useParams)().type==="edit",Vr=(un,Er)=>{const Br=Er.line;let Xa=0;for(let Sr=0;Sr{const Da=un.getRange(Er.from,Er.to);let Sr=0;if(Er.text.forEach(En=>{Sr+=En.split(he).length-1}),Er.text.forEach(En=>{Sr+=En.split(se).length-1}),Er.origin!=="setValue"){if(Da&&(Da.indexOf(he)!==-1||Da.indexOf(se)!==-1)){const En=Da.split(he).length-1+Da.split(se).length-1,nr=Vr(un,Er.from);if(console.log(`\u5220\u9664${En}\u4E2A\uFF0C \u524D\u9762\u6709${nr}\u4E2A\uFF0C\u65B0\u589E${Sr}\u4E2A`),En>1){const $r=Array.from({length:En},(Aa,ga)=>nr+ga);Xa($r)}else Xa(nr)}else if(Sr>0){const En=Vr(un,Er.from);console.log(`\u65B0\u589E${Sr}\u4E2A\uFF0C\u4E4B\u524D\u6709${En}\u4E2A`),Br(Sr,En)}}},Jn=()=>{const un=me.getFieldValue(Ht);me.setFieldsValue({[Ht]:un==null?void 0:un.map((Er,Br)=>kt(Kt({},Er),{position:Br+1}))})},va=(0,E.useRef)(),Qr=(un,Er)=>{for(let Br=0;Br{ur.current(un),Jn()},sr=xe.default.useWatch(Ht,me);return De.createElement("div",{className:qe.Z.wrap},De.createElement(xe.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},De.createElement(Re.h,{scrollId:"name",watch:!0,height:140})),De.createElement("div",{className:qe.Z.questionTitleEditorWrap},De.createElement(xe.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},De.createElement(Re.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(un,Er)=>{const Br=me.getFieldValue(Ht);console.log("--preAnswerData",Br,Er),me.setFieldsValue({[Ht]:Br==null?void 0:Br.map((Xa,Da)=>{var Sr;return kt(Kt({},Xa),{position:Da+1,multi_line:(Sr=Er==null?void 0:Er[Da])==null?void 0:Sr.multiLine})})})},placeholder:ce,onCMBeforeChange:(un,Er)=>{Ar(un,Er,Qr,Sn)}}))),De.createElement(xe.default.List,{name:Ht,rules:[{validator(un,Er){if(!(Er!=null&&Er.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Br of Er){const{answer_text:Xa}=Br||{};if((Xa==null?void 0:Xa.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(un,{add:Er,remove:Br},{errors:Xa})=>(va.current=Er,ur.current=Br,De.createElement(De.Fragment,null,De.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},De.createElement(xe.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),De.createElement("div",{onClick:()=>{Je.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:De.createElement("div",null,De.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",De.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),De.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},De.createElement(Ft.Z,{style:{marginRight:3,color:"#3061D0"}}),De.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),un.map((Da,Sr)=>{var En=Da,{key:nr,name:$r}=En,Aa=dn(En,["key","name"]),ga,Ei;return De.createElement(We.Z,{className:"mb20",key:nr,align:"middle",wrap:!1},De.createElement(Ae.Z,{flex:"0 0 auto",className:`${qe.Z.blankIndex}`},"\u586B\u7A7A\u9879",Sr+1),De.createElement(Ae.Z,{flex:1},De.createElement(We.Z,{align:"top",justify:"space-between",wrap:!1},De.createElement(Ae.Z,null,De.createElement(xe.default.Item,kt(Kt({},Aa),{name:[$r,"answer_text"],noStyle:!0}),(ga=sr==null?void 0:sr[$r])!=null&&ga.multi_line||(Ei=sr==null?void 0:sr[$r])!=null&&Ei.multiLine?De.createElement(dt,{spellCheck:!1,style:{marginLeft:10,width:550}}):De.createElement(ve.default,{style:{marginLeft:10,width:550},className:qe.Z.blankInput,size:"large",maxLength:1e3,onBlur:Ii=>{}}))),le&&De.createElement(Ae.Z,{flex:"224px"},De.createElement(xe.default.Item,kt(Kt({},Aa),{name:[$r,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),De.createElement(Ue.Z,{size:"large",className:qe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),De.createElement("div",{onClick:()=>kn(!0)},De.createElement(xe.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(Re.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:on}))),De.createElement(xe.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},De.createElement(tt.default,{size:"large"},Nt.map(un=>De.createElement(tt.default.Option,{key:un.title,value:un.key}," ",un.title)))),De.createElement(xe.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},De.createElement(xe.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},De.createElement(Ue.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),De.createElement("span",{className:"ml10 font14"},"\u79D2")),De.createElement(xe.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},De.createElement(Se.ZP.Group,{style:{marginTop:-10}},De.createElement(Se.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),De.createElement(Se.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),De.createElement(Se.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),De.createElement(xe.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),De.createElement("div",{style:{background:"#F6F7F9",padding:15}},De.createElement(xe.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},De.createElement(dt,{rows:4})),De.createElement(xe.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},De.createElement(dt,{rows:4}))),De.createElement($e,{form:me,answerKey:Ht,hackIdentifier:ot,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:De.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},42172:function(_t,Pt,ne){"use strict";ne.d(Pt,{u:function(){return nt}});var E=ne(59301),ve=ne(77019),xe=ne(5269),Je=ne(25399),We=ne(28284),Ae=ne(51291),Ue=ne(32134),tt=ne(12893),Se=ne(6183),Re=ne(59301),Qe=Object.defineProperty,qe=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(Et,At,st)=>At in Et?Qe(Et,At,{enumerable:!0,configurable:!0,writable:!0,value:st}):Et[At]=st,Pe=(Et,At)=>{for(var st in At||(At={}))Oe.call(At,st)&&be(Et,st,At[st]);if(Ge)for(var st of Ge(At))Be.call(At,st)&&be(Et,st,At[st]);return Et},Ye=(Et,At)=>qe(Et,ht(At)),it=(Et,At)=>{var st={};for(var Xe in Et)Oe.call(Et,Xe)&&At.indexOf(Xe)<0&&(st[Xe]=Et[Xe]);if(Et!=null&&Ge)for(var Xe of Ge(Et))At.indexOf(Xe)<0&&Be.call(Et,Xe)&&(st[Xe]=Et[Xe]);return st};const pe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ke=({value:Et,onChange:At,choiceTextKey:st,answerKey:Xe,index:ut,isEdit:Le,setInputActive:ze,form:Ne,choiceOptionsPath:at,allowChangeMode:Bt,showAddIcon:ct,addItem:$e,deleteItem:Ft})=>{console.log(Et,"value");const De=(Et==null?void 0:Et[Xe])===1,ge=()=>{const wt=Ne.getFieldValue(at);Ne.setFieldValue(at,wt.map(yt=>Ye(Pe({},yt),{[Xe]:0})))},lt=()=>{De?At(Ye(Pe({},Et),{[Xe]:0})):(Bt||ge(),At(Ye(Pe({},Et),{[Xe]:1})))};return Re.createElement(ve.Z,{className:Ae.Z.choiceWrap,align:"middle",wrap:!1},Re.createElement(xe.Z,{onClick:lt,className:`${Ae.Z.choiceIndex} ${De?Ae.Z.activeAnswer:""}`},pe[ut]),Re.createElement(xe.Z,{flex:1,className:`${Ae.Z.editorWrap} ml15`,onClick:ze},Re.createElement(Se.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Le,value:Et==null?void 0:Et[st],onChange:wt=>{At(Ye(Pe({},Et),{[st]:wt}))}})),Re.createElement(xe.Z,{flex:"0 0 auto",className:"ml15"},Re.createElement("div",{onClick:lt,className:`${Ae.Z.setAnswerBtn} ${De?Ae.Z.activeAnswer:""}`},De?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Re.createElement(xe.Z,{className:Ae.Z.actionWrapper},Re.createElement(Je.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Re.createElement(Ue.Z,{className:Ae.Z.addIcon,onClick:$e,style:{visibility:ct?"visible":"hidden"}})),Re.createElement(Je.Z,{title:"\u5220\u9664"},Re.createElement(tt.Z,{className:Ae.Z.deleteIcon,onClick:Ft,style:{visibility:ut>1?"visible":"hidden"}}))))},nt=({questionTitlePlaceholder:Et,titleKey:At,choiceKey:st,analysisKey:Xe,choiceTextKey:ut,answerKey:Le,choiceOptionsPath:ze,allowChangeMode:Ne=!0,form:at,showAnalysis:Bt=!0})=>{const[ct,$e]=(0,E.useState)(),[Ft,De]=(0,E.useState)(!1);return Re.createElement("div",{className:Ae.Z.wrap},Re.createElement("div",{className:Ae.Z.questionTitleEditorWrap},Re.createElement(We.default.Item,{label:"\u9898\u5E72",name:At,labelCol:{span:24},rules:[{required:!0}]},Re.createElement(Se.h,{scrollId:Array.isArray(At)?At.join("_"):`${At}`,watch:!0,height:140,placeholder:Et}))),Re.createElement(We.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Re.createElement(We.default.List,{name:st,rules:[{validator(ge,lt){const wt=lt.some(je=>je[Le]===1),yt=lt.findIndex(je=>{var Ve;return((Ve=je[ut])==null?void 0:Ve.length)<=0});return yt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${pe[yt]}\u9009\u9879\u7684\u5185\u5BB9`)):wt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ge,{add:lt,remove:wt})=>Re.createElement("div",{id:Array.isArray(ze)?ze.join("_"):`${ze}`},ge.map((yt,je)=>{var Ve=yt,{key:pt,name:Kt}=Ve,kt=it(Ve,["key","name"]);const dn=ct===pt,dt=()=>{$e(pt)},Nt=je<14&&je===ge.length-1,mn=()=>lt({[ut]:"",[Le]:0}),he=()=>wt(Kt);return Re.createElement(We.default.Item,Ye(Pe({},kt),{key:pt,name:Kt,className:Ae.Z.choiceListWrap,rules:[{validator(se,ae){return ae!=null&&ae.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${pe[je]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Re.createElement(Ke,{choiceTextKey:ut,answerKey:Le,index:je,isEdit:dn,setInputActive:dt,form:at,choiceOptionsPath:ze,allowChangeMode:Ne,showAddIcon:Nt,addItem:mn,deleteItem:he}))}),ge.length<15&&Re.createElement("div",{className:`${Ae.Z.addBtn} mb30`,onClick:()=>lt({[ut]:"",[Le]:0})},"\u6DFB\u52A0\u9009\u9879"))),Bt&&Re.createElement("div",{onClick:()=>De(!0)},Re.createElement(We.default.Item,{name:Xe,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Re.createElement(Se.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ft}))))}},29981:function(_t,Pt,ne){"use strict";ne.d(Pt,{u:function(){return at}});var E=ne(59301),ve=ne(62957),xe=ne(77019),Je=ne(5269),We=ne(37568),Ae=ne(25399),Ue=ne(58755),tt=ne(28284),Se=ne(47889),Re=ne(4875),Qe=ne(7939),qe=ne(6183),ht=ne(12893),Ge=ne(32134),Oe=ne(61485),Be=ne(51291),be=ne(28618),Pe=ne(59301),Ye=Object.defineProperty,it=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,At=(Bt,ct,$e)=>ct in Bt?Ye(Bt,ct,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Bt[ct]=$e,st=(Bt,ct)=>{for(var $e in ct||(ct={}))nt.call(ct,$e)&&At(Bt,$e,ct[$e]);if(Ke)for(var $e of Ke(ct))Et.call(ct,$e)&&At(Bt,$e,ct[$e]);return Bt},Xe=(Bt,ct)=>it(Bt,pe(ct)),ut=(Bt,ct)=>{var $e={};for(var Ft in Bt)nt.call(Bt,Ft)&&ct.indexOf(Ft)<0&&($e[Ft]=Bt[Ft]);if(Bt!=null&&Ke)for(var Ft of Ke(Bt))ct.indexOf(Ft)<0&&Et.call(Bt,Ft)&&($e[Ft]=Bt[Ft]);return $e};const Le=({value:Bt,onChange:ct,position:$e,removeBlank:Ft})=>{const De=lt=>{ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const wt=[...Bt];wt.splice(lt,1),wt.length===0?Ft($e-1):ct(wt)}})},ge=()=>{const lt=[...Bt];lt.push(""),ct(lt)};return Pe.createElement(xe.Z,{className:"ml20"},Pe.createElement(Je.Z,{flex:1},Bt==null?void 0:Bt.map((lt,wt)=>Pe.createElement(xe.Z,{key:`${lt}_${wt}`,className:"mb20"},Pe.createElement(We.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:lt,autoSize:{maxRows:3},maxLength:1e3,onBlur:yt=>{const je=[...Bt],Ve=yt.target.value.trim();je[wt]=Ve,ct(je)}}),Pe.createElement(Ae.Z,{title:"\u5220\u9664"},Pe.createElement(ht.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:$e===1&&wt===0?"hidden":"visible"},onClick:()=>De(wt)})),Pe.createElement(Ae.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:wt===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},ze=({value:Bt,onChange:ct,position:$e,removeBlank:Ft})=>{const De=lt=>{ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const wt=[...Bt];wt.splice(lt,1),wt.length===0?Ft($e-1):ct(wt)}})},ge=()=>{const lt=[...Bt];lt.push(""),ct(lt)};return Pe.createElement(xe.Z,{className:"ml20"},Pe.createElement(Je.Z,{flex:1},Bt==null?void 0:Bt.map((lt,wt)=>Pe.createElement(xe.Z,{key:`${lt}_${wt}`,align:"middle",className:"mb20"},Pe.createElement(be.Z,{value:lt,style:{flex:1},onChange:yt=>{const je=[...Bt];je[wt]=yt,ct(je)}}),Pe.createElement(Ae.Z,{title:"\u5220\u9664"},Pe.createElement(ht.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:$e===1&&wt===0?"hidden":"visible"},onClick:()=>De(wt)})),Pe.createElement(Ae.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:wt===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},Ne=({value:Bt=!0,onChange:ct})=>Pe.createElement(Ue.Z,{checked:!Bt,onChange:$e=>{ct(!$e)}}),at=({questionTitlePlaceholder:Bt,form:ct,scoreByBlank:$e=!1,answerKey:Ft})=>{const[De,ge]=(0,E.useState)(!1),lt=()=>{const Kt=ct.getFieldValue(Ft);ct.setFieldsValue({[Ft]:Kt.map((kt,dn)=>Xe(st({},kt),{position:dn+1}))})},wt=(0,E.useRef)(),yt=(Kt,kt)=>{for(let dn=0;dn{je.current(Kt),lt()},pt=tt.default.useWatch(Ft,ct);return Pe.createElement("div",{className:Be.Z.wrap},Pe.createElement("div",{className:Be.Z.questionTitleEditorWrap},Pe.createElement(tt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Bt,showNullButton:!0,onAddBlank:()=>{const Kt=ct.getFieldValue(Ft);yt(1,Kt==null?void 0:Kt.length)}}))),Pe.createElement(tt.default.List,{name:Ft,rules:[{validator(Kt,kt){if(!(kt!=null&&kt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const dn of kt){const{answer_text:dt}=dn||{};if(dt!=null&&dt.some(Nt=>(Nt==null?void 0:Nt.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Kt,{add:kt,remove:dn},{errors:dt})=>(wt.current=kt,je.current=dn,Pe.createElement(Pe.Fragment,null,Pe.createElement(tt.default.Item,{label:Pe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Kt.map((Nt,mn)=>{var he=Nt,{key:se,name:ae}=he,ce=ut(he,["key","name"]),me,le;return Pe.createElement("div",{style:{marginBottom:10},key:se},Pe.createElement(xe.Z,{className:"mb20",align:"middle",wrap:!1},Pe.createElement(Je.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Be.Z.blankIndex}`},"\u586B\u7A7A\u9879",mn+1),Pe.createElement(tt.default.Item,Xe(st({},ce),{name:[ae,"model"],noStyle:!0}),Pe.createElement(Se.ZP.Group,{onChange:()=>{const ot=ct.getFieldValue(Ft);ct.setFieldsValue({[Ft]:ot.map((Ht,on)=>Xe(st({},Ht),{answer_text:ae===on?[""]:Ht.answer_text}))})}},Pe.createElement(Se.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Pe.createElement(Ae.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Pe.createElement(Oe.Z,null))),Pe.createElement(Se.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Pe.createElement(Ae.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Pe.createElement(Oe.Z,null)))))),Pe.createElement(xe.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Pe.createElement(Je.Z,{flex:1},Pe.createElement(xe.Z,{align:"top",justify:"space-between",wrap:!1},Pe.createElement(Je.Z,{flex:1},Pe.createElement(tt.default.Item,Xe(st({},ce),{name:[ae,"answer_text"],noStyle:!0}),((le=(me=ct.getFieldValue(Ft))==null?void 0:me[ae])==null?void 0:le.model)===1?Pe.createElement(Le,{removeBlank:Ve,position:mn+1}):Pe.createElement(ze,{removeBlank:Ve,position:mn+1}))),$e&&Pe.createElement(Je.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Pe.createElement(tt.default.Item,Xe(st({},ce),{name:[ae,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Be.Z.blankInputNumberWrapper}),Pe.createElement(Re.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Pe.createElement(tt.default.Item,Xe(st({},ce),{name:[ae,"position"],noStyle:!0}),Pe.createElement(We.default,{type:"hidden"})))))})))),Pe.createElement(Qe.ZP,{className:"mb20",onClick:()=>yt(1,pt==null?void 0:pt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Pe.createElement(xe.Z,{align:"middle"},Pe.createElement(tt.default.Item,{name:"downcase",valuePropName:"checked"},Pe.createElement(Ue.Z,null)),Pe.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Pe.createElement(xe.Z,{align:"middle"},Pe.createElement(tt.default.Item,{name:"no_space",valuePropName:"checked"},Pe.createElement(Ue.Z,null)),Pe.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(pt==null?void 0:pt.length)>1&&Pe.createElement(xe.Z,{align:"middle",className:(pt==null?void 0:pt.length)>1?"mb30":`${Be.Z.hide}`},Pe.createElement(tt.default.Item,{name:"is_ordered"},Pe.createElement(Ne,null)),Pe.createElement(Je.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Pe.createElement("div",{onClick:()=>ge(!0)},Pe.createElement(tt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:De}))))}},58452:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return it}});var E=ne(59301),ve=ne(77019),xe=ne(5269),Je=ne(28284),We=ne(51291),Ae=ne(6183),Ue=ne(59301),tt=Object.defineProperty,Se=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Ge=(pe,Ke,nt)=>Ke in pe?tt(pe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):pe[Ke]=nt,Oe=(pe,Ke)=>{for(var nt in Ke||(Ke={}))qe.call(Ke,nt)&&Ge(pe,nt,Ke[nt]);if(Qe)for(var nt of Qe(Ke))ht.call(Ke,nt)&&Ge(pe,nt,Ke[nt]);return pe},Be=(pe,Ke)=>Se(pe,Re(Ke)),be=(pe,Ke)=>{var nt={};for(var Et in pe)qe.call(pe,Et)&&Ke.indexOf(Et)<0&&(nt[Et]=pe[Et]);if(pe!=null&&Qe)for(var Et of Qe(pe))Ke.indexOf(Et)<0&&ht.call(pe,Et)&&(nt[Et]=pe[Et]);return nt};const Pe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ye=({value:pe,onChange:Ke,form:nt})=>{const Et=(pe==null?void 0:pe.is_answer)===1,At=pe==null?void 0:pe.choice_text,st=()=>{const Xe=nt.getFieldsValue().choices.map(ut=>({choice_text:ut.choice_text,is_answer:0}));nt.setFieldsValue({choices:Xe}),Ke(Be(Oe({},pe),{is_answer:1}))};return Ue.createElement(ve.Z,{className:We.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ue.createElement(xe.Z,{onClick:st,className:`${We.Z.choiceIndex} ${We.Z.judgementIndex} ${Et?We.Z.activeAnswer:""}`},Pe[At]),Ue.createElement(xe.Z,{flex:1,className:`${We.Z.editorWrap} ml15`},Ue.createElement("div",{className:`${We.Z.inputBorder} ${We.Z.placeholder} ${Et?We.Z.activeJudgementAnswer:""}`},At)),Ue.createElement(xe.Z,{flex:"0 0 auto",className:"ml15"},Ue.createElement("div",{onClick:st,className:`${We.Z.setAnswerBtn} ${Et?We.Z.activeAnswer:""}`},Et?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},it=({questionTitlePlaceholder:pe,choiceKey:Ke,form:nt})=>{const[Et,At]=(0,E.useState)(!1);return Ue.createElement("div",{className:We.Z.wrap},Ue.createElement("div",{className:We.Z.questionTitleEditorWrap},Ue.createElement(Je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ue.createElement(Ae.h,{scrollId:"name",watch:!0,height:140,placeholder:pe}))),Ue.createElement(Je.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ue.createElement(Je.default.List,{name:"choices",rules:[{validator(st,Xe){return Xe.some(Le=>(Le==null?void 0:Le.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},st=>Ue.createElement("div",{id:"choices"},st.map(Xe=>{var ut=Xe,{key:Le,name:ze}=ut,Ne=be(ut,["key","name"]);return Ue.createElement(Je.default.Item,Be(Oe({},Ne),{key:Le,name:ze,noStyle:!0}),Ue.createElement(Ye,{form:nt}))})))),Ue.createElement("div",{onClick:()=>At(!0)},Ue.createElement(Je.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ue.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Et}))))}},6183:function(_t,Pt,ne){"use strict";ne.d(Pt,{h:function(){return Oe},x:function(){return Be}});var E=ne(15945),ve=ne(51291),xe=ne(67495),Je=ne(59301),We=Object.defineProperty,Ae=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Qe=(be,Pe,Ye)=>Pe in be?We(be,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):be[Pe]=Ye,qe=(be,Pe)=>{for(var Ye in Pe||(Pe={}))Se.call(Pe,Ye)&&Qe(be,Ye,Pe[Ye]);if(tt)for(var Ye of tt(Pe))Re.call(Pe,Ye)&&Qe(be,Ye,Pe[Ye]);return be},ht=(be,Pe)=>Ae(be,Ue(Pe)),Ge=(be,Pe)=>{var Ye={};for(var it in be)Se.call(be,it)&&Pe.indexOf(it)<0&&(Ye[it]=be[it]);if(be!=null&&tt)for(var it of tt(be))Pe.indexOf(it)<0&&Re.call(be,it)&&(Ye[it]=be[it]);return Ye};const Oe=be=>{var Pe=be,{value:Ye,onChange:it,scrollId:pe}=Pe,Ke=Ge(Pe,["value","onChange","scrollId"]);return Je.createElement("div",{id:pe||""},Je.createElement(E.Z,ht(qe({},Ke),{defaultValue:Ye,onChange:(nt,Et)=>{Et!=null&&Et.length?it(nt,Et):it(nt)}})))},Be=({value:be,onChange:Pe,placeholder:Ye,height:it=140,isEdit:pe,miniToolbar:Ke,watch:nt=!0})=>pe?Je.createElement(E.Z,{watch:nt,isFocus:!0,height:it||void 0,placeholder:Ye,defaultValue:be,onChange:Pe,miniToolbar:Ke}):Je.createElement("div",{style:{cursor:"pointer"}},be?Je.createElement(xe.Z,{className:ve.Z.inputBorder,value:be}):Je.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} inputBorderError`},Ye))},66676:function(_t,Pt,ne){"use strict";ne.d(Pt,{W:function(){return ut}});var E=ne(59301),ve=ne(6767),xe=ne(96599),Je=ne(28284),We=ne(58755),Ae=ne(77019),Ue=ne(5269),tt=ne(25399),Se=ne(37568),Re=ne(4875),Qe=ne(51291),qe=ne(6183),ht=ne(15945),Ge=ne(61485),Oe=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pe=(Le,ze,Ne)=>ze in Le?Oe(Le,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Le[ze]=Ne,Ke=(Le,ze)=>{for(var Ne in ze||(ze={}))Ye.call(ze,Ne)&&pe(Le,Ne,ze[Ne]);if(Pe)for(var Ne of Pe(ze))it.call(ze,Ne)&&pe(Le,Ne,ze[Ne]);return Le},nt=(Le,ze)=>Be(Le,be(ze)),Et=(Le,ze)=>{var Ne={};for(var at in Le)Ye.call(Le,at)&&ze.indexOf(at)<0&&(Ne[at]=Le[at]);if(Le!=null&&Pe)for(var at of Pe(Le))ze.indexOf(at)<0&&it.call(Le,at)&&(Ne[at]=Le[at]);return Ne};const At=Le=>{var ze=Le,{value:Ne,onChange:at}=ze,Bt=Et(ze,["value","onChange"]);const ct=$e=>{at([$e])};return E.createElement(ht.Z,nt(Ke({},Bt),{defaultValue:Ne==null?void 0:Ne[0],onChange:ct}))},st=Le=>{if(!Le)return!1;if(/^s*$/.test(Le)||Le.trim()===""){ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let ze=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Le==="|"?(ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Xe=({value:Le=[],onClose:ze})=>E.createElement(xe.default,{closable:!0,onClose:ze,className:Qe.Z.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Le.join(" \u6216 "))),ut=({questionTitlePlaceholder:Le,form:ze,showKeywords:Ne,isMustKeyWords:at=Ne})=>{const[Bt,ct]=(0,E.useState)(!1),[$e,Ft]=(0,E.useState)(""),De=Je.default.useWatch("use_keywords",ze),ge=Je.default.useWatch("question_score",ze);return E.createElement("div",{className:Qe.Z.wrap},E.createElement("div",{className:Qe.Z.questionTitleEditorWrap},E.createElement(Je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},E.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Le}))),E.createElement(Je.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},E.createElement(At,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ne&&!at&&E.createElement(Je.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},E.createElement(We.Z,{defaultChecked:!0})),Ne&&at&&E.createElement(Ae.Z,{align:"middle",className:"mb30"},E.createElement(Je.default.Item,{name:"use_keywords",valuePropName:"checked"},E.createElement(We.Z,null)),E.createElement(Ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(Ue.Z,null,E.createElement(tt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(Ge.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(De||!at)&&E.createElement(Je.default.List,{name:"keywords",rules:[{validator(lt,wt){return at?wt!=null&&wt.length?(wt==null?void 0:wt.reduce((je,Ve)=>je+Ve.score,0))>parseFloat(ge)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(lt,{add:wt,remove:yt})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${Qe.Z.title} mb10`},at?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(Ae.Z,{align:"middle",className:"font14 mb30"},E.createElement(Ue.Z,{flex:1},E.createElement(Se.default,{value:$e,onChange:je=>{Ft(je.target.value)},maxLength:500,allowClear:!0,onPressEnter:je=>{var Ve,pt,Kt,kt;const dn=`${(Ve=je.target)==null?void 0:Ve.value}`,dt=(Kt=(pt=dn==null?void 0:dn.split("|"))==null?void 0:pt.filter(he=>!!he))==null?void 0:Kt.map(he=>he==null?void 0:he.trim()),Nt=ze.getFieldValue("keywords"),mn=((kt=Nt==null?void 0:Nt.map(he=>he==null?void 0:he.keyword))==null?void 0:kt.flat())||[];for(const he of dt)if(mn.includes(he)){ve.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}st(dn)&&(wt({keyword:dt,score:1}),Ft(""))},className:Qe.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(Ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),lt.map(je=>{var Ve=je,{key:pt,name:Kt}=Ve,kt=Et(Ve,["key","name"]);return E.createElement(Ae.Z,{key:pt,className:"mb20",style:{marginRight:148}},E.createElement(Ue.Z,{flex:1},E.createElement(Ae.Z,{align:"middle",justify:"space-between"},E.createElement(Je.default.Item,nt(Ke({},kt),{name:[Kt,"keyword"]}),E.createElement(Xe,{onClose:()=>yt(Kt)})),at&&E.createElement(Je.default.Item,nt(Ke({},kt),{name:[Kt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Qe.Z.blankInputNumberWrapper}),E.createElement(Re.Z,{className:Qe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>ct(!0)},E.createElement(Je.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Bt}))))}},57091:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return We}});var E={text:"text___bQulM",sup:"sup___rX_Y3"},ve=ne(28284),xe=ne(59301),We=({text:Ae,name:Ue="question_score"})=>{const tt=({value:Se})=>xe.createElement("div",{className:E.text},xe.createElement("span",{className:E.sup},"*"),xe.createElement("span",{className:"mr10"},"\u5206\u503C"),xe.createElement("span",null,Se||"--"),xe.createElement("span",{className:"c-grey-999"},Ae));return xe.createElement(ve.default.Item,{noStyle:!0,name:Ue},xe.createElement(tt,null))}},67495:function(_t,Pt,ne){"use strict";ne.d(Pt,{z:function(){return ut},Z:function(){return Le}});var E=ne(59301),ve=ne(12103),xe=ne(77845),Je=ne(64018),We=ne(16471),Ae=ne(51802),Ue=ne(95203),tt=ne(15342),Se=ne(44104),Re=ne(7939),Qe=ne(1012),qe=ne(44977),ht=ne(59301),Oe=({html:ze})=>{const Ne=(0,E.useRef)(null),at=(0,E.useRef)(null),Bt=`.markdown-body p { +\\end{array}`}]}]}],Ne=pe=>{Oe.current.setValue(Oe.current.getValue()+" "+pe.value+" ")},Ye=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Se.createElement(ve.Z,{className:Ue.Z.lists,gutter:[10,10]},Be.map((pe,Ke)=>Se.createElement(xe.Z,{flex:"110px",className:Ue.Z.item},Se.createElement("div",null,Se.createElement(Ae.Z,{value:`$$${pe.value}$$`}),pe.name),Se.createElement("div",{className:Ue.Z.children},pe.children.map((nt,bt)=>Se.createElement("div",{key:bt},Se.createElement("h1",null,nt.name),Se.createElement(ve.Z,{gutter:[10,10]},nt.data.map((At,ut)=>Se.createElement(xe.Z,{key:ut,onClick:()=>Ne(At),className:Ue.Z.diamond},Se.createElement(Ae.Z,{value:"`$$"+At.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Se.createElement(ve.Z,{className:Ue.Z.lists,gutter:[10,10]},be.map((pe,Ke)=>Se.createElement(xe.Z,{flex:"110px",className:Ue.Z.item},Se.createElement("div",null,Se.createElement(Ae.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Se.createElement("div",{className:Ue.Z.children},pe.children.map((nt,bt)=>Se.createElement("div",{key:bt},nt.name&&Se.createElement("h1",null,nt.name),Se.createElement(ve.Z,{gutter:[10,10]},nt.data.map((At,ut)=>Se.createElement(xe.Z,{key:ut,onClick:()=>Ne(At),className:Ue.Z.diamond},Se.createElement(Ae.Z,{value:"`$$"+At.value+"$$`"}))))))))))}],it=()=>{var pe=document.createElement("div");pe.innerHTML=Oe.current.getValue();var Ke=pe.innerText;return Qe&&Qe(Ke),Ke};return(0,E.useImperativeHandle)(Ge,()=>({getData:it})),Se.createElement("div",{className:Ue.Z.mathWrap},Se.createElement(Je.default,{defaultActiveKey:"1",items:Ye}),Se.createElement("math-field",{locale:"zh_cn",className:Ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Oe,style:{width:800,marginTop:30,fontSize:18}},pt||""),qe&&Se.createElement("div",{className:Ue.Z.button},Se.createElement(We.ZP,{size:"large",onClick:it,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});_t.Z=He},28860:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=ne(93314),xe=ne(7939),Je=Object.defineProperty,We=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,He=(Ge,Oe,Be)=>Oe in Ge?Je(Ge,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ge[Oe]=Be,Qe=(Ge,Oe)=>{for(var Be in Oe||(Oe={}))tt.call(Oe,Be)&&He(Ge,Be,Oe[Be]);if(Ue)for(var Be of Ue(Oe))Se.call(Oe,Be)&&He(Ge,Be,Oe[Be]);return Ge},qe=(Ge,Oe)=>We(Ge,Ae(Oe));const pt=({img:Ge,buttonProps:Oe={},styles:Be={},customText:be,ButtonText:Ne,ButtonClick:Ye,Buttonclass:it,ButtonTwo:pe,imgStyles:Ke,loading:nt=!1,className:bt=""})=>E.createElement("section",{className:`tc animated fadeIn ${bt}`,style:Qe({color:"#999",margin:"100px auto",visibility:nt?"hidden":"visible"},Be)},E.createElement("img",{src:Ge||ve,style:qe(Qe({},Ke),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},be||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ne&&E.createElement(xe.ZP,Qe({className:it,onClick:Ye},Oe),Ne),pe&&pe);_t.Z=pt},44977:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return it}});var E=ne(59301),ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},xe=ne(7939),Je=ne(70557),We=ne(86746),Ae=ne(25399),Ue=ne(95203),tt=ne(34359),Se=ne(28860),He=ne(51802),Qe=ne(27120),qe=ne(59301),pt=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(pe,Ke,nt)=>Ke in pe?pt(pe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):pe[Ke]=nt,Ne=(pe,Ke)=>{for(var nt in Ke||(Ke={}))Oe.call(Ke,nt)&&be(pe,nt,Ke[nt]);if(Ge)for(var nt of Ge(Ke))Be.call(Ke,nt)&&be(pe,nt,Ke[nt]);return pe},Ye=(pe,Ke,nt)=>new Promise((bt,At)=>{var ut=Pe=>{try{ht(nt.next(Pe))}catch(ze){At(ze)}},Xe=Pe=>{try{ht(nt.throw(Pe))}catch(ze){At(ze)}},ht=Pe=>Pe.done?bt(Pe.value):Promise.resolve(Pe.value).then(ut,Xe);ht((nt=nt.apply(pe,Ke)).next())}),it=({editOffice:pe="view",data:Ke,issaver:nt,onSaver:bt,theme:At,type:ut,filename:Xe,monacoEditor:ht,className:Pe,style:ze,close:Te,onClose:rt,hasMask:Pt,disabledDownload:st,onImgDimensions:et,showNodata:Ft,recordInfo:De})=>{const[ge,lt]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Et,yt]=(0,E.useState)(""),[Ze,Ve]=(0,E.useState)(),ft=window.ENV==="build"?"/react/build":"",Kt=location.host.startsWith("localhost")?He.Z.PROXY_SERVER:He.Z.API_SERVER,dn=10*(1024*1024),ct=(0,E.useRef)();Ke!=null&&Ke.startsWith("/api")&&ut!=="txt"&&(Ke=He.Z.API_SERVER+Ke);const Nt=me=>me.substring(me.lastIndexOf("/")+1).split(".").pop();Xe&&ht&&(ht.filename=Xe),(0,E.useEffect)(()=>{var me,le;const ot=(le=(me=document.cookie)==null?void 0:me.replace(/\s/g,""))==null?void 0:le.split(";");ot==null||ot.map(Ht=>{let on=Ht.split("=");on[0]==="_educoder_session"&&yt(on[1])})},[]),(0,E.useEffect)(()=>{ut==="office"&&(Ke.indexOf("bigfilescdn.")>-1||Ke.indexOf("bigfiles1")>-1?Ve({url:Ke,fileType:Nt(Ke),model:Ke.indexOf("model=edit")?"edit":"view"}):Ke.indexOf("coze")>-1?Ve({url:Ke,fileType:"doc",model:"view"}):he())},[ut,Ke]);function mn(me){return Ye(this,null,function*(){me.data.type==="pdfdata"&&(bt(me.data.data),window.removeEventListener("message",mn,!1)),console.log("mess---:",me.data)})}const he=()=>Ye(void 0,null,function*(){console.log("data:",Ke);let me=Ke;Ke.startsWith("http")||(me=location.origin+me);let le=new URL(me).pathname.split("/").pop();const ot=yield(0,tt.gJ)({attachment_id:le});ot.url=Kt+ot.url,Ve(ot)}),se=()=>{if(Ke.startsWith("http")||Ke.startsWith("blob:")){ae();return}(0,Ue.Sv)(Xe||"educoder",Ke,Xe)},ae=()=>{De&&(0,Qe.fc)({id:De==null?void 0:De.id,watch_type:1,course_id:De==null?void 0:De.course_id}),(0,Ue.Nd)(Xe||"educoder",decodeURIComponent(Ke))};(0,E.useEffect)(()=>(window.addEventListener("message",ce),()=>{window.removeEventListener("message",ce)}),[]);const ce=me=>{var le;((le=me==null?void 0:me.data)==null?void 0:le.type)==="closePop"&&rt()};return qe.createElement("div",{style:Ne({},ze||{}),className:`${Pt&&ve.bgBlack} ${ut?ve.wrp:"hide"}`},Te&&qe.createElement("div",{id:"closePop",className:ve.close,ref:ct},!!et&&qe.createElement(Ae.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ct.current},qe.createElement("span",{onClick:()=>{rt(),et()}},qe.createElement("i",{className:"icon-yulanpizhu"}))),!st&&window.parent===window&&qe.createElement(Ae.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ct.current},qe.createElement("span",{onClick:ae},qe.createElement("i",{className:"icon-quxiaozhiding"}))),nt&&qe.createElement(Ae.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ct.current},qe.createElement("span",{className:"",onClick:()=>{const me=document.getElementById("pdfiframe");window.addEventListener("message",mn,!1),setTimeout(()=>{me.contentWindow.postMessage("getData","*")},300)}},qe.createElement("i",{className:"icon-baocun"}))),qe.createElement(Ae.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ct.current},qe.createElement("span",{className:"",onClick:()=>{rt()}},qe.createElement("i",{className:"icon-guanbi1"})))),qe.createElement("div",{className:`${ve[Pe]} ${Pe} ${ve.monaco} ${ut==="txt"?"show":"hide"}`},ut==="txt"&&qe.createElement(qe.Fragment,null,qe.createElement(We.ZP,Ne({},ht)))),ut==="audio"&&qe.createElement("audio",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ke}`,autoPlay:!0}),ut==="video"&&qe.createElement(qe.Fragment,null,(Ke==null?void 0:Ke.indexOf("http"))>-1?qe.createElement("video",{controls:!0,src:`${Ke}`,autoPlay:!0}):qe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ke}`,autoPlay:!0})),ut==="office"&&Ze&&qe.createElement("iframe",{src:`${ft}/office.html?key=${Ze.key}&url=${btoa(Ze.url)}&callbackUrl=${Kt+(Ze.callbackUrl||"")}&fileType=${Ze.fileType}&title=${Ze.title||""}&model=${pe}&officeServer=${He.Z.ONLYOFFICE}&disabledDownload=${!!st}`}),ut==="html"&&qe.createElement("iframe",{src:Ke+"&disposition=inline"}),ut==="pdf"&&qe.createElement("iframe",{id:"pdfiframe",src:`${ft}/js/pdf/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(Ke)}&disabledDownload=${!!st}&model=${pe}`}),ut==="image"&&qe.createElement("img",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ke}`}),(ut==="other"||ut==="download")&&qe.createElement(qe.Fragment,null,Ft?qe.createElement(Se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:qe.createElement(xe.ZP,{icon:qe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:se,disabled:st},"\u4E0B\u8F7D")}):qe.createElement(xe.ZP,{type:"primary",size:"middle",onClick:se,disabled:st},qe.createElement(Je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ut==="flowChart"&&qe.createElement("div",{className:"embed"},qe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},459:function(Bt,_t,ne){"use strict";ne.d(_t,{Q:function(){return Se},Z:function(){return Qe}});var E=ne(59301),ve={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},xe=ne(92310),Je=ne.n(xe),We=ne(62957),Ae=ne(6767),Ue=ne(62673),tt=(qe,pt,Ge)=>new Promise((Oe,Be)=>{var be=it=>{try{Ye(Ge.next(it))}catch(pe){Be(pe)}},Ne=it=>{try{Ye(Ge.throw(it))}catch(pe){Be(pe)}},Ye=it=>it.done?Oe(it.value):Promise.resolve(it.value).then(be,Ne);Ye((Ge=Ge.apply(qe,pt)).next())});const Se=({title:qe="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:pt=[],visible:Ge,setVisible:Oe,tip:Be,onOk:be})=>{const[Ne,Ye]=(0,E.useState)([]),[it,pe]=(0,E.useState)(!1);return(0,E.useEffect)(()=>{Ge&&Ye(pt)},[Ge]),E.createElement(We.default,{centered:!0,open:Ge,title:qe,confirmLoading:it,width:564,onOk:()=>tt(void 0,null,function*(){if(!Ne.length){Ae.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}pe(!0),yield be(Ne),pe(!1)}),onCancel:()=>Oe(!1)},!!Be&&E.createElement("div",{className:"c-grey-666 font16 mb10"},Be),E.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},E.createElement(Ue.default.Group,{value:Ne,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Ke=>{Ye(Ke)}})))};var Qe=({title:qe="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:pt,style:Ge={},onEdit:Oe,dataSource:Be=[]})=>{const be={C:E.createElement("div",{className:ve.c},"C"),"C++":E.createElement("div",{className:ve.cpp},"C++"),Java:E.createElement("div",{className:ve.java},"Java"),Python:E.createElement("div",{className:ve.python},"Python")};return E.createElement("div",{className:Je()(ve.tags,pt),style:Ge},!!qe&&E.createElement("div",{className:ve.text},qe),E.createElement("div",{className:ve.tagWrap},Be==null?void 0:Be.map(Ne=>E.createElement(E.Fragment,{key:Ne},be[Ne]))),!!Oe&&E.createElement("div",{onClick:Oe,className:`iconfont icon-bianji_Hover ${ve.edit}`}))}},64652:function(Bt,_t,ne){"use strict";ne.d(_t,{t:function(){return ae}});var E=ne(59301),ve=ne(37568),xe=ne(28284),Je=ne(62957),We=ne(77019),Ae=ne(5269),Ue=ne(4875),tt=ne(82326),Se=ne(47889),He=ne(6183),Qe=ne(88634),qe=ne(51291),pt=ne(6767),Ge=ne(7939),Oe=ne(29787),Be=ne(24334),be={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},Ne=ne(70892),Ye=ne(57788),it=ne(15945),pe=ne(56102),Ke=ne(86053),nt=ne(59301),bt=Object.defineProperty,At=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ze=(ce,me,le)=>me in ce?bt(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[me]=le,Te=(ce,me)=>{for(var le in me||(me={}))ht.call(me,le)&&ze(ce,le,me[le]);if(Xe)for(var le of Xe(me))Pe.call(me,le)&&ze(ce,le,me[le]);return ce},rt=(ce,me)=>At(ce,ut(me)),Pt=(ce,me,le)=>new Promise((ot,Ht)=>{var on=Xn=>{try{wn(le.next(Xn))}catch(Nn){Ht(Nn)}},kn=Xn=>{try{wn(le.throw(Xn))}catch(Nn){Ht(Nn)}},wn=Xn=>Xn.done?ot(Xn.value):Promise.resolve(Xn.value).then(on,kn);wn((le=le.apply(ce,me)).next())}),et=({buttonProps:ce,buttonText:me,form:le,hackIdentifier:ot="",answerKey:Ht,data:on})=>{const[kn,wn]=(0,E.useState)(!1),[Xn,Nn]=(0,E.useState)(!1),[Pr,Vr]=(0,E.useState)(!1),[Ar,Jn]=(0,E.useState)({}),[va,Qr]=(0,E.useState)(""),[ur,Sn]=(0,E.useState)(""),sr=(0,E.useRef)(ot),un=(0,E.useRef)(""),Er=(0,E.useRef)(!1);(0,E.useEffect)(()=>{Pr&&Sr()},[Pr]),(0,E.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Br=()=>new Date().getTime(),Xa=on==null?void 0:on.code,Da=()=>{var $r,Aa;let ga=Xa?on==null?void 0:on.code:($r=le.getFieldValue("hack_codes"))==null?void 0:$r.code,Ei=Xa?on==null?void 0:on.answer_content:le.getFieldValue(Ht),Ii=Xa?on==null?void 0:on.input:(Aa=le.getFieldValue("hack_sets"))==null?void 0:Aa.input;Ei==null||Ei.forEach(Ja=>{const ri=Ja.value||Ja.answer_text||"";ga=ga.replace(/(@▁@|@▁▁@)/,ri)}),Sn(Ii),Qr(ga),Jn({}),Vr(!0)},Sr=()=>Pt(void 0,null,function*(){var $r,Aa,ga,Ei;const Ii=Br(),Ja=Xa?on==null?void 0:on.time_limit:($r=le.getFieldsValue())==null?void 0:$r.hack.time_limit,ri=Xa?(Aa=on==null?void 0:on.answer_content)==null?void 0:Aa.length:(Ei=(ga=le.getFieldsValue())==null?void 0:ga.standard_answers)==null?void 0:Ei.length;wn(!0),yield(0,Ye.bM)(un.current,{test_hack_code:va,test_input:ur});function hi(){return Pt(this,null,function*(){const{status:$i,data:Ha}=yield(0,Ye.rX)(un.current,"submit"),Ir=Br()-Ii>(Ja+3)*1e3*ri;if(Er.current){if(Ir){pt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),wn(!1);return}if($i===0){wn(!1),Jn(rt(Te({},Ha),{showText:!0}));return}setTimeout(hi,1e3)}})}hi()}),En=()=>Pt(void 0,null,function*(){var $r,Aa,ga,Ei,Ii,Ja,ri;if(!on){try{yield le.validateFields()}catch(ea){(ga=(Aa=($r=ea==null?void 0:ea.errorFields)==null?void 0:$r[0])==null?void 0:Aa.name)!=null&&ga.includes("standard_answers")?pt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):pt.ZP.error(ea.errorFields[0].errors[0]),le.scrollToField(ea.errorFields[0].name,{behavior:"smooth",block:"center"});return}Nn(!0);let $i="";const Ha=le.getFieldsValue();sr.current?$i=yield(0,Ne.ZP)(`/api/problems/${sr.current}.json`,{method:"put",body:rt(Te({},Ha),{hack:rt(Te({},Ha==null?void 0:Ha.hack),{sub_discipline_id:(ri=(Ja=Ha==null?void 0:Ha.hack)==null?void 0:Ja.sub_discipline_id)==null?void 0:ri[1],difficult:Ha.difficulty,item_banks_group_id:Ha.item_banks_group_id}),hack_codes:rt(Te({},Ha.hack_codes),{code:Be.Base64.encode(Ha.hack_codes.code)}),update_hack_sets:[Te({},Ha.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):($i=yield(0,Ne.ZP)("/api/problems.json",{method:"post",body:rt(Te({},Ha),{hack:rt(Te({},Ha==null?void 0:Ha.hack),{sub_discipline_id:(Ii=(Ei=Ha==null?void 0:Ha.hack)==null?void 0:Ei.sub_discipline_id)==null?void 0:Ii[1],difficult:Ha.difficulty,item_banks_group_id:Ha.item_banks_group_id}),hack_codes:rt(Te({},Ha.hack_codes),{code:Be.Base64.encode(Ha.hack_codes.code)}),hack_sets:[Te({},Ha.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),sr.current=$i==null?void 0:$i.identifier,sessionStorage.projectFill=$i==null?void 0:$i.identifier)}const hi=yield(0,Ne.ZP)(`/api/problems/${sr.current}/start.json`,{method:"get"});if((hi==null?void 0:hi.status)===0){un.current=hi==null?void 0:hi.identifier,Er.current=!0,Nn(!1),Da();return}Nn(!1)}),nr=$r=>{const{status:Aa,error_msg:ga,execute_time:Ei,output:Ii,input:Ja,expected_output:ri}=$r;let hi=null;switch(Aa){case Ke.h.OK:hi=nt.createElement(nt.Fragment,null,nt.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ei/1e3,"\u79D2"),nt.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ke.h.NOMATCH:hi=nt.createElement(nt.Fragment,null,nt.createElement("div",null,"\u8F93\u5165\uFF1A"),nt.createElement("pre",{style:{fontFamily:"initial"}},Ja),nt.createElement("div",null,"\u8F93\u51FA\uFF1A"),nt.createElement("pre",{style:{fontFamily:"initial"}},Ii&&Be.Base64.decode(Ii)),nt.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),nt.createElement("pre",{style:{fontFamily:"initial"}},ri&&Be.Base64.decode(ri)));break;case Ke.h.EXECUTEFAILURE:hi=nt.createElement(nt.Fragment,null,nt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",nt.createElement("pre",null,Ja)),nt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),nt.createElement("pre",{className:"error"},Be.Base64.decode(ga)));break;case Ke.h.COMPILEFAILURE:hi=nt.createElement(nt.Fragment,null,nt.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",nt.createElement("pre",null,Ja)),nt.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),nt.createElement("pre",{className:"error"},Be.Base64.decode(ga)));break;case Ke.h.PODFAILURE:hi=nt.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ke.h.TIMEOUT:hi=nt.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return nt.createElement(nt.Fragment,null," ",hi," ")};return nt.createElement("div",null,nt.createElement(Ge.ZP,rt(Te({loading:Xn},ce),{onClick:En}),me),nt.createElement(Je.default,{open:Pr,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:kn,cancelButtonProps:{style:{display:"none"}},onOk:()=>Sr(),onCancel:()=>{Er.current=!1,Vr(!1)}},nt.createElement("div",{className:be.result},nt.createElement("div",{className:be.left},nt.createElement("div",{className:"mb20"},nt.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!on&&nt.createElement(pe.CopyToClipboard,{text:va,onCopy:()=>pt.ZP.success("\u590D\u5236\u6210\u529F")},nt.createElement("span",{style:{float:"right"},className:"current c-light-primary"},nt.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),nt.createElement(it.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:va,onChange:$r=>Qr($r)})),nt.createElement("div",{className:be.right},nt.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),nt.createElement("div",{className:be.box},nt.createElement("div",{className:be.li},nt.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:ur,onChange:$r=>Sn($r.target.value),bordered:!1,style:{height:180}}))),nt.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),nt.createElement("div",{className:be.box},nt.createElement(Oe.Z,{spinning:kn,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},nt.createElement("div",{className:be.li,style:{height:196,overflow:"auto",padding:10}},nr(Ar))))))))},Ft=ne(87169),De=ne(59301),ge=Object.defineProperty,lt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ft=(ce,me,le)=>me in ce?ge(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[me]=le,Kt=(ce,me)=>{for(var le in me||(me={}))Ze.call(me,le)&&ft(ce,le,me[le]);if(yt)for(var le of yt(me))Ve.call(me,le)&&ft(ce,le,me[le]);return ce},kt=(ce,me)=>lt(ce,Et(me)),dn=(ce,me)=>{var le={};for(var ot in ce)Ze.call(ce,ot)&&me.indexOf(ot)<0&&(le[ot]=ce[ot]);if(ce!=null&&yt)for(var ot of yt(ce))me.indexOf(ot)<0&&Ve.call(ce,ot)&&(le[ot]=ce[ot]);return le};const{TextArea:ct}=ve.default,Nt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],mn=({value:ce,onChange:me})=>De.createElement(Switch,{checked:ce,onChange:le=>{me(le)}}),he="@\u2581@",se="@\u2581\u2581@",ae=({questionTitlePlaceholder:ce,form:me,scoreByBlank:le=!1,hackidentifier:ot,answerKey:Ht})=>{const[on,kn]=(0,E.useState)(!1),[wn,Xn]=(0,E.useState)(!1),Pr=(0,Qe.useParams)().type==="edit",Vr=(un,Er)=>{const Br=Er.line;let Xa=0;for(let Sr=0;Sr{const Da=un.getRange(Er.from,Er.to);let Sr=0;if(Er.text.forEach(En=>{Sr+=En.split(he).length-1}),Er.text.forEach(En=>{Sr+=En.split(se).length-1}),Er.origin!=="setValue"){if(Da&&(Da.indexOf(he)!==-1||Da.indexOf(se)!==-1)){const En=Da.split(he).length-1+Da.split(se).length-1,nr=Vr(un,Er.from);if(console.log(`\u5220\u9664${En}\u4E2A\uFF0C \u524D\u9762\u6709${nr}\u4E2A\uFF0C\u65B0\u589E${Sr}\u4E2A`),En>1){const $r=Array.from({length:En},(Aa,ga)=>nr+ga);Xa($r)}else Xa(nr)}else if(Sr>0){const En=Vr(un,Er.from);console.log(`\u65B0\u589E${Sr}\u4E2A\uFF0C\u4E4B\u524D\u6709${En}\u4E2A`),Br(Sr,En)}}},Jn=()=>{const un=me.getFieldValue(Ht);me.setFieldsValue({[Ht]:un==null?void 0:un.map((Er,Br)=>kt(Kt({},Er),{position:Br+1}))})},va=(0,E.useRef)(),Qr=(un,Er)=>{for(let Br=0;Br{ur.current(un),Jn()},sr=xe.default.useWatch(Ht,me);return De.createElement("div",{className:qe.Z.wrap},De.createElement(xe.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},De.createElement(He.h,{scrollId:"name",watch:!0,height:140})),De.createElement("div",{className:qe.Z.questionTitleEditorWrap},De.createElement(xe.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},De.createElement(He.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(un,Er)=>{const Br=me.getFieldValue(Ht);console.log("--preAnswerData",Br,Er),me.setFieldsValue({[Ht]:Br==null?void 0:Br.map((Xa,Da)=>{var Sr;return kt(Kt({},Xa),{position:Da+1,multi_line:(Sr=Er==null?void 0:Er[Da])==null?void 0:Sr.multiLine})})})},placeholder:ce,onCMBeforeChange:(un,Er)=>{Ar(un,Er,Qr,Sn)}}))),De.createElement(xe.default.List,{name:Ht,rules:[{validator(un,Er){if(!(Er!=null&&Er.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Br of Er){const{answer_text:Xa}=Br||{};if((Xa==null?void 0:Xa.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(un,{add:Er,remove:Br},{errors:Xa})=>(va.current=Er,ur.current=Br,De.createElement(De.Fragment,null,De.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},De.createElement(xe.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),De.createElement("div",{onClick:()=>{Je.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:De.createElement("div",null,De.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",De.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),De.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},De.createElement(Ft.Z,{style:{marginRight:3,color:"#3061D0"}}),De.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),un.map((Da,Sr)=>{var En=Da,{key:nr,name:$r}=En,Aa=dn(En,["key","name"]),ga,Ei;return De.createElement(We.Z,{className:"mb20",key:nr,align:"middle",wrap:!1},De.createElement(Ae.Z,{flex:"0 0 auto",className:`${qe.Z.blankIndex}`},"\u586B\u7A7A\u9879",Sr+1),De.createElement(Ae.Z,{flex:1},De.createElement(We.Z,{align:"top",justify:"space-between",wrap:!1},De.createElement(Ae.Z,null,De.createElement(xe.default.Item,kt(Kt({},Aa),{name:[$r,"answer_text"],noStyle:!0}),(ga=sr==null?void 0:sr[$r])!=null&&ga.multi_line||(Ei=sr==null?void 0:sr[$r])!=null&&Ei.multiLine?De.createElement(ct,{spellCheck:!1,style:{marginLeft:10,width:550}}):De.createElement(ve.default,{style:{marginLeft:10,width:550},className:qe.Z.blankInput,size:"large",maxLength:1e3,onBlur:Ii=>{}}))),le&&De.createElement(Ae.Z,{flex:"224px"},De.createElement(xe.default.Item,kt(Kt({},Aa),{name:[$r,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),De.createElement(Ue.Z,{size:"large",className:qe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),De.createElement("div",{onClick:()=>kn(!0)},De.createElement(xe.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(He.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:on}))),De.createElement(xe.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},De.createElement(tt.default,{size:"large"},Nt.map(un=>De.createElement(tt.default.Option,{key:un.title,value:un.key}," ",un.title)))),De.createElement(xe.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},De.createElement(xe.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},De.createElement(Ue.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),De.createElement("span",{className:"ml10 font14"},"\u79D2")),De.createElement(xe.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},De.createElement(Se.ZP.Group,{style:{marginTop:-10}},De.createElement(Se.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),De.createElement(Se.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),De.createElement(Se.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),De.createElement(xe.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),De.createElement("div",{style:{background:"#F6F7F9",padding:15}},De.createElement(xe.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},De.createElement(ct,{rows:4})),De.createElement(xe.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},De.createElement(ct,{rows:4}))),De.createElement(et,{form:me,answerKey:Ht,hackIdentifier:ot,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:De.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},42172:function(Bt,_t,ne){"use strict";ne.d(_t,{u:function(){return nt}});var E=ne(59301),ve=ne(77019),xe=ne(5269),Je=ne(25399),We=ne(28284),Ae=ne(51291),Ue=ne(32134),tt=ne(12893),Se=ne(6183),He=ne(59301),Qe=Object.defineProperty,qe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(bt,At,ut)=>At in bt?Qe(bt,At,{enumerable:!0,configurable:!0,writable:!0,value:ut}):bt[At]=ut,Ne=(bt,At)=>{for(var ut in At||(At={}))Oe.call(At,ut)&&be(bt,ut,At[ut]);if(Ge)for(var ut of Ge(At))Be.call(At,ut)&&be(bt,ut,At[ut]);return bt},Ye=(bt,At)=>qe(bt,pt(At)),it=(bt,At)=>{var ut={};for(var Xe in bt)Oe.call(bt,Xe)&&At.indexOf(Xe)<0&&(ut[Xe]=bt[Xe]);if(bt!=null&&Ge)for(var Xe of Ge(bt))At.indexOf(Xe)<0&&Be.call(bt,Xe)&&(ut[Xe]=bt[Xe]);return ut};const pe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ke=({value:bt,onChange:At,choiceTextKey:ut,answerKey:Xe,index:ht,isEdit:Pe,setInputActive:ze,form:Te,choiceOptionsPath:rt,allowChangeMode:Pt,showAddIcon:st,addItem:et,deleteItem:Ft})=>{console.log(bt,"value");const De=(bt==null?void 0:bt[Xe])===1,ge=()=>{const Et=Te.getFieldValue(rt);Te.setFieldValue(rt,Et.map(yt=>Ye(Ne({},yt),{[Xe]:0})))},lt=()=>{De?At(Ye(Ne({},bt),{[Xe]:0})):(Pt||ge(),At(Ye(Ne({},bt),{[Xe]:1})))};return He.createElement(ve.Z,{className:Ae.Z.choiceWrap,align:"middle",wrap:!1},He.createElement(xe.Z,{onClick:lt,className:`${Ae.Z.choiceIndex} ${De?Ae.Z.activeAnswer:""}`},pe[ht]),He.createElement(xe.Z,{flex:1,className:`${Ae.Z.editorWrap} ml15`,onClick:ze},He.createElement(Se.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Pe,value:bt==null?void 0:bt[ut],onChange:Et=>{At(Ye(Ne({},bt),{[ut]:Et}))}})),He.createElement(xe.Z,{flex:"0 0 auto",className:"ml15"},He.createElement("div",{onClick:lt,className:`${Ae.Z.setAnswerBtn} ${De?Ae.Z.activeAnswer:""}`},De?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),He.createElement(xe.Z,{className:Ae.Z.actionWrapper},He.createElement(Je.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},He.createElement(Ue.Z,{className:Ae.Z.addIcon,onClick:et,style:{visibility:st?"visible":"hidden"}})),He.createElement(Je.Z,{title:"\u5220\u9664"},He.createElement(tt.Z,{className:Ae.Z.deleteIcon,onClick:Ft,style:{visibility:ht>1?"visible":"hidden"}}))))},nt=({questionTitlePlaceholder:bt,titleKey:At,choiceKey:ut,analysisKey:Xe,choiceTextKey:ht,answerKey:Pe,choiceOptionsPath:ze,allowChangeMode:Te=!0,form:rt,showAnalysis:Pt=!0})=>{const[st,et]=(0,E.useState)(),[Ft,De]=(0,E.useState)(!1);return He.createElement("div",{className:Ae.Z.wrap},He.createElement("div",{className:Ae.Z.questionTitleEditorWrap},He.createElement(We.default.Item,{label:"\u9898\u5E72",name:At,labelCol:{span:24},rules:[{required:!0}]},He.createElement(Se.h,{scrollId:Array.isArray(At)?At.join("_"):`${At}`,watch:!0,height:140,placeholder:bt}))),He.createElement(We.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),He.createElement(We.default.List,{name:ut,rules:[{validator(ge,lt){const Et=lt.some(Ze=>Ze[Pe]===1),yt=lt.findIndex(Ze=>{var Ve;return((Ve=Ze[ht])==null?void 0:Ve.length)<=0});return yt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${pe[yt]}\u9009\u9879\u7684\u5185\u5BB9`)):Et?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ge,{add:lt,remove:Et})=>He.createElement("div",{id:Array.isArray(ze)?ze.join("_"):`${ze}`},ge.map((yt,Ze)=>{var Ve=yt,{key:ft,name:Kt}=Ve,kt=it(Ve,["key","name"]);const dn=st===ft,ct=()=>{et(ft)},Nt=Ze<14&&Ze===ge.length-1,mn=()=>lt({[ht]:"",[Pe]:0}),he=()=>Et(Kt);return He.createElement(We.default.Item,Ye(Ne({},kt),{key:ft,name:Kt,className:Ae.Z.choiceListWrap,rules:[{validator(se,ae){return ae!=null&&ae.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${pe[Ze]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),He.createElement(Ke,{choiceTextKey:ht,answerKey:Pe,index:Ze,isEdit:dn,setInputActive:ct,form:rt,choiceOptionsPath:ze,allowChangeMode:Te,showAddIcon:Nt,addItem:mn,deleteItem:he}))}),ge.length<15&&He.createElement("div",{className:`${Ae.Z.addBtn} mb30`,onClick:()=>lt({[ht]:"",[Pe]:0})},"\u6DFB\u52A0\u9009\u9879"))),Pt&&He.createElement("div",{onClick:()=>De(!0)},He.createElement(We.default.Item,{name:Xe,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},He.createElement(Se.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ft}))))}},29981:function(Bt,_t,ne){"use strict";ne.d(_t,{u:function(){return rt}});var E=ne(59301),ve=ne(62957),xe=ne(77019),Je=ne(5269),We=ne(37568),Ae=ne(25399),Ue=ne(58755),tt=ne(28284),Se=ne(47889),He=ne(4875),Qe=ne(7939),qe=ne(6183),pt=ne(12893),Ge=ne(32134),Oe=ne(61485),Be=ne(51291),be=ne(28618),Ne=ne(59301),Ye=Object.defineProperty,it=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,At=(Pt,st,et)=>st in Pt?Ye(Pt,st,{enumerable:!0,configurable:!0,writable:!0,value:et}):Pt[st]=et,ut=(Pt,st)=>{for(var et in st||(st={}))nt.call(st,et)&&At(Pt,et,st[et]);if(Ke)for(var et of Ke(st))bt.call(st,et)&&At(Pt,et,st[et]);return Pt},Xe=(Pt,st)=>it(Pt,pe(st)),ht=(Pt,st)=>{var et={};for(var Ft in Pt)nt.call(Pt,Ft)&&st.indexOf(Ft)<0&&(et[Ft]=Pt[Ft]);if(Pt!=null&&Ke)for(var Ft of Ke(Pt))st.indexOf(Ft)<0&&bt.call(Pt,Ft)&&(et[Ft]=Pt[Ft]);return et};const Pe=({value:Pt,onChange:st,position:et,removeBlank:Ft})=>{const De=lt=>{ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const Et=[...Pt];Et.splice(lt,1),Et.length===0?Ft(et-1):st(Et)}})},ge=()=>{const lt=[...Pt];lt.push(""),st(lt)};return Ne.createElement(xe.Z,{className:"ml20"},Ne.createElement(Je.Z,{flex:1},Pt==null?void 0:Pt.map((lt,Et)=>Ne.createElement(xe.Z,{key:`${lt}_${Et}`,className:"mb20"},Ne.createElement(We.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:lt,autoSize:{maxRows:3},maxLength:1e3,onBlur:yt=>{const Ze=[...Pt],Ve=yt.target.value.trim();Ze[Et]=Ve,st(Ze)}}),Ne.createElement(Ae.Z,{title:"\u5220\u9664"},Ne.createElement(pt.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:et===1&&Et===0?"hidden":"visible"},onClick:()=>De(Et)})),Ne.createElement(Ae.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ne.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Et===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},ze=({value:Pt,onChange:st,position:et,removeBlank:Ft})=>{const De=lt=>{ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const Et=[...Pt];Et.splice(lt,1),Et.length===0?Ft(et-1):st(Et)}})},ge=()=>{const lt=[...Pt];lt.push(""),st(lt)};return Ne.createElement(xe.Z,{className:"ml20"},Ne.createElement(Je.Z,{flex:1},Pt==null?void 0:Pt.map((lt,Et)=>Ne.createElement(xe.Z,{key:`${lt}_${Et}`,align:"middle",className:"mb20"},Ne.createElement(be.Z,{value:lt,style:{flex:1},onChange:yt=>{const Ze=[...Pt];Ze[Et]=yt,st(Ze)}}),Ne.createElement(Ae.Z,{title:"\u5220\u9664"},Ne.createElement(pt.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:et===1&&Et===0?"hidden":"visible"},onClick:()=>De(Et)})),Ne.createElement(Ae.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ne.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Et===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},Te=({value:Pt=!0,onChange:st})=>Ne.createElement(Ue.Z,{checked:!Pt,onChange:et=>{st(!et)}}),rt=({questionTitlePlaceholder:Pt,form:st,scoreByBlank:et=!1,answerKey:Ft})=>{const[De,ge]=(0,E.useState)(!1),lt=()=>{const Kt=st.getFieldValue(Ft);st.setFieldsValue({[Ft]:Kt.map((kt,dn)=>Xe(ut({},kt),{position:dn+1}))})},Et=(0,E.useRef)(),yt=(Kt,kt)=>{for(let dn=0;dn{Ze.current(Kt),lt()},ft=tt.default.useWatch(Ft,st);return Ne.createElement("div",{className:Be.Z.wrap},Ne.createElement("div",{className:Be.Z.questionTitleEditorWrap},Ne.createElement(tt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ne.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt,showNullButton:!0,onAddBlank:()=>{const Kt=st.getFieldValue(Ft);yt(1,Kt==null?void 0:Kt.length)}}))),Ne.createElement(tt.default.List,{name:Ft,rules:[{validator(Kt,kt){if(!(kt!=null&&kt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const dn of kt){const{answer_text:ct}=dn||{};if(ct!=null&&ct.some(Nt=>(Nt==null?void 0:Nt.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Kt,{add:kt,remove:dn},{errors:ct})=>(Et.current=kt,Ze.current=dn,Ne.createElement(Ne.Fragment,null,Ne.createElement(tt.default.Item,{label:Ne.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Kt.map((Nt,mn)=>{var he=Nt,{key:se,name:ae}=he,ce=ht(he,["key","name"]),me,le;return Ne.createElement("div",{style:{marginBottom:10},key:se},Ne.createElement(xe.Z,{className:"mb20",align:"middle",wrap:!1},Ne.createElement(Je.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Be.Z.blankIndex}`},"\u586B\u7A7A\u9879",mn+1),Ne.createElement(tt.default.Item,Xe(ut({},ce),{name:[ae,"model"],noStyle:!0}),Ne.createElement(Se.ZP.Group,{onChange:()=>{const ot=st.getFieldValue(Ft);st.setFieldsValue({[Ft]:ot.map((Ht,on)=>Xe(ut({},Ht),{answer_text:ae===on?[""]:Ht.answer_text}))})}},Ne.createElement(Se.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Ne.createElement(Ae.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Ne.createElement(Oe.Z,null))),Ne.createElement(Se.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Ne.createElement(Ae.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Ne.createElement(Oe.Z,null)))))),Ne.createElement(xe.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Ne.createElement(Je.Z,{flex:1},Ne.createElement(xe.Z,{align:"top",justify:"space-between",wrap:!1},Ne.createElement(Je.Z,{flex:1},Ne.createElement(tt.default.Item,Xe(ut({},ce),{name:[ae,"answer_text"],noStyle:!0}),((le=(me=st.getFieldValue(Ft))==null?void 0:me[ae])==null?void 0:le.model)===1?Ne.createElement(Pe,{removeBlank:Ve,position:mn+1}):Ne.createElement(ze,{removeBlank:Ve,position:mn+1}))),et&&Ne.createElement(Je.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Ne.createElement(tt.default.Item,Xe(ut({},ce),{name:[ae,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Be.Z.blankInputNumberWrapper}),Ne.createElement(He.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Ne.createElement(tt.default.Item,Xe(ut({},ce),{name:[ae,"position"],noStyle:!0}),Ne.createElement(We.default,{type:"hidden"})))))})))),Ne.createElement(Qe.ZP,{className:"mb20",onClick:()=>yt(1,ft==null?void 0:ft.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ne.createElement(xe.Z,{align:"middle"},Ne.createElement(tt.default.Item,{name:"downcase",valuePropName:"checked"},Ne.createElement(Ue.Z,null)),Ne.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ne.createElement(xe.Z,{align:"middle"},Ne.createElement(tt.default.Item,{name:"no_space",valuePropName:"checked"},Ne.createElement(Ue.Z,null)),Ne.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ft==null?void 0:ft.length)>1&&Ne.createElement(xe.Z,{align:"middle",className:(ft==null?void 0:ft.length)>1?"mb30":`${Be.Z.hide}`},Ne.createElement(tt.default.Item,{name:"is_ordered"},Ne.createElement(Te,null)),Ne.createElement(Je.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Ne.createElement("div",{onClick:()=>ge(!0)},Ne.createElement(tt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ne.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:De}))))}},58452:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return it}});var E=ne(59301),ve=ne(77019),xe=ne(5269),Je=ne(28284),We=ne(51291),Ae=ne(6183),Ue=ne(59301),tt=Object.defineProperty,Se=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Ge=(pe,Ke,nt)=>Ke in pe?tt(pe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:nt}):pe[Ke]=nt,Oe=(pe,Ke)=>{for(var nt in Ke||(Ke={}))qe.call(Ke,nt)&&Ge(pe,nt,Ke[nt]);if(Qe)for(var nt of Qe(Ke))pt.call(Ke,nt)&&Ge(pe,nt,Ke[nt]);return pe},Be=(pe,Ke)=>Se(pe,He(Ke)),be=(pe,Ke)=>{var nt={};for(var bt in pe)qe.call(pe,bt)&&Ke.indexOf(bt)<0&&(nt[bt]=pe[bt]);if(pe!=null&&Qe)for(var bt of Qe(pe))Ke.indexOf(bt)<0&&pt.call(pe,bt)&&(nt[bt]=pe[bt]);return nt};const Ne={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ye=({value:pe,onChange:Ke,form:nt})=>{const bt=(pe==null?void 0:pe.is_answer)===1,At=pe==null?void 0:pe.choice_text,ut=()=>{const Xe=nt.getFieldsValue().choices.map(ht=>({choice_text:ht.choice_text,is_answer:0}));nt.setFieldsValue({choices:Xe}),Ke(Be(Oe({},pe),{is_answer:1}))};return Ue.createElement(ve.Z,{className:We.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ue.createElement(xe.Z,{onClick:ut,className:`${We.Z.choiceIndex} ${We.Z.judgementIndex} ${bt?We.Z.activeAnswer:""}`},Ne[At]),Ue.createElement(xe.Z,{flex:1,className:`${We.Z.editorWrap} ml15`},Ue.createElement("div",{className:`${We.Z.inputBorder} ${We.Z.placeholder} ${bt?We.Z.activeJudgementAnswer:""}`},At)),Ue.createElement(xe.Z,{flex:"0 0 auto",className:"ml15"},Ue.createElement("div",{onClick:ut,className:`${We.Z.setAnswerBtn} ${bt?We.Z.activeAnswer:""}`},bt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},it=({questionTitlePlaceholder:pe,choiceKey:Ke,form:nt})=>{const[bt,At]=(0,E.useState)(!1);return Ue.createElement("div",{className:We.Z.wrap},Ue.createElement("div",{className:We.Z.questionTitleEditorWrap},Ue.createElement(Je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ue.createElement(Ae.h,{scrollId:"name",watch:!0,height:140,placeholder:pe}))),Ue.createElement(Je.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ue.createElement(Je.default.List,{name:"choices",rules:[{validator(ut,Xe){return Xe.some(Pe=>(Pe==null?void 0:Pe.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ut=>Ue.createElement("div",{id:"choices"},ut.map(Xe=>{var ht=Xe,{key:Pe,name:ze}=ht,Te=be(ht,["key","name"]);return Ue.createElement(Je.default.Item,Be(Oe({},Te),{key:Pe,name:ze,noStyle:!0}),Ue.createElement(Ye,{form:nt}))})))),Ue.createElement("div",{onClick:()=>At(!0)},Ue.createElement(Je.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ue.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:bt}))))}},6183:function(Bt,_t,ne){"use strict";ne.d(_t,{h:function(){return Oe},x:function(){return Be}});var E=ne(15945),ve=ne(51291),xe=ne(67495),Je=ne(59301),We=Object.defineProperty,Ae=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Qe=(be,Ne,Ye)=>Ne in be?We(be,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):be[Ne]=Ye,qe=(be,Ne)=>{for(var Ye in Ne||(Ne={}))Se.call(Ne,Ye)&&Qe(be,Ye,Ne[Ye]);if(tt)for(var Ye of tt(Ne))He.call(Ne,Ye)&&Qe(be,Ye,Ne[Ye]);return be},pt=(be,Ne)=>Ae(be,Ue(Ne)),Ge=(be,Ne)=>{var Ye={};for(var it in be)Se.call(be,it)&&Ne.indexOf(it)<0&&(Ye[it]=be[it]);if(be!=null&&tt)for(var it of tt(be))Ne.indexOf(it)<0&&He.call(be,it)&&(Ye[it]=be[it]);return Ye};const Oe=be=>{var Ne=be,{value:Ye,onChange:it,scrollId:pe}=Ne,Ke=Ge(Ne,["value","onChange","scrollId"]);return Je.createElement("div",{id:pe||""},Je.createElement(E.Z,pt(qe({},Ke),{defaultValue:Ye,onChange:(nt,bt)=>{bt!=null&&bt.length?it(nt,bt):it(nt)}})))},Be=({value:be,onChange:Ne,placeholder:Ye,height:it=140,isEdit:pe,miniToolbar:Ke,watch:nt=!0})=>pe?Je.createElement(E.Z,{watch:nt,isFocus:!0,height:it||void 0,placeholder:Ye,defaultValue:be,onChange:Ne,miniToolbar:Ke}):Je.createElement("div",{style:{cursor:"pointer"}},be?Je.createElement(xe.Z,{className:ve.Z.inputBorder,value:be}):Je.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} inputBorderError`},Ye))},66676:function(Bt,_t,ne){"use strict";ne.d(_t,{W:function(){return ht}});var E=ne(59301),ve=ne(6767),xe=ne(96599),Je=ne(28284),We=ne(58755),Ae=ne(77019),Ue=ne(5269),tt=ne(25399),Se=ne(37568),He=ne(4875),Qe=ne(51291),qe=ne(6183),pt=ne(15945),Ge=ne(61485),Oe=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,pe=(Pe,ze,Te)=>ze in Pe?Oe(Pe,ze,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Pe[ze]=Te,Ke=(Pe,ze)=>{for(var Te in ze||(ze={}))Ye.call(ze,Te)&&pe(Pe,Te,ze[Te]);if(Ne)for(var Te of Ne(ze))it.call(ze,Te)&&pe(Pe,Te,ze[Te]);return Pe},nt=(Pe,ze)=>Be(Pe,be(ze)),bt=(Pe,ze)=>{var Te={};for(var rt in Pe)Ye.call(Pe,rt)&&ze.indexOf(rt)<0&&(Te[rt]=Pe[rt]);if(Pe!=null&&Ne)for(var rt of Ne(Pe))ze.indexOf(rt)<0&&it.call(Pe,rt)&&(Te[rt]=Pe[rt]);return Te};const At=Pe=>{var ze=Pe,{value:Te,onChange:rt}=ze,Pt=bt(ze,["value","onChange"]);const st=et=>{rt([et])};return E.createElement(pt.Z,nt(Ke({},Pt),{defaultValue:Te==null?void 0:Te[0],onChange:st}))},ut=Pe=>{if(!Pe)return!1;if(/^s*$/.test(Pe)||Pe.trim()===""){ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let ze=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Pe==="|"?(ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Xe=({value:Pe=[],onClose:ze})=>E.createElement(xe.default,{closable:!0,onClose:ze,className:Qe.Z.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Pe.join(" \u6216 "))),ht=({questionTitlePlaceholder:Pe,form:ze,showKeywords:Te,isMustKeyWords:rt=Te})=>{const[Pt,st]=(0,E.useState)(!1),[et,Ft]=(0,E.useState)(""),De=Je.default.useWatch("use_keywords",ze),ge=Je.default.useWatch("question_score",ze);return E.createElement("div",{className:Qe.Z.wrap},E.createElement("div",{className:Qe.Z.questionTitleEditorWrap},E.createElement(Je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},E.createElement(qe.h,{scrollId:"name",watch:!0,height:140,placeholder:Pe}))),E.createElement(Je.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},E.createElement(At,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Te&&!rt&&E.createElement(Je.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},E.createElement(We.Z,{defaultChecked:!0})),Te&&rt&&E.createElement(Ae.Z,{align:"middle",className:"mb30"},E.createElement(Je.default.Item,{name:"use_keywords",valuePropName:"checked"},E.createElement(We.Z,null)),E.createElement(Ue.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(Ue.Z,null,E.createElement(tt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(Ge.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(De||!rt)&&E.createElement(Je.default.List,{name:"keywords",rules:[{validator(lt,Et){return rt?Et!=null&&Et.length?(Et==null?void 0:Et.reduce((Ze,Ve)=>Ze+Ve.score,0))>parseFloat(ge)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(lt,{add:Et,remove:yt})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${Qe.Z.title} mb10`},rt?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(Ae.Z,{align:"middle",className:"font14 mb30"},E.createElement(Ue.Z,{flex:1},E.createElement(Se.default,{value:et,onChange:Ze=>{Ft(Ze.target.value)},maxLength:500,allowClear:!0,onPressEnter:Ze=>{var Ve,ft,Kt,kt;const dn=`${(Ve=Ze.target)==null?void 0:Ve.value}`,ct=(Kt=(ft=dn==null?void 0:dn.split("|"))==null?void 0:ft.filter(he=>!!he))==null?void 0:Kt.map(he=>he==null?void 0:he.trim()),Nt=ze.getFieldValue("keywords"),mn=((kt=Nt==null?void 0:Nt.map(he=>he==null?void 0:he.keyword))==null?void 0:kt.flat())||[];for(const he of ct)if(mn.includes(he)){ve.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ut(dn)&&(Et({keyword:ct,score:1}),Ft(""))},className:Qe.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(Ue.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),lt.map(Ze=>{var Ve=Ze,{key:ft,name:Kt}=Ve,kt=bt(Ve,["key","name"]);return E.createElement(Ae.Z,{key:ft,className:"mb20",style:{marginRight:148}},E.createElement(Ue.Z,{flex:1},E.createElement(Ae.Z,{align:"middle",justify:"space-between"},E.createElement(Je.default.Item,nt(Ke({},kt),{name:[Kt,"keyword"]}),E.createElement(Xe,{onClose:()=>yt(Kt)})),rt&&E.createElement(Je.default.Item,nt(Ke({},kt),{name:[Kt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Qe.Z.blankInputNumberWrapper}),E.createElement(He.Z,{className:Qe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>st(!0)},E.createElement(Je.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(qe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pt}))))}},57091:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return We}});var E={text:"text___bQulM",sup:"sup___rX_Y3"},ve=ne(28284),xe=ne(59301),We=({text:Ae,name:Ue="question_score"})=>{const tt=({value:Se})=>xe.createElement("div",{className:E.text},xe.createElement("span",{className:E.sup},"*"),xe.createElement("span",{className:"mr10"},"\u5206\u503C"),xe.createElement("span",null,Se||"--"),xe.createElement("span",{className:"c-grey-999"},Ae));return xe.createElement(ve.default.Item,{noStyle:!0,name:Ue},xe.createElement(tt,null))}},67495:function(Bt,_t,ne){"use strict";ne.d(_t,{z:function(){return ht},Z:function(){return Pe}});var E=ne(59301),ve=ne(12103),xe=ne(77845),Je=ne(64018),We=ne(16471),Ae=ne(51802),Ue=ne(95203),tt=ne(15342),Se=ne(44104),He=ne(7939),Qe=ne(1012),qe=ne(44977),pt=ne(59301),Oe=({html:ze})=>{const Te=(0,E.useRef)(null),rt=(0,E.useRef)(null),Pt=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; @@ -1081,20 +1081,20 @@ ${Jn} .markdown-body pre { margin-top: 0; margin-bottom: 16px; - }`;return(0,E.useEffect)(()=>{const ct=Ne.current.attachShadow({mode:"open"});at.current=document.createElement("div"),at.current.className="markdown-body",at.current.innerHTML=ze,ct.appendChild(at.current);const $e=document.createElement("style");return $e.textContent=Bt,ct.appendChild($e),()=>{ct.innerHTML=""}},[]),(0,E.useEffect)(()=>{at.current&&(at.current.innerHTML=ze)},[ze]),ht.createElement("div",{ref:Ne})};function Be(ze){const Ne=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],at=new RegExp(`\\b(${Ne.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ze.replace(at,"").trim()}var be={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Pe=Object.defineProperty,Ye=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ke=(ze,Ne,at)=>Ne in ze?Pe(ze,Ne,{enumerable:!0,configurable:!0,writable:!0,value:at}):ze[Ne]=at,nt=(ze,Ne)=>{for(var at in Ne||(Ne={}))it.call(Ne,at)&&Ke(ze,at,Ne[at]);if(Ye)for(var at of Ye(Ne))pe.call(Ne,at)&&Ke(ze,at,Ne[at]);return ze};const Et="@\u2581\u2581@",At="@\u2581@",st=/]*>/g;function Xe(ze){let Ne=document.createElement("div");return Ne.innerHTML=ze,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const ut=(ze,Ne)=>{ze=ze||"";const at=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Bt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ct=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?ze.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(at,(Ft,De,ge,lt,wt,yt,je)=>{const Ve=De||lt||yt,pt=ge||wt||je||"?";return Ae.Z.API_SERVER+"/api/attachments/"+Ve+pt+"&t="+(0,Ue.Jn)(Ve,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ze=ze.replace($e,(Ft,De,ge,lt,wt,yt,je)=>{const Ve=De||lt||yt,pt=ge||wt||je||"?";return Ae.Z.API_SERVER+"/attachments/download/"+Ve+pt+"&t="+(0,Ue.Jn)(Ve,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(at,(Ft,De,ge,lt,wt,yt,je)=>{const Ve=De||lt||yt,pt=ge||wt||je||"?";return Ae.Z.API_SERVER+"/api/attachments/"+Ve+pt+"&t="+(0,Ue.Jn)(Ve,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(Bt,(Ft,De,ge,lt,wt)=>{const yt=De||lt,je=ge||wt||"";return'"'+Ae.Z.API_SERVER+"/api/attachments/"+yt+je+yt+je+"&t="+(0,Ue.Jn)(yt,Date.now())}).replace(ct,(Ft,De,ge,lt,wt)=>{const yt=De||lt,je=ge||wt||"";return"("+Ae.Z.API_SERVER+"/files/uploads/"+yt+je+yt+je+"&t="+(0,Ue.Jn)(yt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`),ze)};var Le=({value:ze="",edit:Ne=!1,className:at,showTextOnly:Bt,showLines:ct,style:$e={},stylesPrev:Ft={},highlightKeywords:De,showProgramFill:ge,isProgramFill:lt,disabledFill:wt=!1,programFillValue:yt,openEditor:je=()=>{},onFillChange:Ve=kt=>{},onFillBlur:pt=()=>{},onFillFocus:Kt=()=>{}})=>{let kt=Be(String(ze||""));const dn=(0,E.useRef)(),dt=(0,E.useRef)(),[Nt,mn]=(0,E.useState)(""),[he,se]=(0,E.useState)("office"),[ae,ce]=(0,E.useState)([]),me=(0,E.useRef)("a"+(0,Qe.Z)()),le={},ot=Sn=>//i.test(Sn||""),Ht=(Sn,sr,un)=>{const Er=document.createElement(Sn===At?"input":"textarea");Er.style.width="100%",Er.style.height=Sn===At?"40px":"151px",Er.rows=5,Er.spellcheck=!1,Er.name="edu-program-fill",Er.placeholder="\u8BF7\u8F93\u5165",Er.dataset.id=sr;const Br=Object.keys(le).length;return le[Br]=Er,`${Er.outerHTML}`};function on(Sn){return Sn=Sn.replace(/!\[.*?\]\(.*?\)/g,""),Sn=Sn.replace(/\[.*?\]\(.*?\)/g,""),Sn=Sn.replace(new RegExp("","gs"),""),Sn=Sn.replace(//g,""),Sn=Sn.replace(//g,""),Sn=Sn.replace(new RegExp(".*?<\\/video>","gs"),""),Sn=Sn.replace(new RegExp(".*?<\\/audio>","gs"),""),Sn=Sn.replace(new RegExp(".*?<\\/style>","gs"),""),Sn=Sn.replace(new RegExp(".*?<\\/script>","gs"),""),Sn}const kn=Sn=>!Bt&&ot(kt)?Sn:Sn.replace(/([\s\S]+?)<\/style>/gim,function(sr,un){let Er=un.replace(/(\n|\r)/g,"").split("}"),Br=[];return Er.map(Xa=>{Xa!=""&&Br.push(`.${me.current} ${Xa}`)}),``}),wn=(0,E.useMemo)(()=>{try{const Er=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Br=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xa=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Da=/\(\/attachments\/download\//g;kt=kt.replace(Da,"("+Ae.Z.API_SERVER+"/attachments/download/").replace(Er,"("+Ae.Z.API_SERVER+"/api/attachments/").replace(Br,'"'+Ae.Z.API_SERVER+"/api/attachments/").replace(Xa,'"'+Ae.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`),dn.current.style.display="none"}catch(Er){}if(ge){let Er=-1;return kt=kt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Br,Xa,Da){var Sr;return++Er,Ht(Br,Er,(Sr=yt==null?void 0:yt[Er])==null?void 0:Sr.value.replaceAll("<","<").replaceAll(">",">"))}),`
${kn(kt||"")}
`}let Sn=kn(kt);Sn=(0,xe.ZP)(Sn);const sr=(0,xe.ez)();kt.match(/\[TOC\]/)&&(Sn=Sn.replace("

[TOC]

",(0,xe.Qv)()),(0,xe.Iy)()),Sn=Sn.replace(/(__special_katext_id_\d+__)/g,(Er,Br)=>{const{type:Xa,expression:Da}=sr[Br];return(0,tt.renderToString)(Xe(Da)||"",{displayMode:Xa==="block",throwOnError:!1,output:"html"})}),Sn=Sn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const un=document.createElement("div");if(un.innerHTML=Sn,Bt)return un.innerText;if(De){const Er=De.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Vr(un,Er),un.innerHTML}return setTimeout(()=>va(),500),un.innerHTML},[kt,De]);(0,E.useEffect)(()=>{Ar.current&&Ar.current.querySelectorAll(["input","textarea"]).forEach(sr=>{sr.oninput=Xn,sr.onblur=Nn,sr.onfocus=Pr})},[ae]),(0,E.useEffect)(()=>{var Sn,sr,un,Er,Br;if(yt!=null&&yt.length)try{const Xa=Ar.current.querySelectorAll(".edu-program-fill-score"),Da=Ar.current.querySelectorAll('[name="edu-program-fill"]');for(const[Sr,En]of Da.entries())En.value=((Sn=yt==null?void 0:yt[Sr])==null?void 0:Sn.value)||"",((sr=yt==null?void 0:yt[Sr])==null?void 0:sr.type)==="warning"?En.className="program-fill-warning":((un=yt==null?void 0:yt[Sr])==null?void 0:un.type)==="success"?En.className="program-fill-success":En.className="";for(const[Sr,En]of Xa.entries())En.innerHTML=(Er=yt==null?void 0:yt[Sr])!=null&&Er.score?`${(Br=yt==null?void 0:yt[Sr])==null?void 0:Br.score}\u5206`:"";ce(yt)}catch(Xa){console.log(Xa,"error")}},[yt]);const Xn=Sn=>{ae[Sn.target.dataset.id]=ae[Sn.target.dataset.id]||{},ae[Sn.target.dataset.id].value=Sn.target.value,ce([...ae]),Ve(ae,Sn.target.dataset.id)},Nn=Sn=>{ae[Sn.target.dataset.id]=ae[Sn.target.dataset.id]||{},ae[Sn.target.dataset.id].value=Sn.target.value,ce([...ae]),pt(ae,Sn.target.dataset.id)},Pr=Sn=>{ae[Sn.target.dataset.id]=ae[Sn.target.dataset.id]||{},ae[Sn.target.dataset.id].value=Sn.target.value,ce([...ae]),Kt(ae,Sn.target.dataset.id)};function Vr(Sn,sr){return Sn.childNodes.forEach(un=>{var Er;if(un.childNodes.length>0)Vr(un,sr);else if(un.nodeName!=="IMG")if(un.innerHTML)un.innerHTML=(Er=un.innerHTML)==null?void 0:Er.replace(new RegExp(sr,"gi"),'$&');else{const Br=document.createElement("span");Br.innerHTML=un.textContent.replace(new RegExp(sr,"gi"),'$&'),un.replaceWith(Br)}})}const Ar=(0,E.useRef)();xe.jb.WebkitLineClamp=ct,ct&&($e=nt(nt({},$e),xe.jb));function Jn(Sn){let sr=Sn.target;if(sr.tagName.toUpperCase()==="A"){let un=sr.getAttribute("href");if(un.indexOf("office")>-1)Sn.preventDefault(),mn(un),se("office");else if(un.indexOf("application/pdf")>-1)Sn.preventDefault(),mn(un),se("pdf");else if(un.indexOf("text/html")>-1)Sn.preventDefault(),mn(un),se("html");else if(un.startsWith("#")){Sn.preventDefault();let Er=document.getElementById(un.replace("#",""));Er&&Er.scrollIntoView(!0)}}}const va=()=>{var Sn;const sr=(Sn=Ar.current)==null?void 0:Sn.querySelectorAll("video");sr==null||sr.forEach(un=>{if(un.oncontextmenu=()=>!1,un.src.indexOf(".m3u8")>-1&&!un.canPlayType("application/vnd.apple.mpegurl")){if(We.ZP.isSupported()){var Er=new We.ZP;Er.loadSource(un.src),Er.attachMedia(un)}}})};(0,E.useEffect)(()=>{if(Ar.current&&wn&&wn.match(st)&&window.PR.prettyPrint(),Ar.current)return Ar.current.addEventListener("click",Jn),()=>{var Sn;(Sn=Ar.current)==null||Sn.removeEventListener("click",Jn),(0,xe.AL)(),(0,xe.Iy)()}},[wn,Ar.current,Jn]);const Qr=Sn=>{Sn.target.nodeName==="IMG"&&Sn.target.className.indexOf("draw-flowchart")>-1?(dn.current.style.zIndex=1,dn.current.style.display="flex",dn.current.style.width=Sn.target.clientWidth+"px",dn.current.style.height=Sn.target.clientHeight+"px",dn.current.style.top=Sn.target.offsetTop+"px",dn.current.style.left=Sn.target.offsetLeft+"px",Sn.target.id&&(dt.current=Sn.target.id)):dn.current.style.display="none"},ur=()=>{dn.current.style.display="none"};return(0,E.useEffect)(()=>{var Sn;const sr=un=>{un.preventDefault(),un.clipboardData.setData("text",window.getSelection().toString())};return(Sn=Ar.current)==null||Sn.addEventListener("copy",sr),()=>{var un;(un=Ar.current)==null||un.removeEventListener("copy",sr)}},[Ar.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:ur},Bt&&E.createElement("div",{ref:Ar,className:`${be.mdBody} `},wn),!Bt&&!ot(wn)&&E.createElement("div",{ref:Ar,style:nt({},$e),onMouseOver:Qr,className:`${at||""} ${wt?"disabled-fill":""} markdown-body ${be.mdBody} ${me.current}`,dangerouslySetInnerHTML:{__html:wn}}),!Bt&&ot(wn)&&E.createElement(Oe,{html:wn}),E.createElement("div",{ref:dn,className:`${be.button} ${Ne?"":be.previewFlowChart}`},E.createElement(Se.Z,null,E.createElement(Re.ZP,{onClick:()=>{Ne?je(dt.current):(mn(dt.current),se("flowChart"))}},Ne?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(qe.Z,{close:!0,data:Nt,type:Nt!=null&&Nt.length?he:"",style:nt({},Ft),onClose:()=>mn("")}))}},97612:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return st},P:function(){return nt}});var E=ne(59301),ve=ne(28284),xe=ne(62957),Je=ne(47889),We=ne(37568),Ae=ne(70858),Ue={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},tt=ne(22796),Se=Object.defineProperty,Re=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Xe,ut,Le)=>ut in Xe?Se(Xe,ut,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Xe[ut]=Le,Be=(Xe,ut)=>{for(var Le in ut||(ut={}))ht.call(ut,Le)&&Oe(Xe,Le,ut[Le]);if(qe)for(var Le of qe(ut))Ge.call(ut,Le)&&Oe(Xe,Le,ut[Le]);return Xe},be=(Xe,ut)=>Re(Xe,Qe(ut)),Pe=(Xe,ut)=>{var Le={};for(var ze in Xe)ht.call(Xe,ze)&&ut.indexOf(ze)<0&&(Le[ze]=Xe[ze]);if(Xe!=null&&qe)for(var ze of qe(Xe))ut.indexOf(ze)<0&&Ge.call(Xe,ze)&&(Le[ze]=Xe[ze]);return Le},Ye=(Xe,ut,Le)=>new Promise((ze,Ne)=>{var at=$e=>{try{ct(Le.next($e))}catch(Ft){Ne(Ft)}},Bt=$e=>{try{ct(Le.throw($e))}catch(Ft){Ne(Ft)}},ct=$e=>$e.done?ze($e.value):Promise.resolve($e.value).then(at,Bt);ct((Le=Le.apply(Xe,ut)).next())});const it=({studentNames:Xe,total:ut})=>{const Le=["","\u4E00","\u4E24","\u4E09"];return ut>3?E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:Ue.orangeColor},Xe==null?void 0:Xe.join("\u3001")),"\u7B49",E.createElement("span",{className:Ue.orangeColor},ut),"\u540D\u5B66\u751F"):E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:Ue.orangeColor},Xe==null?void 0:Xe.join("\u3001")),Le[ut],"\u540D\u5B66\u751F")},pe=({used:Xe,copy:ut,canNotCopy:Le,studentNames:ze,studentCount:Ne,inPaper:at,is_random:Bt=!1,position:ct=""})=>{const $e=()=>{if(ut>0&&Le>0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:Ue.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",E.createElement("span",{className:Ue.orangeColor},Le),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(ut>0&&Le===0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:Ue.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(ut===0&&Le>0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:Ue.orangeColor},Le),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Ft=ct||(at?"\u8BD5\u5377":"\u8BFE\u7A0B");return E.createElement("span",null,E.createElement(it,{studentNames:ze,total:Ne}),"\u5B66\u4E60\u8FC7",Ft,"\u4E2D\u7684",E.createElement("span",{className:Ue.orangeColor},Xe),"\u4E2A\u9879\u76EE\uFF0C",$e(),"\u3002\u8BF7\u9009\u62E9",Bt?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Ke=({onCancel:Xe,onOk:ut,visible:Le,inPaper:ze,renderData:Ne,type:at,isMultipleCourse:Bt=!1})=>{const[ct]=ve.default.useForm(),[$e,Ft]=(0,E.useState)(1),[De,ge]=(0,E.useState)(!1),lt=(0,E.useMemo)(()=>(Ne==null?void 0:Ne.total_num)===1&&(Ne==null?void 0:Ne.can_copy_num)===1,[Ne]),wt=(0,E.useMemo)(()=>{var yt;return(yt=Ne==null?void 0:Ne.course_data_list)==null?void 0:yt.filter(je=>je.is_show)},[Ne]);return E.createElement(E.Fragment,null,lt?E.createElement(xe.default,{centered:!0,closable:!0,open:Le,destroyOnClose:!0,title:"\u63D0\u793A",className:Ue.antdModal,width:682,confirmLoading:De,onCancel:Xe,onOk:()=>Ye(void 0,null,function*(){var yt;ge(!0);let je=$e;if(Bt){const Ve=Be({},ct.getFieldsValue());je=(yt=Ne==null?void 0:Ne.course_data_list)==null?void 0:yt.map(pt=>Ve[pt.id]!==void 0?be(Be({},pt),{is_copy:Ve[pt.id]}):pt)}yield ut(je),ge(!1)})},E.createElement("div",{className:Ue.content,style:{marginBottom:20}},Bt?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":E.createElement(E.Fragment,null,E.createElement(it,{studentNames:Ne==null?void 0:Ne.student_names,total:Ne==null?void 0:Ne.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),Bt?E.createElement(ve.default,{form:ct,preserve:!1},wt==null?void 0:wt.map(yt=>E.createElement(E.Fragment,{key:yt.id},E.createElement("h3",{className:"ml15 mb5"},yt.name),E.createElement(ve.default.Item,{name:yt.id,initialValue:1},E.createElement(Je.ZP.Group,{className:Ue.content},E.createElement(Je.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),E.createElement(Je.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):E.createElement(Je.ZP.Group,{value:$e,onChange:yt=>Ft(yt.target.value),className:Ue.content,style:{marginBottom:30}},E.createElement(Je.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),E.createElement(Je.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),E.createElement("div",null,E.createElement("div",{className:Ue.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),E.createElement("div",{className:Ue.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),E.createElement("div",{className:`${Ue.content} ${Ue.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):E.createElement(xe.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Le,confirmLoading:De,title:"\u63D0\u793A",width:682,onCancel:Xe,onOk:()=>Ye(void 0,null,function*(){var yt;ge(!0);let je=0;if(Bt){const Ve=Be({},ct.getFieldsValue());je=(yt=Ne==null?void 0:Ne.course_data_list)==null?void 0:yt.map(pt=>Ve[pt.id]!==void 0?be(Be({},pt),{is_use:Ve[pt.id]}):pt)}yield ut(je),ge(!1)})},E.createElement("div",{className:Ue.content},E.createElement(it,{studentNames:Ne==null?void 0:Ne.student_names,total:Ne==null?void 0:Ne.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Bt?E.createElement(ve.default,{form:ct,preserve:!1},E.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),wt==null?void 0:wt.map(yt=>E.createElement(E.Fragment,{key:yt.id},E.createElement("h3",{className:"ml15 mb5"},yt.name),E.createElement(ve.default.Item,{name:yt.id,initialValue:1},E.createElement(Je.ZP.Group,{className:Ue.content},E.createElement(Je.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),E.createElement(Je.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):E.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",E.createElement("span",{className:Ue.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},nt=function(){const[Xe,ut]=(0,E.useState)(!1),[Le,ze]=(0,E.useState)();return[Xe,()=>ut(!1),Le,Bt=>Ye(this,null,function*(){var ct;const $e=Bt,{isImportMultipleCourse:Ft=!1}=$e,De=Pe($e,["isImportMultipleCourse"]);console.log(Bt);const ge=(Bt==null?void 0:Bt.result)||(yield(0,tt.Tr)(De));return"status"in ge?!1:Ft?((ct=ge==null?void 0:ge.course_data_list)==null?void 0:ct.some(wt=>wt.is_show))?(ze(ge),ut(!0),!0):ge.course_data_list||[]:ge.student_count===0?!1:(ze(ge),ut(!0),!0)})]},Et=Xe=>{const[ut]=ve.default.useForm(),[Le,ze]=(0,E.useState)(!1),{onCancel:Ne,onOk:at,visible:Bt,inPaper:ct=!1,renderData:$e,type:Ft,isMultipleCourse:De=!1,position:ge}=Xe;let lt=(0,E.useMemo)(()=>ct?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(je,Ve){return E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},je)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(je,Ve)=>E.createElement(E.Fragment,null,E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],initialValue:1},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426"))),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(We.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(je,Ve){return E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},je)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(je,Ve)=>E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],initialValue:1},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(je,Ve)=>E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],initialValue:1},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426")))}],[ct]),wt=(0,E.useMemo)(()=>ct?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,align:"center",ellipsis:!0,render:(je,Ve)=>E.createElement(E.Fragment,null,E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},je),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(We.default,{type:"hidden"})),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(We.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,ellipsis:!0,align:"center",render:(je,Ve)=>E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},je)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(je,Ve)=>E.createElement(E.Fragment,null,E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],initialValue:0},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426"))),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(We.default,{type:"hidden"})))}],[ct]);if(De){const je={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Ue.tableCell,render:(Ve,pt)=>E.createElement("a",{href:`/classrooms/${pt.course_id}`},Ve)};lt=[je,...lt],wt=[je,...wt]}const yt=(0,E.useMemo)(()=>pe({used:$e==null?void 0:$e.repeat_shixun_num,copy:$e==null?void 0:$e.can_copy_num,canNotCopy:$e==null?void 0:$e.no_copy_num,studentNames:$e==null?void 0:$e.student_names,studentCount:$e==null?void 0:$e.student_count,is_random:$e==null?void 0:$e.is_random,inPaper:ct,position:ge}),[$e,ct,ge]);return E.createElement(xe.default,{title:"\u63D0\u793A",centered:!0,open:Bt,confirmLoading:Le,onOk:()=>Ye(void 0,null,function*(){ze(!0);const je=ut.getFieldsValue(),Ve=Object.keys(je).map(pt=>({id:parseInt(pt.split("_")[0]),course_id:parseInt(pt.split("_")[1]),is_use:je[pt].is_use,is_copy:je[pt].is_copy}));yield at(Ve),ze(!1)}),onCancel:Ne,width:880,okText:"\u786E\u8BA4",className:Ue.antdModal,destroyOnClose:!0},E.createElement(ve.default,{form:ut,preserve:!1},E.createElement("div",{className:Ue.brief},yt),E.createElement("div",{style:{marginBottom:30}},E.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),E.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),E.createElement("div",{className:Ue.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),($e==null?void 0:$e.can_copy_num)>0&&E.createElement("div",null,E.createElement("div",{className:Ue.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),E.createElement(Ae.default,{columns:lt,className:Ue.antdTable,dataSource:$e==null?void 0:$e.can_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),($e==null?void 0:$e.no_copy_num)>0&&E.createElement("div",null,E.createElement("div",{className:Ue.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),E.createElement(Ae.default,{columns:wt,className:Ue.antdTable,dataSource:$e==null?void 0:$e.no_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),($e==null?void 0:$e.no_use_list.length)>0&&($e==null?void 0:$e.no_use_list.map(je=>E.createElement("div",{key:Ft==="subject"?je.stage_shixun_id:je.shixun_course_id||je.id},E.createElement(ve.default.Item,{name:[`${Ft==="subject"?je==null?void 0:je.stage_shixun_id:je.shixun_course_id||je.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(We.default,{type:"hidden"})),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?je==null?void 0:je.stage_shixun_id:je.shixun_course_id||je.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(We.default,{type:"hidden"})))))))};var st=Xe=>{const{modalType:ut}=Xe;return ut==="multiple"?E.createElement(Et,Be({},Xe)):E.createElement(Ke,Be({},Xe))}},18612:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return tt}});var E=ne(59301),ve={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},xe=ne(62957),Je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",We="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ae=(Se,Re,Qe)=>new Promise((qe,ht)=>{var Ge=be=>{try{Be(Qe.next(be))}catch(Pe){ht(Pe)}},Oe=be=>{try{Be(Qe.throw(be))}catch(Pe){ht(Pe)}},Be=be=>be.done?qe(be.value):Promise.resolve(be.value).then(Ge,Oe);Be((Qe=Qe.apply(Se,Re)).next())}),tt=({type:Se,resdata:Re,onok:Qe,oktext:qe,okloading:ht})=>{const[Ge,Oe]=(0,E.useState)(!1),{can_copy_list:Be,can_copy_num:be,challenge_type:Pe,course_data_list:Ye,no_copy_list:it,no_copy_num:pe,no_use_list:Ke,no_use_num:nt,repeat_shixun_num:Et,student_count:At,total_num:st,use_num:Xe}=Re;let ut=be>0||Se==="exercise";(0,E.useEffect)(()=>{(Re==null?void 0:Re.student_count)>0&&Oe(!0)},[Re]),console.log("---11",ht),(0,E.useEffect)(()=>{ht||Oe(!1)},[ht]);const Le=()=>{if(Se==="exercise"&&Pe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Se==="exercise"&&Pe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="shixun"&&Pe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="shixun"&&Pe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="subject"&&Pe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="subject"&&Pe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",E.createElement("span",{className:ve.orangeColor},At)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",E.createElement("span",{className:ve.orangeColor},Xe)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="exercisepush")return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Se==="shixunpush"&&Pe===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="shixunpush"&&Pe===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ze=()=>{if(Se==="exercise"||Se==="subject"||Se==="exercisepush"||Se==="shixunpush")return E.createElement("div",{style:{marginTop:20}},pe>0&&E.createElement("div",null,E.createElement("span",{className:ve.flex},E.createElement("img",{src:We,style:{width:14}}),E.createElement("span",{className:ve.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ve.statusbody},Se==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Se==="subject"||Se==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&E.createElement("span",{className:ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Se==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&E.createElement("span",{className:ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E.createElement("div",null,it==null?void 0:it.map((Ne,at)=>E.createElement("a",{href:`/shixuns/${Ne.identifier}/challenges`,target:"_blank"},"\u300A",Ne==null?void 0:Ne.name,"\u300B",at+1!==pe&&"\u3001"))))),be>0&&E.createElement("div",{style:{marginTop:20}},E.createElement("span",{className:ve.flex},E.createElement("img",{src:Je,style:{width:14}}),E.createElement("span",{className:ve.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ve.statusbody},Se==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Se==="subject"||Se==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Se==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E.createElement("div",null,Be==null?void 0:Be.map((Ne,at)=>E.createElement("a",{href:`/shixuns/${Ne.identifier}/challenges`,target:"_blank"},"\u300A",Ne==null?void 0:Ne.name,"\u300B",at+1!==be&&"\u3001"))))));if(Se==="shixun")return E.createElement("div",{style:{marginTop:20}},be>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return E.createElement(xe.default,{open:Ge,onCancel:()=>{Oe(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ut&&"none"}},zIndex:1003,confirmLoading:ht,okText:ut?qe:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ae(void 0,null,function*(){ut?yield Qe([...Be,...Ke]):Oe(!1)})},E.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Le(),ze()))}},13509:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=ne(88634),xe=ne(62957),Je=ne(9019),We=ne(59301),Ae=(tt,Se,Re)=>new Promise((Qe,qe)=>{var ht=Be=>{try{Oe(Re.next(Be))}catch(be){qe(be)}},Ge=Be=>{try{Oe(Re.throw(Be))}catch(be){qe(be)}},Oe=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(ht,Ge);Oe((Re=Re.apply(tt,Se)).next())});const Ue=({classroomList:tt,dispatch:Se})=>{var Re,Qe;const qe=(0,E.useRef)(null),[ht,Ge]=(0,E.useState)(!1),Oe=()=>{Se({type:"classroomList/setActionTabs",payload:{}})};return We.createElement(xe.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((Re=tt==null?void 0:tt.actionTabs)==null?void 0:Re.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:Oe,onOk:()=>Ae(void 0,null,function*(){var Be,be;(Be=qe.current)!=null&&Be.onVerify()||(Ge(!0),yield(be=tt==null?void 0:tt.actionTabs)==null?void 0:be.onOK(),Ge(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(Qe=tt==null?void 0:tt.actionTabs)==null?void 0:Qe.loading},We.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),We.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),We.createElement(Je.Z,{ref:Be=>qe.current=Be}))};Pt.Z=(0,ve.connect)(({classroomList:tt})=>({classroomList:tt}))(Ue)},37428:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return be}});var E=ne(59301),ve=ne(88634),xe=ne(62957),Je=ne(89787),We=ne(7939),Ae={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},Ue=ne(70892),tt=ne(66649),Se=ne.n(tt),Re=ne(59301),Qe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Ge=(Pe,Ye)=>{var it={};for(var pe in Pe)qe.call(Pe,pe)&&Ye.indexOf(pe)<0&&(it[pe]=Pe[pe]);if(Pe!=null&&Qe)for(var pe of Qe(Pe))Ye.indexOf(pe)<0&&ht.call(Pe,pe)&&(it[pe]=Pe[pe]);return it},Oe=(Pe,Ye,it)=>new Promise((pe,Ke)=>{var nt=st=>{try{At(it.next(st))}catch(Xe){Ke(Xe)}},Et=st=>{try{At(it.throw(st))}catch(Xe){Ke(Xe)}},At=st=>st.done?pe(st.value):Promise.resolve(st.value).then(nt,Et);At((it=it.apply(Pe,Ye)).next())});const Be=Pe=>{var Ye=Pe,{shixunsDetail:it,globalSetting:pe,loading:Ke,dispatch:nt,showModal:Et,onCancel:At,onOk:st,okBtnName:Xe="\u5B8C\u6210",info:ut,source:Le}=Ye,ze=Ge(Ye,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[Ne,at]=(0,E.useState)(0),[Bt,ct]=(0,E.useState)(0);return(0,E.useEffect)(()=>{let $e=null;const Ft=()=>Oe(void 0,null,function*(){let De={id:ut==null?void 0:ut.courseId,send_time:Se()().format("YYYY-MM-DD HH:mm"),exercise_id:ut!=null&&ut.exercise_id?ut==null?void 0:ut.exercise_id:null},ge={id:ut==null?void 0:ut.courseId,course_id:ut==null?void 0:ut.courseId,identifier:ut==null?void 0:ut.courseId,type:"normal",is_use:1,is_copy:!0};Le==="\u8BD5\u5377"?(De.examination_bank_ids=ut==null?void 0:ut.examination_bank_ids,De.type="ExaminationBank"):Le==="\u5B9E\u8BAD"?De.shixun_info=(ut==null?void 0:ut.shixun_info.length)>0?ut==null?void 0:ut.shixun_info:[ge]:Le==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(De.examination_bank_ids=ut==null?void 0:ut.examination_bank_ids,De.shixun_info=(ut==null?void 0:ut.shixun_info.length)>0?ut==null?void 0:ut.shixun_info:[ge]);const lt=yield(0,Ue.ZP)(`/api/courses/${ut==null?void 0:ut.courseId}/send_shixun_progress.json`,{method:"post",body:De});(lt==null?void 0:lt.status)===0&&(at(lt==null?void 0:lt.complete_num),ct(lt==null?void 0:lt.total_num),(lt==null?void 0:lt.complete_num)!==(lt==null?void 0:lt.total_num)?($e&&clearInterval($e),$e=setInterval(Ft,5e3)):$e&&clearInterval($e))});return Et&&(ut!=null&&ut.courseId)&&Ft(),()=>{$e&&clearInterval($e)}},[Et]),Re.createElement(xe.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:Ne==Bt,open:Et,destroyOnClose:!0,footer:null,onCancel:At},Re.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",Re.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},Bt),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),Re.createElement("div",{className:Ae.con_warp},Re.createElement(Je.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:Ne==Bt&&Bt!=0?100:Ne/Bt*100,showInfo:!1,size:[350,10]}),Re.createElement("div",{className:Ae.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",Re.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},Ne),"\u4E2A"),Ne!=Bt&&Re.createElement(We.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),Ne==Bt&&Re.createElement(We.ZP,{type:"primary",onClick:st},Xe)))};var be=(0,ve.connect)(({shixunsDetail:Pe,loading:Ye,globalSetting:it})=>({shixunsDetail:Pe,globalSetting:it,loading:Ye.models.index}))(Be)},25132:function(_t,Pt,ne){"use strict";ne.d(Pt,{h:function(){return pe}});var E=ne(59301),ve=ne(82326),xe=ne(28284),Je=ne(7939),We=ne(89780),Ae=ne.n(We),Ue=ne(93135),tt=ne(87492),Se=Object.defineProperty,Re=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Ke,nt,Et)=>nt in Ke?Se(Ke,nt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ke[nt]=Et,Be=(Ke,nt)=>{for(var Et in nt||(nt={}))ht.call(nt,Et)&&Oe(Ke,Et,nt[Et]);if(qe)for(var Et of qe(nt))Ge.call(nt,Et)&&Oe(Ke,Et,nt[Et]);return Ke},be=(Ke,nt)=>Re(Ke,Qe(nt));const Pe=ve.default.Option,Ye={labelCol:{span:4},wrapperCol:{span:20}},it={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Pt.Z=({callback:Ke,onCancel:nt})=>{const[Et,At]=(0,E.useState)("python");function st(ut){At(it[ut][1])}function Xe(ut){Ke(ut)}return E.createElement(xe.default,be(Be({},Ye),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),E.createElement(xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(ve.default,{getPopupContainer:ut=>ut.parentNode,onChange:st},Object.keys(it).map(ut=>E.createElement(Pe,{key:ut,value:ut},it[ut][0])))),E.createElement(xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(pe,{mode:Et})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Je.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))};function pe({value:Ke,onChange:nt,mode:Et,options:At={}}){const st=(0,E.useRef)(),[Xe,ut]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Xe){let Le=function(ze){const Ne=ze.getValue();nt&&nt(Ne)};return Xe.on("change",Le),()=>{Xe.off("change",Le)}}},[Xe,nt]),(0,E.useEffect)(()=>{Xe&&Xe.setOption("mode",Et)},[Xe,Et]),(0,E.useEffect)(()=>{Xe&&(Ke!==Xe.getValue()||Ke==="")&&setTimeout(()=>{Xe.setValue(Ke||"")},300)},[Xe,Ke]),(0,E.useEffect)(()=>{if(st.current&&!Xe){const Le=Ae().fromTextArea(st.current,Be({mode:Et,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},At));ut(Le)}},[st.current,Xe]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:st}))}},15945:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ea}});var E=ne(59301),ve=ne(88634),xe=ne(89780),Je=ne.n(xe),We=ne(76374),Ae=ne(93135),Ue=ne(81040),tt=ne(25717),Se=ne(99498),Re=ne(25419),Qe=ne(67549),qe=ne(67495),ht=({value:Ir="",className:qt,showTextOnly:Ut,showLines:Un,style:Lt={}})=>{const Dn=(0,E.useMemo)(()=>"",[Ir]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:Dn}}))},Ge=Object.defineProperty,Oe=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(Ir,qt,Ut)=>qt in Ir?Ge(Ir,qt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ir[qt]=Ut,pe=(Ir,qt)=>{for(var Ut in qt||(qt={}))Pe.call(qt,Ut)&&it(Ir,Ut,qt[Ut]);if(be)for(var Ut of be(qt))Ye.call(qt,Ut)&&it(Ir,Ut,qt[Ut]);return Ir},Ke=(Ir,qt)=>Oe(Ir,Be(qt));let nt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Et({onActionCallback:Ir,title:qt,icon:Ut,actionName:Un,className:Lt="",children:Dn}){function rr(){Ir(Un)}return E.createElement("a",{title:qt,className:Lt,onClick:rr},E.createElement("i",{className:`${Ut}`}),Dn)}var At=({watch:Ir,showNullButton:qt,showNullProgramButton:Ut,onActionCallback:Un,fullScreen:Lt,insertTemp:Dn,hidetoolBar:rr,extraUse:Rn})=>{const ar=[...nt,{title:`${Ir?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ir?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!rr&&ar.map((wr,er)=>E.createElement("li",{key:er},wr.actionName?E.createElement(Et,Ke(pe({},wr),{onActionCallback:Un})):E.createElement("span",{className:"v-line"}))),qt?E.createElement("li",null,E.createElement(Et,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Ut?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(Et,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(Et,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Dn&&E.createElement("li",null,E.createElement(Et,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Dn}`,onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rn&&E.createElement("li",null,Rn),E.createElement("li",{className:"btn-full-screen"},E.createElement(Et,{icon:`${Lt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Lt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Un})))},st=ne(43191),Xe=ne(28284),ut=ne(37568),Le=ne(7939),ze=Object.defineProperty,Ne=Object.defineProperties,at=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ft=(Ir,qt,Ut)=>qt in Ir?ze(Ir,qt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ir[qt]=Ut,De=(Ir,qt)=>{for(var Ut in qt||(qt={}))ct.call(qt,Ut)&&Ft(Ir,Ut,qt[Ut]);if(Bt)for(var Ut of Bt(qt))$e.call(qt,Ut)&&Ft(Ir,Ut,qt[Ut]);return Ir},ge=(Ir,qt)=>Ne(Ir,at(qt));const lt={labelCol:{span:4},wrapperCol:{span:20}};var wt=({callback:Ir,onCancel:qt})=>{function Ut(Un){Ir(Un)}return E.createElement(Xe.default,ge(De({},lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ut,style:{width:500}}),E.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(ut.default,null)),E.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(ut.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Le.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},yt=ne(25132),je=ne(10426),Ve=ne(62957),pt=ne(77019),Kt=ne(52929),kt=ne(59301),dn=({callback:Ir,onCancel:qt})=>{const Ut=document.createElement("canvas"),Un=Ut.getContext("2d");Ut.width=1e3,Ut.height=800,Un.fillStyle="#ffffff",Un.fillRect(0,0,Ut.width,Ut.height);const Lt=Ut.toDataURL("image/png");return kt.createElement(Ve.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(pt.Z,{style:{height:"100vh"}},kt.createElement(Kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Lt,visible:!0,title:String(Date.now())},onOk:Dn=>{Ir({src:Dn.url})},onClose:qt})))},dt=ne(36207),Nt=ne(5269),mn=ne(6767),he={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},se=ne(59301),ce=(0,E.forwardRef)(({onCancel:Ir,editImgId:qt,callback:Ut},Un)=>{let Lt=(0,E.useRef)(),Dn=(0,E.useRef)(),rr=(0,E.useRef)(),Rn=(0,E.useRef)(!1);const ar=(0,E.useRef)(!1);console.log("ref:",Un);const[wr,er]=(0,E.useState)(0),[Vt,On]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{er(1)},[]),(0,E.useImperativeHandle)(Un,()=>({setHeight:On})),se.createElement("div",{ref:ar,className:"body-overflow-initial"},se.createElement(dt.Z,{width:"100vw",height:Vt,footer:null,closable:!0,placement:"bottom",open:!!wr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${he.drawerWrap}`,onClose:()=>{window.saveDrawData(Cr=>{Ut({src:`/api/attachments/${Cr}`,id:Cr})})},title:se.createElement(pt.Z,{align:"middle"},se.createElement(Nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),se.createElement(Nt.Z,{onClick:()=>{On(Vt==="60px"?"100vh":"60px")}},se.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),se.createElement(Nt.Z,{onClick:()=>{window.saveDrawData(Cr=>{if(Cr===null){mn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}mn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Ut({src:`/api/attachments/${Cr}`,id:Cr,disabledClose:!0})})}},se.createElement(Le.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},se.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${qt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Dn})))}),me=ne(51802),le=ne(47889),ot=ne(4875);const Ht=le.ZP.Group,on={margin:"0 8px"};var kn=({callback:Ir,onCancel:qt})=>{function Ut(Un){Ir(Un)}return E.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ut},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:on},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:on},"\u884C\u6570"),E.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(ot.Z,null)),E.createElement("span",{style:on},"\u5217\u6570"),E.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(ot.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:on},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(Xe.default.Item,{name:"align"},E.createElement(Ht,null,E.createElement(le.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(le.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(le.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(le.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Le.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},wn=ne(58755),Xn=ne(90451),Nn=ne.n(Xn),Vr=(0,E.forwardRef)(({use3d:Ir,width:qt,height:Ut,callback:Un,showSaveButton:Lt},Dn)=>{const rr=(0,E.useRef)(),Rn=(0,E.useRef)(),[ar,wr]=(0,E.useState)(!1),er=(0,E.useRef)({id:rr,appName:"graphing",width:qt||1e3,height:Ut||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{Rn.current=new(Nn())(er.current,!0),window.onload=function(){Rn.current.inject("applet_container")}},[]);const Vt=()=>{var On=window.ggbApplet.getPNGBase64(1,!0,72);return Un&&Un(On),On};return(0,E.useEffect)(()=>{er.current.appName=ar?"3D":"graphing",Rn.current.inject("applet_container")},[ar]),(0,E.useEffect)(()=>{wr(Ir)},[Ir]),(0,E.useImperativeHandle)(Dn,()=>({getImgData:Vt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rr}),E.createElement(pt.Z,{align:"middle"},E.createElement(Nt.Z,{flex:1},E.createElement(wn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ar,onChange:On=>wr(On)})),E.createElement(Nt.Z,null,E.createElement(Le.ZP,{size:"large",onClick:Vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ar=ne(34171);const Jn="link",va="upload-image",Qr="add-flowchart",ur="draw-image",Sn="add-flowchart",sr="code-block",un="add-table",Er="------------",Br={default:Er,left:`:${Er}`,center:`:${Er}:`,right:`${Er}:`};var Xa=ne(78039),Da=ne(95203);function Sr(){}let En=0;const nr=1e4,$r="\u2581",Aa="@\u2581\u2581@",ga="@\u2581@",Ei=` + }`;return(0,E.useEffect)(()=>{const st=Te.current.attachShadow({mode:"open"});rt.current=document.createElement("div"),rt.current.className="markdown-body",rt.current.innerHTML=ze,st.appendChild(rt.current);const et=document.createElement("style");return et.textContent=Pt,st.appendChild(et),()=>{st.innerHTML=""}},[]),(0,E.useEffect)(()=>{rt.current&&(rt.current.innerHTML=ze)},[ze]),pt.createElement("div",{ref:Te})};function Be(ze){const Te=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],rt=new RegExp(`\\b(${Te.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ze.replace(rt,"").trim()}var be={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ne=Object.defineProperty,Ye=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ke=(ze,Te,rt)=>Te in ze?Ne(ze,Te,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ze[Te]=rt,nt=(ze,Te)=>{for(var rt in Te||(Te={}))it.call(Te,rt)&&Ke(ze,rt,Te[rt]);if(Ye)for(var rt of Ye(Te))pe.call(Te,rt)&&Ke(ze,rt,Te[rt]);return ze};const bt="@\u2581\u2581@",At="@\u2581@",ut=/]*>/g;function Xe(ze){let Te=document.createElement("div");return Te.innerHTML=ze,Te.childNodes.length===0?"":Te.childNodes[0].nodeValue}const ht=(ze,Te)=>{ze=ze||"";const rt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,st=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,et=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Te?ze.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(rt,(Ft,De,ge,lt,Et,yt,Ze)=>{const Ve=De||lt||yt,ft=ge||Et||Ze||"?";return Ae.Z.API_SERVER+"/api/attachments/"+Ve+ft+"&t="+(0,Ue.Jn)(Ve,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ze=ze.replace(et,(Ft,De,ge,lt,Et,yt,Ze)=>{const Ve=De||lt||yt,ft=ge||Et||Ze||"?";return Ae.Z.API_SERVER+"/attachments/download/"+Ve+ft+"&t="+(0,Ue.Jn)(Ve,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(rt,(Ft,De,ge,lt,Et,yt,Ze)=>{const Ve=De||lt||yt,ft=ge||Et||Ze||"?";return Ae.Z.API_SERVER+"/api/attachments/"+Ve+ft+"&t="+(0,Ue.Jn)(Ve,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(Pt,(Ft,De,ge,lt,Et)=>{const yt=De||lt,Ze=ge||Et||"";return'"'+Ae.Z.API_SERVER+"/api/attachments/"+yt+Ze+yt+Ze+"&t="+(0,Ue.Jn)(yt,Date.now())}).replace(st,(Ft,De,ge,lt,Et)=>{const yt=De||lt,Ze=ge||Et||"";return"("+Ae.Z.API_SERVER+"/files/uploads/"+yt+Ze+yt+Ze+"&t="+(0,Ue.Jn)(yt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`),ze)};var Pe=({value:ze="",edit:Te=!1,className:rt,showTextOnly:Pt,showLines:st,style:et={},stylesPrev:Ft={},highlightKeywords:De,showProgramFill:ge,isProgramFill:lt,disabledFill:Et=!1,programFillValue:yt,openEditor:Ze=()=>{},onFillChange:Ve=kt=>{},onFillBlur:ft=()=>{},onFillFocus:Kt=()=>{}})=>{let kt=Be(String(ze||""));const dn=(0,E.useRef)(),ct=(0,E.useRef)(),[Nt,mn]=(0,E.useState)(""),[he,se]=(0,E.useState)("office"),[ae,ce]=(0,E.useState)([]),me=(0,E.useRef)("a"+(0,Qe.Z)()),le={},ot=Sn=>//i.test(Sn||""),Ht=(Sn,sr,un)=>{const Er=document.createElement(Sn===At?"input":"textarea");Er.style.width="100%",Er.style.height=Sn===At?"40px":"151px",Er.rows=5,Er.spellcheck=!1,Er.name="edu-program-fill",Er.placeholder="\u8BF7\u8F93\u5165",Er.dataset.id=sr;const Br=Object.keys(le).length;return le[Br]=Er,`${Er.outerHTML}`};function on(Sn){return Sn=Sn.replace(/!\[.*?\]\(.*?\)/g,""),Sn=Sn.replace(/\[.*?\]\(.*?\)/g,""),Sn=Sn.replace(new RegExp("","gs"),""),Sn=Sn.replace(//g,""),Sn=Sn.replace(//g,""),Sn=Sn.replace(new RegExp(".*?<\\/video>","gs"),""),Sn=Sn.replace(new RegExp(".*?<\\/audio>","gs"),""),Sn=Sn.replace(new RegExp(".*?<\\/style>","gs"),""),Sn=Sn.replace(new RegExp(".*?<\\/script>","gs"),""),Sn}const kn=Sn=>!Pt&&ot(kt)?Sn:Sn.replace(/([\s\S]+?)<\/style>/gim,function(sr,un){let Er=un.replace(/(\n|\r)/g,"").split("}"),Br=[];return Er.map(Xa=>{Xa!=""&&Br.push(`.${me.current} ${Xa}`)}),``}),wn=(0,E.useMemo)(()=>{try{const Er=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Br=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xa=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Da=/\(\/attachments\/download\//g;kt=kt.replace(Da,"("+Ae.Z.API_SERVER+"/attachments/download/").replace(Er,"("+Ae.Z.API_SERVER+"/api/attachments/").replace(Br,'"'+Ae.Z.API_SERVER+"/api/attachments/").replace(Xa,'"'+Ae.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`),dn.current.style.display="none"}catch(Er){}if(ge){let Er=-1;return kt=kt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Br,Xa,Da){var Sr;return++Er,Ht(Br,Er,(Sr=yt==null?void 0:yt[Er])==null?void 0:Sr.value.replaceAll("<","<").replaceAll(">",">"))}),`
${kn(kt||"")}
`}let Sn=kn(kt);Sn=(0,xe.ZP)(Sn);const sr=(0,xe.ez)();kt.match(/\[TOC\]/)&&(Sn=Sn.replace("

[TOC]

",(0,xe.Qv)()),(0,xe.Iy)()),Sn=Sn.replace(/(__special_katext_id_\d+__)/g,(Er,Br)=>{const{type:Xa,expression:Da}=sr[Br];return(0,tt.renderToString)(Xe(Da)||"",{displayMode:Xa==="block",throwOnError:!1,output:"html"})}),Sn=Sn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const un=document.createElement("div");if(un.innerHTML=Sn,Pt)return un.innerText;if(De){const Er=De.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Vr(un,Er),un.innerHTML}return setTimeout(()=>va(),500),un.innerHTML},[kt,De]);(0,E.useEffect)(()=>{Ar.current&&Ar.current.querySelectorAll(["input","textarea"]).forEach(sr=>{sr.oninput=Xn,sr.onblur=Nn,sr.onfocus=Pr})},[ae]),(0,E.useEffect)(()=>{var Sn,sr,un,Er,Br;if(yt!=null&&yt.length)try{const Xa=Ar.current.querySelectorAll(".edu-program-fill-score"),Da=Ar.current.querySelectorAll('[name="edu-program-fill"]');for(const[Sr,En]of Da.entries())En.value=((Sn=yt==null?void 0:yt[Sr])==null?void 0:Sn.value)||"",((sr=yt==null?void 0:yt[Sr])==null?void 0:sr.type)==="warning"?En.className="program-fill-warning":((un=yt==null?void 0:yt[Sr])==null?void 0:un.type)==="success"?En.className="program-fill-success":En.className="";for(const[Sr,En]of Xa.entries())En.innerHTML=(Er=yt==null?void 0:yt[Sr])!=null&&Er.score?`${(Br=yt==null?void 0:yt[Sr])==null?void 0:Br.score}\u5206`:"";ce(yt)}catch(Xa){console.log(Xa,"error")}},[yt]);const Xn=Sn=>{ae[Sn.target.dataset.id]=ae[Sn.target.dataset.id]||{},ae[Sn.target.dataset.id].value=Sn.target.value,ce([...ae]),Ve(ae,Sn.target.dataset.id)},Nn=Sn=>{ae[Sn.target.dataset.id]=ae[Sn.target.dataset.id]||{},ae[Sn.target.dataset.id].value=Sn.target.value,ce([...ae]),ft(ae,Sn.target.dataset.id)},Pr=Sn=>{ae[Sn.target.dataset.id]=ae[Sn.target.dataset.id]||{},ae[Sn.target.dataset.id].value=Sn.target.value,ce([...ae]),Kt(ae,Sn.target.dataset.id)};function Vr(Sn,sr){return Sn.childNodes.forEach(un=>{var Er;if(un.childNodes.length>0)Vr(un,sr);else if(un.nodeName!=="IMG")if(un.innerHTML)un.innerHTML=(Er=un.innerHTML)==null?void 0:Er.replace(new RegExp(sr,"gi"),'$&');else{const Br=document.createElement("span");Br.innerHTML=un.textContent.replace(new RegExp(sr,"gi"),'$&'),un.replaceWith(Br)}})}const Ar=(0,E.useRef)();xe.jb.WebkitLineClamp=st,st&&(et=nt(nt({},et),xe.jb));function Jn(Sn){let sr=Sn.target;if(sr.tagName.toUpperCase()==="A"){let un=sr.getAttribute("href");if(un.indexOf("office")>-1)Sn.preventDefault(),mn(un),se("office");else if(un.indexOf("application/pdf")>-1)Sn.preventDefault(),mn(un),se("pdf");else if(un.indexOf("text/html")>-1)Sn.preventDefault(),mn(un),se("html");else if(un.startsWith("#")){Sn.preventDefault();let Er=document.getElementById(un.replace("#",""));Er&&Er.scrollIntoView(!0)}}}const va=()=>{var Sn;const sr=(Sn=Ar.current)==null?void 0:Sn.querySelectorAll("video");sr==null||sr.forEach(un=>{if(un.oncontextmenu=()=>!1,un.src.indexOf(".m3u8")>-1&&!un.canPlayType("application/vnd.apple.mpegurl")){if(We.ZP.isSupported()){var Er=new We.ZP;Er.loadSource(un.src),Er.attachMedia(un)}}})};(0,E.useEffect)(()=>{if(Ar.current&&wn&&wn.match(ut)&&window.PR.prettyPrint(),Ar.current)return Ar.current.addEventListener("click",Jn),()=>{var Sn;(Sn=Ar.current)==null||Sn.removeEventListener("click",Jn),(0,xe.AL)(),(0,xe.Iy)()}},[wn,Ar.current,Jn]);const Qr=Sn=>{Sn.target.nodeName==="IMG"&&Sn.target.className.indexOf("draw-flowchart")>-1?(dn.current.style.zIndex=1,dn.current.style.display="flex",dn.current.style.width=Sn.target.clientWidth+"px",dn.current.style.height=Sn.target.clientHeight+"px",dn.current.style.top=Sn.target.offsetTop+"px",dn.current.style.left=Sn.target.offsetLeft+"px",Sn.target.id&&(ct.current=Sn.target.id)):dn.current.style.display="none"},ur=()=>{dn.current.style.display="none"};return(0,E.useEffect)(()=>{var Sn;const sr=un=>{un.preventDefault(),un.clipboardData.setData("text",window.getSelection().toString())};return(Sn=Ar.current)==null||Sn.addEventListener("copy",sr),()=>{var un;(un=Ar.current)==null||un.removeEventListener("copy",sr)}},[Ar.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:ur},Pt&&E.createElement("div",{ref:Ar,className:`${be.mdBody} `},wn),!Pt&&!ot(wn)&&E.createElement("div",{ref:Ar,style:nt({},et),onMouseOver:Qr,className:`${rt||""} ${Et?"disabled-fill":""} markdown-body ${be.mdBody} ${me.current}`,dangerouslySetInnerHTML:{__html:wn}}),!Pt&&ot(wn)&&E.createElement(Oe,{html:wn}),E.createElement("div",{ref:dn,className:`${be.button} ${Te?"":be.previewFlowChart}`},E.createElement(Se.Z,null,E.createElement(He.ZP,{onClick:()=>{Te?Ze(ct.current):(mn(ct.current),se("flowChart"))}},Te?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(qe.Z,{close:!0,data:Nt,type:Nt!=null&&Nt.length?he:"",style:nt({},Ft),onClose:()=>mn("")}))}},97612:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return ut},P:function(){return nt}});var E=ne(59301),ve=ne(28284),xe=ne(62957),Je=ne(47889),We=ne(37568),Ae=ne(70858),Ue={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},tt=ne(22796),Se=Object.defineProperty,He=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Xe,ht,Pe)=>ht in Xe?Se(Xe,ht,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Xe[ht]=Pe,Be=(Xe,ht)=>{for(var Pe in ht||(ht={}))pt.call(ht,Pe)&&Oe(Xe,Pe,ht[Pe]);if(qe)for(var Pe of qe(ht))Ge.call(ht,Pe)&&Oe(Xe,Pe,ht[Pe]);return Xe},be=(Xe,ht)=>He(Xe,Qe(ht)),Ne=(Xe,ht)=>{var Pe={};for(var ze in Xe)pt.call(Xe,ze)&&ht.indexOf(ze)<0&&(Pe[ze]=Xe[ze]);if(Xe!=null&&qe)for(var ze of qe(Xe))ht.indexOf(ze)<0&&Ge.call(Xe,ze)&&(Pe[ze]=Xe[ze]);return Pe},Ye=(Xe,ht,Pe)=>new Promise((ze,Te)=>{var rt=et=>{try{st(Pe.next(et))}catch(Ft){Te(Ft)}},Pt=et=>{try{st(Pe.throw(et))}catch(Ft){Te(Ft)}},st=et=>et.done?ze(et.value):Promise.resolve(et.value).then(rt,Pt);st((Pe=Pe.apply(Xe,ht)).next())});const it=({studentNames:Xe,total:ht})=>{const Pe=["","\u4E00","\u4E24","\u4E09"];return ht>3?E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:Ue.orangeColor},Xe==null?void 0:Xe.join("\u3001")),"\u7B49",E.createElement("span",{className:Ue.orangeColor},ht),"\u540D\u5B66\u751F"):E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:Ue.orangeColor},Xe==null?void 0:Xe.join("\u3001")),Pe[ht],"\u540D\u5B66\u751F")},pe=({used:Xe,copy:ht,canNotCopy:Pe,studentNames:ze,studentCount:Te,inPaper:rt,is_random:Pt=!1,position:st=""})=>{const et=()=>{if(ht>0&&Pe>0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:Ue.orangeColor},ht),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",E.createElement("span",{className:Ue.orangeColor},Pe),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(ht>0&&Pe===0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:Ue.orangeColor},ht),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(ht===0&&Pe>0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:Ue.orangeColor},Pe),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Ft=st||(rt?"\u8BD5\u5377":"\u8BFE\u7A0B");return E.createElement("span",null,E.createElement(it,{studentNames:ze,total:Te}),"\u5B66\u4E60\u8FC7",Ft,"\u4E2D\u7684",E.createElement("span",{className:Ue.orangeColor},Xe),"\u4E2A\u9879\u76EE\uFF0C",et(),"\u3002\u8BF7\u9009\u62E9",Pt?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Ke=({onCancel:Xe,onOk:ht,visible:Pe,inPaper:ze,renderData:Te,type:rt,isMultipleCourse:Pt=!1})=>{const[st]=ve.default.useForm(),[et,Ft]=(0,E.useState)(1),[De,ge]=(0,E.useState)(!1),lt=(0,E.useMemo)(()=>(Te==null?void 0:Te.total_num)===1&&(Te==null?void 0:Te.can_copy_num)===1,[Te]),Et=(0,E.useMemo)(()=>{var yt;return(yt=Te==null?void 0:Te.course_data_list)==null?void 0:yt.filter(Ze=>Ze.is_show)},[Te]);return E.createElement(E.Fragment,null,lt?E.createElement(xe.default,{centered:!0,closable:!0,open:Pe,destroyOnClose:!0,title:"\u63D0\u793A",className:Ue.antdModal,width:682,confirmLoading:De,onCancel:Xe,onOk:()=>Ye(void 0,null,function*(){var yt;ge(!0);let Ze=et;if(Pt){const Ve=Be({},st.getFieldsValue());Ze=(yt=Te==null?void 0:Te.course_data_list)==null?void 0:yt.map(ft=>Ve[ft.id]!==void 0?be(Be({},ft),{is_copy:Ve[ft.id]}):ft)}yield ht(Ze),ge(!1)})},E.createElement("div",{className:Ue.content,style:{marginBottom:20}},Pt?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":E.createElement(E.Fragment,null,E.createElement(it,{studentNames:Te==null?void 0:Te.student_names,total:Te==null?void 0:Te.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),Pt?E.createElement(ve.default,{form:st,preserve:!1},Et==null?void 0:Et.map(yt=>E.createElement(E.Fragment,{key:yt.id},E.createElement("h3",{className:"ml15 mb5"},yt.name),E.createElement(ve.default.Item,{name:yt.id,initialValue:1},E.createElement(Je.ZP.Group,{className:Ue.content},E.createElement(Je.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),E.createElement(Je.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):E.createElement(Je.ZP.Group,{value:et,onChange:yt=>Ft(yt.target.value),className:Ue.content,style:{marginBottom:30}},E.createElement(Je.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),E.createElement(Je.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),E.createElement("div",null,E.createElement("div",{className:Ue.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),E.createElement("div",{className:Ue.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),E.createElement("div",{className:`${Ue.content} ${Ue.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):E.createElement(xe.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Pe,confirmLoading:De,title:"\u63D0\u793A",width:682,onCancel:Xe,onOk:()=>Ye(void 0,null,function*(){var yt;ge(!0);let Ze=0;if(Pt){const Ve=Be({},st.getFieldsValue());Ze=(yt=Te==null?void 0:Te.course_data_list)==null?void 0:yt.map(ft=>Ve[ft.id]!==void 0?be(Be({},ft),{is_use:Ve[ft.id]}):ft)}yield ht(Ze),ge(!1)})},E.createElement("div",{className:Ue.content},E.createElement(it,{studentNames:Te==null?void 0:Te.student_names,total:Te==null?void 0:Te.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Pt?E.createElement(ve.default,{form:st,preserve:!1},E.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),Et==null?void 0:Et.map(yt=>E.createElement(E.Fragment,{key:yt.id},E.createElement("h3",{className:"ml15 mb5"},yt.name),E.createElement(ve.default.Item,{name:yt.id,initialValue:1},E.createElement(Je.ZP.Group,{className:Ue.content},E.createElement(Je.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),E.createElement(Je.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):E.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",E.createElement("span",{className:Ue.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},nt=function(){const[Xe,ht]=(0,E.useState)(!1),[Pe,ze]=(0,E.useState)();return[Xe,()=>ht(!1),Pe,Pt=>Ye(this,null,function*(){var st;const et=Pt,{isImportMultipleCourse:Ft=!1}=et,De=Ne(et,["isImportMultipleCourse"]);console.log(Pt);const ge=(Pt==null?void 0:Pt.result)||(yield(0,tt.Tr)(De));return"status"in ge?!1:Ft?((st=ge==null?void 0:ge.course_data_list)==null?void 0:st.some(Et=>Et.is_show))?(ze(ge),ht(!0),!0):ge.course_data_list||[]:ge.student_count===0?!1:(ze(ge),ht(!0),!0)})]},bt=Xe=>{const[ht]=ve.default.useForm(),[Pe,ze]=(0,E.useState)(!1),{onCancel:Te,onOk:rt,visible:Pt,inPaper:st=!1,renderData:et,type:Ft,isMultipleCourse:De=!1,position:ge}=Xe;let lt=(0,E.useMemo)(()=>st?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Ze,Ve){return E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},Ze)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Ze,Ve)=>E.createElement(E.Fragment,null,E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],initialValue:1},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426"))),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(We.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Ue.tableCell,render(Ze,Ve){return E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},Ze)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Ze,Ve)=>E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],initialValue:1},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Ze,Ve)=>E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],initialValue:1},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426")))}],[st]),Et=(0,E.useMemo)(()=>st?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,align:"center",ellipsis:!0,render:(Ze,Ve)=>E.createElement(E.Fragment,null,E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},Ze),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(We.default,{type:"hidden"})),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(We.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Ue.tableCell,ellipsis:!0,align:"center",render:(Ze,Ve)=>E.createElement("a",{href:`/shixuns/${Ve.identifier}/challenges`,target:"_blank"},Ze)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Ze,Ve)=>E.createElement(E.Fragment,null,E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_use"],initialValue:0},E.createElement(Je.ZP.Group,null,E.createElement(Je.ZP,{value:1},"\u662F"),E.createElement(Je.ZP,{value:0},"\u5426"))),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ve==null?void 0:Ve.stage_shixun_id:Ve.shixun_course_id||Ve.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(We.default,{type:"hidden"})))}],[st]);if(De){const Ze={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Ue.tableCell,render:(Ve,ft)=>E.createElement("a",{href:`/classrooms/${ft.course_id}`},Ve)};lt=[Ze,...lt],Et=[Ze,...Et]}const yt=(0,E.useMemo)(()=>pe({used:et==null?void 0:et.repeat_shixun_num,copy:et==null?void 0:et.can_copy_num,canNotCopy:et==null?void 0:et.no_copy_num,studentNames:et==null?void 0:et.student_names,studentCount:et==null?void 0:et.student_count,is_random:et==null?void 0:et.is_random,inPaper:st,position:ge}),[et,st,ge]);return E.createElement(xe.default,{title:"\u63D0\u793A",centered:!0,open:Pt,confirmLoading:Pe,onOk:()=>Ye(void 0,null,function*(){ze(!0);const Ze=ht.getFieldsValue(),Ve=Object.keys(Ze).map(ft=>({id:parseInt(ft.split("_")[0]),course_id:parseInt(ft.split("_")[1]),is_use:Ze[ft].is_use,is_copy:Ze[ft].is_copy}));yield rt(Ve),ze(!1)}),onCancel:Te,width:880,okText:"\u786E\u8BA4",className:Ue.antdModal,destroyOnClose:!0},E.createElement(ve.default,{form:ht,preserve:!1},E.createElement("div",{className:Ue.brief},yt),E.createElement("div",{style:{marginBottom:30}},E.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),E.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),E.createElement("div",{className:Ue.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(et==null?void 0:et.can_copy_num)>0&&E.createElement("div",null,E.createElement("div",{className:Ue.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),E.createElement(Ae.default,{columns:lt,className:Ue.antdTable,dataSource:et==null?void 0:et.can_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(et==null?void 0:et.no_copy_num)>0&&E.createElement("div",null,E.createElement("div",{className:Ue.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),E.createElement(Ae.default,{columns:Et,className:Ue.antdTable,dataSource:et==null?void 0:et.no_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(et==null?void 0:et.no_use_list.length)>0&&(et==null?void 0:et.no_use_list.map(Ze=>E.createElement("div",{key:Ft==="subject"?Ze.stage_shixun_id:Ze.shixun_course_id||Ze.id},E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ze==null?void 0:Ze.stage_shixun_id:Ze.shixun_course_id||Ze.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(We.default,{type:"hidden"})),E.createElement(ve.default.Item,{name:[`${Ft==="subject"?Ze==null?void 0:Ze.stage_shixun_id:Ze.shixun_course_id||Ze.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(We.default,{type:"hidden"})))))))};var ut=Xe=>{const{modalType:ht}=Xe;return ht==="multiple"?E.createElement(bt,Be({},Xe)):E.createElement(Ke,Be({},Xe))}},18612:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return tt}});var E=ne(59301),ve={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},xe=ne(62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bZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ae=(Se,He,Qe)=>new Promise((qe,pt)=>{var Ge=be=>{try{Be(Qe.next(be))}catch(Ne){pt(Ne)}},Oe=be=>{try{Be(Qe.throw(be))}catch(Ne){pt(Ne)}},Be=be=>be.done?qe(be.value):Promise.resolve(be.value).then(Ge,Oe);Be((Qe=Qe.apply(Se,He)).next())}),tt=({type:Se,resdata:He,onok:Qe,oktext:qe,okloading:pt})=>{const[Ge,Oe]=(0,E.useState)(!1),{can_copy_list:Be,can_copy_num:be,challenge_type:Ne,course_data_list:Ye,no_copy_list:it,no_copy_num:pe,no_use_list:Ke,no_use_num:nt,repeat_shixun_num:bt,student_count:At,total_num:ut,use_num:Xe}=He;let ht=be>0||Se==="exercise";(0,E.useEffect)(()=>{(He==null?void 0:He.student_count)>0&&Oe(!0)},[He]),console.log("---11",pt),(0,E.useEffect)(()=>{pt||Oe(!1)},[pt]);const Pe=()=>{if(Se==="exercise"&&Ne===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Se==="exercise"&&Ne===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="shixun"&&Ne===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="shixun"&&Ne===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="subject"&&Ne===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="subject"&&Ne===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",E.createElement("span",{className:ve.orangeColor},At)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",E.createElement("span",{className:ve.orangeColor},Xe)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="exercisepush")return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Se==="shixunpush"&&Ne===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Se==="shixunpush"&&Ne===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},At),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",E.createElement("span",{className:ve.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ze=()=>{if(Se==="exercise"||Se==="subject"||Se==="exercisepush"||Se==="shixunpush")return E.createElement("div",{style:{marginTop:20}},pe>0&&E.createElement("div",null,E.createElement("span",{className:ve.flex},E.createElement("img",{src:We,style:{width:14}}),E.createElement("span",{className:ve.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ve.statusbody},Se==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Se==="subject"||Se==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ht&&E.createElement("span",{className:ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Se==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ht&&E.createElement("span",{className:ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E.createElement("div",null,it==null?void 0:it.map((Te,rt)=>E.createElement("a",{href:`/shixuns/${Te.identifier}/challenges`,target:"_blank"},"\u300A",Te==null?void 0:Te.name,"\u300B",rt+1!==pe&&"\u3001"))))),be>0&&E.createElement("div",{style:{marginTop:20}},E.createElement("span",{className:ve.flex},E.createElement("img",{src:Je,style:{width:14}}),E.createElement("span",{className:ve.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ve.statusbody},Se==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Se==="subject"||Se==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Se==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E.createElement("div",null,Be==null?void 0:Be.map((Te,rt)=>E.createElement("a",{href:`/shixuns/${Te.identifier}/challenges`,target:"_blank"},"\u300A",Te==null?void 0:Te.name,"\u300B",rt+1!==be&&"\u3001"))))));if(Se==="shixun")return E.createElement("div",{style:{marginTop:20}},be>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return E.createElement(xe.default,{open:Ge,onCancel:()=>{Oe(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ht&&"none"}},zIndex:1003,confirmLoading:pt,okText:ht?qe:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ae(void 0,null,function*(){ht?yield Qe([...Be,...Ke]):Oe(!1)})},E.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Pe(),ze()))}},13509:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=ne(88634),xe=ne(62957),Je=ne(9019),We=ne(59301),Ae=(tt,Se,He)=>new Promise((Qe,qe)=>{var pt=Be=>{try{Oe(He.next(Be))}catch(be){qe(be)}},Ge=Be=>{try{Oe(He.throw(Be))}catch(be){qe(be)}},Oe=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(pt,Ge);Oe((He=He.apply(tt,Se)).next())});const Ue=({classroomList:tt,dispatch:Se})=>{var He,Qe;const qe=(0,E.useRef)(null),[pt,Ge]=(0,E.useState)(!1),Oe=()=>{Se({type:"classroomList/setActionTabs",payload:{}})};return We.createElement(xe.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((He=tt==null?void 0:tt.actionTabs)==null?void 0:He.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:Oe,onOk:()=>Ae(void 0,null,function*(){var Be,be;(Be=qe.current)!=null&&Be.onVerify()||(Ge(!0),yield(be=tt==null?void 0:tt.actionTabs)==null?void 0:be.onOK(),Ge(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(Qe=tt==null?void 0:tt.actionTabs)==null?void 0:Qe.loading},We.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),We.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),We.createElement(Je.Z,{ref:Be=>qe.current=Be}))};_t.Z=(0,ve.connect)(({classroomList:tt})=>({classroomList:tt}))(Ue)},37428:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Ne}});var E=ne(59301),ve=ne(88634),xe=ne(62957),Je=ne(89787),We=ne(7939),Ae={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},Ue=ne(70892),tt=ne(66649),Se=ne.n(tt),He=ne(89392),Qe=ne(59301),qe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Ye,it)=>{var pe={};for(var Ke in Ye)pt.call(Ye,Ke)&&it.indexOf(Ke)<0&&(pe[Ke]=Ye[Ke]);if(Ye!=null&&qe)for(var Ke of qe(Ye))it.indexOf(Ke)<0&&Ge.call(Ye,Ke)&&(pe[Ke]=Ye[Ke]);return pe},Be=(Ye,it,pe)=>new Promise((Ke,nt)=>{var bt=Xe=>{try{ut(pe.next(Xe))}catch(ht){nt(ht)}},At=Xe=>{try{ut(pe.throw(Xe))}catch(ht){nt(ht)}},ut=Xe=>Xe.done?Ke(Xe.value):Promise.resolve(Xe.value).then(bt,At);ut((pe=pe.apply(Ye,it)).next())});const be=Ye=>{var it=Ye,{shixunsDetail:pe,globalSetting:Ke,loading:nt,dispatch:bt,showModal:At,onCancel:ut,onOk:Xe,okBtnName:ht="\u5B8C\u6210",info:Pe,source:ze}=it,Te=Oe(it,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[rt,Pt]=(0,E.useState)(0),[st,et]=(0,E.useState)(0);return(0,E.useEffect)(()=>{var Ft,De;let ge=null;const lt=()=>Be(void 0,null,function*(){let Et={id:Pe==null?void 0:Pe.courseId,send_time:Se()().format("YYYY-MM-DD HH:mm"),exercise_id:Pe!=null&&Pe.exercise_id?Pe==null?void 0:Pe.exercise_id:null},yt={id:Pe==null?void 0:Pe.courseId,course_id:Pe==null?void 0:Pe.courseId,identifier:Pe==null?void 0:Pe.courseId,type:"normal",is_use:1,is_copy:!0};ze==="\u8BD5\u5377"?(Et.examination_bank_ids=Pe==null?void 0:Pe.examination_bank_ids,Et.type="ExaminationBank"):ze==="\u5B9E\u8BAD"?Et.shixun_info=(Pe==null?void 0:Pe.shixun_info.length)>0?Pe==null?void 0:Pe.shixun_info:[yt]:ze==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(Et.examination_bank_ids=Pe==null?void 0:Pe.examination_bank_ids,Et.shixun_info=(Pe==null?void 0:Pe.shixun_info.length)>0?Pe==null?void 0:Pe.shixun_info:[yt]);const Ze=yield(0,Ue.ZP)(`/api/courses/${Pe==null?void 0:Pe.courseId}/send_shixun_progress.json`,{method:"post",body:Et});(Ze==null?void 0:Ze.status)===0&&(Pt(Ze==null?void 0:Ze.complete_num),et(Ze==null?void 0:Ze.total_num),(Ze==null?void 0:Ze.complete_num)!==(Ze==null?void 0:Ze.total_num)?(ge&&clearInterval(ge),ge=setInterval(lt,5e3)):ge&&clearInterval(ge))});if(At&&(Pe!=null&&Pe.courseId)){const Et=(Ft=(Pe==null?void 0:Pe.shixun_info)||[])==null?void 0:Ft.filter(Ze=>!!Ze.identifier),yt=(De=(0,He.uniqBy)(Et,"identifier"))==null?void 0:De.length;Pt(0),et(yt),lt()}return()=>{ge&&clearInterval(ge)}},[At]),Qe.createElement(xe.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:rt==st,open:At,destroyOnClose:!0,footer:null,onCancel:ut},Qe.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",Qe.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},st),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),Qe.createElement("div",{className:Ae.con_warp},Qe.createElement(Je.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:rt==st&&st!=0?100:rt/st*100,showInfo:!1,size:[350,10]}),Qe.createElement("div",{className:Ae.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",Qe.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},rt),"\u4E2A"),rt!=st&&Qe.createElement(We.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),rt==st&&Qe.createElement(We.ZP,{type:"primary",onClick:Xe},ht)))};var Ne=(0,ve.connect)(({shixunsDetail:Ye,loading:it,globalSetting:pe})=>({shixunsDetail:Ye,globalSetting:pe,loading:it.models.index}))(be)},25132:function(Bt,_t,ne){"use strict";ne.d(_t,{h:function(){return pe}});var E=ne(59301),ve=ne(82326),xe=ne(28284),Je=ne(7939),We=ne(89780),Ae=ne.n(We),Ue=ne(93135),tt=ne(87492),Se=Object.defineProperty,He=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Ke,nt,bt)=>nt in Ke?Se(Ke,nt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):Ke[nt]=bt,Be=(Ke,nt)=>{for(var bt in nt||(nt={}))pt.call(nt,bt)&&Oe(Ke,bt,nt[bt]);if(qe)for(var bt of qe(nt))Ge.call(nt,bt)&&Oe(Ke,bt,nt[bt]);return Ke},be=(Ke,nt)=>He(Ke,Qe(nt));const Ne=ve.default.Option,Ye={labelCol:{span:4},wrapperCol:{span:20}},it={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};_t.Z=({callback:Ke,onCancel:nt})=>{const[bt,At]=(0,E.useState)("python");function ut(ht){At(it[ht][1])}function Xe(ht){Ke(ht)}return E.createElement(xe.default,be(Be({},Ye),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),E.createElement(xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(ve.default,{getPopupContainer:ht=>ht.parentNode,onChange:ut},Object.keys(it).map(ht=>E.createElement(Ne,{key:ht,value:ht},it[ht][0])))),E.createElement(xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(pe,{mode:bt})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Je.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))};function pe({value:Ke,onChange:nt,mode:bt,options:At={}}){const ut=(0,E.useRef)(),[Xe,ht]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Xe){let Pe=function(ze){const Te=ze.getValue();nt&&nt(Te)};return Xe.on("change",Pe),()=>{Xe.off("change",Pe)}}},[Xe,nt]),(0,E.useEffect)(()=>{Xe&&Xe.setOption("mode",bt)},[Xe,bt]),(0,E.useEffect)(()=>{Xe&&(Ke!==Xe.getValue()||Ke==="")&&setTimeout(()=>{Xe.setValue(Ke||"")},300)},[Xe,Ke]),(0,E.useEffect)(()=>{if(ut.current&&!Xe){const Pe=Ae().fromTextArea(ut.current,Be({mode:bt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},At));ht(Pe)}},[ut.current,Xe]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:ut}))}},15945:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return ea}});var E=ne(59301),ve=ne(88634),xe=ne(89780),Je=ne.n(xe),We=ne(76374),Ae=ne(93135),Ue=ne(81040),tt=ne(25717),Se=ne(99498),He=ne(25419),Qe=ne(67549),qe=ne(67495),pt=({value:Ir="",className:qt,showTextOnly:Ut,showLines:Un,style:Lt={}})=>{const Dn=(0,E.useMemo)(()=>"",[Ir]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:Dn}}))},Ge=Object.defineProperty,Oe=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,it=(Ir,qt,Ut)=>qt in Ir?Ge(Ir,qt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ir[qt]=Ut,pe=(Ir,qt)=>{for(var Ut in qt||(qt={}))Ne.call(qt,Ut)&&it(Ir,Ut,qt[Ut]);if(be)for(var Ut of be(qt))Ye.call(qt,Ut)&&it(Ir,Ut,qt[Ut]);return Ir},Ke=(Ir,qt)=>Oe(Ir,Be(qt));let nt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function bt({onActionCallback:Ir,title:qt,icon:Ut,actionName:Un,className:Lt="",children:Dn}){function rr(){Ir(Un)}return E.createElement("a",{title:qt,className:Lt,onClick:rr},E.createElement("i",{className:`${Ut}`}),Dn)}var At=({watch:Ir,showNullButton:qt,showNullProgramButton:Ut,onActionCallback:Un,fullScreen:Lt,insertTemp:Dn,hidetoolBar:rr,extraUse:Rn})=>{const ar=[...nt,{title:`${Ir?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ir?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!rr&&ar.map((wr,er)=>E.createElement("li",{key:er},wr.actionName?E.createElement(bt,Ke(pe({},wr),{onActionCallback:Un})):E.createElement("span",{className:"v-line"}))),qt?E.createElement("li",null,E.createElement(bt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Ut?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(bt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(bt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Dn&&E.createElement("li",null,E.createElement(bt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Dn}`,onActionCallback:Un},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rn&&E.createElement("li",null,Rn),E.createElement("li",{className:"btn-full-screen"},E.createElement(bt,{icon:`${Lt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Lt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Un})))},ut=ne(43191),Xe=ne(28284),ht=ne(37568),Pe=ne(7939),ze=Object.defineProperty,Te=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ft=(Ir,qt,Ut)=>qt in Ir?ze(Ir,qt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ir[qt]=Ut,De=(Ir,qt)=>{for(var Ut in qt||(qt={}))st.call(qt,Ut)&&Ft(Ir,Ut,qt[Ut]);if(Pt)for(var Ut of Pt(qt))et.call(qt,Ut)&&Ft(Ir,Ut,qt[Ut]);return Ir},ge=(Ir,qt)=>Te(Ir,rt(qt));const lt={labelCol:{span:4},wrapperCol:{span:20}};var Et=({callback:Ir,onCancel:qt})=>{function Ut(Un){Ir(Un)}return E.createElement(Xe.default,ge(De({},lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ut,style:{width:500}}),E.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(ht.default,null)),E.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(ht.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Pe.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},yt=ne(25132),Ze=ne(10426),Ve=ne(62957),ft=ne(77019),Kt=ne(52929),kt=ne(59301),dn=({callback:Ir,onCancel:qt})=>{const Ut=document.createElement("canvas"),Un=Ut.getContext("2d");Ut.width=1e3,Ut.height=800,Un.fillStyle="#ffffff",Un.fillRect(0,0,Ut.width,Ut.height);const Lt=Ut.toDataURL("image/png");return kt.createElement(Ve.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(ft.Z,{style:{height:"100vh"}},kt.createElement(Kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Lt,visible:!0,title:String(Date.now())},onOk:Dn=>{Ir({src:Dn.url})},onClose:qt})))},ct=ne(36207),Nt=ne(5269),mn=ne(6767),he={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},se=ne(59301),ce=(0,E.forwardRef)(({onCancel:Ir,editImgId:qt,callback:Ut},Un)=>{let Lt=(0,E.useRef)(),Dn=(0,E.useRef)(),rr=(0,E.useRef)(),Rn=(0,E.useRef)(!1);const ar=(0,E.useRef)(!1);console.log("ref:",Un);const[wr,er]=(0,E.useState)(0),[Vt,On]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{er(1)},[]),(0,E.useImperativeHandle)(Un,()=>({setHeight:On})),se.createElement("div",{ref:ar,className:"body-overflow-initial"},se.createElement(ct.Z,{width:"100vw",height:Vt,footer:null,closable:!0,placement:"bottom",open:!!wr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${he.drawerWrap}`,onClose:()=>{window.saveDrawData(Cr=>{Ut({src:`/api/attachments/${Cr}`,id:Cr})})},title:se.createElement(ft.Z,{align:"middle"},se.createElement(Nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),se.createElement(Nt.Z,{onClick:()=>{On(Vt==="60px"?"100vh":"60px")}},se.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),se.createElement(Nt.Z,{onClick:()=>{window.saveDrawData(Cr=>{if(Cr===null){mn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}mn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Ut({src:`/api/attachments/${Cr}`,id:Cr,disabledClose:!0})})}},se.createElement(Pe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},se.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${qt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Dn})))}),me=ne(51802),le=ne(47889),ot=ne(4875);const Ht=le.ZP.Group,on={margin:"0 8px"};var kn=({callback:Ir,onCancel:qt})=>{function Ut(Un){Ir(Un)}return E.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ut},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:on},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:on},"\u884C\u6570"),E.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(ot.Z,null)),E.createElement("span",{style:on},"\u5217\u6570"),E.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(ot.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:on},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(Xe.default.Item,{name:"align"},E.createElement(Ht,null,E.createElement(le.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(le.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(le.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(le.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Pe.ZP,{type:"ghost",onClick:qt},"\u53D6\u6D88")))},wn=ne(58755),Xn=ne(90451),Nn=ne.n(Xn),Vr=(0,E.forwardRef)(({use3d:Ir,width:qt,height:Ut,callback:Un,showSaveButton:Lt},Dn)=>{const rr=(0,E.useRef)(),Rn=(0,E.useRef)(),[ar,wr]=(0,E.useState)(!1),er=(0,E.useRef)({id:rr,appName:"graphing",width:qt||1e3,height:Ut||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{Rn.current=new(Nn())(er.current,!0),window.onload=function(){Rn.current.inject("applet_container")}},[]);const Vt=()=>{var On=window.ggbApplet.getPNGBase64(1,!0,72);return Un&&Un(On),On};return(0,E.useEffect)(()=>{er.current.appName=ar?"3D":"graphing",Rn.current.inject("applet_container")},[ar]),(0,E.useEffect)(()=>{wr(Ir)},[Ir]),(0,E.useImperativeHandle)(Dn,()=>({getImgData:Vt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rr}),E.createElement(ft.Z,{align:"middle"},E.createElement(Nt.Z,{flex:1},E.createElement(wn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ar,onChange:On=>wr(On)})),E.createElement(Nt.Z,null,E.createElement(Pe.ZP,{size:"large",onClick:Vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ar=ne(34171);const Jn="link",va="upload-image",Qr="add-flowchart",ur="draw-image",Sn="add-flowchart",sr="code-block",un="add-table",Er="------------",Br={default:Er,left:`:${Er}`,center:`:${Er}:`,right:`${Er}:`};var Xa=ne(78039),Da=ne(95203);function Sr(){}let En=0;const nr=1e4,$r="\u2581",Aa="@\u2581\u2581@",ga="@\u2581@",Ei=` **\u6A21\u677F\u6807\u9898** -\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Ii=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Ja(Ir){return/^\d+$/.test(Ir)?`${Ir}px`:Ir}const hi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$i={[hi+"-B"]:"bold",[hi+"-I"]:"italic"},Ha={[Jn]:"\u6DFB\u52A0\u94FE\u63A5",[sr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[va]:"\u6DFB\u52A0\u56FE\u7247",[ur]:"\u6DFB\u52A0\u753B\u56FE",[Qr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[un]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ea=({defaultValue:Ir="",onChange:qt,width:Ut="100%",height:Un=400,miniToolbar:Lt=!1,isFocus:Dn=!1,watch:rr,insertTemp:Rn,mode:ar="markdown",id:wr="markdown-editor-id",showResizeBar:er=!1,noStorage:Vt=!1,showNullButton:On=!1,showNullProgramButton:Cr=!1,hidetoolBar:Hr=!1,fullScreen:jr=!1,onBlur:Nr,onCMBeforeChange:Ga,onFullScreen:za,className:An="",disablePaste:rn=!1,disabled:Yi=!1,disabledFill:$o=!1,placeholder:Ki="",values:xt="",extraUse:tn,onAddBlank:Tt})=>{const[It,Zn]=(0,E.useState)(null),[Gn,yn]=(0,E.useState)(Ir),[tr,Mr]=(0,E.useState)(rr),[Tr,Qa]=(0,E.useState)(jr),[ua,ta]=(0,E.useState)(""),[Ua,Kr]=(0,E.useState)(0),[ya,qa]=(0,E.useState)(Un),[ai,bi]=(0,E.useState)(!1),[Ba,ra]=(0,E.useState)(0),[eo,wi]=(0,E.useState)(0),Ta=(0,E.useRef)(),oi=(0,E.useRef)(),ki=(0,E.useRef)(),ti=(0,E.useRef)(),_a=(0,E.useRef)(),ci=(0,E.useRef)(),Ai=(0,ve.useDispatch)();(0,E.useEffect)(()=>{const Xt=window.scrollY||window.pageYOffset;yn(xt),It==null||It.setValue(xt),window.scrollTo(0,Xt)},[xt]),(0,E.useEffect)(()=>{za==null||za(Tr)},[Tr]),(0,E.useEffect)(()=>{if(Ta.current){let Xt=function(Qt,en){var Wn;if(rn){en.preventDefault();return}const fr=en.clipboardData;if(fr){const pr=fr.types.toString(),cr=fr.items;if(pr==="Files"||fr.types.indexOf("Files")>-1){if(en.preventDefault(),ar=="stex")return;try{let Xr=cr[1];((Wn=cr[0])==null?void 0:Wn.kind)==="file"&&(Xr=cr[0]);const ca=Xr.getAsFile(),La=ca.name.split(".").pop();(0,je.I)(ca,Pa=>{var Xi,ji,Do;Pa.id?((Xi=ca==null?void 0:ca.type)==null?void 0:Xi.indexOf("image"))>-1?an.replaceSelection(``):((ji=ca==null?void 0:ca.type)==null?void 0:ji.indexOf("video"))>-1?an.replaceSelection(``):((Do=ca==null?void 0:ca.type)==null?void 0:Do.indexOf("pdf"))>-1?an.replaceSelection(`${ca.name}`):Ii.includes(La)?an.replaceSelection(`${ca.name}`):an.replaceSelection(`[${ca.name}](/api/attachments/${Pa.id}?type=${Pa.content_type})`):(Pa==null?void 0:Pa.status)===401&&(document.location.href="/user/login")})}catch(Xr){mn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const an=Je().fromTextArea(Ta.current,{mode:ar,lineNumbers:!Lt,lineWrapping:!0,value:Ir,autoCloseTags:!0,autoCloseBrackets:!0});return an.on("keyup",function(Qt,en){en.keyCode===8&&(Qt.getValue()==""?an.setOption("placeholder",Ki):an.setOption("placeholder",null))}),an.on("keydown",function(Qt,en){if(en.keyCode===8){var Wn=Qi(Qt);Wn&&en.preventDefault()}}),Dn&&an.focus(),an.on("paste",Xt),Yi&&an.on("beforeChange",function(Qt,en){(en.origin==="paste"||en.origin==="+input")&&en.cancel()}),Zn(an),()=>{an.off("paste",Xt)}}},[]);const Fo=(0,E.useCallback)(()=>{if(oi.current)try{}catch(Xt){console.log(Xt,"---- to set md editor body height")}},[ya,oi,Tr]);(0,E.useEffect)(()=>{function Xt(){let an=new We.Z(Qt=>{for(let en of Qt)(en.target.offsetHeight>0||en.target.offsetWidth>0)&&(Fo(),It.setSize("100%","100%"),It.refresh())});return an.observe(Ta.current.parentElement),an}if(It){const an=Xt();return()=>{var Qt,en;(Qt=Ta.current)!=null&&Qt.parentElement&&an.unobserve((en=Ta.current)==null?void 0:en.parentElement)}}},[It,Fo]),(0,E.useEffect)(()=>{if(It){let Xt=[];for(const[an,Qt]of Object.entries($i)){let en={[an]:()=>{Hi(Qt)}};Xt.push(en),It.addKeyMap(en)}return()=>{for(let an of Xt)It.removeKeyMap(an)}}},[It]),(0,E.useEffect)(()=>{jr!==Tr&&Qa(jr)},[jr]),(0,Xa.Z)(()=>{if(!Vt&&Ua>0){let Xt=new Date().getTime(),an=window.sessionStorage.getItem(wr);Xt>=Ua+nr&&(!an||an!==Gn)&&(window.sessionStorage.setItem(wr,Gn),bi(!0))}},nr),(0,E.useEffect)(()=>{Mr(rr)},[It,rr]),(0,E.useEffect)(()=>{It&&Dn&&It.focus()},[It,Dn]),(0,E.useEffect)(()=>{if(tr&&It){let Xt=function(Qt){let en=Qt.target;if(ti.current){let Wn=en.scrollTop/en.scrollHeight;ti.current.scrollTop=ti.current.scrollHeight*Wn}};const an=It.getScrollerElement();return an.addEventListener("scroll",Xt),()=>{an.removeEventListener("scroll",Xt)}}},[It,tr]),(0,E.useEffect)(()=>{if(It&&Ga){let Xt=function(an,Qt){Ga(an,Qt)};return It.on("beforeChange",Xt),()=>{It.off("beforeChange",Xt)}}},[It,Ga]),(0,E.useEffect)(()=>{if(It&&Nr){let Xt=function(){Nr(It.getValue())};return It.on("blur",Xt),()=>{It.off("blur",Xt)}}},[It,Nr]);function Qi(Xt,an){var Qt=Xt.getDoc(),en=Qt.getCursor(),Wn=Qt.getLine(en.line),fr=Wn.charAt(en.ch-1),pr=Wn.lastIndexOf("@\u2581@",en.ch),cr=Wn.lastIndexOf("@\u2581\u2581@",en.ch),Xr=pr>cr?pr:cr,ca=pr>cr?3:4;if(Aa.indexOf(fr)===-1)return null;if(console.log("change1:",an,Xt,Wn,en,Xr,pr,cr,fr),Xr>=0&&en.ch-Xr<5){var La=Xr+ca;return Qt.replaceRange("",{line:en.line,ch:Xr},{line:en.line,ch:La}),{line:en.line,ch:La}}return null}(0,E.useEffect)(()=>{if(It){let Xt=function(an,Qt){const en=an.getValue();yn(en),Kr(new Date().getTime()),an.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qt&&(Cr?qt(en,_e(en)):qt(en))};return It.on("change",Xt),()=>{It.off("change",Xt)}}},[It,qt]),(0,E.useEffect)(()=>{if(It)if(Ir==null)It.setValue(""),yn("");else{const Xt=window.scrollY||window.pageYOffset;Ir!==It.getValue()&&(It.setValue(Ir),yn(Ir),It.setCursor(Yi?1:It.lineCount(),0),window.scrollTo(0,Xt))}},[It,Ir]);const Hi=(0,E.useCallback)(Xt=>{const an=It.getCursor(),Qt=It.getSelection();let en=Qt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Ii=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Ja(Ir){return/^\d+$/.test(Ir)?`${Ir}px`:Ir}const hi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$i={[hi+"-B"]:"bold",[hi+"-I"]:"italic"},Ha={[Jn]:"\u6DFB\u52A0\u94FE\u63A5",[sr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[va]:"\u6DFB\u52A0\u56FE\u7247",[ur]:"\u6DFB\u52A0\u753B\u56FE",[Qr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[un]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ea=({defaultValue:Ir="",onChange:qt,width:Ut="100%",height:Un=400,miniToolbar:Lt=!1,isFocus:Dn=!1,watch:rr,insertTemp:Rn,mode:ar="markdown",id:wr="markdown-editor-id",showResizeBar:er=!1,noStorage:Vt=!1,showNullButton:On=!1,showNullProgramButton:Cr=!1,hidetoolBar:Hr=!1,fullScreen:jr=!1,onBlur:Nr,onCMBeforeChange:Ga,onFullScreen:za,className:An="",disablePaste:rn=!1,disabled:Yi=!1,disabledFill:$o=!1,placeholder:Ki="",values:wt="",extraUse:tn,onAddBlank:Tt})=>{const[It,Zn]=(0,E.useState)(null),[Gn,yn]=(0,E.useState)(Ir),[tr,Mr]=(0,E.useState)(rr),[Tr,Qa]=(0,E.useState)(jr),[ua,ta]=(0,E.useState)(""),[Ua,Kr]=(0,E.useState)(0),[ya,qa]=(0,E.useState)(Un),[ai,bi]=(0,E.useState)(!1),[Ba,ra]=(0,E.useState)(0),[eo,wi]=(0,E.useState)(0),Ta=(0,E.useRef)(),oi=(0,E.useRef)(),ki=(0,E.useRef)(),ti=(0,E.useRef)(),_a=(0,E.useRef)(),ci=(0,E.useRef)(),Ai=(0,ve.useDispatch)();(0,E.useEffect)(()=>{const Xt=window.scrollY||window.pageYOffset;yn(wt),It==null||It.setValue(wt),window.scrollTo(0,Xt)},[wt]),(0,E.useEffect)(()=>{za==null||za(Tr)},[Tr]),(0,E.useEffect)(()=>{if(Ta.current){let Xt=function(Qt,en){var Wn;if(rn){en.preventDefault();return}const fr=en.clipboardData;if(fr){const pr=fr.types.toString(),cr=fr.items;if(pr==="Files"||fr.types.indexOf("Files")>-1){if(en.preventDefault(),ar=="stex")return;try{let Xr=cr[1];((Wn=cr[0])==null?void 0:Wn.kind)==="file"&&(Xr=cr[0]);const ca=Xr.getAsFile(),La=ca.name.split(".").pop();(0,Ze.I)(ca,Pa=>{var Xi,ji,Do;Pa.id?((Xi=ca==null?void 0:ca.type)==null?void 0:Xi.indexOf("image"))>-1?an.replaceSelection(``):((ji=ca==null?void 0:ca.type)==null?void 0:ji.indexOf("video"))>-1?an.replaceSelection(``):((Do=ca==null?void 0:ca.type)==null?void 0:Do.indexOf("pdf"))>-1?an.replaceSelection(`${ca.name}`):Ii.includes(La)?an.replaceSelection(`${ca.name}`):an.replaceSelection(`[${ca.name}](/api/attachments/${Pa.id}?type=${Pa.content_type})`):(Pa==null?void 0:Pa.status)===401&&(document.location.href="/user/login")})}catch(Xr){mn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const an=Je().fromTextArea(Ta.current,{mode:ar,lineNumbers:!Lt,lineWrapping:!0,value:Ir,autoCloseTags:!0,autoCloseBrackets:!0});return an.on("keyup",function(Qt,en){en.keyCode===8&&(Qt.getValue()==""?an.setOption("placeholder",Ki):an.setOption("placeholder",null))}),an.on("keydown",function(Qt,en){if(en.keyCode===8){var Wn=Qi(Qt);Wn&&en.preventDefault()}}),Dn&&an.focus(),an.on("paste",Xt),Yi&&an.on("beforeChange",function(Qt,en){(en.origin==="paste"||en.origin==="+input")&&en.cancel()}),Zn(an),()=>{an.off("paste",Xt)}}},[]);const Fo=(0,E.useCallback)(()=>{if(oi.current)try{}catch(Xt){console.log(Xt,"---- to set md editor body height")}},[ya,oi,Tr]);(0,E.useEffect)(()=>{function Xt(){let an=new We.Z(Qt=>{for(let en of Qt)(en.target.offsetHeight>0||en.target.offsetWidth>0)&&(Fo(),It.setSize("100%","100%"),It.refresh())});return an.observe(Ta.current.parentElement),an}if(It){const an=Xt();return()=>{var Qt,en;(Qt=Ta.current)!=null&&Qt.parentElement&&an.unobserve((en=Ta.current)==null?void 0:en.parentElement)}}},[It,Fo]),(0,E.useEffect)(()=>{if(It){let Xt=[];for(const[an,Qt]of Object.entries($i)){let en={[an]:()=>{Hi(Qt)}};Xt.push(en),It.addKeyMap(en)}return()=>{for(let an of Xt)It.removeKeyMap(an)}}},[It]),(0,E.useEffect)(()=>{jr!==Tr&&Qa(jr)},[jr]),(0,Xa.Z)(()=>{if(!Vt&&Ua>0){let Xt=new Date().getTime(),an=window.sessionStorage.getItem(wr);Xt>=Ua+nr&&(!an||an!==Gn)&&(window.sessionStorage.setItem(wr,Gn),bi(!0))}},nr),(0,E.useEffect)(()=>{Mr(rr)},[It,rr]),(0,E.useEffect)(()=>{It&&Dn&&It.focus()},[It,Dn]),(0,E.useEffect)(()=>{if(tr&&It){let Xt=function(Qt){let en=Qt.target;if(ti.current){let Wn=en.scrollTop/en.scrollHeight;ti.current.scrollTop=ti.current.scrollHeight*Wn}};const an=It.getScrollerElement();return an.addEventListener("scroll",Xt),()=>{an.removeEventListener("scroll",Xt)}}},[It,tr]),(0,E.useEffect)(()=>{if(It&&Ga){let Xt=function(an,Qt){Ga(an,Qt)};return It.on("beforeChange",Xt),()=>{It.off("beforeChange",Xt)}}},[It,Ga]),(0,E.useEffect)(()=>{if(It&&Nr){let Xt=function(){Nr(It.getValue())};return It.on("blur",Xt),()=>{It.off("blur",Xt)}}},[It,Nr]);function Qi(Xt,an){var Qt=Xt.getDoc(),en=Qt.getCursor(),Wn=Qt.getLine(en.line),fr=Wn.charAt(en.ch-1),pr=Wn.lastIndexOf("@\u2581@",en.ch),cr=Wn.lastIndexOf("@\u2581\u2581@",en.ch),Xr=pr>cr?pr:cr,ca=pr>cr?3:4;if(Aa.indexOf(fr)===-1)return null;if(console.log("change1:",an,Xt,Wn,en,Xr,pr,cr,fr),Xr>=0&&en.ch-Xr<5){var La=Xr+ca;return Qt.replaceRange("",{line:en.line,ch:Xr},{line:en.line,ch:La}),{line:en.line,ch:La}}return null}(0,E.useEffect)(()=>{if(It){let Xt=function(an,Qt){const en=an.getValue();yn(en),Kr(new Date().getTime()),an.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),qt&&(Cr?qt(en,_e(en)):qt(en))};return It.on("change",Xt),()=>{It.off("change",Xt)}}},[It,qt]),(0,E.useEffect)(()=>{if(It)if(Ir==null)It.setValue(""),yn("");else{const Xt=window.scrollY||window.pageYOffset;Ir!==It.getValue()&&(It.setValue(Ir),yn(Ir),It.setCursor(Yi?1:It.lineCount(),0),window.scrollTo(0,Xt))}},[It,Ir]);const Hi=(0,E.useCallback)(Xt=>{const an=It.getCursor(),Qt=It.getSelection();let en=Qt.split(` `);switch(Xt){case"bold":return It.replaceSelection("**"+Qt+"**"),Qt===""&&It.setCursor(an.line,an.ch+2),It.focus();case"italic":return It.replaceSelection("*"+Qt+"*"),Qt===""&&It.setCursor(an.line,an.ch+1),It.focus();case"code":return It.replaceSelection("`"+Qt+"`"),Qt===""&&It.setCursor(an.line,an.ch+1),It.focus();case"inline-latex":return(0,Da.Ye)(Ai)?void 0:(ta("inline-latex"),It.focus());case"latex":return It.replaceSelection("```latex\n"+Qt+"\n```"),It.setCursor(an.line+1,Qt.length+1),It.focus();case"line-break":return It.replaceSelection(`
`),It.focus();case"list-ul":return Qt===""?It.replaceSelection("- "+Qt):It.replaceSelection(en.map(Wn=>Wn===""?"":`- ${Wn}`).join(` `)),It.focus();case"list-ol":return Qt===""?It.replaceSelection("1. "+Qt):It.replaceSelection(en.map((Wn,fr)=>Wn===""?"":`${fr+1}. ${Wn}`).join(` `)),It.focus();case"add-null-ch":Tt==null||Tt();return;case"add-signal":return Qt===""&&It.setCursor(an.line,an.ch),It.replaceSelection(ga),It.focus();case"add-multiple":return Qt===""&&It.setCursor(an.line,an.ch),It.replaceSelection(Aa),It.focus();case"inster-template-1":return Qt===""&&It.setCursor(an.line,an.ch),It.replaceSelection(Ei),It.focus();case"eraser":return It.setValue(""),It.focus();case"trigger-watch":return Mr(!tr),It.focus();case"trigger-full-screen":return Qa(!Tr),It.focus();case Jn:ta(Jn);return;case sr:ta(sr);return;case va:ta(va);return;case ur:ta(ur);return;case"maths-latex":if((0,Da.Ye)(Ai))return;ta("maths-latex");return;case Qr:_a.current="",sessionStorage.removeItem("file_id"),ta(Qr);return;case un:ta(un);return;default:throw new Error}},[It,tr,Tr]),oo=(0,E.useCallback)((Xt,an)=>{var Qt,en,Wn,fr,pr,cr;Xt!=null&&Xt.disabledClose||ta("");const{src:Xr,alt:ca,id:La}=Xt||{};switch(ua){case Jn:const{title:dl,link:al}=Xt;return It.replaceSelection(`[${dl}](${al})`),It.focus();case sr:const{language:Xo,content:bl}=Xt;return It.replaceSelection(["```"+Xo,bl,"```"].join(` -`)),It.focus();case"maths-latex":for(var Pa=atob(Xt),Xi=new Uint8Array(Pa.length),ji=0;ji{Fl.id?It.replaceSelection(`![,](/api/attachments/${Fl.id}?type=${Fl.content_type})`):(Fl==null?void 0:Fl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Da.Ye)(Ai))return;It.replaceSelection("`$$"+Xt+"$$`");break;case Sn:if(!La)return;It.getValue().indexOf(Xr)===-1?It.replaceSelection(`
${ca||
`):document.getElementById(La).src=me.Z.API_SERVER+Xr+"?t="+Date.now();break;case va:case ur:const Ao=an,mo=(Wn=(en=(Qt=Ao==null?void 0:Ao.name)==null?void 0:Qt.split("."))==null?void 0:en.pop)==null?void 0:Wn.call(en);return((fr=Ao==null?void 0:Ao.type)==null?void 0:fr.indexOf("image"))>-1||!(Ao!=null&&Ao.type)?Ao!=null&&Ao.align||Ao!=null&&Ao.width?It.replaceSelection(`

${ca||

`):It.replaceSelection(`${ca||`):((pr=Ao==null?void 0:Ao.type)==null?void 0:pr.indexOf("video"))>-1?It.replaceSelection(``):((cr=Ao==null?void 0:Ao.type)==null?void 0:cr.indexOf("pdf"))>-1?It.replaceSelection(`${Ao.name}`):Ii.includes(mo)?It.replaceSelection(`${Ao.name}`):It.replaceSelection(`[${Ao.name}](${Xr})`),It.focus();case un:const{row:Rl,col:Cl,align:Zl}=Xt;let ql=` +`)),It.focus();case"maths-latex":for(var Pa=atob(Xt),Xi=new Uint8Array(Pa.length),ji=0;ji{Fl.id?It.replaceSelection(`![,](/api/attachments/${Fl.id}?type=${Fl.content_type})`):(Fl==null?void 0:Fl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Da.Ye)(Ai))return;It.replaceSelection("`$$"+Xt+"$$`");break;case Sn:if(!La)return;It.getValue().indexOf(Xr)===-1?It.replaceSelection(`
${ca||
`):document.getElementById(La).src=me.Z.API_SERVER+Xr+"?t="+Date.now();break;case va:case ur:const Ao=an,mo=(Wn=(en=(Qt=Ao==null?void 0:Ao.name)==null?void 0:Qt.split("."))==null?void 0:en.pop)==null?void 0:Wn.call(en);return((fr=Ao==null?void 0:Ao.type)==null?void 0:fr.indexOf("image"))>-1||!(Ao!=null&&Ao.type)?Ao!=null&&Ao.align||Ao!=null&&Ao.width?It.replaceSelection(`

${ca||

`):It.replaceSelection(`${ca||`):((pr=Ao==null?void 0:Ao.type)==null?void 0:pr.indexOf("video"))>-1?It.replaceSelection(``):((cr=Ao==null?void 0:Ao.type)==null?void 0:cr.indexOf("pdf"))>-1?It.replaceSelection(`${Ao.name}`):Ii.includes(mo)?It.replaceSelection(`${Ao.name}`):It.replaceSelection(`[${Ao.name}](${Xr})`),It.focus();case un:const{row:Rl,col:Cl,align:Zl}=Xt;let ql=` `;for(let Fl=0;Fl{switch(ua){case Jn:return E.createElement(wt,{callback:oo,onCancel:to});case sr:return E.createElement(yt.Z,{callback:oo,onCancel:to});case va:return E.createElement(je.Z,{callback:oo,onCancel:to});case Qr:return E.createElement(ce,{editImgId:_a.current,callback:oo,onCancel:to});case un:return E.createElement(kn,{callback:oo,onCancel:to});case"maths-latex":return E.createElement(Vr,{showSaveButton:!0,callback:oo});case"inline-latex":return E.createElement(Ar.Z,{showSaveButton:!0,callback:oo});default:return null}},[ua]);function to(){ta("")}(0,E.useEffect)(()=>{if(ki.current){let Xt=function(pr){Wn=!0,fr=pr.pageY},an=function(){Wn=!1},Qt=function(pr){if(Wn){let cr=pr.pageY-fr;cr<0&&(cr=0),cr>300&&(cr=300);let Xr=Un+cr+"px";qa(Xr)}},en=ki.current,Wn=!1,fr=0;return en.addEventListener("mousedown",Xt),document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",an),()=>{en.removeEventListener("mousedown",Xt),document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",an)}}},[It,ki]),(0,E.useEffect)(()=>{qa(Un)},[Un]);const Fi=Ja(Ut),Oo=Ja(ya),Ni={width:Fi,height:Oo},li=(0,E.useMemo)(()=>{if(Ua){let Xt=new Date(Ua),an=Xt.getHours(),Qt=Xt.getMinutes(),en=Xt.getSeconds();return an=an<10?"0"+an:an,Qt=Qt<10?"0"+Qt:Qt,en=en<10?"0"+en:en,`${an}:${Qt}:${en}`}return 0},[Ua]),_e=Xt=>{const an=[];if(Cr){let Qt=-1;Xt=Xt.replace(/(@▁▁@|@▁@)/g,function(en,Wn,fr){an.push({multiLine:en!==ga})})}return an};function Jt(){window.sessionStorage.removeItem(wr),bi(!1),Kr(0)}function nn(){bi(!1),Kr(0),It.setValue(window.sessionStorage.getItem(wr))}(0,E.useEffect)(()=>{Ha[ua]&&ua!==ur&&ua!==Qr&&setTimeout(()=>{const Xt=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth/2-Xt.offsetWidth/2,Qt=window.innerHeight/2-Xt.offsetHeight/2;ra(an),wi(Qt)},0)},[ua]);const Fn=Xt=>{Xt.preventDefault();const an=Xt.clientX-Ba,Qt=Xt.clientY-eo;document.body.onmousemove=en=>{let Wn=en.clientX-an,fr=en.clientY-Qt;const pr=document.getElementsByClassName("markdown-popup-form")[0],cr=window.innerWidth-pr.offsetWidth,Xr=window.innerHeight-pr.offsetHeight;Wn=Math.max(0,Math.min(Wn,cr)),fr=Math.max(0,Math.min(fr,Xr)),Zt(en.clientX,en.clientY,an,Qt)&&(ra(Wn),wi(fr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Zt=(Xt,an,Qt,en)=>{const Wn=document.body.clientHeight,fr=document.body.clientWidth;return Xt<20&&Qt>Xt||Xt>fr-20&&Qtan||an>Wn-20&&en{var an;_a.current=Xt,(an=ci.current)==null||an.setHeight("100vh"),setTimeout(()=>{ta("add-flowchart")},150)}})):null))),er?E.createElement("a",{ref:ki,className:"editor-resize"}):null,ua===ur&&E.createElement(dn,{callback:oo,onCancel:to}),ua===Qr&&E.createElement(ce,{ref:ci,editImgId:_a.current,callback:oo,onCancel:to}),E.createElement(st.Z,null,Ha[ua]&&ua!==ur&&ua!==Qr?E.createElement(Ve.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ba,top:eo},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Fn},Ha[ua]),open:!0,onCancel:to,footer:null,destroyOnClose:!0,width:ua===Qr?"1200px":null,height:ua===Qr?"80vh":null,className:"markdown-popup-form"},na):null))}},10426:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return nt},I:function(){return At}});var E=ne(28284),ve=ne(6767),xe=ne(37568),Je=ne(44104),We=ne(4875),Ae=ne(47889),Ue=ne(7939),tt=ne(29385),Se=ne(59301),Re=ne(59301),Qe=Object.defineProperty,qe=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(st,Xe,ut)=>Xe in st?Qe(st,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ut}):st[Xe]=ut,Pe=(st,Xe)=>{for(var ut in Xe||(Xe={}))Oe.call(Xe,ut)&&be(st,ut,Xe[ut]);if(Ge)for(var ut of Ge(Xe))Be.call(Xe,ut)&&be(st,ut,Xe[ut]);return st},Ye=(st,Xe)=>qe(st,ht(Xe));const{useForm:it}=E.default,pe={width:280,marginRight:10},Ke={labelCol:{span:5},wrapperCol:{span:19}};var nt=({callback:st,onCancel:Xe})=>{const[ut]=it();let Le=(0,Se.useRef)();function ze(Bt){Le.current.width=ut.getFieldValue("width"),Le.current.align=ut.getFieldValue("align"),st(Bt,Le.current)}function Ne(Bt,ct){if(Bt.status===-1){ve.ZP.error(Bt.message);return}ut.setFieldsValue({src:`/api/attachments/${Bt.id}`,type:ct.type})}function at(Bt){let ct=Bt.target.files[0];Le.current=ct,At(ct,Ne)}return Re.createElement(E.default,Ye(Pe({form:ut},Ke),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),Re.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Re.createElement("div",{className:"flex-container"},Re.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Re.createElement(xe.default,{style:pe})),Re.createElement(Et,{onFileChange:at}))),Re.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Re.createElement(xe.default,{style:{width:264}})),Re.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Re.createElement(Je.Z,null,Re.createElement(E.default.Item,{name:"width",style:{margin:0}},Re.createElement(We.Z,{style:{width:264}})),Re.createElement("span",{className:"ml8"},"%"))),Re.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Re.createElement(Ae.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Re.createElement("aside",null,Re.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Re.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Re.createElement(Ue.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function Et({onFileChange:st}){return Re.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Re.createElement("input",{type:"file",onChange:st}))}function At(st,Xe){if(!st)throw new String("\u6CA1\u6709\u6587\u4EF6");let ut=new FormData;ut.append("editormd-image-file",st),ut.append("file_param_name","editormd-image-file"),ut.append("byxhr","true");var Le=new window.XMLHttpRequest;Le.withCredentials=!0,Le.addEventListener("load",function(ze){Xe(JSON.parse(ze.target.responseText),st)},!1),Le.addEventListener("error",function(ze){console.error(ze)},!1),Le.open("POST",`${tt.KI}/api/attachments.json`),Le.send(ut)}},43191:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return xe}});var E=ne(59301),ve=ne(4676);class xe extends E.Component{constructor(We){super(We);const Ae=window.document;this.node=Ae.createElement("div"),Ae.body.appendChild(this.node)}render(){const{children:We}=this.props;return(0,ve.createPortal)(We,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},86746:function(_t,Pt,ne){"use strict";ne.d(Pt,{SV:function(){return dn},ZP:function(){return kt}});var E=ne(59301),ve=ne(76374);const xe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Je={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` +`),It.focus();default:throw new Error}},[It,ua]),na=(0,E.useMemo)(()=>{switch(ua){case Jn:return E.createElement(Et,{callback:oo,onCancel:to});case sr:return E.createElement(yt.Z,{callback:oo,onCancel:to});case va:return E.createElement(Ze.Z,{callback:oo,onCancel:to});case Qr:return E.createElement(ce,{editImgId:_a.current,callback:oo,onCancel:to});case un:return E.createElement(kn,{callback:oo,onCancel:to});case"maths-latex":return E.createElement(Vr,{showSaveButton:!0,callback:oo});case"inline-latex":return E.createElement(Ar.Z,{showSaveButton:!0,callback:oo});default:return null}},[ua]);function to(){ta("")}(0,E.useEffect)(()=>{if(ki.current){let Xt=function(pr){Wn=!0,fr=pr.pageY},an=function(){Wn=!1},Qt=function(pr){if(Wn){let cr=pr.pageY-fr;cr<0&&(cr=0),cr>300&&(cr=300);let Xr=Un+cr+"px";qa(Xr)}},en=ki.current,Wn=!1,fr=0;return en.addEventListener("mousedown",Xt),document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",an),()=>{en.removeEventListener("mousedown",Xt),document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",an)}}},[It,ki]),(0,E.useEffect)(()=>{qa(Un)},[Un]);const Fi=Ja(Ut),Oo=Ja(ya),Ni={width:Fi,height:Oo},li=(0,E.useMemo)(()=>{if(Ua){let Xt=new Date(Ua),an=Xt.getHours(),Qt=Xt.getMinutes(),en=Xt.getSeconds();return an=an<10?"0"+an:an,Qt=Qt<10?"0"+Qt:Qt,en=en<10?"0"+en:en,`${an}:${Qt}:${en}`}return 0},[Ua]),_e=Xt=>{const an=[];if(Cr){let Qt=-1;Xt=Xt.replace(/(@▁▁@|@▁@)/g,function(en,Wn,fr){an.push({multiLine:en!==ga})})}return an};function Jt(){window.sessionStorage.removeItem(wr),bi(!1),Kr(0)}function nn(){bi(!1),Kr(0),It.setValue(window.sessionStorage.getItem(wr))}(0,E.useEffect)(()=>{Ha[ua]&&ua!==ur&&ua!==Qr&&setTimeout(()=>{const Xt=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth/2-Xt.offsetWidth/2,Qt=window.innerHeight/2-Xt.offsetHeight/2;ra(an),wi(Qt)},0)},[ua]);const Fn=Xt=>{Xt.preventDefault();const an=Xt.clientX-Ba,Qt=Xt.clientY-eo;document.body.onmousemove=en=>{let Wn=en.clientX-an,fr=en.clientY-Qt;const pr=document.getElementsByClassName("markdown-popup-form")[0],cr=window.innerWidth-pr.offsetWidth,Xr=window.innerHeight-pr.offsetHeight;Wn=Math.max(0,Math.min(Wn,cr)),fr=Math.max(0,Math.min(fr,Xr)),Zt(en.clientX,en.clientY,an,Qt)&&(ra(Wn),wi(fr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Zt=(Xt,an,Qt,en)=>{const Wn=document.body.clientHeight,fr=document.body.clientWidth;return Xt<20&&Qt>Xt||Xt>fr-20&&Qtan||an>Wn-20&&en{var an;_a.current=Xt,(an=ci.current)==null||an.setHeight("100vh"),setTimeout(()=>{ta("add-flowchart")},150)}})):null))),er?E.createElement("a",{ref:ki,className:"editor-resize"}):null,ua===ur&&E.createElement(dn,{callback:oo,onCancel:to}),ua===Qr&&E.createElement(ce,{ref:ci,editImgId:_a.current,callback:oo,onCancel:to}),E.createElement(ut.Z,null,Ha[ua]&&ua!==ur&&ua!==Qr?E.createElement(Ve.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ba,top:eo},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Fn},Ha[ua]),open:!0,onCancel:to,footer:null,destroyOnClose:!0,width:ua===Qr?"1200px":null,height:ua===Qr?"80vh":null,className:"markdown-popup-form"},na):null))}},10426:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return nt},I:function(){return At}});var E=ne(28284),ve=ne(6767),xe=ne(37568),Je=ne(44104),We=ne(4875),Ae=ne(47889),Ue=ne(7939),tt=ne(29385),Se=ne(59301),He=ne(59301),Qe=Object.defineProperty,qe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(ut,Xe,ht)=>Xe in ut?Qe(ut,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ht}):ut[Xe]=ht,Ne=(ut,Xe)=>{for(var ht in Xe||(Xe={}))Oe.call(Xe,ht)&&be(ut,ht,Xe[ht]);if(Ge)for(var ht of Ge(Xe))Be.call(Xe,ht)&&be(ut,ht,Xe[ht]);return ut},Ye=(ut,Xe)=>qe(ut,pt(Xe));const{useForm:it}=E.default,pe={width:280,marginRight:10},Ke={labelCol:{span:5},wrapperCol:{span:19}};var nt=({callback:ut,onCancel:Xe})=>{const[ht]=it();let Pe=(0,Se.useRef)();function ze(Pt){Pe.current.width=ht.getFieldValue("width"),Pe.current.align=ht.getFieldValue("align"),ut(Pt,Pe.current)}function Te(Pt,st){if(Pt.status===-1){ve.ZP.error(Pt.message);return}ht.setFieldsValue({src:`/api/attachments/${Pt.id}`,type:st.type})}function rt(Pt){let st=Pt.target.files[0];Pe.current=st,At(st,Te)}return He.createElement(E.default,Ye(Ne({form:ht},Ke),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),He.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},He.createElement(xe.default,{style:pe})),He.createElement(bt,{onFileChange:rt}))),He.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(xe.default,{style:{width:264}})),He.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(Je.Z,null,He.createElement(E.default.Item,{name:"width",style:{margin:0}},He.createElement(We.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Ae.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),He.createElement("aside",null,He.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Ue.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function bt({onFileChange:ut}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:ut}))}function At(ut,Xe){if(!ut)throw new String("\u6CA1\u6709\u6587\u4EF6");let ht=new FormData;ht.append("editormd-image-file",ut),ht.append("file_param_name","editormd-image-file"),ht.append("byxhr","true");var Pe=new window.XMLHttpRequest;Pe.withCredentials=!0,Pe.addEventListener("load",function(ze){Xe(JSON.parse(ze.target.responseText),ut)},!1),Pe.addEventListener("error",function(ze){console.error(ze)},!1),Pe.open("POST",`${tt.KI}/api/attachments.json`),Pe.send(ht)}},43191:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return xe}});var E=ne(59301),ve=ne(4676);class xe extends E.Component{constructor(We){super(We);const Ae=window.document;this.node=Ae.createElement("div"),Ae.body.appendChild(this.node)}render(){const{children:We}=this.props;return(0,ve.createPortal)(We,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},86746:function(Bt,_t,ne){"use strict";ne.d(_t,{SV:function(){return dn},ZP:function(){return kt}});var E=ne(59301),ve=ne(76374);const xe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Je={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},We={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` @@ -1114,27 +1114,27 @@ ${Jn} `)},{label:"include ",content:["#include "].join(` `)}]},Ae={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Ue={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` -`)}]};var tt=ne(53184),Se=ne.n(tt),Re=(dt,Nt,mn)=>new Promise((he,se)=>{var ae=le=>{try{me(mn.next(le))}catch(ot){se(ot)}},ce=le=>{try{me(mn.throw(le))}catch(ot){se(ot)}},me=le=>le.done?he(le.value):Promise.resolve(le.value).then(ae,ce);me((mn=mn.apply(dt,Nt)).next())});const Qe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},qe=(dt,Nt,mn,he)=>{const se=Nt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:mn.lineNumber,endColumn:mn.column});return Array.from(new Set(se.match(/\b\w{2,}\b/g)||[])).map(ce=>({label:ce,kind:dt.languages.CompletionItemKind.Text,insertText:ce,range:he}))},ht=(dt,Nt,mn,he)=>{dt.languages.registerCompletionItemProvider(Nt,{provideCompletionItems(se,ae){const ce=se.getWordUntilPosition(ae),me={startLineNumber:ae.lineNumber,endLineNumber:ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},le=se.getLineContent(ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[...qe(dt,se,ae,me),...mn.map(Ht=>({label:Ht,kind:dt.languages.CompletionItemKind.Keyword,documentation:Ht,insertText:Ht,insertTextRules:dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me})),...he.map(Ht=>({label:Ht.label,kind:dt.languages.CompletionItemKind.Snippet,documentation:Ht.content,insertText:le.startsWith("#")?Ht.content.replace(/#/,""):Ht.content,insertTextRules:dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}})};var Ge=dt=>{Qe.languages.forEach(Nt=>{dt.languages.registerDocumentFormattingEditProvider(Nt,{provideDocumentFormattingEdits(mn){return Re(this,null,function*(){const he=Se()(mn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:mn.getFullModelRange(),text:he}]})}})}),ht(dt,"java",Je.keywords,Je.quickKey),ht(dt,"cpp",We.keywords,We.quickKey),ht(dt,"c",xe.keywords,[]),ht(dt,"python",Ae.keywords,Ae.quickKey),ht(dt,"scala",Ue.keywords,Ue.quickKey)};const Oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Be=Object.defineProperty,be=(dt,Nt,mn)=>Nt in dt?Be(dt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:mn}):dt[Nt]=mn,Pe=(dt,Nt,mn)=>be(dt,typeof Nt!="symbol"?Nt+"":Nt,mn);const Ye=class Yc{constructor(Nt,mn,he){this.placeholder=Nt,this.editor=mn,this.monaco=he,mn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Yc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Pe(Ye,"ID","editor.widget.placeholderHint");var pe=Ye,Ke=ne(96236),nt=ne(6767),Et=ne(25399),At=ne(89392),st=ne(86050),Xe=ne(56102),ut=Object.defineProperty,Le=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,ct=(dt,Nt,mn)=>Nt in dt?ut(dt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:mn}):dt[Nt]=mn,$e=(dt,Nt)=>{for(var mn in Nt||(Nt={}))at.call(Nt,mn)&&ct(dt,mn,Nt[mn]);if(Ne)for(var mn of Ne(Nt))Bt.call(Nt,mn)&&ct(dt,mn,Nt[mn]);return dt},Ft=(dt,Nt)=>Le(dt,ze(Nt)),De=(dt,Nt)=>{var mn={};for(var he in dt)at.call(dt,he)&&Nt.indexOf(he)<0&&(mn[he]=dt[he]);if(dt!=null&&Ne)for(var he of Ne(dt))Nt.indexOf(he)<0&&Bt.call(dt,he)&&(mn[he]=dt[he]);return mn},ge=(dt,Nt,mn)=>new Promise((he,se)=>{var ae=le=>{try{me(mn.next(le))}catch(ot){se(ot)}},ce=le=>{try{me(mn.throw(le))}catch(ot){se(ot)}},me=le=>le.done?he(le.value):Promise.resolve(le.value).then(ae,ce);me((mn=mn.apply(dt,Nt)).next())});function lt(dt){return/^\d+$/.test(dt)?`${dt}px`:dt}function wt(){}let yt=!1;const je={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ve(dt=[]){let Nt=dt;if(Array.isArray(dt)){for(let mn=0;mnge(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(dt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",dt)}});var kt=dt=>{var Nt=dt,{width:mn="100%",height:he="100%",value:se,language:ae="javascript",style:ce={},options:me={},overrideServices:le={},theme:ot="vs-dark",onEditBlur:Ht,isCopy:on=!1,onSave:kn,autoHeight:wn=!1,forbidCopy:Xn=!1,forbidCopyTips:Nn,onChange:Pr=wt,editorDidMount:Vr=wt,onFocus:Ar=wt,onBreakPoint:Jn=wt,breakPointValue:va=[],filename:Qr="educoder.txt",errorLine:ur,errorContent:Sn="",highlightLine:sr,openBreakPoint:un=!1,placeholder:Er="",showMiniMap:Br=!0}=Nt,Xa=De(Nt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Da=(0,E.useRef)(),Sr=(0,E.useRef)({}),En=(0,E.useRef)(),nr=(0,E.useRef)(),$r=(0,E.useRef)([]),Aa=(0,E.useRef)(!1),ga=(0,E.useRef)(),Ei=(0,E.useRef)(),Ii=(0,E.useRef)(!1),[Ja,ri]=(0,E.useState)(!1);function hi(){let Vt;return Da.current&&(Vt=new ve.Z(On=>{for(let Cr of On)(Cr.target.offsetHeight>0||Cr.target.offsetWidth>0)&&Sr.current.instance.layout()}),Vt.observe(Da.current)),Vt}function $i(){nt.ZP.warning({content:decodeURIComponent(Nn||Oe),key:"monaco-editor-tip"})}const Ha=()=>{let Vt=Sr.current.instance;if(se!=null&&Vt&&Ja){const On=Vt.getModel();On&&se!==On.getValue()&&(yt=!0,On.setValue(se),Vt.layout(),yt=!1)}};(0,E.useEffect)(()=>{const Vt=st.Z.subscribe("formatDocument",On=>{var Cr;let Hr=Sr.current.instance;(Cr=Hr==null?void 0:Hr.getAction)==null||Cr.call(Hr,"editor.action.formatDocument").run()});return window.updateMonacoValue=On=>{Pr(On)},Vt},[]),(0,E.useEffect)(()=>{var Vt;let On=Sr.current.instance;nr.current&&clearTimeout(nr.current),nr.current=setTimeout(()=>{Ha()},500),se&&(se!=null&&se.length)&&((Vt=On==null?void 0:On.updateOptions)==null||Vt.call(On,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(se.split(/\r\n|\r|\n/g).length))+3,5)}))},[se,Ja,Sr.current]),(0,E.useEffect)(()=>{if(ur&&Sr.current&&Sr.current.instance){let On=Sr.current.instance;On.changeViewZones(function(Cr){var Hr=document.createElement("div");Hr.style.padding="10px 20px",Hr.style.width="calc(100% - 20px)",Hr.className="my-error-line-wrp",Hr.innerHTML=Sn,Cr.addZone({afterLineNumber:ur||11,heightInLines:3,domNode:Hr})});var Vt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};On.addOverlayWidget(Vt),On.revealPositionInCenter({lineNumber:20,column:1})}},[ur,Sr.current,Ja]);const ea=(Vt="",On)=>{if(!Vt||Vt.trim()==="")return!0;const Hr=Sr.current.instance.getModel().getLineTokens(On);let jr=!1;for(let Nr=0;Nr<2;Nr++)Hr.getStandardTokenType(Nr)===1&&(jr=!0);return jr};(0,E.useEffect)(()=>{var Vt;const On=(Vt=Sr.current)==null?void 0:Vt.instance;if(On&&Ja&&Xn){const Cr=On.onDidBlurEditorWidget(()=>{Ii.current=!1}),Hr=On.onDidFocusEditorText(()=>{Ii.current=!0});return()=>{Cr.dispose(),Hr.dispose()}}},[Sr.current,Ja,Xn]),(0,E.useEffect)(()=>{var Vt;if((Vt=Sr.current)!=null&&Vt.instance&&Ja&&un){let On=Sr.current.instance,Cr=On.getModel();if(!Cr)return;(()=>{var tn;let Tt=[],It=[];const Zn=Cr.getAllDecorations();for(let yn of Zn)yn.options.className==="highlighted-line"&&(Tt.push((tn=yn==null?void 0:yn.range)==null?void 0:tn.startLineNumber),It.push(yn==null?void 0:yn.id));if(sr===Tt[0])return;Cr.deltaDecorations(It,[]);const Gn=Cr.getLineCount();sr&&sr<=Gn&&(On.deltaDecorations([],[{range:new pt.Range(sr,1,sr,Cr.getLineMaxColumn(sr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),On.revealLineInCenter(sr))})();const jr=(tn=!1)=>{var Tt;let It=[],Zn=[];const Gn=Cr.getAllDecorations();for(let yn of Gn)yn.options.linesDecorationsClassName==="breakpoints-select"&&(It.push((Tt=yn==null?void 0:yn.range)==null?void 0:Tt.startLineNumber),Zn.push(yn==null?void 0:yn.id));if(tn)return{lines:It,ids:Zn};Jn(It)},Nr=tn=>ge(void 0,null,function*(){let Tt={range:new pt.Range(tn,1,tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Cr.deltaDecorations([],[Tt]),jr()}),Ga=tn=>ge(void 0,null,function*(){let Tt=[];const It=On.getLineDecorations(tn);for(let Zn of It)Zn.options.linesDecorationsClassName==="breakpoints-select"&&Tt.push(Zn.id);yield Cr.deltaDecorations(Tt,[]),jr()}),za=tn=>{let Tt=On.getLineDecorations(tn);for(let It of Tt)if(It.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,At.isEqual)(va,jr(!0).lines)){Cr.deltaDecorations(jr(!0).ids,[]);const tn=va.map(Tt=>({range:new pt.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Cr.deltaDecorations([],tn)}const An=On.onDidChangeModelContent(tn=>{let Tt=On.getPosition();if(Tt){let It=Tt.lineNumber;clearTimeout(Ei.current),Ei.current=setTimeout(()=>{ea(Cr.getLineContent(It),It)?Ga(It):za(It)?(Ga(It),Nr(It)):jr()},100)}}),rn=On.onMouseDown(tn=>{var Tt,It,Zn;if(tn.target.detail&&((Zn=(It=(Tt=tn.target)==null?void 0:Tt.element)==null?void 0:It.className)!=null&&Zn.includes("line-numbers"))){let Gn=tn.target.position.lineNumber;if(ea(Cr.getLineContent(Gn),Gn))return;za(Gn)?Ga(Gn):Nr(Gn)}}),Yi=tn=>{let Tt={range:new pt.Range(tn,1,tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$r.current=On.deltaDecorations($r.current,[Tt])},$o=()=>{$r.current=On.deltaDecorations($r.current,[])},Ki=On.onMouseMove(tn=>{var Tt,It,Zn;if($o(),tn.target.detail&&((Zn=(It=(Tt=tn.target)==null?void 0:Tt.element)==null?void 0:It.className)!=null&&Zn.includes("line-numbers"))){let Gn=tn.target.position.lineNumber;if(ea(Cr.getLineContent(Gn),Gn))return;Yi(Gn)}}),xt=On.onMouseLeave(()=>{$o()});return()=>{An.dispose(),rn.dispose(),Ki.dispose(),xt.dispose()}}},[Sr.current,Ja,va,sr,un,ae]),(0,E.useEffect)(()=>{var Vt;(Vt=Sr.current)!=null&&Vt.instance&&un&&Sr.current.instance.setPosition({lineNumber:0,column:0})},[sr]);function Ir(){let Vt=Sr.current.instance;if(Vt){const On=Vt.getSelection(),Cr=Sr.current.pastePos||{},Hr=new pt.Range(Cr.startLineNumber||On.endLineNumber,Cr.startColumn||On.endColumn,Cr.endLineNumber||On.endLineNumber,Cr.endColumn||On.endColumn);setTimeout(()=>{Vt.executeEdits("",[{range:Hr,text:""}])},300)}}function qt(Vt){(window.navigator.platform.match("Mac")?Vt.metaKey:Vt.ctrlKey)&&Vt.keyCode==83&&(Vt.preventDefault(),kn())}const Ut=()=>{if(wn&&Sr.current.instance){const Vt=Sr.current.instance.getContentHeight();wr(Vt{if(!Ii.current)return;const{keyCode:On,ctrlKey:Cr,metaKey:Hr,target:jr,type:Nr}=Vt;return(Nr==="paste"||(On===67||On===86)&&(Hr||Cr))&&jr.nodeName==="TEXTAREA"&&($i(),Vt.preventDefault()),!1};function Dn(Vt,On){var Cr=window.URL||window.webkitURL||window,Hr=new Blob([On]),jr=document.createElementNS("http://www.w3.org/1999/xhtml","a");jr.href=Cr.createObjectURL(Hr),jr.download=Vt,Un(jr)}(0,E.useEffect)(()=>{Ut()},[Ut]),(0,E.useEffect)(()=>{Da.current&&!Ja&&Promise.all([ne.e(8909),ne.e(5507)]).then(ne.bind(ne,71448)).then(Vt=>{try{pt=Vt,Sr.current.instance=pt.editor.create(Da.current,{value:se,language:Ve(ae),theme:ot,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Br||!1}},le);const On=Sr.current.instance;let jr=[...Ke.BH._menuItems].find(An=>An[0]._debugName=="EditorContext")[1],Nr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ga=(An,rn)=>{var Yi,$o;let Ki=An._first;do rn.includes(($o=(Yi=Ki.element)==null?void 0:Yi.command)==null?void 0:$o.id)&&An._remove(Ki);while(Ki=Ki.next)};if(Vr(On,pt),setTimeout(()=>{Ut(),Sr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Dn(Qr||"educoder.txt",On.getValue())}})},500),Sr.current.subscription=On.onDidChangeModelContent(An=>{Aa.current?clearTimeout(ga.current):(Ut(),Pr(On.getValue(),An)),ga.current=setTimeout(()=>{Aa.current=!1},500)}),window.Monaco||Ge(pt,Ve(ae)),Xn&&(Ga(jr,Nr),Da.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lt),window.removeEventListener("paste",Lt),window.addEventListener("keydown",Lt),window.addEventListener("paste",Lt)),window.Monaco=pt,Ht&&On.onDidBlurEditorWidget(()=>{Ht(On.getValue())}),Ar&&On.onDidFocusEditorText(()=>{Xn&&Kt(),Ar(On.getValue())}),Xn){Kt();try{On.onDidPaste(An=>{const rn=On.getSelection(),Yi=Sr.current.pastePos||{},$o=new pt.Range(Yi.startLineNumber||rn.endLineNumber,Yi.startColumn||rn.endColumn,Yi.endLineNumber||rn.endLineNumber,Yi.endColumn||rn.endColumn);On.executeEdits("",[{range:An.range,text:""}])})}catch(An){}}let za=hi();return Er&&typeof Er=="string"&&new pe(Er,On,pt),ri(!0),()=>{const An=Sr.current.instance;An.dispose();const rn=An.getModel();rn&&rn.dispose(),Sr.current.subscription&&Sr.current.subscription.dispose(),za.unobserve(Da.current)}}catch(On){}})},[]),(0,E.useEffect)(()=>{if(Sr.current.instance&&Ja)return document.addEventListener("keydown",qt,!1),()=>{document.removeEventListener("keydown",qt)}},[kn,Ja]),(0,E.useEffect)(()=>{let Vt=Sr.current.instance;if(Vt&&Ja){let On=Ve(ae);pt.editor.setModelLanguage(Vt.getModel(),On)}},[ae,Ja]),(0,E.useEffect)(()=>{Sr.current.instance&&Ja&&pt.editor.setTheme(ot)},[ot,Ja]),(0,E.useEffect)(()=>{let Vt=Sr.current.instance;En.current=me,Vt&&Ja&&(Vt.updateOptions($e({},me)),setTimeout(()=>{Vt.getModel().updateOptions($e({},me))},200))},[JSON.stringify(me),Ja]),(0,E.useEffect)(()=>{let Vt=Sr.current.instance;Vt&&Ja&&Vt.layout()},[mn,he,Ja]);const[rr,Rn]=(0,E.useState)(lt(mn)),[ar,wr]=(0,E.useState)(lt(he)),er=Ft($e({},ce),{width:rr,height:ar,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:Da,style:er,onFocus:()=>{Xn&&Kt()}},on&&E.createElement(Xe.CopyToClipboard,{text:se,onCopy:()=>nt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Et.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function dn({width:dt="100%",height:Nt="100%",original:mn,modified:he,language:se,options:ae={}}){const ce=(0,E.useRef)(),[me,le]=(0,E.useState)(null);function ot(wn){let Xn;return ce.current&&(Xn=new ve.Z(Nn=>{for(let Pr of Nn)(Pr.target.offsetHeight>0||Pr.target.offsetWidth>0)&&wn.layout()}),Xn.observe(ce.current)),Xn}(0,E.useEffect)(()=>(ce.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(wn=>{pt=wn;const Xn=pt.editor.createDiffEditor(ce.current,Ft($e({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ae),{wordWrap:!0}));le(Xn);let Nn=ot(Xn);return()=>{Xn.dispose();const Pr=Xn.getModel();Pr&&Pr.dispose(),Nn.unobserve(ce.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{me&&me.setModel({original:pt.editor.createModel(mn,se),modified:pt.editor.createModel(he,se)})},[mn,he,se,me]);const Ht=lt(dt),on=lt(Nt),kn={width:Ht,height:on};return E.createElement("div",{className:"my-diff-editor",ref:ce,style:kn})}},32767:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Qe}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ve=ne(29787),xe=ne(25399),Je=ne(89787),We=ne(92310),Ae=ne.n(We),Ue=ne(95203),tt=ne(28860),Se=ne(59301),Qe=({className:qe,dataSource:ht=[],col:Ge=4,right:Oe,bottom:Be=23,precision:be=0,wrapWidth:Pe=1200,trackEventItems:Ye,loading:it,onRemove:pe=()=>{},isCurrent:Ke=!0,showProgress:nt=!1,showAlias:Et=!1,category:At,hiddenClick:st})=>{const Xe=Math.floor((Pe-(Ge-1)*Oe)/Ge),ut=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Se.createElement(ve.Z,{spinning:it},Se.createElement("div",{className:Ae()(E.list,qe)},!!(ht!=null&&ht.length)&&(ht==null?void 0:ht.map((Le,ze)=>{var Ne,at,Bt,ct,$e,Ft,De,ge,lt,wt,yt,je,Ve;const{name:pt,id:Kt,identifier:kt,featured:dn,school_name:dt,image_url:Nt,excellent:mn,is_plan:he}=Le;return Se.createElement("div",{key:Kt,className:Ke&&nt?E.wrapisCurrent:E.wrap,style:{width:Xe,marginRight:(1+ze)%Ge===0?0:Oe+be,marginBottom:Be}},Se.createElement("a",{className:E.li,onClick:se=>{se.preventDefault(),se.stopPropagation(),Ye&&(0,Ue.L9)([Ye]),(0,Ue.xg)(`/paths/${kt}`)}},Se.createElement("div",{className:E.img},Se.createElement("img",{className:E.cover,src:`${Nt}`}),(Ne=Le==null?void 0:Le.subject_tags)==null?void 0:Ne.map((se,ae)=>{var ce,me;if(ae===0){const ot=(ce=ut.find(Ht=>Ht.name==se))==null?void 0:ce.swimg;return Se.createElement("img",{className:E.sign,src:ot,style:{left:"-4px"}})}const le=(me=ut.find(ot=>ot.name==se))==null?void 0:me.ptimg;return Se.createElement("img",{className:E.sign,src:le,style:{left:`${48+52*(ae-1)+2*ae}px`}})}),Se.createElement("div",{className:E.tagsDom},Se.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Le==null?void 0:Le.excellent)&&Se.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((at=Le==null?void 0:Le.custom_tags)==null?void 0:at.length)>0&&Se.createElement(xe.Z,{title:($e=(ct=Le==null?void 0:Le.custom_tags)==null?void 0:ct[((Bt=Le==null?void 0:Le.custom_tags)==null?void 0:Bt.length)-1])==null?void 0:$e.tag_name},Se.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Se.createElement("span",{className:"multi-llipsis1e text-10px"},(ge=(De=Le==null?void 0:Le.custom_tags)==null?void 0:De[((Ft=Le==null?void 0:Le.custom_tags)==null?void 0:Ft.length)-1])==null?void 0:ge.tag_name))))),At=="hide"&&(Le==null?void 0:Le.studying)&&Ke&&Se.createElement("div",{className:`${E.movebq} user-path-items`,onClick:se=>{se.stopPropagation(),pe(Le)}},Se.createElement("i",{className:"iconfont icon-yichu1 font12"}),Se.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(At)&&Ke&&Se.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:se=>{se.stopPropagation(),st(Le)}},Se.createElement("i",{className:`iconfont ${At=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Se.createElement("span",null,At=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Se.createElement("div",{className:E.name},Se.createElement(xe.Z,{title:Et&&(Le!=null&&Le.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${pt}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Le==null?void 0:Le.excellent_alias_name}`)):pt},Se.createElement("span",{className:E.e},Et&&(Le==null?void 0:Le.excellent_alias_name)||pt))),Ke&&nt&&((lt=Le==null?void 0:Le.progress)==null?void 0:lt.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(Je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((wt=Le==null?void 0:Le.progress)==null?void 0:wt.my_score)/((yt=Le==null?void 0:Le.progress)==null?void 0:yt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(je=Le==null?void 0:Le.progress)==null?void 0:je.my_score,"/",(Ve=Le==null?void 0:Le.progress)==null?void 0:Ve.all_score),(!Ke||!nt)&&Se.createElement(xe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${dt}`},Se.createElement("div",{className:E.unit},Se.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),dt)),(!Ke||!nt)&&Se.createElement("div",{className:E.tags},Se.createElement("div",null,Se.createElement(xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,Le.stages_count))),Se.createElement(xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,Le.members_count)))))))})),!ht.length&&Se.createElement(tt.Z,null)))}},86475:function(_t,Pt,ne){"use strict";ne.d(Pt,{jL:function(){return We},w9:function(){return je},QD:function(){return sr},cQ:function(){return ct.Z},op:function(){return Ar},O5:function(){return Ir},_b:function(){return Sr},t7:function(){return Pe},Gi:function(){return dt},YG:function(){return kt},qp:function(){return Qe},vr:function(){return Br},qE:function(){return Qr},Je:function(){return pe},wb:function(){return Bt},cq:function(){return ce},tp:function(){return Ge}});var E=ne(59301),ve={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW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G/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",We=({dataSource:qt=[],img:Ut,imgWidth:Un=346,title:Lt,sunTitle:Dn,bannerExtraContent:rr})=>E.createElement("div",{className:ve.banner},E.createElement("div",{className:ve.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Lt),E.createElement("span",null,Dn)),qt.length>0&&E.createElement("div",{className:ve.btns},qt.map((Rn,ar)=>E.createElement("div",{key:ar,onClick:Rn.click},Rn.name,Rn.sign?E.createElement("img",{src:xe,width:39}):null))),rr),Ut&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Ut,width:Un}))),Ae={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ue=ne(92310),tt=ne.n(Ue),Se=ne(89392),Qe=({dataSource:qt=[],value:Ut,onChange:Un,onTitleChange:Lt,className:Dn,title:rr,titleWidth:Rn=41,style:ar={},fontColor:wr="#6A7283",showCount:er})=>{const[Vt,On]=(0,E.useState)(1),[Cr,Hr]=(0,E.useState)(!1),jr=(0,E.useRef)(null),Nr=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var Ga;qt.length!==0&&(((Ga=jr==null?void 0:jr.current)==null?void 0:Ga.clientHeight)>97?On(1):On(0)),qt.length===0&&On(0),Hr(!1)},[qt]),E.createElement("div",{className:tt()(Ae.row,Dn,"fadeIn","animated"),style:ar},E.createElement("div",{onClick:(0,Se.throttle)(()=>Lt==null?void 0:Lt(),2e3),style:{width:Rn,marginTop:Cr?12:4},className:`${Ae.title} ${Lt?"current":""}`},rr),E.createElement("div",{className:Cr?`${Ae.tagsWrap} ${Ae.tagsBorderWrap}`:Ae.tagsWrap},E.createElement("div",{className:Ae.bar,ref:Nr,style:Vt>0?{height:Vt===1?97:"auto",overflow:Vt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Ae.tag,ref:jr},qt==null?void 0:qt.map(Ga=>E.createElement("span",{onClick:()=>Un(Ga.id),key:Ga.id,style:{color:wr},className:Ut===Ga.id?Ae.active:""},E.createElement("span",{title:Ga.name,className:Ae.name},Ga.name),!!er&&E.createElement("span",{className:Ae.num},Ga.count))))),!!Vt&&E.createElement(E.Fragment,null,Vt===1?E.createElement("div",{onClick:()=>{var Ga;On(2),((Ga=jr==null?void 0:jr.current)==null?void 0:Ga.clientHeight)>245?Hr(!0):Hr(!1)},className:Ae.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{Nr.current.scrollTop=0,On(1),Hr(!1)},className:Ae.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},qe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ge=({dataSource:qt=[],value:Ut,onChange:Un,className:Lt,style:Dn={}})=>E.createElement("div",{style:Dn,className:tt()(qe.tabs,Lt)},qt.map(rr=>E.createElement("span",{onClick:()=>Un(rr.id),className:Ut===rr.id?qe.active:"",key:rr.id},rr.name))),Oe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Be=ne(37568),Pe=({dataSource:qt=[],value:Ut="",onChange:Un,onInputChange:Lt=()=>{},className:Dn,style:rr={},placeholder:Rn,allowClear:ar=!1})=>{var wr;const[er,Vt]=(0,E.useState)(""),[On,Cr]=(0,E.useState)("");(0,E.useEffect)(()=>{var Nr;let Ga=Ut;(Nr=JSON.stringify(Ut))!=null&&Nr.includes("{")&&(Vt(Ut.id),Ga=Ut.value||"");try{Cr(decodeURIComponent(Ga||""))}catch(za){Cr(decodeURIComponent(Ga||""))}},[Ut]);const Hr=()=>{Un(encodeURIComponent(On),er||null)},jr=Nr=>{Nr!==er&&(Vt(Nr),Un(encodeURIComponent(On),Nr))};return E.createElement("div",{className:tt()(Oe.input,Dn),style:rr},!!qt.length&&E.createElement("div",{className:Oe.dropdown},E.createElement("div",{className:Oe.text},(wr=qt.find(Nr=>Nr.id===er))==null?void 0:wr.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Oe.b1}),E.createElement("b",{className:Oe.b2})),E.createElement("div",{className:Oe.menu},qt.map((Nr,Ga)=>E.createElement("div",{key:Ga,onClick:()=>jr(Nr.id)},Nr.name)))),E.createElement(Be.default,{onPressEnter:Hr,value:On,onChange:Nr=>{Cr(Nr.target.value),Lt(encodeURIComponent(Nr.target.value),er||null)},placeholder:Rn,variant:"borderless",allowClear:ar,onClear:()=>Un("",er||null)}),E.createElement("i",{onClick:Hr,className:"iconfont icon-sousuo9 font14 current"}))},Ye={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pe=({value:qt,onChange:Ut,className:Un,total:Lt,pageSize:Dn,style:rr={}})=>{const Rn=qt<2,ar=qt>=Math.ceil(Lt/Dn);return Lt<=Dn?E.createElement(E.Fragment,null):E.createElement("div",{className:tt()(Ye.quickPager,Un),style:rr},E.createElement("div",{onClick:()=>{Rn||Ut(qt-1,"prev")},className:Rn?Ye.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{ar||Ut(qt+1,"next")},className:ar?Ye.disabled:""},"\u4E0B\u4E00\u9875"))},Ke={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},nt=ne(29787),Et=ne(25399),At=ne(63139),st=ne(51802),Xe=ne(95203),ut=ne(96908),Le=ne(57177),ze=ne(81378),Ne=ne(28860),Bt=({className:qt,dataSource:Ut=[],col:Un=4,right:Lt,bottom:Dn=23,precision:rr=0,wrapWidth:Rn=1200,trackEventItems:ar,loading:wr})=>{const er=Math.floor((Rn-(Un-1)*Lt)/Un);return E.createElement(nt.Z,{spinning:wr},E.createElement("div",{className:tt()(Ke.list,qt)},!!Ut.length&&Ut.map((Vt,On)=>{const{name:Cr,id:Hr,identifier:jr,power:Nr,cover_image_id:Ga,pic:za}=Vt;return E.createElement("div",{className:Ke.wrap,key:Hr,style:{width:er,marginRight:(1+On)%Un===0?0:Lt+rr,marginBottom:Dn}},E.createElement("a",{target:"_blank",href:`/shixuns/${jr}/challenges`,className:Ke.li,onClick:An=>{An.preventDefault(),ar&&(0,Xe.L9)([ar]),Nr&&(0,Xe.xg)(`/shixuns/${jr}/challenges`)}},E.createElement("div",{className:Ke.img},E.createElement("img",{className:Ke.cover,src:`${za}`}),Vt.is_jupyter&&E.createElement("img",{className:Ke.sign,src:ut}),Vt.is_jupyter_lab&&E.createElement("img",{className:Ke.sign,src:Le}),Vt.is_unity_3d&&E.createElement("img",{className:Ke.sign,src:ze})),E.createElement("div",{className:Ke.name},E.createElement(Et.Z,{title:Cr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:Ke.e},Cr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:Ke.tags},E.createElement(Et.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Vt.challenges_count))),!!Vt.myshixuns_count&&E.createElement(Et.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Vt.myshixuns_count))),E.createElement(Et.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Vt.level))),E.createElement("div",{className:Ke.rate},E.createElement(At.Z,{allowHalf:!0,disabled:!0,defaultValue:Vt.score_info}),E.createElement("span",null,"\xA0",Vt.score_info?`${Vt.score_info}\u5206`:"5\u5206")))),!Nr&&E.createElement("div",{className:Ke.lockWrap},E.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ut.length&&E.createElement(Ne.Z,null)))},ct=ne(32767),$e={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ft=ne(62957),De=ne(96599),ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5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DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",lt=ne(59301),wt=(qt,Ut,Un)=>new Promise((Lt,Dn)=>{var rr=wr=>{try{ar(Un.next(wr))}catch(er){Dn(er)}},Rn=wr=>{try{ar(Un.throw(wr))}catch(er){Dn(er)}},ar=wr=>wr.done?Lt(wr.value):Promise.resolve(wr.value).then(rr,Rn);ar((Un=Un.apply(qt,Ut)).next())}),je=({className:qt,dataSource:Ut=[],col:Un=4,right:Lt,bottom:Dn=23,precision:rr=0,wrapWidth:Rn=1200,trackEventItems:ar,loading:wr,category:er,hiddenClick:Vt,handleVery:On=()=>!0,isCurrent:Cr})=>{const[Hr,jr]=Ft.default.useModal(),Nr=Math.floor((Rn-(Un-1)*Lt)/Un),Ga=za=>wt(void 0,null,function*(){Hr.confirm({title:"\u7F6E\u9876",width:500,content:lt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",lt.createElement("span",{className:"c-blue"},"\u201C",za.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return lt.createElement(nt.Z,{spinning:wr},jr,lt.createElement("div",{className:tt()($e.list,qt)},!!Ut.length&&Ut.map((za,An)=>{const{subject_identifier:rn,id:Yi,identifier:$o,power:Ki}=za,xt=za.is_public!=0&&za.is_public;return lt.createElement("div",{className:$e.wrap,key:Yi,style:{width:Nr,marginRight:(1+An)%Un===0?0:Lt+rr,marginBottom:Dn}},za.homepage_show&<.createElement("div",{className:$e.btnsTop},lt.createElement(De.default,{color:"red"},"\u7F6E\u9876")),lt.createElement("a",{className:$e.li,onClick:tn=>{tn.preventDefault(),On(za==null?void 0:za.first_category_url)&&(ar&&(0,Xe.L9)([ar]),(0,Xe.xg)(za.first_category_url))}},lt.createElement("div",{className:$e.top},lt.createElement(Et.Z,{title:za.name},lt.createElement("div",{className:$e.name},za.name)),lt.createElement("img",{className:$e.img,src:st.Z.IMG_SERVER+"/images/"+za.avatar_url}),lt.createElement("div",{className:$e.text,title:za.creator},za.creator),rn&<.createElement("div",{className:$e.btns},lt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),lt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),xt&<.createElement("div",{className:$e.sign},"\u516C\u5F00"),Cr&<.createElement("div",{className:$e.hidden,onClick:tn=>{tn.stopPropagation(),Vt(za)}},lt.createElement("i",{className:`iconfont ${er=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),er=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),lt.createElement("div",{className:$e.bottom},za.visits>0&<.createElement(Et.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-liulanyan"}),lt.createElement("span",null,za.visits))),za.course_members_count>0&<.createElement(Et.Z,{title:"\u6210\u5458",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-chengyuan"}),za.course_members_count)),za.tasks_count>0&<.createElement(Et.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-zuoye"}),za.tasks_count)),za.is_end?lt.createElement("div",{style:{color:"#6B758B"}}):lt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!za.is_accessible&<.createElement("div",{className:$e.lockWrap},lt.createElement("img",{src:`${st.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),lt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ut.length&<.createElement(Ne.Z,null)))},Ve={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},pt=ne(88634),kt=({dataSource:qt=[],value:Ut,onChange:Un,className:Lt,style:Dn={},tabBarExtraContent:rr})=>E.createElement("div",{className:tt()(Ve.tabs,Lt),style:Dn},E.createElement("div",{className:Ve.tabsWrap},qt.map((Rn,ar)=>!(Rn!=null&&Rn.hide)&&E.createElement("aside",{className:Ve.tab,onClick:()=>{Un(Rn.id),Rn.link&&pt.history.push(Rn.link)},key:ar},E.createElement("div",{className:Ut===Rn.id?Ve.active:""},Rn.name),(Rn==null?void 0:Rn.resetCount)==null&&(Rn==null?void 0:Rn.total)!==void 0&&E.createElement("span",null,"\uFF08",Rn==null?void 0:Rn.total,"\uFF09"),(Rn==null?void 0:Rn.resetCount)!==void 0&&(Rn==null?void 0:Rn.total)!==void 0&&E.createElement(Et.Z,{title:(Rn==null?void 0:Rn.tip)!=null?Rn==null?void 0:Rn.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},Rn==null?void 0:Rn.resetCount),"/",E.createElement("span",null,Rn==null?void 0:Rn.total),"\uFF09"))))),E.createElement("div",{className:Ve.tabBar},rr)),dt=({className:qt,style:Ut={},children:Un})=>E.createElement("div",{className:tt()(qt),style:Ut},Un),Nt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},mn=ne(75727),he=ne(93041);const se=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ce=({sortValue:qt,dropValue:Ut,className:Un,onSort:Lt,onDrop:Dn,dataSource:rr=se})=>{var Rn;return E.createElement("div",{className:tt()(Nt.orderWrap,Un)},E.createElement(mn.Z,{dropdownRender:()=>E.createElement(he.default,null,rr.map((ar,wr)=>E.createElement(he.default.Item,{key:wr,onClick:()=>Dn(ar.id)},ar.name)))},E.createElement("span",{className:Nt.orderTextWrap},(Rn=rr.find(ar=>Ut===ar.id))==null?void 0:Rn.name)),E.createElement("span",{className:Nt.orderIconWrap},E.createElement("span",{className:Nt.orderAsc},E.createElement("i",{className:qt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer}`,onClick:()=>Lt(qt==="asc"?"desc":"asc")})),E.createElement("span",{className:Nt.orderDesc},E.createElement("i",{className:qt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer}`,onClick:()=>Lt(qt==="asc"?"desc":"asc")}))))},me={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},le=ne(7939),ot=Object.defineProperty,Ht=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,wn=(qt,Ut,Un)=>Ut in qt?ot(qt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Un}):qt[Ut]=Un,Xn=(qt,Ut)=>{for(var Un in Ut||(Ut={}))on.call(Ut,Un)&&wn(qt,Un,Ut[Un]);if(Ht)for(var Un of Ht(Ut))kn.call(Ut,Un)&&wn(qt,Un,Ut[Un]);return qt},Nn=(qt,Ut)=>{var Un={};for(var Lt in qt)on.call(qt,Lt)&&Ut.indexOf(Lt)<0&&(Un[Lt]=qt[Lt]);if(qt!=null&&Ht)for(var Lt of Ht(qt))Ut.indexOf(Lt)<0&&kn.call(qt,Lt)&&(Un[Lt]=qt[Lt]);return Un},Pr=(qt,Ut,Un)=>new Promise((Lt,Dn)=>{var rr=wr=>{try{ar(Un.next(wr))}catch(er){Dn(er)}},Rn=wr=>{try{ar(Un.throw(wr))}catch(er){Dn(er)}},ar=wr=>wr.done?Lt(wr.value):Promise.resolve(wr.value).then(rr,Rn);ar((Un=Un.apply(qt,Ut)).next())}),Ar=qt=>{var Ut=qt,{className:Un,style:Lt,children:Dn,loading:rr=!1,openLoading:Rn,onClick:ar=()=>{},size:wr="middle",shape:er="round"}=Ut,Vt=Nn(Ut,["className","style","children","loading","openLoading","onClick","size","shape"]);const[On,Cr]=(0,E.useState)(!1);return E.createElement(le.ZP,Xn({onClick:(0,Se.throttle)(Hr=>Pr(void 0,null,function*(){Rn&&Cr(!0);try{yield ar(Hr)}catch(jr){console.log("error",jr)}Rn&&Cr(!1)}),2e3,{leading:!0,trailing:!1}),className:tt()(me.btn,me[`${wr}-${er}`],Un),style:Lt,size:wr,shape:er,loading:On||rr},Vt),Dn)},Jn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Qr=({className:qt,style:Ut,children:Un=null,onClick:Lt,title:Dn})=>E.createElement("div",{className:tt()(Jn.head,qt),style:Ut},E.createElement("span",{className:"primary-hover",onClick:Lt},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:Dn},Dn),E.createElement("div",{className:Jn.node},Un)),ur={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},sr=({confirmShow:qt=!0,confirmTitle:Ut,confirmClick:Un,cancelShow:Lt=!0,cancelTitle:Dn,cancelClick:rr,className:Rn,style:ar,confirmLoading:wr=!1})=>E.createElement("div",{className:tt()(ur.btns,Rn),style:ar},qt&&E.createElement(le.ZP,{loading:wr,onClick:Un,type:"primary",className:ur.confirm},Ut),Lt&&E.createElement(le.ZP,{onClick:rr,className:ur.cancel},Dn)),un={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Br=({className:qt,style:Ut={},LeftContent:Un,children:Lt,RightContent:Dn})=>E.createElement("div",{className:tt()(un.fixedBottom,qt),style:Ut},E.createElement("div",{className:un.wrap},E.createElement("div",{className:un.left},Un),E.createElement("div",{className:un.center},Lt),E.createElement("div",{className:un.right},Dn))),Xa={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Sr=({className:qt,style:Ut={},dataSource:Un=[]})=>E.createElement("div",{className:tt()(Xa.crumbs,qt),style:Ut},Un.map((Lt,Dn)=>Dnpt.history.push(Lt.path)},Lt.name):E.createElement("span",null,Lt.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:Dn,style:{color:"#5F6368"}},Lt.name))),En=ne(11938),nr=Object.defineProperty,$r=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ga=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ja=(qt,Ut,Un)=>Ut in qt?nr(qt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Un}):qt[Ut]=Un,ri=(qt,Ut)=>{for(var Un in Ut||(Ut={}))Ei.call(Ut,Un)&&Ja(qt,Un,Ut[Un]);if(ga)for(var Un of ga(Ut))Ii.call(Ut,Un)&&Ja(qt,Un,Ut[Un]);return qt},hi=(qt,Ut)=>$r(qt,Aa(Ut)),$i=(qt,Ut)=>{var Un={};for(var Lt in qt)Ei.call(qt,Lt)&&Ut.indexOf(Lt)<0&&(Un[Lt]=qt[Lt]);if(qt!=null&&ga)for(var Lt of ga(qt))Ut.indexOf(Lt)<0&&Ii.call(qt,Lt)&&(Un[Lt]=qt[Lt]);return Un};const{Countdown:Ha}=En.default;var Ir=qt=>{var Ut=qt,{onChange:Un}=Ut,Lt=$i(Ut,["onChange"]);const[Dn,rr]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof Dn=="number"&&Dn>=0&&Un(Dn)},[Dn]);const Rn=ar=>{const wr=Math.floor(ar/1e3);rr(wr)};return E.createElement(Ha,hi(ri({},Lt),{onChange:Rn}))}},78039:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ve}});var E=ne(59301);function ve(xe,Je){const We=(0,E.useRef)();(0,E.useEffect)(()=>{We.current=xe}),(0,E.useEffect)(()=>{function Ae(){We.current()}if(Je!==null){let Ue=setInterval(Ae,Je);return()=>clearInterval(Ue)}},[Je])}},12413:function(_t,Pt,ne){"use strict";ne.r(Pt),ne.d(Pt,{default:function(){return js}});var E=ne(59301),ve=ne(88634),xe=ne(28284),Je=ne(6767),We=ne(91882),Ae=ne(37568),Ue=ne(62673),tt=ne(47889),Se=ne(4875),Re=ne(7939),Qe={flex_box_center:"flex_box_center___aPGWN",flex_space_between:"flex_space_between___MQNX5",flex_box_vertical_center:"flex_box_vertical_center___Z7QdK",flex_box_center_end:"flex_box_center_end___JQl5O",flex_box_column:"flex_box_column___IhYhx",bg:"bg___Kg8x_",title:"title___UhsVG",titleLeft:"titleLeft___NPVwn",titleRight:"titleRight___UGtmZ",formWrap:"formWrap___Jowb2",baseLineHeight:"baseLineHeight___N68WX",radioBtnWrapper:"radioBtnWrapper___bX7Pi",radiogroup:"radiogroup___ukf8u",easy:"easy___ZHYPU",medium:"medium___piewx",hard:"hard___HMXyt",selectdiv:"selectdiv___gkuBG",divitem:"divitem___vNm0q",bottmodiv:"bottmodiv___assW5",cancelBtn:"cancelBtn___Nl6Pi",confirmBtn:"confirmBtn___BNoFU",baseFormItem:"baseFormItem___ILZ2V",cascaderPopup:"cascaderPopup___QPxW3",addQuestionBtn:"addQuestionBtn___OjehS",concat:"concat___kliXB"},qe=ne(62957),ht=ne(24017),Ge=ne(66649),Oe=ne.n(Ge),Be=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())});const be=({user:ue,dispatch:ke,classroomList:Te,onModalOk:Yt,setsubloading:_n})=>{const yr=(0,ve.useParams)(),[Pn,hn]=(0,E.useState)(),[zt,Mn]=(0,E.useState)(!1);function Ra(sn){return sn&&sn{Mn(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:Te.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(zt){Je.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}_n(!1),ke({type:"classroomList/setActionTabs",payload:{}})}},E.createElement("div",null,E.createElement("span",null,"EduCoder\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),E.createElement("br",null),E.createElement(ht.default,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:Ra,format:"YYYY-MM-DD HH:mm:ss",onChange:(sn,Wt)=>{hn(Wt)},showTime:{defaultValue:Oe()("00:00:00","HH:mm:ss")}}),E.createElement("br",null),E.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),E.createElement("br",null),E.createElement("div",{style:{textAlign:"end"}},E.createElement(Re.ZP,{loading:zt,type:"primary",onClick:()=>Be(void 0,null,function*(){Mn(!0),Yt(Pn,()=>{ke({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var Pe=(0,ve.connect)(({user:ue,classroomList:ke})=>({user:ue,classroomList:ke}))(be),Ye=ne(70892),it=ne(32134),pe=ne(12893),Ke={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},nt=ne(82326),Et=Object.defineProperty,At=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ut=(ue,ke,Te)=>ke in ue?Et(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,Le=(ue,ke)=>{for(var Te in ke||(ke={}))st.call(ke,Te)&&ut(ue,Te,ke[Te]);if(At)for(var Te of At(ke))Xe.call(ke,Te)&&ut(ue,Te,ke[Te]);return ue},ze=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),at=({setitem:ue,item:ke,rz:Te})=>{var Yt,_n,yr,Pn,hn,zt,Mn,Ra;let[sn,Wt]=(0,E.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[cn]=xe.default.useForm(),[Qn,Yn]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Te&&!Qn&&(sn.zydatas=Te,Wt(Le({},sn)),Yn(!0),ke!=null&&ke.ec_course_id&&Ln())},[ke,Te,Qn]),console.log(sn,"params");function Ln(){return ze(this,null,function*(){yield Hn(ke==null?void 0:ke.ec_major_school_id),yield xn(ke==null?void 0:ke.ec_year_id),yield or(ke==null?void 0:ke.ec_course_id),cn.setFieldsValue({ec_course_id:ke==null?void 0:ke.ec_course_id,ec_major_school_id:ke==null?void 0:ke.ec_major_school_id,ec_point_ids:ke==null?void 0:ke.ec_point_ids,ec_year_id:ke==null?void 0:ke.ec_year_id})})}function Hn(xr){return ze(this,null,function*(){const lr=yield(0,Ye.ZP)(`/api/ec_major_schools/${xr}/ec_years/get_year_list.json`,{method:"get"});sn.jbdatas=lr==null?void 0:lr.data,Wt(Le({},sn)),cn.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function xn(xr){return ze(this,null,function*(){const lr=yield(0,Ye.ZP)(`/api/ec_years/${xr}/ec_courses/get_courses.json`,{method:"get"});sn.kcdatas=lr==null?void 0:lr.data,Wt(Le({},sn)),cn.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const or=xr=>ze(void 0,null,function*(){const lr=yield(0,Ye.ZP)(`/api/ec_courses/${xr}/ec_points.json`,{method:"get",params:{ec_course_id:xr}});sn.zsdatas=lr==null?void 0:lr.data,Wt(Le({},sn))});return E.createElement("div",{className:Ke.from},E.createElement(xe.default,{form:cn,layout:"inline",onValuesChange:xr=>{console.log("----",xr),xr.ec_major_school_id&&(sn.jbdatas=[],sn.kcdatas=[],sn.zsdatas=[],Wt(Le({},sn)),Hn(xr.ec_major_school_id)),xr.ec_year_id&&(sn.kcdatas=[],sn.zsdatas=[],Wt(Le({},sn)),xn(xr.ec_year_id)),xr.ec_course_id&&(sn.zsdatas=[],Wt(Le({},sn)),or(xr.ec_course_id))},onFinish:xr=>ze(void 0,null,function*(){ue(xr)})},E.createElement(xe.default.Item,{name:"ec_major_school_id"},E.createElement(nt.default,{style:{width:160},disabled:((Yt=sn.zydatas)==null?void 0:Yt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(_n=sn==null?void 0:sn.zydatas)==null?void 0:_n.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.ec_major_school_id},xr==null?void 0:xr.name)))),E.createElement(xe.default.Item,{name:"ec_year_id"},E.createElement(nt.default,{style:{width:160},disabled:((yr=sn.jbdatas)==null?void 0:yr.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Pn=sn==null?void 0:sn.jbdatas)==null?void 0:Pn.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.ec_year_id},xr==null?void 0:xr.year)))),E.createElement(xe.default.Item,{name:"ec_course_id"},E.createElement(nt.default,{style:{width:208},disabled:((hn=sn.kcdatas)==null?void 0:hn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(zt=sn==null?void 0:sn.kcdatas)==null?void 0:zt.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.id},xr==null?void 0:xr.name)))),E.createElement(xe.default.Item,{name:"ec_point_ids"},E.createElement(nt.default,{onChange:()=>{cn.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((Mn=sn.zsdatas)==null?void 0:Mn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Ra=sn==null?void 0:sn.zsdatas)==null?void 0:Ra.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.id},xr==null?void 0:xr.name))))))},Bt=Object.defineProperty,ct=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,lt=(ue,ke,Te)=>ke in ue?Bt(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,wt=(ue,ke)=>{for(var Te in ke||(ke={}))De.call(ke,Te)&<(ue,Te,ke[Te]);if(Ft)for(var Te of Ft(ke))ge.call(ke,Te)&<(ue,Te,ke[Te]);return ue},yt=(ue,ke)=>ct(ue,$e(ke)),je=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())});const Ve=({user:ue,exercise_id:ke=null,homework_common_id:Te=null,setitem:Yt})=>{var _n,yr,Pn;let[hn,zt]=(0,E.useState)([{id:Math.random()}]),[Mn,Ra]=(0,E.useState)(null);function sn(){return je(this,null,function*(){var cn,Qn,Yn,Ln;let Hn=yield(0,Ye.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:ke,homework_common_id:Te}});if(((cn=Hn==null?void 0:Hn.data)==null?void 0:cn.length)>0){let xn=[];(Qn=Hn==null?void 0:Hn.data)==null||Qn.map(or=>{var xr;(xr=or==null?void 0:or.ec_point_ids)==null||xr.map(lr=>{xn.push(lr)})}),Yt(yt(wt({},(Yn=Hn==null?void 0:Hn.data)==null?void 0:Yn[0]),{ec_point_ids:xn})),zt((Ln=Hn==null?void 0:Hn.data)==null?void 0:Ln.map(or=>yt(wt({},or),{id:Math.random()})))}})}(0,E.useEffect)(()=>{var cn,Qn;(Qn=(cn=ue==null?void 0:ue.userInfo)==null?void 0:cn.course)!=null&&Qn.course_school_id&&Wt()},[(yr=(_n=ue==null?void 0:ue.userInfo)==null?void 0:_n.course)==null?void 0:yr.course_school_id]);function Wt(){return je(this,null,function*(){var cn,Qn;const Yn=yield(0,Ye.ZP)(`/api/schools/${(Qn=(cn=ue==null?void 0:ue.userInfo)==null?void 0:cn.course)==null?void 0:Qn.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ra(Yn==null?void 0:Yn.data),(Te||ke)&&sn()})}return console.log(hn,Mn,"datas"),E.createElement("div",{style:{display:(Pn=ue.userInfo.course)!=null&&Pn.is_openengineering?"":"none"}},E.createElement("div",{className:Ke.wrap},E.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",E.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),E.createElement("div",{className:Ke.itemWarp},hn==null?void 0:hn.map((cn,Qn)=>E.createElement("div",{key:cn.id,style:{display:"flex",alignItems:"center",marginBottom:20}},E.createElement(at,{rz:Mn,item:cn,setitem:Yn=>{Yn=wt(wt({},hn==null?void 0:hn[Qn]),Yn),hn.splice(Qn,1,Yn),zt([...hn]);let Ln=[];hn==null||hn.map(Hn=>{var xn;(xn=Hn==null?void 0:Hn.ec_point_ids)==null||xn.map(or=>{Ln.push(or)})}),Yt(yt(wt({},Yn),{ec_point_ids:Ln}))}}),E.createElement(it.Z,{className:Ke.addIcon,onClick:()=>{hn.push({id:Math.random()}),zt([...hn])}}),Qn!=0&&E.createElement(pe.Z,{className:Ke.deleteIcon,onClick:()=>{hn.splice(Qn,1);let Yn=[];hn==null||hn.map(Ln=>{var Hn;(Hn=Ln==null?void 0:Ln.ec_point_ids)==null||Hn.map(xn=>{Yn.push(xn)})}),Yt(yt(wt({},hn[Qn-1]),{ec_point_ids:Yn})),zt([...hn])}}))))))};var pt=(0,ve.connect)(({user:ue})=>({user:ue}))(Ve),Kt=ne(93041),kt=ne(29787),dn=ne(75727),dt=ne(25399),Nt=ne(37639),mn=ne(36207),he={flex_box_center:"flex_box_center___zCnVx",flex_space_between:"flex_space_between___BBiQD",flex_box_vertical_center:"flex_box_vertical_center___KzPui",flex_box_center_end:"flex_box_center_end___zJokd",flex_box_column:"flex_box_column___Grsys",moreSpan:"moreSpan___VJeLv",bg:"bg___oBBHW",title:"title___xV4Rt",bottomdiv:"bottomdiv___rPfwr",spanBtn:"spanBtn___eJxID",addQuestionBtn:"addQuestionBtn___RPRiP",saveBtn:"saveBtn___y9nNf",left:"left___Q3Qf4",leftAction:"leftAction___GT9yG",Button:"Button___r00OP",iconWrapper:"iconWrapper___wofW_",up:"up___a9RQm",down:"down___x6RAl",disabled:"disabled___mkEME",titleleft:"titleleft___WZ83K",more_style:"more_style___ZXYnN",qcount:"qcount___o6F1k",drag:"drag___ZSZki",score:"score___Gy6jr",qtitle:"qtitle___KF7pa",qcountclick:"qcountclick___kvoyc",right:"right___Nfa70",edit:"edit___RVRSb",delete:"delete___J9BAT",yuanti:"yuanti___ljq8l",tianjia:"tianjia___s7Zu2",shixun:"shixun___YkjdZ",scoreByBlankRadio:"scoreByBlankRadio___QYQY5",modalconfirm:"modalconfirm___dmWFe",scoremodal:"scoremodal___CDA7w",close:"close___jdUWv",content:"content___HPqUf",items:"items___YkyQL",bottom:"bottom___mzpp4",yes:"yes___Xio6z",no:"no___hbicD",formcenter:"formcenter___kN8Ax",radiogroup:"radiogroup___htjtc",easy:"easy____g1mR",medium:"medium___vPAsn",hard:"hard___c6tcf",formcenterselect:"formcenterselect___B88vb",selectitems1:"selectitems1___Dzpho",selectitems:"selectitems___wUGKF",morebottom:"morebottom___F5cFQ",scoreinput:"scoreinput___S9Fbv",shake:"shake___IYp2E",titleTooltip:"titleTooltip___J0i26",exercise_styles:"exercise_styles___BJAZm",btn_warp:"btn_warp___iFP5N"},se=ne(95203),ae=ne(28860),ce=ne(459),me=ne(22061),le=ne(67495),ot=ne(59301),Ht=Object.defineProperty,on=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Pr=(ue,ke,Te)=>ke in ue?Ht(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,Vr=(ue,ke)=>{for(var Te in ke||(ke={}))Xn.call(ke,Te)&&Pr(ue,Te,ke[Te]);if(wn)for(var Te of wn(ke))Nn.call(ke,Te)&&Pr(ue,Te,ke[Te]);return ue},Ar=(ue,ke)=>on(ue,kn(ke)),Jn=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),Qr=({Itemid:ue,setqitem:ke,qitem:Te,data:Yt,getdata:_n,bigitem:yr,setBigqitem:Pn,isedit:hn,handleEditing:zt})=>{const[Mn,Ra]=(0,E.useState)([]),[sn,Wt]=(0,E.useState)(!1),cn=(Yn,Ln,Hn)=>{const xn=Array.from(Yn),[or]=xn.splice(Ln,1);return xn.splice(Hn,0,or),xn};(0,E.useEffect)(()=>{Yt.length>0&&Ra([...Yt])},[Yt]);const Qn=(Yn,Ln)=>Jn(void 0,null,function*(){if(!Yn.destination)return;if(hn){zt();return}const Hn=cn(Ln,Yn.source.index,Yn.destination.index);Wt(!0);let xn=yield(0,Ye.ZP)(`/api/exercises/${ue}/adjust_position.json`,{method:"post",body:{id:ue,question_ids:Hn==null?void 0:Hn.map(or=>or.question_id)}});Wt(!1),xn.status===0&&_n({id:Ln==null?void 0:Ln[Yn.source.index].question_id})});return ot.createElement("div",null,ot.createElement(me.Z5,{onDragEnd:Yn=>Qn(Yn,Mn)},ot.createElement(me.bK,{droppableId:"droppable"},(Yn,Ln)=>ot.createElement("div",Vr({ref:Yn.innerRef},Yn.droppableProps),ot.createElement(kt.Z,{spinning:sn},Mn.map((Hn,xn)=>ot.createElement(me._l,{key:xn,draggableId:xn.toString(),index:xn},(or,xr)=>{var lr,xi;return ot.createElement("aside",Vr(Vr({ref:or.innerRef},or.draggableProps),or.dragHandleProps),ot.createElement("div",{onClick:()=>{if(hn){zt();return}ke(Ar(Vr({},Hn),{index:xn+1})),Pn(yr),(0,se.Vf)("#question-scroll-id")},className:`${he.qcount} ${Hn.question_id===(Te==null?void 0:Te.question_id)?he.qcountclick:""}`},ot.createElement(dt.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},ot.createElement("i",{className:`iconfont icon-tuodong3 ${he.drag}`})),ot.createElement("span",{className:he.score},Hn==null?void 0:Hn.question_score,"\u5206"),ot.createElement(dt.Z,{title:ot.createElement(le.Z,{value:(Hn==null?void 0:Hn.question_type)===8?(lr=Hn==null?void 0:Hn.program_attr)==null?void 0:lr.description:Hn.question_title}),color:"#fff",placement:"left",overlayClassName:he.titleTooltip},ot.createElement("span",{className:he.qtitle},xn+1,"\u3001",ot.createElement(le.Z,{value:(Hn==null?void 0:Hn.question_type)===8?(xi=Hn==null?void 0:Hn.program_attr)==null?void 0:xi.description:Hn.question_title,showTextOnly:!0}))),(Hn==null?void 0:Hn.question_imperfect)&&ot.createElement(dt.Z,{title:"\u77E5\u8BC6\u70B9\u4FE1\u606F\u4E0D\u5B8C\u5584"},ot.createElement("div",{style:{transform:"scaleY(-1)",color:"#E99237"},className:"iconfont icon-tishi12"}))))}))),Yn.placeholder))))},ur=ne(77019),Sn=ne(42172),sr=ne(58755),un=ne(61485),Er=ne(33797),Br=ne(59301),Xa=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),Sr=({form:ue,TagDiscipline:ke,exerciseitem:Te,qitem:Yt,getTagData:_n})=>{var yr,Pn,hn,zt;const[Mn,Ra]=(0,E.useState)(!0),sn=xe.default.useWatch("course_discipline_id",ue);(0,E.useEffect)(()=>{Wt()},[]);const Wt=()=>Xa(void 0,null,function*(){ue.setFieldsValue({difficulty:Yt.difficulty||2,tag_discipline_ids:Yt==null?void 0:Yt.tag_discipline_ids,repeat_answer:!Yt.repeat_answer,course_discipline_id:Yt==null?void 0:Yt.course_discipline_id})});return Br.createElement("div",null,Br.createElement("div",{style:{marginTop:30,overflow:"hidden",height:Mn?"100%":0}},Br.createElement(xe.default.Item,{className:he.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Br.createElement(tt.ZP.Group,{className:he.radiogroup},Br.createElement(tt.ZP.Button,{className:he.easy,value:1},"\u7B80\u5355"),Br.createElement(tt.ZP.Button,{className:he.medium,value:2},"\u9002\u4E2D"),Br.createElement(tt.ZP.Button,{className:he.hard,value:3},"\u56F0\u96BE"))),Br.createElement(xe.default.Item,{name:"course_discipline_id",label:"\u6240\u5C5E\u8BFE\u7A0B",className:he.formcenterselect,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},Br.createElement(Er.q,{onChange:()=>ue.setFieldsValue({tag_discipline_ids:[]}),style:{width:666,height:46},data:{course_discipline_id:Yt==null?void 0:Yt.course_discipline_id},tooltipTitle:((yr=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:yr.is_managed)===!1?`${(Pn=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:Pn.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BD5\u9898\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B\u4E0E\u77E5\u8BC6\u70B9`:"",disabled:((hn=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:hn.is_managed)===!1})),Br.createElement(xe.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"tag_discipline_ids",labelAlign:"left",labelCol:{flex:"80px"},className:he.formcenterselect},Br.createElement(Er.i,{isPlusHeight:!0,size:"large",courseDisciplineId:sn,disabled:((zt=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:zt.is_managed)===!1})),Br.createElement(xe.default.Item,{className:he.formcenterselect},Br.createElement("div",{style:{display:"flex",alignItems:"center"}},Br.createElement(xe.default.Item,{name:"repeat_answer",valuePropName:"checked"},Br.createElement(sr.Z,null)),Br.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Br.createElement(dt.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},Br.createElement(un.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))))},En=ne(59301),nr=Object.defineProperty,$r=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ga=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ja=(ue,ke,Te)=>ke in ue?nr(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ri=(ue,ke)=>{for(var Te in ke||(ke={}))Ei.call(ke,Te)&&Ja(ue,Te,ke[Te]);if(ga)for(var Te of ga(ke))Ii.call(ke,Te)&&Ja(ue,Te,ke[Te]);return ue},hi=(ue,ke)=>$r(ue,Aa(ke)),$i=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),ea=({qitem:ue,setisedit:ke,TagDiscipline:Te,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm();(0,E.useEffect)(()=>{var cn;sn.setFieldsValue(hi(ri({},ue),{name:ue==null?void 0:ue.question_title,choices:(cn=ue==null?void 0:ue.question_choices)==null?void 0:cn.map(Qn=>hi(ri({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)}))},[ue]);const Wt=cn=>{if(!(cn!=null&&cn.length))return!1;const Qn=cn.map(Ln=>{var Hn;return(Hn=Ln.choice_text)==null?void 0:Hn.trim().replace(/^\s+|\s+$/g,"")});return new Set(Qn).size!==Qn.length};return En.createElement("div",null,En.createElement(xe.default,{form:sn,colon:!1,onFinish:cn=>{var Qn,Yn,Ln,Hn,xn;if(Wt(cn.choices)){Je.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let or=(Yn=(Qn=cn==null?void 0:cn.choices)==null?void 0:Qn.map)==null?void 0:Yn.call(Qn,(lr,xi)=>{if((lr==null?void 0:lr.standard_boolean)===1)return xi+1}),xr=hi(ri({},cn),{item_type:ue==null?void 0:ue.question_type,question_choices:(Hn=(Ln=cn==null?void 0:cn.choices)==null?void 0:Ln.map)==null?void 0:Hn.call(Ln,lr=>lr.choice_text),standard_answers:or.filter(lr=>lr),choices:(xn=cn==null?void 0:cn.choices)==null?void 0:xn.map(lr=>hi(ri({},lr),{is_answer:lr.standard_boolean}))});_n(ri(ri({},ue),xr))},onFinishFailed:cn=>$i(void 0,null,function*(){var Qn,Yn;Je.ZP.error(cn.errorFields[0].errors[0]),sn.scrollToField((Yn=(Qn=cn==null?void 0:cn.errorFields)==null?void 0:Qn[0])==null?void 0:Yn.name,{behavior:"smooth",block:"center"})})},En.createElement("div",{style:{display:"flex",alignItems:"center"}},En.createElement("div",{style:{flex:1}},En.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),En.createElement("span",null,(ue==null?void 0:ue.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((Ra=Yt==null?void 0:Yt.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&En.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},En.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),En.createElement(Re.ZP,{onClick:()=>{var cn;ue.isadd?(ke(!1),hn()):(sn.setFieldsValue(hi(ri({},ue),{name:ue==null?void 0:ue.question_title,choices:(cn=ue==null?void 0:ue.question_choices)==null?void 0:cn.map(Qn=>hi(ri({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ke(!1))}},"\u53D6\u6D88"),En.createElement(dt.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:En.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},En.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},En.createElement(Re.ZP,{type:"primary",className:"ml20",onClick:()=>$i(void 0,null,function*(){sn.submit()}),loading:Mn},"\u4FDD\u5B58"))),En.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},En.createElement(ur.Z,{align:"middle"},En.createElement(xe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},En.createElement(Se.Z,{onBlur:cn=>{cn.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),En.createElement(Sn.u,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"question_title",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),En.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Te,form:sn}))))},Ir=ne(29981),qt=ne(57091),Ut=ne(59301),Un=Object.defineProperty,Lt=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,wr=(ue,ke,Te)=>ke in ue?Un(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,er=(ue,ke)=>{for(var Te in ke||(ke={}))Rn.call(ke,Te)&&wr(ue,Te,ke[Te]);if(rr)for(var Te of rr(ke))ar.call(ke,Te)&&wr(ue,Te,ke[Te]);return ue},Vt=(ue,ke)=>Lt(ue,Dn(ke)),On=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),Hr=({qitem:ue,TagDiscipline:ke,exerciseitem:Te,setisedit:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm(),Wt=xe.default.useWatch("use_blank_score",sn);return(0,E.useEffect)(()=>{sn.setFieldsValue(Vt(er({},ue),{standard_answers:ue.standard_answers||[],name:ue.question_title,repeat_answer:!ue.repeat_answer}))},[ue]),Ut.createElement("div",null,Ut.createElement(xe.default,{form:sn,colon:!1,onValuesChange:(cn,Qn)=>{var Yn,Ln,Hn,xn;if(cn!=null&&cn.standard_answers||cn!=null&&cn.use_blank_score){let or=((Yn=sn.getFieldValue("standard_answers"))==null?void 0:Yn.length)>0&&((Hn=(Ln=sn.getFieldValue("standard_answers"))==null?void 0:Ln.map(xr=>xr.score))==null?void 0:Hn.filter(xr=>xr));(or==null?void 0:or.length)>0&&sn.setFieldsValue({question_score:(or==null?void 0:or.length)>0&&((xn=or.reduce((xr,lr)=>xr+lr))==null?void 0:xn.toFixed(1))})}},onFinish:cn=>{_n(Vt(er(er({},ue),cn),{item_type:ue==null?void 0:ue.question_type,standard_answers:cn.standard_answers,question_title:cn.name}))},onFinishFailed:cn=>On(void 0,null,function*(){var Qn,Yn;cn.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,se.pE)(),Je.ZP.error(cn.errorFields[0].errors[0]),sn.scrollToField((Yn=(Qn=cn==null?void 0:cn.errorFields)==null?void 0:Qn[0])==null?void 0:Yn.name,{behavior:"smooth",block:"center"})})},Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},Ut.createElement("div",{style:{flex:1}},Ut.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ut.createElement("span",null,"\u586B\u7A7A\u9898")),((Ra=Te==null?void 0:Te.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Ut.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},Ut.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ut.createElement(Re.ZP,{onClick:()=>{ue.isadd?(Yt(!1),hn()):(sn.setFieldsValue(Vt(er({},ue),{standard_answers:ue.standard_answers||[],name:ue.question_title,repeat_answer:!ue.repeat_answer})),Yt(!1))}},"\u53D6\u6D88"),Ut.createElement(dt.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ut.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ut.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Ut.createElement(Re.ZP,{type:"primary",className:"ml20",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),Ut.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ut.createElement(ur.Z,{align:"middle"},Wt?Ut.createElement(qt.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Ut.createElement(xe.default.Item,{key:2,className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Ut.createElement(Se.Z,{onBlur:cn=>{cn.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),Ut.createElement(xe.default.Item,{name:"use_blank_score",noStyle:!0},Ut.createElement(tt.ZP.Group,{className:he.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Ut.createElement(dt.Z,{overlayInnerStyle:{width:460},title:Ut.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Ut.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Ut.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Ut.createElement(Ir.u,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:Wt,answerKey:"standard_answers"}),Ut.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Te,TagDiscipline:ke,form:sn}))))},jr=ne(58452),Nr=ne(59301),Ga=Object.defineProperty,za=Object.defineProperties,An=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,Ki=(ue,ke,Te)=>ke in ue?Ga(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,xt=(ue,ke)=>{for(var Te in ke||(ke={}))Yi.call(ke,Te)&&Ki(ue,Te,ke[Te]);if(rn)for(var Te of rn(ke))$o.call(ke,Te)&&Ki(ue,Te,ke[Te]);return ue},tn=(ue,ke)=>za(ue,An(ke)),Tt=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),Zn=({qitem:ue,setisedit:ke,TagDiscipline:Te,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm();return(0,E.useEffect)(()=>{var Wt;sn.setFieldsValue(tn(xt({},ue),{name:ue.question_title,repeat_answer:!ue.repeat_answer,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(cn=>tn(xt({},cn),{is_answer:cn!=null&&cn.standard_boolean?1:0}))}))},[ue]),Nr.createElement("div",null,Nr.createElement(xe.default,{form:sn,colon:!1,onFinish:Wt=>{var cn,Qn,Yn,Ln;let Hn=(Qn=(cn=Wt==null?void 0:Wt.choices)==null?void 0:cn.map)==null?void 0:Qn.call(cn,(xn,or)=>{if((xn==null?void 0:xn.is_answer)===1)return or+1});_n(tn(xt(xt({},ue),Wt),{question_title:Wt.name,standard_answers:Hn.filter(xn=>xn),question_choices:(Ln=(Yn=Wt==null?void 0:Wt.choices)==null?void 0:Yn.map)==null?void 0:Ln.call(Yn,xn=>xn.choice_text)}))},onFinishFailed:Wt=>Tt(void 0,null,function*(){var cn,Qn;Je.ZP.error(Wt.errorFields[0].errors[0]),sn.scrollToField((Qn=(cn=Wt==null?void 0:Wt.errorFields)==null?void 0:cn[0])==null?void 0:Qn.name,{behavior:"smooth",block:"center"})})},Nr.createElement("div",{style:{display:"flex",alignItems:"center"}},Nr.createElement("div",{style:{flex:1}},Nr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Nr.createElement("span",null,"\u5224\u65AD\u9898")),((Ra=Yt==null?void 0:Yt.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Nr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},Nr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Nr.createElement(Re.ZP,{onClick:()=>{var Wt;ue.isadd?(ke(!1),hn()):(sn.setFieldsValue(tn(xt({},ue),{name:ue.question_title,repeat_answer:!ue.repeat_answer,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(cn=>tn(xt({},cn),{is_answer:cn!=null&&cn.standard_boolean?1:0}))})),ke(!1))}},"\u53D6\u6D88"),Nr.createElement(dt.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Nr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Nr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Nr.createElement(Re.ZP,{type:"primary",className:"ml20",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),Nr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Nr.createElement(xe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Nr.createElement(Se.Z,{onBlur:Wt=>{Wt.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Nr.createElement(jr.Z,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Nr.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Te,form:sn}))))},Gn=ne(8848),yn={wrap:"wrap___m6v_p",deleteIcon:"deleteIcon___hdYRw",keywordTag:"keywordTag___BLtdn",questionTitleEditorWrap:"questionTitleEditorWrap___fdaK7",choiceWrap:"choiceWrap___wkyUO",choiceIndex:"choiceIndex___tExMq",judgementIndex:"judgementIndex___RMhzJ",setAnswerBtn:"setAnswerBtn___bisIK",activeAnswer:"activeAnswer___MnyyC",activeJudgementAnswer:"activeJudgementAnswer___grGX5",actionWrapper:"actionWrapper___LUawU",addIcon:"addIcon___ckXqe",inputBorder:"inputBorder___nuo0O",placeholder:"placeholder___Dhdir",blankWrapper:"blankWrapper___cnidV",blankInput:"blankInput___iZ5BF",blankInputNumberWrapper:"blankInputNumberWrapper___zlXQc",addBtn:"addBtn___OdgAm",blankIndex:"blankIndex___g4Y7d",baseInputWrapper:"baseInputWrapper___DCOHd",collapseWrapper:"collapseWrapper___SyLrk",panelHeader:"panelHeader___E0il1",open:"open___IFH3V",close:"close___YpIA9",hide:"hide___Nl1W6",scoreByBlankRadio:"scoreByBlankRadio___jpG4i"},tr=ne(15945),Mr=Object.defineProperty,Tr=Object.defineProperties,Qa=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,Kr=(ue,ke,Te)=>ke in ue?Mr(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ya=(ue,ke)=>{for(var Te in ke||(ke={}))ta.call(ke,Te)&&Kr(ue,Te,ke[Te]);if(ua)for(var Te of ua(ke))Ua.call(ke,Te)&&Kr(ue,Te,ke[Te]);return ue},qa=(ue,ke)=>Tr(ue,Qa(ke)),ai=(ue,ke)=>{var Te={};for(var Yt in ue)ta.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&ua)for(var Yt of ua(ue))ke.indexOf(Yt)<0&&Ua.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te};const bi=ue=>{var ke=ue,{value:Te,onChange:Yt,scrollId:_n}=ke,yr=ai(ke,["value","onChange","scrollId"]);return E.createElement("div",{id:_n||""},E.createElement(tr.Z,qa(ya({},yr),{defaultValue:Te,onChange:(Pn,hn)=>{console.log("a:",Pn,hn),hn!=null&&hn.length?Yt(Pn,hn):Yt(Pn)}})))},Ba=({value:ue,onChange:ke,placeholder:Te,height:Yt=140,isEdit:_n})=>_n?E.createElement(tr.Z,{watch:!0,isFocus:!0,height:Yt,placeholder:Te,defaultValue:ue,onChange:ke}):E.createElement("div",{style:{cursor:"pointer"}},ue?E.createElement(le.Z,{className:yn.inputBorder,value:ue}):E.createElement("div",{className:`${yn.inputBorder} ${yn.placeholder}`},Te));var ra=ne(5269),eo=Object.defineProperty,wi=Object.defineProperties,Ta=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,_a=(ue,ke,Te)=>ke in ue?eo(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ci=(ue,ke)=>{for(var Te in ke||(ke={}))ki.call(ke,Te)&&_a(ue,Te,ke[Te]);if(oi)for(var Te of oi(ke))ti.call(ke,Te)&&_a(ue,Te,ke[Te]);return ue},Ai=(ue,ke)=>wi(ue,Ta(ke)),Fo=(ue,ke)=>{var Te={};for(var Yt in ue)ki.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&oi)for(var Yt of oi(ue))ke.indexOf(Yt)<0&&ti.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te};const Qi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Hi=({value:ue,onChange:ke,choiceTextKey:Te,answerKey:Yt,index:_n,isEdit:yr,setInputActive:Pn,form:hn,choiceOptionsPath:zt,allowChangeMode:Mn,showAddIcon:Ra,addItem:sn,deleteItem:Wt})=>{const cn=(ue==null?void 0:ue[Yt])===1,Qn=()=>{const Ln=hn.getFieldValue(zt);hn.setFieldValue(zt,Ln.map(Hn=>Ai(ci({},Hn),{[Yt]:0})))},Yn=()=>{cn?ke(Ai(ci({},ue),{[Yt]:0})):(Mn||Qn(),ke(Ai(ci({},ue),{[Yt]:1})))};return E.createElement(ur.Z,{className:yn.choiceWrap,align:"middle",wrap:!1},E.createElement(ra.Z,{onClick:Yn,className:`${yn.choiceIndex} ${cn?yn.activeAnswer:""}`},Qi[_n]),E.createElement(ra.Z,{flex:1,className:`${yn.editorWrap} ml15`,onClick:Pn},E.createElement(Ba,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:yr,value:ue==null?void 0:ue[Te],onChange:Ln=>{ke(Ai(ci({},ue),{[Te]:Ln}))}})),E.createElement(ra.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:Yn,className:`${yn.setAnswerBtn} ${cn?yn.activeAnswer:""}`},cn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),E.createElement(ra.Z,{className:yn.actionWrapper},E.createElement(dt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement(it.Z,{className:yn.addIcon,onClick:sn,style:{visibility:Ra?"visible":"hidden"}})),E.createElement(dt.Z,{title:"\u5220\u9664"},E.createElement(pe.Z,{className:yn.deleteIcon,onClick:Wt,style:{visibility:_n>1?"visible":"hidden"}}))))},oo=({questionTitlePlaceholder:ue,titleKey:ke,choiceKey:Te,analysisKey:Yt,choiceTextKey:_n,answerKey:yr,choiceOptionsPath:Pn,allowChangeMode:hn=!0,form:zt,showAnalysis:Mn=!0})=>{const[Ra,sn]=(0,E.useState)(),[Wt,cn]=(0,E.useState)(!1);return E.createElement("div",{className:yn.wrap},E.createElement("div",{className:yn.questionTitleEditorWrap},E.createElement(xe.default.Item,{label:"\u9898\u5E72",name:ke,labelCol:{span:24},rules:[{required:!0}]},E.createElement(bi,{scrollId:Array.isArray(ke)?ke.join("_"):`${ke}`,watch:!0,height:140,placeholder:ue}))),E.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),E.createElement(xe.default.List,{name:Te,rules:[{validator(Qn,Yn){const Ln=Yn.some(xn=>xn[yr]===1),Hn=Yn.findIndex(xn=>{var or;return((or=xn[_n])==null?void 0:or.length)<=0});return Hn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Qi[Hn]}\u9009\u9879\u7684\u5185\u5BB9`)):Ln?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Qn,{add:Yn,remove:Ln})=>E.createElement("div",{id:Array.isArray(Pn)?Pn.join("_"):`${Pn}`},Qn.map((Hn,xn)=>{var or=Hn,{key:xr,name:lr}=or,xi=Fo(or,["key","name"]);const ro=Ra===xr,Ui=()=>{sn(xr)},Io=xn<14&&xn===Qn.length-1,Or=()=>Yn({[_n]:"",[yr]:0}),_i=()=>Ln(lr);return E.createElement(xe.default.Item,Ai(ci({},xi),{key:xr,name:lr,noStyle:!0}),E.createElement(Hi,{choiceTextKey:_n,answerKey:yr,index:xn,isEdit:ro,setInputActive:Ui,form:zt,choiceOptionsPath:Pn,allowChangeMode:hn,showAddIcon:Io,addItem:Or,deleteItem:_i}))}),Qn.length<15&&E.createElement("div",{className:`${yn.addBtn} mb30`,onClick:()=>Yn({[_n]:"",[yr]:0})},"\u6DFB\u52A0\u9009\u9879"))),Mn&&E.createElement("div",{onClick:()=>cn(!0)},E.createElement(xe.default.Item,{name:Yt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wt}))))};var na=ne(59301),to=Object.defineProperty,Fi=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Jt=(ue,ke,Te)=>ke in ue?to(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,nn=(ue,ke)=>{for(var Te in ke||(ke={}))li.call(ke,Te)&&Jt(ue,Te,ke[Te]);if(Ni)for(var Te of Ni(ke))_e.call(ke,Te)&&Jt(ue,Te,ke[Te]);return ue},Fn=(ue,ke)=>Fi(ue,Oo(ke)),Zt=(ue,ke)=>{var Te={};for(var Yt in ue)li.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&Ni)for(var Yt of Ni(ue))ke.indexOf(Yt)<0&&_e.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te};const Xt=({value:ue,onChange:ke,position:Te,removeBlank:Yt})=>{const _n=Pn=>{qe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:yn.modal,onOk:()=>{const hn=[...ue];hn.splice(Pn,1),hn.length===0?Yt(Te-1):ke(hn)}})},yr=()=>{const Pn=[...ue];Pn.push(""),ke(Pn)};return na.createElement(ur.Z,{className:"ml20"},na.createElement(ra.Z,{flex:1},ue==null?void 0:ue.map((Pn,hn)=>na.createElement(ur.Z,{key:`${Pn}_${hn}`,className:"mb20"},na.createElement(Ae.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Pn,autoSize:{maxRows:3},maxLength:1e3,onBlur:zt=>{const Mn=[...ue],Ra=zt.target.value.trim();Mn[hn]=Ra,ke(Mn)}}),na.createElement(dt.Z,{title:"\u5220\u9664"},na.createElement(pe.Z,{className:yn.deleteIcon,style:{marginLeft:15,visibility:Te===1&&hn===0?"hidden":"visible"},onClick:()=>_n(hn)})),na.createElement(dt.Z,{title:"\u65B0\u589E\u7B54\u6848"},na.createElement(it.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:hn===0?"visible":"hidden"},onClick:()=>{yr()}}))))))},an=({value:ue=!0,onChange:ke})=>na.createElement(sr.Z,{checked:!ue,onChange:Te=>{ke(!Te)}}),Qt=({questionTitlePlaceholder:ue,form:ke,name:Te,scoreByBlank:Yt,answerKey:_n,titleKey:yr="name",analysisKey:Pn="analysis",isOrdered:hn="is_ordered"})=>{var zt,Mn;const[Ra,sn]=(0,E.useState)(!1),Wt=()=>{const xn=ke.getFieldValue(["sub_item_banks",..._n]);ke.setFieldValue(["sub_item_banks",..._n],xn==null?void 0:xn.map((or,xr)=>Fn(nn({},or),{position:xr+1})))},cn=(0,E.useRef)(),Qn=(xn,or)=>{for(let xr=0;xr{Yn.current(xn),Wt()},Hn=(Mn=(zt=ke.getFieldValue("sub_item_banks"))==null?void 0:zt[_n==null?void 0:_n[0]])==null?void 0:Mn[_n==null?void 0:_n[1]];return na.createElement("div",{className:yn.wrap},na.createElement("div",{className:yn.questionTitleEditorWrap},na.createElement(xe.default.Item,{label:"\u9898\u5E72",name:yr,labelCol:{span:24},rules:[{required:!0}]},na.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue,showNullButton:!0,onAddBlank:()=>{const xn=ke.getFieldValue(["sub_item_banks",..._n]);Qn(1,xn==null?void 0:xn.length)}}))),na.createElement(xe.default.List,{name:_n,rules:[{validator(xn,or){if((or==null?void 0:or.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const xr of or){const{answer_text:lr}=xr||{};if(lr!=null&&lr.some(xi=>(xi==null?void 0:xi.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(xn,{add:or,remove:xr},{errors:lr})=>(cn.current=or,Yn.current=xr,na.createElement(na.Fragment,null,na.createElement(xe.default.Item,{label:na.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),xn.map((xi,ro)=>{var Ui=xi,{key:Io,name:Or}=Ui,_i=Zt(Ui,["key","name"]);return na.createElement(ur.Z,{key:Io,align:"top"},na.createElement(ra.Z,{flex:"0 0 auto",className:`${yn.blankIndex} pt5`},"\u586B\u7A7A\u9879",ro+1),na.createElement(ra.Z,{flex:1},na.createElement(ur.Z,{align:"top",justify:"space-between"},na.createElement(ra.Z,{flex:1},na.createElement(xe.default.Item,Fn(nn({},_i),{name:[Or,"answer_text"],noStyle:!0}),na.createElement(Xt,{removeBlank:Ln,position:ro+1}))),(ke==null?void 0:ke.getFieldValue(["sub_item_banks",...Yt]))&&na.createElement(ra.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},na.createElement(xe.default.Item,Fn(nn({},_i),{name:[Or,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yn.blankInputNumberWrapper}),na.createElement(Se.Z,{onChange:()=>{var Gi,ir;let Eo=ke==null?void 0:ke.getFieldValue(["sub_item_banks",_n==null?void 0:_n[0],"standard_answers"]),Uo=0;for(let No in Eo)(Gi=Eo[No])!=null&&Gi.score&&(Uo+=Number((ir=Eo[No])==null?void 0:ir.score));ke==null||ke.setFieldValue(["sub_item_banks",_n==null?void 0:_n[0],"question_score"],Uo)},className:yn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),na.createElement(xe.default.Item,Fn(nn({},_i),{name:[Or,"position"],noStyle:!0}),na.createElement(Ae.default,{type:"hidden"}))))})))),na.createElement(Re.ZP,{className:"mb20",onClick:()=>Qn(1,Hn==null?void 0:Hn.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),na.createElement(ur.Z,{align:"middle"},na.createElement(xe.default.Item,{name:[Te,"downcase"],valuePropName:"checked"},na.createElement(sr.Z,null)),na.createElement(ra.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),na.createElement(ur.Z,{align:"middle"},na.createElement(xe.default.Item,{name:[Te,"no_space"],valuePropName:"checked"},na.createElement(sr.Z,null)),na.createElement(ra.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Hn==null?void 0:Hn.length)>1&&na.createElement(ur.Z,{align:"middle",className:(Hn==null?void 0:Hn.length)>1?"mb30":`${yn.hide}`},na.createElement(xe.default.Item,{name:hn},na.createElement(an,null)),na.createElement(ra.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),na.createElement("div",{onClick:()=>sn(!0)},na.createElement(xe.default.Item,{name:Pn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},na.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ra}))))};var en=Object.defineProperty,Wn=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,ca=(ue,ke,Te)=>ke in ue?en(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,La=(ue,ke)=>{for(var Te in ke||(ke={}))cr.call(ke,Te)&&ca(ue,Te,ke[Te]);if(pr)for(var Te of pr(ke))Xr.call(ke,Te)&&ca(ue,Te,ke[Te]);return ue},Pa=(ue,ke)=>Wn(ue,fr(ke)),Xi=(ue,ke)=>{var Te={};for(var Yt in ue)cr.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&pr)for(var Yt of pr(ue))ke.indexOf(Yt)<0&&Xr.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te};const ji={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Do=({value:ue,onChange:ke,form:Te,choiceKey:Yt})=>{const _n=(ue==null?void 0:ue.is_answer)===1,yr=ue==null?void 0:ue.choice_text,Pn=()=>{var hn;const zt=(hn=Te==null?void 0:Te.getFieldValue(["sub_item_banks",...Yt]))==null?void 0:hn.map(Mn=>({choice_text:Mn.choice_text,is_answer:0}));Te==null||Te.setFieldValue(["sub_item_banks",...Yt],zt),ke(Pa(La({},ue),{is_answer:1}))};return E.createElement(ur.Z,{className:yn.choiceWrap,align:"middle",wrap:!1},E.createElement(ra.Z,{onClick:Pn,className:`${yn.choiceIndex} ${yn.judgementIndex} ${_n?yn.activeAnswer:""}`},ji[yr]),E.createElement(ra.Z,{flex:1,className:`${yn.editorWrap} ml15`},E.createElement("div",{className:`${yn.inputBorder} ${yn.placeholder} ${_n?yn.activeJudgementAnswer:""}`},yr)),E.createElement(ra.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:Pn,className:`${yn.setAnswerBtn} ${_n?yn.activeAnswer:""}`},_n?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},dl=({questionTitlePlaceholder:ue,choiceKey:ke="choices",form:Te,titleKey:Yt="name",analysisKey:_n="analysis"})=>{const[yr,Pn]=(0,E.useState)(!1);return E.createElement("div",{className:yn.wrap},E.createElement("div",{className:yn.questionTitleEditorWrap},E.createElement(xe.default.Item,{label:"\u9898\u5E72",name:Yt,labelCol:{span:24},rules:[{required:!0}]},E.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),E.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},E.createElement(xe.default.List,{name:ke,rules:[{validator(hn,zt){return zt.some(Ra=>(Ra==null?void 0:Ra.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},hn=>E.createElement("div",{id:"choices"},hn.map(zt=>{var Mn=zt,{key:Ra,name:sn}=Mn,Wt=Xi(Mn,["key","name"]);return E.createElement(xe.default.Item,Pa(La({},Wt),{key:Ra,name:sn,noStyle:!0}),E.createElement(Do,{form:Te,choiceKey:ke}))})))),E.createElement("div",{onClick:()=>Pn(!0)},E.createElement(xe.default.Item,{name:_n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yr}))))};var al=ne(96599),Xo={ai_config:"ai_config___cJ8LY",znpy:"znpy___RTAAN",pfbz_ts:"pfbz_ts___ux6Ec",btns_pfbz:"btns_pfbz___QFXM_",lable_name1:"lable_name1___c_vnV",h_lh_40:"h_lh_40___ptAW7"},bl=ne(16651),Ao=ne(15239),mo=ne(59301);const Rl=({qitem:ue,form:ke,exercise:Te,loading:Yt,dispatch:_n,aiReviewSettings:yr=null})=>mo.createElement("div",{className:Xo.ai_config},mo.createElement("div",{style:{lineHeight:"32px",paddingBottom:8}},"\u8BC4\u5206\u6807\u51C6"),mo.createElement("div",{className:Xo.pfbz_ts},mo.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),mo.createElement("div",{className:"flex"},mo.createElement("div",{className:Xo.btns_pfbz,onClick:()=>{_n({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:ue==null?void 0:ue.question_id,ai_review_settings:ke.getFieldValue(yr||"ai_review_settings")}})}},mo.createElement("img",{src:bl.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),mo.createElement("div",{style:{background:"#F6F7F9"}},mo.createElement(xe.default.List,{name:yr||"ai_review_settings"},(Pn,{add:hn,remove:zt})=>Pn.map((Mn,Ra)=>{var sn;return mo.createElement(ur.Z,{key:Mn.key,style:{padding:"5px 10px 5px 15px"}},mo.createElement(ra.Z,{className:Xo.lable_name1},"\u8BC4\u5206\u70B9"),mo.createElement(ra.Z,null,mo.createElement(xe.default.Item,{className:"ml10",name:[Mn.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},mo.createElement(Ae.default,{onChange:Wt=>{ke.setFieldValue([Mn.name,"content"],Wt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:142},maxLength:10,className:"mr15"}))),mo.createElement(ra.Z,{className:Xo.lable_name1},"\u8BC4\u5206\u6807\u51C6"),mo.createElement(ra.Z,null,mo.createElement(xe.default.Item,{className:"ml10",name:[Mn.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},mo.createElement(Ae.default,{onChange:Wt=>{ke.setFieldValue([Mn.name,"content"],Wt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:yr?232:318},className:"mr15",maxLength:500}))),mo.createElement(ra.Z,{className:Xo.lable_name1},"\u6743\u91CD"),mo.createElement(ra.Z,null,mo.createElement(xe.default.Item,{className:"ml10",name:[Mn.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},mo.createElement(Se.Z,{value:ke.getFieldValue([Mn.name,"weight"]),onChange:Wt=>{Number.isInteger(Wt)||ke.setFieldValue([Mn.name,"weight"],parseFloat(Wt).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),mo.createElement(ur.Z,{className:(sn=Xo)==null?void 0:sn.h_lh_40},mo.createElement(ra.Z,null,mo.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(Pn.length>=10)return Je.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");hn()}})),Ra>0&&mo.createElement(ra.Z,null,mo.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{zt(Mn.name)}}))))}))),mo.createElement(Ao.Z,null));var Cl=(0,ve.connect)(({exercise:ue,loading:ke})=>({exercise:ue,loading:ke.effects}))(Rl),Zl=Object.defineProperty,ql=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,vl=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,os=Object.prototype.propertyIsEnumerable,Os=(ue,ke,Te)=>ke in ue?Zl(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,Gl=(ue,ke)=>{for(var Te in ke||(ke={}))zo.call(ke,Te)&&Os(ue,Te,ke[Te]);if(vl)for(var Te of vl(ke))os.call(ke,Te)&&Os(ue,Te,ke[Te]);return ue},As=(ue,ke)=>ql(ue,Fl(ke)),Fs=(ue,ke)=>{var Te={};for(var Yt in ue)zo.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&vl)for(var Yt of vl(ue))ke.indexOf(Yt)<0&&os.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te};const Js=ue=>{var ke=ue,{value:Te,onChange:Yt}=ke,_n=Fs(ke,["value","onChange"]);const yr=Pn=>{Yt([Pn])};return E.createElement(tr.Z,As(Gl({},_n),{defaultValue:Te==null?void 0:Te[0],onChange:yr}))},Ms=ue=>{if(!ue)return!1;let ke=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ue==="|"?(Je.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Gs=({value:ue=[],onClose:ke})=>E.createElement(al.default,{closable:!0,onClose:ke,className:yn.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ue.join(" \u6216 "))),Po=({questionTitlePlaceholder:ue,form:ke,showKeywords:Te,isMustKeyWords:Yt=Te,titleKey:_n="name",analysisKey:yr="analysis",answerTexts:Pn="answer_texts",keywords:hn="keywords",useKeywords:zt="use_keywords",indexs:Mn,qitem:Ra,exerciseitem:sn,aiReviewSettings:Wt})=>{var cn,Qn,Yn,Ln,Hn;const[xn,or]=(0,E.useState)(!1),[xr,lr]=(0,E.useState)(""),xi=(Qn=(cn=ke.getFieldValue("sub_item_banks"))==null?void 0:cn[zt==null?void 0:zt[0]])==null?void 0:Qn[zt==null?void 0:zt[1]],ro=(Ln=(Yn=ke.getFieldValue("sub_item_banks"))==null?void 0:Yn[zt==null?void 0:zt[0]])==null?void 0:Ln.question_score;return E.createElement("div",{className:yn.wrap},E.createElement("div",{className:yn.questionTitleEditorWrap},E.createElement(xe.default.Item,{label:"\u9898\u5E72",name:_n,labelCol:{span:24},rules:[{required:!0}]},E.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),E.createElement(xe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Pn,labelCol:{span:24}},E.createElement(Js,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Te&&!Yt&&E.createElement(xe.default.Item,{hidden:!0,name:zt,valuePropName:"checked"},E.createElement(sr.Z,{defaultChecked:!0})),Te&&Yt&&E.createElement(ur.Z,{align:"middle",className:"mb30"},E.createElement(xe.default.Item,{name:zt,valuePropName:"checked"},E.createElement(sr.Z,null)),E.createElement(ra.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(ra.Z,null,E.createElement(dt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(un.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(xi||!Yt)&&E.createElement(xe.default.List,{name:hn,rules:[{validator(Ui,Io){return Yt?Io!=null&&Io.length?(Io==null?void 0:Io.reduce((_i,Gi)=>_i+Gi.score,0))>parseFloat(ro)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ui,{add:Io,remove:Or})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${yn.title} mb10`},Yt?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(ur.Z,{align:"middle",className:"font14 mb30"},E.createElement(ra.Z,{flex:1},E.createElement(Ae.default,{value:xr,onChange:_i=>{lr(_i.target.value)},maxLength:50,allowClear:!0,onPressEnter:_i=>{var Gi,ir,Eo,Uo;const No=`${(Gi=_i.target)==null?void 0:Gi.value}`,$n=(Eo=(ir=No==null?void 0:No.split("|"))==null?void 0:ir.filter(Qo=>!!Qo))==null?void 0:Eo.map(Qo=>Qo==null?void 0:Qo.trim()),pi=ke.getFieldValue(["sub_item_banks",...hn]),yi=((Uo=pi==null?void 0:pi.map(Qo=>Qo==null?void 0:Qo.keyword))==null?void 0:Uo.flat())||[];for(const Qo of $n)if(yi.includes(Qo)){Je.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ms(No)&&(Io({keyword:$n,score:1}),lr(""))},className:yn.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(ra.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ui.map(_i=>{var Gi=_i,{key:ir,name:Eo}=Gi,Uo=Fs(Gi,["key","name"]);return E.createElement(ur.Z,{key:ir,className:"mb20",style:{marginRight:148}},E.createElement(ra.Z,{flex:1},E.createElement(ur.Z,{align:"middle",justify:"space-between"},E.createElement(xe.default.Item,As(Gl({},Uo),{name:[Eo,"keyword"]}),E.createElement(Gs,{onClose:()=>Or(Eo)})),Yt&&E.createElement(xe.default.Item,As(Gl({},Uo),{name:[Eo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yn.blankInputNumberWrapper}),E.createElement(Se.Z,{className:yn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>or(!0)},E.createElement(xe.default.Item,{name:yr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xn}))),((Hn=sn==null?void 0:sn.exercise)==null?void 0:Hn.is_open_ai_review)&&E.createElement(Cl,{form:ke,qitem:Ra,aiReviewSettings:Wt}))};var zr=ne(59301),Ci=Object.defineProperty,xo=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,wo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Bl=(ue,ke,Te)=>ke in ue?Ci(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ls=(ue,ke)=>{for(var Te in ke||(ke={}))wo.call(ke,Te)&&Bl(ue,Te,ke[Te]);if(Mi)for(var Te of Mi(ke))Mo.call(ke,Te)&&Bl(ue,Te,ke[Te]);return ue},yl=(ue,ke)=>xo(ue,kl(ke)),$l=(ue,ke)=>{var Te={};for(var Yt in ue)wo.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&Mi)for(var Yt of Mi(ue))ke.indexOf(Yt)<0&&Mo.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te};const{Panel:Ti}=Gn.default,Bs=({questionTitlePlaceholder:ue,choiceKey:ke,form:Te,withScore:Yt,exerciseitem:_n})=>{const yr=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[Pn,hn]=(0,E.useState)(),[zt,Mn]=(0,E.useState)([]),Ra=Wt=>{Mn(Wt)},sn=({value:Wt})=>zr.createElement("div",{style:{width:150,paddingLeft:11}},Wt);return zr.createElement("div",{className:yn.wrap},zr.createElement("div",{className:yn.questionTitleEditorWrap},zr.createElement(xe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},zr.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),zr.createElement(xe.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),zr.createElement(xe.default.List,{name:"sub_item_banks",rules:[{validator(Wt,cn){return cn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Wt,{add:cn,remove:Qn,move:Yn})=>{const Ln=Te.getFieldValue("sub_item_banks");return zr.createElement(zr.Fragment,null,zr.createElement(Gn.default,{className:Wt.length>0?yn.collapseWrapper:"",bordered:!1,activeKey:zt,onChange:Ra,expandIcon:({isActive:Hn})=>zr.createElement("i",{className:`iconfont icon-weizhankai ${Hn?yn.open:yn.close}`,style:{fontSize:14,transition:"all .2s"}})},Wt.map((Hn,xn)=>{var or=Hn,{key:xr,name:lr}=or,xi=$l(or,["key","name"]),ro,Ui,Io,Or,_i,Gi,ir,Eo,Uo,No,$n,pi,yi,Qo;return zr.createElement(Ti,{className:yn.panel,forceRender:!0,header:zr.createElement("div",{className:yn.panelHeader},"\u7B2C",xn+1,"\u5C0F\u9898",zr.createElement("span",null,"\uFF08",((ro=Ln==null?void 0:Ln[lr])==null?void 0:ro.question_type)==0?"\u5355\u9009\u9898":((Ui=Ln==null?void 0:Ln[lr])==null?void 0:Ui.question_type)==1?"\u591A\u9009\u9898":((Io=Ln==null?void 0:Ln[lr])==null?void 0:Io.question_type)==3?"\u586B\u7A7A\u9898":((Or=Ln==null?void 0:Ln[lr])==null?void 0:Or.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:lr,extra:zr.createElement(ur.Z,{align:"middle",onClick:Jo=>Jo.stopPropagation()},((_i=Ln==null?void 0:Ln[lr])==null?void 0:_i.question_type)==3&&zr.createElement(zr.Fragment,null,zr.createElement(tt.ZP.Group,{defaultValue:(Gi=Ln==null?void 0:Ln[lr])==null?void 0:Gi.use_blank_score,className:he.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Jo=>{var il,bo,ol,pl,Lo;if(Te==null||Te.setFieldValue(["sub_item_banks",lr,"use_blank_score"],(il=Jo==null?void 0:Jo.target)==null?void 0:il.value),(bo=Jo==null?void 0:Jo.target)!=null&&bo.value){let To=0;for(let hl in(ol=Te==null?void 0:Te.getFieldValue(["sub_item_banks",lr]))==null?void 0:ol.standard_answers)To+=Number((Lo=(pl=Te==null?void 0:Te.getFieldValue(["sub_item_banks",lr]))==null?void 0:pl.standard_answers[hl])==null?void 0:Lo.score);Te==null||Te.setFieldValue(["sub_item_banks",lr,"question_score"],To||"")}hn(new Date)}}),zr.createElement(dt.Z,{overlayInnerStyle:{width:460},title:zr.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",zr.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},zr.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),Yt&&zr.createElement(xe.default.Item,yl(ls({},xi),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[lr,"question_score"],className:yn.blankInputNumberWrapper}),((ir=Ln==null?void 0:Ln[lr])==null?void 0:ir.question_type)==3&&((Eo=Ln==null?void 0:Ln[lr])!=null&&Eo.use_blank_score)?zr.createElement(sn,null):zr.createElement(Se.Z,{className:yn.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),zr.createElement(ur.Z,{align:"middle",className:"pl40",style:{width:82}},xn!==0&&zr.createElement("div",{onClick:()=>{var Jo;Yn(xn,xn-1);const il=(Jo=Te.getFieldValue("sub_item_banks"))==null?void 0:Jo.map((bo,ol)=>(Wt.map((pl,Lo)=>{ol===Lo&&(bo.q_position=Number(pl.name)+1)}),bo));Te.setFieldValue("sub_item_banks",il)}},zr.createElement(dt.Z,{title:"\u4E0A\u79FB"},zr.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),xn{var Jo;Yn(xn,xn+1);const il=(Jo=Te.getFieldValue("sub_item_banks"))==null?void 0:Jo.map((bo,ol)=>(Wt.map((pl,Lo)=>{ol===Lo&&(bo.q_position=Number(pl.name)+1)}),bo));Te.setFieldValue("sub_item_banks",il)},className:xn===0?"":"ml10"},zr.createElement(dt.Z,{title:"\u4E0B\u79FB"},zr.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),zr.createElement(dt.Z,{title:"\u5220\u9664"},zr.createElement(pe.Z,{className:`${yn.deleteIcon} ml40`,onClick:()=>Qn(lr)})))},zr.createElement(xe.default.Item,yl(ls({},xi),{name:lr}),(((Uo=Ln==null?void 0:Ln[lr])==null?void 0:Uo.question_type)==0||((No=Ln==null?void 0:Ln[lr])==null?void 0:No.question_type)==1)&&zr.createElement(oo,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:(($n=Ln==null?void 0:Ln[lr])==null?void 0:$n.question_type)==1,form:Te,choiceKey:[lr,"choices"],titleKey:[lr,"name"],analysisKey:[lr,"analysis"],choiceOptionsPath:["sub_item_banks",lr,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((pi=Ln==null?void 0:Ln[lr])==null?void 0:pi.question_type)==3&&zr.createElement(Qt,{form:Te,name:lr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[lr,"use_blank_score"],titleKey:[lr,"name"],analysisKey:[lr,"analysis"],isOrdered:[lr,"is_ordered"],answerKey:[lr,"standard_answers"],key:Pn}),((yi=Ln==null?void 0:Ln[lr])==null?void 0:yi.question_type)==2&&zr.createElement(dl,{form:Te,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[lr,"name"],analysisKey:[lr,"analysis"],choiceKey:[lr,"choices"]}),((Qo=Ln==null?void 0:Ln[lr])==null?void 0:Qo.question_type)==4&&zr.createElement(Po,{showKeywords:!0,isMustKeyWords:!0,form:Te,titleKey:[lr,"name"],analysisKey:[lr,"analysis"],answerTexts:[lr,"answer_texts"],useKeywords:[lr,"use_keywords"],keywords:[lr,"keywords"],aiReviewSettings:[lr,"ai_review_settings"],indexs:lr,qitem:Ln==null?void 0:Ln[lr],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:_n})))})),Wt.length<20&&zr.createElement(dn.Z,{menu:{items:[{label:zr.createElement("div",{onClick:()=>{cn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Hn=>Hn.show).map(Hn=>({label:Hn.label,key:Hn.key}))}},zr.createElement("div",{className:`${yn.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var fl=ne(59301),es=Object.defineProperty,ps=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,qs=(ue,ke,Te)=>ke in ue?es(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ms=(ue,ke)=>{for(var Te in ke||(ke={}))hs.call(ke,Te)&&qs(ue,Te,ke[Te]);if(Ts)for(var Te of Ts(ke))Ls.call(ke,Te)&&qs(ue,Te,ke[Te]);return ue},vs=(ue,ke)=>ps(ue,Sl(ke)),$u=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),nu=({qitem:ue,setisedit:ke,TagDiscipline:Te,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm(),{unified_ai_setting:Wt,ai_review_settings:cn}=Yt==null?void 0:Yt.exercise;(0,E.useEffect)(()=>{var Yn;sn.setFieldsValue(vs(ms({},ue),{name:ue.question_title,sub_item_banks:(Yn=ue.sub_exercise_questions)==null?void 0:Yn.map(Ln=>{var Hn,xn;if(Ln.question_type==4){const or=Wt?cn:((Hn=Ln==null?void 0:Ln.ai_review_settings)==null?void 0:Hn.length)>0?Ln.ai_review_settings:cn;Ln.ai_review_settings=or}return vs(ms({},Ln),{name:Ln.question_title,choices:(xn=Ln==null?void 0:Ln.question_choices)==null?void 0:xn.map(or=>vs(ms({},or),{is_answer:or!=null&&or.standard_boolean?1:0}))})}),repeat_answer:!ue.repeat_answer}))},[ue]);const Qn=Yn=>{if(!(Yn!=null&&Yn.length))return!1;const Ln=Yn.map(xn=>{var or;return(or=xn.choice_text)==null?void 0:or.trim().replace(/^\s+|\s+$/g,"")});return new Set(Ln).size!==Ln.length};return fl.createElement("div",null,fl.createElement(xe.default,{form:sn,colon:!1,onValuesChange:(Yn,Ln)=>{var Hn,xn,or,xr;if(Yn!=null&&Yn.sub_item_banks){let lr=((Hn=sn.getFieldValue("sub_item_banks"))==null?void 0:Hn.length)>0&&((or=(xn=sn.getFieldValue("sub_item_banks"))==null?void 0:xn.map(xi=>{var ro;if(xi.question_type==3&&(xi!=null&&xi.use_blank_score)){let Ui=0;for(let Io in xi==null?void 0:xi.standard_answers)Ui+=Number((ro=xi==null?void 0:xi.standard_answers[Io])==null?void 0:ro.score);return Ui}else return xi.question_score}))==null?void 0:or.filter(xi=>xi));(lr==null?void 0:lr.length)>0&&sn.setFieldsValue({question_score:(xr=parseFloat(lr.reduce((xi,ro)=>parseFloat(xi)+parseFloat(ro))))==null?void 0:xr.toFixed(1)})}},onFinish:Yn=>{var Ln,Hn;if((Ln=Yn.sub_item_banks)==null?void 0:Ln.some(or=>or.question_type===0||or.question_type===1?Qn(or.choices):!1)){Je.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}_n(vs(ms(ms({},ue),Yn),{question_title:Yn.name,sub_questions:(Hn=Yn==null?void 0:Yn.sub_item_banks)==null?void 0:Hn.map(or=>{var xr,lr,xi,ro;return(or==null?void 0:or.question_type)==3?vs(ms({},or),{question_title:or.name,item_type:or==null?void 0:or.question_type}):vs(ms({},or),{question_title:or.name,question_choices:(lr=(xr=or==null?void 0:or.choices)==null?void 0:xr.map)==null?void 0:lr.call(xr,Ui=>Ui.choice_text),standard_answers:(ro=(xi=or==null?void 0:or.choices)==null?void 0:xi.map)==null?void 0:ro.call(xi,(Ui,Io)=>(Ui==null?void 0:Ui.is_answer)===1&&Io+1).filter(Ui=>Ui),item_type:or==null?void 0:or.question_type})})}))},onFinishFailed:Yn=>$u(void 0,null,function*(){var Ln,Hn;Je.ZP.error(Yn.errorFields[0].errors[0]),sn.scrollToField((Hn=(Ln=Yn==null?void 0:Yn.errorFields)==null?void 0:Ln[0])==null?void 0:Hn.name,{behavior:"smooth",block:"center"})})},fl.createElement("div",{style:{display:"flex",alignItems:"center"}},fl.createElement("div",{style:{flex:1}},fl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),fl.createElement("span",null,"\u7EC4\u5408\u9898")),((Ra=Yt==null?void 0:Yt.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&fl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},fl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),fl.createElement(Re.ZP,{onClick:()=>{var Yn;ue.isadd?(ke(!1),hn()):(sn.setFieldsValue(vs(ms({},ue),{name:ue.question_title,sub_item_banks:(Yn=ue.sub_exercise_questions)==null?void 0:Yn.map(Ln=>{var Hn;return vs(ms({},Ln),{name:Ln.question_title,choices:(Hn=Ln==null?void 0:Ln.question_choices)==null?void 0:Hn.map(xn=>vs(ms({},xn),{is_answer:xn!=null&&xn.standard_boolean?1:0}))})}),repeat_answer:!ue.repeat_answer})),ke(!1))}},"\u53D6\u6D88"),fl.createElement(dt.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:fl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},fl.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},fl.createElement(Re.ZP,{className:"ml20",type:"primary",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),fl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},fl.createElement(qt.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),fl.createElement(Bs,{form:sn,withScore:!0,choiceKey:"",exerciseitem:Yt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),fl.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Te,form:sn}))))},Rs=ne(82772),el=ne(59301),zu=Object.defineProperty,xu=Object.defineProperties,lu=Object.getOwnPropertyDescriptors,su=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable,ku=(ue,ke,Te)=>ke in ue?zu(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,Il=(ue,ke)=>{for(var Te in ke||(ke={}))ru.call(ke,Te)&&ku(ue,Te,ke[Te]);if(su)for(var Te of su(ke))ts.call(ke,Te)&&ku(ue,Te,ke[Te]);return ue},ss=(ue,ke)=>xu(ue,lu(ke)),uu=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),au=({qitem:ue,setqitem:ke,setisedit:Te,TagDiscipline:Yt,exerciseitem:_n,seveeditor:yr,deleteitem:Pn,showTip:hn,saveLoading:zt=!1})=>{var Mn,Ra;const[sn]=xe.default.useForm();return(0,E.useEffect)(()=>{var Wt,cn;sn.setFieldsValue(ss(Il({},ue),{name:ue==null?void 0:ue.question_title,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(Qn=>ss(Il({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ue.shixun=(cn=ue==null?void 0:ue.shixun)==null?void 0:cn.map(Qn=>ss(Il({},Qn),{defaultscore:Qn.challenge_score}))},[]),el.createElement("div",null,el.createElement(xe.default,{form:sn,colon:!1,onFinish:Wt=>{var cn,Qn;let Yn=ss(Il({},Wt),{question_scores:(cn=ue==null?void 0:ue.shixun)==null?void 0:cn.map(Ln=>Ln.challenge_score),item_type:ue==null?void 0:ue.question_type,choices:(Qn=Wt==null?void 0:Wt.choices)==null?void 0:Qn.map(Ln=>ss(Il({},Ln),{is_answer:Ln.standard_boolean}))});yr(Il(Il({},ue),Yn))},onFinishFailed:Wt=>uu(void 0,null,function*(){var cn,Qn;Je.ZP.error(Wt.errorFields[0].errors[0]),sn.scrollToField((Qn=(cn=Wt==null?void 0:Wt.errorFields)==null?void 0:cn[0])==null?void 0:Qn.name,{behavior:"smooth",block:"center"})})},el.createElement("div",{style:{display:"flex",alignItems:"center"}},el.createElement("div",{style:{flex:1}},el.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),el.createElement("span",null,"\u5B9E\u8BAD\u9898")),((Mn=_n==null?void 0:_n.exercise)==null?void 0:Mn.exercise_status)==1&&!(ue!=null&&ue.isadd)&&el.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Pn()}},el.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),el.createElement(Re.ZP,{onClick:()=>{var Wt,cn;sn.setFieldsValue(ss(Il({},ue),{name:ue==null?void 0:ue.question_title,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(Qn=>ss(Il({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ue.shixun=(cn=ue==null?void 0:ue.shixun)==null?void 0:cn.map(Qn=>ss(Il({},Qn),{challenge_score:Qn.defaultscore})),ke(Il({},ue)),Te(!1)}},"\u53D6\u6D88"),el.createElement(dt.Z,{overlayClassName:he.shake,open:hn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:el.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},el.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},el.createElement(Re.ZP,{className:"ml20",type:"primary",onClick:()=>uu(void 0,null,function*(){var Wt,cn,Qn;if(((cn=(Wt=ue==null?void 0:ue.shixun)==null?void 0:Wt.map)==null?void 0:cn.call(Wt,Yn=>Yn.challenge_score).filter(Yn=>Yn).length)<((Qn=ue==null?void 0:ue.shixun)==null?void 0:Qn.length)){Je.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}sn.submit()}),loading:zt},"\u4FDD\u5B58"))),el.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},el.createElement(qt.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),el.createElement(xe.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},el.createElement(tr.Z,{watch:!0,height:140,placeholder:"",defaultValue:ue.question_title})),el.createElement(ur.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},el.createElement("div",null,el.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),el.createElement("a",{href:`/shixuns/${(0,Rs.G5)()?ue.forked_shixun_identifier:ue==null?void 0:ue.shixun_identifier}/challenges?exercise=true`,target:"_blank"},el.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(Ra=ue==null?void 0:ue.shixun)==null?void 0:Ra.map((Wt,cn)=>el.createElement("div",{style:{display:"flex",marginBottom:20}},el.createElement("div",{style:{flex:1}},cn+1,"\u3001",Wt.challenge_name),el.createElement("div",null,el.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",el.createElement(Se.Z,{precision:1,value:Wt==null?void 0:Wt.challenge_score,onChange:Qn=>{const Yn=JSON.parse(JSON.stringify((ue==null?void 0:ue.shixun)||[]));Yn[cn].challenge_score=Qn;const Ln=Yn.every(xn=>!xn.challenge_score),Hn=parseFloat(Yn==null?void 0:Yn.map(xn=>xn.challenge_score).reduce((xn,or)=>parseFloat(xn||0)+parseFloat(or||0)));sn.setFieldsValue({question_score:Ln?"":Hn.toFixed(1)}),ke(ss(Il({},ue),{shixun:Yn}))},max:200,min:.1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},da={flex_box_center:"flex_box_center___Vhtb1",flex_space_between:"flex_space_between___k2ZrJ",flex_box_vertical_center:"flex_box_vertical_center___tn6Db",flex_box_center_end:"flex_box_center_end___k3eNX",flex_box_column:"flex_box_column___rsWbi",warp:"warp___UlRJc",indexTag:"indexTag___rjJ1u",normalWrap:"normalWrap___Qm4zY",redio:"redio___VW3yr",redioitem:"redioitem___jAPlJ",redioitemyes:"redioitemyes___VoiQ1",title:"title___Dt2dl",titleyes:"titleyes___Fjh3a",yestag:"yestag___CXrPv",checkbox:"checkbox___CgMU_",checkboxitem:"checkboxitem___PpJ9n",checkboxitemyes:"checkboxitemyes___pCfvZ",bottom:"bottom___BqrmJ",bottomitem:"bottomitem___Qk2rG",left:"left___l29lW",right:"right___nB1XE",completion:"completion___y1m7L",content:"content___AmQy4",items:"items___lIt8e",simple:"simple___zxJLH",shixunWrapper:"shixunWrapper___kAYdL",shixun:"shixun___UE6xS",score:"score___Px5Fq",qtitle:"qtitle___wG7Nn",program:"program___gzKdL",combination:"combination___R0ysn",qtype:"qtype___U0Suy",divname:"divname___guDo9"},wu=ne(70858),Uu=ne(28618),Yl=ne(24334),gr=ne(59301);const _s=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Fu=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var Ou=({qitem:ue,exercise:ke})=>{var Te,Yt,_n,yr,Pn,hn,zt,Mn,Ra,sn,Wt,cn,Qn,Yn,Ln,Hn,xn,or,xr,lr,xi,ro,Ui,Io;return gr.createElement("div",{className:da.warp},((ue==null?void 0:ue.question_type)===0||(ue==null?void 0:ue.question_type)===2)&&gr.createElement("div",{className:da.normalWrap},(Te=ue==null?void 0:ue.question_choices)==null?void 0:Te.map((Or,_i)=>gr.createElement("div",{className:da.redio},!(Or!=null&&Or.standard_boolean)&&gr.createElement("span",{className:da.redioitem}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("i",{className:`${da.redioitemyes} icon-duigou1`}),gr.createElement("span",{className:`${Or!=null&&Or.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},(ue==null?void 0:ue.question_type)===0?_s[_i]:""),gr.createElement(le.Z,{className:Or!=null&&Or.standard_boolean?da.titleyes:da.title,value:Or==null?void 0:Or.choice_text}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===1&&gr.createElement("div",{className:da.normalWrap},(Yt=ue==null?void 0:ue.question_choices)==null?void 0:Yt.map((Or,_i)=>gr.createElement("div",{className:da.checkbox},!(Or!=null&&Or.standard_boolean)&&gr.createElement("span",{className:da.checkboxitem}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("i",{className:`${da.checkboxitemyes} icon-duigou1`}),gr.createElement("span",{className:`${Or!=null&&Or.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},_s[_i]),gr.createElement(le.Z,{className:Or!=null&&Or.standard_boolean?da.titleyes:da.title,value:Or==null?void 0:Or.choice_text}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===3&&gr.createElement("div",{className:da.completion},(_n=ue==null?void 0:ue.standard_answers)==null?void 0:_n.map((Or,_i)=>{var Gi;return gr.createElement(ur.Z,{align:"top"},gr.createElement("span",{className:da.title},"\u586B\u7A7A\u9879",_i+1),gr.createElement("div",{className:da.content},(Gi=Or.answer_text)==null?void 0:Gi.map((ir,Eo)=>gr.createElement("div",{key:`${ue.question_id}-${Eo}`,className:da.items,style:(Or==null?void 0:Or.model)===2?{border:0,padding:0}:{}},(Or==null?void 0:Or.model)===1?gr.createElement("pre",{className:"mb0"},ir):gr.createElement(Uu.Z,{value:ir,disabled:!0})))))})),(ue==null?void 0:ue.question_type)===4&&gr.createElement("div",{className:da.simple},gr.createElement("div",{className:da.title},"\u53C2\u8003\u7B54\u6848"),gr.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(yr=ue==null?void 0:ue.answer_texts)!=null&&yr[0]?gr.createElement(le.Z,{className:da.content,value:(Pn=ue==null?void 0:ue.answer_texts)==null?void 0:Pn[0]}):gr.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),gr.createElement("div",{className:"mt20 "},gr.createElement("span",{className:da.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),gr.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},ue!=null&&ue.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(ue==null?void 0:ue.question_type)===5&&gr.createElement("div",{className:da.shixunWrapper},(hn=ue==null?void 0:ue.shixun)==null?void 0:hn.map((Or,_i)=>{var Gi,ir;return gr.createElement("div",null,gr.createElement("div",{key:_i,className:`${da.shixun} mb30`},gr.createElement("span",{className:da.score},"\uFF08",Or==null?void 0:Or.challenge_score,"\u5206\uFF09"),gr.createElement("span",{className:da.qtitle},(ue==null?void 0:ue.index)+"."+(_i+1),"\u3001",Or==null?void 0:Or.challenge_name)),((ir=(Gi=ke==null?void 0:ke.editData)==null?void 0:Gi.exercise)==null?void 0:ir.show_challenge_task_pass)&&gr.createElement(le.Z,{className:da.content,value:(Or==null?void 0:Or.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ue==null?void 0:ue.question_type)===6&&gr.createElement("div",{className:da.program,style:{border:!((Mn=(zt=ke==null?void 0:ke.editData)==null?void 0:zt.exercise)!=null&&Mn.show_hack_sets)&&!((sn=(Ra=ke==null?void 0:ke.editData)==null?void 0:Ra.exercise)!=null&&sn.show_hack_description)&&"none"}},((cn=(Wt=ke==null?void 0:ke.editData)==null?void 0:Wt.exercise)==null?void 0:cn.show_hack_sets)&&gr.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},gr.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},gr.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),gr.createElement(wu.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Or,_i,Gi)=>Gi+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Or,_i,Gi)=>gr.createElement(dt.Z,{title:gr.createElement("pre",null,Or)},gr.createElement("div",{className:da.divname},Or))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Or,_i,Gi)=>gr.createElement(dt.Z,{title:gr.createElement("pre",null,Or)}," ",gr.createElement("div",{className:da.divname},Or))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ue==null?void 0:ue.hack_sets})),((Yn=(Qn=ke==null?void 0:ke.editData)==null?void 0:Qn.exercise)==null?void 0:Yn.show_hack_description)&&gr.createElement("div",null,gr.createElement(le.Z,{className:da.content,value:(ue==null?void 0:ue.description)||"- -"}))),(ue==null?void 0:ue.question_type)===7&&((Ln=ue==null?void 0:ue.sub_exercise_questions)==null?void 0:Ln.map((Or,_i)=>{var Gi,ir,Eo,Uo,No,$n;return gr.createElement("div",{key:_i},gr.createElement("div",{className:da.combination},gr.createElement("span",{className:da.score},Or==null?void 0:Or.question_score,"\u5206"),gr.createElement("span",{className:da.qtype},(Gi=Fu.find(pi=>pi.type==Or.question_type))==null?void 0:Gi.name),gr.createElement("span",{className:da.qtitle},_i+1,"\u3001",Or==null?void 0:Or.question_title)),(Or.question_type===0||Or.question_type===2)&&gr.createElement("div",{className:da.warp,style:{padding:"30px 58px",paddingBottom:0}},gr.createElement("div",null,(ir=Or==null?void 0:Or.question_choices)==null?void 0:ir.map((pi,yi)=>gr.createElement("div",{className:da.redio,key:yi},!(pi!=null&&pi.standard_boolean)&&gr.createElement("span",{className:da.redioitem}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("i",{className:`${da.redioitemyes} icon-duigou1`}),Or.question_type===2&&gr.createElement("span",{className:`${pi!=null&&pi.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},_s[yi]),gr.createElement(le.Z,{className:pi!=null&&pi.standard_boolean?da.titleyes:da.title,value:pi==null?void 0:pi.choice_text}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848"))))),Or.question_type===1&&gr.createElement("div",{className:da.normalWrap},(Eo=Or==null?void 0:Or.question_choices)==null?void 0:Eo.map((pi,yi)=>gr.createElement("div",{className:da.checkbox,key:yi},!(pi!=null&&pi.standard_boolean)&&gr.createElement("span",{className:da.checkboxitem}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("i",{className:`${da.checkboxitemyes} icon-duigou1`}),gr.createElement("span",{className:`${pi!=null&&pi.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},_s[yi]),gr.createElement(le.Z,{className:pi!=null&&pi.standard_boolean?da.titleyes:da.title,value:pi==null?void 0:pi.choice_text}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848")))),Or.question_type===3&&gr.createElement("div",{className:da.completion},(Uo=Or==null?void 0:Or.standard_answers)==null?void 0:Uo.map((pi,yi)=>{var Qo;return gr.createElement(ur.Z,{align:"top"},gr.createElement("span",{className:da.title},"\u586B\u7A7A\u9879",yi+1),gr.createElement("div",{className:da.content},(Qo=pi.answer_text)==null?void 0:Qo.map((Jo,il)=>gr.createElement("div",{key:il,className:da.items},gr.createElement("pre",{className:"mb0"},Jo)))))})),Or.question_type===4&&gr.createElement("div",{className:da.simple},gr.createElement("div",{className:da.title},"\u53C2\u8003\u7B54\u6848"),gr.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(No=Or==null?void 0:Or.answer_texts)!=null&&No[0]?gr.createElement(le.Z,{className:da.content,value:($n=Or==null?void 0:Or.answer_texts)==null?void 0:$n[0]}):gr.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),gr.createElement("div",{className:"mt20 "},gr.createElement("span",{className:da.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),gr.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Or!=null&&Or.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(ue==null?void 0:ue.question_type)===8&&gr.createElement("div",null,gr.createElement(le.Z,{disabledFill:!0,className:da.content,showProgramFill:!0,value:Yl.Base64.decode(((Hn=ue==null?void 0:ue.program_attr)==null?void 0:Hn.code)||"")})),((ue==null?void 0:ue.question_type)<=4||[6,8].includes(ue==null?void 0:ue.question_type))&&gr.createElement("div",{className:da.bottom},gr.createElement("div",{className:`${da.bottomitem} mb30`},gr.createElement("span",{className:da.left},"\u89E3\u6790"),gr.createElement("span",{className:da.right},ue!=null&&ue.analysis?gr.createElement(le.Z,{value:ue==null?void 0:ue.analysis}):gr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),gr.createElement("div",{className:`${da.bottomitem} mb30`},gr.createElement("span",{className:da.left},"\u96BE\u5EA6"),gr.createElement("span",{className:da.right},(ue==null?void 0:ue.difficulty)===1?"\u7B80\u5355":(ue==null?void 0:ue.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),gr.createElement("div",{className:da.bottomitem},gr.createElement("span",{className:da.left},"\u77E5\u8BC6\u70B9"),gr.createElement(dt.Z,{title:((xn=ue==null?void 0:ue.tag_discipline_names)==null?void 0:xn.length)<=0||((or=ue==null?void 0:ue.tag_discipline_names)==null?void 0:or.length)==1&&["-"].includes(ue==null?void 0:ue.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(lr=(xr=ue==null?void 0:ue.tag_discipline_names)==null?void 0:xr.join("\uFF1B"))==null?void 0:lr.toString()},gr.createElement("span",{className:da.right},((xi=ue==null?void 0:ue.tag_discipline_names)==null?void 0:xi.length)<=0?gr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((ro=ue==null?void 0:ue.tag_discipline_names)==null?void 0:ro.length)==1&&["-"].includes(ue==null?void 0:ue.tag_discipline_names[0])?gr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Io=(Ui=ue==null?void 0:ue.tag_discipline_names)==null?void 0:Ui.join("\uFF1B"))==null?void 0:Io.toString())))))},iu=ne(16636),Ps=ne(66676),sl=ne(59301),Hl=Object.defineProperty,ks=Object.defineProperties,Zs=Object.getOwnPropertyDescriptors,cu=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,$s=(ue,ke,Te)=>ke in ue?Hl(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,du=(ue,ke)=>{for(var Te in ke||(ke={}))Gu.call(ke,Te)&&$s(ue,Te,ke[Te]);if(cu)for(var Te of cu(ke))Su.call(ke,Te)&&$s(ue,Te,ke[Te]);return ue},fu=(ue,ke)=>ks(ue,Zs(ke)),pu=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),Du=({qitem:ue,setisedit:ke,TagDiscipline:Te,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra,sn;const[Wt]=xe.default.useForm(),{unified_ai_setting:cn,ai_review_settings:Qn}=Yt==null?void 0:Yt.exercise,Yn=cn?Qn:((Ra=ue==null?void 0:ue.ai_review_settings)==null?void 0:Ra.length)>0?ue.ai_review_settings:Qn;return(0,E.useEffect)(()=>{Wt.setFieldsValue(fu(du({},ue),{name:ue.question_title,answer_texts:ue.answer_texts,repeat_answer:!ue.repeat_answer,ai_review_settings:Yn}))},[ue]),sl.createElement("div",null,sl.createElement(xe.default,{form:Wt,colon:!1,onFinish:Ln=>{var Hn;(Hn=Yt==null?void 0:Yt.exercise)!=null&&Hn.is_open_ai_review&&!(0,se.BR)(Ln==null?void 0:Ln.ai_review_settings)||_n(fu(du(du({},ue),Ln),{answer_texts:Ln==null?void 0:Ln.answer_texts,question_title:Ln==null?void 0:Ln.name}))},onFinishFailed:Ln=>pu(void 0,null,function*(){var Hn,xn;Je.ZP.error(Ln.errorFields[0].errors[0]),Wt.scrollToField((xn=(Hn=Ln==null?void 0:Ln.errorFields)==null?void 0:Hn[0])==null?void 0:xn.name,{behavior:"smooth",block:"center"})})},sl.createElement("div",{style:{display:"flex",alignItems:"center"}},sl.createElement("div",{style:{flex:1}},sl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),sl.createElement("span",null,"\u7B80\u7B54\u9898")),((sn=Yt==null?void 0:Yt.exercise)==null?void 0:sn.exercise_status)==1&&!(ue!=null&&ue.isadd)&&sl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},sl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),sl.createElement(Re.ZP,{onClick:()=>{ue.isadd?(ke(!1),hn()):(Wt.setFieldsValue(fu(du({},ue),{name:ue==null?void 0:ue.question_title,answer_texts:ue.answer_texts||[],repeat_answer:!(ue!=null&&ue.repeat_answer)})),ke(!1))}},"\u53D6\u6D88"),sl.createElement(dt.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:sl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},sl.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},sl.createElement(Re.ZP,{type:"primary",className:"ml20",onClick:()=>{Wt.submit()},loading:Mn},"\u4FDD\u5B58"))),sl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},sl.createElement(xe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},sl.createElement(Se.Z,{onBlur:Ln=>{Ln.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),sl.createElement(Ps.W,{form:Wt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),sl.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Te,form:Wt}))))},Yu=ne(31691),Au=ne(79939),Hs=ne(53420),eu=ne(31709),xl={flex_box_center:"flex_box_center___aDsO9",flex_space_between:"flex_space_between___5V4Xk",flex_box_vertical_center:"flex_box_vertical_center___rNdEP",flex_box_center_end:"flex_box_center_end___cKjnr",flex_box_column:"flex_box_column___glFYD",scoremodal:"scoremodal___PfqOf",selectWrapper:"selectWrapper___Mtqcz",selectWrappers:"selectWrappers___uX2K9",allqingchu:"allqingchu___IqL8g",title:"title___UgYfD",score:"score___LjJmD",close:"close___I0jAO",content:"content___4u86F",items:"items___mK2L5",bottom:"bottom___vQTEm",yes:"yes___j81JQ",no:"no___kiUH4",titlecount:"titlecount___lliQr",add:"add___QhDj8",search:"search___QCCaL",searchIcon:"searchIcon___oXRH5",tabWrap:"tabWrap___Cu_4D",previewModal:"previewModal___BVDlS"},hu=ne(55947),re={flex_box_center:"flex_box_center___zojHa",flex_space_between:"flex_space_between___wmLZ4",flex_box_vertical_center:"flex_box_vertical_center___DszWW",flex_box_center_end:"flex_box_center_end___mVCv5",flex_box_column:"flex_box_column___fbC9t",warp:"warp___isAcM",shixunbutton:"shixunbutton___h3Ybb",redio:"redio___xDffb",redioitem:"redioitem___FFPtq",redioitemyes:"redioitemyes___pF7ID",title:"title___mnPZc",titleyes:"titleyes___wrtWQ",yestag:"yestag___D4krY",qcount:"qcount___W5pwO",score:"score___eKQzl",qtitle:"qtitle___lb8MD",checkbox:"checkbox___QpUm4",checkboxitem:"checkboxitem___Wm2SH",checkboxitemyes:"checkboxitemyes___VVVTe",bottom:"bottom___Mn_Bw",bottomitem:"bottomitem___JTyHT",left:"left___nQqpo",right:"right___v58qy",completion:"completion___BnZSp",content:"content___MU8hZ",items:"items___a7i54",simple:"simple___GDw3K",shixun:"shixun___DGzTe",combination:"combination___AG9cr"};const ye=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var et=({qitem:ue})=>{var ke,Te,Yt,_n,yr,Pn,hn,zt,Mn,Ra;return E.createElement("div",{className:re.warp},E.createElement("div",{className:re.mainPart},E.createElement("div",{className:re.qcount},(ue==null?void 0:ue.question_type)===8&&E.createElement(le.Z,{className:re.content,showProgramFill:!0,value:(ke=ue==null?void 0:ue.program_attr)==null?void 0:ke.description}),(ue==null?void 0:ue.question_type)!=8&&E.createElement(le.Z,{className:re.qtitle,value:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.title)})),((ue==null?void 0:ue.question_type)===0||(ue==null?void 0:ue.question_type)===2)&&E.createElement("div",null,(Te=ue==null?void 0:ue.choices)==null?void 0:Te.map((sn,Wt)=>E.createElement("div",{className:re.redio},!(sn!=null&&sn.is_answer)&&E.createElement("span",{className:re.redioitem}),(sn==null?void 0:sn.is_answer)&&E.createElement("i",{className:`${re.redioitemyes} icon-duigou1`}),E.createElement(le.Z,{className:sn!=null&&sn.is_answer?re.titleyes:re.title,value:ye[Wt]+(sn==null?void 0:sn.choice_text)}),(sn==null?void 0:sn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===1&&E.createElement("div",null,(Yt=ue==null?void 0:ue.choices)==null?void 0:Yt.map((sn,Wt)=>E.createElement("div",{className:re.checkbox},!(sn!=null&&sn.is_answer)&&E.createElement("span",{className:re.checkboxitem}),(sn==null?void 0:sn.is_answer)&&E.createElement("i",{className:`${re.checkboxitemyes} icon-duigou1`}),E.createElement(le.Z,{className:sn!=null&&sn.is_answer?re.titleyes:re.title,value:ye[Wt]+(sn==null?void 0:sn.choice_text)}),(sn==null?void 0:sn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===3&&E.createElement("div",{className:re.completion},(_n=ue==null?void 0:ue.standard_answer)==null?void 0:_n.map((sn,Wt)=>{var cn;return E.createElement("div",{style:{display:"flex"}},E.createElement("span",{className:re.title},"\u586B\u7A7A\u9879",Wt+1),E.createElement("div",{className:re.content},(cn=sn==null?void 0:sn.answer_text)==null?void 0:cn.map((Qn,Yn)=>E.createElement("div",{className:re.items},Qn))))})),(ue==null?void 0:ue.question_type)===4&&E.createElement("div",{className:re.simple},E.createElement("div",{className:re.title},"\u53C2\u8003\u7B54\u6848"),E.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(yr=ue==null?void 0:ue.answer_texts)!=null&&yr[0]?E.createElement(le.Z,{className:re.content,value:(Pn=ue==null?void 0:ue.answer_texts)==null?void 0:Pn[0]}):E.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(ue==null?void 0:ue.question_type)===5&&((hn=ue==null?void 0:ue.challenge_names)==null?void 0:hn.map((sn,Wt)=>E.createElement("div",{className:re.shixun},E.createElement("span",{className:re.qtitle},E.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,se.EM)(Wt+1),"\u9898"),sn)))),(ue==null?void 0:ue.question_type)===6&&E.createElement("div",{className:re.simple},E.createElement(le.Z,{className:re.content,value:((zt=ue==null?void 0:ue.program_attr)==null?void 0:zt.description)||"- -"})),(ue==null?void 0:ue.question_type)===7&&((Mn=ue==null?void 0:ue.sub_item_banks)==null?void 0:Mn.map((sn,Wt)=>{var cn,Qn,Yn,Ln,Hn;return E.createElement("div",null,E.createElement("div",{className:re.combination},E.createElement("span",{className:re.qtitle},sn==null?void 0:sn.name)),E.createElement("div",{className:re.warp,style:{padding:"0px",paddingTop:20}},E.createElement("div",null,((sn==null?void 0:sn.item_type)=="SINGLE"||(sn==null?void 0:sn.item_type)=="JUDGMENT")&&((cn=sn==null?void 0:sn.choices)==null?void 0:cn.map((xn,or)=>E.createElement("div",{className:re.redio},!(xn!=null&&xn.is_answer)&&E.createElement("span",{className:re.redioitem}),(xn==null?void 0:xn.is_answer)&&E.createElement("i",{className:`${re.redioitemyes} icon-duigou1`}),E.createElement(le.Z,{className:xn!=null&&xn.is_answer?re.titleyes:re.title,value:ye[or]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(sn==null?void 0:sn.item_type)=="MULTIPLE"&&((Qn=sn==null?void 0:sn.choices)==null?void 0:Qn.map((xn,or)=>E.createElement("div",{className:re.checkbox},!(xn!=null&&xn.is_answer)&&E.createElement("span",{className:re.checkboxitem}),(xn==null?void 0:xn.is_answer)&&E.createElement("i",{className:`${re.checkboxitemyes} icon-duigou1`}),E.createElement(le.Z,{className:xn!=null&&xn.is_answer?re.titleyes:re.title,value:ye[or]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(sn==null?void 0:sn.item_type)=="COMPLETION"&&E.createElement("div",{className:re.completion},(Yn=sn==null?void 0:sn.standard_answer)==null?void 0:Yn.map((xn,or)=>{var xr;return E.createElement("div",{style:{display:"flex"}},E.createElement("span",{className:re.title},"\u586B\u7A7A\u9879",or+1),E.createElement("div",{className:re.content},(xr=xn==null?void 0:xn.answer_text)==null?void 0:xr.map((lr,xi)=>E.createElement("div",{className:re.items},lr))))})),(sn==null?void 0:sn.item_type)=="SUBJECTIVE"&&E.createElement("div",{className:re.simple},E.createElement("div",{className:re.title},"\u53C2\u8003\u7B54\u6848"),E.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ln=sn==null?void 0:sn.answer_texts)!=null&&Ln[0]?E.createElement(le.Z,{className:re.content,value:(Hn=sn==null?void 0:sn.answer_texts)==null?void 0:Hn[0]}):E.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(ue==null?void 0:ue.question_type)===8&&E.createElement("div",null,E.createElement(le.Z,{disabledFill:!0,className:re.content,showProgramFill:!0,value:Yl.Base64.decode(((Ra=ue==null?void 0:ue.program_attr)==null?void 0:Ra.code)||"")})),(ue==null?void 0:ue.question_type)===5&&E.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},E.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u521B\u5EFA\u8005"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.author_name)||"- -")),E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.author_school_name)||"- -")),E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.study_count)||"0"))),E.createElement("a",{className:re.shixunbutton,href:`/shixuns/${ue==null?void 0:ue.identifier}/challenges?exercise=true`,target:"_blank"},E.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((ue==null?void 0:ue.question_type)<=4||[6,8].includes(ue==null?void 0:ue.question_type))&&E.createElement("div",{className:re.bottom},E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u89E3\u6790"),E.createElement("span",{className:re.right},ue!=null&&ue.analysis?E.createElement(le.Z,{value:ue==null?void 0:ue.analysis}):E.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u96BE\u5EA6"),E.createElement("span",{className:re.right},(ue==null?void 0:ue.difficulty)===1?"\u7B80\u5355":(ue==null?void 0:ue.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u77E5\u8BC6\u70B9"),E.createElement("span",{className:re.right},ue!=null&&ue.tag_discipline?ue==null?void 0:ue.tag_discipline:E.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},rt=ne(23783),Ct=ne(4387),Rt=ne(97612),jt=ne(85421),pn=ne(82136),vn=ne(18612),Gt=ne(22796),Bn=ne(37428),Ot=ne(59301),Tn=Object.defineProperty,In=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,dr=(ue,ke,Te)=>ke in ue?Tn(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,bn=(ue,ke)=>{for(var Te in ke||(ke={}))zn.call(ke,Te)&&dr(ue,Te,ke[Te]);if(Vn)for(var Te of Vn(ke))Dr.call(ke,Te)&&dr(ue,Te,ke[Te]);return ue},br=(ue,ke)=>In(ue,jn(ke)),qn=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())});const mr=({setScoreShow:ue,ScoreShow:ke,onOk:Te,isshixuns:Yt,isloadings:_n,dispatch:yr,shixunsDetail:Pn,exercise:hn,initFun:zt})=>{var Mn,Ra,sn;let[Wt,cn]=(0,E.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]}),[Qn,Yn]=(0,E.useState)([]),[Ln,Hn]=(0,E.useState)([]),[xn,or]=(0,E.useState)([]),[xr,lr]=(0,E.useState)([]);const[xi,ro]=(0,E.useState)(!1),[Ui]=xe.default.useForm(),[Io,Or]=(0,E.useState)(),[_i,Gi]=(0,E.useState)(!1);let[ir,Eo]=(0,E.useState)(Yt);const[Uo,No]=(0,E.useState)([]),[$n,pi]=(0,E.useState)(!0),[yi,Qo]=(0,E.useState)([]),[Jo,il]=(0,E.useState)(0),[bo,ol]=(0,E.useState)([]),pl=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[Lo,To]=(0,E.useState)({}),[hl,Dl]=(0,E.useState)(!1),[Ys,Pi]=(0,E.useState)({});(0,E.useEffect)(()=>{var Cn,Fr,ii,Ma,si,Ro,rl,Yo,us,Wo;(((ii=(Fr=(Cn=hn==null?void 0:hn.editData)==null?void 0:Cn.exercise)==null?void 0:Fr.exist_item_bank_ids)==null?void 0:ii.length)>0||((Ro=(si=(Ma=hn==null?void 0:hn.editData)==null?void 0:Ma.exercise)==null?void 0:si.exist_item_bank_shixun_ids)==null?void 0:Ro.length)>0)&&ol([...(Yo=(rl=hn==null?void 0:hn.editData)==null?void 0:rl.exercise)==null?void 0:Yo.exist_item_bank_ids,...(Wo=(us=hn==null?void 0:hn.editData)==null?void 0:us.exercise)==null?void 0:Wo.exist_item_bank_shixun_ids])},[(Ra=(Mn=hn==null?void 0:hn.editData)==null?void 0:Mn.exercise)==null?void 0:Ra.exist_item_bank_ids]);const Fa=(0,E.useRef)(new Set),ul=(0,E.useRef)(new Set);let[cl,gs]=(0,E.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:null,per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ns=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Ks=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Ws=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Vs,qi]=(0,E.useState)(!1),Si=xe.default.useWatch("courseid",Ui),Ri=()=>{Ui.resetFields(),ir=!1,Eo(!1),qi(!1),Ui.submit()};(0,E.useEffect)(()=>{Jo>0&&setTimeout(()=>{il(0)},2e3)},[Jo]),(0,E.useEffect)(()=>{ke&&(Ui.setFieldsValue({item_type:"",courseid:null,tag_discipline_id:null,difficulty:null,keyword:null}),$n&&ir&&(Ui.setFieldsValue({item_type:"SHIXUN"}),Wt.item_type="SHIXUN",cn(bn({},Wt)),pi(!1)),Za(Wt),ds(),ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[ke]);function Za(Cn){return qn(this,null,function*(){var Fr,ii,Ma;if(ro(!0),cn(Cn),(xn==null?void 0:xn.length)<=0&&Cn.type==="5"){lr([]),ro(!1);return}let si=Cn.type==="5"?xn==null?void 0:xn.filter(us=>!Uo.includes(us)):null,Ro=Cn.type==="5"?xn==null?void 0:xn.filter(us=>Uo.includes(us)):null,rl={course_discipline_id:Cn==null?void 0:Cn.courseid};(Cn==null?void 0:Cn.type)==="1"&&(rl={discipline_id:((Fr=Cn==null?void 0:Cn.courseid)==null?void 0:Fr[0])||null,sub_discipline_id:((ii=Cn==null?void 0:Cn.courseid)==null?void 0:ii[1])||null});let Yo=yield(0,Ye.ZP)("/api/item_banks.json",{method:"get",params:br(bn(bn({},Cn),rl),{ids:si,shixun_ids:Ro,group_id:((Ma=Cn.group_id)==null?void 0:Ma.map(us=>us==null?void 0:us.value))||null,keyword:Cn.keyword?encodeURIComponent(Cn.keyword):Cn.keyword,include_shixuns:!0,type:Cn.type==="5"?null:Cn.type,clazz:Cn.type==="3"?"ItemBanksGroup":null})});lr(Yo),ro(!1)})}function ll(Cn){return qn(this,null,function*(){var Fr;let ii=yield(0,Ye.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Cn}),Ma=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Fr=ii==null?void 0:ii.data)==null?void 0:Fr.map(si=>({title:si.name,id:si.id,pid:si.id,value:si.id,key:si.id,isLeaf:!si.have_child}))}];Qo(Ma)})}function ds(){return qn(this,null,function*(){let Cn=yield(0,Ye.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Wt.type==="5"?null:Wt.type,clazz:"ItemBanksGroup"}});Yn((0,hu.L)(Cn==null?void 0:Cn.disciplines))})}function ao(Cn){return qn(this,null,function*(){var Fr,ii,Ma,si;ro(!0);let Ro=(Fr=Cn.list)==null?void 0:Fr.filter(Wo=>!Uo.includes(Wo)),rl=(ii=Cn.list)==null?void 0:ii.filter(Wo=>Uo.includes(Wo));if(Ro.length===0&&rl.length===0){ro(!1),lr([]);return}let Yo={course_discipline_id:Cn==null?void 0:Cn.courseid};(Cn==null?void 0:Cn.type)==="1"&&(Yo={discipline_id:((Ma=Cn==null?void 0:Cn.courseid)==null?void 0:Ma[0])||null,sub_discipline_id:((si=Cn==null?void 0:Cn.courseid)==null?void 0:si[1])||null});let us=yield(0,Ye.ZP)("/api/item_banks.json",{method:"get",params:br(bn(bn({},Cn),Yo),{ids:Ro,shixun_ids:rl,type:Cn.type==="5"?null:Cn.type,clazz:Cn.type==="3"?"ItemBanksGroup":null})});ro(!1),lr(us)})}const Go=(0,ve.useParams)(),[_l,rs,El,Vl]=(0,Rt.P)(),Nl=Cn=>qn(void 0,null,function*(){const Fr=yield yr({type:"shixunsDetail/release",payload:{id:Cn}});let ii=Fr==null?void 0:Fr.tag_position,Ma=(Fr==null?void 0:Fr.evaluation_set_position)||[],si=Fr.status;return si===0?(Je.ZP.success("\u53D1\u5E03\u6210\u529F"),Za(Wt),!0):(si===2?Je.ZP.error(`\u7B2C${Ma.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):si===3?Je.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ii.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Je.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Bo=Cn=>(Cn==null?void 0:Cn.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Ss=(Cn,Fr,ii)=>Cn.map(Ma=>Ma.key===Fr?bn(bn({},Ma),ii):Ma.children?br(bn({},Ma),{children:Ss(Ma.children,Fr,ii)}):Ma),Is=Cn=>qn(void 0,null,function*(){const{key:Fr}=Cn;let ii=Wt.type;const Ma=yield(0,pn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Fr),type:ii}),{data:si,total_count:Ro}=Ma||{};Ro>0&&Qo(rl=>Ss(rl,Fr,{children:si.map(Yo=>({title:Yo.name,id:Yo.id,pid:Yo.id,value:Yo.id,key:Yo.id,isLeaf:!Yo.have_child}))}))});function zs(Cn){console.log("----",Wt),Cn==="1"&&(cl.gg=bn({},Wt)),Cn==="2"&&(cl.scj=bn({},Wt)),Cn==="3"&&(cl.ttgx=bn({},Wt)),Cn==="0"&&(cl.wcjd=bn({},Wt)),Cn==="5"&&(cl.yx=bn({},Wt)),gs(bn({},cl))}function Xl(){Wt.type==="1"&&(Wt=cl.gg),Wt.type==="2"&&(Wt=cl.scj),Wt.type==="3"&&(Wt=cl.ttgx),Wt.type==="0"&&(Wt=cl.wcjd),Wt.type==="5"&&(Wt=cl.yx),(Wt==null?void 0:Wt.item_type)==="SHIXUN"?(ir=!0,Eo(!0)):(ir=!1,Eo(!1)),Ui.setFieldsValue(bn({},Wt)),cn(bn({},Wt)),Za(bn({},Wt))}return Ot.createElement("div",null,Ot.createElement(qe.default,{title:!1,footer:!1,open:ke,width:1200,centered:!0,className:xl.scoremodal,onCancel:()=>{ue(!1)}},Ot.createElement("div",{style:{display:"flex",alignItems:"center"}},Ot.createElement("div",{className:xl.title},"\u9898\u5E93\u9009\u9898")),Ot.createElement(Yu.default,{className:xl.tabWrap,activeKey:Wt.type,onChange:Cn=>{Cn==="3"?(Wt.show_all_share=!0,ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Wt.show_all_share=null,Cn==="0"&&ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zs(Wt.type),Wt.type=Cn,(Wt==null?void 0:Wt.item_type)==="SHIXUN"&&Wt.type!=="5"&&(ir=!0,Eo(!0)),qi(!1),Wt.type==="5"&&(ir=!1,Eo(!1)),Xl(),ds()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Ot.createElement("div",null,"\u5DF2\u9009",xn.length>0&&Ot.createElement("span",{className:xl.titlecount},xn.length),Jo>0&&Ot.createElement("span",{className:xl.add},"+",Jo)),key:"5"}]}),Ot.createElement(xe.default,{layout:"inline",form:Ui,onValuesChange:(Cn,Fr)=>{var ii,Ma;const si=Object.values(Fr).some(rl=>rl!==null&&rl!==""&&rl!==void 0),Ro=Fr.keyword==="";if(qi(si||!Ro),Wt.page=1,Wt.keyword=(Ma=(ii=Wt.keyword)==null?void 0:ii.replace)==null?void 0:Ma.call(ii,/^\s+|\s+$/g,""),(Fr==null?void 0:Fr.item_type)==="SHIXUN"){if(Wt.type==="5"?Eo(!1):Eo(!0),Cn.keyword||Cn.keyword==="")return;Ui.submit()}else{if(Cn!=null&&Cn.courseid&&Ui.setFieldsValue({tag_discipline_id:null}),Eo(!1),Cn.keyword||Cn.keyword==="")return;Ui.submit()}},onFinish:Cn=>{var Fr;Wt.type==="3"&&(!Cn.group_id||((Fr=Cn==null?void 0:Cn.group_id)==null?void 0:Fr.length)===0)?Wt.show_all_share=!0:Wt.show_all_share=null,cn(bn(bn({},Wt),Cn)),Za(bn(bn({},Wt),Cn))}},Ot.createElement(xe.default.Item,{name:"item_type"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},pl.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.value},Cn.name)))),["1","2"].includes(Wt.type)?Ot.createElement(Ot.Fragment,null,Ot.createElement(xe.default.Item,{name:"courseid"},Ot.createElement(Au.Z,{className:xl.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Qn})),!ir&&Ot.createElement(xe.default.Item,{name:"tag_discipline_id"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(sn=xr==null?void 0:xr.tag_disciplines)==null?void 0:sn.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.id},Cn.name))))):Ot.createElement(Ot.Fragment,null," ",Ot.createElement(xe.default.Item,{name:"courseid"},Ot.createElement(Er.q,{style:{width:160,height:38},size:"middle",showLinkButton:!1,data:{container_type:"ItemBank",type:Wt==null?void 0:Wt.type}})),!ir&&Ot.createElement(xe.default.Item,{name:"tag_discipline_id"},Ot.createElement(Er.i,{allowAcceptEmpty:!0,key:String(Wt.type==="3"),data:{container_type:"ItemBank",search:!0,type:Wt.type},style:{width:160,height:38},size:"middle",courseDisciplineId:Si,showLinkButton:!1}))),Ot.createElement(xe.default.Item,{name:ir?"diff":"difficulty"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},ns.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.value},Cn.name)))),ir&&Ot.createElement(xe.default.Item,{name:"shixun_publish_status"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Ws.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.value},Cn.name)))),(Wt.type==="3"||Wt.type==="0")&&!ir&&Ot.createElement(xe.default.Item,{name:"group_id"},Ot.createElement(Hs.default,{treeDataSimpleMode:!0,style:{width:134},className:xl.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Cn,Fr)=>Fr.title.toUpperCase().indexOf(Cn.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Is,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:yi})),Vs&&Ot.createElement("span",{className:xl.allqingchu,onClick:Ri},Ot.createElement("i",{className:"iconfont icon-guanbi4"}),Ot.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ot.createElement(xe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ot.createElement(Ae.default.Search,{className:xl.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ot.createElement("i",{className:`iconfont icon-sousuo9 font14 ${xl.searchIcon}`,onClick:()=>Ui.submit()}),onSearch:Cn=>{Ui.submit()}}))),Ot.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ot.createElement("div",{onClick:()=>{Wt.updated_at==="asc"?Wt.updated_at="desc":Wt.updated_at="asc",cn(br(bn({},Wt),{page:1})),Za(br(bn({},Wt),{page:1}))}}," ",Wt.updated_at?Ot.createElement("img",{src:Wt.updated_at==="asc"?rt.Z:Ct.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ot.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ot.createElement("div",{onClick:()=>{Wt.quotes==="asc"?Wt.quotes="desc":Wt.quotes="asc",cn(br(bn({},Wt),{page:1})),Za(br(bn({},Wt),{page:1}))},style:{marginLeft:20}}," ",Wt.quotes?Ot.createElement("img",{src:Wt.quotes==="asc"?rt.Z:Ct.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ot.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ot.createElement(wu.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(xr==null?void 0:xr.items)||(xr==null?void 0:xr.shixun_list),pagination:!1,loading:xi,rowKey:Cn=>Cn.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Ln,...bo],getCheckboxProps:Cn=>({disabled:Cn.shixun_tag_num===1||(bo==null?void 0:bo.find(Fr=>Cn.id===Fr))}),onSelect(Cn,Fr,ii){if(console.log("---",ii,Fr,Cn),Fr)(ir||Cn!=null&&Cn.challenge_names)&&No([...Uo,Cn.id]),Hn([...Ln,Cn.id]),Cn.identifier?Fa.current.add(Cn.id):ul.current.add(Cn.id),il(1),or([...xn,Cn.id]);else{Cn.identifier?Fa.current.delete(Cn.id):ul.current.delete(Cn.id);let Ma=xn.filter(si=>si!==Cn.id);if(Hn(Ma),or(Ma),ir||Cn!=null&&Cn.challenge_names){let si=Uo.filter(Ro=>Ro!==Cn.id);No([...si])}if(Wt.type==="5"){ao(br(bn({},Wt),{list:[...Ma]}));return}}},onSelectAll(Cn,Fr,ii){var Ma,si;if(console.log("----",ii),Cn){const Ro=ii.map(Yo=>Yo.id),rl=(si=ii==null?void 0:ii.filter(Yo=>Yo==null?void 0:Yo.challenge_names))==null?void 0:si.map(Yo=>Yo.id);console.log("---",rl),No([...Uo,...rl]),Hn([...Ln,...Ro]),or([...xn,...Ro]);for(const Yo of ii)Yo.identifier?Fa.current.add(Yo.id):ul.current.add(Yo.id)}else{const Ro=ii.map(Wo=>Wo.id),rl=Ln.filter(Wo=>!Ro.some(mu=>mu===Wo)),Yo=(Ma=ii==null?void 0:ii.filter(Wo=>Wo==null?void 0:Wo.challenge_names))==null?void 0:Ma.map(Wo=>Wo.id);Hn([...rl]),or([...rl]);let us=Uo.filter(Wo=>!Yo.some(mu=>mu===Wo.id));No([...us]),Wt.type==="5"&&ao(br(bn({},Wt),{list:[...rl]}));for(const Wo of Ro)Wo.identifier?Fa.current.delete(Wo):ul.current.delete(Wo)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Cn,Fr,ii)=>{var Ma,si;return Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("div",null,ir||Fr!=null&&Fr.challenge_names?"\u5B9E\u8BAD\u9898":(si=(Ma=pl==null?void 0:pl.filter(Ro=>Ro.value===Cn))==null?void 0:Ma[0])==null?void 0:si.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:ir?"30%":"60%",key:"name",render:(Cn,Fr,ii)=>{var Ma;return Ot.createElement("div",{style:{display:"flex",alignItems:"center"}},Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("span",null,Ot.createElement(le.Z,{key:1,showLines:1,showTextOnly:!0,value:ir||Fr!=null&&Fr.challenge_names?Fr!=null&&Fr.title||Cn===null?"--":Cn:(Fr==null?void 0:Fr.item_type)=="BPROGRAM"?(Ma=Fr==null?void 0:Fr.program_attr)==null?void 0:Ma.description:Cn}))),(Fr==null?void 0:Fr.high_resources_consume)&&Ot.createElement(jt.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!ir,render:(Cn,Fr,ii)=>{var Ma;return Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("span",null,Cn?(Ma=Cn==null?void 0:Cn.split("\u3001"))==null?void 0:Ma[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!ir,render:(Cn,Fr,ii)=>Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("span",null,Cn||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Cn,Fr,ii)=>{var Ma,si,Ro,rl;return Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("div",null,ir||Fr!=null&&Fr.challenge_names?(Fr==null?void 0:Fr.level)||((si=(Ma=ns==null?void 0:ns.filter(Yo=>Yo.value===Cn))==null?void 0:Ma[0])==null?void 0:si.name):(rl=(Ro=ns==null?void 0:ns.filter(Yo=>Yo.value===Cn))==null?void 0:Ro[0])==null?void 0:rl.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!ir,render:(Cn,Fr,ii)=>Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("div",null,Cn||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Cn,Fr,ii)=>Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("div",null,ir||Fr!=null&&Fr.challenge_names?(Fr==null?void 0:Fr.study_count)||(Fr==null?void 0:Fr.stu_num):Cn))},{title:Ot.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ot.createElement(dt.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ot.createElement(un.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!ir,render:(Cn,Fr,ii)=>Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("div",null,Cn||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Cn,Fr,ii)=>Ot.createElement(dt.Z,{title:Bo(Fr)},Ot.createElement("div",{style:{flex:1,textAlign:"start"}},Ot.createElement("a",{onClick:()=>{var Ma,si;Or(br(bn({},Fr),{question_type:ir||Fr!=null&&Fr.challenge_names?5:(si=(Ma=pl==null?void 0:pl.filter(Ro=>Ro.value===(Fr==null?void 0:Fr.item_type)))==null?void 0:Ma[0])==null?void 0:si.question_type})),Gi(!0)}},"\u67E5\u770B"),(Fr==null?void 0:Fr.shixun_tag_num)===1&&Ot.createElement("a",{style:{marginLeft:10},onClick:()=>{qe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ot.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ot.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Fr==null?void 0:Fr.identifier}/challenges`)}},(Fr==null?void 0:Fr.shixun_name)||"--"),"\uFF1F"),onOk:()=>qn(void 0,null,function*(){if(!Nl(Fr==null?void 0:Fr.identifier))return new Promise((Ma,si)=>{si()})})})}},"\u53D1\u5E03")))}].filter(Cn=>!Cn.hidden)}),Ot.createElement(eu.Z,{current:Wt.page,total:(xr==null?void 0:xr.items_count)||(xr==null?void 0:xr.shixuns_count),style:{marginBottom:20},defaultPageSize:Wt.per_page,showTotal:Cn=>Ot.createElement("span",null,"\u5171\xA0",Ot.createElement("span",{style:{color:"#165DFF"}},Cn),"\xA0\u6761\u6570\u636E"),pageSize:Wt.per_page,onChange:(Cn,Fr)=>{Wt.page=Cn,Wt.per_page=Fr,cn(bn({},Wt)),Za(bn({},Wt))}}),Ot.createElement("div",{className:xl.bottom},Ot.createElement(Re.ZP,{className:xl.no,onClick:()=>{ue(!1)}},"\u53D6\u6D88"),Ot.createElement(Re.ZP,{loading:_n,style:{width:_n&&75},className:xl.yes,onClick:()=>qn(void 0,null,function*(){var Cn,Fr;if((xn==null?void 0:xn.length)<=0){Je.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let ii=[...xn==null?void 0:xn.filter(si=>Uo.includes(si))],Ma=yield(0,Gt.Tr)({id:ii,course_id:Go.coursesId,type:"shixun"});if(Ma){let si=yield Te([...ul.current],ii,!1);if((si==null?void 0:si.status)===0){if((ii==null?void 0:ii.length)==0)return zt();Pi({exercise_id:(Fr=(Cn=hn==null?void 0:hn.editData)==null?void 0:Cn.exercise)==null?void 0:Fr.id,courseId:Go==null?void 0:Go.coursesId,shixun_info:Ma==null?void 0:Ma.no_use_list}),Dl(!0)}}})},"\u786E\u8BA4"))),Ot.createElement(qe.default,{open:_i,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:xl.previewModal,width:1e3,centered:!0,onCancel:()=>{Gi(!1)},onOk:()=>{Gi(!1)}},Ot.createElement(et,{qitem:Io})),Ot.createElement(vn.Z,{resdata:Lo,type:"exercise",okloading:_n,oktext:(Lo==null?void 0:Lo.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Cn=>qn(void 0,null,function*(){const Fr=[],ii=[];for(const Ma of Lo==null?void 0:Lo.can_copy_list)Fr.push(Ma.id);rs(),yield Te([...ul.current],[...Fa.current].filter(Ma=>!ii.includes(Ma)),!0,xn==null?void 0:xn.length,Fr)})}),Ot.createElement(Bn.Z,{source:"\u5B9E\u8BAD",showModal:hl,onCancel:()=>Dl(!1),info:Ys,onOk:zt}))};var Oa=(0,ve.connect)(({shixunsDetail:ue,exercise:ke})=>({shixunsDetail:ue,exercise:ke}))(mr),ia=ne(64652),Lr=ne(59301),aa=Object.defineProperty,Wa=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Gr=(ue,ke,Te)=>ke in ue?aa(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ka=(ue,ke)=>{for(var Te in ke||(ke={}))_r.call(ke,Te)&&Gr(ue,Te,ke[Te]);if(Ur)for(var Te of Ur(ke))Jr.call(ke,Te)&&Gr(ue,Te,ke[Te]);return ue},Ea=(ue,ke)=>Wa(ue,pa(ke)),oa=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())}),Yr=({qitem:ue,TagDiscipline:ke,exerciseitem:Te,setisedit:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm(),Wt=!0;return(0,E.useEffect)(()=>{var cn,Qn,Yn;sn.setFieldsValue(Ea(ka({},ue),{standard_answers:ue.standard_answer,difficulty:(ue==null?void 0:ue.difficult)||2,item_banks_group_id:ue.item_banks_group_id,hack:Ea(ka({},ue),{time_limit:(ue==null?void 0:ue.time_limit)||3}),hack_codes:{language:(cn=ue==null?void 0:ue.program_attr)==null?void 0:cn.language,code:Yl.Base64.decode(((Qn=ue==null?void 0:ue.program_attr)==null?void 0:Qn.code)||"")},hack_sets:ka({},(Yn=ue==null?void 0:ue.hack_sets)==null?void 0:Yn[0]),repeat_answer:!ue.repeat_answer}))},[ue]),Lr.createElement("div",null,Lr.createElement(xe.default,{form:sn,colon:!1,onValuesChange:(cn,Qn)=>{var Yn,Ln,Hn,xn;if(cn!=null&&cn.standard_answers){let or=((Yn=sn.getFieldValue("standard_answers"))==null?void 0:Yn.length)>0&&((Hn=(Ln=sn.getFieldValue("standard_answers"))==null?void 0:Ln.map(xr=>xr.score))==null?void 0:Hn.filter(xr=>xr));(or==null?void 0:or.length)>0&&sn.setFieldsValue({question_score:(or==null?void 0:or.length)>0&&((xn=or.reduce((xr,lr)=>xr+lr))==null?void 0:xn.toFixed(1))})}},onFinish:cn=>{var Qn;_n(Ea(ka(ka({},ue),cn),{item_type:ue==null?void 0:ue.question_type,standard_answers:(Qn=cn.standard_answers)==null?void 0:Qn.map((Yn,Ln)=>Ea(ka({},Yn),{position:Ln+1})),hack_codes:Ea(ka({},cn.hack_codes),{code:Yl.Base64.encode(cn.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:cn=>oa(void 0,null,function*(){var Qn,Yn;Je.ZP.error(cn.errorFields[0].errors[0]),sn.scrollToField((Yn=(Qn=cn==null?void 0:cn.errorFields)==null?void 0:Qn[0])==null?void 0:Yn.name,{behavior:"smooth",block:"center"})})},Lr.createElement("div",{style:{display:"flex",alignItems:"center"}},Lr.createElement("div",{style:{flex:1}},Lr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Lr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((Ra=Te==null?void 0:Te.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Lr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},Lr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Lr.createElement(Re.ZP,{onClick:()=>{var cn,Qn,Yn;ue.isadd?(Yt(!1),hn()):(sn.setFieldsValue(Ea(ka({},ue),{standard_answers:ue.standard_answer,difficulty:ue.difficult,item_banks_group_id:ue.item_banks_group_id,hack:ka({},ue),hack_codes:{language:(cn=ue==null?void 0:ue.program_attr)==null?void 0:cn.language,code:Yl.Base64.decode((Qn=ue==null?void 0:ue.program_attr)==null?void 0:Qn.code)},hack_sets:ka({},(Yn=ue==null?void 0:ue.hack_sets)==null?void 0:Yn[0]),repeat_answer:!ue.repeat_answer})),Yt(!1))}},"\u53D6\u6D88"),Lr.createElement(dt.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Lr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Lr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Lr.createElement(Re.ZP,{className:"ml20",type:"primary",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),Lr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Lr.createElement(qt.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Lr.createElement(ia.t,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Wt,hackidentifier:ue==null?void 0:ue.hack_identifier,answerKey:"standard_answers"}),Lr.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Te,TagDiscipline:ke,form:sn}))))},ha=ne(51802),fa=ne(79986),ni=ne(34359),di=ne(89392),mi=ne(26203),vi=ne(64047),$a=ne(13509),Li=ne(3256),fn=ne(59301),Oi=Object.defineProperty,no=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,zi=(ue,ke,Te)=>ke in ue?Oi(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,Wi=(ue,ke)=>{for(var Te in ke||(ke={}))gi.call(ke,Te)&&zi(ue,Te,ke[Te]);if(lo)for(var Te of lo(ke))po.call(ke,Te)&&zi(ue,Te,ke[Te]);return ue},ho=(ue,ke)=>no(ue,Bi(ke)),ba=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())});const{confirm:wa}=qe.default,Ji=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],yo=({user:ue,dispatch:ke,itemid:Te,setisedits:Yt,exercise:_n,setitemid:yr})=>{var Pn,hn,zt,Mn,Ra,sn,Wt,cn,Qn,Yn,Ln,Hn,xn,or,xr,lr,xi,ro,Ui,Io,Or,_i,Gi;const[ir,Eo]=(0,E.useState)(),[Uo,No]=(0,E.useState)(!1),[$n,pi]=(0,E.useState)(),[yi,Qo]=(0,E.useState)(),Jo=(0,E.useRef)(),il=(0,E.useRef)(),[bo,ol]=(0,E.useState)(),[pl,Lo]=(0,E.useState)(!1),[To,hl]=(0,E.useState)(!1),[Dl,Ys]=(0,E.useState)(),[Pi,Fa]=(0,E.useState)(!1),[ul,cl]=(0,E.useState)(!1),[gs,ns]=(0,E.useState)(!1),[Ks,Ws]=(0,E.useState)(!1),[Vs,qi]=(0,E.useState)(!1),[Si,Ri]=(0,E.useState)(!1),Za=(0,ve.useParams)(),[ll,ds]=(0,E.useState)(!1),[ao]=xe.default.useForm(),[Go,_l]=(0,E.useState)(!1),[rs,El]=(0,E.useState)(!1),[Vl,Nl]=(0,E.useState)(!1),[Bo,Ss]=(0,E.useState)(!1),[Is,zs]=(0,E.useState)(!1),Xl=(0,E.useRef)(),[Cn,Fr]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Te&&Ma()},[Te]),(0,E.useEffect)(()=>{Yt(To)},[To]),(0,E.useEffect)(()=>{$n!=null&&$n.question_id&&(Qo($n==null?void 0:$n.question_score),il.current=$n==null?void 0:$n.question_id)},[$n]);const ii=hr=>ba(void 0,null,function*(){});function Ma(){return ba(this,null,function*(){var hr,Sa,Vi,Zi;Lo(!0),No(!0);const io=yield ke({type:"exercise/editExercise",payload:{categoryId:Te}});Lo(!1),No(!1),Eo(io),qi(!1),pi(ho(Wi({},(Vi=(Sa=(hr=io==null?void 0:io.exercise_question_types)==null?void 0:hr[0])==null?void 0:Sa.items)==null?void 0:Vi[0]),{index:1})),ol(ho(Wi({},(Zi=io==null?void 0:io.exercise_question_types)==null?void 0:Zi[0]),{indexs:1}))})}function si(hr,Sa=!0){return ba(this,null,function*(){var Vi,Zi,io,_o;Sa&&(Lo(!0),No(!0));const Zo=yield ke({type:"exercise/editExercise",payload:{categoryId:Te}});Eo(Zo);let Vo=[];(Vi=Zo==null?void 0:Zo.exercise_question_types)==null||Vi.map(cs=>{var Us;(Us=cs==null?void 0:cs.items)==null||Us.map((Bu,Tu)=>{Vo.push(ho(Wi({},Bu),{index:Tu+1}))})});let Ql=(Zi=Vo.filter(cs=>cs.question_id===(hr==null?void 0:hr.id)))==null?void 0:Zi[0],Ns=(_o=((io=Zo==null?void 0:Zo.exercise_question_types)==null?void 0:io.map((cs,Us)=>{if((Ql==null?void 0:Ql.question_type)===(cs==null?void 0:cs.question_type))return ho(Wi({},cs),{indexs:Us+1})})).filter(cs=>cs))==null?void 0:_o[0];ol(Wi({},Ns)),pi(Wi({},Ql)),Qo(Ql==null?void 0:Ql.question_score),Lo(!1),No(!1),qi(!1)})}function Ro(hr){return ba(this,null,function*(){Fr(!0);let Sa=ho(Wi({},hr),{repeat_answer:!hr.repeat_answer,difficulty:(hr==null?void 0:hr.difficulty)||2,item_type:hr.question_type,course_discipline_id:hr==null?void 0:hr.course_discipline_id,tag_discipline_ids:hr==null?void 0:hr.tag_discipline_ids,hack:ho(Wi({},hr==null?void 0:hr.hack),{difficult:(hr==null?void 0:hr.difficulty)||2}),hack_identifier:sessionStorage.projectFill});hr.tag_discipline_ids&&(Sa.tag_discipline_ids=Array.isArray(hr.tag_discipline_ids)?hr.tag_discipline_ids:[hr.tag_discipline_ids]);let Vi=Vs?`/api/exercises/${Te}/exercise_questions`:`/api/exercise_questions/${hr==null?void 0:hr.question_id}.json`;if((hr==null?void 0:hr.is_my)===1){const Zi=wa({title:"\u63D0\u793A",content:fn.createElement("div",null,fn.createElement("p",null,"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F"),fn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{Zi.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>ba(this,null,function*(){Sa.is_cover=1;let io=yield(0,Ye.ZP)(Vi,{method:Vs?"post":"PUT",body:Wi({},Sa)});(io==null?void 0:io.status)===0&&(hl(!1),si({id:(io==null?void 0:io.exercise_question_id)||(hr==null?void 0:hr.question_id)})),Zi.destroy()}),onCancel:()=>ba(this,null,function*(){let io=yield(0,Ye.ZP)(Vi,{method:Vs?"post":"PUT",body:Wi({},Sa)});(io==null?void 0:io.status)===0&&(hl(!1),si({id:(io==null?void 0:io.exercise_question_id)||(hr==null?void 0:hr.question_id)})),Zi.destroy()})})}else{let Zi=yield(0,Ye.ZP)(Vi,{method:Vs?"post":"PUT",body:Wi({},Sa)});(Zi==null?void 0:Zi.status)===0&&(hl(!1),si({id:(Zi==null?void 0:Zi.exercise_question_id)||(hr==null?void 0:hr.question_id)}))}(0,se.Vf)("#question-scroll-id"),Fr(!1)})}function rl(hr){return ba(this,null,function*(){No(!0);let Sa=yield(0,Ye.ZP)(`/api/exercises/${Te}/sort_question_type.json`,{method:"post",body:{question_type:hr}});if(No(!1),(Sa==null?void 0:Sa.status)===0){const Vi=yield ke({type:"exercise/editExercise",payload:{categoryId:Te}});Eo(Vi),qi(!1)}})}const Yo=(hr,Sa,Vi)=>ba(void 0,null,function*(){var Zi;if(hr.length===0){Je.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Vi();return}const io={id:Za==null?void 0:Za.exerciseId,file:(Zi=hr[0])==null?void 0:Zi.file,course_discipline_id:Sa};mu(io,`${ha.Z.API_SERVER}/api/courses/${Za==null?void 0:Za.coursesId}/exercises/import_exercise.json`,_o=>{var Zo;if((_o==null?void 0:_o.status)===0){const Vo={};(Zo=_o==null?void 0:_o.fail)==null||Zo.forEach(ys=>{var Ns;((Ns=Object.keys(Vo))==null?void 0:Ns.includes(ys.message))?Vo[ys.message]=Vo[ys.message]+1:Vo[ys.message]=1});let Ql=`\u6210\u529F\u5BFC\u5165${_o==null?void 0:_o.success}\u6761`;Object.keys(Vo).forEach(ys=>{Ql=Ql+`,${ys}${Vo[ys]}\u6761`}),Je.ZP.success(Ql),Fa(!1),Ma()}(_o==null?void 0:_o.status)===-1&&(Je.ZP.error(_o==null?void 0:_o.message),Vi())})}),us=(hr,Sa)=>ba(void 0,null,function*(){ir.exercise_types.q_scores=Number(ir.exercise_types.q_scores)+Number(hr)-Number(Sa==null?void 0:Sa.question_score);const Vi=yield(0,ni.zR)({score:(0,di.round)(hr,1),question_id:Sa==null?void 0:Sa.question_id});if((Vi==null?void 0:Vi.status)===0){Je.ZP.success("\u4FEE\u6539\u6210\u529F"),si({id:il.current},!1);return}(Vi==null?void 0:Vi.status)===-1&&Qo(Sa==null?void 0:Sa.question_score)}),Wo=()=>{Ss(!0)};(0,E.useEffect)(()=>{if(Bo){const hr=setTimeout(()=>{Ss(!1)},2e3);return()=>clearTimeout(hr)}},[Bo]);const mu=(hr,Sa,Vi,Zi,io)=>{const _o=new FormData;Object.keys(hr).forEach(Vo=>{_o.append(Vo,hr[Vo])});const Zo=new window.XMLHttpRequest;return Zo.withCredentials=!0,Zo.addEventListener("load",function(Vo){var Ql;Vi(JSON.parse((Ql=Vo==null?void 0:Vo.target)==null?void 0:Ql.response))},!1),Zo.addEventListener("error",function(Vo){io&&io(Vo)},!1),Zo.upload.onprogress=Vo=>{Zi&&Zi(Vo)},Zo.open("POST",Sa),Zo.send(_o),Zo};function Qs(){return ba(this,null,function*(){qe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:he.modalconfirm,onOk:()=>ba(this,null,function*(){var hr,Sa;if($n.question_id){let Vi=yield(0,Ye.ZP)(`/api/exercise_questions/${$n.question_id}.json`,{method:"delete"});if((Vi==null?void 0:Vi.status)===0){let Zi=[];(hr=ir==null?void 0:ir.exercise_question_types)==null||hr.map(Zo=>{var Vo;(Vo=Zo==null?void 0:Zo.items)==null||Vo.map((Ql,ys)=>{Zi.push(ho(Wi({},Ql),{index:ys+1}))})});const io=Zi==null?void 0:Zi.findIndex(Zo=>Zo.question_id===$n.question_id),_o=(Sa=Zi==null?void 0:Zi[io+1])==null?void 0:Sa.question_id;_o?si({id:_o}):Ma(),hl(!1)}}else pi({}),hl(!1),Ma()}),cancelText:"\u53D6\u6D88"})})}const tc=hr=>ba(void 0,null,function*(){return yield(0,Ye.ZP)(`/api/exercises/${Te}/select_questions.json`,{method:"post",body:Wi({},hr)})}),{overflow:Ku,handleMouseEnter:nc,handleMouseLeave:uc}=(0,fa.I)(),rc=(hr,Sa)=>fn.createElement(Kt.default,null,fn.createElement(Kt.default.Item,{key:"0",onClick:()=>Mu(hr==null?void 0:hr.question_type)},fn.createElement("span",{className:he.moreSpan},"\u65B0\u589E")),fn.createElement(Kt.default.Item,{key:"1",disabled:Sa===0,onClick:()=>ba(void 0,null,function*(){if(Sa===0)return;if(To){Wo();return}let Vi=(0,se.rz)(ir==null?void 0:ir.exercise_question_types,Sa,Sa-1);yield rl(Vi.map(Zi=>Zi.name))})},fn.createElement("span",{className:he.moreSpan},"\u4E0A\u79FB")),fn.createElement(Kt.default.Item,{key:"2",disabled:Sa===(ir==null?void 0:ir.exercise_question_types.length)-1,onClick:()=>ba(void 0,null,function*(){if(Sa===(ir==null?void 0:ir.exercise_question_types.length)-1)return;if(To){Wo();return}let Vi=(0,se.rz)(ir==null?void 0:ir.exercise_question_types,Sa,Sa+1);yield rl(Vi.map(Zi=>Zi.name))})},fn.createElement("span",{className:he.moreSpan},"\u4E0B\u79FB")),fn.createElement(Kt.default.Item,{key:"3",onClick:()=>{var Vi;ao.setFieldsValue({name:hr.name,item_type_en:(Vi=Ji.find(Zi=>Zi.id==hr.question_type))==null?void 0:Vi.nameType}),_l(!0)}},fn.createElement("span",{className:he.moreSpan},"\u91CD\u547D\u540D"))),Mu=hr=>{var Sa,Vi,Zi,io,_o,Zo,Vo,Ql,ys,Ns,cs,Us,Bu,Tu;if(To){Wo();return}if(qi(!0),hr===5){ns(!0),Ws(!0);return}if(hr===6){let dc=(Vi=(Sa=_n==null?void 0:_n.editData)==null?void 0:Sa.exercise)!=null&&Vi.set_question_sub_discipline?`/problems/newcreate?express_id=${(Zi=ir==null?void 0:ir.exercise)==null?void 0:Zi.id}&callback_url=/classrooms/${Za.coursesId}/exercise/add/${Te}?type=2&course_discipline_id=${((_o=(io=_n==null?void 0:_n.editData)==null?void 0:io.exercise)==null?void 0:_o.course_discipline_id)||""}`:`/problems/newcreate?express_id=${(Zo=ir==null?void 0:ir.exercise)==null?void 0:Zo.id}&callback_url=/classrooms/${Za.coursesId}/exercise/add/${Te}?type=2`;ve.history.push(dc);return}hl(!0),pi(hr===2?{question_type:hr,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",question_title:"",tag_discipline_ids:[],course_discipline_id:(Ql=(Vo=_n==null?void 0:_n.editData)==null?void 0:Vo.exercise)!=null&&Ql.set_question_sub_discipline?(Ns=(ys=_n==null?void 0:_n.editData)==null?void 0:ys.exercise)==null?void 0:Ns.course_discipline_id:null,analysis:""}:{question_type:hr,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[{position:1,answer_text:[""],model:1}],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],is_ordered:!0,question_title:"",use_keywords:!1,keywords:[],use_blank_score:!0,allow_student_debug:!1,submit_rule:1,course_discipline_id:(Us=(cs=_n==null?void 0:_n.editData)==null?void 0:cs.exercise)!=null&&Us.set_question_sub_discipline?(Tu=(Bu=_n==null?void 0:_n.editData)==null?void 0:Bu.exercise)==null?void 0:Tu.course_discipline_id:null,downcase:!0,no_space:!0})},cc=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Fa(!0)}},{key:2,label:fn.createElement("div",null,fn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:vi.$}),fn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(!(!(ir!=null&&ir.is_old_data_for_time)&&(0,se.Ye)(ke))){if(To){Wo();return}El(!0)}}}];console.log(bo==null?void 0:bo.question_type,$n==null?void 0:$n.question_type);const Qu=()=>ba(void 0,null,function*(){const hr=yield(0,Ye.ZP)(`/api/courses/${Za==null?void 0:Za.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Za.exerciseId]}});if((hr==null?void 0:hr.status)===0){ke({type:"classroomList/setActionTabs",payload:{}}),Je.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),Lo(!0),No(!0);const Sa=yield ke({type:"exercise/editExercise",payload:{categoryId:Te}});Lo(!1),No(!1),Eo(Sa),qi(!1)}});return fn.createElement("div",null,fn.createElement(kt.Z,{spinning:pl},fn.createElement("div",{className:he.bg},((Pn=ir==null?void 0:ir.exercise_types)==null?void 0:Pn.q_counts)===0&&!To&&fn.createElement(ae.Z,{styles:{marginTop:180},customText:fn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",fn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((hn=ir==null?void 0:ir.exercise_types)==null?void 0:hn.q_counts)>0||To)&&fn.createElement("div",{style:{textAlign:"center"}},fn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},fn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},fn.createElement("div",{className:he.left},fn.createElement("div",{className:he.leftAction},((zt=ir==null?void 0:ir.exercise)==null?void 0:zt.exercise_status)===1&&fn.createElement(Re.ZP,{onClick:()=>{if(To){Wo();return}cl(!0)},className:he.Button},"\u6279\u91CF\u64CD\u4F5C")),fn.createElement("div",{className:he.scrollWrapper,style:{overflow:Ku},onMouseEnter:nc,onMouseLeave:uc},(Mn=ir==null?void 0:ir.exercise_question_types)==null?void 0:Mn.map((hr,Sa)=>fn.createElement("div",{key:Sa,className:"mb30"},fn.createElement("div",{className:he.title},fn.createElement("div",{className:he.titleleft},fn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,se.EM)(Sa+1),"\u3001\u3010",hr.name,"\u3011"),fn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",hr.count,"\u5C0F\u9898\uFF0C\u5171",hr.score,"\u5206\uFF09")),fn.createElement(dn.Z,{dropdownRender:()=>rc(hr,Sa),placement:"bottomLeft"},fn.createElement("div",{className:he.more_style},fn.createElement("i",{className:"iconfont icon-sandian font12"})))),fn.createElement(Qr,{handleEditing:Wo,isedit:To,setBigqitem:ol,bigitem:ho(Wi({},hr),{indexs:Sa+1}),setqitem:Vi=>ba(void 0,null,function*(){var Zi;(Zi=Jo.current)==null||Zi.blur(),pi(Vi)}),qitem:$n,Itemid:Te,getdata:si,data:hr.items})))))),fn.createElement("div",{id:"question-scroll-id",style:{overflow:To?"hidden":"auto"},className:he.right},!($n!=null&&$n.isadd)&&fn.createElement("div",{className:he.title},!To&&fn.createElement("div",{style:{flex:1}},fn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(bo==null?void 0:bo.indexs)&&(0,se.EM)(bo==null?void 0:bo.indexs),"\u3001\u3010",bo==null?void 0:bo.name,"\u3011"),fn.createElement(dt.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},fn.createElement("i",{className:`${he.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var hr;ao.setFieldsValue({name:bo.name,item_type_en:(hr=Ji.find(Sa=>Sa.id==bo.question_type))==null?void 0:hr.nameType}),_l(!0)}})),fn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",bo==null?void 0:bo.count,"\u5C0F\u9898\uFF0C\u5171",bo==null?void 0:bo.score,"\u5206\uFF09"),($n==null?void 0:$n.question_type)===6&&fn.createElement("span",{onClick:()=>{qe.default.destroyAll(),Nl(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),($n==null?void 0:$n.question_type)===5&&fn.createElement(Ue.default,{defaultChecked:(sn=(Ra=_n==null?void 0:_n.editData)==null?void 0:Ra.exercise)==null?void 0:sn.show_challenge_task_pass,onChange:hr=>ba(void 0,null,function*(){let Sa=yield(0,Ye.ZP)(`/api/exercises/${Te}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:hr.target.checked}});(Sa==null?void 0:Sa.status)===0&&(Je.ZP.info("\u8BBE\u7F6E\u6210\u529F"),si({id:il.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),($n==null?void 0:$n.question_type)===6&&fn.createElement("span",{style:{marginLeft:20},onClick:()=>{var hr,Sa,Vi,Zi;qe.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:fn.createElement("div",null,($n==null?void 0:$n.question_type)===6&&fn.createElement(Ue.default,{defaultChecked:(Sa=(hr=_n==null?void 0:_n.editData)==null?void 0:hr.exercise)==null?void 0:Sa.show_hack_sets,onChange:io=>ba(void 0,null,function*(){let _o=yield(0,Ye.ZP)(`/api/exercises/${Te}/update_show_columns.json`,{method:"post",body:{show_hack_sets:io.target.checked}});(_o==null?void 0:_o.status)===0&&(Je.ZP.info("\u8BBE\u7F6E\u6210\u529F"),qe.default.destroyAll(),si({id:il.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),fn.createElement("br",null),($n==null?void 0:$n.question_type)===6&&fn.createElement(Ue.default,{defaultChecked:(Zi=(Vi=_n==null?void 0:_n.editData)==null?void 0:Vi.exercise)==null?void 0:Zi.show_hack_description,onChange:io=>ba(void 0,null,function*(){let _o=yield(0,Ye.ZP)(`/api/exercises/${Te}/update_show_columns.json`,{method:"post",body:{show_hack_description:io.target.checked}});(_o==null?void 0:_o.status)===0&&(Je.ZP.info("\u8BBE\u7F6E\u6210\u529F"),qe.default.destroyAll(),si({id:il.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),fn.createElement("div",{style:{display:"flex",alignItems:"center"}},($n==null?void 0:$n.question_type)===5&&!To&&fn.createElement("a",{className:he.shixun,href:`/shixuns/${(0,Rs.G5)()?$n.forked_shixun_identifier:$n==null?void 0:$n.shixun_identifier}/challenges?exercise=true`,target:"_blank"},fn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"),!To&&((Wt=ir==null?void 0:ir.exercise)==null?void 0:Wt.exercise_status)==1&&[0,1,2,4,6].includes($n==null?void 0:$n.question_type)&&fn.createElement(xe.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},fn.createElement(Se.Z,{precision:1,ref:Jo,onChange:hr=>Qo(hr),value:yi,onBlur:hr=>{us(hr.target.value,$n)}})),!To&&((cn=ir==null?void 0:ir.exercise)==null?void 0:cn.exercise_status)==1&&fn.createElement(dt.Z,{title:"\u5220\u9664"},fn.createElement("i",{onClick:()=>{Qs()},style:{marginRight:20},className:`${he.delete} iconfont icon-shanchu13 mr8 ml8 `})),($n==null?void 0:$n.question_type)!==5&&!To&&fn.createElement(fn.Fragment,null,($n==null?void 0:$n.is_my)==1&&fn.createElement(dt.Z,{title:"\u67E5\u770B\u539F\u9898"},fn.createElement("i",{className:`${he.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{($n==null?void 0:$n.question_type)==6?window.open(`/problems/newedit/${$n==null?void 0:$n.item_bank_hack_identifier}`):($n==null?void 0:$n.question_type)==8?window.open(`/problemset/edit/${$n==null?void 0:$n.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${$n==null?void 0:$n.item_bank_id}`)}})),fn.createElement(dt.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},fn.createElement("i",{className:`${he.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Xl.current=[],qe.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u6211\u7684\u9898\u5E93",maskClosable:!0,className:"custom-modal-divider",icon:null,content:fn.createElement("div",{className:`font14 ${he.overflow}`,style:{maxHeight:500,overflow:"auto"}},fn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),fn.createElement(kt.Z,{spinning:!1},fn.createElement(mi.Z,{defaultValue:!0,value:Xl.current,onChange:hr=>Xl.current=hr}))),onOk:()=>ba(void 0,null,function*(){var hr;(0,ni.$l)({id:$n==null?void 0:$n.question_id,group_id:((hr=Xl==null?void 0:Xl.current)==null?void 0:hr[0])||""}).then(Sa=>{(Sa==null?void 0:Sa.status)==0&&(Je.ZP.success("\u52A0\u5165\u6210\u529F"),Ma())})})})}}))),!To&&(((Qn=ir==null?void 0:ir.exercise)==null?void 0:Qn.exercise_status)==1||((Yn=ir==null?void 0:ir.exercise)==null?void 0:Yn.exercise_status)==2&&((Hn=(Ln=ue.userInfo)==null?void 0:Ln.course)==null?void 0:Hn.course_role)!=15||((xn=ir==null?void 0:ir.exercise)==null?void 0:xn.exercise_status)==3&&((xr=(or=ue.userInfo)==null?void 0:or.course)==null?void 0:xr.course_role)!=15||((lr=ir==null?void 0:ir.exercise)==null?void 0:lr.exercise_status)==4&&((ro=(xi=ue.userInfo)==null?void 0:xi.course)==null?void 0:ro.course_role)!=15)&&fn.createElement(dt.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},fn.createElement("i",{onClick:()=>{($n==null?void 0:$n.question_type)===6?ve.history.push(`/problems/newedit/${$n==null?void 0:$n.hack_identifier}?type=exercises&express_id=${Za.exerciseId}&question_id=${$n==null?void 0:$n.question_id}&score=${$n==null?void 0:$n.question_score}&exercise=true&callback_url=/classrooms/${Za.coursesId}/exercise/add/${Te}?type=2`):(Fr(!1),hl(!0))},className:`${he.edit} iconfont icon-bianji_Hover ml8`})))),!To&&fn.createElement("div",null,fn.createElement("div",{className:he.qcount},fn.createElement("span",{className:he.score},$n==null?void 0:$n.question_score,"\u5206"),fn.createElement(le.Z,{className:he.qtitle,value:($n==null?void 0:$n.index)+`\u3001${($n==null?void 0:$n.question_type)==8?(Ui=$n==null?void 0:$n.program_attr)==null?void 0:Ui.description:$n==null?void 0:$n.question_title}`}),($n==null?void 0:$n.high_resources_consume)&&fn.createElement(jt.Z,{type:"shixun",style:{marginLeft:10}}),(0,Rs.G5)()&&($n==null?void 0:$n.shixun_change)&&($n==null?void 0:$n.question_type)==5&&fn.createElement(Nt.Z,{open:Is,onOpenChange:hr=>{zs(hr)},placement:"bottomLeft",title:null,content:fn.createElement("div",{style:{width:"310px",color:"#000"}},fn.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),fn.createElement("div",{className:he.btn_warp},fn.createElement(Re.ZP,{size:"small",onClick:()=>zs(!1)},"\u5FFD\u7565"),fn.createElement(Re.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{zs(!1),ke({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>Qu()}})}},"\u786E\u8BA4\u540C\u6B65"),fn.createElement(Re.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,se.xg)(`/shixuns/${$n==null?void 0:$n.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},fn.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:hr=>hr.stopPropagation()}))),($n==null?void 0:$n.question_type)===6&&fn.createElement(ce.Z,{onEdit:()=>Nl(1),className:"mt10",dataSource:($n==null?void 0:$n.languages)||[]}),fn.createElement(Ou,{exercise:_n,TagDiscipline:Dl,qitem:$n})),To&&fn.createElement("div",null,($n==null?void 0:$n.question_type)<=1&&fn.createElement(ea,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===5&&fn.createElement(au,{saveLoading:Cn,setqitem:pi,deleteitem:Qs,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,showTip:Bo}),($n==null?void 0:$n.question_type)===3&&fn.createElement(Hr,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===2&&fn.createElement(Zn,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===4&&fn.createElement(Du,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===7&&fn.createElement(nu,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===8&&fn.createElement(Yr,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}))))))),fn.createElement("div",{className:he.bottomdiv},fn.createElement("div",{className:he.exercise_styles},((Io=ir==null?void 0:ir.exercise)==null?void 0:Io.exercise_status)==1&&fn.createElement(fn.Fragment,null,fn.createElement("span",{className:he.spanBtn,onClick:()=>{if(To){Wo();return}ns(!0),Ws(!1)}},"\u9898\u5E93\u9009\u9898"),fn.createElement(dn.Z,{menu:{items:cc}},fn.createElement("span",{className:he.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),fn.createElement("span",{className:he.spanBtn,onClick:()=>ba(void 0,null,function*(){var hr;if(!(ir!=null&&ir.is_old_data_for_time)&&(0,se.Ye)(ke))return;let Sa=yield(0,Ye.ZP)(`/api/exercises/${Za==null?void 0:Za.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:Za==null?void 0:Za.coursesId,categoryId:Za==null?void 0:Za.exerciseId}});(Sa==null?void 0:Sa.status)!=-1&&window.open(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Za==null?void 0:Za.exerciseId}/${(hr=ue.userInfo)==null?void 0:hr.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),fn.createElement("span",{className:he.spanBtn,onClick:()=>{window.open(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Za==null?void 0:Za.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),Ji==null?void 0:Ji.map(hr=>fn.createElement(Re.ZP,{className:he.addQuestionBtn,key:hr.id,type:"primary",onClick:()=>{Mu(hr.id)}},hr.name))),((Or=ir==null?void 0:ir.exercise)==null?void 0:Or.exercise_status)!=1&&fn.createElement(fn.Fragment,null,fn.createElement("span",{style:{width:"1022px"}})),fn.createElement("span",{className:he.saveBtn,onClick:()=>ba(void 0,null,function*(){var hr,Sa,Vi;if(To){Wo();return}const Zi=Number(ir.exercise_types.q_scores);[100,120,150].includes(Zi)||(yield new Promise((Zo,Vo)=>{qe.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:fn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",fn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Zi),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>ba(void 0,null,function*(){Zo("")}),onCancel:()=>{Vo()}})}));let io=(Sa=(hr=ir==null?void 0:ir.exercise_question_types)==null?void 0:hr.filter(Zo=>Zo.question_type===5)[0])==null?void 0:Sa.items,_o=0;io==null||io.map(Zo=>{Zo.high_resources_consume&&(_o=_o+1)}),console.log(_o),_o>0?ke({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:_o,fn:()=>{var Zo;((Zo=ir==null?void 0:ir.exercise)==null?void 0:Zo.exercise_status)==1?(Je.ZP.success("\u4FDD\u5B58\u6210\u529F"),ve.history.push(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Te}/detail?random=false&tabs=3`),Ri(!1)):ve.history.back()}}}):((Vi=ir==null?void 0:ir.exercise)==null?void 0:Vi.exercise_status)==1?(Je.ZP.success("\u4FDD\u5B58\u6210\u529F"),ve.history.push(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Te}/detail?random=false&tabs=3`),Ri(!1)):ve.history.back()})},fn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),fn.createElement(Li.Z,{data:(ir==null?void 0:ir.exercise_question_types)||[],visible:ul,examId:Te,isPaperlibrary:!1,onCancel:()=>cl(!1),onOK:()=>{cl(!1),Ma()}}),gs&&fn.createElement(Oa,{setScoreShow:ns,isshixuns:Ks,isloadings:ll,ScoreShow:gs,onOk:(hr,Sa,Vi=!0)=>ba(void 0,null,function*(){ds(!0);let io=yield tc({exam_id:Te,item_bank_ids:hr,shixun_ids:Sa});return ds(!1),(io==null?void 0:io.status)===0&&Vi&&qe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{Ma()},onCancel:()=>{ns(!1),Ma()}}),io}),initFun:()=>{ns(!1),Ma()}}),fn.createElement(iu.Z,{course_discipline_id:(_i=ir==null?void 0:ir.exercise)==null?void 0:_i.course_discipline_id,visible:Pi,onCancel:()=>Fa(!1),onOk:Yo}),fn.createElement(qe.default,{title:"\u63D0\u793A",open:Si,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:fn.createElement("div",null,fn.createElement(Re.ZP,{onClick:()=>{Ri(!1),ve.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),fn.createElement(Re.ZP,{type:"primary",onClick:()=>{ve.history.push(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Te}/detail?random=false&tabs=3`),Ri(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Ri(!1)}},fn.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),fn.createElement(qe.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:Go,width:500,onOk:()=>ao.submit(),onCancel:()=>_l(!1)},fn.createElement(xe.default,{form:ao,initialValues:{},onFinish:hr=>ba(void 0,null,function*(){(yield(0,ni.RK)(Wi({id:Te},hr))).status==0&&(Je.ZP.success("\u4FEE\u6539\u6210\u529F"),Ma(),_l(!1))})},fn.createElement(xe.default.Item,{name:"name",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(hr,Sa){var Vi,Zi,io,_o;const Zo=(Vi=Ji==null?void 0:Ji.find(Vo=>Vo.nameType==ao.getFieldValue("item_type_en")))==null?void 0:Vi.id;return(_o=(io=(Zi=ir==null?void 0:ir.exercise_question_types)==null?void 0:Zi.filter(Vo=>Vo.question_type!=Zo))==null?void 0:io.map(Vo=>Vo==null?void 0:Vo.name))!=null&&_o.includes(Sa)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},fn.createElement(Ae.default,{size:"large",maxLength:10,showCount:!0})),fn.createElement(xe.default.Item,{hidden:!0,name:"item_type_en"},fn.createElement(Ae.default,{size:"large"})))),fn.createElement(mn.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:rs},fn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),fn.createElement(vi.Z,{stickyTop:-24,subDisciplineId:(Gi=ir==null?void 0:ir.exercise)==null?void 0:Gi.course_discipline_id,onCancel:()=>El(!1),mode:3,gather:{exercise_id:Te},onSuccess:()=>{El(!1),Ma()}}),fn.createElement("div",{style:{height:70}})),fn.createElement(ce.Q,{visible:!!Vl,setVisible:Nl,tip:Vl===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:Vl===1?$n==null?void 0:$n.languages:[],onOk:hr=>ba(void 0,null,function*(){const Sa={languages:hr};Vl===1?Sa.hack_id=$n==null?void 0:$n.hack_id:Sa.exercise_id=Te,(yield(0,Ye.ZP)("/api/problems/update_languages.json",{method:"post",body:Sa})).status===0&&(Je.ZP.success("\u4FEE\u6539\u6210\u529F"),si({id:il.current}),Nl(!1))})}),fn.createElement($a.Z,null))};var jo=(0,ve.connect)(({user:ue,exercise:ke,dispatch:Te})=>({user:ue,exercise:ke,dispatch:Te}))(yo),so=ne(4799),tl=ne(20892),So=ne(54701),uo=ne(87169),vo=ne(75632),Rr=ne(59301),fi=Object.defineProperty,Kl=Object.defineProperties,Ya=Object.getOwnPropertyDescriptors,Ca=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,ja=(ue,ke,Te)=>ke in ue?fi(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ue[ke]=Te,ko=(ue,ke)=>{for(var Te in ke||(ke={}))co.call(ke,Te)&&ja(ue,Te,ke[Te]);if(Ca)for(var Te of Ca(ke))xa.call(ke,Te)&&ja(ue,Te,ke[Te]);return ue},nl=(ue,ke)=>Kl(ue,Ya(ke)),gl=(ue,ke)=>{var Te={};for(var Yt in ue)co.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Te[Yt]=ue[Yt]);if(ue!=null&&Ca)for(var Yt of Ca(ue))ke.indexOf(Yt)<0&&xa.call(ue,Yt)&&(Te[Yt]=ue[Yt]);return Te},jl=(ue,ke,Te)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Te.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Te.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Te=Te.apply(ue,ke)).next())});const Wl=ue=>{var ke=ue,{classroomList:Te,globalSetting:Yt,problemset:_n,loading:yr,exercise:Pn,user:hn,dispatch:zt}=ke,Mn=gl(ke,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),Ra,sn,Wt,cn,Qn,Yn,Ln,Hn,xn,or,xr,lr,xi,ro,Ui,Io,Or,_i,Gi,ir,Eo,Uo,No,$n,pi;const yi=(0,ve.useParams)(),[Qo,Jo]=(0,E.useState)(!1),{userInfo:il}=hn,[bo]=xe.default.useForm();let[ol,pl]=(0,E.useState)({});const[Lo,To]=(0,E.useState)(1),[hl,Dl]=(0,E.useState)(""),[Ys]=(0,ve.useSearchParams)(),[Pi,Fa]=(0,E.useState)(!1),[ul,cl]=(0,E.useState)(!1),[gs,ns]=(0,E.useState)(!1),[Ks,Ws]=(0,E.useState)(""),[Vs,qi]=(0,E.useState)(!1),[Si,Ri]=(0,E.useState)(!1);(0,E.useEffect)(()=>{zt({type:"globalSetting/footerToggle",payload:!1}),bo.setFieldsValue({difficulty:2,course_discipline_id:null})},[]),(0,E.useEffect)(()=>{var ao,Go,_l,rs,El,Vl;yi.exerciseId&&(((Go=(ao=Pn==null?void 0:Pn.editData)==null?void 0:ao.exercise)==null?void 0:Go.exercise_status)===2||((rs=(_l=Pn==null?void 0:Pn.editData)==null?void 0:_l.exercise)==null?void 0:rs.exercise_status)===3||((Vl=(El=Pn==null?void 0:Pn.editData)==null?void 0:El.exercise)==null?void 0:Vl.exercise_status)===4?ns(!0):ns(!1))},[Pn==null?void 0:Pn.editData]),(0,E.useEffect)(()=>{if(yi.exerciseId){let ao=Pn.editData.exercise;Ri(ao==null?void 0:ao.set_question_sub_discipline),bo.setFieldsValue(nl(ko({},ao),{course_discipline_id:ao==null?void 0:ao.course_discipline_id}))}},[Pn]),(0,E.useEffect)(()=>{Ys.get("type")==="2"&&(Dl(yi.exerciseId),To(2))},[Ys.get("type")]);function Za(ao,Go){return jl(this,null,function*(){var _l,rs,El,Vl;yield bo.validateFields();const Nl=bo.getFieldsValue();Nl.is_md=!0,Nl.time=parseInt(Nl.time)>9999?9999:Nl.time;const Bo=yield zt({type:"exercise/addExercise",payload:ko(ko({},Nl),yi)});Bo.status===0?(yield(0,Ye.ZP)(`/api/courses/${yi==null?void 0:yi.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:yi==null?void 0:yi.coursesId,id:(_l=Bo==null?void 0:Bo.data)==null?void 0:_l.exercise_id,time:ao}}),ds((rs=Bo.data)==null?void 0:rs.exercise_id),Dl((El=Bo==null?void 0:Bo.data)==null?void 0:El.exercise_id),To(2),Fa(!1),ve.history.replace(`/classrooms/${yi.coursesId}/exercise/add/${(Vl=Bo.data)==null?void 0:Vl.exercise_id}?type=2`)):Je.ZP.error(Bo.message),Go()})}function ll(ao){pl(ko({},ao))}function ds(ao){return jl(this,null,function*(){if(!(ol!=null&&ol.ec_point_ids))return;const Go=ko({},ol);delete Go.id;let _l=yield(0,Ye.ZP)(`/api/ec_courses/${ol==null?void 0:ol.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ko({exercise_id:ao},Go)})})}return Rr.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Rr.createElement("section",{className:"edu-container"},Rr.createElement("section",{className:"animated fadeIn"},Rr.createElement("aside",{className:"mt10"},il&&Rr.createElement(We.Z,{separator:">"},Rr.createElement(We.Z.Item,null,Rr.createElement(ve.Link,{to:`/classrooms/${yi.coursesId}/exercise`},(Ra=il==null?void 0:il.course)==null?void 0:Ra.course_name)),Rr.createElement(We.Z.Item,null,Rr.createElement(ve.Link,{to:`/classrooms/${yi.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),Rr.createElement(We.Z.Item,null,yi.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),yi.exerciseId&&Rr.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},Rr.createElement(uo.Z,{style:{marginRight:5,color:"#E99237"}}),Rr.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),Rr.createElement("span",{className:Qe.addQuestionBtn,onClick:()=>{zt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[yi.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),Rr.createElement(So.Z,{haveInit:!0,init:()=>{Ws(new Date)}}),Rr.createElement("div",{className:"bg-white"},Rr.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Rr.createElement("div",{onClick:()=>{if(ul){Je.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}To(1)},className:Lo===1?Qe.selectdiv:Qe.divitem},Rr.createElement(so.Z,{number:1,active:Lo===1,className:"mr10"}),Rr.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Rr.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Rr.createElement("div",{onClick:()=>{if(!yi.exerciseId&&!hl){Je.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}To(2),!hl&&Dl(yi.exerciseId)},className:Lo!==1?Qe.selectdiv:Qe.divitem},Rr.createElement(so.Z,{number:2,active:Lo!==1,className:"mr10"}),Rr.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Lo===2&&Rr.createElement("div",{className:"tc"},Rr.createElement(tl.Z,{defaultValue:(Wt=(sn=Pn==null?void 0:Pn.editData)==null?void 0:sn.exercise)==null?void 0:Wt.exercise_name,onFinish:ao=>jl(void 0,null,function*(){var Go,_l,rs,El,Vl,Nl,Bo,Ss,Is,zs,Xl,Cn;return ao.trim()===((_l=(Go=Pn==null?void 0:Pn.editData)==null?void 0:Go.exercise)==null?void 0:_l.exercise_name)?!0:(yield(0,ni.wy)({exercise_name:ao,exercise_description:(El=(rs=Pn==null?void 0:Pn.editData)==null?void 0:rs.exercise)==null?void 0:El.exercise_description,course_discipline_id:(Nl=(Vl=Pn==null?void 0:Pn.editData)==null?void 0:Vl.exercise)==null?void 0:Nl.course_discipline_id,time:(Ss=(Bo=Pn==null?void 0:Pn.editData)==null?void 0:Bo.exercise)==null?void 0:Ss.time,exerciseId:(zs=(Is=Pn.editData)==null?void 0:Is.exercise)==null?void 0:zs.id,difficulty:(Cn=(Xl=Pn.editData)==null?void 0:Xl.exercise)==null?void 0:Cn.difficulty})).status===0?(bo.setFieldValue("exercise_name",ao),!0):!1})}),Rr.createElement("div",{style:{fontSize:14}},Rr.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},((Qn=(cn=Pn==null?void 0:Pn.editData)==null?void 0:cn.exercise)==null?void 0:Qn.time)||"\u4E0D\u9650")),Rr.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ln=(Yn=Pn==null?void 0:Pn.editData)==null?void 0:Yn.exercise)==null?void 0:Ln.difficulty)===1?"\u7B80\u5355":((xn=(Hn=Pn==null?void 0:Pn.editData)==null?void 0:Hn.exercise)==null?void 0:xn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Rr.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},((xr=(or=Pn==null?void 0:Pn.editData)==null?void 0:or.exercise_types)==null?void 0:xr.q_counts)||0)),Rr.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},(xi=(lr=Pn==null?void 0:Pn.editData)==null?void 0:lr.exercise_types)==null?void 0:xi.q_scores))))),Lo===1&&Rr.createElement("div",null,Rr.createElement("section",{className:[Qe.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},Rr.createElement(xe.default,{form:bo,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:ao=>jl(void 0,null,function*(){var Go,_l,rs,El,Vl;if(Jo(!0),Fa(!0),yi.exerciseId){ao.exerciseId=(_l=(Go=Pn.editData)==null?void 0:Go.exercise)==null?void 0:_l.id,ao.course_discipline_id=ao.course_discipline_id,yield(0,ni.wy)(nl(ko({},ao),{set_question_sub_discipline:Si})),To(2),ds(yi==null?void 0:yi.exerciseId),Dl(yi.exerciseId),Jo(!1),Fa(!1);return}const Nl=yield(0,Ye.ZP)(`/api/courses/${yi==null?void 0:yi.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:yi==null?void 0:yi.coursesId}});if(Nl!=null&&Nl.alert)zt({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{ao.is_md=!0,ao.time=parseInt(ao.time)>9999?9999:ao.time,ao.set_question_sub_discipline=Si;const Bo=yield zt({type:"exercise/addExercise",payload:nl(ko(ko({},ao),yi),{category_id:Ys.get("catalogue")||null})});Bo.status===0&&(ds((rs=Bo.data)==null?void 0:rs.exercise_id),ve.history.replace(`/classrooms/${yi.coursesId}/exercise/add/${(El=Bo.data)==null?void 0:El.exercise_id}?type=2`),Dl((Vl=Bo==null?void 0:Bo.data)==null?void 0:Vl.exercise_id),To(2)),Fa(!1)}Jo(!1)}),className:Qe.formWrap},Rr.createElement(xe.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Qe.baseLineHeight,rules:[{required:!0,validator:(ao,Go)=>{var _l;return((_l=Go==null?void 0:Go.replaceAll(" ",""))==null?void 0:_l.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Rr.createElement(Ae.default,{maxLength:60,className:Qe.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Rr.createElement(xe.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:Qe.baseLineHeight},Rr.createElement(Er.q,{style:{height:46},showLinkButton:!1,data:{course_discipline_id:(Io=(Ui=(ro=Pn==null?void 0:Pn.editData)==null?void 0:ro.exercise)==null?void 0:Ui.course_discipline_data)==null?void 0:Io.course_discipline_id},tooltipTitle:((Gi=(_i=(Or=Pn==null?void 0:Pn.editData)==null?void 0:Or.exercise)==null?void 0:_i.course_discipline_data)==null?void 0:Gi.is_managed)===!1?`${(Uo=(Eo=(ir=Pn==null?void 0:Pn.editData)==null?void 0:ir.exercise)==null?void 0:Eo.course_discipline_data)==null?void 0:Uo.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BFE\u7A0B\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B`:"",disabled:((pi=($n=(No=Pn==null?void 0:Pn.editData)==null?void 0:No.exercise)==null?void 0:$n.course_discipline_data)==null?void 0:pi.is_managed)===!1})),Rr.createElement("div",{className:Qe.concat},Rr.createElement("div",null,Rr.createElement(Ue.default,{checked:Si,onChange:ao=>{Ri(ao.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u677F\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u65F6\u81EA\u52A8\u4F7F\u7528\u8BE5\u8BFE\u7A0B\uFF09")),Rr.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",Rr.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))),Rr.createElement(xe.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Qe.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Rr.createElement(tt.ZP.Group,{className:Qe.radiogroup,disabled:gs},Rr.createElement(tt.ZP.Button,{className:Qe.easy,value:1},"\u7B80\u5355"),Rr.createElement(tt.ZP.Button,{className:Qe.medium,value:2},"\u9002\u4E2D"),Rr.createElement(tt.ZP.Button,{className:Qe.hard,value:3},"\u56F0\u96BE"))),Rr.createElement(xe.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Qe.baseLineHeight},Rr.createElement("div",{style:{display:"flex",width:"100%"}},Rr.createElement(xe.default.Item,{name:"time",noStyle:!0},Rr.createElement(Se.Z,{disabled:gs,min:1,max:9999,className:Qe.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Rr.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Rr.createElement(xe.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Rr.createElement(Ae.default.TextArea,{disabled:gs,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),Rr.createElement(pt,{exercise_id:yi==null?void 0:yi.exerciseId,setitem:ll})),Rr.createElement("div",{className:Qe.bottmodiv},Rr.createElement(Re.ZP,{className:`${Qe.cancelBtn}`,type:"primary",onClick:()=>{ve.history.back()}},"\u53D6\u6D88"),Rr.createElement(Re.ZP,{loading:Pi,onClick:()=>{bo.validateFields(),bo.submit()},type:"primary",className:`${Qe.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),Rr.createElement(Pe,{setsubloading:Fa,onModalOk:Za})),Lo===2&&Rr.createElement("div",null,Rr.createElement(jo,{key:Ks,setisedits:cl,setitemid:Dl,itemid:hl}))),Rr.createElement(vo.Z,{open:Vs,onCancel:()=>{qi(!1)}}))};var js=(0,ve.connect)(({classroomList:ue,loading:ke,user:Te,problemset:Yt,globalSetting:_n,exercise:yr})=>({classroomList:ue,globalSetting:_n,problemset:Yt,user:Te,exercise:yr,loading:ke.effects}))(Wl)},15239:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Le}});var E=ne(28284),ve=ne(6767),xe=ne(62957),Je=ne(29787),We=ne(25399),Ae=ne(47889),Ue=ne(37568),tt=ne(70858),Se=ne(59301),Re=ne(88634),Qe=ne(70892),qe=ne(95203),ht={flex_box_center:"flex_box_center___FjW3J",flex_space_between:"flex_space_between___VMPG3",flex_box_vertical_center:"flex_box_vertical_center___f4bAX",flex_box_center_end:"flex_box_center_end___r_BiQ",flex_box_column:"flex_box_column___KmCaa",contentWrap:"contentWrap___JMzNd",leftWrap:"leftWrap___rYjEI",tip:"tip___Iu2px",title_con:"title_con___WF9OL",question_title:"question_title___XPCJJ",activeItem:"activeItem___yC4ry",rightWrap:"rightWrap___ut8PK",radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n",titleTooltip:"titleTooltip___eBrPv"},Ge=ne(82772),Oe=ne(15945),Be=ne(67495),be=ne(59301),Pe=Object.defineProperty,Ye=Object.defineProperties,it=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Et=(ze,Ne,at)=>Ne in ze?Pe(ze,Ne,{enumerable:!0,configurable:!0,writable:!0,value:at}):ze[Ne]=at,At=(ze,Ne)=>{for(var at in Ne||(Ne={}))Ke.call(Ne,at)&&Et(ze,at,Ne[at]);if(pe)for(var at of pe(Ne))nt.call(Ne,at)&&Et(ze,at,Ne[at]);return ze},st=(ze,Ne)=>Ye(ze,it(Ne)),Xe=(ze,Ne,at)=>new Promise((Bt,ct)=>{var $e=ge=>{try{De(at.next(ge))}catch(lt){ct(lt)}},Ft=ge=>{try{De(at.throw(ge))}catch(lt){ct(lt)}},De=ge=>ge.done?Bt(ge.value):Promise.resolve(ge.value).then($e,Ft);De((at=at.apply(ze,Ne)).next())});const ut=({shixunHomeworks:ze,exercise:Ne,loading:at,dispatch:Bt})=>{var ct,$e,Ft,De,ge,lt;const{commonHeader:wt}=Ne,[yt,je]=(0,Se.useState)([]),[Ve,pt]=(0,Se.useState)(st(At({},(0,Re.useParams)()),{page:1,limit:10})),[Kt,kt]=(0,Se.useState)([]),[dn,dt]=(0,Se.useState)(""),[Nt,mn]=(0,Se.useState)(1),[he]=E.default.useForm(),[se,ae]=(0,Se.useState)({}),[ce,me]=(0,Se.useState)(null),[le,ot]=(0,Se.useState)(!1),[Ht,on]=(0,Se.useState)({combine:[],simple:[]}),[kn,wn]=(0,Se.useState)(null),[Xn,Nn]=(0,Se.useState)({}),[Pr,Vr]=(0,Se.useState)(0),[Ar,Jn]=(0,Se.useState)(0),[va,Qr]=(0,Se.useState)(!1),ur=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(En,nr,$r)=>(Ve.page-1)*Ve.limit+$r+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:En=>En||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(En,nr)=>be.createElement("div",{className:ht.banding,title:En||"--"},En||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(En,nr)=>En===0?be.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):En===1?be.createElement("span",{style:{color:"#DF3042"}},!nr.is_make_up&&"\u8003\u8BD5\u4E2D",nr.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):En===2?be.createElement("span",{style:{color:"#5AB891"}},!nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377",nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):be.createElement("span",{style:{color:"#5AB891"}},!nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(wt==null?void 0:wt.exercise_type)==2&&!(0,Ge.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(En,nr)=>nr.commit_status===0||nr.commit_status===1?"--":!nr.open_total_score&&(0,Ge.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(En=typeof En=="number"?Number(En):En,console.log(typeof En),En||(En=0),En===100?be.createElement("span",{className:"c-green"},En):En>60?be.createElement("span",{className:"c-orange"},En):En==Ar*.6?be.createElement("span",{className:"c-red"},En):be.createElement("span",null,En))}].filter(En=>!!En);(0,Se.useEffect)(()=>{var En,nr,$r;((En=Ne.actionTabs)==null?void 0:En.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(on([]),wn(((nr=Ne==null?void 0:Ne.actionTabs)==null?void 0:nr.questionId)||null),Nn((($r=Ne==null?void 0:Ne.actionTabs)==null?void 0:$r.questionDetail)||{}),Sn(),un(Ve))},[(ct=Ne.actionTabs)==null?void 0:ct.key]);const Sn=()=>Xe(void 0,null,function*(){var En,nr,$r,Aa,ga,Ei,Ii,Ja,ri;const hi=yield(0,Qe.ZP)(`/api/exercises/${Ve==null?void 0:Ve.categoryId}.json`,{method:"get"});if(hi.status==0){const $i=(nr=(En=hi==null?void 0:hi.exercise_question_types)==null?void 0:En.find(Ut=>(Ut==null?void 0:Ut.question_type)==7))==null?void 0:nr.items,Ha=(Aa=($r=hi==null?void 0:hi.exercise_question_types)==null?void 0:$r.find(Ut=>(Ut==null?void 0:Ut.question_type)==4))==null?void 0:Aa.items;let ea=[],Ir=0,qt={};ea=(ga=$i==null?void 0:$i.map((Ut,Un)=>{var Lt,Dn;return(Dn=(Lt=Ut==null?void 0:Ut.sub_exercise_questions)==null?void 0:Lt.map((rr,Rn)=>(rr==null?void 0:rr.question_type)==4?st(At({},rr),{index:Un+1,jdex:Rn+1,parentTitle:Ut==null?void 0:Ut.question_title,isCombine:!0}):null))==null?void 0:Dn.filter(rr=>rr)}))==null?void 0:ga.flat(),on({combine:ea,simple:Ha}),(Ha==null?void 0:Ha.length)>0?(Ir=(Ei=Ha==null?void 0:Ha[0])==null?void 0:Ei.question_id,qt=(Ha==null?void 0:Ha[0])||{}):(ea==null?void 0:ea.length)>0&&(Ir=(Ii=ea==null?void 0:ea[0])==null?void 0:Ii.question_id,qt=(ea==null?void 0:ea[0])||{}),wn(((Ja=Ne==null?void 0:Ne.actionTabs)==null?void 0:Ja.questionId)||Ir),Nn(((ri=Ne==null?void 0:Ne.actionTabs)==null?void 0:ri.questionDetail)||qt)}}),sr=(En,nr)=>{Ve.page=En,Ve.limit=nr,pt(At({},Ve)),un(Ve)},un=En=>Xe(void 0,null,function*(){Qr(!0);const nr=yield(0,Qe.ZP)(`/api/exercises/${Ve.categoryId||(Ve==null?void 0:Ve.exerciseId)}/exercise_users.json`,{method:"get",params:En});nr.status==0&&(Vr(nr.data.total_count),pt(st(At({},Ve),{total:nr.data.total_count})),je(nr.data.exercise_users),Jn(nr.data.total_score)),Qr(!1)}),Er=En=>{Ve.search=En,Ve.page=1,he.resetFields(),ae({}),kt([]),me(null),pt(At({},Ve)),un(Ve)},Br=En=>Xe(void 0,null,function*(){var nr,$r;const Aa=At({},se);if(!((nr=En==null?void 0:En.content)!=null&&nr.trim())){ve.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Aa.content=En==null?void 0:En.content,Aa.attachment_ids=($r=En==null?void 0:En.attachment_ids)==null?void 0:$r.map(ga=>ga.response.id),Xa(Aa)}),Xa=En=>Xe(void 0,null,function*(){ot(!0);const nr=yield(0,Qe.ZP)(`/api/exercises/${(Ve==null?void 0:Ve.categoryId)||(Ve==null?void 0:Ve.exerciseId)}/test_ai_review.json`,{method:"post",body:st(At({},En),{exercise_question_id:kn,ai_review_settings:Xn==null?void 0:Xn.ai_review_settings})});if([0,-3].includes(nr.status)){nr.status==0&&ve.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),me(nr);const $r=document.querySelector(".modal-ai-pfcs");if($r){const Aa=$r.querySelector(".ant-modal-body");Aa&&(Aa.scrollTop=Aa.scrollHeight)}}ot(!1)}),Da=()=>{Bt({type:"exercise/setActionTabs",payload:{key:""}}),mn(1),Sr()},Sr=()=>{he.resetFields(),ae({}),kt([]),dt(""),me(null)};return be.createElement(xe.default,{className:"modal-ai-pfcs",width:1200,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:le,open:(($e=Ne.actionTabs)==null?void 0:$e.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>Da(),okText:ce?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var En;if((En=Ne.actionTabs)!=null&&En.showSelectQuestion&&!kn)return ve.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(Nt==1){if(Kt.length==0)return ve.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");Xa({exercise_user_id:Kt[0]})}else Nt==2&&he.submit()}},be.createElement(Je.Z,{spinning:le,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},be.createElement("div",{className:ht.contentWrap},be.createElement("div",{className:ht.leftWrap},be.createElement("div",{className:ht.tip},be.createElement("i",{className:"iconfont icon-tishi11 font14",style:{color:"#3061D0",transform:"rotate(180deg)",marginTop:"5px"}}),be.createElement("span",{style:{marginLeft:"5px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002")),be.createElement("div",{style:{maxHeight:"500px",overflowY:"auto",margin:"10px 0px"}},((Ft=Ht==null?void 0:Ht.simple)==null?void 0:Ft.length)>0&&be.createElement(be.Fragment,null,be.createElement("div",{className:ht.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),be.createElement("div",null,(De=Ht==null?void 0:Ht.simple)==null?void 0:De.map((En,nr)=>be.createElement("div",{key:En==null?void 0:En.question_id},be.createElement(We.Z,{title:be.createElement(Be.Z,{value:En==null?void 0:En.question_title}),color:"#fff",placement:"left",overlayClassName:ht.titleTooltip},be.createElement("span",{className:`${ht.question_title} ${kn==(En==null?void 0:En.question_id)?ht.activeItem:""}`,onClick:()=>{var $r,Aa,ga;wn(En==null?void 0:En.question_id),Nn(st(At({},En||{}),{ai_review_settings:($r=Ne==null?void 0:Ne.actionTabs)!=null&&$r.isUnify?(ga=(Aa=Ne==null?void 0:Ne.actionTabs)==null?void 0:Aa.questionDetail)==null?void 0:ga.ai_review_settings:En==null?void 0:En.ai_review_settings}))}},be.createElement(Be.Z,{value:nr+1+"\u3001"+(En==null?void 0:En.question_title),showTextOnly:!0}))))))),((ge=Ht==null?void 0:Ht.combine)==null?void 0:ge.length)>0&&be.createElement(be.Fragment,null,be.createElement("div",{className:ht.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),be.createElement("div",null,(lt=Ht==null?void 0:Ht.combine)==null?void 0:lt.map((En,nr)=>be.createElement("div",{key:En==null?void 0:En.question_id,onClick:()=>{var $r,Aa,ga;wn(En==null?void 0:En.question_id),Nn(st(At({},En||{}),{ai_review_settings:($r=Ne==null?void 0:Ne.actionTabs)!=null&&$r.isUnify?(ga=(Aa=Ne==null?void 0:Ne.actionTabs)==null?void 0:Aa.questionDetail)==null?void 0:ga.ai_review_settings:En==null?void 0:En.ai_review_settings}))}},be.createElement(We.Z,{title:be.createElement(Be.Z,{value:En==null?void 0:En.question_title}),color:"#fff",placement:"left",overlayClassName:ht.titleTooltip},be.createElement("span",{className:`${ht.question_title} ${kn==(En==null?void 0:En.question_id)?ht.activeItem:""}`},be.createElement(Be.Z,{value:(En==null?void 0:En.index)+"."+(En==null?void 0:En.jdex)+"\u3001"+(En==null?void 0:En.question_title),showTextOnly:!0}))))))))),be.createElement("div",{className:ht.rightWrap},be.createElement("div",{className:ht.radio_con},be.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),be.createElement(Ae.ZP.Group,{onChange:En=>{En.target.value==1&&sr(1,10),mn(En.target.value),Sr()},value:Nt,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),Nt==1&&be.createElement(be.Fragment,null,be.createElement("div",{className:"flex justify-between item-center mb10"},be.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),be.createElement(Ue.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:dn,onChange:En=>dt(En.target.value),onSearch:Er})),be.createElement(tt.default,{rowSelection:{type:"radio",selectedRowKeys:Kt,onChange:(En,nr)=>{kt(En)},getCheckboxProps:En=>({disabled:[0,1].includes(En==null?void 0:En.commit_status)})},rowKey:"exercise_user_id",dataSource:yt||[],columns:ur,pagination:{current:Ve.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Ve.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:Pr,size:"default",showTotal:qe.rU,onChange:sr},onChange:(En,nr,$r)=>{Ve.page=1,$r.order===void 0?(Ve.order_type=null,Ve.order=null):(Ve.order_type=$r.order==="descend"?"desc":"asc",Ve.order=$r.field),pt(At({},Ve)),un(Ve)}})),Nt==2&&be.createElement("div",{style:{marginTop:20}},be.createElement(E.default,{form:he,className:ht.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ae(At({},he.getFieldsValue()))},onFinish:Br},be.createElement(E.default.Item,{name:"content",label:"",style:{marginBottom:0}},be.createElement(Oe.Z,{watch:!0})))),ce&&be.createElement("div",{className:ht.result_con},be.createElement("div",{className:ht.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(ce==null?void 0:ce.status)==0&&be.createElement("div",{className:"p20"},be.createElement("div",{className:"mb5"},be.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),ce==null?void 0:ce.score),be.createElement("div",{className:"flex"},be.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),be.createElement(Be.Z,{value:ce==null?void 0:ce.content,style:{fontSize:"14px"}}))),(ce==null?void 0:ce.status)==-3&&be.createElement("div",{className:"p20"},be.createElement(Be.Z,{value:ce==null?void 0:ce.message,style:{fontSize:"14px"}})))))))};var Le=(0,Re.connect)(({shixunHomeworks:ze,exercise:Ne,loading:at,user:Bt})=>({shixunHomeworks:ze,exercise:Ne,loading:at.effects,user:Bt}))(ut)},16636:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ht}});var E=ne(59301),ve=ne(6767),xe=ne(62957),Je=ne(94968),We=ne(7939),Ae=ne(51802),Ue=ne(95203),tt=ne(33797),Se=ne(88634),Re={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},Qe=ne(59301),ht=({visible:Ge,onOk:Oe,onCancel:Be,course_discipline_id:be})=>{const[Pe,Ye]=(0,E.useState)([]),[it,pe]=(0,E.useState)(!1),Ke=(0,Se.useParams)(),[nt,Et]=(0,E.useState)(null);(0,E.useEffect)(()=>{Ge?Et(be):(Et(null),Ye([]),pe(!1))},[Ge]);const At=()=>{if(!nt)return ve.ZP.warning("\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF01");pe(!0),Oe(Pe,nt,()=>{pe(!1)})},st=()=>{Be()},Xe=()=>{const ze=`${Ae.Z.API_SERVER}/api/courses/${Ke.coursesId}/exercises/down_template`;(0,Ue.Nd)(null,ze)},ut=ze=>{const Ne={name:ze.name,uid:ze.uid,file:ze};return Ye([Ne]),!1},Le=()=>{Ye([])};return Qe.createElement(xe.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:Ge,onOk:At,centered:!0,wrapClassName:Re.customModal,onCancel:st,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:Re.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:it},Qe.createElement("div",{className:Re.content},Qe.createElement("aside",null,Qe.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),Qe.createElement("ul",null,Qe.createElement("li",null,Qe.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),Qe.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Xe},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),Qe.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Xe,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),Qe.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),Qe.createElement("li",{className:Re.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),Qe.createElement("li",{className:Re.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),Qe.createElement("li",{className:Re.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),Qe.createElement("li",{className:Re.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),Qe.createElement("aside",{style:{marginTop:22}},Qe.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),Qe.createElement("ul",{style:{flex:1}},Qe.createElement("li",{style:{color:"#5F6367"}},"\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),Ge&&Qe.createElement(Qe.Fragment,null,Qe.createElement(tt.q,{style:{width:200,marginTop:10},size:"large",value:nt,onChange:Et}),Qe.createElement("br",null),Qe.createElement(Je.default,{action:`${Ae.Z.API_SERVER}/api/attachments.json`,beforeUpload:ut,onRemove:Le,withCredentials:!0,fileList:Pe,accept:".xls,.xlsx",showUploadList:!1},Qe.createElement(We.ZP,{className:Re.upload,type:"primary",icon:Qe.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),Pe.map((ze,Ne)=>Qe.createElement("div",{key:Ne,className:Re.fileList},Qe.createElement("span",{className:Re.fileName},ze==null?void 0:ze.name),Qe.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Le})))))))}},54701:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=ne(62957),xe=ne(70892),Je=ne(88634),We=ne(59301),Ae=(tt,Se,Re)=>new Promise((Qe,qe)=>{var ht=Be=>{try{Oe(Re.next(Be))}catch(be){qe(be)}},Ge=Be=>{try{Oe(Re.throw(Be))}catch(be){qe(be)}},Oe=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(ht,Ge);Oe((Re=Re.apply(tt,Se)).next())});const Ue=({exercise:tt,dispatch:Se,init:Re,haveInit:Qe=!1})=>{const qe=(0,Je.useParams)(),[ht,Ge]=(0,E.useState)(!1);let[Oe,Be]=(0,E.useState)();const[be,Pe]=(0,E.useState)(!1),[Ye,it]=(0,E.useState)(!1);(0,E.useEffect)(()=>{tt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&pe()},[tt.actionTabs]);function pe(){return Ae(this,null,function*(){var Ke,nt;let Et=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs}});if(((Ke=Et==null?void 0:Et.cover_exercises)==null?void 0:Ke.length)>0)Ge(!0),Be((nt=Et==null?void 0:Et.cover_exercises)==null?void 0:nt[0]);else{let At=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs}});Se({type:"exercise/setActionTabs",payload:{key:""}}),(At==null?void 0:At.status)===0&&(Qe&&Re(),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Je.history.push("/paperlibrary")}}))}})}return We.createElement("div",null,We.createElement(ve.default,{open:ht,centered:!0,onCancel:Ke=>Ae(void 0,null,function*(){if(Ke.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){Pe(!0);let nt=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs,update:1}});Se({type:"exercise/setActionTabs",payload:{key:""}}),Pe(!1),(nt==null?void 0:nt.status)===0&&(Qe&&Re(),Ge(!1),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Je.history.push("/paperlibrary")}}))}else Ge(!1)}),cancelButtonProps:{loading:be},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:Ye},onOk:()=>Ae(void 0,null,function*(){it(!0);let Ke=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs}});it(!1),(Ke==null?void 0:Ke.status)===0&&(Qe&&Re(),Se({type:"exercise/setActionTabs",payload:{key:""}}),Ge(!1),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Je.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},We.createElement("div",null,We.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),We.createElement("div",null,We.createElement("div",null,"\u8BD5\u5377\uFF1A",Oe==null?void 0:Oe.origin_exercise_nam),We.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",We.createElement("a",{href:`/paperlibrary/see/${Oe==null?void 0:Oe.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Oe==null?void 0:Oe.examination_bank_name))))))};Pt.Z=(0,Je.connect)(({exercise:tt})=>({exercise:tt}))(Ue)},33797:function(_t,Pt,ne){"use strict";ne.d(Pt,{i:function(){return pe},q:function(){return it}});var E=ne(59301),ve={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},xe=ne(92310),Je=ne.n(xe),We=ne(25399),Ae=ne(82326),Ue=ne(7939),tt=ne(70892),Se=Object.defineProperty,Re=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Ke,nt,Et)=>nt in Ke?Se(Ke,nt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ke[nt]=Et,Be=(Ke,nt)=>{for(var Et in nt||(nt={}))ht.call(nt,Et)&&Oe(Ke,Et,nt[Et]);if(qe)for(var Et of qe(nt))Ge.call(nt,Et)&&Oe(Ke,Et,nt[Et]);return Ke},be=(Ke,nt)=>Re(Ke,Qe(nt)),Pe=(Ke,nt)=>{var Et={};for(var At in Ke)ht.call(Ke,At)&&nt.indexOf(At)<0&&(Et[At]=Ke[At]);if(Ke!=null&&qe)for(var At of qe(Ke))nt.indexOf(At)<0&&Ge.call(Ke,At)&&(Et[At]=Ke[At]);return Et},Ye=(Ke,nt,Et)=>new Promise((At,st)=>{var Xe=ze=>{try{Le(Et.next(ze))}catch(Ne){st(Ne)}},ut=ze=>{try{Le(Et.throw(ze))}catch(Ne){st(Ne)}},Le=ze=>ze.done?At(ze.value):Promise.resolve(ze.value).then(Xe,ut);Le((Et=Et.apply(Ke,nt)).next())});const it=Ke=>{var nt=Ke,{wrapClassName:Et,wrapStyle:At={},showLinkButton:st=!0,tooltipTitle:Xe="",loadGeneral:ut=!1,data:Le={}}=nt,ze=Pe(nt,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Ne="course_disciplines_list",[at,Bt]=(0,E.useState)(()=>{const lt=sessionStorage.getItem(Ne);return lt?JSON.parse(lt):[]}),[ct,$e]=(0,E.useState)(!1),[Ft,De]=(0,E.useState)(!0);(0,E.useEffect)(()=>{ge()},[]);const ge=()=>Ye(void 0,null,function*(){var lt,wt,yt,je;$e(!0);const Ve=yield(0,tt.U2)("v2/course_disciplines.json",Le);if(Ve.status===0){const pt=((wt=(lt=Ve==null?void 0:Ve.data)==null?void 0:lt.list)==null?void 0:wt.map(Kt=>({value:Kt.id,label:Kt.name})))||[];if(Bt(pt),De(!1),sessionStorage.setItem(Ne,JSON.stringify(pt)),Ft){const Kt=(je=(yt=Ve==null?void 0:Ve.data)==null?void 0:yt.list)==null?void 0:je.find(kt=>kt.is_default);ut&&Kt&&ze.onChange(Kt==null?void 0:Kt.id)}}$e(!1)});return E.createElement("div",{className:Je()(ve.singleSelect,Et),style:At},E.createElement(We.Z,{title:Xe},E.createElement(Ae.default,Be({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:ct,options:at,onDropdownVisibleChange:lt=>{lt&&ge()}},ze))),st&&E.createElement(Ue.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},pe=Ke=>{var nt=Ke,{wrapClassName:Et,wrapStyle:At={},showLinkButton:st=!0,courseDisciplineId:Xe="",isPlusHeight:ut=!1,tooltipTitle:Le,allowAcceptEmpty:ze=!1,data:Ne={}}=nt,at=Pe(nt,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[Bt,ct]=(0,E.useState)([]),[$e,Ft]=(0,E.useState)(!1);(0,E.useEffect)(()=>{De()},[Xe]);const De=()=>Ye(void 0,null,function*(){var ge,lt;if(!ze&&!Xe){ct([]);return}Ft(!0);const wt=yield(0,tt.U2)(`v2/course_disciplines/${Xe||"all"}.json`,Ne);if(wt.status===0){const yt=((lt=(ge=wt==null?void 0:wt.data)==null?void 0:ge.tag_disciplines)==null?void 0:lt.map(je=>({value:je.id,label:je.name})))||[];yt.length&&ct(yt)}Ft(!1)});return E.createElement("div",{className:Je()(ve.multipleSelect,Et),style:At},E.createElement(We.Z,{title:Le},E.createElement(Ae.default,be(Be({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:$e,options:Bt,maxTagCount:"responsive",onDropdownVisibleChange:ge=>{ge&&De()}},at),{className:Je()(at.className,ut&&ve.plus)}))),st&&E.createElement(Ue.ZP,{className:ve.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},86053:function(_t,Pt,ne){"use strict";ne.d(Pt,{h:function(){return E}});var E=(ve=>(ve[ve.NOMATCH=-1]="NOMATCH",ve[ve.OK=0]="OK",ve[ve.TIMEOUT=2]="TIMEOUT",ve[ve.PODFAILURE=3]="PODFAILURE",ve[ve.COMPILEFAILURE=4]="COMPILEFAILURE",ve[ve.EXECUTEFAILURE=5]="EXECUTEFAILURE",ve[ve.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ve))(E||{})},57788:function(_t,Pt,ne){"use strict";ne.d(Pt,{H7:function(){return Oe},MK:function(){return Ge},MU:function(){return Re},X6:function(){return qe},bM:function(){return Se},fi:function(){return Be},fu:function(){return tt},n4:function(){return be},rX:function(){return ht},vl:function(){return Pe},zO:function(){return Qe}});var E=ne(70892),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Ye,it,pe)=>it in Ye?ve(Ye,it,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ye[it]=pe,Ue=(Ye,it)=>{for(var pe in it||(it={}))Je.call(it,pe)&&Ae(Ye,pe,it[pe]);if(xe)for(var pe of xe(it))We.call(it,pe)&&Ae(Ye,pe,it[pe]);return Ye};function tt(Ye,it){return(0,E.U2)(`myproblems/${Ye}.json`,Ue({hidePopLogin:!0},it||{}))}function Se(Ye,it){return(0,E.v_)(`myproblems/${Ye}/code_submit.json`,it)}function Re(Ye,it){return(0,E.v_)(`myproblems/${Ye}/code_debug.json`,it)}function Qe(Ye,it){return it.language&&(it.language=encodeURIComponent(it.language)),(0,E.U2)(`myproblems/${Ye}/submit_records.json`,it)}function qe(Ye){return(0,E.U2)("myproblems/record_detail.json",{id:Ye})}function ht(Ye,it){return(0,E.U2)(`myproblems/${Ye}/result.json`,{mode:it})}function Ge(Ye,it){return(0,E.v_)(`myproblems/${Ye}/add_notes.json`,it)}function Oe(Ye,it){return(0,E.v_)(`myproblems/${Ye}/restore_initial_code.json`,it)}function Be(Ye){return(0,E.v_)(`myproblems/${Ye}/sync_code.json`)}function be(Ye,it){return(0,E.v_)(`myproblems/${Ye}/update_code.json`,it)}function Pe(Ye,it){return(0,E.v_)(`discusses/${Ye}/plus.json`,it)}},20892:function(_t,Pt,ne){"use strict";var E=ne(59301),ve=ne(25399),xe=ne(37568),Je=ne(6767),We=ne(24565),Ae=ne(59301),Ue=(Se,Re,Qe)=>new Promise((qe,ht)=>{var Ge=be=>{try{Be(Qe.next(be))}catch(Pe){ht(Pe)}},Oe=be=>{try{Be(Qe.throw(be))}catch(Pe){ht(Pe)}},Be=be=>be.done?qe(be.value):Promise.resolve(be.value).then(Ge,Oe);Be((Qe=Qe.apply(Se,Re)).next())});const tt=({defaultValue:Se,onFinish:Re})=>{const[Qe,qe]=(0,E.useState)(!1),[ht,Ge]=(0,E.useState)(Se);return(0,E.useEffect)(()=>{Ge(Se)},[Se]),Ae.createElement("div",null,Qe?Ae.createElement(xe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:ht,onChange:Oe=>{Ge(Oe.target.value)},onBlur:()=>Ue(void 0,null,function*(){var Oe;if(((Oe=ht==null?void 0:ht.replaceAll(" ",""))==null?void 0:Oe.length)<=0){Je.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Re(ht))&&qe(!1)}),onPressEnter:()=>Ue(void 0,null,function*(){var Oe;if(((Oe=ht==null?void 0:ht.replaceAll(" ",""))==null?void 0:Oe.length)<=0){Je.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Re(ht))&&qe(!1)})}):Ae.createElement("div",{className:We.Z.title},ht,Ae.createElement(ve.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ae.createElement("i",{className:`${We.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>qe(!0)}))))};Pt.Z=tt},3256:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Ne}});var E=ne(89392),ve=ne(59301),xe=ne(25399),Je=ne(62673),We=ne(6767),Ae=ne(62957),Ue=ne(77019),tt=ne(54265),Se=ne(37568),Re=ne(7939),Qe=ne(44104),qe=ne(4875),ht={flex_box_center:"flex_box_center___LvpOo",flex_space_between:"flex_space_between___nspow",flex_box_vertical_center:"flex_box_vertical_center___x8SwB",flex_box_center_end:"flex_box_center_end____Q_Od",flex_box_column:"flex_box_column___cr7Zl",btn:"btn___cNMEx",dragBtn:"dragBtn___HOiv_",row:"row___VPDaz",questionTitle:"questionTitle___RgXSX"},Ge=ne(22061),Oe=ne(67495),Be=ne(70892),be=ne(59301),Pe=Object.defineProperty,Ye=Object.defineProperties,it=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Et=(at,Bt,ct)=>Bt in at?Pe(at,Bt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):at[Bt]=ct,At=(at,Bt)=>{for(var ct in Bt||(Bt={}))Ke.call(Bt,ct)&&Et(at,ct,Bt[ct]);if(pe)for(var ct of pe(Bt))nt.call(Bt,ct)&&Et(at,ct,Bt[ct]);return at},st=(at,Bt)=>Ye(at,it(Bt)),Xe=(at,Bt,ct)=>new Promise(($e,Ft)=>{var De=wt=>{try{lt(ct.next(wt))}catch(yt){Ft(yt)}},ge=wt=>{try{lt(ct.throw(wt))}catch(yt){Ft(yt)}},lt=wt=>wt.done?$e(wt.value):Promise.resolve(wt.value).then(De,ge);lt((ct=ct.apply(at,Bt)).next())});const ut=(at,Bt,ct)=>{const $e=Array.from(at),[Ft]=$e.splice(Bt,1);return $e.splice(ct,0,Ft),$e},Le=({value:at=[],onChange:Bt,selectIds:ct,setSelectIds:$e})=>{const Ft=De=>{if(!De.destination)return;const ge=ut(at,De.source.index,De.destination.index);Bt(ge)};return be.createElement(Ge.Z5,{onDragEnd:Ft},be.createElement(Ge.bK,{droppableId:"questionList"},De=>be.createElement("div",st(At({},De.droppableProps),{ref:De.innerRef}),at.map((ge,lt)=>be.createElement(Ge._l,{key:ge.id,draggableId:String(ge.id),index:lt},(wt,yt)=>{const je=ct.includes(ge.id);return be.createElement("div",At({ref:wt.innerRef},wt.draggableProps),be.createElement("div",{className:ht.row,style:{paddingLeft:30}},be.createElement(xe.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},be.createElement("div",st(At({},wt.dragHandleProps),{className:ht.dragBtn}),be.createElement("i",{className:"iconfont icon-tuodong3 font14"}))),be.createElement(Je.default,{checked:je,onClick:()=>$e(je?ct.filter(Ve=>Ve!==ge.id):[...ct,ge.id]),className:"ml10 mr10"}),be.createElement(xe.Z,{placement:"topLeft",color:"#fff",title:be.createElement(Oe.Z,{value:ge.question_title})},be.createElement("div",{className:ht.questionTitle},be.createElement(Oe.Z,{showLines:1,showTextOnly:!0,value:ge.question_title})))))})),De.placeholder)))};var Ne=({isPaperlibrary:at=!0,examId:Bt,visible:ct,onCancel:$e,onOK:Ft,data:De})=>{const[ge,lt]=(0,ve.useState)([]),[wt,yt]=(0,ve.useState)([]),[je,Ve]=(0,ve.useState)(null),[pt,Kt]=(0,ve.useState)([]),[kt,dn]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{ct&&(lt(Nt(De)),yt([]),Kt([]),Ve(null))},[ct]);const dt=(0,ve.useMemo)(()=>ge.reduce((me,le)=>{let ot=0;return le.score!==null?ot=le.score*le.items.length:ot=le.items.reduce((Ht,on)=>{const kn=parseFloat(on.question_score)||0;return Ht+kn},0),me+ot},0),[ge]),Nt=me=>Array.isArray(me)?me.map((le,ot)=>{const Ht={name:le.name,question_type:le.question_type,score:null,id:ot+1,items:[]};return Array.isArray(le.items)&&(Ht.items=le.items.map(on=>{var kn;return{question_title:(on==null?void 0:on.question_type)===8?(kn=on==null?void 0:on.program_attr)==null?void 0:kn.description:on.question_title,id:on.question_id,question_score:on.question_score}})),Ht}):(console.error("\u8F93\u5165\u6570\u636E\u5FC5\u987B\u662F\u6570\u7EC4\u7C7B\u578B"),[]),mn=me=>{if(!me.destination)return;const le=ut(ge,me.source.index,me.destination.index);lt(le)},he=(me,le,ot)=>{const Ht=(0,E.cloneDeep)(ge);Ht[me][le]=ot,lt(Ht)},se=()=>{if(!(pt!=null&&pt.length)){We.ZP.warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u8BD5\u9898");return}const me=(0,E.cloneDeep)(ge);for(let le=me.length-1;le>=0;le--){const ot=me[le];ot.items&&Array.isArray(ot.items)&&(ot.items=ot.items.filter(Ht=>!pt.includes(Ht.id)),ot.items.length===0&&me.splice(le,1))}Kt([]),Ve(null),lt(me)},ae=me=>{Ae.default.confirm({centered:!0,icon:null,title:"\u63D0\u793A",content:"\u5220\u9664\u9898\u578B\u5C06\u5220\u9664\u8BE5\u9898\u578B\u4E0B\u7684\u6240\u6709\u8BD5\u9898\uFF0C\u786E\u5B9A\u8981\u8FDB\u884C\u8BE5\u64CD\u4F5C\u5417\uFF1F",okText:"\u786E\u8BA4",width:450,cancelText:"\u53D6\u6D88",onOk:()=>{var le;const ot=ge.filter(wn=>wn.id!==me),Ht=ge.find(wn=>wn.id===me),on=(le=Ht==null?void 0:Ht.items)==null?void 0:le.map(wn=>wn.id),kn=pt.filter(wn=>!on.includes(wn));lt(ot),Kt(kn),Ve(null)}})},ce=()=>Xe(void 0,null,function*(){[100,120,150].includes(Number(dt))||(yield new Promise((ot,Ht)=>{Ae.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:be.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",be.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},dt),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Xe(void 0,null,function*(){ot("")}),onCancel:()=>{Ht()}})}));const me=ge==null?void 0:ge.map(ot=>{var Ht;return{question_type:ot.question_type,question_ids:(Ht=ot==null?void 0:ot.items)==null?void 0:Ht.map(on=>on.id),name:ot.name,score:ot.score}});dn(!0);const le=yield(0,Be.ZP)(`/api/${at?"examination_banks":"exercises"}/${Bt}/batch_question_type.json`,{method:"post",body:{question_arr:me}});(le==null?void 0:le.status)===0&&(We.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ft()),dn(!1)});return be.createElement(Ae.default,{open:ct,title:"\u6279\u91CF\u64CD\u4F5C",width:1200,centered:!0,okText:"\u4FDD\u5B58\u64CD\u4F5C",onCancel:()=>$e(),onOk:ce,confirmLoading:kt},be.createElement(Ue.Z,{align:"middle",className:"mb20 c-grey-666"},be.createElement("div",null,"\u53EF\u62D6\u62FD\xA0",be.createElement("i",{className:"iconfont icon-tuodong3 font12"}),"\xA0\u8C03\u6574\u9898\u578B\u6216\u8BD5\u9898\u6392\u5E8F\uFF0C\u52FE\u9009\u591A\u4E2A\u8BD5\u9898\u4E4B\u540E\u53EF\u8FDB\u884C\u6279\u91CF\u5220\u9664"),be.createElement("div",{className:"ml-auto"},"\u8BD5\u5377\u603B\u5206\xA0\xA0",be.createElement("span",{className:"c-light-primary"},dt,"\xA0\xA0"),"\u5206"),be.createElement("div",{onClick:se,className:ht.btn},"\u6279\u91CF\u5220\u9664")),be.createElement("div",{style:{maxHeight:500,overflow:"auto"}},be.createElement(Ge.Z5,{onDragEnd:mn},be.createElement(Ge.bK,{droppableId:"list"},me=>be.createElement("div",st(At({},me.droppableProps),{ref:me.innerRef}),ge.map((le,ot)=>be.createElement(Ge._l,{key:le.id,draggableId:String(le.id),index:ot},(Ht,on)=>{var kn,wn;const Xn=wt==null?void 0:wt.includes(le.id);let Nn=le.name;const Pr=le.items.reduce((Ar,Jn)=>{const va=parseFloat(Jn.question_score)||0;return Ar+va},0),Vr=typeof le.score=="number"?le.score*((kn=le.items)==null?void 0:kn.length):Pr;return be.createElement("div",At({ref:Ht.innerRef},Ht.draggableProps),be.createElement("div",{className:ht.row},be.createElement(xe.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},be.createElement("div",st(At({},Ht.dragHandleProps),{className:ht.dragBtn}),be.createElement("i",{className:"iconfont icon-tuodong3 font14"}))),be.createElement("div",{onClick:()=>yt(Xn?wt.filter(Ar=>Ar!==le.id):[...wt,le.id]),className:"iconfont icon-zhankai8 current",style:{fontSize:36,transform:`rotate(${Xn?0:270}deg)`}}),je===le.id?be.createElement(tt.Z,{align:"center"},be.createElement(Se.default,{maxLength:10,showCount:!0,defaultValue:Nn,onChange:Ar=>Nn=Ar.target.value}),be.createElement(Re.ZP,{onClick:()=>{var Ar;if(!Nn.trim()){We.ZP.success("\u8BF7\u8F93\u5165\u5185\u5BB9");return}if(((Ar=ge.filter(va=>va.id!==je))==null?void 0:Ar.map(va=>va.name)).includes(Nn)){We.ZP.success("\u9898\u578B\u540D\u79F0\u91CD\u590D");return}he(ot,"name",Nn),Ve(null)},style:{padding:0,marginLeft:15},type:"link"},"\u786E\u8BA4"),be.createElement(Re.ZP,{onClick:()=>Ve(null),style:{padding:0,marginLeft:15},type:"link"},"\u53D6\u6D88")):be.createElement(be.Fragment,null,be.createElement("div",{className:"c-grey-333 mr10"},le.name),be.createElement("i",{onClick:()=>Ve(le.id),className:"iconfont icon-bianji16 c-light-primary current font14"})),be.createElement(Qe.Z,{size:20,className:"ml-auto"},be.createElement(Qe.Z,{size:10},be.createElement("span",{className:"mr10"},"\u6BCF\u9898"),be.createElement(qe.Z,{style:{width:100},onChange:Ar=>he(ot,"score",Ar),precision:1,min:.1,value:le.score,suffix:"\u5206"})),be.createElement(Qe.Z,{style:{width:145,paddingLeft:15},size:10},be.createElement("span",{className:"mr10"},"\u5C0F\u9898\u603B\u6570"),be.createElement("span",null,be.createElement("b",null,(wn=le==null?void 0:le.items)==null?void 0:wn.length),"\xA0\u9898")),be.createElement(Qe.Z,{style:{width:175,paddingLeft:15},size:10},be.createElement("span",{className:"mr10"},"\u9898\u578B\u603B\u5206"),be.createElement("span",null,be.createElement("b",null,Vr),"\xA0\u5206")),be.createElement(Re.ZP,{onClick:()=>ae(le.id),type:"link",danger:!0},"\u5220\u9664"))),Xn&&be.createElement(Le,{selectIds:pt,setSelectIds:Kt,value:(le==null?void 0:le.items)||[],onChange:Ar=>he(ot,"items",Ar)}))})),me.placeholder)))))}},75632:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Re}});var E=ne(62957),ve={ul:"ul___TdfYY"},xe=ne(32637),Je=ne(59301),We=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,tt=(Qe,qe)=>{var ht={};for(var Ge in Qe)Ae.call(Qe,Ge)&&qe.indexOf(Ge)<0&&(ht[Ge]=Qe[Ge]);if(Qe!=null&&We)for(var Ge of We(Qe))qe.indexOf(Ge)<0&&Ue.call(Qe,Ge)&&(ht[Ge]=Qe[Ge]);return ht},Re=Qe=>{var qe=Qe,{open:ht,onCancel:Ge}=qe,Oe=tt(qe,["open","onCancel"]);return Je.createElement(E.default,{centered:!0,open:ht,title:Je.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ge,footer:null},Je.createElement("div",null,Je.createElement("div",{className:"tc"},Je.createElement("img",{className:"mt10",src:xe,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Je.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Je.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Je.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Je.createElement("ul",{className:ve.ul},Je.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Je.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Je.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},79986:function(_t,Pt,ne){"use strict";ne.d(Pt,{I:function(){return ve}});var E=ne(59301);const ve=()=>{const[xe,Je]=(0,E.useState)("hidden");return{overflow:xe,handleMouseEnter:()=>Je("auto"),handleMouseLeave:()=>Je("hidden")}}},77845:function(_t,Pt,ne){"use strict";ne.d(Pt,{AL:function(){return pe},Iy:function(){return Qe},Qv:function(){return Ge},ez:function(){return it},jb:function(){return qe}});var E=ne(32834),ve=ne.n(E),xe=ne(11690),Je=ne.n(xe);let We=1;function Ae(st,Xe){const ut=st.match(/^(\s+)(?:```)/);if(ut===null)return Xe;const Le=ut[1];return Xe.split(` -`).map(ze=>{const Ne=ze.match(/^\s+/);if(Ne===null)return ze;const[at]=Ne;return at.length>=Le.length?ze.slice(Le.length):ze}).join(` -`)}let Ue=[],tt=["
    "];const Se=new(ve()).Renderer,Re=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Qe(){Ue.length=0,tt=["
      "]}const qe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ht(st,Xe,ut,Le){if(Xe>=st.length||st[Xe].level<=ut)return Xe;var ze=st[Xe];Le.push("
    • "+ze.text+""),Xe++;var Ne=[];return Xe=ht(st,Xe,ze.level,Ne),Ne.length>0&&(Le.push("
        "),Ne.forEach(function(at){Le.push(at)}),Le.push("
      ")),Le.push("
    • "),Xe=ht(st,Xe,ut,Le),Xe}function Ge(){return ht(Ue,0,0,tt),tt.push("
    "),tt.join("")}const Oe={heading(st){const Xe=Re.exec(st);if(We+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(st){const Xe=this.rules.block.fences.exec(st);if(Xe){const ut=Xe[0];let Le=Ae(ut,Xe[3]||"");const ze=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(ze)>=0){const Ne=Pe(),at=Le;Le=Ne,Ye[Ne]={type:"block",expression:at}}return{type:"code",raw:ut,lang:ze,text:Le}}}},Be=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let be=0;const Pe=()=>`__special_katext_id_${be++}__`;let Ye={};function it(){return Ye}function pe(){be=0,Ye={}}function Ke(st){return st=st.replace(Be,(Xe,ut)=>{const Le=Pe();return Ye[Le]={type:"inline",expression:ut},Le}),st}const nt=Se.listitem;Se.listitem=function(st){return nt(Ke(st))};const Et=Se.paragraph;Se.paragraph=function(st){return Et(Ke(st))};const At=Se.tablecell;Se.tablecell=function(st,Xe){return At(Ke(st),Xe)},Se.code=function(st,Xe,ut){const Le=(Xe||"").match(/\S*/)[0];return Le?["latex","katex","math"].indexOf(Le)>=0?`

    ${st}

    `:`
    ${ut?st:(0,xe.escape)(st,!0)}
    -`:'
    '+(ut?st:(0,xe.escape)(st,!0))+"
    "},Se.heading=function(st,Xe,ut){let Le=this.options.headerPrefix+ut.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:Le,level:Xe,text:st}),"'+st+""},ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),ve().use({tokenizer:Oe,renderer:Se}),Pt.ZP=ve()},91882:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ct}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(11592),We=ne(26112),Ae=ne(22703),Ue=ne(48755),tt=ne(84105),Se=ne(19563);const Re=$e=>{let{children:Ft}=$e;const{getPrefixCls:De}=E.useContext(Ue.E_),ge=De("breadcrumb");return E.createElement("li",{className:`${ge}-separator`,"aria-hidden":"true"},Ft===""?Ft:Ft||"/")};Re.__ANT_BREADCRUMB_SEPARATOR=!0;var Qe=Re,qe=function($e,Ft){var De={};for(var ge in $e)Object.prototype.hasOwnProperty.call($e,ge)&&Ft.indexOf(ge)<0&&(De[ge]=$e[ge]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols($e);ltFt[lt]||ge)}function Ge($e,Ft,De,ge){if(De==null)return null;const{className:lt,onClick:wt}=Ft,yt=qe(Ft,["className","onClick"]),je=Object.assign(Object.assign({},(0,We.Z)(yt,{data:!0,aria:!0})),{onClick:wt});return ge!==void 0?E.createElement("a",Object.assign({},je,{className:xe()(`${$e}-link`,lt),href:ge}),De):E.createElement("span",Object.assign({},je,{className:xe()(`${$e}-link`,lt)}),De)}function Oe($e,Ft){return(ge,lt,wt,yt,je)=>{if(Ft)return Ft(ge,lt,wt,yt);const Ve=ht(ge,lt);return Ge($e,ge,Ve,je)}}var Be=function($e,Ft){var De={};for(var ge in $e)Object.prototype.hasOwnProperty.call($e,ge)&&Ft.indexOf(ge)<0&&(De[ge]=$e[ge]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols($e);lt{const{prefixCls:Ft,separator:De="/",children:ge,menu:lt,overlay:wt,dropdownProps:yt,href:je}=$e,pt=(Kt=>{if(lt||wt){const kt=Object.assign({},yt);if(lt){const dn=lt||{},{items:dt}=dn,Nt=Be(dn,["items"]);kt.menu=Object.assign(Object.assign({},Nt),{items:dt==null?void 0:dt.map((mn,he)=>{var{key:se,title:ae,label:ce,path:me}=mn,le=Be(mn,["key","title","label","path"]);let ot=ce!=null?ce:ae;return me&&(ot=E.createElement("a",{href:`${je}${me}`},ot)),Object.assign(Object.assign({},le),{key:se!=null?se:he,label:ot})})})}else wt&&(kt.overlay=wt);return E.createElement(Se.Z,Object.assign({placement:"bottom"},kt),E.createElement("span",{className:`${Ft}-overlay-link`},Kt,E.createElement(tt.Z,null)))}return Kt})(ge);return pt!=null?E.createElement(E.Fragment,null,E.createElement("li",null,pt),De&&E.createElement(Qe,null,De)):null},Pe=$e=>{const{prefixCls:Ft,children:De,href:ge}=$e,lt=Be($e,["prefixCls","children","href"]),{getPrefixCls:wt}=E.useContext(Ue.E_),yt=wt("breadcrumb",Ft);return E.createElement(be,Object.assign({},lt,{prefixCls:yt}),Ge(yt,lt,De,ge))};Pe.__ANT_BREADCRUMB_ITEM=!0;var Ye=Pe,it=ne(36237),pe=ne(63356),Ke=ne(16931),nt=ne(51636);const Et=$e=>{const{componentCls:Ft,iconCls:De,calc:ge}=$e;return{[Ft]:Object.assign(Object.assign({},(0,pe.Wf)($e)),{color:$e.itemColor,fontSize:$e.fontSize,[De]:{fontSize:$e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:$e.linkColor,transition:`color ${$e.motionDurationMid}`,padding:`0 ${(0,it.unit)($e.paddingXXS)}`,borderRadius:$e.borderRadiusSM,height:$e.fontHeight,display:"inline-block",marginInline:ge($e.marginXXS).mul(-1).equal(),"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover}},(0,pe.Qy)($e)),"li:last-child":{color:$e.lastItemColor},[`${Ft}-separator`]:{marginInline:$e.separatorMargin,color:$e.separatorColor},[`${Ft}-link`]:{[` +`)}]};var tt=ne(53184),Se=ne.n(tt),He=(ct,Nt,mn)=>new Promise((he,se)=>{var ae=le=>{try{me(mn.next(le))}catch(ot){se(ot)}},ce=le=>{try{me(mn.throw(le))}catch(ot){se(ot)}},me=le=>le.done?he(le.value):Promise.resolve(le.value).then(ae,ce);me((mn=mn.apply(ct,Nt)).next())});const Qe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},qe=(ct,Nt,mn,he)=>{const se=Nt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:mn.lineNumber,endColumn:mn.column});return Array.from(new Set(se.match(/\b\w{2,}\b/g)||[])).map(ce=>({label:ce,kind:ct.languages.CompletionItemKind.Text,insertText:ce,range:he}))},pt=(ct,Nt,mn,he)=>{ct.languages.registerCompletionItemProvider(Nt,{provideCompletionItems(se,ae){const ce=se.getWordUntilPosition(ae),me={startLineNumber:ae.lineNumber,endLineNumber:ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},le=se.getLineContent(ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[...qe(ct,se,ae,me),...mn.map(Ht=>({label:Ht,kind:ct.languages.CompletionItemKind.Keyword,documentation:Ht,insertText:Ht,insertTextRules:ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me})),...he.map(Ht=>({label:Ht.label,kind:ct.languages.CompletionItemKind.Snippet,documentation:Ht.content,insertText:le.startsWith("#")?Ht.content.replace(/#/,""):Ht.content,insertTextRules:ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:me}))]}}})};var Ge=ct=>{Qe.languages.forEach(Nt=>{ct.languages.registerDocumentFormattingEditProvider(Nt,{provideDocumentFormattingEdits(mn){return He(this,null,function*(){const he=Se()(mn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:mn.getFullModelRange(),text:he}]})}})}),pt(ct,"java",Je.keywords,Je.quickKey),pt(ct,"cpp",We.keywords,We.quickKey),pt(ct,"c",xe.keywords,[]),pt(ct,"python",Ae.keywords,Ae.quickKey),pt(ct,"scala",Ue.keywords,Ue.quickKey)};const Oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Be=Object.defineProperty,be=(ct,Nt,mn)=>Nt in ct?Be(ct,Nt,{enumerable:!0,configurable:!0,writable:!0,value:mn}):ct[Nt]=mn,Ne=(ct,Nt,mn)=>be(ct,typeof Nt!="symbol"?Nt+"":Nt,mn);const Ye=class Yc{constructor(Nt,mn,he){this.placeholder=Nt,this.editor=mn,this.monaco=he,mn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Yc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ne(Ye,"ID","editor.widget.placeholderHint");var pe=Ye,Ke=ne(96236),nt=ne(6767),bt=ne(25399),At=ne(89392),ut=ne(86050),Xe=ne(56102),ht=Object.defineProperty,Pe=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,st=(ct,Nt,mn)=>Nt in ct?ht(ct,Nt,{enumerable:!0,configurable:!0,writable:!0,value:mn}):ct[Nt]=mn,et=(ct,Nt)=>{for(var mn in Nt||(Nt={}))rt.call(Nt,mn)&&st(ct,mn,Nt[mn]);if(Te)for(var mn of Te(Nt))Pt.call(Nt,mn)&&st(ct,mn,Nt[mn]);return ct},Ft=(ct,Nt)=>Pe(ct,ze(Nt)),De=(ct,Nt)=>{var mn={};for(var he in ct)rt.call(ct,he)&&Nt.indexOf(he)<0&&(mn[he]=ct[he]);if(ct!=null&&Te)for(var he of Te(ct))Nt.indexOf(he)<0&&Pt.call(ct,he)&&(mn[he]=ct[he]);return mn},ge=(ct,Nt,mn)=>new Promise((he,se)=>{var ae=le=>{try{me(mn.next(le))}catch(ot){se(ot)}},ce=le=>{try{me(mn.throw(le))}catch(ot){se(ot)}},me=le=>le.done?he(le.value):Promise.resolve(le.value).then(ae,ce);me((mn=mn.apply(ct,Nt)).next())});function lt(ct){return/^\d+$/.test(ct)?`${ct}px`:ct}function Et(){}let yt=!1;const Ze={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ve(ct=[]){let Nt=ct;if(Array.isArray(ct)){for(let mn=0;mnge(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ct){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ct)}});var kt=ct=>{var Nt=ct,{width:mn="100%",height:he="100%",value:se,language:ae="javascript",style:ce={},options:me={},overrideServices:le={},theme:ot="vs-dark",onEditBlur:Ht,isCopy:on=!1,onSave:kn,autoHeight:wn=!1,forbidCopy:Xn=!1,forbidCopyTips:Nn,onChange:Pr=Et,editorDidMount:Vr=Et,onFocus:Ar=Et,onBreakPoint:Jn=Et,breakPointValue:va=[],filename:Qr="educoder.txt",errorLine:ur,errorContent:Sn="",highlightLine:sr,openBreakPoint:un=!1,placeholder:Er="",showMiniMap:Br=!0}=Nt,Xa=De(Nt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Da=(0,E.useRef)(),Sr=(0,E.useRef)({}),En=(0,E.useRef)(),nr=(0,E.useRef)(),$r=(0,E.useRef)([]),Aa=(0,E.useRef)(!1),ga=(0,E.useRef)(),Ei=(0,E.useRef)(),Ii=(0,E.useRef)(!1),[Ja,ri]=(0,E.useState)(!1);function hi(){let Vt;return Da.current&&(Vt=new ve.Z(On=>{for(let Cr of On)(Cr.target.offsetHeight>0||Cr.target.offsetWidth>0)&&Sr.current.instance.layout()}),Vt.observe(Da.current)),Vt}function $i(){nt.ZP.warning({content:decodeURIComponent(Nn||Oe),key:"monaco-editor-tip"})}const Ha=()=>{let Vt=Sr.current.instance;if(se!=null&&Vt&&Ja){const On=Vt.getModel();On&&se!==On.getValue()&&(yt=!0,On.setValue(se),Vt.layout(),yt=!1)}};(0,E.useEffect)(()=>{const Vt=ut.Z.subscribe("formatDocument",On=>{var Cr;let Hr=Sr.current.instance;(Cr=Hr==null?void 0:Hr.getAction)==null||Cr.call(Hr,"editor.action.formatDocument").run()});return window.updateMonacoValue=On=>{Pr(On)},Vt},[]),(0,E.useEffect)(()=>{var Vt;let On=Sr.current.instance;nr.current&&clearTimeout(nr.current),nr.current=setTimeout(()=>{Ha()},500),se&&(se!=null&&se.length)&&((Vt=On==null?void 0:On.updateOptions)==null||Vt.call(On,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(se.split(/\r\n|\r|\n/g).length))+3,5)}))},[se,Ja,Sr.current]),(0,E.useEffect)(()=>{if(ur&&Sr.current&&Sr.current.instance){let On=Sr.current.instance;On.changeViewZones(function(Cr){var Hr=document.createElement("div");Hr.style.padding="10px 20px",Hr.style.width="calc(100% - 20px)",Hr.className="my-error-line-wrp",Hr.innerHTML=Sn,Cr.addZone({afterLineNumber:ur||11,heightInLines:3,domNode:Hr})});var Vt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};On.addOverlayWidget(Vt),On.revealPositionInCenter({lineNumber:20,column:1})}},[ur,Sr.current,Ja]);const ea=(Vt="",On)=>{if(!Vt||Vt.trim()==="")return!0;const Hr=Sr.current.instance.getModel().getLineTokens(On);let jr=!1;for(let Nr=0;Nr<2;Nr++)Hr.getStandardTokenType(Nr)===1&&(jr=!0);return jr};(0,E.useEffect)(()=>{var Vt;const On=(Vt=Sr.current)==null?void 0:Vt.instance;if(On&&Ja&&Xn){const Cr=On.onDidBlurEditorWidget(()=>{Ii.current=!1}),Hr=On.onDidFocusEditorText(()=>{Ii.current=!0});return()=>{Cr.dispose(),Hr.dispose()}}},[Sr.current,Ja,Xn]),(0,E.useEffect)(()=>{var Vt;if((Vt=Sr.current)!=null&&Vt.instance&&Ja&&un){let On=Sr.current.instance,Cr=On.getModel();if(!Cr)return;(()=>{var tn;let Tt=[],It=[];const Zn=Cr.getAllDecorations();for(let yn of Zn)yn.options.className==="highlighted-line"&&(Tt.push((tn=yn==null?void 0:yn.range)==null?void 0:tn.startLineNumber),It.push(yn==null?void 0:yn.id));if(sr===Tt[0])return;Cr.deltaDecorations(It,[]);const Gn=Cr.getLineCount();sr&&sr<=Gn&&(On.deltaDecorations([],[{range:new ft.Range(sr,1,sr,Cr.getLineMaxColumn(sr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),On.revealLineInCenter(sr))})();const jr=(tn=!1)=>{var Tt;let It=[],Zn=[];const Gn=Cr.getAllDecorations();for(let yn of Gn)yn.options.linesDecorationsClassName==="breakpoints-select"&&(It.push((Tt=yn==null?void 0:yn.range)==null?void 0:Tt.startLineNumber),Zn.push(yn==null?void 0:yn.id));if(tn)return{lines:It,ids:Zn};Jn(It)},Nr=tn=>ge(void 0,null,function*(){let Tt={range:new ft.Range(tn,1,tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Cr.deltaDecorations([],[Tt]),jr()}),Ga=tn=>ge(void 0,null,function*(){let Tt=[];const It=On.getLineDecorations(tn);for(let Zn of It)Zn.options.linesDecorationsClassName==="breakpoints-select"&&Tt.push(Zn.id);yield Cr.deltaDecorations(Tt,[]),jr()}),za=tn=>{let Tt=On.getLineDecorations(tn);for(let It of Tt)if(It.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,At.isEqual)(va,jr(!0).lines)){Cr.deltaDecorations(jr(!0).ids,[]);const tn=va.map(Tt=>({range:new ft.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Cr.deltaDecorations([],tn)}const An=On.onDidChangeModelContent(tn=>{let Tt=On.getPosition();if(Tt){let It=Tt.lineNumber;clearTimeout(Ei.current),Ei.current=setTimeout(()=>{ea(Cr.getLineContent(It),It)?Ga(It):za(It)?(Ga(It),Nr(It)):jr()},100)}}),rn=On.onMouseDown(tn=>{var Tt,It,Zn;if(tn.target.detail&&((Zn=(It=(Tt=tn.target)==null?void 0:Tt.element)==null?void 0:It.className)!=null&&Zn.includes("line-numbers"))){let Gn=tn.target.position.lineNumber;if(ea(Cr.getLineContent(Gn),Gn))return;za(Gn)?Ga(Gn):Nr(Gn)}}),Yi=tn=>{let Tt={range:new ft.Range(tn,1,tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$r.current=On.deltaDecorations($r.current,[Tt])},$o=()=>{$r.current=On.deltaDecorations($r.current,[])},Ki=On.onMouseMove(tn=>{var Tt,It,Zn;if($o(),tn.target.detail&&((Zn=(It=(Tt=tn.target)==null?void 0:Tt.element)==null?void 0:It.className)!=null&&Zn.includes("line-numbers"))){let Gn=tn.target.position.lineNumber;if(ea(Cr.getLineContent(Gn),Gn))return;Yi(Gn)}}),wt=On.onMouseLeave(()=>{$o()});return()=>{An.dispose(),rn.dispose(),Ki.dispose(),wt.dispose()}}},[Sr.current,Ja,va,sr,un,ae]),(0,E.useEffect)(()=>{var Vt;(Vt=Sr.current)!=null&&Vt.instance&&un&&Sr.current.instance.setPosition({lineNumber:0,column:0})},[sr]);function Ir(){let Vt=Sr.current.instance;if(Vt){const On=Vt.getSelection(),Cr=Sr.current.pastePos||{},Hr=new ft.Range(Cr.startLineNumber||On.endLineNumber,Cr.startColumn||On.endColumn,Cr.endLineNumber||On.endLineNumber,Cr.endColumn||On.endColumn);setTimeout(()=>{Vt.executeEdits("",[{range:Hr,text:""}])},300)}}function qt(Vt){(window.navigator.platform.match("Mac")?Vt.metaKey:Vt.ctrlKey)&&Vt.keyCode==83&&(Vt.preventDefault(),kn())}const Ut=()=>{if(wn&&Sr.current.instance){const Vt=Sr.current.instance.getContentHeight();wr(Vt{if(!Ii.current)return;const{keyCode:On,ctrlKey:Cr,metaKey:Hr,target:jr,type:Nr}=Vt;return(Nr==="paste"||(On===67||On===86)&&(Hr||Cr))&&jr.nodeName==="TEXTAREA"&&($i(),Vt.preventDefault()),!1};function Dn(Vt,On){var Cr=window.URL||window.webkitURL||window,Hr=new Blob([On]),jr=document.createElementNS("http://www.w3.org/1999/xhtml","a");jr.href=Cr.createObjectURL(Hr),jr.download=Vt,Un(jr)}(0,E.useEffect)(()=>{Ut()},[Ut]),(0,E.useEffect)(()=>{Da.current&&!Ja&&Promise.all([ne.e(8909),ne.e(5507)]).then(ne.bind(ne,71448)).then(Vt=>{try{ft=Vt,Sr.current.instance=ft.editor.create(Da.current,{value:se,language:Ve(ae),theme:ot,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Br||!1}},le);const On=Sr.current.instance;let jr=[...Ke.BH._menuItems].find(An=>An[0]._debugName=="EditorContext")[1],Nr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ga=(An,rn)=>{var Yi,$o;let Ki=An._first;do rn.includes(($o=(Yi=Ki.element)==null?void 0:Yi.command)==null?void 0:$o.id)&&An._remove(Ki);while(Ki=Ki.next)};if(Vr(On,ft),setTimeout(()=>{Ut(),Sr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Dn(Qr||"educoder.txt",On.getValue())}})},500),Sr.current.subscription=On.onDidChangeModelContent(An=>{Aa.current?clearTimeout(ga.current):(Ut(),Pr(On.getValue(),An)),ga.current=setTimeout(()=>{Aa.current=!1},500)}),window.Monaco||Ge(ft,Ve(ae)),Xn&&(Ga(jr,Nr),Da.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lt),window.removeEventListener("paste",Lt),window.addEventListener("keydown",Lt),window.addEventListener("paste",Lt)),window.Monaco=ft,Ht&&On.onDidBlurEditorWidget(()=>{Ht(On.getValue())}),Ar&&On.onDidFocusEditorText(()=>{Xn&&Kt(),Ar(On.getValue())}),Xn){Kt();try{On.onDidPaste(An=>{const rn=On.getSelection(),Yi=Sr.current.pastePos||{},$o=new ft.Range(Yi.startLineNumber||rn.endLineNumber,Yi.startColumn||rn.endColumn,Yi.endLineNumber||rn.endLineNumber,Yi.endColumn||rn.endColumn);On.executeEdits("",[{range:An.range,text:""}])})}catch(An){}}let za=hi();return Er&&typeof Er=="string"&&new pe(Er,On,ft),ri(!0),()=>{const An=Sr.current.instance;An.dispose();const rn=An.getModel();rn&&rn.dispose(),Sr.current.subscription&&Sr.current.subscription.dispose(),za.unobserve(Da.current)}}catch(On){}})},[]),(0,E.useEffect)(()=>{if(Sr.current.instance&&Ja)return document.addEventListener("keydown",qt,!1),()=>{document.removeEventListener("keydown",qt)}},[kn,Ja]),(0,E.useEffect)(()=>{let Vt=Sr.current.instance;if(Vt&&Ja){let On=Ve(ae);ft.editor.setModelLanguage(Vt.getModel(),On)}},[ae,Ja]),(0,E.useEffect)(()=>{Sr.current.instance&&Ja&&ft.editor.setTheme(ot)},[ot,Ja]),(0,E.useEffect)(()=>{let Vt=Sr.current.instance;En.current=me,Vt&&Ja&&(Vt.updateOptions(et({},me)),setTimeout(()=>{Vt.getModel().updateOptions(et({},me))},200))},[JSON.stringify(me),Ja]),(0,E.useEffect)(()=>{let Vt=Sr.current.instance;Vt&&Ja&&Vt.layout()},[mn,he,Ja]);const[rr,Rn]=(0,E.useState)(lt(mn)),[ar,wr]=(0,E.useState)(lt(he)),er=Ft(et({},ce),{width:rr,height:ar,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:Da,style:er,onFocus:()=>{Xn&&Kt()}},on&&E.createElement(Xe.CopyToClipboard,{text:se,onCopy:()=>nt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(bt.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function dn({width:ct="100%",height:Nt="100%",original:mn,modified:he,language:se,options:ae={}}){const ce=(0,E.useRef)(),[me,le]=(0,E.useState)(null);function ot(wn){let Xn;return ce.current&&(Xn=new ve.Z(Nn=>{for(let Pr of Nn)(Pr.target.offsetHeight>0||Pr.target.offsetWidth>0)&&wn.layout()}),Xn.observe(ce.current)),Xn}(0,E.useEffect)(()=>(ce.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(wn=>{ft=wn;const Xn=ft.editor.createDiffEditor(ce.current,Ft(et({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ae),{wordWrap:!0}));le(Xn);let Nn=ot(Xn);return()=>{Xn.dispose();const Pr=Xn.getModel();Pr&&Pr.dispose(),Nn.unobserve(ce.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{me&&me.setModel({original:ft.editor.createModel(mn,se),modified:ft.editor.createModel(he,se)})},[mn,he,se,me]);const Ht=lt(ct),on=lt(Nt),kn={width:Ht,height:on};return E.createElement("div",{className:"my-diff-editor",ref:ce,style:kn})}},32767:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Qe}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ve=ne(29787),xe=ne(25399),Je=ne(89787),We=ne(92310),Ae=ne.n(We),Ue=ne(95203),tt=ne(28860),Se=ne(59301),Qe=({className:qe,dataSource:pt=[],col:Ge=4,right:Oe,bottom:Be=23,precision:be=0,wrapWidth:Ne=1200,trackEventItems:Ye,loading:it,onRemove:pe=()=>{},isCurrent:Ke=!0,showProgress:nt=!1,showAlias:bt=!1,category:At,hiddenClick:ut})=>{const Xe=Math.floor((Ne-(Ge-1)*Oe)/Ge),ht=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Se.createElement(ve.Z,{spinning:it},Se.createElement("div",{className:Ae()(E.list,qe)},!!(pt!=null&&pt.length)&&(pt==null?void 0:pt.map((Pe,ze)=>{var Te,rt,Pt,st,et,Ft,De,ge,lt,Et,yt,Ze,Ve;const{name:ft,id:Kt,identifier:kt,featured:dn,school_name:ct,image_url:Nt,excellent:mn,is_plan:he}=Pe;return Se.createElement("div",{key:Kt,className:Ke&&nt?E.wrapisCurrent:E.wrap,style:{width:Xe,marginRight:(1+ze)%Ge===0?0:Oe+be,marginBottom:Be}},Se.createElement("a",{className:E.li,onClick:se=>{se.preventDefault(),se.stopPropagation(),Ye&&(0,Ue.L9)([Ye]),(0,Ue.xg)(`/paths/${kt}`)}},Se.createElement("div",{className:E.img},Se.createElement("img",{className:E.cover,src:`${Nt}`}),(Te=Pe==null?void 0:Pe.subject_tags)==null?void 0:Te.map((se,ae)=>{var ce,me;if(ae===0){const ot=(ce=ht.find(Ht=>Ht.name==se))==null?void 0:ce.swimg;return Se.createElement("img",{className:E.sign,src:ot,style:{left:"-4px"}})}const le=(me=ht.find(ot=>ot.name==se))==null?void 0:me.ptimg;return Se.createElement("img",{className:E.sign,src:le,style:{left:`${48+52*(ae-1)+2*ae}px`}})}),Se.createElement("div",{className:E.tagsDom},Se.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Pe==null?void 0:Pe.excellent)&&Se.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((rt=Pe==null?void 0:Pe.custom_tags)==null?void 0:rt.length)>0&&Se.createElement(xe.Z,{title:(et=(st=Pe==null?void 0:Pe.custom_tags)==null?void 0:st[((Pt=Pe==null?void 0:Pe.custom_tags)==null?void 0:Pt.length)-1])==null?void 0:et.tag_name},Se.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Se.createElement("span",{className:"multi-llipsis1e text-10px"},(ge=(De=Pe==null?void 0:Pe.custom_tags)==null?void 0:De[((Ft=Pe==null?void 0:Pe.custom_tags)==null?void 0:Ft.length)-1])==null?void 0:ge.tag_name))))),At=="hide"&&(Pe==null?void 0:Pe.studying)&&Ke&&Se.createElement("div",{className:`${E.movebq} user-path-items`,onClick:se=>{se.stopPropagation(),pe(Pe)}},Se.createElement("i",{className:"iconfont icon-yichu1 font12"}),Se.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(At)&&Ke&&Se.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:se=>{se.stopPropagation(),ut(Pe)}},Se.createElement("i",{className:`iconfont ${At=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Se.createElement("span",null,At=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Se.createElement("div",{className:E.name},Se.createElement(xe.Z,{title:bt&&(Pe!=null&&Pe.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ft}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pe==null?void 0:Pe.excellent_alias_name}`)):ft},Se.createElement("span",{className:E.e},bt&&(Pe==null?void 0:Pe.excellent_alias_name)||ft))),Ke&&nt&&((lt=Pe==null?void 0:Pe.progress)==null?void 0:lt.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(Je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Et=Pe==null?void 0:Pe.progress)==null?void 0:Et.my_score)/((yt=Pe==null?void 0:Pe.progress)==null?void 0:yt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ze=Pe==null?void 0:Pe.progress)==null?void 0:Ze.my_score,"/",(Ve=Pe==null?void 0:Pe.progress)==null?void 0:Ve.all_score),(!Ke||!nt)&&Se.createElement(xe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ct}`},Se.createElement("div",{className:E.unit},Se.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ct)),(!Ke||!nt)&&Se.createElement("div",{className:E.tags},Se.createElement("div",null,Se.createElement(xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,Pe.stages_count))),Se.createElement(xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,Pe.members_count)))))))})),!pt.length&&Se.createElement(tt.Z,null)))}},86475:function(Bt,_t,ne){"use strict";ne.d(_t,{jL:function(){return We},w9:function(){return Ze},QD:function(){return sr},cQ:function(){return st.Z},op:function(){return Ar},O5:function(){return Ir},_b:function(){return Sr},t7:function(){return Ne},Gi:function(){return ct},YG:function(){return kt},qp:function(){return Qe},vr:function(){return Br},qE:function(){return Qr},Je:function(){return pe},wb:function(){return Pt},cq:function(){return ce},tp:function(){return Ge}});var E=ne(59301),ve={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCy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hPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",We=({dataSource:qt=[],img:Ut,imgWidth:Un=346,title:Lt,sunTitle:Dn,bannerExtraContent:rr})=>E.createElement("div",{className:ve.banner},E.createElement("div",{className:ve.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Lt),E.createElement("span",null,Dn)),qt.length>0&&E.createElement("div",{className:ve.btns},qt.map((Rn,ar)=>E.createElement("div",{key:ar,onClick:Rn.click},Rn.name,Rn.sign?E.createElement("img",{src:xe,width:39}):null))),rr),Ut&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Ut,width:Un}))),Ae={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ue=ne(92310),tt=ne.n(Ue),Se=ne(89392),Qe=({dataSource:qt=[],value:Ut,onChange:Un,onTitleChange:Lt,className:Dn,title:rr,titleWidth:Rn=41,style:ar={},fontColor:wr="#6A7283",showCount:er})=>{const[Vt,On]=(0,E.useState)(1),[Cr,Hr]=(0,E.useState)(!1),jr=(0,E.useRef)(null),Nr=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var Ga;qt.length!==0&&(((Ga=jr==null?void 0:jr.current)==null?void 0:Ga.clientHeight)>97?On(1):On(0)),qt.length===0&&On(0),Hr(!1)},[qt]),E.createElement("div",{className:tt()(Ae.row,Dn,"fadeIn","animated"),style:ar},E.createElement("div",{onClick:(0,Se.throttle)(()=>Lt==null?void 0:Lt(),2e3),style:{width:Rn,marginTop:Cr?12:4},className:`${Ae.title} ${Lt?"current":""}`},rr),E.createElement("div",{className:Cr?`${Ae.tagsWrap} ${Ae.tagsBorderWrap}`:Ae.tagsWrap},E.createElement("div",{className:Ae.bar,ref:Nr,style:Vt>0?{height:Vt===1?97:"auto",overflow:Vt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Ae.tag,ref:jr},qt==null?void 0:qt.map(Ga=>E.createElement("span",{onClick:()=>Un(Ga.id),key:Ga.id,style:{color:wr},className:Ut===Ga.id?Ae.active:""},E.createElement("span",{title:Ga.name,className:Ae.name},Ga.name),!!er&&E.createElement("span",{className:Ae.num},Ga.count))))),!!Vt&&E.createElement(E.Fragment,null,Vt===1?E.createElement("div",{onClick:()=>{var Ga;On(2),((Ga=jr==null?void 0:jr.current)==null?void 0:Ga.clientHeight)>245?Hr(!0):Hr(!1)},className:Ae.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{Nr.current.scrollTop=0,On(1),Hr(!1)},className:Ae.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},qe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ge=({dataSource:qt=[],value:Ut,onChange:Un,className:Lt,style:Dn={}})=>E.createElement("div",{style:Dn,className:tt()(qe.tabs,Lt)},qt.map(rr=>E.createElement("span",{onClick:()=>Un(rr.id),className:Ut===rr.id?qe.active:"",key:rr.id},rr.name))),Oe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Be=ne(37568),Ne=({dataSource:qt=[],value:Ut="",onChange:Un,onInputChange:Lt=()=>{},className:Dn,style:rr={},placeholder:Rn,allowClear:ar=!1})=>{var wr;const[er,Vt]=(0,E.useState)(""),[On,Cr]=(0,E.useState)("");(0,E.useEffect)(()=>{var Nr;let Ga=Ut;(Nr=JSON.stringify(Ut))!=null&&Nr.includes("{")&&(Vt(Ut.id),Ga=Ut.value||"");try{Cr(decodeURIComponent(Ga||""))}catch(za){Cr(decodeURIComponent(Ga||""))}},[Ut]);const Hr=()=>{Un(encodeURIComponent(On),er||null)},jr=Nr=>{Nr!==er&&(Vt(Nr),Un(encodeURIComponent(On),Nr))};return E.createElement("div",{className:tt()(Oe.input,Dn),style:rr},!!qt.length&&E.createElement("div",{className:Oe.dropdown},E.createElement("div",{className:Oe.text},(wr=qt.find(Nr=>Nr.id===er))==null?void 0:wr.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Oe.b1}),E.createElement("b",{className:Oe.b2})),E.createElement("div",{className:Oe.menu},qt.map((Nr,Ga)=>E.createElement("div",{key:Ga,onClick:()=>jr(Nr.id)},Nr.name)))),E.createElement(Be.default,{onPressEnter:Hr,value:On,onChange:Nr=>{Cr(Nr.target.value),Lt(encodeURIComponent(Nr.target.value),er||null)},placeholder:Rn,variant:"borderless",allowClear:ar,onClear:()=>Un("",er||null)}),E.createElement("i",{onClick:Hr,className:"iconfont icon-sousuo9 font14 current"}))},Ye={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pe=({value:qt,onChange:Ut,className:Un,total:Lt,pageSize:Dn,style:rr={}})=>{const Rn=qt<2,ar=qt>=Math.ceil(Lt/Dn);return Lt<=Dn?E.createElement(E.Fragment,null):E.createElement("div",{className:tt()(Ye.quickPager,Un),style:rr},E.createElement("div",{onClick:()=>{Rn||Ut(qt-1,"prev")},className:Rn?Ye.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{ar||Ut(qt+1,"next")},className:ar?Ye.disabled:""},"\u4E0B\u4E00\u9875"))},Ke={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},nt=ne(29787),bt=ne(25399),At=ne(63139),ut=ne(51802),Xe=ne(95203),ht=ne(96908),Pe=ne(57177),ze=ne(81378),Te=ne(28860),Pt=({className:qt,dataSource:Ut=[],col:Un=4,right:Lt,bottom:Dn=23,precision:rr=0,wrapWidth:Rn=1200,trackEventItems:ar,loading:wr})=>{const er=Math.floor((Rn-(Un-1)*Lt)/Un);return E.createElement(nt.Z,{spinning:wr},E.createElement("div",{className:tt()(Ke.list,qt)},!!Ut.length&&Ut.map((Vt,On)=>{const{name:Cr,id:Hr,identifier:jr,power:Nr,cover_image_id:Ga,pic:za}=Vt;return E.createElement("div",{className:Ke.wrap,key:Hr,style:{width:er,marginRight:(1+On)%Un===0?0:Lt+rr,marginBottom:Dn}},E.createElement("a",{target:"_blank",href:`/shixuns/${jr}/challenges`,className:Ke.li,onClick:An=>{An.preventDefault(),ar&&(0,Xe.L9)([ar]),Nr&&(0,Xe.xg)(`/shixuns/${jr}/challenges`)}},E.createElement("div",{className:Ke.img},E.createElement("img",{className:Ke.cover,src:`${za}`}),Vt.is_jupyter&&E.createElement("img",{className:Ke.sign,src:ht}),Vt.is_jupyter_lab&&E.createElement("img",{className:Ke.sign,src:Pe}),Vt.is_unity_3d&&E.createElement("img",{className:Ke.sign,src:ze})),E.createElement("div",{className:Ke.name},E.createElement(bt.Z,{title:Cr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:Ke.e},Cr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:Ke.tags},E.createElement(bt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Vt.challenges_count))),!!Vt.myshixuns_count&&E.createElement(bt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Vt.myshixuns_count))),E.createElement(bt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Vt.level))),E.createElement("div",{className:Ke.rate},E.createElement(At.Z,{allowHalf:!0,disabled:!0,defaultValue:Vt.score_info}),E.createElement("span",null,"\xA0",Vt.score_info?`${Vt.score_info}\u5206`:"5\u5206")))),!Nr&&E.createElement("div",{className:Ke.lockWrap},E.createElement("img",{src:`${ut.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ut.length&&E.createElement(Te.Z,null)))},st=ne(32767),et={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ft=ne(62957),De=ne(96599),ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0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RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",lt=ne(59301),Et=(qt,Ut,Un)=>new Promise((Lt,Dn)=>{var rr=wr=>{try{ar(Un.next(wr))}catch(er){Dn(er)}},Rn=wr=>{try{ar(Un.throw(wr))}catch(er){Dn(er)}},ar=wr=>wr.done?Lt(wr.value):Promise.resolve(wr.value).then(rr,Rn);ar((Un=Un.apply(qt,Ut)).next())}),Ze=({className:qt,dataSource:Ut=[],col:Un=4,right:Lt,bottom:Dn=23,precision:rr=0,wrapWidth:Rn=1200,trackEventItems:ar,loading:wr,category:er,hiddenClick:Vt,handleVery:On=()=>!0,isCurrent:Cr})=>{const[Hr,jr]=Ft.default.useModal(),Nr=Math.floor((Rn-(Un-1)*Lt)/Un),Ga=za=>Et(void 0,null,function*(){Hr.confirm({title:"\u7F6E\u9876",width:500,content:lt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",lt.createElement("span",{className:"c-blue"},"\u201C",za.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return lt.createElement(nt.Z,{spinning:wr},jr,lt.createElement("div",{className:tt()(et.list,qt)},!!Ut.length&&Ut.map((za,An)=>{const{subject_identifier:rn,id:Yi,identifier:$o,power:Ki}=za,wt=za.is_public!=0&&za.is_public;return lt.createElement("div",{className:et.wrap,key:Yi,style:{width:Nr,marginRight:(1+An)%Un===0?0:Lt+rr,marginBottom:Dn}},za.homepage_show&<.createElement("div",{className:et.btnsTop},lt.createElement(De.default,{color:"red"},"\u7F6E\u9876")),lt.createElement("a",{className:et.li,onClick:tn=>{tn.preventDefault(),On(za==null?void 0:za.first_category_url)&&(ar&&(0,Xe.L9)([ar]),(0,Xe.xg)(za.first_category_url))}},lt.createElement("div",{className:et.top},lt.createElement(bt.Z,{title:za.name},lt.createElement("div",{className:et.name},za.name)),lt.createElement("img",{className:et.img,src:ut.Z.IMG_SERVER+"/images/"+za.avatar_url}),lt.createElement("div",{className:et.text,title:za.creator},za.creator),rn&<.createElement("div",{className:et.btns},lt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),lt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),wt&<.createElement("div",{className:et.sign},"\u516C\u5F00"),Cr&<.createElement("div",{className:et.hidden,onClick:tn=>{tn.stopPropagation(),Vt(za)}},lt.createElement("i",{className:`iconfont ${er=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),er=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),lt.createElement("div",{className:et.bottom},za.visits>0&<.createElement(bt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-liulanyan"}),lt.createElement("span",null,za.visits))),za.course_members_count>0&<.createElement(bt.Z,{title:"\u6210\u5458",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-chengyuan"}),za.course_members_count)),za.tasks_count>0&<.createElement(bt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-zuoye"}),za.tasks_count)),za.is_end?lt.createElement("div",{style:{color:"#6B758B"}}):lt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!za.is_accessible&<.createElement("div",{className:et.lockWrap},lt.createElement("img",{src:`${ut.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),lt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ut.length&<.createElement(Te.Z,null)))},Ve={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ft=ne(88634),kt=({dataSource:qt=[],value:Ut,onChange:Un,className:Lt,style:Dn={},tabBarExtraContent:rr})=>E.createElement("div",{className:tt()(Ve.tabs,Lt),style:Dn},E.createElement("div",{className:Ve.tabsWrap},qt.map((Rn,ar)=>!(Rn!=null&&Rn.hide)&&E.createElement("aside",{className:Ve.tab,onClick:()=>{Un(Rn.id),Rn.link&&ft.history.push(Rn.link)},key:ar},E.createElement("div",{className:Ut===Rn.id?Ve.active:""},Rn.name),(Rn==null?void 0:Rn.resetCount)==null&&(Rn==null?void 0:Rn.total)!==void 0&&E.createElement("span",null,"\uFF08",Rn==null?void 0:Rn.total,"\uFF09"),(Rn==null?void 0:Rn.resetCount)!==void 0&&(Rn==null?void 0:Rn.total)!==void 0&&E.createElement(bt.Z,{title:(Rn==null?void 0:Rn.tip)!=null?Rn==null?void 0:Rn.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},Rn==null?void 0:Rn.resetCount),"/",E.createElement("span",null,Rn==null?void 0:Rn.total),"\uFF09"))))),E.createElement("div",{className:Ve.tabBar},rr)),ct=({className:qt,style:Ut={},children:Un})=>E.createElement("div",{className:tt()(qt),style:Ut},Un),Nt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},mn=ne(75727),he=ne(93041);const se=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ce=({sortValue:qt,dropValue:Ut,className:Un,onSort:Lt,onDrop:Dn,dataSource:rr=se})=>{var Rn;return E.createElement("div",{className:tt()(Nt.orderWrap,Un)},E.createElement(mn.Z,{dropdownRender:()=>E.createElement(he.default,null,rr.map((ar,wr)=>E.createElement(he.default.Item,{key:wr,onClick:()=>Dn(ar.id)},ar.name)))},E.createElement("span",{className:Nt.orderTextWrap},(Rn=rr.find(ar=>Ut===ar.id))==null?void 0:Rn.name)),E.createElement("span",{className:Nt.orderIconWrap},E.createElement("span",{className:Nt.orderAsc},E.createElement("i",{className:qt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer}`,onClick:()=>Lt(qt==="asc"?"desc":"asc")})),E.createElement("span",{className:Nt.orderDesc},E.createElement("i",{className:qt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer}`,onClick:()=>Lt(qt==="asc"?"desc":"asc")}))))},me={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},le=ne(7939),ot=Object.defineProperty,Ht=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,wn=(qt,Ut,Un)=>Ut in qt?ot(qt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Un}):qt[Ut]=Un,Xn=(qt,Ut)=>{for(var Un in Ut||(Ut={}))on.call(Ut,Un)&&wn(qt,Un,Ut[Un]);if(Ht)for(var Un of Ht(Ut))kn.call(Ut,Un)&&wn(qt,Un,Ut[Un]);return qt},Nn=(qt,Ut)=>{var Un={};for(var Lt in qt)on.call(qt,Lt)&&Ut.indexOf(Lt)<0&&(Un[Lt]=qt[Lt]);if(qt!=null&&Ht)for(var Lt of Ht(qt))Ut.indexOf(Lt)<0&&kn.call(qt,Lt)&&(Un[Lt]=qt[Lt]);return Un},Pr=(qt,Ut,Un)=>new Promise((Lt,Dn)=>{var rr=wr=>{try{ar(Un.next(wr))}catch(er){Dn(er)}},Rn=wr=>{try{ar(Un.throw(wr))}catch(er){Dn(er)}},ar=wr=>wr.done?Lt(wr.value):Promise.resolve(wr.value).then(rr,Rn);ar((Un=Un.apply(qt,Ut)).next())}),Ar=qt=>{var Ut=qt,{className:Un,style:Lt,children:Dn,loading:rr=!1,openLoading:Rn,onClick:ar=()=>{},size:wr="middle",shape:er="round"}=Ut,Vt=Nn(Ut,["className","style","children","loading","openLoading","onClick","size","shape"]);const[On,Cr]=(0,E.useState)(!1);return E.createElement(le.ZP,Xn({onClick:(0,Se.throttle)(Hr=>Pr(void 0,null,function*(){Rn&&Cr(!0);try{yield ar(Hr)}catch(jr){console.log("error",jr)}Rn&&Cr(!1)}),2e3,{leading:!0,trailing:!1}),className:tt()(me.btn,me[`${wr}-${er}`],Un),style:Lt,size:wr,shape:er,loading:On||rr},Vt),Dn)},Jn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Qr=({className:qt,style:Ut,children:Un=null,onClick:Lt,title:Dn})=>E.createElement("div",{className:tt()(Jn.head,qt),style:Ut},E.createElement("span",{className:"primary-hover",onClick:Lt},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:Dn},Dn),E.createElement("div",{className:Jn.node},Un)),ur={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},sr=({confirmShow:qt=!0,confirmTitle:Ut,confirmClick:Un,cancelShow:Lt=!0,cancelTitle:Dn,cancelClick:rr,className:Rn,style:ar,confirmLoading:wr=!1})=>E.createElement("div",{className:tt()(ur.btns,Rn),style:ar},qt&&E.createElement(le.ZP,{loading:wr,onClick:Un,type:"primary",className:ur.confirm},Ut),Lt&&E.createElement(le.ZP,{onClick:rr,className:ur.cancel},Dn)),un={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Br=({className:qt,style:Ut={},LeftContent:Un,children:Lt,RightContent:Dn})=>E.createElement("div",{className:tt()(un.fixedBottom,qt),style:Ut},E.createElement("div",{className:un.wrap},E.createElement("div",{className:un.left},Un),E.createElement("div",{className:un.center},Lt),E.createElement("div",{className:un.right},Dn))),Xa={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Sr=({className:qt,style:Ut={},dataSource:Un=[]})=>E.createElement("div",{className:tt()(Xa.crumbs,qt),style:Ut},Un.map((Lt,Dn)=>Dnft.history.push(Lt.path)},Lt.name):E.createElement("span",null,Lt.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:Dn,style:{color:"#5F6368"}},Lt.name))),En=ne(11938),nr=Object.defineProperty,$r=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ga=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ja=(qt,Ut,Un)=>Ut in qt?nr(qt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Un}):qt[Ut]=Un,ri=(qt,Ut)=>{for(var Un in Ut||(Ut={}))Ei.call(Ut,Un)&&Ja(qt,Un,Ut[Un]);if(ga)for(var Un of ga(Ut))Ii.call(Ut,Un)&&Ja(qt,Un,Ut[Un]);return qt},hi=(qt,Ut)=>$r(qt,Aa(Ut)),$i=(qt,Ut)=>{var Un={};for(var Lt in qt)Ei.call(qt,Lt)&&Ut.indexOf(Lt)<0&&(Un[Lt]=qt[Lt]);if(qt!=null&&ga)for(var Lt of ga(qt))Ut.indexOf(Lt)<0&&Ii.call(qt,Lt)&&(Un[Lt]=qt[Lt]);return Un};const{Countdown:Ha}=En.default;var Ir=qt=>{var Ut=qt,{onChange:Un}=Ut,Lt=$i(Ut,["onChange"]);const[Dn,rr]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof Dn=="number"&&Dn>=0&&Un(Dn)},[Dn]);const Rn=ar=>{const wr=Math.floor(ar/1e3);rr(wr)};return E.createElement(Ha,hi(ri({},Lt),{onChange:Rn}))}},78039:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return ve}});var E=ne(59301);function ve(xe,Je){const We=(0,E.useRef)();(0,E.useEffect)(()=>{We.current=xe}),(0,E.useEffect)(()=>{function Ae(){We.current()}if(Je!==null){let Ue=setInterval(Ae,Je);return()=>clearInterval(Ue)}},[Je])}},12413:function(Bt,_t,ne){"use strict";ne.r(_t),ne.d(_t,{default:function(){return js}});var E=ne(59301),ve=ne(88634),xe=ne(28284),Je=ne(6767),We=ne(91882),Ae=ne(37568),Ue=ne(62673),tt=ne(47889),Se=ne(4875),He=ne(7939),Qe={flex_box_center:"flex_box_center___aPGWN",flex_space_between:"flex_space_between___MQNX5",flex_box_vertical_center:"flex_box_vertical_center___Z7QdK",flex_box_center_end:"flex_box_center_end___JQl5O",flex_box_column:"flex_box_column___IhYhx",bg:"bg___Kg8x_",title:"title___UhsVG",titleLeft:"titleLeft___NPVwn",titleRight:"titleRight___UGtmZ",formWrap:"formWrap___Jowb2",baseLineHeight:"baseLineHeight___N68WX",radioBtnWrapper:"radioBtnWrapper___bX7Pi",radiogroup:"radiogroup___ukf8u",easy:"easy___ZHYPU",medium:"medium___piewx",hard:"hard___HMXyt",selectdiv:"selectdiv___gkuBG",divitem:"divitem___vNm0q",bottmodiv:"bottmodiv___assW5",cancelBtn:"cancelBtn___Nl6Pi",confirmBtn:"confirmBtn___BNoFU",baseFormItem:"baseFormItem___ILZ2V",cascaderPopup:"cascaderPopup___QPxW3",addQuestionBtn:"addQuestionBtn___OjehS",concat:"concat___kliXB"},qe=ne(62957),pt=ne(24017),Ge=ne(66649),Oe=ne.n(Ge),Be=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())});const be=({user:ue,dispatch:ke,classroomList:Le,onModalOk:Yt,setsubloading:_n})=>{const yr=(0,ve.useParams)(),[Pn,hn]=(0,E.useState)(),[zt,Mn]=(0,E.useState)(!1);function Ra(sn){return sn&&sn{Mn(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:Le.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(zt){Je.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}_n(!1),ke({type:"classroomList/setActionTabs",payload:{}})}},E.createElement("div",null,E.createElement("span",null,"EduCoder\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),E.createElement("br",null),E.createElement(pt.default,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:Ra,format:"YYYY-MM-DD HH:mm:ss",onChange:(sn,Wt)=>{hn(Wt)},showTime:{defaultValue:Oe()("00:00:00","HH:mm:ss")}}),E.createElement("br",null),E.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),E.createElement("br",null),E.createElement("div",{style:{textAlign:"end"}},E.createElement(He.ZP,{loading:zt,type:"primary",onClick:()=>Be(void 0,null,function*(){Mn(!0),Yt(Pn,()=>{ke({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var Ne=(0,ve.connect)(({user:ue,classroomList:ke})=>({user:ue,classroomList:ke}))(be),Ye=ne(70892),it=ne(32134),pe=ne(12893),Ke={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},nt=ne(82326),bt=Object.defineProperty,At=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ht=(ue,ke,Le)=>ke in ue?bt(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,Pe=(ue,ke)=>{for(var Le in ke||(ke={}))ut.call(ke,Le)&&ht(ue,Le,ke[Le]);if(At)for(var Le of At(ke))Xe.call(ke,Le)&&ht(ue,Le,ke[Le]);return ue},ze=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),rt=({setitem:ue,item:ke,rz:Le})=>{var Yt,_n,yr,Pn,hn,zt,Mn,Ra;let[sn,Wt]=(0,E.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[cn]=xe.default.useForm(),[Qn,Yn]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Le&&!Qn&&(sn.zydatas=Le,Wt(Pe({},sn)),Yn(!0),ke!=null&&ke.ec_course_id&&Ln())},[ke,Le,Qn]),console.log(sn,"params");function Ln(){return ze(this,null,function*(){yield Hn(ke==null?void 0:ke.ec_major_school_id),yield xn(ke==null?void 0:ke.ec_year_id),yield or(ke==null?void 0:ke.ec_course_id),cn.setFieldsValue({ec_course_id:ke==null?void 0:ke.ec_course_id,ec_major_school_id:ke==null?void 0:ke.ec_major_school_id,ec_point_ids:ke==null?void 0:ke.ec_point_ids,ec_year_id:ke==null?void 0:ke.ec_year_id})})}function Hn(xr){return ze(this,null,function*(){const lr=yield(0,Ye.ZP)(`/api/ec_major_schools/${xr}/ec_years/get_year_list.json`,{method:"get"});sn.jbdatas=lr==null?void 0:lr.data,Wt(Pe({},sn)),cn.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function xn(xr){return ze(this,null,function*(){const lr=yield(0,Ye.ZP)(`/api/ec_years/${xr}/ec_courses/get_courses.json`,{method:"get"});sn.kcdatas=lr==null?void 0:lr.data,Wt(Pe({},sn)),cn.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const or=xr=>ze(void 0,null,function*(){const lr=yield(0,Ye.ZP)(`/api/ec_courses/${xr}/ec_points.json`,{method:"get",params:{ec_course_id:xr}});sn.zsdatas=lr==null?void 0:lr.data,Wt(Pe({},sn))});return E.createElement("div",{className:Ke.from},E.createElement(xe.default,{form:cn,layout:"inline",onValuesChange:xr=>{console.log("----",xr),xr.ec_major_school_id&&(sn.jbdatas=[],sn.kcdatas=[],sn.zsdatas=[],Wt(Pe({},sn)),Hn(xr.ec_major_school_id)),xr.ec_year_id&&(sn.kcdatas=[],sn.zsdatas=[],Wt(Pe({},sn)),xn(xr.ec_year_id)),xr.ec_course_id&&(sn.zsdatas=[],Wt(Pe({},sn)),or(xr.ec_course_id))},onFinish:xr=>ze(void 0,null,function*(){ue(xr)})},E.createElement(xe.default.Item,{name:"ec_major_school_id"},E.createElement(nt.default,{style:{width:160},disabled:((Yt=sn.zydatas)==null?void 0:Yt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(_n=sn==null?void 0:sn.zydatas)==null?void 0:_n.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.ec_major_school_id},xr==null?void 0:xr.name)))),E.createElement(xe.default.Item,{name:"ec_year_id"},E.createElement(nt.default,{style:{width:160},disabled:((yr=sn.jbdatas)==null?void 0:yr.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Pn=sn==null?void 0:sn.jbdatas)==null?void 0:Pn.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.ec_year_id},xr==null?void 0:xr.year)))),E.createElement(xe.default.Item,{name:"ec_course_id"},E.createElement(nt.default,{style:{width:208},disabled:((hn=sn.kcdatas)==null?void 0:hn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(zt=sn==null?void 0:sn.kcdatas)==null?void 0:zt.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.id},xr==null?void 0:xr.name)))),E.createElement(xe.default.Item,{name:"ec_point_ids"},E.createElement(nt.default,{onChange:()=>{cn.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((Mn=sn.zsdatas)==null?void 0:Mn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Ra=sn==null?void 0:sn.zsdatas)==null?void 0:Ra.map((xr,lr)=>E.createElement(nt.default.Option,{key:lr,value:xr==null?void 0:xr.id},xr==null?void 0:xr.name))))))},Pt=Object.defineProperty,st=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,lt=(ue,ke,Le)=>ke in ue?Pt(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,Et=(ue,ke)=>{for(var Le in ke||(ke={}))De.call(ke,Le)&<(ue,Le,ke[Le]);if(Ft)for(var Le of Ft(ke))ge.call(ke,Le)&<(ue,Le,ke[Le]);return ue},yt=(ue,ke)=>st(ue,et(ke)),Ze=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())});const Ve=({user:ue,exercise_id:ke=null,homework_common_id:Le=null,setitem:Yt})=>{var _n,yr,Pn;let[hn,zt]=(0,E.useState)([{id:Math.random()}]),[Mn,Ra]=(0,E.useState)(null);function sn(){return Ze(this,null,function*(){var cn,Qn,Yn,Ln;let Hn=yield(0,Ye.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:ke,homework_common_id:Le}});if(((cn=Hn==null?void 0:Hn.data)==null?void 0:cn.length)>0){let xn=[];(Qn=Hn==null?void 0:Hn.data)==null||Qn.map(or=>{var xr;(xr=or==null?void 0:or.ec_point_ids)==null||xr.map(lr=>{xn.push(lr)})}),Yt(yt(Et({},(Yn=Hn==null?void 0:Hn.data)==null?void 0:Yn[0]),{ec_point_ids:xn})),zt((Ln=Hn==null?void 0:Hn.data)==null?void 0:Ln.map(or=>yt(Et({},or),{id:Math.random()})))}})}(0,E.useEffect)(()=>{var cn,Qn;(Qn=(cn=ue==null?void 0:ue.userInfo)==null?void 0:cn.course)!=null&&Qn.course_school_id&&Wt()},[(yr=(_n=ue==null?void 0:ue.userInfo)==null?void 0:_n.course)==null?void 0:yr.course_school_id]);function Wt(){return Ze(this,null,function*(){var cn,Qn;const Yn=yield(0,Ye.ZP)(`/api/schools/${(Qn=(cn=ue==null?void 0:ue.userInfo)==null?void 0:cn.course)==null?void 0:Qn.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ra(Yn==null?void 0:Yn.data),(Le||ke)&&sn()})}return console.log(hn,Mn,"datas"),E.createElement("div",{style:{display:(Pn=ue.userInfo.course)!=null&&Pn.is_openengineering?"":"none"}},E.createElement("div",{className:Ke.wrap},E.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",E.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),E.createElement("div",{className:Ke.itemWarp},hn==null?void 0:hn.map((cn,Qn)=>E.createElement("div",{key:cn.id,style:{display:"flex",alignItems:"center",marginBottom:20}},E.createElement(rt,{rz:Mn,item:cn,setitem:Yn=>{Yn=Et(Et({},hn==null?void 0:hn[Qn]),Yn),hn.splice(Qn,1,Yn),zt([...hn]);let Ln=[];hn==null||hn.map(Hn=>{var xn;(xn=Hn==null?void 0:Hn.ec_point_ids)==null||xn.map(or=>{Ln.push(or)})}),Yt(yt(Et({},Yn),{ec_point_ids:Ln}))}}),E.createElement(it.Z,{className:Ke.addIcon,onClick:()=>{hn.push({id:Math.random()}),zt([...hn])}}),Qn!=0&&E.createElement(pe.Z,{className:Ke.deleteIcon,onClick:()=>{hn.splice(Qn,1);let Yn=[];hn==null||hn.map(Ln=>{var Hn;(Hn=Ln==null?void 0:Ln.ec_point_ids)==null||Hn.map(xn=>{Yn.push(xn)})}),Yt(yt(Et({},hn[Qn-1]),{ec_point_ids:Yn})),zt([...hn])}}))))))};var ft=(0,ve.connect)(({user:ue})=>({user:ue}))(Ve),Kt=ne(93041),kt=ne(29787),dn=ne(75727),ct=ne(25399),Nt=ne(37639),mn=ne(36207),he={flex_box_center:"flex_box_center___zCnVx",flex_space_between:"flex_space_between___BBiQD",flex_box_vertical_center:"flex_box_vertical_center___KzPui",flex_box_center_end:"flex_box_center_end___zJokd",flex_box_column:"flex_box_column___Grsys",moreSpan:"moreSpan___VJeLv",bg:"bg___oBBHW",title:"title___xV4Rt",bottomdiv:"bottomdiv___rPfwr",spanBtn:"spanBtn___eJxID",addQuestionBtn:"addQuestionBtn___RPRiP",saveBtn:"saveBtn___y9nNf",left:"left___Q3Qf4",leftAction:"leftAction___GT9yG",Button:"Button___r00OP",iconWrapper:"iconWrapper___wofW_",up:"up___a9RQm",down:"down___x6RAl",disabled:"disabled___mkEME",titleleft:"titleleft___WZ83K",more_style:"more_style___ZXYnN",qcount:"qcount___o6F1k",drag:"drag___ZSZki",score:"score___Gy6jr",qtitle:"qtitle___KF7pa",qcountclick:"qcountclick___kvoyc",right:"right___Nfa70",edit:"edit___RVRSb",delete:"delete___J9BAT",yuanti:"yuanti___ljq8l",tianjia:"tianjia___s7Zu2",shixun:"shixun___YkjdZ",scoreByBlankRadio:"scoreByBlankRadio___QYQY5",modalconfirm:"modalconfirm___dmWFe",scoremodal:"scoremodal___CDA7w",close:"close___jdUWv",content:"content___HPqUf",items:"items___YkyQL",bottom:"bottom___mzpp4",yes:"yes___Xio6z",no:"no___hbicD",formcenter:"formcenter___kN8Ax",radiogroup:"radiogroup___htjtc",easy:"easy____g1mR",medium:"medium___vPAsn",hard:"hard___c6tcf",formcenterselect:"formcenterselect___B88vb",selectitems1:"selectitems1___Dzpho",selectitems:"selectitems___wUGKF",morebottom:"morebottom___F5cFQ",scoreinput:"scoreinput___S9Fbv",shake:"shake___IYp2E",titleTooltip:"titleTooltip___J0i26",exercise_styles:"exercise_styles___BJAZm",btn_warp:"btn_warp___iFP5N"},se=ne(95203),ae=ne(28860),ce=ne(459),me=ne(22061),le=ne(67495),ot=ne(59301),Ht=Object.defineProperty,on=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Pr=(ue,ke,Le)=>ke in ue?Ht(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,Vr=(ue,ke)=>{for(var Le in ke||(ke={}))Xn.call(ke,Le)&&Pr(ue,Le,ke[Le]);if(wn)for(var Le of wn(ke))Nn.call(ke,Le)&&Pr(ue,Le,ke[Le]);return ue},Ar=(ue,ke)=>on(ue,kn(ke)),Jn=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),Qr=({Itemid:ue,setqitem:ke,qitem:Le,data:Yt,getdata:_n,bigitem:yr,setBigqitem:Pn,isedit:hn,handleEditing:zt})=>{const[Mn,Ra]=(0,E.useState)([]),[sn,Wt]=(0,E.useState)(!1),cn=(Yn,Ln,Hn)=>{const xn=Array.from(Yn),[or]=xn.splice(Ln,1);return xn.splice(Hn,0,or),xn};(0,E.useEffect)(()=>{Yt.length>0&&Ra([...Yt])},[Yt]);const Qn=(Yn,Ln)=>Jn(void 0,null,function*(){if(!Yn.destination)return;if(hn){zt();return}const Hn=cn(Ln,Yn.source.index,Yn.destination.index);Wt(!0);let xn=yield(0,Ye.ZP)(`/api/exercises/${ue}/adjust_position.json`,{method:"post",body:{id:ue,question_ids:Hn==null?void 0:Hn.map(or=>or.question_id)}});Wt(!1),xn.status===0&&_n({id:Ln==null?void 0:Ln[Yn.source.index].question_id})});return ot.createElement("div",null,ot.createElement(me.Z5,{onDragEnd:Yn=>Qn(Yn,Mn)},ot.createElement(me.bK,{droppableId:"droppable"},(Yn,Ln)=>ot.createElement("div",Vr({ref:Yn.innerRef},Yn.droppableProps),ot.createElement(kt.Z,{spinning:sn},Mn.map((Hn,xn)=>ot.createElement(me._l,{key:xn,draggableId:xn.toString(),index:xn},(or,xr)=>{var lr,xi;return ot.createElement("aside",Vr(Vr({ref:or.innerRef},or.draggableProps),or.dragHandleProps),ot.createElement("div",{onClick:()=>{if(hn){zt();return}ke(Ar(Vr({},Hn),{index:xn+1})),Pn(yr),(0,se.Vf)("#question-scroll-id")},className:`${he.qcount} ${Hn.question_id===(Le==null?void 0:Le.question_id)?he.qcountclick:""}`},ot.createElement(ct.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},ot.createElement("i",{className:`iconfont icon-tuodong3 ${he.drag}`})),ot.createElement("span",{className:he.score},Hn==null?void 0:Hn.question_score,"\u5206"),ot.createElement(ct.Z,{title:ot.createElement(le.Z,{value:(Hn==null?void 0:Hn.question_type)===8?(lr=Hn==null?void 0:Hn.program_attr)==null?void 0:lr.description:Hn.question_title}),color:"#fff",placement:"left",overlayClassName:he.titleTooltip},ot.createElement("span",{className:he.qtitle},xn+1,"\u3001",ot.createElement(le.Z,{value:(Hn==null?void 0:Hn.question_type)===8?(xi=Hn==null?void 0:Hn.program_attr)==null?void 0:xi.description:Hn.question_title,showTextOnly:!0}))),(Hn==null?void 0:Hn.question_imperfect)&&ot.createElement(ct.Z,{title:"\u77E5\u8BC6\u70B9\u4FE1\u606F\u4E0D\u5B8C\u5584"},ot.createElement("div",{style:{transform:"scaleY(-1)",color:"#E99237"},className:"iconfont icon-tishi12"}))))}))),Yn.placeholder))))},ur=ne(77019),Sn=ne(42172),sr=ne(58755),un=ne(61485),Er=ne(33797),Br=ne(59301),Xa=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),Sr=({form:ue,TagDiscipline:ke,exerciseitem:Le,qitem:Yt,getTagData:_n})=>{var yr,Pn,hn,zt;const[Mn,Ra]=(0,E.useState)(!0),sn=xe.default.useWatch("course_discipline_id",ue);(0,E.useEffect)(()=>{Wt()},[]);const Wt=()=>Xa(void 0,null,function*(){ue.setFieldsValue({difficulty:Yt.difficulty||2,tag_discipline_ids:Yt==null?void 0:Yt.tag_discipline_ids,repeat_answer:!Yt.repeat_answer,course_discipline_id:Yt==null?void 0:Yt.course_discipline_id})});return Br.createElement("div",null,Br.createElement("div",{style:{marginTop:30,overflow:"hidden",height:Mn?"100%":0}},Br.createElement(xe.default.Item,{className:he.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Br.createElement(tt.ZP.Group,{className:he.radiogroup},Br.createElement(tt.ZP.Button,{className:he.easy,value:1},"\u7B80\u5355"),Br.createElement(tt.ZP.Button,{className:he.medium,value:2},"\u9002\u4E2D"),Br.createElement(tt.ZP.Button,{className:he.hard,value:3},"\u56F0\u96BE"))),Br.createElement(xe.default.Item,{name:"course_discipline_id",label:"\u6240\u5C5E\u8BFE\u7A0B",className:he.formcenterselect,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},Br.createElement(Er.q,{onChange:()=>ue.setFieldsValue({tag_discipline_ids:[]}),style:{width:666,height:46},data:{course_discipline_id:Yt==null?void 0:Yt.course_discipline_id},tooltipTitle:((yr=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:yr.is_managed)===!1?`${(Pn=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:Pn.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BD5\u9898\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B\u4E0E\u77E5\u8BC6\u70B9`:"",disabled:((hn=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:hn.is_managed)===!1})),Br.createElement(xe.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"tag_discipline_ids",labelAlign:"left",labelCol:{flex:"80px"},className:he.formcenterselect},Br.createElement(Er.i,{isPlusHeight:!0,size:"large",courseDisciplineId:sn,disabled:((zt=Yt==null?void 0:Yt.course_discipline_data)==null?void 0:zt.is_managed)===!1})),Br.createElement(xe.default.Item,{className:he.formcenterselect},Br.createElement("div",{style:{display:"flex",alignItems:"center"}},Br.createElement(xe.default.Item,{name:"repeat_answer",valuePropName:"checked"},Br.createElement(sr.Z,null)),Br.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Br.createElement(ct.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},Br.createElement(un.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))))},En=ne(59301),nr=Object.defineProperty,$r=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,ga=Object.getOwnPropertySymbols,Ei=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Ja=(ue,ke,Le)=>ke in ue?nr(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ri=(ue,ke)=>{for(var Le in ke||(ke={}))Ei.call(ke,Le)&&Ja(ue,Le,ke[Le]);if(ga)for(var Le of ga(ke))Ii.call(ke,Le)&&Ja(ue,Le,ke[Le]);return ue},hi=(ue,ke)=>$r(ue,Aa(ke)),$i=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),ea=({qitem:ue,setisedit:ke,TagDiscipline:Le,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm();(0,E.useEffect)(()=>{var cn;sn.setFieldsValue(hi(ri({},ue),{name:ue==null?void 0:ue.question_title,choices:(cn=ue==null?void 0:ue.question_choices)==null?void 0:cn.map(Qn=>hi(ri({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)}))},[ue]);const Wt=cn=>{if(!(cn!=null&&cn.length))return!1;const Qn=cn.map(Ln=>{var Hn;return(Hn=Ln.choice_text)==null?void 0:Hn.trim().replace(/^\s+|\s+$/g,"")});return new Set(Qn).size!==Qn.length};return En.createElement("div",null,En.createElement(xe.default,{form:sn,colon:!1,onFinish:cn=>{var Qn,Yn,Ln,Hn,xn;if(Wt(cn.choices)){Je.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let or=(Yn=(Qn=cn==null?void 0:cn.choices)==null?void 0:Qn.map)==null?void 0:Yn.call(Qn,(lr,xi)=>{if((lr==null?void 0:lr.standard_boolean)===1)return xi+1}),xr=hi(ri({},cn),{item_type:ue==null?void 0:ue.question_type,question_choices:(Hn=(Ln=cn==null?void 0:cn.choices)==null?void 0:Ln.map)==null?void 0:Hn.call(Ln,lr=>lr.choice_text),standard_answers:or.filter(lr=>lr),choices:(xn=cn==null?void 0:cn.choices)==null?void 0:xn.map(lr=>hi(ri({},lr),{is_answer:lr.standard_boolean}))});_n(ri(ri({},ue),xr))},onFinishFailed:cn=>$i(void 0,null,function*(){var Qn,Yn;Je.ZP.error(cn.errorFields[0].errors[0]),sn.scrollToField((Yn=(Qn=cn==null?void 0:cn.errorFields)==null?void 0:Qn[0])==null?void 0:Yn.name,{behavior:"smooth",block:"center"})})},En.createElement("div",{style:{display:"flex",alignItems:"center"}},En.createElement("div",{style:{flex:1}},En.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),En.createElement("span",null,(ue==null?void 0:ue.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((Ra=Yt==null?void 0:Yt.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&En.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},En.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),En.createElement(He.ZP,{onClick:()=>{var cn;ue.isadd?(ke(!1),hn()):(sn.setFieldsValue(hi(ri({},ue),{name:ue==null?void 0:ue.question_title,choices:(cn=ue==null?void 0:ue.question_choices)==null?void 0:cn.map(Qn=>hi(ri({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ke(!1))}},"\u53D6\u6D88"),En.createElement(ct.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:En.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},En.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},En.createElement(He.ZP,{type:"primary",className:"ml20",onClick:()=>$i(void 0,null,function*(){sn.submit()}),loading:Mn},"\u4FDD\u5B58"))),En.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},En.createElement(ur.Z,{align:"middle"},En.createElement(xe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},En.createElement(Se.Z,{onBlur:cn=>{cn.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),En.createElement(Sn.u,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"question_title",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),En.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Le,form:sn}))))},Ir=ne(29981),qt=ne(57091),Ut=ne(59301),Un=Object.defineProperty,Lt=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable,wr=(ue,ke,Le)=>ke in ue?Un(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,er=(ue,ke)=>{for(var Le in ke||(ke={}))Rn.call(ke,Le)&&wr(ue,Le,ke[Le]);if(rr)for(var Le of rr(ke))ar.call(ke,Le)&&wr(ue,Le,ke[Le]);return ue},Vt=(ue,ke)=>Lt(ue,Dn(ke)),On=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),Hr=({qitem:ue,TagDiscipline:ke,exerciseitem:Le,setisedit:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm(),Wt=xe.default.useWatch("use_blank_score",sn);return(0,E.useEffect)(()=>{sn.setFieldsValue(Vt(er({},ue),{standard_answers:ue.standard_answers||[],name:ue.question_title,repeat_answer:!ue.repeat_answer}))},[ue]),Ut.createElement("div",null,Ut.createElement(xe.default,{form:sn,colon:!1,onValuesChange:(cn,Qn)=>{var Yn,Ln,Hn,xn;if(cn!=null&&cn.standard_answers||cn!=null&&cn.use_blank_score){let or=((Yn=sn.getFieldValue("standard_answers"))==null?void 0:Yn.length)>0&&((Hn=(Ln=sn.getFieldValue("standard_answers"))==null?void 0:Ln.map(xr=>xr.score))==null?void 0:Hn.filter(xr=>xr));(or==null?void 0:or.length)>0&&sn.setFieldsValue({question_score:(or==null?void 0:or.length)>0&&((xn=or.reduce((xr,lr)=>xr+lr))==null?void 0:xn.toFixed(1))})}},onFinish:cn=>{_n(Vt(er(er({},ue),cn),{item_type:ue==null?void 0:ue.question_type,standard_answers:cn.standard_answers,question_title:cn.name}))},onFinishFailed:cn=>On(void 0,null,function*(){var Qn,Yn;cn.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,se.pE)(),Je.ZP.error(cn.errorFields[0].errors[0]),sn.scrollToField((Yn=(Qn=cn==null?void 0:cn.errorFields)==null?void 0:Qn[0])==null?void 0:Yn.name,{behavior:"smooth",block:"center"})})},Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},Ut.createElement("div",{style:{flex:1}},Ut.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ut.createElement("span",null,"\u586B\u7A7A\u9898")),((Ra=Le==null?void 0:Le.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Ut.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},Ut.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ut.createElement(He.ZP,{onClick:()=>{ue.isadd?(Yt(!1),hn()):(sn.setFieldsValue(Vt(er({},ue),{standard_answers:ue.standard_answers||[],name:ue.question_title,repeat_answer:!ue.repeat_answer})),Yt(!1))}},"\u53D6\u6D88"),Ut.createElement(ct.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ut.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ut.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Ut.createElement(He.ZP,{type:"primary",className:"ml20",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),Ut.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ut.createElement(ur.Z,{align:"middle"},Wt?Ut.createElement(qt.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Ut.createElement(xe.default.Item,{key:2,className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Ut.createElement(Se.Z,{onBlur:cn=>{cn.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),Ut.createElement(xe.default.Item,{name:"use_blank_score",noStyle:!0},Ut.createElement(tt.ZP.Group,{className:he.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Ut.createElement(ct.Z,{overlayInnerStyle:{width:460},title:Ut.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Ut.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Ut.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Ut.createElement(Ir.u,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:Wt,answerKey:"standard_answers"}),Ut.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Le,TagDiscipline:ke,form:sn}))))},jr=ne(58452),Nr=ne(59301),Ga=Object.defineProperty,za=Object.defineProperties,An=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,Ki=(ue,ke,Le)=>ke in ue?Ga(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,wt=(ue,ke)=>{for(var Le in ke||(ke={}))Yi.call(ke,Le)&&Ki(ue,Le,ke[Le]);if(rn)for(var Le of rn(ke))$o.call(ke,Le)&&Ki(ue,Le,ke[Le]);return ue},tn=(ue,ke)=>za(ue,An(ke)),Tt=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),Zn=({qitem:ue,setisedit:ke,TagDiscipline:Le,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm();return(0,E.useEffect)(()=>{var Wt;sn.setFieldsValue(tn(wt({},ue),{name:ue.question_title,repeat_answer:!ue.repeat_answer,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(cn=>tn(wt({},cn),{is_answer:cn!=null&&cn.standard_boolean?1:0}))}))},[ue]),Nr.createElement("div",null,Nr.createElement(xe.default,{form:sn,colon:!1,onFinish:Wt=>{var cn,Qn,Yn,Ln;let Hn=(Qn=(cn=Wt==null?void 0:Wt.choices)==null?void 0:cn.map)==null?void 0:Qn.call(cn,(xn,or)=>{if((xn==null?void 0:xn.is_answer)===1)return or+1});_n(tn(wt(wt({},ue),Wt),{question_title:Wt.name,standard_answers:Hn.filter(xn=>xn),question_choices:(Ln=(Yn=Wt==null?void 0:Wt.choices)==null?void 0:Yn.map)==null?void 0:Ln.call(Yn,xn=>xn.choice_text)}))},onFinishFailed:Wt=>Tt(void 0,null,function*(){var cn,Qn;Je.ZP.error(Wt.errorFields[0].errors[0]),sn.scrollToField((Qn=(cn=Wt==null?void 0:Wt.errorFields)==null?void 0:cn[0])==null?void 0:Qn.name,{behavior:"smooth",block:"center"})})},Nr.createElement("div",{style:{display:"flex",alignItems:"center"}},Nr.createElement("div",{style:{flex:1}},Nr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Nr.createElement("span",null,"\u5224\u65AD\u9898")),((Ra=Yt==null?void 0:Yt.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Nr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},Nr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Nr.createElement(He.ZP,{onClick:()=>{var Wt;ue.isadd?(ke(!1),hn()):(sn.setFieldsValue(tn(wt({},ue),{name:ue.question_title,repeat_answer:!ue.repeat_answer,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(cn=>tn(wt({},cn),{is_answer:cn!=null&&cn.standard_boolean?1:0}))})),ke(!1))}},"\u53D6\u6D88"),Nr.createElement(ct.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Nr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Nr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Nr.createElement(He.ZP,{type:"primary",className:"ml20",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),Nr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Nr.createElement(xe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Nr.createElement(Se.Z,{onBlur:Wt=>{Wt.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Nr.createElement(jr.Z,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Nr.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Le,form:sn}))))},Gn=ne(8848),yn={wrap:"wrap___m6v_p",deleteIcon:"deleteIcon___hdYRw",keywordTag:"keywordTag___BLtdn",questionTitleEditorWrap:"questionTitleEditorWrap___fdaK7",choiceWrap:"choiceWrap___wkyUO",choiceIndex:"choiceIndex___tExMq",judgementIndex:"judgementIndex___RMhzJ",setAnswerBtn:"setAnswerBtn___bisIK",activeAnswer:"activeAnswer___MnyyC",activeJudgementAnswer:"activeJudgementAnswer___grGX5",actionWrapper:"actionWrapper___LUawU",addIcon:"addIcon___ckXqe",inputBorder:"inputBorder___nuo0O",placeholder:"placeholder___Dhdir",blankWrapper:"blankWrapper___cnidV",blankInput:"blankInput___iZ5BF",blankInputNumberWrapper:"blankInputNumberWrapper___zlXQc",addBtn:"addBtn___OdgAm",blankIndex:"blankIndex___g4Y7d",baseInputWrapper:"baseInputWrapper___DCOHd",collapseWrapper:"collapseWrapper___SyLrk",panelHeader:"panelHeader___E0il1",open:"open___IFH3V",close:"close___YpIA9",hide:"hide___Nl1W6",scoreByBlankRadio:"scoreByBlankRadio___jpG4i"},tr=ne(15945),Mr=Object.defineProperty,Tr=Object.defineProperties,Qa=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,Kr=(ue,ke,Le)=>ke in ue?Mr(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ya=(ue,ke)=>{for(var Le in ke||(ke={}))ta.call(ke,Le)&&Kr(ue,Le,ke[Le]);if(ua)for(var Le of ua(ke))Ua.call(ke,Le)&&Kr(ue,Le,ke[Le]);return ue},qa=(ue,ke)=>Tr(ue,Qa(ke)),ai=(ue,ke)=>{var Le={};for(var Yt in ue)ta.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&ua)for(var Yt of ua(ue))ke.indexOf(Yt)<0&&Ua.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le};const bi=ue=>{var ke=ue,{value:Le,onChange:Yt,scrollId:_n}=ke,yr=ai(ke,["value","onChange","scrollId"]);return E.createElement("div",{id:_n||""},E.createElement(tr.Z,qa(ya({},yr),{defaultValue:Le,onChange:(Pn,hn)=>{console.log("a:",Pn,hn),hn!=null&&hn.length?Yt(Pn,hn):Yt(Pn)}})))},Ba=({value:ue,onChange:ke,placeholder:Le,height:Yt=140,isEdit:_n})=>_n?E.createElement(tr.Z,{watch:!0,isFocus:!0,height:Yt,placeholder:Le,defaultValue:ue,onChange:ke}):E.createElement("div",{style:{cursor:"pointer"}},ue?E.createElement(le.Z,{className:yn.inputBorder,value:ue}):E.createElement("div",{className:`${yn.inputBorder} ${yn.placeholder}`},Le));var ra=ne(5269),eo=Object.defineProperty,wi=Object.defineProperties,Ta=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,_a=(ue,ke,Le)=>ke in ue?eo(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ci=(ue,ke)=>{for(var Le in ke||(ke={}))ki.call(ke,Le)&&_a(ue,Le,ke[Le]);if(oi)for(var Le of oi(ke))ti.call(ke,Le)&&_a(ue,Le,ke[Le]);return ue},Ai=(ue,ke)=>wi(ue,Ta(ke)),Fo=(ue,ke)=>{var Le={};for(var Yt in ue)ki.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&oi)for(var Yt of oi(ue))ke.indexOf(Yt)<0&&ti.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le};const Qi=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Hi=({value:ue,onChange:ke,choiceTextKey:Le,answerKey:Yt,index:_n,isEdit:yr,setInputActive:Pn,form:hn,choiceOptionsPath:zt,allowChangeMode:Mn,showAddIcon:Ra,addItem:sn,deleteItem:Wt})=>{const cn=(ue==null?void 0:ue[Yt])===1,Qn=()=>{const Ln=hn.getFieldValue(zt);hn.setFieldValue(zt,Ln.map(Hn=>Ai(ci({},Hn),{[Yt]:0})))},Yn=()=>{cn?ke(Ai(ci({},ue),{[Yt]:0})):(Mn||Qn(),ke(Ai(ci({},ue),{[Yt]:1})))};return E.createElement(ur.Z,{className:yn.choiceWrap,align:"middle",wrap:!1},E.createElement(ra.Z,{onClick:Yn,className:`${yn.choiceIndex} ${cn?yn.activeAnswer:""}`},Qi[_n]),E.createElement(ra.Z,{flex:1,className:`${yn.editorWrap} ml15`,onClick:Pn},E.createElement(Ba,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:yr,value:ue==null?void 0:ue[Le],onChange:Ln=>{ke(Ai(ci({},ue),{[Le]:Ln}))}})),E.createElement(ra.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:Yn,className:`${yn.setAnswerBtn} ${cn?yn.activeAnswer:""}`},cn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),E.createElement(ra.Z,{className:yn.actionWrapper},E.createElement(ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement(it.Z,{className:yn.addIcon,onClick:sn,style:{visibility:Ra?"visible":"hidden"}})),E.createElement(ct.Z,{title:"\u5220\u9664"},E.createElement(pe.Z,{className:yn.deleteIcon,onClick:Wt,style:{visibility:_n>1?"visible":"hidden"}}))))},oo=({questionTitlePlaceholder:ue,titleKey:ke,choiceKey:Le,analysisKey:Yt,choiceTextKey:_n,answerKey:yr,choiceOptionsPath:Pn,allowChangeMode:hn=!0,form:zt,showAnalysis:Mn=!0})=>{const[Ra,sn]=(0,E.useState)(),[Wt,cn]=(0,E.useState)(!1);return E.createElement("div",{className:yn.wrap},E.createElement("div",{className:yn.questionTitleEditorWrap},E.createElement(xe.default.Item,{label:"\u9898\u5E72",name:ke,labelCol:{span:24},rules:[{required:!0}]},E.createElement(bi,{scrollId:Array.isArray(ke)?ke.join("_"):`${ke}`,watch:!0,height:140,placeholder:ue}))),E.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),E.createElement(xe.default.List,{name:Le,rules:[{validator(Qn,Yn){const Ln=Yn.some(xn=>xn[yr]===1),Hn=Yn.findIndex(xn=>{var or;return((or=xn[_n])==null?void 0:or.length)<=0});return Hn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Qi[Hn]}\u9009\u9879\u7684\u5185\u5BB9`)):Ln?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Qn,{add:Yn,remove:Ln})=>E.createElement("div",{id:Array.isArray(Pn)?Pn.join("_"):`${Pn}`},Qn.map((Hn,xn)=>{var or=Hn,{key:xr,name:lr}=or,xi=Fo(or,["key","name"]);const ro=Ra===xr,Ui=()=>{sn(xr)},Io=xn<14&&xn===Qn.length-1,Or=()=>Yn({[_n]:"",[yr]:0}),_i=()=>Ln(lr);return E.createElement(xe.default.Item,Ai(ci({},xi),{key:xr,name:lr,noStyle:!0}),E.createElement(Hi,{choiceTextKey:_n,answerKey:yr,index:xn,isEdit:ro,setInputActive:Ui,form:zt,choiceOptionsPath:Pn,allowChangeMode:hn,showAddIcon:Io,addItem:Or,deleteItem:_i}))}),Qn.length<15&&E.createElement("div",{className:`${yn.addBtn} mb30`,onClick:()=>Yn({[_n]:"",[yr]:0})},"\u6DFB\u52A0\u9009\u9879"))),Mn&&E.createElement("div",{onClick:()=>cn(!0)},E.createElement(xe.default.Item,{name:Yt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wt}))))};var na=ne(59301),to=Object.defineProperty,Fi=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Jt=(ue,ke,Le)=>ke in ue?to(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,nn=(ue,ke)=>{for(var Le in ke||(ke={}))li.call(ke,Le)&&Jt(ue,Le,ke[Le]);if(Ni)for(var Le of Ni(ke))_e.call(ke,Le)&&Jt(ue,Le,ke[Le]);return ue},Fn=(ue,ke)=>Fi(ue,Oo(ke)),Zt=(ue,ke)=>{var Le={};for(var Yt in ue)li.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&Ni)for(var Yt of Ni(ue))ke.indexOf(Yt)<0&&_e.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le};const Xt=({value:ue,onChange:ke,position:Le,removeBlank:Yt})=>{const _n=Pn=>{qe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:yn.modal,onOk:()=>{const hn=[...ue];hn.splice(Pn,1),hn.length===0?Yt(Le-1):ke(hn)}})},yr=()=>{const Pn=[...ue];Pn.push(""),ke(Pn)};return na.createElement(ur.Z,{className:"ml20"},na.createElement(ra.Z,{flex:1},ue==null?void 0:ue.map((Pn,hn)=>na.createElement(ur.Z,{key:`${Pn}_${hn}`,className:"mb20"},na.createElement(Ae.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Pn,autoSize:{maxRows:3},maxLength:1e3,onBlur:zt=>{const Mn=[...ue],Ra=zt.target.value.trim();Mn[hn]=Ra,ke(Mn)}}),na.createElement(ct.Z,{title:"\u5220\u9664"},na.createElement(pe.Z,{className:yn.deleteIcon,style:{marginLeft:15,visibility:Le===1&&hn===0?"hidden":"visible"},onClick:()=>_n(hn)})),na.createElement(ct.Z,{title:"\u65B0\u589E\u7B54\u6848"},na.createElement(it.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:hn===0?"visible":"hidden"},onClick:()=>{yr()}}))))))},an=({value:ue=!0,onChange:ke})=>na.createElement(sr.Z,{checked:!ue,onChange:Le=>{ke(!Le)}}),Qt=({questionTitlePlaceholder:ue,form:ke,name:Le,scoreByBlank:Yt,answerKey:_n,titleKey:yr="name",analysisKey:Pn="analysis",isOrdered:hn="is_ordered"})=>{var zt,Mn;const[Ra,sn]=(0,E.useState)(!1),Wt=()=>{const xn=ke.getFieldValue(["sub_item_banks",..._n]);ke.setFieldValue(["sub_item_banks",..._n],xn==null?void 0:xn.map((or,xr)=>Fn(nn({},or),{position:xr+1})))},cn=(0,E.useRef)(),Qn=(xn,or)=>{for(let xr=0;xr{Yn.current(xn),Wt()},Hn=(Mn=(zt=ke.getFieldValue("sub_item_banks"))==null?void 0:zt[_n==null?void 0:_n[0]])==null?void 0:Mn[_n==null?void 0:_n[1]];return na.createElement("div",{className:yn.wrap},na.createElement("div",{className:yn.questionTitleEditorWrap},na.createElement(xe.default.Item,{label:"\u9898\u5E72",name:yr,labelCol:{span:24},rules:[{required:!0}]},na.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue,showNullButton:!0,onAddBlank:()=>{const xn=ke.getFieldValue(["sub_item_banks",..._n]);Qn(1,xn==null?void 0:xn.length)}}))),na.createElement(xe.default.List,{name:_n,rules:[{validator(xn,or){if((or==null?void 0:or.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const xr of or){const{answer_text:lr}=xr||{};if(lr!=null&&lr.some(xi=>(xi==null?void 0:xi.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(xn,{add:or,remove:xr},{errors:lr})=>(cn.current=or,Yn.current=xr,na.createElement(na.Fragment,null,na.createElement(xe.default.Item,{label:na.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),xn.map((xi,ro)=>{var Ui=xi,{key:Io,name:Or}=Ui,_i=Zt(Ui,["key","name"]);return na.createElement(ur.Z,{key:Io,align:"top"},na.createElement(ra.Z,{flex:"0 0 auto",className:`${yn.blankIndex} pt5`},"\u586B\u7A7A\u9879",ro+1),na.createElement(ra.Z,{flex:1},na.createElement(ur.Z,{align:"top",justify:"space-between"},na.createElement(ra.Z,{flex:1},na.createElement(xe.default.Item,Fn(nn({},_i),{name:[Or,"answer_text"],noStyle:!0}),na.createElement(Xt,{removeBlank:Ln,position:ro+1}))),(ke==null?void 0:ke.getFieldValue(["sub_item_banks",...Yt]))&&na.createElement(ra.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},na.createElement(xe.default.Item,Fn(nn({},_i),{name:[Or,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yn.blankInputNumberWrapper}),na.createElement(Se.Z,{onChange:()=>{var Gi,ir;let Eo=ke==null?void 0:ke.getFieldValue(["sub_item_banks",_n==null?void 0:_n[0],"standard_answers"]),Uo=0;for(let No in Eo)(Gi=Eo[No])!=null&&Gi.score&&(Uo+=Number((ir=Eo[No])==null?void 0:ir.score));ke==null||ke.setFieldValue(["sub_item_banks",_n==null?void 0:_n[0],"question_score"],Uo)},className:yn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),na.createElement(xe.default.Item,Fn(nn({},_i),{name:[Or,"position"],noStyle:!0}),na.createElement(Ae.default,{type:"hidden"}))))})))),na.createElement(He.ZP,{className:"mb20",onClick:()=>Qn(1,Hn==null?void 0:Hn.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),na.createElement(ur.Z,{align:"middle"},na.createElement(xe.default.Item,{name:[Le,"downcase"],valuePropName:"checked"},na.createElement(sr.Z,null)),na.createElement(ra.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),na.createElement(ur.Z,{align:"middle"},na.createElement(xe.default.Item,{name:[Le,"no_space"],valuePropName:"checked"},na.createElement(sr.Z,null)),na.createElement(ra.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Hn==null?void 0:Hn.length)>1&&na.createElement(ur.Z,{align:"middle",className:(Hn==null?void 0:Hn.length)>1?"mb30":`${yn.hide}`},na.createElement(xe.default.Item,{name:hn},na.createElement(an,null)),na.createElement(ra.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),na.createElement("div",{onClick:()=>sn(!0)},na.createElement(xe.default.Item,{name:Pn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},na.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ra}))))};var en=Object.defineProperty,Wn=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,ca=(ue,ke,Le)=>ke in ue?en(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,La=(ue,ke)=>{for(var Le in ke||(ke={}))cr.call(ke,Le)&&ca(ue,Le,ke[Le]);if(pr)for(var Le of pr(ke))Xr.call(ke,Le)&&ca(ue,Le,ke[Le]);return ue},Pa=(ue,ke)=>Wn(ue,fr(ke)),Xi=(ue,ke)=>{var Le={};for(var Yt in ue)cr.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&pr)for(var Yt of pr(ue))ke.indexOf(Yt)<0&&Xr.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le};const ji={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Do=({value:ue,onChange:ke,form:Le,choiceKey:Yt})=>{const _n=(ue==null?void 0:ue.is_answer)===1,yr=ue==null?void 0:ue.choice_text,Pn=()=>{var hn;const zt=(hn=Le==null?void 0:Le.getFieldValue(["sub_item_banks",...Yt]))==null?void 0:hn.map(Mn=>({choice_text:Mn.choice_text,is_answer:0}));Le==null||Le.setFieldValue(["sub_item_banks",...Yt],zt),ke(Pa(La({},ue),{is_answer:1}))};return E.createElement(ur.Z,{className:yn.choiceWrap,align:"middle",wrap:!1},E.createElement(ra.Z,{onClick:Pn,className:`${yn.choiceIndex} ${yn.judgementIndex} ${_n?yn.activeAnswer:""}`},ji[yr]),E.createElement(ra.Z,{flex:1,className:`${yn.editorWrap} ml15`},E.createElement("div",{className:`${yn.inputBorder} ${yn.placeholder} ${_n?yn.activeJudgementAnswer:""}`},yr)),E.createElement(ra.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:Pn,className:`${yn.setAnswerBtn} ${_n?yn.activeAnswer:""}`},_n?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},dl=({questionTitlePlaceholder:ue,choiceKey:ke="choices",form:Le,titleKey:Yt="name",analysisKey:_n="analysis"})=>{const[yr,Pn]=(0,E.useState)(!1);return E.createElement("div",{className:yn.wrap},E.createElement("div",{className:yn.questionTitleEditorWrap},E.createElement(xe.default.Item,{label:"\u9898\u5E72",name:Yt,labelCol:{span:24},rules:[{required:!0}]},E.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),E.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},E.createElement(xe.default.List,{name:ke,rules:[{validator(hn,zt){return zt.some(Ra=>(Ra==null?void 0:Ra.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},hn=>E.createElement("div",{id:"choices"},hn.map(zt=>{var Mn=zt,{key:Ra,name:sn}=Mn,Wt=Xi(Mn,["key","name"]);return E.createElement(xe.default.Item,Pa(La({},Wt),{key:Ra,name:sn,noStyle:!0}),E.createElement(Do,{form:Le,choiceKey:ke}))})))),E.createElement("div",{onClick:()=>Pn(!0)},E.createElement(xe.default.Item,{name:_n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yr}))))};var al=ne(96599),Xo={ai_config:"ai_config___cJ8LY",znpy:"znpy___RTAAN",pfbz_ts:"pfbz_ts___ux6Ec",btns_pfbz:"btns_pfbz___QFXM_",lable_name1:"lable_name1___c_vnV",h_lh_40:"h_lh_40___ptAW7"},bl=ne(16651),Ao=ne(15239),mo=ne(59301);const Rl=({qitem:ue,form:ke,exercise:Le,loading:Yt,dispatch:_n,aiReviewSettings:yr=null})=>mo.createElement("div",{className:Xo.ai_config},mo.createElement("div",{style:{lineHeight:"32px",paddingBottom:8}},"\u8BC4\u5206\u6807\u51C6"),mo.createElement("div",{className:Xo.pfbz_ts},mo.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),mo.createElement("div",{className:"flex"},mo.createElement("div",{className:Xo.btns_pfbz,onClick:()=>{_n({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:ue==null?void 0:ue.question_id,ai_review_settings:ke.getFieldValue(yr||"ai_review_settings")}})}},mo.createElement("img",{src:bl.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),mo.createElement("div",{style:{background:"#F6F7F9"}},mo.createElement(xe.default.List,{name:yr||"ai_review_settings"},(Pn,{add:hn,remove:zt})=>Pn.map((Mn,Ra)=>{var sn;return mo.createElement(ur.Z,{key:Mn.key,style:{padding:"5px 10px 5px 15px"}},mo.createElement(ra.Z,{className:Xo.lable_name1},"\u8BC4\u5206\u70B9"),mo.createElement(ra.Z,null,mo.createElement(xe.default.Item,{className:"ml10",name:[Mn.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},mo.createElement(Ae.default,{onChange:Wt=>{ke.setFieldValue([Mn.name,"content"],Wt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:142},maxLength:10,className:"mr15"}))),mo.createElement(ra.Z,{className:Xo.lable_name1},"\u8BC4\u5206\u6807\u51C6"),mo.createElement(ra.Z,null,mo.createElement(xe.default.Item,{className:"ml10",name:[Mn.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},mo.createElement(Ae.default,{onChange:Wt=>{ke.setFieldValue([Mn.name,"content"],Wt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:yr?232:318},className:"mr15",maxLength:500}))),mo.createElement(ra.Z,{className:Xo.lable_name1},"\u6743\u91CD"),mo.createElement(ra.Z,null,mo.createElement(xe.default.Item,{className:"ml10",name:[Mn.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},mo.createElement(Se.Z,{value:ke.getFieldValue([Mn.name,"weight"]),onChange:Wt=>{Number.isInteger(Wt)||ke.setFieldValue([Mn.name,"weight"],parseFloat(Wt).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),mo.createElement(ur.Z,{className:(sn=Xo)==null?void 0:sn.h_lh_40},mo.createElement(ra.Z,null,mo.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(Pn.length>=10)return Je.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");hn()}})),Ra>0&&mo.createElement(ra.Z,null,mo.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{zt(Mn.name)}}))))}))),mo.createElement(Ao.Z,null));var Cl=(0,ve.connect)(({exercise:ue,loading:ke})=>({exercise:ue,loading:ke.effects}))(Rl),Zl=Object.defineProperty,ql=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,vl=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,os=Object.prototype.propertyIsEnumerable,Os=(ue,ke,Le)=>ke in ue?Zl(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,Gl=(ue,ke)=>{for(var Le in ke||(ke={}))zo.call(ke,Le)&&Os(ue,Le,ke[Le]);if(vl)for(var Le of vl(ke))os.call(ke,Le)&&Os(ue,Le,ke[Le]);return ue},As=(ue,ke)=>ql(ue,Fl(ke)),Fs=(ue,ke)=>{var Le={};for(var Yt in ue)zo.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&vl)for(var Yt of vl(ue))ke.indexOf(Yt)<0&&os.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le};const Js=ue=>{var ke=ue,{value:Le,onChange:Yt}=ke,_n=Fs(ke,["value","onChange"]);const yr=Pn=>{Yt([Pn])};return E.createElement(tr.Z,As(Gl({},_n),{defaultValue:Le==null?void 0:Le[0],onChange:yr}))},Ms=ue=>{if(!ue)return!1;let ke=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ue==="|"?(Je.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Gs=({value:ue=[],onClose:ke})=>E.createElement(al.default,{closable:!0,onClose:ke,className:yn.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ue.join(" \u6216 "))),Po=({questionTitlePlaceholder:ue,form:ke,showKeywords:Le,isMustKeyWords:Yt=Le,titleKey:_n="name",analysisKey:yr="analysis",answerTexts:Pn="answer_texts",keywords:hn="keywords",useKeywords:zt="use_keywords",indexs:Mn,qitem:Ra,exerciseitem:sn,aiReviewSettings:Wt})=>{var cn,Qn,Yn,Ln,Hn;const[xn,or]=(0,E.useState)(!1),[xr,lr]=(0,E.useState)(""),xi=(Qn=(cn=ke.getFieldValue("sub_item_banks"))==null?void 0:cn[zt==null?void 0:zt[0]])==null?void 0:Qn[zt==null?void 0:zt[1]],ro=(Ln=(Yn=ke.getFieldValue("sub_item_banks"))==null?void 0:Yn[zt==null?void 0:zt[0]])==null?void 0:Ln.question_score;return E.createElement("div",{className:yn.wrap},E.createElement("div",{className:yn.questionTitleEditorWrap},E.createElement(xe.default.Item,{label:"\u9898\u5E72",name:_n,labelCol:{span:24},rules:[{required:!0}]},E.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),E.createElement(xe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Pn,labelCol:{span:24}},E.createElement(Js,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Le&&!Yt&&E.createElement(xe.default.Item,{hidden:!0,name:zt,valuePropName:"checked"},E.createElement(sr.Z,{defaultChecked:!0})),Le&&Yt&&E.createElement(ur.Z,{align:"middle",className:"mb30"},E.createElement(xe.default.Item,{name:zt,valuePropName:"checked"},E.createElement(sr.Z,null)),E.createElement(ra.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(ra.Z,null,E.createElement(ct.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(un.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(xi||!Yt)&&E.createElement(xe.default.List,{name:hn,rules:[{validator(Ui,Io){return Yt?Io!=null&&Io.length?(Io==null?void 0:Io.reduce((_i,Gi)=>_i+Gi.score,0))>parseFloat(ro)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ui,{add:Io,remove:Or})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${yn.title} mb10`},Yt?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(ur.Z,{align:"middle",className:"font14 mb30"},E.createElement(ra.Z,{flex:1},E.createElement(Ae.default,{value:xr,onChange:_i=>{lr(_i.target.value)},maxLength:50,allowClear:!0,onPressEnter:_i=>{var Gi,ir,Eo,Uo;const No=`${(Gi=_i.target)==null?void 0:Gi.value}`,$n=(Eo=(ir=No==null?void 0:No.split("|"))==null?void 0:ir.filter(Qo=>!!Qo))==null?void 0:Eo.map(Qo=>Qo==null?void 0:Qo.trim()),pi=ke.getFieldValue(["sub_item_banks",...hn]),yi=((Uo=pi==null?void 0:pi.map(Qo=>Qo==null?void 0:Qo.keyword))==null?void 0:Uo.flat())||[];for(const Qo of $n)if(yi.includes(Qo)){Je.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ms(No)&&(Io({keyword:$n,score:1}),lr(""))},className:yn.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(ra.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ui.map(_i=>{var Gi=_i,{key:ir,name:Eo}=Gi,Uo=Fs(Gi,["key","name"]);return E.createElement(ur.Z,{key:ir,className:"mb20",style:{marginRight:148}},E.createElement(ra.Z,{flex:1},E.createElement(ur.Z,{align:"middle",justify:"space-between"},E.createElement(xe.default.Item,As(Gl({},Uo),{name:[Eo,"keyword"]}),E.createElement(Gs,{onClose:()=>Or(Eo)})),Yt&&E.createElement(xe.default.Item,As(Gl({},Uo),{name:[Eo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yn.blankInputNumberWrapper}),E.createElement(Se.Z,{className:yn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>or(!0)},E.createElement(xe.default.Item,{name:yr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Ba,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xn}))),((Hn=sn==null?void 0:sn.exercise)==null?void 0:Hn.is_open_ai_review)&&E.createElement(Cl,{form:ke,qitem:Ra,aiReviewSettings:Wt}))};var zr=ne(59301),Ci=Object.defineProperty,xo=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,wo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Bl=(ue,ke,Le)=>ke in ue?Ci(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ls=(ue,ke)=>{for(var Le in ke||(ke={}))wo.call(ke,Le)&&Bl(ue,Le,ke[Le]);if(Mi)for(var Le of Mi(ke))Mo.call(ke,Le)&&Bl(ue,Le,ke[Le]);return ue},yl=(ue,ke)=>xo(ue,kl(ke)),$l=(ue,ke)=>{var Le={};for(var Yt in ue)wo.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&Mi)for(var Yt of Mi(ue))ke.indexOf(Yt)<0&&Mo.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le};const{Panel:Ti}=Gn.default,Bs=({questionTitlePlaceholder:ue,choiceKey:ke,form:Le,withScore:Yt,exerciseitem:_n})=>{const yr=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[Pn,hn]=(0,E.useState)(),[zt,Mn]=(0,E.useState)([]),Ra=Wt=>{Mn(Wt)},sn=({value:Wt})=>zr.createElement("div",{style:{width:150,paddingLeft:11}},Wt);return zr.createElement("div",{className:yn.wrap},zr.createElement("div",{className:yn.questionTitleEditorWrap},zr.createElement(xe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},zr.createElement(bi,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),zr.createElement(xe.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),zr.createElement(xe.default.List,{name:"sub_item_banks",rules:[{validator(Wt,cn){return cn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Wt,{add:cn,remove:Qn,move:Yn})=>{const Ln=Le.getFieldValue("sub_item_banks");return zr.createElement(zr.Fragment,null,zr.createElement(Gn.default,{className:Wt.length>0?yn.collapseWrapper:"",bordered:!1,activeKey:zt,onChange:Ra,expandIcon:({isActive:Hn})=>zr.createElement("i",{className:`iconfont icon-weizhankai ${Hn?yn.open:yn.close}`,style:{fontSize:14,transition:"all .2s"}})},Wt.map((Hn,xn)=>{var or=Hn,{key:xr,name:lr}=or,xi=$l(or,["key","name"]),ro,Ui,Io,Or,_i,Gi,ir,Eo,Uo,No,$n,pi,yi,Qo;return zr.createElement(Ti,{className:yn.panel,forceRender:!0,header:zr.createElement("div",{className:yn.panelHeader},"\u7B2C",xn+1,"\u5C0F\u9898",zr.createElement("span",null,"\uFF08",((ro=Ln==null?void 0:Ln[lr])==null?void 0:ro.question_type)==0?"\u5355\u9009\u9898":((Ui=Ln==null?void 0:Ln[lr])==null?void 0:Ui.question_type)==1?"\u591A\u9009\u9898":((Io=Ln==null?void 0:Ln[lr])==null?void 0:Io.question_type)==3?"\u586B\u7A7A\u9898":((Or=Ln==null?void 0:Ln[lr])==null?void 0:Or.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:lr,extra:zr.createElement(ur.Z,{align:"middle",onClick:Jo=>Jo.stopPropagation()},((_i=Ln==null?void 0:Ln[lr])==null?void 0:_i.question_type)==3&&zr.createElement(zr.Fragment,null,zr.createElement(tt.ZP.Group,{defaultValue:(Gi=Ln==null?void 0:Ln[lr])==null?void 0:Gi.use_blank_score,className:he.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Jo=>{var il,bo,ol,pl,Lo;if(Le==null||Le.setFieldValue(["sub_item_banks",lr,"use_blank_score"],(il=Jo==null?void 0:Jo.target)==null?void 0:il.value),(bo=Jo==null?void 0:Jo.target)!=null&&bo.value){let To=0;for(let hl in(ol=Le==null?void 0:Le.getFieldValue(["sub_item_banks",lr]))==null?void 0:ol.standard_answers)To+=Number((Lo=(pl=Le==null?void 0:Le.getFieldValue(["sub_item_banks",lr]))==null?void 0:pl.standard_answers[hl])==null?void 0:Lo.score);Le==null||Le.setFieldValue(["sub_item_banks",lr,"question_score"],To||"")}hn(new Date)}}),zr.createElement(ct.Z,{overlayInnerStyle:{width:460},title:zr.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",zr.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},zr.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),Yt&&zr.createElement(xe.default.Item,yl(ls({},xi),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[lr,"question_score"],className:yn.blankInputNumberWrapper}),((ir=Ln==null?void 0:Ln[lr])==null?void 0:ir.question_type)==3&&((Eo=Ln==null?void 0:Ln[lr])!=null&&Eo.use_blank_score)?zr.createElement(sn,null):zr.createElement(Se.Z,{className:yn.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),zr.createElement(ur.Z,{align:"middle",className:"pl40",style:{width:82}},xn!==0&&zr.createElement("div",{onClick:()=>{var Jo;Yn(xn,xn-1);const il=(Jo=Le.getFieldValue("sub_item_banks"))==null?void 0:Jo.map((bo,ol)=>(Wt.map((pl,Lo)=>{ol===Lo&&(bo.q_position=Number(pl.name)+1)}),bo));Le.setFieldValue("sub_item_banks",il)}},zr.createElement(ct.Z,{title:"\u4E0A\u79FB"},zr.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),xn{var Jo;Yn(xn,xn+1);const il=(Jo=Le.getFieldValue("sub_item_banks"))==null?void 0:Jo.map((bo,ol)=>(Wt.map((pl,Lo)=>{ol===Lo&&(bo.q_position=Number(pl.name)+1)}),bo));Le.setFieldValue("sub_item_banks",il)},className:xn===0?"":"ml10"},zr.createElement(ct.Z,{title:"\u4E0B\u79FB"},zr.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),zr.createElement(ct.Z,{title:"\u5220\u9664"},zr.createElement(pe.Z,{className:`${yn.deleteIcon} ml40`,onClick:()=>Qn(lr)})))},zr.createElement(xe.default.Item,yl(ls({},xi),{name:lr}),(((Uo=Ln==null?void 0:Ln[lr])==null?void 0:Uo.question_type)==0||((No=Ln==null?void 0:Ln[lr])==null?void 0:No.question_type)==1)&&zr.createElement(oo,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:(($n=Ln==null?void 0:Ln[lr])==null?void 0:$n.question_type)==1,form:Le,choiceKey:[lr,"choices"],titleKey:[lr,"name"],analysisKey:[lr,"analysis"],choiceOptionsPath:["sub_item_banks",lr,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((pi=Ln==null?void 0:Ln[lr])==null?void 0:pi.question_type)==3&&zr.createElement(Qt,{form:Le,name:lr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[lr,"use_blank_score"],titleKey:[lr,"name"],analysisKey:[lr,"analysis"],isOrdered:[lr,"is_ordered"],answerKey:[lr,"standard_answers"],key:Pn}),((yi=Ln==null?void 0:Ln[lr])==null?void 0:yi.question_type)==2&&zr.createElement(dl,{form:Le,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[lr,"name"],analysisKey:[lr,"analysis"],choiceKey:[lr,"choices"]}),((Qo=Ln==null?void 0:Ln[lr])==null?void 0:Qo.question_type)==4&&zr.createElement(Po,{showKeywords:!0,isMustKeyWords:!0,form:Le,titleKey:[lr,"name"],analysisKey:[lr,"analysis"],answerTexts:[lr,"answer_texts"],useKeywords:[lr,"use_keywords"],keywords:[lr,"keywords"],aiReviewSettings:[lr,"ai_review_settings"],indexs:lr,qitem:Ln==null?void 0:Ln[lr],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:_n})))})),Wt.length<20&&zr.createElement(dn.Z,{menu:{items:[{label:zr.createElement("div",{onClick:()=>{cn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:zr.createElement("div",{onClick:()=>{cn({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),Mn([Wt==null?void 0:Wt.length,...zt])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Hn=>Hn.show).map(Hn=>({label:Hn.label,key:Hn.key}))}},zr.createElement("div",{className:`${yn.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var fl=ne(59301),es=Object.defineProperty,ps=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,Ts=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,qs=(ue,ke,Le)=>ke in ue?es(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ms=(ue,ke)=>{for(var Le in ke||(ke={}))hs.call(ke,Le)&&qs(ue,Le,ke[Le]);if(Ts)for(var Le of Ts(ke))Ls.call(ke,Le)&&qs(ue,Le,ke[Le]);return ue},vs=(ue,ke)=>ps(ue,Sl(ke)),$u=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),nu=({qitem:ue,setisedit:ke,TagDiscipline:Le,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm(),{unified_ai_setting:Wt,ai_review_settings:cn}=Yt==null?void 0:Yt.exercise;(0,E.useEffect)(()=>{var Yn;sn.setFieldsValue(vs(ms({},ue),{name:ue.question_title,sub_item_banks:(Yn=ue.sub_exercise_questions)==null?void 0:Yn.map(Ln=>{var Hn,xn;if(Ln.question_type==4){const or=Wt?cn:((Hn=Ln==null?void 0:Ln.ai_review_settings)==null?void 0:Hn.length)>0?Ln.ai_review_settings:cn;Ln.ai_review_settings=or}return vs(ms({},Ln),{name:Ln.question_title,choices:(xn=Ln==null?void 0:Ln.question_choices)==null?void 0:xn.map(or=>vs(ms({},or),{is_answer:or!=null&&or.standard_boolean?1:0}))})}),repeat_answer:!ue.repeat_answer}))},[ue]);const Qn=Yn=>{if(!(Yn!=null&&Yn.length))return!1;const Ln=Yn.map(xn=>{var or;return(or=xn.choice_text)==null?void 0:or.trim().replace(/^\s+|\s+$/g,"")});return new Set(Ln).size!==Ln.length};return fl.createElement("div",null,fl.createElement(xe.default,{form:sn,colon:!1,onValuesChange:(Yn,Ln)=>{var Hn,xn,or,xr;if(Yn!=null&&Yn.sub_item_banks){let lr=((Hn=sn.getFieldValue("sub_item_banks"))==null?void 0:Hn.length)>0&&((or=(xn=sn.getFieldValue("sub_item_banks"))==null?void 0:xn.map(xi=>{var ro;if(xi.question_type==3&&(xi!=null&&xi.use_blank_score)){let Ui=0;for(let Io in xi==null?void 0:xi.standard_answers)Ui+=Number((ro=xi==null?void 0:xi.standard_answers[Io])==null?void 0:ro.score);return Ui}else return xi.question_score}))==null?void 0:or.filter(xi=>xi));(lr==null?void 0:lr.length)>0&&sn.setFieldsValue({question_score:(xr=parseFloat(lr.reduce((xi,ro)=>parseFloat(xi)+parseFloat(ro))))==null?void 0:xr.toFixed(1)})}},onFinish:Yn=>{var Ln,Hn;if((Ln=Yn.sub_item_banks)==null?void 0:Ln.some(or=>or.question_type===0||or.question_type===1?Qn(or.choices):!1)){Je.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}_n(vs(ms(ms({},ue),Yn),{question_title:Yn.name,sub_questions:(Hn=Yn==null?void 0:Yn.sub_item_banks)==null?void 0:Hn.map(or=>{var xr,lr,xi,ro;return(or==null?void 0:or.question_type)==3?vs(ms({},or),{question_title:or.name,item_type:or==null?void 0:or.question_type}):vs(ms({},or),{question_title:or.name,question_choices:(lr=(xr=or==null?void 0:or.choices)==null?void 0:xr.map)==null?void 0:lr.call(xr,Ui=>Ui.choice_text),standard_answers:(ro=(xi=or==null?void 0:or.choices)==null?void 0:xi.map)==null?void 0:ro.call(xi,(Ui,Io)=>(Ui==null?void 0:Ui.is_answer)===1&&Io+1).filter(Ui=>Ui),item_type:or==null?void 0:or.question_type})})}))},onFinishFailed:Yn=>$u(void 0,null,function*(){var Ln,Hn;Je.ZP.error(Yn.errorFields[0].errors[0]),sn.scrollToField((Hn=(Ln=Yn==null?void 0:Yn.errorFields)==null?void 0:Ln[0])==null?void 0:Hn.name,{behavior:"smooth",block:"center"})})},fl.createElement("div",{style:{display:"flex",alignItems:"center"}},fl.createElement("div",{style:{flex:1}},fl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),fl.createElement("span",null,"\u7EC4\u5408\u9898")),((Ra=Yt==null?void 0:Yt.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&fl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},fl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),fl.createElement(He.ZP,{onClick:()=>{var Yn;ue.isadd?(ke(!1),hn()):(sn.setFieldsValue(vs(ms({},ue),{name:ue.question_title,sub_item_banks:(Yn=ue.sub_exercise_questions)==null?void 0:Yn.map(Ln=>{var Hn;return vs(ms({},Ln),{name:Ln.question_title,choices:(Hn=Ln==null?void 0:Ln.question_choices)==null?void 0:Hn.map(xn=>vs(ms({},xn),{is_answer:xn!=null&&xn.standard_boolean?1:0}))})}),repeat_answer:!ue.repeat_answer})),ke(!1))}},"\u53D6\u6D88"),fl.createElement(ct.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:fl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},fl.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},fl.createElement(He.ZP,{className:"ml20",type:"primary",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),fl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},fl.createElement(qt.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),fl.createElement(Bs,{form:sn,withScore:!0,choiceKey:"",exerciseitem:Yt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),fl.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Le,form:sn}))))},Rs=ne(82772),el=ne(59301),zu=Object.defineProperty,xu=Object.defineProperties,lu=Object.getOwnPropertyDescriptors,su=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable,ku=(ue,ke,Le)=>ke in ue?zu(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,Il=(ue,ke)=>{for(var Le in ke||(ke={}))ru.call(ke,Le)&&ku(ue,Le,ke[Le]);if(su)for(var Le of su(ke))ts.call(ke,Le)&&ku(ue,Le,ke[Le]);return ue},ss=(ue,ke)=>xu(ue,lu(ke)),uu=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),au=({qitem:ue,setqitem:ke,setisedit:Le,TagDiscipline:Yt,exerciseitem:_n,seveeditor:yr,deleteitem:Pn,showTip:hn,saveLoading:zt=!1})=>{var Mn,Ra;const[sn]=xe.default.useForm();return(0,E.useEffect)(()=>{var Wt,cn;sn.setFieldsValue(ss(Il({},ue),{name:ue==null?void 0:ue.question_title,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(Qn=>ss(Il({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ue.shixun=(cn=ue==null?void 0:ue.shixun)==null?void 0:cn.map(Qn=>ss(Il({},Qn),{defaultscore:Qn.challenge_score}))},[]),el.createElement("div",null,el.createElement(xe.default,{form:sn,colon:!1,onFinish:Wt=>{var cn,Qn;let Yn=ss(Il({},Wt),{question_scores:(cn=ue==null?void 0:ue.shixun)==null?void 0:cn.map(Ln=>Ln.challenge_score),item_type:ue==null?void 0:ue.question_type,choices:(Qn=Wt==null?void 0:Wt.choices)==null?void 0:Qn.map(Ln=>ss(Il({},Ln),{is_answer:Ln.standard_boolean}))});yr(Il(Il({},ue),Yn))},onFinishFailed:Wt=>uu(void 0,null,function*(){var cn,Qn;Je.ZP.error(Wt.errorFields[0].errors[0]),sn.scrollToField((Qn=(cn=Wt==null?void 0:Wt.errorFields)==null?void 0:cn[0])==null?void 0:Qn.name,{behavior:"smooth",block:"center"})})},el.createElement("div",{style:{display:"flex",alignItems:"center"}},el.createElement("div",{style:{flex:1}},el.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),el.createElement("span",null,"\u5B9E\u8BAD\u9898")),((Mn=_n==null?void 0:_n.exercise)==null?void 0:Mn.exercise_status)==1&&!(ue!=null&&ue.isadd)&&el.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Pn()}},el.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),el.createElement(He.ZP,{onClick:()=>{var Wt,cn;sn.setFieldsValue(ss(Il({},ue),{name:ue==null?void 0:ue.question_title,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(Qn=>ss(Il({},Qn),{standard_boolean:Qn!=null&&Qn.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ue.shixun=(cn=ue==null?void 0:ue.shixun)==null?void 0:cn.map(Qn=>ss(Il({},Qn),{challenge_score:Qn.defaultscore})),ke(Il({},ue)),Le(!1)}},"\u53D6\u6D88"),el.createElement(ct.Z,{overlayClassName:he.shake,open:hn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:el.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},el.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},el.createElement(He.ZP,{className:"ml20",type:"primary",onClick:()=>uu(void 0,null,function*(){var Wt,cn,Qn;if(((cn=(Wt=ue==null?void 0:ue.shixun)==null?void 0:Wt.map)==null?void 0:cn.call(Wt,Yn=>Yn.challenge_score).filter(Yn=>Yn).length)<((Qn=ue==null?void 0:ue.shixun)==null?void 0:Qn.length)){Je.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}sn.submit()}),loading:zt},"\u4FDD\u5B58"))),el.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},el.createElement(qt.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),el.createElement(xe.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},el.createElement(tr.Z,{watch:!0,height:140,placeholder:"",defaultValue:ue.question_title})),el.createElement(ur.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},el.createElement("div",null,el.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),el.createElement("a",{href:`/shixuns/${(0,Rs.G5)()?ue.forked_shixun_identifier:ue==null?void 0:ue.shixun_identifier}/challenges?exercise=true`,target:"_blank"},el.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(Ra=ue==null?void 0:ue.shixun)==null?void 0:Ra.map((Wt,cn)=>el.createElement("div",{style:{display:"flex",marginBottom:20}},el.createElement("div",{style:{flex:1}},cn+1,"\u3001",Wt.challenge_name),el.createElement("div",null,el.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",el.createElement(Se.Z,{precision:1,value:Wt==null?void 0:Wt.challenge_score,onChange:Qn=>{const Yn=JSON.parse(JSON.stringify((ue==null?void 0:ue.shixun)||[]));Yn[cn].challenge_score=Qn;const Ln=Yn.every(xn=>!xn.challenge_score),Hn=parseFloat(Yn==null?void 0:Yn.map(xn=>xn.challenge_score).reduce((xn,or)=>parseFloat(xn||0)+parseFloat(or||0)));sn.setFieldsValue({question_score:Ln?"":Hn.toFixed(1)}),ke(ss(Il({},ue),{shixun:Yn}))},max:200,min:.1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},da={flex_box_center:"flex_box_center___Vhtb1",flex_space_between:"flex_space_between___k2ZrJ",flex_box_vertical_center:"flex_box_vertical_center___tn6Db",flex_box_center_end:"flex_box_center_end___k3eNX",flex_box_column:"flex_box_column___rsWbi",warp:"warp___UlRJc",indexTag:"indexTag___rjJ1u",normalWrap:"normalWrap___Qm4zY",redio:"redio___VW3yr",redioitem:"redioitem___jAPlJ",redioitemyes:"redioitemyes___VoiQ1",title:"title___Dt2dl",titleyes:"titleyes___Fjh3a",yestag:"yestag___CXrPv",checkbox:"checkbox___CgMU_",checkboxitem:"checkboxitem___PpJ9n",checkboxitemyes:"checkboxitemyes___pCfvZ",bottom:"bottom___BqrmJ",bottomitem:"bottomitem___Qk2rG",left:"left___l29lW",right:"right___nB1XE",completion:"completion___y1m7L",content:"content___AmQy4",items:"items___lIt8e",simple:"simple___zxJLH",shixunWrapper:"shixunWrapper___kAYdL",shixun:"shixun___UE6xS",score:"score___Px5Fq",qtitle:"qtitle___wG7Nn",program:"program___gzKdL",combination:"combination___R0ysn",qtype:"qtype___U0Suy",divname:"divname___guDo9"},wu=ne(70858),Uu=ne(28618),Yl=ne(24334),gr=ne(59301);const _s=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Fu=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var Ou=({qitem:ue,exercise:ke})=>{var Le,Yt,_n,yr,Pn,hn,zt,Mn,Ra,sn,Wt,cn,Qn,Yn,Ln,Hn,xn,or,xr,lr,xi,ro,Ui,Io;return gr.createElement("div",{className:da.warp},((ue==null?void 0:ue.question_type)===0||(ue==null?void 0:ue.question_type)===2)&&gr.createElement("div",{className:da.normalWrap},(Le=ue==null?void 0:ue.question_choices)==null?void 0:Le.map((Or,_i)=>gr.createElement("div",{className:da.redio},!(Or!=null&&Or.standard_boolean)&&gr.createElement("span",{className:da.redioitem}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("i",{className:`${da.redioitemyes} icon-duigou1`}),gr.createElement("span",{className:`${Or!=null&&Or.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},(ue==null?void 0:ue.question_type)===0?_s[_i]:""),gr.createElement(le.Z,{className:Or!=null&&Or.standard_boolean?da.titleyes:da.title,value:Or==null?void 0:Or.choice_text}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===1&&gr.createElement("div",{className:da.normalWrap},(Yt=ue==null?void 0:ue.question_choices)==null?void 0:Yt.map((Or,_i)=>gr.createElement("div",{className:da.checkbox},!(Or!=null&&Or.standard_boolean)&&gr.createElement("span",{className:da.checkboxitem}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("i",{className:`${da.checkboxitemyes} icon-duigou1`}),gr.createElement("span",{className:`${Or!=null&&Or.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},_s[_i]),gr.createElement(le.Z,{className:Or!=null&&Or.standard_boolean?da.titleyes:da.title,value:Or==null?void 0:Or.choice_text}),(Or==null?void 0:Or.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===3&&gr.createElement("div",{className:da.completion},(_n=ue==null?void 0:ue.standard_answers)==null?void 0:_n.map((Or,_i)=>{var Gi;return gr.createElement(ur.Z,{align:"top"},gr.createElement("span",{className:da.title},"\u586B\u7A7A\u9879",_i+1),gr.createElement("div",{className:da.content},(Gi=Or.answer_text)==null?void 0:Gi.map((ir,Eo)=>gr.createElement("div",{key:`${ue.question_id}-${Eo}`,className:da.items,style:(Or==null?void 0:Or.model)===2?{border:0,padding:0}:{}},(Or==null?void 0:Or.model)===1?gr.createElement("pre",{className:"mb0"},ir):gr.createElement(Uu.Z,{value:ir,disabled:!0})))))})),(ue==null?void 0:ue.question_type)===4&&gr.createElement("div",{className:da.simple},gr.createElement("div",{className:da.title},"\u53C2\u8003\u7B54\u6848"),gr.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(yr=ue==null?void 0:ue.answer_texts)!=null&&yr[0]?gr.createElement(le.Z,{className:da.content,value:(Pn=ue==null?void 0:ue.answer_texts)==null?void 0:Pn[0]}):gr.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),gr.createElement("div",{className:"mt20 "},gr.createElement("span",{className:da.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),gr.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},ue!=null&&ue.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(ue==null?void 0:ue.question_type)===5&&gr.createElement("div",{className:da.shixunWrapper},(hn=ue==null?void 0:ue.shixun)==null?void 0:hn.map((Or,_i)=>{var Gi,ir;return gr.createElement("div",null,gr.createElement("div",{key:_i,className:`${da.shixun} mb30`},gr.createElement("span",{className:da.score},"\uFF08",Or==null?void 0:Or.challenge_score,"\u5206\uFF09"),gr.createElement("span",{className:da.qtitle},(ue==null?void 0:ue.index)+"."+(_i+1),"\u3001",Or==null?void 0:Or.challenge_name)),((ir=(Gi=ke==null?void 0:ke.editData)==null?void 0:Gi.exercise)==null?void 0:ir.show_challenge_task_pass)&&gr.createElement(le.Z,{className:da.content,value:(Or==null?void 0:Or.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ue==null?void 0:ue.question_type)===6&&gr.createElement("div",{className:da.program,style:{border:!((Mn=(zt=ke==null?void 0:ke.editData)==null?void 0:zt.exercise)!=null&&Mn.show_hack_sets)&&!((sn=(Ra=ke==null?void 0:ke.editData)==null?void 0:Ra.exercise)!=null&&sn.show_hack_description)&&"none"}},((cn=(Wt=ke==null?void 0:ke.editData)==null?void 0:Wt.exercise)==null?void 0:cn.show_hack_sets)&&gr.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},gr.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},gr.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),gr.createElement(wu.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Or,_i,Gi)=>Gi+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Or,_i,Gi)=>gr.createElement(ct.Z,{title:gr.createElement("pre",null,Or)},gr.createElement("div",{className:da.divname},Or))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Or,_i,Gi)=>gr.createElement(ct.Z,{title:gr.createElement("pre",null,Or)}," ",gr.createElement("div",{className:da.divname},Or))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ue==null?void 0:ue.hack_sets})),((Yn=(Qn=ke==null?void 0:ke.editData)==null?void 0:Qn.exercise)==null?void 0:Yn.show_hack_description)&&gr.createElement("div",null,gr.createElement(le.Z,{className:da.content,value:(ue==null?void 0:ue.description)||"- -"}))),(ue==null?void 0:ue.question_type)===7&&((Ln=ue==null?void 0:ue.sub_exercise_questions)==null?void 0:Ln.map((Or,_i)=>{var Gi,ir,Eo,Uo,No,$n;return gr.createElement("div",{key:_i},gr.createElement("div",{className:da.combination},gr.createElement("span",{className:da.score},Or==null?void 0:Or.question_score,"\u5206"),gr.createElement("span",{className:da.qtype},(Gi=Fu.find(pi=>pi.type==Or.question_type))==null?void 0:Gi.name),gr.createElement("span",{className:da.qtitle},_i+1,"\u3001",Or==null?void 0:Or.question_title)),(Or.question_type===0||Or.question_type===2)&&gr.createElement("div",{className:da.warp,style:{padding:"30px 58px",paddingBottom:0}},gr.createElement("div",null,(ir=Or==null?void 0:Or.question_choices)==null?void 0:ir.map((pi,yi)=>gr.createElement("div",{className:da.redio,key:yi},!(pi!=null&&pi.standard_boolean)&&gr.createElement("span",{className:da.redioitem}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("i",{className:`${da.redioitemyes} icon-duigou1`}),Or.question_type===2&&gr.createElement("span",{className:`${pi!=null&&pi.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},_s[yi]),gr.createElement(le.Z,{className:pi!=null&&pi.standard_boolean?da.titleyes:da.title,value:pi==null?void 0:pi.choice_text}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848"))))),Or.question_type===1&&gr.createElement("div",{className:da.normalWrap},(Eo=Or==null?void 0:Or.question_choices)==null?void 0:Eo.map((pi,yi)=>gr.createElement("div",{className:da.checkbox,key:yi},!(pi!=null&&pi.standard_boolean)&&gr.createElement("span",{className:da.checkboxitem}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("i",{className:`${da.checkboxitemyes} icon-duigou1`}),gr.createElement("span",{className:`${pi!=null&&pi.standard_boolean?da.titleyes:da.title} ${da.indexTag}`},_s[yi]),gr.createElement(le.Z,{className:pi!=null&&pi.standard_boolean?da.titleyes:da.title,value:pi==null?void 0:pi.choice_text}),(pi==null?void 0:pi.standard_boolean)&&gr.createElement("div",{className:da.yestag},"\u6B63\u786E\u7B54\u6848")))),Or.question_type===3&&gr.createElement("div",{className:da.completion},(Uo=Or==null?void 0:Or.standard_answers)==null?void 0:Uo.map((pi,yi)=>{var Qo;return gr.createElement(ur.Z,{align:"top"},gr.createElement("span",{className:da.title},"\u586B\u7A7A\u9879",yi+1),gr.createElement("div",{className:da.content},(Qo=pi.answer_text)==null?void 0:Qo.map((Jo,il)=>gr.createElement("div",{key:il,className:da.items},gr.createElement("pre",{className:"mb0"},Jo)))))})),Or.question_type===4&&gr.createElement("div",{className:da.simple},gr.createElement("div",{className:da.title},"\u53C2\u8003\u7B54\u6848"),gr.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(No=Or==null?void 0:Or.answer_texts)!=null&&No[0]?gr.createElement(le.Z,{className:da.content,value:($n=Or==null?void 0:Or.answer_texts)==null?void 0:$n[0]}):gr.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),gr.createElement("div",{className:"mt20 "},gr.createElement("span",{className:da.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),gr.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Or!=null&&Or.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(ue==null?void 0:ue.question_type)===8&&gr.createElement("div",null,gr.createElement(le.Z,{disabledFill:!0,className:da.content,showProgramFill:!0,value:Yl.Base64.decode(((Hn=ue==null?void 0:ue.program_attr)==null?void 0:Hn.code)||"")})),((ue==null?void 0:ue.question_type)<=4||[6,8].includes(ue==null?void 0:ue.question_type))&&gr.createElement("div",{className:da.bottom},gr.createElement("div",{className:`${da.bottomitem} mb30`},gr.createElement("span",{className:da.left},"\u89E3\u6790"),gr.createElement("span",{className:da.right},ue!=null&&ue.analysis?gr.createElement(le.Z,{value:ue==null?void 0:ue.analysis}):gr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),gr.createElement("div",{className:`${da.bottomitem} mb30`},gr.createElement("span",{className:da.left},"\u96BE\u5EA6"),gr.createElement("span",{className:da.right},(ue==null?void 0:ue.difficulty)===1?"\u7B80\u5355":(ue==null?void 0:ue.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),gr.createElement("div",{className:da.bottomitem},gr.createElement("span",{className:da.left},"\u77E5\u8BC6\u70B9"),gr.createElement(ct.Z,{title:((xn=ue==null?void 0:ue.tag_discipline_names)==null?void 0:xn.length)<=0||((or=ue==null?void 0:ue.tag_discipline_names)==null?void 0:or.length)==1&&["-"].includes(ue==null?void 0:ue.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(lr=(xr=ue==null?void 0:ue.tag_discipline_names)==null?void 0:xr.join("\uFF1B"))==null?void 0:lr.toString()},gr.createElement("span",{className:da.right},((xi=ue==null?void 0:ue.tag_discipline_names)==null?void 0:xi.length)<=0?gr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((ro=ue==null?void 0:ue.tag_discipline_names)==null?void 0:ro.length)==1&&["-"].includes(ue==null?void 0:ue.tag_discipline_names[0])?gr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Io=(Ui=ue==null?void 0:ue.tag_discipline_names)==null?void 0:Ui.join("\uFF1B"))==null?void 0:Io.toString())))))},iu=ne(16636),Ps=ne(66676),sl=ne(59301),Hl=Object.defineProperty,ks=Object.defineProperties,Zs=Object.getOwnPropertyDescriptors,cu=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,$s=(ue,ke,Le)=>ke in ue?Hl(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,du=(ue,ke)=>{for(var Le in ke||(ke={}))Gu.call(ke,Le)&&$s(ue,Le,ke[Le]);if(cu)for(var Le of cu(ke))Su.call(ke,Le)&&$s(ue,Le,ke[Le]);return ue},fu=(ue,ke)=>ks(ue,Zs(ke)),pu=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),Du=({qitem:ue,setisedit:ke,TagDiscipline:Le,exerciseitem:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra,sn;const[Wt]=xe.default.useForm(),{unified_ai_setting:cn,ai_review_settings:Qn}=Yt==null?void 0:Yt.exercise,Yn=cn?Qn:((Ra=ue==null?void 0:ue.ai_review_settings)==null?void 0:Ra.length)>0?ue.ai_review_settings:Qn;return(0,E.useEffect)(()=>{Wt.setFieldsValue(fu(du({},ue),{name:ue.question_title,answer_texts:ue.answer_texts,repeat_answer:!ue.repeat_answer,ai_review_settings:Yn}))},[ue]),sl.createElement("div",null,sl.createElement(xe.default,{form:Wt,colon:!1,onFinish:Ln=>{var Hn;(Hn=Yt==null?void 0:Yt.exercise)!=null&&Hn.is_open_ai_review&&!(0,se.BR)(Ln==null?void 0:Ln.ai_review_settings)||_n(fu(du(du({},ue),Ln),{answer_texts:Ln==null?void 0:Ln.answer_texts,question_title:Ln==null?void 0:Ln.name}))},onFinishFailed:Ln=>pu(void 0,null,function*(){var Hn,xn;Je.ZP.error(Ln.errorFields[0].errors[0]),Wt.scrollToField((xn=(Hn=Ln==null?void 0:Ln.errorFields)==null?void 0:Hn[0])==null?void 0:xn.name,{behavior:"smooth",block:"center"})})},sl.createElement("div",{style:{display:"flex",alignItems:"center"}},sl.createElement("div",{style:{flex:1}},sl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),sl.createElement("span",null,"\u7B80\u7B54\u9898")),((sn=Yt==null?void 0:Yt.exercise)==null?void 0:sn.exercise_status)==1&&!(ue!=null&&ue.isadd)&&sl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},sl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),sl.createElement(He.ZP,{onClick:()=>{ue.isadd?(ke(!1),hn()):(Wt.setFieldsValue(fu(du({},ue),{name:ue==null?void 0:ue.question_title,answer_texts:ue.answer_texts||[],repeat_answer:!(ue!=null&&ue.repeat_answer)})),ke(!1))}},"\u53D6\u6D88"),sl.createElement(ct.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:sl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},sl.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},sl.createElement(He.ZP,{type:"primary",className:"ml20",onClick:()=>{Wt.submit()},loading:Mn},"\u4FDD\u5B58"))),sl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},sl.createElement(xe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},sl.createElement(Se.Z,{onBlur:Ln=>{Ln.target.value==="0"&&Je.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),sl.createElement(Ps.W,{form:Wt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),sl.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Yt,TagDiscipline:Le,form:Wt}))))},Yu=ne(31691),Au=ne(79939),Hs=ne(53420),eu=ne(31709),xl={flex_box_center:"flex_box_center___aDsO9",flex_space_between:"flex_space_between___5V4Xk",flex_box_vertical_center:"flex_box_vertical_center___rNdEP",flex_box_center_end:"flex_box_center_end___cKjnr",flex_box_column:"flex_box_column___glFYD",scoremodal:"scoremodal___PfqOf",selectWrapper:"selectWrapper___Mtqcz",selectWrappers:"selectWrappers___uX2K9",allqingchu:"allqingchu___IqL8g",title:"title___UgYfD",score:"score___LjJmD",close:"close___I0jAO",content:"content___4u86F",items:"items___mK2L5",bottom:"bottom___vQTEm",yes:"yes___j81JQ",no:"no___kiUH4",titlecount:"titlecount___lliQr",add:"add___QhDj8",search:"search___QCCaL",searchIcon:"searchIcon___oXRH5",tabWrap:"tabWrap___Cu_4D",previewModal:"previewModal___BVDlS"},hu=ne(55947),re={flex_box_center:"flex_box_center___zojHa",flex_space_between:"flex_space_between___wmLZ4",flex_box_vertical_center:"flex_box_vertical_center___DszWW",flex_box_center_end:"flex_box_center_end___mVCv5",flex_box_column:"flex_box_column___fbC9t",warp:"warp___isAcM",shixunbutton:"shixunbutton___h3Ybb",redio:"redio___xDffb",redioitem:"redioitem___FFPtq",redioitemyes:"redioitemyes___pF7ID",title:"title___mnPZc",titleyes:"titleyes___wrtWQ",yestag:"yestag___D4krY",qcount:"qcount___W5pwO",score:"score___eKQzl",qtitle:"qtitle___lb8MD",checkbox:"checkbox___QpUm4",checkboxitem:"checkboxitem___Wm2SH",checkboxitemyes:"checkboxitemyes___VVVTe",bottom:"bottom___Mn_Bw",bottomitem:"bottomitem___JTyHT",left:"left___nQqpo",right:"right___v58qy",completion:"completion___BnZSp",content:"content___MU8hZ",items:"items___a7i54",simple:"simple___GDw3K",shixun:"shixun___DGzTe",combination:"combination___AG9cr"};const ye=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var $e=({qitem:ue})=>{var ke,Le,Yt,_n,yr,Pn,hn,zt,Mn,Ra;return E.createElement("div",{className:re.warp},E.createElement("div",{className:re.mainPart},E.createElement("div",{className:re.qcount},(ue==null?void 0:ue.question_type)===8&&E.createElement(le.Z,{className:re.content,showProgramFill:!0,value:(ke=ue==null?void 0:ue.program_attr)==null?void 0:ke.description}),(ue==null?void 0:ue.question_type)!=8&&E.createElement(le.Z,{className:re.qtitle,value:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.title)})),((ue==null?void 0:ue.question_type)===0||(ue==null?void 0:ue.question_type)===2)&&E.createElement("div",null,(Le=ue==null?void 0:ue.choices)==null?void 0:Le.map((sn,Wt)=>E.createElement("div",{className:re.redio},!(sn!=null&&sn.is_answer)&&E.createElement("span",{className:re.redioitem}),(sn==null?void 0:sn.is_answer)&&E.createElement("i",{className:`${re.redioitemyes} icon-duigou1`}),E.createElement(le.Z,{className:sn!=null&&sn.is_answer?re.titleyes:re.title,value:ye[Wt]+(sn==null?void 0:sn.choice_text)}),(sn==null?void 0:sn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===1&&E.createElement("div",null,(Yt=ue==null?void 0:ue.choices)==null?void 0:Yt.map((sn,Wt)=>E.createElement("div",{className:re.checkbox},!(sn!=null&&sn.is_answer)&&E.createElement("span",{className:re.checkboxitem}),(sn==null?void 0:sn.is_answer)&&E.createElement("i",{className:`${re.checkboxitemyes} icon-duigou1`}),E.createElement(le.Z,{className:sn!=null&&sn.is_answer?re.titleyes:re.title,value:ye[Wt]+(sn==null?void 0:sn.choice_text)}),(sn==null?void 0:sn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===3&&E.createElement("div",{className:re.completion},(_n=ue==null?void 0:ue.standard_answer)==null?void 0:_n.map((sn,Wt)=>{var cn;return E.createElement("div",{style:{display:"flex"}},E.createElement("span",{className:re.title},"\u586B\u7A7A\u9879",Wt+1),E.createElement("div",{className:re.content},(cn=sn==null?void 0:sn.answer_text)==null?void 0:cn.map((Qn,Yn)=>E.createElement("div",{className:re.items},Qn))))})),(ue==null?void 0:ue.question_type)===4&&E.createElement("div",{className:re.simple},E.createElement("div",{className:re.title},"\u53C2\u8003\u7B54\u6848"),E.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(yr=ue==null?void 0:ue.answer_texts)!=null&&yr[0]?E.createElement(le.Z,{className:re.content,value:(Pn=ue==null?void 0:ue.answer_texts)==null?void 0:Pn[0]}):E.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(ue==null?void 0:ue.question_type)===5&&((hn=ue==null?void 0:ue.challenge_names)==null?void 0:hn.map((sn,Wt)=>E.createElement("div",{className:re.shixun},E.createElement("span",{className:re.qtitle},E.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,se.EM)(Wt+1),"\u9898"),sn)))),(ue==null?void 0:ue.question_type)===6&&E.createElement("div",{className:re.simple},E.createElement(le.Z,{className:re.content,value:((zt=ue==null?void 0:ue.program_attr)==null?void 0:zt.description)||"- -"})),(ue==null?void 0:ue.question_type)===7&&((Mn=ue==null?void 0:ue.sub_item_banks)==null?void 0:Mn.map((sn,Wt)=>{var cn,Qn,Yn,Ln,Hn;return E.createElement("div",null,E.createElement("div",{className:re.combination},E.createElement("span",{className:re.qtitle},sn==null?void 0:sn.name)),E.createElement("div",{className:re.warp,style:{padding:"0px",paddingTop:20}},E.createElement("div",null,((sn==null?void 0:sn.item_type)=="SINGLE"||(sn==null?void 0:sn.item_type)=="JUDGMENT")&&((cn=sn==null?void 0:sn.choices)==null?void 0:cn.map((xn,or)=>E.createElement("div",{className:re.redio},!(xn!=null&&xn.is_answer)&&E.createElement("span",{className:re.redioitem}),(xn==null?void 0:xn.is_answer)&&E.createElement("i",{className:`${re.redioitemyes} icon-duigou1`}),E.createElement(le.Z,{className:xn!=null&&xn.is_answer?re.titleyes:re.title,value:ye[or]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(sn==null?void 0:sn.item_type)=="MULTIPLE"&&((Qn=sn==null?void 0:sn.choices)==null?void 0:Qn.map((xn,or)=>E.createElement("div",{className:re.checkbox},!(xn!=null&&xn.is_answer)&&E.createElement("span",{className:re.checkboxitem}),(xn==null?void 0:xn.is_answer)&&E.createElement("i",{className:`${re.checkboxitemyes} icon-duigou1`}),E.createElement(le.Z,{className:xn!=null&&xn.is_answer?re.titleyes:re.title,value:ye[or]+(xn==null?void 0:xn.choice_text)}),(xn==null?void 0:xn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(sn==null?void 0:sn.item_type)=="COMPLETION"&&E.createElement("div",{className:re.completion},(Yn=sn==null?void 0:sn.standard_answer)==null?void 0:Yn.map((xn,or)=>{var xr;return E.createElement("div",{style:{display:"flex"}},E.createElement("span",{className:re.title},"\u586B\u7A7A\u9879",or+1),E.createElement("div",{className:re.content},(xr=xn==null?void 0:xn.answer_text)==null?void 0:xr.map((lr,xi)=>E.createElement("div",{className:re.items},lr))))})),(sn==null?void 0:sn.item_type)=="SUBJECTIVE"&&E.createElement("div",{className:re.simple},E.createElement("div",{className:re.title},"\u53C2\u8003\u7B54\u6848"),E.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ln=sn==null?void 0:sn.answer_texts)!=null&&Ln[0]?E.createElement(le.Z,{className:re.content,value:(Hn=sn==null?void 0:sn.answer_texts)==null?void 0:Hn[0]}):E.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(ue==null?void 0:ue.question_type)===8&&E.createElement("div",null,E.createElement(le.Z,{disabledFill:!0,className:re.content,showProgramFill:!0,value:Yl.Base64.decode(((Ra=ue==null?void 0:ue.program_attr)==null?void 0:Ra.code)||"")})),(ue==null?void 0:ue.question_type)===5&&E.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},E.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u521B\u5EFA\u8005"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.author_name)||"- -")),E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.author_school_name)||"- -")),E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.study_count)||"0"))),E.createElement("a",{className:re.shixunbutton,href:`/shixuns/${ue==null?void 0:ue.identifier}/challenges?exercise=true`,target:"_blank"},E.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((ue==null?void 0:ue.question_type)<=4||[6,8].includes(ue==null?void 0:ue.question_type))&&E.createElement("div",{className:re.bottom},E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u89E3\u6790"),E.createElement("span",{className:re.right},ue!=null&&ue.analysis?E.createElement(le.Z,{value:ue==null?void 0:ue.analysis}):E.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u96BE\u5EA6"),E.createElement("span",{className:re.right},(ue==null?void 0:ue.difficulty)===1?"\u7B80\u5355":(ue==null?void 0:ue.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u77E5\u8BC6\u70B9"),E.createElement("span",{className:re.right},ue!=null&&ue.tag_discipline?ue==null?void 0:ue.tag_discipline:E.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},at=ne(23783),xt=ne(4387),Rt=ne(97612),jt=ne(85421),pn=ne(82136),vn=ne(18612),Gt=ne(22796),Bn=ne(37428),Ot=ne(59301),Tn=Object.defineProperty,In=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,zn=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,dr=(ue,ke,Le)=>ke in ue?Tn(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,bn=(ue,ke)=>{for(var Le in ke||(ke={}))zn.call(ke,Le)&&dr(ue,Le,ke[Le]);if(Vn)for(var Le of Vn(ke))Dr.call(ke,Le)&&dr(ue,Le,ke[Le]);return ue},br=(ue,ke)=>In(ue,jn(ke)),qn=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())});const mr=({setScoreShow:ue,ScoreShow:ke,onOk:Le,isshixuns:Yt,isloadings:_n,dispatch:yr,shixunsDetail:Pn,exercise:hn,initFun:zt})=>{var Mn,Ra,sn;let[Wt,cn]=(0,E.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]}),[Qn,Yn]=(0,E.useState)([]),[Ln,Hn]=(0,E.useState)([]),[xn,or]=(0,E.useState)([]),[xr,lr]=(0,E.useState)([]);const[xi,ro]=(0,E.useState)(!1),[Ui]=xe.default.useForm(),[Io,Or]=(0,E.useState)(),[_i,Gi]=(0,E.useState)(!1);let[ir,Eo]=(0,E.useState)(Yt);const[Uo,No]=(0,E.useState)([]),[$n,pi]=(0,E.useState)(!0),[yi,Qo]=(0,E.useState)([]),[Jo,il]=(0,E.useState)(0),[bo,ol]=(0,E.useState)([]),pl=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[Lo,To]=(0,E.useState)({}),[hl,Dl]=(0,E.useState)(!1),[Ys,Pi]=(0,E.useState)({});(0,E.useEffect)(()=>{var Cn,Fr,ii,Ma,si,Ro,rl,Yo,us,Wo;(((ii=(Fr=(Cn=hn==null?void 0:hn.editData)==null?void 0:Cn.exercise)==null?void 0:Fr.exist_item_bank_ids)==null?void 0:ii.length)>0||((Ro=(si=(Ma=hn==null?void 0:hn.editData)==null?void 0:Ma.exercise)==null?void 0:si.exist_item_bank_shixun_ids)==null?void 0:Ro.length)>0)&&ol([...(Yo=(rl=hn==null?void 0:hn.editData)==null?void 0:rl.exercise)==null?void 0:Yo.exist_item_bank_ids,...(Wo=(us=hn==null?void 0:hn.editData)==null?void 0:us.exercise)==null?void 0:Wo.exist_item_bank_shixun_ids])},[(Ra=(Mn=hn==null?void 0:hn.editData)==null?void 0:Mn.exercise)==null?void 0:Ra.exist_item_bank_ids]);const Fa=(0,E.useRef)(new Set),ul=(0,E.useRef)(new Set);let[cl,gs]=(0,E.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:null,per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ns=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Ks=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Ws=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Vs,qi]=(0,E.useState)(!1),Si=xe.default.useWatch("courseid",Ui),Ri=()=>{Ui.resetFields(),ir=!1,Eo(!1),qi(!1),Ui.submit()};(0,E.useEffect)(()=>{Jo>0&&setTimeout(()=>{il(0)},2e3)},[Jo]),(0,E.useEffect)(()=>{ke&&(Ui.setFieldsValue({item_type:"",courseid:null,tag_discipline_id:null,difficulty:null,keyword:null}),$n&&ir&&(Ui.setFieldsValue({item_type:"SHIXUN"}),Wt.item_type="SHIXUN",cn(bn({},Wt)),pi(!1)),Za(Wt),ds(),ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[ke]);function Za(Cn){return qn(this,null,function*(){var Fr,ii,Ma;if(ro(!0),cn(Cn),(xn==null?void 0:xn.length)<=0&&Cn.type==="5"){lr([]),ro(!1);return}let si=Cn.type==="5"?xn==null?void 0:xn.filter(us=>!Uo.includes(us)):null,Ro=Cn.type==="5"?xn==null?void 0:xn.filter(us=>Uo.includes(us)):null,rl={course_discipline_id:Cn==null?void 0:Cn.courseid};(Cn==null?void 0:Cn.type)==="1"&&(rl={discipline_id:((Fr=Cn==null?void 0:Cn.courseid)==null?void 0:Fr[0])||null,sub_discipline_id:((ii=Cn==null?void 0:Cn.courseid)==null?void 0:ii[1])||null});let Yo=yield(0,Ye.ZP)("/api/item_banks.json",{method:"get",params:br(bn(bn({},Cn),rl),{ids:si,shixun_ids:Ro,group_id:((Ma=Cn.group_id)==null?void 0:Ma.map(us=>us==null?void 0:us.value))||null,keyword:Cn.keyword?encodeURIComponent(Cn.keyword):Cn.keyword,include_shixuns:!0,type:Cn.type==="5"?null:Cn.type,clazz:Cn.type==="3"?"ItemBanksGroup":null})});lr(Yo),ro(!1)})}function ll(Cn){return qn(this,null,function*(){var Fr;let ii=yield(0,Ye.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Cn}),Ma=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Fr=ii==null?void 0:ii.data)==null?void 0:Fr.map(si=>({title:si.name,id:si.id,pid:si.id,value:si.id,key:si.id,isLeaf:!si.have_child}))}];Qo(Ma)})}function ds(){return qn(this,null,function*(){let Cn=yield(0,Ye.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Wt.type==="5"?null:Wt.type,clazz:"ItemBanksGroup"}});Yn((0,hu.L)(Cn==null?void 0:Cn.disciplines))})}function ao(Cn){return qn(this,null,function*(){var Fr,ii,Ma,si;ro(!0);let Ro=(Fr=Cn.list)==null?void 0:Fr.filter(Wo=>!Uo.includes(Wo)),rl=(ii=Cn.list)==null?void 0:ii.filter(Wo=>Uo.includes(Wo));if(Ro.length===0&&rl.length===0){ro(!1),lr([]);return}let Yo={course_discipline_id:Cn==null?void 0:Cn.courseid};(Cn==null?void 0:Cn.type)==="1"&&(Yo={discipline_id:((Ma=Cn==null?void 0:Cn.courseid)==null?void 0:Ma[0])||null,sub_discipline_id:((si=Cn==null?void 0:Cn.courseid)==null?void 0:si[1])||null});let us=yield(0,Ye.ZP)("/api/item_banks.json",{method:"get",params:br(bn(bn({},Cn),Yo),{ids:Ro,shixun_ids:rl,type:Cn.type==="5"?null:Cn.type,clazz:Cn.type==="3"?"ItemBanksGroup":null})});ro(!1),lr(us)})}const Go=(0,ve.useParams)(),[_l,rs,El,Vl]=(0,Rt.P)(),Nl=Cn=>qn(void 0,null,function*(){const Fr=yield yr({type:"shixunsDetail/release",payload:{id:Cn}});let ii=Fr==null?void 0:Fr.tag_position,Ma=(Fr==null?void 0:Fr.evaluation_set_position)||[],si=Fr.status;return si===0?(Je.ZP.success("\u53D1\u5E03\u6210\u529F"),Za(Wt),!0):(si===2?Je.ZP.error(`\u7B2C${Ma.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):si===3?Je.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ii.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Je.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Bo=Cn=>(Cn==null?void 0:Cn.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Ss=(Cn,Fr,ii)=>Cn.map(Ma=>Ma.key===Fr?bn(bn({},Ma),ii):Ma.children?br(bn({},Ma),{children:Ss(Ma.children,Fr,ii)}):Ma),Is=Cn=>qn(void 0,null,function*(){const{key:Fr}=Cn;let ii=Wt.type;const Ma=yield(0,pn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Fr),type:ii}),{data:si,total_count:Ro}=Ma||{};Ro>0&&Qo(rl=>Ss(rl,Fr,{children:si.map(Yo=>({title:Yo.name,id:Yo.id,pid:Yo.id,value:Yo.id,key:Yo.id,isLeaf:!Yo.have_child}))}))});function zs(Cn){console.log("----",Wt),Cn==="1"&&(cl.gg=bn({},Wt)),Cn==="2"&&(cl.scj=bn({},Wt)),Cn==="3"&&(cl.ttgx=bn({},Wt)),Cn==="0"&&(cl.wcjd=bn({},Wt)),Cn==="5"&&(cl.yx=bn({},Wt)),gs(bn({},cl))}function Xl(){Wt.type==="1"&&(Wt=cl.gg),Wt.type==="2"&&(Wt=cl.scj),Wt.type==="3"&&(Wt=cl.ttgx),Wt.type==="0"&&(Wt=cl.wcjd),Wt.type==="5"&&(Wt=cl.yx),(Wt==null?void 0:Wt.item_type)==="SHIXUN"?(ir=!0,Eo(!0)):(ir=!1,Eo(!1)),Ui.setFieldsValue(bn({},Wt)),cn(bn({},Wt)),Za(bn({},Wt))}return Ot.createElement("div",null,Ot.createElement(qe.default,{title:!1,footer:!1,open:ke,width:1200,centered:!0,className:xl.scoremodal,onCancel:()=>{ue(!1)}},Ot.createElement("div",{style:{display:"flex",alignItems:"center"}},Ot.createElement("div",{className:xl.title},"\u9898\u5E93\u9009\u9898")),Ot.createElement(Yu.default,{className:xl.tabWrap,activeKey:Wt.type,onChange:Cn=>{Cn==="3"?(Wt.show_all_share=!0,ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Wt.show_all_share=null,Cn==="0"&&ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zs(Wt.type),Wt.type=Cn,(Wt==null?void 0:Wt.item_type)==="SHIXUN"&&Wt.type!=="5"&&(ir=!0,Eo(!0)),qi(!1),Wt.type==="5"&&(ir=!1,Eo(!1)),Xl(),ds()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Ot.createElement("div",null,"\u5DF2\u9009",xn.length>0&&Ot.createElement("span",{className:xl.titlecount},xn.length),Jo>0&&Ot.createElement("span",{className:xl.add},"+",Jo)),key:"5"}]}),Ot.createElement(xe.default,{layout:"inline",form:Ui,onValuesChange:(Cn,Fr)=>{var ii,Ma;const si=Object.values(Fr).some(rl=>rl!==null&&rl!==""&&rl!==void 0),Ro=Fr.keyword==="";if(qi(si||!Ro),Wt.page=1,Wt.keyword=(Ma=(ii=Wt.keyword)==null?void 0:ii.replace)==null?void 0:Ma.call(ii,/^\s+|\s+$/g,""),(Fr==null?void 0:Fr.item_type)==="SHIXUN"){if(Wt.type==="5"?Eo(!1):Eo(!0),Cn.keyword||Cn.keyword==="")return;Ui.submit()}else{if(Cn!=null&&Cn.courseid&&Ui.setFieldsValue({tag_discipline_id:null}),Eo(!1),Cn.keyword||Cn.keyword==="")return;Ui.submit()}},onFinish:Cn=>{var Fr;Wt.type==="3"&&(!Cn.group_id||((Fr=Cn==null?void 0:Cn.group_id)==null?void 0:Fr.length)===0)?Wt.show_all_share=!0:Wt.show_all_share=null,cn(bn(bn({},Wt),Cn)),Za(bn(bn({},Wt),Cn))}},Ot.createElement(xe.default.Item,{name:"item_type"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},pl.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.value},Cn.name)))),["1","2"].includes(Wt.type)?Ot.createElement(Ot.Fragment,null,Ot.createElement(xe.default.Item,{name:"courseid"},Ot.createElement(Au.Z,{className:xl.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Qn})),!ir&&Ot.createElement(xe.default.Item,{name:"tag_discipline_id"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(sn=xr==null?void 0:xr.tag_disciplines)==null?void 0:sn.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.id},Cn.name))))):Ot.createElement(Ot.Fragment,null," ",Ot.createElement(xe.default.Item,{name:"courseid"},Ot.createElement(Er.q,{style:{width:160,height:38},size:"middle",showLinkButton:!1,data:{container_type:"ItemBank",type:Wt==null?void 0:Wt.type}})),!ir&&Ot.createElement(xe.default.Item,{name:"tag_discipline_id"},Ot.createElement(Er.i,{allowAcceptEmpty:!0,key:String(Wt.type==="3"),data:{container_type:"ItemBank",search:!0,type:Wt.type},style:{width:160,height:38},size:"middle",courseDisciplineId:Si,showLinkButton:!1}))),Ot.createElement(xe.default.Item,{name:ir?"diff":"difficulty"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},ns.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.value},Cn.name)))),ir&&Ot.createElement(xe.default.Item,{name:"shixun_publish_status"},Ot.createElement(nt.default,{className:xl.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Ws.map(Cn=>Ot.createElement(nt.default.Option,{key:Cn.value},Cn.name)))),(Wt.type==="3"||Wt.type==="0")&&!ir&&Ot.createElement(xe.default.Item,{name:"group_id"},Ot.createElement(Hs.default,{treeDataSimpleMode:!0,style:{width:134},className:xl.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Cn,Fr)=>Fr.title.toUpperCase().indexOf(Cn.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Is,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:yi})),Vs&&Ot.createElement("span",{className:xl.allqingchu,onClick:Ri},Ot.createElement("i",{className:"iconfont icon-guanbi4"}),Ot.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ot.createElement(xe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ot.createElement(Ae.default.Search,{className:xl.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ot.createElement("i",{className:`iconfont icon-sousuo9 font14 ${xl.searchIcon}`,onClick:()=>Ui.submit()}),onSearch:Cn=>{Ui.submit()}}))),Ot.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ot.createElement("div",{onClick:()=>{Wt.updated_at==="asc"?Wt.updated_at="desc":Wt.updated_at="asc",cn(br(bn({},Wt),{page:1})),Za(br(bn({},Wt),{page:1}))}}," ",Wt.updated_at?Ot.createElement("img",{src:Wt.updated_at==="asc"?at.Z:xt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ot.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ot.createElement("div",{onClick:()=>{Wt.quotes==="asc"?Wt.quotes="desc":Wt.quotes="asc",cn(br(bn({},Wt),{page:1})),Za(br(bn({},Wt),{page:1}))},style:{marginLeft:20}}," ",Wt.quotes?Ot.createElement("img",{src:Wt.quotes==="asc"?at.Z:xt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ot.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ot.createElement(wu.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(xr==null?void 0:xr.items)||(xr==null?void 0:xr.shixun_list),pagination:!1,loading:xi,rowKey:Cn=>Cn.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Ln,...bo],getCheckboxProps:Cn=>({disabled:Cn.shixun_tag_num===1||(bo==null?void 0:bo.find(Fr=>Cn.id===Fr))}),onSelect(Cn,Fr,ii){if(console.log("---",ii,Fr,Cn),Fr)(ir||Cn!=null&&Cn.challenge_names)&&No([...Uo,Cn.id]),Hn([...Ln,Cn.id]),Cn.identifier?Fa.current.add(Cn.id):ul.current.add(Cn.id),il(1),or([...xn,Cn.id]);else{Cn.identifier?Fa.current.delete(Cn.id):ul.current.delete(Cn.id);let Ma=xn.filter(si=>si!==Cn.id);if(Hn(Ma),or(Ma),ir||Cn!=null&&Cn.challenge_names){let si=Uo.filter(Ro=>Ro!==Cn.id);No([...si])}if(Wt.type==="5"){ao(br(bn({},Wt),{list:[...Ma]}));return}}},onSelectAll(Cn,Fr,ii){var Ma,si;if(console.log("----",ii),Cn){const Ro=ii.map(Yo=>Yo.id),rl=(si=ii==null?void 0:ii.filter(Yo=>Yo==null?void 0:Yo.challenge_names))==null?void 0:si.map(Yo=>Yo.id);console.log("---",rl),No([...Uo,...rl]),Hn([...Ln,...Ro]),or([...xn,...Ro]);for(const Yo of ii)Yo.identifier?Fa.current.add(Yo.id):ul.current.add(Yo.id)}else{const Ro=ii.map(Wo=>Wo.id),rl=Ln.filter(Wo=>!Ro.some(mu=>mu===Wo)),Yo=(Ma=ii==null?void 0:ii.filter(Wo=>Wo==null?void 0:Wo.challenge_names))==null?void 0:Ma.map(Wo=>Wo.id);Hn([...rl]),or([...rl]);let us=Uo.filter(Wo=>!Yo.some(mu=>mu===Wo.id));No([...us]),Wt.type==="5"&&ao(br(bn({},Wt),{list:[...rl]}));for(const Wo of Ro)Wo.identifier?Fa.current.delete(Wo):ul.current.delete(Wo)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Cn,Fr,ii)=>{var Ma,si;return Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("div",null,ir||Fr!=null&&Fr.challenge_names?"\u5B9E\u8BAD\u9898":(si=(Ma=pl==null?void 0:pl.filter(Ro=>Ro.value===Cn))==null?void 0:Ma[0])==null?void 0:si.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:ir?"30%":"60%",key:"name",render:(Cn,Fr,ii)=>{var Ma;return Ot.createElement("div",{style:{display:"flex",alignItems:"center"}},Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("span",null,Ot.createElement(le.Z,{key:1,showLines:1,showTextOnly:!0,value:ir||Fr!=null&&Fr.challenge_names?Fr!=null&&Fr.title||Cn===null?"--":Cn:(Fr==null?void 0:Fr.item_type)=="BPROGRAM"?(Ma=Fr==null?void 0:Fr.program_attr)==null?void 0:Ma.description:Cn}))),(Fr==null?void 0:Fr.high_resources_consume)&&Ot.createElement(jt.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!ir,render:(Cn,Fr,ii)=>{var Ma;return Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("span",null,Cn?(Ma=Cn==null?void 0:Cn.split("\u3001"))==null?void 0:Ma[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!ir,render:(Cn,Fr,ii)=>Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("span",null,Cn||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Cn,Fr,ii)=>{var Ma,si,Ro,rl;return Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("div",null,ir||Fr!=null&&Fr.challenge_names?(Fr==null?void 0:Fr.level)||((si=(Ma=ns==null?void 0:ns.filter(Yo=>Yo.value===Cn))==null?void 0:Ma[0])==null?void 0:si.name):(rl=(Ro=ns==null?void 0:ns.filter(Yo=>Yo.value===Cn))==null?void 0:Ro[0])==null?void 0:rl.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!ir,render:(Cn,Fr,ii)=>Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("div",null,Cn||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Cn,Fr,ii)=>Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("div",null,ir||Fr!=null&&Fr.challenge_names?(Fr==null?void 0:Fr.study_count)||(Fr==null?void 0:Fr.stu_num):Cn))},{title:Ot.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ot.createElement(ct.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ot.createElement(un.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!ir,render:(Cn,Fr,ii)=>Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("div",null,Cn||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Cn,Fr,ii)=>Ot.createElement(ct.Z,{title:Bo(Fr)},Ot.createElement("div",{style:{flex:1,textAlign:"start"}},Ot.createElement("a",{onClick:()=>{var Ma,si;Or(br(bn({},Fr),{question_type:ir||Fr!=null&&Fr.challenge_names?5:(si=(Ma=pl==null?void 0:pl.filter(Ro=>Ro.value===(Fr==null?void 0:Fr.item_type)))==null?void 0:Ma[0])==null?void 0:si.question_type})),Gi(!0)}},"\u67E5\u770B"),(Fr==null?void 0:Fr.shixun_tag_num)===1&&Ot.createElement("a",{style:{marginLeft:10},onClick:()=>{qe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ot.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ot.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Fr==null?void 0:Fr.identifier}/challenges`)}},(Fr==null?void 0:Fr.shixun_name)||"--"),"\uFF1F"),onOk:()=>qn(void 0,null,function*(){if(!Nl(Fr==null?void 0:Fr.identifier))return new Promise((Ma,si)=>{si()})})})}},"\u53D1\u5E03")))}].filter(Cn=>!Cn.hidden)}),Ot.createElement(eu.Z,{current:Wt.page,total:(xr==null?void 0:xr.items_count)||(xr==null?void 0:xr.shixuns_count),style:{marginBottom:20},defaultPageSize:Wt.per_page,showTotal:Cn=>Ot.createElement("span",null,"\u5171\xA0",Ot.createElement("span",{style:{color:"#165DFF"}},Cn),"\xA0\u6761\u6570\u636E"),pageSize:Wt.per_page,onChange:(Cn,Fr)=>{Wt.page=Cn,Wt.per_page=Fr,cn(bn({},Wt)),Za(bn({},Wt))}}),Ot.createElement("div",{className:xl.bottom},Ot.createElement(He.ZP,{className:xl.no,onClick:()=>{ue(!1)}},"\u53D6\u6D88"),Ot.createElement(He.ZP,{loading:_n,style:{width:_n&&75},className:xl.yes,onClick:()=>qn(void 0,null,function*(){var Cn,Fr;if((xn==null?void 0:xn.length)<=0){Je.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let ii=[...xn==null?void 0:xn.filter(si=>Uo.includes(si))],Ma=yield(0,Gt.Tr)({id:ii,course_id:Go.coursesId,type:"shixun"});if(Ma){let si=yield Le([...ul.current],ii,!1);if((si==null?void 0:si.status)===0){if((ii==null?void 0:ii.length)==0)return zt();Pi({exercise_id:(Fr=(Cn=hn==null?void 0:hn.editData)==null?void 0:Cn.exercise)==null?void 0:Fr.id,courseId:Go==null?void 0:Go.coursesId,shixun_info:Ma==null?void 0:Ma.no_use_list}),Dl(!0)}}})},"\u786E\u8BA4"))),Ot.createElement(qe.default,{open:_i,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:xl.previewModal,width:1e3,centered:!0,onCancel:()=>{Gi(!1)},onOk:()=>{Gi(!1)}},Ot.createElement($e,{qitem:Io})),Ot.createElement(vn.Z,{resdata:Lo,type:"exercise",okloading:_n,oktext:(Lo==null?void 0:Lo.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Cn=>qn(void 0,null,function*(){const Fr=[],ii=[];for(const Ma of Lo==null?void 0:Lo.can_copy_list)Fr.push(Ma.id);rs(),yield Le([...ul.current],[...Fa.current].filter(Ma=>!ii.includes(Ma)),!0,xn==null?void 0:xn.length,Fr)})}),Ot.createElement(Bn.Z,{source:"\u5B9E\u8BAD",showModal:hl,onCancel:()=>Dl(!1),info:Ys,onOk:zt}))};var Oa=(0,ve.connect)(({shixunsDetail:ue,exercise:ke})=>({shixunsDetail:ue,exercise:ke}))(mr),ia=ne(64652),Lr=ne(59301),aa=Object.defineProperty,Wa=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Gr=(ue,ke,Le)=>ke in ue?aa(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ka=(ue,ke)=>{for(var Le in ke||(ke={}))_r.call(ke,Le)&&Gr(ue,Le,ke[Le]);if(Ur)for(var Le of Ur(ke))Jr.call(ke,Le)&&Gr(ue,Le,ke[Le]);return ue},Ea=(ue,ke)=>Wa(ue,pa(ke)),oa=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())}),Yr=({qitem:ue,TagDiscipline:ke,exerciseitem:Le,setisedit:Yt,seveeditor:_n,deleteitem:yr,getTagData:Pn,init:hn,showTip:zt=!1,saveLoading:Mn=!1})=>{var Ra;const[sn]=xe.default.useForm(),Wt=!0;return(0,E.useEffect)(()=>{var cn,Qn,Yn;sn.setFieldsValue(Ea(ka({},ue),{standard_answers:ue.standard_answer,difficulty:(ue==null?void 0:ue.difficult)||2,item_banks_group_id:ue.item_banks_group_id,hack:Ea(ka({},ue),{time_limit:(ue==null?void 0:ue.time_limit)||3}),hack_codes:{language:(cn=ue==null?void 0:ue.program_attr)==null?void 0:cn.language,code:Yl.Base64.decode(((Qn=ue==null?void 0:ue.program_attr)==null?void 0:Qn.code)||"")},hack_sets:ka({},(Yn=ue==null?void 0:ue.hack_sets)==null?void 0:Yn[0]),repeat_answer:!ue.repeat_answer}))},[ue]),Lr.createElement("div",null,Lr.createElement(xe.default,{form:sn,colon:!1,onValuesChange:(cn,Qn)=>{var Yn,Ln,Hn,xn;if(cn!=null&&cn.standard_answers){let or=((Yn=sn.getFieldValue("standard_answers"))==null?void 0:Yn.length)>0&&((Hn=(Ln=sn.getFieldValue("standard_answers"))==null?void 0:Ln.map(xr=>xr.score))==null?void 0:Hn.filter(xr=>xr));(or==null?void 0:or.length)>0&&sn.setFieldsValue({question_score:(or==null?void 0:or.length)>0&&((xn=or.reduce((xr,lr)=>xr+lr))==null?void 0:xn.toFixed(1))})}},onFinish:cn=>{var Qn;_n(Ea(ka(ka({},ue),cn),{item_type:ue==null?void 0:ue.question_type,standard_answers:(Qn=cn.standard_answers)==null?void 0:Qn.map((Yn,Ln)=>Ea(ka({},Yn),{position:Ln+1})),hack_codes:Ea(ka({},cn.hack_codes),{code:Yl.Base64.encode(cn.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:cn=>oa(void 0,null,function*(){var Qn,Yn;Je.ZP.error(cn.errorFields[0].errors[0]),sn.scrollToField((Yn=(Qn=cn==null?void 0:cn.errorFields)==null?void 0:Qn[0])==null?void 0:Yn.name,{behavior:"smooth",block:"center"})})},Lr.createElement("div",{style:{display:"flex",alignItems:"center"}},Lr.createElement("div",{style:{flex:1}},Lr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Lr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((Ra=Le==null?void 0:Le.exercise)==null?void 0:Ra.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Lr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{yr()}},Lr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Lr.createElement(He.ZP,{onClick:()=>{var cn,Qn,Yn;ue.isadd?(Yt(!1),hn()):(sn.setFieldsValue(Ea(ka({},ue),{standard_answers:ue.standard_answer,difficulty:ue.difficult,item_banks_group_id:ue.item_banks_group_id,hack:ka({},ue),hack_codes:{language:(cn=ue==null?void 0:ue.program_attr)==null?void 0:cn.language,code:Yl.Base64.decode((Qn=ue==null?void 0:ue.program_attr)==null?void 0:Qn.code)},hack_sets:ka({},(Yn=ue==null?void 0:ue.hack_sets)==null?void 0:Yn[0]),repeat_answer:!ue.repeat_answer})),Yt(!1))}},"\u53D6\u6D88"),Lr.createElement(ct.Z,{overlayClassName:he.shake,open:zt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Lr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Lr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Lr.createElement(He.ZP,{className:"ml20",type:"primary",onClick:()=>{sn.submit()},loading:Mn},"\u4FDD\u5B58"))),Lr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Lr.createElement(qt.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Lr.createElement(ia.t,{form:sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Wt,hackidentifier:ue==null?void 0:ue.hack_identifier,answerKey:"standard_answers"}),Lr.createElement(Sr,{getTagData:Pn,qitem:ue,exerciseitem:Le,TagDiscipline:ke,form:sn}))))},ha=ne(51802),fa=ne(79986),ni=ne(34359),di=ne(89392),mi=ne(26203),vi=ne(64047),$a=ne(13509),Li=ne(3256),fn=ne(59301),Oi=Object.defineProperty,no=Object.defineProperties,Bi=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,zi=(ue,ke,Le)=>ke in ue?Oi(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,Wi=(ue,ke)=>{for(var Le in ke||(ke={}))gi.call(ke,Le)&&zi(ue,Le,ke[Le]);if(lo)for(var Le of lo(ke))po.call(ke,Le)&&zi(ue,Le,ke[Le]);return ue},ho=(ue,ke)=>no(ue,Bi(ke)),ba=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())});const{confirm:wa}=qe.default,Ji=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],yo=({user:ue,dispatch:ke,itemid:Le,setisedits:Yt,exercise:_n,setitemid:yr})=>{var Pn,hn,zt,Mn,Ra,sn,Wt,cn,Qn,Yn,Ln,Hn,xn,or,xr,lr,xi,ro,Ui,Io,Or,_i,Gi;const[ir,Eo]=(0,E.useState)(),[Uo,No]=(0,E.useState)(!1),[$n,pi]=(0,E.useState)(),[yi,Qo]=(0,E.useState)(),Jo=(0,E.useRef)(),il=(0,E.useRef)(),[bo,ol]=(0,E.useState)(),[pl,Lo]=(0,E.useState)(!1),[To,hl]=(0,E.useState)(!1),[Dl,Ys]=(0,E.useState)(),[Pi,Fa]=(0,E.useState)(!1),[ul,cl]=(0,E.useState)(!1),[gs,ns]=(0,E.useState)(!1),[Ks,Ws]=(0,E.useState)(!1),[Vs,qi]=(0,E.useState)(!1),[Si,Ri]=(0,E.useState)(!1),Za=(0,ve.useParams)(),[ll,ds]=(0,E.useState)(!1),[ao]=xe.default.useForm(),[Go,_l]=(0,E.useState)(!1),[rs,El]=(0,E.useState)(!1),[Vl,Nl]=(0,E.useState)(!1),[Bo,Ss]=(0,E.useState)(!1),[Is,zs]=(0,E.useState)(!1),Xl=(0,E.useRef)(),[Cn,Fr]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Le&&Ma()},[Le]),(0,E.useEffect)(()=>{Yt(To)},[To]),(0,E.useEffect)(()=>{$n!=null&&$n.question_id&&(Qo($n==null?void 0:$n.question_score),il.current=$n==null?void 0:$n.question_id)},[$n]);const ii=hr=>ba(void 0,null,function*(){});function Ma(){return ba(this,null,function*(){var hr,Sa,Vi,Zi;Lo(!0),No(!0);const io=yield ke({type:"exercise/editExercise",payload:{categoryId:Le}});Lo(!1),No(!1),Eo(io),qi(!1),pi(ho(Wi({},(Vi=(Sa=(hr=io==null?void 0:io.exercise_question_types)==null?void 0:hr[0])==null?void 0:Sa.items)==null?void 0:Vi[0]),{index:1})),ol(ho(Wi({},(Zi=io==null?void 0:io.exercise_question_types)==null?void 0:Zi[0]),{indexs:1}))})}function si(hr,Sa=!0){return ba(this,null,function*(){var Vi,Zi,io,_o;Sa&&(Lo(!0),No(!0));const Zo=yield ke({type:"exercise/editExercise",payload:{categoryId:Le}});Eo(Zo);let Vo=[];(Vi=Zo==null?void 0:Zo.exercise_question_types)==null||Vi.map(cs=>{var Us;(Us=cs==null?void 0:cs.items)==null||Us.map((Bu,Tu)=>{Vo.push(ho(Wi({},Bu),{index:Tu+1}))})});let Ql=(Zi=Vo.filter(cs=>cs.question_id===(hr==null?void 0:hr.id)))==null?void 0:Zi[0],Ns=(_o=((io=Zo==null?void 0:Zo.exercise_question_types)==null?void 0:io.map((cs,Us)=>{if((Ql==null?void 0:Ql.question_type)===(cs==null?void 0:cs.question_type))return ho(Wi({},cs),{indexs:Us+1})})).filter(cs=>cs))==null?void 0:_o[0];ol(Wi({},Ns)),pi(Wi({},Ql)),Qo(Ql==null?void 0:Ql.question_score),Lo(!1),No(!1),qi(!1)})}function Ro(hr){return ba(this,null,function*(){Fr(!0);let Sa=ho(Wi({},hr),{repeat_answer:!hr.repeat_answer,difficulty:(hr==null?void 0:hr.difficulty)||2,item_type:hr.question_type,course_discipline_id:hr==null?void 0:hr.course_discipline_id,tag_discipline_ids:hr==null?void 0:hr.tag_discipline_ids,hack:ho(Wi({},hr==null?void 0:hr.hack),{difficult:(hr==null?void 0:hr.difficulty)||2}),hack_identifier:sessionStorage.projectFill});hr.tag_discipline_ids&&(Sa.tag_discipline_ids=Array.isArray(hr.tag_discipline_ids)?hr.tag_discipline_ids:[hr.tag_discipline_ids]);let Vi=Vs?`/api/exercises/${Le}/exercise_questions`:`/api/exercise_questions/${hr==null?void 0:hr.question_id}.json`;if((hr==null?void 0:hr.is_my)===1){const Zi=wa({title:"\u63D0\u793A",content:fn.createElement("div",null,fn.createElement("p",null,"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F"),fn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{Zi.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>ba(this,null,function*(){Sa.is_cover=1;let io=yield(0,Ye.ZP)(Vi,{method:Vs?"post":"PUT",body:Wi({},Sa)});(io==null?void 0:io.status)===0&&(hl(!1),si({id:(io==null?void 0:io.exercise_question_id)||(hr==null?void 0:hr.question_id)})),Zi.destroy()}),onCancel:()=>ba(this,null,function*(){let io=yield(0,Ye.ZP)(Vi,{method:Vs?"post":"PUT",body:Wi({},Sa)});(io==null?void 0:io.status)===0&&(hl(!1),si({id:(io==null?void 0:io.exercise_question_id)||(hr==null?void 0:hr.question_id)})),Zi.destroy()})})}else{let Zi=yield(0,Ye.ZP)(Vi,{method:Vs?"post":"PUT",body:Wi({},Sa)});(Zi==null?void 0:Zi.status)===0&&(hl(!1),si({id:(Zi==null?void 0:Zi.exercise_question_id)||(hr==null?void 0:hr.question_id)}))}(0,se.Vf)("#question-scroll-id"),Fr(!1)})}function rl(hr){return ba(this,null,function*(){No(!0);let Sa=yield(0,Ye.ZP)(`/api/exercises/${Le}/sort_question_type.json`,{method:"post",body:{question_type:hr}});if(No(!1),(Sa==null?void 0:Sa.status)===0){const Vi=yield ke({type:"exercise/editExercise",payload:{categoryId:Le}});Eo(Vi),qi(!1)}})}const Yo=(hr,Sa,Vi)=>ba(void 0,null,function*(){var Zi;if(hr.length===0){Je.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Vi();return}const io={id:Za==null?void 0:Za.exerciseId,file:(Zi=hr[0])==null?void 0:Zi.file,course_discipline_id:Sa};mu(io,`${ha.Z.API_SERVER}/api/courses/${Za==null?void 0:Za.coursesId}/exercises/import_exercise.json`,_o=>{var Zo;if((_o==null?void 0:_o.status)===0){const Vo={};(Zo=_o==null?void 0:_o.fail)==null||Zo.forEach(ys=>{var Ns;((Ns=Object.keys(Vo))==null?void 0:Ns.includes(ys.message))?Vo[ys.message]=Vo[ys.message]+1:Vo[ys.message]=1});let Ql=`\u6210\u529F\u5BFC\u5165${_o==null?void 0:_o.success}\u6761`;Object.keys(Vo).forEach(ys=>{Ql=Ql+`,${ys}${Vo[ys]}\u6761`}),Je.ZP.success(Ql),Fa(!1),Ma()}(_o==null?void 0:_o.status)===-1&&(Je.ZP.error(_o==null?void 0:_o.message),Vi())})}),us=(hr,Sa)=>ba(void 0,null,function*(){ir.exercise_types.q_scores=Number(ir.exercise_types.q_scores)+Number(hr)-Number(Sa==null?void 0:Sa.question_score);const Vi=yield(0,ni.zR)({score:(0,di.round)(hr,1),question_id:Sa==null?void 0:Sa.question_id});if((Vi==null?void 0:Vi.status)===0){Je.ZP.success("\u4FEE\u6539\u6210\u529F"),si({id:il.current},!1);return}(Vi==null?void 0:Vi.status)===-1&&Qo(Sa==null?void 0:Sa.question_score)}),Wo=()=>{Ss(!0)};(0,E.useEffect)(()=>{if(Bo){const hr=setTimeout(()=>{Ss(!1)},2e3);return()=>clearTimeout(hr)}},[Bo]);const mu=(hr,Sa,Vi,Zi,io)=>{const _o=new FormData;Object.keys(hr).forEach(Vo=>{_o.append(Vo,hr[Vo])});const Zo=new window.XMLHttpRequest;return Zo.withCredentials=!0,Zo.addEventListener("load",function(Vo){var Ql;Vi(JSON.parse((Ql=Vo==null?void 0:Vo.target)==null?void 0:Ql.response))},!1),Zo.addEventListener("error",function(Vo){io&&io(Vo)},!1),Zo.upload.onprogress=Vo=>{Zi&&Zi(Vo)},Zo.open("POST",Sa),Zo.send(_o),Zo};function Qs(){return ba(this,null,function*(){qe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:he.modalconfirm,onOk:()=>ba(this,null,function*(){var hr,Sa;if($n.question_id){let Vi=yield(0,Ye.ZP)(`/api/exercise_questions/${$n.question_id}.json`,{method:"delete"});if((Vi==null?void 0:Vi.status)===0){let Zi=[];(hr=ir==null?void 0:ir.exercise_question_types)==null||hr.map(Zo=>{var Vo;(Vo=Zo==null?void 0:Zo.items)==null||Vo.map((Ql,ys)=>{Zi.push(ho(Wi({},Ql),{index:ys+1}))})});const io=Zi==null?void 0:Zi.findIndex(Zo=>Zo.question_id===$n.question_id),_o=(Sa=Zi==null?void 0:Zi[io+1])==null?void 0:Sa.question_id;_o?si({id:_o}):Ma(),hl(!1)}}else pi({}),hl(!1),Ma()}),cancelText:"\u53D6\u6D88"})})}const tc=hr=>ba(void 0,null,function*(){return yield(0,Ye.ZP)(`/api/exercises/${Le}/select_questions.json`,{method:"post",body:Wi({},hr)})}),{overflow:Ku,handleMouseEnter:nc,handleMouseLeave:uc}=(0,fa.I)(),rc=(hr,Sa)=>fn.createElement(Kt.default,null,fn.createElement(Kt.default.Item,{key:"0",onClick:()=>Mu(hr==null?void 0:hr.question_type)},fn.createElement("span",{className:he.moreSpan},"\u65B0\u589E")),fn.createElement(Kt.default.Item,{key:"1",disabled:Sa===0,onClick:()=>ba(void 0,null,function*(){if(Sa===0)return;if(To){Wo();return}let Vi=(0,se.rz)(ir==null?void 0:ir.exercise_question_types,Sa,Sa-1);yield rl(Vi.map(Zi=>Zi.name))})},fn.createElement("span",{className:he.moreSpan},"\u4E0A\u79FB")),fn.createElement(Kt.default.Item,{key:"2",disabled:Sa===(ir==null?void 0:ir.exercise_question_types.length)-1,onClick:()=>ba(void 0,null,function*(){if(Sa===(ir==null?void 0:ir.exercise_question_types.length)-1)return;if(To){Wo();return}let Vi=(0,se.rz)(ir==null?void 0:ir.exercise_question_types,Sa,Sa+1);yield rl(Vi.map(Zi=>Zi.name))})},fn.createElement("span",{className:he.moreSpan},"\u4E0B\u79FB")),fn.createElement(Kt.default.Item,{key:"3",onClick:()=>{var Vi;ao.setFieldsValue({name:hr.name,item_type_en:(Vi=Ji.find(Zi=>Zi.id==hr.question_type))==null?void 0:Vi.nameType}),_l(!0)}},fn.createElement("span",{className:he.moreSpan},"\u91CD\u547D\u540D"))),Mu=hr=>{var Sa,Vi,Zi,io,_o,Zo,Vo,Ql,ys,Ns,cs,Us,Bu,Tu;if(To){Wo();return}if(qi(!0),hr===5){ns(!0),Ws(!0);return}if(hr===6){let dc=(Vi=(Sa=_n==null?void 0:_n.editData)==null?void 0:Sa.exercise)!=null&&Vi.set_question_sub_discipline?`/problems/newcreate?express_id=${(Zi=ir==null?void 0:ir.exercise)==null?void 0:Zi.id}&callback_url=/classrooms/${Za.coursesId}/exercise/add/${Le}?type=2&course_discipline_id=${((_o=(io=_n==null?void 0:_n.editData)==null?void 0:io.exercise)==null?void 0:_o.course_discipline_id)||""}`:`/problems/newcreate?express_id=${(Zo=ir==null?void 0:ir.exercise)==null?void 0:Zo.id}&callback_url=/classrooms/${Za.coursesId}/exercise/add/${Le}?type=2`;ve.history.push(dc);return}hl(!0),pi(hr===2?{question_type:hr,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",question_title:"",tag_discipline_ids:[],course_discipline_id:(Ql=(Vo=_n==null?void 0:_n.editData)==null?void 0:Vo.exercise)!=null&&Ql.set_question_sub_discipline?(Ns=(ys=_n==null?void 0:_n.editData)==null?void 0:ys.exercise)==null?void 0:Ns.course_discipline_id:null,analysis:""}:{question_type:hr,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[{position:1,answer_text:[""],model:1}],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],is_ordered:!0,question_title:"",use_keywords:!1,keywords:[],use_blank_score:!0,allow_student_debug:!1,submit_rule:1,course_discipline_id:(Us=(cs=_n==null?void 0:_n.editData)==null?void 0:cs.exercise)!=null&&Us.set_question_sub_discipline?(Tu=(Bu=_n==null?void 0:_n.editData)==null?void 0:Bu.exercise)==null?void 0:Tu.course_discipline_id:null,downcase:!0,no_space:!0})},cc=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Fa(!0)}},{key:2,label:fn.createElement("div",null,fn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:vi.$}),fn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(!(!(ir!=null&&ir.is_old_data_for_time)&&(0,se.Ye)(ke))){if(To){Wo();return}El(!0)}}}];console.log(bo==null?void 0:bo.question_type,$n==null?void 0:$n.question_type);const Qu=()=>ba(void 0,null,function*(){const hr=yield(0,Ye.ZP)(`/api/courses/${Za==null?void 0:Za.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Za.exerciseId]}});if((hr==null?void 0:hr.status)===0){ke({type:"classroomList/setActionTabs",payload:{}}),Je.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),Lo(!0),No(!0);const Sa=yield ke({type:"exercise/editExercise",payload:{categoryId:Le}});Lo(!1),No(!1),Eo(Sa),qi(!1)}});return fn.createElement("div",null,fn.createElement(kt.Z,{spinning:pl},fn.createElement("div",{className:he.bg},((Pn=ir==null?void 0:ir.exercise_types)==null?void 0:Pn.q_counts)===0&&!To&&fn.createElement(ae.Z,{styles:{marginTop:180},customText:fn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",fn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((hn=ir==null?void 0:ir.exercise_types)==null?void 0:hn.q_counts)>0||To)&&fn.createElement("div",{style:{textAlign:"center"}},fn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},fn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},fn.createElement("div",{className:he.left},fn.createElement("div",{className:he.leftAction},((zt=ir==null?void 0:ir.exercise)==null?void 0:zt.exercise_status)===1&&fn.createElement(He.ZP,{onClick:()=>{if(To){Wo();return}cl(!0)},className:he.Button},"\u6279\u91CF\u64CD\u4F5C")),fn.createElement("div",{className:he.scrollWrapper,style:{overflow:Ku},onMouseEnter:nc,onMouseLeave:uc},(Mn=ir==null?void 0:ir.exercise_question_types)==null?void 0:Mn.map((hr,Sa)=>fn.createElement("div",{key:Sa,className:"mb30"},fn.createElement("div",{className:he.title},fn.createElement("div",{className:he.titleleft},fn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,se.EM)(Sa+1),"\u3001\u3010",hr.name,"\u3011"),fn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",hr.count,"\u5C0F\u9898\uFF0C\u5171",hr.score,"\u5206\uFF09")),fn.createElement(dn.Z,{dropdownRender:()=>rc(hr,Sa),placement:"bottomLeft"},fn.createElement("div",{className:he.more_style},fn.createElement("i",{className:"iconfont icon-sandian font12"})))),fn.createElement(Qr,{handleEditing:Wo,isedit:To,setBigqitem:ol,bigitem:ho(Wi({},hr),{indexs:Sa+1}),setqitem:Vi=>ba(void 0,null,function*(){var Zi;(Zi=Jo.current)==null||Zi.blur(),pi(Vi)}),qitem:$n,Itemid:Le,getdata:si,data:hr.items})))))),fn.createElement("div",{id:"question-scroll-id",style:{overflow:To?"hidden":"auto"},className:he.right},!($n!=null&&$n.isadd)&&fn.createElement("div",{className:he.title},!To&&fn.createElement("div",{style:{flex:1}},fn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(bo==null?void 0:bo.indexs)&&(0,se.EM)(bo==null?void 0:bo.indexs),"\u3001\u3010",bo==null?void 0:bo.name,"\u3011"),fn.createElement(ct.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},fn.createElement("i",{className:`${he.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var hr;ao.setFieldsValue({name:bo.name,item_type_en:(hr=Ji.find(Sa=>Sa.id==bo.question_type))==null?void 0:hr.nameType}),_l(!0)}})),fn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",bo==null?void 0:bo.count,"\u5C0F\u9898\uFF0C\u5171",bo==null?void 0:bo.score,"\u5206\uFF09"),($n==null?void 0:$n.question_type)===6&&fn.createElement("span",{onClick:()=>{qe.default.destroyAll(),Nl(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),($n==null?void 0:$n.question_type)===5&&fn.createElement(Ue.default,{defaultChecked:(sn=(Ra=_n==null?void 0:_n.editData)==null?void 0:Ra.exercise)==null?void 0:sn.show_challenge_task_pass,onChange:hr=>ba(void 0,null,function*(){let Sa=yield(0,Ye.ZP)(`/api/exercises/${Le}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:hr.target.checked}});(Sa==null?void 0:Sa.status)===0&&(Je.ZP.info("\u8BBE\u7F6E\u6210\u529F"),si({id:il.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),($n==null?void 0:$n.question_type)===6&&fn.createElement("span",{style:{marginLeft:20},onClick:()=>{var hr,Sa,Vi,Zi;qe.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:fn.createElement("div",null,($n==null?void 0:$n.question_type)===6&&fn.createElement(Ue.default,{defaultChecked:(Sa=(hr=_n==null?void 0:_n.editData)==null?void 0:hr.exercise)==null?void 0:Sa.show_hack_sets,onChange:io=>ba(void 0,null,function*(){let _o=yield(0,Ye.ZP)(`/api/exercises/${Le}/update_show_columns.json`,{method:"post",body:{show_hack_sets:io.target.checked}});(_o==null?void 0:_o.status)===0&&(Je.ZP.info("\u8BBE\u7F6E\u6210\u529F"),qe.default.destroyAll(),si({id:il.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),fn.createElement("br",null),($n==null?void 0:$n.question_type)===6&&fn.createElement(Ue.default,{defaultChecked:(Zi=(Vi=_n==null?void 0:_n.editData)==null?void 0:Vi.exercise)==null?void 0:Zi.show_hack_description,onChange:io=>ba(void 0,null,function*(){let _o=yield(0,Ye.ZP)(`/api/exercises/${Le}/update_show_columns.json`,{method:"post",body:{show_hack_description:io.target.checked}});(_o==null?void 0:_o.status)===0&&(Je.ZP.info("\u8BBE\u7F6E\u6210\u529F"),qe.default.destroyAll(),si({id:il.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),fn.createElement("div",{style:{display:"flex",alignItems:"center"}},($n==null?void 0:$n.question_type)===5&&!To&&fn.createElement("a",{className:he.shixun,href:`/shixuns/${(0,Rs.G5)()?$n.forked_shixun_identifier:$n==null?void 0:$n.shixun_identifier}/challenges?exercise=true`,target:"_blank"},fn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"),!To&&((Wt=ir==null?void 0:ir.exercise)==null?void 0:Wt.exercise_status)==1&&[0,1,2,4,6].includes($n==null?void 0:$n.question_type)&&fn.createElement(xe.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},fn.createElement(Se.Z,{precision:1,ref:Jo,onChange:hr=>Qo(hr),value:yi,onBlur:hr=>{us(hr.target.value,$n)}})),!To&&((cn=ir==null?void 0:ir.exercise)==null?void 0:cn.exercise_status)==1&&fn.createElement(ct.Z,{title:"\u5220\u9664"},fn.createElement("i",{onClick:()=>{Qs()},style:{marginRight:20},className:`${he.delete} iconfont icon-shanchu13 mr8 ml8 `})),($n==null?void 0:$n.question_type)!==5&&!To&&fn.createElement(fn.Fragment,null,($n==null?void 0:$n.is_my)==1&&fn.createElement(ct.Z,{title:"\u67E5\u770B\u539F\u9898"},fn.createElement("i",{className:`${he.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{($n==null?void 0:$n.question_type)==6?window.open(`/problems/newedit/${$n==null?void 0:$n.item_bank_hack_identifier}`):($n==null?void 0:$n.question_type)==8?window.open(`/problemset/edit/${$n==null?void 0:$n.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${$n==null?void 0:$n.item_bank_id}`)}})),fn.createElement(ct.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},fn.createElement("i",{className:`${he.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Xl.current=[],qe.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u6211\u7684\u9898\u5E93",maskClosable:!0,className:"custom-modal-divider",icon:null,content:fn.createElement("div",{className:`font14 ${he.overflow}`,style:{maxHeight:500,overflow:"auto"}},fn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),fn.createElement(kt.Z,{spinning:!1},fn.createElement(mi.Z,{defaultValue:!0,value:Xl.current,onChange:hr=>Xl.current=hr}))),onOk:()=>ba(void 0,null,function*(){var hr;(0,ni.$l)({id:$n==null?void 0:$n.question_id,group_id:((hr=Xl==null?void 0:Xl.current)==null?void 0:hr[0])||""}).then(Sa=>{(Sa==null?void 0:Sa.status)==0&&(Je.ZP.success("\u52A0\u5165\u6210\u529F"),Ma())})})})}}))),!To&&(((Qn=ir==null?void 0:ir.exercise)==null?void 0:Qn.exercise_status)==1||((Yn=ir==null?void 0:ir.exercise)==null?void 0:Yn.exercise_status)==2&&((Hn=(Ln=ue.userInfo)==null?void 0:Ln.course)==null?void 0:Hn.course_role)!=15||((xn=ir==null?void 0:ir.exercise)==null?void 0:xn.exercise_status)==3&&((xr=(or=ue.userInfo)==null?void 0:or.course)==null?void 0:xr.course_role)!=15||((lr=ir==null?void 0:ir.exercise)==null?void 0:lr.exercise_status)==4&&((ro=(xi=ue.userInfo)==null?void 0:xi.course)==null?void 0:ro.course_role)!=15)&&fn.createElement(ct.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},fn.createElement("i",{onClick:()=>{($n==null?void 0:$n.question_type)===6?ve.history.push(`/problems/newedit/${$n==null?void 0:$n.hack_identifier}?type=exercises&express_id=${Za.exerciseId}&question_id=${$n==null?void 0:$n.question_id}&score=${$n==null?void 0:$n.question_score}&exercise=true&callback_url=/classrooms/${Za.coursesId}/exercise/add/${Le}?type=2`):(Fr(!1),hl(!0))},className:`${he.edit} iconfont icon-bianji_Hover ml8`})))),!To&&fn.createElement("div",null,fn.createElement("div",{className:he.qcount},fn.createElement("span",{className:he.score},$n==null?void 0:$n.question_score,"\u5206"),fn.createElement(le.Z,{className:he.qtitle,value:($n==null?void 0:$n.index)+`\u3001${($n==null?void 0:$n.question_type)==8?(Ui=$n==null?void 0:$n.program_attr)==null?void 0:Ui.description:$n==null?void 0:$n.question_title}`}),($n==null?void 0:$n.high_resources_consume)&&fn.createElement(jt.Z,{type:"shixun",style:{marginLeft:10}}),(0,Rs.G5)()&&($n==null?void 0:$n.shixun_change)&&($n==null?void 0:$n.question_type)==5&&fn.createElement(Nt.Z,{open:Is,onOpenChange:hr=>{zs(hr)},placement:"bottomLeft",title:null,content:fn.createElement("div",{style:{width:"310px",color:"#000"}},fn.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),fn.createElement("div",{className:he.btn_warp},fn.createElement(He.ZP,{size:"small",onClick:()=>zs(!1)},"\u5FFD\u7565"),fn.createElement(He.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{zs(!1),ke({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>Qu()}})}},"\u786E\u8BA4\u540C\u6B65"),fn.createElement(He.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,se.xg)(`/shixuns/${$n==null?void 0:$n.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},fn.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:hr=>hr.stopPropagation()}))),($n==null?void 0:$n.question_type)===6&&fn.createElement(ce.Z,{onEdit:()=>Nl(1),className:"mt10",dataSource:($n==null?void 0:$n.languages)||[]}),fn.createElement(Ou,{exercise:_n,TagDiscipline:Dl,qitem:$n})),To&&fn.createElement("div",null,($n==null?void 0:$n.question_type)<=1&&fn.createElement(ea,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===5&&fn.createElement(au,{saveLoading:Cn,setqitem:pi,deleteitem:Qs,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,showTip:Bo}),($n==null?void 0:$n.question_type)===3&&fn.createElement(Hr,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===2&&fn.createElement(Zn,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===4&&fn.createElement(Du,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===7&&fn.createElement(nu,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}),($n==null?void 0:$n.question_type)===8&&fn.createElement(Yr,{saveLoading:Cn,deleteitem:Qs,getTagData:ii,seveeditor:Ro,exerciseitem:ir,TagDiscipline:Dl,setisedit:hl,qitem:$n,init:Ma,showTip:Bo}))))))),fn.createElement("div",{className:he.bottomdiv},fn.createElement("div",{className:he.exercise_styles},((Io=ir==null?void 0:ir.exercise)==null?void 0:Io.exercise_status)==1&&fn.createElement(fn.Fragment,null,fn.createElement("span",{className:he.spanBtn,onClick:()=>{if(To){Wo();return}ns(!0),Ws(!1)}},"\u9898\u5E93\u9009\u9898"),fn.createElement(dn.Z,{menu:{items:cc}},fn.createElement("span",{className:he.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),fn.createElement("span",{className:he.spanBtn,onClick:()=>ba(void 0,null,function*(){var hr;if(!(ir!=null&&ir.is_old_data_for_time)&&(0,se.Ye)(ke))return;let Sa=yield(0,Ye.ZP)(`/api/exercises/${Za==null?void 0:Za.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:Za==null?void 0:Za.coursesId,categoryId:Za==null?void 0:Za.exerciseId}});(Sa==null?void 0:Sa.status)!=-1&&window.open(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Za==null?void 0:Za.exerciseId}/${(hr=ue.userInfo)==null?void 0:hr.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),fn.createElement("span",{className:he.spanBtn,onClick:()=>{window.open(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Za==null?void 0:Za.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),Ji==null?void 0:Ji.map(hr=>fn.createElement(He.ZP,{className:he.addQuestionBtn,key:hr.id,type:"primary",onClick:()=>{Mu(hr.id)}},hr.name))),((Or=ir==null?void 0:ir.exercise)==null?void 0:Or.exercise_status)!=1&&fn.createElement(fn.Fragment,null,fn.createElement("span",{style:{width:"1022px"}})),fn.createElement("span",{className:he.saveBtn,onClick:()=>ba(void 0,null,function*(){var hr,Sa,Vi;if(To){Wo();return}const Zi=Number(ir.exercise_types.q_scores);[100,120,150].includes(Zi)||(yield new Promise((Zo,Vo)=>{qe.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:fn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",fn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Zi),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>ba(void 0,null,function*(){Zo("")}),onCancel:()=>{Vo()}})}));let io=(Sa=(hr=ir==null?void 0:ir.exercise_question_types)==null?void 0:hr.filter(Zo=>Zo.question_type===5)[0])==null?void 0:Sa.items,_o=0;io==null||io.map(Zo=>{Zo.high_resources_consume&&(_o=_o+1)}),console.log(_o),_o>0?ke({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:_o,fn:()=>{var Zo;((Zo=ir==null?void 0:ir.exercise)==null?void 0:Zo.exercise_status)==1?(Je.ZP.success("\u4FDD\u5B58\u6210\u529F"),ve.history.push(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Le}/detail?random=false&tabs=3`),Ri(!1)):ve.history.back()}}}):((Vi=ir==null?void 0:ir.exercise)==null?void 0:Vi.exercise_status)==1?(Je.ZP.success("\u4FDD\u5B58\u6210\u529F"),ve.history.push(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Le}/detail?random=false&tabs=3`),Ri(!1)):ve.history.back()})},fn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),fn.createElement(Li.Z,{data:(ir==null?void 0:ir.exercise_question_types)||[],visible:ul,examId:Le,isPaperlibrary:!1,onCancel:()=>cl(!1),onOK:()=>{cl(!1),Ma()}}),gs&&fn.createElement(Oa,{setScoreShow:ns,isshixuns:Ks,isloadings:ll,ScoreShow:gs,onOk:(hr,Sa,Vi=!0)=>ba(void 0,null,function*(){ds(!0);let io=yield tc({exam_id:Le,item_bank_ids:hr,shixun_ids:Sa});return ds(!1),(io==null?void 0:io.status)===0&&Vi&&qe.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{Ma()},onCancel:()=>{ns(!1),Ma()}}),io}),initFun:()=>{ns(!1),Ma()}}),fn.createElement(iu.Z,{course_discipline_id:(_i=ir==null?void 0:ir.exercise)==null?void 0:_i.course_discipline_id,visible:Pi,onCancel:()=>Fa(!1),onOk:Yo}),fn.createElement(qe.default,{title:"\u63D0\u793A",open:Si,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:fn.createElement("div",null,fn.createElement(He.ZP,{onClick:()=>{Ri(!1),ve.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),fn.createElement(He.ZP,{type:"primary",onClick:()=>{ve.history.push(`/classrooms/${Za==null?void 0:Za.coursesId}/exercise/${Le}/detail?random=false&tabs=3`),Ri(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Ri(!1)}},fn.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),fn.createElement(qe.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:Go,width:500,onOk:()=>ao.submit(),onCancel:()=>_l(!1)},fn.createElement(xe.default,{form:ao,initialValues:{},onFinish:hr=>ba(void 0,null,function*(){(yield(0,ni.RK)(Wi({id:Le},hr))).status==0&&(Je.ZP.success("\u4FEE\u6539\u6210\u529F"),Ma(),_l(!1))})},fn.createElement(xe.default.Item,{name:"name",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(hr,Sa){var Vi,Zi,io,_o;const Zo=(Vi=Ji==null?void 0:Ji.find(Vo=>Vo.nameType==ao.getFieldValue("item_type_en")))==null?void 0:Vi.id;return(_o=(io=(Zi=ir==null?void 0:ir.exercise_question_types)==null?void 0:Zi.filter(Vo=>Vo.question_type!=Zo))==null?void 0:io.map(Vo=>Vo==null?void 0:Vo.name))!=null&&_o.includes(Sa)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},fn.createElement(Ae.default,{size:"large",maxLength:10,showCount:!0})),fn.createElement(xe.default.Item,{hidden:!0,name:"item_type_en"},fn.createElement(Ae.default,{size:"large"})))),fn.createElement(mn.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:rs},fn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),fn.createElement(vi.Z,{stickyTop:-24,subDisciplineId:(Gi=ir==null?void 0:ir.exercise)==null?void 0:Gi.course_discipline_id,onCancel:()=>El(!1),mode:3,gather:{exercise_id:Le},onSuccess:()=>{El(!1),Ma()}}),fn.createElement("div",{style:{height:70}})),fn.createElement(ce.Q,{visible:!!Vl,setVisible:Nl,tip:Vl===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:Vl===1?$n==null?void 0:$n.languages:[],onOk:hr=>ba(void 0,null,function*(){const Sa={languages:hr};Vl===1?Sa.hack_id=$n==null?void 0:$n.hack_id:Sa.exercise_id=Le,(yield(0,Ye.ZP)("/api/problems/update_languages.json",{method:"post",body:Sa})).status===0&&(Je.ZP.success("\u4FEE\u6539\u6210\u529F"),si({id:il.current}),Nl(!1))})}),fn.createElement($a.Z,null))};var jo=(0,ve.connect)(({user:ue,exercise:ke,dispatch:Le})=>({user:ue,exercise:ke,dispatch:Le}))(yo),so=ne(4799),tl=ne(20892),So=ne(54701),uo=ne(87169),vo=ne(75632),Rr=ne(59301),fi=Object.defineProperty,Kl=Object.defineProperties,Ya=Object.getOwnPropertyDescriptors,Ca=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,ja=(ue,ke,Le)=>ke in ue?fi(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ue[ke]=Le,ko=(ue,ke)=>{for(var Le in ke||(ke={}))co.call(ke,Le)&&ja(ue,Le,ke[Le]);if(Ca)for(var Le of Ca(ke))xa.call(ke,Le)&&ja(ue,Le,ke[Le]);return ue},nl=(ue,ke)=>Kl(ue,Ya(ke)),gl=(ue,ke)=>{var Le={};for(var Yt in ue)co.call(ue,Yt)&&ke.indexOf(Yt)<0&&(Le[Yt]=ue[Yt]);if(ue!=null&&Ca)for(var Yt of Ca(ue))ke.indexOf(Yt)<0&&xa.call(ue,Yt)&&(Le[Yt]=ue[Yt]);return Le},jl=(ue,ke,Le)=>new Promise((Yt,_n)=>{var yr=zt=>{try{hn(Le.next(zt))}catch(Mn){_n(Mn)}},Pn=zt=>{try{hn(Le.throw(zt))}catch(Mn){_n(Mn)}},hn=zt=>zt.done?Yt(zt.value):Promise.resolve(zt.value).then(yr,Pn);hn((Le=Le.apply(ue,ke)).next())});const Wl=ue=>{var ke=ue,{classroomList:Le,globalSetting:Yt,problemset:_n,loading:yr,exercise:Pn,user:hn,dispatch:zt}=ke,Mn=gl(ke,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),Ra,sn,Wt,cn,Qn,Yn,Ln,Hn,xn,or,xr,lr,xi,ro,Ui,Io,Or,_i,Gi,ir,Eo,Uo,No,$n,pi;const yi=(0,ve.useParams)(),[Qo,Jo]=(0,E.useState)(!1),{userInfo:il}=hn,[bo]=xe.default.useForm();let[ol,pl]=(0,E.useState)({});const[Lo,To]=(0,E.useState)(1),[hl,Dl]=(0,E.useState)(""),[Ys]=(0,ve.useSearchParams)(),[Pi,Fa]=(0,E.useState)(!1),[ul,cl]=(0,E.useState)(!1),[gs,ns]=(0,E.useState)(!1),[Ks,Ws]=(0,E.useState)(""),[Vs,qi]=(0,E.useState)(!1),[Si,Ri]=(0,E.useState)(!1);(0,E.useEffect)(()=>{zt({type:"globalSetting/footerToggle",payload:!1}),bo.setFieldsValue({difficulty:2,course_discipline_id:null})},[]),(0,E.useEffect)(()=>{var ao,Go,_l,rs,El,Vl;yi.exerciseId&&(((Go=(ao=Pn==null?void 0:Pn.editData)==null?void 0:ao.exercise)==null?void 0:Go.exercise_status)===2||((rs=(_l=Pn==null?void 0:Pn.editData)==null?void 0:_l.exercise)==null?void 0:rs.exercise_status)===3||((Vl=(El=Pn==null?void 0:Pn.editData)==null?void 0:El.exercise)==null?void 0:Vl.exercise_status)===4?ns(!0):ns(!1))},[Pn==null?void 0:Pn.editData]),(0,E.useEffect)(()=>{if(yi.exerciseId){let ao=Pn.editData.exercise;Ri(ao==null?void 0:ao.set_question_sub_discipline),bo.setFieldsValue(nl(ko({},ao),{course_discipline_id:ao==null?void 0:ao.course_discipline_id}))}},[Pn]),(0,E.useEffect)(()=>{Ys.get("type")==="2"&&(Dl(yi.exerciseId),To(2))},[Ys.get("type")]);function Za(ao,Go){return jl(this,null,function*(){var _l,rs,El,Vl;yield bo.validateFields();const Nl=bo.getFieldsValue();Nl.is_md=!0,Nl.time=parseInt(Nl.time)>9999?9999:Nl.time;const Bo=yield zt({type:"exercise/addExercise",payload:ko(ko({},Nl),yi)});Bo.status===0?(yield(0,Ye.ZP)(`/api/courses/${yi==null?void 0:yi.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:yi==null?void 0:yi.coursesId,id:(_l=Bo==null?void 0:Bo.data)==null?void 0:_l.exercise_id,time:ao}}),ds((rs=Bo.data)==null?void 0:rs.exercise_id),Dl((El=Bo==null?void 0:Bo.data)==null?void 0:El.exercise_id),To(2),Fa(!1),ve.history.replace(`/classrooms/${yi.coursesId}/exercise/add/${(Vl=Bo.data)==null?void 0:Vl.exercise_id}?type=2`)):Je.ZP.error(Bo.message),Go()})}function ll(ao){pl(ko({},ao))}function ds(ao){return jl(this,null,function*(){if(!(ol!=null&&ol.ec_point_ids))return;const Go=ko({},ol);delete Go.id;let _l=yield(0,Ye.ZP)(`/api/ec_courses/${ol==null?void 0:ol.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ko({exercise_id:ao},Go)})})}return Rr.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Rr.createElement("section",{className:"edu-container"},Rr.createElement("section",{className:"animated fadeIn"},Rr.createElement("aside",{className:"mt10"},il&&Rr.createElement(We.Z,{separator:">"},Rr.createElement(We.Z.Item,null,Rr.createElement(ve.Link,{to:`/classrooms/${yi.coursesId}/exercise`},(Ra=il==null?void 0:il.course)==null?void 0:Ra.course_name)),Rr.createElement(We.Z.Item,null,Rr.createElement(ve.Link,{to:`/classrooms/${yi.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),Rr.createElement(We.Z.Item,null,yi.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),yi.exerciseId&&Rr.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},Rr.createElement(uo.Z,{style:{marginRight:5,color:"#E99237"}}),Rr.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),Rr.createElement("span",{className:Qe.addQuestionBtn,onClick:()=>{zt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[yi.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),Rr.createElement(So.Z,{haveInit:!0,init:()=>{Ws(new Date)}}),Rr.createElement("div",{className:"bg-white"},Rr.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Rr.createElement("div",{onClick:()=>{if(ul){Je.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}To(1)},className:Lo===1?Qe.selectdiv:Qe.divitem},Rr.createElement(so.Z,{number:1,active:Lo===1,className:"mr10"}),Rr.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Rr.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Rr.createElement("div",{onClick:()=>{if(!yi.exerciseId&&!hl){Je.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}To(2),!hl&&Dl(yi.exerciseId)},className:Lo!==1?Qe.selectdiv:Qe.divitem},Rr.createElement(so.Z,{number:2,active:Lo!==1,className:"mr10"}),Rr.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Lo===2&&Rr.createElement("div",{className:"tc"},Rr.createElement(tl.Z,{defaultValue:(Wt=(sn=Pn==null?void 0:Pn.editData)==null?void 0:sn.exercise)==null?void 0:Wt.exercise_name,onFinish:ao=>jl(void 0,null,function*(){var Go,_l,rs,El,Vl,Nl,Bo,Ss,Is,zs,Xl,Cn;return ao.trim()===((_l=(Go=Pn==null?void 0:Pn.editData)==null?void 0:Go.exercise)==null?void 0:_l.exercise_name)?!0:(yield(0,ni.wy)({exercise_name:ao,exercise_description:(El=(rs=Pn==null?void 0:Pn.editData)==null?void 0:rs.exercise)==null?void 0:El.exercise_description,course_discipline_id:(Nl=(Vl=Pn==null?void 0:Pn.editData)==null?void 0:Vl.exercise)==null?void 0:Nl.course_discipline_id,time:(Ss=(Bo=Pn==null?void 0:Pn.editData)==null?void 0:Bo.exercise)==null?void 0:Ss.time,exerciseId:(zs=(Is=Pn.editData)==null?void 0:Is.exercise)==null?void 0:zs.id,difficulty:(Cn=(Xl=Pn.editData)==null?void 0:Xl.exercise)==null?void 0:Cn.difficulty})).status===0?(bo.setFieldValue("exercise_name",ao),!0):!1})}),Rr.createElement("div",{style:{fontSize:14}},Rr.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},((Qn=(cn=Pn==null?void 0:Pn.editData)==null?void 0:cn.exercise)==null?void 0:Qn.time)||"\u4E0D\u9650")),Rr.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ln=(Yn=Pn==null?void 0:Pn.editData)==null?void 0:Yn.exercise)==null?void 0:Ln.difficulty)===1?"\u7B80\u5355":((xn=(Hn=Pn==null?void 0:Pn.editData)==null?void 0:Hn.exercise)==null?void 0:xn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Rr.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},((xr=(or=Pn==null?void 0:Pn.editData)==null?void 0:or.exercise_types)==null?void 0:xr.q_counts)||0)),Rr.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Rr.createElement("span",{style:{color:"#000000",marginLeft:8}},(xi=(lr=Pn==null?void 0:Pn.editData)==null?void 0:lr.exercise_types)==null?void 0:xi.q_scores))))),Lo===1&&Rr.createElement("div",null,Rr.createElement("section",{className:[Qe.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},Rr.createElement(xe.default,{form:bo,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:ao=>jl(void 0,null,function*(){var Go,_l,rs,El,Vl;if(Jo(!0),Fa(!0),yi.exerciseId){ao.exerciseId=(_l=(Go=Pn.editData)==null?void 0:Go.exercise)==null?void 0:_l.id,ao.course_discipline_id=ao.course_discipline_id,yield(0,ni.wy)(nl(ko({},ao),{set_question_sub_discipline:Si})),To(2),ds(yi==null?void 0:yi.exerciseId),Dl(yi.exerciseId),Jo(!1),Fa(!1);return}const Nl=yield(0,Ye.ZP)(`/api/courses/${yi==null?void 0:yi.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:yi==null?void 0:yi.coursesId}});if(Nl!=null&&Nl.alert)zt({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{ao.is_md=!0,ao.time=parseInt(ao.time)>9999?9999:ao.time,ao.set_question_sub_discipline=Si;const Bo=yield zt({type:"exercise/addExercise",payload:nl(ko(ko({},ao),yi),{category_id:Ys.get("catalogue")||null})});Bo.status===0&&(ds((rs=Bo.data)==null?void 0:rs.exercise_id),ve.history.replace(`/classrooms/${yi.coursesId}/exercise/add/${(El=Bo.data)==null?void 0:El.exercise_id}?type=2`),Dl((Vl=Bo==null?void 0:Bo.data)==null?void 0:Vl.exercise_id),To(2)),Fa(!1)}Jo(!1)}),className:Qe.formWrap},Rr.createElement(xe.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Qe.baseLineHeight,rules:[{required:!0,validator:(ao,Go)=>{var _l;return((_l=Go==null?void 0:Go.replaceAll(" ",""))==null?void 0:_l.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Rr.createElement(Ae.default,{maxLength:60,className:Qe.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Rr.createElement(xe.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:Qe.baseLineHeight},Rr.createElement(Er.q,{style:{height:46},showLinkButton:!1,data:{course_discipline_id:(Io=(Ui=(ro=Pn==null?void 0:Pn.editData)==null?void 0:ro.exercise)==null?void 0:Ui.course_discipline_data)==null?void 0:Io.course_discipline_id},tooltipTitle:((Gi=(_i=(Or=Pn==null?void 0:Pn.editData)==null?void 0:Or.exercise)==null?void 0:_i.course_discipline_data)==null?void 0:Gi.is_managed)===!1?`${(Uo=(Eo=(ir=Pn==null?void 0:Pn.editData)==null?void 0:ir.exercise)==null?void 0:Eo.course_discipline_data)==null?void 0:Uo.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BFE\u7A0B\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B`:"",disabled:((pi=($n=(No=Pn==null?void 0:Pn.editData)==null?void 0:No.exercise)==null?void 0:$n.course_discipline_data)==null?void 0:pi.is_managed)===!1})),Rr.createElement("div",{className:Qe.concat},Rr.createElement("div",null,Rr.createElement(Ue.default,{checked:Si,onChange:ao=>{Ri(ao.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u677F\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u65F6\u81EA\u52A8\u4F7F\u7528\u8BE5\u8BFE\u7A0B\uFF09")),Rr.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",Rr.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))),Rr.createElement(xe.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Qe.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Rr.createElement(tt.ZP.Group,{className:Qe.radiogroup,disabled:gs},Rr.createElement(tt.ZP.Button,{className:Qe.easy,value:1},"\u7B80\u5355"),Rr.createElement(tt.ZP.Button,{className:Qe.medium,value:2},"\u9002\u4E2D"),Rr.createElement(tt.ZP.Button,{className:Qe.hard,value:3},"\u56F0\u96BE"))),Rr.createElement(xe.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Qe.baseLineHeight},Rr.createElement("div",{style:{display:"flex",width:"100%"}},Rr.createElement(xe.default.Item,{name:"time",noStyle:!0},Rr.createElement(Se.Z,{disabled:gs,min:1,max:9999,className:Qe.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Rr.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Rr.createElement(xe.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Rr.createElement(Ae.default.TextArea,{disabled:gs,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),Rr.createElement(ft,{exercise_id:yi==null?void 0:yi.exerciseId,setitem:ll})),Rr.createElement("div",{className:Qe.bottmodiv},Rr.createElement(He.ZP,{className:`${Qe.cancelBtn}`,type:"primary",onClick:()=>{ve.history.back()}},"\u53D6\u6D88"),Rr.createElement(He.ZP,{loading:Pi,onClick:()=>{bo.validateFields(),bo.submit()},type:"primary",className:`${Qe.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),Rr.createElement(Ne,{setsubloading:Fa,onModalOk:Za})),Lo===2&&Rr.createElement("div",null,Rr.createElement(jo,{key:Ks,setisedits:cl,setitemid:Dl,itemid:hl}))),Rr.createElement(vo.Z,{open:Vs,onCancel:()=>{qi(!1)}}))};var js=(0,ve.connect)(({classroomList:ue,loading:ke,user:Le,problemset:Yt,globalSetting:_n,exercise:yr})=>({classroomList:ue,globalSetting:_n,problemset:Yt,user:Le,exercise:yr,loading:ke.effects}))(Wl)},15239:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Pe}});var E=ne(28284),ve=ne(6767),xe=ne(62957),Je=ne(29787),We=ne(25399),Ae=ne(47889),Ue=ne(37568),tt=ne(70858),Se=ne(59301),He=ne(88634),Qe=ne(70892),qe=ne(95203),pt={flex_box_center:"flex_box_center___FjW3J",flex_space_between:"flex_space_between___VMPG3",flex_box_vertical_center:"flex_box_vertical_center___f4bAX",flex_box_center_end:"flex_box_center_end___r_BiQ",flex_box_column:"flex_box_column___KmCaa",contentWrap:"contentWrap___JMzNd",leftWrap:"leftWrap___rYjEI",tip:"tip___Iu2px",title_con:"title_con___WF9OL",question_title:"question_title___XPCJJ",activeItem:"activeItem___yC4ry",rightWrap:"rightWrap___ut8PK",radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n",titleTooltip:"titleTooltip___eBrPv"},Ge=ne(82772),Oe=ne(15945),Be=ne(67495),be=ne(59301),Ne=Object.defineProperty,Ye=Object.defineProperties,it=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,bt=(ze,Te,rt)=>Te in ze?Ne(ze,Te,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ze[Te]=rt,At=(ze,Te)=>{for(var rt in Te||(Te={}))Ke.call(Te,rt)&&bt(ze,rt,Te[rt]);if(pe)for(var rt of pe(Te))nt.call(Te,rt)&&bt(ze,rt,Te[rt]);return ze},ut=(ze,Te)=>Ye(ze,it(Te)),Xe=(ze,Te,rt)=>new Promise((Pt,st)=>{var et=ge=>{try{De(rt.next(ge))}catch(lt){st(lt)}},Ft=ge=>{try{De(rt.throw(ge))}catch(lt){st(lt)}},De=ge=>ge.done?Pt(ge.value):Promise.resolve(ge.value).then(et,Ft);De((rt=rt.apply(ze,Te)).next())});const ht=({shixunHomeworks:ze,exercise:Te,loading:rt,dispatch:Pt})=>{var st,et,Ft,De,ge,lt;const{commonHeader:Et}=Te,[yt,Ze]=(0,Se.useState)([]),[Ve,ft]=(0,Se.useState)(ut(At({},(0,He.useParams)()),{page:1,limit:10})),[Kt,kt]=(0,Se.useState)([]),[dn,ct]=(0,Se.useState)(""),[Nt,mn]=(0,Se.useState)(1),[he]=E.default.useForm(),[se,ae]=(0,Se.useState)({}),[ce,me]=(0,Se.useState)(null),[le,ot]=(0,Se.useState)(!1),[Ht,on]=(0,Se.useState)({combine:[],simple:[]}),[kn,wn]=(0,Se.useState)(null),[Xn,Nn]=(0,Se.useState)({}),[Pr,Vr]=(0,Se.useState)(0),[Ar,Jn]=(0,Se.useState)(0),[va,Qr]=(0,Se.useState)(!1),ur=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(En,nr,$r)=>(Ve.page-1)*Ve.limit+$r+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:En=>En||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(En,nr)=>be.createElement("div",{className:pt.banding,title:En||"--"},En||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(En,nr)=>En===0?be.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):En===1?be.createElement("span",{style:{color:"#DF3042"}},!nr.is_make_up&&"\u8003\u8BD5\u4E2D",nr.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):En===2?be.createElement("span",{style:{color:"#5AB891"}},!nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377",nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):be.createElement("span",{style:{color:"#5AB891"}},!nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",nr.is_make_up&&!nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!nr.is_make_up&&nr.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(Et==null?void 0:Et.exercise_type)==2&&!(0,Ge.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(En,nr)=>nr.commit_status===0||nr.commit_status===1?"--":!nr.open_total_score&&(0,Ge.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(En=typeof En=="number"?Number(En):En,console.log(typeof En),En||(En=0),En===100?be.createElement("span",{className:"c-green"},En):En>60?be.createElement("span",{className:"c-orange"},En):En==Ar*.6?be.createElement("span",{className:"c-red"},En):be.createElement("span",null,En))}].filter(En=>!!En);(0,Se.useEffect)(()=>{var En,nr,$r;((En=Te.actionTabs)==null?void 0:En.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(on([]),wn(((nr=Te==null?void 0:Te.actionTabs)==null?void 0:nr.questionId)||null),Nn((($r=Te==null?void 0:Te.actionTabs)==null?void 0:$r.questionDetail)||{}),Sn(),un(Ve))},[(st=Te.actionTabs)==null?void 0:st.key]);const Sn=()=>Xe(void 0,null,function*(){var En,nr,$r,Aa,ga,Ei,Ii,Ja,ri;const hi=yield(0,Qe.ZP)(`/api/exercises/${Ve==null?void 0:Ve.categoryId}.json`,{method:"get"});if(hi.status==0){const $i=(nr=(En=hi==null?void 0:hi.exercise_question_types)==null?void 0:En.find(Ut=>(Ut==null?void 0:Ut.question_type)==7))==null?void 0:nr.items,Ha=(Aa=($r=hi==null?void 0:hi.exercise_question_types)==null?void 0:$r.find(Ut=>(Ut==null?void 0:Ut.question_type)==4))==null?void 0:Aa.items;let ea=[],Ir=0,qt={};ea=(ga=$i==null?void 0:$i.map((Ut,Un)=>{var Lt,Dn;return(Dn=(Lt=Ut==null?void 0:Ut.sub_exercise_questions)==null?void 0:Lt.map((rr,Rn)=>(rr==null?void 0:rr.question_type)==4?ut(At({},rr),{index:Un+1,jdex:Rn+1,parentTitle:Ut==null?void 0:Ut.question_title,isCombine:!0}):null))==null?void 0:Dn.filter(rr=>rr)}))==null?void 0:ga.flat(),on({combine:ea,simple:Ha}),(Ha==null?void 0:Ha.length)>0?(Ir=(Ei=Ha==null?void 0:Ha[0])==null?void 0:Ei.question_id,qt=(Ha==null?void 0:Ha[0])||{}):(ea==null?void 0:ea.length)>0&&(Ir=(Ii=ea==null?void 0:ea[0])==null?void 0:Ii.question_id,qt=(ea==null?void 0:ea[0])||{}),wn(((Ja=Te==null?void 0:Te.actionTabs)==null?void 0:Ja.questionId)||Ir),Nn(((ri=Te==null?void 0:Te.actionTabs)==null?void 0:ri.questionDetail)||qt)}}),sr=(En,nr)=>{Ve.page=En,Ve.limit=nr,ft(At({},Ve)),un(Ve)},un=En=>Xe(void 0,null,function*(){Qr(!0);const nr=yield(0,Qe.ZP)(`/api/exercises/${Ve.categoryId||(Ve==null?void 0:Ve.exerciseId)}/exercise_users.json`,{method:"get",params:En});nr.status==0&&(Vr(nr.data.total_count),ft(ut(At({},Ve),{total:nr.data.total_count})),Ze(nr.data.exercise_users),Jn(nr.data.total_score)),Qr(!1)}),Er=En=>{Ve.search=En,Ve.page=1,he.resetFields(),ae({}),kt([]),me(null),ft(At({},Ve)),un(Ve)},Br=En=>Xe(void 0,null,function*(){var nr,$r;const Aa=At({},se);if(!((nr=En==null?void 0:En.content)!=null&&nr.trim())){ve.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Aa.content=En==null?void 0:En.content,Aa.attachment_ids=($r=En==null?void 0:En.attachment_ids)==null?void 0:$r.map(ga=>ga.response.id),Xa(Aa)}),Xa=En=>Xe(void 0,null,function*(){ot(!0);const nr=yield(0,Qe.ZP)(`/api/exercises/${(Ve==null?void 0:Ve.categoryId)||(Ve==null?void 0:Ve.exerciseId)}/test_ai_review.json`,{method:"post",body:ut(At({},En),{exercise_question_id:kn,ai_review_settings:Xn==null?void 0:Xn.ai_review_settings})});if([0,-3].includes(nr.status)){nr.status==0&&ve.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),me(nr);const $r=document.querySelector(".modal-ai-pfcs");if($r){const Aa=$r.querySelector(".ant-modal-body");Aa&&(Aa.scrollTop=Aa.scrollHeight)}}ot(!1)}),Da=()=>{Pt({type:"exercise/setActionTabs",payload:{key:""}}),mn(1),Sr()},Sr=()=>{he.resetFields(),ae({}),kt([]),ct(""),me(null)};return be.createElement(xe.default,{className:"modal-ai-pfcs",width:1200,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:le,open:((et=Te.actionTabs)==null?void 0:et.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>Da(),okText:ce?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var En;if((En=Te.actionTabs)!=null&&En.showSelectQuestion&&!kn)return ve.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(Nt==1){if(Kt.length==0)return ve.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");Xa({exercise_user_id:Kt[0]})}else Nt==2&&he.submit()}},be.createElement(Je.Z,{spinning:le,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},be.createElement("div",{className:pt.contentWrap},be.createElement("div",{className:pt.leftWrap},be.createElement("div",{className:pt.tip},be.createElement("i",{className:"iconfont icon-tishi11 font14",style:{color:"#3061D0",transform:"rotate(180deg)",marginTop:"5px"}}),be.createElement("span",{style:{marginLeft:"5px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002")),be.createElement("div",{style:{maxHeight:"500px",overflowY:"auto",margin:"10px 0px"}},((Ft=Ht==null?void 0:Ht.simple)==null?void 0:Ft.length)>0&&be.createElement(be.Fragment,null,be.createElement("div",{className:pt.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),be.createElement("div",null,(De=Ht==null?void 0:Ht.simple)==null?void 0:De.map((En,nr)=>be.createElement("div",{key:En==null?void 0:En.question_id},be.createElement(We.Z,{title:be.createElement(Be.Z,{value:En==null?void 0:En.question_title}),color:"#fff",placement:"left",overlayClassName:pt.titleTooltip},be.createElement("span",{className:`${pt.question_title} ${kn==(En==null?void 0:En.question_id)?pt.activeItem:""}`,onClick:()=>{var $r,Aa,ga;wn(En==null?void 0:En.question_id),Nn(ut(At({},En||{}),{ai_review_settings:($r=Te==null?void 0:Te.actionTabs)!=null&&$r.isUnify?(ga=(Aa=Te==null?void 0:Te.actionTabs)==null?void 0:Aa.questionDetail)==null?void 0:ga.ai_review_settings:En==null?void 0:En.ai_review_settings}))}},be.createElement(Be.Z,{value:nr+1+"\u3001"+(En==null?void 0:En.question_title),showTextOnly:!0}))))))),((ge=Ht==null?void 0:Ht.combine)==null?void 0:ge.length)>0&&be.createElement(be.Fragment,null,be.createElement("div",{className:pt.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),be.createElement("div",null,(lt=Ht==null?void 0:Ht.combine)==null?void 0:lt.map((En,nr)=>be.createElement("div",{key:En==null?void 0:En.question_id,onClick:()=>{var $r,Aa,ga;wn(En==null?void 0:En.question_id),Nn(ut(At({},En||{}),{ai_review_settings:($r=Te==null?void 0:Te.actionTabs)!=null&&$r.isUnify?(ga=(Aa=Te==null?void 0:Te.actionTabs)==null?void 0:Aa.questionDetail)==null?void 0:ga.ai_review_settings:En==null?void 0:En.ai_review_settings}))}},be.createElement(We.Z,{title:be.createElement(Be.Z,{value:En==null?void 0:En.question_title}),color:"#fff",placement:"left",overlayClassName:pt.titleTooltip},be.createElement("span",{className:`${pt.question_title} ${kn==(En==null?void 0:En.question_id)?pt.activeItem:""}`},be.createElement(Be.Z,{value:(En==null?void 0:En.index)+"."+(En==null?void 0:En.jdex)+"\u3001"+(En==null?void 0:En.question_title),showTextOnly:!0}))))))))),be.createElement("div",{className:pt.rightWrap},be.createElement("div",{className:pt.radio_con},be.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),be.createElement(Ae.ZP.Group,{onChange:En=>{En.target.value==1&&sr(1,10),mn(En.target.value),Sr()},value:Nt,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),Nt==1&&be.createElement(be.Fragment,null,be.createElement("div",{className:"flex justify-between item-center mb10"},be.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),be.createElement(Ue.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:dn,onChange:En=>ct(En.target.value),onSearch:Er})),be.createElement(tt.default,{rowSelection:{type:"radio",selectedRowKeys:Kt,onChange:(En,nr)=>{kt(En)},getCheckboxProps:En=>({disabled:[0,1].includes(En==null?void 0:En.commit_status)})},rowKey:"exercise_user_id",dataSource:yt||[],columns:ur,pagination:{current:Ve.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Ve.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:Pr,size:"default",showTotal:qe.rU,onChange:sr},onChange:(En,nr,$r)=>{Ve.page=1,$r.order===void 0?(Ve.order_type=null,Ve.order=null):(Ve.order_type=$r.order==="descend"?"desc":"asc",Ve.order=$r.field),ft(At({},Ve)),un(Ve)}})),Nt==2&&be.createElement("div",{style:{marginTop:20}},be.createElement(E.default,{form:he,className:pt.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ae(At({},he.getFieldsValue()))},onFinish:Br},be.createElement(E.default.Item,{name:"content",label:"",style:{marginBottom:0}},be.createElement(Oe.Z,{watch:!0})))),ce&&be.createElement("div",{className:pt.result_con},be.createElement("div",{className:pt.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(ce==null?void 0:ce.status)==0&&be.createElement("div",{className:"p20"},be.createElement("div",{className:"mb5"},be.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),ce==null?void 0:ce.score),be.createElement("div",{className:"flex"},be.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),be.createElement(Be.Z,{value:ce==null?void 0:ce.content,style:{fontSize:"14px"}}))),(ce==null?void 0:ce.status)==-3&&be.createElement("div",{className:"p20"},be.createElement(Be.Z,{value:ce==null?void 0:ce.message,style:{fontSize:"14px"}})))))))};var Pe=(0,He.connect)(({shixunHomeworks:ze,exercise:Te,loading:rt,user:Pt})=>({shixunHomeworks:ze,exercise:Te,loading:rt.effects,user:Pt}))(ht)},16636:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return pt}});var E=ne(59301),ve=ne(6767),xe=ne(62957),Je=ne(94968),We=ne(7939),Ae=ne(51802),Ue=ne(95203),tt=ne(33797),Se=ne(88634),He={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},Qe=ne(59301),pt=({visible:Ge,onOk:Oe,onCancel:Be,course_discipline_id:be})=>{const[Ne,Ye]=(0,E.useState)([]),[it,pe]=(0,E.useState)(!1),Ke=(0,Se.useParams)(),[nt,bt]=(0,E.useState)(null);(0,E.useEffect)(()=>{Ge?bt(be):(bt(null),Ye([]),pe(!1))},[Ge]);const At=()=>{if(!nt)return ve.ZP.warning("\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF01");pe(!0),Oe(Ne,nt,()=>{pe(!1)})},ut=()=>{Be()},Xe=()=>{const ze=`${Ae.Z.API_SERVER}/api/courses/${Ke.coursesId}/exercises/down_template`;(0,Ue.Nd)(null,ze)},ht=ze=>{const Te={name:ze.name,uid:ze.uid,file:ze};return Ye([Te]),!1},Pe=()=>{Ye([])};return Qe.createElement(xe.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:Ge,onOk:At,centered:!0,wrapClassName:He.customModal,onCancel:ut,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:He.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:it},Qe.createElement("div",{className:He.content},Qe.createElement("aside",null,Qe.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),Qe.createElement("ul",null,Qe.createElement("li",null,Qe.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),Qe.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Xe},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),Qe.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Xe,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),Qe.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),Qe.createElement("li",{className:He.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),Qe.createElement("li",{className:He.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),Qe.createElement("li",{className:He.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),Qe.createElement("li",{className:He.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),Qe.createElement("aside",{style:{marginTop:22}},Qe.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),Qe.createElement("ul",{style:{flex:1}},Qe.createElement("li",{style:{color:"#5F6367"}},"\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),Ge&&Qe.createElement(Qe.Fragment,null,Qe.createElement(tt.q,{style:{width:200,marginTop:10},size:"large",value:nt,onChange:bt}),Qe.createElement("br",null),Qe.createElement(Je.default,{action:`${Ae.Z.API_SERVER}/api/attachments.json`,beforeUpload:ht,onRemove:Pe,withCredentials:!0,fileList:Ne,accept:".xls,.xlsx",showUploadList:!1},Qe.createElement(We.ZP,{className:He.upload,type:"primary",icon:Qe.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),Ne.map((ze,Te)=>Qe.createElement("div",{key:Te,className:He.fileList},Qe.createElement("span",{className:He.fileName},ze==null?void 0:ze.name),Qe.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Pe})))))))}},54701:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=ne(62957),xe=ne(70892),Je=ne(88634),We=ne(59301),Ae=(tt,Se,He)=>new Promise((Qe,qe)=>{var pt=Be=>{try{Oe(He.next(Be))}catch(be){qe(be)}},Ge=Be=>{try{Oe(He.throw(Be))}catch(be){qe(be)}},Oe=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(pt,Ge);Oe((He=He.apply(tt,Se)).next())});const Ue=({exercise:tt,dispatch:Se,init:He,haveInit:Qe=!1})=>{const qe=(0,Je.useParams)(),[pt,Ge]=(0,E.useState)(!1);let[Oe,Be]=(0,E.useState)();const[be,Ne]=(0,E.useState)(!1),[Ye,it]=(0,E.useState)(!1);(0,E.useEffect)(()=>{tt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&pe()},[tt.actionTabs]);function pe(){return Ae(this,null,function*(){var Ke,nt;let bt=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs}});if(((Ke=bt==null?void 0:bt.cover_exercises)==null?void 0:Ke.length)>0)Ge(!0),Be((nt=bt==null?void 0:bt.cover_exercises)==null?void 0:nt[0]);else{let At=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs}});Se({type:"exercise/setActionTabs",payload:{key:""}}),(At==null?void 0:At.status)===0&&(Qe&&He(),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Je.history.push("/paperlibrary")}}))}})}return We.createElement("div",null,We.createElement(ve.default,{open:pt,centered:!0,onCancel:Ke=>Ae(void 0,null,function*(){if(Ke.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){Ne(!0);let nt=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs,update:1}});Se({type:"exercise/setActionTabs",payload:{key:""}}),Ne(!1),(nt==null?void 0:nt.status)===0&&(Qe&&He(),Ge(!1),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Je.history.push("/paperlibrary")}}))}else Ge(!1)}),cancelButtonProps:{loading:be},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:Ye},onOk:()=>Ae(void 0,null,function*(){it(!0);let Ke=yield(0,xe.ZP)(`/api/courses/${qe==null?void 0:qe.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:tt.actionTabs.selectArrs}});it(!1),(Ke==null?void 0:Ke.status)===0&&(Qe&&He(),Se({type:"exercise/setActionTabs",payload:{key:""}}),Ge(!1),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Je.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},We.createElement("div",null,We.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),We.createElement("div",null,We.createElement("div",null,"\u8BD5\u5377\uFF1A",Oe==null?void 0:Oe.origin_exercise_nam),We.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",We.createElement("a",{href:`/paperlibrary/see/${Oe==null?void 0:Oe.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Oe==null?void 0:Oe.examination_bank_name))))))};_t.Z=(0,Je.connect)(({exercise:tt})=>({exercise:tt}))(Ue)},33797:function(Bt,_t,ne){"use strict";ne.d(_t,{i:function(){return pe},q:function(){return it}});var E=ne(59301),ve={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},xe=ne(92310),Je=ne.n(xe),We=ne(25399),Ae=ne(82326),Ue=ne(7939),tt=ne(70892),Se=Object.defineProperty,He=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Oe=(Ke,nt,bt)=>nt in Ke?Se(Ke,nt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):Ke[nt]=bt,Be=(Ke,nt)=>{for(var bt in nt||(nt={}))pt.call(nt,bt)&&Oe(Ke,bt,nt[bt]);if(qe)for(var bt of qe(nt))Ge.call(nt,bt)&&Oe(Ke,bt,nt[bt]);return Ke},be=(Ke,nt)=>He(Ke,Qe(nt)),Ne=(Ke,nt)=>{var bt={};for(var At in Ke)pt.call(Ke,At)&&nt.indexOf(At)<0&&(bt[At]=Ke[At]);if(Ke!=null&&qe)for(var At of qe(Ke))nt.indexOf(At)<0&&Ge.call(Ke,At)&&(bt[At]=Ke[At]);return bt},Ye=(Ke,nt,bt)=>new Promise((At,ut)=>{var Xe=ze=>{try{Pe(bt.next(ze))}catch(Te){ut(Te)}},ht=ze=>{try{Pe(bt.throw(ze))}catch(Te){ut(Te)}},Pe=ze=>ze.done?At(ze.value):Promise.resolve(ze.value).then(Xe,ht);Pe((bt=bt.apply(Ke,nt)).next())});const it=Ke=>{var nt=Ke,{wrapClassName:bt,wrapStyle:At={},showLinkButton:ut=!0,tooltipTitle:Xe="",loadGeneral:ht=!1,data:Pe={}}=nt,ze=Ne(nt,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Te="course_disciplines_list",[rt,Pt]=(0,E.useState)(()=>{const lt=sessionStorage.getItem(Te);return lt?JSON.parse(lt):[]}),[st,et]=(0,E.useState)(!1),[Ft,De]=(0,E.useState)(!0);(0,E.useEffect)(()=>{ge()},[]);const ge=()=>Ye(void 0,null,function*(){var lt,Et,yt,Ze;et(!0);const Ve=yield(0,tt.U2)("v2/course_disciplines.json",Pe);if(Ve.status===0){const ft=((Et=(lt=Ve==null?void 0:Ve.data)==null?void 0:lt.list)==null?void 0:Et.map(Kt=>({value:Kt.id,label:Kt.name})))||[];if(Pt(ft),De(!1),sessionStorage.setItem(Te,JSON.stringify(ft)),Ft){const Kt=(Ze=(yt=Ve==null?void 0:Ve.data)==null?void 0:yt.list)==null?void 0:Ze.find(kt=>kt.is_default);ht&&Kt&&ze.onChange(Kt==null?void 0:Kt.id)}}et(!1)});return E.createElement("div",{className:Je()(ve.singleSelect,bt),style:At},E.createElement(We.Z,{title:Xe},E.createElement(Ae.default,Be({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:st,options:rt,onDropdownVisibleChange:lt=>{lt&&ge()}},ze))),ut&&E.createElement(Ue.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},pe=Ke=>{var nt=Ke,{wrapClassName:bt,wrapStyle:At={},showLinkButton:ut=!0,courseDisciplineId:Xe="",isPlusHeight:ht=!1,tooltipTitle:Pe,allowAcceptEmpty:ze=!1,data:Te={}}=nt,rt=Ne(nt,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[Pt,st]=(0,E.useState)([]),[et,Ft]=(0,E.useState)(!1);(0,E.useEffect)(()=>{De()},[Xe]);const De=()=>Ye(void 0,null,function*(){var ge,lt;if(!ze&&!Xe){st([]);return}Ft(!0);const Et=yield(0,tt.U2)(`v2/course_disciplines/${Xe||"all"}.json`,Te);if(Et.status===0){const yt=((lt=(ge=Et==null?void 0:Et.data)==null?void 0:ge.tag_disciplines)==null?void 0:lt.map(Ze=>({value:Ze.id,label:Ze.name})))||[];yt.length&&st(yt)}Ft(!1)});return E.createElement("div",{className:Je()(ve.multipleSelect,bt),style:At},E.createElement(We.Z,{title:Pe},E.createElement(Ae.default,be(Be({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:et,options:Pt,maxTagCount:"responsive",onDropdownVisibleChange:ge=>{ge&&De()}},rt),{className:Je()(rt.className,ht&&ve.plus)}))),ut&&E.createElement(Ue.ZP,{className:ve.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},86053:function(Bt,_t,ne){"use strict";ne.d(_t,{h:function(){return E}});var E=(ve=>(ve[ve.NOMATCH=-1]="NOMATCH",ve[ve.OK=0]="OK",ve[ve.TIMEOUT=2]="TIMEOUT",ve[ve.PODFAILURE=3]="PODFAILURE",ve[ve.COMPILEFAILURE=4]="COMPILEFAILURE",ve[ve.EXECUTEFAILURE=5]="EXECUTEFAILURE",ve[ve.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ve))(E||{})},57788:function(Bt,_t,ne){"use strict";ne.d(_t,{H7:function(){return Oe},MK:function(){return Ge},MU:function(){return He},X6:function(){return qe},bM:function(){return Se},fi:function(){return Be},fu:function(){return tt},n4:function(){return be},rX:function(){return pt},vl:function(){return Ne},zO:function(){return Qe}});var E=ne(70892),ve=Object.defineProperty,xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ae=(Ye,it,pe)=>it in Ye?ve(Ye,it,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ye[it]=pe,Ue=(Ye,it)=>{for(var pe in it||(it={}))Je.call(it,pe)&&Ae(Ye,pe,it[pe]);if(xe)for(var pe of xe(it))We.call(it,pe)&&Ae(Ye,pe,it[pe]);return Ye};function tt(Ye,it){return(0,E.U2)(`myproblems/${Ye}.json`,Ue({hidePopLogin:!0},it||{}))}function Se(Ye,it){return(0,E.v_)(`myproblems/${Ye}/code_submit.json`,it)}function He(Ye,it){return(0,E.v_)(`myproblems/${Ye}/code_debug.json`,it)}function Qe(Ye,it){return it.language&&(it.language=encodeURIComponent(it.language)),(0,E.U2)(`myproblems/${Ye}/submit_records.json`,it)}function qe(Ye){return(0,E.U2)("myproblems/record_detail.json",{id:Ye})}function pt(Ye,it){return(0,E.U2)(`myproblems/${Ye}/result.json`,{mode:it})}function Ge(Ye,it){return(0,E.v_)(`myproblems/${Ye}/add_notes.json`,it)}function Oe(Ye,it){return(0,E.v_)(`myproblems/${Ye}/restore_initial_code.json`,it)}function Be(Ye){return(0,E.v_)(`myproblems/${Ye}/sync_code.json`)}function be(Ye,it){return(0,E.v_)(`myproblems/${Ye}/update_code.json`,it)}function Ne(Ye,it){return(0,E.v_)(`discusses/${Ye}/plus.json`,it)}},20892:function(Bt,_t,ne){"use strict";var E=ne(59301),ve=ne(25399),xe=ne(37568),Je=ne(6767),We=ne(24565),Ae=ne(59301),Ue=(Se,He,Qe)=>new Promise((qe,pt)=>{var Ge=be=>{try{Be(Qe.next(be))}catch(Ne){pt(Ne)}},Oe=be=>{try{Be(Qe.throw(be))}catch(Ne){pt(Ne)}},Be=be=>be.done?qe(be.value):Promise.resolve(be.value).then(Ge,Oe);Be((Qe=Qe.apply(Se,He)).next())});const tt=({defaultValue:Se,onFinish:He})=>{const[Qe,qe]=(0,E.useState)(!1),[pt,Ge]=(0,E.useState)(Se);return(0,E.useEffect)(()=>{Ge(Se)},[Se]),Ae.createElement("div",null,Qe?Ae.createElement(xe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:pt,onChange:Oe=>{Ge(Oe.target.value)},onBlur:()=>Ue(void 0,null,function*(){var Oe;if(((Oe=pt==null?void 0:pt.replaceAll(" ",""))==null?void 0:Oe.length)<=0){Je.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield He(pt))&&qe(!1)}),onPressEnter:()=>Ue(void 0,null,function*(){var Oe;if(((Oe=pt==null?void 0:pt.replaceAll(" ",""))==null?void 0:Oe.length)<=0){Je.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield He(pt))&&qe(!1)})}):Ae.createElement("div",{className:We.Z.title},pt,Ae.createElement(ve.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ae.createElement("i",{className:`${We.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>qe(!0)}))))};_t.Z=tt},3256:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Te}});var E=ne(89392),ve=ne(59301),xe=ne(25399),Je=ne(62673),We=ne(6767),Ae=ne(62957),Ue=ne(77019),tt=ne(54265),Se=ne(37568),He=ne(7939),Qe=ne(44104),qe=ne(4875),pt={flex_box_center:"flex_box_center___LvpOo",flex_space_between:"flex_space_between___nspow",flex_box_vertical_center:"flex_box_vertical_center___x8SwB",flex_box_center_end:"flex_box_center_end____Q_Od",flex_box_column:"flex_box_column___cr7Zl",btn:"btn___cNMEx",dragBtn:"dragBtn___HOiv_",row:"row___VPDaz",questionTitle:"questionTitle___RgXSX"},Ge=ne(22061),Oe=ne(67495),Be=ne(70892),be=ne(59301),Ne=Object.defineProperty,Ye=Object.defineProperties,it=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,bt=(rt,Pt,st)=>Pt in rt?Ne(rt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:st}):rt[Pt]=st,At=(rt,Pt)=>{for(var st in Pt||(Pt={}))Ke.call(Pt,st)&&bt(rt,st,Pt[st]);if(pe)for(var st of pe(Pt))nt.call(Pt,st)&&bt(rt,st,Pt[st]);return rt},ut=(rt,Pt)=>Ye(rt,it(Pt)),Xe=(rt,Pt,st)=>new Promise((et,Ft)=>{var De=Et=>{try{lt(st.next(Et))}catch(yt){Ft(yt)}},ge=Et=>{try{lt(st.throw(Et))}catch(yt){Ft(yt)}},lt=Et=>Et.done?et(Et.value):Promise.resolve(Et.value).then(De,ge);lt((st=st.apply(rt,Pt)).next())});const ht=(rt,Pt,st)=>{const et=Array.from(rt),[Ft]=et.splice(Pt,1);return et.splice(st,0,Ft),et},Pe=({value:rt=[],onChange:Pt,selectIds:st,setSelectIds:et})=>{const Ft=De=>{if(!De.destination)return;const ge=ht(rt,De.source.index,De.destination.index);Pt(ge)};return be.createElement(Ge.Z5,{onDragEnd:Ft},be.createElement(Ge.bK,{droppableId:"questionList"},De=>be.createElement("div",ut(At({},De.droppableProps),{ref:De.innerRef}),rt.map((ge,lt)=>be.createElement(Ge._l,{key:ge.id,draggableId:String(ge.id),index:lt},(Et,yt)=>{const Ze=st.includes(ge.id);return be.createElement("div",At({ref:Et.innerRef},Et.draggableProps),be.createElement("div",{className:pt.row,style:{paddingLeft:30}},be.createElement(xe.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},be.createElement("div",ut(At({},Et.dragHandleProps),{className:pt.dragBtn}),be.createElement("i",{className:"iconfont icon-tuodong3 font14"}))),be.createElement(Je.default,{checked:Ze,onClick:()=>et(Ze?st.filter(Ve=>Ve!==ge.id):[...st,ge.id]),className:"ml10 mr10"}),be.createElement(xe.Z,{placement:"topLeft",color:"#fff",title:be.createElement(Oe.Z,{value:ge.question_title})},be.createElement("div",{className:pt.questionTitle},be.createElement(Oe.Z,{showLines:1,showTextOnly:!0,value:ge.question_title})))))})),De.placeholder)))};var Te=({isPaperlibrary:rt=!0,examId:Pt,visible:st,onCancel:et,onOK:Ft,data:De})=>{const[ge,lt]=(0,ve.useState)([]),[Et,yt]=(0,ve.useState)([]),[Ze,Ve]=(0,ve.useState)(null),[ft,Kt]=(0,ve.useState)([]),[kt,dn]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{st&&(lt(Nt(De)),yt([]),Kt([]),Ve(null))},[st]);const ct=(0,ve.useMemo)(()=>ge.reduce((me,le)=>{let ot=0;return le.score!==null?ot=le.score*le.items.length:ot=le.items.reduce((Ht,on)=>{const kn=parseFloat(on.question_score)||0;return Ht+kn},0),me+ot},0),[ge]),Nt=me=>Array.isArray(me)?me.map((le,ot)=>{const Ht={name:le.name,question_type:le.question_type,score:null,id:ot+1,items:[]};return Array.isArray(le.items)&&(Ht.items=le.items.map(on=>{var kn;return{question_title:(on==null?void 0:on.question_type)===8?(kn=on==null?void 0:on.program_attr)==null?void 0:kn.description:on.question_title,id:on.question_id,question_score:on.question_score}})),Ht}):(console.error("\u8F93\u5165\u6570\u636E\u5FC5\u987B\u662F\u6570\u7EC4\u7C7B\u578B"),[]),mn=me=>{if(!me.destination)return;const le=ht(ge,me.source.index,me.destination.index);lt(le)},he=(me,le,ot)=>{const Ht=(0,E.cloneDeep)(ge);Ht[me][le]=ot,lt(Ht)},se=()=>{if(!(ft!=null&&ft.length)){We.ZP.warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u8BD5\u9898");return}const me=(0,E.cloneDeep)(ge);for(let le=me.length-1;le>=0;le--){const ot=me[le];ot.items&&Array.isArray(ot.items)&&(ot.items=ot.items.filter(Ht=>!ft.includes(Ht.id)),ot.items.length===0&&me.splice(le,1))}Kt([]),Ve(null),lt(me)},ae=me=>{Ae.default.confirm({centered:!0,icon:null,title:"\u63D0\u793A",content:"\u5220\u9664\u9898\u578B\u5C06\u5220\u9664\u8BE5\u9898\u578B\u4E0B\u7684\u6240\u6709\u8BD5\u9898\uFF0C\u786E\u5B9A\u8981\u8FDB\u884C\u8BE5\u64CD\u4F5C\u5417\uFF1F",okText:"\u786E\u8BA4",width:450,cancelText:"\u53D6\u6D88",onOk:()=>{var le;const ot=ge.filter(wn=>wn.id!==me),Ht=ge.find(wn=>wn.id===me),on=(le=Ht==null?void 0:Ht.items)==null?void 0:le.map(wn=>wn.id),kn=ft.filter(wn=>!on.includes(wn));lt(ot),Kt(kn),Ve(null)}})},ce=()=>Xe(void 0,null,function*(){[100,120,150].includes(Number(ct))||(yield new Promise((ot,Ht)=>{Ae.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:be.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",be.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ct),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Xe(void 0,null,function*(){ot("")}),onCancel:()=>{Ht()}})}));const me=ge==null?void 0:ge.map(ot=>{var Ht;return{question_type:ot.question_type,question_ids:(Ht=ot==null?void 0:ot.items)==null?void 0:Ht.map(on=>on.id),name:ot.name,score:ot.score}});dn(!0);const le=yield(0,Be.ZP)(`/api/${rt?"examination_banks":"exercises"}/${Pt}/batch_question_type.json`,{method:"post",body:{question_arr:me}});(le==null?void 0:le.status)===0&&(We.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ft()),dn(!1)});return be.createElement(Ae.default,{open:st,title:"\u6279\u91CF\u64CD\u4F5C",width:1200,centered:!0,okText:"\u4FDD\u5B58\u64CD\u4F5C",onCancel:()=>et(),onOk:ce,confirmLoading:kt},be.createElement(Ue.Z,{align:"middle",className:"mb20 c-grey-666"},be.createElement("div",null,"\u53EF\u62D6\u62FD\xA0",be.createElement("i",{className:"iconfont icon-tuodong3 font12"}),"\xA0\u8C03\u6574\u9898\u578B\u6216\u8BD5\u9898\u6392\u5E8F\uFF0C\u52FE\u9009\u591A\u4E2A\u8BD5\u9898\u4E4B\u540E\u53EF\u8FDB\u884C\u6279\u91CF\u5220\u9664"),be.createElement("div",{className:"ml-auto"},"\u8BD5\u5377\u603B\u5206\xA0\xA0",be.createElement("span",{className:"c-light-primary"},ct,"\xA0\xA0"),"\u5206"),be.createElement("div",{onClick:se,className:pt.btn},"\u6279\u91CF\u5220\u9664")),be.createElement("div",{style:{maxHeight:500,overflow:"auto"}},be.createElement(Ge.Z5,{onDragEnd:mn},be.createElement(Ge.bK,{droppableId:"list"},me=>be.createElement("div",ut(At({},me.droppableProps),{ref:me.innerRef}),ge.map((le,ot)=>be.createElement(Ge._l,{key:le.id,draggableId:String(le.id),index:ot},(Ht,on)=>{var kn,wn;const Xn=Et==null?void 0:Et.includes(le.id);let Nn=le.name;const Pr=le.items.reduce((Ar,Jn)=>{const va=parseFloat(Jn.question_score)||0;return Ar+va},0),Vr=typeof le.score=="number"?le.score*((kn=le.items)==null?void 0:kn.length):Pr;return be.createElement("div",At({ref:Ht.innerRef},Ht.draggableProps),be.createElement("div",{className:pt.row},be.createElement(xe.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},be.createElement("div",ut(At({},Ht.dragHandleProps),{className:pt.dragBtn}),be.createElement("i",{className:"iconfont icon-tuodong3 font14"}))),be.createElement("div",{onClick:()=>yt(Xn?Et.filter(Ar=>Ar!==le.id):[...Et,le.id]),className:"iconfont icon-zhankai8 current",style:{fontSize:36,transform:`rotate(${Xn?0:270}deg)`}}),Ze===le.id?be.createElement(tt.Z,{align:"center"},be.createElement(Se.default,{maxLength:10,showCount:!0,defaultValue:Nn,onChange:Ar=>Nn=Ar.target.value}),be.createElement(He.ZP,{onClick:()=>{var Ar;if(!Nn.trim()){We.ZP.success("\u8BF7\u8F93\u5165\u5185\u5BB9");return}if(((Ar=ge.filter(va=>va.id!==Ze))==null?void 0:Ar.map(va=>va.name)).includes(Nn)){We.ZP.success("\u9898\u578B\u540D\u79F0\u91CD\u590D");return}he(ot,"name",Nn),Ve(null)},style:{padding:0,marginLeft:15},type:"link"},"\u786E\u8BA4"),be.createElement(He.ZP,{onClick:()=>Ve(null),style:{padding:0,marginLeft:15},type:"link"},"\u53D6\u6D88")):be.createElement(be.Fragment,null,be.createElement("div",{className:"c-grey-333 mr10"},le.name),be.createElement("i",{onClick:()=>Ve(le.id),className:"iconfont icon-bianji16 c-light-primary current font14"})),be.createElement(Qe.Z,{size:20,className:"ml-auto"},be.createElement(Qe.Z,{size:10},be.createElement("span",{className:"mr10"},"\u6BCF\u9898"),be.createElement(qe.Z,{style:{width:100},onChange:Ar=>he(ot,"score",Ar),precision:1,min:.1,value:le.score,suffix:"\u5206"})),be.createElement(Qe.Z,{style:{width:145,paddingLeft:15},size:10},be.createElement("span",{className:"mr10"},"\u5C0F\u9898\u603B\u6570"),be.createElement("span",null,be.createElement("b",null,(wn=le==null?void 0:le.items)==null?void 0:wn.length),"\xA0\u9898")),be.createElement(Qe.Z,{style:{width:175,paddingLeft:15},size:10},be.createElement("span",{className:"mr10"},"\u9898\u578B\u603B\u5206"),be.createElement("span",null,be.createElement("b",null,Vr),"\xA0\u5206")),be.createElement(He.ZP,{onClick:()=>ae(le.id),type:"link",danger:!0},"\u5220\u9664"))),Xn&&be.createElement(Pe,{selectIds:ft,setSelectIds:Kt,value:(le==null?void 0:le.items)||[],onChange:Ar=>he(ot,"items",Ar)}))})),me.placeholder)))))}},75632:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return He}});var E=ne(62957),ve={ul:"ul___TdfYY"},xe=ne(32637),Je=ne(59301),We=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,tt=(Qe,qe)=>{var pt={};for(var Ge in Qe)Ae.call(Qe,Ge)&&qe.indexOf(Ge)<0&&(pt[Ge]=Qe[Ge]);if(Qe!=null&&We)for(var Ge of We(Qe))qe.indexOf(Ge)<0&&Ue.call(Qe,Ge)&&(pt[Ge]=Qe[Ge]);return pt},He=Qe=>{var qe=Qe,{open:pt,onCancel:Ge}=qe,Oe=tt(qe,["open","onCancel"]);return Je.createElement(E.default,{centered:!0,open:pt,title:Je.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ge,footer:null},Je.createElement("div",null,Je.createElement("div",{className:"tc"},Je.createElement("img",{className:"mt10",src:xe,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Je.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Je.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Je.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Je.createElement("ul",{className:ve.ul},Je.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Je.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Je.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},79986:function(Bt,_t,ne){"use strict";ne.d(_t,{I:function(){return ve}});var E=ne(59301);const ve=()=>{const[xe,Je]=(0,E.useState)("hidden");return{overflow:xe,handleMouseEnter:()=>Je("auto"),handleMouseLeave:()=>Je("hidden")}}},77845:function(Bt,_t,ne){"use strict";ne.d(_t,{AL:function(){return pe},Iy:function(){return Qe},Qv:function(){return Ge},ez:function(){return it},jb:function(){return qe}});var E=ne(32834),ve=ne.n(E),xe=ne(11690),Je=ne.n(xe);let We=1;function Ae(ut,Xe){const ht=ut.match(/^(\s+)(?:```)/);if(ht===null)return Xe;const Pe=ht[1];return Xe.split(` +`).map(ze=>{const Te=ze.match(/^\s+/);if(Te===null)return ze;const[rt]=Te;return rt.length>=Pe.length?ze.slice(Pe.length):ze}).join(` +`)}let Ue=[],tt=["
      "];const Se=new(ve()).Renderer,He=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Qe(){Ue.length=0,tt=["
        "]}const qe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function pt(ut,Xe,ht,Pe){if(Xe>=ut.length||ut[Xe].level<=ht)return Xe;var ze=ut[Xe];Pe.push("
      • "+ze.text+""),Xe++;var Te=[];return Xe=pt(ut,Xe,ze.level,Te),Te.length>0&&(Pe.push("
          "),Te.forEach(function(rt){Pe.push(rt)}),Pe.push("
        ")),Pe.push("
      • "),Xe=pt(ut,Xe,ht,Pe),Xe}function Ge(){return pt(Ue,0,0,tt),tt.push("
      "),tt.join("")}const Oe={heading(ut){const Xe=He.exec(ut);if(We+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(ut){const Xe=this.rules.block.fences.exec(ut);if(Xe){const ht=Xe[0];let Pe=Ae(ht,Xe[3]||"");const ze=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(ze)>=0){const Te=Ne(),rt=Pe;Pe=Te,Ye[Te]={type:"block",expression:rt}}return{type:"code",raw:ht,lang:ze,text:Pe}}}},Be=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let be=0;const Ne=()=>`__special_katext_id_${be++}__`;let Ye={};function it(){return Ye}function pe(){be=0,Ye={}}function Ke(ut){return ut=ut.replace(Be,(Xe,ht)=>{const Pe=Ne();return Ye[Pe]={type:"inline",expression:ht},Pe}),ut}const nt=Se.listitem;Se.listitem=function(ut){return nt(Ke(ut))};const bt=Se.paragraph;Se.paragraph=function(ut){return bt(Ke(ut))};const At=Se.tablecell;Se.tablecell=function(ut,Xe){return At(Ke(ut),Xe)},Se.code=function(ut,Xe,ht){const Pe=(Xe||"").match(/\S*/)[0];return Pe?["latex","katex","math"].indexOf(Pe)>=0?`

      ${ut}

      `:`
      ${ht?ut:(0,xe.escape)(ut,!0)}
      +`:'
      '+(ht?ut:(0,xe.escape)(ut,!0))+"
      "},Se.heading=function(ut,Xe,ht){let Pe=this.options.headerPrefix+ht.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ue.push({anchor:Pe,level:Xe,text:ut}),"'+ut+""},ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),ve().use({tokenizer:Oe,renderer:Se}),_t.ZP=ve()},91882:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return st}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(11592),We=ne(26112),Ae=ne(22703),Ue=ne(48755),tt=ne(84105),Se=ne(19563);const He=et=>{let{children:Ft}=et;const{getPrefixCls:De}=E.useContext(Ue.E_),ge=De("breadcrumb");return E.createElement("li",{className:`${ge}-separator`,"aria-hidden":"true"},Ft===""?Ft:Ft||"/")};He.__ANT_BREADCRUMB_SEPARATOR=!0;var Qe=He,qe=function(et,Ft){var De={};for(var ge in et)Object.prototype.hasOwnProperty.call(et,ge)&&Ft.indexOf(ge)<0&&(De[ge]=et[ge]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols(et);ltFt[lt]||ge)}function Ge(et,Ft,De,ge){if(De==null)return null;const{className:lt,onClick:Et}=Ft,yt=qe(Ft,["className","onClick"]),Ze=Object.assign(Object.assign({},(0,We.Z)(yt,{data:!0,aria:!0})),{onClick:Et});return ge!==void 0?E.createElement("a",Object.assign({},Ze,{className:xe()(`${et}-link`,lt),href:ge}),De):E.createElement("span",Object.assign({},Ze,{className:xe()(`${et}-link`,lt)}),De)}function Oe(et,Ft){return(ge,lt,Et,yt,Ze)=>{if(Ft)return Ft(ge,lt,Et,yt);const Ve=pt(ge,lt);return Ge(et,ge,Ve,Ze)}}var Be=function(et,Ft){var De={};for(var ge in et)Object.prototype.hasOwnProperty.call(et,ge)&&Ft.indexOf(ge)<0&&(De[ge]=et[ge]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols(et);lt{const{prefixCls:Ft,separator:De="/",children:ge,menu:lt,overlay:Et,dropdownProps:yt,href:Ze}=et,ft=(Kt=>{if(lt||Et){const kt=Object.assign({},yt);if(lt){const dn=lt||{},{items:ct}=dn,Nt=Be(dn,["items"]);kt.menu=Object.assign(Object.assign({},Nt),{items:ct==null?void 0:ct.map((mn,he)=>{var{key:se,title:ae,label:ce,path:me}=mn,le=Be(mn,["key","title","label","path"]);let ot=ce!=null?ce:ae;return me&&(ot=E.createElement("a",{href:`${Ze}${me}`},ot)),Object.assign(Object.assign({},le),{key:se!=null?se:he,label:ot})})})}else Et&&(kt.overlay=Et);return E.createElement(Se.Z,Object.assign({placement:"bottom"},kt),E.createElement("span",{className:`${Ft}-overlay-link`},Kt,E.createElement(tt.Z,null)))}return Kt})(ge);return ft!=null?E.createElement(E.Fragment,null,E.createElement("li",null,ft),De&&E.createElement(Qe,null,De)):null},Ne=et=>{const{prefixCls:Ft,children:De,href:ge}=et,lt=Be(et,["prefixCls","children","href"]),{getPrefixCls:Et}=E.useContext(Ue.E_),yt=Et("breadcrumb",Ft);return E.createElement(be,Object.assign({},lt,{prefixCls:yt}),Ge(yt,lt,De,ge))};Ne.__ANT_BREADCRUMB_ITEM=!0;var Ye=Ne,it=ne(36237),pe=ne(63356),Ke=ne(16931),nt=ne(51636);const bt=et=>{const{componentCls:Ft,iconCls:De,calc:ge}=et;return{[Ft]:Object.assign(Object.assign({},(0,pe.Wf)(et)),{color:et.itemColor,fontSize:et.fontSize,[De]:{fontSize:et.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:et.linkColor,transition:`color ${et.motionDurationMid}`,padding:`0 ${(0,it.unit)(et.paddingXXS)}`,borderRadius:et.borderRadiusSM,height:et.fontHeight,display:"inline-block",marginInline:ge(et.marginXXS).mul(-1).equal(),"&:hover":{color:et.linkHoverColor,backgroundColor:et.colorBgTextHover}},(0,pe.Qy)(et)),"li:last-child":{color:et.lastItemColor},[`${Ft}-separator`]:{marginInline:et.separatorMargin,color:et.separatorColor},[`${Ft}-link`]:{[` > ${De} + span, > ${De} + a - `]:{marginInlineStart:$e.marginXXS}},[`${Ft}-overlay-link`]:{borderRadius:$e.borderRadiusSM,height:$e.fontHeight,display:"inline-block",padding:`0 ${(0,it.unit)($e.paddingXXS)}`,marginInline:ge($e.marginXXS).mul(-1).equal(),[`> ${De}`]:{marginInlineStart:$e.marginXXS,fontSize:$e.fontSizeIcon},"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover,a:{color:$e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${$e.componentCls}-rtl`]:{direction:"rtl"}})}},At=$e=>({itemColor:$e.colorTextDescription,lastItemColor:$e.colorText,iconFontSize:$e.fontSize,linkColor:$e.colorTextDescription,linkHoverColor:$e.colorText,separatorColor:$e.colorTextDescription,separatorMargin:$e.marginXS});var st=(0,Ke.I$)("Breadcrumb",$e=>{const Ft=(0,nt.mergeToken)($e,{});return Et(Ft)},At),Xe=function($e,Ft){var De={};for(var ge in $e)Object.prototype.hasOwnProperty.call($e,ge)&&Ft.indexOf(ge)<0&&(De[ge]=$e[ge]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols($e);lt{var{breadcrumbName:yt}=wt,je=Xe(wt,["breadcrumbName"]);return Object.assign(Object.assign({},je),{title:yt})})}),lt}function Le($e,Ft){return(0,E.useMemo)(()=>$e||(Ft?Ft.map(ut):null),[$e,Ft])}var ze=function($e,Ft){var De={};for(var ge in $e)Object.prototype.hasOwnProperty.call($e,ge)&&Ft.indexOf(ge)<0&&(De[ge]=$e[ge]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols($e);lt{if(Ft===void 0)return Ft;let De=(Ft||"").replace(/^\//,"");return Object.keys($e).forEach(ge=>{De=De.replace(`:${ge}`,$e[ge])}),De},at=$e=>{const{prefixCls:Ft,separator:De="/",style:ge,className:lt,rootClassName:wt,routes:yt,items:je,children:Ve,itemRender:pt,params:Kt={}}=$e,kt=ze($e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:dn,direction:dt,breadcrumb:Nt}=E.useContext(Ue.E_);let mn;const he=dn("breadcrumb",Ft),[se,ae,ce]=st(he),me=Le(je,yt),le=Oe(he,pt);if(me&&me.length>0){const on=[],kn=je||yt;mn=me.map((wn,Xn)=>{const{path:Nn,key:Pr,type:Vr,menu:Ar,overlay:Jn,onClick:va,className:Qr,separator:ur,dropdownProps:Sn}=wn,sr=Ne(Kt,Nn);sr!==void 0&&on.push(sr);const un=Pr!=null?Pr:Xn;if(Vr==="separator")return E.createElement(Qe,{key:un},ur);const Er={},Br=Xn===me.length-1;Ar?Er.menu=Ar:Jn&&(Er.overlay=Jn);let{href:Xa}=wn;return on.length&&sr!==void 0&&(Xa=`#/${on.join("/")}`),E.createElement(be,Object.assign({key:un},Er,(0,We.Z)(wn,{data:!0,aria:!0}),{className:Qr,dropdownProps:Sn,href:Xa,separator:Br?"":De,onClick:va,prefixCls:he}),le(wn,Kt,kn,on,Xa))})}else if(Ve){const on=(0,Je.Z)(Ve).length;mn=(0,Je.Z)(Ve).map((kn,wn)=>{if(!kn)return kn;const Xn=wn===on-1;return(0,Ae.Tm)(kn,{separator:Xn?"":De,key:wn})})}const ot=xe()(he,Nt==null?void 0:Nt.className,{[`${he}-rtl`]:dt==="rtl"},lt,wt,ae,ce),Ht=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),ge);return se(E.createElement("nav",Object.assign({className:ot,style:Ht},kt),E.createElement("ol",null,mn)))};at.Item=Ye,at.Separator=Qe;var Bt=at,ct=Bt},79939:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Ki}});var E=ne(94480),ve=ne(59301),xe=ne(92310),Je=ne.n(xe),We=ne(54476),Ae=ne(33885),Ue=ne(42978),tt=ne(75931),Se=ne(37463),Re=ne(6551),Qe=ne(6089),qe=ne(18929),ht=ve.createContext({}),Ge=ht,Oe=ne(76190),Be=ne(20068),be="__rc_cascader_search_mark__",Pe=function(tn,Tt,It){var Zn=It.label,Gn=Zn===void 0?"":Zn;return Tt.some(function(yn){return String(yn[Gn]).toLowerCase().includes(tn.toLowerCase())})},Ye=function(tn,Tt,It,Zn){return Tt.map(function(Gn){return Gn[Zn.label]}).join(" / ")},it=function(tn,Tt,It,Zn,Gn,yn){var tr=Gn.filter,Mr=tr===void 0?Pe:tr,Tr=Gn.render,Qa=Tr===void 0?Ye:Tr,ua=Gn.limit,ta=ua===void 0?50:ua,Ua=Gn.sort;return ve.useMemo(function(){var Kr=[];if(!tn)return[];function ya(qa,ai){var bi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;qa.forEach(function(Ba){if(!(!Ua&&ta!==!1&&ta>0&&Kr.length>=ta)){var ra=[].concat((0,E.Z)(ai),[Ba]),eo=Ba[It.children],wi=bi||Ba.disabled;if((!eo||eo.length===0||yn)&&Mr(tn,ra,{label:It.label})){var Ta;Kr.push((0,Ae.Z)((0,Ae.Z)({},Ba),{},(Ta={disabled:wi},(0,Be.Z)(Ta,It.label,Qa(tn,ra,Zn,It)),(0,Be.Z)(Ta,be,ra),(0,Be.Z)(Ta,It.children,void 0),Ta)))}eo&&ya(Ba[It.children],ra,wi)}})}return ya(Tt,[]),Ua&&Kr.sort(function(qa,ai){return Ua(qa[be],ai[be],tn,It)}),ta!==!1&&ta>0?Kr.slice(0,ta):Kr},[tn,Tt,It,Zn,Qa,yn,Mr,Ua,ta])},pe=it,Ke="__RC_CASCADER_SPLIT__",nt="SHOW_PARENT",Et="SHOW_CHILD";function At(xt){return xt.join(Ke)}function st(xt){return xt.map(At)}function Xe(xt){return xt.split(Ke)}function ut(xt){var tn=xt||{},Tt=tn.label,It=tn.value,Zn=tn.children,Gn=It||"value";return{label:Tt||"label",value:Gn,key:Gn,children:Zn||"children"}}function Le(xt,tn){var Tt,It;return(Tt=xt.isLeaf)!==null&&Tt!==void 0?Tt:!((It=xt[tn.children])!==null&&It!==void 0&&It.length)}function ze(xt){var tn=xt.parentElement;if(tn){var Tt=xt.offsetTop-tn.offsetTop;Tt-tn.scrollTop<0?tn.scrollTo({top:Tt}):Tt+xt.offsetHeight-tn.scrollTop>tn.offsetHeight&&tn.scrollTo({top:Tt+xt.offsetHeight-tn.offsetHeight})}}function Ne(xt,tn){return xt.map(function(Tt){var It;return(It=Tt[be])===null||It===void 0?void 0:It.map(function(Zn){return Zn[tn.value]})})}function at(xt){return Array.isArray(xt)&&Array.isArray(xt[0])}function Bt(xt){return xt?at(xt)?xt:(xt.length===0?[]:[xt]).map(function(tn){return Array.isArray(tn)?tn:[tn]}):[]}function ct(xt,tn,Tt){var It=new Set(xt),Zn=tn();return xt.filter(function(Gn){var yn=Zn[Gn],tr=yn?yn.parent:null,Mr=yn?yn.children:null;return yn&&yn.node.disabled?!0:Tt===Et?!(Mr&&Mr.some(function(Tr){return Tr.key&&It.has(Tr.key)})):!(tr&&!tr.node.disabled&&It.has(tr.key))})}function $e(xt,tn,Tt){for(var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Zn=tn,Gn=[],yn=function(){var Tr,Qa,ua,ta=xt[tr],Ua=(Tr=Zn)===null||Tr===void 0?void 0:Tr.findIndex(function(ya){var qa=ya[Tt.value];return It?String(qa)===String(ta):qa===ta}),Kr=Ua!==-1?(Qa=Zn)===null||Qa===void 0?void 0:Qa[Ua]:null;Gn.push({value:(ua=Kr==null?void 0:Kr[Tt.value])!==null&&ua!==void 0?ua:ta,index:Ua,option:Kr}),Zn=Kr==null?void 0:Kr[Tt.children]},tr=0;tr1){var Ta=Kr.slice(0,-1);bi(Ta)}else Tr(!1)},eo=function(){var Ta,oi=((Ta=qa[ya])===null||Ta===void 0?void 0:Ta[Tt.children])||[],ki=oi.find(function(_a){return!_a.disabled});if(ki){var ti=[].concat((0,E.Z)(Kr),[ki[Tt.value]]);bi(ti)}};ve.useImperativeHandle(xt,function(){return{onKeyDown:function(Ta){var oi=Ta.which;switch(oi){case ae.Z.UP:case ae.Z.DOWN:{var ki=0;oi===ae.Z.UP?ki=-1:oi===ae.Z.DOWN&&(ki=1),ki!==0&&Ba(ki);break}case ae.Z.LEFT:{if(Mr)break;ua?eo():ra();break}case ae.Z.RIGHT:{if(Mr)break;ua?ra():eo();break}case ae.Z.BACKSPACE:{Mr||ra();break}case ae.Z.ENTER:{if(Kr.length){var ti=qa[ya],_a=(ti==null?void 0:ti[be])||[];_a.length?Gn(_a.map(function(ci){return ci[Tt.value]}),_a[_a.length-1]):Gn(Kr,qa[ya])}break}case ae.Z.ESC:Tr(!1),Qa&&Ta.stopPropagation()}},onKeyUp:function(){}}})},me=ve.forwardRef(function(xt,tn){var Tt,It,Zn,Gn=xt.prefixCls,yn=xt.multiple,tr=xt.searchValue,Mr=xt.toggleOpen,Tr=xt.notFoundContent,Qa=xt.direction,ua=xt.open,ta=xt.disabled,Ua=ve.useRef(null),Kr=Qa==="rtl",ya=ve.useContext(Ge),qa=ya.options,ai=ya.values,bi=ya.halfValues,Ba=ya.fieldNames,ra=ya.changeOnSelect,eo=ya.onSelect,wi=ya.searchOptions,Ta=ya.dropdownPrefixCls,oi=ya.loadData,ki=ya.expandTrigger,ti=Ta||Gn,_a=ve.useState([]),ci=(0,Ue.Z)(_a,2),Ai=ci[0],Fo=ci[1],Qi=function(fr){if(!(!oi||tr)){var pr=$e(fr,qa,Ba),cr=pr.map(function(La){var Pa=La.option;return Pa}),Xr=cr[cr.length-1];if(Xr&&!Le(Xr,Ba)){var ca=At(fr);Fo(function(La){return[].concat((0,E.Z)(La),[ca])}),oi(cr)}}};ve.useEffect(function(){Ai.length&&Ai.forEach(function(Wn){var fr=Xe(Wn),pr=$e(fr,qa,Ba,!0).map(function(Xr){var ca=Xr.option;return ca}),cr=pr[pr.length-1];(!cr||cr[Ba.children]||Le(cr,Ba))&&Fo(function(Xr){return Xr.filter(function(ca){return ca!==Wn})})})},[qa,Ai,Ba]);var Hi=ve.useMemo(function(){return new Set(st(ai))},[ai]),oo=ve.useMemo(function(){return new Set(st(bi))},[bi]),na=se(yn,ua),to=(0,Ue.Z)(na,2),Fi=to[0],Oo=to[1],Ni=function(fr){Oo(fr),Qi(fr)},li=function(fr){if(ta)return!1;var pr=fr.disabled,cr=Le(fr,Ba);return!pr&&(cr||ra||yn)},_e=function(fr,pr){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;eo(fr),!yn&&(pr||ra&&(ki==="hover"||cr))&&Mr(!1)},Jt=ve.useMemo(function(){return tr?wi:qa},[tr,wi,qa]),nn=ve.useMemo(function(){for(var Wn=[{options:Jt}],fr=Jt,pr=Ne(fr,Ba),cr=function(){var La=Fi[Xr],Pa=fr.find(function(ji,Do){return(pr[Do]?At(pr[Do]):ji[Ba.value])===La}),Xi=Pa==null?void 0:Pa[Ba.children];if(!(Xi!=null&&Xi.length))return 1;fr=Xi,Wn.push({options:Xi})},Xr=0;Xr":ai,Ba=Tt.loadingIcon,ra=Tt.direction,eo=Tt.notFoundContent,wi=eo===void 0?"Not Found":eo,Ta=Tt.disabled,oi=!!Mr,ki=(0,on.C8)(Tr,{value:Qa,postState:Bt}),ti=(0,Ue.Z)(ki,2),_a=ti[0],ci=ti[1],Ai=ve.useMemo(function(){return ut(ua)},[JSON.stringify(ua)]),Fo=wt(Ai,tr),Qi=(0,Ue.Z)(Fo,3),Hi=Qi[0],oo=Qi[1],na=Qi[2],to=De(Hi,Ai),Fi=Kt(oi,_a,oo,na,to),Oo=(0,Ue.Z)(Fi,3),Ni=Oo[0],li=Oo[1],_e=Oo[2],Jt=(0,on.zX)(function(Qt){if(ci(Qt),Ua){var en=Bt(Qt),Wn=en.map(function(cr){return $e(cr,Hi,Ai).map(function(Xr){return Xr.option})}),fr=oi?en:en[0],pr=oi?Wn:Wn[0];Ua(fr,pr)}}),nn=pt(oi,Jt,Ni,li,_e,oo,na,Kr),Fn=(0,on.zX)(function(Qt){nn(Qt)}),Zt=ve.useMemo(function(){return{options:Hi,fieldNames:Ai,values:Ni,halfValues:li,changeOnSelect:ta,onSelect:Fn,checkable:Mr,searchOptions:[],dropdownPrefixCls:void 0,loadData:ya,expandTrigger:qa,expandIcon:bi,loadingIcon:Ba,dropdownMenuColumnStyle:void 0}},[Hi,Ai,Ni,li,ta,Fn,Mr,ya,qa,bi,Ba]),Xt="".concat(Zn,"-panel"),an=!Hi.length;return ve.createElement(Ge.Provider,{value:Zt},ve.createElement("div",{className:Je()(Xt,(tn={},(0,Be.Z)(tn,"".concat(Xt,"-rtl"),ra==="rtl"),(0,Be.Z)(tn,"".concat(Xt,"-empty"),an),tn),yn),style:Gn},an?wi:ve.createElement(le,{prefixCls:Zn,searchValue:"",multiple:oi,toggleOpen:kn,open:!0,direction:ra,disabled:Ta})))}function Xn(xt){var tn=xt.onPopupVisibleChange,Tt=xt.popupVisible,It=xt.popupClassName,Zn=xt.popupPlacement;warning(!tn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Tt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(It===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Zn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Nn(xt,tn){if(xt){var Tt=function It(Zn){for(var Gn=0;Gn":Qi,oo=xt.loadingIcon,na=xt.children,to=xt.dropdownMatchSelectWidth,Fi=to===void 0?!1:to,Oo=xt.showCheckedStrategy,Ni=Oo===void 0?nt:Oo,li=xt.optionRender,_e=(0,tt.Z)(xt,Vr),Jt=(0,Re.ZP)(Tt),nn=!!ua,Fn=(0,qe.Z)(yn,{value:tr,postState:Bt}),Zt=(0,Ue.Z)(Fn,2),Xt=Zt[0],an=Zt[1],Qt=ve.useMemo(function(){return ut(Gn)},[JSON.stringify(Gn)]),en=wt(Qt,bi),Wn=(0,Ue.Z)(en,3),fr=Wn[0],pr=Wn[1],cr=Wn[2],Xr=(0,qe.Z)("",{value:Kr,postState:function(Ci){return Ci||""}}),ca=(0,Ue.Z)(Xr,2),La=ca[0],Pa=ca[1],Xi=function(Ci,xo){Pa(Ci),xo.source!=="blur"&&ya&&ya(Ci)},ji=je(qa),Do=(0,Ue.Z)(ji,2),dl=Do[0],al=Do[1],Xo=pe(La,fr,Qt,Ba||Zn,al,Mr||nn),bl=De(fr,Qt),Ao=Kt(nn,Xt,pr,cr,bl),mo=(0,Ue.Z)(Ao,3),Rl=mo[0],Cl=mo[1],Zl=mo[2],ql=ve.useMemo(function(){var zr=st(Rl),Ci=ct(zr,pr,Ni);return[].concat((0,E.Z)(Zl),(0,E.Z)(cr(Ci)))},[Rl,pr,cr,Zl,Ni]),Fl=Ft(ql,fr,Qt,nn,Qa),vl=(0,Qe.Z)(function(zr){if(an(zr),Tr){var Ci=Bt(zr),xo=Ci.map(function(wo){return $e(wo,fr,Qt).map(function(Mo){return Mo.option})}),kl=nn?Ci:Ci[0],Mi=nn?xo:xo[0];Tr(kl,Mi)}}),zo=pt(nn,vl,Rl,Cl,Zl,pr,cr,Ni),os=(0,Qe.Z)(function(zr){(!nn||Ua)&&Pa(""),zo(zr)}),Os=function(Ci,xo){if(xo.type==="clear"){vl([]);return}var kl=xo.values[0],Mi=kl.valueCells;os(Mi)},Gl=wi!==void 0?wi:eo,As=oi||Ta,Fs=ci||_a,Js=function(Ci){Ai==null||Ai(Ci),Fo==null||Fo(Ci)},Ms=ve.useMemo(function(){return{options:fr,fieldNames:Qt,values:Rl,halfValues:Cl,changeOnSelect:Mr,onSelect:os,checkable:ua,searchOptions:Xo,dropdownPrefixCls:Ba,loadData:ra,expandTrigger:ai,expandIcon:Hi,loadingIcon:oo,dropdownMenuColumnStyle:ki,optionRender:li}},[fr,Qt,Rl,Cl,Mr,os,ua,Xo,Ba,ra,ai,Hi,oo,ki,li]),Gs=!(La?Xo:fr).length,Po=La&&al.matchInputWidth||Gs?{}:{minWidth:"auto"};return ve.createElement(Ge.Provider,{value:Ms},ve.createElement(Se.Ac,(0,We.Z)({},_e,{ref:tn,id:Jt,prefixCls:Zn,autoClearSearchValue:Ua,dropdownMatchSelectWidth:Fi,dropdownStyle:(0,Ae.Z)((0,Ae.Z)({},Po),ti),displayValues:Fl,onDisplayValuesChange:Os,mode:nn?"multiple":void 0,searchValue:La,onSearch:Xi,showSearch:dl,OptionList:Ht,emptyOptions:Gs,open:Gl,dropdownClassName:As,placement:Fs,onDropdownVisibleChange:Js,getRawInputElement:function(){return na}})))});Ar.SHOW_PARENT=nt,Ar.SHOW_CHILD=Et,Ar.Panel=wn;var Jn=Ar,va=Jn,Qr=ne(2738),ur=ne(75030),Sn=ne(86641),sr=ne(45915),un=ne(82855),Er=ne(48755),Br=ne(38406),Xa=ne(2171),Da=ne(83397),Sr=ne(31756),En=ne(56553),nr=ne(24971),$r=ne(1722),Aa=ne(90376),ga=ne(68525),Ei=ne(90005),Ii=ne(70045);function Ja(xt,tn){const{getPrefixCls:Tt,direction:It,renderEmpty:Zn}=ve.useContext(Er.E_),Gn=tn||It,yn=Tt("select",xt),tr=Tt("cascader",xt);return[yn,tr,Gn,Zn]}var ri=Ja;function hi(xt,tn){return ve.useMemo(()=>tn?ve.createElement("span",{className:`${xt}-checkbox-inner`}):!1,[tn])}var $i=ne(33853),Ha=ne(58617),ea=ne(38819),qt=(xt,tn,Tt)=>{let It=Tt;Tt||(It=tn?ve.createElement($i.Z,null):ve.createElement(ea.Z,null));const Zn=ve.createElement("span",{className:`${xt}-menu-item-loading-icon`},ve.createElement(Ha.Z,{spin:!0}));return ve.useMemo(()=>[It,Zn],[It])},Ut=ne(56119),Un=ne(16931),Lt=ne(36237),Dn=ne(36170),rr=ne(63356),ar=xt=>{const{prefixCls:tn,componentCls:Tt}=xt,It=`${Tt}-menu-item`,Zn=` + `]:{marginInlineStart:et.marginXXS}},[`${Ft}-overlay-link`]:{borderRadius:et.borderRadiusSM,height:et.fontHeight,display:"inline-block",padding:`0 ${(0,it.unit)(et.paddingXXS)}`,marginInline:ge(et.marginXXS).mul(-1).equal(),[`> ${De}`]:{marginInlineStart:et.marginXXS,fontSize:et.fontSizeIcon},"&:hover":{color:et.linkHoverColor,backgroundColor:et.colorBgTextHover,a:{color:et.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${et.componentCls}-rtl`]:{direction:"rtl"}})}},At=et=>({itemColor:et.colorTextDescription,lastItemColor:et.colorText,iconFontSize:et.fontSize,linkColor:et.colorTextDescription,linkHoverColor:et.colorText,separatorColor:et.colorTextDescription,separatorMargin:et.marginXS});var ut=(0,Ke.I$)("Breadcrumb",et=>{const Ft=(0,nt.mergeToken)(et,{});return bt(Ft)},At),Xe=function(et,Ft){var De={};for(var ge in et)Object.prototype.hasOwnProperty.call(et,ge)&&Ft.indexOf(ge)<0&&(De[ge]=et[ge]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols(et);lt{var{breadcrumbName:yt}=Et,Ze=Xe(Et,["breadcrumbName"]);return Object.assign(Object.assign({},Ze),{title:yt})})}),lt}function Pe(et,Ft){return(0,E.useMemo)(()=>et||(Ft?Ft.map(ht):null),[et,Ft])}var ze=function(et,Ft){var De={};for(var ge in et)Object.prototype.hasOwnProperty.call(et,ge)&&Ft.indexOf(ge)<0&&(De[ge]=et[ge]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ge=Object.getOwnPropertySymbols(et);lt{if(Ft===void 0)return Ft;let De=(Ft||"").replace(/^\//,"");return Object.keys(et).forEach(ge=>{De=De.replace(`:${ge}`,et[ge])}),De},rt=et=>{const{prefixCls:Ft,separator:De="/",style:ge,className:lt,rootClassName:Et,routes:yt,items:Ze,children:Ve,itemRender:ft,params:Kt={}}=et,kt=ze(et,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:dn,direction:ct,breadcrumb:Nt}=E.useContext(Ue.E_);let mn;const he=dn("breadcrumb",Ft),[se,ae,ce]=ut(he),me=Pe(Ze,yt),le=Oe(he,ft);if(me&&me.length>0){const on=[],kn=Ze||yt;mn=me.map((wn,Xn)=>{const{path:Nn,key:Pr,type:Vr,menu:Ar,overlay:Jn,onClick:va,className:Qr,separator:ur,dropdownProps:Sn}=wn,sr=Te(Kt,Nn);sr!==void 0&&on.push(sr);const un=Pr!=null?Pr:Xn;if(Vr==="separator")return E.createElement(Qe,{key:un},ur);const Er={},Br=Xn===me.length-1;Ar?Er.menu=Ar:Jn&&(Er.overlay=Jn);let{href:Xa}=wn;return on.length&&sr!==void 0&&(Xa=`#/${on.join("/")}`),E.createElement(be,Object.assign({key:un},Er,(0,We.Z)(wn,{data:!0,aria:!0}),{className:Qr,dropdownProps:Sn,href:Xa,separator:Br?"":De,onClick:va,prefixCls:he}),le(wn,Kt,kn,on,Xa))})}else if(Ve){const on=(0,Je.Z)(Ve).length;mn=(0,Je.Z)(Ve).map((kn,wn)=>{if(!kn)return kn;const Xn=wn===on-1;return(0,Ae.Tm)(kn,{separator:Xn?"":De,key:wn})})}const ot=xe()(he,Nt==null?void 0:Nt.className,{[`${he}-rtl`]:ct==="rtl"},lt,Et,ae,ce),Ht=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),ge);return se(E.createElement("nav",Object.assign({className:ot,style:Ht},kt),E.createElement("ol",null,mn)))};rt.Item=Ye,rt.Separator=Qe;var Pt=rt,st=Pt},79939:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Ki}});var E=ne(94480),ve=ne(59301),xe=ne(92310),Je=ne.n(xe),We=ne(54476),Ae=ne(33885),Ue=ne(42978),tt=ne(75931),Se=ne(37463),He=ne(6551),Qe=ne(6089),qe=ne(18929),pt=ve.createContext({}),Ge=pt,Oe=ne(76190),Be=ne(20068),be="__rc_cascader_search_mark__",Ne=function(tn,Tt,It){var Zn=It.label,Gn=Zn===void 0?"":Zn;return Tt.some(function(yn){return String(yn[Gn]).toLowerCase().includes(tn.toLowerCase())})},Ye=function(tn,Tt,It,Zn){return Tt.map(function(Gn){return Gn[Zn.label]}).join(" / ")},it=function(tn,Tt,It,Zn,Gn,yn){var tr=Gn.filter,Mr=tr===void 0?Ne:tr,Tr=Gn.render,Qa=Tr===void 0?Ye:Tr,ua=Gn.limit,ta=ua===void 0?50:ua,Ua=Gn.sort;return ve.useMemo(function(){var Kr=[];if(!tn)return[];function ya(qa,ai){var bi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;qa.forEach(function(Ba){if(!(!Ua&&ta!==!1&&ta>0&&Kr.length>=ta)){var ra=[].concat((0,E.Z)(ai),[Ba]),eo=Ba[It.children],wi=bi||Ba.disabled;if((!eo||eo.length===0||yn)&&Mr(tn,ra,{label:It.label})){var Ta;Kr.push((0,Ae.Z)((0,Ae.Z)({},Ba),{},(Ta={disabled:wi},(0,Be.Z)(Ta,It.label,Qa(tn,ra,Zn,It)),(0,Be.Z)(Ta,be,ra),(0,Be.Z)(Ta,It.children,void 0),Ta)))}eo&&ya(Ba[It.children],ra,wi)}})}return ya(Tt,[]),Ua&&Kr.sort(function(qa,ai){return Ua(qa[be],ai[be],tn,It)}),ta!==!1&&ta>0?Kr.slice(0,ta):Kr},[tn,Tt,It,Zn,Qa,yn,Mr,Ua,ta])},pe=it,Ke="__RC_CASCADER_SPLIT__",nt="SHOW_PARENT",bt="SHOW_CHILD";function At(wt){return wt.join(Ke)}function ut(wt){return wt.map(At)}function Xe(wt){return wt.split(Ke)}function ht(wt){var tn=wt||{},Tt=tn.label,It=tn.value,Zn=tn.children,Gn=It||"value";return{label:Tt||"label",value:Gn,key:Gn,children:Zn||"children"}}function Pe(wt,tn){var Tt,It;return(Tt=wt.isLeaf)!==null&&Tt!==void 0?Tt:!((It=wt[tn.children])!==null&&It!==void 0&&It.length)}function ze(wt){var tn=wt.parentElement;if(tn){var Tt=wt.offsetTop-tn.offsetTop;Tt-tn.scrollTop<0?tn.scrollTo({top:Tt}):Tt+wt.offsetHeight-tn.scrollTop>tn.offsetHeight&&tn.scrollTo({top:Tt+wt.offsetHeight-tn.offsetHeight})}}function Te(wt,tn){return wt.map(function(Tt){var It;return(It=Tt[be])===null||It===void 0?void 0:It.map(function(Zn){return Zn[tn.value]})})}function rt(wt){return Array.isArray(wt)&&Array.isArray(wt[0])}function Pt(wt){return wt?rt(wt)?wt:(wt.length===0?[]:[wt]).map(function(tn){return Array.isArray(tn)?tn:[tn]}):[]}function st(wt,tn,Tt){var It=new Set(wt),Zn=tn();return wt.filter(function(Gn){var yn=Zn[Gn],tr=yn?yn.parent:null,Mr=yn?yn.children:null;return yn&&yn.node.disabled?!0:Tt===bt?!(Mr&&Mr.some(function(Tr){return Tr.key&&It.has(Tr.key)})):!(tr&&!tr.node.disabled&&It.has(tr.key))})}function et(wt,tn,Tt){for(var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Zn=tn,Gn=[],yn=function(){var Tr,Qa,ua,ta=wt[tr],Ua=(Tr=Zn)===null||Tr===void 0?void 0:Tr.findIndex(function(ya){var qa=ya[Tt.value];return It?String(qa)===String(ta):qa===ta}),Kr=Ua!==-1?(Qa=Zn)===null||Qa===void 0?void 0:Qa[Ua]:null;Gn.push({value:(ua=Kr==null?void 0:Kr[Tt.value])!==null&&ua!==void 0?ua:ta,index:Ua,option:Kr}),Zn=Kr==null?void 0:Kr[Tt.children]},tr=0;tr1){var Ta=Kr.slice(0,-1);bi(Ta)}else Tr(!1)},eo=function(){var Ta,oi=((Ta=qa[ya])===null||Ta===void 0?void 0:Ta[Tt.children])||[],ki=oi.find(function(_a){return!_a.disabled});if(ki){var ti=[].concat((0,E.Z)(Kr),[ki[Tt.value]]);bi(ti)}};ve.useImperativeHandle(wt,function(){return{onKeyDown:function(Ta){var oi=Ta.which;switch(oi){case ae.Z.UP:case ae.Z.DOWN:{var ki=0;oi===ae.Z.UP?ki=-1:oi===ae.Z.DOWN&&(ki=1),ki!==0&&Ba(ki);break}case ae.Z.LEFT:{if(Mr)break;ua?eo():ra();break}case ae.Z.RIGHT:{if(Mr)break;ua?ra():eo();break}case ae.Z.BACKSPACE:{Mr||ra();break}case ae.Z.ENTER:{if(Kr.length){var ti=qa[ya],_a=(ti==null?void 0:ti[be])||[];_a.length?Gn(_a.map(function(ci){return ci[Tt.value]}),_a[_a.length-1]):Gn(Kr,qa[ya])}break}case ae.Z.ESC:Tr(!1),Qa&&Ta.stopPropagation()}},onKeyUp:function(){}}})},me=ve.forwardRef(function(wt,tn){var Tt,It,Zn,Gn=wt.prefixCls,yn=wt.multiple,tr=wt.searchValue,Mr=wt.toggleOpen,Tr=wt.notFoundContent,Qa=wt.direction,ua=wt.open,ta=wt.disabled,Ua=ve.useRef(null),Kr=Qa==="rtl",ya=ve.useContext(Ge),qa=ya.options,ai=ya.values,bi=ya.halfValues,Ba=ya.fieldNames,ra=ya.changeOnSelect,eo=ya.onSelect,wi=ya.searchOptions,Ta=ya.dropdownPrefixCls,oi=ya.loadData,ki=ya.expandTrigger,ti=Ta||Gn,_a=ve.useState([]),ci=(0,Ue.Z)(_a,2),Ai=ci[0],Fo=ci[1],Qi=function(fr){if(!(!oi||tr)){var pr=et(fr,qa,Ba),cr=pr.map(function(La){var Pa=La.option;return Pa}),Xr=cr[cr.length-1];if(Xr&&!Pe(Xr,Ba)){var ca=At(fr);Fo(function(La){return[].concat((0,E.Z)(La),[ca])}),oi(cr)}}};ve.useEffect(function(){Ai.length&&Ai.forEach(function(Wn){var fr=Xe(Wn),pr=et(fr,qa,Ba,!0).map(function(Xr){var ca=Xr.option;return ca}),cr=pr[pr.length-1];(!cr||cr[Ba.children]||Pe(cr,Ba))&&Fo(function(Xr){return Xr.filter(function(ca){return ca!==Wn})})})},[qa,Ai,Ba]);var Hi=ve.useMemo(function(){return new Set(ut(ai))},[ai]),oo=ve.useMemo(function(){return new Set(ut(bi))},[bi]),na=se(yn,ua),to=(0,Ue.Z)(na,2),Fi=to[0],Oo=to[1],Ni=function(fr){Oo(fr),Qi(fr)},li=function(fr){if(ta)return!1;var pr=fr.disabled,cr=Pe(fr,Ba);return!pr&&(cr||ra||yn)},_e=function(fr,pr){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;eo(fr),!yn&&(pr||ra&&(ki==="hover"||cr))&&Mr(!1)},Jt=ve.useMemo(function(){return tr?wi:qa},[tr,wi,qa]),nn=ve.useMemo(function(){for(var Wn=[{options:Jt}],fr=Jt,pr=Te(fr,Ba),cr=function(){var La=Fi[Xr],Pa=fr.find(function(ji,Do){return(pr[Do]?At(pr[Do]):ji[Ba.value])===La}),Xi=Pa==null?void 0:Pa[Ba.children];if(!(Xi!=null&&Xi.length))return 1;fr=Xi,Wn.push({options:Xi})},Xr=0;Xr":ai,Ba=Tt.loadingIcon,ra=Tt.direction,eo=Tt.notFoundContent,wi=eo===void 0?"Not Found":eo,Ta=Tt.disabled,oi=!!Mr,ki=(0,on.C8)(Tr,{value:Qa,postState:Pt}),ti=(0,Ue.Z)(ki,2),_a=ti[0],ci=ti[1],Ai=ve.useMemo(function(){return ht(ua)},[JSON.stringify(ua)]),Fo=Et(Ai,tr),Qi=(0,Ue.Z)(Fo,3),Hi=Qi[0],oo=Qi[1],na=Qi[2],to=De(Hi,Ai),Fi=Kt(oi,_a,oo,na,to),Oo=(0,Ue.Z)(Fi,3),Ni=Oo[0],li=Oo[1],_e=Oo[2],Jt=(0,on.zX)(function(Qt){if(ci(Qt),Ua){var en=Pt(Qt),Wn=en.map(function(cr){return et(cr,Hi,Ai).map(function(Xr){return Xr.option})}),fr=oi?en:en[0],pr=oi?Wn:Wn[0];Ua(fr,pr)}}),nn=ft(oi,Jt,Ni,li,_e,oo,na,Kr),Fn=(0,on.zX)(function(Qt){nn(Qt)}),Zt=ve.useMemo(function(){return{options:Hi,fieldNames:Ai,values:Ni,halfValues:li,changeOnSelect:ta,onSelect:Fn,checkable:Mr,searchOptions:[],dropdownPrefixCls:void 0,loadData:ya,expandTrigger:qa,expandIcon:bi,loadingIcon:Ba,dropdownMenuColumnStyle:void 0}},[Hi,Ai,Ni,li,ta,Fn,Mr,ya,qa,bi,Ba]),Xt="".concat(Zn,"-panel"),an=!Hi.length;return ve.createElement(Ge.Provider,{value:Zt},ve.createElement("div",{className:Je()(Xt,(tn={},(0,Be.Z)(tn,"".concat(Xt,"-rtl"),ra==="rtl"),(0,Be.Z)(tn,"".concat(Xt,"-empty"),an),tn),yn),style:Gn},an?wi:ve.createElement(le,{prefixCls:Zn,searchValue:"",multiple:oi,toggleOpen:kn,open:!0,direction:ra,disabled:Ta})))}function Xn(wt){var tn=wt.onPopupVisibleChange,Tt=wt.popupVisible,It=wt.popupClassName,Zn=wt.popupPlacement;warning(!tn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Tt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(It===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Zn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Nn(wt,tn){if(wt){var Tt=function It(Zn){for(var Gn=0;Gn":Qi,oo=wt.loadingIcon,na=wt.children,to=wt.dropdownMatchSelectWidth,Fi=to===void 0?!1:to,Oo=wt.showCheckedStrategy,Ni=Oo===void 0?nt:Oo,li=wt.optionRender,_e=(0,tt.Z)(wt,Vr),Jt=(0,He.ZP)(Tt),nn=!!ua,Fn=(0,qe.Z)(yn,{value:tr,postState:Pt}),Zt=(0,Ue.Z)(Fn,2),Xt=Zt[0],an=Zt[1],Qt=ve.useMemo(function(){return ht(Gn)},[JSON.stringify(Gn)]),en=Et(Qt,bi),Wn=(0,Ue.Z)(en,3),fr=Wn[0],pr=Wn[1],cr=Wn[2],Xr=(0,qe.Z)("",{value:Kr,postState:function(Ci){return Ci||""}}),ca=(0,Ue.Z)(Xr,2),La=ca[0],Pa=ca[1],Xi=function(Ci,xo){Pa(Ci),xo.source!=="blur"&&ya&&ya(Ci)},ji=Ze(qa),Do=(0,Ue.Z)(ji,2),dl=Do[0],al=Do[1],Xo=pe(La,fr,Qt,Ba||Zn,al,Mr||nn),bl=De(fr,Qt),Ao=Kt(nn,Xt,pr,cr,bl),mo=(0,Ue.Z)(Ao,3),Rl=mo[0],Cl=mo[1],Zl=mo[2],ql=ve.useMemo(function(){var zr=ut(Rl),Ci=st(zr,pr,Ni);return[].concat((0,E.Z)(Zl),(0,E.Z)(cr(Ci)))},[Rl,pr,cr,Zl,Ni]),Fl=Ft(ql,fr,Qt,nn,Qa),vl=(0,Qe.Z)(function(zr){if(an(zr),Tr){var Ci=Pt(zr),xo=Ci.map(function(wo){return et(wo,fr,Qt).map(function(Mo){return Mo.option})}),kl=nn?Ci:Ci[0],Mi=nn?xo:xo[0];Tr(kl,Mi)}}),zo=ft(nn,vl,Rl,Cl,Zl,pr,cr,Ni),os=(0,Qe.Z)(function(zr){(!nn||Ua)&&Pa(""),zo(zr)}),Os=function(Ci,xo){if(xo.type==="clear"){vl([]);return}var kl=xo.values[0],Mi=kl.valueCells;os(Mi)},Gl=wi!==void 0?wi:eo,As=oi||Ta,Fs=ci||_a,Js=function(Ci){Ai==null||Ai(Ci),Fo==null||Fo(Ci)},Ms=ve.useMemo(function(){return{options:fr,fieldNames:Qt,values:Rl,halfValues:Cl,changeOnSelect:Mr,onSelect:os,checkable:ua,searchOptions:Xo,dropdownPrefixCls:Ba,loadData:ra,expandTrigger:ai,expandIcon:Hi,loadingIcon:oo,dropdownMenuColumnStyle:ki,optionRender:li}},[fr,Qt,Rl,Cl,Mr,os,ua,Xo,Ba,ra,ai,Hi,oo,ki,li]),Gs=!(La?Xo:fr).length,Po=La&&al.matchInputWidth||Gs?{}:{minWidth:"auto"};return ve.createElement(Ge.Provider,{value:Ms},ve.createElement(Se.Ac,(0,We.Z)({},_e,{ref:tn,id:Jt,prefixCls:Zn,autoClearSearchValue:Ua,dropdownMatchSelectWidth:Fi,dropdownStyle:(0,Ae.Z)((0,Ae.Z)({},Po),ti),displayValues:Fl,onDisplayValuesChange:Os,mode:nn?"multiple":void 0,searchValue:La,onSearch:Xi,showSearch:dl,OptionList:Ht,emptyOptions:Gs,open:Gl,dropdownClassName:As,placement:Fs,onDropdownVisibleChange:Js,getRawInputElement:function(){return na}})))});Ar.SHOW_PARENT=nt,Ar.SHOW_CHILD=bt,Ar.Panel=wn;var Jn=Ar,va=Jn,Qr=ne(2738),ur=ne(75030),Sn=ne(86641),sr=ne(45915),un=ne(82855),Er=ne(48755),Br=ne(38406),Xa=ne(2171),Da=ne(83397),Sr=ne(31756),En=ne(56553),nr=ne(24971),$r=ne(1722),Aa=ne(90376),ga=ne(68525),Ei=ne(90005),Ii=ne(70045);function Ja(wt,tn){const{getPrefixCls:Tt,direction:It,renderEmpty:Zn}=ve.useContext(Er.E_),Gn=tn||It,yn=Tt("select",wt),tr=Tt("cascader",wt);return[yn,tr,Gn,Zn]}var ri=Ja;function hi(wt,tn){return ve.useMemo(()=>tn?ve.createElement("span",{className:`${wt}-checkbox-inner`}):!1,[tn])}var $i=ne(33853),Ha=ne(58617),ea=ne(38819),qt=(wt,tn,Tt)=>{let It=Tt;Tt||(It=tn?ve.createElement($i.Z,null):ve.createElement(ea.Z,null));const Zn=ve.createElement("span",{className:`${wt}-menu-item-loading-icon`},ve.createElement(Ha.Z,{spin:!0}));return ve.useMemo(()=>[It,Zn],[It])},Ut=ne(56119),Un=ne(16931),Lt=ne(36237),Dn=ne(36170),rr=ne(63356),ar=wt=>{const{prefixCls:tn,componentCls:Tt}=wt,It=`${Tt}-menu-item`,Zn=` &${It}-expand ${It}-expand-icon, ${It}-loading-icon -`;return[(0,Dn.C2)(`${tn}-checkbox`,xt),{[Tt]:{"&-checkbox":{top:0,marginInlineEnd:xt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Tt}-menu-empty`]:{[`${Tt}-menu`]:{width:"100%",height:"auto",[It]:{color:xt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:xt.controlItemWidth,height:xt.dropdownHeight,margin:0,padding:xt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Lt.unit)(xt.lineWidth)} ${xt.lineType} ${xt.colorSplit}`},"&-item":Object.assign(Object.assign({},rr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:xt.optionPadding,lineHeight:xt.lineHeight,cursor:"pointer",transition:`all ${xt.motionDurationMid}`,borderRadius:xt.borderRadiusSM,"&:hover":{background:xt.controlItemBgHover},"&-disabled":{color:xt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Zn]:{color:xt.colorTextDisabled}},[`&-active:not(${It}-disabled)`]:{"&, &:hover":{color:xt.optionSelectedColor,fontWeight:xt.optionSelectedFontWeight,backgroundColor:xt.optionSelectedBg}},"&-content":{flex:"auto"},[Zn]:{marginInlineStart:xt.paddingXXS,color:xt.colorTextDescription,fontSize:xt.fontSizeIcon},"&-keyword":{color:xt.colorHighlight}})}}}]};const wr=xt=>{const{componentCls:tn,antCls:Tt}=xt;return[{[tn]:{width:xt.controlWidth}},{[`${tn}-dropdown`]:[{[`&${Tt}-select-dropdown`]:{padding:0}},ar(xt)]},{[`${tn}-dropdown-rtl`]:{direction:"rtl"}},(0,Ut.c)(xt)]},er=xt=>{const tn=Math.round((xt.controlHeight-xt.fontSize*xt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:xt.controlItemBgActive,optionSelectedFontWeight:xt.fontWeightStrong,optionPadding:`${tn}px ${xt.paddingSM}px`,menuPadding:xt.paddingXXS,optionSelectedColor:xt.colorText}};var Vt=(0,Un.I$)("Cascader",xt=>[wr(xt)],er);const On=xt=>{const{componentCls:tn}=xt;return{[`${tn}-panel`]:[ar(xt),{display:"inline-flex",border:`${(0,Lt.unit)(xt.lineWidth)} ${xt.lineType} ${xt.colorSplit}`,borderRadius:xt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${tn}-menus`]:{alignItems:"stretch"},[`${tn}-menu`]:{height:"auto"},"&-empty":{padding:xt.paddingXXS}}]}};var Cr=(0,Un.A1)(["Cascader","Panel"],xt=>On(xt),er);function Hr(xt){const{prefixCls:tn,className:Tt,multiple:It,rootClassName:Zn,notFoundContent:Gn,direction:yn,expandIcon:tr,disabled:Mr}=xt,Tr=ve.useContext(Xa.Z),Qa=Mr!=null?Mr:Tr,[ua,ta,Ua,Kr]=ri(tn,yn),ya=(0,Da.Z)(ta),[qa,ai,bi]=Vt(ta,ya);Cr(ta);const Ba=Ua==="rtl",[ra,eo]=qt(ua,Ba,tr),wi=Gn||(Kr==null?void 0:Kr("Cascader"))||ve.createElement(Br.Z,{componentName:"Cascader"}),Ta=hi(ta,It);return qa(ve.createElement(wn,Object.assign({},xt,{checkable:Ta,prefixCls:ta,className:Je()(Tt,ai,Zn,bi,ya),notFoundContent:wi,direction:Ua,expandIcon:ra,loadingIcon:eo,disabled:Qa})))}var jr=Hr,Nr=function(xt,tn){var Tt={};for(var It in xt)Object.prototype.hasOwnProperty.call(xt,It)&&tn.indexOf(It)<0&&(Tt[It]=xt[It]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,It=Object.getOwnPropertySymbols(xt);ZnMr===0?[tr]:[].concat((0,E.Z)(yn),[tn,tr]),[]),Zn=[];let Gn=0;return It.forEach((yn,tr)=>{const Mr=Gn+yn.length;let Tr=xt.slice(Gn,Mr);Gn=Mr,tr%2===1&&(Tr=ve.createElement("span",{className:`${Tt}-menu-item-keyword`,key:`separator-${tr}`},Tr)),Zn.push(Tr)}),Zn}const rn=(xt,tn,Tt,It)=>{const Zn=[],Gn=xt.toLowerCase();return tn.forEach((yn,tr)=>{tr!==0&&Zn.push(" / ");let Mr=yn[It.label];const Tr=typeof Mr;(Tr==="string"||Tr==="number")&&(Mr=An(String(Mr),Gn,Tt)),Zn.push(Mr)}),Zn},Yi=ve.forwardRef((xt,tn)=>{var Tt;const{prefixCls:It,size:Zn,disabled:Gn,className:yn,rootClassName:tr,multiple:Mr,bordered:Tr=!0,transitionName:Qa,choiceTransitionName:ua="",popupClassName:ta,dropdownClassName:Ua,expandIcon:Kr,placement:ya,showSearch:qa,allowClear:ai=!0,notFoundContent:bi,direction:Ba,getPopupContainer:ra,status:eo,showArrow:wi,builtinPlacements:Ta,style:oi,variant:ki}=xt,ti=Nr(xt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),_a=(0,Qr.Z)(ti,["suffixIcon"]),{getPrefixCls:ci,getPopupContainer:Ai,className:Fo,style:Qi}=(0,Er.dj)("cascader"),{popupOverflow:Hi}=ve.useContext(Er.E_),{status:oo,hasFeedback:na,isFormItemInput:to,feedbackIcon:Fi}=ve.useContext(En.aM),Oo=(0,un.F)(oo,eo),[Ni,li,_e,Jt]=ri(It,Ba),nn=_e==="rtl",Fn=ci(),Zt=(0,Da.Z)(Ni),[Xt,an,Qt]=(0,Aa.Z)(Ni,Zt),en=(0,Da.Z)(li),[Wn]=Vt(li,en),{compactSize:fr,compactItemClassnames:pr}=(0,Ii.ri)(Ni,Ba),[cr,Xr]=(0,nr.Z)("cascader",ki,Tr),ca=bi||(Jt==null?void 0:Jt("Cascader"))||ve.createElement(Br.Z,{componentName:"Cascader"}),La=Je()(ta||Ua,`${li}-dropdown`,{[`${li}-dropdown-rtl`]:_e==="rtl"},tr,Zt,en,an,Qt),Pa=ve.useMemo(()=>{if(!qa)return qa;let vl={render:rn};return typeof qa=="object"&&(vl=Object.assign(Object.assign({},vl),qa)),vl},[qa]),Xi=(0,Sr.Z)(vl=>{var zo;return(zo=Zn!=null?Zn:fr)!==null&&zo!==void 0?zo:vl}),ji=ve.useContext(Xa.Z),Do=Gn!=null?Gn:ji,[dl,al]=qt(Ni,nn,Kr),Xo=hi(li,Mr),bl=(0,Ei.Z)(xt.suffixIcon,wi),{suffixIcon:Ao,removeIcon:mo,clearIcon:Rl}=(0,ga.Z)(Object.assign(Object.assign({},xt),{hasFeedback:na,feedbackIcon:Fi,showSuffixIcon:bl,multiple:Mr,prefixCls:Ni,componentName:"Cascader"})),Cl=ve.useMemo(()=>ya!==void 0?ya:nn?"bottomRight":"bottomLeft",[ya,nn]),Zl=ai===!0?{clearIcon:Rl}:ai,[ql]=(0,ur.Cn)("SelectLike",(Tt=_a.dropdownStyle)===null||Tt===void 0?void 0:Tt.zIndex),Fl=ve.createElement(va,Object.assign({prefixCls:Ni,className:Je()(!It&&li,{[`${Ni}-lg`]:Xi==="large",[`${Ni}-sm`]:Xi==="small",[`${Ni}-rtl`]:nn,[`${Ni}-${cr}`]:Xr,[`${Ni}-in-form-item`]:to},(0,un.Z)(Ni,Oo,na),pr,Fo,yn,tr,Zt,en,an,Qt),disabled:Do,style:Object.assign(Object.assign({},Qi),oi)},_a,{builtinPlacements:(0,$r.Z)(Ta,Hi),direction:_e,placement:Cl,notFoundContent:ca,allowClear:Zl,showSearch:Pa,expandIcon:dl,suffixIcon:Ao,removeIcon:mo,loadingIcon:al,checkable:Xo,dropdownClassName:La,dropdownPrefixCls:It||li,dropdownStyle:Object.assign(Object.assign({},_a.dropdownStyle),{zIndex:ql}),choiceTransitionName:(0,Sn.m)(Fn,"",ua),transitionName:(0,Sn.m)(Fn,"slide-up",Qa),getPopupContainer:ra||Ai,ref:tn}));return Wn(Xt(Fl))}),$o=(0,sr.Z)(Yi,"dropdownAlign",xt=>(0,Qr.Z)(xt,["visible"]));Yi.SHOW_PARENT=za,Yi.SHOW_CHILD=Ga,Yi.Panel=jr,Yi._InternalPanelDoNotUseOrYouWillBeFired=$o;var Ki=Yi},24017:function(_t,Pt,ne){"use strict";ne.d(Pt,{default:function(){return hu}});var E=ne(66649),ve=ne.n(E),xe=ne(9007),Je=ne.n(xe),We=ne(50991),Ae=ne.n(We),Ue=ne(9084),tt=ne.n(Ue),Se=ne(58626),Re=ne.n(Se),Qe=ne(13477),qe=ne.n(Qe),ht=ne(64796),Ge=ne.n(ht);ve().extend(Ge()),ve().extend(qe()),ve().extend(Je()),ve().extend(Ae()),ve().extend(tt()),ve().extend(Re()),ve().extend(function(re,ye){var Me=ye.prototype,et=Me.format;Me.format=function(Ct){var Rt=(Ct||"").replace("Wo","wo");return et.bind(this)(Rt)}});var Oe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Be=function(ye){var Me=Oe[ye];return Me||ye.split("_")[0]},be=function(){},Pe={getNow:function(){var ye=ve()();return typeof ye.tz=="function"?ye.tz():ye},getFixedDate:function(ye){return ve()(ye,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(ye){return ye.endOf("month")},getWeekDay:function(ye){var Me=ye.locale("en");return Me.weekday()+Me.localeData().firstDayOfWeek()},getYear:function(ye){return ye.year()},getMonth:function(ye){return ye.month()},getDate:function(ye){return ye.date()},getHour:function(ye){return ye.hour()},getMinute:function(ye){return ye.minute()},getSecond:function(ye){return ye.second()},getMillisecond:function(ye){return ye.millisecond()},addYear:function(ye,Me){return ye.add(Me,"year")},addMonth:function(ye,Me){return ye.add(Me,"month")},addDate:function(ye,Me){return ye.add(Me,"day")},setYear:function(ye,Me){return ye.year(Me)},setMonth:function(ye,Me){return ye.month(Me)},setDate:function(ye,Me){return ye.date(Me)},setHour:function(ye,Me){return ye.hour(Me)},setMinute:function(ye,Me){return ye.minute(Me)},setSecond:function(ye,Me){return ye.second(Me)},setMillisecond:function(ye,Me){return ye.millisecond(Me)},isAfter:function(ye,Me){return ye.isAfter(Me)},isValidate:function(ye){return ye.isValid()},locale:{getWeekFirstDay:function(ye){return ve()().locale(Be(ye)).localeData().firstDayOfWeek()},getWeekFirstDate:function(ye,Me){return Me.locale(Be(ye)).weekday(0)},getWeek:function(ye,Me){return Me.locale(Be(ye)).week()},getShortWeekDays:function(ye){return ve()().locale(Be(ye)).localeData().weekdaysMin()},getShortMonths:function(ye){return ve()().locale(Be(ye)).localeData().monthsShort()},format:function(ye,Me,et){return Me.locale(Be(ye)).format(et)},parse:function(ye,Me,et){for(var rt=Be(ye),Ct=0;Ct2&&arguments[2]!==void 0?arguments[2]:"0",et=String(re);et.length2&&arguments[2]!==void 0?arguments[2]:[],et=pe.useState([!1,!1]),rt=(0,Ve.Z)(et,2),Ct=rt[0],Rt=rt[1],jt=function(Gt,Bn){Rt(function(Ot){return on(Ot,Bn,Gt)})},pn=pe.useMemo(function(){return Ct.map(function(vn,Gt){if(vn)return!0;var Bn=re[Gt];return Bn?!!(!Me[Gt]&&!Bn||Bn&&ye(Bn,{activeIndex:Gt})):!1})},[re,Ct,ye,Me]);return[pn,jt]}function Ar(re,ye,Me,et,rt){var Ct="",Rt=[];return re&&Rt.push(rt?"hh":"HH"),ye&&Rt.push("mm"),Me&&Rt.push("ss"),Ct=Rt.join(":"),et&&(Ct+=".SSS"),rt&&(Ct+=" A"),Ct}function Jn(re,ye,Me,et,rt,Ct){var Rt=re.fieldDateTimeFormat,jt=re.fieldDateFormat,pn=re.fieldTimeFormat,vn=re.fieldMonthFormat,Gt=re.fieldYearFormat,Bn=re.fieldWeekFormat,Ot=re.fieldQuarterFormat,Tn=re.yearFormat,In=re.cellYearFormat,jn=re.cellQuarterFormat,Vn=re.dayFormat,zn=re.cellDateFormat,Dr=Ar(ye,Me,et,rt,Ct);return(0,je.Z)((0,je.Z)({},re),{},{fieldDateTimeFormat:Rt||"YYYY-MM-DD ".concat(Dr),fieldDateFormat:jt||"YYYY-MM-DD",fieldTimeFormat:pn||Dr,fieldMonthFormat:vn||"YYYY-MM",fieldYearFormat:Gt||"YYYY",fieldWeekFormat:Bn||"gggg-wo",fieldQuarterFormat:Ot||"YYYY-[Q]Q",yearFormat:Tn||"YYYY",cellYearFormat:In||"YYYY",cellQuarterFormat:jn||"[Q]Q",cellDateFormat:zn||Vn||"D"})}function va(re,ye){var Me=ye.showHour,et=ye.showMinute,rt=ye.showSecond,Ct=ye.showMillisecond,Rt=ye.use12Hours;return pe.useMemo(function(){return Jn(re,Me,et,rt,Ct,Rt)},[re,Me,et,rt,Ct,Rt])}var Qr=ne(76190);function ur(re,ye,Me){return Me!=null?Me:ye.some(function(et){return re.includes(et)})}var Sn=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function sr(re){var ye=kn(re,Sn),Me=re.format,et=re.picker,rt=null;return Me&&(rt=Me,Array.isArray(rt)&&(rt=rt[0]),rt=(0,Qr.Z)(rt)==="object"?rt.format:rt),et==="time"&&(ye.format=rt),[ye,rt]}function un(re){return re&&typeof re=="string"}function Er(re,ye,Me,et){return[re,ye,Me,et].some(function(rt){return rt!==void 0})}function Br(re,ye,Me,et,rt){var Ct=ye,Rt=Me,jt=et;if(!re&&!Ct&&!Rt&&!jt&&!rt)Ct=!0,Rt=!0,jt=!0;else if(re){var pn,vn,Gt,Bn=[Ct,Rt,jt].some(function(In){return In===!1}),Ot=[Ct,Rt,jt].some(function(In){return In===!0}),Tn=Bn?!0:!Ot;Ct=(pn=Ct)!==null&&pn!==void 0?pn:Tn,Rt=(vn=Rt)!==null&&vn!==void 0?vn:Tn,jt=(Gt=jt)!==null&&Gt!==void 0?Gt:Tn}return[Ct,Rt,jt,rt]}function Xa(re){var ye=re.showTime,Me=sr(re),et=(0,Ve.Z)(Me,2),rt=et[0],Ct=et[1],Rt=ye&&(0,Qr.Z)(ye)==="object"?ye:{},jt=(0,je.Z)((0,je.Z)({defaultOpenValue:Rt.defaultOpenValue||Rt.defaultValue},rt),Rt),pn=jt.showMillisecond,vn=jt.showHour,Gt=jt.showMinute,Bn=jt.showSecond,Ot=Er(vn,Gt,Bn,pn),Tn=Br(Ot,vn,Gt,Bn,pn),In=(0,Ve.Z)(Tn,3);return vn=In[0],Gt=In[1],Bn=In[2],[jt,(0,je.Z)((0,je.Z)({},jt),{},{showHour:vn,showMinute:Gt,showSecond:Bn,showMillisecond:pn}),jt.format,Ct]}function Da(re,ye,Me,et,rt){var Ct=re==="time";if(re==="datetime"||Ct){for(var Rt=et,jt=wn(re,rt,null),pn=jt,vn=[ye,Me],Gt=0;Gt1&&(Rt=ye.addDate(Rt,-7)),Rt}function Ut(re,ye){var Me=ye.generateConfig,et=ye.locale,rt=ye.format;return re?typeof rt=="function"?rt(re):Me.locale.format(et.locale,re,rt):""}function Un(re,ye,Me){var et=ye,rt=["getHour","getMinute","getSecond","getMillisecond"],Ct=["setHour","setMinute","setSecond","setMillisecond"];return Ct.forEach(function(Rt,jt){Me?et=re[Rt](et,re[rt[jt]](Me)):et=re[Rt](et,0)}),et}function Lt(re,ye,Me,et,rt){var Ct=(0,pt.zX)(function(Rt,jt){return!!(Me&&Me(Rt,jt)||et&&re.isAfter(et,Rt)&&!Ha(re,ye,et,Rt,jt.type)||rt&&re.isAfter(Rt,rt)&&!Ha(re,ye,rt,Rt,jt.type))});return Ct}function Dn(re,ye,Me){return pe.useMemo(function(){var et=wn(re,ye,Me),rt=Ht(et),Ct=rt[0],Rt=(0,Qr.Z)(Ct)==="object"&&Ct.type==="mask"?Ct.format:null;return[rt.map(function(jt){return typeof jt=="string"||typeof jt=="function"?jt:jt.format}),Rt]},[re,ye,Me])}function rr(re,ye,Me){return typeof re[0]=="function"||Me?!0:ye}function Rn(re,ye,Me,et){var rt=(0,pt.zX)(function(Ct,Rt){var jt=(0,je.Z)({type:ye},Rt);if(delete jt.activeIndex,!re.isValidate(Ct)||Me&&Me(Ct,jt))return!0;if((ye==="date"||ye==="time")&&et){var pn,vn=Rt&&Rt.activeIndex===1?"end":"start",Gt=((pn=et.disabledTime)===null||pn===void 0?void 0:pn.call(et,Ct,vn,{from:jt.from}))||{},Bn=Gt.disabledHours,Ot=Gt.disabledMinutes,Tn=Gt.disabledSeconds,In=Gt.disabledMilliseconds,jn=et.disabledHours,Vn=et.disabledMinutes,zn=et.disabledSeconds,Dr=Bn||jn,dr=Ot||Vn,bn=Tn||zn,br=re.getHour(Ct),qn=re.getMinute(Ct),mr=re.getSecond(Ct),Oa=re.getMillisecond(Ct);if(Dr&&Dr().includes(br)||dr&&dr(br).includes(qn)||bn&&bn(br,qn).includes(mr)||In&&In(br,qn,mr).includes(Oa))return!0}return!1});return rt}function ar(re){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=pe.useMemo(function(){var et=re&&Ht(re);return ye&&et&&(et[1]=et[1]||et[0]),et},[re,ye]);return Me}function wr(re,ye){var Me=re.generateConfig,et=re.locale,rt=re.picker,Ct=rt===void 0?"date":rt,Rt=re.prefixCls,jt=Rt===void 0?"rc-picker":Rt,pn=re.styles,vn=pn===void 0?{}:pn,Gt=re.classNames,Bn=Gt===void 0?{}:Gt,Ot=re.order,Tn=Ot===void 0?!0:Ot,In=re.components,jn=In===void 0?{}:In,Vn=re.inputRender,zn=re.allowClear,Dr=re.clearIcon,dr=re.needConfirm,bn=re.multiple,br=re.format,qn=re.inputReadOnly,mr=re.disabledDate,Oa=re.minDate,ia=re.maxDate,Lr=re.showTime,aa=re.value,Wa=re.defaultValue,pa=re.pickerValue,Ur=re.defaultPickerValue,_r=ar(aa),Jr=ar(Wa),Gr=ar(pa),ka=ar(Ur),Ea=Ct==="date"&&Lr?"datetime":Ct,oa=Ea==="time"||Ea==="datetime",ma=oa||bn,Yr=dr!=null?dr:oa,ha=Xa(re),fa=(0,Ve.Z)(ha,4),ni=fa[0],di=fa[1],mi=fa[2],vi=fa[3],$a=va(et,di),Li=pe.useMemo(function(){return Da(Ea,mi,vi,ni,$a)},[Ea,mi,vi,ni,$a]),fn=pe.useMemo(function(){return(0,je.Z)((0,je.Z)({},re),{},{prefixCls:jt,locale:$a,picker:Ct,styles:vn,classNames:Bn,order:Tn,components:(0,je.Z)({input:Vn},jn),clearIcon:Sr(jt,zn,Dr),showTime:Li,value:_r,defaultValue:Jr,pickerValue:Gr,defaultPickerValue:ka},ye==null?void 0:ye())},[re]),Oi=Dn(Ea,$a,br),no=(0,Ve.Z)(Oi,2),Bi=no[0],lo=no[1],gi=rr(Bi,qn,bn),po=Lt(Me,et,mr,Oa,ia),zi=Rn(Me,Ct,po,Li),Wi=pe.useMemo(function(){return(0,je.Z)((0,je.Z)({},fn),{},{needConfirm:Yr,inputReadOnly:gi,disabledDate:po})},[fn,Yr,gi,po]);return[Wi,Ea,ma,Bi,lo,zi]}var er=ne(16089);function Vt(re,ye,Me){var et=(0,pt.C8)(ye,{value:re}),rt=(0,Ve.Z)(et,2),Ct=rt[0],Rt=rt[1],jt=pe.useRef(re),pn=pe.useRef(),vn=function(){er.Z.cancel(pn.current)},Gt=(0,pt.zX)(function(){Rt(jt.current),Me&&Ct!==jt.current&&Me(jt.current)}),Bn=(0,pt.zX)(function(Ot,Tn){vn(),jt.current=Ot,Ot||Tn?Gt():pn.current=(0,er.Z)(Gt)});return pe.useEffect(function(){return vn},[]),[Ct,Bn]}function On(re,ye){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],et=arguments.length>3?arguments[3]:void 0,rt=Me.every(function(Gt){return Gt})?!1:re,Ct=Vt(rt,ye||!1,et),Rt=(0,Ve.Z)(Ct,2),jt=Rt[0],pn=Rt[1];function vn(Gt){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Bn.inherit||jt)&&pn(Gt,Bn.force)}return[jt,vn]}function Cr(re){var ye=pe.useRef();return pe.useImperativeHandle(re,function(){var Me;return{nativeElement:(Me=ye.current)===null||Me===void 0?void 0:Me.nativeElement,focus:function(rt){var Ct;(Ct=ye.current)===null||Ct===void 0||Ct.focus(rt)},blur:function(){var rt;(rt=ye.current)===null||rt===void 0||rt.blur()}}}),ye}function Hr(re,ye){return pe.useMemo(function(){return re||(ye?((0,dt.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ye).map(function(Me){var et=(0,Ve.Z)(Me,2),rt=et[0],Ct=et[1];return{label:rt,value:Ct}})):[])},[re,ye])}function jr(re,ye){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,et=pe.useRef(ye);et.current=ye,(0,Kt.o)(function(){if(re)et.current(re);else{var rt=(0,er.Z)(function(){et.current(re)},Me);return function(){er.Z.cancel(rt)}}},[re])}function Nr(re){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,et=pe.useState(0),rt=(0,Ve.Z)(et,2),Ct=rt[0],Rt=rt[1],jt=pe.useState(!1),pn=(0,Ve.Z)(jt,2),vn=pn[0],Gt=pn[1],Bn=pe.useRef([]),Ot=pe.useRef(null),Tn=pe.useRef(null),In=function(bn){Ot.current=bn},jn=function(bn){return Ot.current===bn},Vn=function(bn){Gt(bn)},zn=function(bn){return bn&&(Tn.current=bn),Tn.current},Dr=function(bn){var br=Bn.current,qn=new Set(br.filter(function(Oa){return bn[Oa]||ye[Oa]})),mr=br[br.length-1]===0?1:0;return qn.size>=2||re[mr]?null:mr};return jr(vn||Me,function(){vn||(Bn.current=[],In(null))}),pe.useEffect(function(){vn&&Bn.current.push(Ct)},[vn,Ct]),[vn,Vn,zn,Ct,Rt,Dr,Bn.current,In,jn]}function Ga(re,ye,Me,et,rt,Ct){var Rt=Me[Me.length-1],jt=function(vn,Gt){var Bn=(0,Ve.Z)(re,2),Ot=Bn[0],Tn=Bn[1],In=(0,je.Z)((0,je.Z)({},Gt),{},{from:Xn(re,Me)});return Rt===1&&ye[0]&&Ot&&!Ha(et,rt,Ot,vn,In.type)&&et.isAfter(Ot,vn)||Rt===0&&ye[1]&&Tn&&!Ha(et,rt,Tn,vn,In.type)&&et.isAfter(vn,Tn)?!0:Ct==null?void 0:Ct(vn,In)};return jt}function za(re,ye,Me,et){switch(ye){case"date":case"week":return re.addMonth(Me,et);case"month":case"quarter":return re.addYear(Me,et);case"year":return re.addYear(Me,et*10);case"decade":return re.addYear(Me,et*100);default:return Me}}var An=[];function rn(re,ye,Me,et,rt,Ct,Rt,jt){var pn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:An,vn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:An,Gt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:An,Bn=arguments.length>11?arguments[11]:void 0,Ot=arguments.length>12?arguments[12]:void 0,Tn=arguments.length>13?arguments[13]:void 0,In=Rt==="time",jn=Ct||0,Vn=function(Gr){var ka=re.getNow();return In&&(ka=Un(re,ka)),pn[Gr]||Me[Gr]||ka},zn=(0,Ve.Z)(vn,2),Dr=zn[0],dr=zn[1],bn=(0,pt.C8)(function(){return Vn(0)},{value:Dr}),br=(0,Ve.Z)(bn,2),qn=br[0],mr=br[1],Oa=(0,pt.C8)(function(){return Vn(1)},{value:dr}),ia=(0,Ve.Z)(Oa,2),Lr=ia[0],aa=ia[1],Wa=pe.useMemo(function(){var Jr=[qn,Lr][jn];return In?Jr:Un(re,Jr,Gt[jn])},[In,qn,Lr,jn,re,Gt]),pa=function(Gr){var ka=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ea=[mr,aa][jn];Ea(Gr);var oa=[qn,Lr];oa[jn]=Gr,Bn&&(!Ha(re,ye,qn,oa[0],Rt)||!Ha(re,ye,Lr,oa[1],Rt))&&Bn(oa,{source:ka,range:jn===1?"end":"start",mode:et})},Ur=function(Gr,ka){if(jt){var Ea={date:"month",week:"month",month:"year",quarter:"year"},oa=Ea[Rt];if(oa&&!Ha(re,ye,Gr,ka,oa))return za(re,Rt,ka,-1);if(Rt==="year"&&Gr){var ma=Math.floor(re.getYear(Gr)/10),Yr=Math.floor(re.getYear(ka)/10);if(ma!==Yr)return za(re,Rt,ka,-1)}}return ka},_r=pe.useRef(null);return(0,Kt.Z)(function(){if(rt&&!pn[jn]){var Jr=In?null:re.getNow();if(_r.current!==null&&_r.current!==jn?Jr=[qn,Lr][jn^1]:Me[jn]?Jr=jn===0?Me[0]:Ur(Me[0],Me[1]):Me[jn^1]&&(Jr=Me[jn^1]),Jr){Ot&&re.isAfter(Ot,Jr)&&(Jr=Ot);var Gr=jt?za(re,Rt,Jr,1):Jr;Tn&&re.isAfter(Gr,Tn)&&(Jr=jt?za(re,Rt,Tn,-1):Tn),pa(Jr,"reset")}}},[rt,jn,Me[jn]]),pe.useEffect(function(){rt?_r.current=jn:_r.current=null},[rt,jn]),(0,Kt.Z)(function(){rt&&pn&&pn[jn]&&pa(pn[jn],"reset")},[rt,jn]),[Wa,pa]}function Yi(re,ye){var Me=pe.useRef(re),et=pe.useState({}),rt=(0,Ve.Z)(et,2),Ct=rt[1],Rt=function(vn){return vn&&ye!==void 0?ye:Me.current},jt=function(vn){Me.current=vn,Ct({})};return[Rt,jt,Rt(!0)]}var $o=[];function Ki(re,ye,Me){var et=function(Rt){return Rt.map(function(jt){return Ut(jt,{generateConfig:re,locale:ye,format:Me[0]})})},rt=function(Rt,jt){for(var pn=Math.max(Rt.length,jt.length),vn=-1,Gt=0;Gt2&&arguments[2]!==void 0?arguments[2]:1,et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Ct=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Rt=[],jt=Me>=1?Me|0:1,pn=re;pn<=ye;pn+=jt){var vn=rt.includes(pn);(!vn||!et)&&Rt.push({label:ot(pn,Ct),value:pn,disabled:vn})}return Rt}function Tr(re){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=arguments.length>2?arguments[2]:void 0,et=ye||{},rt=et.use12Hours,Ct=et.hourStep,Rt=Ct===void 0?1:Ct,jt=et.minuteStep,pn=jt===void 0?1:jt,vn=et.secondStep,Gt=vn===void 0?1:vn,Bn=et.millisecondStep,Ot=Bn===void 0?100:Bn,Tn=et.hideDisabledOptions,In=et.disabledTime,jn=et.disabledHours,Vn=et.disabledMinutes,zn=et.disabledSeconds,Dr=pe.useMemo(function(){return Me||re.getNow()},[Me,re]);if(0)var dr,bn,br;var qn=pe.useCallback(function(ma){var Yr=(In==null?void 0:In(ma))||{};return[Yr.disabledHours||jn||tr,Yr.disabledMinutes||Vn||tr,Yr.disabledSeconds||zn||tr,Yr.disabledMilliseconds||tr]},[In,jn,Vn,zn]),mr=pe.useMemo(function(){return qn(Dr)},[Dr,qn]),Oa=(0,Ve.Z)(mr,4),ia=Oa[0],Lr=Oa[1],aa=Oa[2],Wa=Oa[3],pa=pe.useCallback(function(ma,Yr,ha,fa){var ni=Mr(0,23,Rt,Tn,ma()),di=rt?ni.map(function(Li){return(0,je.Z)((0,je.Z)({},Li),{},{label:ot(Li.value%12||12,2)})}):ni,mi=function(fn){return Mr(0,59,pn,Tn,Yr(fn))},vi=function(fn,Oi){return Mr(0,59,Gt,Tn,ha(fn,Oi))},$a=function(fn,Oi,no){return Mr(0,999,Ot,Tn,fa(fn,Oi,no),3)};return[di,mi,vi,$a]},[Tn,Rt,rt,Ot,pn,Gt]),Ur=pe.useMemo(function(){return pa(ia,Lr,aa,Wa)},[pa,ia,Lr,aa,Wa]),_r=(0,Ve.Z)(Ur,4),Jr=_r[0],Gr=_r[1],ka=_r[2],Ea=_r[3],oa=function(Yr,ha){var fa=function(){return Jr},ni=Gr,di=ka,mi=Ea;if(ha){var vi=qn(ha),$a=(0,Ve.Z)(vi,4),Li=$a[0],fn=$a[1],Oi=$a[2],no=$a[3],Bi=pa(Li,fn,Oi,no),lo=(0,Ve.Z)(Bi,4),gi=lo[0],po=lo[1],zi=lo[2],Wi=lo[3];fa=function(){return gi},ni=po,di=zi,mi=Wi}var ho=yn(Yr,fa,ni,di,mi,re);return ho};return[oa,Jr,Gr,ka,Ea]}function Qa(re){var ye=re.mode,Me=re.internalMode,et=re.renderExtraFooter,rt=re.showNow,Ct=re.showTime,Rt=re.onSubmit,jt=re.onNow,pn=re.invalid,vn=re.needConfirm,Gt=re.generateConfig,Bn=re.disabledDate,Ot=pe.useContext(ae),Tn=Ot.prefixCls,In=Ot.locale,jn=Ot.button,Vn=jn===void 0?"button":jn,zn=Gt.getNow(),Dr=Tr(Gt,Ct,zn),dr=(0,Ve.Z)(Dr,1),bn=dr[0],br=et==null?void 0:et(ye),qn=Bn(zn,{type:ye}),mr=function(){if(!qn){var Ur=bn(zn);jt(Ur)}},Oa="".concat(Tn,"-now"),ia="".concat(Oa,"-btn"),Lr=rt&&pe.createElement("li",{className:Oa},pe.createElement("a",{className:wt()(ia,qn&&"".concat(ia,"-disabled")),"aria-disabled":qn,onClick:mr},Me==="date"?In.today:In.now)),aa=vn&&pe.createElement("li",{className:"".concat(Tn,"-ok")},pe.createElement(Vn,{disabled:pn,onClick:Rt},In.ok)),Wa=(Lr||aa)&&pe.createElement("ul",{className:"".concat(Tn,"-ranges")},Lr,aa);return!br&&!Wa?null:pe.createElement("div",{className:"".concat(Tn,"-footer")},br&&pe.createElement("div",{className:"".concat(Tn,"-footer-extra")},br),Wa)}function ua(re,ye,Me){function et(rt,Ct){var Rt=rt.findIndex(function(pn){return Ha(re,ye,pn,Ct,Me)});if(Rt===-1)return[].concat((0,yt.Z)(rt),[Ct]);var jt=(0,yt.Z)(rt);return jt.splice(Rt,1),jt}return et}var ta=pe.createContext(null);function Ua(){return pe.useContext(ta)}function Kr(re,ye){var Me=re.prefixCls,et=re.generateConfig,rt=re.locale,Ct=re.disabledDate,Rt=re.minDate,jt=re.maxDate,pn=re.cellRender,vn=re.hoverValue,Gt=re.hoverRangeValue,Bn=re.onHover,Ot=re.values,Tn=re.pickerValue,In=re.onSelect,jn=re.prevIcon,Vn=re.nextIcon,zn=re.superPrevIcon,Dr=re.superNextIcon,dr=et.getNow(),bn={now:dr,values:Ot,pickerValue:Tn,prefixCls:Me,disabledDate:Ct,minDate:Rt,maxDate:jt,cellRender:pn,hoverValue:vn,hoverRangeValue:Gt,onHover:Bn,locale:rt,generateConfig:et,onSelect:In,panelType:ye,prevIcon:jn,nextIcon:Vn,superPrevIcon:zn,superNextIcon:Dr};return[bn,dr]}var ya=pe.createContext({});function qa(re){for(var ye=re.rowNum,Me=re.colNum,et=re.baseDate,rt=re.getCellDate,Ct=re.prefixColumn,Rt=re.rowClassName,jt=re.titleFormat,pn=re.getCellText,vn=re.getCellClassName,Gt=re.headerCells,Bn=re.cellSelection,Ot=Bn===void 0?!0:Bn,Tn=re.disabledDate,In=Ua(),jn=In.prefixCls,Vn=In.panelType,zn=In.now,Dr=In.disabledDate,dr=In.cellRender,bn=In.onHover,br=In.hoverValue,qn=In.hoverRangeValue,mr=In.generateConfig,Oa=In.values,ia=In.locale,Lr=In.onSelect,aa=Tn||Dr,Wa="".concat(jn,"-cell"),pa=pe.useContext(ya),Ur=pa.onCellDblClick,_r=function(ha){return Oa.some(function(fa){return fa&&Ha(mr,ia,ha,fa,Vn)})},Jr=[],Gr=0;Gr1&&arguments[1]!==void 0?arguments[1]:!1;wa(Ca),Vn==null||Vn(Ca),co&&Ji(Ca)},jo=function(Ca,co){$a(Ca),co&&yo(co),Ji(co,Ca)},so=function(Ca){if(zi(Ca),yo(Ca),vi!==bn){var co=["decade","year"],xa=[].concat(co,["month"]),ja={quarter:[].concat(co,["quarter"]),week:[].concat((0,yt.Z)(xa),["week"]),date:[].concat((0,yt.Z)(xa),["date"])},ko=ja[bn]||xa,nl=ko.indexOf(vi),gl=ko[nl+1];gl&&jo(gl,Ca)}},tl=pe.useMemo(function(){var Ya,Ca;if(Array.isArray(mr)){var co=(0,Ve.Z)(mr,2);Ya=co[0],Ca=co[1]}else Ya=mr;return!Ya&&!Ca?null:(Ya=Ya||Ca,Ca=Ca||Ya,rt.isAfter(Ya,Ca)?[Ca,Ya]:[Ya,Ca])},[mr,rt]),So=Pr(Oa,ia,Lr),uo=Wa[Li]||Fi[Li]||ra,vo=pe.useContext(ya),Rr=pe.useMemo(function(){return(0,je.Z)((0,je.Z)({},vo),{},{hideHeader:pa})},[vo,pa]),fi="".concat(Ur,"-panel"),Kl=kn(re,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return pe.createElement(ya.Provider,{value:Rr},pe.createElement("div",{ref:_r,tabIndex:pn,className:wt()(fi,(0,Nt.Z)({},"".concat(fi,"-rtl"),Ct==="rtl"))},pe.createElement(uo,(0,Ke.Z)({},Kl,{showTime:fa,prefixCls:Ur,locale:Yr,generateConfig:rt,onModeChange:jo,pickerValue:ba,onPickerValueChange:function(Ca){yo(Ca,!0)},value:gi[0],onSelect:so,values:gi,cellRender:So,hoverRangeValue:tl,hoverValue:qn}))))}var Ni=pe.memo(pe.forwardRef(Oo)),li=Ni;function _e(re){var ye=re.picker,Me=re.multiplePanel,et=re.pickerValue,rt=re.onPickerValueChange,Ct=re.needConfirm,Rt=re.onSubmit,jt=re.range,pn=re.hoverValue,vn=pe.useContext(ae),Gt=vn.prefixCls,Bn=vn.generateConfig,Ot=pe.useCallback(function(Dr,dr){return za(Bn,ye,Dr,dr)},[Bn,ye]),Tn=pe.useMemo(function(){return Ot(et,1)},[et,Ot]),In=function(dr){rt(Ot(dr,-1))},jn={onCellDblClick:function(){Ct&&Rt()}},Vn=ye==="time",zn=(0,je.Z)((0,je.Z)({},re),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Vn});return jt?zn.hoverRangeValue=pn:zn.hoverValue=pn,Me?pe.createElement("div",{className:"".concat(Gt,"-panels")},pe.createElement(ya.Provider,{value:(0,je.Z)((0,je.Z)({},jn),{},{hideNext:!0})},pe.createElement(li,zn)),pe.createElement(ya.Provider,{value:(0,je.Z)((0,je.Z)({},jn),{},{hidePrev:!0})},pe.createElement(li,(0,Ke.Z)({},zn,{pickerValue:Tn,onPickerValueChange:In})))):pe.createElement(ya.Provider,{value:(0,je.Z)({},jn)},pe.createElement(li,zn))}function Jt(re){return typeof re=="function"?re():re}function nn(re){var ye=re.prefixCls,Me=re.presets,et=re.onClick,rt=re.onHover;return Me.length?pe.createElement("div",{className:"".concat(ye,"-presets")},pe.createElement("ul",null,Me.map(function(Ct,Rt){var jt=Ct.label,pn=Ct.value;return pe.createElement("li",{key:Rt,onClick:function(){et(Jt(pn))},onMouseEnter:function(){rt(Jt(pn))},onMouseLeave:function(){rt(null)}},jt)}))):null}function Fn(re){var ye=re.panelRender,Me=re.internalMode,et=re.picker,rt=re.showNow,Ct=re.range,Rt=re.multiple,jt=re.activeInfo,pn=jt===void 0?[0,0,0]:jt,vn=re.presets,Gt=re.onPresetHover,Bn=re.onPresetSubmit,Ot=re.onFocus,Tn=re.onBlur,In=re.onPanelMouseDown,jn=re.direction,Vn=re.value,zn=re.onSelect,Dr=re.isInvalid,dr=re.defaultOpenValue,bn=re.onOk,br=re.onSubmit,qn=pe.useContext(ae),mr=qn.prefixCls,Oa="".concat(mr,"-panel"),ia=jn==="rtl",Lr=pe.useRef(null),aa=pe.useRef(null),Wa=pe.useState(0),pa=(0,Ve.Z)(Wa,2),Ur=pa[0],_r=pa[1],Jr=pe.useState(0),Gr=(0,Ve.Z)(Jr,2),ka=Gr[0],Ea=Gr[1],oa=pe.useState(0),ma=(0,Ve.Z)(oa,2),Yr=ma[0],ha=ma[1],fa=function(so){so.width&&_r(so.width)},ni=(0,Ve.Z)(pn,3),di=ni[0],mi=ni[1],vi=ni[2],$a=pe.useState(0),Li=(0,Ve.Z)($a,2),fn=Li[0],Oi=Li[1];pe.useEffect(function(){Oi(10)},[di]),pe.useEffect(function(){if(Ct&&aa.current){var jo,so=((jo=Lr.current)===null||jo===void 0?void 0:jo.offsetWidth)||0,tl=aa.current.getBoundingClientRect();if(!tl.height||tl.right<0){Oi(function(Rr){return Math.max(0,Rr-1)});return}var So=(ia?mi-so:di)-tl.left;if(ha(So),Ur&&Ur=jt&&Me<=pn)return Ct;var vn=Math.min(Math.abs(Me-jt),Math.abs(Me-pn));vn0?Yt:_n));var zt=hn+ue,Mn=_n-Yt+1;return String(Yt+(Mn+zt-Yt)%Mn)};switch(co){case"Backspace":case"Delete":xa="",ja=nl;break;case"ArrowLeft":xa="",gl(-1);break;case"ArrowRight":xa="",gl(1);break;case"ArrowUp":xa="",ja=jl(1);break;case"ArrowDown":xa="",ja=jl(-1);break;default:isNaN(Number(co))||(xa=Yr+co,ja=xa);break}if(xa!==null&&(ha(xa),xa.length>=ko&&(gl(1),ha(""))),ja!==null){var Wl=Oi.slice(0,zi)+ot(ja,ko)+Oi.slice(Wi);ba(Wl.slice(0,Rt.length))}fn({})},fi=pe.useRef();(0,Kt.Z)(function(){if(!(!Ur||!Rt||yo.current)){if(!lo.match(Oi)){ba(Rt);return}return Bi.current.setSelectionRange(zi,Wi),fi.current=(0,er.Z)(function(){Bi.current.setSelectionRange(zi,Wi)}),function(){er.Z.cancel(fi.current)}}},[lo,Rt,Ur,Oi,di,zi,Wi,Li,ba]);var Kl=Rt?{onFocus:tl,onBlur:uo,onKeyDown:Rr,onMouseDown:jo,onMouseUp:so,onPaste:Ji}:{};return pe.createElement("div",{ref:no,className:wt()(aa,(0,Nt.Z)((0,Nt.Z)({},"".concat(aa,"-active"),Me&&rt),"".concat(aa,"-placeholder"),Gt))},pe.createElement(Lr,(0,Ke.Z)({ref:Bi,"aria-invalid":Vn,autoComplete:"off"},Dr,{onKeyDown:vo,onBlur:So},Kl,{value:Oi,onChange:wa})),pe.createElement(fr,{type:"suffix",icon:Ct}),zn)}),dl=Do,al=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Xo=["index"];function bl(re,ye){var Me=re.id,et=re.prefix,rt=re.clearIcon,Ct=re.suffixIcon,Rt=re.separator,jt=Rt===void 0?"~":Rt,pn=re.activeIndex,vn=re.activeHelp,Gt=re.allHelp,Bn=re.focused,Ot=re.onFocus,Tn=re.onBlur,In=re.onKeyDown,jn=re.locale,Vn=re.generateConfig,zn=re.placeholder,Dr=re.className,dr=re.style,bn=re.onClick,br=re.onClear,qn=re.value,mr=re.onChange,Oa=re.onSubmit,ia=re.onInputChange,Lr=re.format,aa=re.maskFormat,Wa=re.preserveInvalidOnBlur,pa=re.onInvalid,Ur=re.disabled,_r=re.invalid,Jr=re.inputReadOnly,Gr=re.direction,ka=re.onOpenChange,Ea=re.onActiveInfo,oa=re.placement,ma=re.onMouseDown,Yr=re.required,ha=re["aria-required"],fa=re.autoFocus,ni=re.tabIndex,di=(0,Zt.Z)(re,al),mi=Gr==="rtl",vi=pe.useContext(ae),$a=vi.prefixCls,Li=pe.useMemo(function(){if(typeof Me=="string")return[Me];var So=Me||{};return[So.start,So.end]},[Me]),fn=pe.useRef(),Oi=pe.useRef(),no=pe.useRef(),Bi=function(uo){var vo;return(vo=[Oi,no][uo])===null||vo===void 0?void 0:vo.current};pe.useImperativeHandle(ye,function(){return{nativeElement:fn.current,focus:function(uo){if((0,Qr.Z)(uo)==="object"){var vo,Rr=uo||{},fi=Rr.index,Kl=fi===void 0?0:fi,Ya=(0,Zt.Z)(Rr,Xo);(vo=Bi(Kl))===null||vo===void 0||vo.focus(Ya)}else{var Ca;(Ca=Bi(uo!=null?uo:0))===null||Ca===void 0||Ca.focus()}},blur:function(){var uo,vo;(uo=Bi(0))===null||uo===void 0||uo.blur(),(vo=Bi(1))===null||vo===void 0||vo.blur()}}});var lo=Qt(di),gi=pe.useMemo(function(){return Array.isArray(zn)?zn:[zn,zn]},[zn]),po=Xt((0,je.Z)((0,je.Z)({},re),{},{id:Li,placeholder:gi})),zi=(0,Ve.Z)(po,1),Wi=zi[0],ho=pe.useState({position:"absolute",width:0}),ba=(0,Ve.Z)(ho,2),wa=ba[0],Ji=ba[1],yo=(0,pt.zX)(function(){var So=Bi(pn);if(So){var uo=So.nativeElement.getBoundingClientRect(),vo=fn.current.getBoundingClientRect(),Rr=uo.left-vo.left;Ji(function(fi){return(0,je.Z)((0,je.Z)({},fi),{},{width:uo.width,left:Rr})}),Ea([uo.left,uo.right,vo.width])}});pe.useEffect(function(){yo()},[pn]);var jo=rt&&(qn[0]&&!Ur[0]||qn[1]&&!Ur[1]),so=fa&&!Ur[0],tl=fa&&!so&&!Ur[1];return pe.createElement(Gn.Z,{onResize:yo},pe.createElement("div",(0,Ke.Z)({},lo,{className:wt()($a,"".concat($a,"-range"),(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat($a,"-focused"),Bn),"".concat($a,"-disabled"),Ur.every(function(So){return So})),"".concat($a,"-invalid"),_r.some(function(So){return So})),"".concat($a,"-rtl"),mi),Dr),style:dr,ref:fn,onClick:bn,onMouseDown:function(uo){var vo=uo.target;vo!==Oi.current.inputElement&&vo!==no.current.inputElement&&uo.preventDefault(),ma==null||ma(uo)}}),et&&pe.createElement("div",{className:"".concat($a,"-prefix")},et),pe.createElement(dl,(0,Ke.Z)({ref:Oi},Wi(0),{autoFocus:so,tabIndex:ni,"date-range":"start"})),pe.createElement("div",{className:"".concat($a,"-range-separator")},jt),pe.createElement(dl,(0,Ke.Z)({ref:no},Wi(1),{autoFocus:tl,tabIndex:ni,"date-range":"end"})),pe.createElement("div",{className:"".concat($a,"-active-bar"),style:wa}),pe.createElement(fr,{type:"suffix",icon:Ct}),jo&&pe.createElement(pr,{icon:rt,onClear:br})))}var Ao=pe.forwardRef(bl),mo=Ao;function Rl(re,ye){var Me=re!=null?re:ye;return Array.isArray(Me)?Me:[Me,Me]}function Cl(re){return re===1?"end":"start"}function Zl(re,ye){var Me=wr(re,function(){var qi=re.disabled,Si=re.allowEmpty,Ri=Rl(qi,!1),Za=Rl(Si,!1);return{disabled:Ri,allowEmpty:Za}}),et=(0,Ve.Z)(Me,6),rt=et[0],Ct=et[1],Rt=et[2],jt=et[3],pn=et[4],vn=et[5],Gt=rt.prefixCls,Bn=rt.styles,Ot=rt.classNames,Tn=rt.defaultValue,In=rt.value,jn=rt.needConfirm,Vn=rt.onKeyDown,zn=rt.disabled,Dr=rt.allowEmpty,dr=rt.disabledDate,bn=rt.minDate,br=rt.maxDate,qn=rt.defaultOpen,mr=rt.open,Oa=rt.onOpenChange,ia=rt.locale,Lr=rt.generateConfig,aa=rt.picker,Wa=rt.showNow,pa=rt.showToday,Ur=rt.showTime,_r=rt.mode,Jr=rt.onPanelChange,Gr=rt.onCalendarChange,ka=rt.onOk,Ea=rt.defaultPickerValue,oa=rt.pickerValue,ma=rt.onPickerValueChange,Yr=rt.inputReadOnly,ha=rt.suffixIcon,fa=rt.onFocus,ni=rt.onBlur,di=rt.presets,mi=rt.ranges,vi=rt.components,$a=rt.cellRender,Li=rt.dateRender,fn=rt.monthCellRender,Oi=rt.onClick,no=Cr(ye),Bi=On(mr,qn,zn,Oa),lo=(0,Ve.Z)(Bi,2),gi=lo[0],po=lo[1],zi=function(Si,Ri){(zn.some(function(Za){return!Za})||!Si)&&po(Si,Ri)},Wi=Tt(Lr,ia,jt,!0,!1,Tn,In,Gr,ka),ho=(0,Ve.Z)(Wi,5),ba=ho[0],wa=ho[1],Ji=ho[2],yo=ho[3],jo=ho[4],so=Ji(),tl=Nr(zn,Dr,gi),So=(0,Ve.Z)(tl,9),uo=So[0],vo=So[1],Rr=So[2],fi=So[3],Kl=So[4],Ya=So[5],Ca=So[6],co=So[7],xa=So[8],ja=function(Si,Ri){vo(!0),fa==null||fa(Si,{range:Cl(Ri!=null?Ri:fi)})},ko=function(Si,Ri){vo(!1),ni==null||ni(Si,{range:Cl(Ri!=null?Ri:fi)})},nl=pe.useMemo(function(){if(!Ur)return null;var qi=Ur.disabledTime,Si=qi?function(Ri){var Za=Cl(fi),ll=Xn(so,Ca,fi);return qi(Ri,Za,{from:ll})}:void 0;return(0,je.Z)((0,je.Z)({},Ur),{},{disabledTime:Si})},[Ur,fi,so,Ca]),gl=(0,pt.C8)([aa,aa],{value:_r}),jl=(0,Ve.Z)(gl,2),Wl=jl[0],js=jl[1],ue=Wl[fi]||aa,ke=ue==="date"&&nl?"datetime":ue,Te=ke===aa&&ke!=="time",Yt=Zn(aa,ue,Wa,pa,!0),_n=It(rt,ba,wa,Ji,yo,zn,jt,uo,gi,vn),yr=(0,Ve.Z)(_n,2),Pn=yr[0],hn=yr[1],zt=Ga(so,zn,Ca,Lr,ia,dr),Mn=Vr(so,vn,Dr),Ra=(0,Ve.Z)(Mn,2),sn=Ra[0],Wt=Ra[1],cn=rn(Lr,ia,so,Wl,gi,fi,Ct,Te,Ea,oa,nl==null?void 0:nl.defaultOpenValue,ma,bn,br),Qn=(0,Ve.Z)(cn,2),Yn=Qn[0],Ln=Qn[1],Hn=(0,pt.zX)(function(qi,Si,Ri){var Za=on(Wl,fi,Si);if((Za[0]!==Wl[0]||Za[1]!==Wl[1])&&js(Za),Jr&&Ri!==!1){var ll=(0,yt.Z)(so);qi&&(ll[fi]=qi),Jr(ll,Za)}}),xn=function(Si,Ri){return on(so,Ri,Si)},or=function(Si,Ri){var Za=so;Si&&(Za=xn(Si,fi)),co(fi);var ll=Ya(Za);yo(Za),Pn(fi,ll===null),ll===null?zi(!1,{force:!0}):Ri||no.current.focus({index:ll})},xr=function(Si){var Ri,Za=Si.target.getRootNode();if(!no.current.nativeElement.contains((Ri=Za.activeElement)!==null&&Ri!==void 0?Ri:document.activeElement)){var ll=zn.findIndex(function(ds){return!ds});ll>=0&&no.current.focus({index:ll})}zi(!0),Oi==null||Oi(Si)},lr=function(){hn(null),zi(!1,{force:!0})},xi=pe.useState(null),ro=(0,Ve.Z)(xi,2),Ui=ro[0],Io=ro[1],Or=pe.useState(null),_i=(0,Ve.Z)(Or,2),Gi=_i[0],ir=_i[1],Eo=pe.useMemo(function(){return Gi||so},[so,Gi]);pe.useEffect(function(){gi||ir(null)},[gi]);var Uo=pe.useState([0,0,0]),No=(0,Ve.Z)(Uo,2),$n=No[0],pi=No[1],yi=Hr(di,mi),Qo=function(Si){ir(Si),Io("preset")},Jo=function(Si){var Ri=hn(Si);Ri&&zi(!1,{force:!0})},il=function(Si){or(Si)},bo=function(Si){ir(Si?xn(Si,fi):null),Io("cell")},ol=function(Si){zi(!0),ja(Si)},pl=function(){Rr("panel")},Lo=function(Si){var Ri=on(so,fi,Si);yo(Ri),!jn&&!Rt&&Ct===ke&&or(Si)},To=function(){zi(!1)},hl=Pr($a,Li,fn,Cl(fi)),Dl=so[fi]||null,Ys=(0,pt.zX)(function(qi){return vn(qi,{activeIndex:fi})}),Pi=pe.useMemo(function(){var qi=(0,dn.Z)(rt,!1),Si=(0,kt.Z)(rt,[].concat((0,yt.Z)(Object.keys(qi)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Si},[rt]),Fa=pe.createElement(Fn,(0,Ke.Z)({},Pi,{showNow:Yt,showTime:nl,range:!0,multiplePanel:Te,activeInfo:$n,disabledDate:zt,onFocus:ol,onBlur:ko,onPanelMouseDown:pl,picker:aa,mode:ue,internalMode:ke,onPanelChange:Hn,format:pn,value:Dl,isInvalid:Ys,onChange:null,onSelect:Lo,pickerValue:Yn,defaultOpenValue:Ht(Ur==null?void 0:Ur.defaultOpenValue)[fi],onPickerValueChange:Ln,hoverValue:Eo,onHover:bo,needConfirm:jn,onSubmit:or,onOk:jo,presets:yi,onPresetHover:Qo,onPresetSubmit:Jo,onNow:il,cellRender:hl})),ul=function(Si,Ri){var Za=xn(Si,Ri);yo(Za)},cl=function(){Rr("input")},gs=function(Si,Ri){var Za=Ca.length,ll=Ca[Za-1];if(Za&&ll!==Ri&&jn&&!Dr[ll]&&!xa(ll)&&so[ll]){no.current.focus({index:ll});return}Rr("input"),zi(!0,{inherit:!0}),fi!==Ri&&gi&&!jn&&Rt&&or(null,!0),Kl(Ri),ja(Si,Ri)},ns=function(Si,Ri){if(zi(!1),!jn&&Rr()==="input"){var Za=Ya(so);Pn(fi,Za===null)}ko(Si,Ri)},Ks=function(Si,Ri){Si.key==="Tab"&&or(null,!0),Vn==null||Vn(Si,Ri)},Ws=pe.useMemo(function(){return{prefixCls:Gt,locale:ia,generateConfig:Lr,button:vi.button,input:vi.input}},[Gt,ia,Lr,vi.button,vi.input]);if((0,Kt.Z)(function(){gi&&fi!==void 0&&Hn(null,aa,!1)},[gi,fi,aa]),(0,Kt.Z)(function(){var qi=Rr();!gi&&qi==="input"&&(zi(!1),or(null,!0)),!gi&&Rt&&!jn&&qi==="panel"&&(zi(!0),or())},[gi]),0)var Vs;return pe.createElement(ae.Provider,{value:Ws},pe.createElement(le,(0,Ke.Z)({},Nn(rt),{popupElement:Fa,popupStyle:Bn.popup,popupClassName:Ot.popup,visible:gi,onClose:To,range:!0}),pe.createElement(mo,(0,Ke.Z)({},rt,{ref:no,suffixIcon:ha,activeIndex:uo||gi?fi:null,activeHelp:!!Gi,allHelp:!!Gi&&Ui==="preset",focused:uo,onFocus:gs,onBlur:ns,onKeyDown:Ks,onSubmit:or,value:Eo,maskFormat:pn,onChange:ul,onInputChange:cl,format:jt,inputReadOnly:Yr,disabled:zn,open:gi,onOpenChange:zi,onClick:xr,onClear:lr,invalid:sn,onInvalid:Wt,onActiveInfo:pi}))))}var ql=pe.forwardRef(Zl),Fl=ql,vl=ne(83836);function zo(re){var ye=re.prefixCls,Me=re.value,et=re.onRemove,rt=re.removeIcon,Ct=rt===void 0?"\xD7":rt,Rt=re.formatDate,jt=re.disabled,pn=re.maxTagCount,vn=re.placeholder,Gt="".concat(ye,"-selector"),Bn="".concat(ye,"-selection"),Ot="".concat(Bn,"-overflow");function Tn(Vn,zn){return pe.createElement("span",{className:wt()("".concat(Bn,"-item")),title:typeof Vn=="string"?Vn:null},pe.createElement("span",{className:"".concat(Bn,"-item-content")},Vn),!jt&&zn&&pe.createElement("span",{onMouseDown:function(dr){dr.preventDefault()},onClick:zn,className:"".concat(Bn,"-item-remove")},Ct))}function In(Vn){var zn=Rt(Vn),Dr=function(bn){bn&&bn.stopPropagation(),et(Vn)};return Tn(zn,Dr)}function jn(Vn){var zn="+ ".concat(Vn.length," ...");return Tn(zn)}return pe.createElement("div",{className:Gt},pe.createElement(vl.Z,{prefixCls:Ot,data:Me,renderItem:In,renderRest:jn,itemKey:function(zn){return Rt(zn)},maxCount:pn}),!Me.length&&pe.createElement("span",{className:"".concat(ye,"-selection-placeholder")},vn))}var os=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Os(re,ye){var Me=re.id,et=re.open,rt=re.prefix,Ct=re.clearIcon,Rt=re.suffixIcon,jt=re.activeHelp,pn=re.allHelp,vn=re.focused,Gt=re.onFocus,Bn=re.onBlur,Ot=re.onKeyDown,Tn=re.locale,In=re.generateConfig,jn=re.placeholder,Vn=re.className,zn=re.style,Dr=re.onClick,dr=re.onClear,bn=re.internalPicker,br=re.value,qn=re.onChange,mr=re.onSubmit,Oa=re.onInputChange,ia=re.multiple,Lr=re.maxTagCount,aa=re.format,Wa=re.maskFormat,pa=re.preserveInvalidOnBlur,Ur=re.onInvalid,_r=re.disabled,Jr=re.invalid,Gr=re.inputReadOnly,ka=re.direction,Ea=re.onOpenChange,oa=re.onMouseDown,ma=re.required,Yr=re["aria-required"],ha=re.autoFocus,fa=re.tabIndex,ni=re.removeIcon,di=(0,Zt.Z)(re,os),mi=ka==="rtl",vi=pe.useContext(ae),$a=vi.prefixCls,Li=pe.useRef(),fn=pe.useRef();pe.useImperativeHandle(ye,function(){return{nativeElement:Li.current,focus:function(wa){var Ji;(Ji=fn.current)===null||Ji===void 0||Ji.focus(wa)},blur:function(){var wa;(wa=fn.current)===null||wa===void 0||wa.blur()}}});var Oi=Qt(di),no=function(wa){qn([wa])},Bi=function(wa){var Ji=br.filter(function(yo){return yo&&!Ha(In,Tn,yo,wa,bn)});qn(Ji),et||mr()},lo=Xt((0,je.Z)((0,je.Z)({},re),{},{onChange:no}),function(ba){var wa=ba.valueTexts;return{value:wa[0]||"",active:vn}}),gi=(0,Ve.Z)(lo,2),po=gi[0],zi=gi[1],Wi=!!(Ct&&br.length&&!_r),ho=ia?pe.createElement(pe.Fragment,null,pe.createElement(zo,{prefixCls:$a,value:br,onRemove:Bi,formatDate:zi,maxTagCount:Lr,disabled:_r,removeIcon:ni,placeholder:jn}),pe.createElement("input",{className:"".concat($a,"-multiple-input"),value:br.map(zi).join(","),ref:fn,readOnly:!0,autoFocus:ha,tabIndex:fa}),pe.createElement(fr,{type:"suffix",icon:Rt}),Wi&&pe.createElement(pr,{icon:Ct,onClear:dr})):pe.createElement(dl,(0,Ke.Z)({ref:fn},po(),{autoFocus:ha,tabIndex:fa,suffixIcon:Rt,clearIcon:Wi&&pe.createElement(pr,{icon:Ct,onClear:dr}),showActiveCls:!1}));return pe.createElement("div",(0,Ke.Z)({},Oi,{className:wt()($a,(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat($a,"-multiple"),ia),"".concat($a,"-focused"),vn),"".concat($a,"-disabled"),_r),"".concat($a,"-invalid"),Jr),"".concat($a,"-rtl"),mi),Vn),style:zn,ref:Li,onClick:Dr,onMouseDown:function(wa){var Ji,yo=wa.target;yo!==((Ji=fn.current)===null||Ji===void 0?void 0:Ji.inputElement)&&wa.preventDefault(),oa==null||oa(wa)}}),rt&&pe.createElement("div",{className:"".concat($a,"-prefix")},rt),ho)}var Gl=pe.forwardRef(Os),As=Gl;function Fs(re,ye){var Me=wr(re),et=(0,Ve.Z)(Me,6),rt=et[0],Ct=et[1],Rt=et[2],jt=et[3],pn=et[4],vn=et[5],Gt=rt,Bn=Gt.prefixCls,Ot=Gt.styles,Tn=Gt.classNames,In=Gt.order,jn=Gt.defaultValue,Vn=Gt.value,zn=Gt.needConfirm,Dr=Gt.onChange,dr=Gt.onKeyDown,bn=Gt.disabled,br=Gt.disabledDate,qn=Gt.minDate,mr=Gt.maxDate,Oa=Gt.defaultOpen,ia=Gt.open,Lr=Gt.onOpenChange,aa=Gt.locale,Wa=Gt.generateConfig,pa=Gt.picker,Ur=Gt.showNow,_r=Gt.showToday,Jr=Gt.showTime,Gr=Gt.mode,ka=Gt.onPanelChange,Ea=Gt.onCalendarChange,oa=Gt.onOk,ma=Gt.multiple,Yr=Gt.defaultPickerValue,ha=Gt.pickerValue,fa=Gt.onPickerValueChange,ni=Gt.inputReadOnly,di=Gt.suffixIcon,mi=Gt.removeIcon,vi=Gt.onFocus,$a=Gt.onBlur,Li=Gt.presets,fn=Gt.components,Oi=Gt.cellRender,no=Gt.dateRender,Bi=Gt.monthCellRender,lo=Gt.onClick,gi=Cr(ye);function po(Pi){return Pi===null?null:ma?Pi:Pi[0]}var zi=ua(Wa,aa,Ct),Wi=On(ia,Oa,[bn],Lr),ho=(0,Ve.Z)(Wi,2),ba=ho[0],wa=ho[1],Ji=function(Fa,ul,cl){if(Ea){var gs=(0,je.Z)({},cl);delete gs.range,Ea(po(Fa),po(ul),gs)}},yo=function(Fa){oa==null||oa(po(Fa))},jo=Tt(Wa,aa,jt,!1,In,jn,Vn,Ji,yo),so=(0,Ve.Z)(jo,5),tl=so[0],So=so[1],uo=so[2],vo=so[3],Rr=so[4],fi=uo(),Kl=Nr([bn]),Ya=(0,Ve.Z)(Kl,4),Ca=Ya[0],co=Ya[1],xa=Ya[2],ja=Ya[3],ko=function(Fa){co(!0),vi==null||vi(Fa,{})},nl=function(Fa){co(!1),$a==null||$a(Fa,{})},gl=(0,pt.C8)(pa,{value:Gr}),jl=(0,Ve.Z)(gl,2),Wl=jl[0],js=jl[1],ue=Wl==="date"&&Jr?"datetime":Wl,ke=Zn(pa,Wl,Ur,_r),Te=Dr&&function(Pi,Fa){Dr(po(Pi),po(Fa))},Yt=It((0,je.Z)((0,je.Z)({},rt),{},{onChange:Te}),tl,So,uo,vo,[],jt,Ca,ba,vn),_n=(0,Ve.Z)(Yt,2),yr=_n[1],Pn=Vr(fi,vn),hn=(0,Ve.Z)(Pn,2),zt=hn[0],Mn=hn[1],Ra=pe.useMemo(function(){return zt.some(function(Pi){return Pi})},[zt]),sn=function(Fa,ul){if(fa){var cl=(0,je.Z)((0,je.Z)({},ul),{},{mode:ul.mode[0]});delete cl.range,fa(Fa[0],cl)}},Wt=rn(Wa,aa,fi,[Wl],ba,ja,Ct,!1,Yr,ha,Ht(Jr==null?void 0:Jr.defaultOpenValue),sn,qn,mr),cn=(0,Ve.Z)(Wt,2),Qn=cn[0],Yn=cn[1],Ln=(0,pt.zX)(function(Pi,Fa,ul){if(js(Fa),ka&&ul!==!1){var cl=Pi||fi[fi.length-1];ka(cl,Fa)}}),Hn=function(){yr(uo()),wa(!1,{force:!0})},xn=function(Fa){!bn&&!gi.current.nativeElement.contains(document.activeElement)&&gi.current.focus(),wa(!0),lo==null||lo(Fa)},or=function(){yr(null),wa(!1,{force:!0})},xr=pe.useState(null),lr=(0,Ve.Z)(xr,2),xi=lr[0],ro=lr[1],Ui=pe.useState(null),Io=(0,Ve.Z)(Ui,2),Or=Io[0],_i=Io[1],Gi=pe.useMemo(function(){var Pi=[Or].concat((0,yt.Z)(fi)).filter(function(Fa){return Fa});return ma?Pi:Pi.slice(0,1)},[fi,Or,ma]),ir=pe.useMemo(function(){return!ma&&Or?[Or]:fi.filter(function(Pi){return Pi})},[fi,Or,ma]);pe.useEffect(function(){ba||_i(null)},[ba]);var Eo=Hr(Li),Uo=function(Fa){_i(Fa),ro("preset")},No=function(Fa){var ul=ma?zi(uo(),Fa):[Fa],cl=yr(ul);cl&&!ma&&wa(!1,{force:!0})},$n=function(Fa){No(Fa)},pi=function(Fa){_i(Fa),ro("cell")},yi=function(Fa){wa(!0),ko(Fa)},Qo=function(Fa){if(xa("panel"),!(ma&&ue!==pa)){var ul=ma?zi(uo(),Fa):[Fa];vo(ul),!zn&&!Rt&&Ct===ue&&Hn()}},Jo=function(){wa(!1)},il=Pr(Oi,no,Bi),bo=pe.useMemo(function(){var Pi=(0,dn.Z)(rt,!1),Fa=(0,kt.Z)(rt,[].concat((0,yt.Z)(Object.keys(Pi)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,je.Z)((0,je.Z)({},Fa),{},{multiple:rt.multiple})},[rt]),ol=pe.createElement(Fn,(0,Ke.Z)({},bo,{showNow:ke,showTime:Jr,disabledDate:br,onFocus:yi,onBlur:nl,picker:pa,mode:Wl,internalMode:ue,onPanelChange:Ln,format:pn,value:fi,isInvalid:vn,onChange:null,onSelect:Qo,pickerValue:Qn,defaultOpenValue:Jr==null?void 0:Jr.defaultOpenValue,onPickerValueChange:Yn,hoverValue:Gi,onHover:pi,needConfirm:zn,onSubmit:Hn,onOk:Rr,presets:Eo,onPresetHover:Uo,onPresetSubmit:No,onNow:$n,cellRender:il})),pl=function(Fa){vo(Fa)},Lo=function(){xa("input")},To=function(Fa){xa("input"),wa(!0,{inherit:!0}),ko(Fa)},hl=function(Fa){wa(!1),nl(Fa)},Dl=function(Fa,ul){Fa.key==="Tab"&&Hn(),dr==null||dr(Fa,ul)},Ys=pe.useMemo(function(){return{prefixCls:Bn,locale:aa,generateConfig:Wa,button:fn.button,input:fn.input}},[Bn,aa,Wa,fn.button,fn.input]);return(0,Kt.Z)(function(){ba&&ja!==void 0&&Ln(null,pa,!1)},[ba,ja,pa]),(0,Kt.Z)(function(){var Pi=xa();!ba&&Pi==="input"&&(wa(!1),Hn()),!ba&&Rt&&!zn&&Pi==="panel"&&Hn()},[ba]),pe.createElement(ae.Provider,{value:Ys},pe.createElement(le,(0,Ke.Z)({},Nn(rt),{popupElement:ol,popupStyle:Ot.popup,popupClassName:Tn.popup,visible:ba,onClose:Jo}),pe.createElement(As,(0,Ke.Z)({},rt,{ref:gi,suffixIcon:di,removeIcon:mi,activeHelp:!!Or,allHelp:!!Or&&xi==="preset",focused:Ca,onFocus:To,onBlur:hl,onKeyDown:Dl,onSubmit:Hn,value:ir,maskFormat:pn,onChange:pl,onInputChange:Lo,internalPicker:Ct,format:jt,inputReadOnly:ni,disabled:bn,open:ba,onOpenChange:wa,onClick:xn,onClear:or,invalid:Ra,onInvalid:function(Fa){Mn(Fa,0)}}))))}var Js=pe.forwardRef(Fs),Ms=Js,Gs=Ms,Po=ne(62487),zr=ne(75030),Ci=ne(82855),xo=ne(48755),kl=ne(2171),Mi=ne(83397),wo=ne(31756),Mo=ne(56553),Bl=ne(24971),ls=ne(9017),yl=ne(70045),$l=ne(57428),Ti=ne(36237),Bs=ne(53075),fl=ne(64910),es=ne(63356),ps=ne(56119),Sl=ne(46e3),Ts=ne(93873),hs=ne(36305),Ls=ne(16931),qs=ne(51636),ms=ne(26743);const vs=(re,ye)=>{const{componentCls:Me,controlHeight:et}=re,rt=ye?`${Me}-${ye}`:"",Ct=(0,ms.gp)(re);return[{[`${Me}-multiple${rt}`]:{paddingBlock:Ct.containerPadding,paddingInlineStart:Ct.basePadding,minHeight:et,[`${Me}-selection-item`]:{height:Ct.itemHeight,lineHeight:(0,Ti.unit)(Ct.itemLineHeight)}}}]};var Pu=re=>{const{componentCls:ye,calc:Me,lineWidth:et}=re,rt=(0,qs.mergeToken)(re,{fontHeight:re.fontSize,selectHeight:re.controlHeightSM,multipleSelectItemHeight:re.multipleItemHeightSM,borderRadius:re.borderRadiusSM,borderRadiusSM:re.borderRadiusXS,controlHeight:re.controlHeightSM}),Ct=(0,qs.mergeToken)(re,{fontHeight:Me(re.multipleItemHeightLG).sub(Me(et).mul(2).equal()).equal(),fontSize:re.fontSizeLG,selectHeight:re.controlHeightLG,multipleSelectItemHeight:re.multipleItemHeightLG,borderRadius:re.borderRadiusLG,borderRadiusSM:re.borderRadius,controlHeight:re.controlHeightLG});return[vs(rt,"small"),vs(re),vs(Ct,"large"),{[`${ye}${ye}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${ye}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${ye}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:re.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${re.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:re.colorTextPlaceholder,pointerEvents:"none"}}},(0,ms._z)(re)),{[`${ye}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},nu=ne(17835);const Rs=re=>{const{pickerCellCls:ye,pickerCellInnerCls:Me,cellHeight:et,borderRadiusSM:rt,motionDurationMid:Ct,cellHoverBg:Rt,lineWidth:jt,lineType:pn,colorPrimary:vn,cellActiveWithRangeBg:Gt,colorTextLightSolid:Bn,colorTextDisabled:Ot,cellBgDisabled:Tn,colorFillSecondary:In}=re;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:et,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[Me]:{position:"relative",zIndex:2,display:"inline-block",minWidth:et,height:et,lineHeight:(0,Ti.unit)(et),borderRadius:rt,transition:`background ${Ct}`},[`&:hover:not(${ye}-in-view):not(${ye}-disabled), - &:hover:not(${ye}-selected):not(${ye}-range-start):not(${ye}-range-end):not(${ye}-disabled)`]:{[Me]:{background:Rt}},[`&-in-view${ye}-today ${Me}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,Ti.unit)(jt)} ${pn} ${vn}`,borderRadius:rt,content:'""'}},[`&-in-view${ye}-in-range, +`;return[(0,Dn.C2)(`${tn}-checkbox`,wt),{[Tt]:{"&-checkbox":{top:0,marginInlineEnd:wt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Tt}-menu-empty`]:{[`${Tt}-menu`]:{width:"100%",height:"auto",[It]:{color:wt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:wt.controlItemWidth,height:wt.dropdownHeight,margin:0,padding:wt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Lt.unit)(wt.lineWidth)} ${wt.lineType} ${wt.colorSplit}`},"&-item":Object.assign(Object.assign({},rr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:wt.optionPadding,lineHeight:wt.lineHeight,cursor:"pointer",transition:`all ${wt.motionDurationMid}`,borderRadius:wt.borderRadiusSM,"&:hover":{background:wt.controlItemBgHover},"&-disabled":{color:wt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Zn]:{color:wt.colorTextDisabled}},[`&-active:not(${It}-disabled)`]:{"&, &:hover":{color:wt.optionSelectedColor,fontWeight:wt.optionSelectedFontWeight,backgroundColor:wt.optionSelectedBg}},"&-content":{flex:"auto"},[Zn]:{marginInlineStart:wt.paddingXXS,color:wt.colorTextDescription,fontSize:wt.fontSizeIcon},"&-keyword":{color:wt.colorHighlight}})}}}]};const wr=wt=>{const{componentCls:tn,antCls:Tt}=wt;return[{[tn]:{width:wt.controlWidth}},{[`${tn}-dropdown`]:[{[`&${Tt}-select-dropdown`]:{padding:0}},ar(wt)]},{[`${tn}-dropdown-rtl`]:{direction:"rtl"}},(0,Ut.c)(wt)]},er=wt=>{const tn=Math.round((wt.controlHeight-wt.fontSize*wt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:wt.controlItemBgActive,optionSelectedFontWeight:wt.fontWeightStrong,optionPadding:`${tn}px ${wt.paddingSM}px`,menuPadding:wt.paddingXXS,optionSelectedColor:wt.colorText}};var Vt=(0,Un.I$)("Cascader",wt=>[wr(wt)],er);const On=wt=>{const{componentCls:tn}=wt;return{[`${tn}-panel`]:[ar(wt),{display:"inline-flex",border:`${(0,Lt.unit)(wt.lineWidth)} ${wt.lineType} ${wt.colorSplit}`,borderRadius:wt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${tn}-menus`]:{alignItems:"stretch"},[`${tn}-menu`]:{height:"auto"},"&-empty":{padding:wt.paddingXXS}}]}};var Cr=(0,Un.A1)(["Cascader","Panel"],wt=>On(wt),er);function Hr(wt){const{prefixCls:tn,className:Tt,multiple:It,rootClassName:Zn,notFoundContent:Gn,direction:yn,expandIcon:tr,disabled:Mr}=wt,Tr=ve.useContext(Xa.Z),Qa=Mr!=null?Mr:Tr,[ua,ta,Ua,Kr]=ri(tn,yn),ya=(0,Da.Z)(ta),[qa,ai,bi]=Vt(ta,ya);Cr(ta);const Ba=Ua==="rtl",[ra,eo]=qt(ua,Ba,tr),wi=Gn||(Kr==null?void 0:Kr("Cascader"))||ve.createElement(Br.Z,{componentName:"Cascader"}),Ta=hi(ta,It);return qa(ve.createElement(wn,Object.assign({},wt,{checkable:Ta,prefixCls:ta,className:Je()(Tt,ai,Zn,bi,ya),notFoundContent:wi,direction:Ua,expandIcon:ra,loadingIcon:eo,disabled:Qa})))}var jr=Hr,Nr=function(wt,tn){var Tt={};for(var It in wt)Object.prototype.hasOwnProperty.call(wt,It)&&tn.indexOf(It)<0&&(Tt[It]=wt[It]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,It=Object.getOwnPropertySymbols(wt);ZnMr===0?[tr]:[].concat((0,E.Z)(yn),[tn,tr]),[]),Zn=[];let Gn=0;return It.forEach((yn,tr)=>{const Mr=Gn+yn.length;let Tr=wt.slice(Gn,Mr);Gn=Mr,tr%2===1&&(Tr=ve.createElement("span",{className:`${Tt}-menu-item-keyword`,key:`separator-${tr}`},Tr)),Zn.push(Tr)}),Zn}const rn=(wt,tn,Tt,It)=>{const Zn=[],Gn=wt.toLowerCase();return tn.forEach((yn,tr)=>{tr!==0&&Zn.push(" / ");let Mr=yn[It.label];const Tr=typeof Mr;(Tr==="string"||Tr==="number")&&(Mr=An(String(Mr),Gn,Tt)),Zn.push(Mr)}),Zn},Yi=ve.forwardRef((wt,tn)=>{var Tt;const{prefixCls:It,size:Zn,disabled:Gn,className:yn,rootClassName:tr,multiple:Mr,bordered:Tr=!0,transitionName:Qa,choiceTransitionName:ua="",popupClassName:ta,dropdownClassName:Ua,expandIcon:Kr,placement:ya,showSearch:qa,allowClear:ai=!0,notFoundContent:bi,direction:Ba,getPopupContainer:ra,status:eo,showArrow:wi,builtinPlacements:Ta,style:oi,variant:ki}=wt,ti=Nr(wt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),_a=(0,Qr.Z)(ti,["suffixIcon"]),{getPrefixCls:ci,getPopupContainer:Ai,className:Fo,style:Qi}=(0,Er.dj)("cascader"),{popupOverflow:Hi}=ve.useContext(Er.E_),{status:oo,hasFeedback:na,isFormItemInput:to,feedbackIcon:Fi}=ve.useContext(En.aM),Oo=(0,un.F)(oo,eo),[Ni,li,_e,Jt]=ri(It,Ba),nn=_e==="rtl",Fn=ci(),Zt=(0,Da.Z)(Ni),[Xt,an,Qt]=(0,Aa.Z)(Ni,Zt),en=(0,Da.Z)(li),[Wn]=Vt(li,en),{compactSize:fr,compactItemClassnames:pr}=(0,Ii.ri)(Ni,Ba),[cr,Xr]=(0,nr.Z)("cascader",ki,Tr),ca=bi||(Jt==null?void 0:Jt("Cascader"))||ve.createElement(Br.Z,{componentName:"Cascader"}),La=Je()(ta||Ua,`${li}-dropdown`,{[`${li}-dropdown-rtl`]:_e==="rtl"},tr,Zt,en,an,Qt),Pa=ve.useMemo(()=>{if(!qa)return qa;let vl={render:rn};return typeof qa=="object"&&(vl=Object.assign(Object.assign({},vl),qa)),vl},[qa]),Xi=(0,Sr.Z)(vl=>{var zo;return(zo=Zn!=null?Zn:fr)!==null&&zo!==void 0?zo:vl}),ji=ve.useContext(Xa.Z),Do=Gn!=null?Gn:ji,[dl,al]=qt(Ni,nn,Kr),Xo=hi(li,Mr),bl=(0,Ei.Z)(wt.suffixIcon,wi),{suffixIcon:Ao,removeIcon:mo,clearIcon:Rl}=(0,ga.Z)(Object.assign(Object.assign({},wt),{hasFeedback:na,feedbackIcon:Fi,showSuffixIcon:bl,multiple:Mr,prefixCls:Ni,componentName:"Cascader"})),Cl=ve.useMemo(()=>ya!==void 0?ya:nn?"bottomRight":"bottomLeft",[ya,nn]),Zl=ai===!0?{clearIcon:Rl}:ai,[ql]=(0,ur.Cn)("SelectLike",(Tt=_a.dropdownStyle)===null||Tt===void 0?void 0:Tt.zIndex),Fl=ve.createElement(va,Object.assign({prefixCls:Ni,className:Je()(!It&&li,{[`${Ni}-lg`]:Xi==="large",[`${Ni}-sm`]:Xi==="small",[`${Ni}-rtl`]:nn,[`${Ni}-${cr}`]:Xr,[`${Ni}-in-form-item`]:to},(0,un.Z)(Ni,Oo,na),pr,Fo,yn,tr,Zt,en,an,Qt),disabled:Do,style:Object.assign(Object.assign({},Qi),oi)},_a,{builtinPlacements:(0,$r.Z)(Ta,Hi),direction:_e,placement:Cl,notFoundContent:ca,allowClear:Zl,showSearch:Pa,expandIcon:dl,suffixIcon:Ao,removeIcon:mo,loadingIcon:al,checkable:Xo,dropdownClassName:La,dropdownPrefixCls:It||li,dropdownStyle:Object.assign(Object.assign({},_a.dropdownStyle),{zIndex:ql}),choiceTransitionName:(0,Sn.m)(Fn,"",ua),transitionName:(0,Sn.m)(Fn,"slide-up",Qa),getPopupContainer:ra||Ai,ref:tn}));return Wn(Xt(Fl))}),$o=(0,sr.Z)(Yi,"dropdownAlign",wt=>(0,Qr.Z)(wt,["visible"]));Yi.SHOW_PARENT=za,Yi.SHOW_CHILD=Ga,Yi.Panel=jr,Yi._InternalPanelDoNotUseOrYouWillBeFired=$o;var Ki=Yi},24017:function(Bt,_t,ne){"use strict";ne.d(_t,{default:function(){return hu}});var E=ne(66649),ve=ne.n(E),xe=ne(9007),Je=ne.n(xe),We=ne(50991),Ae=ne.n(We),Ue=ne(9084),tt=ne.n(Ue),Se=ne(58626),He=ne.n(Se),Qe=ne(13477),qe=ne.n(Qe),pt=ne(64796),Ge=ne.n(pt);ve().extend(Ge()),ve().extend(qe()),ve().extend(Je()),ve().extend(Ae()),ve().extend(tt()),ve().extend(He()),ve().extend(function(re,ye){var Me=ye.prototype,$e=Me.format;Me.format=function(xt){var Rt=(xt||"").replace("Wo","wo");return $e.bind(this)(Rt)}});var Oe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Be=function(ye){var Me=Oe[ye];return Me||ye.split("_")[0]},be=function(){},Ne={getNow:function(){var ye=ve()();return typeof ye.tz=="function"?ye.tz():ye},getFixedDate:function(ye){return ve()(ye,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(ye){return ye.endOf("month")},getWeekDay:function(ye){var Me=ye.locale("en");return Me.weekday()+Me.localeData().firstDayOfWeek()},getYear:function(ye){return ye.year()},getMonth:function(ye){return ye.month()},getDate:function(ye){return ye.date()},getHour:function(ye){return ye.hour()},getMinute:function(ye){return ye.minute()},getSecond:function(ye){return ye.second()},getMillisecond:function(ye){return ye.millisecond()},addYear:function(ye,Me){return ye.add(Me,"year")},addMonth:function(ye,Me){return ye.add(Me,"month")},addDate:function(ye,Me){return ye.add(Me,"day")},setYear:function(ye,Me){return ye.year(Me)},setMonth:function(ye,Me){return ye.month(Me)},setDate:function(ye,Me){return ye.date(Me)},setHour:function(ye,Me){return ye.hour(Me)},setMinute:function(ye,Me){return ye.minute(Me)},setSecond:function(ye,Me){return ye.second(Me)},setMillisecond:function(ye,Me){return ye.millisecond(Me)},isAfter:function(ye,Me){return ye.isAfter(Me)},isValidate:function(ye){return ye.isValid()},locale:{getWeekFirstDay:function(ye){return ve()().locale(Be(ye)).localeData().firstDayOfWeek()},getWeekFirstDate:function(ye,Me){return Me.locale(Be(ye)).weekday(0)},getWeek:function(ye,Me){return Me.locale(Be(ye)).week()},getShortWeekDays:function(ye){return ve()().locale(Be(ye)).localeData().weekdaysMin()},getShortMonths:function(ye){return ve()().locale(Be(ye)).localeData().monthsShort()},format:function(ye,Me,$e){return Me.locale(Be(ye)).format($e)},parse:function(ye,Me,$e){for(var at=Be(ye),xt=0;xt<$e.length;xt+=1){var Rt=$e[xt],jt=Me;if(Rt.includes("wo")||Rt.includes("Wo")){for(var pn=jt.split("-")[0],vn=jt.split("-")[1],Gt=ve()(pn,"YYYY").startOf("year").locale(at),Bn=0;Bn<=52;Bn+=1){var Ot=Gt.add(Bn,"week");if(Ot.format("Wo")===vn)return Ot}return be(),null}var Tn=ve()(jt,Rt,!0).locale(at);if(Tn.isValid())return Tn}return Me&&be(),null}}},Ye=Ne,it=ne(45915),pe=ne(59301),Ke=ne(54476),nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},bt=nt,At=ne(7657),ut=function(ye,Me){return pe.createElement(At.Z,(0,Ke.Z)({},ye,{ref:Me,icon:bt}))},Xe=pe.forwardRef(ut),ht=Xe,Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},ze=Pe,Te=function(ye,Me){return pe.createElement(At.Z,(0,Ke.Z)({},ye,{ref:Me,icon:ze}))},rt=pe.forwardRef(Te),Pt=rt,st={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},et=st,Ft=function(ye,Me){return pe.createElement(At.Z,(0,Ke.Z)({},ye,{ref:Me,icon:et}))},De=pe.forwardRef(Ft),ge=De,lt=ne(92310),Et=ne.n(lt),yt=ne(94480),Ze=ne(33885),Ve=ne(42978),ft=ne(70425),Kt=ne(34280),kt=ne(2738),dn=ne(26112),ct=ne(48736),Nt=ne(20068),mn=ne(65030);function he(re,ye){return re!==void 0?re:ye?"bottomRight":"bottomLeft"}var se=pe.createContext(null),ae=se,ce={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function me(re){var ye=re.popupElement,Me=re.popupStyle,$e=re.popupClassName,at=re.popupAlign,xt=re.transitionName,Rt=re.getPopupContainer,jt=re.children,pn=re.range,vn=re.placement,Gt=re.builtinPlacements,Bn=Gt===void 0?ce:Gt,Ot=re.direction,Tn=re.visible,In=re.onClose,jn=pe.useContext(ae),Vn=jn.prefixCls,zn="".concat(Vn,"-dropdown"),Dr=he(vn,Ot==="rtl");return pe.createElement(mn.Z,{showAction:[],hideAction:["click"],popupPlacement:Dr,builtinPlacements:Bn,prefixCls:zn,popupTransitionName:xt,popup:ye,popupAlign:at,popupVisible:Tn,popupClassName:Et()($e,(0,Nt.Z)((0,Nt.Z)({},"".concat(zn,"-range"),pn),"".concat(zn,"-rtl"),Ot==="rtl")),popupStyle:Me,stretch:"minWidth",getPopupContainer:Rt,onPopupVisibleChange:function(bn){bn||In()}},jt)}var le=me;function ot(re,ye){for(var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",$e=String(re);$e.length2&&arguments[2]!==void 0?arguments[2]:[],$e=pe.useState([!1,!1]),at=(0,Ve.Z)($e,2),xt=at[0],Rt=at[1],jt=function(Gt,Bn){Rt(function(Ot){return on(Ot,Bn,Gt)})},pn=pe.useMemo(function(){return xt.map(function(vn,Gt){if(vn)return!0;var Bn=re[Gt];return Bn?!!(!Me[Gt]&&!Bn||Bn&&ye(Bn,{activeIndex:Gt})):!1})},[re,xt,ye,Me]);return[pn,jt]}function Ar(re,ye,Me,$e,at){var xt="",Rt=[];return re&&Rt.push(at?"hh":"HH"),ye&&Rt.push("mm"),Me&&Rt.push("ss"),xt=Rt.join(":"),$e&&(xt+=".SSS"),at&&(xt+=" A"),xt}function Jn(re,ye,Me,$e,at,xt){var Rt=re.fieldDateTimeFormat,jt=re.fieldDateFormat,pn=re.fieldTimeFormat,vn=re.fieldMonthFormat,Gt=re.fieldYearFormat,Bn=re.fieldWeekFormat,Ot=re.fieldQuarterFormat,Tn=re.yearFormat,In=re.cellYearFormat,jn=re.cellQuarterFormat,Vn=re.dayFormat,zn=re.cellDateFormat,Dr=Ar(ye,Me,$e,at,xt);return(0,Ze.Z)((0,Ze.Z)({},re),{},{fieldDateTimeFormat:Rt||"YYYY-MM-DD ".concat(Dr),fieldDateFormat:jt||"YYYY-MM-DD",fieldTimeFormat:pn||Dr,fieldMonthFormat:vn||"YYYY-MM",fieldYearFormat:Gt||"YYYY",fieldWeekFormat:Bn||"gggg-wo",fieldQuarterFormat:Ot||"YYYY-[Q]Q",yearFormat:Tn||"YYYY",cellYearFormat:In||"YYYY",cellQuarterFormat:jn||"[Q]Q",cellDateFormat:zn||Vn||"D"})}function va(re,ye){var Me=ye.showHour,$e=ye.showMinute,at=ye.showSecond,xt=ye.showMillisecond,Rt=ye.use12Hours;return pe.useMemo(function(){return Jn(re,Me,$e,at,xt,Rt)},[re,Me,$e,at,xt,Rt])}var Qr=ne(76190);function ur(re,ye,Me){return Me!=null?Me:ye.some(function($e){return re.includes($e)})}var Sn=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function sr(re){var ye=kn(re,Sn),Me=re.format,$e=re.picker,at=null;return Me&&(at=Me,Array.isArray(at)&&(at=at[0]),at=(0,Qr.Z)(at)==="object"?at.format:at),$e==="time"&&(ye.format=at),[ye,at]}function un(re){return re&&typeof re=="string"}function Er(re,ye,Me,$e){return[re,ye,Me,$e].some(function(at){return at!==void 0})}function Br(re,ye,Me,$e,at){var xt=ye,Rt=Me,jt=$e;if(!re&&!xt&&!Rt&&!jt&&!at)xt=!0,Rt=!0,jt=!0;else if(re){var pn,vn,Gt,Bn=[xt,Rt,jt].some(function(In){return In===!1}),Ot=[xt,Rt,jt].some(function(In){return In===!0}),Tn=Bn?!0:!Ot;xt=(pn=xt)!==null&&pn!==void 0?pn:Tn,Rt=(vn=Rt)!==null&&vn!==void 0?vn:Tn,jt=(Gt=jt)!==null&&Gt!==void 0?Gt:Tn}return[xt,Rt,jt,at]}function Xa(re){var ye=re.showTime,Me=sr(re),$e=(0,Ve.Z)(Me,2),at=$e[0],xt=$e[1],Rt=ye&&(0,Qr.Z)(ye)==="object"?ye:{},jt=(0,Ze.Z)((0,Ze.Z)({defaultOpenValue:Rt.defaultOpenValue||Rt.defaultValue},at),Rt),pn=jt.showMillisecond,vn=jt.showHour,Gt=jt.showMinute,Bn=jt.showSecond,Ot=Er(vn,Gt,Bn,pn),Tn=Br(Ot,vn,Gt,Bn,pn),In=(0,Ve.Z)(Tn,3);return vn=In[0],Gt=In[1],Bn=In[2],[jt,(0,Ze.Z)((0,Ze.Z)({},jt),{},{showHour:vn,showMinute:Gt,showSecond:Bn,showMillisecond:pn}),jt.format,xt]}function Da(re,ye,Me,$e,at){var xt=re==="time";if(re==="datetime"||xt){for(var Rt=$e,jt=wn(re,at,null),pn=jt,vn=[ye,Me],Gt=0;Gt1&&(Rt=ye.addDate(Rt,-7)),Rt}function Ut(re,ye){var Me=ye.generateConfig,$e=ye.locale,at=ye.format;return re?typeof at=="function"?at(re):Me.locale.format($e.locale,re,at):""}function Un(re,ye,Me){var $e=ye,at=["getHour","getMinute","getSecond","getMillisecond"],xt=["setHour","setMinute","setSecond","setMillisecond"];return xt.forEach(function(Rt,jt){Me?$e=re[Rt]($e,re[at[jt]](Me)):$e=re[Rt]($e,0)}),$e}function Lt(re,ye,Me,$e,at){var xt=(0,ft.zX)(function(Rt,jt){return!!(Me&&Me(Rt,jt)||$e&&re.isAfter($e,Rt)&&!Ha(re,ye,$e,Rt,jt.type)||at&&re.isAfter(Rt,at)&&!Ha(re,ye,at,Rt,jt.type))});return xt}function Dn(re,ye,Me){return pe.useMemo(function(){var $e=wn(re,ye,Me),at=Ht($e),xt=at[0],Rt=(0,Qr.Z)(xt)==="object"&&xt.type==="mask"?xt.format:null;return[at.map(function(jt){return typeof jt=="string"||typeof jt=="function"?jt:jt.format}),Rt]},[re,ye,Me])}function rr(re,ye,Me){return typeof re[0]=="function"||Me?!0:ye}function Rn(re,ye,Me,$e){var at=(0,ft.zX)(function(xt,Rt){var jt=(0,Ze.Z)({type:ye},Rt);if(delete jt.activeIndex,!re.isValidate(xt)||Me&&Me(xt,jt))return!0;if((ye==="date"||ye==="time")&&$e){var pn,vn=Rt&&Rt.activeIndex===1?"end":"start",Gt=((pn=$e.disabledTime)===null||pn===void 0?void 0:pn.call($e,xt,vn,{from:jt.from}))||{},Bn=Gt.disabledHours,Ot=Gt.disabledMinutes,Tn=Gt.disabledSeconds,In=Gt.disabledMilliseconds,jn=$e.disabledHours,Vn=$e.disabledMinutes,zn=$e.disabledSeconds,Dr=Bn||jn,dr=Ot||Vn,bn=Tn||zn,br=re.getHour(xt),qn=re.getMinute(xt),mr=re.getSecond(xt),Oa=re.getMillisecond(xt);if(Dr&&Dr().includes(br)||dr&&dr(br).includes(qn)||bn&&bn(br,qn).includes(mr)||In&&In(br,qn,mr).includes(Oa))return!0}return!1});return at}function ar(re){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=pe.useMemo(function(){var $e=re&&Ht(re);return ye&&$e&&($e[1]=$e[1]||$e[0]),$e},[re,ye]);return Me}function wr(re,ye){var Me=re.generateConfig,$e=re.locale,at=re.picker,xt=at===void 0?"date":at,Rt=re.prefixCls,jt=Rt===void 0?"rc-picker":Rt,pn=re.styles,vn=pn===void 0?{}:pn,Gt=re.classNames,Bn=Gt===void 0?{}:Gt,Ot=re.order,Tn=Ot===void 0?!0:Ot,In=re.components,jn=In===void 0?{}:In,Vn=re.inputRender,zn=re.allowClear,Dr=re.clearIcon,dr=re.needConfirm,bn=re.multiple,br=re.format,qn=re.inputReadOnly,mr=re.disabledDate,Oa=re.minDate,ia=re.maxDate,Lr=re.showTime,aa=re.value,Wa=re.defaultValue,pa=re.pickerValue,Ur=re.defaultPickerValue,_r=ar(aa),Jr=ar(Wa),Gr=ar(pa),ka=ar(Ur),Ea=xt==="date"&&Lr?"datetime":xt,oa=Ea==="time"||Ea==="datetime",ma=oa||bn,Yr=dr!=null?dr:oa,ha=Xa(re),fa=(0,Ve.Z)(ha,4),ni=fa[0],di=fa[1],mi=fa[2],vi=fa[3],$a=va($e,di),Li=pe.useMemo(function(){return Da(Ea,mi,vi,ni,$a)},[Ea,mi,vi,ni,$a]),fn=pe.useMemo(function(){return(0,Ze.Z)((0,Ze.Z)({},re),{},{prefixCls:jt,locale:$a,picker:xt,styles:vn,classNames:Bn,order:Tn,components:(0,Ze.Z)({input:Vn},jn),clearIcon:Sr(jt,zn,Dr),showTime:Li,value:_r,defaultValue:Jr,pickerValue:Gr,defaultPickerValue:ka},ye==null?void 0:ye())},[re]),Oi=Dn(Ea,$a,br),no=(0,Ve.Z)(Oi,2),Bi=no[0],lo=no[1],gi=rr(Bi,qn,bn),po=Lt(Me,$e,mr,Oa,ia),zi=Rn(Me,xt,po,Li),Wi=pe.useMemo(function(){return(0,Ze.Z)((0,Ze.Z)({},fn),{},{needConfirm:Yr,inputReadOnly:gi,disabledDate:po})},[fn,Yr,gi,po]);return[Wi,Ea,ma,Bi,lo,zi]}var er=ne(16089);function Vt(re,ye,Me){var $e=(0,ft.C8)(ye,{value:re}),at=(0,Ve.Z)($e,2),xt=at[0],Rt=at[1],jt=pe.useRef(re),pn=pe.useRef(),vn=function(){er.Z.cancel(pn.current)},Gt=(0,ft.zX)(function(){Rt(jt.current),Me&&xt!==jt.current&&Me(jt.current)}),Bn=(0,ft.zX)(function(Ot,Tn){vn(),jt.current=Ot,Ot||Tn?Gt():pn.current=(0,er.Z)(Gt)});return pe.useEffect(function(){return vn},[]),[xt,Bn]}function On(re,ye){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],$e=arguments.length>3?arguments[3]:void 0,at=Me.every(function(Gt){return Gt})?!1:re,xt=Vt(at,ye||!1,$e),Rt=(0,Ve.Z)(xt,2),jt=Rt[0],pn=Rt[1];function vn(Gt){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Bn.inherit||jt)&&pn(Gt,Bn.force)}return[jt,vn]}function Cr(re){var ye=pe.useRef();return pe.useImperativeHandle(re,function(){var Me;return{nativeElement:(Me=ye.current)===null||Me===void 0?void 0:Me.nativeElement,focus:function(at){var xt;(xt=ye.current)===null||xt===void 0||xt.focus(at)},blur:function(){var at;(at=ye.current)===null||at===void 0||at.blur()}}}),ye}function Hr(re,ye){return pe.useMemo(function(){return re||(ye?((0,ct.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ye).map(function(Me){var $e=(0,Ve.Z)(Me,2),at=$e[0],xt=$e[1];return{label:at,value:xt}})):[])},[re,ye])}function jr(re,ye){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$e=pe.useRef(ye);$e.current=ye,(0,Kt.o)(function(){if(re)$e.current(re);else{var at=(0,er.Z)(function(){$e.current(re)},Me);return function(){er.Z.cancel(at)}}},[re])}function Nr(re){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$e=pe.useState(0),at=(0,Ve.Z)($e,2),xt=at[0],Rt=at[1],jt=pe.useState(!1),pn=(0,Ve.Z)(jt,2),vn=pn[0],Gt=pn[1],Bn=pe.useRef([]),Ot=pe.useRef(null),Tn=pe.useRef(null),In=function(bn){Ot.current=bn},jn=function(bn){return Ot.current===bn},Vn=function(bn){Gt(bn)},zn=function(bn){return bn&&(Tn.current=bn),Tn.current},Dr=function(bn){var br=Bn.current,qn=new Set(br.filter(function(Oa){return bn[Oa]||ye[Oa]})),mr=br[br.length-1]===0?1:0;return qn.size>=2||re[mr]?null:mr};return jr(vn||Me,function(){vn||(Bn.current=[],In(null))}),pe.useEffect(function(){vn&&Bn.current.push(xt)},[vn,xt]),[vn,Vn,zn,xt,Rt,Dr,Bn.current,In,jn]}function Ga(re,ye,Me,$e,at,xt){var Rt=Me[Me.length-1],jt=function(vn,Gt){var Bn=(0,Ve.Z)(re,2),Ot=Bn[0],Tn=Bn[1],In=(0,Ze.Z)((0,Ze.Z)({},Gt),{},{from:Xn(re,Me)});return Rt===1&&ye[0]&&Ot&&!Ha($e,at,Ot,vn,In.type)&&$e.isAfter(Ot,vn)||Rt===0&&ye[1]&&Tn&&!Ha($e,at,Tn,vn,In.type)&&$e.isAfter(vn,Tn)?!0:xt==null?void 0:xt(vn,In)};return jt}function za(re,ye,Me,$e){switch(ye){case"date":case"week":return re.addMonth(Me,$e);case"month":case"quarter":return re.addYear(Me,$e);case"year":return re.addYear(Me,$e*10);case"decade":return re.addYear(Me,$e*100);default:return Me}}var An=[];function rn(re,ye,Me,$e,at,xt,Rt,jt){var pn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:An,vn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:An,Gt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:An,Bn=arguments.length>11?arguments[11]:void 0,Ot=arguments.length>12?arguments[12]:void 0,Tn=arguments.length>13?arguments[13]:void 0,In=Rt==="time",jn=xt||0,Vn=function(Gr){var ka=re.getNow();return In&&(ka=Un(re,ka)),pn[Gr]||Me[Gr]||ka},zn=(0,Ve.Z)(vn,2),Dr=zn[0],dr=zn[1],bn=(0,ft.C8)(function(){return Vn(0)},{value:Dr}),br=(0,Ve.Z)(bn,2),qn=br[0],mr=br[1],Oa=(0,ft.C8)(function(){return Vn(1)},{value:dr}),ia=(0,Ve.Z)(Oa,2),Lr=ia[0],aa=ia[1],Wa=pe.useMemo(function(){var Jr=[qn,Lr][jn];return In?Jr:Un(re,Jr,Gt[jn])},[In,qn,Lr,jn,re,Gt]),pa=function(Gr){var ka=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ea=[mr,aa][jn];Ea(Gr);var oa=[qn,Lr];oa[jn]=Gr,Bn&&(!Ha(re,ye,qn,oa[0],Rt)||!Ha(re,ye,Lr,oa[1],Rt))&&Bn(oa,{source:ka,range:jn===1?"end":"start",mode:$e})},Ur=function(Gr,ka){if(jt){var Ea={date:"month",week:"month",month:"year",quarter:"year"},oa=Ea[Rt];if(oa&&!Ha(re,ye,Gr,ka,oa))return za(re,Rt,ka,-1);if(Rt==="year"&&Gr){var ma=Math.floor(re.getYear(Gr)/10),Yr=Math.floor(re.getYear(ka)/10);if(ma!==Yr)return za(re,Rt,ka,-1)}}return ka},_r=pe.useRef(null);return(0,Kt.Z)(function(){if(at&&!pn[jn]){var Jr=In?null:re.getNow();if(_r.current!==null&&_r.current!==jn?Jr=[qn,Lr][jn^1]:Me[jn]?Jr=jn===0?Me[0]:Ur(Me[0],Me[1]):Me[jn^1]&&(Jr=Me[jn^1]),Jr){Ot&&re.isAfter(Ot,Jr)&&(Jr=Ot);var Gr=jt?za(re,Rt,Jr,1):Jr;Tn&&re.isAfter(Gr,Tn)&&(Jr=jt?za(re,Rt,Tn,-1):Tn),pa(Jr,"reset")}}},[at,jn,Me[jn]]),pe.useEffect(function(){at?_r.current=jn:_r.current=null},[at,jn]),(0,Kt.Z)(function(){at&&pn&&pn[jn]&&pa(pn[jn],"reset")},[at,jn]),[Wa,pa]}function Yi(re,ye){var Me=pe.useRef(re),$e=pe.useState({}),at=(0,Ve.Z)($e,2),xt=at[1],Rt=function(vn){return vn&&ye!==void 0?ye:Me.current},jt=function(vn){Me.current=vn,xt({})};return[Rt,jt,Rt(!0)]}var $o=[];function Ki(re,ye,Me){var $e=function(Rt){return Rt.map(function(jt){return Ut(jt,{generateConfig:re,locale:ye,format:Me[0]})})},at=function(Rt,jt){for(var pn=Math.max(Rt.length,jt.length),vn=-1,Gt=0;Gt2&&arguments[2]!==void 0?arguments[2]:1,$e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,at=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],xt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Rt=[],jt=Me>=1?Me|0:1,pn=re;pn<=ye;pn+=jt){var vn=at.includes(pn);(!vn||!$e)&&Rt.push({label:ot(pn,xt),value:pn,disabled:vn})}return Rt}function Tr(re){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=arguments.length>2?arguments[2]:void 0,$e=ye||{},at=$e.use12Hours,xt=$e.hourStep,Rt=xt===void 0?1:xt,jt=$e.minuteStep,pn=jt===void 0?1:jt,vn=$e.secondStep,Gt=vn===void 0?1:vn,Bn=$e.millisecondStep,Ot=Bn===void 0?100:Bn,Tn=$e.hideDisabledOptions,In=$e.disabledTime,jn=$e.disabledHours,Vn=$e.disabledMinutes,zn=$e.disabledSeconds,Dr=pe.useMemo(function(){return Me||re.getNow()},[Me,re]);if(0)var dr,bn,br;var qn=pe.useCallback(function(ma){var Yr=(In==null?void 0:In(ma))||{};return[Yr.disabledHours||jn||tr,Yr.disabledMinutes||Vn||tr,Yr.disabledSeconds||zn||tr,Yr.disabledMilliseconds||tr]},[In,jn,Vn,zn]),mr=pe.useMemo(function(){return qn(Dr)},[Dr,qn]),Oa=(0,Ve.Z)(mr,4),ia=Oa[0],Lr=Oa[1],aa=Oa[2],Wa=Oa[3],pa=pe.useCallback(function(ma,Yr,ha,fa){var ni=Mr(0,23,Rt,Tn,ma()),di=at?ni.map(function(Li){return(0,Ze.Z)((0,Ze.Z)({},Li),{},{label:ot(Li.value%12||12,2)})}):ni,mi=function(fn){return Mr(0,59,pn,Tn,Yr(fn))},vi=function(fn,Oi){return Mr(0,59,Gt,Tn,ha(fn,Oi))},$a=function(fn,Oi,no){return Mr(0,999,Ot,Tn,fa(fn,Oi,no),3)};return[di,mi,vi,$a]},[Tn,Rt,at,Ot,pn,Gt]),Ur=pe.useMemo(function(){return pa(ia,Lr,aa,Wa)},[pa,ia,Lr,aa,Wa]),_r=(0,Ve.Z)(Ur,4),Jr=_r[0],Gr=_r[1],ka=_r[2],Ea=_r[3],oa=function(Yr,ha){var fa=function(){return Jr},ni=Gr,di=ka,mi=Ea;if(ha){var vi=qn(ha),$a=(0,Ve.Z)(vi,4),Li=$a[0],fn=$a[1],Oi=$a[2],no=$a[3],Bi=pa(Li,fn,Oi,no),lo=(0,Ve.Z)(Bi,4),gi=lo[0],po=lo[1],zi=lo[2],Wi=lo[3];fa=function(){return gi},ni=po,di=zi,mi=Wi}var ho=yn(Yr,fa,ni,di,mi,re);return ho};return[oa,Jr,Gr,ka,Ea]}function Qa(re){var ye=re.mode,Me=re.internalMode,$e=re.renderExtraFooter,at=re.showNow,xt=re.showTime,Rt=re.onSubmit,jt=re.onNow,pn=re.invalid,vn=re.needConfirm,Gt=re.generateConfig,Bn=re.disabledDate,Ot=pe.useContext(ae),Tn=Ot.prefixCls,In=Ot.locale,jn=Ot.button,Vn=jn===void 0?"button":jn,zn=Gt.getNow(),Dr=Tr(Gt,xt,zn),dr=(0,Ve.Z)(Dr,1),bn=dr[0],br=$e==null?void 0:$e(ye),qn=Bn(zn,{type:ye}),mr=function(){if(!qn){var Ur=bn(zn);jt(Ur)}},Oa="".concat(Tn,"-now"),ia="".concat(Oa,"-btn"),Lr=at&&pe.createElement("li",{className:Oa},pe.createElement("a",{className:Et()(ia,qn&&"".concat(ia,"-disabled")),"aria-disabled":qn,onClick:mr},Me==="date"?In.today:In.now)),aa=vn&&pe.createElement("li",{className:"".concat(Tn,"-ok")},pe.createElement(Vn,{disabled:pn,onClick:Rt},In.ok)),Wa=(Lr||aa)&&pe.createElement("ul",{className:"".concat(Tn,"-ranges")},Lr,aa);return!br&&!Wa?null:pe.createElement("div",{className:"".concat(Tn,"-footer")},br&&pe.createElement("div",{className:"".concat(Tn,"-footer-extra")},br),Wa)}function ua(re,ye,Me){function $e(at,xt){var Rt=at.findIndex(function(pn){return Ha(re,ye,pn,xt,Me)});if(Rt===-1)return[].concat((0,yt.Z)(at),[xt]);var jt=(0,yt.Z)(at);return jt.splice(Rt,1),jt}return $e}var ta=pe.createContext(null);function Ua(){return pe.useContext(ta)}function Kr(re,ye){var Me=re.prefixCls,$e=re.generateConfig,at=re.locale,xt=re.disabledDate,Rt=re.minDate,jt=re.maxDate,pn=re.cellRender,vn=re.hoverValue,Gt=re.hoverRangeValue,Bn=re.onHover,Ot=re.values,Tn=re.pickerValue,In=re.onSelect,jn=re.prevIcon,Vn=re.nextIcon,zn=re.superPrevIcon,Dr=re.superNextIcon,dr=$e.getNow(),bn={now:dr,values:Ot,pickerValue:Tn,prefixCls:Me,disabledDate:xt,minDate:Rt,maxDate:jt,cellRender:pn,hoverValue:vn,hoverRangeValue:Gt,onHover:Bn,locale:at,generateConfig:$e,onSelect:In,panelType:ye,prevIcon:jn,nextIcon:Vn,superPrevIcon:zn,superNextIcon:Dr};return[bn,dr]}var ya=pe.createContext({});function qa(re){for(var ye=re.rowNum,Me=re.colNum,$e=re.baseDate,at=re.getCellDate,xt=re.prefixColumn,Rt=re.rowClassName,jt=re.titleFormat,pn=re.getCellText,vn=re.getCellClassName,Gt=re.headerCells,Bn=re.cellSelection,Ot=Bn===void 0?!0:Bn,Tn=re.disabledDate,In=Ua(),jn=In.prefixCls,Vn=In.panelType,zn=In.now,Dr=In.disabledDate,dr=In.cellRender,bn=In.onHover,br=In.hoverValue,qn=In.hoverRangeValue,mr=In.generateConfig,Oa=In.values,ia=In.locale,Lr=In.onSelect,aa=Tn||Dr,Wa="".concat(jn,"-cell"),pa=pe.useContext(ya),Ur=pa.onCellDblClick,_r=function(ha){return Oa.some(function(fa){return fa&&Ha(mr,ia,ha,fa,Vn)})},Jr=[],Gr=0;Gr1&&arguments[1]!==void 0?arguments[1]:!1;wa(Ca),Vn==null||Vn(Ca),co&&Ji(Ca)},jo=function(Ca,co){$a(Ca),co&&yo(co),Ji(co,Ca)},so=function(Ca){if(zi(Ca),yo(Ca),vi!==bn){var co=["decade","year"],xa=[].concat(co,["month"]),ja={quarter:[].concat(co,["quarter"]),week:[].concat((0,yt.Z)(xa),["week"]),date:[].concat((0,yt.Z)(xa),["date"])},ko=ja[bn]||xa,nl=ko.indexOf(vi),gl=ko[nl+1];gl&&jo(gl,Ca)}},tl=pe.useMemo(function(){var Ya,Ca;if(Array.isArray(mr)){var co=(0,Ve.Z)(mr,2);Ya=co[0],Ca=co[1]}else Ya=mr;return!Ya&&!Ca?null:(Ya=Ya||Ca,Ca=Ca||Ya,at.isAfter(Ya,Ca)?[Ca,Ya]:[Ya,Ca])},[mr,at]),So=Pr(Oa,ia,Lr),uo=Wa[Li]||Fi[Li]||ra,vo=pe.useContext(ya),Rr=pe.useMemo(function(){return(0,Ze.Z)((0,Ze.Z)({},vo),{},{hideHeader:pa})},[vo,pa]),fi="".concat(Ur,"-panel"),Kl=kn(re,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return pe.createElement(ya.Provider,{value:Rr},pe.createElement("div",{ref:_r,tabIndex:pn,className:Et()(fi,(0,Nt.Z)({},"".concat(fi,"-rtl"),xt==="rtl"))},pe.createElement(uo,(0,Ke.Z)({},Kl,{showTime:fa,prefixCls:Ur,locale:Yr,generateConfig:at,onModeChange:jo,pickerValue:ba,onPickerValueChange:function(Ca){yo(Ca,!0)},value:gi[0],onSelect:so,values:gi,cellRender:So,hoverRangeValue:tl,hoverValue:qn}))))}var Ni=pe.memo(pe.forwardRef(Oo)),li=Ni;function _e(re){var ye=re.picker,Me=re.multiplePanel,$e=re.pickerValue,at=re.onPickerValueChange,xt=re.needConfirm,Rt=re.onSubmit,jt=re.range,pn=re.hoverValue,vn=pe.useContext(ae),Gt=vn.prefixCls,Bn=vn.generateConfig,Ot=pe.useCallback(function(Dr,dr){return za(Bn,ye,Dr,dr)},[Bn,ye]),Tn=pe.useMemo(function(){return Ot($e,1)},[$e,Ot]),In=function(dr){at(Ot(dr,-1))},jn={onCellDblClick:function(){xt&&Rt()}},Vn=ye==="time",zn=(0,Ze.Z)((0,Ze.Z)({},re),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Vn});return jt?zn.hoverRangeValue=pn:zn.hoverValue=pn,Me?pe.createElement("div",{className:"".concat(Gt,"-panels")},pe.createElement(ya.Provider,{value:(0,Ze.Z)((0,Ze.Z)({},jn),{},{hideNext:!0})},pe.createElement(li,zn)),pe.createElement(ya.Provider,{value:(0,Ze.Z)((0,Ze.Z)({},jn),{},{hidePrev:!0})},pe.createElement(li,(0,Ke.Z)({},zn,{pickerValue:Tn,onPickerValueChange:In})))):pe.createElement(ya.Provider,{value:(0,Ze.Z)({},jn)},pe.createElement(li,zn))}function Jt(re){return typeof re=="function"?re():re}function nn(re){var ye=re.prefixCls,Me=re.presets,$e=re.onClick,at=re.onHover;return Me.length?pe.createElement("div",{className:"".concat(ye,"-presets")},pe.createElement("ul",null,Me.map(function(xt,Rt){var jt=xt.label,pn=xt.value;return pe.createElement("li",{key:Rt,onClick:function(){$e(Jt(pn))},onMouseEnter:function(){at(Jt(pn))},onMouseLeave:function(){at(null)}},jt)}))):null}function Fn(re){var ye=re.panelRender,Me=re.internalMode,$e=re.picker,at=re.showNow,xt=re.range,Rt=re.multiple,jt=re.activeInfo,pn=jt===void 0?[0,0,0]:jt,vn=re.presets,Gt=re.onPresetHover,Bn=re.onPresetSubmit,Ot=re.onFocus,Tn=re.onBlur,In=re.onPanelMouseDown,jn=re.direction,Vn=re.value,zn=re.onSelect,Dr=re.isInvalid,dr=re.defaultOpenValue,bn=re.onOk,br=re.onSubmit,qn=pe.useContext(ae),mr=qn.prefixCls,Oa="".concat(mr,"-panel"),ia=jn==="rtl",Lr=pe.useRef(null),aa=pe.useRef(null),Wa=pe.useState(0),pa=(0,Ve.Z)(Wa,2),Ur=pa[0],_r=pa[1],Jr=pe.useState(0),Gr=(0,Ve.Z)(Jr,2),ka=Gr[0],Ea=Gr[1],oa=pe.useState(0),ma=(0,Ve.Z)(oa,2),Yr=ma[0],ha=ma[1],fa=function(so){so.width&&_r(so.width)},ni=(0,Ve.Z)(pn,3),di=ni[0],mi=ni[1],vi=ni[2],$a=pe.useState(0),Li=(0,Ve.Z)($a,2),fn=Li[0],Oi=Li[1];pe.useEffect(function(){Oi(10)},[di]),pe.useEffect(function(){if(xt&&aa.current){var jo,so=((jo=Lr.current)===null||jo===void 0?void 0:jo.offsetWidth)||0,tl=aa.current.getBoundingClientRect();if(!tl.height||tl.right<0){Oi(function(Rr){return Math.max(0,Rr-1)});return}var So=(ia?mi-so:di)-tl.left;if(ha(So),Ur&&Ur=jt&&Me<=pn)return xt;var vn=Math.min(Math.abs(Me-jt),Math.abs(Me-pn));vn<$e&&($e=vn,at=xt)}return at}}]),re}();function Xi(re){var ye={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return ye[re]}var ji=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Do=pe.forwardRef(function(re,ye){var Me=re.active,$e=re.showActiveCls,at=$e===void 0?!0:$e,xt=re.suffixIcon,Rt=re.format,jt=re.validateFormat,pn=re.onChange,vn=re.onInput,Gt=re.helped,Bn=re.onHelp,Ot=re.onSubmit,Tn=re.onKeyDown,In=re.preserveInvalidOnBlur,jn=In===void 0?!1:In,Vn=re.invalid,zn=re.clearIcon,Dr=(0,Zt.Z)(re,ji),dr=re.value,bn=re.onFocus,br=re.onBlur,qn=re.onMouseUp,mr=pe.useContext(ae),Oa=mr.prefixCls,ia=mr.input,Lr=ia===void 0?"input":ia,aa="".concat(Oa,"-input"),Wa=pe.useState(!1),pa=(0,Ve.Z)(Wa,2),Ur=pa[0],_r=pa[1],Jr=pe.useState(dr),Gr=(0,Ve.Z)(Jr,2),ka=Gr[0],Ea=Gr[1],oa=pe.useState(""),ma=(0,Ve.Z)(oa,2),Yr=ma[0],ha=ma[1],fa=pe.useState(null),ni=(0,Ve.Z)(fa,2),di=ni[0],mi=ni[1],vi=pe.useState(null),$a=(0,Ve.Z)(vi,2),Li=$a[0],fn=$a[1],Oi=ka||"";pe.useEffect(function(){Ea(dr)},[dr]);var no=pe.useRef(),Bi=pe.useRef();pe.useImperativeHandle(ye,function(){return{nativeElement:no.current,inputElement:Bi.current,focus:function(Ca){Bi.current.focus(Ca)},blur:function(){Bi.current.blur()}}});var lo=pe.useMemo(function(){return new Pa(Rt||"")},[Rt]),gi=pe.useMemo(function(){return Gt?[0,0]:lo.getSelection(di)},[lo,di,Gt]),po=(0,Ve.Z)(gi,2),zi=po[0],Wi=po[1],ho=function(Ca){Ca&&Ca!==Rt&&Ca!==dr&&Bn()},ba=(0,ft.zX)(function(Ya){jt(Ya)&&pn(Ya),Ea(Ya),ho(Ya)}),wa=function(Ca){if(!Rt){var co=Ca.target.value;ho(co),Ea(co),pn(co)}},Ji=function(Ca){var co=Ca.clipboardData.getData("text");jt(co)&&ba(co)},yo=pe.useRef(!1),jo=function(){yo.current=!0},so=function(Ca){var co=Ca.target,xa=co.selectionStart,ja=lo.getMaskCellIndex(xa);mi(ja),fn({}),qn==null||qn(Ca),yo.current=!1},tl=function(Ca){_r(!0),mi(0),ha(""),bn(Ca)},So=function(Ca){br(Ca)},uo=function(Ca){_r(!1),So(Ca)};jr(Me,function(){!Me&&!jn&&Ea(dr)});var vo=function(Ca){Ca.key==="Enter"&&jt(Oi)&&Ot(),Tn==null||Tn(Ca)},Rr=function(Ca){vo(Ca);var co=Ca.key,xa=null,ja=null,ko=Wi-zi,nl=Rt.slice(zi,Wi),gl=function(ue){mi(function(ke){var Le=ke+ue;return Le=Math.max(Le,0),Le=Math.min(Le,lo.size()-1),Le})},jl=function(ue){var ke=Xi(nl),Le=(0,Ve.Z)(ke,3),Yt=Le[0],_n=Le[1],yr=Le[2],Pn=Oi.slice(zi,Wi),hn=Number(Pn);if(isNaN(hn))return String(yr||(ue>0?Yt:_n));var zt=hn+ue,Mn=_n-Yt+1;return String(Yt+(Mn+zt-Yt)%Mn)};switch(co){case"Backspace":case"Delete":xa="",ja=nl;break;case"ArrowLeft":xa="",gl(-1);break;case"ArrowRight":xa="",gl(1);break;case"ArrowUp":xa="",ja=jl(1);break;case"ArrowDown":xa="",ja=jl(-1);break;default:isNaN(Number(co))||(xa=Yr+co,ja=xa);break}if(xa!==null&&(ha(xa),xa.length>=ko&&(gl(1),ha(""))),ja!==null){var Wl=Oi.slice(0,zi)+ot(ja,ko)+Oi.slice(Wi);ba(Wl.slice(0,Rt.length))}fn({})},fi=pe.useRef();(0,Kt.Z)(function(){if(!(!Ur||!Rt||yo.current)){if(!lo.match(Oi)){ba(Rt);return}return Bi.current.setSelectionRange(zi,Wi),fi.current=(0,er.Z)(function(){Bi.current.setSelectionRange(zi,Wi)}),function(){er.Z.cancel(fi.current)}}},[lo,Rt,Ur,Oi,di,zi,Wi,Li,ba]);var Kl=Rt?{onFocus:tl,onBlur:uo,onKeyDown:Rr,onMouseDown:jo,onMouseUp:so,onPaste:Ji}:{};return pe.createElement("div",{ref:no,className:Et()(aa,(0,Nt.Z)((0,Nt.Z)({},"".concat(aa,"-active"),Me&&at),"".concat(aa,"-placeholder"),Gt))},pe.createElement(Lr,(0,Ke.Z)({ref:Bi,"aria-invalid":Vn,autoComplete:"off"},Dr,{onKeyDown:vo,onBlur:So},Kl,{value:Oi,onChange:wa})),pe.createElement(fr,{type:"suffix",icon:xt}),zn)}),dl=Do,al=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],Xo=["index"];function bl(re,ye){var Me=re.id,$e=re.prefix,at=re.clearIcon,xt=re.suffixIcon,Rt=re.separator,jt=Rt===void 0?"~":Rt,pn=re.activeIndex,vn=re.activeHelp,Gt=re.allHelp,Bn=re.focused,Ot=re.onFocus,Tn=re.onBlur,In=re.onKeyDown,jn=re.locale,Vn=re.generateConfig,zn=re.placeholder,Dr=re.className,dr=re.style,bn=re.onClick,br=re.onClear,qn=re.value,mr=re.onChange,Oa=re.onSubmit,ia=re.onInputChange,Lr=re.format,aa=re.maskFormat,Wa=re.preserveInvalidOnBlur,pa=re.onInvalid,Ur=re.disabled,_r=re.invalid,Jr=re.inputReadOnly,Gr=re.direction,ka=re.onOpenChange,Ea=re.onActiveInfo,oa=re.placement,ma=re.onMouseDown,Yr=re.required,ha=re["aria-required"],fa=re.autoFocus,ni=re.tabIndex,di=(0,Zt.Z)(re,al),mi=Gr==="rtl",vi=pe.useContext(ae),$a=vi.prefixCls,Li=pe.useMemo(function(){if(typeof Me=="string")return[Me];var So=Me||{};return[So.start,So.end]},[Me]),fn=pe.useRef(),Oi=pe.useRef(),no=pe.useRef(),Bi=function(uo){var vo;return(vo=[Oi,no][uo])===null||vo===void 0?void 0:vo.current};pe.useImperativeHandle(ye,function(){return{nativeElement:fn.current,focus:function(uo){if((0,Qr.Z)(uo)==="object"){var vo,Rr=uo||{},fi=Rr.index,Kl=fi===void 0?0:fi,Ya=(0,Zt.Z)(Rr,Xo);(vo=Bi(Kl))===null||vo===void 0||vo.focus(Ya)}else{var Ca;(Ca=Bi(uo!=null?uo:0))===null||Ca===void 0||Ca.focus()}},blur:function(){var uo,vo;(uo=Bi(0))===null||uo===void 0||uo.blur(),(vo=Bi(1))===null||vo===void 0||vo.blur()}}});var lo=Qt(di),gi=pe.useMemo(function(){return Array.isArray(zn)?zn:[zn,zn]},[zn]),po=Xt((0,Ze.Z)((0,Ze.Z)({},re),{},{id:Li,placeholder:gi})),zi=(0,Ve.Z)(po,1),Wi=zi[0],ho=pe.useState({position:"absolute",width:0}),ba=(0,Ve.Z)(ho,2),wa=ba[0],Ji=ba[1],yo=(0,ft.zX)(function(){var So=Bi(pn);if(So){var uo=So.nativeElement.getBoundingClientRect(),vo=fn.current.getBoundingClientRect(),Rr=uo.left-vo.left;Ji(function(fi){return(0,Ze.Z)((0,Ze.Z)({},fi),{},{width:uo.width,left:Rr})}),Ea([uo.left,uo.right,vo.width])}});pe.useEffect(function(){yo()},[pn]);var jo=at&&(qn[0]&&!Ur[0]||qn[1]&&!Ur[1]),so=fa&&!Ur[0],tl=fa&&!so&&!Ur[1];return pe.createElement(Gn.Z,{onResize:yo},pe.createElement("div",(0,Ke.Z)({},lo,{className:Et()($a,"".concat($a,"-range"),(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat($a,"-focused"),Bn),"".concat($a,"-disabled"),Ur.every(function(So){return So})),"".concat($a,"-invalid"),_r.some(function(So){return So})),"".concat($a,"-rtl"),mi),Dr),style:dr,ref:fn,onClick:bn,onMouseDown:function(uo){var vo=uo.target;vo!==Oi.current.inputElement&&vo!==no.current.inputElement&&uo.preventDefault(),ma==null||ma(uo)}}),$e&&pe.createElement("div",{className:"".concat($a,"-prefix")},$e),pe.createElement(dl,(0,Ke.Z)({ref:Oi},Wi(0),{autoFocus:so,tabIndex:ni,"date-range":"start"})),pe.createElement("div",{className:"".concat($a,"-range-separator")},jt),pe.createElement(dl,(0,Ke.Z)({ref:no},Wi(1),{autoFocus:tl,tabIndex:ni,"date-range":"end"})),pe.createElement("div",{className:"".concat($a,"-active-bar"),style:wa}),pe.createElement(fr,{type:"suffix",icon:xt}),jo&&pe.createElement(pr,{icon:at,onClear:br})))}var Ao=pe.forwardRef(bl),mo=Ao;function Rl(re,ye){var Me=re!=null?re:ye;return Array.isArray(Me)?Me:[Me,Me]}function Cl(re){return re===1?"end":"start"}function Zl(re,ye){var Me=wr(re,function(){var qi=re.disabled,Si=re.allowEmpty,Ri=Rl(qi,!1),Za=Rl(Si,!1);return{disabled:Ri,allowEmpty:Za}}),$e=(0,Ve.Z)(Me,6),at=$e[0],xt=$e[1],Rt=$e[2],jt=$e[3],pn=$e[4],vn=$e[5],Gt=at.prefixCls,Bn=at.styles,Ot=at.classNames,Tn=at.defaultValue,In=at.value,jn=at.needConfirm,Vn=at.onKeyDown,zn=at.disabled,Dr=at.allowEmpty,dr=at.disabledDate,bn=at.minDate,br=at.maxDate,qn=at.defaultOpen,mr=at.open,Oa=at.onOpenChange,ia=at.locale,Lr=at.generateConfig,aa=at.picker,Wa=at.showNow,pa=at.showToday,Ur=at.showTime,_r=at.mode,Jr=at.onPanelChange,Gr=at.onCalendarChange,ka=at.onOk,Ea=at.defaultPickerValue,oa=at.pickerValue,ma=at.onPickerValueChange,Yr=at.inputReadOnly,ha=at.suffixIcon,fa=at.onFocus,ni=at.onBlur,di=at.presets,mi=at.ranges,vi=at.components,$a=at.cellRender,Li=at.dateRender,fn=at.monthCellRender,Oi=at.onClick,no=Cr(ye),Bi=On(mr,qn,zn,Oa),lo=(0,Ve.Z)(Bi,2),gi=lo[0],po=lo[1],zi=function(Si,Ri){(zn.some(function(Za){return!Za})||!Si)&&po(Si,Ri)},Wi=Tt(Lr,ia,jt,!0,!1,Tn,In,Gr,ka),ho=(0,Ve.Z)(Wi,5),ba=ho[0],wa=ho[1],Ji=ho[2],yo=ho[3],jo=ho[4],so=Ji(),tl=Nr(zn,Dr,gi),So=(0,Ve.Z)(tl,9),uo=So[0],vo=So[1],Rr=So[2],fi=So[3],Kl=So[4],Ya=So[5],Ca=So[6],co=So[7],xa=So[8],ja=function(Si,Ri){vo(!0),fa==null||fa(Si,{range:Cl(Ri!=null?Ri:fi)})},ko=function(Si,Ri){vo(!1),ni==null||ni(Si,{range:Cl(Ri!=null?Ri:fi)})},nl=pe.useMemo(function(){if(!Ur)return null;var qi=Ur.disabledTime,Si=qi?function(Ri){var Za=Cl(fi),ll=Xn(so,Ca,fi);return qi(Ri,Za,{from:ll})}:void 0;return(0,Ze.Z)((0,Ze.Z)({},Ur),{},{disabledTime:Si})},[Ur,fi,so,Ca]),gl=(0,ft.C8)([aa,aa],{value:_r}),jl=(0,Ve.Z)(gl,2),Wl=jl[0],js=jl[1],ue=Wl[fi]||aa,ke=ue==="date"&&nl?"datetime":ue,Le=ke===aa&&ke!=="time",Yt=Zn(aa,ue,Wa,pa,!0),_n=It(at,ba,wa,Ji,yo,zn,jt,uo,gi,vn),yr=(0,Ve.Z)(_n,2),Pn=yr[0],hn=yr[1],zt=Ga(so,zn,Ca,Lr,ia,dr),Mn=Vr(so,vn,Dr),Ra=(0,Ve.Z)(Mn,2),sn=Ra[0],Wt=Ra[1],cn=rn(Lr,ia,so,Wl,gi,fi,xt,Le,Ea,oa,nl==null?void 0:nl.defaultOpenValue,ma,bn,br),Qn=(0,Ve.Z)(cn,2),Yn=Qn[0],Ln=Qn[1],Hn=(0,ft.zX)(function(qi,Si,Ri){var Za=on(Wl,fi,Si);if((Za[0]!==Wl[0]||Za[1]!==Wl[1])&&js(Za),Jr&&Ri!==!1){var ll=(0,yt.Z)(so);qi&&(ll[fi]=qi),Jr(ll,Za)}}),xn=function(Si,Ri){return on(so,Ri,Si)},or=function(Si,Ri){var Za=so;Si&&(Za=xn(Si,fi)),co(fi);var ll=Ya(Za);yo(Za),Pn(fi,ll===null),ll===null?zi(!1,{force:!0}):Ri||no.current.focus({index:ll})},xr=function(Si){var Ri,Za=Si.target.getRootNode();if(!no.current.nativeElement.contains((Ri=Za.activeElement)!==null&&Ri!==void 0?Ri:document.activeElement)){var ll=zn.findIndex(function(ds){return!ds});ll>=0&&no.current.focus({index:ll})}zi(!0),Oi==null||Oi(Si)},lr=function(){hn(null),zi(!1,{force:!0})},xi=pe.useState(null),ro=(0,Ve.Z)(xi,2),Ui=ro[0],Io=ro[1],Or=pe.useState(null),_i=(0,Ve.Z)(Or,2),Gi=_i[0],ir=_i[1],Eo=pe.useMemo(function(){return Gi||so},[so,Gi]);pe.useEffect(function(){gi||ir(null)},[gi]);var Uo=pe.useState([0,0,0]),No=(0,Ve.Z)(Uo,2),$n=No[0],pi=No[1],yi=Hr(di,mi),Qo=function(Si){ir(Si),Io("preset")},Jo=function(Si){var Ri=hn(Si);Ri&&zi(!1,{force:!0})},il=function(Si){or(Si)},bo=function(Si){ir(Si?xn(Si,fi):null),Io("cell")},ol=function(Si){zi(!0),ja(Si)},pl=function(){Rr("panel")},Lo=function(Si){var Ri=on(so,fi,Si);yo(Ri),!jn&&!Rt&&xt===ke&&or(Si)},To=function(){zi(!1)},hl=Pr($a,Li,fn,Cl(fi)),Dl=so[fi]||null,Ys=(0,ft.zX)(function(qi){return vn(qi,{activeIndex:fi})}),Pi=pe.useMemo(function(){var qi=(0,dn.Z)(at,!1),Si=(0,kt.Z)(at,[].concat((0,yt.Z)(Object.keys(qi)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Si},[at]),Fa=pe.createElement(Fn,(0,Ke.Z)({},Pi,{showNow:Yt,showTime:nl,range:!0,multiplePanel:Le,activeInfo:$n,disabledDate:zt,onFocus:ol,onBlur:ko,onPanelMouseDown:pl,picker:aa,mode:ue,internalMode:ke,onPanelChange:Hn,format:pn,value:Dl,isInvalid:Ys,onChange:null,onSelect:Lo,pickerValue:Yn,defaultOpenValue:Ht(Ur==null?void 0:Ur.defaultOpenValue)[fi],onPickerValueChange:Ln,hoverValue:Eo,onHover:bo,needConfirm:jn,onSubmit:or,onOk:jo,presets:yi,onPresetHover:Qo,onPresetSubmit:Jo,onNow:il,cellRender:hl})),ul=function(Si,Ri){var Za=xn(Si,Ri);yo(Za)},cl=function(){Rr("input")},gs=function(Si,Ri){var Za=Ca.length,ll=Ca[Za-1];if(Za&&ll!==Ri&&jn&&!Dr[ll]&&!xa(ll)&&so[ll]){no.current.focus({index:ll});return}Rr("input"),zi(!0,{inherit:!0}),fi!==Ri&&gi&&!jn&&Rt&&or(null,!0),Kl(Ri),ja(Si,Ri)},ns=function(Si,Ri){if(zi(!1),!jn&&Rr()==="input"){var Za=Ya(so);Pn(fi,Za===null)}ko(Si,Ri)},Ks=function(Si,Ri){Si.key==="Tab"&&or(null,!0),Vn==null||Vn(Si,Ri)},Ws=pe.useMemo(function(){return{prefixCls:Gt,locale:ia,generateConfig:Lr,button:vi.button,input:vi.input}},[Gt,ia,Lr,vi.button,vi.input]);if((0,Kt.Z)(function(){gi&&fi!==void 0&&Hn(null,aa,!1)},[gi,fi,aa]),(0,Kt.Z)(function(){var qi=Rr();!gi&&qi==="input"&&(zi(!1),or(null,!0)),!gi&&Rt&&!jn&&qi==="panel"&&(zi(!0),or())},[gi]),0)var Vs;return pe.createElement(ae.Provider,{value:Ws},pe.createElement(le,(0,Ke.Z)({},Nn(at),{popupElement:Fa,popupStyle:Bn.popup,popupClassName:Ot.popup,visible:gi,onClose:To,range:!0}),pe.createElement(mo,(0,Ke.Z)({},at,{ref:no,suffixIcon:ha,activeIndex:uo||gi?fi:null,activeHelp:!!Gi,allHelp:!!Gi&&Ui==="preset",focused:uo,onFocus:gs,onBlur:ns,onKeyDown:Ks,onSubmit:or,value:Eo,maskFormat:pn,onChange:ul,onInputChange:cl,format:jt,inputReadOnly:Yr,disabled:zn,open:gi,onOpenChange:zi,onClick:xr,onClear:lr,invalid:sn,onInvalid:Wt,onActiveInfo:pi}))))}var ql=pe.forwardRef(Zl),Fl=ql,vl=ne(83836);function zo(re){var ye=re.prefixCls,Me=re.value,$e=re.onRemove,at=re.removeIcon,xt=at===void 0?"\xD7":at,Rt=re.formatDate,jt=re.disabled,pn=re.maxTagCount,vn=re.placeholder,Gt="".concat(ye,"-selector"),Bn="".concat(ye,"-selection"),Ot="".concat(Bn,"-overflow");function Tn(Vn,zn){return pe.createElement("span",{className:Et()("".concat(Bn,"-item")),title:typeof Vn=="string"?Vn:null},pe.createElement("span",{className:"".concat(Bn,"-item-content")},Vn),!jt&&zn&&pe.createElement("span",{onMouseDown:function(dr){dr.preventDefault()},onClick:zn,className:"".concat(Bn,"-item-remove")},xt))}function In(Vn){var zn=Rt(Vn),Dr=function(bn){bn&&bn.stopPropagation(),$e(Vn)};return Tn(zn,Dr)}function jn(Vn){var zn="+ ".concat(Vn.length," ...");return Tn(zn)}return pe.createElement("div",{className:Gt},pe.createElement(vl.Z,{prefixCls:Ot,data:Me,renderItem:In,renderRest:jn,itemKey:function(zn){return Rt(zn)},maxCount:pn}),!Me.length&&pe.createElement("span",{className:"".concat(ye,"-selection-placeholder")},vn))}var os=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Os(re,ye){var Me=re.id,$e=re.open,at=re.prefix,xt=re.clearIcon,Rt=re.suffixIcon,jt=re.activeHelp,pn=re.allHelp,vn=re.focused,Gt=re.onFocus,Bn=re.onBlur,Ot=re.onKeyDown,Tn=re.locale,In=re.generateConfig,jn=re.placeholder,Vn=re.className,zn=re.style,Dr=re.onClick,dr=re.onClear,bn=re.internalPicker,br=re.value,qn=re.onChange,mr=re.onSubmit,Oa=re.onInputChange,ia=re.multiple,Lr=re.maxTagCount,aa=re.format,Wa=re.maskFormat,pa=re.preserveInvalidOnBlur,Ur=re.onInvalid,_r=re.disabled,Jr=re.invalid,Gr=re.inputReadOnly,ka=re.direction,Ea=re.onOpenChange,oa=re.onMouseDown,ma=re.required,Yr=re["aria-required"],ha=re.autoFocus,fa=re.tabIndex,ni=re.removeIcon,di=(0,Zt.Z)(re,os),mi=ka==="rtl",vi=pe.useContext(ae),$a=vi.prefixCls,Li=pe.useRef(),fn=pe.useRef();pe.useImperativeHandle(ye,function(){return{nativeElement:Li.current,focus:function(wa){var Ji;(Ji=fn.current)===null||Ji===void 0||Ji.focus(wa)},blur:function(){var wa;(wa=fn.current)===null||wa===void 0||wa.blur()}}});var Oi=Qt(di),no=function(wa){qn([wa])},Bi=function(wa){var Ji=br.filter(function(yo){return yo&&!Ha(In,Tn,yo,wa,bn)});qn(Ji),$e||mr()},lo=Xt((0,Ze.Z)((0,Ze.Z)({},re),{},{onChange:no}),function(ba){var wa=ba.valueTexts;return{value:wa[0]||"",active:vn}}),gi=(0,Ve.Z)(lo,2),po=gi[0],zi=gi[1],Wi=!!(xt&&br.length&&!_r),ho=ia?pe.createElement(pe.Fragment,null,pe.createElement(zo,{prefixCls:$a,value:br,onRemove:Bi,formatDate:zi,maxTagCount:Lr,disabled:_r,removeIcon:ni,placeholder:jn}),pe.createElement("input",{className:"".concat($a,"-multiple-input"),value:br.map(zi).join(","),ref:fn,readOnly:!0,autoFocus:ha,tabIndex:fa}),pe.createElement(fr,{type:"suffix",icon:Rt}),Wi&&pe.createElement(pr,{icon:xt,onClear:dr})):pe.createElement(dl,(0,Ke.Z)({ref:fn},po(),{autoFocus:ha,tabIndex:fa,suffixIcon:Rt,clearIcon:Wi&&pe.createElement(pr,{icon:xt,onClear:dr}),showActiveCls:!1}));return pe.createElement("div",(0,Ke.Z)({},Oi,{className:Et()($a,(0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)((0,Nt.Z)({},"".concat($a,"-multiple"),ia),"".concat($a,"-focused"),vn),"".concat($a,"-disabled"),_r),"".concat($a,"-invalid"),Jr),"".concat($a,"-rtl"),mi),Vn),style:zn,ref:Li,onClick:Dr,onMouseDown:function(wa){var Ji,yo=wa.target;yo!==((Ji=fn.current)===null||Ji===void 0?void 0:Ji.inputElement)&&wa.preventDefault(),oa==null||oa(wa)}}),at&&pe.createElement("div",{className:"".concat($a,"-prefix")},at),ho)}var Gl=pe.forwardRef(Os),As=Gl;function Fs(re,ye){var Me=wr(re),$e=(0,Ve.Z)(Me,6),at=$e[0],xt=$e[1],Rt=$e[2],jt=$e[3],pn=$e[4],vn=$e[5],Gt=at,Bn=Gt.prefixCls,Ot=Gt.styles,Tn=Gt.classNames,In=Gt.order,jn=Gt.defaultValue,Vn=Gt.value,zn=Gt.needConfirm,Dr=Gt.onChange,dr=Gt.onKeyDown,bn=Gt.disabled,br=Gt.disabledDate,qn=Gt.minDate,mr=Gt.maxDate,Oa=Gt.defaultOpen,ia=Gt.open,Lr=Gt.onOpenChange,aa=Gt.locale,Wa=Gt.generateConfig,pa=Gt.picker,Ur=Gt.showNow,_r=Gt.showToday,Jr=Gt.showTime,Gr=Gt.mode,ka=Gt.onPanelChange,Ea=Gt.onCalendarChange,oa=Gt.onOk,ma=Gt.multiple,Yr=Gt.defaultPickerValue,ha=Gt.pickerValue,fa=Gt.onPickerValueChange,ni=Gt.inputReadOnly,di=Gt.suffixIcon,mi=Gt.removeIcon,vi=Gt.onFocus,$a=Gt.onBlur,Li=Gt.presets,fn=Gt.components,Oi=Gt.cellRender,no=Gt.dateRender,Bi=Gt.monthCellRender,lo=Gt.onClick,gi=Cr(ye);function po(Pi){return Pi===null?null:ma?Pi:Pi[0]}var zi=ua(Wa,aa,xt),Wi=On(ia,Oa,[bn],Lr),ho=(0,Ve.Z)(Wi,2),ba=ho[0],wa=ho[1],Ji=function(Fa,ul,cl){if(Ea){var gs=(0,Ze.Z)({},cl);delete gs.range,Ea(po(Fa),po(ul),gs)}},yo=function(Fa){oa==null||oa(po(Fa))},jo=Tt(Wa,aa,jt,!1,In,jn,Vn,Ji,yo),so=(0,Ve.Z)(jo,5),tl=so[0],So=so[1],uo=so[2],vo=so[3],Rr=so[4],fi=uo(),Kl=Nr([bn]),Ya=(0,Ve.Z)(Kl,4),Ca=Ya[0],co=Ya[1],xa=Ya[2],ja=Ya[3],ko=function(Fa){co(!0),vi==null||vi(Fa,{})},nl=function(Fa){co(!1),$a==null||$a(Fa,{})},gl=(0,ft.C8)(pa,{value:Gr}),jl=(0,Ve.Z)(gl,2),Wl=jl[0],js=jl[1],ue=Wl==="date"&&Jr?"datetime":Wl,ke=Zn(pa,Wl,Ur,_r),Le=Dr&&function(Pi,Fa){Dr(po(Pi),po(Fa))},Yt=It((0,Ze.Z)((0,Ze.Z)({},at),{},{onChange:Le}),tl,So,uo,vo,[],jt,Ca,ba,vn),_n=(0,Ve.Z)(Yt,2),yr=_n[1],Pn=Vr(fi,vn),hn=(0,Ve.Z)(Pn,2),zt=hn[0],Mn=hn[1],Ra=pe.useMemo(function(){return zt.some(function(Pi){return Pi})},[zt]),sn=function(Fa,ul){if(fa){var cl=(0,Ze.Z)((0,Ze.Z)({},ul),{},{mode:ul.mode[0]});delete cl.range,fa(Fa[0],cl)}},Wt=rn(Wa,aa,fi,[Wl],ba,ja,xt,!1,Yr,ha,Ht(Jr==null?void 0:Jr.defaultOpenValue),sn,qn,mr),cn=(0,Ve.Z)(Wt,2),Qn=cn[0],Yn=cn[1],Ln=(0,ft.zX)(function(Pi,Fa,ul){if(js(Fa),ka&&ul!==!1){var cl=Pi||fi[fi.length-1];ka(cl,Fa)}}),Hn=function(){yr(uo()),wa(!1,{force:!0})},xn=function(Fa){!bn&&!gi.current.nativeElement.contains(document.activeElement)&&gi.current.focus(),wa(!0),lo==null||lo(Fa)},or=function(){yr(null),wa(!1,{force:!0})},xr=pe.useState(null),lr=(0,Ve.Z)(xr,2),xi=lr[0],ro=lr[1],Ui=pe.useState(null),Io=(0,Ve.Z)(Ui,2),Or=Io[0],_i=Io[1],Gi=pe.useMemo(function(){var Pi=[Or].concat((0,yt.Z)(fi)).filter(function(Fa){return Fa});return ma?Pi:Pi.slice(0,1)},[fi,Or,ma]),ir=pe.useMemo(function(){return!ma&&Or?[Or]:fi.filter(function(Pi){return Pi})},[fi,Or,ma]);pe.useEffect(function(){ba||_i(null)},[ba]);var Eo=Hr(Li),Uo=function(Fa){_i(Fa),ro("preset")},No=function(Fa){var ul=ma?zi(uo(),Fa):[Fa],cl=yr(ul);cl&&!ma&&wa(!1,{force:!0})},$n=function(Fa){No(Fa)},pi=function(Fa){_i(Fa),ro("cell")},yi=function(Fa){wa(!0),ko(Fa)},Qo=function(Fa){if(xa("panel"),!(ma&&ue!==pa)){var ul=ma?zi(uo(),Fa):[Fa];vo(ul),!zn&&!Rt&&xt===ue&&Hn()}},Jo=function(){wa(!1)},il=Pr(Oi,no,Bi),bo=pe.useMemo(function(){var Pi=(0,dn.Z)(at,!1),Fa=(0,kt.Z)(at,[].concat((0,yt.Z)(Object.keys(Pi)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,Ze.Z)((0,Ze.Z)({},Fa),{},{multiple:at.multiple})},[at]),ol=pe.createElement(Fn,(0,Ke.Z)({},bo,{showNow:ke,showTime:Jr,disabledDate:br,onFocus:yi,onBlur:nl,picker:pa,mode:Wl,internalMode:ue,onPanelChange:Ln,format:pn,value:fi,isInvalid:vn,onChange:null,onSelect:Qo,pickerValue:Qn,defaultOpenValue:Jr==null?void 0:Jr.defaultOpenValue,onPickerValueChange:Yn,hoverValue:Gi,onHover:pi,needConfirm:zn,onSubmit:Hn,onOk:Rr,presets:Eo,onPresetHover:Uo,onPresetSubmit:No,onNow:$n,cellRender:il})),pl=function(Fa){vo(Fa)},Lo=function(){xa("input")},To=function(Fa){xa("input"),wa(!0,{inherit:!0}),ko(Fa)},hl=function(Fa){wa(!1),nl(Fa)},Dl=function(Fa,ul){Fa.key==="Tab"&&Hn(),dr==null||dr(Fa,ul)},Ys=pe.useMemo(function(){return{prefixCls:Bn,locale:aa,generateConfig:Wa,button:fn.button,input:fn.input}},[Bn,aa,Wa,fn.button,fn.input]);return(0,Kt.Z)(function(){ba&&ja!==void 0&&Ln(null,pa,!1)},[ba,ja,pa]),(0,Kt.Z)(function(){var Pi=xa();!ba&&Pi==="input"&&(wa(!1),Hn()),!ba&&Rt&&!zn&&Pi==="panel"&&Hn()},[ba]),pe.createElement(ae.Provider,{value:Ys},pe.createElement(le,(0,Ke.Z)({},Nn(at),{popupElement:ol,popupStyle:Ot.popup,popupClassName:Tn.popup,visible:ba,onClose:Jo}),pe.createElement(As,(0,Ke.Z)({},at,{ref:gi,suffixIcon:di,removeIcon:mi,activeHelp:!!Or,allHelp:!!Or&&xi==="preset",focused:Ca,onFocus:To,onBlur:hl,onKeyDown:Dl,onSubmit:Hn,value:ir,maskFormat:pn,onChange:pl,onInputChange:Lo,internalPicker:xt,format:jt,inputReadOnly:ni,disabled:bn,open:ba,onOpenChange:wa,onClick:xn,onClear:or,invalid:Ra,onInvalid:function(Fa){Mn(Fa,0)}}))))}var Js=pe.forwardRef(Fs),Ms=Js,Gs=Ms,Po=ne(62487),zr=ne(75030),Ci=ne(82855),xo=ne(48755),kl=ne(2171),Mi=ne(83397),wo=ne(31756),Mo=ne(56553),Bl=ne(24971),ls=ne(9017),yl=ne(70045),$l=ne(57428),Ti=ne(36237),Bs=ne(53075),fl=ne(64910),es=ne(63356),ps=ne(56119),Sl=ne(46e3),Ts=ne(93873),hs=ne(36305),Ls=ne(16931),qs=ne(51636),ms=ne(26743);const vs=(re,ye)=>{const{componentCls:Me,controlHeight:$e}=re,at=ye?`${Me}-${ye}`:"",xt=(0,ms.gp)(re);return[{[`${Me}-multiple${at}`]:{paddingBlock:xt.containerPadding,paddingInlineStart:xt.basePadding,minHeight:$e,[`${Me}-selection-item`]:{height:xt.itemHeight,lineHeight:(0,Ti.unit)(xt.itemLineHeight)}}}]};var Pu=re=>{const{componentCls:ye,calc:Me,lineWidth:$e}=re,at=(0,qs.mergeToken)(re,{fontHeight:re.fontSize,selectHeight:re.controlHeightSM,multipleSelectItemHeight:re.multipleItemHeightSM,borderRadius:re.borderRadiusSM,borderRadiusSM:re.borderRadiusXS,controlHeight:re.controlHeightSM}),xt=(0,qs.mergeToken)(re,{fontHeight:Me(re.multipleItemHeightLG).sub(Me($e).mul(2).equal()).equal(),fontSize:re.fontSizeLG,selectHeight:re.controlHeightLG,multipleSelectItemHeight:re.multipleItemHeightLG,borderRadius:re.borderRadiusLG,borderRadiusSM:re.borderRadius,controlHeight:re.controlHeightLG});return[vs(at,"small"),vs(re),vs(xt,"large"),{[`${ye}${ye}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${ye}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${ye}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:re.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${re.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:re.colorTextPlaceholder,pointerEvents:"none"}}},(0,ms._z)(re)),{[`${ye}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},nu=ne(17835);const Rs=re=>{const{pickerCellCls:ye,pickerCellInnerCls:Me,cellHeight:$e,borderRadiusSM:at,motionDurationMid:xt,cellHoverBg:Rt,lineWidth:jt,lineType:pn,colorPrimary:vn,cellActiveWithRangeBg:Gt,colorTextLightSolid:Bn,colorTextDisabled:Ot,cellBgDisabled:Tn,colorFillSecondary:In}=re;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:$e,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[Me]:{position:"relative",zIndex:2,display:"inline-block",minWidth:$e,height:$e,lineHeight:(0,Ti.unit)($e),borderRadius:at,transition:`background ${xt}`},[`&:hover:not(${ye}-in-view):not(${ye}-disabled), + &:hover:not(${ye}-selected):not(${ye}-range-start):not(${ye}-range-end):not(${ye}-disabled)`]:{[Me]:{background:Rt}},[`&-in-view${ye}-today ${Me}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,Ti.unit)(jt)} ${pn} ${vn}`,borderRadius:at,content:'""'}},[`&-in-view${ye}-in-range, &-in-view${ye}-range-start, &-in-view${ye}-range-end`]:{position:"relative",[`&:not(${ye}-disabled):before`]:{background:Gt}},[`&-in-view${ye}-selected, &-in-view${ye}-range-start, - &-in-view${ye}-range-end`]:{[`&:not(${ye}-disabled) ${Me}`]:{color:Bn,background:vn},[`&${ye}-disabled ${Me}`]:{background:In}},[`&-in-view${ye}-range-start:not(${ye}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${ye}-range-end:not(${ye}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${ye}-range-start:not(${ye}-range-end) ${Me}`]:{borderStartStartRadius:rt,borderEndStartRadius:rt,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ye}-range-end:not(${ye}-range-start) ${Me}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:rt,borderEndEndRadius:rt},"&-disabled":{color:Ot,cursor:"not-allowed",[Me]:{background:"transparent"},"&::before":{background:Tn}},[`&-disabled${ye}-today ${Me}::before`]:{borderColor:Ot}}},el=re=>{const{componentCls:ye,pickerCellCls:Me,pickerCellInnerCls:et,pickerYearMonthCellWidth:rt,pickerControlIconSize:Ct,cellWidth:Rt,paddingSM:jt,paddingXS:pn,paddingXXS:vn,colorBgContainer:Gt,lineWidth:Bn,lineType:Ot,borderRadiusLG:Tn,colorPrimary:In,colorTextHeading:jn,colorSplit:Vn,pickerControlIconBorderWidth:zn,colorIcon:Dr,textHeight:dr,motionDurationMid:bn,colorIconHover:br,fontWeightStrong:qn,cellHeight:mr,pickerCellPaddingVertical:Oa,colorTextDisabled:ia,colorText:Lr,fontSize:aa,motionDurationSlow:Wa,withoutTimeCellHeight:pa,pickerQuarterPanelContentHeight:Ur,borderRadiusSM:_r,colorTextLightSolid:Jr,cellHoverBg:Gr,timeColumnHeight:ka,timeColumnWidth:Ea,timeCellHeight:oa,controlItemBgActive:ma,marginXXS:Yr,pickerDatePanelPaddingHorizontal:ha,pickerControlIconMargin:fa}=re,ni=re.calc(Rt).mul(7).add(re.calc(ha).mul(2)).equal();return{[ye]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Gt,borderRadius:Tn,outline:"none","&-focused":{borderColor:In},"&-rtl":{[`${ye}-prev-icon, + &-in-view${ye}-range-end`]:{[`&:not(${ye}-disabled) ${Me}`]:{color:Bn,background:vn},[`&${ye}-disabled ${Me}`]:{background:In}},[`&-in-view${ye}-range-start:not(${ye}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${ye}-range-end:not(${ye}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${ye}-range-start:not(${ye}-range-end) ${Me}`]:{borderStartStartRadius:at,borderEndStartRadius:at,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ye}-range-end:not(${ye}-range-start) ${Me}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:at,borderEndEndRadius:at},"&-disabled":{color:Ot,cursor:"not-allowed",[Me]:{background:"transparent"},"&::before":{background:Tn}},[`&-disabled${ye}-today ${Me}::before`]:{borderColor:Ot}}},el=re=>{const{componentCls:ye,pickerCellCls:Me,pickerCellInnerCls:$e,pickerYearMonthCellWidth:at,pickerControlIconSize:xt,cellWidth:Rt,paddingSM:jt,paddingXS:pn,paddingXXS:vn,colorBgContainer:Gt,lineWidth:Bn,lineType:Ot,borderRadiusLG:Tn,colorPrimary:In,colorTextHeading:jn,colorSplit:Vn,pickerControlIconBorderWidth:zn,colorIcon:Dr,textHeight:dr,motionDurationMid:bn,colorIconHover:br,fontWeightStrong:qn,cellHeight:mr,pickerCellPaddingVertical:Oa,colorTextDisabled:ia,colorText:Lr,fontSize:aa,motionDurationSlow:Wa,withoutTimeCellHeight:pa,pickerQuarterPanelContentHeight:Ur,borderRadiusSM:_r,colorTextLightSolid:Jr,cellHoverBg:Gr,timeColumnHeight:ka,timeColumnWidth:Ea,timeCellHeight:oa,controlItemBgActive:ma,marginXXS:Yr,pickerDatePanelPaddingHorizontal:ha,pickerControlIconMargin:fa}=re,ni=re.calc(Rt).mul(7).add(re.calc(ha).mul(2)).equal();return{[ye]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Gt,borderRadius:Tn,outline:"none","&-focused":{borderColor:In},"&-rtl":{[`${ye}-prev-icon, ${ye}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${ye}-next-icon, - ${ye}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${ye}-time-panel`]:{[`${ye}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ni},"&-header":{display:"flex",padding:`0 ${(0,Ti.unit)(pn)}`,color:jn,borderBottom:`${(0,Ti.unit)(Bn)} ${Ot} ${Vn}`,"> *":{flex:"none"},button:{padding:0,color:Dr,lineHeight:(0,Ti.unit)(dr),background:"transparent",border:0,cursor:"pointer",transition:`color ${bn}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:aa,"&:hover":{color:br},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:qn,lineHeight:(0,Ti.unit)(dr),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:pn},"&:hover":{color:In}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:Ct,height:Ct,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:Ct,height:Ct,border:"0 solid currentcolor",borderBlockStartWidth:zn,borderInlineStartWidth:zn,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:fa,insetInlineStart:fa,display:"inline-block",width:Ct,height:Ct,border:"0 solid currentcolor",borderBlockStartWidth:zn,borderInlineStartWidth:zn,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:mr,fontWeight:"normal"},th:{height:re.calc(mr).add(re.calc(Oa).mul(2)).equal(),color:Lr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,Ti.unit)(Oa)} 0`,color:ia,cursor:"pointer","&-in-view":{color:Lr}},Rs(re)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ye}-content`]:{height:re.calc(pa).mul(4).equal()},[et]:{padding:`0 ${(0,Ti.unit)(pn)}`}},"&-quarter-panel":{[`${ye}-content`]:{height:Ur}},"&-decade-panel":{[et]:{padding:`0 ${(0,Ti.unit)(re.calc(pn).div(2).equal())}`},[`${ye}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ye}-body`]:{padding:`0 ${(0,Ti.unit)(pn)}`},[et]:{width:rt}},"&-date-panel":{[`${ye}-body`]:{padding:`${(0,Ti.unit)(pn)} ${(0,Ti.unit)(ha)}`},[`${ye}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${ye}-cell`]:{[`&:hover ${et}, - &-selected ${et}, - ${et}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${bn}`},"&:first-child:before":{borderStartStartRadius:_r,borderEndStartRadius:_r},"&:last-child:before":{borderStartEndRadius:_r,borderEndEndRadius:_r}},"&:hover td:before":{background:Gr},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${Me}`]:{"&:before":{background:In},[`&${ye}-cell-week`]:{color:new nu.FastColor(Jr).setA(.5).toHexString()},[et]:{color:Jr}}},"&-range-hover td:before":{background:ma}}},"&-week-panel, &-date-panel-show-week":{[`${ye}-body`]:{padding:`${(0,Ti.unit)(pn)} ${(0,Ti.unit)(jt)}`},[`${ye}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${ye}-time-panel`]:{borderInlineStart:`${(0,Ti.unit)(Bn)} ${Ot} ${Vn}`},[`${ye}-date-panel, + ${ye}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${ye}-time-panel`]:{[`${ye}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ni},"&-header":{display:"flex",padding:`0 ${(0,Ti.unit)(pn)}`,color:jn,borderBottom:`${(0,Ti.unit)(Bn)} ${Ot} ${Vn}`,"> *":{flex:"none"},button:{padding:0,color:Dr,lineHeight:(0,Ti.unit)(dr),background:"transparent",border:0,cursor:"pointer",transition:`color ${bn}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:aa,"&:hover":{color:br},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:qn,lineHeight:(0,Ti.unit)(dr),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:pn},"&:hover":{color:In}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:xt,height:xt,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:xt,height:xt,border:"0 solid currentcolor",borderBlockStartWidth:zn,borderInlineStartWidth:zn,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:fa,insetInlineStart:fa,display:"inline-block",width:xt,height:xt,border:"0 solid currentcolor",borderBlockStartWidth:zn,borderInlineStartWidth:zn,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:mr,fontWeight:"normal"},th:{height:re.calc(mr).add(re.calc(Oa).mul(2)).equal(),color:Lr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,Ti.unit)(Oa)} 0`,color:ia,cursor:"pointer","&-in-view":{color:Lr}},Rs(re)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ye}-content`]:{height:re.calc(pa).mul(4).equal()},[$e]:{padding:`0 ${(0,Ti.unit)(pn)}`}},"&-quarter-panel":{[`${ye}-content`]:{height:Ur}},"&-decade-panel":{[$e]:{padding:`0 ${(0,Ti.unit)(re.calc(pn).div(2).equal())}`},[`${ye}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ye}-body`]:{padding:`0 ${(0,Ti.unit)(pn)}`},[$e]:{width:at}},"&-date-panel":{[`${ye}-body`]:{padding:`${(0,Ti.unit)(pn)} ${(0,Ti.unit)(ha)}`},[`${ye}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${ye}-cell`]:{[`&:hover ${$e}, + &-selected ${$e}, + ${$e}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${bn}`},"&:first-child:before":{borderStartStartRadius:_r,borderEndStartRadius:_r},"&:last-child:before":{borderStartEndRadius:_r,borderEndEndRadius:_r}},"&:hover td:before":{background:Gr},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${Me}`]:{"&:before":{background:In},[`&${ye}-cell-week`]:{color:new nu.FastColor(Jr).setA(.5).toHexString()},[$e]:{color:Jr}}},"&-range-hover td:before":{background:ma}}},"&-week-panel, &-date-panel-show-week":{[`${ye}-body`]:{padding:`${(0,Ti.unit)(pn)} ${(0,Ti.unit)(jt)}`},[`${ye}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${ye}-time-panel`]:{borderInlineStart:`${(0,Ti.unit)(Bn)} ${Ot} ${Vn}`},[`${ye}-date-panel, ${ye}-time-panel`]:{transition:`opacity ${Wa}`},"&-active":{[`${ye}-date-panel, - ${ye}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${ye}-content`]:{display:"flex",flex:"auto",height:ka},"&-column":{flex:"1 0 auto",width:Ea,margin:`${(0,Ti.unit)(vn)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${bn}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:re.colorTextTertiary,borderRadius:re.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${re.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,Ti.unit)(oa)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,Ti.unit)(Bn)} ${Ot} ${Vn}`},"&-active":{background:new nu.FastColor(ma).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ye}-time-panel-cell`]:{marginInline:Yr,[`${ye}-time-panel-cell-inner`]:{display:"block",width:re.calc(Ea).sub(re.calc(Yr).mul(2)).equal(),height:oa,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:re.calc(Ea).sub(oa).div(2).equal(),color:Lr,lineHeight:(0,Ti.unit)(oa),borderRadius:_r,cursor:"pointer",transition:`background ${bn}`,"&:hover":{background:Gr}},"&-selected":{[`${ye}-time-panel-cell-inner`]:{background:ma}},"&-disabled":{[`${ye}-time-panel-cell-inner`]:{color:ia,background:"transparent",cursor:"not-allowed"}}}}}}}}};var xu=re=>{const{componentCls:ye,textHeight:Me,lineWidth:et,paddingSM:rt,antCls:Ct,colorPrimary:Rt,cellActiveWithRangeBg:jt,colorPrimaryBorder:pn,lineType:vn,colorSplit:Gt}=re;return{[`${ye}-dropdown`]:{[`${ye}-footer`]:{borderTop:`${(0,Ti.unit)(et)} ${vn} ${Gt}`,"&-extra":{padding:`0 ${(0,Ti.unit)(rt)}`,lineHeight:(0,Ti.unit)(re.calc(Me).sub(re.calc(et).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,Ti.unit)(et)} ${vn} ${Gt}`}}},[`${ye}-panels + ${ye}-footer ${ye}-ranges`]:{justifyContent:"space-between"},[`${ye}-ranges`]:{marginBlock:0,paddingInline:(0,Ti.unit)(rt),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,Ti.unit)(re.calc(Me).sub(re.calc(et).mul(2)).equal()),display:"inline-block"},[`${ye}-now-btn-disabled`]:{pointerEvents:"none",color:re.colorTextDisabled},[`${ye}-preset > ${Ct}-tag-blue`]:{color:Rt,background:jt,borderColor:pn,cursor:"pointer"},[`${ye}-ok`]:{paddingBlock:re.calc(et).mul(2).equal(),marginInlineStart:"auto"}}}}};const lu=re=>{const{componentCls:ye,controlHeightLG:Me,paddingXXS:et,padding:rt}=re;return{pickerCellCls:`${ye}-cell`,pickerCellInnerCls:`${ye}-cell-inner`,pickerYearMonthCellWidth:re.calc(Me).mul(1.5).equal(),pickerQuarterPanelContentHeight:re.calc(Me).mul(1.4).equal(),pickerCellPaddingVertical:re.calc(et).add(re.calc(et).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:re.calc(rt).add(re.calc(et).div(2)).equal()}},su=re=>{const{colorBgContainerDisabled:ye,controlHeight:Me,controlHeightSM:et,controlHeightLG:rt,paddingXXS:Ct,lineWidth:Rt}=re,jt=Ct*2,pn=Rt*2,vn=Math.min(Me-jt,Me-pn),Gt=Math.min(et-jt,et-pn),Bn=Math.min(rt-jt,rt-pn);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ct/2),cellHoverBg:re.controlItemBgHover,cellActiveWithRangeBg:re.controlItemBgActive,cellHoverWithRangeBg:new nu.FastColor(re.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new nu.FastColor(re.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ye,timeColumnWidth:rt*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:et*1.5,cellHeight:et,textHeight:rt,withoutTimeCellHeight:rt*1.65,multipleItemBg:re.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:vn,multipleItemHeightSM:Gt,multipleItemHeightLG:Bn,multipleSelectorBgDisabled:ye,multipleItemColorDisabled:re.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},ru=re=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,fl.T)(re)),su(re)),(0,hs.w)(re)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:re.zIndexPopupBase+50});var ts=ne(39082),Il=re=>{const{componentCls:ye}=re;return{[ye]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,ts.qG)(re)),(0,ts.vc)(re)),(0,ts.H8)(re)),(0,ts.Mu)(re)),{"&-outlined":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}},"&-filled":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.colorBgContainer,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.colorSplit}`}},"&-borderless":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}},"&-underlined":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}}}]}};const ss=(re,ye,Me,et)=>{const rt=re.calc(Me).add(2).equal(),Ct=re.max(re.calc(ye).sub(rt).div(2).equal(),0),Rt=re.max(re.calc(ye).sub(rt).sub(Ct).equal(),0);return{padding:`${(0,Ti.unit)(Ct)} ${(0,Ti.unit)(et)} ${(0,Ti.unit)(Rt)}`}},uu=re=>{const{componentCls:ye,colorError:Me,colorWarning:et}=re;return{[`${ye}:not(${ye}-disabled):not([disabled])`]:{[`&${ye}-status-error`]:{[`${ye}-active-bar`]:{background:Me}},[`&${ye}-status-warning`]:{[`${ye}-active-bar`]:{background:et}}}}},Iu=re=>{const{componentCls:ye,antCls:Me,controlHeight:et,paddingInline:rt,lineWidth:Ct,lineType:Rt,colorBorder:jt,borderRadius:pn,motionDurationMid:vn,colorTextDisabled:Gt,colorTextPlaceholder:Bn,controlHeightLG:Ot,fontSizeLG:Tn,controlHeightSM:In,paddingInlineSM:jn,paddingXS:Vn,marginXS:zn,colorTextDescription:Dr,lineWidthBold:dr,colorPrimary:bn,motionDurationSlow:br,zIndexPopup:qn,paddingXXS:mr,sizePopupArrow:Oa,colorBgElevated:ia,borderRadiusLG:Lr,boxShadowSecondary:aa,borderRadiusSM:Wa,colorSplit:pa,cellHoverBg:Ur,presetsWidth:_r,presetsMaxWidth:Jr,boxShadowPopoverArrow:Gr,fontHeight:ka,fontHeightLG:Ea,lineHeightLG:oa}=re;return[{[ye]:Object.assign(Object.assign(Object.assign({},(0,es.Wf)(re)),ss(re,et,ka,rt)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:pn,transition:`border ${vn}, box-shadow ${vn}, background ${vn}`,[`${ye}-prefix`]:{flex:"0 0 auto",marginInlineEnd:re.inputAffixPadding},[`${ye}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:re.fontSize,lineHeight:re.lineHeight,transition:`all ${vn}`},(0,Bs.nz)(Bn)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:Gt,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:Bn}}},"&-large":Object.assign(Object.assign({},ss(re,Ot,Ea,rt)),{[`${ye}-input > input`]:{fontSize:Tn,lineHeight:oa}}),"&-small":Object.assign({},ss(re,In,ka,jn)),[`${ye}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:re.calc(Vn).div(2).equal(),color:Gt,lineHeight:1,pointerEvents:"none",transition:`opacity ${vn}, color ${vn}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:zn}}},[`${ye}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Gt,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${vn}, color ${vn}`,"> *":{verticalAlign:"top"},"&:hover":{color:Dr}},"&:hover":{[`${ye}-clear`]:{opacity:1},[`${ye}-suffix:not(:last-child)`]:{opacity:0}},[`${ye}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Tn,color:Gt,fontSize:Tn,verticalAlign:"top",cursor:"default",[`${ye}-focused &`]:{color:Dr},[`${ye}-range-separator &`]:{[`${ye}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ye}-active-bar`]:{bottom:re.calc(Ct).mul(-1).equal(),height:dr,background:bn,opacity:0,transition:`all ${br} ease-out`,pointerEvents:"none"},[`&${ye}-focused`]:{[`${ye}-active-bar`]:{opacity:1}},[`${ye}-range-separator`]:{alignItems:"center",padding:`0 ${(0,Ti.unit)(Vn)}`,lineHeight:1}},"&-range, &-multiple":{[`${ye}-clear`]:{insetInlineEnd:rt},[`&${ye}-small`]:{[`${ye}-clear`]:{insetInlineEnd:jn}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,es.Wf)(re)),el(re)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:qn,[`&${ye}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${ye}-dropdown-placement-bottomLeft, + ${ye}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${ye}-content`]:{display:"flex",flex:"auto",height:ka},"&-column":{flex:"1 0 auto",width:Ea,margin:`${(0,Ti.unit)(vn)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${bn}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:re.colorTextTertiary,borderRadius:re.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${re.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,Ti.unit)(oa)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,Ti.unit)(Bn)} ${Ot} ${Vn}`},"&-active":{background:new nu.FastColor(ma).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ye}-time-panel-cell`]:{marginInline:Yr,[`${ye}-time-panel-cell-inner`]:{display:"block",width:re.calc(Ea).sub(re.calc(Yr).mul(2)).equal(),height:oa,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:re.calc(Ea).sub(oa).div(2).equal(),color:Lr,lineHeight:(0,Ti.unit)(oa),borderRadius:_r,cursor:"pointer",transition:`background ${bn}`,"&:hover":{background:Gr}},"&-selected":{[`${ye}-time-panel-cell-inner`]:{background:ma}},"&-disabled":{[`${ye}-time-panel-cell-inner`]:{color:ia,background:"transparent",cursor:"not-allowed"}}}}}}}}};var xu=re=>{const{componentCls:ye,textHeight:Me,lineWidth:$e,paddingSM:at,antCls:xt,colorPrimary:Rt,cellActiveWithRangeBg:jt,colorPrimaryBorder:pn,lineType:vn,colorSplit:Gt}=re;return{[`${ye}-dropdown`]:{[`${ye}-footer`]:{borderTop:`${(0,Ti.unit)($e)} ${vn} ${Gt}`,"&-extra":{padding:`0 ${(0,Ti.unit)(at)}`,lineHeight:(0,Ti.unit)(re.calc(Me).sub(re.calc($e).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,Ti.unit)($e)} ${vn} ${Gt}`}}},[`${ye}-panels + ${ye}-footer ${ye}-ranges`]:{justifyContent:"space-between"},[`${ye}-ranges`]:{marginBlock:0,paddingInline:(0,Ti.unit)(at),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,Ti.unit)(re.calc(Me).sub(re.calc($e).mul(2)).equal()),display:"inline-block"},[`${ye}-now-btn-disabled`]:{pointerEvents:"none",color:re.colorTextDisabled},[`${ye}-preset > ${xt}-tag-blue`]:{color:Rt,background:jt,borderColor:pn,cursor:"pointer"},[`${ye}-ok`]:{paddingBlock:re.calc($e).mul(2).equal(),marginInlineStart:"auto"}}}}};const lu=re=>{const{componentCls:ye,controlHeightLG:Me,paddingXXS:$e,padding:at}=re;return{pickerCellCls:`${ye}-cell`,pickerCellInnerCls:`${ye}-cell-inner`,pickerYearMonthCellWidth:re.calc(Me).mul(1.5).equal(),pickerQuarterPanelContentHeight:re.calc(Me).mul(1.4).equal(),pickerCellPaddingVertical:re.calc($e).add(re.calc($e).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:re.calc(at).add(re.calc($e).div(2)).equal()}},su=re=>{const{colorBgContainerDisabled:ye,controlHeight:Me,controlHeightSM:$e,controlHeightLG:at,paddingXXS:xt,lineWidth:Rt}=re,jt=xt*2,pn=Rt*2,vn=Math.min(Me-jt,Me-pn),Gt=Math.min($e-jt,$e-pn),Bn=Math.min(at-jt,at-pn);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(xt/2),cellHoverBg:re.controlItemBgHover,cellActiveWithRangeBg:re.controlItemBgActive,cellHoverWithRangeBg:new nu.FastColor(re.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new nu.FastColor(re.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ye,timeColumnWidth:at*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:$e*1.5,cellHeight:$e,textHeight:at,withoutTimeCellHeight:at*1.65,multipleItemBg:re.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:vn,multipleItemHeightSM:Gt,multipleItemHeightLG:Bn,multipleSelectorBgDisabled:ye,multipleItemColorDisabled:re.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},ru=re=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,fl.T)(re)),su(re)),(0,hs.w)(re)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:re.zIndexPopupBase+50});var ts=ne(39082),Il=re=>{const{componentCls:ye}=re;return{[ye]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,ts.qG)(re)),(0,ts.vc)(re)),(0,ts.H8)(re)),(0,ts.Mu)(re)),{"&-outlined":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}},"&-filled":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.colorBgContainer,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.colorSplit}`}},"&-borderless":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}},"&-underlined":{[`&${ye}-multiple ${ye}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Ti.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}}}]}};const ss=(re,ye,Me,$e)=>{const at=re.calc(Me).add(2).equal(),xt=re.max(re.calc(ye).sub(at).div(2).equal(),0),Rt=re.max(re.calc(ye).sub(at).sub(xt).equal(),0);return{padding:`${(0,Ti.unit)(xt)} ${(0,Ti.unit)($e)} ${(0,Ti.unit)(Rt)}`}},uu=re=>{const{componentCls:ye,colorError:Me,colorWarning:$e}=re;return{[`${ye}:not(${ye}-disabled):not([disabled])`]:{[`&${ye}-status-error`]:{[`${ye}-active-bar`]:{background:Me}},[`&${ye}-status-warning`]:{[`${ye}-active-bar`]:{background:$e}}}}},Iu=re=>{const{componentCls:ye,antCls:Me,controlHeight:$e,paddingInline:at,lineWidth:xt,lineType:Rt,colorBorder:jt,borderRadius:pn,motionDurationMid:vn,colorTextDisabled:Gt,colorTextPlaceholder:Bn,controlHeightLG:Ot,fontSizeLG:Tn,controlHeightSM:In,paddingInlineSM:jn,paddingXS:Vn,marginXS:zn,colorTextDescription:Dr,lineWidthBold:dr,colorPrimary:bn,motionDurationSlow:br,zIndexPopup:qn,paddingXXS:mr,sizePopupArrow:Oa,colorBgElevated:ia,borderRadiusLG:Lr,boxShadowSecondary:aa,borderRadiusSM:Wa,colorSplit:pa,cellHoverBg:Ur,presetsWidth:_r,presetsMaxWidth:Jr,boxShadowPopoverArrow:Gr,fontHeight:ka,fontHeightLG:Ea,lineHeightLG:oa}=re;return[{[ye]:Object.assign(Object.assign(Object.assign({},(0,es.Wf)(re)),ss(re,$e,ka,at)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:pn,transition:`border ${vn}, box-shadow ${vn}, background ${vn}`,[`${ye}-prefix`]:{flex:"0 0 auto",marginInlineEnd:re.inputAffixPadding},[`${ye}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:re.fontSize,lineHeight:re.lineHeight,transition:`all ${vn}`},(0,Bs.nz)(Bn)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:Gt,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:Bn}}},"&-large":Object.assign(Object.assign({},ss(re,Ot,Ea,at)),{[`${ye}-input > input`]:{fontSize:Tn,lineHeight:oa}}),"&-small":Object.assign({},ss(re,In,ka,jn)),[`${ye}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:re.calc(Vn).div(2).equal(),color:Gt,lineHeight:1,pointerEvents:"none",transition:`opacity ${vn}, color ${vn}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:zn}}},[`${ye}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Gt,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${vn}, color ${vn}`,"> *":{verticalAlign:"top"},"&:hover":{color:Dr}},"&:hover":{[`${ye}-clear`]:{opacity:1},[`${ye}-suffix:not(:last-child)`]:{opacity:0}},[`${ye}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Tn,color:Gt,fontSize:Tn,verticalAlign:"top",cursor:"default",[`${ye}-focused &`]:{color:Dr},[`${ye}-range-separator &`]:{[`${ye}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ye}-active-bar`]:{bottom:re.calc(xt).mul(-1).equal(),height:dr,background:bn,opacity:0,transition:`all ${br} ease-out`,pointerEvents:"none"},[`&${ye}-focused`]:{[`${ye}-active-bar`]:{opacity:1}},[`${ye}-range-separator`]:{alignItems:"center",padding:`0 ${(0,Ti.unit)(Vn)}`,lineHeight:1}},"&-range, &-multiple":{[`${ye}-clear`]:{insetInlineEnd:at},[`&${ye}-small`]:{[`${ye}-clear`]:{insetInlineEnd:jn}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,es.Wf)(re)),el(re)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:qn,[`&${ye}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${ye}-dropdown-placement-bottomLeft, &${ye}-dropdown-placement-bottomRight`]:{[`${ye}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${ye}-dropdown-placement-topLeft, &${ye}-dropdown-placement-topRight`]:{[`${ye}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${Me}-slide-up-appear, &${Me}-slide-up-enter`]:{[`${ye}-range-arrow${ye}-range-arrow`]:{transition:"none"}},[`&${Me}-slide-up-enter${Me}-slide-up-enter-active${ye}-dropdown-placement-topLeft, &${Me}-slide-up-enter${Me}-slide-up-enter-active${ye}-dropdown-placement-topRight, @@ -1144,33 +1144,33 @@ ${Jn} &${Me}-slide-up-appear${Me}-slide-up-appear-active${ye}-dropdown-placement-bottomLeft, &${Me}-slide-up-appear${Me}-slide-up-appear-active${ye}-dropdown-placement-bottomRight`]:{animationName:Sl.fJ},[`&${Me}-slide-up-leave ${ye}-panel-container`]:{pointerEvents:"none"},[`&${Me}-slide-up-leave${Me}-slide-up-leave-active${ye}-dropdown-placement-topLeft, &${Me}-slide-up-leave${Me}-slide-up-leave-active${ye}-dropdown-placement-topRight`]:{animationName:Sl.ly},[`&${Me}-slide-up-leave${Me}-slide-up-leave-active${ye}-dropdown-placement-bottomLeft, - &${Me}-slide-up-leave${Me}-slide-up-leave-active${ye}-dropdown-placement-bottomRight`]:{animationName:Sl.Uw},[`${ye}-panel > ${ye}-time-panel`]:{paddingTop:mr},[`${ye}-range-wrapper`]:{display:"flex",position:"relative"},[`${ye}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:re.calc(rt).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${br} ease-out`},(0,hs.W)(re,ia,Gr)),{"&:before":{insetInlineStart:re.calc(rt).mul(1.5).equal()}}),[`${ye}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ia,borderRadius:Lr,boxShadow:aa,transition:`margin ${br}`,display:"inline-block",pointerEvents:"auto",[`${ye}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ye}-presets`]:{display:"flex",flexDirection:"column",minWidth:_r,maxWidth:Jr,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Vn,borderInlineEnd:`${(0,Ti.unit)(Ct)} ${Rt} ${pa}`,li:Object.assign(Object.assign({},es.vS),{borderRadius:Wa,paddingInline:Vn,paddingBlock:re.calc(In).sub(ka).div(2).equal(),cursor:"pointer",transition:`all ${br}`,"+ li":{marginTop:zn},"&:hover":{background:Ur}})}},[`${ye}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${ye}-panel`]:{borderWidth:0}}},[`${ye}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ye}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:jt}}}}),"&-dropdown-range":{padding:`${(0,Ti.unit)(re.calc(Oa).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ye}-separator`]:{transform:"scale(-1, 1)"},[`${ye}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Sl.oN)(re,"slide-up"),(0,Sl.oN)(re,"slide-down"),(0,Ts.Fm)(re,"move-up"),(0,Ts.Fm)(re,"move-down")]};var au=(0,Ls.I$)("DatePicker",re=>{const ye=(0,qs.mergeToken)((0,fl.e)(re),lu(re),{inputPaddingHorizontalBase:re.calc(re.paddingSM).sub(1).equal(),multipleSelectItemHeight:re.multipleItemHeight,selectHeight:re.controlHeight});return[xu(ye),Iu(ye),Il(ye),uu(ye),Pu(ye),(0,ps.c)(re,{focusElCls:`${re.componentCls}-focused`})]},ru),da=ne(68525);function wu(re,ye,Me){return Me!==void 0?Me:ye==="year"&&re.lang.yearPlaceholder?re.lang.yearPlaceholder:ye==="quarter"&&re.lang.quarterPlaceholder?re.lang.quarterPlaceholder:ye==="month"&&re.lang.monthPlaceholder?re.lang.monthPlaceholder:ye==="week"&&re.lang.weekPlaceholder?re.lang.weekPlaceholder:ye==="time"&&re.timePickerLocale.placeholder?re.timePickerLocale.placeholder:re.lang.placeholder}function Uu(re,ye,Me){return Me!==void 0?Me:ye==="year"&&re.lang.yearPlaceholder?re.lang.rangeYearPlaceholder:ye==="quarter"&&re.lang.quarterPlaceholder?re.lang.rangeQuarterPlaceholder:ye==="month"&&re.lang.monthPlaceholder?re.lang.rangeMonthPlaceholder:ye==="week"&&re.lang.weekPlaceholder?re.lang.rangeWeekPlaceholder:ye==="time"&&re.timePickerLocale.placeholder?re.timePickerLocale.rangePlaceholder:re.lang.rangePlaceholder}function Yl(re,ye){const{allowClear:Me=!0}=re,{clearIcon:et,removeIcon:rt}=(0,da.Z)(Object.assign(Object.assign({},re),{prefixCls:ye,componentName:"DatePicker"}));return[pe.useMemo(()=>Me===!1?!1:Object.assign({clearIcon:et},Me===!0?{}:Me),[Me,et]),rt]}const[gr,_s]=["week","WeekPicker"],[Fu,Nu]=["month","MonthPicker"],[Ou,iu]=["year","YearPicker"],[Ps,sl]=["quarter","QuarterPicker"],[Hl,ks]=["time","TimePicker"];var Zs=ne(7939),Gu=re=>pe.createElement(Zs.ZP,Object.assign({size:"small",type:"primary"},re));function Su(re){return(0,pe.useMemo)(()=>Object.assign({button:Gu},re),[re])}var $s=function(re,ye){var Me={};for(var et in re)Object.prototype.hasOwnProperty.call(re,et)&&ye.indexOf(et)<0&&(Me[et]=re[et]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,et=Object.getOwnPropertySymbols(re);rt(0,pe.forwardRef)((Me,et)=>{var rt;const{prefixCls:Ct,getPopupContainer:Rt,components:jt,className:pn,style:vn,placement:Gt,size:Bn,disabled:Ot,bordered:Tn=!0,placeholder:In,popupClassName:jn,dropdownClassName:Vn,status:zn,rootClassName:Dr,variant:dr,picker:bn}=Me,br=$s(Me,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),qn=pe.useRef(null),{getPrefixCls:mr,direction:Oa,getPopupContainer:ia,rangePicker:Lr}=(0,pe.useContext)(xo.E_),aa=mr("picker",Ct),{compactSize:Wa,compactItemClassnames:pa}=(0,yl.ri)(aa,Oa),Ur=mr(),[_r,Jr]=(0,Bl.Z)("rangePicker",dr,Tn),Gr=(0,Mi.Z)(aa),[ka,Ea,oa]=au(aa,Gr),[ma]=Yl(Me,aa),Yr=Su(jt),ha=(0,wo.Z)(Bi=>{var lo;return(lo=Bn!=null?Bn:Wa)!==null&&lo!==void 0?lo:Bi}),fa=pe.useContext(kl.Z),ni=Ot!=null?Ot:fa,di=(0,pe.useContext)(Mo.aM),{hasFeedback:mi,status:vi,feedbackIcon:$a}=di,Li=pe.createElement(pe.Fragment,null,bn===Hl?pe.createElement(Bt,null):pe.createElement(ut,null),mi&&$a);(0,pe.useImperativeHandle)(et,()=>qn.current);const[fn]=(0,ls.Z)("Calendar",$l.Z),Oi=Object.assign(Object.assign({},fn),Me.locale),[no]=(0,zr.Cn)("DatePicker",(rt=Me.popupStyle)===null||rt===void 0?void 0:rt.zIndex);return ka(pe.createElement(Po.Z,{space:!0},pe.createElement(Fl,Object.assign({separator:pe.createElement("span",{"aria-label":"to",className:`${aa}-separator`},pe.createElement(ge,null)),disabled:ni,ref:qn,placement:Gt,placeholder:Uu(Oi,bn,In),suffixIcon:Li,prevIcon:pe.createElement("span",{className:`${aa}-prev-icon`}),nextIcon:pe.createElement("span",{className:`${aa}-next-icon`}),superPrevIcon:pe.createElement("span",{className:`${aa}-super-prev-icon`}),superNextIcon:pe.createElement("span",{className:`${aa}-super-next-icon`}),transitionName:`${Ur}-slide-up`,picker:bn},br,{className:wt()({[`${aa}-${ha}`]:ha,[`${aa}-${_r}`]:Jr},(0,Ci.Z)(aa,(0,Ci.F)(vi,zn),mi),Ea,pa,pn,Lr==null?void 0:Lr.className,oa,Gr,Dr),style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),vn),locale:Oi.lang,prefixCls:aa,getPopupContainer:Rt||ia,generateConfig:re,components:Yr,direction:Oa,classNames:{popup:wt()(Ea,jn||Vn,oa,Gr,Dr)},styles:{popup:Object.assign(Object.assign({},Me.popupStyle),{zIndex:no})},allowClear:ma}))))}),pu=function(re,ye){var Me={};for(var et in re)Object.prototype.hasOwnProperty.call(re,et)&&ye.indexOf(et)<0&&(Me[et]=re[et]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,et=Object.getOwnPropertySymbols(re);rt{const ye=(pn,vn)=>{const Gt=vn===ks?"timePicker":"datePicker";return(0,pe.forwardRef)((Ot,Tn)=>{var In;const{prefixCls:jn,getPopupContainer:Vn,components:zn,style:Dr,className:dr,rootClassName:bn,size:br,bordered:qn,placement:mr,placeholder:Oa,popupClassName:ia,dropdownClassName:Lr,disabled:aa,status:Wa,variant:pa,onCalendarChange:Ur}=Ot,_r=pu(Ot,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:Jr,direction:Gr,getPopupContainer:ka,[Gt]:Ea}=(0,pe.useContext)(xo.E_),oa=Jr("picker",jn),{compactSize:ma,compactItemClassnames:Yr}=(0,yl.ri)(oa,Gr),ha=pe.useRef(null),[fa,ni]=(0,Bl.Z)("datePicker",pa,qn),di=(0,Mi.Z)(oa),[mi,vi,$a]=au(oa,di);(0,pe.useImperativeHandle)(Tn,()=>ha.current);const Li={showToday:!0},fn=pn||Ot.picker,Oi=Jr(),{onSelect:no,multiple:Bi}=_r,lo=no&&pn==="time"&&!Bi,gi=(Rr,fi,Kl)=>{Ur==null||Ur(Rr,fi,Kl),lo&&no(Rr)},[po,zi]=Yl(Ot,oa),Wi=Su(zn),ho=(0,wo.Z)(Rr=>{var fi;return(fi=br!=null?br:ma)!==null&&fi!==void 0?fi:Rr}),ba=pe.useContext(kl.Z),wa=aa!=null?aa:ba,Ji=(0,pe.useContext)(Mo.aM),{hasFeedback:yo,status:jo,feedbackIcon:so}=Ji,tl=pe.createElement(pe.Fragment,null,fn==="time"?pe.createElement(Bt,null):pe.createElement(ut,null),yo&&so),[So]=(0,ls.Z)("DatePicker",$l.Z),uo=Object.assign(Object.assign({},So),Ot.locale),[vo]=(0,zr.Cn)("DatePicker",(In=Ot.popupStyle)===null||In===void 0?void 0:In.zIndex);return mi(pe.createElement(Po.Z,{space:!0},pe.createElement(Gs,Object.assign({ref:ha,placeholder:wu(uo,fn,Oa),suffixIcon:tl,placement:mr,prevIcon:pe.createElement("span",{className:`${oa}-prev-icon`}),nextIcon:pe.createElement("span",{className:`${oa}-next-icon`}),superPrevIcon:pe.createElement("span",{className:`${oa}-super-prev-icon`}),superNextIcon:pe.createElement("span",{className:`${oa}-super-next-icon`}),transitionName:`${Oi}-slide-up`,picker:pn,onCalendarChange:gi},Li,_r,{locale:uo.lang,className:wt()({[`${oa}-${ho}`]:ho,[`${oa}-${fa}`]:ni},(0,Ci.Z)(oa,(0,Ci.F)(jo,Wa),yo),vi,Yr,Ea==null?void 0:Ea.className,dr,$a,di,bn),style:Object.assign(Object.assign({},Ea==null?void 0:Ea.style),Dr),prefixCls:oa,getPopupContainer:Vn||ka,generateConfig:re,components:Wi,direction:Gr,disabled:wa,classNames:{popup:wt()(vi,$a,di,bn,ia||Lr)},styles:{popup:Object.assign(Object.assign({},Ot.popupStyle),{zIndex:vo})},allowClear:po,removeIcon:zi}))))})},Me=ye(),et=ye(gr,_s),rt=ye(Fu,Nu),Ct=ye(Ou,iu),Rt=ye(Ps,sl),jt=ye(Hl,ks);return{DatePicker:Me,WeekPicker:et,MonthPicker:rt,YearPicker:Ct,TimePicker:jt,QuarterPicker:Rt}},Au=re=>{const{DatePicker:ye,WeekPicker:Me,MonthPicker:et,YearPicker:rt,TimePicker:Ct,QuarterPicker:Rt}=Du(re),jt=fu(re),pn=ye;return pn.WeekPicker=Me,pn.MonthPicker=et,pn.YearPicker=rt,pn.RangePicker=jt,pn.TimePicker=Ct,pn.QuarterPicker=Rt,pn};const Hs=Au(Ye),eu=(0,it.Z)(Hs,"popupAlign",void 0,"picker");Hs._InternalPanelDoNotUseOrYouWillBeFired=eu;const xl=(0,it.Z)(Hs.RangePicker,"popupAlign",void 0,"picker");Hs._InternalRangePanelDoNotUseOrYouWillBeFired=xl,Hs.generatePicker=Au;var hu=Hs},37285:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Ge}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(48755),We=ne(36237),Ae=ne(63356),Ue=ne(16931),tt=ne(51636);const Se=Oe=>{const{componentCls:Be,sizePaddingEdgeHorizontal:be,colorSplit:Pe,lineWidth:Ye,textPaddingInline:it,orientationMargin:pe,verticalMarginInline:Ke}=Oe;return{[Be]:Object.assign(Object.assign({},(0,Ae.Wf)(Oe)),{borderBlockStart:`${(0,We.unit)(Ye)} solid ${Pe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ke,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,We.unit)(Ye)} solid ${Pe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,We.unit)(Oe.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Be}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,We.unit)(Oe.dividerHorizontalWithTextGutterMargin)} 0`,color:Oe.colorTextHeading,fontWeight:500,fontSize:Oe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Pe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,We.unit)(Ye)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Be}-with-text-start`]:{"&::before":{width:`calc(${pe} * 100%)`},"&::after":{width:`calc(100% - ${pe} * 100%)`}},[`&-horizontal${Be}-with-text-end`]:{"&::before":{width:`calc(100% - ${pe} * 100%)`},"&::after":{width:`calc(${pe} * 100%)`}},[`${Be}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:it},"&-dashed":{background:"none",borderColor:Pe,borderStyle:"dashed",borderWidth:`${(0,We.unit)(Ye)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Be}-dashed`]:{borderInlineStartWidth:Ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Pe,borderStyle:"dotted",borderWidth:`${(0,We.unit)(Ye)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Be}-dotted`]:{borderInlineStartWidth:Ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Be}-with-text`]:{color:Oe.colorText,fontWeight:"normal",fontSize:Oe.fontSize},[`&-horizontal${Be}-with-text-start${Be}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Be}-inner-text`]:{paddingInlineStart:be}},[`&-horizontal${Be}-with-text-end${Be}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Be}-inner-text`]:{paddingInlineEnd:be}}})}},Re=Oe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Oe.marginXS});var Qe=(0,Ue.I$)("Divider",Oe=>{const Be=(0,tt.mergeToken)(Oe,{dividerHorizontalWithTextGutterMargin:Oe.margin,dividerHorizontalGutterMargin:Oe.marginLG,sizePaddingEdgeHorizontal:0});return[Se(Be)]},Re,{unitless:{orientationMargin:!0}}),qe=function(Oe,Be){var be={};for(var Pe in Oe)Object.prototype.hasOwnProperty.call(Oe,Pe)&&Be.indexOf(Pe)<0&&(be[Pe]=Oe[Pe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Pe=Object.getOwnPropertySymbols(Oe);Ye{const{getPrefixCls:Be,direction:be,className:Pe,style:Ye}=(0,Je.dj)("divider"),{prefixCls:it,type:pe="horizontal",orientation:Ke="center",orientationMargin:nt,className:Et,rootClassName:At,children:st,dashed:Xe,variant:ut="solid",plain:Le,style:ze}=Oe,Ne=qe(Oe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),at=Be("divider",it),[Bt,ct,$e]=Qe(at),Ft=!!st,De=E.useMemo(()=>Ke==="left"?be==="rtl"?"end":"start":Ke==="right"?be==="rtl"?"start":"end":Ke,[be,Ke]),ge=De==="start"&&nt!=null,lt=De==="end"&&nt!=null,wt=xe()(at,Pe,ct,$e,`${at}-${pe}`,{[`${at}-with-text`]:Ft,[`${at}-with-text-${De}`]:Ft,[`${at}-dashed`]:!!Xe,[`${at}-${ut}`]:ut!=="solid",[`${at}-plain`]:!!Le,[`${at}-rtl`]:be==="rtl",[`${at}-no-default-orientation-margin-start`]:ge,[`${at}-no-default-orientation-margin-end`]:lt},Et,At),yt=E.useMemo(()=>typeof nt=="number"?nt:/^\d+$/.test(nt)?Number(nt):nt,[nt]),je={marginInlineStart:ge?yt:void 0,marginInlineEnd:lt?yt:void 0};return Bt(E.createElement("div",Object.assign({className:wt,style:Object.assign(Object.assign({},Ye),ze)},Ne,{role:"separator"}),st&&pe!=="vertical"&&E.createElement("span",{className:`${at}-inner-text`,style:je},st)))}},54265:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return st}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(2738),We=ne(99402),Ae=ne(48755),Ue=ne(16931),tt=ne(51636);const Se=["wrap","nowrap","wrap-reverse"],Re=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Qe=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],qe=(Xe,ut)=>{const Le=ut.wrap===!0?"wrap":ut.wrap;return{[`${Xe}-wrap-${Le}`]:Le&&Se.includes(Le)}},ht=(Xe,ut)=>{const Le={};return Qe.forEach(ze=>{Le[`${Xe}-align-${ze}`]=ut.align===ze}),Le[`${Xe}-align-stretch`]=!ut.align&&!!ut.vertical,Le},Ge=(Xe,ut)=>{const Le={};return Re.forEach(ze=>{Le[`${Xe}-justify-${ze}`]=ut.justify===ze}),Le};function Oe(Xe,ut){return xe()(Object.assign(Object.assign(Object.assign({},qe(Xe,ut)),ht(Xe,ut)),Ge(Xe,ut)))}var Be=Oe;const be=Xe=>{const{componentCls:ut}=Xe;return{[ut]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Pe=Xe=>{const{componentCls:ut}=Xe;return{[ut]:{"&-gap-small":{gap:Xe.flexGapSM},"&-gap-middle":{gap:Xe.flexGap},"&-gap-large":{gap:Xe.flexGapLG}}}},Ye=Xe=>{const{componentCls:ut}=Xe,Le={};return Se.forEach(ze=>{Le[`${ut}-wrap-${ze}`]={flexWrap:ze}}),Le},it=Xe=>{const{componentCls:ut}=Xe,Le={};return Qe.forEach(ze=>{Le[`${ut}-align-${ze}`]={alignItems:ze}}),Le},pe=Xe=>{const{componentCls:ut}=Xe,Le={};return Re.forEach(ze=>{Le[`${ut}-justify-${ze}`]={justifyContent:ze}}),Le},Ke=()=>({});var nt=(0,Ue.I$)("Flex",Xe=>{const{paddingXS:ut,padding:Le,paddingLG:ze}=Xe,Ne=(0,tt.mergeToken)(Xe,{flexGapSM:ut,flexGap:Le,flexGapLG:ze});return[be(Ne),Pe(Ne),Ye(Ne),it(Ne),pe(Ne)]},Ke,{resetStyle:!1}),Et=function(Xe,ut){var Le={};for(var ze in Xe)Object.prototype.hasOwnProperty.call(Xe,ze)&&ut.indexOf(ze)<0&&(Le[ze]=Xe[ze]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ze=Object.getOwnPropertySymbols(Xe);Ne{const{prefixCls:Le,rootClassName:ze,className:Ne,style:at,flex:Bt,gap:ct,children:$e,vertical:Ft=!1,component:De="div"}=Xe,ge=Et(Xe,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:lt,direction:wt,getPrefixCls:yt}=E.useContext(Ae.E_),je=yt("flex",Le),[Ve,pt,Kt]=nt(je),kt=Ft!=null?Ft:lt==null?void 0:lt.vertical,dn=xe()(Ne,ze,lt==null?void 0:lt.className,je,pt,Kt,Be(je,Xe),{[`${je}-rtl`]:wt==="rtl",[`${je}-gap-${ct}`]:(0,We.n)(ct),[`${je}-vertical`]:kt}),dt=Object.assign(Object.assign({},lt==null?void 0:lt.style),at);return Bt&&(dt.flex=Bt),ct&&!(0,We.n)(ct)&&(dt.gap=ct),Ve(E.createElement(De,Object.assign({ref:ut,className:dn,style:dt},(0,Je.Z)(ge,["justify","wrap","align"])),$e))})},58755:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return Bt}});var E=ne(59301),ve=ne(58617),xe=ne(92310),Je=ne.n(xe),We=ne(54476),Ae=ne(20068),Ue=ne(42978),tt=ne(75931),Se=ne(18929),Re=ne(10228),Qe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],qe=E.forwardRef(function(ct,$e){var Ft,De=ct.prefixCls,ge=De===void 0?"rc-switch":De,lt=ct.className,wt=ct.checked,yt=ct.defaultChecked,je=ct.disabled,Ve=ct.loadingIcon,pt=ct.checkedChildren,Kt=ct.unCheckedChildren,kt=ct.onClick,dn=ct.onChange,dt=ct.onKeyDown,Nt=(0,tt.Z)(ct,Qe),mn=(0,Se.Z)(!1,{value:wt,defaultValue:yt}),he=(0,Ue.Z)(mn,2),se=he[0],ae=he[1];function ce(Ht,on){var kn=se;return je||(kn=Ht,ae(kn),dn==null||dn(kn,on)),kn}function me(Ht){Ht.which===Re.Z.LEFT?ce(!1,Ht):Ht.which===Re.Z.RIGHT&&ce(!0,Ht),dt==null||dt(Ht)}function le(Ht){var on=ce(!se,Ht);kt==null||kt(on,Ht)}var ot=Je()(ge,lt,(Ft={},(0,Ae.Z)(Ft,"".concat(ge,"-checked"),se),(0,Ae.Z)(Ft,"".concat(ge,"-disabled"),je),Ft));return E.createElement("button",(0,We.Z)({},Nt,{type:"button",role:"switch","aria-checked":se,disabled:je,className:ot,ref:$e,onKeyDown:me,onClick:le}),Ve,E.createElement("span",{className:"".concat(ge,"-inner")},E.createElement("span",{className:"".concat(ge,"-inner-checked")},pt),E.createElement("span",{className:"".concat(ge,"-inner-unchecked")},Kt)))});qe.displayName="Switch";var ht=qe,Ge=ne(12919),Oe=ne(48755),Be=ne(2171),be=ne(31756),Pe=ne(36237),Ye=ne(17835),it=ne(63356),pe=ne(16931),Ke=ne(51636);const nt=ct=>{const{componentCls:$e,trackHeightSM:Ft,trackPadding:De,trackMinWidthSM:ge,innerMinMarginSM:lt,innerMaxMarginSM:wt,handleSizeSM:yt,calc:je}=ct,Ve=`${$e}-inner`,pt=(0,Pe.unit)(je(yt).add(je(De).mul(2)).equal()),Kt=(0,Pe.unit)(je(wt).mul(2).equal());return{[$e]:{[`&${$e}-small`]:{minWidth:ge,height:Ft,lineHeight:(0,Pe.unit)(Ft),[`${$e}-inner`]:{paddingInlineStart:wt,paddingInlineEnd:lt,[`${Ve}-checked, ${Ve}-unchecked`]:{minHeight:Ft},[`${Ve}-checked`]:{marginInlineStart:`calc(-100% + ${pt} - ${Kt})`,marginInlineEnd:`calc(100% - ${pt} + ${Kt})`},[`${Ve}-unchecked`]:{marginTop:je(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:yt,height:yt},[`${$e}-loading-icon`]:{top:je(je(yt).sub(ct.switchLoadingIconSize)).div(2).equal(),fontSize:ct.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:lt,paddingInlineEnd:wt,[`${Ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ve}-unchecked`]:{marginInlineStart:`calc(100% - ${pt} + ${Kt})`,marginInlineEnd:`calc(-100% + ${pt} - ${Kt})`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(je(yt).add(De).equal())})`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${Ve}`]:{[`${Ve}-unchecked`]:{marginInlineStart:je(ct.marginXXS).div(2).equal(),marginInlineEnd:je(ct.marginXXS).mul(-1).div(2).equal()}},[`&${$e}-checked ${Ve}`]:{[`${Ve}-checked`]:{marginInlineStart:je(ct.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:je(ct.marginXXS).div(2).equal()}}}}}}},Et=ct=>{const{componentCls:$e,handleSize:Ft,calc:De}=ct;return{[$e]:{[`${$e}-loading-icon${ct.iconCls}`]:{position:"relative",top:De(De(Ft).sub(ct.fontSize)).div(2).equal(),color:ct.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:ct.switchColor}}}},At=ct=>{const{componentCls:$e,trackPadding:Ft,handleBg:De,handleShadow:ge,handleSize:lt,calc:wt}=ct,yt=`${$e}-handle`;return{[$e]:{[yt]:{position:"absolute",top:Ft,insetInlineStart:Ft,width:lt,height:lt,transition:`all ${ct.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:De,borderRadius:wt(lt).div(2).equal(),boxShadow:ge,transition:`all ${ct.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${yt}`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(wt(lt).add(Ft).equal())})`},[`&:not(${$e}-disabled):active`]:{[`${yt}::before`]:{insetInlineEnd:ct.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${yt}::before`]:{insetInlineEnd:0,insetInlineStart:ct.switchHandleActiveInset}}}}},st=ct=>{const{componentCls:$e,trackHeight:Ft,trackPadding:De,innerMinMargin:ge,innerMaxMargin:lt,handleSize:wt,calc:yt}=ct,je=`${$e}-inner`,Ve=(0,Pe.unit)(yt(wt).add(yt(De).mul(2)).equal()),pt=(0,Pe.unit)(yt(lt).mul(2).equal());return{[$e]:{[je]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:lt,paddingInlineEnd:ge,transition:`padding-inline-start ${ct.switchDuration} ease-in-out, padding-inline-end ${ct.switchDuration} ease-in-out`,[`${je}-checked, ${je}-unchecked`]:{display:"block",color:ct.colorTextLightSolid,fontSize:ct.fontSizeSM,transition:`margin-inline-start ${ct.switchDuration} ease-in-out, margin-inline-end ${ct.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ft},[`${je}-checked`]:{marginInlineStart:`calc(-100% + ${Ve} - ${pt})`,marginInlineEnd:`calc(100% - ${Ve} + ${pt})`},[`${je}-unchecked`]:{marginTop:yt(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${je}`]:{paddingInlineStart:ge,paddingInlineEnd:lt,[`${je}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${je}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve} + ${pt})`,marginInlineEnd:`calc(-100% + ${Ve} - ${pt})`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${je}`]:{[`${je}-unchecked`]:{marginInlineStart:yt(De).mul(2).equal(),marginInlineEnd:yt(De).mul(-1).mul(2).equal()}},[`&${$e}-checked ${je}`]:{[`${je}-checked`]:{marginInlineStart:yt(De).mul(-1).mul(2).equal(),marginInlineEnd:yt(De).mul(2).equal()}}}}}},Xe=ct=>{const{componentCls:$e,trackHeight:Ft,trackMinWidth:De}=ct;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,it.Wf)(ct)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:De,height:Ft,lineHeight:(0,Pe.unit)(Ft),verticalAlign:"middle",background:ct.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ct.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:ct.colorTextTertiary}}),(0,it.Qy)(ct)),{[`&${$e}-checked`]:{background:ct.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:ct.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:ct.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}},ut=ct=>{const{fontSize:$e,lineHeight:Ft,controlHeight:De,colorWhite:ge}=ct,lt=$e*Ft,wt=De/2,yt=2,je=lt-yt*2,Ve=wt-yt*2;return{trackHeight:lt,trackHeightSM:wt,trackMinWidth:je*2+yt*4,trackMinWidthSM:Ve*2+yt*2,trackPadding:yt,handleBg:ge,handleSize:je,handleSizeSM:Ve,handleShadow:`0 2px 4px 0 ${new Ye.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:je/2,innerMaxMargin:je+yt+yt*2,innerMinMarginSM:Ve/2,innerMaxMarginSM:Ve+yt+yt*2}};var Le=(0,pe.I$)("Switch",ct=>{const $e=(0,Ke.mergeToken)(ct,{switchDuration:ct.motionDurationMid,switchColor:ct.colorPrimary,switchDisabledOpacity:ct.opacityLoading,switchLoadingIconSize:ct.calc(ct.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ct.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe($e),st($e),At($e),Et($e),nt($e)]},ut),ze=function(ct,$e){var Ft={};for(var De in ct)Object.prototype.hasOwnProperty.call(ct,De)&&$e.indexOf(De)<0&&(Ft[De]=ct[De]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,De=Object.getOwnPropertySymbols(ct);ge{const{prefixCls:Ft,size:De,disabled:ge,loading:lt,className:wt,rootClassName:yt,style:je,checked:Ve,value:pt,defaultChecked:Kt,defaultValue:kt,onChange:dn}=ct,dt=ze(ct,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Nt,mn]=(0,Se.Z)(!1,{value:Ve!=null?Ve:pt,defaultValue:Kt!=null?Kt:kt}),{getPrefixCls:he,direction:se,switch:ae}=E.useContext(Oe.E_),ce=E.useContext(Be.Z),me=(ge!=null?ge:ce)||lt,le=he("switch",Ft),ot=E.createElement("div",{className:`${le}-handle`},lt&&E.createElement(ve.Z,{className:`${le}-loading-icon`})),[Ht,on,kn]=Le(le),wn=(0,be.Z)(De),Xn=Je()(ae==null?void 0:ae.className,{[`${le}-small`]:wn==="small",[`${le}-loading`]:lt,[`${le}-rtl`]:se==="rtl"},wt,yt,on,kn),Nn=Object.assign(Object.assign({},ae==null?void 0:ae.style),je),Pr=function(){mn(arguments.length<=0?void 0:arguments[0]),dn==null||dn.apply(void 0,arguments)};return Ht(E.createElement(Ge.Z,{component:"Switch"},E.createElement(ht,Object.assign({},dt,{checked:Nt,onChange:Pr,prefixCls:le,className:Xn,style:Nn,disabled:me,ref:$e,loadingIcon:ot}))))});at.__ANT_SWITCH=!0;var Bt=at},53420:function(_t,Pt,ne){"use strict";ne.d(Pt,{default:function(){return Un}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(54476),We=ne(94480),Ae=ne(33885),Ue=ne(42978),tt=ne(75931),Se=ne(76190),Re=ne(37463),Qe=ne(6551),qe=ne(34643),ht=ne(18929),Ge=ne(48736),Oe=function(Lt){var Dn=E.useRef({valueLabels:new Map});return E.useMemo(function(){var rr=Dn.current.valueLabels,Rn=new Map,ar=Lt.map(function(wr){var er=wr.value,Vt=wr.label,On=Vt!=null?Vt:rr.get(er);return Rn.set(er,On),(0,Ae.Z)((0,Ae.Z)({},wr),{},{label:On})});return Dn.current.valueLabels=Rn,[ar]},[Lt])},Be=function(Dn,rr,Rn,ar){return E.useMemo(function(){var wr=function(Ga){return Ga.map(function(za){var An=za.value;return An})},er=wr(Dn),Vt=wr(rr),On=er.filter(function(Nr){return!ar[Nr]}),Cr=er,Hr=Vt;if(Rn){var jr=(0,qe.S)(er,!0,ar);Cr=jr.checkedKeys,Hr=jr.halfCheckedKeys}return[Array.from(new Set([].concat((0,We.Z)(On),(0,We.Z)(Cr)))),Hr]},[Dn,rr,Rn,ar])},be=Be,Pe=ne(34061),Ye=function(Lt,Dn){return E.useMemo(function(){var rr=(0,Pe.I8)(Lt,{fieldNames:Dn,initWrapper:function(ar){return(0,Ae.Z)((0,Ae.Z)({},ar),{},{valueEntities:new Map})},processEntity:function(ar,wr){var er=ar.node[Dn.value];if(0)var Vt;wr.valueEntities.set(er,ar)}});return rr},[Lt,Dn])},it=ne(20068),pe=ne(11592),Ke=function(){return null},nt=Ke,Et=["children","value"];function At(Lt){return(0,pe.Z)(Lt).map(function(Dn){if(!E.isValidElement(Dn)||!Dn.type)return null;var rr=Dn,Rn=rr.key,ar=rr.props,wr=ar.children,er=ar.value,Vt=(0,tt.Z)(ar,Et),On=(0,Ae.Z)({key:Rn,value:er},Vt),Cr=At(wr);return Cr.length&&(On.children=Cr),On}).filter(function(Dn){return Dn})}function st(Lt){if(!Lt)return Lt;var Dn=(0,Ae.Z)({},Lt);return"props"in Dn||Object.defineProperty(Dn,"props",{get:function(){return(0,Ge.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Dn}}),Dn}function Xe(Lt,Dn,rr,Rn,ar,wr){var er=null,Vt=null;function On(){function Cr(Hr){var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Nr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Hr.map(function(Ga,za){var An="".concat(jr,"-").concat(za),rn=Ga[wr.value],Yi=rr.includes(rn),$o=Cr(Ga[wr.children]||[],An,Yi),Ki=E.createElement(nt,Ga,$o.map(function(tn){return tn.node}));if(Dn===rn&&(er=Ki),Yi){var xt={pos:An,node:Ki,children:$o};return Nr||Vt.push(xt),xt}return null}).filter(function(Ga){return Ga})}Vt||(Vt=[],Cr(Rn),Vt.sort(function(Hr,jr){var Nr=Hr.node.props.value,Ga=jr.node.props.value,za=rr.indexOf(Nr),An=rr.indexOf(Ga);return za-An}))}Object.defineProperty(Lt,"triggerNode",{get:function(){return(0,Ge.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),On(),er}}),Object.defineProperty(Lt,"allCheckedNodes",{get:function(){return(0,Ge.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),On(),ar?Vt:Vt.map(function(Hr){var jr=Hr.node;return jr})}})}var ut=function(Dn,rr,Rn){var ar=Rn.fieldNames,wr=Rn.treeNodeFilterProp,er=Rn.filterTreeNode,Vt=ar.children;return E.useMemo(function(){if(!rr||er===!1)return Dn;var On=typeof er=="function"?er:function(Hr,jr){return String(jr[wr]).toUpperCase().includes(rr.toUpperCase())},Cr=function Hr(jr){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return jr.reduce(function(Ga,za){var An=za[Vt],rn=Nr||On(rr,st(za)),Yi=Hr(An||[],rn);return(rn||Yi.length)&&Ga.push((0,Ae.Z)((0,Ae.Z)({},za),{},(0,it.Z)({isLeaf:void 0},Vt,Yi))),Ga},[])};return Cr(Dn)},[Dn,rr,Vt,wr,er])},Le=ut;function ze(Lt){var Dn=E.useRef();Dn.current=Lt;var rr=E.useCallback(function(){return Dn.current.apply(Dn,arguments)},[]);return rr}function Ne(Lt,Dn){var rr=Dn.id,Rn=Dn.pId,ar=Dn.rootPId,wr=new Map,er=[];return Lt.forEach(function(Vt){var On=Vt[rr],Cr=(0,Ae.Z)((0,Ae.Z)({},Vt),{},{key:Vt.key||On});wr.set(On,Cr)}),wr.forEach(function(Vt){var On=Vt[Rn],Cr=wr.get(On);Cr?(Cr.children=Cr.children||[],Cr.children.push(Vt)):(On===ar||ar===null)&&er.push(Vt)}),er}function at(Lt,Dn,rr){return E.useMemo(function(){if(Lt){if(rr){var Rn=(0,Ae.Z)({id:"id",pId:"pId",rootPId:null},(0,Se.Z)(rr)==="object"?rr:{});return Ne(Lt,Rn)}return Lt}return At(Dn)},[Dn,rr,Lt])}var Bt=E.createContext(null),ct=Bt,$e=ne(19251),Ft=ne(3741),De=ne(10228),ge=ne(80547),lt=E.createContext(null),wt=lt,yt=function(Dn){return Array.isArray(Dn)?Dn:Dn!==void 0?[Dn]:[]},je=function(Dn){var rr=Dn||{},Rn=rr.label,ar=rr.value,wr=rr.children;return{_title:Rn?[Rn]:["title","label"],value:ar||"value",key:ar||"value",children:wr||"children"}},Ve=function(Dn){return!Dn||Dn.disabled||Dn.disableCheckbox||Dn.checkable===!1},pt=function(Dn,rr){var Rn=[],ar=function wr(er){er.forEach(function(Vt){var On=Vt[rr.children];On&&(Rn.push(Vt[rr.value]),wr(On))})};return ar(Dn),Rn},Kt=function(Dn){return Dn==null},kt=ne(70425),dn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},dt=function(Dn,rr){var Rn=(0,Re.lk)(),ar=Rn.prefixCls,wr=Rn.multiple,er=Rn.searchValue,Vt=Rn.toggleOpen,On=Rn.open,Cr=Rn.notFoundContent,Hr=E.useContext(wt),jr=Hr.virtual,Nr=Hr.listHeight,Ga=Hr.listItemHeight,za=Hr.listItemScrollOffset,An=Hr.treeData,rn=Hr.fieldNames,Yi=Hr.onSelect,$o=Hr.dropdownMatchSelectWidth,Ki=Hr.treeExpandAction,xt=Hr.treeTitleRender,tn=Hr.onPopupScroll,Tt=Hr.leftMaxCount,It=Hr.leafCountOnly,Zn=Hr.valueEntities,Gn=E.useContext(ct),yn=Gn.checkable,tr=Gn.checkedKeys,Mr=Gn.halfCheckedKeys,Tr=Gn.treeExpandedKeys,Qa=Gn.treeDefaultExpandAll,ua=Gn.treeDefaultExpandedKeys,ta=Gn.onTreeExpand,Ua=Gn.treeIcon,Kr=Gn.showTreeIcon,ya=Gn.switcherIcon,qa=Gn.treeLine,ai=Gn.treeNodeFilterProp,bi=Gn.loadData,Ba=Gn.treeLoadedKeys,ra=Gn.treeMotion,eo=Gn.onTreeLoad,wi=Gn.keyEntities,Ta=E.useRef(),oi=(0,ge.Z)(function(){return An},[On,An],function(La,Pa){return Pa[0]&&La[1]!==Pa[1]}),ki=E.useMemo(function(){return yn?{checked:tr,halfChecked:Mr}:null},[yn,tr,Mr]);E.useEffect(function(){if(On&&!wr&&tr.length){var La;(La=Ta.current)===null||La===void 0||La.scrollTo({key:tr[0]})}},[On]);var ti=function(Pa){Pa.preventDefault()},_a=function(Pa,Xi){var ji=Xi.node;yn&&Ve(ji)||(Yi(ji.key,{selected:!tr.includes(ji.key)}),wr||Vt(!1))},ci=E.useState(ua),Ai=(0,Ue.Z)(ci,2),Fo=Ai[0],Qi=Ai[1],Hi=E.useState(null),oo=(0,Ue.Z)(Hi,2),na=oo[0],to=oo[1],Fi=E.useMemo(function(){return Tr?(0,We.Z)(Tr):er?na:Fo},[Fo,na,Tr,er]),Oo=function(Pa){Qi(Pa),to(Pa),ta&&ta(Pa)},Ni=String(er).toLowerCase(),li=function(Pa){return Ni?String(Pa[ai]).toLowerCase().includes(Ni):!1};E.useEffect(function(){er&&to(pt(An,rn))},[er]);var _e=E.useState(function(){return new Map}),Jt=(0,Ue.Z)(_e,2),nn=Jt[0],Fn=Jt[1];E.useEffect(function(){Tt&&Fn(new Map)},[Tt]);function Zt(La){var Pa=La[rn.value];if(!nn.has(Pa)){var Xi=Zn.get(Pa),ji=(Xi.children||[]).length===0;if(ji)nn.set(Pa,!1);else{var Do=Xi.children.filter(function(al){return!al.node.disabled&&!al.node.disableCheckbox&&!tr.includes(al.node[rn.value])}),dl=Do.length;nn.set(Pa,dl>Tt)}}return nn.get(Pa)}var Xt=(0,kt.zX)(function(La){var Pa=La[rn.value];return tr.includes(Pa)||Tt===null?!1:Tt<=0?!0:It&&Tt?Zt(La):!1}),an=function La(Pa){var Xi=(0,$e.Z)(Pa),ji;try{for(Xi.s();!(ji=Xi.n()).done;){var Do=ji.value;if(!(Do.disabled||Do.selectable===!1)){if(er){if(li(Do))return Do}else return Do;if(Do[rn.children]){var dl=La(Do[rn.children]);if(dl)return dl}}}}catch(al){Xi.e(al)}finally{Xi.f()}return null},Qt=E.useState(null),en=(0,Ue.Z)(Qt,2),Wn=en[0],fr=en[1],pr=wi[Wn];E.useEffect(function(){if(On){var La=null,Pa=function(){var ji=an(oi);return ji?ji[rn.value]:null};!wr&&tr.length&&!er?La=tr[0]:La=Pa(),fr(La)}},[On,er]),E.useImperativeHandle(rr,function(){var La;return{scrollTo:(La=Ta.current)===null||La===void 0?void 0:La.scrollTo,onKeyDown:function(Xi){var ji,Do=Xi.which;switch(Do){case De.Z.UP:case De.Z.DOWN:case De.Z.LEFT:case De.Z.RIGHT:(ji=Ta.current)===null||ji===void 0||ji.onKeyDown(Xi);break;case De.Z.ENTER:{if(pr){var dl=Xt(pr.node),al=(pr==null?void 0:pr.node)||{},Xo=al.selectable,bl=al.value,Ao=al.disabled;Xo!==!1&&!Ao&&!dl&&_a(null,{node:{key:Wn},selected:!tr.includes(bl)})}break}case De.Z.ESC:Vt(!1)}},onKeyUp:function(){}}});var cr=(0,ge.Z)(function(){return!er},[er,Tr||Fo],function(La,Pa){var Xi=(0,Ue.Z)(La,1),ji=Xi[0],Do=(0,Ue.Z)(Pa,2),dl=Do[0],al=Do[1];return ji!==dl&&!!(dl||al)}),Xr=cr?bi:null;if(oi.length===0)return E.createElement("div",{role:"listbox",className:"".concat(ar,"-empty"),onMouseDown:ti},Cr);var ca={fieldNames:rn};return Ba&&(ca.loadedKeys=Ba),Fi&&(ca.expandedKeys=Fi),E.createElement("div",{onMouseDown:ti},pr&&On&&E.createElement("span",{style:dn,"aria-live":"assertive"},pr.node.value),E.createElement(Ft.y6.Provider,{value:{nodeDisabled:Xt}},E.createElement(Ft.ZP,(0,Je.Z)({ref:Ta,focusable:!1,prefixCls:"".concat(ar,"-tree"),treeData:oi,height:Nr,itemHeight:Ga,itemScrollOffset:za,virtual:jr!==!1&&$o!==!1,multiple:wr,icon:Ua,showIcon:Kr,switcherIcon:ya,showLine:qa,loadData:Xr,motion:ra,activeKey:Wn,checkable:yn,checkStrictly:!0,checkedKeys:ki,selectedKeys:yn?[]:tr,defaultExpandAll:Qa,titleRender:xt},ca,{onActiveChange:fr,onSelect:_a,onCheck:_a,onExpand:Oo,onLoad:eo,filterTreeNode:li,expandAction:Ki,onScroll:tn}))))},Nt=E.forwardRef(dt),mn=Nt,he="SHOW_ALL",se="SHOW_PARENT",ae="SHOW_CHILD";function ce(Lt,Dn,rr,Rn){var ar=new Set(Lt);return Dn===ae?Lt.filter(function(wr){var er=rr[wr];return!er||!er.children||!er.children.some(function(Vt){var On=Vt.node;return ar.has(On[Rn.value])})||!er.children.every(function(Vt){var On=Vt.node;return Ve(On)||ar.has(On[Rn.value])})}):Dn===se?Lt.filter(function(wr){var er=rr[wr],Vt=er?er.parent:null;return!Vt||Ve(Vt.node)||!ar.has(Vt.key)}):Lt}function me(Lt){var Dn=Lt.searchPlaceholder,rr=Lt.treeCheckStrictly,Rn=Lt.treeCheckable,ar=Lt.labelInValue,wr=Lt.value,er=Lt.multiple,Vt=Lt.showCheckedStrategy,On=Lt.maxCount;warning(!Dn,"`searchPlaceholder` has been removed."),rr&&ar===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ar||rr)&&warning(toArray(wr).every(function(Cr){return Cr&&_typeof(Cr)==="object"&&"value"in Cr}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),rr||er||Rn?warning(!wr||Array.isArray(wr),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(wr),"`value` should not be array when `TreeSelect` is single mode."),On&&(Vt==="SHOW_ALL"&&!rr||Vt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var le=null,ot=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Ht(Lt){return!Lt||(0,Se.Z)(Lt)!=="object"}var on=E.forwardRef(function(Lt,Dn){var rr=Lt.id,Rn=Lt.prefixCls,ar=Rn===void 0?"rc-tree-select":Rn,wr=Lt.value,er=Lt.defaultValue,Vt=Lt.onChange,On=Lt.onSelect,Cr=Lt.onDeselect,Hr=Lt.searchValue,jr=Lt.inputValue,Nr=Lt.onSearch,Ga=Lt.autoClearSearchValue,za=Ga===void 0?!0:Ga,An=Lt.filterTreeNode,rn=Lt.treeNodeFilterProp,Yi=rn===void 0?"value":rn,$o=Lt.showCheckedStrategy,Ki=Lt.treeNodeLabelProp,xt=Lt.multiple,tn=Lt.treeCheckable,Tt=Lt.treeCheckStrictly,It=Lt.labelInValue,Zn=Lt.maxCount,Gn=Lt.fieldNames,yn=Lt.treeDataSimpleMode,tr=Lt.treeData,Mr=Lt.children,Tr=Lt.loadData,Qa=Lt.treeLoadedKeys,ua=Lt.onTreeLoad,ta=Lt.treeDefaultExpandAll,Ua=Lt.treeExpandedKeys,Kr=Lt.treeDefaultExpandedKeys,ya=Lt.onTreeExpand,qa=Lt.treeExpandAction,ai=Lt.virtual,bi=Lt.listHeight,Ba=bi===void 0?200:bi,ra=Lt.listItemHeight,eo=ra===void 0?20:ra,wi=Lt.listItemScrollOffset,Ta=wi===void 0?0:wi,oi=Lt.onDropdownVisibleChange,ki=Lt.dropdownMatchSelectWidth,ti=ki===void 0?!0:ki,_a=Lt.treeLine,ci=Lt.treeIcon,Ai=Lt.showTreeIcon,Fo=Lt.switcherIcon,Qi=Lt.treeMotion,Hi=Lt.treeTitleRender,oo=Lt.onPopupScroll,na=(0,tt.Z)(Lt,ot),to=(0,Qe.ZP)(rr),Fi=tn&&!Tt,Oo=tn||Tt,Ni=Tt||It,li=Oo||xt,_e=(0,ht.Z)(er,{value:wr}),Jt=(0,Ue.Z)(_e,2),nn=Jt[0],Fn=Jt[1],Zt=E.useMemo(function(){return tn?$o||ae:he},[$o,tn]),Xt=E.useMemo(function(){return je(Gn)},[JSON.stringify(Gn)]),an=(0,ht.Z)("",{value:Hr!==void 0?Hr:jr,postState:function(zr){return zr||""}}),Qt=(0,Ue.Z)(an,2),en=Qt[0],Wn=Qt[1],fr=function(zr){Wn(zr),Nr==null||Nr(zr)},pr=at(tr,Mr,yn),cr=Ye(pr,Xt),Xr=cr.keyEntities,ca=cr.valueEntities,La=E.useCallback(function(Po){var zr=[],Ci=[];return Po.forEach(function(xo){ca.has(xo)?Ci.push(xo):zr.push(xo)}),{missingRawValues:zr,existRawValues:Ci}},[ca]),Pa=Le(pr,en,{fieldNames:Xt,treeNodeFilterProp:Yi,filterTreeNode:An}),Xi=E.useCallback(function(Po){if(Po){if(Ki)return Po[Ki];for(var zr=Xt._title,Ci=0;CiOs)){var kl=Do(Po);if(Fn(kl),za&&Wn(""),Vt){var Mi=Po;Fi&&(Mi=xo.map(function(es){var ps=ca.get(es);return ps?ps.node[Xt.value]:es}));var wo=zr||{triggerValue:void 0,selected:void 0},Mo=wo.triggerValue,Bl=wo.selected,ls=Mi;if(Tt){var yl=Ao.filter(function(es){return!Mi.includes(es.value)});ls=[].concat((0,We.Z)(ls),(0,We.Z)(yl))}var $l=Do(ls),Ti={preValue:bl,triggerValue:Mo},Bs=!0;(Tt||Ci==="selection"&&!Bl)&&(Bs=!1),Xe(Ti,Mo,Po,pr,Bs,Xt),Oo?Ti.checked=Bl:Ti.selected=Bl;var fl=Ni?$l:$l.map(function(es){return es.value});Vt(li?fl:fl[0],Ni?null:$l.map(function(es){return es.label}),Ti)}}}),As=E.useCallback(function(Po,zr){var Ci,xo=zr.selected,kl=zr.source,Mi=Xr[Po],wo=Mi==null?void 0:Mi.node,Mo=(Ci=wo==null?void 0:wo[Xt.value])!==null&&Ci!==void 0?Ci:Po;if(!li)Gl([Mo],{selected:!0,triggerValue:Mo},"option");else{var Bl=xo?[].concat((0,We.Z)(mo),[Mo]):Zl.filter(function(ps){return ps!==Mo});if(Fi){var ls=La(Bl),yl=ls.missingRawValues,$l=ls.existRawValues,Ti=$l.map(function(ps){return ca.get(ps).key}),Bs;if(xo){var fl=(0,qe.S)(Ti,!0,Xr);Bs=fl.checkedKeys}else{var es=(0,qe.S)(Ti,{checked:!1,halfCheckedKeys:ql},Xr);Bs=es.checkedKeys}Bl=[].concat((0,We.Z)(yl),(0,We.Z)(Bs.map(function(ps){return Xr[ps].node[Xt.value]})))}Gl(Bl,{selected:xo,triggerValue:Mo},kl||"option")}xo||!li?On==null||On(Mo,st(wo)):Cr==null||Cr(Mo,st(wo))},[La,ca,Xr,Xt,li,mo,Gl,Fi,On,Cr,Zl,ql,Zn]),Fs=E.useCallback(function(Po){if(oi){var zr={};Object.defineProperty(zr,"documentClickClose",{get:function(){return(0,Ge.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),oi(Po,zr)}},[oi]),Js=ze(function(Po,zr){var Ci=Po.map(function(xo){return xo.value});if(zr.type==="clear"){Gl(Ci,{},"selection");return}zr.values.length&&As(zr.values[0].value,{selected:!1,source:"selection"})}),Ms=E.useMemo(function(){return{virtual:ai,dropdownMatchSelectWidth:ti,listHeight:Ba,listItemHeight:eo,listItemScrollOffset:Ta,treeData:Pa,fieldNames:Xt,onSelect:As,treeExpandAction:qa,treeTitleRender:Hi,onPopupScroll:oo,leftMaxCount:Zn===void 0?null:Zn-os.length,leafCountOnly:Zt==="SHOW_CHILD"&&!Tt&&!!tn,valueEntities:ca}},[ai,ti,Ba,eo,Ta,Pa,Xt,As,qa,Hi,oo,Zn,os.length,Zt,Tt,tn,ca]),Gs=E.useMemo(function(){return{checkable:Oo,loadData:Tr,treeLoadedKeys:Qa,onTreeLoad:ua,checkedKeys:Zl,halfCheckedKeys:ql,treeDefaultExpandAll:ta,treeExpandedKeys:Ua,treeDefaultExpandedKeys:Kr,onTreeExpand:ya,treeIcon:ci,treeMotion:Qi,showTreeIcon:Ai,switcherIcon:Fo,treeLine:_a,treeNodeFilterProp:Yi,keyEntities:Xr}},[Oo,Tr,Qa,ua,Zl,ql,ta,Ua,Kr,ya,ci,Qi,Ai,Fo,_a,Yi,Xr]);return E.createElement(wt.Provider,{value:Ms},E.createElement(ct.Provider,{value:Gs},E.createElement(Re.Ac,(0,Je.Z)({ref:Dn},na,{id:to,prefixCls:ar,mode:li?"multiple":void 0,displayValues:os,onDisplayValuesChange:Js,searchValue:en,onSearch:fr,OptionList:mn,emptyOptions:!pr.length,onDropdownVisibleChange:Fs,dropdownMatchSelectWidth:ti}))))}),kn=on;kn.TreeNode=nt,kn.SHOW_ALL=he,kn.SHOW_PARENT=se,kn.SHOW_CHILD=ae;var wn=kn,Xn=wn,Nn=ne(2738),Pr=ne(75030),Vr=ne(86641),Ar=ne(45915),Jn=ne(82855),va=ne(48755),Qr=ne(38406),ur=ne(2171),Sn=ne(83397),sr=ne(31756),un=ne(56553),Er=ne(24971),Br=ne(1722),Xa=ne(90376),Da=ne(68525),Sr=ne(90005),En=ne(70045),nr=ne(57700),$r=ne(85278),Aa=ne(36237),ga=ne(36170),Ei=ne(51636),Ii=ne(16931),Ja=ne(12425);const ri=Lt=>{const{componentCls:Dn,treePrefixCls:rr,colorBgElevated:Rn}=Lt,ar=`.${rr}`;return[{[`${Dn}-dropdown`]:[{padding:`${(0,Aa.unit)(Lt.paddingXS)} ${(0,Aa.unit)(Lt.calc(Lt.paddingXS).div(2).equal())}`},(0,Ja.Yk)(rr,(0,Ei.mergeToken)(Lt,{colorBgContainer:Rn}),!1),{[ar]:{borderRadius:0,[`${ar}-list-holder-inner`]:{alignItems:"stretch",[`${ar}-treenode`]:{[`${ar}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ga.C2)(`${rr}-checkbox`,Lt),{"&-rtl":{direction:"rtl",[`${ar}-switcher${ar}-switcher_close`]:{[`${ar}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},hi=null;function $i(Lt,Dn,rr){return(0,Ii.I$)("TreeSelect",Rn=>{const ar=(0,Ei.mergeToken)(Rn,{treePrefixCls:Dn});return[ri(ar)]},Ja.TM)(Lt,rr)}var Ha=function(Lt,Dn){var rr={};for(var Rn in Lt)Object.prototype.hasOwnProperty.call(Lt,Rn)&&Dn.indexOf(Rn)<0&&(rr[Rn]=Lt[Rn]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Rn=Object.getOwnPropertySymbols(Lt);ar{var rr;const{prefixCls:Rn,size:ar,disabled:wr,bordered:er=!0,className:Vt,rootClassName:On,treeCheckable:Cr,multiple:Hr,listHeight:jr=256,listItemHeight:Nr,placement:Ga,notFoundContent:za,switcherIcon:An,treeLine:rn,getPopupContainer:Yi,popupClassName:$o,dropdownClassName:Ki,treeIcon:xt=!1,transitionName:tn,choiceTransitionName:Tt="",status:It,treeExpandAction:Zn,builtinPlacements:Gn,dropdownMatchSelectWidth:yn,popupMatchSelectWidth:tr,allowClear:Mr,variant:Tr,dropdownStyle:Qa,tagRender:ua,maxCount:ta,showCheckedStrategy:Ua,treeCheckStrictly:Kr}=Lt,ya=Ha(Lt,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:qa,getPrefixCls:ai,renderEmpty:bi,direction:Ba,virtual:ra,popupMatchSelectWidth:eo,popupOverflow:wi}=E.useContext(va.E_),[,Ta]=(0,nr.ZP)(),oi=Nr!=null?Nr:(Ta==null?void 0:Ta.controlHeightSM)+(Ta==null?void 0:Ta.paddingXXS),ki=ai(),ti=ai("select",Rn),_a=ai("select-tree",Rn),ci=ai("tree-select",Rn),{compactSize:Ai,compactItemClassnames:Fo}=(0,En.ri)(ti,Ba),Qi=(0,Sn.Z)(ti),Hi=(0,Sn.Z)(ci),[oo,na,to]=(0,Xa.Z)(ti,Qi),[Fi]=$i(ci,_a,Hi),[Oo,Ni]=(0,Er.Z)("treeSelect",Tr,er),li=xe()($o||Ki,`${ci}-dropdown`,{[`${ci}-dropdown-rtl`]:Ba==="rtl"},On,to,Qi,Hi,na),_e=!!(Cr||Hr),Jt=E.useMemo(()=>{if(!(ta&&(Ua==="SHOW_ALL"&&!Kr||Ua==="SHOW_PARENT")))return ta},[ta,Ua,Kr]),nn=(0,Sr.Z)(Lt.suffixIcon,Lt.showArrow),Fn=(rr=tr!=null?tr:yn)!==null&&rr!==void 0?rr:eo,{status:Zt,hasFeedback:Xt,isFormItemInput:an,feedbackIcon:Qt}=E.useContext(un.aM),en=(0,Jn.F)(Zt,It),{suffixIcon:Wn,removeIcon:fr,clearIcon:pr}=(0,Da.Z)(Object.assign(Object.assign({},ya),{multiple:_e,showSuffixIcon:nn,hasFeedback:Xt,feedbackIcon:Qt,prefixCls:ti,componentName:"TreeSelect"})),cr=Mr===!0?{clearIcon:pr}:Mr;let Xr;za!==void 0?Xr=za:Xr=(bi==null?void 0:bi("Select"))||E.createElement(Qr.Z,{componentName:"Select"});const ca=(0,Nn.Z)(ya,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),La=E.useMemo(()=>Ga!==void 0?Ga:Ba==="rtl"?"bottomRight":"bottomLeft",[Ga,Ba]),Pa=(0,sr.Z)(bl=>{var Ao;return(Ao=ar!=null?ar:Ai)!==null&&Ao!==void 0?Ao:bl}),Xi=E.useContext(ur.Z),ji=wr!=null?wr:Xi,Do=xe()(!Rn&&ci,{[`${ti}-lg`]:Pa==="large",[`${ti}-sm`]:Pa==="small",[`${ti}-rtl`]:Ba==="rtl",[`${ti}-${Oo}`]:Ni,[`${ti}-in-form-item`]:an},(0,Jn.Z)(ti,en,Xt),Fo,Vt,On,to,Qi,Hi,na),dl=bl=>E.createElement($r.Z,{prefixCls:_a,switcherIcon:An,treeNodeProps:bl,showLine:rn}),[al]=(0,Pr.Cn)("SelectLike",Qa==null?void 0:Qa.zIndex),Xo=E.createElement(Xn,Object.assign({virtual:ra,disabled:ji},ca,{dropdownMatchSelectWidth:Fn,builtinPlacements:(0,Br.Z)(Gn,wi),ref:Dn,prefixCls:ti,className:Do,listHeight:jr,listItemHeight:oi,treeCheckable:Cr&&E.createElement("span",{className:`${ti}-tree-checkbox-inner`}),treeLine:!!rn,suffixIcon:Wn,multiple:_e,placement:La,removeIcon:fr,allowClear:cr,switcherIcon:dl,showTreeIcon:xt,notFoundContent:Xr,getPopupContainer:Yi||qa,treeMotion:null,dropdownClassName:li,dropdownStyle:Object.assign(Object.assign({},Qa),{zIndex:al}),choiceTransitionName:(0,Vr.m)(ki,"",Tt),transitionName:(0,Vr.m)(ki,"slide-up",tn),treeExpandAction:Zn,tagRender:_e?ua:void 0,maxCount:Jt,showCheckedStrategy:Ua,treeCheckStrictly:Kr}));return oo(Fi(Xo))},qt=E.forwardRef(ea),Ut=(0,Ar.Z)(qt,"dropdownAlign",Lt=>(0,Nn.Z)(Lt,["visible"]));qt.TreeNode=nt,qt.SHOW_ALL=he,qt.SHOW_PARENT=se,qt.SHOW_CHILD=ae,qt._InternalPanelDoNotUseOrYouWillBeFired=Ut;var Un=qt},99498:function(_t,Pt,ne){(function(E){E(ne(89780))})(function(E){E.defineOption("placeholder","",function(tt,Se,Re){var Qe=Re&&Re!=E.Init;if(Se&&!Qe)tt.on("blur",We),tt.on("change",Ae),tt.on("swapDoc",Ae),E.on(tt.getInputField(),"compositionupdate",tt.state.placeholderCompose=function(){Je(tt)}),Ae(tt);else if(!Se&&Qe){tt.off("blur",We),tt.off("change",Ae),tt.off("swapDoc",Ae),E.off(tt.getInputField(),"compositionupdate",tt.state.placeholderCompose),ve(tt);var qe=tt.getWrapperElement();qe.className=qe.className.replace(" CodeMirror-empty","")}Se&&!tt.hasFocus()&&We(tt)});function ve(tt){tt.state.placeholder&&(tt.state.placeholder.parentNode.removeChild(tt.state.placeholder),tt.state.placeholder=null)}function xe(tt){ve(tt);var Se=tt.state.placeholder=document.createElement("pre");Se.style.cssText="height: 0; overflow: visible",Se.style.direction=tt.getOption("direction"),Se.className="CodeMirror-placeholder CodeMirror-line-like";var Re=tt.getOption("placeholder");typeof Re=="string"&&(Re=document.createTextNode(Re)),Se.appendChild(Re),tt.display.lineSpace.insertBefore(Se,tt.display.lineSpace.firstChild)}function Je(tt){setTimeout(function(){var Se=!1,Re=tt.getInputField();Re.nodeName=="TEXTAREA"?Se=!Re.value:tt.lineCount()==1&&(Se=!/[^\u200b]/.test(Re.querySelector(".CodeMirror-line").textContent)),Se?xe(tt):ve(tt)},20)}function We(tt){Ue(tt)&&xe(tt)}function Ae(tt){var Se=tt.getWrapperElement(),Re=Ue(tt);Se.className=Se.className.replace(" CodeMirror-empty","")+(Re?" CodeMirror-empty":""),Re?xe(tt):ve(tt)}function Ue(tt){return tt.lineCount()===1&&tt.getLine(0)===""}})},25717:function(_t,Pt,ne){(function(E){E(ne(89780))})(function(E){var ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Oe,Be,be){be&&be!=E.Init&&(Oe.removeKeyMap(We),Oe.state.closeBrackets=null),Be&&(Ae(Je(Be,"pairs")),Oe.state.closeBrackets=Be,Oe.addKeyMap(We))});function Je(Oe,Be){return Be=="pairs"&&typeof Oe=="string"?Oe:typeof Oe=="object"&&Oe[Be]!=null?Oe[Be]:ve[Be]}var We={Backspace:Se,Enter:Re};function Ae(Oe){for(var Be=0;Be=0;Ye--){var pe=Pe[Ye].head;Oe.replaceRange("",xe(pe.line,pe.ch-1),xe(pe.line,pe.ch+1),"+delete")}}function Re(Oe){var Be=tt(Oe),be=Be&&Je(Be,"explode");if(!be||Oe.getOption("disableInput"))return E.Pass;for(var Pe=Oe.listSelections(),Ye=0;Ye0;return{anchor:new xe(Oe.anchor.line,Oe.anchor.ch+(Be?-1:1)),head:new xe(Oe.head.line,Oe.head.ch+(Be?1:-1))}}function qe(Oe,Be){var be=tt(Oe);if(!be||Oe.getOption("disableInput"))return E.Pass;var Pe=Je(be,"pairs"),Ye=Pe.indexOf(Be);if(Ye==-1)return E.Pass;for(var it=Je(be,"closeBefore"),pe=Je(be,"triples"),Ke=Pe.charAt(Ye+1)==Be,nt=Oe.listSelections(),Et=Ye%2==0,At,st=0;st=0&&Oe.getRange(ut,xe(ut.line,ut.ch+3))==Be+Be+Be?Le="skipThree":Le="skip";else if(Ke&&ut.ch>1&&pe.indexOf(Be)>=0&&Oe.getRange(xe(ut.line,ut.ch-2),ut)==Be+Be){if(ut.ch>2&&/\bstring/.test(Oe.getTokenTypeAt(xe(ut.line,ut.ch-2))))return E.Pass;Le="addFour"}else if(Ke){var Ne=ut.ch==0?" ":Oe.getRange(xe(ut.line,ut.ch-1),ut);if(!E.isWordChar(ze)&&Ne!=Be&&!E.isWordChar(Ne))Le="both";else return E.Pass}else if(Et&&(ze.length===0||/\s/.test(ze)||it.indexOf(ze)>-1))Le="both";else return E.Pass;if(!At)At=Le;else if(At!=Le)return E.Pass}var at=Ye%2?Pe.charAt(Ye-1):Be,Bt=Ye%2?Be:Pe.charAt(Ye+1);Oe.operation(function(){if(At=="skip")Oe.execCommand("goCharRight");else if(At=="skipThree")for(var ct=0;ct<3;ct++)Oe.execCommand("goCharRight");else if(At=="surround"){for(var $e=Oe.getSelections(),ct=0;ct<$e.length;ct++)$e[ct]=at+$e[ct]+Bt;Oe.replaceSelections($e,"around"),$e=Oe.listSelections().slice();for(var ct=0;ct<$e.length;ct++)$e[ct]=Qe($e[ct]);Oe.setSelections($e)}else At=="both"?(Oe.replaceSelection(at+Bt,null),Oe.triggerElectric(at+Bt),Oe.execCommand("goCharLeft")):At=="addFour"&&(Oe.replaceSelection(at+at+at+at,"before"),Oe.execCommand("goCharRight"))})}function ht(Oe,Be){var be=Oe.getRange(xe(Be.line,Be.ch-1),xe(Be.line,Be.ch+1));return be.length==2?be:null}function Ge(Oe,Be){var be=Oe.getTokenAt(xe(Be.line,Be.ch+1));return/\bstring/.test(be.type)&&be.start==Be.ch&&(Be.ch==0||!/\bstring/.test(Oe.getTokenTypeAt(Be)))}})},81040:function(_t,Pt,ne){(function(E){E(ne(89780),ne(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Se,Re,Qe){if(Qe!=E.Init&&Qe&&Se.removeKeyMap("autoCloseTags"),!!Re){var qe={name:"autoCloseTags"};(typeof Re!="object"||Re.whenClosing!==!1)&&(qe["'/'"]=function(ht){return Ae(ht)}),(typeof Re!="object"||Re.whenOpening!==!1)&&(qe["'>'"]=function(ht){return Je(ht)}),Se.addKeyMap(qe)}});var ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Je(Se){if(Se.getOption("disableInput"))return E.Pass;for(var Re=Se.listSelections(),Qe=[],qe=Se.getOption("autoCloseTags"),ht=0;htGe.ch&&(Ye=Ye.slice(0,Ye.length-Oe.end+Ge.ch));var nt=Ye.toLowerCase();if(!Ye||Oe.type=="string"&&(Oe.end!=Ge.ch||!/[\"\']/.test(Oe.string.charAt(Oe.string.length-1))||Oe.string.length==1)||Oe.type=="tag"&&Pe.close||Oe.string.indexOf("/")==Ge.ch-Oe.start-1||pe&&Ue(pe,nt)>-1||tt(Se,Be.mode.xmlCurrentContext&&Be.mode.xmlCurrentContext(be)||[],Ye,Ge,!0))return E.Pass;var Et=typeof qe=="object"&&qe.emptyTags;if(Et&&Ue(Et,Ye)>-1){Qe[ht]={text:"/>",newPos:E.Pos(Ge.line,Ge.ch+2)};continue}var At=Ke&&Ue(Ke,nt)>-1;Qe[ht]={indent:At,text:">"+(At?` + &${Me}-slide-up-leave${Me}-slide-up-leave-active${ye}-dropdown-placement-bottomRight`]:{animationName:Sl.Uw},[`${ye}-panel > ${ye}-time-panel`]:{paddingTop:mr},[`${ye}-range-wrapper`]:{display:"flex",position:"relative"},[`${ye}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:re.calc(at).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${br} ease-out`},(0,hs.W)(re,ia,Gr)),{"&:before":{insetInlineStart:re.calc(at).mul(1.5).equal()}}),[`${ye}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ia,borderRadius:Lr,boxShadow:aa,transition:`margin ${br}`,display:"inline-block",pointerEvents:"auto",[`${ye}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ye}-presets`]:{display:"flex",flexDirection:"column",minWidth:_r,maxWidth:Jr,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Vn,borderInlineEnd:`${(0,Ti.unit)(xt)} ${Rt} ${pa}`,li:Object.assign(Object.assign({},es.vS),{borderRadius:Wa,paddingInline:Vn,paddingBlock:re.calc(In).sub(ka).div(2).equal(),cursor:"pointer",transition:`all ${br}`,"+ li":{marginTop:zn},"&:hover":{background:Ur}})}},[`${ye}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${ye}-panel`]:{borderWidth:0}}},[`${ye}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ye}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:jt}}}}),"&-dropdown-range":{padding:`${(0,Ti.unit)(re.calc(Oa).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ye}-separator`]:{transform:"scale(-1, 1)"},[`${ye}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Sl.oN)(re,"slide-up"),(0,Sl.oN)(re,"slide-down"),(0,Ts.Fm)(re,"move-up"),(0,Ts.Fm)(re,"move-down")]};var au=(0,Ls.I$)("DatePicker",re=>{const ye=(0,qs.mergeToken)((0,fl.e)(re),lu(re),{inputPaddingHorizontalBase:re.calc(re.paddingSM).sub(1).equal(),multipleSelectItemHeight:re.multipleItemHeight,selectHeight:re.controlHeight});return[xu(ye),Iu(ye),Il(ye),uu(ye),Pu(ye),(0,ps.c)(re,{focusElCls:`${re.componentCls}-focused`})]},ru),da=ne(68525);function wu(re,ye,Me){return Me!==void 0?Me:ye==="year"&&re.lang.yearPlaceholder?re.lang.yearPlaceholder:ye==="quarter"&&re.lang.quarterPlaceholder?re.lang.quarterPlaceholder:ye==="month"&&re.lang.monthPlaceholder?re.lang.monthPlaceholder:ye==="week"&&re.lang.weekPlaceholder?re.lang.weekPlaceholder:ye==="time"&&re.timePickerLocale.placeholder?re.timePickerLocale.placeholder:re.lang.placeholder}function Uu(re,ye,Me){return Me!==void 0?Me:ye==="year"&&re.lang.yearPlaceholder?re.lang.rangeYearPlaceholder:ye==="quarter"&&re.lang.quarterPlaceholder?re.lang.rangeQuarterPlaceholder:ye==="month"&&re.lang.monthPlaceholder?re.lang.rangeMonthPlaceholder:ye==="week"&&re.lang.weekPlaceholder?re.lang.rangeWeekPlaceholder:ye==="time"&&re.timePickerLocale.placeholder?re.timePickerLocale.rangePlaceholder:re.lang.rangePlaceholder}function Yl(re,ye){const{allowClear:Me=!0}=re,{clearIcon:$e,removeIcon:at}=(0,da.Z)(Object.assign(Object.assign({},re),{prefixCls:ye,componentName:"DatePicker"}));return[pe.useMemo(()=>Me===!1?!1:Object.assign({clearIcon:$e},Me===!0?{}:Me),[Me,$e]),at]}const[gr,_s]=["week","WeekPicker"],[Fu,Nu]=["month","MonthPicker"],[Ou,iu]=["year","YearPicker"],[Ps,sl]=["quarter","QuarterPicker"],[Hl,ks]=["time","TimePicker"];var Zs=ne(7939),Gu=re=>pe.createElement(Zs.ZP,Object.assign({size:"small",type:"primary"},re));function Su(re){return(0,pe.useMemo)(()=>Object.assign({button:Gu},re),[re])}var $s=function(re,ye){var Me={};for(var $e in re)Object.prototype.hasOwnProperty.call(re,$e)&&ye.indexOf($e)<0&&(Me[$e]=re[$e]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,$e=Object.getOwnPropertySymbols(re);at<$e.length;at++)ye.indexOf($e[at])<0&&Object.prototype.propertyIsEnumerable.call(re,$e[at])&&(Me[$e[at]]=re[$e[at]]);return Me},fu=re=>(0,pe.forwardRef)((Me,$e)=>{var at;const{prefixCls:xt,getPopupContainer:Rt,components:jt,className:pn,style:vn,placement:Gt,size:Bn,disabled:Ot,bordered:Tn=!0,placeholder:In,popupClassName:jn,dropdownClassName:Vn,status:zn,rootClassName:Dr,variant:dr,picker:bn}=Me,br=$s(Me,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),qn=pe.useRef(null),{getPrefixCls:mr,direction:Oa,getPopupContainer:ia,rangePicker:Lr}=(0,pe.useContext)(xo.E_),aa=mr("picker",xt),{compactSize:Wa,compactItemClassnames:pa}=(0,yl.ri)(aa,Oa),Ur=mr(),[_r,Jr]=(0,Bl.Z)("rangePicker",dr,Tn),Gr=(0,Mi.Z)(aa),[ka,Ea,oa]=au(aa,Gr),[ma]=Yl(Me,aa),Yr=Su(jt),ha=(0,wo.Z)(Bi=>{var lo;return(lo=Bn!=null?Bn:Wa)!==null&&lo!==void 0?lo:Bi}),fa=pe.useContext(kl.Z),ni=Ot!=null?Ot:fa,di=(0,pe.useContext)(Mo.aM),{hasFeedback:mi,status:vi,feedbackIcon:$a}=di,Li=pe.createElement(pe.Fragment,null,bn===Hl?pe.createElement(Pt,null):pe.createElement(ht,null),mi&&$a);(0,pe.useImperativeHandle)($e,()=>qn.current);const[fn]=(0,ls.Z)("Calendar",$l.Z),Oi=Object.assign(Object.assign({},fn),Me.locale),[no]=(0,zr.Cn)("DatePicker",(at=Me.popupStyle)===null||at===void 0?void 0:at.zIndex);return ka(pe.createElement(Po.Z,{space:!0},pe.createElement(Fl,Object.assign({separator:pe.createElement("span",{"aria-label":"to",className:`${aa}-separator`},pe.createElement(ge,null)),disabled:ni,ref:qn,placement:Gt,placeholder:Uu(Oi,bn,In),suffixIcon:Li,prevIcon:pe.createElement("span",{className:`${aa}-prev-icon`}),nextIcon:pe.createElement("span",{className:`${aa}-next-icon`}),superPrevIcon:pe.createElement("span",{className:`${aa}-super-prev-icon`}),superNextIcon:pe.createElement("span",{className:`${aa}-super-next-icon`}),transitionName:`${Ur}-slide-up`,picker:bn},br,{className:Et()({[`${aa}-${ha}`]:ha,[`${aa}-${_r}`]:Jr},(0,Ci.Z)(aa,(0,Ci.F)(vi,zn),mi),Ea,pa,pn,Lr==null?void 0:Lr.className,oa,Gr,Dr),style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),vn),locale:Oi.lang,prefixCls:aa,getPopupContainer:Rt||ia,generateConfig:re,components:Yr,direction:Oa,classNames:{popup:Et()(Ea,jn||Vn,oa,Gr,Dr)},styles:{popup:Object.assign(Object.assign({},Me.popupStyle),{zIndex:no})},allowClear:ma}))))}),pu=function(re,ye){var Me={};for(var $e in re)Object.prototype.hasOwnProperty.call(re,$e)&&ye.indexOf($e)<0&&(Me[$e]=re[$e]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,$e=Object.getOwnPropertySymbols(re);at<$e.length;at++)ye.indexOf($e[at])<0&&Object.prototype.propertyIsEnumerable.call(re,$e[at])&&(Me[$e[at]]=re[$e[at]]);return Me},Du=re=>{const ye=(pn,vn)=>{const Gt=vn===ks?"timePicker":"datePicker";return(0,pe.forwardRef)((Ot,Tn)=>{var In;const{prefixCls:jn,getPopupContainer:Vn,components:zn,style:Dr,className:dr,rootClassName:bn,size:br,bordered:qn,placement:mr,placeholder:Oa,popupClassName:ia,dropdownClassName:Lr,disabled:aa,status:Wa,variant:pa,onCalendarChange:Ur}=Ot,_r=pu(Ot,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:Jr,direction:Gr,getPopupContainer:ka,[Gt]:Ea}=(0,pe.useContext)(xo.E_),oa=Jr("picker",jn),{compactSize:ma,compactItemClassnames:Yr}=(0,yl.ri)(oa,Gr),ha=pe.useRef(null),[fa,ni]=(0,Bl.Z)("datePicker",pa,qn),di=(0,Mi.Z)(oa),[mi,vi,$a]=au(oa,di);(0,pe.useImperativeHandle)(Tn,()=>ha.current);const Li={showToday:!0},fn=pn||Ot.picker,Oi=Jr(),{onSelect:no,multiple:Bi}=_r,lo=no&&pn==="time"&&!Bi,gi=(Rr,fi,Kl)=>{Ur==null||Ur(Rr,fi,Kl),lo&&no(Rr)},[po,zi]=Yl(Ot,oa),Wi=Su(zn),ho=(0,wo.Z)(Rr=>{var fi;return(fi=br!=null?br:ma)!==null&&fi!==void 0?fi:Rr}),ba=pe.useContext(kl.Z),wa=aa!=null?aa:ba,Ji=(0,pe.useContext)(Mo.aM),{hasFeedback:yo,status:jo,feedbackIcon:so}=Ji,tl=pe.createElement(pe.Fragment,null,fn==="time"?pe.createElement(Pt,null):pe.createElement(ht,null),yo&&so),[So]=(0,ls.Z)("DatePicker",$l.Z),uo=Object.assign(Object.assign({},So),Ot.locale),[vo]=(0,zr.Cn)("DatePicker",(In=Ot.popupStyle)===null||In===void 0?void 0:In.zIndex);return mi(pe.createElement(Po.Z,{space:!0},pe.createElement(Gs,Object.assign({ref:ha,placeholder:wu(uo,fn,Oa),suffixIcon:tl,placement:mr,prevIcon:pe.createElement("span",{className:`${oa}-prev-icon`}),nextIcon:pe.createElement("span",{className:`${oa}-next-icon`}),superPrevIcon:pe.createElement("span",{className:`${oa}-super-prev-icon`}),superNextIcon:pe.createElement("span",{className:`${oa}-super-next-icon`}),transitionName:`${Oi}-slide-up`,picker:pn,onCalendarChange:gi},Li,_r,{locale:uo.lang,className:Et()({[`${oa}-${ho}`]:ho,[`${oa}-${fa}`]:ni},(0,Ci.Z)(oa,(0,Ci.F)(jo,Wa),yo),vi,Yr,Ea==null?void 0:Ea.className,dr,$a,di,bn),style:Object.assign(Object.assign({},Ea==null?void 0:Ea.style),Dr),prefixCls:oa,getPopupContainer:Vn||ka,generateConfig:re,components:Wi,direction:Gr,disabled:wa,classNames:{popup:Et()(vi,$a,di,bn,ia||Lr)},styles:{popup:Object.assign(Object.assign({},Ot.popupStyle),{zIndex:vo})},allowClear:po,removeIcon:zi}))))})},Me=ye(),$e=ye(gr,_s),at=ye(Fu,Nu),xt=ye(Ou,iu),Rt=ye(Ps,sl),jt=ye(Hl,ks);return{DatePicker:Me,WeekPicker:$e,MonthPicker:at,YearPicker:xt,TimePicker:jt,QuarterPicker:Rt}},Au=re=>{const{DatePicker:ye,WeekPicker:Me,MonthPicker:$e,YearPicker:at,TimePicker:xt,QuarterPicker:Rt}=Du(re),jt=fu(re),pn=ye;return pn.WeekPicker=Me,pn.MonthPicker=$e,pn.YearPicker=at,pn.RangePicker=jt,pn.TimePicker=xt,pn.QuarterPicker=Rt,pn};const Hs=Au(Ye),eu=(0,it.Z)(Hs,"popupAlign",void 0,"picker");Hs._InternalPanelDoNotUseOrYouWillBeFired=eu;const xl=(0,it.Z)(Hs.RangePicker,"popupAlign",void 0,"picker");Hs._InternalRangePanelDoNotUseOrYouWillBeFired=xl,Hs.generatePicker=Au;var hu=Hs},37285:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Ge}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(48755),We=ne(36237),Ae=ne(63356),Ue=ne(16931),tt=ne(51636);const Se=Oe=>{const{componentCls:Be,sizePaddingEdgeHorizontal:be,colorSplit:Ne,lineWidth:Ye,textPaddingInline:it,orientationMargin:pe,verticalMarginInline:Ke}=Oe;return{[Be]:Object.assign(Object.assign({},(0,Ae.Wf)(Oe)),{borderBlockStart:`${(0,We.unit)(Ye)} solid ${Ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ke,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,We.unit)(Ye)} solid ${Ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,We.unit)(Oe.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Be}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,We.unit)(Oe.dividerHorizontalWithTextGutterMargin)} 0`,color:Oe.colorTextHeading,fontWeight:500,fontSize:Oe.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,We.unit)(Ye)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Be}-with-text-start`]:{"&::before":{width:`calc(${pe} * 100%)`},"&::after":{width:`calc(100% - ${pe} * 100%)`}},[`&-horizontal${Be}-with-text-end`]:{"&::before":{width:`calc(100% - ${pe} * 100%)`},"&::after":{width:`calc(${pe} * 100%)`}},[`${Be}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:it},"&-dashed":{background:"none",borderColor:Ne,borderStyle:"dashed",borderWidth:`${(0,We.unit)(Ye)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Be}-dashed`]:{borderInlineStartWidth:Ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ne,borderStyle:"dotted",borderWidth:`${(0,We.unit)(Ye)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Be}-dotted`]:{borderInlineStartWidth:Ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Be}-with-text`]:{color:Oe.colorText,fontWeight:"normal",fontSize:Oe.fontSize},[`&-horizontal${Be}-with-text-start${Be}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Be}-inner-text`]:{paddingInlineStart:be}},[`&-horizontal${Be}-with-text-end${Be}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Be}-inner-text`]:{paddingInlineEnd:be}}})}},He=Oe=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Oe.marginXS});var Qe=(0,Ue.I$)("Divider",Oe=>{const Be=(0,tt.mergeToken)(Oe,{dividerHorizontalWithTextGutterMargin:Oe.margin,dividerHorizontalGutterMargin:Oe.marginLG,sizePaddingEdgeHorizontal:0});return[Se(Be)]},He,{unitless:{orientationMargin:!0}}),qe=function(Oe,Be){var be={};for(var Ne in Oe)Object.prototype.hasOwnProperty.call(Oe,Ne)&&Be.indexOf(Ne)<0&&(be[Ne]=Oe[Ne]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ne=Object.getOwnPropertySymbols(Oe);Ye{const{getPrefixCls:Be,direction:be,className:Ne,style:Ye}=(0,Je.dj)("divider"),{prefixCls:it,type:pe="horizontal",orientation:Ke="center",orientationMargin:nt,className:bt,rootClassName:At,children:ut,dashed:Xe,variant:ht="solid",plain:Pe,style:ze}=Oe,Te=qe(Oe,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),rt=Be("divider",it),[Pt,st,et]=Qe(rt),Ft=!!ut,De=E.useMemo(()=>Ke==="left"?be==="rtl"?"end":"start":Ke==="right"?be==="rtl"?"start":"end":Ke,[be,Ke]),ge=De==="start"&&nt!=null,lt=De==="end"&&nt!=null,Et=xe()(rt,Ne,st,et,`${rt}-${pe}`,{[`${rt}-with-text`]:Ft,[`${rt}-with-text-${De}`]:Ft,[`${rt}-dashed`]:!!Xe,[`${rt}-${ht}`]:ht!=="solid",[`${rt}-plain`]:!!Pe,[`${rt}-rtl`]:be==="rtl",[`${rt}-no-default-orientation-margin-start`]:ge,[`${rt}-no-default-orientation-margin-end`]:lt},bt,At),yt=E.useMemo(()=>typeof nt=="number"?nt:/^\d+$/.test(nt)?Number(nt):nt,[nt]),Ze={marginInlineStart:ge?yt:void 0,marginInlineEnd:lt?yt:void 0};return Pt(E.createElement("div",Object.assign({className:Et,style:Object.assign(Object.assign({},Ye),ze)},Te,{role:"separator"}),ut&&pe!=="vertical"&&E.createElement("span",{className:`${rt}-inner-text`,style:Ze},ut)))}},54265:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return ut}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(2738),We=ne(99402),Ae=ne(48755),Ue=ne(16931),tt=ne(51636);const Se=["wrap","nowrap","wrap-reverse"],He=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Qe=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],qe=(Xe,ht)=>{const Pe=ht.wrap===!0?"wrap":ht.wrap;return{[`${Xe}-wrap-${Pe}`]:Pe&&Se.includes(Pe)}},pt=(Xe,ht)=>{const Pe={};return Qe.forEach(ze=>{Pe[`${Xe}-align-${ze}`]=ht.align===ze}),Pe[`${Xe}-align-stretch`]=!ht.align&&!!ht.vertical,Pe},Ge=(Xe,ht)=>{const Pe={};return He.forEach(ze=>{Pe[`${Xe}-justify-${ze}`]=ht.justify===ze}),Pe};function Oe(Xe,ht){return xe()(Object.assign(Object.assign(Object.assign({},qe(Xe,ht)),pt(Xe,ht)),Ge(Xe,ht)))}var Be=Oe;const be=Xe=>{const{componentCls:ht}=Xe;return{[ht]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Ne=Xe=>{const{componentCls:ht}=Xe;return{[ht]:{"&-gap-small":{gap:Xe.flexGapSM},"&-gap-middle":{gap:Xe.flexGap},"&-gap-large":{gap:Xe.flexGapLG}}}},Ye=Xe=>{const{componentCls:ht}=Xe,Pe={};return Se.forEach(ze=>{Pe[`${ht}-wrap-${ze}`]={flexWrap:ze}}),Pe},it=Xe=>{const{componentCls:ht}=Xe,Pe={};return Qe.forEach(ze=>{Pe[`${ht}-align-${ze}`]={alignItems:ze}}),Pe},pe=Xe=>{const{componentCls:ht}=Xe,Pe={};return He.forEach(ze=>{Pe[`${ht}-justify-${ze}`]={justifyContent:ze}}),Pe},Ke=()=>({});var nt=(0,Ue.I$)("Flex",Xe=>{const{paddingXS:ht,padding:Pe,paddingLG:ze}=Xe,Te=(0,tt.mergeToken)(Xe,{flexGapSM:ht,flexGap:Pe,flexGapLG:ze});return[be(Te),Ne(Te),Ye(Te),it(Te),pe(Te)]},Ke,{resetStyle:!1}),bt=function(Xe,ht){var Pe={};for(var ze in Xe)Object.prototype.hasOwnProperty.call(Xe,ze)&&ht.indexOf(ze)<0&&(Pe[ze]=Xe[ze]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,ze=Object.getOwnPropertySymbols(Xe);Te{const{prefixCls:Pe,rootClassName:ze,className:Te,style:rt,flex:Pt,gap:st,children:et,vertical:Ft=!1,component:De="div"}=Xe,ge=bt(Xe,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:lt,direction:Et,getPrefixCls:yt}=E.useContext(Ae.E_),Ze=yt("flex",Pe),[Ve,ft,Kt]=nt(Ze),kt=Ft!=null?Ft:lt==null?void 0:lt.vertical,dn=xe()(Te,ze,lt==null?void 0:lt.className,Ze,ft,Kt,Be(Ze,Xe),{[`${Ze}-rtl`]:Et==="rtl",[`${Ze}-gap-${st}`]:(0,We.n)(st),[`${Ze}-vertical`]:kt}),ct=Object.assign(Object.assign({},lt==null?void 0:lt.style),rt);return Pt&&(ct.flex=Pt),st&&!(0,We.n)(st)&&(ct.gap=st),Ve(E.createElement(De,Object.assign({ref:ht,className:dn,style:ct},(0,Je.Z)(ge,["justify","wrap","align"])),et))})},58755:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return Pt}});var E=ne(59301),ve=ne(58617),xe=ne(92310),Je=ne.n(xe),We=ne(54476),Ae=ne(20068),Ue=ne(42978),tt=ne(75931),Se=ne(18929),He=ne(10228),Qe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],qe=E.forwardRef(function(st,et){var Ft,De=st.prefixCls,ge=De===void 0?"rc-switch":De,lt=st.className,Et=st.checked,yt=st.defaultChecked,Ze=st.disabled,Ve=st.loadingIcon,ft=st.checkedChildren,Kt=st.unCheckedChildren,kt=st.onClick,dn=st.onChange,ct=st.onKeyDown,Nt=(0,tt.Z)(st,Qe),mn=(0,Se.Z)(!1,{value:Et,defaultValue:yt}),he=(0,Ue.Z)(mn,2),se=he[0],ae=he[1];function ce(Ht,on){var kn=se;return Ze||(kn=Ht,ae(kn),dn==null||dn(kn,on)),kn}function me(Ht){Ht.which===He.Z.LEFT?ce(!1,Ht):Ht.which===He.Z.RIGHT&&ce(!0,Ht),ct==null||ct(Ht)}function le(Ht){var on=ce(!se,Ht);kt==null||kt(on,Ht)}var ot=Je()(ge,lt,(Ft={},(0,Ae.Z)(Ft,"".concat(ge,"-checked"),se),(0,Ae.Z)(Ft,"".concat(ge,"-disabled"),Ze),Ft));return E.createElement("button",(0,We.Z)({},Nt,{type:"button",role:"switch","aria-checked":se,disabled:Ze,className:ot,ref:et,onKeyDown:me,onClick:le}),Ve,E.createElement("span",{className:"".concat(ge,"-inner")},E.createElement("span",{className:"".concat(ge,"-inner-checked")},ft),E.createElement("span",{className:"".concat(ge,"-inner-unchecked")},Kt)))});qe.displayName="Switch";var pt=qe,Ge=ne(12919),Oe=ne(48755),Be=ne(2171),be=ne(31756),Ne=ne(36237),Ye=ne(17835),it=ne(63356),pe=ne(16931),Ke=ne(51636);const nt=st=>{const{componentCls:et,trackHeightSM:Ft,trackPadding:De,trackMinWidthSM:ge,innerMinMarginSM:lt,innerMaxMarginSM:Et,handleSizeSM:yt,calc:Ze}=st,Ve=`${et}-inner`,ft=(0,Ne.unit)(Ze(yt).add(Ze(De).mul(2)).equal()),Kt=(0,Ne.unit)(Ze(Et).mul(2).equal());return{[et]:{[`&${et}-small`]:{minWidth:ge,height:Ft,lineHeight:(0,Ne.unit)(Ft),[`${et}-inner`]:{paddingInlineStart:Et,paddingInlineEnd:lt,[`${Ve}-checked, ${Ve}-unchecked`]:{minHeight:Ft},[`${Ve}-checked`]:{marginInlineStart:`calc(-100% + ${ft} - ${Kt})`,marginInlineEnd:`calc(100% - ${ft} + ${Kt})`},[`${Ve}-unchecked`]:{marginTop:Ze(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${et}-handle`]:{width:yt,height:yt},[`${et}-loading-icon`]:{top:Ze(Ze(yt).sub(st.switchLoadingIconSize)).div(2).equal(),fontSize:st.switchLoadingIconSize},[`&${et}-checked`]:{[`${et}-inner`]:{paddingInlineStart:lt,paddingInlineEnd:Et,[`${Ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ve}-unchecked`]:{marginInlineStart:`calc(100% - ${ft} + ${Kt})`,marginInlineEnd:`calc(-100% + ${ft} - ${Kt})`}},[`${et}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ne.unit)(Ze(yt).add(De).equal())})`}},[`&:not(${et}-disabled):active`]:{[`&:not(${et}-checked) ${Ve}`]:{[`${Ve}-unchecked`]:{marginInlineStart:Ze(st.marginXXS).div(2).equal(),marginInlineEnd:Ze(st.marginXXS).mul(-1).div(2).equal()}},[`&${et}-checked ${Ve}`]:{[`${Ve}-checked`]:{marginInlineStart:Ze(st.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ze(st.marginXXS).div(2).equal()}}}}}}},bt=st=>{const{componentCls:et,handleSize:Ft,calc:De}=st;return{[et]:{[`${et}-loading-icon${st.iconCls}`]:{position:"relative",top:De(De(Ft).sub(st.fontSize)).div(2).equal(),color:st.switchLoadingIconColor,verticalAlign:"top"},[`&${et}-checked ${et}-loading-icon`]:{color:st.switchColor}}}},At=st=>{const{componentCls:et,trackPadding:Ft,handleBg:De,handleShadow:ge,handleSize:lt,calc:Et}=st,yt=`${et}-handle`;return{[et]:{[yt]:{position:"absolute",top:Ft,insetInlineStart:Ft,width:lt,height:lt,transition:`all ${st.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:De,borderRadius:Et(lt).div(2).equal(),boxShadow:ge,transition:`all ${st.switchDuration} ease-in-out`,content:'""'}},[`&${et}-checked ${yt}`]:{insetInlineStart:`calc(100% - ${(0,Ne.unit)(Et(lt).add(Ft).equal())})`},[`&:not(${et}-disabled):active`]:{[`${yt}::before`]:{insetInlineEnd:st.switchHandleActiveInset,insetInlineStart:0},[`&${et}-checked ${yt}::before`]:{insetInlineEnd:0,insetInlineStart:st.switchHandleActiveInset}}}}},ut=st=>{const{componentCls:et,trackHeight:Ft,trackPadding:De,innerMinMargin:ge,innerMaxMargin:lt,handleSize:Et,calc:yt}=st,Ze=`${et}-inner`,Ve=(0,Ne.unit)(yt(Et).add(yt(De).mul(2)).equal()),ft=(0,Ne.unit)(yt(lt).mul(2).equal());return{[et]:{[Ze]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:lt,paddingInlineEnd:ge,transition:`padding-inline-start ${st.switchDuration} ease-in-out, padding-inline-end ${st.switchDuration} ease-in-out`,[`${Ze}-checked, ${Ze}-unchecked`]:{display:"block",color:st.colorTextLightSolid,fontSize:st.fontSizeSM,transition:`margin-inline-start ${st.switchDuration} ease-in-out, margin-inline-end ${st.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ft},[`${Ze}-checked`]:{marginInlineStart:`calc(-100% + ${Ve} - ${ft})`,marginInlineEnd:`calc(100% - ${Ve} + ${ft})`},[`${Ze}-unchecked`]:{marginTop:yt(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${et}-checked ${Ze}`]:{paddingInlineStart:ge,paddingInlineEnd:lt,[`${Ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ze}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve} + ${ft})`,marginInlineEnd:`calc(-100% + ${Ve} - ${ft})`}},[`&:not(${et}-disabled):active`]:{[`&:not(${et}-checked) ${Ze}`]:{[`${Ze}-unchecked`]:{marginInlineStart:yt(De).mul(2).equal(),marginInlineEnd:yt(De).mul(-1).mul(2).equal()}},[`&${et}-checked ${Ze}`]:{[`${Ze}-checked`]:{marginInlineStart:yt(De).mul(-1).mul(2).equal(),marginInlineEnd:yt(De).mul(2).equal()}}}}}},Xe=st=>{const{componentCls:et,trackHeight:Ft,trackMinWidth:De}=st;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,it.Wf)(st)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:De,height:Ft,lineHeight:(0,Ne.unit)(Ft),verticalAlign:"middle",background:st.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${st.motionDurationMid}`,userSelect:"none",[`&:hover:not(${et}-disabled)`]:{background:st.colorTextTertiary}}),(0,it.Qy)(st)),{[`&${et}-checked`]:{background:st.switchColor,[`&:hover:not(${et}-disabled)`]:{background:st.colorPrimaryHover}},[`&${et}-loading, &${et}-disabled`]:{cursor:"not-allowed",opacity:st.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${et}-rtl`]:{direction:"rtl"}})}},ht=st=>{const{fontSize:et,lineHeight:Ft,controlHeight:De,colorWhite:ge}=st,lt=et*Ft,Et=De/2,yt=2,Ze=lt-yt*2,Ve=Et-yt*2;return{trackHeight:lt,trackHeightSM:Et,trackMinWidth:Ze*2+yt*4,trackMinWidthSM:Ve*2+yt*2,trackPadding:yt,handleBg:ge,handleSize:Ze,handleSizeSM:Ve,handleShadow:`0 2px 4px 0 ${new Ye.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ze/2,innerMaxMargin:Ze+yt+yt*2,innerMinMarginSM:Ve/2,innerMaxMarginSM:Ve+yt+yt*2}};var Pe=(0,pe.I$)("Switch",st=>{const et=(0,Ke.mergeToken)(st,{switchDuration:st.motionDurationMid,switchColor:st.colorPrimary,switchDisabledOpacity:st.opacityLoading,switchLoadingIconSize:st.calc(st.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${st.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe(et),ut(et),At(et),bt(et),nt(et)]},ht),ze=function(st,et){var Ft={};for(var De in st)Object.prototype.hasOwnProperty.call(st,De)&&et.indexOf(De)<0&&(Ft[De]=st[De]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,De=Object.getOwnPropertySymbols(st);ge{const{prefixCls:Ft,size:De,disabled:ge,loading:lt,className:Et,rootClassName:yt,style:Ze,checked:Ve,value:ft,defaultChecked:Kt,defaultValue:kt,onChange:dn}=st,ct=ze(st,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Nt,mn]=(0,Se.Z)(!1,{value:Ve!=null?Ve:ft,defaultValue:Kt!=null?Kt:kt}),{getPrefixCls:he,direction:se,switch:ae}=E.useContext(Oe.E_),ce=E.useContext(Be.Z),me=(ge!=null?ge:ce)||lt,le=he("switch",Ft),ot=E.createElement("div",{className:`${le}-handle`},lt&&E.createElement(ve.Z,{className:`${le}-loading-icon`})),[Ht,on,kn]=Pe(le),wn=(0,be.Z)(De),Xn=Je()(ae==null?void 0:ae.className,{[`${le}-small`]:wn==="small",[`${le}-loading`]:lt,[`${le}-rtl`]:se==="rtl"},Et,yt,on,kn),Nn=Object.assign(Object.assign({},ae==null?void 0:ae.style),Ze),Pr=function(){mn(arguments.length<=0?void 0:arguments[0]),dn==null||dn.apply(void 0,arguments)};return Ht(E.createElement(Ge.Z,{component:"Switch"},E.createElement(pt,Object.assign({},ct,{checked:Nt,onChange:Pr,prefixCls:le,className:Xn,style:Nn,disabled:me,ref:et,loadingIcon:ot}))))});rt.__ANT_SWITCH=!0;var Pt=rt},53420:function(Bt,_t,ne){"use strict";ne.d(_t,{default:function(){return Un}});var E=ne(59301),ve=ne(92310),xe=ne.n(ve),Je=ne(54476),We=ne(94480),Ae=ne(33885),Ue=ne(42978),tt=ne(75931),Se=ne(76190),He=ne(37463),Qe=ne(6551),qe=ne(34643),pt=ne(18929),Ge=ne(48736),Oe=function(Lt){var Dn=E.useRef({valueLabels:new Map});return E.useMemo(function(){var rr=Dn.current.valueLabels,Rn=new Map,ar=Lt.map(function(wr){var er=wr.value,Vt=wr.label,On=Vt!=null?Vt:rr.get(er);return Rn.set(er,On),(0,Ae.Z)((0,Ae.Z)({},wr),{},{label:On})});return Dn.current.valueLabels=Rn,[ar]},[Lt])},Be=function(Dn,rr,Rn,ar){return E.useMemo(function(){var wr=function(Ga){return Ga.map(function(za){var An=za.value;return An})},er=wr(Dn),Vt=wr(rr),On=er.filter(function(Nr){return!ar[Nr]}),Cr=er,Hr=Vt;if(Rn){var jr=(0,qe.S)(er,!0,ar);Cr=jr.checkedKeys,Hr=jr.halfCheckedKeys}return[Array.from(new Set([].concat((0,We.Z)(On),(0,We.Z)(Cr)))),Hr]},[Dn,rr,Rn,ar])},be=Be,Ne=ne(34061),Ye=function(Lt,Dn){return E.useMemo(function(){var rr=(0,Ne.I8)(Lt,{fieldNames:Dn,initWrapper:function(ar){return(0,Ae.Z)((0,Ae.Z)({},ar),{},{valueEntities:new Map})},processEntity:function(ar,wr){var er=ar.node[Dn.value];if(0)var Vt;wr.valueEntities.set(er,ar)}});return rr},[Lt,Dn])},it=ne(20068),pe=ne(11592),Ke=function(){return null},nt=Ke,bt=["children","value"];function At(Lt){return(0,pe.Z)(Lt).map(function(Dn){if(!E.isValidElement(Dn)||!Dn.type)return null;var rr=Dn,Rn=rr.key,ar=rr.props,wr=ar.children,er=ar.value,Vt=(0,tt.Z)(ar,bt),On=(0,Ae.Z)({key:Rn,value:er},Vt),Cr=At(wr);return Cr.length&&(On.children=Cr),On}).filter(function(Dn){return Dn})}function ut(Lt){if(!Lt)return Lt;var Dn=(0,Ae.Z)({},Lt);return"props"in Dn||Object.defineProperty(Dn,"props",{get:function(){return(0,Ge.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Dn}}),Dn}function Xe(Lt,Dn,rr,Rn,ar,wr){var er=null,Vt=null;function On(){function Cr(Hr){var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Nr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Hr.map(function(Ga,za){var An="".concat(jr,"-").concat(za),rn=Ga[wr.value],Yi=rr.includes(rn),$o=Cr(Ga[wr.children]||[],An,Yi),Ki=E.createElement(nt,Ga,$o.map(function(tn){return tn.node}));if(Dn===rn&&(er=Ki),Yi){var wt={pos:An,node:Ki,children:$o};return Nr||Vt.push(wt),wt}return null}).filter(function(Ga){return Ga})}Vt||(Vt=[],Cr(Rn),Vt.sort(function(Hr,jr){var Nr=Hr.node.props.value,Ga=jr.node.props.value,za=rr.indexOf(Nr),An=rr.indexOf(Ga);return za-An}))}Object.defineProperty(Lt,"triggerNode",{get:function(){return(0,Ge.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),On(),er}}),Object.defineProperty(Lt,"allCheckedNodes",{get:function(){return(0,Ge.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),On(),ar?Vt:Vt.map(function(Hr){var jr=Hr.node;return jr})}})}var ht=function(Dn,rr,Rn){var ar=Rn.fieldNames,wr=Rn.treeNodeFilterProp,er=Rn.filterTreeNode,Vt=ar.children;return E.useMemo(function(){if(!rr||er===!1)return Dn;var On=typeof er=="function"?er:function(Hr,jr){return String(jr[wr]).toUpperCase().includes(rr.toUpperCase())},Cr=function Hr(jr){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return jr.reduce(function(Ga,za){var An=za[Vt],rn=Nr||On(rr,ut(za)),Yi=Hr(An||[],rn);return(rn||Yi.length)&&Ga.push((0,Ae.Z)((0,Ae.Z)({},za),{},(0,it.Z)({isLeaf:void 0},Vt,Yi))),Ga},[])};return Cr(Dn)},[Dn,rr,Vt,wr,er])},Pe=ht;function ze(Lt){var Dn=E.useRef();Dn.current=Lt;var rr=E.useCallback(function(){return Dn.current.apply(Dn,arguments)},[]);return rr}function Te(Lt,Dn){var rr=Dn.id,Rn=Dn.pId,ar=Dn.rootPId,wr=new Map,er=[];return Lt.forEach(function(Vt){var On=Vt[rr],Cr=(0,Ae.Z)((0,Ae.Z)({},Vt),{},{key:Vt.key||On});wr.set(On,Cr)}),wr.forEach(function(Vt){var On=Vt[Rn],Cr=wr.get(On);Cr?(Cr.children=Cr.children||[],Cr.children.push(Vt)):(On===ar||ar===null)&&er.push(Vt)}),er}function rt(Lt,Dn,rr){return E.useMemo(function(){if(Lt){if(rr){var Rn=(0,Ae.Z)({id:"id",pId:"pId",rootPId:null},(0,Se.Z)(rr)==="object"?rr:{});return Te(Lt,Rn)}return Lt}return At(Dn)},[Dn,rr,Lt])}var Pt=E.createContext(null),st=Pt,et=ne(19251),Ft=ne(3741),De=ne(10228),ge=ne(80547),lt=E.createContext(null),Et=lt,yt=function(Dn){return Array.isArray(Dn)?Dn:Dn!==void 0?[Dn]:[]},Ze=function(Dn){var rr=Dn||{},Rn=rr.label,ar=rr.value,wr=rr.children;return{_title:Rn?[Rn]:["title","label"],value:ar||"value",key:ar||"value",children:wr||"children"}},Ve=function(Dn){return!Dn||Dn.disabled||Dn.disableCheckbox||Dn.checkable===!1},ft=function(Dn,rr){var Rn=[],ar=function wr(er){er.forEach(function(Vt){var On=Vt[rr.children];On&&(Rn.push(Vt[rr.value]),wr(On))})};return ar(Dn),Rn},Kt=function(Dn){return Dn==null},kt=ne(70425),dn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ct=function(Dn,rr){var Rn=(0,He.lk)(),ar=Rn.prefixCls,wr=Rn.multiple,er=Rn.searchValue,Vt=Rn.toggleOpen,On=Rn.open,Cr=Rn.notFoundContent,Hr=E.useContext(Et),jr=Hr.virtual,Nr=Hr.listHeight,Ga=Hr.listItemHeight,za=Hr.listItemScrollOffset,An=Hr.treeData,rn=Hr.fieldNames,Yi=Hr.onSelect,$o=Hr.dropdownMatchSelectWidth,Ki=Hr.treeExpandAction,wt=Hr.treeTitleRender,tn=Hr.onPopupScroll,Tt=Hr.leftMaxCount,It=Hr.leafCountOnly,Zn=Hr.valueEntities,Gn=E.useContext(st),yn=Gn.checkable,tr=Gn.checkedKeys,Mr=Gn.halfCheckedKeys,Tr=Gn.treeExpandedKeys,Qa=Gn.treeDefaultExpandAll,ua=Gn.treeDefaultExpandedKeys,ta=Gn.onTreeExpand,Ua=Gn.treeIcon,Kr=Gn.showTreeIcon,ya=Gn.switcherIcon,qa=Gn.treeLine,ai=Gn.treeNodeFilterProp,bi=Gn.loadData,Ba=Gn.treeLoadedKeys,ra=Gn.treeMotion,eo=Gn.onTreeLoad,wi=Gn.keyEntities,Ta=E.useRef(),oi=(0,ge.Z)(function(){return An},[On,An],function(La,Pa){return Pa[0]&&La[1]!==Pa[1]}),ki=E.useMemo(function(){return yn?{checked:tr,halfChecked:Mr}:null},[yn,tr,Mr]);E.useEffect(function(){if(On&&!wr&&tr.length){var La;(La=Ta.current)===null||La===void 0||La.scrollTo({key:tr[0]})}},[On]);var ti=function(Pa){Pa.preventDefault()},_a=function(Pa,Xi){var ji=Xi.node;yn&&Ve(ji)||(Yi(ji.key,{selected:!tr.includes(ji.key)}),wr||Vt(!1))},ci=E.useState(ua),Ai=(0,Ue.Z)(ci,2),Fo=Ai[0],Qi=Ai[1],Hi=E.useState(null),oo=(0,Ue.Z)(Hi,2),na=oo[0],to=oo[1],Fi=E.useMemo(function(){return Tr?(0,We.Z)(Tr):er?na:Fo},[Fo,na,Tr,er]),Oo=function(Pa){Qi(Pa),to(Pa),ta&&ta(Pa)},Ni=String(er).toLowerCase(),li=function(Pa){return Ni?String(Pa[ai]).toLowerCase().includes(Ni):!1};E.useEffect(function(){er&&to(ft(An,rn))},[er]);var _e=E.useState(function(){return new Map}),Jt=(0,Ue.Z)(_e,2),nn=Jt[0],Fn=Jt[1];E.useEffect(function(){Tt&&Fn(new Map)},[Tt]);function Zt(La){var Pa=La[rn.value];if(!nn.has(Pa)){var Xi=Zn.get(Pa),ji=(Xi.children||[]).length===0;if(ji)nn.set(Pa,!1);else{var Do=Xi.children.filter(function(al){return!al.node.disabled&&!al.node.disableCheckbox&&!tr.includes(al.node[rn.value])}),dl=Do.length;nn.set(Pa,dl>Tt)}}return nn.get(Pa)}var Xt=(0,kt.zX)(function(La){var Pa=La[rn.value];return tr.includes(Pa)||Tt===null?!1:Tt<=0?!0:It&&Tt?Zt(La):!1}),an=function La(Pa){var Xi=(0,et.Z)(Pa),ji;try{for(Xi.s();!(ji=Xi.n()).done;){var Do=ji.value;if(!(Do.disabled||Do.selectable===!1)){if(er){if(li(Do))return Do}else return Do;if(Do[rn.children]){var dl=La(Do[rn.children]);if(dl)return dl}}}}catch(al){Xi.e(al)}finally{Xi.f()}return null},Qt=E.useState(null),en=(0,Ue.Z)(Qt,2),Wn=en[0],fr=en[1],pr=wi[Wn];E.useEffect(function(){if(On){var La=null,Pa=function(){var ji=an(oi);return ji?ji[rn.value]:null};!wr&&tr.length&&!er?La=tr[0]:La=Pa(),fr(La)}},[On,er]),E.useImperativeHandle(rr,function(){var La;return{scrollTo:(La=Ta.current)===null||La===void 0?void 0:La.scrollTo,onKeyDown:function(Xi){var ji,Do=Xi.which;switch(Do){case De.Z.UP:case De.Z.DOWN:case De.Z.LEFT:case De.Z.RIGHT:(ji=Ta.current)===null||ji===void 0||ji.onKeyDown(Xi);break;case De.Z.ENTER:{if(pr){var dl=Xt(pr.node),al=(pr==null?void 0:pr.node)||{},Xo=al.selectable,bl=al.value,Ao=al.disabled;Xo!==!1&&!Ao&&!dl&&_a(null,{node:{key:Wn},selected:!tr.includes(bl)})}break}case De.Z.ESC:Vt(!1)}},onKeyUp:function(){}}});var cr=(0,ge.Z)(function(){return!er},[er,Tr||Fo],function(La,Pa){var Xi=(0,Ue.Z)(La,1),ji=Xi[0],Do=(0,Ue.Z)(Pa,2),dl=Do[0],al=Do[1];return ji!==dl&&!!(dl||al)}),Xr=cr?bi:null;if(oi.length===0)return E.createElement("div",{role:"listbox",className:"".concat(ar,"-empty"),onMouseDown:ti},Cr);var ca={fieldNames:rn};return Ba&&(ca.loadedKeys=Ba),Fi&&(ca.expandedKeys=Fi),E.createElement("div",{onMouseDown:ti},pr&&On&&E.createElement("span",{style:dn,"aria-live":"assertive"},pr.node.value),E.createElement(Ft.y6.Provider,{value:{nodeDisabled:Xt}},E.createElement(Ft.ZP,(0,Je.Z)({ref:Ta,focusable:!1,prefixCls:"".concat(ar,"-tree"),treeData:oi,height:Nr,itemHeight:Ga,itemScrollOffset:za,virtual:jr!==!1&&$o!==!1,multiple:wr,icon:Ua,showIcon:Kr,switcherIcon:ya,showLine:qa,loadData:Xr,motion:ra,activeKey:Wn,checkable:yn,checkStrictly:!0,checkedKeys:ki,selectedKeys:yn?[]:tr,defaultExpandAll:Qa,titleRender:wt},ca,{onActiveChange:fr,onSelect:_a,onCheck:_a,onExpand:Oo,onLoad:eo,filterTreeNode:li,expandAction:Ki,onScroll:tn}))))},Nt=E.forwardRef(ct),mn=Nt,he="SHOW_ALL",se="SHOW_PARENT",ae="SHOW_CHILD";function ce(Lt,Dn,rr,Rn){var ar=new Set(Lt);return Dn===ae?Lt.filter(function(wr){var er=rr[wr];return!er||!er.children||!er.children.some(function(Vt){var On=Vt.node;return ar.has(On[Rn.value])})||!er.children.every(function(Vt){var On=Vt.node;return Ve(On)||ar.has(On[Rn.value])})}):Dn===se?Lt.filter(function(wr){var er=rr[wr],Vt=er?er.parent:null;return!Vt||Ve(Vt.node)||!ar.has(Vt.key)}):Lt}function me(Lt){var Dn=Lt.searchPlaceholder,rr=Lt.treeCheckStrictly,Rn=Lt.treeCheckable,ar=Lt.labelInValue,wr=Lt.value,er=Lt.multiple,Vt=Lt.showCheckedStrategy,On=Lt.maxCount;warning(!Dn,"`searchPlaceholder` has been removed."),rr&&ar===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(ar||rr)&&warning(toArray(wr).every(function(Cr){return Cr&&_typeof(Cr)==="object"&&"value"in Cr}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),rr||er||Rn?warning(!wr||Array.isArray(wr),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(wr),"`value` should not be array when `TreeSelect` is single mode."),On&&(Vt==="SHOW_ALL"&&!rr||Vt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var le=null,ot=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Ht(Lt){return!Lt||(0,Se.Z)(Lt)!=="object"}var on=E.forwardRef(function(Lt,Dn){var rr=Lt.id,Rn=Lt.prefixCls,ar=Rn===void 0?"rc-tree-select":Rn,wr=Lt.value,er=Lt.defaultValue,Vt=Lt.onChange,On=Lt.onSelect,Cr=Lt.onDeselect,Hr=Lt.searchValue,jr=Lt.inputValue,Nr=Lt.onSearch,Ga=Lt.autoClearSearchValue,za=Ga===void 0?!0:Ga,An=Lt.filterTreeNode,rn=Lt.treeNodeFilterProp,Yi=rn===void 0?"value":rn,$o=Lt.showCheckedStrategy,Ki=Lt.treeNodeLabelProp,wt=Lt.multiple,tn=Lt.treeCheckable,Tt=Lt.treeCheckStrictly,It=Lt.labelInValue,Zn=Lt.maxCount,Gn=Lt.fieldNames,yn=Lt.treeDataSimpleMode,tr=Lt.treeData,Mr=Lt.children,Tr=Lt.loadData,Qa=Lt.treeLoadedKeys,ua=Lt.onTreeLoad,ta=Lt.treeDefaultExpandAll,Ua=Lt.treeExpandedKeys,Kr=Lt.treeDefaultExpandedKeys,ya=Lt.onTreeExpand,qa=Lt.treeExpandAction,ai=Lt.virtual,bi=Lt.listHeight,Ba=bi===void 0?200:bi,ra=Lt.listItemHeight,eo=ra===void 0?20:ra,wi=Lt.listItemScrollOffset,Ta=wi===void 0?0:wi,oi=Lt.onDropdownVisibleChange,ki=Lt.dropdownMatchSelectWidth,ti=ki===void 0?!0:ki,_a=Lt.treeLine,ci=Lt.treeIcon,Ai=Lt.showTreeIcon,Fo=Lt.switcherIcon,Qi=Lt.treeMotion,Hi=Lt.treeTitleRender,oo=Lt.onPopupScroll,na=(0,tt.Z)(Lt,ot),to=(0,Qe.ZP)(rr),Fi=tn&&!Tt,Oo=tn||Tt,Ni=Tt||It,li=Oo||wt,_e=(0,pt.Z)(er,{value:wr}),Jt=(0,Ue.Z)(_e,2),nn=Jt[0],Fn=Jt[1],Zt=E.useMemo(function(){return tn?$o||ae:he},[$o,tn]),Xt=E.useMemo(function(){return Ze(Gn)},[JSON.stringify(Gn)]),an=(0,pt.Z)("",{value:Hr!==void 0?Hr:jr,postState:function(zr){return zr||""}}),Qt=(0,Ue.Z)(an,2),en=Qt[0],Wn=Qt[1],fr=function(zr){Wn(zr),Nr==null||Nr(zr)},pr=rt(tr,Mr,yn),cr=Ye(pr,Xt),Xr=cr.keyEntities,ca=cr.valueEntities,La=E.useCallback(function(Po){var zr=[],Ci=[];return Po.forEach(function(xo){ca.has(xo)?Ci.push(xo):zr.push(xo)}),{missingRawValues:zr,existRawValues:Ci}},[ca]),Pa=Pe(pr,en,{fieldNames:Xt,treeNodeFilterProp:Yi,filterTreeNode:An}),Xi=E.useCallback(function(Po){if(Po){if(Ki)return Po[Ki];for(var zr=Xt._title,Ci=0;CiOs)){var kl=Do(Po);if(Fn(kl),za&&Wn(""),Vt){var Mi=Po;Fi&&(Mi=xo.map(function(es){var ps=ca.get(es);return ps?ps.node[Xt.value]:es}));var wo=zr||{triggerValue:void 0,selected:void 0},Mo=wo.triggerValue,Bl=wo.selected,ls=Mi;if(Tt){var yl=Ao.filter(function(es){return!Mi.includes(es.value)});ls=[].concat((0,We.Z)(ls),(0,We.Z)(yl))}var $l=Do(ls),Ti={preValue:bl,triggerValue:Mo},Bs=!0;(Tt||Ci==="selection"&&!Bl)&&(Bs=!1),Xe(Ti,Mo,Po,pr,Bs,Xt),Oo?Ti.checked=Bl:Ti.selected=Bl;var fl=Ni?$l:$l.map(function(es){return es.value});Vt(li?fl:fl[0],Ni?null:$l.map(function(es){return es.label}),Ti)}}}),As=E.useCallback(function(Po,zr){var Ci,xo=zr.selected,kl=zr.source,Mi=Xr[Po],wo=Mi==null?void 0:Mi.node,Mo=(Ci=wo==null?void 0:wo[Xt.value])!==null&&Ci!==void 0?Ci:Po;if(!li)Gl([Mo],{selected:!0,triggerValue:Mo},"option");else{var Bl=xo?[].concat((0,We.Z)(mo),[Mo]):Zl.filter(function(ps){return ps!==Mo});if(Fi){var ls=La(Bl),yl=ls.missingRawValues,$l=ls.existRawValues,Ti=$l.map(function(ps){return ca.get(ps).key}),Bs;if(xo){var fl=(0,qe.S)(Ti,!0,Xr);Bs=fl.checkedKeys}else{var es=(0,qe.S)(Ti,{checked:!1,halfCheckedKeys:ql},Xr);Bs=es.checkedKeys}Bl=[].concat((0,We.Z)(yl),(0,We.Z)(Bs.map(function(ps){return Xr[ps].node[Xt.value]})))}Gl(Bl,{selected:xo,triggerValue:Mo},kl||"option")}xo||!li?On==null||On(Mo,ut(wo)):Cr==null||Cr(Mo,ut(wo))},[La,ca,Xr,Xt,li,mo,Gl,Fi,On,Cr,Zl,ql,Zn]),Fs=E.useCallback(function(Po){if(oi){var zr={};Object.defineProperty(zr,"documentClickClose",{get:function(){return(0,Ge.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),oi(Po,zr)}},[oi]),Js=ze(function(Po,zr){var Ci=Po.map(function(xo){return xo.value});if(zr.type==="clear"){Gl(Ci,{},"selection");return}zr.values.length&&As(zr.values[0].value,{selected:!1,source:"selection"})}),Ms=E.useMemo(function(){return{virtual:ai,dropdownMatchSelectWidth:ti,listHeight:Ba,listItemHeight:eo,listItemScrollOffset:Ta,treeData:Pa,fieldNames:Xt,onSelect:As,treeExpandAction:qa,treeTitleRender:Hi,onPopupScroll:oo,leftMaxCount:Zn===void 0?null:Zn-os.length,leafCountOnly:Zt==="SHOW_CHILD"&&!Tt&&!!tn,valueEntities:ca}},[ai,ti,Ba,eo,Ta,Pa,Xt,As,qa,Hi,oo,Zn,os.length,Zt,Tt,tn,ca]),Gs=E.useMemo(function(){return{checkable:Oo,loadData:Tr,treeLoadedKeys:Qa,onTreeLoad:ua,checkedKeys:Zl,halfCheckedKeys:ql,treeDefaultExpandAll:ta,treeExpandedKeys:Ua,treeDefaultExpandedKeys:Kr,onTreeExpand:ya,treeIcon:ci,treeMotion:Qi,showTreeIcon:Ai,switcherIcon:Fo,treeLine:_a,treeNodeFilterProp:Yi,keyEntities:Xr}},[Oo,Tr,Qa,ua,Zl,ql,ta,Ua,Kr,ya,ci,Qi,Ai,Fo,_a,Yi,Xr]);return E.createElement(Et.Provider,{value:Ms},E.createElement(st.Provider,{value:Gs},E.createElement(He.Ac,(0,Je.Z)({ref:Dn},na,{id:to,prefixCls:ar,mode:li?"multiple":void 0,displayValues:os,onDisplayValuesChange:Js,searchValue:en,onSearch:fr,OptionList:mn,emptyOptions:!pr.length,onDropdownVisibleChange:Fs,dropdownMatchSelectWidth:ti}))))}),kn=on;kn.TreeNode=nt,kn.SHOW_ALL=he,kn.SHOW_PARENT=se,kn.SHOW_CHILD=ae;var wn=kn,Xn=wn,Nn=ne(2738),Pr=ne(75030),Vr=ne(86641),Ar=ne(45915),Jn=ne(82855),va=ne(48755),Qr=ne(38406),ur=ne(2171),Sn=ne(83397),sr=ne(31756),un=ne(56553),Er=ne(24971),Br=ne(1722),Xa=ne(90376),Da=ne(68525),Sr=ne(90005),En=ne(70045),nr=ne(57700),$r=ne(85278),Aa=ne(36237),ga=ne(36170),Ei=ne(51636),Ii=ne(16931),Ja=ne(12425);const ri=Lt=>{const{componentCls:Dn,treePrefixCls:rr,colorBgElevated:Rn}=Lt,ar=`.${rr}`;return[{[`${Dn}-dropdown`]:[{padding:`${(0,Aa.unit)(Lt.paddingXS)} ${(0,Aa.unit)(Lt.calc(Lt.paddingXS).div(2).equal())}`},(0,Ja.Yk)(rr,(0,Ei.mergeToken)(Lt,{colorBgContainer:Rn}),!1),{[ar]:{borderRadius:0,[`${ar}-list-holder-inner`]:{alignItems:"stretch",[`${ar}-treenode`]:{[`${ar}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ga.C2)(`${rr}-checkbox`,Lt),{"&-rtl":{direction:"rtl",[`${ar}-switcher${ar}-switcher_close`]:{[`${ar}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},hi=null;function $i(Lt,Dn,rr){return(0,Ii.I$)("TreeSelect",Rn=>{const ar=(0,Ei.mergeToken)(Rn,{treePrefixCls:Dn});return[ri(ar)]},Ja.TM)(Lt,rr)}var Ha=function(Lt,Dn){var rr={};for(var Rn in Lt)Object.prototype.hasOwnProperty.call(Lt,Rn)&&Dn.indexOf(Rn)<0&&(rr[Rn]=Lt[Rn]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ar=0,Rn=Object.getOwnPropertySymbols(Lt);ar{var rr;const{prefixCls:Rn,size:ar,disabled:wr,bordered:er=!0,className:Vt,rootClassName:On,treeCheckable:Cr,multiple:Hr,listHeight:jr=256,listItemHeight:Nr,placement:Ga,notFoundContent:za,switcherIcon:An,treeLine:rn,getPopupContainer:Yi,popupClassName:$o,dropdownClassName:Ki,treeIcon:wt=!1,transitionName:tn,choiceTransitionName:Tt="",status:It,treeExpandAction:Zn,builtinPlacements:Gn,dropdownMatchSelectWidth:yn,popupMatchSelectWidth:tr,allowClear:Mr,variant:Tr,dropdownStyle:Qa,tagRender:ua,maxCount:ta,showCheckedStrategy:Ua,treeCheckStrictly:Kr}=Lt,ya=Ha(Lt,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:qa,getPrefixCls:ai,renderEmpty:bi,direction:Ba,virtual:ra,popupMatchSelectWidth:eo,popupOverflow:wi}=E.useContext(va.E_),[,Ta]=(0,nr.ZP)(),oi=Nr!=null?Nr:(Ta==null?void 0:Ta.controlHeightSM)+(Ta==null?void 0:Ta.paddingXXS),ki=ai(),ti=ai("select",Rn),_a=ai("select-tree",Rn),ci=ai("tree-select",Rn),{compactSize:Ai,compactItemClassnames:Fo}=(0,En.ri)(ti,Ba),Qi=(0,Sn.Z)(ti),Hi=(0,Sn.Z)(ci),[oo,na,to]=(0,Xa.Z)(ti,Qi),[Fi]=$i(ci,_a,Hi),[Oo,Ni]=(0,Er.Z)("treeSelect",Tr,er),li=xe()($o||Ki,`${ci}-dropdown`,{[`${ci}-dropdown-rtl`]:Ba==="rtl"},On,to,Qi,Hi,na),_e=!!(Cr||Hr),Jt=E.useMemo(()=>{if(!(ta&&(Ua==="SHOW_ALL"&&!Kr||Ua==="SHOW_PARENT")))return ta},[ta,Ua,Kr]),nn=(0,Sr.Z)(Lt.suffixIcon,Lt.showArrow),Fn=(rr=tr!=null?tr:yn)!==null&&rr!==void 0?rr:eo,{status:Zt,hasFeedback:Xt,isFormItemInput:an,feedbackIcon:Qt}=E.useContext(un.aM),en=(0,Jn.F)(Zt,It),{suffixIcon:Wn,removeIcon:fr,clearIcon:pr}=(0,Da.Z)(Object.assign(Object.assign({},ya),{multiple:_e,showSuffixIcon:nn,hasFeedback:Xt,feedbackIcon:Qt,prefixCls:ti,componentName:"TreeSelect"})),cr=Mr===!0?{clearIcon:pr}:Mr;let Xr;za!==void 0?Xr=za:Xr=(bi==null?void 0:bi("Select"))||E.createElement(Qr.Z,{componentName:"Select"});const ca=(0,Nn.Z)(ya,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),La=E.useMemo(()=>Ga!==void 0?Ga:Ba==="rtl"?"bottomRight":"bottomLeft",[Ga,Ba]),Pa=(0,sr.Z)(bl=>{var Ao;return(Ao=ar!=null?ar:Ai)!==null&&Ao!==void 0?Ao:bl}),Xi=E.useContext(ur.Z),ji=wr!=null?wr:Xi,Do=xe()(!Rn&&ci,{[`${ti}-lg`]:Pa==="large",[`${ti}-sm`]:Pa==="small",[`${ti}-rtl`]:Ba==="rtl",[`${ti}-${Oo}`]:Ni,[`${ti}-in-form-item`]:an},(0,Jn.Z)(ti,en,Xt),Fo,Vt,On,to,Qi,Hi,na),dl=bl=>E.createElement($r.Z,{prefixCls:_a,switcherIcon:An,treeNodeProps:bl,showLine:rn}),[al]=(0,Pr.Cn)("SelectLike",Qa==null?void 0:Qa.zIndex),Xo=E.createElement(Xn,Object.assign({virtual:ra,disabled:ji},ca,{dropdownMatchSelectWidth:Fn,builtinPlacements:(0,Br.Z)(Gn,wi),ref:Dn,prefixCls:ti,className:Do,listHeight:jr,listItemHeight:oi,treeCheckable:Cr&&E.createElement("span",{className:`${ti}-tree-checkbox-inner`}),treeLine:!!rn,suffixIcon:Wn,multiple:_e,placement:La,removeIcon:fr,allowClear:cr,switcherIcon:dl,showTreeIcon:wt,notFoundContent:Xr,getPopupContainer:Yi||qa,treeMotion:null,dropdownClassName:li,dropdownStyle:Object.assign(Object.assign({},Qa),{zIndex:al}),choiceTransitionName:(0,Vr.m)(ki,"",Tt),transitionName:(0,Vr.m)(ki,"slide-up",tn),treeExpandAction:Zn,tagRender:_e?ua:void 0,maxCount:Jt,showCheckedStrategy:Ua,treeCheckStrictly:Kr}));return oo(Fi(Xo))},qt=E.forwardRef(ea),Ut=(0,Ar.Z)(qt,"dropdownAlign",Lt=>(0,Nn.Z)(Lt,["visible"]));qt.TreeNode=nt,qt.SHOW_ALL=he,qt.SHOW_PARENT=se,qt.SHOW_CHILD=ae,qt._InternalPanelDoNotUseOrYouWillBeFired=Ut;var Un=qt},99498:function(Bt,_t,ne){(function(E){E(ne(89780))})(function(E){E.defineOption("placeholder","",function(tt,Se,He){var Qe=He&&He!=E.Init;if(Se&&!Qe)tt.on("blur",We),tt.on("change",Ae),tt.on("swapDoc",Ae),E.on(tt.getInputField(),"compositionupdate",tt.state.placeholderCompose=function(){Je(tt)}),Ae(tt);else if(!Se&&Qe){tt.off("blur",We),tt.off("change",Ae),tt.off("swapDoc",Ae),E.off(tt.getInputField(),"compositionupdate",tt.state.placeholderCompose),ve(tt);var qe=tt.getWrapperElement();qe.className=qe.className.replace(" CodeMirror-empty","")}Se&&!tt.hasFocus()&&We(tt)});function ve(tt){tt.state.placeholder&&(tt.state.placeholder.parentNode.removeChild(tt.state.placeholder),tt.state.placeholder=null)}function xe(tt){ve(tt);var Se=tt.state.placeholder=document.createElement("pre");Se.style.cssText="height: 0; overflow: visible",Se.style.direction=tt.getOption("direction"),Se.className="CodeMirror-placeholder CodeMirror-line-like";var He=tt.getOption("placeholder");typeof He=="string"&&(He=document.createTextNode(He)),Se.appendChild(He),tt.display.lineSpace.insertBefore(Se,tt.display.lineSpace.firstChild)}function Je(tt){setTimeout(function(){var Se=!1,He=tt.getInputField();He.nodeName=="TEXTAREA"?Se=!He.value:tt.lineCount()==1&&(Se=!/[^\u200b]/.test(He.querySelector(".CodeMirror-line").textContent)),Se?xe(tt):ve(tt)},20)}function We(tt){Ue(tt)&&xe(tt)}function Ae(tt){var Se=tt.getWrapperElement(),He=Ue(tt);Se.className=Se.className.replace(" CodeMirror-empty","")+(He?" CodeMirror-empty":""),He?xe(tt):ve(tt)}function Ue(tt){return tt.lineCount()===1&&tt.getLine(0)===""}})},25717:function(Bt,_t,ne){(function(E){E(ne(89780))})(function(E){var ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Oe,Be,be){be&&be!=E.Init&&(Oe.removeKeyMap(We),Oe.state.closeBrackets=null),Be&&(Ae(Je(Be,"pairs")),Oe.state.closeBrackets=Be,Oe.addKeyMap(We))});function Je(Oe,Be){return Be=="pairs"&&typeof Oe=="string"?Oe:typeof Oe=="object"&&Oe[Be]!=null?Oe[Be]:ve[Be]}var We={Backspace:Se,Enter:He};function Ae(Oe){for(var Be=0;Be=0;Ye--){var pe=Ne[Ye].head;Oe.replaceRange("",xe(pe.line,pe.ch-1),xe(pe.line,pe.ch+1),"+delete")}}function He(Oe){var Be=tt(Oe),be=Be&&Je(Be,"explode");if(!be||Oe.getOption("disableInput"))return E.Pass;for(var Ne=Oe.listSelections(),Ye=0;Ye0;return{anchor:new xe(Oe.anchor.line,Oe.anchor.ch+(Be?-1:1)),head:new xe(Oe.head.line,Oe.head.ch+(Be?1:-1))}}function qe(Oe,Be){var be=tt(Oe);if(!be||Oe.getOption("disableInput"))return E.Pass;var Ne=Je(be,"pairs"),Ye=Ne.indexOf(Be);if(Ye==-1)return E.Pass;for(var it=Je(be,"closeBefore"),pe=Je(be,"triples"),Ke=Ne.charAt(Ye+1)==Be,nt=Oe.listSelections(),bt=Ye%2==0,At,ut=0;ut=0&&Oe.getRange(ht,xe(ht.line,ht.ch+3))==Be+Be+Be?Pe="skipThree":Pe="skip";else if(Ke&&ht.ch>1&&pe.indexOf(Be)>=0&&Oe.getRange(xe(ht.line,ht.ch-2),ht)==Be+Be){if(ht.ch>2&&/\bstring/.test(Oe.getTokenTypeAt(xe(ht.line,ht.ch-2))))return E.Pass;Pe="addFour"}else if(Ke){var Te=ht.ch==0?" ":Oe.getRange(xe(ht.line,ht.ch-1),ht);if(!E.isWordChar(ze)&&Te!=Be&&!E.isWordChar(Te))Pe="both";else return E.Pass}else if(bt&&(ze.length===0||/\s/.test(ze)||it.indexOf(ze)>-1))Pe="both";else return E.Pass;if(!At)At=Pe;else if(At!=Pe)return E.Pass}var rt=Ye%2?Ne.charAt(Ye-1):Be,Pt=Ye%2?Be:Ne.charAt(Ye+1);Oe.operation(function(){if(At=="skip")Oe.execCommand("goCharRight");else if(At=="skipThree")for(var st=0;st<3;st++)Oe.execCommand("goCharRight");else if(At=="surround"){for(var et=Oe.getSelections(),st=0;st'"]=function(pt){return Je(pt)}),Se.addKeyMap(qe)}});var ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Je(Se){if(Se.getOption("disableInput"))return E.Pass;for(var He=Se.listSelections(),Qe=[],qe=Se.getOption("autoCloseTags"),pt=0;ptGe.ch&&(Ye=Ye.slice(0,Ye.length-Oe.end+Ge.ch));var nt=Ye.toLowerCase();if(!Ye||Oe.type=="string"&&(Oe.end!=Ge.ch||!/[\"\']/.test(Oe.string.charAt(Oe.string.length-1))||Oe.string.length==1)||Oe.type=="tag"&&Ne.close||Oe.string.indexOf("/")==Ge.ch-Oe.start-1||pe&&Ue(pe,nt)>-1||tt(Se,Be.mode.xmlCurrentContext&&Be.mode.xmlCurrentContext(be)||[],Ye,Ge,!0))return E.Pass;var bt=typeof qe=="object"&&qe.emptyTags;if(bt&&Ue(bt,Ye)>-1){Qe[pt]={text:"/>",newPos:E.Pos(Ge.line,Ge.ch+2)};continue}var At=Ke&&Ue(Ke,nt)>-1;Qe[pt]={indent:At,text:">"+(At?` -`:"")+"",newPos:At?E.Pos(Ge.line+1,0):E.Pos(Ge.line,Ge.ch+1)}}for(var st=typeof qe=="object"&&qe.dontIndentOnAutoClose,ht=Re.length-1;ht>=0;ht--){var Xe=Qe[ht];Se.replaceRange(Xe.text,Re[ht].head,Re[ht].anchor,"+insert");var ut=Se.listSelections().slice(0);ut[ht]={head:Xe.newPos,anchor:Xe.newPos},Se.setSelections(ut),!st&&Xe.indent&&(Se.indentLine(Xe.newPos.line,null,!0),Se.indentLine(Xe.newPos.line+1,null,!0))}}function We(Se,Re){for(var Qe=Se.listSelections(),qe=[],ht=Re?"/":""&&(pe+=">"),qe[Be]=pe}if(Se.replaceSelections(qe),Qe=Se.listSelections(),!Oe)for(var Be=0;Be=0&&Re[be]==Qe;be--)++Be;qe=Oe.to;for(var be=1;be=be.max))return be.ch=0,be.text=be.cm.getLine(++be.line),!0}function Re(be){if(!(be.line<=be.min))return be.text=be.cm.getLine(--be.line),be.ch=be.text.length,!0}function Qe(be){for(;;){var Pe=be.text.indexOf(">",be.ch);if(Pe==-1){if(Se(be))continue;return}if(!tt(be,Pe+1)){be.ch=Pe+1;continue}var Ye=be.text.lastIndexOf("/",Pe),it=Ye>-1&&!/\S/.test(be.text.slice(Ye+1,Pe));return be.ch=Pe+1,it?"selfClose":"regular"}}function qe(be){for(;;){var Pe=be.ch?be.text.lastIndexOf("<",be.ch-1):-1;if(Pe==-1){if(Re(be))continue;return}if(!tt(be,Pe+1)){be.ch=Pe;continue}Ae.lastIndex=Pe,be.ch=Pe;var Ye=Ae.exec(be.text);if(Ye&&Ye.index==Pe)return Ye}}function ht(be){for(;;){Ae.lastIndex=be.ch;var Pe=Ae.exec(be.text);if(!Pe){if(Se(be))continue;return}if(!tt(be,Pe.index+1)){be.ch=Pe.index+1;continue}return be.ch=Pe.index+Pe[0].length,Pe}}function Ge(be){for(;;){var Pe=be.ch?be.text.lastIndexOf(">",be.ch-1):-1;if(Pe==-1){if(Re(be))continue;return}if(!tt(be,Pe+1)){be.ch=Pe;continue}var Ye=be.text.lastIndexOf("/",Pe),it=Ye>-1&&!/\S/.test(be.text.slice(Ye+1,Pe));return be.ch=Pe+1,it?"selfClose":"regular"}}function Oe(be,Pe){for(var Ye=[];;){var it=ht(be),pe,Ke=be.line,nt=be.ch-(it?it[0].length:0);if(!it||!(pe=Qe(be)))return;if(pe!="selfClose")if(it[1]){for(var Et=Ye.length-1;Et>=0;--Et)if(Ye[Et]==it[2]){Ye.length=Et;break}if(Et<0&&(!Pe||Pe==it[2]))return{tag:it[2],from:ve(Ke,nt),to:ve(be.line,be.ch)}}else Ye.push(it[2])}}function Be(be,Pe){for(var Ye=[];;){var it=Ge(be);if(!it)return;if(it=="selfClose"){qe(be);continue}var pe=be.line,Ke=be.ch,nt=qe(be);if(!nt)return;if(nt[1])Ye.push(nt[2]);else{for(var Et=Ye.length-1;Et>=0;--Et)if(Ye[Et]==nt[2]){Ye.length=Et;break}if(Et<0&&(!Pe||Pe==nt[2]))return{tag:nt[2],from:ve(be.line,be.ch),to:ve(pe,Ke)}}}}E.registerHelper("fold","xml",function(be,Pe){for(var Ye=new Ue(be,Pe.line,0);;){var it=ht(Ye);if(!it||Ye.line!=Pe.line)return;var pe=Qe(Ye);if(!pe)return;if(!it[1]&&pe!="selfClose"){var Ke=ve(Ye.line,Ye.ch),nt=Oe(Ye,it[2]);return nt&&xe(nt.from,Ke)>0?{from:Ke,to:nt.from}:null}}}),E.findMatchingTag=function(be,Pe,Ye){var it=new Ue(be,Pe.line,Pe.ch,Ye);if(!(it.text.indexOf(">")==-1&&it.text.indexOf("<")==-1)){var pe=Qe(it),Ke=pe&&ve(it.line,it.ch),nt=pe&&qe(it);if(!(!pe||!nt||xe(it,Pe)>0)){var Et={from:ve(it.line,it.ch),to:Ke,tag:nt[2]};return pe=="selfClose"?{open:Et,close:null,at:"open"}:nt[1]?{open:Be(it,nt[2]),close:Et,at:"close"}:(it=new Ue(be,Ke.line,Ke.ch,Ye),{open:Et,close:Oe(it,nt[2]),at:"open"})}}},E.findEnclosingTag=function(be,Pe,Ye,it){for(var pe=new Ue(be,Pe.line,Pe.ch,Ye);;){var Ke=Be(pe,it);if(!Ke)break;var nt=new Ue(be,Pe.line,Pe.ch,Ye),Et=Oe(nt,Ke.tag);if(Et)return{open:Ke,close:Et}}},E.scanForClosingTag=function(be,Pe,Ye,it){var pe=new Ue(be,Pe.line,Pe.ch,it?{from:0,to:it}:null);return Oe(pe,Ye)}})},89780:function(_t){(function(Pt,ne){_t.exports=ne()})(this,function(){"use strict";var Pt=navigator.userAgent,ne=navigator.platform,E=/gecko\/\d/i.test(Pt),ve=/MSIE \d/.test(Pt),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pt),Je=/Edge\/(\d+)/.exec(Pt),We=ve||xe||Je,Ae=We&&(ve?document.documentMode||6:+(Je||xe)[1]),Ue=!Je&&/WebKit\//.test(Pt),tt=Ue&&/Qt\/\d+\.\d+/.test(Pt),Se=!Je&&/Chrome\//.test(Pt),Re=/Opera\//.test(Pt),Qe=/Apple Computer/.test(navigator.vendor),qe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Pt),ht=/PhantomJS/.test(Pt),Ge=!Je&&/AppleWebKit/.test(Pt)&&/Mobile\/\w+/.test(Pt),Oe=/Android/.test(Pt),Be=Ge||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Pt),be=Ge||/Mac/.test(ne),Pe=/\bCrOS\b/.test(Pt),Ye=/win/i.test(ne),it=Re&&Pt.match(/Version\/(\d*\.\d*)/);it&&(it=Number(it[1])),it&&it>=15&&(Re=!1,Ue=!0);var pe=be&&(tt||Re&&(it==null||it<12.11)),Ke=E||We&&Ae>=9;function nt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Et=function(a,y){var x=a.className,b=nt(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function At(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function st(a,y){return At(a).appendChild(y)}function Xe(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var oe=0;oe=y)return fe+(y-oe);fe+=Ee-oe,fe+=x-fe%x,oe=Ee+1}}var ge=function(){this.id=null,this.f=null,this.time=0,this.handler=$e(this.onTimeout,this)};ge.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ge.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(fe,y-z);if(z+=oe-b,z+=x-z%x,b=oe+1,z>=y)return b}}var kt=[""];function dn(a){for(;kt.length<=a;)kt.push(dt(kt)+" ");return kt[a]}function dt(a){return a[a.length-1]}function Nt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ae.test(a))}function me(a,y){return y?y.source.indexOf("\\w")>-1&&ce(a)?!0:y.test(a):ce(a)}function le(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ht(a){return a.charCodeAt(0)>=768&&ot.test(a)}function on(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var z=(y+x)/2,oe=b<0?Math.ceil(z):Math.floor(z);if(oe==y)return a(oe)?y:x;a(oe)?x=oe:y=oe+b}}function wn(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,oe=0;oey||y==x&&fe.to==y)&&(b(Math.max(fe.from,y),Math.min(fe.to,x),fe.level==1?"rtl":"ltr",oe),z=!0)}z||b(y,x,"ltr")}var Xn=null;function Nn(a,y,x){var b;Xn=null;for(var z=0;zy)return z;oe.to==y&&(oe.from!=oe.to&&x=="before"?b=z:Xn=z),oe.from==y&&(oe.from!=oe.to&&x!="before"?b=z:Xn=z)}return b!=null?b:Xn}var Pr=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Ze){return Ze<=247?a.charAt(Ze):1424<=Ze&&Ze<=1524?"R":1536<=Ze&&Ze<=1785?y.charAt(Ze-1536):1774<=Ze&&Ze<=2220?"r":8192<=Ze&&Ze<=8203?"w":Ze==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,oe=/[LRr]/,fe=/[Lb1n]/,Ee=/[1n]/;function Fe(Ze,vt,St){this.level=Ze,this.from=vt,this.to=St}return function(Ze,vt){var St=vt=="ltr"?"L":"R";if(Ze.length==0||vt=="ltr"&&!b.test(Ze))return!1;for(var ln=Ze.length,$t=[],Kn=0;Kn-1&&(b[y]=z.slice(0,oe).concat(z.slice(oe+1)))}}}function ur(a,y){var x=va(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z0}function Er(a){a.prototype.on=function(y,x){Jn(this,y,x)},a.prototype.off=function(y,x){Qr(this,y,x)}}function Br(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Xa(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Da(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Sr(a){Br(a),Xa(a)}function En(a){return a.target||a.srcElement}function nr(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),be&&a.ctrlKey&&y==1&&(y=3),y}var $r=function(){if(We&&Ae<9)return!1;var a=Xe("div");return"draggable"in a||"dragDrop"in a}(),Aa;function ga(a){if(Aa==null){var y=Xe("span","\u200B");st(a,Xe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Aa=y.offsetWidth<=1&&y.offsetHeight>2&&!(We&&Ae<8))}var x=Aa?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Ei;function Ii(a){if(Ei!=null)return Ei;var y=st(a,document.createTextNode("A\u062EA")),x=Le(y,0,1).getBoundingClientRect(),b=Le(y,1,2).getBoundingClientRect();return At(a),!x||x.left==x.right?!1:Ei=b.right-x.right<3}var Ja=` +`:"")+"",newPos:At?E.Pos(Ge.line+1,0):E.Pos(Ge.line,Ge.ch+1)}}for(var ut=typeof qe=="object"&&qe.dontIndentOnAutoClose,pt=He.length-1;pt>=0;pt--){var Xe=Qe[pt];Se.replaceRange(Xe.text,He[pt].head,He[pt].anchor,"+insert");var ht=Se.listSelections().slice(0);ht[pt]={head:Xe.newPos,anchor:Xe.newPos},Se.setSelections(ht),!ut&&Xe.indent&&(Se.indentLine(Xe.newPos.line,null,!0),Se.indentLine(Xe.newPos.line+1,null,!0))}}function We(Se,He){for(var Qe=Se.listSelections(),qe=[],pt=He?"/":""&&(pe+=">"),qe[Be]=pe}if(Se.replaceSelections(qe),Qe=Se.listSelections(),!Oe)for(var Be=0;Be=0&&He[be]==Qe;be--)++Be;qe=Oe.to;for(var be=1;be=be.max))return be.ch=0,be.text=be.cm.getLine(++be.line),!0}function He(be){if(!(be.line<=be.min))return be.text=be.cm.getLine(--be.line),be.ch=be.text.length,!0}function Qe(be){for(;;){var Ne=be.text.indexOf(">",be.ch);if(Ne==-1){if(Se(be))continue;return}if(!tt(be,Ne+1)){be.ch=Ne+1;continue}var Ye=be.text.lastIndexOf("/",Ne),it=Ye>-1&&!/\S/.test(be.text.slice(Ye+1,Ne));return be.ch=Ne+1,it?"selfClose":"regular"}}function qe(be){for(;;){var Ne=be.ch?be.text.lastIndexOf("<",be.ch-1):-1;if(Ne==-1){if(He(be))continue;return}if(!tt(be,Ne+1)){be.ch=Ne;continue}Ae.lastIndex=Ne,be.ch=Ne;var Ye=Ae.exec(be.text);if(Ye&&Ye.index==Ne)return Ye}}function pt(be){for(;;){Ae.lastIndex=be.ch;var Ne=Ae.exec(be.text);if(!Ne){if(Se(be))continue;return}if(!tt(be,Ne.index+1)){be.ch=Ne.index+1;continue}return be.ch=Ne.index+Ne[0].length,Ne}}function Ge(be){for(;;){var Ne=be.ch?be.text.lastIndexOf(">",be.ch-1):-1;if(Ne==-1){if(He(be))continue;return}if(!tt(be,Ne+1)){be.ch=Ne;continue}var Ye=be.text.lastIndexOf("/",Ne),it=Ye>-1&&!/\S/.test(be.text.slice(Ye+1,Ne));return be.ch=Ne+1,it?"selfClose":"regular"}}function Oe(be,Ne){for(var Ye=[];;){var it=pt(be),pe,Ke=be.line,nt=be.ch-(it?it[0].length:0);if(!it||!(pe=Qe(be)))return;if(pe!="selfClose")if(it[1]){for(var bt=Ye.length-1;bt>=0;--bt)if(Ye[bt]==it[2]){Ye.length=bt;break}if(bt<0&&(!Ne||Ne==it[2]))return{tag:it[2],from:ve(Ke,nt),to:ve(be.line,be.ch)}}else Ye.push(it[2])}}function Be(be,Ne){for(var Ye=[];;){var it=Ge(be);if(!it)return;if(it=="selfClose"){qe(be);continue}var pe=be.line,Ke=be.ch,nt=qe(be);if(!nt)return;if(nt[1])Ye.push(nt[2]);else{for(var bt=Ye.length-1;bt>=0;--bt)if(Ye[bt]==nt[2]){Ye.length=bt;break}if(bt<0&&(!Ne||Ne==nt[2]))return{tag:nt[2],from:ve(be.line,be.ch),to:ve(pe,Ke)}}}}E.registerHelper("fold","xml",function(be,Ne){for(var Ye=new Ue(be,Ne.line,0);;){var it=pt(Ye);if(!it||Ye.line!=Ne.line)return;var pe=Qe(Ye);if(!pe)return;if(!it[1]&&pe!="selfClose"){var Ke=ve(Ye.line,Ye.ch),nt=Oe(Ye,it[2]);return nt&&xe(nt.from,Ke)>0?{from:Ke,to:nt.from}:null}}}),E.findMatchingTag=function(be,Ne,Ye){var it=new Ue(be,Ne.line,Ne.ch,Ye);if(!(it.text.indexOf(">")==-1&&it.text.indexOf("<")==-1)){var pe=Qe(it),Ke=pe&&ve(it.line,it.ch),nt=pe&&qe(it);if(!(!pe||!nt||xe(it,Ne)>0)){var bt={from:ve(it.line,it.ch),to:Ke,tag:nt[2]};return pe=="selfClose"?{open:bt,close:null,at:"open"}:nt[1]?{open:Be(it,nt[2]),close:bt,at:"close"}:(it=new Ue(be,Ke.line,Ke.ch,Ye),{open:bt,close:Oe(it,nt[2]),at:"open"})}}},E.findEnclosingTag=function(be,Ne,Ye,it){for(var pe=new Ue(be,Ne.line,Ne.ch,Ye);;){var Ke=Be(pe,it);if(!Ke)break;var nt=new Ue(be,Ne.line,Ne.ch,Ye),bt=Oe(nt,Ke.tag);if(bt)return{open:Ke,close:bt}}},E.scanForClosingTag=function(be,Ne,Ye,it){var pe=new Ue(be,Ne.line,Ne.ch,it?{from:0,to:it}:null);return Oe(pe,Ye)}})},89780:function(Bt){(function(_t,ne){Bt.exports=ne()})(this,function(){"use strict";var _t=navigator.userAgent,ne=navigator.platform,E=/gecko\/\d/i.test(_t),ve=/MSIE \d/.test(_t),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t),Je=/Edge\/(\d+)/.exec(_t),We=ve||xe||Je,Ae=We&&(ve?document.documentMode||6:+(Je||xe)[1]),Ue=!Je&&/WebKit\//.test(_t),tt=Ue&&/Qt\/\d+\.\d+/.test(_t),Se=!Je&&/Chrome\//.test(_t),He=/Opera\//.test(_t),Qe=/Apple Computer/.test(navigator.vendor),qe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_t),pt=/PhantomJS/.test(_t),Ge=!Je&&/AppleWebKit/.test(_t)&&/Mobile\/\w+/.test(_t),Oe=/Android/.test(_t),Be=Ge||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_t),be=Ge||/Mac/.test(ne),Ne=/\bCrOS\b/.test(_t),Ye=/win/i.test(ne),it=He&&_t.match(/Version\/(\d*\.\d*)/);it&&(it=Number(it[1])),it&&it>=15&&(He=!1,Ue=!0);var pe=be&&(tt||He&&(it==null||it<12.11)),Ke=E||We&&Ae>=9;function nt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var bt=function(a,y){var x=a.className,b=nt(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function At(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ut(a,y){return At(a).appendChild(y)}function Xe(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var oe=0;oe=y)return fe+(y-oe);fe+=Ee-oe,fe+=x-fe%x,oe=Ee+1}}var ge=function(){this.id=null,this.f=null,this.time=0,this.handler=et(this.onTimeout,this)};ge.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ge.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(fe,y-z);if(z+=oe-b,z+=x-z%x,b=oe+1,z>=y)return b}}var kt=[""];function dn(a){for(;kt.length<=a;)kt.push(ct(kt)+" ");return kt[a]}function ct(a){return a[a.length-1]}function Nt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ae.test(a))}function me(a,y){return y?y.source.indexOf("\\w")>-1&&ce(a)?!0:y.test(a):ce(a)}function le(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ht(a){return a.charCodeAt(0)>=768&&ot.test(a)}function on(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var z=(y+x)/2,oe=b<0?Math.ceil(z):Math.floor(z);if(oe==y)return a(oe)?y:x;a(oe)?x=oe:y=oe+b}}function wn(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,oe=0;oey||y==x&&fe.to==y)&&(b(Math.max(fe.from,y),Math.min(fe.to,x),fe.level==1?"rtl":"ltr",oe),z=!0)}z||b(y,x,"ltr")}var Xn=null;function Nn(a,y,x){var b;Xn=null;for(var z=0;zy)return z;oe.to==y&&(oe.from!=oe.to&&x=="before"?b=z:Xn=z),oe.from==y&&(oe.from!=oe.to&&x!="before"?b=z:Xn=z)}return b!=null?b:Xn}var Pr=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Re){return Re<=247?a.charAt(Re):1424<=Re&&Re<=1524?"R":1536<=Re&&Re<=1785?y.charAt(Re-1536):1774<=Re&&Re<=2220?"r":8192<=Re&&Re<=8203?"w":Re==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,oe=/[LRr]/,fe=/[Lb1n]/,Ee=/[1n]/;function Fe(Re,vt,St){this.level=Re,this.from=vt,this.to=St}return function(Re,vt){var St=vt=="ltr"?"L":"R";if(Re.length==0||vt=="ltr"&&!b.test(Re))return!1;for(var ln=Re.length,$t=[],Kn=0;Kn-1&&(b[y]=z.slice(0,oe).concat(z.slice(oe+1)))}}}function ur(a,y){var x=va(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z0}function Er(a){a.prototype.on=function(y,x){Jn(this,y,x)},a.prototype.off=function(y,x){Qr(this,y,x)}}function Br(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Xa(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Da(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Sr(a){Br(a),Xa(a)}function En(a){return a.target||a.srcElement}function nr(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),be&&a.ctrlKey&&y==1&&(y=3),y}var $r=function(){if(We&&Ae<9)return!1;var a=Xe("div");return"draggable"in a||"dragDrop"in a}(),Aa;function ga(a){if(Aa==null){var y=Xe("span","\u200B");ut(a,Xe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Aa=y.offsetWidth<=1&&y.offsetHeight>2&&!(We&&Ae<8))}var x=Aa?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Ei;function Ii(a){if(Ei!=null)return Ei;var y=ut(a,document.createTextNode("A\u062EA")),x=Pe(y,0,1).getBoundingClientRect(),b=Pe(y,1,2).getBoundingClientRect();return At(a),!x||x.left==x.right?!1:Ei=b.right-x.right<3}var Ja=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(` -`,y);z==-1&&(z=a.length);var oe=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),fe=oe.indexOf("\r");fe!=-1?(x.push(oe.slice(0,fe)),y+=fe+1):(x.push(oe),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},ri=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},hi=function(){var a=Xe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$i=null;function Ha(a){if($i!=null)return $i;var y=st(a,Xe("span","x")),x=y.getBoundingClientRect(),b=Le(y,0,1).getBoundingClientRect();return $i=Math.abs(x.left-b.left)>1}var ea={},Ir={};function qt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),ea[a]=y}function Ut(a,y){Ir[a]=y}function Un(a){if(typeof a=="string"&&Ir.hasOwnProperty(a))a=Ir[a];else if(a&&typeof a.name=="string"&&Ir.hasOwnProperty(a.name)){var y=Ir[a.name];typeof y=="string"&&(y={name:y}),a=se(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Un("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Un("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Lt(a,y){y=Un(y);var x=ea[y.name];if(!x)return Lt(a,"text/plain");var b=x(a,y);if(Dn.hasOwnProperty(y.name)){var z=Dn[y.name];for(var oe in z)z.hasOwnProperty(oe)&&(b.hasOwnProperty(oe)&&(b["_"+oe]=b[oe]),b[oe]=z[oe])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var fe in y.modeProps)b[fe]=y.modeProps[fe];return b}var Dn={};function rr(a,y){var x=Dn.hasOwnProperty(a)?Dn[a]:Dn[a]={};Ft(y,x)}function Rn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function ar(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function wr(a,y,x){return a.startState?a.startState(y,x):!0}var er=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};er.prototype.eol=function(){return this.pos>=this.string.length},er.prototype.sol=function(){return this.pos==this.lineStart},er.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},er.prototype.next=function(){if(this.posy},er.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},er.prototype.skipToEnd=function(){this.pos=this.string.length},er.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},er.prototype.backUp=function(a){this.pos-=a},er.prototype.column=function(){return this.lastColumnPos0?null:(oe&&y!==!1&&(this.pos+=oe[0].length),oe)}},er.prototype.current=function(){return this.string.slice(this.start,this.pos)},er.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},er.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},er.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Vt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var z=x.children[b],oe=z.chunkSize();if(y=a.first&&yx?An(x,Vt(a,x).text.length):It(y,Vt(a,y.line).text.length)}function It(a,y){var x=a.ch;return x==null||x>y?An(a.line,y):x<0?An(a.line,0):a}function Zn(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},yn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yn.fromSaved=function(a,y,x){return y instanceof Gn?new yn(a,Rn(a.mode,y.state),x,y.lookAhead):new yn(a,Rn(a.mode,y),x)},yn.prototype.save=function(a){var y=a!==!1?Rn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gn(y,this.maxLookAhead):y};function tr(a,y,x,b){var z=[a.state.modeGen],oe={};qa(a,y.text,a.doc.mode,x,function(Ze,vt){return z.push(Ze,vt)},oe,b);for(var fe=x.state,Ee=function(Ze){x.baseTokens=z;var vt=a.state.overlays[Ze],St=1,ln=0;x.state=!0,qa(a,y.text,vt.mode,x,function($t,Kn){for(var vr=St;ln<$t;){var Zr=z[St];Zr>$t&&z.splice(St,1,$t,z[St+1],Zr),St+=2,ln=Math.min($t,Zr)}if(Kn)if(vt.opaque)z.splice(vr,St-vr,$t,"overlay "+Kn),St=vr+2;else for(;vra.options.maxHighlightLength&&Rn(a.doc.mode,b.state),oe=tr(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=oe.styles,oe.classes?y.styleClasses=oe.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Tr(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new yn(b,!0,y);var oe=ai(a,y,x),fe=oe>b.first&&Vt(b,oe-1).stateAfter,Ee=fe?yn.fromSaved(b,fe,oe):new yn(b,wr(b.mode),oe);return b.iter(oe,y,function(Fe){Qa(a,Fe.text,Ee);var Ze=Ee.line;Fe.stateAfter=Ze==y-1||Ze%5==0||Ze>=z.viewFrom&&Zey.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ua=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Kr(a,y,x,b){var z=a.doc,oe=z.mode,fe;y=Tt(z,y);var Ee=Vt(z,y.line),Fe=Tr(a,y.line,x),Ze=new er(Ee.text,a.options.tabSize,Fe),vt;for(b&&(vt=[]);(b||Ze.posa.options.maxHighlightLength?(Ee=!1,fe&&Qa(a,y,b,vt.pos),vt.pos=y.length,St=null):St=ya(ta(x,vt,b.state,ln),oe),ln){var $t=ln[0].name;$t&&(St="m-"+(St?$t+" "+St:$t))}if(!Ee||Ze!=St){for(;Fefe;--Ee){if(Ee<=oe.first)return oe.first;var Fe=Vt(oe,Ee-1),Ze=Fe.stateAfter;if(Ze&&(!x||Ee+(Ze instanceof Gn?Ze.lookAhead:0)<=oe.modeFrontier))return Ee;var vt=De(Fe.text,null,a.options.tabSize);(z==null||b>vt)&&(z=Ee-1,b=vt)}return z}function bi(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var z=Vt(a,b).stateAfter;if(z&&(!(z instanceof Gn)||b+z.lookAhead=y:oe.to>y);(b||(b=[])).push(new Ta(fe,oe.from,Fe?null:oe.to))}}return b}function ci(a,y,x){var b;if(a)for(var z=0;z=y:oe.to>y);if(Ee||oe.from==y&&fe.type=="bookmark"&&(!x||oe.marker.insertLeft)){var Fe=oe.from==null||(fe.inclusiveLeft?oe.from<=y:oe.from0&&Ee)for(var Va=0;Va0)){var vt=[Fe,1],St=rn(Ze.from,Ee.from),ln=rn(Ze.to,Ee.to);(St<0||!fe.inclusiveLeft&&!St)&&vt.push({from:Ze.from,to:Ee.from}),(ln>0||!fe.inclusiveRight&&!ln)&&vt.push({from:Ee.to,to:Ze.to}),z.splice.apply(z,vt),Fe+=vt.length-3}}return z}function Hi(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||Fi(b,oe.marker)<0)&&(b=oe.marker)}return b}function Jt(a,y,x,b,z){var oe=Vt(a,y),fe=ra&&oe.markedSpans;if(fe)for(var Ee=0;Ee=0&&St<=0||vt<=0&&St>=0)&&(vt<=0&&(Fe.marker.inclusiveRight&&z.inclusiveLeft?rn(Ze.to,x)>=0:rn(Ze.to,x)>0)||vt>=0&&(Fe.marker.inclusiveRight&&z.inclusiveLeft?rn(Ze.from,b)<=0:rn(Ze.from,b)<0)))return!0}}}function nn(a){for(var y;y=Ni(a);)a=y.find(-1,!0).line;return a}function Fn(a){for(var y;y=li(a);)a=y.find(1,!0).line;return a}function Zt(a){for(var y,x;y=li(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Xt(a,y){var x=Vt(a,y),b=nn(x);return x==b?y:jr(b)}function an(a,y){if(y>a.lastLine())return y;var x=Vt(a,y),b;if(!Qt(a,x))return y;for(;b=li(x);)x=b.find(1,!0).line;return jr(x)+1}function Qt(a,y){var x=ra&&y.markedSpans;if(x){for(var b=void 0,z=0;zy.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var cr=function(a,y,x){this.text=a,oo(this,y),this.height=x?x(this):1};cr.prototype.lineNo=function(){return jr(this)},Er(cr);function Xr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Hi(a),oo(a,x);var z=b?b(a):1;z!=a.height&&Hr(a,z)}function ca(a){a.parent=null,Hi(a)}var La={},Pa={};function Xi(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Pa:La;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ji(a,y){var x=ut("span",null,null,Ue?"padding-right: .1px":null),b={pre:ut("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var oe=z?y.rest[z-1]:y.line,fe=void 0;b.pos=0,b.addToken=dl,Ii(a.display.measure)&&(fe=Vr(oe,a.doc.direction))&&(b.addToken=Xo(b.addToken,fe)),b.map=[];var Ee=y!=a.display.externalMeasured&&jr(oe);Ao(oe,b,Mr(a,oe,Ee)),oe.styleClasses&&(oe.styleClasses.bgClass&&(b.bgClass=Bt(oe.styleClasses.bgClass,b.bgClass||"")),oe.styleClasses.textClass&&(b.textClass=Bt(oe.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(ga(a.display.measure))),z==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ue){var Fe=b.content.lastChild;(/\bcm-tab\b/.test(Fe.className)||Fe.querySelector&&Fe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return ur(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Bt(b.pre.className,b.textClass||"")),b}function Do(a){var y=Xe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function dl(a,y,x,b,z,oe,fe){if(y){var Ee=a.splitSpaces?al(y,a.trailingSpace):y,Fe=a.cm.state.specialChars,Ze=!1,vt;if(!Fe.test(y))a.col+=y.length,vt=document.createTextNode(Ee),a.map.push(a.pos,a.pos+y.length,vt),We&&Ae<9&&(Ze=!0),a.pos+=y.length;else{vt=document.createDocumentFragment();for(var St=0;;){Fe.lastIndex=St;var ln=Fe.exec(y),$t=ln?ln.index-St:y.length-St;if($t){var Kn=document.createTextNode(Ee.slice(St,St+$t));We&&Ae<9?vt.appendChild(Xe("span",[Kn])):vt.appendChild(Kn),a.map.push(a.pos,a.pos+$t,Kn),a.col+=$t,a.pos+=$t}if(!ln)break;St+=$t+1;var vr=void 0;if(ln[0]==" "){var Zr=a.cm.options.tabSize,sa=Zr-a.col%Zr;vr=vt.appendChild(Xe("span",dn(sa),"cm-tab")),vr.setAttribute("role","presentation"),vr.setAttribute("cm-text"," "),a.col+=sa}else ln[0]=="\r"||ln[0]==` -`?(vr=vt.appendChild(Xe("span",ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vr.setAttribute("cm-text",ln[0]),a.col+=1):(vr=a.cm.options.specialCharPlaceholder(ln[0]),vr.setAttribute("cm-text",ln[0]),We&&Ae<9?vt.appendChild(Xe("span",[vr])):vt.appendChild(vr),a.col+=1);a.map.push(a.pos,a.pos+1,vr),a.pos++}}if(a.trailingSpace=Ee.charCodeAt(y.length-1)==32,x||b||z||Ze||oe||fe){var Ia=x||"";b&&(Ia+=b),z&&(Ia+=z);var la=Xe("span",[vt],Ia,oe);if(fe)for(var Va in fe)fe.hasOwnProperty(Va)&&Va!="style"&&Va!="class"&&la.setAttribute(Va,fe[Va]);return a.content.appendChild(la)}a.content.appendChild(vt)}}function al(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;zZe&&St.from<=Ze));ln++);if(St.to>=vt)return a(x,b,z,oe,fe,Ee,Fe);a(x,b.slice(0,St.to-Ze),z,oe,null,Ee,Fe),oe=null,b=b.slice(St.to-Ze),Ze=St.to}}}function bl(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Ao(a,y,x){var b=a.markedSpans,z=a.text,oe=0;if(!b){for(var fe=1;feFe||Co.collapsed&&ui.to==Fe&&ui.from==Fe)){if(ui.to!=null&&ui.to!=Fe&&$t>ui.to&&($t=ui.to,vr=""),Co.className&&(Kn+=" "+Co.className),Co.css&&(ln=(ln?ln+";":"")+Co.css),Co.startStyle&&ui.from==Fe&&(Zr+=" "+Co.startStyle),Co.endStyle&&ui.to==$t&&(Va||(Va=[])).push(Co.endStyle,ui.to),Co.title&&((Ia||(Ia={})).title=Co.title),Co.attributes)for(var ml in Co.attributes)(Ia||(Ia={}))[ml]=Co.attributes[ml];Co.collapsed&&(!sa||Fi(sa.marker,Co)<0)&&(sa=ui)}else ui.from>Fe&&$t>ui.from&&($t=ui.from)}if(Va)for(var Jl=0;Jl=Ee)break;for(var Ds=Math.min(Ee,$t);;){if(vt){var Es=Fe+vt.length;if(!sa){var Ml=Es>Ds?vt.slice(0,Ds-Fe):vt;y.addToken(y,Ml,St?St+Kn:Kn,Zr,Fe+Ml.length==$t?vr:"",ln,Ia)}if(Es>=Ds){vt=vt.slice(Ds-Fe),Fe=Ds;break}Fe=Es,Zr=""}vt=z.slice(oe,oe=x[Ze++]),St=Xi(x[Ze++],y.cm.options)}}}function mo(a,y,x){this.line=y,this.rest=Zt(y),this.size=this.rest?jr(dt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Qt(a,y)}function Rl(a,y,x){for(var b=[],z,oe=y;oe2&&oe.push((Fe.bottom+Ze.top)/2-x.top)}}oe.push(x.bottom-x.top)}}function fl(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function es(a,y){y=nn(y);var x=jr(y),b=a.display.externalMeasured=new mo(a.doc,y,x);b.lineN=x;var z=b.built=ji(a,b);return b.text=z.pre,st(a.display.lineMeasure,z.pre),b}function ps(a,y,x,b){return hs(a,Ts(a,y),x,b)}function Sl(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(oe=Fe-Ee,z=oe-1,y>=Fe&&(fe="right")),z!=null){if(b=a[Ze+2],Ee==Fe&&x==(b.insertLeft?"left":"right")&&(fe=x),x=="left"&&z==0)for(;Ze&&a[Ze-2]==a[Ze-3]&&a[Ze-1].insertLeft;)b=a[(Ze-=3)+2],fe="left";if(x=="right"&&z==Fe-Ee)for(;Ze=0&&(x=a[z]).left==x.right;z--);return x}function vs(a,y,x,b){var z=qs(y.map,x,b),oe=z.node,fe=z.start,Ee=z.end,Fe=z.collapse,Ze;if(oe.nodeType==3){for(var vt=0;vt<4;vt++){for(;fe&&Ht(y.line.text.charAt(z.coverStart+fe));)--fe;for(;z.coverStart+Ee0&&(Fe=b="right");var St;a.options.lineWrapping&&(St=oe.getClientRects()).length>1?Ze=St[b=="right"?St.length-1:0]:Ze=oe.getBoundingClientRect()}if(We&&Ae<9&&!fe&&(!Ze||!Ze.left&&!Ze.right)){var ln=oe.parentNode.getClientRects()[0];ln?Ze={left:ln.left,right:ln.left+_s(a.display),top:ln.top,bottom:ln.bottom}:Ze=Ls}for(var $t=Ze.top-y.rect.top,Kn=Ze.bottom-y.rect.top,vr=($t+Kn)/2,Zr=y.view.measure.heights,sa=0;sa=b.text.length?(Fe=b.text.length,Ze="before"):Fe<=0&&(Fe=0,Ze="after"),!Ee)return fe(Ze=="before"?Fe-1:Fe,Ze=="before");function vt(Kn,vr,Zr){var sa=Ee[vr],Ia=sa.level==1;return fe(Zr?Kn-1:Kn,Ia!=Zr)}var St=Nn(Ee,Fe,Ze),ln=Xn,$t=vt(Fe,St,Ze=="before");return ln!=null&&($t.other=vt(Fe,ln,Ze!="before")),$t}function ku(a,y){var x=0;y=Tt(a.doc,y),a.options.lineWrapping||(x=_s(a.display)*y.ch);var b=Vt(a.doc,y.line),z=Wn(b)+Mo(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function Il(a,y,x,b,z){var oe=An(a,y,x);return oe.xRel=z,b&&(oe.outside=b),oe}function ss(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Il(b.first,0,null,-1,-1);var z=Nr(b,x),oe=b.first+b.size-1;if(z>oe)return Il(b.first+b.size-1,Vt(b,oe).text.length,null,1,1);y<0&&(y=0);for(var fe=Vt(b,z);;){var Ee=da(a,fe,z,y,x),Fe=_e(fe,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!Fe)return Ee;var Ze=Fe.find(1);if(Ze.line==z)return Ze;fe=Vt(b,z=Ze.line)}}function uu(a,y,x,b){b-=xu(y);var z=y.text.length,oe=kn(function(fe){return hs(a,x,fe-1).bottom<=b},z,0);return z=kn(function(fe){return hs(a,x,fe).top>b},oe,z),{begin:oe,end:z}}function Iu(a,y,x,b){x||(x=Ts(a,y));var z=lu(a,y,hs(a,x,b),"line").top;return uu(a,y,x,z)}function au(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function da(a,y,x,b,z){z-=Wn(y);var oe=Ts(a,y),fe=xu(y),Ee=0,Fe=y.text.length,Ze=!0,vt=Vr(y,a.doc.direction);if(vt){var St=(a.options.lineWrapping?Uu:wu)(a,y,x,oe,vt,b,z);Ze=St.level!=1,Ee=Ze?St.from:St.to-1,Fe=Ze?St.to:St.from-1}var ln=null,$t=null,Kn=kn(function(Di){var ui=hs(a,oe,Di);return ui.top+=fe,ui.bottom+=fe,au(ui,b,z,!1)?(ui.top<=z&&ui.left<=b&&(ln=Di,$t=ui),!0):!1},Ee,Fe),vr,Zr,sa=!1;if($t){var Ia=b-$t.left<$t.right-b,la=Ia==Ze;Kn=ln+(la?0:1),Zr=la?"after":"before",vr=Ia?$t.left:$t.right}else{!Ze&&(Kn==Fe||Kn==Ee)&&Kn++,Zr=Kn==0?"after":Kn==y.text.length?"before":hs(a,oe,Kn-(Ze?1:0)).bottom+fe<=z==Ze?"after":"before";var Va=ts(a,An(x,Kn,Zr),"line",y,oe);vr=Va.left,sa=z=Va.bottom?1:0}return Kn=on(y.text,Kn,1),Il(x,Kn,Zr,sa,b-vr)}function wu(a,y,x,b,z,oe,fe){var Ee=kn(function(St){var ln=z[St],$t=ln.level!=1;return au(ts(a,An(x,$t?ln.to:ln.from,$t?"before":"after"),"line",y,b),oe,fe,!0)},0,z.length-1),Fe=z[Ee];if(Ee>0){var Ze=Fe.level!=1,vt=ts(a,An(x,Ze?Fe.from:Fe.to,Ze?"after":"before"),"line",y,b);au(vt,oe,fe,!0)&&vt.top>fe&&(Fe=z[Ee-1])}return Fe}function Uu(a,y,x,b,z,oe,fe){var Ee=uu(a,y,b,fe),Fe=Ee.begin,Ze=Ee.end;/\s/.test(y.text.charAt(Ze-1))&&Ze--;for(var vt=null,St=null,ln=0;ln=Ze||$t.to<=Fe)){var Kn=$t.level!=1,vr=hs(a,b,Kn?Math.min(Ze,$t.to)-1:Math.max(Fe,$t.from)).right,Zr=vrZr)&&(vt=$t,St=Zr)}}return vt||(vt=z[z.length-1]),vt.fromZe&&(vt={from:vt.from,to:Ze,level:vt.level}),vt}var Yl;function gr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Yl==null){Yl=Xe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Yl.appendChild(document.createTextNode("x")),Yl.appendChild(Xe("br"));Yl.appendChild(document.createTextNode("x"))}st(a.measure,Yl);var x=Yl.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),At(a.measure),x||1}function _s(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Xe("span","xxxxxxxxxx"),x=Xe("pre",[y],"CodeMirror-line-like");st(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function Fu(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,oe=y.gutters.firstChild,fe=0;oe;oe=oe.nextSibling,++fe){var Ee=a.display.gutterSpecs[fe].className;x[Ee]=oe.offsetLeft+oe.clientLeft+z,b[Ee]=oe.clientWidth}return{fixedPos:Nu(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Nu(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Ou(a){var y=gr(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/_s(a.display)-3);return function(z){if(Qt(a.doc,z))return 0;var oe=0;if(z.widgets)for(var fe=0;fe0&&(Ze=Vt(a.doc,Fe.line).text).length==Fe.ch){var vt=De(Ze,Ze.length,a.options.tabSize)-Ze.length;Fe=An(Fe.line,Math.max(0,Math.round((oe-ls(a.display).left)/_s(a.display))-vt))}return Fe}function sl(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)ra&&Xt(a.doc,y)z.viewFrom?Zs(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)Zs(a);else if(y<=z.viewFrom){var oe=cu(a,x,x+b,1);oe?(z.view=z.view.slice(oe.index),z.viewFrom=oe.lineN,z.viewTo+=b):Zs(a)}else if(x>=z.viewTo){var fe=cu(a,y,y,-1);fe?(z.view=z.view.slice(0,fe.index),z.viewTo=fe.lineN):Zs(a)}else{var Ee=cu(a,y,y,-1),Fe=cu(a,x,x+b,1);Ee&&Fe?(z.view=z.view.slice(0,Ee.index).concat(Rl(a,Ee.lineN,Fe.lineN)).concat(z.view.slice(Fe.index)),z.viewTo+=b):Zs(a)}var Ze=z.externalMeasured;Ze&&(x=z.lineN&&y=b.viewTo)){var oe=b.view[sl(a,y)];if(oe.node!=null){var fe=oe.changes||(oe.changes=[]);lt(fe,x)==-1&&fe.push(x)}}}function Zs(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function cu(a,y,x,b){var z=sl(a,y),oe,fe=a.display.view;if(!ra||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var Ee=a.display.viewFrom,Fe=0;Fe0){if(z==fe.length-1)return null;oe=Ee+fe[z].size-y,z++}else oe=Ee-y;y+=oe,x+=oe}for(;Xt(a.doc,x)!=x;){if(z==(b<0?0:fe.length-1))return null;x+=b*fe[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function Gu(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Rl(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Rl(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,sl(a,x)))),b.viewTo=x}function Su(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||Ee.to().line1}var ea={},Ir={};function qt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),ea[a]=y}function Ut(a,y){Ir[a]=y}function Un(a){if(typeof a=="string"&&Ir.hasOwnProperty(a))a=Ir[a];else if(a&&typeof a.name=="string"&&Ir.hasOwnProperty(a.name)){var y=Ir[a.name];typeof y=="string"&&(y={name:y}),a=se(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Un("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Un("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Lt(a,y){y=Un(y);var x=ea[y.name];if(!x)return Lt(a,"text/plain");var b=x(a,y);if(Dn.hasOwnProperty(y.name)){var z=Dn[y.name];for(var oe in z)z.hasOwnProperty(oe)&&(b.hasOwnProperty(oe)&&(b["_"+oe]=b[oe]),b[oe]=z[oe])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var fe in y.modeProps)b[fe]=y.modeProps[fe];return b}var Dn={};function rr(a,y){var x=Dn.hasOwnProperty(a)?Dn[a]:Dn[a]={};Ft(y,x)}function Rn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function ar(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function wr(a,y,x){return a.startState?a.startState(y,x):!0}var er=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};er.prototype.eol=function(){return this.pos>=this.string.length},er.prototype.sol=function(){return this.pos==this.lineStart},er.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},er.prototype.next=function(){if(this.posy},er.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},er.prototype.skipToEnd=function(){this.pos=this.string.length},er.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},er.prototype.backUp=function(a){this.pos-=a},er.prototype.column=function(){return this.lastColumnPos0?null:(oe&&y!==!1&&(this.pos+=oe[0].length),oe)}},er.prototype.current=function(){return this.string.slice(this.start,this.pos)},er.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},er.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},er.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Vt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var z=x.children[b],oe=z.chunkSize();if(y=a.first&&yx?An(x,Vt(a,x).text.length):It(y,Vt(a,y.line).text.length)}function It(a,y){var x=a.ch;return x==null||x>y?An(a.line,y):x<0?An(a.line,0):a}function Zn(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},yn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yn.fromSaved=function(a,y,x){return y instanceof Gn?new yn(a,Rn(a.mode,y.state),x,y.lookAhead):new yn(a,Rn(a.mode,y),x)},yn.prototype.save=function(a){var y=a!==!1?Rn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gn(y,this.maxLookAhead):y};function tr(a,y,x,b){var z=[a.state.modeGen],oe={};qa(a,y.text,a.doc.mode,x,function(Re,vt){return z.push(Re,vt)},oe,b);for(var fe=x.state,Ee=function(Re){x.baseTokens=z;var vt=a.state.overlays[Re],St=1,ln=0;x.state=!0,qa(a,y.text,vt.mode,x,function($t,Kn){for(var vr=St;ln<$t;){var Zr=z[St];Zr>$t&&z.splice(St,1,$t,z[St+1],Zr),St+=2,ln=Math.min($t,Zr)}if(Kn)if(vt.opaque)z.splice(vr,St-vr,$t,"overlay "+Kn),St=vr+2;else for(;vra.options.maxHighlightLength&&Rn(a.doc.mode,b.state),oe=tr(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=oe.styles,oe.classes?y.styleClasses=oe.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Tr(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new yn(b,!0,y);var oe=ai(a,y,x),fe=oe>b.first&&Vt(b,oe-1).stateAfter,Ee=fe?yn.fromSaved(b,fe,oe):new yn(b,wr(b.mode),oe);return b.iter(oe,y,function(Fe){Qa(a,Fe.text,Ee);var Re=Ee.line;Fe.stateAfter=Re==y-1||Re%5==0||Re>=z.viewFrom&&Rey.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ua=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Kr(a,y,x,b){var z=a.doc,oe=z.mode,fe;y=Tt(z,y);var Ee=Vt(z,y.line),Fe=Tr(a,y.line,x),Re=new er(Ee.text,a.options.tabSize,Fe),vt;for(b&&(vt=[]);(b||Re.posa.options.maxHighlightLength?(Ee=!1,fe&&Qa(a,y,b,vt.pos),vt.pos=y.length,St=null):St=ya(ta(x,vt,b.state,ln),oe),ln){var $t=ln[0].name;$t&&(St="m-"+(St?$t+" "+St:$t))}if(!Ee||Re!=St){for(;Fefe;--Ee){if(Ee<=oe.first)return oe.first;var Fe=Vt(oe,Ee-1),Re=Fe.stateAfter;if(Re&&(!x||Ee+(Re instanceof Gn?Re.lookAhead:0)<=oe.modeFrontier))return Ee;var vt=De(Fe.text,null,a.options.tabSize);(z==null||b>vt)&&(z=Ee-1,b=vt)}return z}function bi(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var z=Vt(a,b).stateAfter;if(z&&(!(z instanceof Gn)||b+z.lookAhead=y:oe.to>y);(b||(b=[])).push(new Ta(fe,oe.from,Fe?null:oe.to))}}return b}function ci(a,y,x){var b;if(a)for(var z=0;z=y:oe.to>y);if(Ee||oe.from==y&&fe.type=="bookmark"&&(!x||oe.marker.insertLeft)){var Fe=oe.from==null||(fe.inclusiveLeft?oe.from<=y:oe.from0&&Ee)for(var Va=0;Va0)){var vt=[Fe,1],St=rn(Re.from,Ee.from),ln=rn(Re.to,Ee.to);(St<0||!fe.inclusiveLeft&&!St)&&vt.push({from:Re.from,to:Ee.from}),(ln>0||!fe.inclusiveRight&&!ln)&&vt.push({from:Ee.to,to:Re.to}),z.splice.apply(z,vt),Fe+=vt.length-3}}return z}function Hi(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||Fi(b,oe.marker)<0)&&(b=oe.marker)}return b}function Jt(a,y,x,b,z){var oe=Vt(a,y),fe=ra&&oe.markedSpans;if(fe)for(var Ee=0;Ee=0&&St<=0||vt<=0&&St>=0)&&(vt<=0&&(Fe.marker.inclusiveRight&&z.inclusiveLeft?rn(Re.to,x)>=0:rn(Re.to,x)>0)||vt>=0&&(Fe.marker.inclusiveRight&&z.inclusiveLeft?rn(Re.from,b)<=0:rn(Re.from,b)<0)))return!0}}}function nn(a){for(var y;y=Ni(a);)a=y.find(-1,!0).line;return a}function Fn(a){for(var y;y=li(a);)a=y.find(1,!0).line;return a}function Zt(a){for(var y,x;y=li(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Xt(a,y){var x=Vt(a,y),b=nn(x);return x==b?y:jr(b)}function an(a,y){if(y>a.lastLine())return y;var x=Vt(a,y),b;if(!Qt(a,x))return y;for(;b=li(x);)x=b.find(1,!0).line;return jr(x)+1}function Qt(a,y){var x=ra&&y.markedSpans;if(x){for(var b=void 0,z=0;zy.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var cr=function(a,y,x){this.text=a,oo(this,y),this.height=x?x(this):1};cr.prototype.lineNo=function(){return jr(this)},Er(cr);function Xr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Hi(a),oo(a,x);var z=b?b(a):1;z!=a.height&&Hr(a,z)}function ca(a){a.parent=null,Hi(a)}var La={},Pa={};function Xi(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Pa:La;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ji(a,y){var x=ht("span",null,null,Ue?"padding-right: .1px":null),b={pre:ht("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var oe=z?y.rest[z-1]:y.line,fe=void 0;b.pos=0,b.addToken=dl,Ii(a.display.measure)&&(fe=Vr(oe,a.doc.direction))&&(b.addToken=Xo(b.addToken,fe)),b.map=[];var Ee=y!=a.display.externalMeasured&&jr(oe);Ao(oe,b,Mr(a,oe,Ee)),oe.styleClasses&&(oe.styleClasses.bgClass&&(b.bgClass=Pt(oe.styleClasses.bgClass,b.bgClass||"")),oe.styleClasses.textClass&&(b.textClass=Pt(oe.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(ga(a.display.measure))),z==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ue){var Fe=b.content.lastChild;(/\bcm-tab\b/.test(Fe.className)||Fe.querySelector&&Fe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return ur(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Pt(b.pre.className,b.textClass||"")),b}function Do(a){var y=Xe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function dl(a,y,x,b,z,oe,fe){if(y){var Ee=a.splitSpaces?al(y,a.trailingSpace):y,Fe=a.cm.state.specialChars,Re=!1,vt;if(!Fe.test(y))a.col+=y.length,vt=document.createTextNode(Ee),a.map.push(a.pos,a.pos+y.length,vt),We&&Ae<9&&(Re=!0),a.pos+=y.length;else{vt=document.createDocumentFragment();for(var St=0;;){Fe.lastIndex=St;var ln=Fe.exec(y),$t=ln?ln.index-St:y.length-St;if($t){var Kn=document.createTextNode(Ee.slice(St,St+$t));We&&Ae<9?vt.appendChild(Xe("span",[Kn])):vt.appendChild(Kn),a.map.push(a.pos,a.pos+$t,Kn),a.col+=$t,a.pos+=$t}if(!ln)break;St+=$t+1;var vr=void 0;if(ln[0]==" "){var Zr=a.cm.options.tabSize,sa=Zr-a.col%Zr;vr=vt.appendChild(Xe("span",dn(sa),"cm-tab")),vr.setAttribute("role","presentation"),vr.setAttribute("cm-text"," "),a.col+=sa}else ln[0]=="\r"||ln[0]==` +`?(vr=vt.appendChild(Xe("span",ln[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vr.setAttribute("cm-text",ln[0]),a.col+=1):(vr=a.cm.options.specialCharPlaceholder(ln[0]),vr.setAttribute("cm-text",ln[0]),We&&Ae<9?vt.appendChild(Xe("span",[vr])):vt.appendChild(vr),a.col+=1);a.map.push(a.pos,a.pos+1,vr),a.pos++}}if(a.trailingSpace=Ee.charCodeAt(y.length-1)==32,x||b||z||Re||oe||fe){var Ia=x||"";b&&(Ia+=b),z&&(Ia+=z);var la=Xe("span",[vt],Ia,oe);if(fe)for(var Va in fe)fe.hasOwnProperty(Va)&&Va!="style"&&Va!="class"&&la.setAttribute(Va,fe[Va]);return a.content.appendChild(la)}a.content.appendChild(vt)}}function al(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;zRe&&St.from<=Re));ln++);if(St.to>=vt)return a(x,b,z,oe,fe,Ee,Fe);a(x,b.slice(0,St.to-Re),z,oe,null,Ee,Fe),oe=null,b=b.slice(St.to-Re),Re=St.to}}}function bl(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Ao(a,y,x){var b=a.markedSpans,z=a.text,oe=0;if(!b){for(var fe=1;feFe||Co.collapsed&&ui.to==Fe&&ui.from==Fe)){if(ui.to!=null&&ui.to!=Fe&&$t>ui.to&&($t=ui.to,vr=""),Co.className&&(Kn+=" "+Co.className),Co.css&&(ln=(ln?ln+";":"")+Co.css),Co.startStyle&&ui.from==Fe&&(Zr+=" "+Co.startStyle),Co.endStyle&&ui.to==$t&&(Va||(Va=[])).push(Co.endStyle,ui.to),Co.title&&((Ia||(Ia={})).title=Co.title),Co.attributes)for(var ml in Co.attributes)(Ia||(Ia={}))[ml]=Co.attributes[ml];Co.collapsed&&(!sa||Fi(sa.marker,Co)<0)&&(sa=ui)}else ui.from>Fe&&$t>ui.from&&($t=ui.from)}if(Va)for(var Jl=0;Jl=Ee)break;for(var Ds=Math.min(Ee,$t);;){if(vt){var Es=Fe+vt.length;if(!sa){var Ml=Es>Ds?vt.slice(0,Ds-Fe):vt;y.addToken(y,Ml,St?St+Kn:Kn,Zr,Fe+Ml.length==$t?vr:"",ln,Ia)}if(Es>=Ds){vt=vt.slice(Ds-Fe),Fe=Ds;break}Fe=Es,Zr=""}vt=z.slice(oe,oe=x[Re++]),St=Xi(x[Re++],y.cm.options)}}}function mo(a,y,x){this.line=y,this.rest=Zt(y),this.size=this.rest?jr(ct(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Qt(a,y)}function Rl(a,y,x){for(var b=[],z,oe=y;oe2&&oe.push((Fe.bottom+Re.top)/2-x.top)}}oe.push(x.bottom-x.top)}}function fl(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function es(a,y){y=nn(y);var x=jr(y),b=a.display.externalMeasured=new mo(a.doc,y,x);b.lineN=x;var z=b.built=ji(a,b);return b.text=z.pre,ut(a.display.lineMeasure,z.pre),b}function ps(a,y,x,b){return hs(a,Ts(a,y),x,b)}function Sl(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(oe=Fe-Ee,z=oe-1,y>=Fe&&(fe="right")),z!=null){if(b=a[Re+2],Ee==Fe&&x==(b.insertLeft?"left":"right")&&(fe=x),x=="left"&&z==0)for(;Re&&a[Re-2]==a[Re-3]&&a[Re-1].insertLeft;)b=a[(Re-=3)+2],fe="left";if(x=="right"&&z==Fe-Ee)for(;Re=0&&(x=a[z]).left==x.right;z--);return x}function vs(a,y,x,b){var z=qs(y.map,x,b),oe=z.node,fe=z.start,Ee=z.end,Fe=z.collapse,Re;if(oe.nodeType==3){for(var vt=0;vt<4;vt++){for(;fe&&Ht(y.line.text.charAt(z.coverStart+fe));)--fe;for(;z.coverStart+Ee0&&(Fe=b="right");var St;a.options.lineWrapping&&(St=oe.getClientRects()).length>1?Re=St[b=="right"?St.length-1:0]:Re=oe.getBoundingClientRect()}if(We&&Ae<9&&!fe&&(!Re||!Re.left&&!Re.right)){var ln=oe.parentNode.getClientRects()[0];ln?Re={left:ln.left,right:ln.left+_s(a.display),top:ln.top,bottom:ln.bottom}:Re=Ls}for(var $t=Re.top-y.rect.top,Kn=Re.bottom-y.rect.top,vr=($t+Kn)/2,Zr=y.view.measure.heights,sa=0;sa=b.text.length?(Fe=b.text.length,Re="before"):Fe<=0&&(Fe=0,Re="after"),!Ee)return fe(Re=="before"?Fe-1:Fe,Re=="before");function vt(Kn,vr,Zr){var sa=Ee[vr],Ia=sa.level==1;return fe(Zr?Kn-1:Kn,Ia!=Zr)}var St=Nn(Ee,Fe,Re),ln=Xn,$t=vt(Fe,St,Re=="before");return ln!=null&&($t.other=vt(Fe,ln,Re!="before")),$t}function ku(a,y){var x=0;y=Tt(a.doc,y),a.options.lineWrapping||(x=_s(a.display)*y.ch);var b=Vt(a.doc,y.line),z=Wn(b)+Mo(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function Il(a,y,x,b,z){var oe=An(a,y,x);return oe.xRel=z,b&&(oe.outside=b),oe}function ss(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Il(b.first,0,null,-1,-1);var z=Nr(b,x),oe=b.first+b.size-1;if(z>oe)return Il(b.first+b.size-1,Vt(b,oe).text.length,null,1,1);y<0&&(y=0);for(var fe=Vt(b,z);;){var Ee=da(a,fe,z,y,x),Fe=_e(fe,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!Fe)return Ee;var Re=Fe.find(1);if(Re.line==z)return Re;fe=Vt(b,z=Re.line)}}function uu(a,y,x,b){b-=xu(y);var z=y.text.length,oe=kn(function(fe){return hs(a,x,fe-1).bottom<=b},z,0);return z=kn(function(fe){return hs(a,x,fe).top>b},oe,z),{begin:oe,end:z}}function Iu(a,y,x,b){x||(x=Ts(a,y));var z=lu(a,y,hs(a,x,b),"line").top;return uu(a,y,x,z)}function au(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function da(a,y,x,b,z){z-=Wn(y);var oe=Ts(a,y),fe=xu(y),Ee=0,Fe=y.text.length,Re=!0,vt=Vr(y,a.doc.direction);if(vt){var St=(a.options.lineWrapping?Uu:wu)(a,y,x,oe,vt,b,z);Re=St.level!=1,Ee=Re?St.from:St.to-1,Fe=Re?St.to:St.from-1}var ln=null,$t=null,Kn=kn(function(Di){var ui=hs(a,oe,Di);return ui.top+=fe,ui.bottom+=fe,au(ui,b,z,!1)?(ui.top<=z&&ui.left<=b&&(ln=Di,$t=ui),!0):!1},Ee,Fe),vr,Zr,sa=!1;if($t){var Ia=b-$t.left<$t.right-b,la=Ia==Re;Kn=ln+(la?0:1),Zr=la?"after":"before",vr=Ia?$t.left:$t.right}else{!Re&&(Kn==Fe||Kn==Ee)&&Kn++,Zr=Kn==0?"after":Kn==y.text.length?"before":hs(a,oe,Kn-(Re?1:0)).bottom+fe<=z==Re?"after":"before";var Va=ts(a,An(x,Kn,Zr),"line",y,oe);vr=Va.left,sa=z=Va.bottom?1:0}return Kn=on(y.text,Kn,1),Il(x,Kn,Zr,sa,b-vr)}function wu(a,y,x,b,z,oe,fe){var Ee=kn(function(St){var ln=z[St],$t=ln.level!=1;return au(ts(a,An(x,$t?ln.to:ln.from,$t?"before":"after"),"line",y,b),oe,fe,!0)},0,z.length-1),Fe=z[Ee];if(Ee>0){var Re=Fe.level!=1,vt=ts(a,An(x,Re?Fe.from:Fe.to,Re?"after":"before"),"line",y,b);au(vt,oe,fe,!0)&&vt.top>fe&&(Fe=z[Ee-1])}return Fe}function Uu(a,y,x,b,z,oe,fe){var Ee=uu(a,y,b,fe),Fe=Ee.begin,Re=Ee.end;/\s/.test(y.text.charAt(Re-1))&&Re--;for(var vt=null,St=null,ln=0;ln=Re||$t.to<=Fe)){var Kn=$t.level!=1,vr=hs(a,b,Kn?Math.min(Re,$t.to)-1:Math.max(Fe,$t.from)).right,Zr=vrZr)&&(vt=$t,St=Zr)}}return vt||(vt=z[z.length-1]),vt.fromRe&&(vt={from:vt.from,to:Re,level:vt.level}),vt}var Yl;function gr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Yl==null){Yl=Xe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Yl.appendChild(document.createTextNode("x")),Yl.appendChild(Xe("br"));Yl.appendChild(document.createTextNode("x"))}ut(a.measure,Yl);var x=Yl.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),At(a.measure),x||1}function _s(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Xe("span","xxxxxxxxxx"),x=Xe("pre",[y],"CodeMirror-line-like");ut(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function Fu(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,oe=y.gutters.firstChild,fe=0;oe;oe=oe.nextSibling,++fe){var Ee=a.display.gutterSpecs[fe].className;x[Ee]=oe.offsetLeft+oe.clientLeft+z,b[Ee]=oe.clientWidth}return{fixedPos:Nu(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Nu(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Ou(a){var y=gr(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/_s(a.display)-3);return function(z){if(Qt(a.doc,z))return 0;var oe=0;if(z.widgets)for(var fe=0;fe0&&(Re=Vt(a.doc,Fe.line).text).length==Fe.ch){var vt=De(Re,Re.length,a.options.tabSize)-Re.length;Fe=An(Fe.line,Math.max(0,Math.round((oe-ls(a.display).left)/_s(a.display))-vt))}return Fe}function sl(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)ra&&Xt(a.doc,y)z.viewFrom?Zs(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)Zs(a);else if(y<=z.viewFrom){var oe=cu(a,x,x+b,1);oe?(z.view=z.view.slice(oe.index),z.viewFrom=oe.lineN,z.viewTo+=b):Zs(a)}else if(x>=z.viewTo){var fe=cu(a,y,y,-1);fe?(z.view=z.view.slice(0,fe.index),z.viewTo=fe.lineN):Zs(a)}else{var Ee=cu(a,y,y,-1),Fe=cu(a,x,x+b,1);Ee&&Fe?(z.view=z.view.slice(0,Ee.index).concat(Rl(a,Ee.lineN,Fe.lineN)).concat(z.view.slice(Fe.index)),z.viewTo+=b):Zs(a)}var Re=z.externalMeasured;Re&&(x=z.lineN&&y=b.viewTo)){var oe=b.view[sl(a,y)];if(oe.node!=null){var fe=oe.changes||(oe.changes=[]);lt(fe,x)==-1&&fe.push(x)}}}function Zs(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function cu(a,y,x,b){var z=sl(a,y),oe,fe=a.display.view;if(!ra||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var Ee=a.display.viewFrom,Fe=0;Fe0){if(z==fe.length-1)return null;oe=Ee+fe[z].size-y,z++}else oe=Ee-y;y+=oe,x+=oe}for(;Xt(a.doc,x)!=x;){if(z==(b<0?0:fe.length-1))return null;x+=b*fe[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function Gu(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Rl(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Rl(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,sl(a,x)))),b.viewTo=x}function Su(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||Ee.to().line0?y.blinker=setInterval(function(){a.hasFocus()||eu(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Yu(a){a.state.focused||(a.display.input.focus(),Hs(a))}function Au(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,eu(a))},100)}function Hs(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ur(a,"focus",a,y),a.state.focused=!0,at(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ue&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Du(a))}function eu(a,y){a.state.delayingBlurEvent||(a.state.focused&&(ur(a,"blur",a,y),a.state.focused=!1,Et(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function xl(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||vt<-.005)&&(Hr(z.line,fe),hu(z.line),z.rest))for(var St=0;Sta.display.sizerWidth){var ln=Math.ceil(Ee/_s(a.display));ln>a.display.maxLineLength&&(a.display.maxLineLength=ln,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function hu(a){if(a.widgets)for(var y=0;y=fe&&(oe=Nr(y,Wn(Vt(y,Fe))-a.wrapper.clientHeight),fe=Fe)}return{from:oe,to:Math.max(fe,oe+1)}}function ye(a,y){if(!Sn(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!ht){var oe=Xe("div","\u200B",null,`position: absolute; + height: `+(ui-Va)+"px"))}function St(la,Va,Di){var ui=Vt(z,la),Co=ui.text.length,ml,Jl;function Al(Ml,bs){return ru(a,An(la,Ml),"div",ui,bs)}function Ds(Ml,bs,as){var Tl=Iu(a,ui,null,Ml),Ll=bs=="ltr"==(as=="after")?"left":"right",Pl=as=="after"?Tl.begin:Tl.end-(/\s/.test(ui.text.charAt(Tl.end-1))?2:1);return Al(Pl,Ll)[Ll]}var Es=Vr(ui,z.direction);return wn(Es,Va||0,Di==null?Co:Di,function(Ml,bs,as,Tl){var Ll=as=="ltr",Pl=Al(Ml,Ll?"left":"right"),Cs=Al(bs-1,Ll?"right":"left"),ju=Va==null&&Ml==0,vu=Di==null&&bs==Co,is=Tl==0,ee=!Es||Tl==Es.length-1;if(Cs.top-Pl.top<=3){var te=(Re?ju:vu)&&is,ie=(Re?vu:ju)&&ee,de=te?Ee:(Ll?Pl:Cs).left,Ce=ie?Fe:(Ll?Cs:Pl).right;vt(de,Pl.top,Ce-de,Pl.bottom)}else{var we,Ie,je,dt;Ll?(we=Re&&ju&&is?Ee:Pl.left,Ie=Re?Fe:Ds(Ml,as,"before"),je=Re?Ee:Ds(bs,as,"after"),dt=Re&&vu&&ee?Fe:Cs.right):(we=Re?Ds(Ml,as,"before"):Ee,Ie=!Re&&ju&&is?Fe:Pl.right,je=!Re&&vu&&ee?Ee:Cs.left,dt=Re?Ds(bs,as,"after"):Fe),vt(we,Pl.top,Ie-we,Pl.bottom),Pl.bottom0?y.blinker=setInterval(function(){a.hasFocus()||eu(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Yu(a){a.state.focused||(a.display.input.focus(),Hs(a))}function Au(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,eu(a))},100)}function Hs(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ur(a,"focus",a,y),a.state.focused=!0,rt(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ue&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Du(a))}function eu(a,y){a.state.delayingBlurEvent||(a.state.focused&&(ur(a,"blur",a,y),a.state.focused=!1,bt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function xl(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||vt<-.005)&&(Hr(z.line,fe),hu(z.line),z.rest))for(var St=0;Sta.display.sizerWidth){var ln=Math.ceil(Ee/_s(a.display));ln>a.display.maxLineLength&&(a.display.maxLineLength=ln,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function hu(a){if(a.widgets)for(var y=0;y=fe&&(oe=Nr(y,Wn(Vt(y,Fe))-a.wrapper.clientHeight),fe=Fe)}return{from:oe,to:Math.max(fe,oe+1)}}function ye(a,y){if(!Sn(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!pt){var oe=Xe("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-Mo(a.display))+`px; height: `+(y.bottom-y.top+yl(a)+x.barHeight)+`px; - left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(oe),oe.scrollIntoView(z),a.display.lineSpace.removeChild(oe)}}}function Me(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?An(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?An(y.line,y.ch+1,"before"):y);for(var oe=0;oe<5;oe++){var fe=!1,Ee=ts(a,y),Fe=!x||x==y?Ee:ts(a,x);z={left:Math.min(Ee.left,Fe.left),top:Math.min(Ee.top,Fe.top)-b,right:Math.max(Ee.left,Fe.left),bottom:Math.max(Ee.bottom,Fe.bottom)+b};var Ze=rt(a,z),vt=a.doc.scrollTop,St=a.doc.scrollLeft;if(Ze.scrollTop!=null&&(Bn(a,Ze.scrollTop),Math.abs(a.doc.scrollTop-vt)>1&&(fe=!0)),Ze.scrollLeft!=null&&(Tn(a,Ze.scrollLeft),Math.abs(a.doc.scrollLeft-St)>1&&(fe=!0)),!fe)break}return z}function et(a,y){var x=rt(a,y);x.scrollTop!=null&&Bn(a,x.scrollTop),x.scrollLeft!=null&&Tn(a,x.scrollLeft)}function rt(a,y){var x=a.display,b=gr(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,oe=Ti(a),fe={};y.bottom-y.top>oe&&(y.bottom=y.top+oe);var Ee=a.doc.height+Bl(x),Fe=y.topEe-b;if(y.topz+oe){var vt=Math.min(y.top,(Ze?Ee:y.bottom)-oe);vt!=z&&(fe.scrollTop=vt)}var St=a.options.fixedGutter?0:x.gutters.offsetWidth,ln=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-St,$t=$l(a)-x.gutters.offsetWidth,Kn=y.right-y.left>$t;return Kn&&(y.right=y.left+$t),y.left<10?fe.scrollLeft=0:y.left$t+ln-3&&(fe.scrollLeft=y.right+(Kn?0:10)-$t),fe}function Ct(a,y){y!=null&&(vn(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Rt(a){vn(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function jt(a,y,x){(y!=null||x!=null)&&vn(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function pn(a,y){vn(a),a.curOp.scrollToPos=y}function vn(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=ku(a,y.from),b=ku(a,y.to);Gt(a,x,b,y.margin)}}function Gt(a,y,x,b){var z=rt(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});jt(a,z.scrollLeft,z.scrollTop)}function Bn(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||di(a,{top:y}),Ot(a,y,!0),E&&di(a),ka(a,100))}function Ot(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Tn(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Li(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function In(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Bl(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+yl(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var jn=function(a,y,x){this.cm=x;var b=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Jn(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Jn(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,We&&Ae<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var oe=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},jn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var a=be&&!qe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ge,this.disableVert=new ge},jn.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),oe=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);oe!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},jn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Vn=function(){};Vn.prototype.update=function(){return{bottom:0,right:0}},Vn.prototype.setScrollLeft=function(){},Vn.prototype.setScrollTop=function(){},Vn.prototype.clear=function(){};function zn(a,y){y||(y=In(a));var x=a.display.barWidth,b=a.display.barHeight;Dr(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&xl(a),Dr(a,In(a)),x=a.display.barWidth,b=a.display.barHeight}function Dr(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var dr={native:jn,null:Vn};function bn(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Et(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new dr[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Jn(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Tn(a,y):Bn(a,y)},a),a.display.scrollbars.addClass&&at(a.display.wrapper,a.display.scrollbars.addClass)}var br=0;function qn(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++br},Zl(a.curOp)}function mr(a){var y=a.curOp;y&&Fl(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new oa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Lr(a){a.updatedDisplay=a.mustUpdate&&fa(a.cm,a.update)}function aa(a){var y=a.cm,x=y.display;a.updatedDisplay&&xl(y),a.barMeasure=In(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ps(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+yl(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-$l(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Wa(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Tr(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(oe){if(b.line>=a.display.viewFrom){var fe=oe.styles,Ee=oe.text.length>a.options.maxHighlightLength?Rn(y.mode,b.state):null,Fe=tr(a,oe,b,!0);Ee&&(b.state=Ee),oe.styles=Fe.styles;var Ze=oe.styleClasses,vt=Fe.classes;vt?oe.styleClasses=vt:Ze&&(oe.styleClasses=null);for(var St=!fe||fe.length!=oe.styles.length||Ze!=vt&&(!Ze||!vt||Ze.bgClass!=vt.bgClass||Ze.textClass!=vt.textClass),ln=0;!St&&lnx)return ka(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&Ur(a,function(){for(var oe=0;oe=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Su(a)==0)return!1;fn(a)&&(Zs(a),y.dims=Fu(a));var z=b.first+b.size,oe=Math.max(y.visible.from-a.options.viewportMargin,b.first),fe=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFromfe&&x.viewTo-fe<20&&(fe=Math.min(z,x.viewTo)),ra&&(oe=Xt(a.doc,oe),fe=an(a.doc,fe));var Ee=oe!=x.viewFrom||fe!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Gu(a,oe,fe),x.viewOffset=Wn(Vt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var Fe=Su(a);if(!Ee&&Fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Ze=Yr(a);return Fe>4&&(x.lineDiv.style.display="none"),mi(a,x.updateLineNumbers,y.dims),Fe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,ha(Ze),At(x.cursorDiv),At(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,Ee&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,ka(a,400)),x.updateLineNumbers=null,!0}function ni(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==$l(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Bl(a.display)-Ti(a),x.top)}),y.visible=re(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=re(a.display,a.doc,x));if(!fa(a,y))break;xl(a);var z=In(a);$s(a),zn(a,z),$a(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function di(a,y){var x=new oa(a,y);if(fa(a,x)){xl(a),ni(a,x);var b=In(a);$s(a),zn(a,b),$a(a,b),x.finish()}}function mi(a,y,x){var b=a.display,z=a.options.lineNumbers,oe=b.lineDiv,fe=oe.firstChild;function Ee(Kn){var vr=Kn.nextSibling;return Ue&&be&&a.display.currentWheelTarget==Kn?Kn.style.display="none":Kn.parentNode.removeChild(Kn),vr}for(var Fe=b.view,Ze=b.viewFrom,vt=0;vt-1&&($t=!1),Os(a,St,Ze,x)),$t&&(At(St.lineNumber),St.lineNumber.appendChild(document.createTextNode(za(a.options,Ze)))),fe=St.node.nextSibling}Ze+=St.size}for(;fe;)fe=Ee(fe)}function vi(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function $a(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+yl(a)+"px"}function Li(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Nu(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,oe=b+"px",fe=0;fefe.clientWidth,Fe=fe.scrollHeight>fe.clientHeight;if(b&&Ee||z&&Fe){if(z&&be&&Ue){e:for(var Ze=y.target,vt=oe.view;Ze!=fe;Ze=Ze.parentNode)for(var St=0;St=0&&rn(a,b.to())<=0)return x}return-1};var wa=function(a,y){this.anchor=a,this.head=y};wa.prototype.from=function(){return xt(this.anchor,this.head)},wa.prototype.to=function(){return Ki(this.anchor,this.head)},wa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(ln,$t){return rn(ln.from(),$t.from())}),x=lt(y,z);for(var oe=1;oe0:Fe>=0){var Ze=xt(Ee.from(),fe.from()),vt=Ki(Ee.to(),fe.to()),St=Ee.empty()?fe.from()==fe.head:Ee.from()==Ee.head;oe<=x&&--x,y.splice(--oe,2,new wa(St?vt:Ze,St?Ze:vt))}}return new ba(y,x)}function yo(a,y){return new ba([new wa(a,y||a)],0)}function jo(a){return a.text?An(a.from.line+a.text.length-1,dt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function so(a,y){if(rn(a,y.from)<0)return a;if(rn(a,y.to)<=0)return jo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=jo(y).ch-y.to.ch),An(x,b)}function tl(a,y){for(var x=[],b=0;b1&&a.remove(Ee.line+1,Kn-1),a.insert(Ee.line+1,sa)}zo(a,"change",a,y)}function Ya(a,y,x){function b(z,oe,fe){if(z.linked)for(var Ee=0;Ee1&&!a.done[a.done.length-2].ranges)return a.done.pop(),dt(a.done)}function jl(a,y,x,b){var z=a.history;z.undone.length=0;var oe=+new Date,fe,Ee;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(fe=gl(z,z.lastOp==b)))Ee=dt(fe.changes),rn(y.from,y.to)==0&&rn(y.from,Ee.to)==0?Ee.to=jo(y):fe.changes.push(ko(a,y));else{var Fe=dt(z.done);for((!Fe||!Fe.ranges)&&ue(a.sel,z.done),fe={changes:[ko(a,y)],generation:z.generation},z.done.push(fe);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=oe,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,Ee||ur(a,"historyAdded")}function Wl(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function js(a,y,x,b){var z=a.history,oe=b&&b.origin;x==z.lastSelOp||oe&&z.lastSelOrigin==oe&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==oe||Wl(a,oe,dt(z.done),y))?z.done[z.done.length-1]=y:ue(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=oe,z.lastSelOp=x,b&&b.clearRedo!==!1&&nl(z.undone)}function ue(a,y){var x=dt(y);x&&x.ranges&&x.equals(a)||y.push(a)}function ke(a,y,x,b){var z=y["spans_"+a.id],oe=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(fe){fe.markedSpans&&((z||(z=y["spans_"+a.id]={}))[oe]=fe.markedSpans),++oe})}function Te(a){if(!a)return null;for(var y,x=0;x-1&&(dt(Ee)[St]=Ze[St],delete Ze[St])}}return b}function Pn(a,y,x,b){if(b){var z=a.anchor;if(x){var oe=rn(y,z)<0;oe!=rn(x,z)<0?(z=y,y=x):oe!=rn(y,x)<0&&(y=x)}return new wa(z,y)}else return new wa(x||y,y)}function hn(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),cn(a,new ba([Pn(a.sel.primary(),y,x,z)],0),b)}function zt(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe=y.ch:Ee.to>y.ch))){if(z&&(ur(Fe,"beforeCursorEnter"),Fe.explicitlyCleared))if(oe.markedSpans){--fe;continue}else break;if(!Fe.atomic)continue;if(x){var St=Fe.find(b<0?1:-1),ln=void 0;if((b<0?vt:Ze)&&(St=xr(a,St,-b,St&&St.line==y.line?oe:null)),St&&St.line==y.line&&(ln=rn(St,x))&&(b<0?ln<0:ln>0))return xn(a,St,y,b,z)}var $t=Fe.find(b<0?-1:1);return(b<0?Ze:vt)&&($t=xr(a,$t,b,$t.line==y.line?oe:null)),$t?xn(a,$t,y,b,z):null}}return y}function or(a,y,x,b,z){var oe=b||1,fe=xn(a,y,x,oe,z)||!z&&xn(a,y,x,oe,!0)||xn(a,y,x,-oe,z)||!z&&xn(a,y,x,-oe,!0);return fe||(a.cantEdit=!0,An(a.first,0))}function xr(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Tt(a,An(y.line-1)):null:x>0&&y.ch==(b||Vt(a,y.line)).text.length?y.line=0;--z)Ui(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else Ui(a,y)}}function Ui(a,y){if(!(y.text.length==1&&y.text[0]==""&&rn(y.from,y.to)==0)){var x=tl(a,y);jl(a,y,x,a.cm?a.cm.curOp.id:NaN),_i(a,y,x,Ai(a,y));var b=[];Ya(a,function(z,oe){!oe&<(b,z.history)==-1&&(No(z.history,y),b.push(z.history)),_i(z,y,null,Ai(z,y))})}}function Io(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,oe,fe=a.sel,Ee=y=="undo"?z.done:z.undone,Fe=y=="undo"?z.undone:z.done,Ze=0;Ze=0;--$t){var Kn=ln($t);if(Kn)return Kn.v}}}}function Or(a,y){if(y!=0&&(a.first+=y,a.sel=new ba(Nt(a.sel.ranges,function(z){return new wa(An(z.anchor.line+y,z.anchor.ch),An(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Hl(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.lineoe&&(y={from:y.from,to:An(oe,Vt(a,oe).text.length),text:[y.text[0]],origin:y.origin}),y.removed=On(a,y.from,y.to),x||(x=tl(a,y)),a.cm?Gi(a.cm,y,b):Kl(a,y,b),Qn(a,x,je),a.cantEdit&&or(a,An(a.firstLine(),0))&&(a.cantEdit=!1)}}function Gi(a,y,x){var b=a.doc,z=a.display,oe=y.from,fe=y.to,Ee=!1,Fe=oe.line;a.options.lineWrapping||(Fe=jr(nn(Vt(b,oe.line))),b.iter(Fe,fe.line+1,function($t){if($t==z.maxLine)return Ee=!0,!0})),b.sel.contains(y.from,y.to)>-1&&sr(a),Kl(b,y,x,Ou(a)),a.options.lineWrapping||(b.iter(Fe,oe.line+y.text.length,function($t){var Kn=fr($t);Kn>z.maxLineLength&&(z.maxLine=$t,z.maxLineLength=Kn,z.maxLineChanged=!0,Ee=!1)}),Ee&&(a.curOp.updateMaxLine=!0)),bi(b,oe.line),ka(a,400);var Ze=y.text.length-(fe.line-oe.line)-1;y.full?Hl(a):oe.line==fe.line&&y.text.length==1&&!fi(a.doc,y)?ks(a,oe.line,"text"):Hl(a,oe.line,fe.line+1,Ze);var vt=un(a,"changes"),St=un(a,"change");if(St||vt){var ln={from:oe,to:fe,text:y.text,removed:y.removed,origin:y.origin};St&&zo(a,"change",a,ln),vt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ln)}a.display.selForContextMenu=null}function ir(a,y,x,b,z){var oe;b||(b=x),rn(b,x)<0&&(oe=[b,x],x=oe[0],b=oe[1]),typeof y=="string"&&(y=a.splitLines(y)),ro(a,{from:x,to:b,text:y,origin:z})}function Eo(a,y,x,b){x1||!(this.children[0]instanceof pi))){var Ee=[];this.collapse(Ee),this.children=[new pi(Ee)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var fe=z.lines.length%25+25,Ee=fe;Ee10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=Ze,a.display.maxLineLength=vt,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Hl(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ln(a.doc)),a&&zo(a,"markerCleared",a,this,b,z),y&&mr(a),this.parent&&this.parent.clear()}},ol.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z0||fe==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=ut("span",[oe.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Jt(a,y.line,y,x,oe)||y.line!=x.line&&Jt(a,x.line,y,x,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");wi()}oe.addToHistory&&jl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var Ee=y.line,Fe=a.cm,Ze;if(a.iter(Ee,x.line+1,function(St){Fe&&oe.collapsed&&!Fe.options.lineWrapping&&nn(St)==Fe.display.maxLine&&(Ze=!0),oe.collapsed&&Ee!=y.line&&Hr(St,0),ti(St,new Ta(oe,Ee==y.line?y.ch:null,Ee==x.line?x.ch:null)),++Ee}),oe.collapsed&&a.iter(y.line,x.line+1,function(St){Qt(a,St)&&Hr(St,0)}),oe.clearOnEnter&&Jn(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(eo(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++bo,oe.atomic=!0),Fe){if(Ze&&(Fe.curOp.updateMaxLine=!0),oe.collapsed)Hl(Fe,y.line,x.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var vt=y.line;vt<=x.line;vt++)ks(Fe,vt,"text");oe.atomic&&Ln(Fe.doc),zo(Fe,"markerAdded",Fe,oe)}return oe}var Lo=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;Fe--)ro(this,b[Fe]);Ee?Wt(this,Ee):this.cm&&Rt(this.cm)}),undo:Gr(function(){Io(this,"undo")}),redo:Gr(function(){Io(this,"redo")}),undoSelection:Gr(function(){Io(this,"undo",!0)}),redoSelection:Gr(function(){Io(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Tt(this,a),y=Tt(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(oe){var fe=oe.markedSpans;if(fe)for(var Ee=0;Ee=Fe.to||Fe.from==null&&z!=a.line||Fe.from!=null&&z==y.line&&Fe.from>=y.ch)&&(!x||x(Fe.marker))&&b.push(Fe.marker.parent||Fe.marker)}++z}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=oe,++x}),Tt(this,An(x,y))},indexFromPos:function(a){a=Tt(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var vt=a.dataTransfer.getData("Text");if(vt){var St;if(y.state.draggingText&&!y.state.draggingText.copy&&(St=y.listSelections()),Qn(y.doc,yo(x,x)),St)for(var ln=0;ln=0;Ee--)ir(a.doc,"",b[Ee].from,b[Ee].to,"+delete");Rt(a)})}function zs(a,y,x){var b=on(a.text,y+x,x);return b<0||b>a.text.length?null:b}function Xl(a,y,x){var b=zs(a,y.ch,x);return b==null?null:new An(y.line,b,x<0?"after":"before")}function Cn(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var oe=Vr(x,y.doc.direction);if(oe){var fe=z<0?dt(oe):oe[0],Ee=z<0==(fe.level==1),Fe=Ee?"after":"before",Ze;if(fe.level>0||y.doc.direction=="rtl"){var vt=Ts(y,x);Ze=z<0?x.text.length-1:0;var St=hs(y,vt,Ze).top;Ze=kn(function(ln){return hs(y,vt,ln).top==St},z<0==(fe.level==1)?fe.from:fe.to-1,Ze),Fe=="before"&&(Ze=zs(x,Ze,1))}else Ze=z<0?fe.to:fe.from;return new An(b,Ze,Fe)}}return new An(b,z<0?x.text.length:0,z<0?"before":"after")}function Fr(a,y,x,b){var z=Vr(y,a.doc.direction);if(!z)return Xl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var oe=Nn(z,x.ch,x.sticky),fe=z[oe];if(a.doc.direction=="ltr"&&fe.level%2==0&&(b>0?fe.to>x.ch:fe.from=fe.from&&ln>=vt.begin)){var $t=St?"before":"after";return new An(x.line,ln,$t)}}var Kn=function(sa,Ia,la){for(var Va=function(ml,Jl){return Jl?new An(x.line,Ee(ml,1),"before"):new An(x.line,ml,"after")};sa>=0&&sa0==(Di.level!=1),Co=ui?la.begin:Ee(la.end,-1);if(Di.from<=Co&&Co0?vt.end:Ee(vt.begin,-1);return Zr!=null&&!(b>0&&Zr==y.text.length)&&(vr=Kn(b>0?0:z.length-1,b,Ze(Zr)),vr)?vr:null}var ii={selectAll:lr,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),je)},killLine:function(a){return Is(a,function(y){if(y.empty()){var x=Vt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)z=new An(z.line,z.ch+1),a.replaceRange(oe.charAt(z.ch-1)+oe.charAt(z.ch-2),An(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var fe=Vt(a.doc,z.line-1).text;fe&&(z=new An(z.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+fe.charAt(fe.length-1),An(z.line-1,fe.length-1),z,"+transpose"))}}x.push(new wa(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return Ur(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;ba&&rn(y,this.pos)==0&&x==this.button};var hr,Sa;function Vi(a,y){var x=+new Date;return Sa&&Sa.compare(x,a,y)?(hr=Sa=null,"triple"):hr&&hr.compare(x,a,y)?(Sa=new Qu(x,a,y),hr=null,"double"):(hr=new Qu(x,a,y),Sa=null,"single")}function Zi(a){var y=this,x=y.display;if(!(Sn(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,wo(x,a)){Ue||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Us(y,a)){var b=Ps(y,a),z=nr(a),oe=b?Vi(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&io(y,z,b,oe,a))&&(z==1?b?Zo(y,b,oe,a):En(a)==x.scroller&&Br(a):z==2?(b&&hn(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(Ke?y.display.input.onContextMenu(a):Au(y)))}}}function io(a,y,x,b,z){var oe="Click";return b=="double"?oe="Double"+oe:b=="triple"&&(oe="Triple"+oe),oe=(y==1?"Left":y==2?"Middle":"Right")+oe,Wo(a,Nl(oe,z),z,function(fe){if(typeof fe=="string"&&(fe=ii[fe]),!fe)return!1;var Ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Ee=fe(a,x)!=yt}finally{a.state.suppressEdits=!1}return Ee})}function _o(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var oe=Pe?x.shiftKey&&x.metaKey:x.altKey;z.unit=oe?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=be?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(be?x.altKey:x.ctrlKey)),z}function Zo(a,y,x,b){We?setTimeout($e(Yu,a),0):a.curOp.focus=Ne();var z=_o(a,x,b),oe=a.doc.sel,fe;a.options.dragDrop&&$r&&!a.isReadOnly()&&x=="single"&&(fe=oe.contains(y))>-1&&(rn((fe=oe.ranges[fe]).from(),y)<0||y.xRel>0)&&(rn(fe.to(),y)>0||y.xRel<0)?Vo(a,b,y,z):ys(a,b,y,z)}function Vo(a,y,x,b){var z=a.display,oe=!1,fe=_r(a,function(Ze){Ue&&(z.scroller.draggable=!1),a.state.draggingText=!1,Qr(z.wrapper.ownerDocument,"mouseup",fe),Qr(z.wrapper.ownerDocument,"mousemove",Ee),Qr(z.scroller,"dragstart",Fe),Qr(z.scroller,"drop",fe),oe||(Br(Ze),b.addNew||hn(a.doc,x,null,null,b.extend),Ue&&!Qe||We&&Ae==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),Ee=function(Ze){oe=oe||Math.abs(y.clientX-Ze.clientX)+Math.abs(y.clientY-Ze.clientY)>=10},Fe=function(){return oe=!0};Ue&&(z.scroller.draggable=!0),a.state.draggingText=fe,fe.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Jn(z.wrapper.ownerDocument,"mouseup",fe),Jn(z.wrapper.ownerDocument,"mousemove",Ee),Jn(z.scroller,"dragstart",Fe),Jn(z.scroller,"drop",fe),Au(a),setTimeout(function(){return z.input.focus()},20)}function Ql(a,y,x){if(x=="char")return new wa(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new wa(An(y.line,0),Tt(a.doc,An(y.line+1,0)));var b=x(a,y);return new wa(b.from,b.to)}function ys(a,y,x,b){var z=a.display,oe=a.doc;Br(y);var fe,Ee,Fe=oe.sel,Ze=Fe.ranges;if(b.addNew&&!b.extend?(Ee=oe.sel.contains(x),Ee>-1?fe=Ze[Ee]:fe=new wa(x,x)):(fe=oe.sel.primary(),Ee=oe.sel.primIndex),b.unit=="rectangle")b.addNew||(fe=new wa(x,x)),x=Ps(a,y,!0,!0),Ee=-1;else{var vt=Ql(a,x,b.unit);b.extend?fe=Pn(fe,vt.anchor,vt.head,b.extend):fe=vt}b.addNew?Ee==-1?(Ee=Ze.length,cn(oe,Ji(a,Ze.concat([fe]),Ee),{scroll:!1,origin:"*mouse"})):Ze.length>1&&Ze[Ee].empty()&&b.unit=="char"&&!b.extend?(cn(oe,Ji(a,Ze.slice(0,Ee).concat(Ze.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),Fe=oe.sel):Mn(oe,Ee,fe,Ve):(Ee=0,cn(oe,new ba([fe],0),Ve),Fe=oe.sel);var St=x;function ln(la){if(rn(St,la)!=0)if(St=la,b.unit=="rectangle"){for(var Va=[],Di=a.options.tabSize,ui=De(Vt(oe,x.line).text,x.ch,Di),Co=De(Vt(oe,la.line).text,la.ch,Di),ml=Math.min(ui,Co),Jl=Math.max(ui,Co),Al=Math.min(x.line,la.line),Ds=Math.min(a.lastLine(),Math.max(x.line,la.line));Al<=Ds;Al++){var Es=Vt(oe,Al).text,Ml=Kt(Es,ml,Di);ml==Jl?Va.push(new wa(An(Al,Ml),An(Al,Ml))):Es.length>Ml&&Va.push(new wa(An(Al,Ml),An(Al,Kt(Es,Jl,Di))))}Va.length||Va.push(new wa(x,x)),cn(oe,Ji(a,Fe.ranges.slice(0,Ee).concat(Va),Ee),{origin:"*mouse",scroll:!1}),a.scrollIntoView(la)}else{var bs=fe,as=Ql(a,la,b.unit),Tl=bs.anchor,Ll;rn(as.anchor,Tl)>0?(Ll=as.head,Tl=xt(bs.from(),as.anchor)):(Ll=as.anchor,Tl=Ki(bs.to(),as.head));var Pl=Fe.ranges.slice(0);Pl[Ee]=Ns(a,new wa(Tt(oe,Tl),Ll)),cn(oe,Ji(a,Pl,Ee),Ve)}}var $t=z.wrapper.getBoundingClientRect(),Kn=0;function vr(la){var Va=++Kn,Di=Ps(a,la,!0,b.unit=="rectangle");if(Di)if(rn(Di,St)!=0){a.curOp.focus=Ne(),ln(Di);var ui=re(z,oe);(Di.line>=ui.to||Di.line$t.bottom?20:0;Co&&setTimeout(_r(a,function(){Kn==Va&&(z.scroller.scrollTop+=Co,vr(la))}),50)}}function Zr(la){a.state.selectingText=!1,Kn=1/0,la&&(Br(la),z.input.focus()),Qr(z.wrapper.ownerDocument,"mousemove",sa),Qr(z.wrapper.ownerDocument,"mouseup",Ia),oe.history.lastSelOrigin=null}var sa=_r(a,function(la){la.buttons===0||!nr(la)?Zr(la):vr(la)}),Ia=_r(a,Zr);a.state.selectingText=Ia,Jn(z.wrapper.ownerDocument,"mousemove",sa),Jn(z.wrapper.ownerDocument,"mouseup",Ia)}function Ns(a,y){var x=y.anchor,b=y.head,z=Vt(a.doc,x.line);if(rn(x,b)==0&&x.sticky==b.sticky)return y;var oe=Vr(z);if(!oe)return y;var fe=Nn(oe,x.ch,x.sticky),Ee=oe[fe];if(Ee.from!=x.ch&&Ee.to!=x.ch)return y;var Fe=fe+(Ee.from==x.ch==(Ee.level!=1)?0:1);if(Fe==0||Fe==oe.length)return y;var Ze;if(b.line!=x.line)Ze=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var vt=Nn(oe,b.ch,b.sticky),St=vt-fe||(b.ch-x.ch)*(Ee.level==1?-1:1);vt==Fe-1||vt==Fe?Ze=St<0:Ze=St>0}var ln=oe[Fe+(Ze?-1:0)],$t=Ze==(ln.level==1),Kn=$t?ln.from:ln.to,vr=$t?"after":"before";return x.ch==Kn&&x.sticky==vr?y:new wa(new An(x.line,Kn,vr),b)}function cs(a,y,x,b){var z,oe;if(y.touches)z=y.touches[0].clientX,oe=y.touches[0].clientY;else try{z=y.clientX,oe=y.clientY}catch(ln){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&Br(y);var fe=a.display,Ee=fe.lineDiv.getBoundingClientRect();if(oe>Ee.bottom||!un(a,x))return Da(y);oe-=Ee.top-fe.viewOffset;for(var Fe=0;Fe=z){var vt=Nr(a.doc,oe),St=a.display.gutterSpecs[Fe];return ur(a,x,a,vt,St.className,y),Da(y)}}}function Us(a,y){return cs(a,y,"gutterClick",!0)}function Bu(a,y){wo(a.display,y)||Tu(a,y)||Sn(a,y,"contextmenu")||Ke||a.display.input.onContextMenu(y)}function Tu(a,y){return un(a,"gutterContextMenu")?cs(a,y,"gutterContextMenu",!1):!1}function dc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Rs(a)}var Lu={toString:function(){return"CodeMirror.Init"}},ac={},ic={};function Mc(a){var y=a.optionHandlers;function x(b,z,oe,fe){a.defaults[b]=z,oe&&(y[b]=fe?function(Ee,Fe,Ze){Ze!=Lu&&oe(Ee,Fe,Ze)}:oe)}a.defineOption=x,a.Init=Lu,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,vo(b)},!0),x("indentUnit",2,vo,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){Rr(b),Rs(b),Hl(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var oe=[],fe=b.doc.first;b.doc.iter(function(Fe){for(var Ze=0;;){var vt=Fe.text.indexOf(z,Ze);if(vt==-1)break;Ze=vt+z.length,oe.push(An(fe,vt))}fe++});for(var Ee=oe.length-1;Ee>=0;Ee--)ir(b.doc,z,oe[Ee],An(oe[Ee].line,oe[Ee].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,oe){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),oe!=Lu&&b.refresh()}),x("specialCharPlaceholder",Do,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!Ye),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){dc(b),Bi(b)},!0),x("keyMap","default",function(b,z,oe){var fe=Ss(z),Ee=oe!=Lu&&Ss(oe);Ee&&Ee.detach&&Ee.detach(b,fe),fe.attach&&fe.attach(b,Ee||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,bc,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=Oi(z,b.options.lineNumbers),Bi(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Nu(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return zn(b)},!0),x("scrollbarStyle","native",function(b){bn(b),zn(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=Oi(b.options.gutters,z),Bi(b)},!0),x("firstLineNumber",1,Bi,!0),x("lineNumberFormatter",function(b){return b},Bi,!0),x("showCursorWhenSelecting",!1,$s,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(eu(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Tc),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,$s,!0),x("singleCursorHeightPerLine",!0,$s,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,Rr,!0),x("addModeClass",!1,Rr,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,Rr,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function Tc(a,y,x){var b=x&&x!=Lu;if(!y!=!b){var z=a.display.dragFunctions,oe=y?Jn:Qr;oe(a.display.scroller,"dragstart",z.start),oe(a.display.scroller,"dragenter",z.enter),oe(a.display.scroller,"dragover",z.over),oe(a.display.scroller,"dragleave",z.leave),oe(a.display.scroller,"drop",z.drop)}}function bc(a){a.options.lineWrapping?(at(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Et(a.display.wrapper,"CodeMirror-wrap"),pr(a)),iu(a),Hl(a),Rs(a),setTimeout(function(){return zn(a)},100)}function wl(a,y){var x=this;if(!(this instanceof wl))return new wl(a,y);this.options=y=y?Ft(y):{},Ft(ac,y,!1);var b=y.value;typeof b=="string"?b=new Fa(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new wl.inputStyles[y.inputStyle](this),oe=this.display=new lo(a,b,z,y);oe.wrapper.CodeMirror=this,dc(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ge,keySeq:null,specialChars:null},y.autofocus&&!Be&&oe.input.focus(),We&&Ae<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Cc(this),qi(),qn(this),this.curOp.forceUpdate=!0,Ca(this,b),y.autofocus&&!Be||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Hs(x)},20):eu(this);for(var fe in ic)ic.hasOwnProperty(fe)&&ic[fe](this,y[fe],Lu);fn(this),y.finishInit&&y.finishInit(this);for(var Ee=0;Ee20*20}Jn(y.scroller,"touchstart",function(Fe){if(!Sn(a,Fe)&&!oe(Fe)&&!Us(a,Fe)){y.input.ensurePolled(),clearTimeout(x);var Ze=+new Date;y.activeTouch={start:Ze,moved:!1,prev:Ze-b.end<=300?b:null},Fe.touches.length==1&&(y.activeTouch.left=Fe.touches[0].pageX,y.activeTouch.top=Fe.touches[0].pageY)}}),Jn(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Jn(y.scroller,"touchend",function(Fe){var Ze=y.activeTouch;if(Ze&&!wo(y,Fe)&&Ze.left!=null&&!Ze.moved&&new Date-Ze.start<300){var vt=a.coordsChar(y.activeTouch,"page"),St;!Ze.prev||fe(Ze,Ze.prev)?St=new wa(vt,vt):!Ze.prev.prev||fe(Ze,Ze.prev.prev)?St=a.findWordAt(vt):St=new wa(An(vt.line,0),Tt(a.doc,An(vt.line+1,0))),a.setSelection(St.anchor,St.head),a.focus(),Br(Fe)}z()}),Jn(y.scroller,"touchcancel",z),Jn(y.scroller,"scroll",function(){y.scroller.clientHeight&&(Bn(a,y.scroller.scrollTop),Tn(a,y.scroller.scrollLeft,!0),ur(a,"scroll",a))}),Jn(y.scroller,"mousewheel",function(Fe){return ho(a,Fe)}),Jn(y.scroller,"DOMMouseScroll",function(Fe){return ho(a,Fe)}),Jn(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(Fe){Sn(a,Fe)||Sr(Fe)},over:function(Fe){Sn(a,Fe)||(ns(a,Fe),Sr(Fe))},start:function(Fe){return gs(a,Fe)},drop:_r(a,cl),leave:function(Fe){Sn(a,Fe)||Ks(a)}};var Ee=y.input.getField();Jn(Ee,"keyup",function(Fe){return rc.call(a,Fe)}),Jn(Ee,"keydown",_r(a,nc)),Jn(Ee,"keypress",_r(a,Mu)),Jn(Ee,"focus",function(Fe){return Hs(a,Fe)}),Jn(Ee,"blur",function(Fe){return eu(a,Fe)})}var fc=[];wl.defineInitHook=function(a){return fc.push(a)};function Ru(a,y,x,b){var z=a.doc,oe;x==null&&(x="add"),x=="smart"&&(z.mode.indent?oe=Tr(a,y).state:x="prev");var fe=a.options.tabSize,Ee=Vt(z,y),Fe=De(Ee.text,null,fe);Ee.stateAfter&&(Ee.stateAfter=null);var Ze=Ee.text.match(/^\s*/)[0],vt;if(!b&&!/\S/.test(Ee.text))vt=0,x="not";else if(x=="smart"&&(vt=z.mode.indent(oe,Ee.text.slice(Ze.length),Ee.text),vt==yt||vt>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?vt=De(Vt(z,y-1).text,null,fe):vt=0:x=="add"?vt=Fe+a.options.indentUnit:x=="subtract"?vt=Fe-a.options.indentUnit:typeof x=="number"&&(vt=Fe+x),vt=Math.max(0,vt);var St="",ln=0;if(a.options.indentWithTabs)for(var $t=Math.floor(vt/fe);$t;--$t)ln+=fe,St+=" ";if(lnfe,Fe=Ja(y),Ze=null;if(Ee&&b.ranges.length>1)if(tu&&tu.text.join(` -`)==y){if(b.ranges.length%tu.text.length==0){Ze=[];for(var vt=0;vt=0;ln--){var $t=b.ranges[ln],Kn=$t.from(),vr=$t.to();$t.empty()&&(x&&x>0?Kn=An(Kn.line,Kn.ch-x):a.state.overwrite&&!Ee?vr=An(vr.line,Math.min(Vt(oe,vr.line).text.length,vr.ch+dt(Fe).length)):Ee&&tu&&tu.lineWise&&tu.text.join(` + left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(oe),oe.scrollIntoView(z),a.display.lineSpace.removeChild(oe)}}}function Me(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?An(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?An(y.line,y.ch+1,"before"):y);for(var oe=0;oe<5;oe++){var fe=!1,Ee=ts(a,y),Fe=!x||x==y?Ee:ts(a,x);z={left:Math.min(Ee.left,Fe.left),top:Math.min(Ee.top,Fe.top)-b,right:Math.max(Ee.left,Fe.left),bottom:Math.max(Ee.bottom,Fe.bottom)+b};var Re=at(a,z),vt=a.doc.scrollTop,St=a.doc.scrollLeft;if(Re.scrollTop!=null&&(Bn(a,Re.scrollTop),Math.abs(a.doc.scrollTop-vt)>1&&(fe=!0)),Re.scrollLeft!=null&&(Tn(a,Re.scrollLeft),Math.abs(a.doc.scrollLeft-St)>1&&(fe=!0)),!fe)break}return z}function $e(a,y){var x=at(a,y);x.scrollTop!=null&&Bn(a,x.scrollTop),x.scrollLeft!=null&&Tn(a,x.scrollLeft)}function at(a,y){var x=a.display,b=gr(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,oe=Ti(a),fe={};y.bottom-y.top>oe&&(y.bottom=y.top+oe);var Ee=a.doc.height+Bl(x),Fe=y.topEe-b;if(y.topz+oe){var vt=Math.min(y.top,(Re?Ee:y.bottom)-oe);vt!=z&&(fe.scrollTop=vt)}var St=a.options.fixedGutter?0:x.gutters.offsetWidth,ln=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-St,$t=$l(a)-x.gutters.offsetWidth,Kn=y.right-y.left>$t;return Kn&&(y.right=y.left+$t),y.left<10?fe.scrollLeft=0:y.left$t+ln-3&&(fe.scrollLeft=y.right+(Kn?0:10)-$t),fe}function xt(a,y){y!=null&&(vn(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Rt(a){vn(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function jt(a,y,x){(y!=null||x!=null)&&vn(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function pn(a,y){vn(a),a.curOp.scrollToPos=y}function vn(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=ku(a,y.from),b=ku(a,y.to);Gt(a,x,b,y.margin)}}function Gt(a,y,x,b){var z=at(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});jt(a,z.scrollLeft,z.scrollTop)}function Bn(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||di(a,{top:y}),Ot(a,y,!0),E&&di(a),ka(a,100))}function Ot(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Tn(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Li(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function In(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Bl(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+yl(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var jn=function(a,y,x){this.cm=x;var b=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Jn(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Jn(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,We&&Ae<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};jn.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var oe=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},jn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},jn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},jn.prototype.zeroWidthHack=function(){var a=be&&!qe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ge,this.disableVert=new ge},jn.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),oe=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);oe!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},jn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Vn=function(){};Vn.prototype.update=function(){return{bottom:0,right:0}},Vn.prototype.setScrollLeft=function(){},Vn.prototype.setScrollTop=function(){},Vn.prototype.clear=function(){};function zn(a,y){y||(y=In(a));var x=a.display.barWidth,b=a.display.barHeight;Dr(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&xl(a),Dr(a,In(a)),x=a.display.barWidth,b=a.display.barHeight}function Dr(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var dr={native:jn,null:Vn};function bn(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&bt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new dr[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Jn(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Tn(a,y):Bn(a,y)},a),a.display.scrollbars.addClass&&rt(a.display.wrapper,a.display.scrollbars.addClass)}var br=0;function qn(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++br},Zl(a.curOp)}function mr(a){var y=a.curOp;y&&Fl(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new oa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Lr(a){a.updatedDisplay=a.mustUpdate&&fa(a.cm,a.update)}function aa(a){var y=a.cm,x=y.display;a.updatedDisplay&&xl(y),a.barMeasure=In(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ps(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+yl(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-$l(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Wa(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Tr(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(oe){if(b.line>=a.display.viewFrom){var fe=oe.styles,Ee=oe.text.length>a.options.maxHighlightLength?Rn(y.mode,b.state):null,Fe=tr(a,oe,b,!0);Ee&&(b.state=Ee),oe.styles=Fe.styles;var Re=oe.styleClasses,vt=Fe.classes;vt?oe.styleClasses=vt:Re&&(oe.styleClasses=null);for(var St=!fe||fe.length!=oe.styles.length||Re!=vt&&(!Re||!vt||Re.bgClass!=vt.bgClass||Re.textClass!=vt.textClass),ln=0;!St&&lnx)return ka(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&Ur(a,function(){for(var oe=0;oe=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Su(a)==0)return!1;fn(a)&&(Zs(a),y.dims=Fu(a));var z=b.first+b.size,oe=Math.max(y.visible.from-a.options.viewportMargin,b.first),fe=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFromfe&&x.viewTo-fe<20&&(fe=Math.min(z,x.viewTo)),ra&&(oe=Xt(a.doc,oe),fe=an(a.doc,fe));var Ee=oe!=x.viewFrom||fe!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Gu(a,oe,fe),x.viewOffset=Wn(Vt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var Fe=Su(a);if(!Ee&&Fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Re=Yr(a);return Fe>4&&(x.lineDiv.style.display="none"),mi(a,x.updateLineNumbers,y.dims),Fe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,ha(Re),At(x.cursorDiv),At(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,Ee&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,ka(a,400)),x.updateLineNumbers=null,!0}function ni(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==$l(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Bl(a.display)-Ti(a),x.top)}),y.visible=re(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=re(a.display,a.doc,x));if(!fa(a,y))break;xl(a);var z=In(a);$s(a),zn(a,z),$a(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function di(a,y){var x=new oa(a,y);if(fa(a,x)){xl(a),ni(a,x);var b=In(a);$s(a),zn(a,b),$a(a,b),x.finish()}}function mi(a,y,x){var b=a.display,z=a.options.lineNumbers,oe=b.lineDiv,fe=oe.firstChild;function Ee(Kn){var vr=Kn.nextSibling;return Ue&&be&&a.display.currentWheelTarget==Kn?Kn.style.display="none":Kn.parentNode.removeChild(Kn),vr}for(var Fe=b.view,Re=b.viewFrom,vt=0;vt-1&&($t=!1),Os(a,St,Re,x)),$t&&(At(St.lineNumber),St.lineNumber.appendChild(document.createTextNode(za(a.options,Re)))),fe=St.node.nextSibling}Re+=St.size}for(;fe;)fe=Ee(fe)}function vi(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function $a(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+yl(a)+"px"}function Li(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Nu(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,oe=b+"px",fe=0;fefe.clientWidth,Fe=fe.scrollHeight>fe.clientHeight;if(b&&Ee||z&&Fe){if(z&&be&&Ue){e:for(var Re=y.target,vt=oe.view;Re!=fe;Re=Re.parentNode)for(var St=0;St=0&&rn(a,b.to())<=0)return x}return-1};var wa=function(a,y){this.anchor=a,this.head=y};wa.prototype.from=function(){return wt(this.anchor,this.head)},wa.prototype.to=function(){return Ki(this.anchor,this.head)},wa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(ln,$t){return rn(ln.from(),$t.from())}),x=lt(y,z);for(var oe=1;oe0:Fe>=0){var Re=wt(Ee.from(),fe.from()),vt=Ki(Ee.to(),fe.to()),St=Ee.empty()?fe.from()==fe.head:Ee.from()==Ee.head;oe<=x&&--x,y.splice(--oe,2,new wa(St?vt:Re,St?Re:vt))}}return new ba(y,x)}function yo(a,y){return new ba([new wa(a,y||a)],0)}function jo(a){return a.text?An(a.from.line+a.text.length-1,ct(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function so(a,y){if(rn(a,y.from)<0)return a;if(rn(a,y.to)<=0)return jo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=jo(y).ch-y.to.ch),An(x,b)}function tl(a,y){for(var x=[],b=0;b1&&a.remove(Ee.line+1,Kn-1),a.insert(Ee.line+1,sa)}zo(a,"change",a,y)}function Ya(a,y,x){function b(z,oe,fe){if(z.linked)for(var Ee=0;Ee1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ct(a.done)}function jl(a,y,x,b){var z=a.history;z.undone.length=0;var oe=+new Date,fe,Ee;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(fe=gl(z,z.lastOp==b)))Ee=ct(fe.changes),rn(y.from,y.to)==0&&rn(y.from,Ee.to)==0?Ee.to=jo(y):fe.changes.push(ko(a,y));else{var Fe=ct(z.done);for((!Fe||!Fe.ranges)&&ue(a.sel,z.done),fe={changes:[ko(a,y)],generation:z.generation},z.done.push(fe);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=oe,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,Ee||ur(a,"historyAdded")}function Wl(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function js(a,y,x,b){var z=a.history,oe=b&&b.origin;x==z.lastSelOp||oe&&z.lastSelOrigin==oe&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==oe||Wl(a,oe,ct(z.done),y))?z.done[z.done.length-1]=y:ue(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=oe,z.lastSelOp=x,b&&b.clearRedo!==!1&&nl(z.undone)}function ue(a,y){var x=ct(y);x&&x.ranges&&x.equals(a)||y.push(a)}function ke(a,y,x,b){var z=y["spans_"+a.id],oe=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(fe){fe.markedSpans&&((z||(z=y["spans_"+a.id]={}))[oe]=fe.markedSpans),++oe})}function Le(a){if(!a)return null;for(var y,x=0;x-1&&(ct(Ee)[St]=Re[St],delete Re[St])}}return b}function Pn(a,y,x,b){if(b){var z=a.anchor;if(x){var oe=rn(y,z)<0;oe!=rn(x,z)<0?(z=y,y=x):oe!=rn(y,x)<0&&(y=x)}return new wa(z,y)}else return new wa(x||y,y)}function hn(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),cn(a,new ba([Pn(a.sel.primary(),y,x,z)],0),b)}function zt(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe=y.ch:Ee.to>y.ch))){if(z&&(ur(Fe,"beforeCursorEnter"),Fe.explicitlyCleared))if(oe.markedSpans){--fe;continue}else break;if(!Fe.atomic)continue;if(x){var St=Fe.find(b<0?1:-1),ln=void 0;if((b<0?vt:Re)&&(St=xr(a,St,-b,St&&St.line==y.line?oe:null)),St&&St.line==y.line&&(ln=rn(St,x))&&(b<0?ln<0:ln>0))return xn(a,St,y,b,z)}var $t=Fe.find(b<0?-1:1);return(b<0?Re:vt)&&($t=xr(a,$t,b,$t.line==y.line?oe:null)),$t?xn(a,$t,y,b,z):null}}return y}function or(a,y,x,b,z){var oe=b||1,fe=xn(a,y,x,oe,z)||!z&&xn(a,y,x,oe,!0)||xn(a,y,x,-oe,z)||!z&&xn(a,y,x,-oe,!0);return fe||(a.cantEdit=!0,An(a.first,0))}function xr(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Tt(a,An(y.line-1)):null:x>0&&y.ch==(b||Vt(a,y.line)).text.length?y.line=0;--z)Ui(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else Ui(a,y)}}function Ui(a,y){if(!(y.text.length==1&&y.text[0]==""&&rn(y.from,y.to)==0)){var x=tl(a,y);jl(a,y,x,a.cm?a.cm.curOp.id:NaN),_i(a,y,x,Ai(a,y));var b=[];Ya(a,function(z,oe){!oe&<(b,z.history)==-1&&(No(z.history,y),b.push(z.history)),_i(z,y,null,Ai(z,y))})}}function Io(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,oe,fe=a.sel,Ee=y=="undo"?z.done:z.undone,Fe=y=="undo"?z.undone:z.done,Re=0;Re=0;--$t){var Kn=ln($t);if(Kn)return Kn.v}}}}function Or(a,y){if(y!=0&&(a.first+=y,a.sel=new ba(Nt(a.sel.ranges,function(z){return new wa(An(z.anchor.line+y,z.anchor.ch),An(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Hl(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.lineoe&&(y={from:y.from,to:An(oe,Vt(a,oe).text.length),text:[y.text[0]],origin:y.origin}),y.removed=On(a,y.from,y.to),x||(x=tl(a,y)),a.cm?Gi(a.cm,y,b):Kl(a,y,b),Qn(a,x,Ze),a.cantEdit&&or(a,An(a.firstLine(),0))&&(a.cantEdit=!1)}}function Gi(a,y,x){var b=a.doc,z=a.display,oe=y.from,fe=y.to,Ee=!1,Fe=oe.line;a.options.lineWrapping||(Fe=jr(nn(Vt(b,oe.line))),b.iter(Fe,fe.line+1,function($t){if($t==z.maxLine)return Ee=!0,!0})),b.sel.contains(y.from,y.to)>-1&&sr(a),Kl(b,y,x,Ou(a)),a.options.lineWrapping||(b.iter(Fe,oe.line+y.text.length,function($t){var Kn=fr($t);Kn>z.maxLineLength&&(z.maxLine=$t,z.maxLineLength=Kn,z.maxLineChanged=!0,Ee=!1)}),Ee&&(a.curOp.updateMaxLine=!0)),bi(b,oe.line),ka(a,400);var Re=y.text.length-(fe.line-oe.line)-1;y.full?Hl(a):oe.line==fe.line&&y.text.length==1&&!fi(a.doc,y)?ks(a,oe.line,"text"):Hl(a,oe.line,fe.line+1,Re);var vt=un(a,"changes"),St=un(a,"change");if(St||vt){var ln={from:oe,to:fe,text:y.text,removed:y.removed,origin:y.origin};St&&zo(a,"change",a,ln),vt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ln)}a.display.selForContextMenu=null}function ir(a,y,x,b,z){var oe;b||(b=x),rn(b,x)<0&&(oe=[b,x],x=oe[0],b=oe[1]),typeof y=="string"&&(y=a.splitLines(y)),ro(a,{from:x,to:b,text:y,origin:z})}function Eo(a,y,x,b){x1||!(this.children[0]instanceof pi))){var Ee=[];this.collapse(Ee),this.children=[new pi(Ee)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var fe=z.lines.length%25+25,Ee=fe;Ee10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=Re,a.display.maxLineLength=vt,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Hl(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ln(a.doc)),a&&zo(a,"markerCleared",a,this,b,z),y&&mr(a),this.parent&&this.parent.clear()}},ol.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z0||fe==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=ht("span",[oe.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Jt(a,y.line,y,x,oe)||y.line!=x.line&&Jt(a,x.line,y,x,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");wi()}oe.addToHistory&&jl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var Ee=y.line,Fe=a.cm,Re;if(a.iter(Ee,x.line+1,function(St){Fe&&oe.collapsed&&!Fe.options.lineWrapping&&nn(St)==Fe.display.maxLine&&(Re=!0),oe.collapsed&&Ee!=y.line&&Hr(St,0),ti(St,new Ta(oe,Ee==y.line?y.ch:null,Ee==x.line?x.ch:null)),++Ee}),oe.collapsed&&a.iter(y.line,x.line+1,function(St){Qt(a,St)&&Hr(St,0)}),oe.clearOnEnter&&Jn(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(eo(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++bo,oe.atomic=!0),Fe){if(Re&&(Fe.curOp.updateMaxLine=!0),oe.collapsed)Hl(Fe,y.line,x.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var vt=y.line;vt<=x.line;vt++)ks(Fe,vt,"text");oe.atomic&&Ln(Fe.doc),zo(Fe,"markerAdded",Fe,oe)}return oe}var Lo=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;Fe--)ro(this,b[Fe]);Ee?Wt(this,Ee):this.cm&&Rt(this.cm)}),undo:Gr(function(){Io(this,"undo")}),redo:Gr(function(){Io(this,"redo")}),undoSelection:Gr(function(){Io(this,"undo",!0)}),redoSelection:Gr(function(){Io(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Tt(this,a),y=Tt(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(oe){var fe=oe.markedSpans;if(fe)for(var Ee=0;Ee=Fe.to||Fe.from==null&&z!=a.line||Fe.from!=null&&z==y.line&&Fe.from>=y.ch)&&(!x||x(Fe.marker))&&b.push(Fe.marker.parent||Fe.marker)}++z}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=oe,++x}),Tt(this,An(x,y))},indexFromPos:function(a){a=Tt(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var vt=a.dataTransfer.getData("Text");if(vt){var St;if(y.state.draggingText&&!y.state.draggingText.copy&&(St=y.listSelections()),Qn(y.doc,yo(x,x)),St)for(var ln=0;ln=0;Ee--)ir(a.doc,"",b[Ee].from,b[Ee].to,"+delete");Rt(a)})}function zs(a,y,x){var b=on(a.text,y+x,x);return b<0||b>a.text.length?null:b}function Xl(a,y,x){var b=zs(a,y.ch,x);return b==null?null:new An(y.line,b,x<0?"after":"before")}function Cn(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var oe=Vr(x,y.doc.direction);if(oe){var fe=z<0?ct(oe):oe[0],Ee=z<0==(fe.level==1),Fe=Ee?"after":"before",Re;if(fe.level>0||y.doc.direction=="rtl"){var vt=Ts(y,x);Re=z<0?x.text.length-1:0;var St=hs(y,vt,Re).top;Re=kn(function(ln){return hs(y,vt,ln).top==St},z<0==(fe.level==1)?fe.from:fe.to-1,Re),Fe=="before"&&(Re=zs(x,Re,1))}else Re=z<0?fe.to:fe.from;return new An(b,Re,Fe)}}return new An(b,z<0?x.text.length:0,z<0?"before":"after")}function Fr(a,y,x,b){var z=Vr(y,a.doc.direction);if(!z)return Xl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var oe=Nn(z,x.ch,x.sticky),fe=z[oe];if(a.doc.direction=="ltr"&&fe.level%2==0&&(b>0?fe.to>x.ch:fe.from=fe.from&&ln>=vt.begin)){var $t=St?"before":"after";return new An(x.line,ln,$t)}}var Kn=function(sa,Ia,la){for(var Va=function(ml,Jl){return Jl?new An(x.line,Ee(ml,1),"before"):new An(x.line,ml,"after")};sa>=0&&sa0==(Di.level!=1),Co=ui?la.begin:Ee(la.end,-1);if(Di.from<=Co&&Co0?vt.end:Ee(vt.begin,-1);return Zr!=null&&!(b>0&&Zr==y.text.length)&&(vr=Kn(b>0?0:z.length-1,b,Re(Zr)),vr)?vr:null}var ii={selectAll:lr,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ze)},killLine:function(a){return Is(a,function(y){if(y.empty()){var x=Vt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)z=new An(z.line,z.ch+1),a.replaceRange(oe.charAt(z.ch-1)+oe.charAt(z.ch-2),An(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var fe=Vt(a.doc,z.line-1).text;fe&&(z=new An(z.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+fe.charAt(fe.length-1),An(z.line-1,fe.length-1),z,"+transpose"))}}x.push(new wa(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return Ur(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;ba&&rn(y,this.pos)==0&&x==this.button};var hr,Sa;function Vi(a,y){var x=+new Date;return Sa&&Sa.compare(x,a,y)?(hr=Sa=null,"triple"):hr&&hr.compare(x,a,y)?(Sa=new Qu(x,a,y),hr=null,"double"):(hr=new Qu(x,a,y),Sa=null,"single")}function Zi(a){var y=this,x=y.display;if(!(Sn(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,wo(x,a)){Ue||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Us(y,a)){var b=Ps(y,a),z=nr(a),oe=b?Vi(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&io(y,z,b,oe,a))&&(z==1?b?Zo(y,b,oe,a):En(a)==x.scroller&&Br(a):z==2?(b&&hn(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(Ke?y.display.input.onContextMenu(a):Au(y)))}}}function io(a,y,x,b,z){var oe="Click";return b=="double"?oe="Double"+oe:b=="triple"&&(oe="Triple"+oe),oe=(y==1?"Left":y==2?"Middle":"Right")+oe,Wo(a,Nl(oe,z),z,function(fe){if(typeof fe=="string"&&(fe=ii[fe]),!fe)return!1;var Ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Ee=fe(a,x)!=yt}finally{a.state.suppressEdits=!1}return Ee})}function _o(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var oe=Ne?x.shiftKey&&x.metaKey:x.altKey;z.unit=oe?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=be?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(be?x.altKey:x.ctrlKey)),z}function Zo(a,y,x,b){We?setTimeout(et(Yu,a),0):a.curOp.focus=Te();var z=_o(a,x,b),oe=a.doc.sel,fe;a.options.dragDrop&&$r&&!a.isReadOnly()&&x=="single"&&(fe=oe.contains(y))>-1&&(rn((fe=oe.ranges[fe]).from(),y)<0||y.xRel>0)&&(rn(fe.to(),y)>0||y.xRel<0)?Vo(a,b,y,z):ys(a,b,y,z)}function Vo(a,y,x,b){var z=a.display,oe=!1,fe=_r(a,function(Re){Ue&&(z.scroller.draggable=!1),a.state.draggingText=!1,Qr(z.wrapper.ownerDocument,"mouseup",fe),Qr(z.wrapper.ownerDocument,"mousemove",Ee),Qr(z.scroller,"dragstart",Fe),Qr(z.scroller,"drop",fe),oe||(Br(Re),b.addNew||hn(a.doc,x,null,null,b.extend),Ue&&!Qe||We&&Ae==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),Ee=function(Re){oe=oe||Math.abs(y.clientX-Re.clientX)+Math.abs(y.clientY-Re.clientY)>=10},Fe=function(){return oe=!0};Ue&&(z.scroller.draggable=!0),a.state.draggingText=fe,fe.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Jn(z.wrapper.ownerDocument,"mouseup",fe),Jn(z.wrapper.ownerDocument,"mousemove",Ee),Jn(z.scroller,"dragstart",Fe),Jn(z.scroller,"drop",fe),Au(a),setTimeout(function(){return z.input.focus()},20)}function Ql(a,y,x){if(x=="char")return new wa(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new wa(An(y.line,0),Tt(a.doc,An(y.line+1,0)));var b=x(a,y);return new wa(b.from,b.to)}function ys(a,y,x,b){var z=a.display,oe=a.doc;Br(y);var fe,Ee,Fe=oe.sel,Re=Fe.ranges;if(b.addNew&&!b.extend?(Ee=oe.sel.contains(x),Ee>-1?fe=Re[Ee]:fe=new wa(x,x)):(fe=oe.sel.primary(),Ee=oe.sel.primIndex),b.unit=="rectangle")b.addNew||(fe=new wa(x,x)),x=Ps(a,y,!0,!0),Ee=-1;else{var vt=Ql(a,x,b.unit);b.extend?fe=Pn(fe,vt.anchor,vt.head,b.extend):fe=vt}b.addNew?Ee==-1?(Ee=Re.length,cn(oe,Ji(a,Re.concat([fe]),Ee),{scroll:!1,origin:"*mouse"})):Re.length>1&&Re[Ee].empty()&&b.unit=="char"&&!b.extend?(cn(oe,Ji(a,Re.slice(0,Ee).concat(Re.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),Fe=oe.sel):Mn(oe,Ee,fe,Ve):(Ee=0,cn(oe,new ba([fe],0),Ve),Fe=oe.sel);var St=x;function ln(la){if(rn(St,la)!=0)if(St=la,b.unit=="rectangle"){for(var Va=[],Di=a.options.tabSize,ui=De(Vt(oe,x.line).text,x.ch,Di),Co=De(Vt(oe,la.line).text,la.ch,Di),ml=Math.min(ui,Co),Jl=Math.max(ui,Co),Al=Math.min(x.line,la.line),Ds=Math.min(a.lastLine(),Math.max(x.line,la.line));Al<=Ds;Al++){var Es=Vt(oe,Al).text,Ml=Kt(Es,ml,Di);ml==Jl?Va.push(new wa(An(Al,Ml),An(Al,Ml))):Es.length>Ml&&Va.push(new wa(An(Al,Ml),An(Al,Kt(Es,Jl,Di))))}Va.length||Va.push(new wa(x,x)),cn(oe,Ji(a,Fe.ranges.slice(0,Ee).concat(Va),Ee),{origin:"*mouse",scroll:!1}),a.scrollIntoView(la)}else{var bs=fe,as=Ql(a,la,b.unit),Tl=bs.anchor,Ll;rn(as.anchor,Tl)>0?(Ll=as.head,Tl=wt(bs.from(),as.anchor)):(Ll=as.anchor,Tl=Ki(bs.to(),as.head));var Pl=Fe.ranges.slice(0);Pl[Ee]=Ns(a,new wa(Tt(oe,Tl),Ll)),cn(oe,Ji(a,Pl,Ee),Ve)}}var $t=z.wrapper.getBoundingClientRect(),Kn=0;function vr(la){var Va=++Kn,Di=Ps(a,la,!0,b.unit=="rectangle");if(Di)if(rn(Di,St)!=0){a.curOp.focus=Te(),ln(Di);var ui=re(z,oe);(Di.line>=ui.to||Di.line$t.bottom?20:0;Co&&setTimeout(_r(a,function(){Kn==Va&&(z.scroller.scrollTop+=Co,vr(la))}),50)}}function Zr(la){a.state.selectingText=!1,Kn=1/0,la&&(Br(la),z.input.focus()),Qr(z.wrapper.ownerDocument,"mousemove",sa),Qr(z.wrapper.ownerDocument,"mouseup",Ia),oe.history.lastSelOrigin=null}var sa=_r(a,function(la){la.buttons===0||!nr(la)?Zr(la):vr(la)}),Ia=_r(a,Zr);a.state.selectingText=Ia,Jn(z.wrapper.ownerDocument,"mousemove",sa),Jn(z.wrapper.ownerDocument,"mouseup",Ia)}function Ns(a,y){var x=y.anchor,b=y.head,z=Vt(a.doc,x.line);if(rn(x,b)==0&&x.sticky==b.sticky)return y;var oe=Vr(z);if(!oe)return y;var fe=Nn(oe,x.ch,x.sticky),Ee=oe[fe];if(Ee.from!=x.ch&&Ee.to!=x.ch)return y;var Fe=fe+(Ee.from==x.ch==(Ee.level!=1)?0:1);if(Fe==0||Fe==oe.length)return y;var Re;if(b.line!=x.line)Re=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var vt=Nn(oe,b.ch,b.sticky),St=vt-fe||(b.ch-x.ch)*(Ee.level==1?-1:1);vt==Fe-1||vt==Fe?Re=St<0:Re=St>0}var ln=oe[Fe+(Re?-1:0)],$t=Re==(ln.level==1),Kn=$t?ln.from:ln.to,vr=$t?"after":"before";return x.ch==Kn&&x.sticky==vr?y:new wa(new An(x.line,Kn,vr),b)}function cs(a,y,x,b){var z,oe;if(y.touches)z=y.touches[0].clientX,oe=y.touches[0].clientY;else try{z=y.clientX,oe=y.clientY}catch(ln){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&Br(y);var fe=a.display,Ee=fe.lineDiv.getBoundingClientRect();if(oe>Ee.bottom||!un(a,x))return Da(y);oe-=Ee.top-fe.viewOffset;for(var Fe=0;Fe=z){var vt=Nr(a.doc,oe),St=a.display.gutterSpecs[Fe];return ur(a,x,a,vt,St.className,y),Da(y)}}}function Us(a,y){return cs(a,y,"gutterClick",!0)}function Bu(a,y){wo(a.display,y)||Tu(a,y)||Sn(a,y,"contextmenu")||Ke||a.display.input.onContextMenu(y)}function Tu(a,y){return un(a,"gutterContextMenu")?cs(a,y,"gutterContextMenu",!1):!1}function dc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Rs(a)}var Lu={toString:function(){return"CodeMirror.Init"}},ac={},ic={};function Mc(a){var y=a.optionHandlers;function x(b,z,oe,fe){a.defaults[b]=z,oe&&(y[b]=fe?function(Ee,Fe,Re){Re!=Lu&&oe(Ee,Fe,Re)}:oe)}a.defineOption=x,a.Init=Lu,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,vo(b)},!0),x("indentUnit",2,vo,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){Rr(b),Rs(b),Hl(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var oe=[],fe=b.doc.first;b.doc.iter(function(Fe){for(var Re=0;;){var vt=Fe.text.indexOf(z,Re);if(vt==-1)break;Re=vt+z.length,oe.push(An(fe,vt))}fe++});for(var Ee=oe.length-1;Ee>=0;Ee--)ir(b.doc,z,oe[Ee],An(oe[Ee].line,oe[Ee].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,oe){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),oe!=Lu&&b.refresh()}),x("specialCharPlaceholder",Do,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!Ye),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){dc(b),Bi(b)},!0),x("keyMap","default",function(b,z,oe){var fe=Ss(z),Ee=oe!=Lu&&Ss(oe);Ee&&Ee.detach&&Ee.detach(b,fe),fe.attach&&fe.attach(b,Ee||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,bc,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=Oi(z,b.options.lineNumbers),Bi(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Nu(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return zn(b)},!0),x("scrollbarStyle","native",function(b){bn(b),zn(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=Oi(b.options.gutters,z),Bi(b)},!0),x("firstLineNumber",1,Bi,!0),x("lineNumberFormatter",function(b){return b},Bi,!0),x("showCursorWhenSelecting",!1,$s,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(eu(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Tc),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,$s,!0),x("singleCursorHeightPerLine",!0,$s,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,Rr,!0),x("addModeClass",!1,Rr,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,Rr,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function Tc(a,y,x){var b=x&&x!=Lu;if(!y!=!b){var z=a.display.dragFunctions,oe=y?Jn:Qr;oe(a.display.scroller,"dragstart",z.start),oe(a.display.scroller,"dragenter",z.enter),oe(a.display.scroller,"dragover",z.over),oe(a.display.scroller,"dragleave",z.leave),oe(a.display.scroller,"drop",z.drop)}}function bc(a){a.options.lineWrapping?(rt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(bt(a.display.wrapper,"CodeMirror-wrap"),pr(a)),iu(a),Hl(a),Rs(a),setTimeout(function(){return zn(a)},100)}function wl(a,y){var x=this;if(!(this instanceof wl))return new wl(a,y);this.options=y=y?Ft(y):{},Ft(ac,y,!1);var b=y.value;typeof b=="string"?b=new Fa(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new wl.inputStyles[y.inputStyle](this),oe=this.display=new lo(a,b,z,y);oe.wrapper.CodeMirror=this,dc(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ge,keySeq:null,specialChars:null},y.autofocus&&!Be&&oe.input.focus(),We&&Ae<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Cc(this),qi(),qn(this),this.curOp.forceUpdate=!0,Ca(this,b),y.autofocus&&!Be||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Hs(x)},20):eu(this);for(var fe in ic)ic.hasOwnProperty(fe)&&ic[fe](this,y[fe],Lu);fn(this),y.finishInit&&y.finishInit(this);for(var Ee=0;Ee20*20}Jn(y.scroller,"touchstart",function(Fe){if(!Sn(a,Fe)&&!oe(Fe)&&!Us(a,Fe)){y.input.ensurePolled(),clearTimeout(x);var Re=+new Date;y.activeTouch={start:Re,moved:!1,prev:Re-b.end<=300?b:null},Fe.touches.length==1&&(y.activeTouch.left=Fe.touches[0].pageX,y.activeTouch.top=Fe.touches[0].pageY)}}),Jn(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Jn(y.scroller,"touchend",function(Fe){var Re=y.activeTouch;if(Re&&!wo(y,Fe)&&Re.left!=null&&!Re.moved&&new Date-Re.start<300){var vt=a.coordsChar(y.activeTouch,"page"),St;!Re.prev||fe(Re,Re.prev)?St=new wa(vt,vt):!Re.prev.prev||fe(Re,Re.prev.prev)?St=a.findWordAt(vt):St=new wa(An(vt.line,0),Tt(a.doc,An(vt.line+1,0))),a.setSelection(St.anchor,St.head),a.focus(),Br(Fe)}z()}),Jn(y.scroller,"touchcancel",z),Jn(y.scroller,"scroll",function(){y.scroller.clientHeight&&(Bn(a,y.scroller.scrollTop),Tn(a,y.scroller.scrollLeft,!0),ur(a,"scroll",a))}),Jn(y.scroller,"mousewheel",function(Fe){return ho(a,Fe)}),Jn(y.scroller,"DOMMouseScroll",function(Fe){return ho(a,Fe)}),Jn(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(Fe){Sn(a,Fe)||Sr(Fe)},over:function(Fe){Sn(a,Fe)||(ns(a,Fe),Sr(Fe))},start:function(Fe){return gs(a,Fe)},drop:_r(a,cl),leave:function(Fe){Sn(a,Fe)||Ks(a)}};var Ee=y.input.getField();Jn(Ee,"keyup",function(Fe){return rc.call(a,Fe)}),Jn(Ee,"keydown",_r(a,nc)),Jn(Ee,"keypress",_r(a,Mu)),Jn(Ee,"focus",function(Fe){return Hs(a,Fe)}),Jn(Ee,"blur",function(Fe){return eu(a,Fe)})}var fc=[];wl.defineInitHook=function(a){return fc.push(a)};function Ru(a,y,x,b){var z=a.doc,oe;x==null&&(x="add"),x=="smart"&&(z.mode.indent?oe=Tr(a,y).state:x="prev");var fe=a.options.tabSize,Ee=Vt(z,y),Fe=De(Ee.text,null,fe);Ee.stateAfter&&(Ee.stateAfter=null);var Re=Ee.text.match(/^\s*/)[0],vt;if(!b&&!/\S/.test(Ee.text))vt=0,x="not";else if(x=="smart"&&(vt=z.mode.indent(oe,Ee.text.slice(Re.length),Ee.text),vt==yt||vt>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?vt=De(Vt(z,y-1).text,null,fe):vt=0:x=="add"?vt=Fe+a.options.indentUnit:x=="subtract"?vt=Fe-a.options.indentUnit:typeof x=="number"&&(vt=Fe+x),vt=Math.max(0,vt);var St="",ln=0;if(a.options.indentWithTabs)for(var $t=Math.floor(vt/fe);$t;--$t)ln+=fe,St+=" ";if(lnfe,Fe=Ja(y),Re=null;if(Ee&&b.ranges.length>1)if(tu&&tu.text.join(` +`)==y){if(b.ranges.length%tu.text.length==0){Re=[];for(var vt=0;vt=0;ln--){var $t=b.ranges[ln],Kn=$t.from(),vr=$t.to();$t.empty()&&(x&&x>0?Kn=An(Kn.line,Kn.ch-x):a.state.overwrite&&!Ee?vr=An(vr.line,Math.min(Vt(oe,vr.line).text.length,vr.ch+ct(Fe).length)):Ee&&tu&&tu.lineWise&&tu.text.join(` `)==Fe.join(` -`)&&(Kn=vr=An(Kn.line,0)));var Zr={from:Kn,to:vr,text:Ze?Ze[ln%Ze.length]:Fe,origin:z||(Ee?"paste":a.state.cutIncoming>fe?"cut":"+input")};ro(a.doc,Zr),zo(a,"inputRead",a,Zr)}y&&!Ee&&wc(a,y),Rt(a),a.curOp.updateInput<2&&(a.curOp.updateInput=St),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function xc(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ur(y,function(){return pc(y,x,0,null,"paste")}),!0}function wc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var oe=a.getModeAt(z.head),fe=!1;if(oe.electricChars){for(var Ee=0;Ee-1){fe=Ru(a,z.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(Vt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(fe=Ru(a,z.head.line,"smart"));fe&&zo(a,"electricInput",a,z.head.line)}}}function Fc(a){for(var y=[],x=[],b=0;boe&&(Ru(this,Ee.head.line,b,!0),oe=Ee.head.line,fe==this.doc.sel.primIndex&&Rt(this));else{var Fe=Ee.from(),Ze=Ee.to(),vt=Math.max(oe,Fe.line);oe=Math.min(this.lastLine(),Ze.line-(Ze.ch?0:1))+1;for(var St=vt;St0&&Mn(this.doc,fe,new wa(Fe,ln[fe].to()),je)}}}),getTokenAt:function(b,z){return Kr(this,b,z)},getLineTokens:function(b,z){return Kr(this,An(b),z,!0)},getTokenTypeAt:function(b){b=Tt(this.doc,b);var z=Mr(this,Vt(this.doc,b.line)),oe=0,fe=(z.length-1)/2,Ee=b.ch,Fe;if(Ee==0)Fe=z[2];else for(;;){var Ze=oe+fe>>1;if((Ze?z[Ze*2-1]:0)>=Ee)fe=Ze;else if(z[Ze*2+1]Fe&&(b=Fe,fe=!0),Ee=Vt(this.doc,b)}else Ee=b;return lu(this,Ee,{top:0,left:0},z||"page",oe||fe).top+(fe?this.doc.height-Wn(Ee):0)},defaultTextHeight:function(){return gr(this.display)},defaultCharWidth:function(){return _s(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,oe,fe,Ee){var Fe=this.display;b=ts(this,Tt(this.doc,b));var Ze=b.bottom,vt=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),Fe.sizer.appendChild(z),fe=="over")Ze=b.top;else if(fe=="above"||fe=="near"){var St=Math.max(Fe.wrapper.clientHeight,this.doc.height),ln=Math.max(Fe.sizer.clientWidth,Fe.lineSpace.clientWidth);(fe=="above"||b.bottom+z.offsetHeight>St)&&b.top>z.offsetHeight?Ze=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=St&&(Ze=b.bottom),vt+z.offsetWidth>ln&&(vt=ln-z.offsetWidth)}z.style.top=Ze+"px",z.style.left=z.style.right="",Ee=="right"?(vt=Fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(Ee=="left"?vt=0:Ee=="middle"&&(vt=(Fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=vt+"px"),oe&&et(this,{left:vt,top:Ze,right:vt+z.offsetWidth,bottom:Ze+z.offsetHeight})},triggerOnKeyDown:Jr(nc),triggerOnKeyPress:Jr(Mu),triggerOnKeyUp:rc,triggerOnMouseDown:Jr(Zi),execCommand:function(b){if(ii.hasOwnProperty(b))return ii[b].call(null,this)},triggerElectric:Jr(function(b){wc(this,b)}),findPosH:function(b,z,oe,fe){var Ee=1;z<0&&(Ee=-1,z=-z);for(var Fe=Tt(this.doc,b),Ze=0;Ze0&&vt(oe.charAt(fe-1));)--fe;for(;Ee.5||this.options.lineWrapping)&&iu(this),ur(this,"refresh",this)}),swapDoc:Jr(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Ca(this,b),Rs(this),this.display.input.reset(),jt(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,zo(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Er(a),a.registerHelper=function(b,z,oe){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=oe},a.registerGlobalHelper=function(b,z,oe,fe){a.registerHelper(b,z,fe),x[b]._global.push({pred:oe,val:fe})}}function oc(a,y,x,b,z){var oe=y,fe=x,Ee=Vt(a,y.line),Fe=z&&a.direction=="rtl"?-x:x;function Ze(){var Ia=y.line+Fe;return Ia=a.first+a.size?!1:(y=new An(Ia,y.ch,y.sticky),Ee=Vt(a,Ia))}function vt(Ia){var la;if(b=="codepoint"){var Va=Ee.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Va)?la=null:la=new An(y.line,Math.max(0,Math.min(Ee.text.length,y.ch+x*(Va>=55296&&Va<56320?2:1))),-x)}else z?la=Fr(a.cm,Ee,y,x):la=Xl(Ee,y,x);if(la==null)if(!Ia&&Ze())y=Cn(z,a.cm,Ee,y.line,Fe);else return!1;else y=la;return!0}if(b=="char"||b=="codepoint")vt();else if(b=="column")vt(!0);else if(b=="word"||b=="group")for(var St=null,ln=b=="group",$t=a.cm&&a.cm.getHelper(y,"wordChars"),Kn=!0;!(x<0&&!vt(!Kn));Kn=!1){var vr=Ee.text.charAt(y.ch)||` +`)&&(Kn=vr=An(Kn.line,0)));var Zr={from:Kn,to:vr,text:Re?Re[ln%Re.length]:Fe,origin:z||(Ee?"paste":a.state.cutIncoming>fe?"cut":"+input")};ro(a.doc,Zr),zo(a,"inputRead",a,Zr)}y&&!Ee&&wc(a,y),Rt(a),a.curOp.updateInput<2&&(a.curOp.updateInput=St),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function xc(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ur(y,function(){return pc(y,x,0,null,"paste")}),!0}function wc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var oe=a.getModeAt(z.head),fe=!1;if(oe.electricChars){for(var Ee=0;Ee-1){fe=Ru(a,z.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(Vt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(fe=Ru(a,z.head.line,"smart"));fe&&zo(a,"electricInput",a,z.head.line)}}}function Fc(a){for(var y=[],x=[],b=0;boe&&(Ru(this,Ee.head.line,b,!0),oe=Ee.head.line,fe==this.doc.sel.primIndex&&Rt(this));else{var Fe=Ee.from(),Re=Ee.to(),vt=Math.max(oe,Fe.line);oe=Math.min(this.lastLine(),Re.line-(Re.ch?0:1))+1;for(var St=vt;St0&&Mn(this.doc,fe,new wa(Fe,ln[fe].to()),Ze)}}}),getTokenAt:function(b,z){return Kr(this,b,z)},getLineTokens:function(b,z){return Kr(this,An(b),z,!0)},getTokenTypeAt:function(b){b=Tt(this.doc,b);var z=Mr(this,Vt(this.doc,b.line)),oe=0,fe=(z.length-1)/2,Ee=b.ch,Fe;if(Ee==0)Fe=z[2];else for(;;){var Re=oe+fe>>1;if((Re?z[Re*2-1]:0)>=Ee)fe=Re;else if(z[Re*2+1]Fe&&(b=Fe,fe=!0),Ee=Vt(this.doc,b)}else Ee=b;return lu(this,Ee,{top:0,left:0},z||"page",oe||fe).top+(fe?this.doc.height-Wn(Ee):0)},defaultTextHeight:function(){return gr(this.display)},defaultCharWidth:function(){return _s(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,oe,fe,Ee){var Fe=this.display;b=ts(this,Tt(this.doc,b));var Re=b.bottom,vt=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),Fe.sizer.appendChild(z),fe=="over")Re=b.top;else if(fe=="above"||fe=="near"){var St=Math.max(Fe.wrapper.clientHeight,this.doc.height),ln=Math.max(Fe.sizer.clientWidth,Fe.lineSpace.clientWidth);(fe=="above"||b.bottom+z.offsetHeight>St)&&b.top>z.offsetHeight?Re=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=St&&(Re=b.bottom),vt+z.offsetWidth>ln&&(vt=ln-z.offsetWidth)}z.style.top=Re+"px",z.style.left=z.style.right="",Ee=="right"?(vt=Fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(Ee=="left"?vt=0:Ee=="middle"&&(vt=(Fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=vt+"px"),oe&&$e(this,{left:vt,top:Re,right:vt+z.offsetWidth,bottom:Re+z.offsetHeight})},triggerOnKeyDown:Jr(nc),triggerOnKeyPress:Jr(Mu),triggerOnKeyUp:rc,triggerOnMouseDown:Jr(Zi),execCommand:function(b){if(ii.hasOwnProperty(b))return ii[b].call(null,this)},triggerElectric:Jr(function(b){wc(this,b)}),findPosH:function(b,z,oe,fe){var Ee=1;z<0&&(Ee=-1,z=-z);for(var Fe=Tt(this.doc,b),Re=0;Re0&&vt(oe.charAt(fe-1));)--fe;for(;Ee.5||this.options.lineWrapping)&&iu(this),ur(this,"refresh",this)}),swapDoc:Jr(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Ca(this,b),Rs(this),this.display.input.reset(),jt(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,zo(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Er(a),a.registerHelper=function(b,z,oe){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=oe},a.registerGlobalHelper=function(b,z,oe,fe){a.registerHelper(b,z,fe),x[b]._global.push({pred:oe,val:fe})}}function oc(a,y,x,b,z){var oe=y,fe=x,Ee=Vt(a,y.line),Fe=z&&a.direction=="rtl"?-x:x;function Re(){var Ia=y.line+Fe;return Ia=a.first+a.size?!1:(y=new An(Ia,y.ch,y.sticky),Ee=Vt(a,Ia))}function vt(Ia){var la;if(b=="codepoint"){var Va=Ee.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Va)?la=null:la=new An(y.line,Math.max(0,Math.min(Ee.text.length,y.ch+x*(Va>=55296&&Va<56320?2:1))),-x)}else z?la=Fr(a.cm,Ee,y,x):la=Xl(Ee,y,x);if(la==null)if(!Ia&&Re())y=Cn(z,a.cm,Ee,y.line,Fe);else return!1;else y=la;return!0}if(b=="char"||b=="codepoint")vt();else if(b=="column")vt(!0);else if(b=="word"||b=="group")for(var St=null,ln=b=="group",$t=a.cm&&a.cm.getHelper(y,"wordChars"),Kn=!0;!(x<0&&!vt(!Kn));Kn=!1){var vr=Ee.text.charAt(y.ch)||` `,Zr=me(vr,$t)?"w":ln&&vr==` -`?"n":!ln||/\s/.test(vr)?null:"p";if(ln&&!Kn&&!Zr&&(Zr="s"),St&&St!=Zr){x<0&&(x=1,vt(),y.sticky="after");break}if(Zr&&(St=Zr),x>0&&!vt(!Kn))break}var sa=or(a,y,oe,fe,!0);return Yi(oe,sa)&&(sa.hitSide=!0),sa}function Xu(a,y,x,b){var z=a.doc,oe=y.left,fe;if(b=="page"){var Ee=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Fe=Math.max(Ee-.5*gr(a.display),3);fe=(x>0?y.bottom:y.top)+x*Fe}else b=="line"&&(fe=x>0?y.bottom+3:y.top-3);for(var Ze;Ze=ss(a,oe,fe),!!Ze.outside;){if(x<0?fe<=0:fe>=z.height){Ze.hitSide=!0;break}fe+=x*5}return Ze}var qo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qo.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;Sc(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function oe(Ee){for(var Fe=Ee.target;Fe;Fe=Fe.parentNode){if(Fe==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Fe.className))break}return!1}Jn(z,"paste",function(Ee){!oe(Ee)||Sn(b,Ee)||xc(Ee,b)||Ae<=11&&setTimeout(_r(b,function(){return y.updateFromDOM()}),20)}),Jn(z,"compositionstart",function(Ee){y.composing={data:Ee.data,done:!1}}),Jn(z,"compositionupdate",function(Ee){y.composing||(y.composing={data:Ee.data,done:!1})}),Jn(z,"compositionend",function(Ee){y.composing&&(Ee.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Jn(z,"touchstart",function(){return x.forceCompositionEnd()}),Jn(z,"input",function(){y.composing||y.readFromDOMSoon()});function fe(Ee){if(!(!oe(Ee)||Sn(b,Ee))){if(b.somethingSelected())Zu({lineWise:!1,text:b.getSelections()}),Ee.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var Fe=Fc(b);Zu({lineWise:!0,text:Fe.text}),Ee.type=="cut"&&b.operation(function(){b.setSelections(Fe.ranges,0,je),b.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var Ze=tu.text.join(` -`);if(Ee.clipboardData.setData("Text",Ze),Ee.clipboardData.getData("Text")==Ze){Ee.preventDefault();return}}var vt=Dc(),St=vt.firstChild;b.display.lineSpace.insertBefore(vt,b.display.lineSpace.firstChild),St.value=tu.text.join(` -`);var ln=document.activeElement;ct(St),setTimeout(function(){b.display.lineSpace.removeChild(vt),ln.focus(),ln==z&&x.showPrimarySelection()},50)}}Jn(z,"copy",fe),Jn(z,"cut",fe)},qo.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},qo.prototype.prepareSelection=function(){var a=du(this.cm,!1);return a.focus=document.activeElement==this.div,a},qo.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},qo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qo.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line=y.display.viewFrom&&Ac(y,b)||{node:Ee[0].measure.map[2],offset:0},Ze=z.linea.firstLine()&&(b=An(b.line-1,Vt(a.doc,b.line-1).length)),z.ch==Vt(a.doc,z.line).text.length&&z.liney.viewTo-1)return!1;var oe,fe,Ee;b.line==y.viewFrom||(oe=sl(a,b.line))==0?(fe=jr(y.view[0].line),Ee=y.view[0].node):(fe=jr(y.view[oe].line),Ee=y.view[oe-1].node.nextSibling);var Fe=sl(a,z.line),Ze,vt;if(Fe==y.view.length-1?(Ze=y.viewTo-1,vt=y.lineDiv.lastChild):(Ze=jr(y.view[Fe+1].line)-1,vt=y.view[Fe+1].node.previousSibling),!Ee)return!1;for(var St=a.doc.splitLines(Rc(a,Ee,vt,fe,Ze)),ln=On(a.doc,An(fe,0),An(Ze,Vt(a.doc,Ze).text.length));St.length>1&&ln.length>1;)if(dt(St)==dt(ln))St.pop(),ln.pop(),Ze--;else if(St[0]==ln[0])St.shift(),ln.shift(),fe++;else break;for(var $t=0,Kn=0,vr=St[0],Zr=ln[0],sa=Math.min(vr.length,Zr.length);$tb.ch&&Ia.charCodeAt(Ia.length-Kn-1)==la.charCodeAt(la.length-Kn-1);)$t--,Kn++;St[St.length-1]=Ia.slice(0,Ia.length-Kn).replace(/^\u200b+/,""),St[0]=St[0].slice($t).replace(/\u200b+$/,"");var Di=An(fe,$t),ui=An(Ze,ln.length?dt(ln).length-Kn:0);if(St.length>1||St[0]||rn(Di,ui))return ir(a.doc,St,Di,ui,"+input"),!0},qo.prototype.ensurePolled=function(){this.forceCompositionEnd()},qo.prototype.reset=function(){this.forceCompositionEnd()},qo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qo.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},qo.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Hl(a.cm)})},qo.prototype.setUneditable=function(a){a.contentEditable="false"},qo.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||_r(this.cm,pc)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},qo.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},qo.prototype.onContextMenu=function(){},qo.prototype.resetPosition=function(){},qo.prototype.needsContentAttribute=!0;function Ac(a,y){var x=Sl(a,y.line);if(!x||x.hidden)return null;var b=Vt(a.doc,y.line),z=fl(x,b,y.line),oe=Vr(b,a.doc.direction),fe="left";if(oe){var Ee=Nn(oe,y.ch);fe=Ee%2?"right":"left"}var Fe=qs(z.map,y.ch,fe);return Fe.offset=Fe.collapse=="right"?Fe.end:Fe.start,Fe}function hc(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _u(a,y){return y&&(a.bad=!0),a}function Rc(a,y,x,b,z){var oe="",fe=!1,Ee=a.doc.lineSeparator(),Fe=!1;function Ze($t){return function(Kn){return Kn.id==$t}}function vt(){fe&&(oe+=Ee,Fe&&(oe+=Ee),fe=Fe=!1)}function St($t){$t&&(vt(),oe+=$t)}function ln($t){if($t.nodeType==1){var Kn=$t.getAttribute("cm-text");if(Kn){St(Kn);return}var vr=$t.getAttribute("cm-marker"),Zr;if(vr){var sa=a.findMarks(An(b,0),An(z+1,0),Ze(+vr));sa.length&&(Zr=sa[0].find(0))&&St(On(a.doc,Zr.from,Zr.to).join(Ee));return}if($t.getAttribute("contenteditable")=="false")return;var Ia=/^(pre|div|p|li|table|br)$/i.test($t.nodeName);if(!/^br$/i.test($t.nodeName)&&$t.textContent.length==0)return;Ia&&vt();for(var la=0;la<$t.childNodes.length;la++)ln($t.childNodes[la]);/^(pre|p)$/i.test($t.nodeName)&&(Fe=!0),Ia&&(fe=!0)}else $t.nodeType==3&&St($t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ln(y),y!=x;)y=y.nextSibling,Fe=!1;return oe}function lc(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return _u(a.clipPos(An(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var z=0;z=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Jn(z,"paste",function(fe){Sn(b,fe)||xc(fe,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function oe(fe){if(!Sn(b,fe)){if(b.somethingSelected())Zu({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var Ee=Fc(b);Zu({lineWise:!0,text:Ee.text}),fe.type=="cut"?b.setSelections(Ee.ranges,null,je):(x.prevInput="",z.value=Ee.text.join(` -`),ct(z))}else return;fe.type=="cut"&&(b.state.cutIncoming=+new Date)}}Jn(z,"cut",oe),Jn(z,"copy",oe),Jn(a.scroller,"paste",function(fe){if(!(wo(a,fe)||Sn(b,fe))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var Ee=new Event("paste");Ee.clipboardData=fe.clipboardData,z.dispatchEvent(Ee)}}),Jn(a.lineSpace,"selectstart",function(fe){wo(a,fe)||Br(fe)}),Jn(z,"compositionstart",function(){var fe=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:fe,range:b.markText(fe,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Jn(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ol.prototype.createField=function(a){this.wrapper=Dc(),this.textarea=this.wrapper.firstChild},Ol.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ol.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=du(a);if(a.options.moveInputWithCursor){var z=ts(a,x.sel.primary().head,"div"),oe=y.wrapper.getBoundingClientRect(),fe=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+fe.top-oe.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+fe.left-oe.left))}return b},Ol.prototype.showSelection=function(a){var y=this.cm,x=y.display;st(x.cursorDiv,a.cursors),st(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ol.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&ct(this.textarea),We&&Ae>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",We&&Ae>=9&&(this.hasSelection=null))}},Ol.prototype.getField=function(){return this.textarea},Ol.prototype.supportsTouch=function(){return!1},Ol.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Be||Ne()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ol.prototype.blur=function(){this.textarea.blur()},Ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ol.prototype.receivedFocus=function(){this.slowPoll()},Ol.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ol.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Ol.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||ri(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(We&&Ae>=9&&this.hasSelection===z||be&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var oe=z.charCodeAt(0);if(oe==8203&&!b&&(b="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,Ee=Math.min(b.length,z.length);fe1e3||z.indexOf(` -`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ol.prototype.onKeyPress=function(){We&&Ae>=9&&(this.hasSelection=null),this.fastPoll()},Ol.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var oe=Ps(x,a),fe=b.scroller.scrollTop;if(!oe||Re)return;var Ee=x.options.resetSelectionOnContextMenu;Ee&&x.doc.sel.contains(oe)==-1&&_r(x,cn)(x.doc,yo(oe),je);var Fe=z.style.cssText,Ze=y.wrapper.style.cssText,vt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px; +`?"n":!ln||/\s/.test(vr)?null:"p";if(ln&&!Kn&&!Zr&&(Zr="s"),St&&St!=Zr){x<0&&(x=1,vt(),y.sticky="after");break}if(Zr&&(St=Zr),x>0&&!vt(!Kn))break}var sa=or(a,y,oe,fe,!0);return Yi(oe,sa)&&(sa.hitSide=!0),sa}function Xu(a,y,x,b){var z=a.doc,oe=y.left,fe;if(b=="page"){var Ee=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Fe=Math.max(Ee-.5*gr(a.display),3);fe=(x>0?y.bottom:y.top)+x*Fe}else b=="line"&&(fe=x>0?y.bottom+3:y.top-3);for(var Re;Re=ss(a,oe,fe),!!Re.outside;){if(x<0?fe<=0:fe>=z.height){Re.hitSide=!0;break}fe+=x*5}return Re}var qo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ge,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qo.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;Sc(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function oe(Ee){for(var Fe=Ee.target;Fe;Fe=Fe.parentNode){if(Fe==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Fe.className))break}return!1}Jn(z,"paste",function(Ee){!oe(Ee)||Sn(b,Ee)||xc(Ee,b)||Ae<=11&&setTimeout(_r(b,function(){return y.updateFromDOM()}),20)}),Jn(z,"compositionstart",function(Ee){y.composing={data:Ee.data,done:!1}}),Jn(z,"compositionupdate",function(Ee){y.composing||(y.composing={data:Ee.data,done:!1})}),Jn(z,"compositionend",function(Ee){y.composing&&(Ee.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Jn(z,"touchstart",function(){return x.forceCompositionEnd()}),Jn(z,"input",function(){y.composing||y.readFromDOMSoon()});function fe(Ee){if(!(!oe(Ee)||Sn(b,Ee))){if(b.somethingSelected())Zu({lineWise:!1,text:b.getSelections()}),Ee.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var Fe=Fc(b);Zu({lineWise:!0,text:Fe.text}),Ee.type=="cut"&&b.operation(function(){b.setSelections(Fe.ranges,0,Ze),b.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var Re=tu.text.join(` +`);if(Ee.clipboardData.setData("Text",Re),Ee.clipboardData.getData("Text")==Re){Ee.preventDefault();return}}var vt=Dc(),St=vt.firstChild;b.display.lineSpace.insertBefore(vt,b.display.lineSpace.firstChild),St.value=tu.text.join(` +`);var ln=document.activeElement;st(St),setTimeout(function(){b.display.lineSpace.removeChild(vt),ln.focus(),ln==z&&x.showPrimarySelection()},50)}}Jn(z,"copy",fe),Jn(z,"cut",fe)},qo.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},qo.prototype.prepareSelection=function(){var a=du(this.cm,!1);return a.focus=document.activeElement==this.div,a},qo.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},qo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qo.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line=y.display.viewFrom&&Ac(y,b)||{node:Ee[0].measure.map[2],offset:0},Re=z.linea.firstLine()&&(b=An(b.line-1,Vt(a.doc,b.line-1).length)),z.ch==Vt(a.doc,z.line).text.length&&z.liney.viewTo-1)return!1;var oe,fe,Ee;b.line==y.viewFrom||(oe=sl(a,b.line))==0?(fe=jr(y.view[0].line),Ee=y.view[0].node):(fe=jr(y.view[oe].line),Ee=y.view[oe-1].node.nextSibling);var Fe=sl(a,z.line),Re,vt;if(Fe==y.view.length-1?(Re=y.viewTo-1,vt=y.lineDiv.lastChild):(Re=jr(y.view[Fe+1].line)-1,vt=y.view[Fe+1].node.previousSibling),!Ee)return!1;for(var St=a.doc.splitLines(Rc(a,Ee,vt,fe,Re)),ln=On(a.doc,An(fe,0),An(Re,Vt(a.doc,Re).text.length));St.length>1&&ln.length>1;)if(ct(St)==ct(ln))St.pop(),ln.pop(),Re--;else if(St[0]==ln[0])St.shift(),ln.shift(),fe++;else break;for(var $t=0,Kn=0,vr=St[0],Zr=ln[0],sa=Math.min(vr.length,Zr.length);$tb.ch&&Ia.charCodeAt(Ia.length-Kn-1)==la.charCodeAt(la.length-Kn-1);)$t--,Kn++;St[St.length-1]=Ia.slice(0,Ia.length-Kn).replace(/^\u200b+/,""),St[0]=St[0].slice($t).replace(/\u200b+$/,"");var Di=An(fe,$t),ui=An(Re,ln.length?ct(ln).length-Kn:0);if(St.length>1||St[0]||rn(Di,ui))return ir(a.doc,St,Di,ui,"+input"),!0},qo.prototype.ensurePolled=function(){this.forceCompositionEnd()},qo.prototype.reset=function(){this.forceCompositionEnd()},qo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qo.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},qo.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Hl(a.cm)})},qo.prototype.setUneditable=function(a){a.contentEditable="false"},qo.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||_r(this.cm,pc)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},qo.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},qo.prototype.onContextMenu=function(){},qo.prototype.resetPosition=function(){},qo.prototype.needsContentAttribute=!0;function Ac(a,y){var x=Sl(a,y.line);if(!x||x.hidden)return null;var b=Vt(a.doc,y.line),z=fl(x,b,y.line),oe=Vr(b,a.doc.direction),fe="left";if(oe){var Ee=Nn(oe,y.ch);fe=Ee%2?"right":"left"}var Fe=qs(z.map,y.ch,fe);return Fe.offset=Fe.collapse=="right"?Fe.end:Fe.start,Fe}function hc(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _u(a,y){return y&&(a.bad=!0),a}function Rc(a,y,x,b,z){var oe="",fe=!1,Ee=a.doc.lineSeparator(),Fe=!1;function Re($t){return function(Kn){return Kn.id==$t}}function vt(){fe&&(oe+=Ee,Fe&&(oe+=Ee),fe=Fe=!1)}function St($t){$t&&(vt(),oe+=$t)}function ln($t){if($t.nodeType==1){var Kn=$t.getAttribute("cm-text");if(Kn){St(Kn);return}var vr=$t.getAttribute("cm-marker"),Zr;if(vr){var sa=a.findMarks(An(b,0),An(z+1,0),Re(+vr));sa.length&&(Zr=sa[0].find(0))&&St(On(a.doc,Zr.from,Zr.to).join(Ee));return}if($t.getAttribute("contenteditable")=="false")return;var Ia=/^(pre|div|p|li|table|br)$/i.test($t.nodeName);if(!/^br$/i.test($t.nodeName)&&$t.textContent.length==0)return;Ia&&vt();for(var la=0;la<$t.childNodes.length;la++)ln($t.childNodes[la]);/^(pre|p)$/i.test($t.nodeName)&&(Fe=!0),Ia&&(fe=!0)}else $t.nodeType==3&&St($t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ln(y),y!=x;)y=y.nextSibling,Fe=!1;return oe}function lc(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return _u(a.clipPos(An(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var z=0;z=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Jn(z,"paste",function(fe){Sn(b,fe)||xc(fe,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function oe(fe){if(!Sn(b,fe)){if(b.somethingSelected())Zu({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var Ee=Fc(b);Zu({lineWise:!0,text:Ee.text}),fe.type=="cut"?b.setSelections(Ee.ranges,null,Ze):(x.prevInput="",z.value=Ee.text.join(` +`),st(z))}else return;fe.type=="cut"&&(b.state.cutIncoming=+new Date)}}Jn(z,"cut",oe),Jn(z,"copy",oe),Jn(a.scroller,"paste",function(fe){if(!(wo(a,fe)||Sn(b,fe))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var Ee=new Event("paste");Ee.clipboardData=fe.clipboardData,z.dispatchEvent(Ee)}}),Jn(a.lineSpace,"selectstart",function(fe){wo(a,fe)||Br(fe)}),Jn(z,"compositionstart",function(){var fe=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:fe,range:b.markText(fe,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Jn(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ol.prototype.createField=function(a){this.wrapper=Dc(),this.textarea=this.wrapper.firstChild},Ol.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ol.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=du(a);if(a.options.moveInputWithCursor){var z=ts(a,x.sel.primary().head,"div"),oe=y.wrapper.getBoundingClientRect(),fe=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+fe.top-oe.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+fe.left-oe.left))}return b},Ol.prototype.showSelection=function(a){var y=this.cm,x=y.display;ut(x.cursorDiv,a.cursors),ut(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ol.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&st(this.textarea),We&&Ae>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",We&&Ae>=9&&(this.hasSelection=null))}},Ol.prototype.getField=function(){return this.textarea},Ol.prototype.supportsTouch=function(){return!1},Ol.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Be||Te()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ol.prototype.blur=function(){this.textarea.blur()},Ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ol.prototype.receivedFocus=function(){this.slowPoll()},Ol.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ol.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Ol.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||ri(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(We&&Ae>=9&&this.hasSelection===z||be&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var oe=z.charCodeAt(0);if(oe==8203&&!b&&(b="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,Ee=Math.min(b.length,z.length);fe1e3||z.indexOf(` +`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ol.prototype.onKeyPress=function(){We&&Ae>=9&&(this.hasSelection=null),this.fastPoll()},Ol.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var oe=Ps(x,a),fe=b.scroller.scrollTop;if(!oe||He)return;var Ee=x.options.resetSelectionOnContextMenu;Ee&&x.doc.sel.contains(oe)==-1&&_r(x,cn)(x.doc,yo(oe),Ze);var Fe=z.style.cssText,Re=y.wrapper.style.cssText,vt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-vt.top-5)+"px; left: "+(a.clientX-vt.left-5)+`px; z-index: 1000; background: `+(We?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var St;Ue&&(St=window.scrollY),b.input.focus(),Ue&&window.scrollTo(null,St),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=$t,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function ln(){if(z.selectionStart!=null){var vr=x.somethingSelected(),Zr="\u200B"+(vr?z.value:"");z.value="\u21DA",z.value=Zr,y.prevInput=vr?"":"\u200B",z.selectionStart=1,z.selectionEnd=Zr.length,b.selForContextMenu=x.doc.sel}}function $t(){if(y.contextMenuPending==$t&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Ze,z.style.cssText=Fe,We&&Ae<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=fe),z.selectionStart!=null)){(!We||We&&Ae<9)&&ln();var vr=0,Zr=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?_r(x,lr)(x):vr++<10?b.detectingSelectAll=setTimeout(Zr,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Zr,200)}}if(We&&Ae>=9&&ln(),Ke){Sr(a);var Kn=function(){Qr(window,"mouseup",Kn),setTimeout($t,20)};Jn(window,"mouseup",Kn)}else setTimeout($t,50)},Ol.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ol.prototype.setUneditable=function(){},Ol.prototype.needsContentAttribute=!1;function mc(a,y){if(y=y?Ft(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Ne();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=Ee.getValue()}var z;if(a.form&&(Jn(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var oe=a.form;z=oe.submit;try{var fe=oe.submit=function(){b(),oe.submit=z,oe.submit(),oe.submit=fe}}catch(Fe){}}y.finishInit=function(Fe){Fe.save=b,Fe.getTextArea=function(){return a},Fe.toTextArea=function(){Fe.toTextArea=isNaN,b(),a.parentNode.removeChild(Fe.getWrapperElement()),a.style.display="",a.form&&(Qr(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var Ee=wl(function(Fe){return a.parentNode.insertBefore(Fe,a.nextSibling)},y);return Ee}function Bc(a){a.off=Qr,a.on=Jn,a.wheelEventPixels=Wi,a.Doc=Fa,a.splitLines=Ja,a.countColumn=De,a.findColumn=Kt,a.isWordChar=ce,a.Pass=yt,a.signal=ur,a.Line=cr,a.changeEnd=jo,a.scrollbarModel=dr,a.Pos=An,a.cmpPos=rn,a.modes=ea,a.mimeModes=Ir,a.resolveMode=Un,a.getMode=Lt,a.modeExtensions=Dn,a.extendMode=rr,a.copyState=Rn,a.startState=wr,a.innerMode=ar,a.commands=ii,a.keyMap=Go,a.keyName=Bo,a.isModifierKey=Vl,a.lookupKey=El,a.normalizeKeyMap=rs,a.StringStream=er,a.SharedTextMarker=Lo,a.TextMarker=ol,a.LineWidget=Qo,a.e_preventDefault=Br,a.e_stopPropagation=Xa,a.e_stop=Sr,a.addClass=at,a.contains=ze,a.rmClass=Et,a.keyNames=Za}Mc(wl),Lc(wl);var vc="iter insert remove copy getEditor constructor".split(" ");for(var Hu in Fa.prototype)Fa.prototype.hasOwnProperty(Hu)&<(vc,Hu)<0&&(wl.prototype[Hu]=function(a){return function(){return a.apply(this.doc,arguments)}}(Fa.prototype[Hu]));return Er(Fa),wl.inputStyles={textarea:Ol,contenteditable:qo},wl.defineMode=function(a){!wl.defaults.mode&&a!="null"&&(wl.defaults.mode=a),qt.apply(this,arguments)},wl.defineMIME=Ut,wl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),wl.defineMIME("text/plain","null"),wl.defineExtension=function(a,y){wl.prototype[a]=y},wl.defineDocExtension=function(a,y){Fa.prototype[a]=y},wl.fromTextArea=mc,Bc(wl),wl.version="5.58.2",wl})},25419:function(_t,Pt,ne){(function(E){E(ne(89780),ne(15525),ne(98101))})(function(E){"use strict";E.defineMode("markdown",function(ve,xe){var Je=E.getMode(ve,"text/html"),We=Je.name=="null";function Ae(De){if(E.findModeByName){var ge=E.findModeByName(De);ge&&(De=ge.mime||ge.mimes[0])}var lt=E.getMode(ve,De);return lt.name=="null"?null:lt}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var Ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var tt in Ue)Ue.hasOwnProperty(tt)&&xe.tokenTypeOverrides[tt]&&(Ue[tt]=xe.tokenTypeOverrides[tt]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,Re=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Qe=/^\[(x| )\](?=\s)/i,qe=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ht=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ge=/^[^#!\[\]*_\\<>` "'(~:]+/,Oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Be=/^\s*\[[^\]]+?\]:.*$/,be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Pe=" ";function Ye(De,ge,lt){return ge.f=ge.inline=lt,lt(De,ge)}function it(De,ge,lt){return ge.f=ge.block=lt,lt(De,ge)}function pe(De){return!De||!/\S/.test(De.string)}function Ke(De){if(De.linkTitle=!1,De.linkHref=!1,De.linkText=!1,De.em=!1,De.strong=!1,De.strikethrough=!1,De.quote=0,De.indentedCode=!1,De.f==Et){var ge=We;if(!ge){var lt=E.innerMode(Je,De.htmlState);ge=lt.mode.name=="xml"&<.state.tagStart===null&&!lt.state.context&<.state.tokenize.isInText}ge&&(De.f=ut,De.block=nt,De.htmlState=null)}return De.trailingSpace=0,De.trailingSpaceNewLine=!1,De.prevLine=De.thisLine,De.thisLine={stream:null},null}function nt(De,ge){var lt=De.column()===ge.indentation,wt=pe(ge.prevLine.stream),yt=ge.indentedCode,je=ge.prevLine.hr,Ve=ge.list!==!1,pt=(ge.listStack[ge.listStack.length-1]||0)+3;ge.indentedCode=!1;var Kt=ge.indentation;if(ge.indentationDiff===null&&(ge.indentationDiff=ge.indentation,Ve)){for(ge.list=null;Kt=4&&(yt||ge.prevLine.fencedCodeEnd||ge.prevLine.header||wt))return De.skipToEnd(),ge.indentedCode=!0,Ue.code;if(De.eatSpace())return null;if(lt&&ge.indentation<=pt&&(dt=De.match(qe))&&dt[1].length<=6)return ge.quote=0,ge.header=dt[1].length,ge.thisLine.header=!0,xe.highlightFormatting&&(ge.formatting="header"),ge.f=ge.inline,st(ge);if(ge.indentation<=pt&&De.eat(">"))return ge.quote=lt?1:ge.quote+1,xe.highlightFormatting&&(ge.formatting="quote"),De.eatSpace(),st(ge);if(!dn&&!ge.setext&<&&ge.indentation<=pt&&(dt=De.match(Re))){var Nt=dt[1]?"ol":"ul";return ge.indentation=Kt+De.current().length,ge.list=!0,ge.quote=0,ge.listStack.push(ge.indentation),ge.em=!1,ge.strong=!1,ge.code=!1,ge.strikethrough=!1,xe.taskLists&&De.match(Qe,!1)&&(ge.taskList=!0),ge.f=ge.inline,xe.highlightFormatting&&(ge.formatting=["list","list-"+Nt]),st(ge)}else{if(lt&&ge.indentation<=pt&&(dt=De.match(Oe,!0)))return ge.quote=0,ge.fencedEndRE=new RegExp(dt[1]+"+ *$"),ge.localMode=xe.fencedCodeBlockHighlighting&&Ae(dt[2]||xe.fencedCodeBlockDefaultMode),ge.localMode&&(ge.localState=E.startState(ge.localMode)),ge.f=ge.block=At,xe.highlightFormatting&&(ge.formatting="code-block"),ge.code=-1,st(ge);if(ge.setext||(!kt||!Ve)&&!ge.quote&&ge.list===!1&&!ge.code&&!dn&&!Be.test(De.string)&&(dt=De.lookAhead(1))&&(dt=dt.match(ht)))return ge.setext?(ge.header=ge.setext,ge.setext=0,De.skipToEnd(),xe.highlightFormatting&&(ge.formatting="header")):(ge.header=dt[0].charAt(0)=="="?1:2,ge.setext=ge.header),ge.thisLine.header=!0,ge.f=ge.inline,st(ge);if(dn)return De.skipToEnd(),ge.hr=!0,ge.thisLine.hr=!0,Ue.hr;if(De.peek()==="[")return Ye(De,ge,Bt)}return Ye(De,ge,ge.inline)}function Et(De,ge){var lt=Je.token(De,ge.htmlState);if(!We){var wt=E.innerMode(Je,ge.htmlState);(wt.mode.name=="xml"&&wt.state.tagStart===null&&!wt.state.context&&wt.state.tokenize.isInText||ge.md_inside&&De.current().indexOf(">")>-1)&&(ge.f=ut,ge.block=nt,ge.htmlState=null)}return lt}function At(De,ge){var lt=ge.listStack[ge.listStack.length-1]||0,wt=ge.indentation=De.quote?ge.push(Ue.formatting+"-"+De.formatting[lt]+"-"+De.quote):ge.push("error"))}if(De.taskOpen)return ge.push("meta"),ge.length?ge.join(" "):null;if(De.taskClosed)return ge.push("property"),ge.length?ge.join(" "):null;if(De.linkHref?ge.push(Ue.linkHref,"url"):(De.strong&&ge.push(Ue.strong),De.em&&ge.push(Ue.em),De.strikethrough&&ge.push(Ue.strikethrough),De.emoji&&ge.push(Ue.emoji),De.linkText&&ge.push(Ue.linkText),De.code&&ge.push(Ue.code),De.image&&ge.push(Ue.image),De.imageAltText&&ge.push(Ue.imageAltText,"link"),De.imageMarker&&ge.push(Ue.imageMarker)),De.header&&ge.push(Ue.header,Ue.header+"-"+De.header),De.quote&&(ge.push(Ue.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=De.quote?ge.push(Ue.quote+"-"+De.quote):ge.push(Ue.quote+"-"+xe.maxBlockquoteDepth)),De.list!==!1){var wt=(De.listStack.length-1)%3;wt?wt===1?ge.push(Ue.list2):ge.push(Ue.list3):ge.push(Ue.list1)}return De.trailingSpaceNewLine?ge.push("trailing-space-new-line"):De.trailingSpace&&ge.push("trailing-space-"+(De.trailingSpace%2?"a":"b")),ge.length?ge.join(" "):null}function Xe(De,ge){if(De.match(Ge,!0))return st(ge)}function ut(De,ge){var lt=ge.text(De,ge);if(typeof lt!="undefined")return lt;if(ge.list)return ge.list=null,st(ge);if(ge.taskList){var wt=De.match(Qe,!0)[1]===" ";return wt?ge.taskOpen=!0:ge.taskClosed=!0,xe.highlightFormatting&&(ge.formatting="task"),ge.taskList=!1,st(ge)}if(ge.taskOpen=!1,ge.taskClosed=!1,ge.header&&De.match(/^#+$/,!0))return xe.highlightFormatting&&(ge.formatting="header"),st(ge);var yt=De.next();if(ge.linkTitle){ge.linkTitle=!1;var je=yt;yt==="("&&(je=")"),je=(je+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ve="^\\s*(?:[^"+je+"\\\\]+|\\\\\\\\|\\\\.)"+je;if(De.match(new RegExp(Ve),!0))return Ue.linkHref}if(yt==="`"){var pt=ge.formatting;xe.highlightFormatting&&(ge.formatting="code"),De.eatWhile("`");var Kt=De.current().length;if(ge.code==0&&(!ge.quote||Kt==1))return ge.code=Kt,st(ge);if(Kt==ge.code){var kt=st(ge);return ge.code=0,kt}else return ge.formatting=pt,st(ge)}else if(ge.code)return st(ge);if(yt==="\\"&&(De.next(),xe.highlightFormatting)){var dn=st(ge),dt=Ue.formatting+"-escape";return dn?dn+" "+dt:dt}if(yt==="!"&&De.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ge.imageMarker=!0,ge.image=!0,xe.highlightFormatting&&(ge.formatting="image"),st(ge);if(yt==="["&&ge.imageMarker&&De.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ge.imageMarker=!1,ge.imageAltText=!0,xe.highlightFormatting&&(ge.formatting="image"),st(ge);if(yt==="]"&&ge.imageAltText){xe.highlightFormatting&&(ge.formatting="image");var dn=st(ge);return ge.imageAltText=!1,ge.image=!1,ge.inline=ge.f=ze,dn}if(yt==="["&&!ge.image)return ge.linkText&&De.match(/^.*?\]/)||(ge.linkText=!0,xe.highlightFormatting&&(ge.formatting="link")),st(ge);if(yt==="]"&&ge.linkText){xe.highlightFormatting&&(ge.formatting="link");var dn=st(ge);return ge.linkText=!1,ge.inline=ge.f=De.match(/\(.*?\)| ?\[.*?\]/,!1)?ze:ut,dn}if(yt==="<"&&De.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Le,xe.highlightFormatting&&(ge.formatting="link");var dn=st(ge);return dn?dn+=" ":dn="",dn+Ue.linkInline}if(yt==="<"&&De.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Le,xe.highlightFormatting&&(ge.formatting="link");var dn=st(ge);return dn?dn+=" ":dn="",dn+Ue.linkEmail}if(xe.xml&&yt==="<"&&De.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Nt=De.string.indexOf(">",De.pos);if(Nt!=-1){var mn=De.string.substring(De.start,Nt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mn)&&(ge.md_inside=!0)}return De.backUp(1),ge.htmlState=E.startState(Je),it(De,ge,Et)}if(xe.xml&&yt==="<"&&De.match(/^\/\w*?>/))return ge.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var he=1,se=De.pos==1?" ":De.string.charAt(De.pos-2);he<3&&De.eat(yt);)he++;var ae=De.peek()||" ",ce=!/\s/.test(ae)&&(!be.test(ae)||/\s/.test(se)||be.test(se)),me=!/\s/.test(se)&&(!be.test(se)||/\s/.test(ae)||be.test(ae)),le=null,ot=null;if(he%2&&(!ge.em&&ce&&(yt==="*"||!me||be.test(se))?le=!0:ge.em==yt&&me&&(yt==="*"||!ce||be.test(ae))&&(le=!1)),he>1&&(!ge.strong&&ce&&(yt==="*"||!me||be.test(se))?ot=!0:ge.strong==yt&&me&&(yt==="*"||!ce||be.test(ae))&&(ot=!1)),ot!=null||le!=null){xe.highlightFormatting&&(ge.formatting=le==null?"strong":ot==null?"em":"strong em"),le===!0&&(ge.em=yt),ot===!0&&(ge.strong=yt);var kt=st(ge);return le===!1&&(ge.em=!1),ot===!1&&(ge.strong=!1),kt}}else if(yt===" "&&(De.eat("*")||De.eat("_"))){if(De.peek()===" ")return st(ge);De.backUp(1)}if(xe.strikethrough){if(yt==="~"&&De.eatWhile(yt)){if(ge.strikethrough){xe.highlightFormatting&&(ge.formatting="strikethrough");var kt=st(ge);return ge.strikethrough=!1,kt}else if(De.match(/^[^\s]/,!1))return ge.strikethrough=!0,xe.highlightFormatting&&(ge.formatting="strikethrough"),st(ge)}else if(yt===" "&&De.match(/^~~/,!0)){if(De.peek()===" ")return st(ge);De.backUp(2)}}if(xe.emoji&&yt===":"&&De.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ge.emoji=!0,xe.highlightFormatting&&(ge.formatting="emoji");var Ht=st(ge);return ge.emoji=!1,Ht}return yt===" "&&(De.match(/^ +$/,!1)?ge.trailingSpace++:ge.trailingSpace&&(ge.trailingSpaceNewLine=!0)),st(ge)}function Le(De,ge){var lt=De.next();if(lt===">"){ge.f=ge.inline=ut,xe.highlightFormatting&&(ge.formatting="link");var wt=st(ge);return wt?wt+=" ":wt="",wt+Ue.linkInline}return De.match(/^[^>]+/,!0),Ue.linkInline}function ze(De,ge){if(De.eatSpace())return null;var lt=De.next();return lt==="("||lt==="["?(ge.f=ge.inline=at(lt==="("?")":"]"),xe.highlightFormatting&&(ge.formatting="link-string"),ge.linkHref=!0,st(ge)):"error"}var Ne={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function at(De){return function(ge,lt){var wt=ge.next();if(wt===De){lt.f=lt.inline=ut,xe.highlightFormatting&&(lt.formatting="link-string");var yt=st(lt);return lt.linkHref=!1,yt}return ge.match(Ne[De]),lt.linkHref=!0,st(lt)}}function Bt(De,ge){return De.match(/^([^\]\\]|\\.)*\]:/,!1)?(ge.f=ct,De.next(),xe.highlightFormatting&&(ge.formatting="link"),ge.linkText=!0,st(ge)):Ye(De,ge,ut)}function ct(De,ge){if(De.match(/^\]:/,!0)){ge.f=ge.inline=$e,xe.highlightFormatting&&(ge.formatting="link");var lt=st(ge);return ge.linkText=!1,lt}return De.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function $e(De,ge){return De.eatSpace()?null:(De.match(/^[^\s]+/,!0),De.peek()===void 0?ge.linkTitle=!0:De.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ge.f=ge.inline=ut,Ue.linkHref+" url")}var Ft={startState:function(){return{f:nt,prevLine:{stream:null},thisLine:{stream:null},block:nt,htmlState:null,indentation:0,inline:ut,text:Xe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(De){return{f:De.f,prevLine:De.prevLine,thisLine:De.thisLine,block:De.block,htmlState:De.htmlState&&E.copyState(Je,De.htmlState),indentation:De.indentation,localMode:De.localMode,localState:De.localMode?E.copyState(De.localMode,De.localState):null,inline:De.inline,text:De.text,formatting:!1,linkText:De.linkText,linkTitle:De.linkTitle,linkHref:De.linkHref,code:De.code,em:De.em,strong:De.strong,strikethrough:De.strikethrough,emoji:De.emoji,header:De.header,setext:De.setext,hr:De.hr,taskList:De.taskList,list:De.list,listStack:De.listStack.slice(0),quote:De.quote,indentedCode:De.indentedCode,trailingSpace:De.trailingSpace,trailingSpaceNewLine:De.trailingSpaceNewLine,md_inside:De.md_inside,fencedEndRE:De.fencedEndRE}},token:function(De,ge){if(ge.formatting=!1,De!=ge.thisLine.stream){if(ge.header=0,ge.hr=!1,De.match(/^\s*$/,!0))return Ke(ge),null;if(ge.prevLine=ge.thisLine,ge.thisLine={stream:De},ge.taskList=!1,ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,!ge.localState&&(ge.f=ge.block,ge.f!=Et)){var lt=De.match(/^\s*/,!0)[0].replace(/\t/g,Pe).length;if(ge.indentation=lt,ge.indentationDiff=null,lt>0)return null}}return ge.f(De,ge)},innerMode:function(De){return De.block==Et?{state:De.htmlState,mode:Je}:De.localState?{state:De.localState,mode:De.localMode}:{state:De,mode:Ft}},indent:function(De,ge,lt){return De.block==Et&&Je.indent?Je.indent(De.htmlState,ge,lt):De.localState&&De.localMode.indent?De.localMode.indent(De.localState,ge,lt):E.Pass},blankLine:Ke,getType:st,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ft},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(_t,Pt,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ve=0;ve-1&&Je.substring(Ue+1,Je.length);if(tt)return E.findModeByExtension(tt)},E.findModeByName=function(Je){Je=Je.toLowerCase();for(var We=0;We0?Ge.cmdState[Ge.cmdState.length-1]:null}function Ae(Ge){var Oe=Ge.cmdState.pop();Oe&&Oe.closeBracket()}function Ue(Ge){for(var Oe=Ge.cmdState,Be=Oe.length-1;Be>=0;Be--){var be=Oe[Be];if(be.name!="DEFAULT")return be}return{styleIdentifier:function(){return null}}}function tt(Ge,Oe,Be){return function(){this.name=Ge,this.bracketNo=0,this.style=Oe,this.styles=Be,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=tt("importmodule","tag",["string","builtin"]),Se.documentclass=tt("documentclass","tag",["","atom"]),Se.usepackage=tt("usepackage","tag",["atom"]),Se.begin=tt("begin","tag",["atom"]),Se.end=tt("end","tag",["atom"]),Se.label=tt("label","tag",["atom"]),Se.ref=tt("ref","tag",["atom"]),Se.eqref=tt("eqref","tag",["atom"]),Se.cite=tt("cite","tag",["atom"]),Se.bibitem=tt("bibitem","tag",["atom"]),Se.Bibitem=tt("Bibitem","tag",["atom"]),Se.RBibitem=tt("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Re(Ge,Oe){Ge.f=Oe}function Qe(Ge,Oe){var Be;if(Ge.match(/^\\[a-zA-Z@]+/)){var be=Ge.current().slice(1);return Be=Se.hasOwnProperty(be)?Se[be]:Se.DEFAULT,Be=new Be,Je(Oe,Be),Re(Oe,ht),Be.style}if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/\\]/))return"tag";if(Ge.match("\\["))return Re(Oe,function(Ye,it){return qe(Ye,it,"\\]")}),"keyword";if(Ge.match("\\("))return Re(Oe,function(Ye,it){return qe(Ye,it,"\\)")}),"keyword";if(Ge.match("$$"))return Re(Oe,function(Ye,it){return qe(Ye,it,"$$")}),"keyword";if(Ge.match("$"))return Re(Oe,function(Ye,it){return qe(Ye,it,"$")}),"keyword";var Pe=Ge.next();if(Pe=="%")return Ge.skipToEnd(),"comment";if(Pe=="}"||Pe=="]"){if(Be=We(Oe),Be)Be.closeBracket(Pe),Re(Oe,ht);else return"error";return"bracket"}else return Pe=="{"||Pe=="["?(Be=Se.DEFAULT,Be=new Be,Je(Oe,Be),"bracket"):/\d/.test(Pe)?(Ge.eatWhile(/[\w.%]/),"atom"):(Ge.eatWhile(/[\w\-_]/),Be=Ue(Oe),Be.name=="begin"&&(Be.argument=Ge.current()),Be.styleIdentifier())}function qe(Ge,Oe,Be){if(Ge.eatSpace())return null;if(Be&&Ge.match(Be))return Re(Oe,Qe),"keyword";if(Ge.match(/^\\[a-zA-Z@]+/))return"tag";if(Ge.match(/^[a-zA-Z]+/))return"variable-2";if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/]/)||Ge.match(/^[\^_&]/))return"tag";if(Ge.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ge.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var be=Ge.next();return be=="{"||be=="}"||be=="["||be=="]"||be=="("||be==")"?"bracket":be=="%"?(Ge.skipToEnd(),"comment"):"error"}function ht(Ge,Oe){var Be=Ge.peek(),be;return Be=="{"||Be=="["?(be=We(Oe),be.openBracket(Be),Ge.eat(Be),Re(Oe,Qe),"bracket"):/[ \t\r]/.test(Be)?(Ge.eat(Be),null):(Re(Oe,Qe),Ae(Oe),Qe(Ge,Oe))}return{startState:function(){var Ge=xe.inMathMode?function(Oe,Be){return qe(Oe,Be)}:Qe;return{cmdState:[],f:Ge}},copyState:function(Ge){return{cmdState:Ge.cmdState.slice(),f:Ge.f}},token:function(Ge,Oe){return Oe.f(Ge,Oe)},blankLine:function(Ge){Ge.f=Qe,Ge.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(_t,Pt,ne){(function(E){E(ne(89780))})(function(E){"use strict";var ve={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Je,We){var Ae=Je.indentUnit,Ue={},tt=We.htmlMode?ve:xe;for(var Se in tt)Ue[Se]=tt[Se];for(var Se in We)Ue[Se]=We[Se];var Re,Qe;function qe(Le,ze){function Ne(ct){return ze.tokenize=ct,ct(Le,ze)}var at=Le.next();if(at=="<")return Le.eat("!")?Le.eat("[")?Le.match("CDATA[")?Ne(Oe("atom","]]>")):null:Le.match("--")?Ne(Oe("comment","-->")):Le.match("DOCTYPE",!0,!0)?(Le.eatWhile(/[\w\._\-]/),Ne(Be(1))):null:Le.eat("?")?(Le.eatWhile(/[\w\._\-]/),ze.tokenize=Oe("meta","?>"),"meta"):(Re=Le.eat("/")?"closeTag":"openTag",ze.tokenize=ht,"tag bracket");if(at=="&"){var Bt;return Le.eat("#")?Le.eat("x")?Bt=Le.eatWhile(/[a-fA-F\d]/)&&Le.eat(";"):Bt=Le.eatWhile(/[\d]/)&&Le.eat(";"):Bt=Le.eatWhile(/[\w\.\-:]/)&&Le.eat(";"),Bt?"atom":"error"}else return Le.eatWhile(/[^&<]/),null}qe.isInText=!0;function ht(Le,ze){var Ne=Le.next();if(Ne==">"||Ne=="/"&&Le.eat(">"))return ze.tokenize=qe,Re=Ne==">"?"endTag":"selfcloseTag","tag bracket";if(Ne=="=")return Re="equals",null;if(Ne=="<"){ze.tokenize=qe,ze.state=it,ze.tagName=ze.tagStart=null;var at=ze.tokenize(Le,ze);return at?at+" tag error":"tag error"}else return/[\'\"]/.test(Ne)?(ze.tokenize=Ge(Ne),ze.stringStartCol=Le.column(),ze.tokenize(Le,ze)):(Le.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ge(Le){var ze=function(Ne,at){for(;!Ne.eol();)if(Ne.next()==Le){at.tokenize=ht;break}return"string"};return ze.isInAttribute=!0,ze}function Oe(Le,ze){return function(Ne,at){for(;!Ne.eol();){if(Ne.match(ze)){at.tokenize=qe;break}Ne.next()}return Le}}function Be(Le){return function(ze,Ne){for(var at;(at=ze.next())!=null;){if(at=="<")return Ne.tokenize=Be(Le+1),Ne.tokenize(ze,Ne);if(at==">")if(Le==1){Ne.tokenize=qe;break}else return Ne.tokenize=Be(Le-1),Ne.tokenize(ze,Ne)}return"meta"}}function be(Le,ze,Ne){this.prev=Le.context,this.tagName=ze,this.indent=Le.indented,this.startOfLine=Ne,(Ue.doNotIndent.hasOwnProperty(ze)||Le.context&&Le.context.noIndent)&&(this.noIndent=!0)}function Pe(Le){Le.context&&(Le.context=Le.context.prev)}function Ye(Le,ze){for(var Ne;;){if(!Le.context||(Ne=Le.context.tagName,!Ue.contextGrabbers.hasOwnProperty(Ne)||!Ue.contextGrabbers[Ne].hasOwnProperty(ze)))return;Pe(Le)}}function it(Le,ze,Ne){return Le=="openTag"?(Ne.tagStart=ze.column(),pe):Le=="closeTag"?Ke:it}function pe(Le,ze,Ne){return Le=="word"?(Ne.tagName=ze.current(),Qe="tag",At):Ue.allowMissingTagName&&Le=="endTag"?(Qe="tag bracket",At(Le,ze,Ne)):(Qe="error",pe)}function Ke(Le,ze,Ne){if(Le=="word"){var at=ze.current();return Ne.context&&Ne.context.tagName!=at&&Ue.implicitlyClosed.hasOwnProperty(Ne.context.tagName)&&Pe(Ne),Ne.context&&Ne.context.tagName==at||Ue.matchClosing===!1?(Qe="tag",nt):(Qe="tag error",Et)}else return Ue.allowMissingTagName&&Le=="endTag"?(Qe="tag bracket",nt(Le,ze,Ne)):(Qe="error",Et)}function nt(Le,ze,Ne){return Le!="endTag"?(Qe="error",nt):(Pe(Ne),it)}function Et(Le,ze,Ne){return Qe="error",nt(Le,ze,Ne)}function At(Le,ze,Ne){if(Le=="word")return Qe="attribute",st;if(Le=="endTag"||Le=="selfcloseTag"){var at=Ne.tagName,Bt=Ne.tagStart;return Ne.tagName=Ne.tagStart=null,Le=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(at)?Ye(Ne,at):(Ye(Ne,at),Ne.context=new be(Ne,at,Bt==Ne.indented)),it}return Qe="error",At}function st(Le,ze,Ne){return Le=="equals"?Xe:(Ue.allowMissing||(Qe="error"),At(Le,ze,Ne))}function Xe(Le,ze,Ne){return Le=="string"?ut:Le=="word"&&Ue.allowUnquoted?(Qe="string",At):(Qe="error",At(Le,ze,Ne))}function ut(Le,ze,Ne){return Le=="string"?ut:At(Le,ze,Ne)}return{startState:function(Le){var ze={tokenize:qe,state:it,indented:Le||0,tagName:null,tagStart:null,context:null};return Le!=null&&(ze.baseIndent=Le),ze},token:function(Le,ze){if(!ze.tagName&&Le.sol()&&(ze.indented=Le.indentation()),Le.eatSpace())return null;Re=null;var Ne=ze.tokenize(Le,ze);return(Ne||Re)&&Ne!="comment"&&(Qe=null,ze.state=ze.state(Re||Ne,Le,ze),Qe&&(Ne=Qe=="error"?Ne+" error":Qe)),Ne},indent:function(Le,ze,Ne){var at=Le.context;if(Le.tokenize.isInAttribute)return Le.tagStart==Le.indented?Le.stringStartCol+1:Le.indented+Ae;if(at&&at.noIndent)return E.Pass;if(Le.tokenize!=ht&&Le.tokenize!=qe)return Ne?Ne.match(/^(\s*)/)[0].length:0;if(Le.tagName)return Ue.multilineTagIndentPastTag!==!1?Le.tagStart+Le.tagName.length+2:Le.tagStart+Ae*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/$/,blockCommentStart:"",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(Le){Le.state==Xe&&(Le.state=At)},xmlCurrentTag:function(Le){return Le.tagName?{name:Le.tagName,close:Le.type=="closeTag"}:null},xmlCurrentContext:function(Le){for(var ze=[],Ne=Le.context;Ne;Ne=Ne.prev)Ne.tagName&&ze.push(Ne.tagName);return ze.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(_t,Pt,ne){var E,ve;(function(xe,Je){_t.exports=Je(xe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ne.g!="undefined"?ne.g:this,function(xe){"use strict";xe=xe||{};var Je=xe.Base64,We="2.6.4",Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ue=function(Ne){for(var at={},Bt=0,ct=Ne.length;Bt>>6)+tt(128|at&63):tt(224|at>>>12&15)+tt(128|at>>>6&63)+tt(128|at&63)}else{var at=65536+(Ne.charCodeAt(0)-55296)*1024+(Ne.charCodeAt(1)-56320);return tt(240|at>>>18&7)+tt(128|at>>>12&63)+tt(128|at>>>6&63)+tt(128|at&63)}},Re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Qe=function(Ne){return Ne.replace(Re,Se)},qe=function(Ne){var at=[0,2,1][Ne.length%3],Bt=Ne.charCodeAt(0)<<16|(Ne.length>1?Ne.charCodeAt(1):0)<<8|(Ne.length>2?Ne.charCodeAt(2):0),ct=[Ae.charAt(Bt>>>18),Ae.charAt(Bt>>>12&63),at>=2?"=":Ae.charAt(Bt>>>6&63),at>=1?"=":Ae.charAt(Bt&63)];return ct.join("")},ht=xe.btoa&&typeof xe.btoa=="function"?function(Ne){return xe.btoa(Ne)}:function(Ne){if(Ne.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ne.replace(/[\s\S]{1,3}/g,qe)},Ge=function(Ne){return ht(Qe(String(Ne)))},Oe=function(Ne){return Ne.replace(/[+\/]/g,function(at){return at=="+"?"-":"_"}).replace(/=/g,"")},Be=function(Ne,at){return at?Oe(Ge(Ne)):Ge(Ne)},be=function(Ne){return Be(Ne,!0)},Pe;xe.Uint8Array&&(Pe=function(Ne,at){for(var Bt="",ct=0,$e=Ne.length;ct<$e;ct+=3){var Ft=Ne[ct],De=Ne[ct+1],ge=Ne[ct+2],lt=Ft<<16|De<<8|ge;Bt+=Ae.charAt(lt>>>18)+Ae.charAt(lt>>>12&63)+(typeof De!="undefined"?Ae.charAt(lt>>>6&63):"=")+(typeof ge!="undefined"?Ae.charAt(lt&63):"=")}return at?Oe(Bt):Bt});var Ye=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,it=function(Ne){switch(Ne.length){case 4:var at=(7&Ne.charCodeAt(0))<<18|(63&Ne.charCodeAt(1))<<12|(63&Ne.charCodeAt(2))<<6|63&Ne.charCodeAt(3),Bt=at-65536;return tt((Bt>>>10)+55296)+tt((Bt&1023)+56320);case 3:return tt((15&Ne.charCodeAt(0))<<12|(63&Ne.charCodeAt(1))<<6|63&Ne.charCodeAt(2));default:return tt((31&Ne.charCodeAt(0))<<6|63&Ne.charCodeAt(1))}},pe=function(Ne){return Ne.replace(Ye,it)},Ke=function(Ne){var at=Ne.length,Bt=at%4,ct=(at>0?Ue[Ne.charAt(0)]<<18:0)|(at>1?Ue[Ne.charAt(1)]<<12:0)|(at>2?Ue[Ne.charAt(2)]<<6:0)|(at>3?Ue[Ne.charAt(3)]:0),$e=[tt(ct>>>16),tt(ct>>>8&255),tt(ct&255)];return $e.length-=[0,0,2,1][Bt],$e.join("")},nt=xe.atob&&typeof xe.atob=="function"?function(Ne){return xe.atob(Ne)}:function(Ne){return Ne.replace(/\S{1,4}/g,Ke)},Et=function(Ne){return nt(String(Ne).replace(/[^A-Za-z0-9\+\/]/g,""))},At=function(Ne){return pe(nt(Ne))},st=function(Ne){return String(Ne).replace(/[-_]/g,function(at){return at=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function(Ne){return At(st(Ne))},ut;xe.Uint8Array&&(ut=function(Ne){return Uint8Array.from(Et(st(Ne)),function(at){return at.charCodeAt(0)})});var Le=function(){var Ne=xe.Base64;return xe.Base64=Je,Ne};if(xe.Base64={VERSION:We,atob:Et,btoa:ht,fromBase64:Xe,toBase64:Be,utob:Qe,encode:Be,encodeURI:be,btou:pe,decode:Xe,noConflict:Le,fromUint8Array:Pe,toUint8Array:ut},typeof Object.defineProperty=="function"){var ze=function(Ne){return{value:Ne,enumerable:!1,writable:!0,configurable:!0}};xe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ze(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",ze(function(Ne){return Be(this,Ne)})),Object.defineProperty(String.prototype,"toBase64URI",ze(function(){return Be(this,!0)}))}}return xe.Meteor&&(Base64=xe.Base64),_t.exports?_t.exports.Base64=xe.Base64:(E=[],ve=function(){return xe.Base64}.apply(Pt,E),ve!==void 0&&(_t.exports=ve)),{Base64:xe.Base64}})},2859:function(_t,Pt,ne){"use strict";ne.d(Pt,{hP:function(){return mn}});var E=function(he,se){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ce){ae.__proto__=ce}||function(ae,ce){for(var me in ce)Object.prototype.hasOwnProperty.call(ce,me)&&(ae[me]=ce[me])})(he,se)};function ve(he,se){function ae(){this.constructor=he}E(he,se),he.prototype=se===null?Object.create(se):(ae.prototype=se.prototype,new ae)}function xe(he,se,ae,ce){return new(ae||(ae=Promise))(function(me,le){function ot(kn){try{on(ce.next(kn))}catch(wn){le(wn)}}function Ht(kn){try{on(ce.throw(kn))}catch(wn){le(wn)}}function on(kn){var wn;kn.done?me(kn.value):(wn=kn.value,wn instanceof ae?wn:new ae(function(Xn){Xn(wn)})).then(ot,Ht)}on((ce=ce.apply(he,se||[])).next())})}function Je(he,se){var ae,ce,me,le,ot={label:0,sent:function(){if(1&me[0])throw me[1];return me[1]},trys:[],ops:[]};return le={next:Ht(0),throw:Ht(1),return:Ht(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ht(on){return function(kn){return function(wn){if(ae)throw new TypeError("Generator is already executing.");for(;ot;)try{if(ae=1,ce&&(me=2&wn[0]?ce.return:wn[0]?ce.throw||((me=ce.return)&&me.call(ce),0):ce.next)&&!(me=me.call(ce,wn[1])).done)return me;switch(ce=0,me&&(wn=[2&wn[0],me.value]),wn[0]){case 0:case 1:me=wn;break;case 4:return ot.label++,{value:wn[1],done:!1};case 5:ot.label++,ce=wn[1],wn=[0];continue;case 7:wn=ot.ops.pop(),ot.trys.pop();continue;default:if(me=ot.trys,!((me=me.length>0&&me[me.length-1])||wn[0]!==6&&wn[0]!==2)){ot=0;continue}if(wn[0]===3&&(!me||wn[1]>me[0]&&wn[1]0&&y.prevInput=="\u200B"?_r(x,lr)(x):vr++<10?b.detectingSelectAll=setTimeout(Zr,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Zr,200)}}if(We&&Ae>=9&&ln(),Ke){Sr(a);var Kn=function(){Qr(window,"mouseup",Kn),setTimeout($t,20)};Jn(window,"mouseup",Kn)}else setTimeout($t,50)},Ol.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ol.prototype.setUneditable=function(){},Ol.prototype.needsContentAttribute=!1;function mc(a,y){if(y=y?Ft(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Te();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=Ee.getValue()}var z;if(a.form&&(Jn(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var oe=a.form;z=oe.submit;try{var fe=oe.submit=function(){b(),oe.submit=z,oe.submit(),oe.submit=fe}}catch(Fe){}}y.finishInit=function(Fe){Fe.save=b,Fe.getTextArea=function(){return a},Fe.toTextArea=function(){Fe.toTextArea=isNaN,b(),a.parentNode.removeChild(Fe.getWrapperElement()),a.style.display="",a.form&&(Qr(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var Ee=wl(function(Fe){return a.parentNode.insertBefore(Fe,a.nextSibling)},y);return Ee}function Bc(a){a.off=Qr,a.on=Jn,a.wheelEventPixels=Wi,a.Doc=Fa,a.splitLines=Ja,a.countColumn=De,a.findColumn=Kt,a.isWordChar=ce,a.Pass=yt,a.signal=ur,a.Line=cr,a.changeEnd=jo,a.scrollbarModel=dr,a.Pos=An,a.cmpPos=rn,a.modes=ea,a.mimeModes=Ir,a.resolveMode=Un,a.getMode=Lt,a.modeExtensions=Dn,a.extendMode=rr,a.copyState=Rn,a.startState=wr,a.innerMode=ar,a.commands=ii,a.keyMap=Go,a.keyName=Bo,a.isModifierKey=Vl,a.lookupKey=El,a.normalizeKeyMap=rs,a.StringStream=er,a.SharedTextMarker=Lo,a.TextMarker=ol,a.LineWidget=Qo,a.e_preventDefault=Br,a.e_stopPropagation=Xa,a.e_stop=Sr,a.addClass=rt,a.contains=ze,a.rmClass=bt,a.keyNames=Za}Mc(wl),Lc(wl);var vc="iter insert remove copy getEditor constructor".split(" ");for(var Hu in Fa.prototype)Fa.prototype.hasOwnProperty(Hu)&<(vc,Hu)<0&&(wl.prototype[Hu]=function(a){return function(){return a.apply(this.doc,arguments)}}(Fa.prototype[Hu]));return Er(Fa),wl.inputStyles={textarea:Ol,contenteditable:qo},wl.defineMode=function(a){!wl.defaults.mode&&a!="null"&&(wl.defaults.mode=a),qt.apply(this,arguments)},wl.defineMIME=Ut,wl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),wl.defineMIME("text/plain","null"),wl.defineExtension=function(a,y){wl.prototype[a]=y},wl.defineDocExtension=function(a,y){Fa.prototype[a]=y},wl.fromTextArea=mc,Bc(wl),wl.version="5.58.2",wl})},25419:function(Bt,_t,ne){(function(E){E(ne(89780),ne(15525),ne(98101))})(function(E){"use strict";E.defineMode("markdown",function(ve,xe){var Je=E.getMode(ve,"text/html"),We=Je.name=="null";function Ae(De){if(E.findModeByName){var ge=E.findModeByName(De);ge&&(De=ge.mime||ge.mimes[0])}var lt=E.getMode(ve,De);return lt.name=="null"?null:lt}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var Ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var tt in Ue)Ue.hasOwnProperty(tt)&&xe.tokenTypeOverrides[tt]&&(Ue[tt]=xe.tokenTypeOverrides[tt]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,He=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Qe=/^\[(x| )\](?=\s)/i,qe=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,pt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ge=/^[^#!\[\]*_\\<>` "'(~:]+/,Oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Be=/^\s*\[[^\]]+?\]:.*$/,be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ne=" ";function Ye(De,ge,lt){return ge.f=ge.inline=lt,lt(De,ge)}function it(De,ge,lt){return ge.f=ge.block=lt,lt(De,ge)}function pe(De){return!De||!/\S/.test(De.string)}function Ke(De){if(De.linkTitle=!1,De.linkHref=!1,De.linkText=!1,De.em=!1,De.strong=!1,De.strikethrough=!1,De.quote=0,De.indentedCode=!1,De.f==bt){var ge=We;if(!ge){var lt=E.innerMode(Je,De.htmlState);ge=lt.mode.name=="xml"&<.state.tagStart===null&&!lt.state.context&<.state.tokenize.isInText}ge&&(De.f=ht,De.block=nt,De.htmlState=null)}return De.trailingSpace=0,De.trailingSpaceNewLine=!1,De.prevLine=De.thisLine,De.thisLine={stream:null},null}function nt(De,ge){var lt=De.column()===ge.indentation,Et=pe(ge.prevLine.stream),yt=ge.indentedCode,Ze=ge.prevLine.hr,Ve=ge.list!==!1,ft=(ge.listStack[ge.listStack.length-1]||0)+3;ge.indentedCode=!1;var Kt=ge.indentation;if(ge.indentationDiff===null&&(ge.indentationDiff=ge.indentation,Ve)){for(ge.list=null;Kt=4&&(yt||ge.prevLine.fencedCodeEnd||ge.prevLine.header||Et))return De.skipToEnd(),ge.indentedCode=!0,Ue.code;if(De.eatSpace())return null;if(lt&&ge.indentation<=ft&&(ct=De.match(qe))&&ct[1].length<=6)return ge.quote=0,ge.header=ct[1].length,ge.thisLine.header=!0,xe.highlightFormatting&&(ge.formatting="header"),ge.f=ge.inline,ut(ge);if(ge.indentation<=ft&&De.eat(">"))return ge.quote=lt?1:ge.quote+1,xe.highlightFormatting&&(ge.formatting="quote"),De.eatSpace(),ut(ge);if(!dn&&!ge.setext&<&&ge.indentation<=ft&&(ct=De.match(He))){var Nt=ct[1]?"ol":"ul";return ge.indentation=Kt+De.current().length,ge.list=!0,ge.quote=0,ge.listStack.push(ge.indentation),ge.em=!1,ge.strong=!1,ge.code=!1,ge.strikethrough=!1,xe.taskLists&&De.match(Qe,!1)&&(ge.taskList=!0),ge.f=ge.inline,xe.highlightFormatting&&(ge.formatting=["list","list-"+Nt]),ut(ge)}else{if(lt&&ge.indentation<=ft&&(ct=De.match(Oe,!0)))return ge.quote=0,ge.fencedEndRE=new RegExp(ct[1]+"+ *$"),ge.localMode=xe.fencedCodeBlockHighlighting&&Ae(ct[2]||xe.fencedCodeBlockDefaultMode),ge.localMode&&(ge.localState=E.startState(ge.localMode)),ge.f=ge.block=At,xe.highlightFormatting&&(ge.formatting="code-block"),ge.code=-1,ut(ge);if(ge.setext||(!kt||!Ve)&&!ge.quote&&ge.list===!1&&!ge.code&&!dn&&!Be.test(De.string)&&(ct=De.lookAhead(1))&&(ct=ct.match(pt)))return ge.setext?(ge.header=ge.setext,ge.setext=0,De.skipToEnd(),xe.highlightFormatting&&(ge.formatting="header")):(ge.header=ct[0].charAt(0)=="="?1:2,ge.setext=ge.header),ge.thisLine.header=!0,ge.f=ge.inline,ut(ge);if(dn)return De.skipToEnd(),ge.hr=!0,ge.thisLine.hr=!0,Ue.hr;if(De.peek()==="[")return Ye(De,ge,Pt)}return Ye(De,ge,ge.inline)}function bt(De,ge){var lt=Je.token(De,ge.htmlState);if(!We){var Et=E.innerMode(Je,ge.htmlState);(Et.mode.name=="xml"&&Et.state.tagStart===null&&!Et.state.context&&Et.state.tokenize.isInText||ge.md_inside&&De.current().indexOf(">")>-1)&&(ge.f=ht,ge.block=nt,ge.htmlState=null)}return lt}function At(De,ge){var lt=ge.listStack[ge.listStack.length-1]||0,Et=ge.indentation=De.quote?ge.push(Ue.formatting+"-"+De.formatting[lt]+"-"+De.quote):ge.push("error"))}if(De.taskOpen)return ge.push("meta"),ge.length?ge.join(" "):null;if(De.taskClosed)return ge.push("property"),ge.length?ge.join(" "):null;if(De.linkHref?ge.push(Ue.linkHref,"url"):(De.strong&&ge.push(Ue.strong),De.em&&ge.push(Ue.em),De.strikethrough&&ge.push(Ue.strikethrough),De.emoji&&ge.push(Ue.emoji),De.linkText&&ge.push(Ue.linkText),De.code&&ge.push(Ue.code),De.image&&ge.push(Ue.image),De.imageAltText&&ge.push(Ue.imageAltText,"link"),De.imageMarker&&ge.push(Ue.imageMarker)),De.header&&ge.push(Ue.header,Ue.header+"-"+De.header),De.quote&&(ge.push(Ue.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=De.quote?ge.push(Ue.quote+"-"+De.quote):ge.push(Ue.quote+"-"+xe.maxBlockquoteDepth)),De.list!==!1){var Et=(De.listStack.length-1)%3;Et?Et===1?ge.push(Ue.list2):ge.push(Ue.list3):ge.push(Ue.list1)}return De.trailingSpaceNewLine?ge.push("trailing-space-new-line"):De.trailingSpace&&ge.push("trailing-space-"+(De.trailingSpace%2?"a":"b")),ge.length?ge.join(" "):null}function Xe(De,ge){if(De.match(Ge,!0))return ut(ge)}function ht(De,ge){var lt=ge.text(De,ge);if(typeof lt!="undefined")return lt;if(ge.list)return ge.list=null,ut(ge);if(ge.taskList){var Et=De.match(Qe,!0)[1]===" ";return Et?ge.taskOpen=!0:ge.taskClosed=!0,xe.highlightFormatting&&(ge.formatting="task"),ge.taskList=!1,ut(ge)}if(ge.taskOpen=!1,ge.taskClosed=!1,ge.header&&De.match(/^#+$/,!0))return xe.highlightFormatting&&(ge.formatting="header"),ut(ge);var yt=De.next();if(ge.linkTitle){ge.linkTitle=!1;var Ze=yt;yt==="("&&(Ze=")"),Ze=(Ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ve="^\\s*(?:[^"+Ze+"\\\\]+|\\\\\\\\|\\\\.)"+Ze;if(De.match(new RegExp(Ve),!0))return Ue.linkHref}if(yt==="`"){var ft=ge.formatting;xe.highlightFormatting&&(ge.formatting="code"),De.eatWhile("`");var Kt=De.current().length;if(ge.code==0&&(!ge.quote||Kt==1))return ge.code=Kt,ut(ge);if(Kt==ge.code){var kt=ut(ge);return ge.code=0,kt}else return ge.formatting=ft,ut(ge)}else if(ge.code)return ut(ge);if(yt==="\\"&&(De.next(),xe.highlightFormatting)){var dn=ut(ge),ct=Ue.formatting+"-escape";return dn?dn+" "+ct:ct}if(yt==="!"&&De.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ge.imageMarker=!0,ge.image=!0,xe.highlightFormatting&&(ge.formatting="image"),ut(ge);if(yt==="["&&ge.imageMarker&&De.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ge.imageMarker=!1,ge.imageAltText=!0,xe.highlightFormatting&&(ge.formatting="image"),ut(ge);if(yt==="]"&&ge.imageAltText){xe.highlightFormatting&&(ge.formatting="image");var dn=ut(ge);return ge.imageAltText=!1,ge.image=!1,ge.inline=ge.f=ze,dn}if(yt==="["&&!ge.image)return ge.linkText&&De.match(/^.*?\]/)||(ge.linkText=!0,xe.highlightFormatting&&(ge.formatting="link")),ut(ge);if(yt==="]"&&ge.linkText){xe.highlightFormatting&&(ge.formatting="link");var dn=ut(ge);return ge.linkText=!1,ge.inline=ge.f=De.match(/\(.*?\)| ?\[.*?\]/,!1)?ze:ht,dn}if(yt==="<"&&De.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Pe,xe.highlightFormatting&&(ge.formatting="link");var dn=ut(ge);return dn?dn+=" ":dn="",dn+Ue.linkInline}if(yt==="<"&&De.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Pe,xe.highlightFormatting&&(ge.formatting="link");var dn=ut(ge);return dn?dn+=" ":dn="",dn+Ue.linkEmail}if(xe.xml&&yt==="<"&&De.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Nt=De.string.indexOf(">",De.pos);if(Nt!=-1){var mn=De.string.substring(De.start,Nt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mn)&&(ge.md_inside=!0)}return De.backUp(1),ge.htmlState=E.startState(Je),it(De,ge,bt)}if(xe.xml&&yt==="<"&&De.match(/^\/\w*?>/))return ge.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var he=1,se=De.pos==1?" ":De.string.charAt(De.pos-2);he<3&&De.eat(yt);)he++;var ae=De.peek()||" ",ce=!/\s/.test(ae)&&(!be.test(ae)||/\s/.test(se)||be.test(se)),me=!/\s/.test(se)&&(!be.test(se)||/\s/.test(ae)||be.test(ae)),le=null,ot=null;if(he%2&&(!ge.em&&ce&&(yt==="*"||!me||be.test(se))?le=!0:ge.em==yt&&me&&(yt==="*"||!ce||be.test(ae))&&(le=!1)),he>1&&(!ge.strong&&ce&&(yt==="*"||!me||be.test(se))?ot=!0:ge.strong==yt&&me&&(yt==="*"||!ce||be.test(ae))&&(ot=!1)),ot!=null||le!=null){xe.highlightFormatting&&(ge.formatting=le==null?"strong":ot==null?"em":"strong em"),le===!0&&(ge.em=yt),ot===!0&&(ge.strong=yt);var kt=ut(ge);return le===!1&&(ge.em=!1),ot===!1&&(ge.strong=!1),kt}}else if(yt===" "&&(De.eat("*")||De.eat("_"))){if(De.peek()===" ")return ut(ge);De.backUp(1)}if(xe.strikethrough){if(yt==="~"&&De.eatWhile(yt)){if(ge.strikethrough){xe.highlightFormatting&&(ge.formatting="strikethrough");var kt=ut(ge);return ge.strikethrough=!1,kt}else if(De.match(/^[^\s]/,!1))return ge.strikethrough=!0,xe.highlightFormatting&&(ge.formatting="strikethrough"),ut(ge)}else if(yt===" "&&De.match(/^~~/,!0)){if(De.peek()===" ")return ut(ge);De.backUp(2)}}if(xe.emoji&&yt===":"&&De.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ge.emoji=!0,xe.highlightFormatting&&(ge.formatting="emoji");var Ht=ut(ge);return ge.emoji=!1,Ht}return yt===" "&&(De.match(/^ +$/,!1)?ge.trailingSpace++:ge.trailingSpace&&(ge.trailingSpaceNewLine=!0)),ut(ge)}function Pe(De,ge){var lt=De.next();if(lt===">"){ge.f=ge.inline=ht,xe.highlightFormatting&&(ge.formatting="link");var Et=ut(ge);return Et?Et+=" ":Et="",Et+Ue.linkInline}return De.match(/^[^>]+/,!0),Ue.linkInline}function ze(De,ge){if(De.eatSpace())return null;var lt=De.next();return lt==="("||lt==="["?(ge.f=ge.inline=rt(lt==="("?")":"]"),xe.highlightFormatting&&(ge.formatting="link-string"),ge.linkHref=!0,ut(ge)):"error"}var Te={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function rt(De){return function(ge,lt){var Et=ge.next();if(Et===De){lt.f=lt.inline=ht,xe.highlightFormatting&&(lt.formatting="link-string");var yt=ut(lt);return lt.linkHref=!1,yt}return ge.match(Te[De]),lt.linkHref=!0,ut(lt)}}function Pt(De,ge){return De.match(/^([^\]\\]|\\.)*\]:/,!1)?(ge.f=st,De.next(),xe.highlightFormatting&&(ge.formatting="link"),ge.linkText=!0,ut(ge)):Ye(De,ge,ht)}function st(De,ge){if(De.match(/^\]:/,!0)){ge.f=ge.inline=et,xe.highlightFormatting&&(ge.formatting="link");var lt=ut(ge);return ge.linkText=!1,lt}return De.match(/^([^\]\\]|\\.)+/,!0),Ue.linkText}function et(De,ge){return De.eatSpace()?null:(De.match(/^[^\s]+/,!0),De.peek()===void 0?ge.linkTitle=!0:De.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ge.f=ge.inline=ht,Ue.linkHref+" url")}var Ft={startState:function(){return{f:nt,prevLine:{stream:null},thisLine:{stream:null},block:nt,htmlState:null,indentation:0,inline:ht,text:Xe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(De){return{f:De.f,prevLine:De.prevLine,thisLine:De.thisLine,block:De.block,htmlState:De.htmlState&&E.copyState(Je,De.htmlState),indentation:De.indentation,localMode:De.localMode,localState:De.localMode?E.copyState(De.localMode,De.localState):null,inline:De.inline,text:De.text,formatting:!1,linkText:De.linkText,linkTitle:De.linkTitle,linkHref:De.linkHref,code:De.code,em:De.em,strong:De.strong,strikethrough:De.strikethrough,emoji:De.emoji,header:De.header,setext:De.setext,hr:De.hr,taskList:De.taskList,list:De.list,listStack:De.listStack.slice(0),quote:De.quote,indentedCode:De.indentedCode,trailingSpace:De.trailingSpace,trailingSpaceNewLine:De.trailingSpaceNewLine,md_inside:De.md_inside,fencedEndRE:De.fencedEndRE}},token:function(De,ge){if(ge.formatting=!1,De!=ge.thisLine.stream){if(ge.header=0,ge.hr=!1,De.match(/^\s*$/,!0))return Ke(ge),null;if(ge.prevLine=ge.thisLine,ge.thisLine={stream:De},ge.taskList=!1,ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,!ge.localState&&(ge.f=ge.block,ge.f!=bt)){var lt=De.match(/^\s*/,!0)[0].replace(/\t/g,Ne).length;if(ge.indentation=lt,ge.indentationDiff=null,lt>0)return null}}return ge.f(De,ge)},innerMode:function(De){return De.block==bt?{state:De.htmlState,mode:Je}:De.localState?{state:De.localState,mode:De.localMode}:{state:De,mode:Ft}},indent:function(De,ge,lt){return De.block==bt&&Je.indent?Je.indent(De.htmlState,ge,lt):De.localState&&De.localMode.indent?De.localMode.indent(De.localState,ge,lt):E.Pass},blankLine:Ke,getType:ut,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ft},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(Bt,_t,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ve=0;ve-1&&Je.substring(Ue+1,Je.length);if(tt)return E.findModeByExtension(tt)},E.findModeByName=function(Je){Je=Je.toLowerCase();for(var We=0;We0?Ge.cmdState[Ge.cmdState.length-1]:null}function Ae(Ge){var Oe=Ge.cmdState.pop();Oe&&Oe.closeBracket()}function Ue(Ge){for(var Oe=Ge.cmdState,Be=Oe.length-1;Be>=0;Be--){var be=Oe[Be];if(be.name!="DEFAULT")return be}return{styleIdentifier:function(){return null}}}function tt(Ge,Oe,Be){return function(){this.name=Ge,this.bracketNo=0,this.style=Oe,this.styles=Be,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=tt("importmodule","tag",["string","builtin"]),Se.documentclass=tt("documentclass","tag",["","atom"]),Se.usepackage=tt("usepackage","tag",["atom"]),Se.begin=tt("begin","tag",["atom"]),Se.end=tt("end","tag",["atom"]),Se.label=tt("label","tag",["atom"]),Se.ref=tt("ref","tag",["atom"]),Se.eqref=tt("eqref","tag",["atom"]),Se.cite=tt("cite","tag",["atom"]),Se.bibitem=tt("bibitem","tag",["atom"]),Se.Bibitem=tt("Bibitem","tag",["atom"]),Se.RBibitem=tt("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function He(Ge,Oe){Ge.f=Oe}function Qe(Ge,Oe){var Be;if(Ge.match(/^\\[a-zA-Z@]+/)){var be=Ge.current().slice(1);return Be=Se.hasOwnProperty(be)?Se[be]:Se.DEFAULT,Be=new Be,Je(Oe,Be),He(Oe,pt),Be.style}if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/\\]/))return"tag";if(Ge.match("\\["))return He(Oe,function(Ye,it){return qe(Ye,it,"\\]")}),"keyword";if(Ge.match("\\("))return He(Oe,function(Ye,it){return qe(Ye,it,"\\)")}),"keyword";if(Ge.match("$$"))return He(Oe,function(Ye,it){return qe(Ye,it,"$$")}),"keyword";if(Ge.match("$"))return He(Oe,function(Ye,it){return qe(Ye,it,"$")}),"keyword";var Ne=Ge.next();if(Ne=="%")return Ge.skipToEnd(),"comment";if(Ne=="}"||Ne=="]"){if(Be=We(Oe),Be)Be.closeBracket(Ne),He(Oe,pt);else return"error";return"bracket"}else return Ne=="{"||Ne=="["?(Be=Se.DEFAULT,Be=new Be,Je(Oe,Be),"bracket"):/\d/.test(Ne)?(Ge.eatWhile(/[\w.%]/),"atom"):(Ge.eatWhile(/[\w\-_]/),Be=Ue(Oe),Be.name=="begin"&&(Be.argument=Ge.current()),Be.styleIdentifier())}function qe(Ge,Oe,Be){if(Ge.eatSpace())return null;if(Be&&Ge.match(Be))return He(Oe,Qe),"keyword";if(Ge.match(/^\\[a-zA-Z@]+/))return"tag";if(Ge.match(/^[a-zA-Z]+/))return"variable-2";if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/]/)||Ge.match(/^[\^_&]/))return"tag";if(Ge.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ge.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var be=Ge.next();return be=="{"||be=="}"||be=="["||be=="]"||be=="("||be==")"?"bracket":be=="%"?(Ge.skipToEnd(),"comment"):"error"}function pt(Ge,Oe){var Be=Ge.peek(),be;return Be=="{"||Be=="["?(be=We(Oe),be.openBracket(Be),Ge.eat(Be),He(Oe,Qe),"bracket"):/[ \t\r]/.test(Be)?(Ge.eat(Be),null):(He(Oe,Qe),Ae(Oe),Qe(Ge,Oe))}return{startState:function(){var Ge=xe.inMathMode?function(Oe,Be){return qe(Oe,Be)}:Qe;return{cmdState:[],f:Ge}},copyState:function(Ge){return{cmdState:Ge.cmdState.slice(),f:Ge.f}},token:function(Ge,Oe){return Oe.f(Ge,Oe)},blankLine:function(Ge){Ge.f=Qe,Ge.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(Bt,_t,ne){(function(E){E(ne(89780))})(function(E){"use strict";var ve={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Je,We){var Ae=Je.indentUnit,Ue={},tt=We.htmlMode?ve:xe;for(var Se in tt)Ue[Se]=tt[Se];for(var Se in We)Ue[Se]=We[Se];var He,Qe;function qe(Pe,ze){function Te(st){return ze.tokenize=st,st(Pe,ze)}var rt=Pe.next();if(rt=="<")return Pe.eat("!")?Pe.eat("[")?Pe.match("CDATA[")?Te(Oe("atom","]]>")):null:Pe.match("--")?Te(Oe("comment","-->")):Pe.match("DOCTYPE",!0,!0)?(Pe.eatWhile(/[\w\._\-]/),Te(Be(1))):null:Pe.eat("?")?(Pe.eatWhile(/[\w\._\-]/),ze.tokenize=Oe("meta","?>"),"meta"):(He=Pe.eat("/")?"closeTag":"openTag",ze.tokenize=pt,"tag bracket");if(rt=="&"){var Pt;return Pe.eat("#")?Pe.eat("x")?Pt=Pe.eatWhile(/[a-fA-F\d]/)&&Pe.eat(";"):Pt=Pe.eatWhile(/[\d]/)&&Pe.eat(";"):Pt=Pe.eatWhile(/[\w\.\-:]/)&&Pe.eat(";"),Pt?"atom":"error"}else return Pe.eatWhile(/[^&<]/),null}qe.isInText=!0;function pt(Pe,ze){var Te=Pe.next();if(Te==">"||Te=="/"&&Pe.eat(">"))return ze.tokenize=qe,He=Te==">"?"endTag":"selfcloseTag","tag bracket";if(Te=="=")return He="equals",null;if(Te=="<"){ze.tokenize=qe,ze.state=it,ze.tagName=ze.tagStart=null;var rt=ze.tokenize(Pe,ze);return rt?rt+" tag error":"tag error"}else return/[\'\"]/.test(Te)?(ze.tokenize=Ge(Te),ze.stringStartCol=Pe.column(),ze.tokenize(Pe,ze)):(Pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ge(Pe){var ze=function(Te,rt){for(;!Te.eol();)if(Te.next()==Pe){rt.tokenize=pt;break}return"string"};return ze.isInAttribute=!0,ze}function Oe(Pe,ze){return function(Te,rt){for(;!Te.eol();){if(Te.match(ze)){rt.tokenize=qe;break}Te.next()}return Pe}}function Be(Pe){return function(ze,Te){for(var rt;(rt=ze.next())!=null;){if(rt=="<")return Te.tokenize=Be(Pe+1),Te.tokenize(ze,Te);if(rt==">")if(Pe==1){Te.tokenize=qe;break}else return Te.tokenize=Be(Pe-1),Te.tokenize(ze,Te)}return"meta"}}function be(Pe,ze,Te){this.prev=Pe.context,this.tagName=ze,this.indent=Pe.indented,this.startOfLine=Te,(Ue.doNotIndent.hasOwnProperty(ze)||Pe.context&&Pe.context.noIndent)&&(this.noIndent=!0)}function Ne(Pe){Pe.context&&(Pe.context=Pe.context.prev)}function Ye(Pe,ze){for(var Te;;){if(!Pe.context||(Te=Pe.context.tagName,!Ue.contextGrabbers.hasOwnProperty(Te)||!Ue.contextGrabbers[Te].hasOwnProperty(ze)))return;Ne(Pe)}}function it(Pe,ze,Te){return Pe=="openTag"?(Te.tagStart=ze.column(),pe):Pe=="closeTag"?Ke:it}function pe(Pe,ze,Te){return Pe=="word"?(Te.tagName=ze.current(),Qe="tag",At):Ue.allowMissingTagName&&Pe=="endTag"?(Qe="tag bracket",At(Pe,ze,Te)):(Qe="error",pe)}function Ke(Pe,ze,Te){if(Pe=="word"){var rt=ze.current();return Te.context&&Te.context.tagName!=rt&&Ue.implicitlyClosed.hasOwnProperty(Te.context.tagName)&&Ne(Te),Te.context&&Te.context.tagName==rt||Ue.matchClosing===!1?(Qe="tag",nt):(Qe="tag error",bt)}else return Ue.allowMissingTagName&&Pe=="endTag"?(Qe="tag bracket",nt(Pe,ze,Te)):(Qe="error",bt)}function nt(Pe,ze,Te){return Pe!="endTag"?(Qe="error",nt):(Ne(Te),it)}function bt(Pe,ze,Te){return Qe="error",nt(Pe,ze,Te)}function At(Pe,ze,Te){if(Pe=="word")return Qe="attribute",ut;if(Pe=="endTag"||Pe=="selfcloseTag"){var rt=Te.tagName,Pt=Te.tagStart;return Te.tagName=Te.tagStart=null,Pe=="selfcloseTag"||Ue.autoSelfClosers.hasOwnProperty(rt)?Ye(Te,rt):(Ye(Te,rt),Te.context=new be(Te,rt,Pt==Te.indented)),it}return Qe="error",At}function ut(Pe,ze,Te){return Pe=="equals"?Xe:(Ue.allowMissing||(Qe="error"),At(Pe,ze,Te))}function Xe(Pe,ze,Te){return Pe=="string"?ht:Pe=="word"&&Ue.allowUnquoted?(Qe="string",At):(Qe="error",At(Pe,ze,Te))}function ht(Pe,ze,Te){return Pe=="string"?ht:At(Pe,ze,Te)}return{startState:function(Pe){var ze={tokenize:qe,state:it,indented:Pe||0,tagName:null,tagStart:null,context:null};return Pe!=null&&(ze.baseIndent=Pe),ze},token:function(Pe,ze){if(!ze.tagName&&Pe.sol()&&(ze.indented=Pe.indentation()),Pe.eatSpace())return null;He=null;var Te=ze.tokenize(Pe,ze);return(Te||He)&&Te!="comment"&&(Qe=null,ze.state=ze.state(He||Te,Pe,ze),Qe&&(Te=Qe=="error"?Te+" error":Qe)),Te},indent:function(Pe,ze,Te){var rt=Pe.context;if(Pe.tokenize.isInAttribute)return Pe.tagStart==Pe.indented?Pe.stringStartCol+1:Pe.indented+Ae;if(rt&&rt.noIndent)return E.Pass;if(Pe.tokenize!=pt&&Pe.tokenize!=qe)return Te?Te.match(/^(\s*)/)[0].length:0;if(Pe.tagName)return Ue.multilineTagIndentPastTag!==!1?Pe.tagStart+Pe.tagName.length+2:Pe.tagStart+Ae*(Ue.multilineTagIndentFactor||1);if(Ue.alignCDATA&&/$/,blockCommentStart:"",configuration:Ue.htmlMode?"html":"xml",helperType:Ue.htmlMode?"html":"xml",skipAttribute:function(Pe){Pe.state==Xe&&(Pe.state=At)},xmlCurrentTag:function(Pe){return Pe.tagName?{name:Pe.tagName,close:Pe.type=="closeTag"}:null},xmlCurrentContext:function(Pe){for(var ze=[],Te=Pe.context;Te;Te=Te.prev)Te.tagName&&ze.push(Te.tagName);return ze.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Bt,_t,ne){var E,ve;(function(xe,Je){Bt.exports=Je(xe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ne.g!="undefined"?ne.g:this,function(xe){"use strict";xe=xe||{};var Je=xe.Base64,We="2.6.4",Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ue=function(Te){for(var rt={},Pt=0,st=Te.length;Pt>>6)+tt(128|rt&63):tt(224|rt>>>12&15)+tt(128|rt>>>6&63)+tt(128|rt&63)}else{var rt=65536+(Te.charCodeAt(0)-55296)*1024+(Te.charCodeAt(1)-56320);return tt(240|rt>>>18&7)+tt(128|rt>>>12&63)+tt(128|rt>>>6&63)+tt(128|rt&63)}},He=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Qe=function(Te){return Te.replace(He,Se)},qe=function(Te){var rt=[0,2,1][Te.length%3],Pt=Te.charCodeAt(0)<<16|(Te.length>1?Te.charCodeAt(1):0)<<8|(Te.length>2?Te.charCodeAt(2):0),st=[Ae.charAt(Pt>>>18),Ae.charAt(Pt>>>12&63),rt>=2?"=":Ae.charAt(Pt>>>6&63),rt>=1?"=":Ae.charAt(Pt&63)];return st.join("")},pt=xe.btoa&&typeof xe.btoa=="function"?function(Te){return xe.btoa(Te)}:function(Te){if(Te.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Te.replace(/[\s\S]{1,3}/g,qe)},Ge=function(Te){return pt(Qe(String(Te)))},Oe=function(Te){return Te.replace(/[+\/]/g,function(rt){return rt=="+"?"-":"_"}).replace(/=/g,"")},Be=function(Te,rt){return rt?Oe(Ge(Te)):Ge(Te)},be=function(Te){return Be(Te,!0)},Ne;xe.Uint8Array&&(Ne=function(Te,rt){for(var Pt="",st=0,et=Te.length;st>>18)+Ae.charAt(lt>>>12&63)+(typeof De!="undefined"?Ae.charAt(lt>>>6&63):"=")+(typeof ge!="undefined"?Ae.charAt(lt&63):"=")}return rt?Oe(Pt):Pt});var Ye=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,it=function(Te){switch(Te.length){case 4:var rt=(7&Te.charCodeAt(0))<<18|(63&Te.charCodeAt(1))<<12|(63&Te.charCodeAt(2))<<6|63&Te.charCodeAt(3),Pt=rt-65536;return tt((Pt>>>10)+55296)+tt((Pt&1023)+56320);case 3:return tt((15&Te.charCodeAt(0))<<12|(63&Te.charCodeAt(1))<<6|63&Te.charCodeAt(2));default:return tt((31&Te.charCodeAt(0))<<6|63&Te.charCodeAt(1))}},pe=function(Te){return Te.replace(Ye,it)},Ke=function(Te){var rt=Te.length,Pt=rt%4,st=(rt>0?Ue[Te.charAt(0)]<<18:0)|(rt>1?Ue[Te.charAt(1)]<<12:0)|(rt>2?Ue[Te.charAt(2)]<<6:0)|(rt>3?Ue[Te.charAt(3)]:0),et=[tt(st>>>16),tt(st>>>8&255),tt(st&255)];return et.length-=[0,0,2,1][Pt],et.join("")},nt=xe.atob&&typeof xe.atob=="function"?function(Te){return xe.atob(Te)}:function(Te){return Te.replace(/\S{1,4}/g,Ke)},bt=function(Te){return nt(String(Te).replace(/[^A-Za-z0-9\+\/]/g,""))},At=function(Te){return pe(nt(Te))},ut=function(Te){return String(Te).replace(/[-_]/g,function(rt){return rt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function(Te){return At(ut(Te))},ht;xe.Uint8Array&&(ht=function(Te){return Uint8Array.from(bt(ut(Te)),function(rt){return rt.charCodeAt(0)})});var Pe=function(){var Te=xe.Base64;return xe.Base64=Je,Te};if(xe.Base64={VERSION:We,atob:bt,btoa:pt,fromBase64:Xe,toBase64:Be,utob:Qe,encode:Be,encodeURI:be,btou:pe,decode:Xe,noConflict:Pe,fromUint8Array:Ne,toUint8Array:ht},typeof Object.defineProperty=="function"){var ze=function(Te){return{value:Te,enumerable:!1,writable:!0,configurable:!0}};xe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ze(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",ze(function(Te){return Be(this,Te)})),Object.defineProperty(String.prototype,"toBase64URI",ze(function(){return Be(this,!0)}))}}return xe.Meteor&&(Base64=xe.Base64),Bt.exports?Bt.exports.Base64=xe.Base64:(E=[],ve=function(){return xe.Base64}.apply(_t,E),ve!==void 0&&(Bt.exports=ve)),{Base64:xe.Base64}})},2859:function(Bt,_t,ne){"use strict";ne.d(_t,{hP:function(){return mn}});var E=function(he,se){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ce){ae.__proto__=ce}||function(ae,ce){for(var me in ce)Object.prototype.hasOwnProperty.call(ce,me)&&(ae[me]=ce[me])})(he,se)};function ve(he,se){function ae(){this.constructor=he}E(he,se),he.prototype=se===null?Object.create(se):(ae.prototype=se.prototype,new ae)}function xe(he,se,ae,ce){return new(ae||(ae=Promise))(function(me,le){function ot(kn){try{on(ce.next(kn))}catch(wn){le(wn)}}function Ht(kn){try{on(ce.throw(kn))}catch(wn){le(wn)}}function on(kn){var wn;kn.done?me(kn.value):(wn=kn.value,wn instanceof ae?wn:new ae(function(Xn){Xn(wn)})).then(ot,Ht)}on((ce=ce.apply(he,se||[])).next())})}function Je(he,se){var ae,ce,me,le,ot={label:0,sent:function(){if(1&me[0])throw me[1];return me[1]},trys:[],ops:[]};return le={next:Ht(0),throw:Ht(1),return:Ht(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ht(on){return function(kn){return function(wn){if(ae)throw new TypeError("Generator is already executing.");for(;ot;)try{if(ae=1,ce&&(me=2&wn[0]?ce.return:wn[0]?ce.throw||((me=ce.return)&&me.call(ce),0):ce.next)&&!(me=me.call(ce,wn[1])).done)return me;switch(ce=0,me&&(wn=[2&wn[0],me.value]),wn[0]){case 0:case 1:me=wn;break;case 4:return ot.label++,{value:wn[1],done:!1};case 5:ot.label++,ce=wn[1],wn=[0];continue;case 7:wn=ot.ops.pop(),ot.trys.pop();continue;default:if(me=ot.trys,!((me=me.length>0&&me[me.length-1])||wn[0]!==6&&wn[0]!==2)){ot=0;continue}if(wn[0]===3&&(!me||wn[1]>me[0]&&wn[1]',"select"),this.addActionButton(ce,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ce,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ce,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ce,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ce,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ce,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ce,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var ot=document.createElement("div");ot.className=""+ae.toolbarButtonStyleClass.name,ot.setAttribute("data-type-name",le.typeName),ot.innerHTML=le.icon,ot.addEventListener("click",function(){ae.markerToolbarButtonClicked(ot,le)}),ae.buttons.push(ot),ae.markerButtons.push(ot)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var me=document.createElement("div");me.className=this.toolbarBlockStyleClass.name,me.style.whiteSpace="nowrap",me.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(me),this.addActionButton(me,'',"render"),this.addActionButton(me,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},he.prototype.addButtonClickListener=function(se){this.buttonClickListeners.push(se)},he.prototype.removeButtonClickListener=function(se){this.buttonClickListeners.indexOf(se)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(se),1)},he.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},he.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var se=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ae=0;ae',"select"),this.addActionButton(ce,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ce,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ce,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ce,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ce,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ce,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ce,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var ot=document.createElement("div");ot.className=""+ae.toolbarButtonStyleClass.name,ot.setAttribute("data-type-name",le.typeName),ot.innerHTML=le.icon,ot.addEventListener("click",function(){ae.markerToolbarButtonClicked(ot,le)}),ae.buttons.push(ot),ae.markerButtons.push(ot)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var me=document.createElement("div");me.className=this.toolbarBlockStyleClass.name,me.style.whiteSpace="nowrap",me.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(me),this.addActionButton(me,'',"render"),this.addActionButton(me,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},he.prototype.addButtonClickListener=function(se){this.buttonClickListeners.push(se)},he.prototype.removeButtonClickListener=function(se){this.buttonClickListeners.indexOf(se)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(se),1)},he.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},he.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var se=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ae=0;ae')||this;return ot.colors=[],ot.addTransparent=!1,ot.colorBoxes=[],ot.colors=ce,ot.currentColor=me,ot.setCurrentColor=ot.setCurrentColor.bind(ot),ot.getColorBox=ot.getColorBox.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.whiteSpace="nowrap",this.colors.forEach(function(me){var le=ae.getColorBox(me);ce.appendChild(le),ae.colorBoxes.push(le)}),ce},se.prototype.getColorBox=function(ae){var ce=this,me=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-me,ot=document.createElement("div");ot.style.display="inline-block",ot.style.boxSizing="content-box",ot.style.width=le-2+"px",ot.style.height=le-2+"px",ot.style.padding="1px",ot.style.marginRight="2px",ot.style.marginBottom="2px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderRadius=(le+2)/2+"px",ot.style.borderColor=ae===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){ce.setCurrentColor(ae,ot)});var Ht=document.createElement("div");return Ht.style.display="inline-block",Ht.style.width=le-2+"px",Ht.style.height=le-2+"px",Ht.style.backgroundColor=ae,Ht.style.borderRadius=le/2+"px",ae==="transparent"&&(Ht.style.fill=this.uiStyleSettings.toolboxAccentColor,Ht.innerHTML=` - `),ot.appendChild(Ht),ot},se.prototype.setCurrentColor=function(ae,ce){var me=this;this.currentColor=ae,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ae)},se}(Oe),be=function(){function he(se,ae,ce){this._state="new",this._isSelected=!1,this._container=se,this._overlayContainer=ae,this.globalSettings=ce,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(he.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),he.prototype.ownsTarget=function(se){return!1},Object.defineProperty(he.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),he.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},he.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},he.prototype.pointerDown=function(se,ae){},he.prototype.dblClick=function(se,ae){},he.prototype.manipulate=function(se){},he.prototype.pointerUp=function(se){this.stateChanged()},he.prototype.dispose=function(){},he.prototype.addMarkerVisualToContainer=function(se){this.container.childNodes.length>0?this.container.insertBefore(se,this.container.childNodes[0]):this.container.appendChild(se)},he.prototype.getState=function(){return{typeName:he.typeName,state:this.state,notes:this.notes}},he.prototype.restoreState=function(se){this._state=se.state,this.notes=se.notes},he.prototype.scale=function(se,ae){},he.prototype.colorChanged=function(se){this.onColorChanged&&this.onColorChanged(se),this.stateChanged()},he.prototype.fillColorChanged=function(se){this.onFillColorChanged&&this.onFillColorChanged(se),this.stateChanged()},he.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var se=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),se.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(se)&&this.onStateChanged(this)}},he.typeName="MarkerBase",he}(),Pe=function(){function he(){this.findGripByVisual=this.findGripByVisual.bind(this)}return he.prototype.findGripByVisual=function(se){return this.topLeft.ownsTarget(se)?this.topLeft:this.topCenter.ownsTarget(se)?this.topCenter:this.topRight.ownsTarget(se)?this.topRight:this.centerLeft.ownsTarget(se)?this.centerLeft:this.centerRight.ownsTarget(se)?this.centerRight:this.bottomLeft.ownsTarget(se)?this.bottomLeft:this.bottomCenter.ownsTarget(se)?this.bottomCenter:this.bottomRight.ownsTarget(se)?this.bottomRight:void 0},he}(),Ye=function(){function he(){this.GRIP_SIZE=10,this.visual=Ae.createGroup(),this.visual.appendChild(Ae.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ae.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return he.prototype.ownsTarget=function(se){return se===this.visual||se===this.visual.childNodes[0]||se===this.visual.childNodes[1]},he}(),it=function(){function he(){}return he.toITransformMatrix=function(se){return{a:se.a,b:se.b,c:se.c,d:se.d,e:se.e,f:se.f}},he.toSVGMatrix=function(se,ae){return se.a=ae.a,se.b=ae.b,se.c=ae.c,se.d=ae.d,se.e=ae.e,se.f=ae.f,se},he}(),pe=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Ae.createTransform()),le.setupControlBox(),le}return ve(se,he),Object.defineProperty(se.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"visual",{get:function(){return this._visual},set:function(ae){this._visual=ae;var ce=Ae.createTransform();this._visual.transform.baseVal.appendItem(ce)},enumerable:!1,configurable:!0}),se.prototype.ownsTarget=function(ae){return!!he.prototype.ownsTarget.call(this,ae)||!!(this.controlGrips.findGripByVisual(ae)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ae))},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="new"&&(this.left=ae.x,this.top=ae.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var me=this.unrotatePoint(ae);if(this.manipulationStartX=me.x,this.manipulationStartY=me.y,this.offsetX=me.x-this.left,this.offsetY=me.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ce),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},se.prototype.pointerUp=function(ae){var ce=this.state;he.prototype.pointerUp.call(this,ae),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ae),this._state="select",ce==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},se.prototype.moveVisual=function(ae){this.visual.style.transform="translate("+ae.x+"px, "+ae.y+"px)"},se.prototype.manipulate=function(ae){var ce=this.unrotatePoint(ae);this.state==="creating"?this.resize(ae):this.state==="move"?(this.left=this.manipulationStartLeft+(ce.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ce.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ce):this.state==="rotate"&&this.rotate(ae)},se.prototype.resize=function(ae){var ce=this.manipulationStartLeft,me=this.manipulationStartWidth,le=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ce=this.manipulationStartLeft+ae.x-this.manipulationStartX,me=this.manipulationStartWidth+this.manipulationStartLeft-ce;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:me=this.manipulationStartWidth+ae.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ae.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+ae.y-this.manipulationStartY}me>=0?(this.left=ce,this.width=me):(this.left=ce+me,this.width=-me),ot>=0?(this.top=le,this.height=ot):(this.top=le+ot,this.height=-ot),this.setSize()},se.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},se.prototype.rotate=function(ae){if(Math.abs(ae.x-this.centerX)>.1){var ce=Math.sign(ae.x-this.centerX);this.rotationAngle=180*Math.atan((ae.y-this.centerY)/(ae.x-this.centerX))/Math.PI+90*ce,this.applyRotation()}},se.prototype.applyRotation=function(){var ae=this.container.transform.baseVal.getItem(0);ae.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ae,0)},se.prototype.rotatePoint=function(ae){if(this.rotationAngle===0)return ae;var ce=this.container.getCTM(),me=Ae.createPoint(ae.x,ae.y);return{x:(me=me.matrixTransform(ce)).x,y:me.y}},se.prototype.unrotatePoint=function(ae){if(this.rotationAngle===0)return ae;var ce=this.container.getCTM();ce=ce.inverse();var me=Ae.createPoint(ae.x,ae.y);return{x:(me=me.matrixTransform(ce)).x,y:me.y}},se.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},se.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},se.prototype.setupControlBox=function(){this.controlBox=Ae.createGroup();var ae=Ae.createTransform();ae.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ae),this.container.appendChild(this.controlBox),this.controlRect=Ae.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ae.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Pe,this.addControlGrips(),this.controlBox.style.display="none"},se.prototype.adjustControlBox=function(){var ae=this.controlBox.transform.baseVal.getItem(0);ae.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ae,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},se.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},se.prototype.createGrip=function(){var ae=new Ye;return ae.visual.transform.baseVal.appendItem(Ae.createTransform()),this.controlBox.appendChild(ae.visual),ae},se.prototype.positionGrips=function(){var ae=this.controlGrips.topLeft.GRIP_SIZE,ce=-ae/2,me=ce,le=(this.width+this.CB_DISTANCE)/2-ae/2,ot=(this.height+this.CB_DISTANCE)/2-ae/2,Ht=this.height+this.CB_DISTANCE-ae/2,on=this.width+this.CB_DISTANCE-ae/2;this.positionGrip(this.controlGrips.topLeft.visual,ce,me),this.positionGrip(this.controlGrips.topCenter.visual,le,me),this.positionGrip(this.controlGrips.topRight.visual,on,me),this.positionGrip(this.controlGrips.centerLeft.visual,ce,ot),this.positionGrip(this.controlGrips.centerRight.visual,on,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,ce,Ht),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ht),this.positionGrip(this.controlGrips.bottomRight.visual,on,Ht),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,me-3*this.CB_DISTANCE)},se.prototype.positionGrip=function(ae,ce,me){var le=ae.transform.baseVal.getItem(0);le.setTranslate(ce,me),ae.transform.baseVal.replaceItem(le,0)},se.prototype.hideControlBox=function(){this.controlBox.style.display="none"},se.prototype.showControlBox=function(){this.controlBox.style.display=""},se.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:it.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:it.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},he.prototype.getState.call(this))},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.left=ce.left,this.top=ce.top,this.width=ce.width,this.height=ce.height,this.rotationAngle=ce.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(it.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ce.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(it.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ce.containerTransformMatrix))},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce);var me=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:me.x*ae,y:me.y*ce});this.left=le.x,this.top=le.y,this.width=this.width*ae,this.height=this.height*ce,this.adjustControlBox()},se}(be),Ke=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual)},se.prototype.createVisual=function(){this.visual=Ae.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},se.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},se.prototype.setSize=function(){he.prototype.setSize.call(this),Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},se.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize()},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.visual&&Ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},se.prototype.setFillColor=function(ae){this.fillColor=ae,this.visual&&Ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.visual&&Ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.visual&&Ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},se.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},he.prototype.getState.call(this))},se.prototype.restoreState=function(ae){var ce=ae;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.opacity=ce.opacity,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setSize()},se.title="Rectangle marker",se}(pe),nt=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=ce,ot.currentWidth=me,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.widths.forEach(function(me){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=me===ae.currentWidth?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentWidth(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.innerText=me.toString(),ot.style.marginRight="5px",le.appendChild(ot);var Ht=document.createElement("div");Ht.style.minHeight="20px",Ht.style.flexGrow="2",Ht.style.display="flex",Ht.style.alignItems="center";var on=document.createElement("hr");on.style.minWidth="20px",on.style.border="0px",on.style.borderTop=me+"px solid "+ae.uiStyleSettings.toolboxColor,on.style.flexGrow="2",Ht.appendChild(on),le.appendChild(Ht),ae.widthBoxes.push(le)}),ce},se.prototype.setCurrentWidth=function(ae,ce){var me=this;this.currentWidth=ae,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},se}(Oe),Et=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.styles=[],ot.styleBoxes=[],ot.styles=ce,ot.currentStyle=me,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.styles.forEach(function(me){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ae.styles.length-5+"%",le.style.borderColor=me===ae.currentStyle?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentStyle(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Ht=` + `),ot.appendChild(Ht),ot},se.prototype.setCurrentColor=function(ae,ce){var me=this;this.currentColor=ae,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ae)},se}(Oe),be=function(){function he(se,ae,ce){this._state="new",this._isSelected=!1,this._container=se,this._overlayContainer=ae,this.globalSettings=ce,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(he.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),he.prototype.ownsTarget=function(se){return!1},Object.defineProperty(he.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),he.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},he.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},he.prototype.pointerDown=function(se,ae){},he.prototype.dblClick=function(se,ae){},he.prototype.manipulate=function(se){},he.prototype.pointerUp=function(se){this.stateChanged()},he.prototype.dispose=function(){},he.prototype.addMarkerVisualToContainer=function(se){this.container.childNodes.length>0?this.container.insertBefore(se,this.container.childNodes[0]):this.container.appendChild(se)},he.prototype.getState=function(){return{typeName:he.typeName,state:this.state,notes:this.notes}},he.prototype.restoreState=function(se){this._state=se.state,this.notes=se.notes},he.prototype.scale=function(se,ae){},he.prototype.colorChanged=function(se){this.onColorChanged&&this.onColorChanged(se),this.stateChanged()},he.prototype.fillColorChanged=function(se){this.onFillColorChanged&&this.onFillColorChanged(se),this.stateChanged()},he.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var se=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),se.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(se)&&this.onStateChanged(this)}},he.typeName="MarkerBase",he}(),Ne=function(){function he(){this.findGripByVisual=this.findGripByVisual.bind(this)}return he.prototype.findGripByVisual=function(se){return this.topLeft.ownsTarget(se)?this.topLeft:this.topCenter.ownsTarget(se)?this.topCenter:this.topRight.ownsTarget(se)?this.topRight:this.centerLeft.ownsTarget(se)?this.centerLeft:this.centerRight.ownsTarget(se)?this.centerRight:this.bottomLeft.ownsTarget(se)?this.bottomLeft:this.bottomCenter.ownsTarget(se)?this.bottomCenter:this.bottomRight.ownsTarget(se)?this.bottomRight:void 0},he}(),Ye=function(){function he(){this.GRIP_SIZE=10,this.visual=Ae.createGroup(),this.visual.appendChild(Ae.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ae.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return he.prototype.ownsTarget=function(se){return se===this.visual||se===this.visual.childNodes[0]||se===this.visual.childNodes[1]},he}(),it=function(){function he(){}return he.toITransformMatrix=function(se){return{a:se.a,b:se.b,c:se.c,d:se.d,e:se.e,f:se.f}},he.toSVGMatrix=function(se,ae){return se.a=ae.a,se.b=ae.b,se.c=ae.c,se.d=ae.d,se.e=ae.e,se.f=ae.f,se},he}(),pe=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Ae.createTransform()),le.setupControlBox(),le}return ve(se,he),Object.defineProperty(se.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"visual",{get:function(){return this._visual},set:function(ae){this._visual=ae;var ce=Ae.createTransform();this._visual.transform.baseVal.appendItem(ce)},enumerable:!1,configurable:!0}),se.prototype.ownsTarget=function(ae){return!!he.prototype.ownsTarget.call(this,ae)||!!(this.controlGrips.findGripByVisual(ae)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ae))},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="new"&&(this.left=ae.x,this.top=ae.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var me=this.unrotatePoint(ae);if(this.manipulationStartX=me.x,this.manipulationStartY=me.y,this.offsetX=me.x-this.left,this.offsetY=me.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ce),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},se.prototype.pointerUp=function(ae){var ce=this.state;he.prototype.pointerUp.call(this,ae),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ae),this._state="select",ce==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},se.prototype.moveVisual=function(ae){this.visual.style.transform="translate("+ae.x+"px, "+ae.y+"px)"},se.prototype.manipulate=function(ae){var ce=this.unrotatePoint(ae);this.state==="creating"?this.resize(ae):this.state==="move"?(this.left=this.manipulationStartLeft+(ce.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ce.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ce):this.state==="rotate"&&this.rotate(ae)},se.prototype.resize=function(ae){var ce=this.manipulationStartLeft,me=this.manipulationStartWidth,le=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ce=this.manipulationStartLeft+ae.x-this.manipulationStartX,me=this.manipulationStartWidth+this.manipulationStartLeft-ce;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:me=this.manipulationStartWidth+ae.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ae.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+ae.y-this.manipulationStartY}me>=0?(this.left=ce,this.width=me):(this.left=ce+me,this.width=-me),ot>=0?(this.top=le,this.height=ot):(this.top=le+ot,this.height=-ot),this.setSize()},se.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},se.prototype.rotate=function(ae){if(Math.abs(ae.x-this.centerX)>.1){var ce=Math.sign(ae.x-this.centerX);this.rotationAngle=180*Math.atan((ae.y-this.centerY)/(ae.x-this.centerX))/Math.PI+90*ce,this.applyRotation()}},se.prototype.applyRotation=function(){var ae=this.container.transform.baseVal.getItem(0);ae.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ae,0)},se.prototype.rotatePoint=function(ae){if(this.rotationAngle===0)return ae;var ce=this.container.getCTM(),me=Ae.createPoint(ae.x,ae.y);return{x:(me=me.matrixTransform(ce)).x,y:me.y}},se.prototype.unrotatePoint=function(ae){if(this.rotationAngle===0)return ae;var ce=this.container.getCTM();ce=ce.inverse();var me=Ae.createPoint(ae.x,ae.y);return{x:(me=me.matrixTransform(ce)).x,y:me.y}},se.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},se.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},se.prototype.setupControlBox=function(){this.controlBox=Ae.createGroup();var ae=Ae.createTransform();ae.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ae),this.container.appendChild(this.controlBox),this.controlRect=Ae.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ae.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ne,this.addControlGrips(),this.controlBox.style.display="none"},se.prototype.adjustControlBox=function(){var ae=this.controlBox.transform.baseVal.getItem(0);ae.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ae,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},se.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},se.prototype.createGrip=function(){var ae=new Ye;return ae.visual.transform.baseVal.appendItem(Ae.createTransform()),this.controlBox.appendChild(ae.visual),ae},se.prototype.positionGrips=function(){var ae=this.controlGrips.topLeft.GRIP_SIZE,ce=-ae/2,me=ce,le=(this.width+this.CB_DISTANCE)/2-ae/2,ot=(this.height+this.CB_DISTANCE)/2-ae/2,Ht=this.height+this.CB_DISTANCE-ae/2,on=this.width+this.CB_DISTANCE-ae/2;this.positionGrip(this.controlGrips.topLeft.visual,ce,me),this.positionGrip(this.controlGrips.topCenter.visual,le,me),this.positionGrip(this.controlGrips.topRight.visual,on,me),this.positionGrip(this.controlGrips.centerLeft.visual,ce,ot),this.positionGrip(this.controlGrips.centerRight.visual,on,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,ce,Ht),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ht),this.positionGrip(this.controlGrips.bottomRight.visual,on,Ht),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,me-3*this.CB_DISTANCE)},se.prototype.positionGrip=function(ae,ce,me){var le=ae.transform.baseVal.getItem(0);le.setTranslate(ce,me),ae.transform.baseVal.replaceItem(le,0)},se.prototype.hideControlBox=function(){this.controlBox.style.display="none"},se.prototype.showControlBox=function(){this.controlBox.style.display=""},se.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:it.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:it.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},he.prototype.getState.call(this))},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.left=ce.left,this.top=ce.top,this.width=ce.width,this.height=ce.height,this.rotationAngle=ce.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(it.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ce.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(it.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ce.containerTransformMatrix))},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce);var me=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:me.x*ae,y:me.y*ce});this.left=le.x,this.top=le.y,this.width=this.width*ae,this.height=this.height*ce,this.adjustControlBox()},se}(be),Ke=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual)},se.prototype.createVisual=function(){this.visual=Ae.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},se.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},se.prototype.setSize=function(){he.prototype.setSize.call(this),Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},se.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize()},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.visual&&Ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},se.prototype.setFillColor=function(ae){this.fillColor=ae,this.visual&&Ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.visual&&Ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.visual&&Ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},se.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},he.prototype.getState.call(this))},se.prototype.restoreState=function(ae){var ce=ae;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.opacity=ce.opacity,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setSize()},se.title="Rectangle marker",se}(pe),nt=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=ce,ot.currentWidth=me,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.widths.forEach(function(me){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=me===ae.currentWidth?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentWidth(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.innerText=me.toString(),ot.style.marginRight="5px",le.appendChild(ot);var Ht=document.createElement("div");Ht.style.minHeight="20px",Ht.style.flexGrow="2",Ht.style.display="flex",Ht.style.alignItems="center";var on=document.createElement("hr");on.style.minWidth="20px",on.style.border="0px",on.style.borderTop=me+"px solid "+ae.uiStyleSettings.toolboxColor,on.style.flexGrow="2",Ht.appendChild(on),le.appendChild(Ht),ae.widthBoxes.push(le)}),ce},se.prototype.setCurrentWidth=function(ae,ce){var me=this;this.currentWidth=ae,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},se}(Oe),bt=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.styles=[],ot.styleBoxes=[],ot.styles=ce,ot.currentStyle=me,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.styles.forEach(function(me){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ae.styles.length-5+"%",le.style.borderColor=me===ae.currentStyle?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentStyle(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Ht=` - `;ot.innerHTML=Ht,le.appendChild(ot),ae.styleBoxes.push(le)}),ce},se.prototype.setCurrentStyle=function(ae,ce){var me=this;this.currentStyle=ae,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},se}(Oe),At=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.strokePanel=new Be("Line color",me.defaultColorSet,me.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Et("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ve(se,he),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="FrameMarker",se.title="Frame marker",se.icon='',se}(Ke),st=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Xe=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!!he.prototype.ownsTarget.call(this,ae)||!(!this.grip1.ownsTarget(ae)&&!this.grip2.ownsTarget(ae))},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.manipulationStartX=ae.x,this.manipulationStartY=ae.y,this.state==="new"&&(this.x1=ae.x,this.y1=ae.y,this.x2=ae.x,this.y2=ae.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ce)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ce)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},se.prototype.pointerUp=function(ae){var ce=this.state;he.prototype.pointerUp.call(this,ae),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ae),this._state="select",ce==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},se.prototype.adjustVisual=function(){},se.prototype.manipulate=function(ae){this.state==="creating"?this.resize(ae):this.state==="move"?(this.x1=this.manipulationStartX1+ae.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ae.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ae.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ae.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ae)},se.prototype.resize=function(ae){switch(this.activeGrip){case this.grip1:this.x1=ae.x,this.y1=ae.y;break;case this.grip2:case void 0:this.x2=ae.x,this.y2=ae.y}this.adjustVisual(),this.adjustControlBox()},se.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},se.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},se.prototype.setupControlBox=function(){this.controlBox=Ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},se.prototype.adjustControlBox=function(){this.positionGrips()},se.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},se.prototype.createGrip=function(){var ae=new Ye;return ae.visual.transform.baseVal.appendItem(Ae.createTransform()),this.controlBox.appendChild(ae.visual),ae},se.prototype.positionGrips=function(){var ae=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ae/2,this.y1-ae/2),this.positionGrip(this.grip2.visual,this.x2-ae/2,this.y2-ae/2)},se.prototype.positionGrip=function(ae,ce,me){var le=ae.transform.baseVal.getItem(0);le.setTranslate(ce,me),ae.transform.baseVal.replaceItem(le,0)},se.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},he.prototype.getState.call(this))},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.x1=ce.x1,this.y1=ce.y1,this.x2=ce.x2,this.y2=ce.y2},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.x1=this.x1*ae,this.y1=this.y1*ce,this.x2=this.x2*ae,this.y2=this.y2*ce,this.adjustVisual(),this.adjustControlBox()},se}(be),ut=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.strokePanel=new Be("Line color",me.defaultColorSet,me.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Et("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.selectorLine&&ae!==this.visibleLine)},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.selectorLine=Ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},se.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.adjustVisual(),this.colorChanged(ae)},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.adjustVisual()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.adjustVisual(),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.createVisual(),this.adjustVisual()},se.typeName="LineMarker",se.title="Line marker",se.icon='',se}(Xe),Le=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.fonts=[],ot.fontBoxes=[],ot.fonts=ce,ot.currentFont=me,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.flexGrow="2",this.fonts.forEach(function(me){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ae.fonts.length-5+"%",le.style.borderColor=me===ae.currentFont?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentFont(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=me,ot.style.overflow="hidden";var Ht=document.createElement("div");Ht.style.whiteSpace="nowrap",Ht.style.overflow="hidden",Ht.style.textOverflow="ellipsis",Ht.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Ht),le.appendChild(ot),ae.fontBoxes.push(le)}),ce},se.prototype.setCurrentFont=function(ae,ce){var me=this;this.currentFont=ae,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},se}(Oe),ze=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=me.defaultColor,le.fontFamily=me.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new Be("Color",me.defaultColorSet,me.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Le("Font",me.defaultFontFamilies,me.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return ve(se,he),se.prototype.ownsTarget=function(ae){if(he.prototype.ownsTarget.call(this,ae)||ae===this.visual||ae===this.textElement||ae===this.bgRectangle)return!0;var ce=!1;return this.textElement.childNodes.forEach(function(me){me===ae&&(ce=!0)}),ce},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.bgRectangle=Ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ae.createTransform()),this.textElement.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.isMoved=!1,this.pointerDownPoint=ae,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},se.prototype.renderText=function(){var ae=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ce){ae.textElement.appendChild(Ae.createTSpan(ce.trim()===""?" ":ce.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},se.prototype.getTextScale=function(){var ae=this.textElement.getBBox(),ce=1;if(ae.width>0&&ae.height>0){var me=(1*this.width-this.width*this.padding*2/100)/ae.width,le=(1*this.height-this.height*this.padding*2/100)/ae.height;ce=Math.min(me,le)}return ce},se.prototype.getTextPosition=function(ae){var ce=this.textElement.getBBox(),me=0,le=0;return ce.width>0&&ce.height>0&&(me=(this.width-ce.width*ae)/2,le=this.height/2-ce.height*ae/2),{x:me,y:le}},se.prototype.sizeText=function(){var ae=this.textElement.getBBox(),ce=this.getTextScale(),me=this.getTextPosition(ce);me.y-=ae.y*ce,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+me.x+"px, "+me.y+"px) scale("+ce+", "+ce+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(me.x,me.y),this.textElement.transform.baseVal.getItem(1).setScale(ce,ce))},se.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ae.x-this.pointerDownPoint.x)>5||Math.abs(ae.y-this.pointerDownPoint.y)>5)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.isMoved=!0,this.setSize(),this.sizeText()},se.prototype.setSize=function(){he.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},se.prototype.pointerUp=function(ae){var ce=this.state;ce==="creating"&&(this._suppressMarkerCreateEvent=!0),he.prototype.pointerUp.call(this,ae),this.setSize(),(ce==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},se.prototype.showTextEditor=function(){var ae=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ce){ce.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ce=Number.parseFloat(ae.textEditor.style.fontSize);ae.textEditor.clientWidth>=Number.parseInt(ae.textEditor.style.maxWidth)&&ce>.9;)ce-=.1,ae.textEditor.style.fontSize=Math.max(ce,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ce){if(ce.clipboardData){var me=ce.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(me)),ce.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ae.textEditDivClicked(ae.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},se.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ae=this.getTextScale(),ce=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),me=this.textElement.getBBox(),le={x:me.width*ae,y:me.height*ae};ce.x-=le.x/2,ce.y-=le.y/2,this.textEditor.style.top=ce.y+"px",this.textEditor.style.left=ce.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ce.x+"px",this.textEditor.style.fontSize=Math.max(16*ae,12)+"px",this.textElement.style.display="none"}},se.prototype.textEditDivClicked=function(ae){this.text=ae.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},se.prototype.select=function(){he.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},se.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),he.prototype.deselect.call(this)},se.prototype.dblClick=function(ae,ce){he.prototype.dblClick.call(this,ae,ce),this.showTextEditor()},se.prototype.setColor=function(ae){this.textElement&&Ae.setAttributes(this.textElement,[["fill",ae]]),this.color=ae,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ae)},se.prototype.setFont=function(ae){this.textElement&&Ae.setAttributes(this.textElement,[["font-family",ae]]),this.fontFamily=ae,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},se.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},se.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){var ce=ae;this.color=ce.color,this.fontFamily=ce.fontFamily,this.padding=ce.padding,this.text=ce.text,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setSize(),this.sizeText(),this.positionTextEditor()},se.typeName="TextMarker",se.title="Text marker",se.icon='',se}(pe),Ne=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=me.defaultColor,le.lineWidth=me.defaultStrokeWidth,le.pixelRatio=me.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new Be("Color",me.defaultColorSet,me.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.drawingImage)},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.drawingImage=Ae.createImage(),this.visual.appendChild(this.drawingImage);var ae=Ae.createTransform();this.visual.transform.baseVal.appendItem(ae),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ae.x,ae.y),this.drawing=!0):he.prototype.pointerDown.call(this,ae,ce)},se.prototype.manipulate=function(ae){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ae.x,ae.y),this.canvasContext.stroke()):he.prototype.manipulate.call(this,ae)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},se.prototype.pointerUp=function(ae){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):he.prototype.pointerUp.call(this,ae)},se.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},se.prototype.select=function(){this.state==="creating"&&this.finishCreation(),he.prototype.select.call(this)},se.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),he.prototype.deselect.call(this)},se.prototype.finishCreation=function(){for(var ae=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ce=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],me=ce[0],le=ce[1],ot=ce[2],Ht=ce[3],on=!1,kn=0;kn0&&(on=!0,knHt&&(Ht=kn),wn>ot&&(ot=wn));if(on){this.left=me/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(ot-me)/this.pixelRatio,this.height=(Ht-le)/this.pixelRatio;var Xn=document.createElement("canvas");Xn.width=ot-me,Xn.height=Ht-le,Xn.getContext("2d").putImageData(this.canvasContext.getImageData(me,le,ot-me,Ht-le),0,0),this.drawingImgUrl=Xn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},se.prototype.setDrawingImage=function(){Ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},se.prototype.setColor=function(ae){this.color=ae,this.colorChanged(ae)},se.prototype.setLineWidth=function(ae){this.lineWidth=ae},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({drawingImgUrl:this.drawingImgUrl},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){this.createVisual(),he.prototype.restoreState.call(this,ae),this.drawingImgUrl=ae.drawingImgUrl,this.setDrawingImage()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setDrawingImage()},se.typeName="FreehandMarker",se.title="Freehand marker",se.icon='',se}(pe),at=function(he){function se(ae,ce,me){var le=he.call(this,ae,me||'')||this;return le.typeBoxes=[],le.currentType=ce,le.setCurrentType=le.setCurrentType.bind(le),le}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2";for(var me=function(Ht){var on="both";switch(Ht){case 0:on="both";break;case 1:on="start";break;case 2:on="end";break;case 3:on="none"}var kn=document.createElement("div");if(kn.style.display="flex",kn.style.flexGrow="2",kn.style.alignItems="center",kn.style.justifyContent="space-between",kn.style.padding="5px",kn.style.borderWidth="2px",kn.style.borderStyle="solid",kn.style.borderColor=on===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",kn.addEventListener("click",function(){ae.setCurrentType(on,kn)}),ce.appendChild(kn),on==="both"||on==="start"){var wn=document.createElement("div");wn.style.display="flex",wn.style.alignItems="center",wn.style.minHeight="20px",wn.innerHTML=` + `;ot.innerHTML=Ht,le.appendChild(ot),ae.styleBoxes.push(le)}),ce},se.prototype.setCurrentStyle=function(ae,ce){var me=this;this.currentStyle=ae,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},se}(Oe),At=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.strokePanel=new Be("Line color",me.defaultColorSet,me.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new bt("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ve(se,he),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="FrameMarker",se.title="Frame marker",se.icon='',se}(Ke),ut=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Xe=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!!he.prototype.ownsTarget.call(this,ae)||!(!this.grip1.ownsTarget(ae)&&!this.grip2.ownsTarget(ae))},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.manipulationStartX=ae.x,this.manipulationStartY=ae.y,this.state==="new"&&(this.x1=ae.x,this.y1=ae.y,this.x2=ae.x,this.y2=ae.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ce)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ce)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},se.prototype.pointerUp=function(ae){var ce=this.state;he.prototype.pointerUp.call(this,ae),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ae),this._state="select",ce==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},se.prototype.adjustVisual=function(){},se.prototype.manipulate=function(ae){this.state==="creating"?this.resize(ae):this.state==="move"?(this.x1=this.manipulationStartX1+ae.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ae.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ae.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ae.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ae)},se.prototype.resize=function(ae){switch(this.activeGrip){case this.grip1:this.x1=ae.x,this.y1=ae.y;break;case this.grip2:case void 0:this.x2=ae.x,this.y2=ae.y}this.adjustVisual(),this.adjustControlBox()},se.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},se.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},se.prototype.setupControlBox=function(){this.controlBox=Ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},se.prototype.adjustControlBox=function(){this.positionGrips()},se.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},se.prototype.createGrip=function(){var ae=new Ye;return ae.visual.transform.baseVal.appendItem(Ae.createTransform()),this.controlBox.appendChild(ae.visual),ae},se.prototype.positionGrips=function(){var ae=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ae/2,this.y1-ae/2),this.positionGrip(this.grip2.visual,this.x2-ae/2,this.y2-ae/2)},se.prototype.positionGrip=function(ae,ce,me){var le=ae.transform.baseVal.getItem(0);le.setTranslate(ce,me),ae.transform.baseVal.replaceItem(le,0)},se.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},he.prototype.getState.call(this))},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.x1=ce.x1,this.y1=ce.y1,this.x2=ce.x2,this.y2=ce.y2},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.x1=this.x1*ae,this.y1=this.y1*ce,this.x2=this.x2*ae,this.y2=this.y2*ce,this.adjustVisual(),this.adjustControlBox()},se}(be),ht=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.strokePanel=new Be("Line color",me.defaultColorSet,me.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new bt("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.selectorLine&&ae!==this.visibleLine)},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.selectorLine=Ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},se.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.adjustVisual(),this.colorChanged(ae)},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.adjustVisual()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.adjustVisual(),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.createVisual(),this.adjustVisual()},se.typeName="LineMarker",se.title="Line marker",se.icon='',se}(Xe),Pe=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.fonts=[],ot.fontBoxes=[],ot.fonts=ce,ot.currentFont=me,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.flexGrow="2",this.fonts.forEach(function(me){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ae.fonts.length-5+"%",le.style.borderColor=me===ae.currentFont?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentFont(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=me,ot.style.overflow="hidden";var Ht=document.createElement("div");Ht.style.whiteSpace="nowrap",Ht.style.overflow="hidden",Ht.style.textOverflow="ellipsis",Ht.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Ht),le.appendChild(ot),ae.fontBoxes.push(le)}),ce},se.prototype.setCurrentFont=function(ae,ce){var me=this;this.currentFont=ae,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},se}(Oe),ze=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=me.defaultColor,le.fontFamily=me.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new Be("Color",me.defaultColorSet,me.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Pe("Font",me.defaultFontFamilies,me.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return ve(se,he),se.prototype.ownsTarget=function(ae){if(he.prototype.ownsTarget.call(this,ae)||ae===this.visual||ae===this.textElement||ae===this.bgRectangle)return!0;var ce=!1;return this.textElement.childNodes.forEach(function(me){me===ae&&(ce=!0)}),ce},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.bgRectangle=Ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ae.createTransform()),this.textElement.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.isMoved=!1,this.pointerDownPoint=ae,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},se.prototype.renderText=function(){var ae=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ce){ae.textElement.appendChild(Ae.createTSpan(ce.trim()===""?" ":ce.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},se.prototype.getTextScale=function(){var ae=this.textElement.getBBox(),ce=1;if(ae.width>0&&ae.height>0){var me=(1*this.width-this.width*this.padding*2/100)/ae.width,le=(1*this.height-this.height*this.padding*2/100)/ae.height;ce=Math.min(me,le)}return ce},se.prototype.getTextPosition=function(ae){var ce=this.textElement.getBBox(),me=0,le=0;return ce.width>0&&ce.height>0&&(me=(this.width-ce.width*ae)/2,le=this.height/2-ce.height*ae/2),{x:me,y:le}},se.prototype.sizeText=function(){var ae=this.textElement.getBBox(),ce=this.getTextScale(),me=this.getTextPosition(ce);me.y-=ae.y*ce,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+me.x+"px, "+me.y+"px) scale("+ce+", "+ce+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(me.x,me.y),this.textElement.transform.baseVal.getItem(1).setScale(ce,ce))},se.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ae.x-this.pointerDownPoint.x)>5||Math.abs(ae.y-this.pointerDownPoint.y)>5)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.isMoved=!0,this.setSize(),this.sizeText()},se.prototype.setSize=function(){he.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},se.prototype.pointerUp=function(ae){var ce=this.state;ce==="creating"&&(this._suppressMarkerCreateEvent=!0),he.prototype.pointerUp.call(this,ae),this.setSize(),(ce==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},se.prototype.showTextEditor=function(){var ae=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ce){ce.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ce=Number.parseFloat(ae.textEditor.style.fontSize);ae.textEditor.clientWidth>=Number.parseInt(ae.textEditor.style.maxWidth)&&ce>.9;)ce-=.1,ae.textEditor.style.fontSize=Math.max(ce,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ce){if(ce.clipboardData){var me=ce.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(me)),ce.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ae.textEditDivClicked(ae.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},se.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ae=this.getTextScale(),ce=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),me=this.textElement.getBBox(),le={x:me.width*ae,y:me.height*ae};ce.x-=le.x/2,ce.y-=le.y/2,this.textEditor.style.top=ce.y+"px",this.textEditor.style.left=ce.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ce.x+"px",this.textEditor.style.fontSize=Math.max(16*ae,12)+"px",this.textElement.style.display="none"}},se.prototype.textEditDivClicked=function(ae){this.text=ae.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},se.prototype.select=function(){he.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},se.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),he.prototype.deselect.call(this)},se.prototype.dblClick=function(ae,ce){he.prototype.dblClick.call(this,ae,ce),this.showTextEditor()},se.prototype.setColor=function(ae){this.textElement&&Ae.setAttributes(this.textElement,[["fill",ae]]),this.color=ae,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ae)},se.prototype.setFont=function(ae){this.textElement&&Ae.setAttributes(this.textElement,[["font-family",ae]]),this.fontFamily=ae,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},se.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},se.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){var ce=ae;this.color=ce.color,this.fontFamily=ce.fontFamily,this.padding=ce.padding,this.text=ce.text,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setSize(),this.sizeText(),this.positionTextEditor()},se.typeName="TextMarker",se.title="Text marker",se.icon='',se}(pe),Te=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=me.defaultColor,le.lineWidth=me.defaultStrokeWidth,le.pixelRatio=me.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new Be("Color",me.defaultColorSet,me.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.drawingImage)},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.drawingImage=Ae.createImage(),this.visual.appendChild(this.drawingImage);var ae=Ae.createTransform();this.visual.transform.baseVal.appendItem(ae),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ae.x,ae.y),this.drawing=!0):he.prototype.pointerDown.call(this,ae,ce)},se.prototype.manipulate=function(ae){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ae.x,ae.y),this.canvasContext.stroke()):he.prototype.manipulate.call(this,ae)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),Ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},se.prototype.pointerUp=function(ae){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):he.prototype.pointerUp.call(this,ae)},se.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},se.prototype.select=function(){this.state==="creating"&&this.finishCreation(),he.prototype.select.call(this)},se.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),he.prototype.deselect.call(this)},se.prototype.finishCreation=function(){for(var ae=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ce=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],me=ce[0],le=ce[1],ot=ce[2],Ht=ce[3],on=!1,kn=0;kn0&&(on=!0,knHt&&(Ht=kn),wn>ot&&(ot=wn));if(on){this.left=me/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(ot-me)/this.pixelRatio,this.height=(Ht-le)/this.pixelRatio;var Xn=document.createElement("canvas");Xn.width=ot-me,Xn.height=Ht-le,Xn.getContext("2d").putImageData(this.canvasContext.getImageData(me,le,ot-me,Ht-le),0,0),this.drawingImgUrl=Xn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},se.prototype.setDrawingImage=function(){Ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},se.prototype.setColor=function(ae){this.color=ae,this.colorChanged(ae)},se.prototype.setLineWidth=function(ae){this.lineWidth=ae},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({drawingImgUrl:this.drawingImgUrl},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){this.createVisual(),he.prototype.restoreState.call(this,ae),this.drawingImgUrl=ae.drawingImgUrl,this.setDrawingImage()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setDrawingImage()},se.typeName="FreehandMarker",se.title="Freehand marker",se.icon='',se}(pe),rt=function(he){function se(ae,ce,me){var le=he.call(this,ae,me||'')||this;return le.typeBoxes=[],le.currentType=ce,le.setCurrentType=le.setCurrentType.bind(le),le}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2";for(var me=function(Ht){var on="both";switch(Ht){case 0:on="both";break;case 1:on="start";break;case 2:on="end";break;case 3:on="none"}var kn=document.createElement("div");if(kn.style.display="flex",kn.style.flexGrow="2",kn.style.alignItems="center",kn.style.justifyContent="space-between",kn.style.padding="5px",kn.style.borderWidth="2px",kn.style.borderStyle="solid",kn.style.borderColor=on===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",kn.addEventListener("click",function(){ae.setCurrentType(on,kn)}),ce.appendChild(kn),on==="both"||on==="start"){var wn=document.createElement("div");wn.style.display="flex",wn.style.alignItems="center",wn.style.minHeight="20px",wn.innerHTML=` `,wn.style.marginLeft="5px",kn.appendChild(wn)}var Xn=document.createElement("div");Xn.style.display="flex",Xn.style.alignItems="center",Xn.style.minHeight="20px",Xn.style.flexGrow="2";var Nn=document.createElement("hr");if(Nn.style.minWidth="20px",Nn.style.border="0px",Nn.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Nn.style.flexGrow="2",Xn.appendChild(Nn),kn.appendChild(Xn),on==="both"||on==="end"){var Pr=document.createElement("div");Pr.style.display="flex",Pr.style.alignItems="center",Pr.style.minHeight="20px",Pr.innerHTML=` - `,Pr.style.marginRight="5px",kn.appendChild(Pr)}le.typeBoxes.push(kn)},le=this,ot=0;ot<4;ot++)me(ot);return ce},se.prototype.setCurrentType=function(ae,ce){var me=this;this.currentType=ae,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings!==void 0?me.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},se}(Oe),Bt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new at("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.arrow1&&ae!==this.arrow2)},se.prototype.getArrowPoints=function(ae,ce){var me=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ae-me/2+","+(ce+le/2)+" "+ae+","+(ce-le/2)+" "+(ae+me/2)+","+(ce+le/2)},se.prototype.createTips=function(){this.arrow1=Ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.arrow2)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="creating"&&this.createTips()},se.prototype.adjustVisual=function(){if(he.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ae=0;Math.abs(this.x1-this.x2)>.1&&(ae=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ce=this.arrow1.transform.baseVal.getItem(0);ce.setRotate(ae,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ce,0);var me=this.arrow2.transform.baseVal.getItem(0);me.setRotate(ae+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(me,0)}},se.prototype.setArrowType=function(ae){this.arrowType=ae,this.adjustVisual(),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({arrowType:this.arrowType},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.arrowType=ce.arrowType,this.createTips(),this.adjustVisual()},se.typeName="ArrowMarker",se.title="Arrow marker",se.icon='',se}(ut),ct=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.fillColor=me.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Be("Color",me.defaultColorSet,me.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return ve(se,he),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="CoverMarker",se.title="Cover marker",se.icon='',se}(Ke),$e=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.opacities=[],ot.opacityBoxes=[],ot.opacities=ce,ot.currentOpacity=me,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",ce.style.justifyContent="space-between",this.opacities.forEach(function(me){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=me===ae.currentOpacity?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentOpacity(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.innerText=100*me+"%",le.appendChild(ot),ae.opacityBoxes.push(le)}),ce},se.prototype.setCurrentOpacity=function(ae,ce){var me=this;this.currentOpacity=ae,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},se}(Oe),Ft=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=me.defaultHighlightColor,le.strokeWidth=0,le.opacity=me.defaultHighlightOpacity,le.fillPanel=new Be("Color",me.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new $e("Opacity",me.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return ve(se,he),se.prototype.setOpacity=function(ae){this.opacity=ae,this.visual&&Ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="HighlightMarker",se.title="Highlight marker",se.icon='',se}(ct),De='',ge='',lt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=me.defaultStrokeColor,le.bgColor=me.defaultFillColor,le.fontFamily=me.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new Be("Text color",me.defaultColorSet,le.color,De),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Be("Fill color",me.defaultColorSet,le.bgColor,ge),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Le("Font",me.defaultFontFamilies,me.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Ye,le.tipGrip.visual.transform.baseVal.appendItem(Ae.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return ve(se,he),se.prototype.ownsTarget=function(ae){return he.prototype.ownsTarget.call(this,ae)||this.tipGrip.ownsTarget(ae)||this.tip===ae},se.prototype.createTip=function(){Ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},se.prototype.pointerDown=function(ae,ce){this.state==="new"&&he.prototype.pointerDown.call(this,ae,ce),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ce)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):he.prototype.pointerDown.call(this,ae,ce)},se.prototype.pointerUp=function(ae){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,he.prototype.pointerUp.call(this,ae);else{var ce=this.state==="creating";he.prototype.pointerUp.call(this,ae),this.setTipPoints(ce),this.positionTip()}},se.prototype.manipulate=function(ae){if(this.tipMoving){var ce=this.unrotatePoint(ae);this.tipPosition={x:ce.x-this.manipulationStartLeft,y:ce.y-this.manipulationStartTop},this.positionTip()}else he.prototype.manipulate.call(this,ae)},se.prototype.setBgColor=function(ae){this.bgRectangle&&this.tip&&(Ae.setAttributes(this.bgRectangle,[["fill",ae]]),Ae.setAttributes(this.tip,[["fill",ae]])),this.bgColor=ae,this.fillColorChanged(ae)},se.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},se.prototype.setTipPoints=function(ae){ae===void 0&&(ae=!1);var ce=Math.min(this.height/2,15),me=this.height/5;ae&&(this.tipPosition={x:ce+me/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?le.1)){var ae=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ce=this.tip1.transform.baseVal.getItem(0);ce.setRotate(ae,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ce,0);var me=this.tip2.transform.baseVal.getItem(0);me.setRotate(ae+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(me,0)}},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae),this.createTips(),this.adjustVisual()},se.typeName="MeasurementMarker",se.title="Measurement marker",se.icon='',se}(ut),je=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokePanel.colors=me.defaultColorSet,le.fillColor="transparent",le}return ve(se,he),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="EllipseFrameMarker",se.title="Ellipse frame marker",se.icon='',se}(wt),Ve=function(){function he(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),he.prototype.addUndoStep=function(se){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(se)||(this.undoStack.push(se),JSON.stringify(this.lastRedoStep)!==JSON.stringify(se)&&this.redoStack.splice(0,this.redoStack.length))},he.prototype.replaceLastUndoStep=function(se){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=se)},he.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},he.prototype.undo=function(){if(this.undoStack.length>1){var se=this.undoStack.pop();return se!==void 0&&this.redoStack.push(se),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},he.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},he}(),pt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.strokePanel=new Be("Line color",me.defaultColorSet,me.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Et("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.selectorCurve&&ae!==this.visibleCurve&&!this.curveGrip.ownsTarget(ae))},se.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.selectorCurve=Ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ae.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ae.x,this.curveY=ae.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ce)&&(this.activeGrip=this.curveGrip,this._state="resize")},se.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},se.prototype.setupControlBox=function(){he.prototype.setupControlBox.call(this),this.curveControlLine1=Ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ae.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},se.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,he.prototype.addControlGrips.call(this)},se.prototype.positionGrips=function(){he.prototype.positionGrips.call(this);var ae=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ae/2,this.curveY-ae/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},se.prototype.manipulate=function(ae){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ae.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ae.y-this.manipulationStartY),he.prototype.manipulate.call(this,ae)},se.prototype.resize=function(ae){this.activeGrip===this.curveGrip&&(this.curveX=ae.x,this.curveY=ae.y),he.prototype.resize.call(this,ae),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.adjustVisual(),this.colorChanged(ae)},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.adjustVisual()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.adjustVisual()},se.prototype.scale=function(ae,ce){this.curveX=this.curveX*ae,this.curveY=this.curveY*ce,he.prototype.scale.call(this,ae,ce)},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.curveX=ce.curveX,this.curveY=ce.curveY,this.createVisual(),this.adjustVisual()},se.typeName="CurveMarker",se.title="Curve marker",se.icon='',se}(Xe),Kt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.fillColor=me.defaultFillColor,le.textColor=me.defaultStrokeColor,le.fontFamily=me.defaultFontFamily,le.fontSize=me.defaultCaptionFontSize,le.captionText=me.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new Be("Line color",We(me.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Be("Fill color",We(me.defaultColorSet,["transparent"]),le.fillColor,ge),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Et("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Le("Font",me.defaultFontFamilies,me.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Be("Text color",me.defaultColorSet,le.textColor,De),le.textColorPanel.onColorChanged=le.setTextColor,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.frame&&ae!==this.captionBg&&ae!==this.captionElement)},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ae.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ae.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Ae.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},se.prototype.setCaptionText=function(ae){this.captionText=ae,this.captionElement.textContent=this.captionText,this.sizeCaption()},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.isMoved=!1,this.pointerDownPoint=ae,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},se.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ae.x-this.pointerDownPoint.x)>5||Math.abs(ae.y-this.pointerDownPoint.y)>5)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},se.prototype.sizeCaption=function(){var ae=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ae.width+2*this.PADDING,this.captionBoxHeight=ae.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ae.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Ae.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},se.prototype.showTextEditor=function(){var ae=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ce){ce.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ce){ce.key==="Enter"&&ae.finishTextEditing(ae.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ae.finishTextEditing(ae.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ae.finishTextEditing(ae.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},se.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},se.prototype.finishTextEditing=function(ae){this.setCaptionText(ae.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},se.prototype.setFont=function(ae){this.captionElement&&Ae.setAttributes(this.captionElement,[["font-family",ae]]),this.fontFamily=ae,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},se.prototype.setTextColor=function(ae){this.captionElement&&Ae.setAttributes(this.captionElement,[["fill",ae]]),this.textColor=ae,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},se.prototype.setSize=function(){he.prototype.setSize.call(this),Ae.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},se.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},se.prototype.dblClick=function(ae,ce){he.prototype.dblClick.call(this,ae,ce),this.showTextEditor()},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.frame&&Ae.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},se.prototype.setFillColor=function(ae){this.fillColor=ae,this.captionBg&&Ae.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ae),this.stateChanged()},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.frame&&Ae.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.frame&&Ae.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},he.prototype.getState.call(this));return ae.typeName=this.typeName,ae},se.prototype.restoreState=function(ae){var ce=ae;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.textColor=ce.textColor,this.fontFamily=ce.fontFamily,this.captionText=ce.captionText,this.fontSize=ce.fontSize,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setSize()},se.typeName="CaptionFrameMarker",se.title="Caption frame marker",se.icon='',se}(pe),kt=function(){function he(se,ae){ae===void 0&&(ae=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=se,this.cancelable=ae}return Object.defineProperty(he.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),he.prototype.preventDefault=function(){this._defaultPrevented=!0},he}(),dn=function(he){function se(ae,ce,me){var le=he.call(this,ae,!1)||this;return le.dataUrl=ce,le.state=me,le}return ve(se,he),se}(kt),dt=function(he){function se(ae,ce,me){me===void 0&&(me=!1);var le=he.call(this,ae,me)||this;return le.marker=ce,le}return ve(se,he),se}(kt),Nt=function(){function he(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return he.prototype.addEventListener=function(se,ae){this[se].push(ae)},he.prototype.removeEventListener=function(se,ae){var ce=this[se].indexOf(ae);ce>-1&&this[se].splice(ce,1)},he}(),mn=function(){function he(se){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new st,this._isOpen=!1,this.undoRedoManager=new Ve,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Nt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=he.instanceCounter++,this.styles=new Re(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=se,this.targetRoot=document.body,this.width=se.clientWidth,this.height=se.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(he.prototype,"ALL_MARKER_TYPES",{get:function(){return[At,Ne,Bt,ze,je,wt,Ft,lt,yt,ct,ut,pt,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[At,Ne,Bt,ze,wt,Ft,lt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"BASIC_MARKER_TYPES",{get:function(){return[At,Ne,Bt,ze,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(se){var ae=this;this._availableMarkerTypes.splice(0),se.forEach(function(ce){if(typeof ce=="string"){var me=ae.ALL_MARKER_TYPES.find(function(le){return le.typeName===ce});me!==void 0&&ae._availableMarkerTypes.push(me)}else ae._availableMarkerTypes.push(ce)})},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(se){this._zoomLevel=se,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),he.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},he.prototype.show=function(){var se=this;this.styles.styleSheetRoot===void 0&&Se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ae){return ae(new kt(se))})},he.prototype.render=function(){return xe(this,void 0,void 0,function(){var se;return Je(this,function(ae){switch(ae.label){case 0:return this.setCurrentMarker(),(se=new tt).naturalSize=this.renderAtNaturalSize,se.imageType=this.renderImageType,se.imageQuality=this.renderImageQuality,se.markersOnly=this.renderMarkersOnly,se.width=this.renderWidth,se.height=this.renderHeight,[4,se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ae.sent(),[4,se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ae.sent()]}})})},he.prototype.close=function(se){var ae=this;if(se===void 0&&(se=!1),this.isOpen){var ce=!1;se||this.eventListeners.beforeclose.forEach(function(me){var le=new kt(ae,!0);me(le),le.defaultPrevented&&(ce=!0)}),ce||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(me){return me(new kt(ae))}),this.detachEvents(),this._isOpen=!1)}},he.prototype.addMarkersToToolbar=function(){for(var se,ae=[],ce=0;cethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*se:this.editorCanvas.clientWidth,ce=ae',se.title="Powered by marker.js",se.style.display="grid",se.style.alignItems="center",se.style.justifyItems="center",se.style.padding="3px",se.style.width="20px",se.style.height="20px",this.logoUI.appendChild(se),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},he.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},he.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},he.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},he.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var se=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=se+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ht(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(se),1),se.dispose()},he.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},he.prototype.toolbarButtonClicked=function(se,ae){if(se==="marker"&&ae!==void 0)this.createNewMarker(ae);else if(se==="action")switch(ae){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},he.prototype.deleteSelectedMarker=function(){var se=this;if(this._currentMarker!==void 0){var ae=!1;if(this.eventListeners.markerbeforedelete.forEach(function(me){var le=new dt(se,se._currentMarker,!0);me(le),le.defaultPrevented&&(ae=!0)}),!ae){var ce=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(me){return me(new dt(se,ce))})}}},he.prototype.clear=function(){var se=this,ae=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Ht=new dt(se,void 0,!0);ot(Ht),Ht.defaultPrevented&&(ae=!0)}),!ae)){this.setCurrentMarker();for(var ce=function(ot){var Ht=me.markers[ot];me.setCurrentMarker(me.markers[ot]),me._currentMarker.dispose(),me.markerImage.removeChild(me._currentMarker.container),me.markers.splice(me.markers.indexOf(me._currentMarker),1),me.eventListeners.markerdelete.forEach(function(on){return on(new dt(se,Ht))})},me=this,le=this.markers.length-1;le>=0;le--)ce(le);this.addUndoStep()}},Object.defineProperty(he.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),he.prototype.showNotesEditor=function(){var se;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(se=this._currentMarker.notes)!==null&&se!==void 0?se:"",this.overlayContainer.appendChild(this.notesArea))},he.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},he.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},he.prototype.addUndoStep=function(){var se=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ae=this.getState(),ce=this.undoRedoManager.getLastUndoStep();if(!ce||ce.width===ae.width&&ce.height===ae.height){var me=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ae),me1&&this.panTo({x:se.clientX,y:se.clientY}))},he.prototype.onPointerUp=function(se){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(se.clientX,se.clientY)),this.isDragging=!1,this.addUndoStep()},he.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},he.prototype.onKeyUp=function(se){this._currentMarker===void 0||this.notesArea!==void 0||se.key!=="Delete"&&se.key!=="Backspace"||this.deleteSelectedMarker()},he.prototype.clientToLocalCoordinates=function(se,ae){var ce=this.markerImage.getBoundingClientRect();return{x:(se-ce.left)/this.zoomLevel,y:(ae-ce.top)/this.zoomLevel}},he.prototype.onWindowResize=function(){this.positionUI()},he.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var se=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=se+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},he.prototype.addLicenseKey=function(se){Ue.addKey(se)},he.prototype.addEventListener=function(se,ae){this.eventListeners.addEventListener(se,ae)},he.prototype.removeEventListener=function(se,ae){this.eventListeners.removeEventListener(se,ae)},he.prototype.renderState=function(se){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(se),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(he.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),he.prototype.focus=function(){var se=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ae){return ae(new kt(se))}))},he.prototype.blur=function(){var se=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ae){return ae(new kt(se))}))},he.instanceCounter=0,he}()},22061:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z5:function(){return Lu},_l:function(){return bs},bK:function(){return is}});var E=ne(59301),ve=ne(69168),xe=ne(54476),Je=ne(59781),We=E.createContext(null),Ae=null;function Ue(ee){ee()}var tt=Ue,Se=function(te){return tt=te},Re=function(){return tt};function Qe(){var ee=Re(),te=null,ie=null;return{clear:function(){te=null,ie=null},notify:function(){ee(function(){for(var Ce=te;Ce;)Ce.callback(),Ce=Ce.next})},get:function(){for(var Ce=[],we=te;we;)Ce.push(we),we=we.next;return Ce},subscribe:function(Ce){var we=!0,Ie=ie={callback:Ce,next:null,prev:ie};return Ie.prev?Ie.prev.next=Ie:te=Ie,function(){!we||te===null||(we=!1,Ie.next?Ie.next.prev=Ie.prev:ie=Ie.prev,Ie.prev?Ie.prev.next=Ie.next:te=Ie.next)}}}}var qe={notify:function(){},get:function(){return[]}};function ht(ee,te){var ie,de=qe;function Ce(mt){return ft(),de.subscribe(mt)}function we(){de.notify()}function Ie(){bt.onStateChange&&bt.onStateChange()}function He(){return!!ie}function ft(){ie||(ie=te?te.addNestedSub(Ie):ee.subscribe(Ie),de=Qe())}function Dt(){ie&&(ie(),ie=void 0,de.clear(),de=qe)}var bt={addNestedSub:Ce,notifyNestedSubs:we,handleChangeWrapper:Ie,isSubscribed:He,trySubscribe:ft,tryUnsubscribe:Dt,getListeners:function(){return de}};return bt}var Ge=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect;function Oe(ee){var te=ee.store,ie=ee.context,de=ee.children,Ce=(0,E.useMemo)(function(){var He=ht(te);return{store:te,subscription:He}},[te]),we=(0,E.useMemo)(function(){return te.getState()},[te]);Ge(function(){var He=Ce.subscription;return He.onStateChange=He.notifyNestedSubs,He.trySubscribe(),we!==te.getState()&&He.notifyNestedSubs(),function(){He.tryUnsubscribe(),He.onStateChange=null}},[Ce,we]);var Ie=ie||We;return E.createElement(Ie.Provider,{value:Ce},de)}var Be=Oe,be=ne(85377),Pe=ne(94266),Ye=ne.n(Pe),it=ne(53410),pe=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ke=["reactReduxForwardedRef"],nt=[],Et=[null,null],At=function(te){try{return JSON.stringify(te)}catch(ie){return String(te)}};function st(ee,te){var ie=ee[1];return[te.payload,ie+1]}function Xe(ee,te,ie){Ge(function(){return ee.apply(void 0,te)},ie)}function ut(ee,te,ie,de,Ce,we,Ie){ee.current=de,te.current=Ce,ie.current=!1,we.current&&(we.current=null,Ie())}function Le(ee,te,ie,de,Ce,we,Ie,He,ft,Dt){if(ee){var bt=!1,mt=null,gt=function(){if(!bt){var kr=te.getState(),Wr,qr;try{Wr=de(kr,Ce.current)}catch(Na){qr=Na,mt=Na}qr||(mt=null),Wr===we.current?Ie.current||ft():(we.current=Wr,He.current=Wr,Ie.current=!0,Dt({type:"STORE_UPDATED",payload:{error:qr}}))}};ie.onStateChange=gt,ie.trySubscribe(),gt();var Mt=function(){if(bt=!0,ie.tryUnsubscribe(),ie.onStateChange=null,mt)throw mt};return Mt}}var ze=function(){return[null,0]};function Ne(ee,te){te===void 0&&(te={});var ie=te,de=ie.getDisplayName,Ce=de===void 0?function(fo){return"ConnectAdvanced("+fo+")"}:de,we=ie.methodName,Ie=we===void 0?"connectAdvanced":we,He=ie.renderCountProp,ft=He===void 0?void 0:He,Dt=ie.shouldHandleStateChanges,bt=Dt===void 0?!0:Dt,mt=ie.storeKey,gt=mt===void 0?"store":mt,Mt=ie.withRef,gn=Mt===void 0?!1:Mt,kr=ie.forwardRef,Wr=kr===void 0?!1:kr,qr=ie.context,Na=qr===void 0?We:qr,Ka=(0,be.Z)(ie,pe);if(0)var ei;var go=Na;return function(Ho){var zl=Ho.displayName||Ho.name||"Component",Ko=Ce(zl),Ul=(0,xe.Z)({},Ka,{getDisplayName:Ce,methodName:Ie,renderCountProp:ft,shouldHandleStateChanges:bt,storeKey:gt,displayName:Ko,wrappedComponentName:zl,WrappedComponent:Ho}),fs=Ka.pure;function xs(ws){return ee(ws.dispatch,Ul)}var gu=fs?E.useMemo:function(ws){return ws()};function ou(ws){var Wu=(0,E.useMemo)(function(){var Ec=ws.reactReduxForwardedRef,Vc=(0,be.Z)(ws,Ke);return[ws.context,Ec,Vc]},[ws]),Eu=Wu[0],gc=Wu[1],Ju=Wu[2],Vu=(0,E.useMemo)(function(){return Eu&&Eu.Consumer&&(0,it.isContextConsumer)(E.createElement(Eu.Consumer,null))?Eu:go},[Eu,go]),bu=(0,E.useContext)(Vu),qu=!!ws.store&&!!ws.store.getState&&!!ws.store.dispatch,_c=!!bu&&!!bu.store,Cu=qu?ws.store:bu.store,yc=(0,E.useMemo)(function(){return xs(Cu)},[Cu]),Pc=(0,E.useMemo)(function(){if(!bt)return Et;var Ec=ht(Cu,qu?null:bu.subscription),Vc=Ec.notifyNestedSubs.bind(Ec);return[Ec,Vc]},[Cu,qu,bu]),sc=Pc[0],kc=Pc[1],Ic=(0,E.useMemo)(function(){return qu?bu:(0,xe.Z)({},bu,{subscription:sc})},[qu,bu,sc]),zc=(0,E.useReducer)(st,nt,ze),Kc=zc[0],Nc=Kc[0],Qc=zc[1];if(Nc&&Nc.error)throw Nc.error;var Uc=(0,E.useRef)(),Hc=(0,E.useRef)(Ju),Oc=(0,E.useRef)(),Gc=(0,E.useRef)(!1),jc=gu(function(){return Oc.current&&Ju===Hc.current?Oc.current:yc(Cu.getState(),Ju)},[Cu,Nc,Ju]);Xe(ut,[Hc,Uc,Gc,Ju,jc,Oc,kc]),Xe(Le,[bt,Cu,sc,yc,Hc,Uc,Gc,Oc,kc,Qc],[Cu,sc,yc]);var Wc=(0,E.useMemo)(function(){return E.createElement(Ho,(0,xe.Z)({},jc,{ref:gc}))},[gc,Ho,jc]),Xc=(0,E.useMemo)(function(){return bt?E.createElement(Vu.Provider,{value:Ic},Wc):Wc},[Vu,Wc,Ic]);return Xc}var Xs=fs?E.memo(ou):ou;if(Xs.WrappedComponent=Ho,Xs.displayName=ou.displayName=Ko,Wr){var yu=E.forwardRef(function(Wu,Eu){return E.createElement(Xs,(0,xe.Z)({},Wu,{reactReduxForwardedRef:Eu}))});return yu.displayName=Ko,yu.WrappedComponent=Ho,Ye()(yu,Ho)}return Ye()(Xs,Ho)}}function at(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function Bt(ee,te){if(at(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ie=Object.keys(ee),de=Object.keys(te);if(ie.length!==de.length)return!1;for(var Ce=0;Ce=0;de--){var Ce=te[de](ee);if(Ce)return Ce}return function(we,Ie){throw new Error("Invalid value of type "+typeof ee+" for "+ie+" argument when connecting component "+Ie.wrappedComponentName+".")}}function le(ee,te){return ee===te}function ot(ee){var te=ee===void 0?{}:ee,ie=te.connectHOC,de=ie===void 0?Ne:ie,Ce=te.mapStateToPropsFactories,we=Ce===void 0?pt:Ce,Ie=te.mapDispatchToPropsFactories,He=Ie===void 0?yt:Ie,ft=te.mergePropsFactories,Dt=ft===void 0?Nt:ft,bt=te.selectorFactory,mt=bt===void 0?ae:bt;return function(Mt,gn,kr,Wr){Wr===void 0&&(Wr={});var qr=Wr,Na=qr.pure,Ka=Na===void 0?!0:Na,ei=qr.areStatesEqual,go=ei===void 0?le:ei,fo=qr.areOwnPropsEqual,Ho=fo===void 0?Bt:fo,zl=qr.areStatePropsEqual,Ko=zl===void 0?Bt:zl,Ul=qr.areMergedPropsEqual,fs=Ul===void 0?Bt:Ul,xs=(0,be.Z)(qr,ce),gu=me(Mt,we,"mapStateToProps"),ou=me(gn,He,"mapDispatchToProps"),Xs=me(kr,Dt,"mergeProps");return de(mt,(0,xe.Z)({methodName:"connect",getDisplayName:function(ws){return"Connect("+ws+")"},shouldHandleStateChanges:!!Mt,initMapStateToProps:gu,initMapDispatchToProps:ou,initMergeProps:Xs,pure:Ka,areStatesEqual:go,areOwnPropsEqual:Ho,areStatePropsEqual:Ko,areMergedPropsEqual:fs},xs))}}var Ht=ot();function on(){var ee=useContext(ReactReduxContext);return ee}function kn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var de=te(),Ce=de.store;return Ce}}var wn=null;function Xn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=te();return de.dispatch}}var Nn=null,Pr=function(te,ie){return te===ie};function Vr(ee,te,ie,de){var Ce=useReducer(function(gn){return gn+1},0),we=Ce[1],Ie=useMemo(function(){return createSubscription(ie,de)},[ie,de]),He=useRef(),ft=useRef(),Dt=useRef(),bt=useRef(),mt=ie.getState(),gt;try{if(ee!==ft.current||mt!==Dt.current||He.current){var Mt=ee(mt);bt.current===void 0||!te(Mt,bt.current)?gt=Mt:gt=bt.current}else gt=bt.current}catch(gn){throw He.current&&(gn.message+=` + `,Pr.style.marginRight="5px",kn.appendChild(Pr)}le.typeBoxes.push(kn)},le=this,ot=0;ot<4;ot++)me(ot);return ce},se.prototype.setCurrentType=function(ae,ce){var me=this;this.currentType=ae,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings!==void 0?me.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},se}(Oe),Pt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new rt("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.arrow1&&ae!==this.arrow2)},se.prototype.getArrowPoints=function(ae,ce){var me=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ae-me/2+","+(ce+le/2)+" "+ae+","+(ce-le/2)+" "+(ae+me/2)+","+(ce+le/2)},se.prototype.createTips=function(){this.arrow1=Ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ae.createTransform()),this.visual.appendChild(this.arrow2)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.state==="creating"&&this.createTips()},se.prototype.adjustVisual=function(){if(he.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ae=0;Math.abs(this.x1-this.x2)>.1&&(ae=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ce=this.arrow1.transform.baseVal.getItem(0);ce.setRotate(ae,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ce,0);var me=this.arrow2.transform.baseVal.getItem(0);me.setRotate(ae+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(me,0)}},se.prototype.setArrowType=function(ae){this.arrowType=ae,this.adjustVisual(),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({arrowType:this.arrowType},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.arrowType=ce.arrowType,this.createTips(),this.adjustVisual()},se.typeName="ArrowMarker",se.title="Arrow marker",se.icon='',se}(ht),st=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.fillColor=me.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Be("Color",me.defaultColorSet,me.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return ve(se,he),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="CoverMarker",se.title="Cover marker",se.icon='',se}(Ke),et=function(he){function se(ae,ce,me,le){var ot=he.call(this,ae,le||'')||this;return ot.opacities=[],ot.opacityBoxes=[],ot.opacities=ce,ot.currentOpacity=me,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ve(se,he),se.prototype.getUi=function(){var ae=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",ce.style.justifyContent="space-between",this.opacities.forEach(function(me){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=me===ae.currentOpacity?ae.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ae.setCurrentOpacity(me,le)}),ce.appendChild(le);var ot=document.createElement("div");ot.innerText=100*me+"%",le.appendChild(ot),ae.opacityBoxes.push(le)}),ce},se.prototype.setCurrentOpacity=function(ae,ce){var me=this;this.currentOpacity=ae,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ce?me.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},se}(Oe),Ft=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=me.defaultHighlightColor,le.strokeWidth=0,le.opacity=me.defaultHighlightOpacity,le.fillPanel=new Be("Color",me.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new et("Opacity",me.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return ve(se,he),se.prototype.setOpacity=function(ae){this.opacity=ae,this.visual&&Ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="HighlightMarker",se.title="Highlight marker",se.icon='',se}(st),De='',ge='',lt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=me.defaultStrokeColor,le.bgColor=me.defaultFillColor,le.fontFamily=me.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new Be("Text color",me.defaultColorSet,le.color,De),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Be("Fill color",me.defaultColorSet,le.bgColor,ge),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Pe("Font",me.defaultFontFamilies,me.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Ye,le.tipGrip.visual.transform.baseVal.appendItem(Ae.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return ve(se,he),se.prototype.ownsTarget=function(ae){return he.prototype.ownsTarget.call(this,ae)||this.tipGrip.ownsTarget(ae)||this.tip===ae},se.prototype.createTip=function(){Ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},se.prototype.pointerDown=function(ae,ce){this.state==="new"&&he.prototype.pointerDown.call(this,ae,ce),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ce)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):he.prototype.pointerDown.call(this,ae,ce)},se.prototype.pointerUp=function(ae){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,he.prototype.pointerUp.call(this,ae);else{var ce=this.state==="creating";he.prototype.pointerUp.call(this,ae),this.setTipPoints(ce),this.positionTip()}},se.prototype.manipulate=function(ae){if(this.tipMoving){var ce=this.unrotatePoint(ae);this.tipPosition={x:ce.x-this.manipulationStartLeft,y:ce.y-this.manipulationStartTop},this.positionTip()}else he.prototype.manipulate.call(this,ae)},se.prototype.setBgColor=function(ae){this.bgRectangle&&this.tip&&(Ae.setAttributes(this.bgRectangle,[["fill",ae]]),Ae.setAttributes(this.tip,[["fill",ae]])),this.bgColor=ae,this.fillColorChanged(ae)},se.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},se.prototype.setTipPoints=function(ae){ae===void 0&&(ae=!1);var ce=Math.min(this.height/2,15),me=this.height/5;ae&&(this.tipPosition={x:ce+me/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?le.1)){var ae=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ce=this.tip1.transform.baseVal.getItem(0);ce.setRotate(ae,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ce,0);var me=this.tip2.transform.baseVal.getItem(0);me.setRotate(ae+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(me,0)}},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae),this.createTips(),this.adjustVisual()},se.typeName="MeasurementMarker",se.title="Measurement marker",se.icon='',se}(ht),Ze=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokePanel.colors=me.defaultColorSet,le.fillColor="transparent",le}return ve(se,he),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=se.typeName,ae},se.typeName="EllipseFrameMarker",se.title="Ellipse frame marker",se.icon='',se}(Et),Ve=function(){function he(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),he.prototype.addUndoStep=function(se){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(se)||(this.undoStack.push(se),JSON.stringify(this.lastRedoStep)!==JSON.stringify(se)&&this.redoStack.splice(0,this.redoStack.length))},he.prototype.replaceLastUndoStep=function(se){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=se)},he.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},he.prototype.undo=function(){if(this.undoStack.length>1){var se=this.undoStack.pop();return se!==void 0&&this.redoStack.push(se),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},he.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},he}(),ft=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.strokePanel=new Be("Line color",me.defaultColorSet,me.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new bt("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.selectorCurve&&ae!==this.visibleCurve&&!this.curveGrip.ownsTarget(ae))},se.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.selectorCurve=Ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ae.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ae.x,this.curveY=ae.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ce)&&(this.activeGrip=this.curveGrip,this._state="resize")},se.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},se.prototype.setupControlBox=function(){he.prototype.setupControlBox.call(this),this.curveControlLine1=Ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ae.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},se.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,he.prototype.addControlGrips.call(this)},se.prototype.positionGrips=function(){he.prototype.positionGrips.call(this);var ae=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ae/2,this.curveY-ae/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},se.prototype.manipulate=function(ae){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ae.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ae.y-this.manipulationStartY),he.prototype.manipulate.call(this,ae)},se.prototype.resize=function(ae){this.activeGrip===this.curveGrip&&(this.curveX=ae.x,this.curveY=ae.y),he.prototype.resize.call(this,ae),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.adjustVisual(),this.colorChanged(ae)},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.adjustVisual()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.adjustVisual()},se.prototype.scale=function(ae,ce){this.curveX=this.curveX*ae,this.curveY=this.curveY*ce,he.prototype.scale.call(this,ae,ce)},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},he.prototype.getState.call(this));return ae.typeName=se.typeName,ae},se.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var ce=ae;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.curveX=ce.curveX,this.curveY=ce.curveY,this.createVisual(),this.adjustVisual()},se.typeName="CurveMarker",se.title="Curve marker",se.icon='',se}(Xe),Kt=function(he){function se(ae,ce,me){var le=he.call(this,ae,ce,me)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=me.defaultColor,le.strokeWidth=me.defaultStrokeWidth,le.strokeDasharray=me.defaultStrokeDasharray,le.fillColor=me.defaultFillColor,le.textColor=me.defaultStrokeColor,le.fontFamily=me.defaultFontFamily,le.fontSize=me.defaultCaptionFontSize,le.captionText=me.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new Be("Line color",We(me.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Be("Fill color",We(me.defaultColorSet,["transparent"]),le.fillColor,ge),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new nt("Line width",me.defaultStrokeWidths,me.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new bt("Line style",me.defaultStrokeDasharrays,me.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Pe("Font",me.defaultFontFamilies,me.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Be("Text color",me.defaultColorSet,le.textColor,De),le.textColorPanel.onColorChanged=le.setTextColor,le}return ve(se,he),se.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.frame&&ae!==this.captionBg&&ae!==this.captionElement)},se.prototype.createVisual=function(){this.visual=Ae.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ae.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ae.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Ae.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},se.prototype.setCaptionText=function(ae){this.captionText=ae,this.captionElement.textContent=this.captionText,this.sizeCaption()},se.prototype.pointerDown=function(ae,ce){he.prototype.pointerDown.call(this,ae,ce),this.isMoved=!1,this.pointerDownPoint=ae,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},se.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ae.x-this.pointerDownPoint.x)>5||Math.abs(ae.y-this.pointerDownPoint.y)>5)},se.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},se.prototype.sizeCaption=function(){var ae=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ae.width+2*this.PADDING,this.captionBoxHeight=ae.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ae.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Ae.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},se.prototype.showTextEditor=function(){var ae=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(ce){ce.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ce){ce.key==="Enter"&&ae.finishTextEditing(ae.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ae.finishTextEditing(ae.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ae.finishTextEditing(ae.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},se.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},se.prototype.finishTextEditing=function(ae){this.setCaptionText(ae.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},se.prototype.setFont=function(ae){this.captionElement&&Ae.setAttributes(this.captionElement,[["font-family",ae]]),this.fontFamily=ae,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},se.prototype.setTextColor=function(ae){this.captionElement&&Ae.setAttributes(this.captionElement,[["fill",ae]]),this.textColor=ae,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},se.prototype.setSize=function(){he.prototype.setSize.call(this),Ae.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},se.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},se.prototype.dblClick=function(ae,ce){he.prototype.dblClick.call(this,ae,ce),this.showTextEditor()},se.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.frame&&Ae.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},se.prototype.setFillColor=function(ae){this.fillColor=ae,this.captionBg&&Ae.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ae),this.stateChanged()},se.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.frame&&Ae.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},se.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.frame&&Ae.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),se.prototype.getState=function(){var ae=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},he.prototype.getState.call(this));return ae.typeName=this.typeName,ae},se.prototype.restoreState=function(ae){var ce=ae;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.textColor=ce.textColor,this.fontFamily=ce.fontFamily,this.captionText=ce.captionText,this.fontSize=ce.fontSize,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},se.prototype.scale=function(ae,ce){he.prototype.scale.call(this,ae,ce),this.setSize()},se.typeName="CaptionFrameMarker",se.title="Caption frame marker",se.icon='',se}(pe),kt=function(){function he(se,ae){ae===void 0&&(ae=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=se,this.cancelable=ae}return Object.defineProperty(he.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),he.prototype.preventDefault=function(){this._defaultPrevented=!0},he}(),dn=function(he){function se(ae,ce,me){var le=he.call(this,ae,!1)||this;return le.dataUrl=ce,le.state=me,le}return ve(se,he),se}(kt),ct=function(he){function se(ae,ce,me){me===void 0&&(me=!1);var le=he.call(this,ae,me)||this;return le.marker=ce,le}return ve(se,he),se}(kt),Nt=function(){function he(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return he.prototype.addEventListener=function(se,ae){this[se].push(ae)},he.prototype.removeEventListener=function(se,ae){var ce=this[se].indexOf(ae);ce>-1&&this[se].splice(ce,1)},he}(),mn=function(){function he(se){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ut,this._isOpen=!1,this.undoRedoManager=new Ve,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Nt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=he.instanceCounter++,this.styles=new He(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=se,this.targetRoot=document.body,this.width=se.clientWidth,this.height=se.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(he.prototype,"ALL_MARKER_TYPES",{get:function(){return[At,Te,Pt,ze,Ze,Et,Ft,lt,yt,st,ht,ft,Kt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[At,Te,Pt,ze,Et,Ft,lt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"BASIC_MARKER_TYPES",{get:function(){return[At,Te,Pt,ze,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(se){var ae=this;this._availableMarkerTypes.splice(0),se.forEach(function(ce){if(typeof ce=="string"){var me=ae.ALL_MARKER_TYPES.find(function(le){return le.typeName===ce});me!==void 0&&ae._availableMarkerTypes.push(me)}else ae._availableMarkerTypes.push(ce)})},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(se){this._zoomLevel=se,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),he.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},he.prototype.show=function(){var se=this;this.styles.styleSheetRoot===void 0&&Se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ae){return ae(new kt(se))})},he.prototype.render=function(){return xe(this,void 0,void 0,function(){var se;return Je(this,function(ae){switch(ae.label){case 0:return this.setCurrentMarker(),(se=new tt).naturalSize=this.renderAtNaturalSize,se.imageType=this.renderImageType,se.imageQuality=this.renderImageQuality,se.markersOnly=this.renderMarkersOnly,se.width=this.renderWidth,se.height=this.renderHeight,[4,se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ae.sent(),[4,se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ae.sent()]}})})},he.prototype.close=function(se){var ae=this;if(se===void 0&&(se=!1),this.isOpen){var ce=!1;se||this.eventListeners.beforeclose.forEach(function(me){var le=new kt(ae,!0);me(le),le.defaultPrevented&&(ce=!0)}),ce||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(me){return me(new kt(ae))}),this.detachEvents(),this._isOpen=!1)}},he.prototype.addMarkersToToolbar=function(){for(var se,ae=[],ce=0;cethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*se:this.editorCanvas.clientWidth,ce=ae',se.title="Powered by marker.js",se.style.display="grid",se.style.alignItems="center",se.style.justifyItems="center",se.style.padding="3px",se.style.width="20px",se.style.height="20px",this.logoUI.appendChild(se),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},he.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},he.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},he.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},he.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var se=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=se+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new pt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(se),1),se.dispose()},he.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},he.prototype.toolbarButtonClicked=function(se,ae){if(se==="marker"&&ae!==void 0)this.createNewMarker(ae);else if(se==="action")switch(ae){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},he.prototype.deleteSelectedMarker=function(){var se=this;if(this._currentMarker!==void 0){var ae=!1;if(this.eventListeners.markerbeforedelete.forEach(function(me){var le=new ct(se,se._currentMarker,!0);me(le),le.defaultPrevented&&(ae=!0)}),!ae){var ce=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(me){return me(new ct(se,ce))})}}},he.prototype.clear=function(){var se=this,ae=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Ht=new ct(se,void 0,!0);ot(Ht),Ht.defaultPrevented&&(ae=!0)}),!ae)){this.setCurrentMarker();for(var ce=function(ot){var Ht=me.markers[ot];me.setCurrentMarker(me.markers[ot]),me._currentMarker.dispose(),me.markerImage.removeChild(me._currentMarker.container),me.markers.splice(me.markers.indexOf(me._currentMarker),1),me.eventListeners.markerdelete.forEach(function(on){return on(new ct(se,Ht))})},me=this,le=this.markers.length-1;le>=0;le--)ce(le);this.addUndoStep()}},Object.defineProperty(he.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),he.prototype.showNotesEditor=function(){var se;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(se=this._currentMarker.notes)!==null&&se!==void 0?se:"",this.overlayContainer.appendChild(this.notesArea))},he.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},he.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},he.prototype.addUndoStep=function(){var se=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ae=this.getState(),ce=this.undoRedoManager.getLastUndoStep();if(!ce||ce.width===ae.width&&ce.height===ae.height){var me=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ae),me1&&this.panTo({x:se.clientX,y:se.clientY}))},he.prototype.onPointerUp=function(se){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(se.clientX,se.clientY)),this.isDragging=!1,this.addUndoStep()},he.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},he.prototype.onKeyUp=function(se){this._currentMarker===void 0||this.notesArea!==void 0||se.key!=="Delete"&&se.key!=="Backspace"||this.deleteSelectedMarker()},he.prototype.clientToLocalCoordinates=function(se,ae){var ce=this.markerImage.getBoundingClientRect();return{x:(se-ce.left)/this.zoomLevel,y:(ae-ce.top)/this.zoomLevel}},he.prototype.onWindowResize=function(){this.positionUI()},he.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var se=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=se+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},he.prototype.addLicenseKey=function(se){Ue.addKey(se)},he.prototype.addEventListener=function(se,ae){this.eventListeners.addEventListener(se,ae)},he.prototype.removeEventListener=function(se,ae){this.eventListeners.removeEventListener(se,ae)},he.prototype.renderState=function(se){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(se),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(he.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),he.prototype.focus=function(){var se=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ae){return ae(new kt(se))}))},he.prototype.blur=function(){var se=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ae){return ae(new kt(se))}))},he.instanceCounter=0,he}()},22061:function(Bt,_t,ne){"use strict";ne.d(_t,{Z5:function(){return Lu},_l:function(){return bs},bK:function(){return is}});var E=ne(59301),ve=ne(69168),xe=ne(54476),Je=ne(59781),We=E.createContext(null),Ae=null;function Ue(ee){ee()}var tt=Ue,Se=function(te){return tt=te},He=function(){return tt};function Qe(){var ee=He(),te=null,ie=null;return{clear:function(){te=null,ie=null},notify:function(){ee(function(){for(var Ce=te;Ce;)Ce.callback(),Ce=Ce.next})},get:function(){for(var Ce=[],we=te;we;)Ce.push(we),we=we.next;return Ce},subscribe:function(Ce){var we=!0,Ie=ie={callback:Ce,next:null,prev:ie};return Ie.prev?Ie.prev.next=Ie:te=Ie,function(){!we||te===null||(we=!1,Ie.next?Ie.next.prev=Ie.prev:ie=Ie.prev,Ie.prev?Ie.prev.next=Ie.next:te=Ie.next)}}}}var qe={notify:function(){},get:function(){return[]}};function pt(ee,te){var ie,de=qe;function Ce(mt){return dt(),de.subscribe(mt)}function we(){de.notify()}function Ie(){Ct.onStateChange&&Ct.onStateChange()}function je(){return!!ie}function dt(){ie||(ie=te?te.addNestedSub(Ie):ee.subscribe(Ie),de=Qe())}function Dt(){ie&&(ie(),ie=void 0,de.clear(),de=qe)}var Ct={addNestedSub:Ce,notifyNestedSubs:we,handleChangeWrapper:Ie,isSubscribed:je,trySubscribe:dt,tryUnsubscribe:Dt,getListeners:function(){return de}};return Ct}var Ge=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect;function Oe(ee){var te=ee.store,ie=ee.context,de=ee.children,Ce=(0,E.useMemo)(function(){var je=pt(te);return{store:te,subscription:je}},[te]),we=(0,E.useMemo)(function(){return te.getState()},[te]);Ge(function(){var je=Ce.subscription;return je.onStateChange=je.notifyNestedSubs,je.trySubscribe(),we!==te.getState()&&je.notifyNestedSubs(),function(){je.tryUnsubscribe(),je.onStateChange=null}},[Ce,we]);var Ie=ie||We;return E.createElement(Ie.Provider,{value:Ce},de)}var Be=Oe,be=ne(85377),Ne=ne(94266),Ye=ne.n(Ne),it=ne(53410),pe=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ke=["reactReduxForwardedRef"],nt=[],bt=[null,null],At=function(te){try{return JSON.stringify(te)}catch(ie){return String(te)}};function ut(ee,te){var ie=ee[1];return[te.payload,ie+1]}function Xe(ee,te,ie){Ge(function(){return ee.apply(void 0,te)},ie)}function ht(ee,te,ie,de,Ce,we,Ie){ee.current=de,te.current=Ce,ie.current=!1,we.current&&(we.current=null,Ie())}function Pe(ee,te,ie,de,Ce,we,Ie,je,dt,Dt){if(ee){var Ct=!1,mt=null,gt=function(){if(!Ct){var kr=te.getState(),Wr,qr;try{Wr=de(kr,Ce.current)}catch(Na){qr=Na,mt=Na}qr||(mt=null),Wr===we.current?Ie.current||dt():(we.current=Wr,je.current=Wr,Ie.current=!0,Dt({type:"STORE_UPDATED",payload:{error:qr}}))}};ie.onStateChange=gt,ie.trySubscribe(),gt();var Mt=function(){if(Ct=!0,ie.tryUnsubscribe(),ie.onStateChange=null,mt)throw mt};return Mt}}var ze=function(){return[null,0]};function Te(ee,te){te===void 0&&(te={});var ie=te,de=ie.getDisplayName,Ce=de===void 0?function(fo){return"ConnectAdvanced("+fo+")"}:de,we=ie.methodName,Ie=we===void 0?"connectAdvanced":we,je=ie.renderCountProp,dt=je===void 0?void 0:je,Dt=ie.shouldHandleStateChanges,Ct=Dt===void 0?!0:Dt,mt=ie.storeKey,gt=mt===void 0?"store":mt,Mt=ie.withRef,gn=Mt===void 0?!1:Mt,kr=ie.forwardRef,Wr=kr===void 0?!1:kr,qr=ie.context,Na=qr===void 0?We:qr,Ka=(0,be.Z)(ie,pe);if(0)var ei;var go=Na;return function(Ho){var zl=Ho.displayName||Ho.name||"Component",Ko=Ce(zl),Ul=(0,xe.Z)({},Ka,{getDisplayName:Ce,methodName:Ie,renderCountProp:dt,shouldHandleStateChanges:Ct,storeKey:gt,displayName:Ko,wrappedComponentName:zl,WrappedComponent:Ho}),fs=Ka.pure;function xs(ws){return ee(ws.dispatch,Ul)}var gu=fs?E.useMemo:function(ws){return ws()};function ou(ws){var Wu=(0,E.useMemo)(function(){var Ec=ws.reactReduxForwardedRef,Vc=(0,be.Z)(ws,Ke);return[ws.context,Ec,Vc]},[ws]),Eu=Wu[0],gc=Wu[1],Ju=Wu[2],Vu=(0,E.useMemo)(function(){return Eu&&Eu.Consumer&&(0,it.isContextConsumer)(E.createElement(Eu.Consumer,null))?Eu:go},[Eu,go]),bu=(0,E.useContext)(Vu),qu=!!ws.store&&!!ws.store.getState&&!!ws.store.dispatch,_c=!!bu&&!!bu.store,Cu=qu?ws.store:bu.store,yc=(0,E.useMemo)(function(){return xs(Cu)},[Cu]),Pc=(0,E.useMemo)(function(){if(!Ct)return bt;var Ec=pt(Cu,qu?null:bu.subscription),Vc=Ec.notifyNestedSubs.bind(Ec);return[Ec,Vc]},[Cu,qu,bu]),sc=Pc[0],kc=Pc[1],Ic=(0,E.useMemo)(function(){return qu?bu:(0,xe.Z)({},bu,{subscription:sc})},[qu,bu,sc]),zc=(0,E.useReducer)(ut,nt,ze),Kc=zc[0],Nc=Kc[0],Qc=zc[1];if(Nc&&Nc.error)throw Nc.error;var Uc=(0,E.useRef)(),Hc=(0,E.useRef)(Ju),Oc=(0,E.useRef)(),Gc=(0,E.useRef)(!1),jc=gu(function(){return Oc.current&&Ju===Hc.current?Oc.current:yc(Cu.getState(),Ju)},[Cu,Nc,Ju]);Xe(ht,[Hc,Uc,Gc,Ju,jc,Oc,kc]),Xe(Pe,[Ct,Cu,sc,yc,Hc,Uc,Gc,Oc,kc,Qc],[Cu,sc,yc]);var Wc=(0,E.useMemo)(function(){return E.createElement(Ho,(0,xe.Z)({},jc,{ref:gc}))},[gc,Ho,jc]),Xc=(0,E.useMemo)(function(){return Ct?E.createElement(Vu.Provider,{value:Ic},Wc):Wc},[Vu,Wc,Ic]);return Xc}var Xs=fs?E.memo(ou):ou;if(Xs.WrappedComponent=Ho,Xs.displayName=ou.displayName=Ko,Wr){var yu=E.forwardRef(function(Wu,Eu){return E.createElement(Xs,(0,xe.Z)({},Wu,{reactReduxForwardedRef:Eu}))});return yu.displayName=Ko,yu.WrappedComponent=Ho,Ye()(yu,Ho)}return Ye()(Xs,Ho)}}function rt(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function Pt(ee,te){if(rt(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ie=Object.keys(ee),de=Object.keys(te);if(ie.length!==de.length)return!1;for(var Ce=0;Ce=0;de--){var Ce=te[de](ee);if(Ce)return Ce}return function(we,Ie){throw new Error("Invalid value of type "+typeof ee+" for "+ie+" argument when connecting component "+Ie.wrappedComponentName+".")}}function le(ee,te){return ee===te}function ot(ee){var te=ee===void 0?{}:ee,ie=te.connectHOC,de=ie===void 0?Te:ie,Ce=te.mapStateToPropsFactories,we=Ce===void 0?ft:Ce,Ie=te.mapDispatchToPropsFactories,je=Ie===void 0?yt:Ie,dt=te.mergePropsFactories,Dt=dt===void 0?Nt:dt,Ct=te.selectorFactory,mt=Ct===void 0?ae:Ct;return function(Mt,gn,kr,Wr){Wr===void 0&&(Wr={});var qr=Wr,Na=qr.pure,Ka=Na===void 0?!0:Na,ei=qr.areStatesEqual,go=ei===void 0?le:ei,fo=qr.areOwnPropsEqual,Ho=fo===void 0?Pt:fo,zl=qr.areStatePropsEqual,Ko=zl===void 0?Pt:zl,Ul=qr.areMergedPropsEqual,fs=Ul===void 0?Pt:Ul,xs=(0,be.Z)(qr,ce),gu=me(Mt,we,"mapStateToProps"),ou=me(gn,je,"mapDispatchToProps"),Xs=me(kr,Dt,"mergeProps");return de(mt,(0,xe.Z)({methodName:"connect",getDisplayName:function(ws){return"Connect("+ws+")"},shouldHandleStateChanges:!!Mt,initMapStateToProps:gu,initMapDispatchToProps:ou,initMergeProps:Xs,pure:Ka,areStatesEqual:go,areOwnPropsEqual:Ho,areStatePropsEqual:Ko,areMergedPropsEqual:fs},xs))}}var Ht=ot();function on(){var ee=useContext(ReactReduxContext);return ee}function kn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var de=te(),Ce=de.store;return Ce}}var wn=null;function Xn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=te();return de.dispatch}}var Nn=null,Pr=function(te,ie){return te===ie};function Vr(ee,te,ie,de){var Ce=useReducer(function(gn){return gn+1},0),we=Ce[1],Ie=useMemo(function(){return createSubscription(ie,de)},[ie,de]),je=useRef(),dt=useRef(),Dt=useRef(),Ct=useRef(),mt=ie.getState(),gt;try{if(ee!==dt.current||mt!==Dt.current||je.current){var Mt=ee(mt);Ct.current===void 0||!te(Mt,Ct.current)?gt=Mt:gt=Ct.current}else gt=Ct.current}catch(gn){throw je.current&&(gn.message+=` The error may be correlated with this previous error: -`+He.current.stack+` +`+je.current.stack+` -`),gn}return useIsomorphicLayoutEffect(function(){ft.current=ee,Dt.current=mt,bt.current=gt,He.current=void 0}),useIsomorphicLayoutEffect(function(){function gn(){try{var kr=ie.getState();if(kr===Dt.current)return;var Wr=ft.current(kr);if(te(Wr,bt.current))return;bt.current=Wr,Dt.current=kr}catch(qr){He.current=qr}we()}return Ie.onStateChange=gn,Ie.trySubscribe(),gn(),function(){return Ie.tryUnsubscribe()}},[ie,Ie]),gt}function Ar(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(de,Ce){Ce===void 0&&(Ce=Pr);var we=te(),Ie=we.store,He=we.subscription,ft=Vr(de,Ce,Ie,He);return useDebugValue(ft),ft}}var Jn=null,va=ne(4676);Se(va.unstable_batchedUpdates);function Qr(ee,te){if(ee.length!==te.length)return!1;for(var ie=0;ie");return de.callbacks},de.setCallbacks=function(He){de.callbacks=He},de}var ie=te.prototype;return ie.componentDidMount=function(){this.unbind=Nr(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Ce){if(Ce instanceof An){this.setState({});return}throw Ce},ie.render=function(){return this.props.children(this.setCallbacks)},te}(E.Component),$o=` +`)},wr=function(te){return[ar(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},er="__react-beautiful-dnd-disable-dev-warnings";function Vt(ee,te){var ie;Lt||typeof window!="undefined"&&window[er]||(ie=console)[ee].apply(ie,wr(te))}var On=Vt.bind(null,"warn"),Cr=Vt.bind(null,"error");function Hr(){}function jr(ee,te){return(0,xe.Z)({},ee,{},te)}function Nr(ee,te,ie){var de=te.map(function(Ce){var we=jr(ie,Ce.options);return ee.addEventListener(Ce.eventName,Ce.fn,we),function(){ee.removeEventListener(Ce.eventName,Ce.fn,we)}});return function(){de.forEach(function(we){we()})}}var Ga=!0,za="Invariant failed";function An(ee){this.message=ee}An.prototype.toString=function(){return this.message};function rn(ee,te){if(!ee)throw Ga?new An(za):new An(za+": "+(te||""))}var Yi=function(ee){(0,ve.Z)(te,ee);function te(){for(var de,Ce=arguments.length,we=new Array(Ce),Ie=0;Ie");return de.callbacks},de.setCallbacks=function(je){de.callbacks=je},de}var ie=te.prototype;return ie.componentDidMount=function(){this.unbind=Nr(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Ce){if(Ce instanceof An){this.setState({});return}throw Ce},ie.render=function(){return this.props.children(this.setCallbacks)},te}(E.Component),$o=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,Ki=function(te){return te+1},xt=function(te){return` +`,Ki=function(te){return te+1},wt=function(te){return` You have lifted an item in position `+Ki(te.source.index)+` `},tn=function(te,ie){var de=te.droppableId===ie.droppableId,Ce=Ki(te.index),we=Ki(ie.index);return de?` You have moved the item from position `+Ce+` @@ -1329,16 +1329,16 @@ The error may be correlated with this previous error: `:` The item has been dropped while not over a drop area. `+Zn(te.source)+` - `},yn={dragHandleUsageInstructions:$o,onDragStart:xt,onDragUpdate:It,onDragEnd:Gn},tr={x:0,y:0},Mr=function(te,ie){return{x:te.x+ie.x,y:te.y+ie.y}},Tr=function(te,ie){return{x:te.x-ie.x,y:te.y-ie.y}},Qa=function(te,ie){return te.x===ie.x&&te.y===ie.y},ua=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},ta=function(te,ie,de){var Ce;return de===void 0&&(de=0),Ce={},Ce[te]=ie,Ce[te==="x"?"y":"x"]=de,Ce},Ua=function(te,ie){return Math.sqrt(Math.pow(ie.x-te.x,2)+Math.pow(ie.y-te.y,2))},Kr=function(te,ie){return Math.min.apply(Math,ie.map(function(de){return Ua(te,de)}))},ya=function(te){return function(ie){return{x:te(ie.x),y:te(ie.y)}}},qa=function(ee,te){var ie=Da({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ie.width<=0||ie.height<=0?null:ie},ai=function(te,ie){return{top:te.top+ie.y,left:te.left+ie.x,bottom:te.bottom+ie.y,right:te.right+ie.x}},bi=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Ba={top:0,right:0,bottom:0,left:0},ra=function(te,ie){return ie?ai(te,ie.scroll.diff.displacement):te},eo=function(te,ie,de){if(de&&de.increasedBy){var Ce;return(0,xe.Z)({},te,(Ce={},Ce[ie.end]=te[ie.end]+de.increasedBy[ie.line],Ce))}return te},wi=function(te,ie){return ie&&ie.shouldClipSubject?qa(ie.pageMarginBox,te):Da(te)},Ta=function(ee){var te=ee.page,ie=ee.withPlaceholder,de=ee.axis,Ce=ee.frame,we=ra(te.marginBox,Ce),Ie=eo(we,de,ie),He=wi(Ie,Ce);return{page:te,withPlaceholder:ie,active:He}},oi=function(ee,te){ee.frame||rn(!1);var ie=ee.frame,de=Tr(te,ie.scroll.initial),Ce=ua(de),we=(0,xe.Z)({},ie,{scroll:{initial:ie.scroll.initial,current:te,diff:{value:de,displacement:Ce},max:ie.scroll.max}}),Ie=Ta({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:we}),He=(0,xe.Z)({},ee,{frame:we,subject:Ie});return He};function ki(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function ti(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function _a(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ie=0;ieee.bottom,Dt=de.leftee.right,bt=ft&&Dt;if(bt)return!0;var mt=ft&&Ie||Dt&&we;return mt}},Xt=function(ee){var te=Fn(ee.top,ee.bottom),ie=Fn(ee.left,ee.right);return function(de){var Ce=te(de.top)&&te(de.bottom)&&ie(de.left)&&ie(de.right);return Ce}},an={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Qt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},en=function(ee){return function(te){var ie=Fn(te.top,te.bottom),de=Fn(te.left,te.right);return function(Ce){return ee===an?ie(Ce.top)&&ie(Ce.bottom):de(Ce.left)&&de(Ce.right)}}},Wn=function(te,ie){var de=ie.frame?ie.frame.scroll.diff.displacement:tr;return ai(te,de)},fr=function(te,ie,de){return ie.subject.active?de(ie.subject.active)(te):!1},pr=function(te,ie,de){return de(ie)(te)},cr=function(te){var ie=te.target,de=te.destination,Ce=te.viewport,we=te.withDroppableDisplacement,Ie=te.isVisibleThroughFrameFn,He=we?Wn(ie,de):ie;return fr(He,de,Ie)&&pr(He,Ce,Ie)},Xr=function(te){return cr((0,xe.Z)({},te,{isVisibleThroughFrameFn:Zt}))},ca=function(te){return cr((0,xe.Z)({},te,{isVisibleThroughFrameFn:Xt}))},La=function(te){return cr((0,xe.Z)({},te,{isVisibleThroughFrameFn:en(te.destination.axis)}))},Pa=function(te,ie,de){if(typeof de=="boolean")return de;if(!ie)return!0;var Ce=ie.invisible,we=ie.visible;if(Ce[te])return!1;var Ie=we[te];return Ie?Ie.shouldAnimate:!0};function Xi(ee,te){var ie=ee.page.marginBox,de={top:te.point.y,right:0,bottom:0,left:te.point.x};return Da(Sr(ie,de))}function ji(ee){var te=ee.afterDragging,ie=ee.destination,de=ee.displacedBy,Ce=ee.viewport,we=ee.forceShouldAnimate,Ie=ee.last;return te.reduce(function(ft,Dt){var bt=Xi(Dt,de),mt=Dt.descriptor.id;ft.all.push(mt);var gt=Xr({target:bt,destination:ie,viewport:Ce,withDroppableDisplacement:!0});if(!gt)return ft.invisible[Dt.descriptor.id]=!0,ft;var Mt=Pa(mt,Ie,we),gn={draggableId:mt,shouldAnimate:Mt};return ft.visible[mt]=gn,ft},{all:[],visible:{},invisible:{}})}function Do(ee,te){if(!ee.length)return 0;var ie=ee[ee.length-1].descriptor.index;return te.inHomeList?ie:ie+1}function dl(ee){var te=ee.insideDestination,ie=ee.inHomeList,de=ee.displacedBy,Ce=ee.destination,we=Do(te,{inHomeList:ie});return{displaced:Jt,displacedBy:de,at:{type:"REORDER",destination:{droppableId:Ce.descriptor.id,index:we}}}}function al(ee){var te=ee.draggable,ie=ee.insideDestination,de=ee.destination,Ce=ee.viewport,we=ee.displacedBy,Ie=ee.last,He=ee.index,ft=ee.forceShouldAnimate,Dt=li(te,de);if(He==null)return dl({insideDestination:ie,inHomeList:Dt,displacedBy:we,destination:de});var bt=ci(ie,function(kr){return kr.descriptor.index===He});if(!bt)return dl({insideDestination:ie,inHomeList:Dt,displacedBy:we,destination:de});var mt=Oo(te,ie),gt=ie.indexOf(bt),Mt=mt.slice(gt),gn=ji({afterDragging:Mt,destination:de,displacedBy:we,last:Ie,viewport:Ce.frame,forceShouldAnimate:ft});return{displaced:gn,displacedBy:we,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:He}}}}function Xo(ee,te){return!!te.effected[ee]}var bl=function(ee){var te=ee.isMovingForward,ie=ee.destination,de=ee.draggables,Ce=ee.combine,we=ee.afterCritical;if(!ie.isCombineEnabled)return null;var Ie=Ce.draggableId,He=de[Ie],ft=He.descriptor.index,Dt=Xo(Ie,we);return Dt?te?ft:ft-1:te?ft+1:ft},Ao=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,de=ee.insideDestination,Ce=ee.location;if(!de.length)return null;var we=Ce.index,Ie=te?we+1:we-1,He=de[0].descriptor.index,ft=de[de.length-1].descriptor.index,Dt=ie?ft:ft+1;return IeDt?null:Ie},mo=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,de=ee.draggable,Ce=ee.draggables,we=ee.destination,Ie=ee.insideDestination,He=ee.previousImpact,ft=ee.viewport,Dt=ee.afterCritical,bt=He.at;if(bt||rn(!1),bt.type==="REORDER"){var mt=Ao({isMovingForward:te,isInHomeList:ie,location:bt.destination,insideDestination:Ie});return mt==null?null:al({draggable:de,insideDestination:Ie,destination:we,viewport:ft,last:He.displaced,displacedBy:He.displacedBy,index:mt})}var gt=bl({isMovingForward:te,destination:we,displaced:He.displaced,draggables:Ce,combine:bt.combine,afterCritical:Dt});return gt==null?null:al({draggable:de,insideDestination:Ie,destination:we,viewport:ft,last:He.displaced,displacedBy:He.displacedBy,index:gt})},Rl=function(ee){var te=ee.displaced,ie=ee.afterCritical,de=ee.combineWith,Ce=ee.displacedBy,we=!!(te.visible[de]||te.invisible[de]);return Xo(de,ie)?we?tr:ua(Ce.point):we?Ce.point:tr},Cl=function(ee){var te=ee.afterCritical,ie=ee.impact,de=ee.draggables,Ce=Fi(ie);Ce||rn(!1);var we=Ce.draggableId,Ie=de[we].page.borderBox.center,He=Rl({displaced:ie.displaced,afterCritical:te,combineWith:we,displacedBy:ie.displacedBy});return Mr(Ie,He)},Zl=function(te,ie){return ie.margin[te.start]+ie.borderBox[te.size]/2},ql=function(te,ie){return ie.margin[te.end]+ie.borderBox[te.size]/2},Fl=function(te,ie,de){return ie[te.crossAxisStart]+de.margin[te.crossAxisStart]+de.borderBox[te.crossAxisSize]/2},vl=function(te){var ie=te.axis,de=te.moveRelativeTo,Ce=te.isMoving;return ta(ie.line,de.marginBox[ie.end]+Zl(ie,Ce),Fl(ie,de.marginBox,Ce))},zo=function(te){var ie=te.axis,de=te.moveRelativeTo,Ce=te.isMoving;return ta(ie.line,de.marginBox[ie.start]-ql(ie,Ce),Fl(ie,de.marginBox,Ce))},os=function(te){var ie=te.axis,de=te.moveInto,Ce=te.isMoving;return ta(ie.line,de.contentBox[ie.start]+Zl(ie,Ce),Fl(ie,de.contentBox,Ce))},Os=function(ee){var te=ee.impact,ie=ee.draggable,de=ee.draggables,Ce=ee.droppable,we=ee.afterCritical,Ie=na(Ce.descriptor.id,de),He=ie.page,ft=Ce.axis;if(!Ie.length)return os({axis:ft,moveInto:Ce.page,isMoving:He});var Dt=te.displaced,bt=te.displacedBy,mt=Dt.all[0];if(mt){var gt=de[mt];if(Xo(mt,we))return zo({axis:ft,moveRelativeTo:gt.page,isMoving:He});var Mt=Ii(gt.page,bt.point);return zo({axis:ft,moveRelativeTo:Mt,isMoving:He})}var gn=Ie[Ie.length-1];if(gn.descriptor.id===ie.descriptor.id)return He.borderBox.center;if(Xo(gn.descriptor.id,we)){var kr=Ii(gn.page,ua(we.displacedBy.point));return vl({axis:ft,moveRelativeTo:kr,isMoving:He})}return vl({axis:ft,moveRelativeTo:gn.page,isMoving:He})},Gl=function(ee,te){var ie=ee.frame;return ie?Mr(te,ie.scroll.diff.displacement):te},As=function(te){var ie=te.impact,de=te.draggable,Ce=te.droppable,we=te.draggables,Ie=te.afterCritical,He=de.page.borderBox.center,ft=ie.at;return!Ce||!ft?He:ft.type==="REORDER"?Os({impact:ie,draggable:de,draggables:we,droppable:Ce,afterCritical:Ie}):Cl({impact:ie,draggables:we,afterCritical:Ie})},Fs=function(ee){var te=As(ee),ie=ee.droppable,de=ie?Gl(ie,te):te;return de},Js=function(ee,te){var ie=Tr(te,ee.scroll.initial),de=ua(ie),Ce=Da({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),we={frame:Ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ie,displacement:de}}};return we};function Ms(ee,te){return ee.map(function(ie){return te[ie]})}function Gs(ee,te){for(var ie=0;ie1?bt.sort(function(mt,gt){return Mi(mt)[He.start]-Mi(gt)[He.start]})[0]:Dt.sort(function(mt,gt){var Mt=Kr(ie,bi(Mi(mt))),gn=Kr(ie,bi(Mi(gt)));return Mt!==gn?Mt-gn:Mi(mt)[He.start]-Mi(gt)[He.start]})[0]},Mo=function(te,ie){var de=te.page.borderBox.center;return Xo(te.descriptor.id,ie)?Tr(de,ie.displacedBy.point):de},Bl=function(te,ie){var de=te.page.borderBox;return Xo(te.descriptor.id,ie)?ai(de,ua(ie.displacedBy.point)):de},ls=function(ee){var te=ee.pageBorderBoxCenter,ie=ee.viewport,de=ee.destination,Ce=ee.insideDestination,we=ee.afterCritical,Ie=Ce.filter(function(He){return ca({target:Bl(He,we),destination:de,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(He,ft){var Dt=Ua(te,Gl(de,Mo(He,we))),bt=Ua(te,Gl(de,Mo(ft,we)));return Dtte.left&&ee.topte.top}function vs(ee){var te=ee.pageBorderBox,ie=ee.draggable,de=ee.candidates,Ce=ie.page.borderBox.center,we=de.map(function(Ie){var He=Ie.axis,ft=ta(Ie.axis.line,te.center[He.line],Ie.page.borderBox.center[He.crossAxisLine]);return{id:Ie.descriptor.id,distance:Ua(Ce,ft)}}).sort(function(Ie,He){return He.distance-Ie.distance});return we[0]?we[0].id:null}function $u(ee){var te=ee.pageBorderBox,ie=ee.draggable,de=ee.droppables,Ce=Hi(de).filter(function(we){if(!we.isEnabled)return!1;var Ie=we.subject.active;if(!Ie||!ms(te,Ie))return!1;if(qs(Ie)(te.center))return!0;var He=we.axis,ft=Ie.center[He.crossAxisLine],Dt=te[He.crossAxisStart],bt=te[He.crossAxisEnd],mt=Fn(Ie[He.crossAxisStart],Ie[He.crossAxisEnd]),gt=mt(Dt),Mt=mt(bt);return!gt&&!Mt?!0:gt?Dtft});return Ce.length?Ce.length===1?Ce[0].descriptor.id:vs({pageBorderBox:te,draggable:ie,candidates:Ce}):null}var Pu=function(te,ie){return Da(ai(te,ie))},nu=function(ee,te){var ie=ee.frame;return ie?Pu(te,ie.scroll.diff.value):te};function Rs(ee){var te=ee.displaced,ie=ee.id;return!!(te.visible[ie]||te.invisible[ie])}function el(ee){var te=ee.draggable,ie=ee.closest,de=ee.inHomeList;return ie?de&&ie.descriptor.index>te.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var zu=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ie=ee.draggable,de=ee.destination,Ce=ee.insideDestination,we=ee.last,Ie=ee.viewport,He=ee.afterCritical,ft=de.axis,Dt=yl(de.axis,ie.displaceBy),bt=Dt.value,mt=te[ft.start],gt=te[ft.end],Mt=Oo(ie,Ce),gn=ci(Mt,function(Wr){var qr=Wr.descriptor.id,Na=Wr.page.borderBox.center[ft.line],Ka=Xo(qr,He),ei=Rs({displaced:we,id:qr});return Ka?ei?gt<=Na:mtqr[He.start]+Ka&&mtqr[He.start]-Dt+Ka&&btqr[He.start]+Dt+Ka&&mtqr[He.start]+Ka&&bt=dr)return zn;var we=Ce/dr,Ie=Vn+Dr*we,He=de==="CANCEL"?Ie*bn:Ie;return Number(He.toFixed(2))},qn=function(ee){var te=ee.impact,ie=ee.draggable,de=ee.dimensions,Ce=ee.viewport,we=ee.afterCritical,Ie=de.draggables,He=de.droppables,ft=Sl(te),Dt=ft?He[ft]:null,bt=He[ie.descriptor.droppableId],mt=Iu({impact:te,draggable:ie,draggables:Ie,afterCritical:we,droppable:Dt||bt,viewport:Ce}),gt=Tr(mt,ie.client.borderBox.center);return gt},mr=function(ee){var te=ee.draggables,ie=ee.reason,de=ee.lastImpact,Ce=ee.home,we=ee.viewport,Ie=ee.onLiftImpact;if(!de.at||ie!=="DROP"){var He=uu({draggables:te,impact:Ie,destination:Ce,viewport:we,forceShouldAnimate:!0});return{impact:He,didDropInsideDroppable:!1}}if(de.at.type==="REORDER")return{impact:de,didDropInsideDroppable:!0};var ft=(0,xe.Z)({},de,{displaced:Jt});return{impact:ft,didDropInsideDroppable:!0}},Oa=function(ee){var te=ee.getState,ie=ee.dispatch;return function(de){return function(Ce){if(Ce.type!=="DROP"){de(Ce);return}var we=te(),Ie=Ce.payload.reason;if(we.phase==="COLLECTING"){ie(et({reason:Ie}));return}if(we.phase!=="IDLE"){var He=we.phase==="DROP_PENDING"&&we.isWaiting;He&&rn(!1),we.phase==="DRAGGING"||we.phase==="DROP_PENDING"||rn(!1);var ft=we.critical,Dt=we.dimensions,bt=Dt.draggables[we.critical.draggable.id],mt=mr({reason:Ie,lastImpact:we.impact,afterCritical:we.afterCritical,onLiftImpact:we.onLiftImpact,home:we.dimensions.droppables[we.critical.droppable.id],viewport:we.viewport,draggables:we.dimensions.draggables}),gt=mt.impact,Mt=mt.didDropInsideDroppable,gn=Mt?to(gt):null,kr=Mt?Fi(gt):null,Wr={index:ft.draggable.index,droppableId:ft.droppable.id},qr={draggableId:bt.descriptor.id,type:bt.descriptor.type,source:Wr,reason:Ie,mode:we.movementMode,destination:gn,combine:kr},Na=qn({impact:gt,draggable:bt,dimensions:Dt,viewport:we.viewport,afterCritical:we.afterCritical}),Ka={critical:we.critical,afterCritical:we.afterCritical,result:qr,impact:gt},ei=!Qa(we.current.client.offset,Na)||!!qr.combine;if(!ei){ie(ye({completed:Ka}));return}var go=br({current:we.current.client.offset,destination:Na,reason:Ie}),fo={newHomeClientOffset:Na,dropDuration:go,completed:Ka};ie(re(fo))}}}},ia=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Lr(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){ie.target!==window&&ie.target!==window.document||ee()}}}function aa(ee){var te=ee.onWindowScroll;function ie(){te(ia())}var de=Un(ie),Ce=Lr(de),we=Hr;function Ie(){return we!==Hr}function He(){Ie()&&rn(!1),we=Nr(window,[Ce])}function ft(){Ie()||rn(!1),de.cancel(),we(),we=Hr}return{start:He,stop:ft,isActive:Ie}}var Wa=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},pa=function(ee){var te=aa({onWindowScroll:function(de){ee.dispatch(Du({newScroll:de}))}});return function(ie){return function(de){!te.isActive()&&de.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&Wa(de)&&te.stop(),ie(de)}}},Ur=function(ee){var te=!1,ie=!1,de=setTimeout(function(){ie=!0}),Ce=function(Ie){te||ie||(te=!0,ee(Ie),clearTimeout(de))};return Ce.wasCalled=function(){return te},Ce},_r=function(){var ee=[],te=function(we){var Ie=_a(ee,function(Dt){return Dt.timerId===we});Ie===-1&&rn(!1);var He=ee.splice(Ie,1),ft=He[0];ft.callback()},ie=function(we){var Ie=setTimeout(function(){return te(Ie)}),He={timerId:Ie,callback:we};ee.push(He)},de=function(){if(ee.length){var we=[].concat(ee);ee.length=0,we.forEach(function(Ie){clearTimeout(Ie.timerId),Ie.callback()})}};return{add:ie,flush:de}},Jr=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.droppableId===ie.droppableId&&te.index===ie.index},Gr=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.draggableId===ie.draggableId&&te.droppableId===ie.droppableId},ka=function(te,ie){if(te===ie)return!0;var de=te.draggable.id===ie.draggable.id&&te.draggable.droppableId===ie.draggable.droppableId&&te.draggable.type===ie.draggable.type&&te.draggable.index===ie.draggable.index,Ce=te.droppable.id===ie.droppable.id&&te.droppable.type===ie.droppable.type;return de&&Ce},Ea=function(te,ie){Yl(),ie(),gr()},oa=function(te,ie){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ie}},ma=function(te,ie,de,Ce){if(!te){de(Ce(ie));return}var we=Ur(de),Ie={announce:we};te(ie,Ie),we.wasCalled()||de(Ce(ie))},Yr=function(ee,te){var ie=_r(),de=null,Ce=function(gt,Mt){de&&rn(!1),Ea("onBeforeCapture",function(){var gn=ee().onBeforeCapture;if(gn){var kr={draggableId:gt,mode:Mt};gn(kr)}})},we=function(gt,Mt){de&&rn(!1),Ea("onBeforeDragStart",function(){var gn=ee().onBeforeDragStart;gn&&gn(oa(gt,Mt))})},Ie=function(gt,Mt){de&&rn(!1);var gn=oa(gt,Mt);de={mode:Mt,lastCritical:gt,lastLocation:gn.source,lastCombine:null},ie.add(function(){Ea("onDragStart",function(){return ma(ee().onDragStart,gn,te,yn.onDragStart)})})},He=function(gt,Mt){var gn=to(Mt),kr=Fi(Mt);de||rn(!1);var Wr=!ka(gt,de.lastCritical);Wr&&(de.lastCritical=gt);var qr=!Jr(de.lastLocation,gn);qr&&(de.lastLocation=gn);var Na=!Gr(de.lastCombine,kr);if(Na&&(de.lastCombine=kr),!(!Wr&&!qr&&!Na)){var Ka=(0,xe.Z)({},oa(gt,de.mode),{combine:kr,destination:gn});ie.add(function(){Ea("onDragUpdate",function(){return ma(ee().onDragUpdate,Ka,te,yn.onDragUpdate)})})}},ft=function(){de||rn(!1),ie.flush()},Dt=function(gt){de||rn(!1),de=null,Ea("onDragEnd",function(){return ma(ee().onDragEnd,gt,te,yn.onDragEnd)})},bt=function(){if(de){var gt=(0,xe.Z)({},oa(de.lastCritical,de.mode),{combine:null,destination:null,reason:"CANCEL"});Dt(gt)}};return{beforeCapture:Ce,beforeStart:we,start:Ie,update:He,flush:ft,drop:Dt,abort:bt}},ha=function(ee,te){var ie=Yr(ee,te);return function(de){return function(Ce){return function(we){if(we.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(we.payload.draggableId,we.payload.movementMode);return}if(we.type==="INITIAL_PUBLISH"){var Ie=we.payload.critical;ie.beforeStart(Ie,we.payload.movementMode),Ce(we),ie.start(Ie,we.payload.movementMode);return}if(we.type==="DROP_COMPLETE"){var He=we.payload.completed.result;ie.flush(),Ce(we),ie.drop(He);return}if(Ce(we),we.type==="FLUSH"){ie.abort();return}var ft=de.getState();ft.phase==="DRAGGING"&&ie.update(ft.critical,ft.impact)}}}},fa=function(ee){return function(te){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){te(ie);return}var de=ee.getState();de.phase!=="DROP_ANIMATING"&&rn(!1),ee.dispatch(ye({completed:de.completed}))}}},ni=function(ee){var te=null,ie=null;function de(){ie&&(cancelAnimationFrame(ie),ie=null),te&&(te(),te=null)}return function(Ce){return function(we){if((we.type==="FLUSH"||we.type==="DROP_COMPLETE"||we.type==="DROP_ANIMATION_FINISHED")&&de(),Ce(we),we.type==="DROP_ANIMATE"){var Ie={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var ft=ee.getState();ft.phase==="DROP_ANIMATING"&&ee.dispatch(rt())}};ie=requestAnimationFrame(function(){ie=null,te=Nr(window,[Ie])})}}}},di=function(ee){return function(){return function(te){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ie)}}}},mi=function(ee){var te=!1;return function(){return function(ie){return function(de){if(de.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(de.payload.critical.draggable.id),ie(de),ee.tryRestoreFocusRecorded();return}if(ie(de),!!te){if(de.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(de.type==="DROP_COMPLETE"){te=!1;var Ce=de.payload.completed.result;Ce.combine&&ee.tryShiftRecord(Ce.draggableId,Ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},vi=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},$a=function(ee){return function(te){return function(ie){return function(de){if(vi(de)){ee.stop(),ie(de);return}if(de.type==="INITIAL_PUBLISH"){ie(de);var Ce=te.getState();Ce.phase!=="DRAGGING"&&rn(!1),ee.start(Ce);return}ie(de),ee.scroll(te.getState())}}}},Li=function(ee){return function(te){return function(ie){if(te(ie),ie.type==="PUBLISH_WHILE_DRAGGING"){var de=ee.getState();de.phase==="DROP_PENDING"&&(de.isWaiting||ee.dispatch(Me({reason:de.reason})))}}}},fn=Je.qC,Oi=function(ee){var te=ee.dimensionMarshal,ie=ee.focusMarshal,de=ee.styleMarshal,Ce=ee.getResponders,we=ee.announce,Ie=ee.autoScroller;return(0,Je.MT)(ks,fn((0,Je.md)(pn(de),di(te),jt(te),Oa,fa,ni,Li,$a(Ie),pa,mi(ie),ha(Ce,we))))},no=function(){return{additions:{},removals:{},modified:{}}};function Bi(ee){var te=ee.registry,ie=ee.callbacks,de=no(),Ce=null,we=function(){Ce||(ie.collectionStarting(),Ce=requestAnimationFrame(function(){Ce=null,Yl();var bt=de,mt=bt.additions,gt=bt.removals,Mt=bt.modified,gn=Object.keys(mt).map(function(qr){return te.draggable.getById(qr).getDimension(tr)}).sort(function(qr,Na){return qr.descriptor.index-Na.descriptor.index}),kr=Object.keys(Mt).map(function(qr){var Na=te.droppable.getById(qr),Ka=Na.callbacks.getScrollWhileDragging();return{droppableId:qr,scroll:Ka}}),Wr={additions:gn,removals:Object.keys(gt),modified:kr};de=no(),gr(),ie.publish(Wr)}))},Ie=function(bt){var mt=bt.descriptor.id;de.additions[mt]=bt,de.modified[bt.descriptor.droppableId]=!0,de.removals[mt]&&delete de.removals[mt],we()},He=function(bt){var mt=bt.descriptor;de.removals[mt.id]=!0,de.modified[mt.droppableId]=!0,de.additions[mt.id]&&delete de.additions[mt.id],we()},ft=function(){Ce&&(cancelAnimationFrame(Ce),Ce=null,de=no())};return{add:Ie,remove:He,stop:ft}}var lo=function(ee){var te=ee.scrollHeight,ie=ee.scrollWidth,de=ee.height,Ce=ee.width,we=Tr({x:ie,y:te},{x:Ce,y:de}),Ie={x:Math.max(0,we.x),y:Math.max(0,we.y)};return Ie},gi=function(){var ee=document.documentElement;return ee||rn(!1),ee},po=function(){var ee=gi(),te=lo({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},zi=function(){var ee=ia(),te=po(),ie=ee.y,de=ee.x,Ce=gi(),we=Ce.clientWidth,Ie=Ce.clientHeight,He=de+we,ft=ie+Ie,Dt=Da({top:ie,left:de,right:He,bottom:ft}),bt={frame:Dt,scroll:{initial:ee,current:ee,max:te,diff:{value:tr,displacement:tr}}};return bt},Wi=function(ee){var te=ee.critical,ie=ee.scrollOptions,de=ee.registry;Yl();var Ce=zi(),we=Ce.scroll.current,Ie=te.droppable,He=de.droppable.getAllByType(Ie.type).map(function(mt){return mt.callbacks.getDimensionAndWatchScroll(we,ie)}),ft=de.draggable.getAllByType(te.draggable.type).map(function(mt){return mt.getDimension(we)}),Dt={draggables:Qi(ft),droppables:Fo(He)};gr();var bt={dimensions:Dt,critical:te,viewport:Ce};return bt};function ho(ee,te,ie){if(ie.descriptor.id===te.id||ie.descriptor.type!==te.type)return!1;var de=ee.droppable.getById(ie.descriptor.droppableId);return de.descriptor.mode==="virtual"}var ba=function(ee,te){var ie=null,de=Bi({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),Ce=function(Mt,gn){ee.droppable.exists(Mt)||rn(!1),ie&&te.updateDroppableIsEnabled({id:Mt,isEnabled:gn})},we=function(Mt,gn){ie&&(ee.droppable.exists(Mt)||rn(!1),te.updateDroppableIsCombineEnabled({id:Mt,isCombineEnabled:gn}))},Ie=function(Mt,gn){ie&&(ee.droppable.exists(Mt)||rn(!1),te.updateDroppableScroll({id:Mt,newScroll:gn}))},He=function(Mt,gn){ie&&ee.droppable.getById(Mt).callbacks.scroll(gn)},ft=function(){if(ie){de.stop();var Mt=ie.critical.droppable;ee.droppable.getAllByType(Mt.type).forEach(function(gn){return gn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null}},Dt=function(Mt){ie||rn(!1);var gn=ie.critical.draggable;Mt.type==="ADDITION"&&ho(ee,gn,Mt.value)&&de.add(Mt.value),Mt.type==="REMOVAL"&&ho(ee,gn,Mt.value)&&de.remove(Mt.value)},bt=function(Mt){ie&&rn(!1);var gn=ee.draggable.getById(Mt.draggableId),kr=ee.droppable.getById(gn.descriptor.droppableId),Wr={draggable:gn.descriptor,droppable:kr.descriptor},qr=ee.subscribe(Dt);return ie={critical:Wr,unsubscribe:qr},Wi({critical:Wr,registry:ee,scrollOptions:Mt.scrollOptions})},mt={updateDroppableIsEnabled:Ce,updateDroppableIsCombineEnabled:we,scrollDroppable:He,updateDroppableScroll:Ie,startPublishing:bt,stopPublishing:ft};return mt},wa=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},Ji=function(ee){window.scrollBy(ee.x,ee.y)},yo=qt(function(ee){return Hi(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),jo=function(te,ie){var de=ci(yo(ie),function(Ce){return Ce.frame||rn(!1),qs(Ce.frame.pageMarginBox)(te)});return de},so=function(ee){var te=ee.center,ie=ee.destination,de=ee.droppables;if(ie){var Ce=de[ie];return Ce.frame?Ce:null}var we=jo(te,de);return we},tl={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},So=function(ee,te){var ie=ee[te.size]*tl.startFromPercentage,de=ee[te.size]*tl.maxScrollAtPercentage,Ce={startScrollingFrom:ie,maxScrollValueAt:de};return Ce},uo=function(ee){var te=ee.startOfRange,ie=ee.endOfRange,de=ee.current,Ce=ie-te;if(Ce===0)return 0;var we=de-te,Ie=we/Ce;return Ie},vo=1,Rr=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return tl.maxPixelScroll;if(ee===te.startScrollingFrom)return vo;var ie=uo({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),de=1-ie,Ce=tl.maxPixelScroll*tl.ease(de);return Math.ceil(Ce)},fi=tl.durationDampening.accelerateAt,Kl=tl.durationDampening.stopDampeningAt,Ya=function(ee,te){var ie=te,de=Kl,Ce=Date.now(),we=Ce-ie;if(we>=Kl)return ee;if(wete.height,we=ie.width>te.width;return!we&&!Ce?de:we&&Ce?null:{x:we?0:de.x,y:Ce?0:de.y}},ja=ya(function(ee){return ee===0?0:ee}),ko=function(ee){var te=ee.dragStartTime,ie=ee.container,de=ee.subject,Ce=ee.center,we=ee.shouldUseTimeDampening,Ie={top:Ce.y-ie.top,right:ie.right-Ce.x,bottom:ie.bottom-Ce.y,left:Ce.x-ie.left},He=co({container:ie,distanceToEdges:Ie,dragStartTime:te,axis:an,shouldUseTimeDampening:we}),ft=co({container:ie,distanceToEdges:Ie,dragStartTime:te,axis:Qt,shouldUseTimeDampening:we}),Dt=ja({x:ft,y:He});if(Qa(Dt,tr))return null;var bt=xa({container:ie,subject:de,proposedScroll:Dt});return bt?Qa(bt,tr)?null:bt:null},nl=ya(function(ee){return ee===0?0:ee>0?1:-1}),gl=function(){var ee=function(ie,de){return ie<0?ie:ie>de?ie-de:0};return function(te){var ie=te.current,de=te.max,Ce=te.change,we=Mr(ie,Ce),Ie={x:ee(we.x,de.x),y:ee(we.y,de.y)};return Qa(Ie,tr)?null:Ie}}(),jl=function(te){var ie=te.max,de=te.current,Ce=te.change,we={x:Math.max(de.x,ie.x),y:Math.max(de.y,ie.y)},Ie=nl(Ce),He=gl({max:we,current:de,change:Ie});return!He||Ie.x!==0&&He.x===0||Ie.y!==0&&He.y===0},Wl=function(te,ie){return jl({current:te.scroll.current,max:te.scroll.max,change:ie})},js=function(te,ie){if(!Wl(te,ie))return null;var de=te.scroll.max,Ce=te.scroll.current;return gl({current:Ce,max:de,change:ie})},ue=function(te,ie){var de=te.frame;return de?jl({current:de.scroll.current,max:de.scroll.max,change:ie}):!1},ke=function(te,ie){var de=te.frame;return!de||!ue(te,ie)?null:gl({current:de.scroll.current,max:de.scroll.max,change:ie})},Te=function(ee){var te=ee.viewport,ie=ee.subject,de=ee.center,Ce=ee.dragStartTime,we=ee.shouldUseTimeDampening,Ie=ko({dragStartTime:Ce,container:te.frame,subject:ie,center:de,shouldUseTimeDampening:we});return Ie&&Wl(te,Ie)?Ie:null},Yt=function(ee){var te=ee.droppable,ie=ee.subject,de=ee.center,Ce=ee.dragStartTime,we=ee.shouldUseTimeDampening,Ie=te.frame;if(!Ie)return null;var He=ko({dragStartTime:Ce,container:Ie.pageMarginBox,subject:ie,center:de,shouldUseTimeDampening:we});return He&&ue(te,He)?He:null},_n=function(ee){var te=ee.state,ie=ee.dragStartTime,de=ee.shouldUseTimeDampening,Ce=ee.scrollWindow,we=ee.scrollDroppable,Ie=te.current.page.borderBoxCenter,He=te.dimensions.draggables[te.critical.draggable.id],ft=He.page.marginBox;if(te.isWindowScrollAllowed){var Dt=te.viewport,bt=Te({dragStartTime:ie,viewport:Dt,subject:ft,center:Ie,shouldUseTimeDampening:de});if(bt){Ce(bt);return}}var mt=so({center:Ie,destination:Sl(te.impact),droppables:te.dimensions.droppables});if(mt){var gt=Yt({dragStartTime:ie,droppable:mt,subject:ft,center:Ie,shouldUseTimeDampening:de});gt&&we(mt.descriptor.id,gt)}},yr=function(ee){var te=ee.scrollWindow,ie=ee.scrollDroppable,de=Un(te),Ce=Un(ie),we=null,Ie=function(bt){we||rn(!1);var mt=we,gt=mt.shouldUseTimeDampening,Mt=mt.dragStartTime;_n({state:bt,scrollWindow:de,scrollDroppable:Ce,dragStartTime:Mt,shouldUseTimeDampening:gt})},He=function(bt){Yl(),we&&rn(!1);var mt=Date.now(),gt=!1,Mt=function(){gt=!0};_n({state:bt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Mt,scrollDroppable:Mt}),we={dragStartTime:mt,shouldUseTimeDampening:gt},gr(),gt&&Ie(bt)},ft=function(){we&&(de.cancel(),Ce.cancel(),we=null)};return{start:He,stop:ft,scroll:Ie}},Pn=function(ee){var te=ee.move,ie=ee.scrollDroppable,de=ee.scrollWindow,Ce=function(Dt,bt){var mt=Mr(Dt.current.client.selection,bt);te({client:mt})},we=function(Dt,bt){if(!ue(Dt,bt))return bt;var mt=ke(Dt,bt);if(!mt)return ie(Dt.descriptor.id,bt),null;var gt=Tr(bt,mt);ie(Dt.descriptor.id,gt);var Mt=Tr(bt,gt);return Mt},Ie=function(Dt,bt,mt){if(!Dt||!Wl(bt,mt))return mt;var gt=js(bt,mt);if(!gt)return de(mt),null;var Mt=Tr(mt,gt);de(Mt);var gn=Tr(mt,Mt);return gn},He=function(Dt){var bt=Dt.scrollJumpRequest;if(bt){var mt=Sl(Dt.impact);mt||rn(!1);var gt=we(Dt.dimensions.droppables[mt],bt);if(gt){var Mt=Dt.viewport,gn=Ie(Dt.isWindowScrollAllowed,Mt,gt);gn&&Ce(Dt,gn)}}};return He},hn=function(ee){var te=ee.scrollDroppable,ie=ee.scrollWindow,de=ee.move,Ce=yr({scrollWindow:ie,scrollDroppable:te}),we=Pn({move:de,scrollWindow:ie,scrollDroppable:te}),Ie=function(Dt){if(Dt.phase==="DRAGGING"){if(Dt.movementMode==="FLUID"){Ce.scroll(Dt);return}Dt.scrollJumpRequest&&we(Dt)}},He={scroll:Ie,start:Ce.start,stop:Ce.stop};return He},zt="data-rbd",Mn=function(){var ee=zt+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Ra=function(){var ee=zt+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),sn=function(){var ee=zt+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Wt={contextId:zt+"-scroll-container-context-id"},cn=function(te){return function(ie){return"["+ie+'="'+te+'"]'}},Qn=function(te,ie){return te.map(function(de){var Ce=de.styles[ie];return Ce?de.selector+" { "+Ce+" }":""}).join(" ")},Yn="pointer-events: none;",Ln=function(ee){var te=cn(ee),ie=function(){var He=` + `},yn={dragHandleUsageInstructions:$o,onDragStart:wt,onDragUpdate:It,onDragEnd:Gn},tr={x:0,y:0},Mr=function(te,ie){return{x:te.x+ie.x,y:te.y+ie.y}},Tr=function(te,ie){return{x:te.x-ie.x,y:te.y-ie.y}},Qa=function(te,ie){return te.x===ie.x&&te.y===ie.y},ua=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},ta=function(te,ie,de){var Ce;return de===void 0&&(de=0),Ce={},Ce[te]=ie,Ce[te==="x"?"y":"x"]=de,Ce},Ua=function(te,ie){return Math.sqrt(Math.pow(ie.x-te.x,2)+Math.pow(ie.y-te.y,2))},Kr=function(te,ie){return Math.min.apply(Math,ie.map(function(de){return Ua(te,de)}))},ya=function(te){return function(ie){return{x:te(ie.x),y:te(ie.y)}}},qa=function(ee,te){var ie=Da({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ie.width<=0||ie.height<=0?null:ie},ai=function(te,ie){return{top:te.top+ie.y,left:te.left+ie.x,bottom:te.bottom+ie.y,right:te.right+ie.x}},bi=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Ba={top:0,right:0,bottom:0,left:0},ra=function(te,ie){return ie?ai(te,ie.scroll.diff.displacement):te},eo=function(te,ie,de){if(de&&de.increasedBy){var Ce;return(0,xe.Z)({},te,(Ce={},Ce[ie.end]=te[ie.end]+de.increasedBy[ie.line],Ce))}return te},wi=function(te,ie){return ie&&ie.shouldClipSubject?qa(ie.pageMarginBox,te):Da(te)},Ta=function(ee){var te=ee.page,ie=ee.withPlaceholder,de=ee.axis,Ce=ee.frame,we=ra(te.marginBox,Ce),Ie=eo(we,de,ie),je=wi(Ie,Ce);return{page:te,withPlaceholder:ie,active:je}},oi=function(ee,te){ee.frame||rn(!1);var ie=ee.frame,de=Tr(te,ie.scroll.initial),Ce=ua(de),we=(0,xe.Z)({},ie,{scroll:{initial:ie.scroll.initial,current:te,diff:{value:de,displacement:Ce},max:ie.scroll.max}}),Ie=Ta({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:we}),je=(0,xe.Z)({},ee,{frame:we,subject:Ie});return je};function ki(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function ti(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function _a(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ie=0;ieee.bottom,Dt=de.leftee.right,Ct=dt&&Dt;if(Ct)return!0;var mt=dt&&Ie||Dt&&we;return mt}},Xt=function(ee){var te=Fn(ee.top,ee.bottom),ie=Fn(ee.left,ee.right);return function(de){var Ce=te(de.top)&&te(de.bottom)&&ie(de.left)&&ie(de.right);return Ce}},an={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Qt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},en=function(ee){return function(te){var ie=Fn(te.top,te.bottom),de=Fn(te.left,te.right);return function(Ce){return ee===an?ie(Ce.top)&&ie(Ce.bottom):de(Ce.left)&&de(Ce.right)}}},Wn=function(te,ie){var de=ie.frame?ie.frame.scroll.diff.displacement:tr;return ai(te,de)},fr=function(te,ie,de){return ie.subject.active?de(ie.subject.active)(te):!1},pr=function(te,ie,de){return de(ie)(te)},cr=function(te){var ie=te.target,de=te.destination,Ce=te.viewport,we=te.withDroppableDisplacement,Ie=te.isVisibleThroughFrameFn,je=we?Wn(ie,de):ie;return fr(je,de,Ie)&&pr(je,Ce,Ie)},Xr=function(te){return cr((0,xe.Z)({},te,{isVisibleThroughFrameFn:Zt}))},ca=function(te){return cr((0,xe.Z)({},te,{isVisibleThroughFrameFn:Xt}))},La=function(te){return cr((0,xe.Z)({},te,{isVisibleThroughFrameFn:en(te.destination.axis)}))},Pa=function(te,ie,de){if(typeof de=="boolean")return de;if(!ie)return!0;var Ce=ie.invisible,we=ie.visible;if(Ce[te])return!1;var Ie=we[te];return Ie?Ie.shouldAnimate:!0};function Xi(ee,te){var ie=ee.page.marginBox,de={top:te.point.y,right:0,bottom:0,left:te.point.x};return Da(Sr(ie,de))}function ji(ee){var te=ee.afterDragging,ie=ee.destination,de=ee.displacedBy,Ce=ee.viewport,we=ee.forceShouldAnimate,Ie=ee.last;return te.reduce(function(dt,Dt){var Ct=Xi(Dt,de),mt=Dt.descriptor.id;dt.all.push(mt);var gt=Xr({target:Ct,destination:ie,viewport:Ce,withDroppableDisplacement:!0});if(!gt)return dt.invisible[Dt.descriptor.id]=!0,dt;var Mt=Pa(mt,Ie,we),gn={draggableId:mt,shouldAnimate:Mt};return dt.visible[mt]=gn,dt},{all:[],visible:{},invisible:{}})}function Do(ee,te){if(!ee.length)return 0;var ie=ee[ee.length-1].descriptor.index;return te.inHomeList?ie:ie+1}function dl(ee){var te=ee.insideDestination,ie=ee.inHomeList,de=ee.displacedBy,Ce=ee.destination,we=Do(te,{inHomeList:ie});return{displaced:Jt,displacedBy:de,at:{type:"REORDER",destination:{droppableId:Ce.descriptor.id,index:we}}}}function al(ee){var te=ee.draggable,ie=ee.insideDestination,de=ee.destination,Ce=ee.viewport,we=ee.displacedBy,Ie=ee.last,je=ee.index,dt=ee.forceShouldAnimate,Dt=li(te,de);if(je==null)return dl({insideDestination:ie,inHomeList:Dt,displacedBy:we,destination:de});var Ct=ci(ie,function(kr){return kr.descriptor.index===je});if(!Ct)return dl({insideDestination:ie,inHomeList:Dt,displacedBy:we,destination:de});var mt=Oo(te,ie),gt=ie.indexOf(Ct),Mt=mt.slice(gt),gn=ji({afterDragging:Mt,destination:de,displacedBy:we,last:Ie,viewport:Ce.frame,forceShouldAnimate:dt});return{displaced:gn,displacedBy:we,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:je}}}}function Xo(ee,te){return!!te.effected[ee]}var bl=function(ee){var te=ee.isMovingForward,ie=ee.destination,de=ee.draggables,Ce=ee.combine,we=ee.afterCritical;if(!ie.isCombineEnabled)return null;var Ie=Ce.draggableId,je=de[Ie],dt=je.descriptor.index,Dt=Xo(Ie,we);return Dt?te?dt:dt-1:te?dt+1:dt},Ao=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,de=ee.insideDestination,Ce=ee.location;if(!de.length)return null;var we=Ce.index,Ie=te?we+1:we-1,je=de[0].descriptor.index,dt=de[de.length-1].descriptor.index,Dt=ie?dt:dt+1;return IeDt?null:Ie},mo=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,de=ee.draggable,Ce=ee.draggables,we=ee.destination,Ie=ee.insideDestination,je=ee.previousImpact,dt=ee.viewport,Dt=ee.afterCritical,Ct=je.at;if(Ct||rn(!1),Ct.type==="REORDER"){var mt=Ao({isMovingForward:te,isInHomeList:ie,location:Ct.destination,insideDestination:Ie});return mt==null?null:al({draggable:de,insideDestination:Ie,destination:we,viewport:dt,last:je.displaced,displacedBy:je.displacedBy,index:mt})}var gt=bl({isMovingForward:te,destination:we,displaced:je.displaced,draggables:Ce,combine:Ct.combine,afterCritical:Dt});return gt==null?null:al({draggable:de,insideDestination:Ie,destination:we,viewport:dt,last:je.displaced,displacedBy:je.displacedBy,index:gt})},Rl=function(ee){var te=ee.displaced,ie=ee.afterCritical,de=ee.combineWith,Ce=ee.displacedBy,we=!!(te.visible[de]||te.invisible[de]);return Xo(de,ie)?we?tr:ua(Ce.point):we?Ce.point:tr},Cl=function(ee){var te=ee.afterCritical,ie=ee.impact,de=ee.draggables,Ce=Fi(ie);Ce||rn(!1);var we=Ce.draggableId,Ie=de[we].page.borderBox.center,je=Rl({displaced:ie.displaced,afterCritical:te,combineWith:we,displacedBy:ie.displacedBy});return Mr(Ie,je)},Zl=function(te,ie){return ie.margin[te.start]+ie.borderBox[te.size]/2},ql=function(te,ie){return ie.margin[te.end]+ie.borderBox[te.size]/2},Fl=function(te,ie,de){return ie[te.crossAxisStart]+de.margin[te.crossAxisStart]+de.borderBox[te.crossAxisSize]/2},vl=function(te){var ie=te.axis,de=te.moveRelativeTo,Ce=te.isMoving;return ta(ie.line,de.marginBox[ie.end]+Zl(ie,Ce),Fl(ie,de.marginBox,Ce))},zo=function(te){var ie=te.axis,de=te.moveRelativeTo,Ce=te.isMoving;return ta(ie.line,de.marginBox[ie.start]-ql(ie,Ce),Fl(ie,de.marginBox,Ce))},os=function(te){var ie=te.axis,de=te.moveInto,Ce=te.isMoving;return ta(ie.line,de.contentBox[ie.start]+Zl(ie,Ce),Fl(ie,de.contentBox,Ce))},Os=function(ee){var te=ee.impact,ie=ee.draggable,de=ee.draggables,Ce=ee.droppable,we=ee.afterCritical,Ie=na(Ce.descriptor.id,de),je=ie.page,dt=Ce.axis;if(!Ie.length)return os({axis:dt,moveInto:Ce.page,isMoving:je});var Dt=te.displaced,Ct=te.displacedBy,mt=Dt.all[0];if(mt){var gt=de[mt];if(Xo(mt,we))return zo({axis:dt,moveRelativeTo:gt.page,isMoving:je});var Mt=Ii(gt.page,Ct.point);return zo({axis:dt,moveRelativeTo:Mt,isMoving:je})}var gn=Ie[Ie.length-1];if(gn.descriptor.id===ie.descriptor.id)return je.borderBox.center;if(Xo(gn.descriptor.id,we)){var kr=Ii(gn.page,ua(we.displacedBy.point));return vl({axis:dt,moveRelativeTo:kr,isMoving:je})}return vl({axis:dt,moveRelativeTo:gn.page,isMoving:je})},Gl=function(ee,te){var ie=ee.frame;return ie?Mr(te,ie.scroll.diff.displacement):te},As=function(te){var ie=te.impact,de=te.draggable,Ce=te.droppable,we=te.draggables,Ie=te.afterCritical,je=de.page.borderBox.center,dt=ie.at;return!Ce||!dt?je:dt.type==="REORDER"?Os({impact:ie,draggable:de,draggables:we,droppable:Ce,afterCritical:Ie}):Cl({impact:ie,draggables:we,afterCritical:Ie})},Fs=function(ee){var te=As(ee),ie=ee.droppable,de=ie?Gl(ie,te):te;return de},Js=function(ee,te){var ie=Tr(te,ee.scroll.initial),de=ua(ie),Ce=Da({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),we={frame:Ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ie,displacement:de}}};return we};function Ms(ee,te){return ee.map(function(ie){return te[ie]})}function Gs(ee,te){for(var ie=0;ie1?Ct.sort(function(mt,gt){return Mi(mt)[je.start]-Mi(gt)[je.start]})[0]:Dt.sort(function(mt,gt){var Mt=Kr(ie,bi(Mi(mt))),gn=Kr(ie,bi(Mi(gt)));return Mt!==gn?Mt-gn:Mi(mt)[je.start]-Mi(gt)[je.start]})[0]},Mo=function(te,ie){var de=te.page.borderBox.center;return Xo(te.descriptor.id,ie)?Tr(de,ie.displacedBy.point):de},Bl=function(te,ie){var de=te.page.borderBox;return Xo(te.descriptor.id,ie)?ai(de,ua(ie.displacedBy.point)):de},ls=function(ee){var te=ee.pageBorderBoxCenter,ie=ee.viewport,de=ee.destination,Ce=ee.insideDestination,we=ee.afterCritical,Ie=Ce.filter(function(je){return ca({target:Bl(je,we),destination:de,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(je,dt){var Dt=Ua(te,Gl(de,Mo(je,we))),Ct=Ua(te,Gl(de,Mo(dt,we)));return Dtte.left&&ee.topte.top}function vs(ee){var te=ee.pageBorderBox,ie=ee.draggable,de=ee.candidates,Ce=ie.page.borderBox.center,we=de.map(function(Ie){var je=Ie.axis,dt=ta(Ie.axis.line,te.center[je.line],Ie.page.borderBox.center[je.crossAxisLine]);return{id:Ie.descriptor.id,distance:Ua(Ce,dt)}}).sort(function(Ie,je){return je.distance-Ie.distance});return we[0]?we[0].id:null}function $u(ee){var te=ee.pageBorderBox,ie=ee.draggable,de=ee.droppables,Ce=Hi(de).filter(function(we){if(!we.isEnabled)return!1;var Ie=we.subject.active;if(!Ie||!ms(te,Ie))return!1;if(qs(Ie)(te.center))return!0;var je=we.axis,dt=Ie.center[je.crossAxisLine],Dt=te[je.crossAxisStart],Ct=te[je.crossAxisEnd],mt=Fn(Ie[je.crossAxisStart],Ie[je.crossAxisEnd]),gt=mt(Dt),Mt=mt(Ct);return!gt&&!Mt?!0:gt?Dtdt});return Ce.length?Ce.length===1?Ce[0].descriptor.id:vs({pageBorderBox:te,draggable:ie,candidates:Ce}):null}var Pu=function(te,ie){return Da(ai(te,ie))},nu=function(ee,te){var ie=ee.frame;return ie?Pu(te,ie.scroll.diff.value):te};function Rs(ee){var te=ee.displaced,ie=ee.id;return!!(te.visible[ie]||te.invisible[ie])}function el(ee){var te=ee.draggable,ie=ee.closest,de=ee.inHomeList;return ie?de&&ie.descriptor.index>te.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var zu=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ie=ee.draggable,de=ee.destination,Ce=ee.insideDestination,we=ee.last,Ie=ee.viewport,je=ee.afterCritical,dt=de.axis,Dt=yl(de.axis,ie.displaceBy),Ct=Dt.value,mt=te[dt.start],gt=te[dt.end],Mt=Oo(ie,Ce),gn=ci(Mt,function(Wr){var qr=Wr.descriptor.id,Na=Wr.page.borderBox.center[dt.line],Ka=Xo(qr,je),ei=Rs({displaced:we,id:qr});return Ka?ei?gt<=Na:mtqr[je.start]+Ka&&mtqr[je.start]-Dt+Ka&&Ctqr[je.start]+Dt+Ka&&mtqr[je.start]+Ka&&Ct=dr)return zn;var we=Ce/dr,Ie=Vn+Dr*we,je=de==="CANCEL"?Ie*bn:Ie;return Number(je.toFixed(2))},qn=function(ee){var te=ee.impact,ie=ee.draggable,de=ee.dimensions,Ce=ee.viewport,we=ee.afterCritical,Ie=de.draggables,je=de.droppables,dt=Sl(te),Dt=dt?je[dt]:null,Ct=je[ie.descriptor.droppableId],mt=Iu({impact:te,draggable:ie,draggables:Ie,afterCritical:we,droppable:Dt||Ct,viewport:Ce}),gt=Tr(mt,ie.client.borderBox.center);return gt},mr=function(ee){var te=ee.draggables,ie=ee.reason,de=ee.lastImpact,Ce=ee.home,we=ee.viewport,Ie=ee.onLiftImpact;if(!de.at||ie!=="DROP"){var je=uu({draggables:te,impact:Ie,destination:Ce,viewport:we,forceShouldAnimate:!0});return{impact:je,didDropInsideDroppable:!1}}if(de.at.type==="REORDER")return{impact:de,didDropInsideDroppable:!0};var dt=(0,xe.Z)({},de,{displaced:Jt});return{impact:dt,didDropInsideDroppable:!0}},Oa=function(ee){var te=ee.getState,ie=ee.dispatch;return function(de){return function(Ce){if(Ce.type!=="DROP"){de(Ce);return}var we=te(),Ie=Ce.payload.reason;if(we.phase==="COLLECTING"){ie($e({reason:Ie}));return}if(we.phase!=="IDLE"){var je=we.phase==="DROP_PENDING"&&we.isWaiting;je&&rn(!1),we.phase==="DRAGGING"||we.phase==="DROP_PENDING"||rn(!1);var dt=we.critical,Dt=we.dimensions,Ct=Dt.draggables[we.critical.draggable.id],mt=mr({reason:Ie,lastImpact:we.impact,afterCritical:we.afterCritical,onLiftImpact:we.onLiftImpact,home:we.dimensions.droppables[we.critical.droppable.id],viewport:we.viewport,draggables:we.dimensions.draggables}),gt=mt.impact,Mt=mt.didDropInsideDroppable,gn=Mt?to(gt):null,kr=Mt?Fi(gt):null,Wr={index:dt.draggable.index,droppableId:dt.droppable.id},qr={draggableId:Ct.descriptor.id,type:Ct.descriptor.type,source:Wr,reason:Ie,mode:we.movementMode,destination:gn,combine:kr},Na=qn({impact:gt,draggable:Ct,dimensions:Dt,viewport:we.viewport,afterCritical:we.afterCritical}),Ka={critical:we.critical,afterCritical:we.afterCritical,result:qr,impact:gt},ei=!Qa(we.current.client.offset,Na)||!!qr.combine;if(!ei){ie(ye({completed:Ka}));return}var go=br({current:we.current.client.offset,destination:Na,reason:Ie}),fo={newHomeClientOffset:Na,dropDuration:go,completed:Ka};ie(re(fo))}}}},ia=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Lr(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){ie.target!==window&&ie.target!==window.document||ee()}}}function aa(ee){var te=ee.onWindowScroll;function ie(){te(ia())}var de=Un(ie),Ce=Lr(de),we=Hr;function Ie(){return we!==Hr}function je(){Ie()&&rn(!1),we=Nr(window,[Ce])}function dt(){Ie()||rn(!1),de.cancel(),we(),we=Hr}return{start:je,stop:dt,isActive:Ie}}var Wa=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},pa=function(ee){var te=aa({onWindowScroll:function(de){ee.dispatch(Du({newScroll:de}))}});return function(ie){return function(de){!te.isActive()&&de.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&Wa(de)&&te.stop(),ie(de)}}},Ur=function(ee){var te=!1,ie=!1,de=setTimeout(function(){ie=!0}),Ce=function(Ie){te||ie||(te=!0,ee(Ie),clearTimeout(de))};return Ce.wasCalled=function(){return te},Ce},_r=function(){var ee=[],te=function(we){var Ie=_a(ee,function(Dt){return Dt.timerId===we});Ie===-1&&rn(!1);var je=ee.splice(Ie,1),dt=je[0];dt.callback()},ie=function(we){var Ie=setTimeout(function(){return te(Ie)}),je={timerId:Ie,callback:we};ee.push(je)},de=function(){if(ee.length){var we=[].concat(ee);ee.length=0,we.forEach(function(Ie){clearTimeout(Ie.timerId),Ie.callback()})}};return{add:ie,flush:de}},Jr=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.droppableId===ie.droppableId&&te.index===ie.index},Gr=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.draggableId===ie.draggableId&&te.droppableId===ie.droppableId},ka=function(te,ie){if(te===ie)return!0;var de=te.draggable.id===ie.draggable.id&&te.draggable.droppableId===ie.draggable.droppableId&&te.draggable.type===ie.draggable.type&&te.draggable.index===ie.draggable.index,Ce=te.droppable.id===ie.droppable.id&&te.droppable.type===ie.droppable.type;return de&&Ce},Ea=function(te,ie){Yl(),ie(),gr()},oa=function(te,ie){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ie}},ma=function(te,ie,de,Ce){if(!te){de(Ce(ie));return}var we=Ur(de),Ie={announce:we};te(ie,Ie),we.wasCalled()||de(Ce(ie))},Yr=function(ee,te){var ie=_r(),de=null,Ce=function(gt,Mt){de&&rn(!1),Ea("onBeforeCapture",function(){var gn=ee().onBeforeCapture;if(gn){var kr={draggableId:gt,mode:Mt};gn(kr)}})},we=function(gt,Mt){de&&rn(!1),Ea("onBeforeDragStart",function(){var gn=ee().onBeforeDragStart;gn&&gn(oa(gt,Mt))})},Ie=function(gt,Mt){de&&rn(!1);var gn=oa(gt,Mt);de={mode:Mt,lastCritical:gt,lastLocation:gn.source,lastCombine:null},ie.add(function(){Ea("onDragStart",function(){return ma(ee().onDragStart,gn,te,yn.onDragStart)})})},je=function(gt,Mt){var gn=to(Mt),kr=Fi(Mt);de||rn(!1);var Wr=!ka(gt,de.lastCritical);Wr&&(de.lastCritical=gt);var qr=!Jr(de.lastLocation,gn);qr&&(de.lastLocation=gn);var Na=!Gr(de.lastCombine,kr);if(Na&&(de.lastCombine=kr),!(!Wr&&!qr&&!Na)){var Ka=(0,xe.Z)({},oa(gt,de.mode),{combine:kr,destination:gn});ie.add(function(){Ea("onDragUpdate",function(){return ma(ee().onDragUpdate,Ka,te,yn.onDragUpdate)})})}},dt=function(){de||rn(!1),ie.flush()},Dt=function(gt){de||rn(!1),de=null,Ea("onDragEnd",function(){return ma(ee().onDragEnd,gt,te,yn.onDragEnd)})},Ct=function(){if(de){var gt=(0,xe.Z)({},oa(de.lastCritical,de.mode),{combine:null,destination:null,reason:"CANCEL"});Dt(gt)}};return{beforeCapture:Ce,beforeStart:we,start:Ie,update:je,flush:dt,drop:Dt,abort:Ct}},ha=function(ee,te){var ie=Yr(ee,te);return function(de){return function(Ce){return function(we){if(we.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(we.payload.draggableId,we.payload.movementMode);return}if(we.type==="INITIAL_PUBLISH"){var Ie=we.payload.critical;ie.beforeStart(Ie,we.payload.movementMode),Ce(we),ie.start(Ie,we.payload.movementMode);return}if(we.type==="DROP_COMPLETE"){var je=we.payload.completed.result;ie.flush(),Ce(we),ie.drop(je);return}if(Ce(we),we.type==="FLUSH"){ie.abort();return}var dt=de.getState();dt.phase==="DRAGGING"&&ie.update(dt.critical,dt.impact)}}}},fa=function(ee){return function(te){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){te(ie);return}var de=ee.getState();de.phase!=="DROP_ANIMATING"&&rn(!1),ee.dispatch(ye({completed:de.completed}))}}},ni=function(ee){var te=null,ie=null;function de(){ie&&(cancelAnimationFrame(ie),ie=null),te&&(te(),te=null)}return function(Ce){return function(we){if((we.type==="FLUSH"||we.type==="DROP_COMPLETE"||we.type==="DROP_ANIMATION_FINISHED")&&de(),Ce(we),we.type==="DROP_ANIMATE"){var Ie={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var dt=ee.getState();dt.phase==="DROP_ANIMATING"&&ee.dispatch(at())}};ie=requestAnimationFrame(function(){ie=null,te=Nr(window,[Ie])})}}}},di=function(ee){return function(){return function(te){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ie)}}}},mi=function(ee){var te=!1;return function(){return function(ie){return function(de){if(de.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(de.payload.critical.draggable.id),ie(de),ee.tryRestoreFocusRecorded();return}if(ie(de),!!te){if(de.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(de.type==="DROP_COMPLETE"){te=!1;var Ce=de.payload.completed.result;Ce.combine&&ee.tryShiftRecord(Ce.draggableId,Ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},vi=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},$a=function(ee){return function(te){return function(ie){return function(de){if(vi(de)){ee.stop(),ie(de);return}if(de.type==="INITIAL_PUBLISH"){ie(de);var Ce=te.getState();Ce.phase!=="DRAGGING"&&rn(!1),ee.start(Ce);return}ie(de),ee.scroll(te.getState())}}}},Li=function(ee){return function(te){return function(ie){if(te(ie),ie.type==="PUBLISH_WHILE_DRAGGING"){var de=ee.getState();de.phase==="DROP_PENDING"&&(de.isWaiting||ee.dispatch(Me({reason:de.reason})))}}}},fn=Je.qC,Oi=function(ee){var te=ee.dimensionMarshal,ie=ee.focusMarshal,de=ee.styleMarshal,Ce=ee.getResponders,we=ee.announce,Ie=ee.autoScroller;return(0,Je.MT)(ks,fn((0,Je.md)(pn(de),di(te),jt(te),Oa,fa,ni,Li,$a(Ie),pa,mi(ie),ha(Ce,we))))},no=function(){return{additions:{},removals:{},modified:{}}};function Bi(ee){var te=ee.registry,ie=ee.callbacks,de=no(),Ce=null,we=function(){Ce||(ie.collectionStarting(),Ce=requestAnimationFrame(function(){Ce=null,Yl();var Ct=de,mt=Ct.additions,gt=Ct.removals,Mt=Ct.modified,gn=Object.keys(mt).map(function(qr){return te.draggable.getById(qr).getDimension(tr)}).sort(function(qr,Na){return qr.descriptor.index-Na.descriptor.index}),kr=Object.keys(Mt).map(function(qr){var Na=te.droppable.getById(qr),Ka=Na.callbacks.getScrollWhileDragging();return{droppableId:qr,scroll:Ka}}),Wr={additions:gn,removals:Object.keys(gt),modified:kr};de=no(),gr(),ie.publish(Wr)}))},Ie=function(Ct){var mt=Ct.descriptor.id;de.additions[mt]=Ct,de.modified[Ct.descriptor.droppableId]=!0,de.removals[mt]&&delete de.removals[mt],we()},je=function(Ct){var mt=Ct.descriptor;de.removals[mt.id]=!0,de.modified[mt.droppableId]=!0,de.additions[mt.id]&&delete de.additions[mt.id],we()},dt=function(){Ce&&(cancelAnimationFrame(Ce),Ce=null,de=no())};return{add:Ie,remove:je,stop:dt}}var lo=function(ee){var te=ee.scrollHeight,ie=ee.scrollWidth,de=ee.height,Ce=ee.width,we=Tr({x:ie,y:te},{x:Ce,y:de}),Ie={x:Math.max(0,we.x),y:Math.max(0,we.y)};return Ie},gi=function(){var ee=document.documentElement;return ee||rn(!1),ee},po=function(){var ee=gi(),te=lo({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},zi=function(){var ee=ia(),te=po(),ie=ee.y,de=ee.x,Ce=gi(),we=Ce.clientWidth,Ie=Ce.clientHeight,je=de+we,dt=ie+Ie,Dt=Da({top:ie,left:de,right:je,bottom:dt}),Ct={frame:Dt,scroll:{initial:ee,current:ee,max:te,diff:{value:tr,displacement:tr}}};return Ct},Wi=function(ee){var te=ee.critical,ie=ee.scrollOptions,de=ee.registry;Yl();var Ce=zi(),we=Ce.scroll.current,Ie=te.droppable,je=de.droppable.getAllByType(Ie.type).map(function(mt){return mt.callbacks.getDimensionAndWatchScroll(we,ie)}),dt=de.draggable.getAllByType(te.draggable.type).map(function(mt){return mt.getDimension(we)}),Dt={draggables:Qi(dt),droppables:Fo(je)};gr();var Ct={dimensions:Dt,critical:te,viewport:Ce};return Ct};function ho(ee,te,ie){if(ie.descriptor.id===te.id||ie.descriptor.type!==te.type)return!1;var de=ee.droppable.getById(ie.descriptor.droppableId);return de.descriptor.mode==="virtual"}var ba=function(ee,te){var ie=null,de=Bi({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),Ce=function(Mt,gn){ee.droppable.exists(Mt)||rn(!1),ie&&te.updateDroppableIsEnabled({id:Mt,isEnabled:gn})},we=function(Mt,gn){ie&&(ee.droppable.exists(Mt)||rn(!1),te.updateDroppableIsCombineEnabled({id:Mt,isCombineEnabled:gn}))},Ie=function(Mt,gn){ie&&(ee.droppable.exists(Mt)||rn(!1),te.updateDroppableScroll({id:Mt,newScroll:gn}))},je=function(Mt,gn){ie&&ee.droppable.getById(Mt).callbacks.scroll(gn)},dt=function(){if(ie){de.stop();var Mt=ie.critical.droppable;ee.droppable.getAllByType(Mt.type).forEach(function(gn){return gn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null}},Dt=function(Mt){ie||rn(!1);var gn=ie.critical.draggable;Mt.type==="ADDITION"&&ho(ee,gn,Mt.value)&&de.add(Mt.value),Mt.type==="REMOVAL"&&ho(ee,gn,Mt.value)&&de.remove(Mt.value)},Ct=function(Mt){ie&&rn(!1);var gn=ee.draggable.getById(Mt.draggableId),kr=ee.droppable.getById(gn.descriptor.droppableId),Wr={draggable:gn.descriptor,droppable:kr.descriptor},qr=ee.subscribe(Dt);return ie={critical:Wr,unsubscribe:qr},Wi({critical:Wr,registry:ee,scrollOptions:Mt.scrollOptions})},mt={updateDroppableIsEnabled:Ce,updateDroppableIsCombineEnabled:we,scrollDroppable:je,updateDroppableScroll:Ie,startPublishing:Ct,stopPublishing:dt};return mt},wa=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},Ji=function(ee){window.scrollBy(ee.x,ee.y)},yo=qt(function(ee){return Hi(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),jo=function(te,ie){var de=ci(yo(ie),function(Ce){return Ce.frame||rn(!1),qs(Ce.frame.pageMarginBox)(te)});return de},so=function(ee){var te=ee.center,ie=ee.destination,de=ee.droppables;if(ie){var Ce=de[ie];return Ce.frame?Ce:null}var we=jo(te,de);return we},tl={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},So=function(ee,te){var ie=ee[te.size]*tl.startFromPercentage,de=ee[te.size]*tl.maxScrollAtPercentage,Ce={startScrollingFrom:ie,maxScrollValueAt:de};return Ce},uo=function(ee){var te=ee.startOfRange,ie=ee.endOfRange,de=ee.current,Ce=ie-te;if(Ce===0)return 0;var we=de-te,Ie=we/Ce;return Ie},vo=1,Rr=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return tl.maxPixelScroll;if(ee===te.startScrollingFrom)return vo;var ie=uo({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),de=1-ie,Ce=tl.maxPixelScroll*tl.ease(de);return Math.ceil(Ce)},fi=tl.durationDampening.accelerateAt,Kl=tl.durationDampening.stopDampeningAt,Ya=function(ee,te){var ie=te,de=Kl,Ce=Date.now(),we=Ce-ie;if(we>=Kl)return ee;if(wete.height,we=ie.width>te.width;return!we&&!Ce?de:we&&Ce?null:{x:we?0:de.x,y:Ce?0:de.y}},ja=ya(function(ee){return ee===0?0:ee}),ko=function(ee){var te=ee.dragStartTime,ie=ee.container,de=ee.subject,Ce=ee.center,we=ee.shouldUseTimeDampening,Ie={top:Ce.y-ie.top,right:ie.right-Ce.x,bottom:ie.bottom-Ce.y,left:Ce.x-ie.left},je=co({container:ie,distanceToEdges:Ie,dragStartTime:te,axis:an,shouldUseTimeDampening:we}),dt=co({container:ie,distanceToEdges:Ie,dragStartTime:te,axis:Qt,shouldUseTimeDampening:we}),Dt=ja({x:dt,y:je});if(Qa(Dt,tr))return null;var Ct=xa({container:ie,subject:de,proposedScroll:Dt});return Ct?Qa(Ct,tr)?null:Ct:null},nl=ya(function(ee){return ee===0?0:ee>0?1:-1}),gl=function(){var ee=function(ie,de){return ie<0?ie:ie>de?ie-de:0};return function(te){var ie=te.current,de=te.max,Ce=te.change,we=Mr(ie,Ce),Ie={x:ee(we.x,de.x),y:ee(we.y,de.y)};return Qa(Ie,tr)?null:Ie}}(),jl=function(te){var ie=te.max,de=te.current,Ce=te.change,we={x:Math.max(de.x,ie.x),y:Math.max(de.y,ie.y)},Ie=nl(Ce),je=gl({max:we,current:de,change:Ie});return!je||Ie.x!==0&&je.x===0||Ie.y!==0&&je.y===0},Wl=function(te,ie){return jl({current:te.scroll.current,max:te.scroll.max,change:ie})},js=function(te,ie){if(!Wl(te,ie))return null;var de=te.scroll.max,Ce=te.scroll.current;return gl({current:Ce,max:de,change:ie})},ue=function(te,ie){var de=te.frame;return de?jl({current:de.scroll.current,max:de.scroll.max,change:ie}):!1},ke=function(te,ie){var de=te.frame;return!de||!ue(te,ie)?null:gl({current:de.scroll.current,max:de.scroll.max,change:ie})},Le=function(ee){var te=ee.viewport,ie=ee.subject,de=ee.center,Ce=ee.dragStartTime,we=ee.shouldUseTimeDampening,Ie=ko({dragStartTime:Ce,container:te.frame,subject:ie,center:de,shouldUseTimeDampening:we});return Ie&&Wl(te,Ie)?Ie:null},Yt=function(ee){var te=ee.droppable,ie=ee.subject,de=ee.center,Ce=ee.dragStartTime,we=ee.shouldUseTimeDampening,Ie=te.frame;if(!Ie)return null;var je=ko({dragStartTime:Ce,container:Ie.pageMarginBox,subject:ie,center:de,shouldUseTimeDampening:we});return je&&ue(te,je)?je:null},_n=function(ee){var te=ee.state,ie=ee.dragStartTime,de=ee.shouldUseTimeDampening,Ce=ee.scrollWindow,we=ee.scrollDroppable,Ie=te.current.page.borderBoxCenter,je=te.dimensions.draggables[te.critical.draggable.id],dt=je.page.marginBox;if(te.isWindowScrollAllowed){var Dt=te.viewport,Ct=Le({dragStartTime:ie,viewport:Dt,subject:dt,center:Ie,shouldUseTimeDampening:de});if(Ct){Ce(Ct);return}}var mt=so({center:Ie,destination:Sl(te.impact),droppables:te.dimensions.droppables});if(mt){var gt=Yt({dragStartTime:ie,droppable:mt,subject:dt,center:Ie,shouldUseTimeDampening:de});gt&&we(mt.descriptor.id,gt)}},yr=function(ee){var te=ee.scrollWindow,ie=ee.scrollDroppable,de=Un(te),Ce=Un(ie),we=null,Ie=function(Ct){we||rn(!1);var mt=we,gt=mt.shouldUseTimeDampening,Mt=mt.dragStartTime;_n({state:Ct,scrollWindow:de,scrollDroppable:Ce,dragStartTime:Mt,shouldUseTimeDampening:gt})},je=function(Ct){Yl(),we&&rn(!1);var mt=Date.now(),gt=!1,Mt=function(){gt=!0};_n({state:Ct,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Mt,scrollDroppable:Mt}),we={dragStartTime:mt,shouldUseTimeDampening:gt},gr(),gt&&Ie(Ct)},dt=function(){we&&(de.cancel(),Ce.cancel(),we=null)};return{start:je,stop:dt,scroll:Ie}},Pn=function(ee){var te=ee.move,ie=ee.scrollDroppable,de=ee.scrollWindow,Ce=function(Dt,Ct){var mt=Mr(Dt.current.client.selection,Ct);te({client:mt})},we=function(Dt,Ct){if(!ue(Dt,Ct))return Ct;var mt=ke(Dt,Ct);if(!mt)return ie(Dt.descriptor.id,Ct),null;var gt=Tr(Ct,mt);ie(Dt.descriptor.id,gt);var Mt=Tr(Ct,gt);return Mt},Ie=function(Dt,Ct,mt){if(!Dt||!Wl(Ct,mt))return mt;var gt=js(Ct,mt);if(!gt)return de(mt),null;var Mt=Tr(mt,gt);de(Mt);var gn=Tr(mt,Mt);return gn},je=function(Dt){var Ct=Dt.scrollJumpRequest;if(Ct){var mt=Sl(Dt.impact);mt||rn(!1);var gt=we(Dt.dimensions.droppables[mt],Ct);if(gt){var Mt=Dt.viewport,gn=Ie(Dt.isWindowScrollAllowed,Mt,gt);gn&&Ce(Dt,gn)}}};return je},hn=function(ee){var te=ee.scrollDroppable,ie=ee.scrollWindow,de=ee.move,Ce=yr({scrollWindow:ie,scrollDroppable:te}),we=Pn({move:de,scrollWindow:ie,scrollDroppable:te}),Ie=function(Dt){if(Dt.phase==="DRAGGING"){if(Dt.movementMode==="FLUID"){Ce.scroll(Dt);return}Dt.scrollJumpRequest&&we(Dt)}},je={scroll:Ie,start:Ce.start,stop:Ce.stop};return je},zt="data-rbd",Mn=function(){var ee=zt+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Ra=function(){var ee=zt+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),sn=function(){var ee=zt+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Wt={contextId:zt+"-scroll-container-context-id"},cn=function(te){return function(ie){return"["+ie+'="'+te+'"]'}},Qn=function(te,ie){return te.map(function(de){var Ce=de.styles[ie];return Ce?de.selector+" { "+Ce+" }":""}).join(" ")},Yn="pointer-events: none;",Ln=function(ee){var te=cn(ee),ie=function(){var je=` cursor: -webkit-grab; cursor: grab; `;return{selector:te(Mn.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:He,dragging:Yn,dropAnimating:He}}}(),de=function(){var He=` + `,resting:je,dragging:Yn,dropAnimating:je}}}(),de=function(){var je=` transition: `+Tn.outOfTheWay+`; - `;return{selector:te(Ra.contextId),styles:{dragging:He,dropAnimating:He,userCancel:He}}}(),Ce={selector:te(sn.contextId),styles:{always:"overflow-anchor: none;"}},we={selector:"body",styles:{dragging:` + `;return{selector:te(Ra.contextId),styles:{dragging:je,dropAnimating:je,userCancel:je}}}(),Ce={selector:te(sn.contextId),styles:{always:"overflow-anchor: none;"}},we={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -1346,10 +1346,10 @@ The error may be correlated with this previous error: -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},Ie=[de,ie,Ce,we];return{always:Qn(Ie,"always"),resting:Qn(Ie,"resting"),dragging:Qn(Ie,"dragging"),dropAnimating:Qn(Ie,"dropAnimating"),userCancel:Qn(Ie,"userCancel")}},Hn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect,xn=function(){var te=document.querySelector("head");return te||rn(!1),te},or=function(te){var ie=document.createElement("style");return te&&ie.setAttribute("nonce",te),ie.type="text/css",ie};function xr(ee,te){var ie=sr(function(){return Ln(ee)},[ee]),de=(0,E.useRef)(null),Ce=(0,E.useRef)(null),we=un(qt(function(mt){var gt=Ce.current;gt||rn(!1),gt.textContent=mt}),[]),Ie=un(function(mt){var gt=de.current;gt||rn(!1),gt.textContent=mt},[]);Hn(function(){!de.current&&!Ce.current||rn(!1);var mt=or(te),gt=or(te);return de.current=mt,Ce.current=gt,mt.setAttribute(zt+"-always",ee),gt.setAttribute(zt+"-dynamic",ee),xn().appendChild(mt),xn().appendChild(gt),Ie(ie.always),we(ie.resting),function(){var Mt=function(kr){var Wr=kr.current;Wr||rn(!1),xn().removeChild(Wr),kr.current=null};Mt(de),Mt(Ce)}},[te,Ie,we,ie.always,ie.resting,ee]);var He=un(function(){return we(ie.dragging)},[we,ie.dragging]),ft=un(function(mt){if(mt==="DROP"){we(ie.dropAnimating);return}we(ie.userCancel)},[we,ie.dropAnimating,ie.userCancel]),Dt=un(function(){Ce.current&&we(ie.resting)},[we,ie.resting]),bt=sr(function(){return{dragging:He,dropping:ft,resting:Dt}},[He,ft,Dt]);return bt}var lr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function xi(ee){return ee instanceof lr(ee).HTMLElement}function ro(ee,te){var ie="["+Mn.contextId+'="'+ee+'"]',de=Ai(document.querySelectorAll(ie));if(!de.length)return null;var Ce=ci(de,function(we){return we.getAttribute(Mn.draggableId)===te});return!Ce||!xi(Ce)?null:Ce}function Ui(ee){var te=(0,E.useRef)({}),ie=(0,E.useRef)(null),de=(0,E.useRef)(null),Ce=(0,E.useRef)(!1),we=un(function(gt,Mt){var gn={id:gt,focus:Mt};return te.current[gt]=gn,function(){var Wr=te.current,qr=Wr[gt];qr!==gn&&delete Wr[gt]}},[]),Ie=un(function(gt){var Mt=ro(ee,gt);Mt&&Mt!==document.activeElement&&Mt.focus()},[ee]),He=un(function(gt,Mt){ie.current===gt&&(ie.current=Mt)},[]),ft=un(function(){de.current||Ce.current&&(de.current=requestAnimationFrame(function(){de.current=null;var gt=ie.current;gt&&Ie(gt)}))},[Ie]),Dt=un(function(gt){ie.current=null;var Mt=document.activeElement;Mt&&Mt.getAttribute(Mn.draggableId)===gt&&(ie.current=gt)},[]);Hn(function(){return Ce.current=!0,function(){Ce.current=!1;var gt=de.current;gt&&cancelAnimationFrame(gt)}},[]);var bt=sr(function(){return{register:we,tryRecordFocus:Dt,tryRestoreFocusRecorded:ft,tryShiftRecord:He}},[we,Dt,ft,He]);return bt}function Io(){var ee={draggables:{},droppables:{}},te=[];function ie(mt){return te.push(mt),function(){var Mt=te.indexOf(mt);Mt!==-1&&te.splice(Mt,1)}}function de(mt){te.length&&te.forEach(function(gt){return gt(mt)})}function Ce(mt){return ee.draggables[mt]||null}function we(mt){var gt=Ce(mt);return gt||rn(!1),gt}var Ie={register:function(gt){ee.draggables[gt.descriptor.id]=gt,de({type:"ADDITION",value:gt})},update:function(gt,Mt){var gn=ee.draggables[Mt.descriptor.id];gn&&gn.uniqueId===gt.uniqueId&&(delete ee.draggables[Mt.descriptor.id],ee.draggables[gt.descriptor.id]=gt)},unregister:function(gt){var Mt=gt.descriptor.id,gn=Ce(Mt);gn&>.uniqueId===gn.uniqueId&&(delete ee.draggables[Mt],de({type:"REMOVAL",value:gt}))},getById:we,findById:Ce,exists:function(gt){return!!Ce(gt)},getAllByType:function(gt){return ti(ee.draggables).filter(function(Mt){return Mt.descriptor.type===gt})}};function He(mt){return ee.droppables[mt]||null}function ft(mt){var gt=He(mt);return gt||rn(!1),gt}var Dt={register:function(gt){ee.droppables[gt.descriptor.id]=gt},unregister:function(gt){var Mt=He(gt.descriptor.id);Mt&>.uniqueId===Mt.uniqueId&&delete ee.droppables[gt.descriptor.id]},getById:ft,findById:He,exists:function(gt){return!!He(gt)},getAllByType:function(gt){return ti(ee.droppables).filter(function(Mt){return Mt.descriptor.type===gt})}};function bt(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:Ie,droppable:Dt,subscribe:ie,clean:bt}}function Or(){var ee=sr(Io,[]);return(0,E.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var _i=E.createContext(null),Gi=function(){var ee=document.body;return ee||rn(!1),ee},ir={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Eo=function(te){return"rbd-announcement-"+te};function Uo(ee){var te=sr(function(){return Eo(ee)},[ee]),ie=(0,E.useRef)(null);(0,E.useEffect)(function(){var we=document.createElement("div");return ie.current=we,we.id=te,we.setAttribute("aria-live","assertive"),we.setAttribute("aria-atomic","true"),(0,xe.Z)(we.style,ir),Gi().appendChild(we),function(){setTimeout(function(){var ft=Gi();ft.contains(we)&&ft.removeChild(we),we===ie.current&&(ie.current=null)})}},[te]);var de=un(function(Ce){var we=ie.current;if(we){we.textContent=Ce;return}},[]);return de}var No=0,$n={separator:"::"};function pi(){No=0}function yi(ee,te){return te===void 0&&(te=$n),sr(function(){return""+ee+te.separator+No++},[te.separator,ee])}function Qo(ee){var te=ee.contextId,ie=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ie}function Jo(ee){var te=ee.contextId,ie=ee.text,de=yi("hidden-text",{separator:"-"}),Ce=sr(function(){return Qo({contextId:te,uniqueId:de})},[de,te]);return(0,E.useEffect)(function(){var Ie=document.createElement("div");return Ie.id=Ce,Ie.textContent=ie,Ie.style.display="none",Gi().appendChild(Ie),function(){var ft=Gi();ft.contains(Ie)&&ft.removeChild(Ie)}},[Ce,ie]),Ce}var il=E.createContext(null),bo={react:"^16.8.5","react-dom":"^16.8.5"},ol=/(\d+)\.(\d+)\.(\d+)/,pl=function(te){var ie=ol.exec(te);ie==null&&rn(!1);var de=Number(ie[1]),Ce=Number(ie[2]),we=Number(ie[3]);return{major:de,minor:Ce,patch:we,raw:te}},Lo=function(te,ie){return ie.major>te.major?!0:ie.majorte.minor?!0:ie.minor=te.patch},To=function(ee,te){var ie=pl(ee),de=pl(te);Lo(ie,de)},hl=` + `}},Ie=[de,ie,Ce,we];return{always:Qn(Ie,"always"),resting:Qn(Ie,"resting"),dragging:Qn(Ie,"dragging"),dropAnimating:Qn(Ie,"dropAnimating"),userCancel:Qn(Ie,"userCancel")}},Hn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect,xn=function(){var te=document.querySelector("head");return te||rn(!1),te},or=function(te){var ie=document.createElement("style");return te&&ie.setAttribute("nonce",te),ie.type="text/css",ie};function xr(ee,te){var ie=sr(function(){return Ln(ee)},[ee]),de=(0,E.useRef)(null),Ce=(0,E.useRef)(null),we=un(qt(function(mt){var gt=Ce.current;gt||rn(!1),gt.textContent=mt}),[]),Ie=un(function(mt){var gt=de.current;gt||rn(!1),gt.textContent=mt},[]);Hn(function(){!de.current&&!Ce.current||rn(!1);var mt=or(te),gt=or(te);return de.current=mt,Ce.current=gt,mt.setAttribute(zt+"-always",ee),gt.setAttribute(zt+"-dynamic",ee),xn().appendChild(mt),xn().appendChild(gt),Ie(ie.always),we(ie.resting),function(){var Mt=function(kr){var Wr=kr.current;Wr||rn(!1),xn().removeChild(Wr),kr.current=null};Mt(de),Mt(Ce)}},[te,Ie,we,ie.always,ie.resting,ee]);var je=un(function(){return we(ie.dragging)},[we,ie.dragging]),dt=un(function(mt){if(mt==="DROP"){we(ie.dropAnimating);return}we(ie.userCancel)},[we,ie.dropAnimating,ie.userCancel]),Dt=un(function(){Ce.current&&we(ie.resting)},[we,ie.resting]),Ct=sr(function(){return{dragging:je,dropping:dt,resting:Dt}},[je,dt,Dt]);return Ct}var lr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function xi(ee){return ee instanceof lr(ee).HTMLElement}function ro(ee,te){var ie="["+Mn.contextId+'="'+ee+'"]',de=Ai(document.querySelectorAll(ie));if(!de.length)return null;var Ce=ci(de,function(we){return we.getAttribute(Mn.draggableId)===te});return!Ce||!xi(Ce)?null:Ce}function Ui(ee){var te=(0,E.useRef)({}),ie=(0,E.useRef)(null),de=(0,E.useRef)(null),Ce=(0,E.useRef)(!1),we=un(function(gt,Mt){var gn={id:gt,focus:Mt};return te.current[gt]=gn,function(){var Wr=te.current,qr=Wr[gt];qr!==gn&&delete Wr[gt]}},[]),Ie=un(function(gt){var Mt=ro(ee,gt);Mt&&Mt!==document.activeElement&&Mt.focus()},[ee]),je=un(function(gt,Mt){ie.current===gt&&(ie.current=Mt)},[]),dt=un(function(){de.current||Ce.current&&(de.current=requestAnimationFrame(function(){de.current=null;var gt=ie.current;gt&&Ie(gt)}))},[Ie]),Dt=un(function(gt){ie.current=null;var Mt=document.activeElement;Mt&&Mt.getAttribute(Mn.draggableId)===gt&&(ie.current=gt)},[]);Hn(function(){return Ce.current=!0,function(){Ce.current=!1;var gt=de.current;gt&&cancelAnimationFrame(gt)}},[]);var Ct=sr(function(){return{register:we,tryRecordFocus:Dt,tryRestoreFocusRecorded:dt,tryShiftRecord:je}},[we,Dt,dt,je]);return Ct}function Io(){var ee={draggables:{},droppables:{}},te=[];function ie(mt){return te.push(mt),function(){var Mt=te.indexOf(mt);Mt!==-1&&te.splice(Mt,1)}}function de(mt){te.length&&te.forEach(function(gt){return gt(mt)})}function Ce(mt){return ee.draggables[mt]||null}function we(mt){var gt=Ce(mt);return gt||rn(!1),gt}var Ie={register:function(gt){ee.draggables[gt.descriptor.id]=gt,de({type:"ADDITION",value:gt})},update:function(gt,Mt){var gn=ee.draggables[Mt.descriptor.id];gn&&gn.uniqueId===gt.uniqueId&&(delete ee.draggables[Mt.descriptor.id],ee.draggables[gt.descriptor.id]=gt)},unregister:function(gt){var Mt=gt.descriptor.id,gn=Ce(Mt);gn&>.uniqueId===gn.uniqueId&&(delete ee.draggables[Mt],de({type:"REMOVAL",value:gt}))},getById:we,findById:Ce,exists:function(gt){return!!Ce(gt)},getAllByType:function(gt){return ti(ee.draggables).filter(function(Mt){return Mt.descriptor.type===gt})}};function je(mt){return ee.droppables[mt]||null}function dt(mt){var gt=je(mt);return gt||rn(!1),gt}var Dt={register:function(gt){ee.droppables[gt.descriptor.id]=gt},unregister:function(gt){var Mt=je(gt.descriptor.id);Mt&>.uniqueId===Mt.uniqueId&&delete ee.droppables[gt.descriptor.id]},getById:dt,findById:je,exists:function(gt){return!!je(gt)},getAllByType:function(gt){return ti(ee.droppables).filter(function(Mt){return Mt.descriptor.type===gt})}};function Ct(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:Ie,droppable:Dt,subscribe:ie,clean:Ct}}function Or(){var ee=sr(Io,[]);return(0,E.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var _i=E.createContext(null),Gi=function(){var ee=document.body;return ee||rn(!1),ee},ir={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Eo=function(te){return"rbd-announcement-"+te};function Uo(ee){var te=sr(function(){return Eo(ee)},[ee]),ie=(0,E.useRef)(null);(0,E.useEffect)(function(){var we=document.createElement("div");return ie.current=we,we.id=te,we.setAttribute("aria-live","assertive"),we.setAttribute("aria-atomic","true"),(0,xe.Z)(we.style,ir),Gi().appendChild(we),function(){setTimeout(function(){var dt=Gi();dt.contains(we)&&dt.removeChild(we),we===ie.current&&(ie.current=null)})}},[te]);var de=un(function(Ce){var we=ie.current;if(we){we.textContent=Ce;return}},[]);return de}var No=0,$n={separator:"::"};function pi(){No=0}function yi(ee,te){return te===void 0&&(te=$n),sr(function(){return""+ee+te.separator+No++},[te.separator,ee])}function Qo(ee){var te=ee.contextId,ie=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ie}function Jo(ee){var te=ee.contextId,ie=ee.text,de=yi("hidden-text",{separator:"-"}),Ce=sr(function(){return Qo({contextId:te,uniqueId:de})},[de,te]);return(0,E.useEffect)(function(){var Ie=document.createElement("div");return Ie.id=Ce,Ie.textContent=ie,Ie.style.display="none",Gi().appendChild(Ie),function(){var dt=Gi();dt.contains(Ie)&&dt.removeChild(Ie)}},[Ce,ie]),Ce}var il=E.createContext(null),bo={react:"^16.8.5","react-dom":"^16.8.5"},ol=/(\d+)\.(\d+)\.(\d+)/,pl=function(te){var ie=ol.exec(te);ie==null&&rn(!1);var de=Number(ie[1]),Ce=Number(ie[2]),we=Number(ie[3]);return{major:de,minor:Ce,patch:we,raw:te}},Lo=function(te,ie){return ie.major>te.major?!0:ie.majorte.minor?!0:ie.minor=te.patch},To=function(ee,te){var ie=pl(ee),de=pl(te);Lo(ie,de)},hl=` We expect a html5 doctype: This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md -`,Dl=function(ee){var te=ee.doctype;te&&(te.name.toLowerCase(),te.publicId)};function Ys(ee){}function Pi(ee,te){}function Fa(){Pi(function(){To(bo.react,E.version),Dl(document)},[])}function ul(ee){var te=(0,E.useRef)(ee);return(0,E.useEffect)(function(){te.current=ee}),te}function cl(){var ee=null;function te(){return!!ee}function ie(Ie){return Ie===ee}function de(Ie){ee&&rn(!1);var He={abandon:Ie};return ee=He,He}function Ce(){ee||rn(!1),ee=null}function we(){ee&&(ee.abandon(),Ce())}return{isClaimed:te,isActive:ie,claim:de,release:Ce,tryAbandon:we}}var gs=9,ns=13,Ks=27,Ws=32,Vs=33,qi=34,Si=35,Ri=36,Za=37,ll=38,ds=39,ao=40,Go,_l=(Go={},Go[ns]=!0,Go[gs]=!0,Go),rs=function(ee){_l[ee.keyCode]&&ee.preventDefault()},El=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var te=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],ie=ci(te,function(de){return"on"+de in document});return ie||ee}(),Vl=0,Nl=5;function Bo(ee,te){return Math.abs(te.x-ee.x)>=Nl||Math.abs(te.y-ee.y)>=Nl}var Ss={type:"IDLE"};function Is(ee){var te=ee.cancel,ie=ee.completed,de=ee.getPhase,Ce=ee.setPhase;return[{eventName:"mousemove",fn:function(Ie){var He=Ie.button,ft=Ie.clientX,Dt=Ie.clientY;if(He===Vl){var bt={x:ft,y:Dt},mt=de();if(mt.type==="DRAGGING"){Ie.preventDefault(),mt.actions.move(bt);return}mt.type!=="PENDING"&&rn(!1);var gt=mt.point;if(Bo(gt,bt)){Ie.preventDefault();var Mt=mt.actions.fluidLift(bt);Ce({type:"DRAGGING",actions:Mt})}}}},{eventName:"mouseup",fn:function(Ie){var He=de();if(He.type!=="DRAGGING"){te();return}Ie.preventDefault(),He.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ie){de().type==="DRAGGING"&&Ie.preventDefault(),te()}},{eventName:"keydown",fn:function(Ie){var He=de();if(He.type==="PENDING"){te();return}if(Ie.keyCode===Ks){Ie.preventDefault(),te();return}rs(Ie)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){de().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(Ie){var He=de();if(He.type==="IDLE"&&rn(!1),He.actions.shouldRespectForcePress()){te();return}Ie.preventDefault()}},{eventName:El,fn:te}]}function zs(ee){var te=(0,E.useRef)(Ss),ie=(0,E.useRef)(Hr),de=sr(function(){return{eventName:"mousedown",fn:function(mt){if(!mt.defaultPrevented&&mt.button===Vl&&!(mt.ctrlKey||mt.metaKey||mt.shiftKey||mt.altKey)){var gt=ee.findClosestDraggableId(mt);if(gt){var Mt=ee.tryGetLock(gt,Ie,{sourceEvent:mt});if(Mt){mt.preventDefault();var gn={x:mt.clientX,y:mt.clientY};ie.current(),Dt(Mt,gn)}}}}}},[ee]),Ce=sr(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(mt){if(!mt.defaultPrevented){var gt=ee.findClosestDraggableId(mt);if(gt){var Mt=ee.findOptionsForDraggable(gt);Mt&&(Mt.shouldRespectForcePress||ee.canGetLock(gt)&&mt.preventDefault())}}}}},[ee]),we=un(function(){var mt={passive:!1,capture:!0};ie.current=Nr(window,[Ce,de],mt)},[Ce,de]),Ie=un(function(){var bt=te.current;bt.type!=="IDLE"&&(te.current=Ss,ie.current(),we())},[we]),He=un(function(){var bt=te.current;Ie(),bt.type==="DRAGGING"&&bt.actions.cancel({shouldBlockNextClick:!0}),bt.type==="PENDING"&&bt.actions.abort()},[Ie]),ft=un(function(){var mt={capture:!0,passive:!1},gt=Is({cancel:He,completed:Ie,getPhase:function(){return te.current},setPhase:function(gn){te.current=gn}});ie.current=Nr(window,gt,mt)},[He,Ie]),Dt=un(function(mt,gt){te.current.type!=="IDLE"&&rn(!1),te.current={type:"PENDING",point:gt,actions:mt},ft()},[ft]);Hn(function(){return we(),function(){ie.current()}},[we])}var Xl;function Cn(){}var Fr=(Xl={},Xl[qi]=!0,Xl[Vs]=!0,Xl[Ri]=!0,Xl[Si]=!0,Xl);function ii(ee,te){function ie(){te(),ee.cancel()}function de(){te(),ee.drop()}return[{eventName:"keydown",fn:function(we){if(we.keyCode===Ks){we.preventDefault(),ie();return}if(we.keyCode===Ws){we.preventDefault(),de();return}if(we.keyCode===ao){we.preventDefault(),ee.moveDown();return}if(we.keyCode===ll){we.preventDefault(),ee.moveUp();return}if(we.keyCode===ds){we.preventDefault(),ee.moveRight();return}if(we.keyCode===Za){we.preventDefault(),ee.moveLeft();return}if(Fr[we.keyCode]){we.preventDefault();return}rs(we)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:El,fn:ie}]}function Ma(ee){var te=(0,E.useRef)(Cn),ie=sr(function(){return{eventName:"keydown",fn:function(we){if(we.defaultPrevented||we.keyCode!==Ws)return;var Ie=ee.findClosestDraggableId(we);if(!Ie)return;var He=ee.tryGetLock(Ie,bt,{sourceEvent:we});if(!He)return;we.preventDefault();var ft=!0,Dt=He.snapLift();te.current();function bt(){ft||rn(!1),ft=!1,te.current(),de()}te.current=Nr(window,ii(Dt,bt),{capture:!0,passive:!1})}}},[ee]),de=un(function(){var we={passive:!1,capture:!0};te.current=Nr(window,[ie],we)},[ie]);Hn(function(){return de(),function(){te.current()}},[de])}var si={type:"IDLE"},Ro=120,rl=.15;function Yo(ee){var te=ee.cancel,ie=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(Ce){Ce.preventDefault()}},{eventName:"keydown",fn:function(Ce){if(ie().type!=="DRAGGING"){te();return}Ce.keyCode===Ks&&Ce.preventDefault(),te()}},{eventName:El,fn:te}]}function us(ee){var te=ee.cancel,ie=ee.completed,de=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(we){var Ie=de();if(Ie.type!=="DRAGGING"){te();return}Ie.hasMoved=!0;var He=we.touches[0],ft=He.clientX,Dt=He.clientY,bt={x:ft,y:Dt};we.preventDefault(),Ie.actions.move(bt)}},{eventName:"touchend",fn:function(we){var Ie=de();if(Ie.type!=="DRAGGING"){te();return}we.preventDefault(),Ie.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(we){if(de().type!=="DRAGGING"){te();return}we.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(we){var Ie=de();Ie.type==="IDLE"&&rn(!1);var He=we.touches[0];if(He){var ft=He.force>=rl;if(ft){var Dt=Ie.actions.shouldRespectForcePress();if(Ie.type==="PENDING"){Dt&&te();return}if(Dt){if(Ie.hasMoved){we.preventDefault();return}te();return}we.preventDefault()}}}},{eventName:El,fn:te}]}function Wo(ee){var te=(0,E.useRef)(si),ie=(0,E.useRef)(Hr),de=un(function(){return te.current},[]),Ce=un(function(Mt){te.current=Mt},[]),we=sr(function(){return{eventName:"touchstart",fn:function(Mt){if(!Mt.defaultPrevented){var gn=ee.findClosestDraggableId(Mt);if(gn){var kr=ee.tryGetLock(gn,He,{sourceEvent:Mt});if(kr){var Wr=Mt.touches[0],qr=Wr.clientX,Na=Wr.clientY,Ka={x:qr,y:Na};ie.current(),mt(kr,Ka)}}}}}},[ee]),Ie=un(function(){var Mt={capture:!0,passive:!1};ie.current=Nr(window,[we],Mt)},[we]),He=un(function(){var gt=te.current;gt.type!=="IDLE"&&(gt.type==="PENDING"&&clearTimeout(gt.longPressTimerId),Ce(si),ie.current(),Ie())},[Ie,Ce]),ft=un(function(){var gt=te.current;He(),gt.type==="DRAGGING"&>.actions.cancel({shouldBlockNextClick:!0}),gt.type==="PENDING"&>.actions.abort()},[He]),Dt=un(function(){var Mt={capture:!0,passive:!1},gn={cancel:ft,completed:He,getPhase:de},kr=Nr(window,us(gn),Mt),Wr=Nr(window,Yo(gn),Mt);ie.current=function(){kr(),Wr()}},[ft,de,He]),bt=un(function(){var Mt=de();Mt.type!=="PENDING"&&rn(!1);var gn=Mt.actions.fluidLift(Mt.point);Ce({type:"DRAGGING",actions:gn,hasMoved:!1})},[de,Ce]),mt=un(function(Mt,gn){de().type!=="IDLE"&&rn(!1);var kr=setTimeout(bt,Ro);Ce({type:"PENDING",point:gn,actions:Mt,longPressTimerId:kr}),Dt()},[Dt,de,Ce,bt]);Hn(function(){return Ie(),function(){ie.current();var gn=de();gn.type==="PENDING"&&(clearTimeout(gn.longPressTimerId),Ce(si))}},[de,Ie,Ce]),Hn(function(){var Mt=Nr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Mt},[])}function mu(ee){}var Qs={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function tc(ee,te){if(te==null)return!1;var ie=!!Qs[te.tagName.toLowerCase()];if(ie)return!0;var de=te.getAttribute("contenteditable");return de==="true"||de===""?!0:te===ee?!1:tc(ee,te.parentElement)}function Ku(ee,te){var ie=te.target;return xi(ie)?tc(ee,ie):!1}var nc=function(ee){return Da(ee.getBoundingClientRect()).center};function uc(ee){return ee instanceof lr(ee).Element}var rc=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ie=ci(te,function(de){return de in Element.prototype});return ie||ee}();function Mu(ee,te){return ee==null?null:ee[rc](te)?ee:Mu(ee.parentElement,te)}function cc(ee,te){return ee.closest?ee.closest(te):Mu(ee,te)}function Qu(ee){return"["+Mn.contextId+'="'+ee+'"]'}function hr(ee,te){var ie=te.target;if(!uc(ie))return null;var de=Qu(ee),Ce=cc(ie,de);return!Ce||!xi(Ce)?null:Ce}function Sa(ee,te){var ie=hr(ee,te);return ie?ie.getAttribute(Mn.draggableId):null}function Vi(ee,te){var ie="["+Ra.contextId+'="'+ee+'"]',de=Ai(document.querySelectorAll(ie)),Ce=ci(de,function(we){return we.getAttribute(Ra.id)===te});return!Ce||!xi(Ce)?null:Ce}function Zi(ee){ee.preventDefault()}function io(ee){var te=ee.expected,ie=ee.phase,de=ee.isLockActive,Ce=ee.shouldWarn;return!(!de()||te!==ie)}function _o(ee){var te=ee.lockAPI,ie=ee.store,de=ee.registry,Ce=ee.draggableId;if(te.isClaimed())return!1;var we=de.draggable.findById(Ce);return!(!we||!we.options.isEnabled||!wa(ie.getState(),Ce))}function Zo(ee){var te=ee.lockAPI,ie=ee.contextId,de=ee.store,Ce=ee.registry,we=ee.draggableId,Ie=ee.forceSensorStop,He=ee.sourceEvent,ft=_o({lockAPI:te,store:de,registry:Ce,draggableId:we});if(!ft)return null;var Dt=Ce.draggable.getById(we),bt=Vi(ie,Dt.descriptor.id);if(!bt||He&&!Dt.options.canDragInteractiveElements&&Ku(bt,He))return null;var mt=te.claim(Ie||Hr),gt="PRE_DRAG";function Mt(){return Dt.options.shouldRespectForcePress}function gn(){return te.isActive(mt)}function kr(fo,Ho){io({expected:fo,phase:gt,isLockActive:gn,shouldWarn:!0})&&de.dispatch(Ho())}var Wr=kr.bind(null,"DRAGGING");function qr(fo){function Ho(){te.release(),gt="COMPLETED"}gt!=="PRE_DRAG"&&(Ho(),gt!=="PRE_DRAG"&&rn(!1)),de.dispatch(cu(fo.liftActionArgs)),gt="DRAGGING";function zl(Ko,Ul){if(Ul===void 0&&(Ul={shouldBlockNextClick:!1}),fo.cleanup(),Ul.shouldBlockNextClick){var fs=Nr(window,[{eventName:"click",fn:Zi,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(fs)}Ho(),de.dispatch(Me({reason:Ko}))}return(0,xe.Z)({isActive:function(){return io({expected:"DRAGGING",phase:gt,isLockActive:gn,shouldWarn:!1})},shouldRespectForcePress:Mt,drop:function(Ul){return zl("DROP",Ul)},cancel:function(Ul){return zl("CANCEL",Ul)}},fo.actions)}function Na(fo){var Ho=Un(function(Ko){Wr(function(){return ec({client:Ko})})}),zl=qr({liftActionArgs:{id:we,clientSelection:fo,movementMode:"FLUID"},cleanup:function(){return Ho.cancel()},actions:{move:Ho}});return(0,xe.Z)({},zl,{move:Ho})}function Ka(){var fo={moveUp:function(){return Wr(Au)},moveRight:function(){return Wr(eu)},moveDown:function(){return Wr(Hs)},moveLeft:function(){return Wr(xl)}};return qr({liftActionArgs:{id:we,clientSelection:nc(bt),movementMode:"SNAP"},cleanup:Hr,actions:fo})}function ei(){var fo=io({expected:"PRE_DRAG",phase:gt,isLockActive:gn,shouldWarn:!0});fo&&te.release()}var go={isActive:function(){return io({expected:"PRE_DRAG",phase:gt,isLockActive:gn,shouldWarn:!1})},shouldRespectForcePress:Mt,fluidLift:Na,snapLift:Ka,abort:ei};return go}var Vo=[zs,Ma,Wo];function Ql(ee){var te=ee.contextId,ie=ee.store,de=ee.registry,Ce=ee.customSensors,we=ee.enableDefaultSensors,Ie=[].concat(we?Vo:[],Ce||[]),He=(0,E.useState)(function(){return cl()})[0],ft=un(function(Na,Ka){Na.isDragging&&!Ka.isDragging&&He.tryAbandon()},[He]);Hn(function(){var Na=ie.getState(),Ka=ie.subscribe(function(){var ei=ie.getState();ft(Na,ei),Na=ei});return Ka},[He,ie,ft]),Hn(function(){return He.tryAbandon},[He.tryAbandon]);var Dt=un(function(qr){return _o({lockAPI:He,registry:de,store:ie,draggableId:qr})},[He,de,ie]),bt=un(function(qr,Na,Ka){return Zo({lockAPI:He,registry:de,contextId:te,store:ie,draggableId:qr,forceSensorStop:Na,sourceEvent:Ka&&Ka.sourceEvent?Ka.sourceEvent:null})},[te,He,de,ie]),mt=un(function(qr){return Sa(te,qr)},[te]),gt=un(function(qr){var Na=de.draggable.findById(qr);return Na?Na.options:null},[de.draggable]),Mt=un(function(){He.isClaimed()&&(He.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(hu()))},[He,ie]),gn=un(He.isClaimed,[He]),kr=sr(function(){return{canGetLock:Dt,tryGetLock:bt,findClosestDraggableId:mt,findOptionsForDraggable:gt,tryReleaseLock:Mt,isLockClaimed:gn}},[Dt,bt,mt,gt,Mt,gn]);mu(Ie);for(var Wr=0;Wr=xe.length?{done:!0}:{done:!1,value:xe[Ae++]}},e:function(qe){throw qe},f:Ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tt,Se=!0,Re=!1;return{s:function(){We=We.call(xe)},n:function(){var qe=We.next();return Se=qe.done,qe},e:function(qe){Re=!0,tt=qe},f:function(){try{Se||We.return==null||We.return()}finally{if(Re)throw tt}}}}},69168:function(_t,Pt,ne){"use strict";ne.d(Pt,{Z:function(){return ve}});var E=ne(18773);function ve(xe,Je){xe.prototype=Object.create(Je.prototype),xe.prototype.constructor=xe,(0,E.Z)(xe,Je)}}}]); +`,Dl=function(ee){var te=ee.doctype;te&&(te.name.toLowerCase(),te.publicId)};function Ys(ee){}function Pi(ee,te){}function Fa(){Pi(function(){To(bo.react,E.version),Dl(document)},[])}function ul(ee){var te=(0,E.useRef)(ee);return(0,E.useEffect)(function(){te.current=ee}),te}function cl(){var ee=null;function te(){return!!ee}function ie(Ie){return Ie===ee}function de(Ie){ee&&rn(!1);var je={abandon:Ie};return ee=je,je}function Ce(){ee||rn(!1),ee=null}function we(){ee&&(ee.abandon(),Ce())}return{isClaimed:te,isActive:ie,claim:de,release:Ce,tryAbandon:we}}var gs=9,ns=13,Ks=27,Ws=32,Vs=33,qi=34,Si=35,Ri=36,Za=37,ll=38,ds=39,ao=40,Go,_l=(Go={},Go[ns]=!0,Go[gs]=!0,Go),rs=function(ee){_l[ee.keyCode]&&ee.preventDefault()},El=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var te=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],ie=ci(te,function(de){return"on"+de in document});return ie||ee}(),Vl=0,Nl=5;function Bo(ee,te){return Math.abs(te.x-ee.x)>=Nl||Math.abs(te.y-ee.y)>=Nl}var Ss={type:"IDLE"};function Is(ee){var te=ee.cancel,ie=ee.completed,de=ee.getPhase,Ce=ee.setPhase;return[{eventName:"mousemove",fn:function(Ie){var je=Ie.button,dt=Ie.clientX,Dt=Ie.clientY;if(je===Vl){var Ct={x:dt,y:Dt},mt=de();if(mt.type==="DRAGGING"){Ie.preventDefault(),mt.actions.move(Ct);return}mt.type!=="PENDING"&&rn(!1);var gt=mt.point;if(Bo(gt,Ct)){Ie.preventDefault();var Mt=mt.actions.fluidLift(Ct);Ce({type:"DRAGGING",actions:Mt})}}}},{eventName:"mouseup",fn:function(Ie){var je=de();if(je.type!=="DRAGGING"){te();return}Ie.preventDefault(),je.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Ie){de().type==="DRAGGING"&&Ie.preventDefault(),te()}},{eventName:"keydown",fn:function(Ie){var je=de();if(je.type==="PENDING"){te();return}if(Ie.keyCode===Ks){Ie.preventDefault(),te();return}rs(Ie)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){de().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(Ie){var je=de();if(je.type==="IDLE"&&rn(!1),je.actions.shouldRespectForcePress()){te();return}Ie.preventDefault()}},{eventName:El,fn:te}]}function zs(ee){var te=(0,E.useRef)(Ss),ie=(0,E.useRef)(Hr),de=sr(function(){return{eventName:"mousedown",fn:function(mt){if(!mt.defaultPrevented&&mt.button===Vl&&!(mt.ctrlKey||mt.metaKey||mt.shiftKey||mt.altKey)){var gt=ee.findClosestDraggableId(mt);if(gt){var Mt=ee.tryGetLock(gt,Ie,{sourceEvent:mt});if(Mt){mt.preventDefault();var gn={x:mt.clientX,y:mt.clientY};ie.current(),Dt(Mt,gn)}}}}}},[ee]),Ce=sr(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(mt){if(!mt.defaultPrevented){var gt=ee.findClosestDraggableId(mt);if(gt){var Mt=ee.findOptionsForDraggable(gt);Mt&&(Mt.shouldRespectForcePress||ee.canGetLock(gt)&&mt.preventDefault())}}}}},[ee]),we=un(function(){var mt={passive:!1,capture:!0};ie.current=Nr(window,[Ce,de],mt)},[Ce,de]),Ie=un(function(){var Ct=te.current;Ct.type!=="IDLE"&&(te.current=Ss,ie.current(),we())},[we]),je=un(function(){var Ct=te.current;Ie(),Ct.type==="DRAGGING"&&Ct.actions.cancel({shouldBlockNextClick:!0}),Ct.type==="PENDING"&&Ct.actions.abort()},[Ie]),dt=un(function(){var mt={capture:!0,passive:!1},gt=Is({cancel:je,completed:Ie,getPhase:function(){return te.current},setPhase:function(gn){te.current=gn}});ie.current=Nr(window,gt,mt)},[je,Ie]),Dt=un(function(mt,gt){te.current.type!=="IDLE"&&rn(!1),te.current={type:"PENDING",point:gt,actions:mt},dt()},[dt]);Hn(function(){return we(),function(){ie.current()}},[we])}var Xl;function Cn(){}var Fr=(Xl={},Xl[qi]=!0,Xl[Vs]=!0,Xl[Ri]=!0,Xl[Si]=!0,Xl);function ii(ee,te){function ie(){te(),ee.cancel()}function de(){te(),ee.drop()}return[{eventName:"keydown",fn:function(we){if(we.keyCode===Ks){we.preventDefault(),ie();return}if(we.keyCode===Ws){we.preventDefault(),de();return}if(we.keyCode===ao){we.preventDefault(),ee.moveDown();return}if(we.keyCode===ll){we.preventDefault(),ee.moveUp();return}if(we.keyCode===ds){we.preventDefault(),ee.moveRight();return}if(we.keyCode===Za){we.preventDefault(),ee.moveLeft();return}if(Fr[we.keyCode]){we.preventDefault();return}rs(we)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:El,fn:ie}]}function Ma(ee){var te=(0,E.useRef)(Cn),ie=sr(function(){return{eventName:"keydown",fn:function(we){if(we.defaultPrevented||we.keyCode!==Ws)return;var Ie=ee.findClosestDraggableId(we);if(!Ie)return;var je=ee.tryGetLock(Ie,Ct,{sourceEvent:we});if(!je)return;we.preventDefault();var dt=!0,Dt=je.snapLift();te.current();function Ct(){dt||rn(!1),dt=!1,te.current(),de()}te.current=Nr(window,ii(Dt,Ct),{capture:!0,passive:!1})}}},[ee]),de=un(function(){var we={passive:!1,capture:!0};te.current=Nr(window,[ie],we)},[ie]);Hn(function(){return de(),function(){te.current()}},[de])}var si={type:"IDLE"},Ro=120,rl=.15;function Yo(ee){var te=ee.cancel,ie=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(Ce){Ce.preventDefault()}},{eventName:"keydown",fn:function(Ce){if(ie().type!=="DRAGGING"){te();return}Ce.keyCode===Ks&&Ce.preventDefault(),te()}},{eventName:El,fn:te}]}function us(ee){var te=ee.cancel,ie=ee.completed,de=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(we){var Ie=de();if(Ie.type!=="DRAGGING"){te();return}Ie.hasMoved=!0;var je=we.touches[0],dt=je.clientX,Dt=je.clientY,Ct={x:dt,y:Dt};we.preventDefault(),Ie.actions.move(Ct)}},{eventName:"touchend",fn:function(we){var Ie=de();if(Ie.type!=="DRAGGING"){te();return}we.preventDefault(),Ie.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(we){if(de().type!=="DRAGGING"){te();return}we.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(we){var Ie=de();Ie.type==="IDLE"&&rn(!1);var je=we.touches[0];if(je){var dt=je.force>=rl;if(dt){var Dt=Ie.actions.shouldRespectForcePress();if(Ie.type==="PENDING"){Dt&&te();return}if(Dt){if(Ie.hasMoved){we.preventDefault();return}te();return}we.preventDefault()}}}},{eventName:El,fn:te}]}function Wo(ee){var te=(0,E.useRef)(si),ie=(0,E.useRef)(Hr),de=un(function(){return te.current},[]),Ce=un(function(Mt){te.current=Mt},[]),we=sr(function(){return{eventName:"touchstart",fn:function(Mt){if(!Mt.defaultPrevented){var gn=ee.findClosestDraggableId(Mt);if(gn){var kr=ee.tryGetLock(gn,je,{sourceEvent:Mt});if(kr){var Wr=Mt.touches[0],qr=Wr.clientX,Na=Wr.clientY,Ka={x:qr,y:Na};ie.current(),mt(kr,Ka)}}}}}},[ee]),Ie=un(function(){var Mt={capture:!0,passive:!1};ie.current=Nr(window,[we],Mt)},[we]),je=un(function(){var gt=te.current;gt.type!=="IDLE"&&(gt.type==="PENDING"&&clearTimeout(gt.longPressTimerId),Ce(si),ie.current(),Ie())},[Ie,Ce]),dt=un(function(){var gt=te.current;je(),gt.type==="DRAGGING"&>.actions.cancel({shouldBlockNextClick:!0}),gt.type==="PENDING"&>.actions.abort()},[je]),Dt=un(function(){var Mt={capture:!0,passive:!1},gn={cancel:dt,completed:je,getPhase:de},kr=Nr(window,us(gn),Mt),Wr=Nr(window,Yo(gn),Mt);ie.current=function(){kr(),Wr()}},[dt,de,je]),Ct=un(function(){var Mt=de();Mt.type!=="PENDING"&&rn(!1);var gn=Mt.actions.fluidLift(Mt.point);Ce({type:"DRAGGING",actions:gn,hasMoved:!1})},[de,Ce]),mt=un(function(Mt,gn){de().type!=="IDLE"&&rn(!1);var kr=setTimeout(Ct,Ro);Ce({type:"PENDING",point:gn,actions:Mt,longPressTimerId:kr}),Dt()},[Dt,de,Ce,Ct]);Hn(function(){return Ie(),function(){ie.current();var gn=de();gn.type==="PENDING"&&(clearTimeout(gn.longPressTimerId),Ce(si))}},[de,Ie,Ce]),Hn(function(){var Mt=Nr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Mt},[])}function mu(ee){}var Qs={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function tc(ee,te){if(te==null)return!1;var ie=!!Qs[te.tagName.toLowerCase()];if(ie)return!0;var de=te.getAttribute("contenteditable");return de==="true"||de===""?!0:te===ee?!1:tc(ee,te.parentElement)}function Ku(ee,te){var ie=te.target;return xi(ie)?tc(ee,ie):!1}var nc=function(ee){return Da(ee.getBoundingClientRect()).center};function uc(ee){return ee instanceof lr(ee).Element}var rc=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ie=ci(te,function(de){return de in Element.prototype});return ie||ee}();function Mu(ee,te){return ee==null?null:ee[rc](te)?ee:Mu(ee.parentElement,te)}function cc(ee,te){return ee.closest?ee.closest(te):Mu(ee,te)}function Qu(ee){return"["+Mn.contextId+'="'+ee+'"]'}function hr(ee,te){var ie=te.target;if(!uc(ie))return null;var de=Qu(ee),Ce=cc(ie,de);return!Ce||!xi(Ce)?null:Ce}function Sa(ee,te){var ie=hr(ee,te);return ie?ie.getAttribute(Mn.draggableId):null}function Vi(ee,te){var ie="["+Ra.contextId+'="'+ee+'"]',de=Ai(document.querySelectorAll(ie)),Ce=ci(de,function(we){return we.getAttribute(Ra.id)===te});return!Ce||!xi(Ce)?null:Ce}function Zi(ee){ee.preventDefault()}function io(ee){var te=ee.expected,ie=ee.phase,de=ee.isLockActive,Ce=ee.shouldWarn;return!(!de()||te!==ie)}function _o(ee){var te=ee.lockAPI,ie=ee.store,de=ee.registry,Ce=ee.draggableId;if(te.isClaimed())return!1;var we=de.draggable.findById(Ce);return!(!we||!we.options.isEnabled||!wa(ie.getState(),Ce))}function Zo(ee){var te=ee.lockAPI,ie=ee.contextId,de=ee.store,Ce=ee.registry,we=ee.draggableId,Ie=ee.forceSensorStop,je=ee.sourceEvent,dt=_o({lockAPI:te,store:de,registry:Ce,draggableId:we});if(!dt)return null;var Dt=Ce.draggable.getById(we),Ct=Vi(ie,Dt.descriptor.id);if(!Ct||je&&!Dt.options.canDragInteractiveElements&&Ku(Ct,je))return null;var mt=te.claim(Ie||Hr),gt="PRE_DRAG";function Mt(){return Dt.options.shouldRespectForcePress}function gn(){return te.isActive(mt)}function kr(fo,Ho){io({expected:fo,phase:gt,isLockActive:gn,shouldWarn:!0})&&de.dispatch(Ho())}var Wr=kr.bind(null,"DRAGGING");function qr(fo){function Ho(){te.release(),gt="COMPLETED"}gt!=="PRE_DRAG"&&(Ho(),gt!=="PRE_DRAG"&&rn(!1)),de.dispatch(cu(fo.liftActionArgs)),gt="DRAGGING";function zl(Ko,Ul){if(Ul===void 0&&(Ul={shouldBlockNextClick:!1}),fo.cleanup(),Ul.shouldBlockNextClick){var fs=Nr(window,[{eventName:"click",fn:Zi,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(fs)}Ho(),de.dispatch(Me({reason:Ko}))}return(0,xe.Z)({isActive:function(){return io({expected:"DRAGGING",phase:gt,isLockActive:gn,shouldWarn:!1})},shouldRespectForcePress:Mt,drop:function(Ul){return zl("DROP",Ul)},cancel:function(Ul){return zl("CANCEL",Ul)}},fo.actions)}function Na(fo){var Ho=Un(function(Ko){Wr(function(){return ec({client:Ko})})}),zl=qr({liftActionArgs:{id:we,clientSelection:fo,movementMode:"FLUID"},cleanup:function(){return Ho.cancel()},actions:{move:Ho}});return(0,xe.Z)({},zl,{move:Ho})}function Ka(){var fo={moveUp:function(){return Wr(Au)},moveRight:function(){return Wr(eu)},moveDown:function(){return Wr(Hs)},moveLeft:function(){return Wr(xl)}};return qr({liftActionArgs:{id:we,clientSelection:nc(Ct),movementMode:"SNAP"},cleanup:Hr,actions:fo})}function ei(){var fo=io({expected:"PRE_DRAG",phase:gt,isLockActive:gn,shouldWarn:!0});fo&&te.release()}var go={isActive:function(){return io({expected:"PRE_DRAG",phase:gt,isLockActive:gn,shouldWarn:!1})},shouldRespectForcePress:Mt,fluidLift:Na,snapLift:Ka,abort:ei};return go}var Vo=[zs,Ma,Wo];function Ql(ee){var te=ee.contextId,ie=ee.store,de=ee.registry,Ce=ee.customSensors,we=ee.enableDefaultSensors,Ie=[].concat(we?Vo:[],Ce||[]),je=(0,E.useState)(function(){return cl()})[0],dt=un(function(Na,Ka){Na.isDragging&&!Ka.isDragging&&je.tryAbandon()},[je]);Hn(function(){var Na=ie.getState(),Ka=ie.subscribe(function(){var ei=ie.getState();dt(Na,ei),Na=ei});return Ka},[je,ie,dt]),Hn(function(){return je.tryAbandon},[je.tryAbandon]);var Dt=un(function(qr){return _o({lockAPI:je,registry:de,store:ie,draggableId:qr})},[je,de,ie]),Ct=un(function(qr,Na,Ka){return Zo({lockAPI:je,registry:de,contextId:te,store:ie,draggableId:qr,forceSensorStop:Na,sourceEvent:Ka&&Ka.sourceEvent?Ka.sourceEvent:null})},[te,je,de,ie]),mt=un(function(qr){return Sa(te,qr)},[te]),gt=un(function(qr){var Na=de.draggable.findById(qr);return Na?Na.options:null},[de.draggable]),Mt=un(function(){je.isClaimed()&&(je.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(hu()))},[je,ie]),gn=un(je.isClaimed,[je]),kr=sr(function(){return{canGetLock:Dt,tryGetLock:Ct,findClosestDraggableId:mt,findOptionsForDraggable:gt,tryReleaseLock:Mt,isLockClaimed:gn}},[Dt,Ct,mt,gt,Mt,gn]);mu(Ie);for(var Wr=0;Wr=xe.length?{done:!0}:{done:!1,value:xe[Ae++]}},e:function(qe){throw qe},f:Ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var tt,Se=!0,He=!1;return{s:function(){We=We.call(xe)},n:function(){var qe=We.next();return Se=qe.done,qe},e:function(qe){He=!0,tt=qe},f:function(){try{Se||We.return==null||We.return()}finally{if(He)throw tt}}}}},69168:function(Bt,_t,ne){"use strict";ne.d(_t,{Z:function(){return ve}});var E=ne(18773);function ve(xe,Je){xe.prototype=Object.create(Je.prototype),xe.prototype.constructor=xe,(0,E.Z)(xe,Je)}}}]); diff --git a/p__Classrooms__Lists__ShixunHomeworks__index.2e17e528.async.js b/p__Classrooms__Lists__ShixunHomeworks__index.2e17e528.async.js new file mode 100644 index 0000000000..bc46f81f52 --- /dev/null +++ b/p__Classrooms__Lists__ShixunHomeworks__index.2e17e528.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7852],{31468:function(Je,Be){Be.Z={flex_box_center:"flex_box_center___vhwFp",flex_space_between:"flex_space_between___rbHwE",flex_box_vertical_center:"flex_box_vertical_center___AF_yr",flex_box_center_end:"flex_box_center_end___FqGSd",flex_box_column:"flex_box_column___ujWr7",failedList:"failedList___KGsCg",name:"name___bbsWC",publish:"publish___mai8J",modal:"modal___t6wU6"}},96546:function(Je,Be,l){l.d(Be,{Z:function(){return v}});var e=l(28284),H=l(37568),j=l(7939),g=l(59301),I={search:"search___JA0r9",btn:"btn___GGtZC"},X=l(59301),v=({value:pe,onChange:G})=>{const[W]=e.default.useForm(),D=(0,g.useRef)(!1);(0,g.useEffect)(()=>{pe&&W.setFieldsValue(pe)},pe);const z=P=>{D.current||G(P),D.current=!0,setTimeout(()=>{D.current=!1},2e3)};return X.createElement("div",{className:I.search},X.createElement(e.default,{className:I.formWrap,colon:!1,form:W,size:"large",layout:"inline",onFinish:P=>{D.current||z(P)}},X.createElement(e.default.Item,{label:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",name:"keyword",initialValue:""},X.createElement(H.default,{style:{width:280,height:40}})),X.createElement(e.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"schools",initialValue:"",style:{margin:"0 40px"}},X.createElement(H.default,{style:{width:280,height:40}})),X.createElement(e.default.Item,{label:"\u521B\u5EFA\u8005/\u5408\u4F5C\u8005",name:"creator",initialValue:""},X.createElement(H.default,{style:{width:200,height:40}})),X.createElement(j.ZP,{className:I.btn,type:"primary",htmlType:"submit"},"\u641C\u7D22")))}},85421:function(Je,Be,l){l.d(Be,{Z:function(){return X}});var e=l(37639),H={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},j=l(32637),g=l(59301),X=({type:T,style:v})=>{const pe=g.createElement("div",{className:H.wrap,onClick:G=>{G.preventDefault(),G.stopPropagation()}},g.createElement("p",null,T==="shixun"||T==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",g.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",T==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),g.createElement("div",{className:H.contact},g.createElement("div",{className:H.img},g.createElement("img",{src:j,width:"124px",height:"124px"})),g.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return g.createElement(e.Z,{content:pe},g.createElement("span",{className:H.text,style:v},"\u9AD8\u6D88\u8017"))}},97612:function(Je,Be,l){l.d(Be,{Z:function(){return Ae},P:function(){return Ie}});var e=l(59301),H=l(28284),j=l(62957),g=l(47889),I=l(37568),X=l(70858),T={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},v=l(22796),pe=Object.defineProperty,G=Object.defineProperties,W=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,A=(K,U,B)=>U in K?pe(K,U,{enumerable:!0,configurable:!0,writable:!0,value:B}):K[U]=B,E=(K,U)=>{for(var B in U||(U={}))z.call(U,B)&&A(K,B,U[B]);if(D)for(var B of D(U))P.call(U,B)&&A(K,B,U[B]);return K},ee=(K,U)=>G(K,W(U)),o=(K,U)=>{var B={};for(var le in K)z.call(K,le)&&U.indexOf(le)<0&&(B[le]=K[le]);if(K!=null&&D)for(var le of D(K))U.indexOf(le)<0&&P.call(K,le)&&(B[le]=K[le]);return B},L=(K,U,B)=>new Promise((le,te)=>{var he=y=>{try{f(B.next(y))}catch(Y){te(Y)}},De=y=>{try{f(B.throw(y))}catch(Y){te(Y)}},f=y=>y.done?le(y.value):Promise.resolve(y.value).then(he,De);f((B=B.apply(K,U)).next())});const C=({studentNames:K,total:U})=>{const B=["","\u4E00","\u4E24","\u4E09"];return U>3?e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:T.orangeColor},K==null?void 0:K.join("\u3001")),"\u7B49",e.createElement("span",{className:T.orangeColor},U),"\u540D\u5B66\u751F"):e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:T.orangeColor},K==null?void 0:K.join("\u3001")),B[U],"\u540D\u5B66\u751F")},oe=({used:K,copy:U,canNotCopy:B,studentNames:le,studentCount:te,inPaper:he,is_random:De=!1,position:f=""})=>{const y=()=>{if(U>0&&B>0)return e.createElement(e.Fragment,null,"\u5176\u4E2D",e.createElement("span",{className:T.orangeColor},U),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",e.createElement("span",{className:T.orangeColor},B),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(U>0&&B===0)return e.createElement(e.Fragment,null,"\u5176\u4E2D",e.createElement("span",{className:T.orangeColor},U),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(U===0&&B>0)return e.createElement(e.Fragment,null,"\u5176\u4E2D",e.createElement("span",{className:T.orangeColor},B),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Y=f||(he?"\u8BD5\u5377":"\u8BFE\u7A0B");return e.createElement("span",null,e.createElement(C,{studentNames:le,total:te}),"\u5B66\u4E60\u8FC7",Y,"\u4E2D\u7684",e.createElement("span",{className:T.orangeColor},K),"\u4E2A\u9879\u76EE\uFF0C",y(),"\u3002\u8BF7\u9009\u62E9",De?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},Z=({onCancel:K,onOk:U,visible:B,inPaper:le,renderData:te,type:he,isMultipleCourse:De=!1})=>{const[f]=H.default.useForm(),[y,Y]=(0,e.useState)(1),[ke,ae]=(0,e.useState)(!1),ge=(0,e.useMemo)(()=>(te==null?void 0:te.total_num)===1&&(te==null?void 0:te.can_copy_num)===1,[te]),Fe=(0,e.useMemo)(()=>{var re;return(re=te==null?void 0:te.course_data_list)==null?void 0:re.filter(M=>M.is_show)},[te]);return e.createElement(e.Fragment,null,ge?e.createElement(j.default,{centered:!0,closable:!0,open:B,destroyOnClose:!0,title:"\u63D0\u793A",className:T.antdModal,width:682,confirmLoading:ke,onCancel:K,onOk:()=>L(void 0,null,function*(){var re;ae(!0);let M=y;if(De){const N=E({},f.getFieldsValue());M=(re=te==null?void 0:te.course_data_list)==null?void 0:re.map(Se=>N[Se.id]!==void 0?ee(E({},Se),{is_copy:N[Se.id]}):Se)}yield U(M),ae(!1)})},e.createElement("div",{className:T.content,style:{marginBottom:20}},De?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":e.createElement(e.Fragment,null,e.createElement(C,{studentNames:te==null?void 0:te.student_names,total:te==null?void 0:te.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),De?e.createElement(H.default,{form:f,preserve:!1},Fe==null?void 0:Fe.map(re=>e.createElement(e.Fragment,{key:re.id},e.createElement("h3",{className:"ml15 mb5"},re.name),e.createElement(H.default.Item,{name:re.id,initialValue:1},e.createElement(g.ZP.Group,{className:T.content},e.createElement(g.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),e.createElement(g.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):e.createElement(g.ZP.Group,{value:y,onChange:re=>Y(re.target.value),className:T.content,style:{marginBottom:30}},e.createElement(g.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),e.createElement(g.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),e.createElement("div",null,e.createElement("div",{className:T.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),e.createElement("div",{className:T.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),e.createElement("div",{className:`${T.content} ${T.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):e.createElement(j.default,{centered:!0,closable:!0,destroyOnClose:!0,open:B,confirmLoading:ke,title:"\u63D0\u793A",width:682,onCancel:K,onOk:()=>L(void 0,null,function*(){var re;ae(!0);let M=0;if(De){const N=E({},f.getFieldsValue());M=(re=te==null?void 0:te.course_data_list)==null?void 0:re.map(Se=>N[Se.id]!==void 0?ee(E({},Se),{is_use:N[Se.id]}):Se)}yield U(M),ae(!1)})},e.createElement("div",{className:T.content},e.createElement(C,{studentNames:te==null?void 0:te.student_names,total:te==null?void 0:te.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",De?e.createElement(H.default,{form:f,preserve:!1},e.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),Fe==null?void 0:Fe.map(re=>e.createElement(e.Fragment,{key:re.id},e.createElement("h3",{className:"ml15 mb5"},re.name),e.createElement(H.default.Item,{name:re.id,initialValue:1},e.createElement(g.ZP.Group,{className:T.content},e.createElement(g.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),e.createElement(g.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):e.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",e.createElement("span",{className:T.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},Ie=function(){const[K,U]=(0,e.useState)(!1),[B,le]=(0,e.useState)();return[K,()=>U(!1),B,De=>L(this,null,function*(){var f;const y=De,{isImportMultipleCourse:Y=!1}=y,ke=o(y,["isImportMultipleCourse"]);console.log(De);const ae=(De==null?void 0:De.result)||(yield(0,v.Tr)(ke));return"status"in ae?!1:Y?((f=ae==null?void 0:ae.course_data_list)==null?void 0:f.some(Fe=>Fe.is_show))?(le(ae),U(!0),!0):ae.course_data_list||[]:ae.student_count===0?!1:(le(ae),U(!0),!0)})]},We=K=>{const[U]=H.default.useForm(),[B,le]=(0,e.useState)(!1),{onCancel:te,onOk:he,visible:De,inPaper:f=!1,renderData:y,type:Y,isMultipleCourse:ke=!1,position:ae}=K;let ge=(0,e.useMemo)(()=>f?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:T.tableCell,render(M,N){return e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},M)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(M,N)=>e.createElement(e.Fragment,null,e.createElement(H.default.Item,{name:[`${Y==="subject"?N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],initialValue:1},e.createElement(g.ZP.Group,null,e.createElement(g.ZP,{value:1},"\u662F"),e.createElement(g.ZP,{value:0},"\u5426"))),e.createElement(H.default.Item,{name:[`${Y==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],hidden:!0,initialValue:1},e.createElement(I.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:T.tableCell,render(M,N){return e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},M)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(M,N)=>e.createElement(H.default.Item,{name:[`${Y==="subject"?N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],initialValue:1},e.createElement(g.ZP.Group,null,e.createElement(g.ZP,{value:1},"\u662F"),e.createElement(g.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(M,N)=>e.createElement(H.default.Item,{name:[`${Y==="subject"?N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],initialValue:1},e.createElement(g.ZP.Group,null,e.createElement(g.ZP,{value:1},"\u662F"),e.createElement(g.ZP,{value:0},"\u5426")))}],[f]),Fe=(0,e.useMemo)(()=>f?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:T.tableCell,align:"center",ellipsis:!0,render:(M,N)=>e.createElement(e.Fragment,null,e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},M),e.createElement(H.default.Item,{name:[`${Y==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],hidden:!0,initialValue:0},e.createElement(I.default,{type:"hidden"})),e.createElement(H.default.Item,{name:[`${Y==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],hidden:!0,initialValue:1},e.createElement(I.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:T.tableCell,ellipsis:!0,align:"center",render:(M,N)=>e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},M)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(M,N)=>e.createElement(e.Fragment,null,e.createElement(H.default.Item,{name:[`${Y==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],initialValue:0},e.createElement(g.ZP.Group,null,e.createElement(g.ZP,{value:1},"\u662F"),e.createElement(g.ZP,{value:0},"\u5426"))),e.createElement(H.default.Item,{name:[`${Y==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],hidden:!0,initialValue:0},e.createElement(I.default,{type:"hidden"})))}],[f]);if(ke){const M={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:T.tableCell,render:(N,Se)=>e.createElement("a",{href:`/classrooms/${Se.course_id}`},N)};ge=[M,...ge],Fe=[M,...Fe]}const re=(0,e.useMemo)(()=>oe({used:y==null?void 0:y.repeat_shixun_num,copy:y==null?void 0:y.can_copy_num,canNotCopy:y==null?void 0:y.no_copy_num,studentNames:y==null?void 0:y.student_names,studentCount:y==null?void 0:y.student_count,is_random:y==null?void 0:y.is_random,inPaper:f,position:ae}),[y,f,ae]);return e.createElement(j.default,{title:"\u63D0\u793A",centered:!0,open:De,confirmLoading:B,onOk:()=>L(void 0,null,function*(){le(!0);const M=U.getFieldsValue(),N=Object.keys(M).map(Se=>({id:parseInt(Se.split("_")[0]),course_id:parseInt(Se.split("_")[1]),is_use:M[Se].is_use,is_copy:M[Se].is_copy}));yield he(N),le(!1)}),onCancel:te,width:880,okText:"\u786E\u8BA4",className:T.antdModal,destroyOnClose:!0},e.createElement(H.default,{form:U,preserve:!1},e.createElement("div",{className:T.brief},re),e.createElement("div",{style:{marginBottom:30}},e.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),e.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),e.createElement("div",{className:T.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(y==null?void 0:y.can_copy_num)>0&&e.createElement("div",null,e.createElement("div",{className:T.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),e.createElement(X.default,{columns:ge,className:T.antdTable,dataSource:y==null?void 0:y.can_copy_list,rowKey:Y==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(y==null?void 0:y.no_copy_num)>0&&e.createElement("div",null,e.createElement("div",{className:T.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),e.createElement(X.default,{columns:Fe,className:T.antdTable,dataSource:y==null?void 0:y.no_copy_list,rowKey:Y==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(y==null?void 0:y.no_use_list.length)>0&&(y==null?void 0:y.no_use_list.map(M=>e.createElement("div",{key:Y==="subject"?M.stage_shixun_id:M.shixun_course_id||M.id},e.createElement(H.default.Item,{name:[`${Y==="subject"?M==null?void 0:M.stage_shixun_id:M.shixun_course_id||M.id}`,"is_copy"],hidden:!0,initialValue:0},e.createElement(I.default,{type:"hidden"})),e.createElement(H.default.Item,{name:[`${Y==="subject"?M==null?void 0:M.stage_shixun_id:M.shixun_course_id||M.id}`,"is_use"],hidden:!0,initialValue:1},e.createElement(I.default,{type:"hidden"})))))))};var Ae=K=>{const{modalType:U}=K;return U==="multiple"?e.createElement(We,E({},K)):e.createElement(Z,E({},K))}},13509:function(Je,Be,l){var e=l(59301),H=l(88634),j=l(62957),g=l(9019),I=l(59301),X=(v,pe,G)=>new Promise((W,D)=>{var z=E=>{try{A(G.next(E))}catch(ee){D(ee)}},P=E=>{try{A(G.throw(E))}catch(ee){D(ee)}},A=E=>E.done?W(E.value):Promise.resolve(E.value).then(z,P);A((G=G.apply(v,pe)).next())});const T=({classroomList:v,dispatch:pe})=>{var G,W;const D=(0,e.useRef)(null),[z,P]=(0,e.useState)(!1),A=()=>{pe({type:"classroomList/setActionTabs",payload:{}})};return I.createElement(j.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((G=v==null?void 0:v.actionTabs)==null?void 0:G.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:A,onOk:()=>X(void 0,null,function*(){var E,ee;(E=D.current)!=null&&E.onVerify()||(P(!0),yield(ee=v==null?void 0:v.actionTabs)==null?void 0:ee.onOK(),P(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(W=v==null?void 0:v.actionTabs)==null?void 0:W.loading},I.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),I.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),I.createElement(g.Z,{ref:E=>D.current=E}))};Be.Z=(0,H.connect)(({classroomList:v})=>({classroomList:v}))(T)},37428:function(Je,Be,l){l.d(Be,{Z:function(){return o}});var e=l(59301),H=l(88634),j=l(62957),g=l(89787),I=l(7939),X={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},T=l(70892),v=l(66649),pe=l.n(v),G=l(89392),W=l(59301),D=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,A=(L,C)=>{var oe={};for(var Z in L)z.call(L,Z)&&C.indexOf(Z)<0&&(oe[Z]=L[Z]);if(L!=null&&D)for(var Z of D(L))C.indexOf(Z)<0&&P.call(L,Z)&&(oe[Z]=L[Z]);return oe},E=(L,C,oe)=>new Promise((Z,Ie)=>{var We=K=>{try{Ae(oe.next(K))}catch(U){Ie(U)}},Ne=K=>{try{Ae(oe.throw(K))}catch(U){Ie(U)}},Ae=K=>K.done?Z(K.value):Promise.resolve(K.value).then(We,Ne);Ae((oe=oe.apply(L,C)).next())});const ee=L=>{var C=L,{shixunsDetail:oe,globalSetting:Z,loading:Ie,dispatch:We,showModal:Ne,onCancel:Ae,onOk:K,okBtnName:U="\u5B8C\u6210",info:B,source:le}=C,te=A(C,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[he,De]=(0,e.useState)(0),[f,y]=(0,e.useState)(0);return(0,e.useEffect)(()=>{var Y,ke;let ae=null;const ge=()=>E(void 0,null,function*(){let Fe={id:B==null?void 0:B.courseId,send_time:pe()().format("YYYY-MM-DD HH:mm"),exercise_id:B!=null&&B.exercise_id?B==null?void 0:B.exercise_id:null},re={id:B==null?void 0:B.courseId,course_id:B==null?void 0:B.courseId,identifier:B==null?void 0:B.courseId,type:"normal",is_use:1,is_copy:!0};le==="\u8BD5\u5377"?(Fe.examination_bank_ids=B==null?void 0:B.examination_bank_ids,Fe.type="ExaminationBank"):le==="\u5B9E\u8BAD"?Fe.shixun_info=(B==null?void 0:B.shixun_info.length)>0?B==null?void 0:B.shixun_info:[re]:le==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(Fe.examination_bank_ids=B==null?void 0:B.examination_bank_ids,Fe.shixun_info=(B==null?void 0:B.shixun_info.length)>0?B==null?void 0:B.shixun_info:[re]);const M=yield(0,T.ZP)(`/api/courses/${B==null?void 0:B.courseId}/send_shixun_progress.json`,{method:"post",body:Fe});(M==null?void 0:M.status)===0&&(De(M==null?void 0:M.complete_num),y(M==null?void 0:M.total_num),(M==null?void 0:M.complete_num)!==(M==null?void 0:M.total_num)?(ae&&clearInterval(ae),ae=setInterval(ge,5e3)):ae&&clearInterval(ae))});if(Ne&&(B!=null&&B.courseId)){const Fe=(Y=(B==null?void 0:B.shixun_info)||[])==null?void 0:Y.filter(M=>!!M.identifier),re=(ke=(0,G.uniqBy)(Fe,"identifier"))==null?void 0:ke.length;De(0),y(re),ge()}return()=>{ae&&clearInterval(ae)}},[Ne]),W.createElement(j.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:he==f,open:Ne,destroyOnClose:!0,footer:null,onCancel:Ae},W.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",W.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},f),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),W.createElement("div",{className:X.con_warp},W.createElement(g.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:he==f&&f!=0?100:he/f*100,showInfo:!1,size:[350,10]}),W.createElement("div",{className:X.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",W.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},he),"\u4E2A"),he!=f&&W.createElement(I.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),he==f&&W.createElement(I.ZP,{type:"primary",onClick:K},U)))};var o=(0,H.connect)(({shixunsDetail:L,loading:C,globalSetting:oe})=>({shixunsDetail:L,globalSetting:oe,loading:C.models.index}))(ee)},77627:function(Je,Be,l){l.d(Be,{Z:function(){return T}});var e=l(59301),H=l(88634),j=l(25399),g={buttonitem:"buttonitem___LpWeh"},I=l(95203);const X=({user:v,dispatch:pe,type:G,capacity:W})=>{var D,z,P,A,E,ee,o,L,C,oe,Z,Ie;const[We,Ne]=(0,e.useState)(0),[Ae,K]=(0,e.useState)(0);return(0,e.useEffect)(()=>{var U,B,le,te,he,De,f,y,Y,ke,ae,ge;G==="program"?(Ne((le=(B=(U=v==null?void 0:v.userInfo)==null?void 0:U.course)==null?void 0:B.hack_homework_info)==null?void 0:le.hack_homework_limit_count),K((De=(he=(te=v==null?void 0:v.userInfo)==null?void 0:te.course)==null?void 0:he.hack_homework_info)==null?void 0:De.hack_homework_remaining_count)):G==="shixun"&&(Ne((Y=(y=(f=v==null?void 0:v.userInfo)==null?void 0:f.course)==null?void 0:y.shixun_homework_info)==null?void 0:Y.shixun_homework_limit_count),K((ge=(ae=(ke=v==null?void 0:v.userInfo)==null?void 0:ke.course)==null?void 0:ae.shixun_homework_info)==null?void 0:ge.shixun_homework_remaining_count))},[G,v]),e.createElement("div",null,["program","shixun"].includes(G)&&((z=(D=v==null?void 0:v.userInfo)==null?void 0:D.paid_version)==null?void 0:z.version_type)!=2&&((P=v==null?void 0:v.userInfo)==null?void 0:P.identity)!=="student"&&((E=(A=v==null?void 0:v.userInfo)==null?void 0:A.course)==null?void 0:E.course_role)!=15&&e.createElement(j.Z,{title:e.createElement("span",null,"\u60A8\u7684\u3010",((o=(ee=v==null?void 0:v.userInfo)==null?void 0:ee.paid_version)==null?void 0:o.version_type)===0?"\u57FA\u7840\u7248":"\u6807\u51C6\u7248","\u3011\u8D26\u53F7\u5728\u672C\u8BFE\u5802\u4E2D\u6BCF\u65E5\u53EF\u53D1\u5E03",We,"\u4EFD\u4F5C\u4E1A\uFF0C\u989D\u5EA6\u5C06\u4E8E\u6BCF\u65E524\u70B9\u91CD\u7F6E\u3002\u5982\u9700\u53D1\u5E03\u66F4\u591A\uFF0C",e.createElement("a",{onClick:()=>{(0,I.Lm)()}},"\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u6269\u5BB9\u3002"))},e.createElement("div",{style:{marginRight:20},className:g.buttonitem},"\u4ECA\u65E5\u53EF\u53D1\u5E03\u4F5C\u4E1A\u6570",e.createElement("span",{style:{margin:"0px 5px",color:Ae===0?"#999999":"#3061D0"}},Ae),"\u4EFD")),["attachment"].includes(G)&&((C=(L=v==null?void 0:v.userInfo)==null?void 0:L.paid_version)==null?void 0:C.version_type)!=2&&((oe=v==null?void 0:v.userInfo)==null?void 0:oe.identity)!=="student"&&e.createElement(j.Z,{title:e.createElement("span",null,"\u60A8\u7684\u3010",((Ie=(Z=v==null?void 0:v.userInfo)==null?void 0:Z.paid_version)==null?void 0:Ie.version_type)===0?"\u57FA\u7840\u7248":"\u6807\u51C6\u7248","\u3011\u8D26\u53F7\u6700\u591A\u652F\u6301\u4F7F\u7528",(0,I.RD)((W==null?void 0:W.total)||0),"\u7684\u6559\u5B66\u8D44\u6599\u5BB9\u91CF\u3002 \u60A8\u53EF\u4EE5\u6E05\u7406\u6587\u4EF6\u91CA\u653E\u7A7A\u95F4\uFF0C\u6216",e.createElement("a",{onClick:()=>{(0,I.Lm)()}},"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u6269\u5BB9\u3002"))},e.createElement("div",{style:{marginRight:20},className:g.buttonitem},"\u8D44\u6599\u5BB9\u91CF ",e.createElement("span",{style:{marginLeft:5,color:"#3061D0"}},(0,I.RD)((W==null?void 0:W.used)||0)),"/",e.createElement("span",{style:{color:"#5F6A95"}},(0,I.RD)((W==null?void 0:W.total)||0)))))};var T=(0,H.connect)(({user:v})=>({user:v}))(X)},7082:function(Je,Be,l){var e=l(59301),H=l(28284),j=l(62957),g=l(6767),I=l(77019),X=l(5269),T=l(24017),v=l(47889),pe=l(62673),G=l(66649),W=l.n(G),D=l(70892),z=l(95203),P=l(88634),A=l(82772),E=l(87218),ee=l(71661),o=l(14988),L=l(31468),C=l(18612),oe=l(22796),Z=l(59301),Ie=Object.defineProperty,We=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,B=(f,y,Y)=>y in f?Ie(f,y,{enumerable:!0,configurable:!0,writable:!0,value:Y}):f[y]=Y,le=(f,y)=>{for(var Y in y||(y={}))K.call(y,Y)&&B(f,Y,y[Y]);if(Ae)for(var Y of Ae(y))U.call(y,Y)&&B(f,Y,y[Y]);return f},te=(f,y)=>We(f,Ne(y)),he=(f,y,Y)=>new Promise((ke,ae)=>{var ge=M=>{try{re(Y.next(M))}catch(N){ae(N)}},Fe=M=>{try{re(Y.throw(M))}catch(N){ae(N)}},re=M=>M.done?ke(M.value):Promise.resolve(M.value).then(ge,Fe);re((Y=Y.apply(f,y)).next())});const De=({classroomList:f,dispatch:y,user:Y,courseEndTime:ke})=>{var ae;const ge=(0,P.useParams)(),[Fe]=H.default.useForm(),[re,M]=(0,e.useState)(1),[N,Se]=(0,e.useState)([]),[ft,_t]=(0,e.useState)(0),[Ft,yt]=(0,e.useState)(20),[Ge,rt]=(0,e.useState)(!0),[Re,je]=(0,e.useState)([]),[He,ut]=(0,e.useState)(!0),[lt,Ot]=(0,e.useState)({}),[Ht,Wt]=(0,e.useState)({});ge.id=ge.coursesId,(0,e.useEffect)(()=>{if(f.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(ht(),Nt(),f.actionTabs.type===2){const fe=f.actionTabs.selectArrsAll[0];ut(fe.unified_setting)}else ut(!1)},[f.actionTabs]);const Nt=fe=>he(void 0,null,function*(){rt(!0);const x=yield(0,E.c_)(te(le({},ge),{page:fe||re,limit:2e4,homework_id:f.actionTabs.type===1?"":f.actionTabs.selectArrs[0]}));x==null||x.course_groups.map((xe,gt)=>{xe.key=xe.id,xe.title=xe.name,xe.disabled=xe.is_published}),x&&(Se([...x==null?void 0:x.course_groups]),_t(x==null?void 0:x.course_groups_count),rt(!1),fe||Fe.setFieldsValue({publish_time:W()(W()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:W()(W()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),it=()=>{var fe;let x=[...(fe=f.actionTabs.selectArrsAll)==null?void 0:fe.filter(xe=>xe.high_resources_consume&&!xe.high_resources_consume_permission)];(x==null?void 0:x.length)>0&&f.actionTabs.type===1&&j.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:Z.createElement("div",null,Z.createElement("div",{className:L.Z.tipcontent},Z.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",Z.createElement("span",{style:{color:"#f06b14"}},x==null?void 0:x.length)," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),Z.createElement("div",{className:"mt20 mb20"},x==null?void 0:x.map(xe=>Z.createElement("div",{className:L.Z.failedList,key:xe.homework_id},Z.createElement("div",{className:L.Z.name},xe==null?void 0:xe.name),Z.createElement("div",{className:L.Z.publish,onClick:()=>{(0,z.xg)(`/classrooms/${ge.coursesId}/shixun_homework/${xe.homework_id}/detail?tabs=0`)}},"\u53D1\u5E03"))))))})},Vt=()=>he(void 0,null,function*(){var fe,x,xe,gt,vt,Bt,Dt,Ct,At,It,Tt,Lt,xt,Zt;if(((xe=(x=(fe=Y==null?void 0:Y.userInfo)==null?void 0:fe.course)==null?void 0:x.shixun_homework_info)==null?void 0:xe.shixun_homework_remaining_count)===0&&((vt=(gt=f.actionTabs.selectArrsAll)==null?void 0:gt.filter($e=>{var Gt,bt;return(bt=(Gt=($e==null?void 0:$e.homework_status)||($e==null?void 0:$e.status)).includes)==null?void 0:bt.call(Gt,"\u672A\u53D1\u5E03")}))==null?void 0:vt.length)>0){(0,z.bR)(`\u60A8\u4ECA\u65E5\u5728\u3010${(Dt=(Bt=(0,A.eY)())==null?void 0:Bt.course)==null?void 0:Dt.course_name}\u3011\u7684\u8BFE\u5802\u5B9E\u9A8C\u4F5C\u4E1A\u53D1\u5E03\u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u989D\u5EA6\u5C06\u4E8E\u6BCF\u65E524\u70B9\u91CD\u7F6E\uFF0C\u5C4A\u65F6\u5373\u53EF\u7EE7\u7EED\u53D1\u5E03\u3002\u5982\u9700\u7ACB\u5373\u53D1\u5E03\u66F4\u591A\u4F5C\u4E1A\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u6269\u5BB9\u3002`);return}if((0,A.Rm)()&&!((At=(Ct=f.AssistantObject)==null?void 0:Ct.practice)!=null&&At.can_publish)){g.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),qe(!1);return}const ct=le({},Fe.getFieldsValue());if(ct.end_time<=ct.publish_time){g.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),qe(!1);return}if((Re==null?void 0:Re.length)<=0&&!He&&N.length>0){g.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),qe(!1);return}let mt={homework_ids:[...f.actionTabs.selectArrs],group_ids:Re.length>0?Re.map($e=>$e.id):(It=f.detailShixunsList)==null?void 0:It.course_groups,end_time:W()(ct.end_time).format("YYYY-MM-DD HH:mm"),publish_time:W()(ct.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Re.length},Te=[...(Tt=f.actionTabs.selectArrsAll)==null?void 0:Tt.filter($e=>$e.high_resources_consume&&!$e.high_resources_consume_permission)];if((Te==null?void 0:Te.length)==f.actionTabs.selectArrsAll.length&&f.actionTabs.type==1){y({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),it();return}((Lt=f.actionTabs.selectArrsAll)==null?void 0:Lt.length)>0&&f.actionTabs.type===1&&(mt.homework_ids=[...((Zt=(xt=f.actionTabs.selectArrsAll)==null?void 0:xt.filter($e=>!$e.high_resources_consume||$e.high_resources_consume_permission))==null?void 0:Zt.map($e=>Number($e==null?void 0:$e.homework_id)))||[]]);let ot=yield(0,oe.Tr)({homework_common_ids:[...f.actionTabs.selectArrs],course_id:ge.coursesId,type:"homework_common"});(ot==null?void 0:ot.student_count)===0?kt(mt):(Wt(mt),Ot(ot))}),ht=()=>{M(1),Se([]),je([])},kt=fe=>he(void 0,null,function*(){qe(!0);const x=yield(0,D.ZP)(`/api/courses/${ge.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:le({},fe)});qe(!1),x.status===0&&(ht(),(0,z.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),g.ZP.success("\u53D1\u5E03\u6210\u529F"),y({type:"user/getUserInfo",payload:{course_id:ge.coursesId}}),y({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),it(),(0,A.GJ)()?f.actionTabs.detail?(y({type:"shixunHomeworks/setActionTabs",payload:{}}),y({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:le({},ge)}),y({type:"shixunHomeworks/getWorkSetting",payload:le({},ge)})):y({type:"classroomList/getClassroomTeacherShixunsList",payload:te(le({},f.actionTabs.params),{type:4})}):y({type:"classroomList/getClassroomShixunsList",payload:le({},f.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||y({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:Z.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}))}),Qt=ft>re*Ft,{detailShixunsList:wt}=f,[st,qe]=(0,e.useState)(!1);return Z.createElement("div",null,Z.createElement(j.default,{width:600,centered:!0,confirmLoading:st,title:"\u53D1\u5E03\u4F5C\u4E1A",open:f.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:()=>Vt(),onCancel:()=>{ht(),y({type:"classroomList/setActionTabs",payload:{}})}},Z.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",Z.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),Z.createElement(H.default,{form:Fe},Z.createElement("div",{style:{paddingLeft:0}},Z.createElement(I.Z,{className:"mt30",align:"middle"},Z.createElement(X.Z,null,Z.createElement(H.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},Z.createElement(T.default,{style:{width:170,marginRight:"25px"},disabledDate:fe=>(0,o.Q8)(fe,ke),disabledTime:fe=>(0,o.d0)(fe),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:W()((0,z.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),Z.createElement(X.Z,{className:"ml20"},Z.createElement(H.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},Z.createElement(T.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:W()((0,z.U6)(),"HH:mm")},disabledDate:fe=>(0,o.Q8)(fe,ke,Fe.getFieldValue("publish_time")),disabledTime:fe=>(0,o.d0)(fe,Fe.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),f.actionTabs.type===2&&Z.createElement(I.Z,{style:{marginBottom:"10px"}},Z.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),Z.createElement(v.ZP.Group,{value:He,onChange:fe=>{ut(fe.target.value),je([])}},Z.createElement(v.ZP,{value:!0,disabled:!f.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),Z.createElement(v.ZP,{className:"ml20",disabled:N.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),N.length<=0&&f.actionTabs.type===2&&Z.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(f.actionTabs.type===1||!He)&&N.length>0&&Z.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Z.createElement("span",{style:{flex:1}},Z.createElement(pe.default,{checked:Re.length===N.length,onChange:fe=>{Re.length===N.length?je([]):je(N)}},"\u5168\u9009")),Z.createElement("span",{style:{width:16}}),Z.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Re.length||0,"\u4E2A\u5206\u73ED")),(f.actionTabs.type===1||!He)&&N.length>0&&Z.createElement(ee.Z,{data:N,selectedRowKeys:Re,setSelectedRowKeys:je}))),Z.createElement(C.Z,{resdata:lt,type:((ae=f.actionTabs.selectArrs)==null?void 0:ae.length)===1?"shixun":"shixunpush",okloading:st,oktext:(lt==null?void 0:lt.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:fe=>he(void 0,null,function*(){qe(!0);let x=yield(0,D.ZP)(`/api/courses/${ge.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[...f.actionTabs.selectArrs]}});qe(!1),(x==null?void 0:x.status)===0&&kt(Ht)})}))};Be.Z=(0,P.connect)(({classroomList:f,user:y})=>({classroomList:f,user:y}))(De)},8260:function(Je,Be,l){l.r(Be),l.d(Be,{default:function(){return Zn}});var e=l(59301),H=l(70892),j=l(88634),g=l(93041),I=l(6767),X=l(37568),T=l(77019),v=l(5269),pe=l(75727),G=l(25399),W=l(44104),D=l(458),z=l(31709),P=l(62673),A=l(7939),E=l(62957),ee=l(47889),o=l(82772),L=l(84105),C=l(95203),oe=l(9019),Z=Object.defineProperty,Ie=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,U=(t,n,u)=>n in t?Z(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,B=(t,n)=>{for(var u in n||(n={}))Ae.call(n,u)&&U(t,u,n[u]);if(Ne)for(var u of Ne(n))K.call(n,u)&&U(t,u,n[u]);return t},le=(t,n)=>Ie(t,We(n)),te=(t,n)=>{var u={};for(var p in t)Ae.call(t,p)&&n.indexOf(p)<0&&(u[p]=t[p]);if(t!=null&&Ne)for(var p of Ne(t))n.indexOf(p)<0&&K.call(t,p)&&(u[p]=t[p]);return u},he=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const De=t=>{var n=t,{classroomList:u,dispatch:p,match:V,location:b,user:q}=n,m=te(n,["classroomList","dispatch","match","location","user"]),a,_;const ye=(0,j.useParams)(),[S,Q]=(0,e.useState)(!1),[de,Ce]=(0,e.useState)(!1),Pe=(0,e.useRef)(null);(0,e.useEffect)(()=>{if(u.actionTabs.key==="\u5220\u9664"){if((0,o.j5)()){Ce(!0);return}const F={hasNum:0,noHasNum:0};u.actionTabs.selectArrsAll.map(ie=>{var ve;ie.author_login===((ve=q.userInfo)==null?void 0:ve.login)?++F.hasNum:++F.noHasNum}),F.noHasNum>0?E.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:e.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",e.createElement("span",{className:"c-blue"},F.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",e.createElement("span",{className:"c-red"},F.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",e.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:()=>{w()}}):Ce(!0)}else Ce(!1)},[u.actionTabs.key]);const w=()=>{p({type:"classroomList/setActionTabs",payload:{}})};return e.createElement(E.default,{centered:!0,title:"\u63D0\u793A",open:de,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,confirmLoading:S,onOk:()=>he(void 0,null,function*(){var F;if((F=Pe.current)!=null&&F.onVerify())return;Q(!0);const ie=yield(0,H.ZP)(`/api/courses/${ye.coursesId}/homework_commons/multi_destroy.json`,{method:"post",body:{homework_ids:[...u.actionTabs.selectArrs]}});Q(!1),ie.status===0&&((0,C.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u5220\u9664"]),I.ZP.success("\u5220\u9664\u6210\u529F"),p({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),(0,o.GJ)()?p({type:"classroomList/getClassroomTeacherShixunsList",payload:le(B({},u.actionTabs.params),{type:4})}):p({type:"classroomList/getClassroomShixunsList",payload:B({},u.actionTabs.params)}),p({type:"classroomList/getClassroomLeftMenus",payload:{id:ye.coursesId}}))}),onCancel:()=>{w()}},!((a=u==null?void 0:u.actionTabs)!=null&&a.status)||!["\u672A\u53D1\u5E03"].includes((_=u==null?void 0:u.actionTabs)==null?void 0:_.status)?e.createElement(e.Fragment,null,e.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u5B9E\u8BAD\u5219\u4F1A\u6E05\u9664\u5B66\u751F\u6240\u6709\u7684\u7B54\u9898\u6570\u636E\uFF0C\u4E14\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u5982\u786E\u5B9A\u5220\u9664\uFF0C\u8BF7\u8F93\u5165\u4E0B\u65B9\u9A8C\u8BC1\u7801"),e.createElement(oe.Z,{ref:F=>Pe.current=F})):e.createElement(e.Fragment,null,e.createElement("p",null,"\u63D0\u4EA4\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u6062\u590D"),e.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F")))};var f=(0,j.connect)(({classroomList:t,user:n})=>({classroomList:t,user:n}))(De),y=l(7082),Y=l(61523),ke=Object.defineProperty,ae=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,N=(t,n,u)=>n in t?ke(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Se=(t,n)=>{for(var u in n||(n={}))re.call(n,u)&&N(t,u,n[u]);if(Fe)for(var u of Fe(n))M.call(n,u)&&N(t,u,n[u]);return t},ft=(t,n)=>ae(t,ge(n)),_t=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const Ft=({classroomList:t,dispatch:n})=>{const u=(0,j.useParams)();return e.createElement(E.default,{centered:!0,title:"\u63D0\u793A",open:t.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_t(void 0,null,function*(){(yield(0,H.ZP)(`/api/courses/${u.coursesId}/homework_commons/set_public.json`,{method:"post",body:{homework_ids:[...t.actionTabs.selectArrs]}})).status===0&&((0,C.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u8BBE\u4E3A\u516C\u5F00"]),I.ZP.success("\u64CD\u4F5C\u6210\u529F"),n({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),(0,o.GJ)()?n({type:"classroomList/getClassroomTeacherShixunsList",payload:ft(Se({},t.actionTabs.params),{type:4})}):n({type:"classroomList/getClassroomShixunsList",payload:Se({},t.actionTabs.params)}))}),onCancel:()=>{n({type:"classroomList/setActionTabs",payload:{}})}},e.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",e.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var yt=(0,j.connect)(({classroomList:t})=>({classroomList:t}))(Ft),Ge=l(28284),rt=l(66649),Re=l.n(rt),je=l(59301),He=Object.defineProperty,ut=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Nt=(t,n,u)=>n in t?He(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,it=(t,n)=>{for(var u in n||(n={}))Ht.call(n,u)&&Nt(t,u,n[u]);if(Ot)for(var u of Ot(n))Wt.call(n,u)&&Nt(t,u,n[u]);return t},Vt=(t,n)=>ut(t,lt(n)),ht=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const kt=({classroomList:t,loading:n,dispatch:u})=>{var p,V;const b=(0,j.useParams)(),[q,m]=(0,e.useState)(!1),{actionTabs:a}=t,[_]=Ge.default.useForm(),ye=S=>S&&S{var S;t.actionTabs.key==="\u91CD\u547D\u540D"&&_.setFieldsValue({name:(S=a.selectArrs)==null?void 0:S.name})},[t.actionTabs.key]),je.createElement(E.default,{centered:!0,title:"\u91CD\u547D\u540D",confirmLoading:q,open:t.actionTabs.key==="\u91CD\u547D\u540D",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onOk:()=>ht(void 0,null,function*(){var S,Q;if((0,o.Rm)()&&!((Q=(S=t.AssistantObject)==null?void 0:S.practice)!=null&&Q.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const de=_.getFieldValue();m(!0);const Ce=`/api/homework_commons/${t.actionTabs.selectArrs.homework_id}/alter_name.json`,Pe=yield(0,H.ZP)(Ce,{method:"post",body:it({},de)});m(!1),Pe.status===0&&(I.ZP.success("\u4FEE\u6539\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,o.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:Vt(it({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:it({},t.actionTabs.params)}))}),onCancel:()=>{m(!1),u({type:"classroomList/setActionTabs",payload:{}})}},je.createElement(Ge.default,{form:_},je.createElement(T.Z,{className:"mt10 c-grey-999"},je.createElement(v.Z,null,"\u672C\u5B9E\u8BAD\u521D\u59CB\u540D\u79F0\uFF1A"),je.createElement(v.Z,{flex:"1"},(p=a.selectArrs)==null?void 0:p.shixun_name)),je.createElement(Ge.default.Item,{name:"name"},je.createElement(T.Z,{className:"mt10",align:"middle"},je.createElement(v.Z,{className:"font14"},"\u4F5C\u4E1A\u540D\u79F0\uFF1A"),je.createElement(v.Z,{flex:"1"},je.createElement(X.default,{defaultValue:(V=a.selectArrs)==null?void 0:V.name,maxLength:60}))))))};var Qt=(0,j.connect)(({classroomList:t,loading:n})=>({classroomList:t,loading:n}))(kt),wt=l(36207),st=l(29787),qe=l(37285),fe=l(28860),x={flex_box_center:"flex_box_center___z88Le",flex_space_between:"flex_space_between___b4xPz",flex_box_vertical_center:"flex_box_vertical_center___KkW0d",flex_box_center_end:"flex_box_center_end___pgvoZ",flex_box_column:"flex_box_column___tFgV5",wrp:"wrp___RrUT2",drawer:"drawer___QqugY",menu:"menu___uKpxi",actived:"actived___hCeHj",actived2:"actived2___aIAeg",subTag:"subTag___S0zfl",listItem:"listItem___Ulw3D",listItem2:"listItem2___J8GtN",info:"info___gY955",title:"title___hyfzM",titleLeft:"titleLeft___eH38u",titleRight:"titleRight___JCVAi",search:"search___GnrcF",filter:"filter___jwVvV",description:"description___ynLaI",menuCourse:"menuCourse___HRXxE",authorname:"authorname___qn85G","tooltip-content":"tooltip-content___A6uPo"},xe=l(14753),gt=l(96546),vt=l(10135),Bt=l(85421),Dt=l(18612),Ct=l(22796),At=l(37428),It=Object.defineProperty,Tt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,mt=(t,n,u)=>n in t?It(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Te=(t,n)=>{for(var u in n||(n={}))Zt.call(n,u)&&mt(t,u,n[u]);if(xt)for(var u of xt(n))ct.call(n,u)&&mt(t,u,n[u]);return t},ot=(t,n)=>Tt(t,Lt(n)),$e=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const{Search:Gt}=X.default,bt=[{id:"type",name:"\u6765\u6E90",children:[{name:"\u5168\u90E8",id:"all",type:"type"},{name:"\u6211\u7684",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u7B80\u5355",id:1,type:"diff"},{name:"\u9002\u4E2D",id:2,type:"diff"},{name:"\u56F0\u96BE",id:3,type:"diff"}]}],Pu=({classroomList:t,loading:n,dispatch:u,shixunsList:p})=>{var V,b;const[q,m]=(0,e.useState)(Te({},(0,j.useParams)())),{shixunLists:a,shixunAiRecommendLists:_}=t,[ye,S]=(0,e.useState)([]),[Q,de]=(0,e.useState)({}),[Ce,Pe]=(0,e.useState)([]),[w,F]=(0,e.useState)(!1),[ie,ve]=(0,e.useState)({}),[Le,Ee]=(0,e.useState)(!1),Oe=[{name:"\u6700\u65B0",id:"created_at"},{name:"\u6700\u70ED",id:"myshixuns_count"}].filter(r=>!!r),[O,$]=(0,e.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null,shixun_homework:!0}),[h,Ze]=(0,e.useState)(!1),[Me,Qe]=(0,e.useState)({});(0,e.useEffect)(()=>{R()},[q.coursesId,O]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&S([]),u({type:"shixunsList/getMenus",payload:{}})},[t.actionTabs.key]),(0,e.useEffect)(()=>{(a!=null&&a.shixun_list||_!=null&&_.shixun_list)&&de(O.sort==="recommend"?_:a)},[a,_]);const R=()=>$e(void 0,null,function*(){de([]),F(!0);let r=Te({},O);if(O.sort==="recommend"&&(r.sort="myshixuns_count"),O.sort==="recommend")yield u({type:"classroomList/getShixunAiRecommendLists",payload:ot(Te({},r),{course_id:q.coursesId})});else{const be=Te({},r);yield u({type:"classroomList/getShixunLists",payload:be})}const ce=yield(0,H.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});Pe([{id:null,name:"\u5168\u90E8"},{id:-1,name:"\u672A\u52A0\u5165\u76EE\u5F55"},...(ce==null?void 0:ce.groups)||[]]),S([]),F(!1)});if(t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B")return;const Ve=r=>$e(void 0,null,function*(){Ee(!0);const ce=yield u({type:"classroomList/createShixunHomework",payload:{category_id:(q==null?void 0:q.categoryId)||null,coursesId:q.coursesId,shixuns_info:r}});Ee(!1),ce.status||(Qe({courseId:q==null?void 0:q.coursesId,shixun_info:r}),Ze(!0))}),ze=()=>{(0,C.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"]),I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,o.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:ot(Te({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:Te({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:q.coursesId}}),localStorage.getItem("Noviceguide")==="0"||u({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:12,text:e.createElement("div",null,"\u63A5\u4E0B\u6765\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u4E2A\u201C\u8BFE\u7A0B\u5B9E\u9A8C\u201D~\u70B9\u51FB\u201C\u9009\u7528\u5B9E\u8DF5\u9879\u76EE\u201D\uFF0C\u9009\u62E9\u4E00\u4E2A\u4F5C\u4E1A\uFF0C\u7136\u540E\u70B9\u51FB\u201C\u7ACB\u5373\u53D1\u5E03\u201D\u5C31\u7ED9\u5B9E\u8DF5\u8BFE\u5802\u6DFB\u52A0\u4E86\u4E00\u4E2A\u8BFE\u7A0B\u5B9E\u9A8C\u3002")}})},[tt,J]=(0,e.useState)(!1);return e.createElement(e.Fragment,null,e.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!0,className:"body-overflow-hidden",open:t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:x.drawer,onClose:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},footer:e.createElement("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement(A.ZP,{size:"middle",onClick:()=>{u({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"}},"\u53D6\u6D88"),e.createElement(A.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:()=>$e(void 0,null,function*(){var r;J(!0);let ce=yield(0,Ct.Tr)({id:ye,type:"shixun",course_id:(r=t.detailTopBanner)==null?void 0:r.course_id});yield Ve(ce==null?void 0:ce.no_use_list),J(!1)}),type:"primary",loading:tt},"\u786E\u5B9A"))},e.createElement("section",{className:"tc"},e.createElement(gt.Z,{onChange:r=>{r!=null&&r.keyword&&(0,vt.tk)({name:r==null?void 0:r.keyword,copywriting:r==null?void 0:r.keyword,position:"Shixun"}),$(ot(Te(Te({},O),r),{page:1}))}})),e.createElement("section",{className:"edu-container"},e.createElement(st.Z,{spinning:w},e.createElement("aside",null,bt.map(function(r,ce){var be;return ce!==0?null:e.createElement("ul",{className:x.menu,key:ce},e.createElement("li",null,r.name),(be=r==null?void 0:r.children)==null?void 0:be.map(function(we,Ke){return e.createElement("li",{className:O[r.id]==we.id?x.actived:"",onClick:()=>{O[r.id]=we.id,O.page=1,$(Te({},O))}},e.createElement("strong",null,we.name))}))}),e.createElement("ul",{className:x.menu},e.createElement("li",null,"\u65B9\u5411"),e.createElement("li",{className:O!=null&&O.discipline_id?"":x.actived,onClick:()=>{delete O.tag_level,delete O.sub_discipline_id,delete O.discipline_id,O.page=1,$(Te({},O))}},e.createElement("strong",null,"\u5168\u90E8")),p.menus&&p.menus.map(function(r,ce){return e.createElement("li",{key:ce,className:(O==null?void 0:O.discipline_id)==r.id?x.actived:""},e.createElement("strong",{onClick:()=>{O.tag_level=1,O.discipline_id=r.id,delete O.sub_discipline_id,O.page=1,$(Te({},O))}},r.name),e.createElement("div",null,r.sub_repertoires.map(function(be,we){return e.createElement("div",{key:we,className:"mt5"},e.createElement("div",{className:(O==null?void 0:O.sub_discipline_id)==be.id&&O.tag_level===2?`${x.actived2} ${x.subTag}`:x.subTag,onClick:()=>{O.tag_level=2,O.discipline_id=r.id,O.sub_discipline_id=be.id,$(Te({},O))}},be.name),e.createElement("ul",{className:"mt5"},be.tags&&be.tags.map(function(Ke,$t){return e.createElement("li",{key:$t,className:O.sub_discipline_id==Ke.id&&O.tag_level===3?x.actived2:"",onClick:()=>{O.tag_level=3,O.discipline_id=r.id,O.sub_discipline_id=Ke.id,$(Te({},O))}},Ke.name)})))})))})),O.type==="mine"&&e.createElement("ul",{className:x.menu},e.createElement("li",null,"\u76EE\u5F55"),Ce==null?void 0:Ce.map((r,ce)=>e.createElement("li",{className:O.group_id==r.id?x.actived:"",key:r.name,onClick:()=>{O.group_id=r.id,O.page=1,$(Te({},O))}},e.createElement("strong",null,r.name)))),bt.map(function(r,ce){var be;return ce!==1?null:e.createElement("ul",{className:x.menu,key:ce},e.createElement("li",null,r.name),(be=r==null?void 0:r.children)==null?void 0:be.map(function(we,Ke){return e.createElement("li",{className:O[r.id]==we.id?x.actived:"",onClick:()=>{O[r.id]=we.id,$(Te({},O))}},e.createElement("strong",null,we.name))}))}),e.createElement(T.Z,{align:"middle"},e.createElement(v.Z,{flex:"1",className:x.filter},Oe.map(function(r,ce){return e.createElement(A.ZP,{key:ce,className:"mr20",type:O.sort===r.id?"primary":"default",onClick:()=>{O.sort=r.id,$(Te({},O))}},r.name)})),e.createElement(v.Z,{className:"c-grey-999"},e.createElement("div",{className:x.menuCourse},e.createElement("ul",null,e.createElement("li",null,"\u5DF2\u9009",e.createElement("span",{className:"c-blue"},ye.length),"\u4E2A"),e.createElement("li",null,"\u5171",e.createElement("span",{className:"c-blue"},Q.shixuns_count),"\u4E2A"),e.createElement("li",{className:"current",onClick:()=>{O.order=O.order==="asc"?"desc":"asc",$(Te({},O))}},"\u5B66\u4E60\u4EBA\u6570",e.createElement("p",{className:`edu-sorter current ${O.order}`},e.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),e.createElement("span",{className:"iconfont icon-sanjiaoxing-down"}))))))),((V=Q==null?void 0:Q.shixun_list)==null?void 0:V.length)===0&&e.createElement(fe.Z,null),e.createElement(P.default.Group,{style:{display:"block"},value:ye,onChange:r=>{S(r)}},(b=Q==null?void 0:Q.shixun_list)==null?void 0:b.map(function(r,ce){var be;return e.createElement("div",{className:x.listItem,key:r==null?void 0:r.identifier,style:{cursor:"auto"}},e.createElement(P.default,{value:r==null?void 0:r.identifier,style:{marginTop:"3px"},disabled:(r==null?void 0:r.need_authorize)||(r==null?void 0:r.shixun_tag_num_name)=="\u672A\u53D1\u5E03"}),e.createElement("div",{className:x.info},e.createElement("div",{className:x.title},e.createElement("div",{className:x.titleLeft},e.createElement("div",null,e.createElement(j.Link,{to:`/shixuns/${r.identifier}/challenges`,target:"_blank"},e.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:r.title}})),(r==null?void 0:r.high_resources_consume)&&e.createElement("span",{className:"tag-style current"},e.createElement(Bt.Z,{type:"shixun",style:{marginLeft:0}})),(r==null?void 0:r.need_authorize)&&e.createElement("span",{onClick:()=>{(0,xe.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),(0,o.Ny)()&&(r==null?void 0:r.mark_status)===1&&e.createElement(G.Z,{zIndex:1e4,title:r==null?void 0:r.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),(0,o.Ny)()&&(r==null?void 0:r.mark_status)===2&&e.createElement(G.Z,{zIndex:1e4,title:r==null?void 0:r.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),(0,o.Ny)()&&(r==null?void 0:r.mark_status)===3&&e.createElement(G.Z,{zIndex:1e4,title:r==null?void 0:r.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")),(r==null?void 0:r.shixun_tag_num_name)=="\u672A\u53D1\u5E03"&&e.createElement(G.Z,{zIndex:1e4,title:"\u5B9E\u8BAD\u9700\u53D1\u5E03\u540E\u624D\u80FD\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\uFF0C\u70B9\u51FB\u540D\u79F0\u53EF\u524D\u5F80\u5B9E\u8BAD\u8BE6\u60C5"},e.createElement("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10"},"\u672A\u53D1\u5E03")),(be=r==null?void 0:r.shixun_marks)==null?void 0:be.map(we=>e.createElement("span",{key:we,className:"tag-badge ml10"},we))),e.createElement(A.ZP,{ghost:!0,href:`/shixuns/${r.identifier}/challenges`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u4F53\u9A8C\u5B9E\u8BAD"))),e.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:r.description}})),e.createElement("div",{className:" mt15"},r.challenge_names.map(function(we,Ke){return e.createElement("span",{key:Ke,className:"mr30"},"\u7B2C",Ke+1,"\u5173 ",we," ")})),e.createElement(qe.Z,{dashed:!0}),e.createElement("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"}},e.createElement("div",null,e.createElement(G.Z,{overlayClassName:x["tooltip-content"],title:e.createElement("div",null,e.createElement("span",{dangerouslySetInnerHTML:{__html:r==null?void 0:r.member_user_names}}))},e.createElement("span",{className:x.authorname,dangerouslySetInnerHTML:{__html:r==null?void 0:r.member_user_names}})),r.author_school_name&&e.createElement(e.Fragment,null,e.createElement("span",{dangerouslySetInnerHTML:{__html:r.author_school_name}}))),e.createElement("div",null,e.createElement("span",{className:"mr30"},"\u96BE\u5EA6 \xA0",r.level),e.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570 \xA0",r.study_count)))))}))))),e.createElement("div",{className:"tc mt20"},e.createElement(z.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:O.page||1,showQuickJumper:!0,total:Q==null?void 0:Q.shixuns_count,onChange:r=>{O.page=r,$(Te({},O))}}))),e.createElement(Dt.Z,{resdata:ie,type:"subject",okloading:Le,oktext:"\u4E00\u952E\u590D\u5236\u5E76\u4F7F\u7528",onok:r=>{Ve(r)}}),e.createElement(At.Z,{source:"\u5B9E\u8BAD",showModal:h,onCancel:()=>Ze(!1),info:Me,onOk:ze}))};var Su=(0,j.connect)(({classroomList:t,shixunsList:n,loading:u})=>({classroomList:t,shixunsList:n,loading:u.effects}))(Pu),Ou=Object.defineProperty,Nu=Object.defineProperties,ku=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,wu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,qt=(t,n,u)=>n in t?Ou(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,dt=(t,n)=>{for(var u in n||(n={}))wu.call(n,u)&&qt(t,u,n[u]);if(Xt)for(var u of Xt(n))Iu.call(n,u)&&qt(t,u,n[u]);return t},eu=(t,n)=>Nu(t,ku(n)),tu=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const{Search:Tu}=X.default,Lu=({classroomList:t,loading:n,dispatch:u})=>{var p,V;const[b,q]=(0,e.useState)(dt({},(0,j.useParams)())),{actionTabs:m}=t,{shixunLists:a}=t,[_,ye]=(0,e.useState)([]),[S,Q]=(0,e.useState)(!1),[de,Ce]=(0,e.useState)({page:1,limit:20,search:null});(0,e.useEffect)(()=>{Pe()},[b.coursesId,de]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u4ECE\u8BFE\u5802\u5B9E\u9A8C\u6DFB\u52A0"&&ye([])},[t.actionTabs.key]);const Pe=()=>tu(void 0,null,function*(){var w;const F=eu(dt({},de),{course_id:(w=m==null?void 0:m.params)==null?void 0:w.course_id});yield u({type:"classroomList/getExperimentLists",payload:F}),Q(!1)});if(t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B")return e.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!0,style:{zIndex:9999},open:t.actionTabs.key==="\u4ECE\u8BFE\u5802\u5B9E\u9A8C\u6DFB\u52A0",key:"bottom",rootClassName:x.drawer,onClose:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},footer:e.createElement("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement(A.ZP,{size:"middle",onClick:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"}},"\u53D6\u6D88"),e.createElement(A.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:()=>tu(void 0,null,function*(){var w;(yield u({type:"classroomList/createExperiment",payload:{homework_common_ids:[..._],category_id:b.categoryId,course_id:(w=m==null?void 0:m.params)==null?void 0:w.course_id}})).status||(I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,o.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:eu(dt({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:dt({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:b.coursesId}}),localStorage.getItem("Noviceguide")==="0"||u({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:12,text:e.createElement("div",null,"\u63A5\u4E0B\u6765\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u4E2A\u201C\u8BFE\u7A0B\u5B9E\u9A8C\u201D~\u70B9\u51FB\u201C\u9009\u7528\u5B9E\u8DF5\u9879\u76EE\u201D\uFF0C\u9009\u62E9\u4E00\u4E2A\u4F5C\u4E1A\uFF0C\u7136\u540E\u70B9\u51FB\u201C\u7ACB\u5373\u53D1\u5E03\u201D\u5C31\u7ED9\u5B9E\u8DF5\u8BFE\u5802\u6DFB\u52A0\u4E86\u4E00\u4E2A\u8BFE\u7A0B\u5B9E\u9A8C\u3002")}}))}),type:"primary"},"\u786E\u5B9A"))},e.createElement("section",{className:"tc"},e.createElement(Tu,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u5B9E\u9A8C\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2",enterButton:"\u641C\u7D22",size:"middle",className:x.search,onSearch:w=>{de.search=w,Ce(dt({},de))}})),e.createElement("section",{className:"edu-container"},e.createElement(st.Z,{spinning:S},e.createElement("aside",null,((p=a==null?void 0:a.homeworks)==null?void 0:p.length)===0&&e.createElement(fe.Z,null),(V=a==null?void 0:a.homeworks)==null?void 0:V.map(function(w,F){var ie,ve,Le;return e.createElement("div",{className:x.listItem,key:F,style:{cursor:"auto"}},e.createElement(P.default,{checked:_.includes(w.id),value:w.id,style:{marginTop:"3px"},disabled:w==null?void 0:w.need_authorize,onChange:Ee=>{let Oe=_.indexOf(w.id);_.indexOf(w.id)>-1?ye(_.filter(O=>O!==w.id)):ye(_.concat(w.id))}}),e.createElement("div",{className:x.info},e.createElement("div",{className:x.title},e.createElement("div",{className:x.titleLeft},e.createElement(j.Link,{to:`/shixuns/${w.identifier}/challenges`,target:"_blank"},e.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:w==null?void 0:w.name}})),(w==null?void 0:w.need_authorize)&&e.createElement("span",{onClick:()=>{(0,xe.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),(0,o.Ny)()&&(w==null?void 0:w.mark_status)===1&&e.createElement(G.Z,{title:w==null?void 0:w.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),(0,o.Ny)()&&(w==null?void 0:w.mark_status)===2&&e.createElement(G.Z,{title:w==null?void 0:w.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),(0,o.Ny)()&&(w==null?void 0:w.mark_status)===3&&e.createElement(G.Z,{title:w==null?void 0:w.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")),e.createElement(A.ZP,{ghost:!0,href:`/shixuns/${w.shixun_identifier}/challenges`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u67E5\u770B\u5B9E\u9A8C"))),e.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:w==null?void 0:w.description}})),e.createElement("div",{className:" mt15"},(ie=w==null?void 0:w.challenges)==null?void 0:ie.map(function(Ee,Oe){return e.createElement("span",{key:Oe,className:"mr30"},"\u7B2C",Oe+1,"\u5173 ",Ee==null?void 0:Ee.subject," ")})),e.createElement(qe.Z,{dashed:!0}),e.createElement("div",{className:"c-light-black mt20"},((ve=w==null?void 0:w.user)==null?void 0:ve.name)&&e.createElement(e.Fragment,null,e.createElement("span",null,(Le=w==null?void 0:w.user)==null?void 0:Le.name),e.createElement("span",{className:"ml15 mr15"},"|")),e.createElement("span",null,"\u521B\u5EFA\u65F6\u95F4: "),e.createElement("span",null,w==null?void 0:w.created_at))))})))),e.createElement("div",{className:"tc mt20"},e.createElement(z.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:de.page||1,showQuickJumper:!0,total:a==null?void 0:a.total_count,onChange:w=>{de.page=w,Ce(dt({},de))}})))};var Zu=(0,j.connect)(({classroomList:t,shixunsList:n,loading:u})=>({classroomList:t,shixunsList:n,loading:u.effects}))(Lu),Mu=Object.defineProperty,uu=Object.getOwnPropertySymbols,Ru=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,nu=(t,n,u)=>n in t?Mu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Pt=(t,n)=>{for(var u in n||(n={}))Ru.call(n,u)&&nu(t,u,n[u]);if(uu)for(var u of uu(n))ju.call(n,u)&&nu(t,u,n[u]);return t},$u=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const{Search:el}=X.default,Hu=({classroomList:t,loading:n,dispatch:u,shixunsList:p})=>{var V,b;const[q,m]=(0,e.useState)(Pt({},(0,j.useParams)())),a=(0,j.useLocation)(),{actionTabs:_}=t,[ye]=Ge.default.useForm(),{shixunAiRecommendLists:S}=t,[Q,de]=(0,e.useState)([]),Ce=[{name:"\u6700\u65B0",id:"new"},{name:"\u6700\u70ED",id:"hot"},{name:"\u63A8\u8350",id:"hot"}],[Pe,w]=(0,e.useState)({page:1,course_id:q.coursesId,limit:20,no_jupyter:1});return(0,e.useEffect)(()=>{},[q.coursesId,Pe]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u667A\u80FD\u63A8\u8350"&&(de([]),u({type:"classroomList/getShixunAiRecommendLists",payload:Pt({},Pe)}))},[t.actionTabs.key]),t.actionTabs.key!=="\u667A\u80FD\u63A8\u8350"?null:e.createElement(E.default,{title:"\u667A\u80FD\u63A8\u8350",placement:"bottom",centered:!0,height:"60%",width:1e3,closable:!0,style:{zIndex:9999},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",open:t.actionTabs.key==="\u667A\u80FD\u63A8\u8350",key:"bottom",onCancel:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},onOk:()=>$u(void 0,null,function*(){(yield u({type:"classroomList/createShixunHomework",payload:Pt({shixun_ids:[...Q],category_id:q.categoryId},q)})).status||((0,C.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u667A\u80FD\u63A8\u8350\u9009\u7528"]),sessionStorage.aiRecommentHide=!0,I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),u({type:"classroomList/getClassroomShixunsList",payload:Pt({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:q.coursesId}}))})},e.createElement("section",{className:"",style:{maxHeight:500,minHeight:150,overflow:"auto"}},e.createElement(st.Z,{spinning:n["classroomList/getShixunAiRecommendLists"]},e.createElement("aside",{style:{minHeight:150}},((V=S==null?void 0:S.shixun_list)==null?void 0:V.length)===0&&e.createElement(fe.Z,null),(b=S==null?void 0:S.shixun_list)==null?void 0:b.map(function(F,ie){var ve,Le,Ee;return e.createElement("div",{className:x.listItem2,key:ie,style:{cursor:"auto"}},e.createElement(P.default,{checked:Q.includes(F.id),value:F.id,style:{marginTop:"3px"},disabled:F==null?void 0:F.need_authorize,onChange:Oe=>{let O=Q.indexOf(F.id);Q.indexOf(F.id)>-1?de(Q.filter($=>$!==F.id)):de(Q.concat(F.id))}}),e.createElement("div",{className:x.info},e.createElement("div",{className:x.title},e.createElement("div",{className:x.titleLeft},e.createElement(j.Link,{to:`/shixuns/${F.identifier}/challenges`,target:"_blank"},e.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:F.title}})),(F==null?void 0:F.need_authorize)&&e.createElement("span",{onClick:()=>{(0,xe.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),e.createElement(A.ZP,{ghost:!0,href:`/shixuns/${F.identifier}/challenges`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u4F53\u9A8C\u5B9E\u8BAD"))),e.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:F.description}})),e.createElement("div",{className:" mt10"},F.challenge_names.map(function(Oe,O){return e.createElement("span",{key:O,className:"mr30"},"\u7B2C",O+1,"\u5173 ",Oe," ")})),e.createElement("div",{className:"c-light-black mt10"},(ve=F==null?void 0:F.content)!=null&&ve.author_name?e.createElement("span",{dangerouslySetInnerHTML:{__html:(Ee=(Le=F==null?void 0:F.content)==null?void 0:Le.author_name)==null?void 0:Ee[0]}}):e.createElement("span",null,F.author_name),e.createElement("span",{className:"ml15 mr15"},"|"),F.author_school_name&&e.createElement(e.Fragment,null,e.createElement("span",null,F.author_school_name),e.createElement("span",{className:"ml15 mr15"},"|")),e.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570 ",F.level),e.createElement("span",{className:"ml15 mr15"},"|"),e.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570 "),e.createElement("span",null,F.study_count)),e.createElement(qe.Z,{dashed:!0})))})))),e.createElement("div",{className:"tc mt20 hide"},e.createElement(z.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:Pe.page||1,showQuickJumper:!0,total:S==null?void 0:S.shixuns_count,onChange:F=>{Pe.page=F,w(Pt({},Pe))}})))};var Wu=(0,j.connect)(({classroomList:t,shixunsList:n,loading:u})=>({classroomList:t,shixunsList:n,loading:u.effects}))(Hu),Vu=l(97612),k=l(59301),Gu=Object.defineProperty,zu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,lu=Object.getOwnPropertySymbols,Uu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,au=(t,n,u)=>n in t?Gu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,nt=(t,n)=>{for(var u in n||(n={}))Uu.call(n,u)&&au(t,u,n[u]);if(lu)for(var u of lu(n))Ju.call(n,u)&&au(t,u,n[u]);return t},Yu=(t,n)=>zu(t,Ku(n)),su=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const{Search:Qu}=X.default,Xu=({classroomList:t,loading:n,dispatch:u})=>{var p,V;const[b,q]=(0,e.useState)(nt({},(0,j.useParams)())),m=(0,j.useLocation)(),{actionTabs:a}=t,[_]=Ge.default.useForm(),{coursesLists:ye}=t,[S,Q]=(0,e.useState)([]),[de,Ce]=(0,e.useState)({}),[Pe,w]=(0,e.useState)(!1),[F,ie]=(0,e.useState)({page:1,type:"mine",order:"desc",limit:20,sort:"myshixuns_count",shixun_homework:!0}),[ve,Le]=(0,e.useState)(!1),[Ee,Oe]=(0,e.useState)({});(0,e.useEffect)(()=>{t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"&&(u({type:"classroomList/getCoursesLists",payload:nt({},F)}),Q([]))},[t.actionTabs.key,b.categoryId,F]);const[O,$,h,Ze]=(0,Vu.P)(),Me=R=>su(void 0,null,function*(){var Ve;w(!0);const ze=yield u({type:"classroomList/createCoursesHomework",payload:{coursesId:b.coursesId,category_id:(b==null?void 0:b.categoryId)||null,subjects_info:[{subject_id:(Ve=S[0])==null?void 0:Ve.id,stage_shixuns:R}]}});w(!1),ze.status||(Oe({courseId:b==null?void 0:b.coursesId,shixun_info:R}),Le(!0))}),Qe=()=>{(0,C.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"]),I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,o.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:Yu(nt({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:nt({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:b.coursesId}})};return t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"?null:k.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!0,onClose:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},open:t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B",key:"bottom",rootClassName:x.drawer,footer:k.createElement("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"}},k.createElement(A.ZP,{size:"middle",onClick:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"}},"\u53D6\u6D88"),k.createElement(A.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",loading:n["classroomList/createCoursesHomework"],onClick:()=>su(void 0,null,function*(){var R,Ve;if((S==null?void 0:S.length)===0)return I.ZP.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B"),!1;let ze=yield(0,Ct.Tr)({id:(R=S[0])==null?void 0:R.identifier,type:"subject",stage_item_id:[],sync_catelog:1,course_id:(Ve=t.detailTopBanner)==null?void 0:Ve.course_id});yield Me(ze==null?void 0:ze.no_use_list)}),type:"primary"},"\u786E\u5B9A"))},k.createElement("section",{className:"tc"},k.createElement(Qu,{placeholder:"\u8BFE\u7A0B\u540D\u79F0/\u8BFE\u7A0B\u6807\u8BC6/\u5408\u4F5C\u8005",enterButton:"\u641C\u7D22",size:"middle",className:x.search,onSearch:R=>{F.keyword=R,R&&(0,vt.tk)({name:R,copywriting:R,position:"Subject"}),ie(nt({},F))}})),k.createElement("section",{className:"edu-container"},k.createElement(st.Z,{spinning:n["classroomList/getCoursesLists"]},k.createElement("aside",null,k.createElement("div",{className:x.menuCourse},k.createElement("ul",null,k.createElement("li",null,"\u5DF2\u9009",k.createElement("span",{className:"c-blue"},S.length),"\u8BFE\u7A0B"),k.createElement("li",null,"\u5171",k.createElement("span",{className:"c-blue"},ye.subjects_count),"\u4E2A\u8BFE\u7A0B"),k.createElement("li",{className:"current",onClick:()=>{F.order=F.order==="asc"?"desc":"asc",F.sort="shixuns_count",ie(nt({},F))}},"\u5B9E\u8BAD\u6570",k.createElement("p",{className:`edu-sorter current ${F.sort==="shixuns_count"&&F.order}`},k.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),k.createElement("span",{className:"iconfont icon-sanjiaoxing-down"}))),k.createElement("li",{className:"current",onClick:()=>{F.order=F.order==="asc"?"desc":"asc",F.sort="myshixuns_count",ie(nt({},F))}},"\u5B66\u4E60\u4EBA\u6570",k.createElement("p",{className:`edu-sorter current ${F.sort==="myshixuns_count"&&F.order}`},k.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),k.createElement("span",{className:"iconfont icon-sanjiaoxing-down"}))),k.createElement("li",{className:`${F.type==="all"&&"c-blue"} current`,onClick:()=>{F.type="all",ie(nt({},F))}},"\u5168\u90E8\u8BFE\u7A0B"),k.createElement("li",{className:`${F.type==="mine"&&"c-blue"} current`,onClick:()=>{F.type="mine",ie(nt({},F))}},"\u6211\u7684\u8BFE\u7A0B"))),((p=ye==null?void 0:ye.subject_list)==null?void 0:p.length)===0&&k.createElement(fe.Z,null),(V=ye==null?void 0:ye.subject_list)==null?void 0:V.map(function(R,Ve){var ze,tt,J,r,ce,be;return k.createElement("div",{className:x.listItem,key:R.id,style:{cursor:"auto"}},k.createElement(ee.ZP,{checked:S.map(we=>we.id).includes(R.id),value:R.id,style:{marginTop:"1px"},disabled:(R==null?void 0:R.need_authorize)||(R==null?void 0:R.shixun_tag_num_name)=="\u672A\u53D1\u5E03",onChange:we=>{Q([{id:R.id,identifier:R.identifier}])}}),k.createElement("div",{className:x.info},k.createElement("div",{className:x.title},k.createElement("div",{className:x.titleLeft},k.createElement("div",null,k.createElement(j.Link,{to:`/paths/${R.id}`,target:"_blank"},k.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:R.title}})),(R==null?void 0:R.need_authorize)&&k.createElement("span",{onClick:()=>{(0,xe.rX)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002")},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),(R==null?void 0:R.shixun_tag_num_name)=="\u672A\u53D1\u5E03"&&k.createElement(G.Z,{zIndex:1e4,title:"\u5B9E\u8DF5\u8BFE\u7A0B\u9700\u53D1\u5E03\u540E\u624D\u80FD\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\uFF0C\u70B9\u51FB\u540D\u79F0\u53EF\u524D\u5F80\u8BFE\u7A0B\u8BE6\u60C5"},k.createElement("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10"},"\u672A\u53D1\u5E03"))),k.createElement(G.Z,{zIndex:1e4,title:"\u524D\u5F80\u9009\u7528\u662F\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u9875\u9762\u540E\uFF0C\u70B9\u51FB\u201C\u53D1\u9001\u201D\u6309\u94AE\uFF0C\u5C06\u6240\u9700\u5B9E\u8DF5\u9879\u76EE\u53D1\u9001\u81F3\u5F53\u524D\u8BFE\u5802"},k.createElement(A.ZP,{ghost:!0,href:`/paths/${R.id}`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u524D\u5F80\u9009\u7528")))),k.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},k.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:R.description}})),k.createElement(qe.Z,{dashed:!0}),k.createElement("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"}},k.createElement("div",null,(ze=R==null?void 0:R.content)!=null&&ze.member_user_names?k.createElement(G.Z,{overlayClassName:x["tooltip-content"],title:k.createElement("div",null,k.createElement("span",{dangerouslySetInnerHTML:{__html:(tt=R==null?void 0:R.content)==null?void 0:tt.member_user_names}}))},k.createElement("span",{className:x.authorname,dangerouslySetInnerHTML:{__html:(J=R==null?void 0:R.content)==null?void 0:J.member_user_names}})):(R==null?void 0:R.member_user_names)&&k.createElement(G.Z,{title:k.createElement("div",null,k.createElement("span",null,R.member_user_names))},k.createElement("span",{className:x.authorname},R.member_user_names)),(r=R==null?void 0:R.content)!=null&&r.author_school_name?k.createElement(G.Z,{overlayClassName:x["tooltip-content"],title:k.createElement("div",null,k.createElement("span",{dangerouslySetInnerHTML:{__html:(ce=R==null?void 0:R.content)==null?void 0:ce.author_school_name}}))},k.createElement("span",{className:x.authorname,dangerouslySetInnerHTML:{__html:(be=R==null?void 0:R.content)==null?void 0:be.author_school_name}})):(R==null?void 0:R.author_school_name)&&k.createElement(G.Z,{title:k.createElement("div",null,k.createElement("span",null,R.author_school_name))},k.createElement("span",{className:x.authorname},R.author_school_name))),k.createElement("div",null,k.createElement("span",{className:"mr30"},"\u7AE0\u8282 \xA0",R.stage_count),k.createElement("span",{className:"mr30"},"\u5B9E\u8BAD \xA0",R.shixuns_count),k.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570 \xA0",R.myshixuns_count)))))})))),k.createElement("div",{className:"tc mt20"},k.createElement(z.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,current:F.page||1,showQuickJumper:!0,total:ye==null?void 0:ye.subjects_count,onChange:R=>{F.page=R,u({type:"classroomList/getCoursesLists",payload:nt({},F)})}})),k.createElement(Dt.Z,{resdata:de,type:"subject",okloading:Pe,oktext:"\u4E00\u952E\u590D\u5236\u5E76\u4F7F\u7528",onok:R=>{Me(R)}}),k.createElement(At.Z,{source:"\u5B9E\u8BAD",showModal:ve,onCancel:()=>Le(!1),info:Ee,onOk:Qe}))};var qu=(0,j.connect)(({classroomList:t,loading:n})=>({classroomList:t,loading:n.effects}))(Xu),en=l(60643),Et=l(59301),tn=Object.defineProperty,ou=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,ru=(t,n,u)=>n in t?tn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,iu=(t,n)=>{for(var u in n||(n={}))un.call(n,u)&&ru(t,u,n[u]);if(ou)for(var u of ou(n))nn.call(n,u)&&ru(t,u,n[u]);return t},ln=({styles:t={},params:n,setisshowmodal:u,user:p})=>{var V;return Et.createElement("section",{className:"tc animated fadeIn",style:iu(iu({},{color:"#999",margin:"200px auto"}),t)},Et.createElement("img",{src:en.z3}),Et.createElement("p",{className:"mt20 font14"},`\u8BE5${n.category?"\u5206\u7EC4":"\u8BFE\u7A0B"}\u65E0\u8BFE\u7A0B\u5B9E\u9A8C\uFF0C\u53EF\u4EE5\u4E0B\u65B9\u6309\u94AE\u6216\u53F3\u4E0A\u65B9\u201C\u9009\u7528\u5B9E\u9A8C\u201D\u6309\u94AE\u521B\u5EFA\u4F5C\u4E1A`),Et.createElement("div",{style:{marginTop:"30px"}},Et.createElement(A.ZP,{disabled:((V=p==null?void 0:p.userInfo)==null?void 0:V.user_status)===2,onClick:()=>{u(!0)},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px",marginRight:"20px"}},"\u9009\u7528\u5B9E\u9A8C"),Et.createElement(A.ZP,{onClick:()=>{(0,C.xg)("https://www.educoder.net/forums/4909")},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px"}},"\u65B0\u5EFA\u4F5C\u4E1A\u6307\u5F15")))},_e={flex_box_center:"flex_box_center___i0kQ7",flex_space_between:"flex_space_between___st8Nm",flex_box_vertical_center:"flex_box_vertical_center___cGman",flex_box_center_end:"flex_box_center_end___xCqb1",flex_box_column:"flex_box_column___90t8q",bg:"bg___yvvvB",containerDesc:"containerDesc___McNkA",tablestyle:"tablestyle____NWqR",listItem:"listItem___Kb3j3",info:"info___QEKlY",title:"title___IjCCo",titleLeft:"titleLeft___iZ9Qh",titleRight:"titleRight___QK1TN",moveCategory:"moveCategory___ydIP9",name:"name___CCaOX",categoryName:"categoryName___cyGX3",schedule:"schedule___Dx5uk",fnSign:"fnSign___oPdpV",spanSize:"spanSize___LVOA3",classromediv:"classromediv___LNulU",glow:"glow___KEPta",action:"action___WEeMi",btn:"btn___anrwi",btnSort:"btnSort___iBwPq",tips:"tips___ezxph",fixedBottom:"fixedBottom___RTnOi",left:"left___aDYtw",right:"right___txYei",acitons:"acitons___iwBUY",actionBtns:"actionBtns___wvnKM",cancel:"cancel___VgzVn",selectBtn:"selectBtn___mMh11",selectBtn1:"selectBtn1___DNQsU",infoIcon:"infoIcon___fxDKp",infoStuIcon:"infoStuIcon___eoBo6",flexBox:"flexBox____AlDk",iconH:"iconH___Hmjwy",iconV:"iconV___VhZ00",actionIcon:"actionIcon___MWxMa",dro:"dro___bzbDZ",progressInfo:"progressInfo___bQbcf",authorized:"authorized___ZUIgn",btn_warp:"btn_warp___GFOwC",buttonitem:"buttonitem___mOwsZ"},an=l(37639),cu=l(70858),sn=l(41805),on=l(24668),rn=l(34359),mu=l(60761),i=l(59301),cn=Object.defineProperty,mn=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,du=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Eu=(t,n,u)=>n in t?cn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,St=(t,n)=>{for(var u in n||(n={}))En.call(n,u)&&Eu(t,u,n[u]);if(du)for(var u of du(n))pn.call(n,u)&&Eu(t,u,n[u]);return t},pu=(t,n)=>mn(t,dn(n)),Ye=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())}),fn=({v:t,k:n,match:u,selectArrs:p,setSelectArrs:V,setSelectArrsAll:b,selectArrsAll:q,classroomList:m,dispatch:a,selectshow:_,batchState:ye,pageSize:S,page:Q,manageAllGroup:de,user:Ce,getData:Pe,paramst:w})=>{var F,ie,ve,Le,Ee,Oe,O;const $=St(St({},(0,j.useParams)()),w),[h,Ze]=(0,e.useState)([]),[Me,Qe]=(0,e.useState)(!1),[R,Ve]=(0,e.useState)(!1),[ze,tt]=(0,e.useState)(!0),J=(0,e.useRef)(),[r,ce]=(0,e.useState)(!1);$.category=$.categoryId,$.id=$.coursesId,$.page=Q,$.limit=S;function be(){return Ye(this,null,function*(){let d=yield(0,H.ZP)(`/api/homework_commons/${t.homework_id}/group_settings_statistics.json`,{method:"get",params:St({},$)});Ze(d.data)})}(0,e.useEffect)(()=>{var d;Ze([]),Qe(!1),new Date(t==null?void 0:t.student_passed_time).getTime()>new Date(t==null?void 0:t.end_time_s).getTime()&&((d=t==null?void 0:t.status)!=null&&d.includes("\u5DF2\u622A\u6B62"))&&(t==null?void 0:t.checked_challenge_count)-(t==null?void 0:t.finished_challenge_count)===0?(Ve(!1),tt(!1)):((t==null?void 0:t.checked_challenge_count)-(t==null?void 0:t.finished_challenge_count)===0&&new Date(t==null?void 0:t.student_passed_time).getTime()ne.status.indexOf(d)===0},{title:"\u63D0\u4EA4\u60C5\u51B5",dataIndex:"statistics",key:"statistics",width:80,render:d=>{var ne,me;return d==="--"?d:i.createElement("span",null,i.createElement("span",null,(ne=d==null?void 0:d.split("/"))==null?void 0:ne[0]),"\xA0/\xA0",i.createElement("span",null,(me=d==null?void 0:d.split("/"))==null?void 0:me[1]))}},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:$.order_by==="end_time"?$.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8865\u4EA4\u65F6\u95F4",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:$.order_by==="late_time"?$.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED\u8001\u5E08",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:d=>d==="--"||!d?"--":i.createElement("span",{title:d},d)}],Ke=d=>{if((0,xe.tJ)(a,!0)){if(d.can_view_details){(0,C.xg)(`/shixuns/${d.shixun_identifier}/challenges?homework_common_id=${d==null?void 0:d.homework_id}`);return}if((0,o.GJ)()){(0,C.xg)(`/shixuns/${d.forked_shixun_identifier}/challenges?homework_common_id=${d==null?void 0:d.homework_id}`);return}d.redo?E.default.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u518D\u60F3\u60F3",content:i.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:()=>Ye(void 0,null,function*(){const ne=yield(0,rn.L8)({id:d.myshixun_identifier,url:d.url});ne&&(0,mu.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:ne.shixun_identifier,homework_common_id:d.homework_id,courseId:$.coursesId})})}):(0,mu.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:d.shixun_identifier,homework_common_id:d.homework_id,courseId:$.coursesId})}},$t=d=>Ye(void 0,null,function*(){const ne=yield(0,H.ZP)(`/api/courses/${$==null?void 0:$.coursesId}/sync_shixuns.json`,{method:"post",body:{homework_common_ids:[d]}});(ne==null?void 0:ne.status)===0&&(a({type:"classroomList/setActionTabs",payload:{}}),I.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),Pe())});return i.createElement("div",{className:_e.listItem,onClick:d=>{d.stopPropagation(),(!((0,o.GJ)()&&ye)||(0,o.GJ)()&&ye&&J.current&&!J.current.contains(d.target))&&((0,o.dE)()?(0,C.xg)(`/classrooms/${$.coursesId}/shixun_homework/${t.homework_id}/detail?tabs=1`):(0,C.xg)(`/classrooms/${$.coursesId}/shixun_homework/${t.homework_id}/detail?tabs=0`))},key:n},(0,o.GJ)()&&ye&&i.createElement("span",{ref:J},i.createElement(P.default,{style:{padding:"10px"},checked:p.includes(t.homework_id),value:t.homework_id,onClick:d=>{d.stopPropagation()},onChange:d=>{let ne=p.indexOf(t.homework_id);p.indexOf(t.homework_id)>-1?(V(p.filter(me=>me!==t.homework_id)),b(q.filter(me=>me.homework_id!==t.homework_id))):(b(q.concat(t)),V(p.concat(t.homework_id)))}})),i.createElement("div",{className:_e.info},i.createElement("div",{className:_e.title},i.createElement("div",{className:_e.titleLeft,style:(0,o.dE)()?{paddingRight:(t==null?void 0:t.checked_challenge_count)-(t==null?void 0:t.finished_challenge_count)?60:140}:{}},(0,o.GJ)()&&i.createElement(on.Z,{value:t.status},i.createElement(C.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[t.status]})),(0,o.dE)()&&i.createElement(C.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:t.status}),i.createElement(G.Z,{title:t.name},i.createElement("span",{className:_e.name},t.name)),(0,o.GJ)()&&t.related_poll&&i.createElement(G.Z,{title:"\u672C\u4F5C\u4E1A\u5305\u542B\u8C03\u67E5\u95EE\u5377"},i.createElement("i",{onClick:d=>{d.stopPropagation(),(0,C.xg)(`/classrooms/${$.coursesId}/poll/${t.poll_id}/detail`)},className:"iconfont icon-tiaochawenjuan ml5",style:{color:"#27C970"}})),(0,o.dE)()&&t.related_poll&&i.createElement(G.Z,{title:"\u672C\u4F5C\u4E1A\u5305\u542B\u8C03\u67E5\u95EE\u5377"+(t.poll_commit_status?"(\u5DF2\u5B8C\u6210)":"(\u672A\u5B8C\u6210)")},i.createElement("i",{onClick:d=>{var ne;if(d.stopPropagation(),t.poll_status===1){I.ZP.warning("\u8C03\u67E5\u95EE\u5377\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08\u67E5\u770B\u60C5\u51B5");return}t.poll_commit_status?(0,C.xg)(`/classrooms/${$.coursesId}/poll/${t.poll_id}/detail?tabs=0`):(0,C.xg)(`/classrooms/${$.coursesId}/poll/${t.poll_id}/users/${(ne=Ce.userInfo)==null?void 0:ne.login}`)},className:"iconfont icon-tiaochawenjuan ml5",style:{color:t.poll_commit_status?"#27C970":"#8DC7A7"}})),(0,o.G5)()&&(t==null?void 0:t.shixun_change)&&i.createElement(an.Z,{open:r,onOpenChange:d=>{ce(d)},placement:"bottomLeft",title:null,content:i.createElement("div",{style:{width:"310px",color:"#000"},onClick:d=>d.stopPropagation()},i.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u5B9E\u8BAD\u4F5C\u4E1A\u4E2D"),i.createElement("div",{className:_e.btn_warp},i.createElement(A.ZP,{size:"small",onClick:()=>ce(!1)},"\u5FFD\u7565"),i.createElement(A.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{ce(!1),a({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>$t(t==null?void 0:t.homework_id)}})}},"\u786E\u8BA4\u540C\u6B65"),i.createElement(A.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,C.xg)(`/shixuns/${t==null?void 0:t.forked_shixun_identifier}/challenges`)},"\u524D\u5F80\u67E5\u770B")))},i.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:d=>d.stopPropagation()})),!!((F=t.schools)!=null&&F.length)&&i.createElement(G.Z,{title:"\u8BE5\u8BFE\u7A0B\u5B9E\u9A8C\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},i.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 mr10 c-orange"})),(t==null?void 0:t.high_resources_consume)&&!(t!=null&&t.high_resources_consume_permission)&&i.createElement(Bt.Z,{type:"shixun",style:{marginLeft:10}}),(t==null?void 0:t.high_resources_consume)&&(t==null?void 0:t.high_resources_consume_permission)&&i.createElement("span",{className:_e.authorized},"\u5DF2\u6388\u6743"),((ie=t==null?void 0:t.shixun_marks)==null?void 0:ie.includes("ARM"))&&i.createElement("span",{className:"tag-badge ml10"},"ARM"),((ve=t==null?void 0:t.shixun_marks)==null?void 0:ve.includes("GPU"))&&i.createElement("span",{className:"tag-badge ml10"},"GPU")),i.createElement("div",{className:_e.titleRight},(0,o.GJ)()&&(t==null?void 0:t.status.indexOf("\u672A\u53D1\u5E03"))===0&&i.createElement(j.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){var ne;if(d.stopPropagation(),d.preventDefault(),((ne=Ce==null?void 0:Ce.userInfo)==null?void 0:ne.user_status)===2){(0,xe.Rd)();return}let me=()=>{a({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:w,type:2,manage_all_group:de}})};t!=null&&t.high_resources_consume&&!(t!=null&&t.high_resources_consume_permission)?a({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:$.coursesId,type:"shixun",type_id:t.homework_id,name:t.name,fn:()=>{a({type:"classroomList/getClassroomTeacherShixunsList",payload:pu(St({},$),{type:4})}),me()}}}):me()})},i.createElement("aside",{className:_e.flexBox},i.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),i.createElement("div",null,"\u53D1\u5E03"))),(0,o.dE)()&&i.createElement("div",{className:_e.actionIcon},R?i.createElement("i",{className:"iconfont icon-yiwancheng1"}):ze?"":i.createElement("i",{className:"iconfont icon-jiezhihoutongguan"}),!((Le=t.status)!=null&&Le.includes("\u5DF2\u622A\u6B62"))&&!((Ee=t.status)!=null&&Ee.includes("\u5BFC\u5165"))&&i.createElement("aside",{onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),Ke(t)}),className:_e.flexBox,style:{marginRight:10}},i.createElement("i",{className:"iconfont icon-kaishixuexi font14"}),i.createElement("div",null,"\u5F00\u59CB\u5B66\u4E60")),(((Oe=t.status)==null?void 0:Oe.includes("\u5DF2\u622A\u6B62"))||((O=t.status)==null?void 0:O.includes("\u5BFC\u5165")))&&i.createElement("aside",{onClick:d=>Ye(void 0,null,function*(){var ne;(ne=t.status)!=null&&ne.includes("\u5BFC\u5165")||(d.stopPropagation(),d.preventDefault(),(0,C.xg)(`/classrooms/${$.coursesId}/shixun_homework/${t.homework_id}/${t.student_work_id}/comment`))}),className:_e.flexBox,style:{marginRight:10}},i.createElement("i",{className:"iconfont icon-chakanzuoye font14"}),i.createElement("div",null,"\u67E5\u770B\u4F5C\u54C1"))),(0,o.GJ)()&&i.createElement(pe.Z,{placement:"bottomCenter",overlayClassName:_e.dro,dropdownRender:()=>i.createElement(g.default,null,t.status!=="\u5BFC\u5165"&&i.createElement(g.default.Item,{key:1,style:{textAlign:"center"}},i.createElement("a",{onClick:d=>Ye(void 0,null,function*(){var ne;if(d.stopPropagation(),d.preventDefault(),((ne=Ce==null?void 0:Ce.userInfo)==null?void 0:ne.user_status)===2){(0,xe.Rd)();return}let me=()=>{a({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:$,type:2,manage_all_group:de}})};t!=null&&t.high_resources_consume&&!(t!=null&&t.high_resources_consume_permission)?a({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:$.coursesId,type:"shixun",type_id:t.homework_id,name:t.name,fn:()=>{a({type:"classroomList/getClassroomTeacherShixunsList",payload:pu(St({},$),{type:4})}),me()}}}):me()})},"\u7ACB\u5373\u53D1\u5E03")),t.status!=="\u5BFC\u5165"&&i.createElement(g.default.Item,{key:2,style:{textAlign:"center"}},i.createElement("a",{onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),a({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:$,type:2}})})},"\u7ACB\u5373\u622A\u6B62")),t.status==="\u5BFC\u5165"&&i.createElement(g.default.Item,{key:23,style:{textAlign:"center"}},i.createElement(j.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),a({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:t==null?void 0:t.name,id:t==null?void 0:t.homework_id,type:"practice"}})})},"\u8865\u5145\u6210\u7EE9")),i.createElement(g.default.Item,{key:22,style:{textAlign:"center"}},i.createElement(j.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),a({type:"classroomList/setActionTabs",payload:{key:"\u5220\u9664",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:$,status:t==null?void 0:t.status}})})},"\u7ACB\u5373\u5220\u9664")),t.status!=="\u5BFC\u5165"&&(t==null?void 0:t.status.indexOf("\u672A\u53D1\u5E03"))<0&&i.createElement(g.default.Item,{key:3,style:{textAlign:"center"}},i.createElement(j.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),a({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const ne=yield(0,sn.Vs)({categoryId:t.homework_id});a({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(ne==null?void 0:ne.status)===0&&I.ZP.success(ne==null?void 0:ne.message)})},"\u66F4\u65B0\u6210\u7EE9")),t.status!=="\u5BFC\u5165"&&i.createElement(g.default.Item,{key:23,style:{textAlign:"center"}},i.createElement(j.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),Ke(t)})},"\u8FDB\u5165\u5B9E\u8BAD")),i.createElement(g.default.Item,{key:5,style:{textAlign:"center"}},i.createElement("a",{onClick:d=>{d.stopPropagation(),d.preventDefault(),a({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u547D\u540D",selectArrs:t,params:$}})}},"\u91CD\u65B0\u547D\u540D")),t.status!=="\u5BFC\u5165"&&i.createElement(g.default.Item,{key:6,style:{textAlign:"center"}},i.createElement(j.Link,{target:"_blank",onClick:d=>{d.stopPropagation()},to:`/classrooms/${$.coursesId}/shixun_homework/${t.homework_id}/detail?tabs=3`},"\u9AD8\u7EA7\u8BBE\u7F6E")))},i.createElement("aside",{onClick:d=>d.stopPropagation(),className:_e.flexBox,style:{cursor:"default"}},i.createElement("i",{className:"iconfont icon-gengduo4"}),i.createElement("div",null,"\u66F4\u591A"))))),(0,o.GJ)()&&i.createElement("p",{className:_e.infoIcon},i.createElement("span",{className:"c-grey-333 mr20"},t.author),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D"].includes(t.status)&&!!t.uncommit_count&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u672A\u505A\u9898"),t.uncommit_count,"\u4EBA"),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u5DF2\u7ED3\u675F"].includes(t.status)&&!!t.commit_count&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u5DF2\u505A\u9898"),t.commit_count,"\u4EBA"),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u5DF2\u7ED3\u675F"].includes(t.status)&&!!t.compelete_count&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u5DF2\u5B8C\u6210"),t.compelete_count,"\u4EBA"),["\u672A\u5F00\u59CB"].includes(t.status)&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u5F00\u59CB\u65F6\u95F4"),t.publish_time),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D"].includes(t.status)&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4"),t.end_time),["\u5DF2\u7ED3\u675F"].includes(t.status)&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u7ED3\u675F\u65F6\u95F4"),t.status_time),!!(t!=null&&t.late_time)&&(t==null?void 0:t.late_time)!=="--"&&i.createElement("span",{className:"c-grey-999"},i.createElement("span",{className:"mr5"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),t==null?void 0:t.late_time),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u5DF2\u7ED3\u675F"].includes(t.status)&&i.createElement("span",{className:_e.iconV,onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),Me||be(),Qe(!Me)})},i.createElement("i",{className:`iconfont icon-${Me?"shouqi":"xiala2"}`})," ")),(0,o.dE)()&&i.createElement("span",{className:_e.infoStuIcon},i.createElement("span",{className:"c-grey-333"},t.author),i.createElement("span",{className:"c-grey-999 ml20"},i.createElement("i",{className:"iconfont icon-wanchengjindu font12 mr5"}),i.createElement("span",null,i.createElement("span",{className:"c-light-primary"},t==null?void 0:t.finished_challenge_count),"/",t==null?void 0:t.checked_challenge_count)),t.status.includes("\u5DF2\u622A\u6B62")&&!!(t!=null&&t.status_time)&&i.createElement("span",{className:"c-grey-999 ml20"},i.createElement("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",t==null?void 0:t.status_time),i.createElement("span",{className:"ml20 c-grey-999"},i.createElement("i",{className:"iconfont icon-shijian1 font12 mr5"}),t==null?void 0:t.publish_time," \u81F3 ",t==null?void 0:t.end_time," "),!!(t!=null&&t.late_time)&&(t==null?void 0:t.late_time)!=="--"&&i.createElement("span",{className:"c-grey-999 ml20"},i.createElement("span",{className:"mr5"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),t==null?void 0:t.late_time)),(0,o.GJ)()&&!t.status.includes("\u672A\u53D1\u5E03")&&Me&&h.length>5&&i.createElement(cu.default,{rowKey:"shixun_identifier",scroll:{y:240},onRow:d=>({onClick:ne=>{ne.stopPropagation(),ne.preventDefault()}}),onHeaderRow:(d,ne)=>({onClick:me=>{me.stopPropagation(),me.preventDefault()}}),pagination:!1,dataSource:h,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:(d,ne,me)=>{me.field&&($.order_by=me.field),me.order||($.sort_direction="asc"),me.order==="ascend"&&($.sort_direction="asc"),me.order==="descend"&&($.sort_direction="desc"),me.order||($.sort_direction="asc"),be()},columns:we}),(0,o.GJ)()&&!t.status.includes("\u672A\u53D1\u5E03")&&Me&&h.length<6&&h.length>0&&i.createElement(cu.default,{rowKey:"shixun_identifier",onRow:d=>({onClick:ne=>{ne.stopPropagation(),ne.preventDefault()}}),onHeaderRow:(d,ne)=>({onClick:me=>{me.stopPropagation(),me.preventDefault()}}),pagination:!1,dataSource:h,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:(d,ne,me)=>{me.field&&($.order_by=me.field),me.order||($.sort_direction="asc"),me.order==="ascend"&&($.sort_direction="asc"),me.order==="descend"&&($.sort_direction="desc"),me.order||($.sort_direction="asc"),be()},columns:we})))},_n=l(20750),Fn=l(70863),yn=l(13872),hn=l(82326),gn=l(24017),vn=l(64796),Bn=l.n(vn),zt=l(87218),Kt=l(67277),se=l(59301),Dn=Object.defineProperty,Cn=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,Fu=(t,n,u)=>n in t?Dn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,pt=(t,n)=>{for(var u in n||(n={}))fu.call(n,u)&&Fu(t,u,n[u]);if(Mt)for(var u of Mt(n))_u.call(n,u)&&Fu(t,u,n[u]);return t},yu=(t,n)=>Cn(t,An(n)),xn=(t,n)=>{var u={};for(var p in t)fu.call(t,p)&&n.indexOf(p)<0&&(u[p]=t[p]);if(t!=null&&Mt)for(var p of Mt(t))n.indexOf(p)<0&&_u.call(t,p)&&(u[p]=t[p]);return u},Ut=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});Re().extend(Bn());const bn=({data:t,value:n,onChange:u})=>{var p,V,b,q;const[m,a]=(0,e.useState)({leftSearch:"",rigthSearch:""}),[_,ye]=(0,e.useState)([]);return(0,e.useEffect)(()=>{ye((n==null?void 0:n.length)>0?t==null?void 0:t.filter(S=>n==null?void 0:n.includes(S==null?void 0:S.id)):[])},[n]),se.createElement("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"}},se.createElement("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"}},se.createElement(P.default,{indeterminate:(_==null?void 0:_.length)>0&&(_==null?void 0:_.length)<(t==null?void 0:t.length),checked:(_==null?void 0:_.length)==(t==null?void 0:t.length),onChange:S=>{u(S.target.checked?t==null?void 0:t.map(Q=>Q==null?void 0:Q.id):[])}},"\u5168\u9009"),se.createElement("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"}},se.createElement(X.default.Search,{className:"p20",style:{paddingBottom:0},placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2",value:m.leftSearch,onChange:S=>{a(yu(pt({},m),{leftSearch:S.target.value}))}}),se.createElement("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"}},((p=m.leftSearch?t==null?void 0:t.filter(S=>{var Q;return(Q=S==null?void 0:S.name)==null?void 0:Q.includes(m.leftSearch)}):t)==null?void 0:p.length)!==0?se.createElement(P.default.Group,{value:n,onChange:S=>{u(S)}},se.createElement(W.Z,{direction:"vertical"},(V=m.leftSearch?t==null?void 0:t.filter(S=>{var Q;return(Q=S==null?void 0:S.name)==null?void 0:Q.includes(m.leftSearch)}):t)==null?void 0:V.map((S,Q)=>se.createElement(P.default,{key:Q,value:S.id},S==null?void 0:S.name)))):se.createElement(fe.Z,{styles:{margin:"0 auto"}})))),se.createElement("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"}},se.createElement("div",null,"\u5DF2\u9009\u62E9",(_==null?void 0:_.length)||0,"\u4E2A\u5206\u73ED"),se.createElement("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"}},se.createElement(X.default.Search,{className:"p20",style:{paddingBottom:0},placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2",value:m.rigthSearch,onChange:S=>{a(yu(pt({},m),{rigthSearch:S.target.value}))}}),se.createElement("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"}},((b=m.rigthSearch?_==null?void 0:_.filter(S=>{var Q;return(Q=S==null?void 0:S.name)==null?void 0:Q.includes(m.rigthSearch)}):_)==null?void 0:b.length)!==0?(q=m.rigthSearch?_==null?void 0:_.filter(S=>{var Q;return(Q=S==null?void 0:S.name)==null?void 0:Q.includes(m.rigthSearch)}):_)==null?void 0:q.map((S,Q)=>se.createElement(T.Z,{key:Q,wrap:!1,align:"middle",justify:"space-between"},se.createElement(v.Z,null,S==null?void 0:S.name),se.createElement(v.Z,null,se.createElement("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:()=>{u(n==null?void 0:n.filter(de=>de!==(S==null?void 0:S.id)))}})))):se.createElement(fe.Z,{styles:{margin:"0 auto"}})))))},Pn=t=>{var n=t,{classroomList:u,dispatch:p,user:V,getData:b}=n,q=xn(n,["classroomList","dispatch","user","getData"]),m,a,_,ye,S,Q;const de=(0,j.useParams)(),[Ce]=Ge.default.useForm(),Pe=Ge.default.useWatch("penalty_type",Ce),w=((m=u==null?void 0:u.actionTabs)==null?void 0:m.key)==="\u6279\u91CF\u8865\u4EA4",[,F,ie,ve]=(0,Kt.U)(zt.c_,pt(pt({},de),(a=u==null?void 0:u.actionTabs)==null?void 0:a.params)),[,,Le,Ee]=(0,Kt.U)(zt.nP,{course_id:de==null?void 0:de.coursesId,homework_ids:(_=u==null?void 0:u.actionTabs)==null?void 0:_.selectArrs}),[,Oe,O]=(0,Kt.U)(zt.sm,{course_id:de==null?void 0:de.coursesId,homework_ids:(ye=u==null?void 0:u.actionTabs)==null?void 0:ye.selectArrs}),$=(...h)=>Ut(void 0,[...h],function*(Ze={}){Le({});const Me=yield ie({page:1,limit:2e4,homework_id:u.actionTabs.type===1?"":u.actionTabs.selectArrs[0]})});return(0,e.useEffect)(()=>{w&&$()},[w]),se.createElement(E.default,{centered:!0,title:(S=u==null?void 0:u.actionTabs)==null?void 0:S.key,width:800,open:w,cancelText:"\u6682\u4E0D\u8865\u4EA4",okText:"\u5F00\u542F\u8865\u4EA4",onCancel:()=>{p({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:Oe,onOk:()=>Ut(void 0,null,function*(){Ce.submit()})},se.createElement("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"}},"\u89C4\u5219\u8BF4\u660E\uFF1A\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B\u5F53\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u4E0D\u53EF\u5173\u95ED\u8865\u4EA4\uFF1B\u5F53\u4F5C\u4E1A\u72B6\u6001\u4E3A\u672A\u53D1\u5E03\u6216\u8005\u4F5C\u4E1A\u5DF2\u5F00\u542F\u7EDF\u4E00\u8865\u4EA4\u65F6\uFF0C\u65B0\u6279\u91CF\u8865\u4EA4\u89C4\u5219\u4E0D\u751F\u6548\u3002"),se.createElement(Ge.default,{form:Ce,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_penalty:20},onFinish:h=>Ut(void 0,null,function*(){var Ze,Me,Qe;const R=yield O(((Ze=ve==null?void 0:ve.course_groups)==null?void 0:Ze.length)>0?{unified_late:((Me=ve==null?void 0:ve.course_groups)==null?void 0:Me.length)<=0,allow_late_settings:[pt({},h)]}:pt({unified_late:((Qe=ve==null?void 0:ve.course_groups)==null?void 0:Qe.length)<=0},h));(R==null?void 0:R.status)==0&&(I.ZP.success("\u8865\u4EA4\u8BBE\u7F6E\u6210\u529F"),p({type:"classroomList/setActionTabs",payload:{}}),b&&b())})},se.createElement(T.Z,{wrap:!1,gutter:20},se.createElement(v.Z,{flex:1},se.createElement(Ge.default.Item,{label:"\u8865\u4EA4\u6263\u5206",name:"late_penalty",rules:[{required:!0,validator(h,Ze,Me){return Pe===2&&Ze>100?Promise.reject(se.createElement("span",{style:{marginLeft:100}},"\u8BF7\u91CD\u65B0\u8F93\u5165\uFF0C\u8303\u56F40-100")):Promise.resolve()}},{required:!0,message:se.createElement("span",{style:{marginLeft:100}},"\u8BF7\u8F93\u5165\u8865\u4EA4\u6263\u5206")}]},se.createElement(X.default,{placeholder:"\u8BF7\u8F93\u5165\u8865\u4EA4\u6263\u5206",min:0,type:"number",suffix:Pe==1?"\u5206":"%",max:Pe===1?Number.MAX_SAFE_INTEGER:100,addonBefore:se.createElement(Ge.default.Item,{name:"penalty_type",noStyle:!0,normalize:h=>(Ce.setFieldsValue({late_penalty:h==2?20:5}),h)},se.createElement(hn.default,{style:{width:100},options:[{value:2,label:"\u767E\u5206\u6BD4"},{value:1,label:"\u5206\u503C"}]}))}))),se.createElement(v.Z,{flex:"390px"},se.createElement(Ge.default.Item,{label:"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4",name:"late_time",rules:[{required:!0,validator(h,Ze,Me){return Ze&&Re()(Ze).startOf("minute")<=Re()().startOf("minute")?Promise.reject("\u4F5C\u4E1A\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u6B64\u523B"):Ze&&Re()(Ze).startOf("minute")<=Re()(Ee==null?void 0:Ee.max_late_time).startOf("minute")?(I.ZP.warning(`\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5C0F\u4E8E\u9009\u4E2D\u4F5C\u4E1A\u4E2D\u6700\u665A\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1A${Ee==null?void 0:Ee.max_late_time}`),Promise.reject("")):Promise.resolve()}},{required:!0,message:"\u8BF7\u5148\u8BBE\u7F6E\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"}]},se.createElement(gn.default,{placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",style:{width:"100%"},disabledDate:h=>(0,C.BO)(h,{startTime:Ee==null?void 0:Ee.max_late_time}),disabledTime:h=>(0,C.hv)(h,{compared:Ee==null?void 0:Ee.max_late_time}),format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:Re()("00:00:00","HH:mm:ss")}})))),((Q=ve==null?void 0:ve.course_groups)==null?void 0:Q.length)>0&&se.createElement(st.Z,{spinning:F},se.createElement(Ge.default.Item,{name:"group_id",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u73ED\u7EA7"}]},se.createElement(bn,{data:(ve==null?void 0:ve.course_groups)||[],onChange:h=>{Le({group_ids:h})}})))))};var Sn=(0,j.connect)(({classroomList:t,user:n})=>({classroomList:t,user:n}))(Pn),On=l(13509),Nn=l(77627),s=l(59301),kn=Object.defineProperty,wn=Object.defineProperties,In=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,hu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,vu=(t,n,u)=>n in t?kn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,at=(t,n)=>{for(var u in n||(n={}))hu.call(n,u)&&vu(t,u,n[u]);if(Rt)for(var u of Rt(n))gu.call(n,u)&&vu(t,u,n[u]);return t},jt=(t,n)=>wn(t,In(n)),Tn=(t,n)=>{var u={};for(var p in t)hu.call(t,p)&&n.indexOf(p)<0&&(u[p]=t[p]);if(t!=null&&Rt)for(var p of Rt(t))n.indexOf(p)<0&&gu.call(t,p)&&(u[p]=t[p]);return u},Bu=(t,n,u)=>new Promise((p,V)=>{var b=a=>{try{m(u.next(a))}catch(_){V(_)}},q=a=>{try{m(u.throw(a))}catch(_){V(_)}},m=a=>a.done?p(a.value):Promise.resolve(a.value).then(b,q);m((u=u.apply(t,n)).next())});const Ln=t=>{var n=t,{classroomList:u,globalSetting:p,shixunHomeworks:V,user:b,loading:q,dispatch:m,match:a}=n,_=Tn(n,["classroomList","globalSetting","shixunHomeworks","user","loading","dispatch","match"]),ye,S,Q,de,Ce,Pe,w;const F=(0,j.useLocation)(),ie=(0,j.useParams)(),[ve]=(0,j.useSearchParams)(),Le=ie.categoryId,[Ee,Oe]=(0,e.useState)([]),[O,$]=(0,e.useState)([]),{detailShixunsList:h,detailLeftMenus:Ze,detailTopBanner:Me,taskList:Qe}=u,[R,Ve]=(0,e.useState)(""),[ze,tt]=(0,e.useState)(!1),[J,r]=(0,e.useState)({limit:20,status:Number(ve.get("tabs"))?String(parseInt(ve.get("tabs"))):"0"}),[ce,be]=(0,e.useState)("\u9ED8\u8BA4\u6392\u5E8F"),[we,Ke]=(0,e.useState)(!1),[$t,d]=(0,e.useState)(!1),[ne,me]=(0,e.useState)("fixed"),[Du]=(0,e.useState)(document.getElementById("footer")),[Cu,Mn]=(0,e.useState)(1),[Rn,nl]=(0,e.useState)(!1);let Jt;J.id=ie.coursesId,J.type=4,ie.categoryId?J.category=ie.categoryId:delete J.category,(0,e.useEffect)(()=>{u.actionTabs.key==="\u6E05\u9664\u9009\u62E9\u6570\u636E"&&(Oe([]),$([])),u.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&et()},[u.actionTabs.key]),(0,e.useEffect)(()=>{ve.get("tabs")==="0"&&(J.status="0",J.page=1,r(at({},J)))},[ve.get("tabs")]),(0,e.useEffect)(()=>{var c,ue,Xe;if((c=b==null?void 0:b.userInfo)!=null&&c.login){const Ue=C.cX.getItem(`${(ue=b==null?void 0:b.userInfo)==null?void 0:ue.login}${(0,o.GJ)()?"Teacher":"Student"}`,"ShixunHomeworks");Ue&&(J.sort_by=Ue==null?void 0:Ue.type,J.sort_direction=Ue==null?void 0:Ue.direction,be(Ue==null?void 0:Ue.name)),et(),(0,o.Rm)()&&$n()}else(Xe=b==null?void 0:b.userInfo)!=null&&Xe.username&&et()},[(ye=b==null?void 0:b.userInfo)==null?void 0:ye.login,F==null?void 0:F.pathname]),(0,e.useEffect)(()=>{window.addEventListener("scroll",jn)},[]);const jn=()=>{document.scrollingElement.scrollTop+window.innerHeight+(Du==null?void 0:Du.clientHeight)+150>document.body.clientHeight?me("absolute"):me("fixed")},$n=()=>{m({type:"classroomList/getAssistantPermissions",payload:{course_id:J.id}})},et=()=>{Oe([]),$([]),r(at({},J)),(0,o.GJ)()?m({type:"classroomList/getClassroomTeacherShixunsList",payload:jt(at({},J),{type:4})}):m({type:"classroomList/getClassroomShixunsList",payload:jt(at({},J),{order:J.status})})},Hn=(c,ue)=>{J.page=c,J.limit=ue,et()},Wn=c=>{const ue=c.key;J.status=ue,J.page=1,j.history.replace(`${F.pathname}?tabs=${ue}`),et()};function Vn(c){return Bu(this,null,function*(){yield m({type:"classroomList/updateTaskPosition",payload:{category_id:Le,courseId:J.id,task_ids:c,container_type:"shixun_homework"}}),et()})}function Gn(){let c={courseId:J.id,container_type:"shixun_homework"};Le&&(c.category_id=Le),m({type:"classroomList/getAllTaskList",payload:c}),m({type:"classroomList/setActionTabs",payload:{key:"\u8C03\u6574\u6392\u5E8F"}})}const zn=(0,e.useMemo)(()=>{let c=[];return Qe.length>0&&(c=Qe.map(ue=>({user_name:ue.user_name,task_name:ue.task_name,task_id:ue.task_id,category:ue.category,status:ue.status}))),c},[Qe]),Kn=[{name:"\u5168\u90E8",id:0},{name:"\u63D0\u4EA4\u4E2D",id:1},{name:"\u8865\u4EA4\u4E2D",id:2},{name:"\u5DF2\u622A\u6B62",id:5}],Un=[{name:"\u5168\u90E8",id:0},{name:"\u672A\u53D1\u5E03",id:1},{name:"\u672A\u5F00\u59CB",id:4},{name:"\u8FDB\u884C\u4E2D",id:2},{name:"\u5DF2\u622A\u6B62",id:3}],Au=(0,o.GJ)()?[{name:"\u9ED8\u8BA4\u6392\u5E8F",type:"position",direction:"desc"},{name:"\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u66F4\u65B0\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u5347\u5E8F",type:"name_pinyin",direction:"asc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u964D\u5E8F",type:"name_pinyin",direction:"desc"}]:[{name:"\u9ED8\u8BA4\u6392\u5E8F",type:null,direction:null},{name:"\u6309\u53D1\u5E03\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u53D1\u5E03\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u622A\u6B62\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u6309\u622A\u6B62\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u5347\u5E8F",type:"name_pinyin",direction:"asc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u964D\u5E8F",type:"name_pinyin",direction:"desc"}];Ze.course_modules&&(Jt=u.detailLeftMenus.course_modules.filter(c=>c.type==="shixun_homework")[0]);const Jn=s.createElement("div",{className:_e.moveCategory,onMouseLeave:c=>tt(!1)},s.createElement(g.default,{onClick:c=>Bu(void 0,[c],function*({item:ue,key:Xe,keyPath:Ue,domEvent:Yt}){if(Ee=="")return I.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,H.ZP)(`/api/courses/${J.id}/homework_commons/move_to_category.json`,{method:"post",body:{homework_ids:Ee,new_category_id:Xe}})).status===0&&(I.ZP.success("\u64CD\u4F5C\u6210\u529F"),et(),d(!1),m({type:"classroomList/getClassroomLeftMenus",payload:{id:ie.coursesId}}))}),style:{maxHeight:300,width:240,overflow:"auto"}},s.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},s.createElement(X.default,{onChange:c=>{Ve(c.target.value)}})),Jt&&Jt.second_category.filter(c=>c.category_name!=="\u672A\u5206\u914D\u76EE\u5F55").map(function(c,ue){var Xe;if(!(R!==""&&c.category_name.indexOf(R)<0))return s.createElement(s.Fragment,null,s.createElement(g.default.Item,{className:"multi-llipsis1e",key:c.category_id},c.category_name),(Xe=c==null?void 0:c.third_category)==null?void 0:Xe.map(Ue=>s.createElement(g.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Ue.category_id},Ue.category_name)))}),s.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:c=>{c.preventDefault(),m({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:J,selectArrs:{category_id:h==null?void 0:h.main_category_id,type:"shixun_homework"}}})}},"\u65B0\u5EFA\u5B50\u76EE\u5F55..."))),xu=(S=[{key:"1",label:"\u6279\u91CF\u53D1\u5E03",icon:s.createElement("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"2",label:"\u6279\u91CF\u622A\u6B62",icon:s.createElement("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"5",label:"\u6279\u91CF\u8865\u4EA4",icon:s.createElement("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"3",label:"\u6279\u91CF\u5220\u9664",icon:s.createElement("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,o.GJ)()||(0,o.Rm)()},{key:"4",label:"\u8BBE\u4E3A\u516C\u5F00",icon:s.createElement("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Me.is_public}].filter(c=>c==null?void 0:c.isShow))==null?void 0:S.map(c=>(delete c.isShow,c)),Yn=({key:c})=>{var ue,Xe,Ue,Yt;if((c==="1"||c==="2")&&(0,o.Rm)()&&!((Xe=(ue=u.AssistantObject)==null?void 0:ue.practice)!=null&&Xe.can_publish)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(((Ue=b==null?void 0:b.userInfo)==null?void 0:Ue.user_status)===2&&c==="1"){(0,xe.Rd)();return}if(Ee==""){I.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1");return}m({type:"classroomList/setActionTabs",payload:{key:c==="1"?"\u7ACB\u5373\u53D1\u5E03":c==="2"?"\u7ACB\u5373\u622A\u6B62":c==="3"?"\u5220\u9664":c==="5"?"\u6279\u91CF\u8865\u4EA4":(Yt=xu[Number(c)-1])==null?void 0:Yt.label,selectArrs:Ee,selectArrsAll:O,type:c==="1"||c==="2"?1:"",params:J}})},bu=ce==="\u9ED8\u8BA4\u6392\u5E8F",Qn=(0,e.useMemo)(()=>{const c=!(0,o.GJ)()&&!(0,o.Jd)(),ue=Me==null?void 0:Me.excellent;return c&&ue},[b,u]),Xn=(0,e.useMemo)(()=>(h==null?void 0:h.min_finished_game)>0,[u]),qn=(0,e.useMemo)(()=>{const c=(h==null?void 0:h.min_finished_game)-(h==null?void 0:h.finished_challenge_count);return c>0?c:0},[u]);return s.createElement("section",null,s.createElement("aside",{className:_e.bg},s.createElement(T.Z,{align:"middle"},s.createElement(v.Z,{flex:"1"},!!h.main_category_id&&s.createElement(g.default,{mode:"horizontal",onSelect:Wn,selectedKeys:[J.status]},!(0,o.GJ)()&&Kn.map(function(c,ue){return s.createElement(g.default.Item,{key:c==null?void 0:c.id},c.name)}),(0,o.GJ)()&&Un.map(function(c,ue){return s.createElement(g.default.Item,{key:c==null?void 0:c.id},s.createElement("span",{className:"c-grey-666 mr20"},c.name),ue===0&&(0,o.GJ)()&&s.createElement("span",{className:"c-grey-999"},h==null?void 0:h.all_count),ue===1&&(0,o.GJ)()&&s.createElement("span",{className:"c-grey-999"},h==null?void 0:h.unpublished_count),ue===2&&(0,o.GJ)()&&s.createElement("span",{className:"c-grey-999"},h==null?void 0:h.not_start_count),ue===3&&(0,o.GJ)()&&s.createElement("span",{className:"c-grey-999"},h==null?void 0:h.in_progress_count),ue===4&&(0,o.GJ)()&&s.createElement("span",{className:"c-grey-999"},h==null?void 0:h.overed_count))}))),s.createElement(v.Z,{className:"mr20 gutter-row"},s.createElement("div",{className:_e.containerTitle},(0,o.GJ)()&&(0,C.Oo)(Ze==null?void 0:Ze.course_modules,Le)!=="\u672A\u5206\u914D\u76EE\u5F55"&&s.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:6}},s.createElement(pe.Z,{className:"ml10",placement:"bottom",arrow:!0,dropdownRender:()=>s.createElement(g.default,null,s.createElement(g.default.Item,{key:1,onClick:()=>{var c;if(!(0,C.Ye)(m)){if((0,o.Rm)()&&!((c=u.AssistantObject.practice)!=null&&c.can_download)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:h==null?void 0:h.main_category_name,exportType:"practice",category_id:J.category}})}}},"\u5B66\u751F\u6210\u7EE9"),s.createElement(g.default.Item,{key:3,onClick:()=>{var c;if(!(0,C.Ye)(m)){if((0,o.Rm)()&&!((c=u.AssistantObject.practice)!=null&&c.can_download)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}j.history.push(`/classrooms/${ie==null?void 0:ie.coursesId}/exportlist/shixun_work_list,shixun_report`)}}},"\u5386\u53F2\u5BFC\u51FA"))},s.createElement("span",{style:{color:"#666666",cursor:"pointer"}},s.createElement("i",{className:"iconfont icon-xiazai6"}))),s.createElement("span",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:c=>{m({type:"classroomList/setActionTabs",payload:{key:ie.categoryId?"\u76EE\u5F55\u91CD\u547D\u540D":"\u6DFB\u52A0\u76EE\u5F55",params:J,selectArrs:{category_name:h==null?void 0:h.category_name,category_id:(h==null?void 0:h.category_id)||(h==null?void 0:h.main_category_id),type:"shixun_homework"},cb:()=>{et()}}})}},s.createElement(G.Z,{title:ie.categoryId?"\u76EE\u5F55\u91CD\u547D\u540D":"\u65B0\u5EFA\u5B50\u76EE\u5F55"},s.createElement("span",{className:ie.categoryId?`${_e.iconH} iconfont icon-zhongmingmingmulu`:`${_e.iconH} iconfont icon-xinjianmulu1`}))),s.createElement(pe.Z,{className:"ml10",disabled:((Q=b==null?void 0:b.userInfo)==null?void 0:Q.user_status)===2,dropdownRender:()=>s.createElement(g.default,null,s.createElement(g.default.Item,{key:1,onClick:()=>{var c,ue;if((0,o.Rm)()&&!((ue=(c=u.AssistantObject)==null?void 0:c.practice)!=null&&ue.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",params:J}})}},"\u4ECE\u5B9E\u8DF5\u9879\u76EE\u6DFB\u52A0"),s.createElement(g.default.Item,{key:2,onClick:()=>{var c,ue;if((0,o.Rm)()&&!((ue=(c=u.AssistantObject)==null?void 0:c.practice)!=null&&ue.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B",params:J}})}},"\u4ECE\u5B9E\u8DF5\u8BFE\u7A0B\u6DFB\u52A0"),s.createElement(g.default.Item,{key:3,onClick:()=>{var c,ue;if(!(0,C.Ye)(m)){if((0,o.Rm)()&&!((ue=(c=u.AssistantObject)==null?void 0:c.practice)!=null&&ue.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"practice"}})}}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"))},s.createElement("span",{className:((de=b==null?void 0:b.userInfo)==null?void 0:de.user_status)===2?_e.selectBtn1:_e.selectBtn},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-tianjiadaohang"})),s.createElement(G.Z,{title:((Ce=b==null?void 0:b.userInfo)==null?void 0:Ce.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u8BFE\u5802\u5B9E\u9A8C\u521B\u5EFA\u529F\u80FD"},s.createElement("span",null,"\u9009\u7528\u5B9E\u9A8C"))))))))),s.createElement("div",{className:_e.action},s.createElement("div",null,s.createElement(pe.Z,{dropdownRender:()=>s.createElement(g.default,{selectedKeys:[ce]},Au==null?void 0:Au.map((c,ue)=>s.createElement(g.default.Item,{key:c.name,onClick:()=>{var Xe;J.sort_by=c.type,J.sort_direction=c.direction,J.page=1,be(c.name),C.cX.setItem(`${(Xe=b==null?void 0:b.userInfo)==null?void 0:Xe.login}${(0,o.GJ)()?"Teacher":"Student"}`,c,"ShixunHomeworks"),(0,o.GJ)()?m({type:"classroomList/getClassroomTeacherShixunsList",payload:jt(at({},J),{type:4})}):m({type:"classroomList/getClassroomShixunsList",payload:at({},J)})}},c.name)))},s.createElement("span",{className:`${_e.btn} ${bu?_e.btnSort:""}`,onMouseEnter:c=>tt(!1)},s.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),ce))),bu&&s.createElement(G.Z,{title:`\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167${(0,o.GJ)()?"\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F":J.status==5?"\u622A\u6B62\u65F6\u95F4\u964D\u5E8F":"\u622A\u6B62\u65F6\u95F4\u5347\u5E8F"}\u6392\u5217`},s.createElement("span",{className:_e.tips},s.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),s.createElement("div",{style:{marginLeft:"auto",display:"flex"}},s.createElement(Nn.Z,{type:"shixun"}),s.createElement(X.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u540D\u79F0",onSearch:c=>{J.search=c.trim(),J.page=1,et()},style:{width:220}}))),Qn&&s.createElement(T.Z,{justify:"space-between",className:_e.progressInfo},s.createElement(v.Z,null,s.createElement(W.Z,{size:"middle"},s.createElement("span",null,"\u5B9E\u8BAD\u4F5C\u4E1A\u8FDB\u5EA6\uFF1A",h==null?void 0:h.finished_task_count,"/",h==null?void 0:h.shixun_total_count),s.createElement("span",null,"\u4EFB\u52A1\u5173\u5361\u8FDB\u5EA6\uFF1A",h==null?void 0:h.finished_challenge_count,"/",h==null?void 0:h.challenge_count))),Xn&&s.createElement(v.Z,null,"\u901A\u8FC7",h==null?void 0:h.min_finished_game,"\u5173\u83B7\u5F97\u6EE1\u5206\uFF0C\u8DDD\u79BBMOOC\u5B9E\u8BAD\u4F5C\u4E1A\u6EE1\u5206\u8FD8\u5DEE",qn,"\u5173")),s.createElement("aside",{className:"minH500 skt-loading relative pb40 mb30"},s.createElement(D.Z,{loading:q[(0,o.GJ)()?"classroomList/getClassroomTeacherShixunsList":"classroomList/getClassroomShixunsList"],active:!0,paragraph:{rows:5},className:"mt30"},(h==null?void 0:h.all_count)===0&&(0,o.GJ)()?s.createElement(ln,{params:J,user:b,setisshowmodal:Ke,dispatch:m}):(h==null?void 0:h.task_count)===0&&s.createElement(fe.Z,null),s.createElement("aside",{className:"animated fadeIn"},h.homeworks&&h.homeworks.map(function(c,ue){return s.createElement(fn,{key:c.homework_id,batchState:!0,v:c,k:ue,match:a,selectArrs:Ee,setSelectArrs:Oe,setSelectArrsAll:$,selectArrsAll:O,classroomList:u,dispatch:m,paramst:J,user:b,page:ie.page||1,pageSize:J.limit||20,selectshow:Rn,manageAllGroup:h.manage_all_group,getData:et})}),h.query_total_count>0&&s.createElement("aside",{className:"tc mb50 mt30"},s.createElement(z.Z,{showSizeChanger:!0,current:J.page||1,pageSize:J.limit||20,onChange:Hn,total:h.query_total_count})))),s.createElement("div",{className:_e.fixedBottom,style:{bottom:Ee.length?0:-60,position:Ee.length?ne:"fixed",left:ne==="fixed"?"50%":"317px"}},s.createElement("div",{className:_e.left}),s.createElement("div",{className:_e.right},(0,o.GJ)()&&(h==null?void 0:h.all_count)>0&&s.createElement("aside",{className:[_e.acitons].join(" ")},s.createElement("div",{style:{width:130}},(0,o.GJ)()&&s.createElement(P.default,{checked:((Pe=h.homeworks)==null?void 0:Pe.length)===(Ee==null?void 0:Ee.length),onChange:c=>{c.target.checked?(Oe(h.homeworks.map(ue=>ue.homework_id)),$([...h.homeworks])):(Oe([]),$([]))}},s.createElement("span",{className:"fo"},"\u5168\u9009\u672C\u9875",s.createElement("span",{style:{marginLeft:5}},"(",Ee.length,")")," "))),s.createElement("div",{style:{flex:1}}," ",s.createElement(T.Z,{wrap:!1,align:"middle",justify:"space-between"},s.createElement(v.Z,{flex:1},s.createElement(T.Z,{wrap:!1,align:"middle",gutter:8},s.createElement(v.Z,null,s.createElement(pe.Z,{placement:"top",menu:{items:xu,onClick:Yn}},s.createElement(A.ZP,{type:"primary",icon:s.createElement("i",{className:"iconfont icon-piliangcaozuo3"})},"\u6279\u91CF\u64CD\u4F5C"))),s.createElement(v.Z,null,s.createElement(A.ZP,{type:"primary",icon:s.createElement("i",{className:"iconfont icon-tiaozhengpaixu2"}),onClick:Gn},"\u8C03\u6574\u6392\u5E8F")),s.createElement(v.Z,null,s.createElement(pe.Z,{placement:"topLeft",dropdownRender:()=>Jn,getPopupContainer:c=>c==null?void 0:c.parentNode},s.createElement(A.ZP,{type:"primary",icon:s.createElement("i",{className:"iconfont icon-yidongmulu"})},"\u79FB\u52A8\u5230\u76EE\u5F55 ",s.createElement(L.Z,null)))))),s.createElement(v.Z,null,s.createElement(A.ZP,{type:"primary",ghost:!0,onClick:()=>{Oe&&Oe([]),d(!1)}},"\u53D6\u6D88\u64CD\u4F5C")))))))),((w=u==null?void 0:u.actionTabs)==null?void 0:w.key)==="\u6279\u91CF\u8865\u4EA4"&&s.createElement(Sn,{getData:et}),u.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"?s.createElement(qu,null):null,s.createElement(_n.Z,{onOk:()=>{et()}}),s.createElement(Fn.Z,{onOk:()=>{}}),u.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?s.createElement(Su,null):null,u.actionTabs.key==="\u4ECE\u8BFE\u5802\u5B9E\u9A8C\u6DFB\u52A0"?s.createElement(Zu,null):null,s.createElement(Qt,null),s.createElement(f,null),s.createElement(y.Z,{courseEndTime:h==null?void 0:h.course_end_time}),s.createElement(Y.Z,{visible:u.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",courseEndTime:h==null?void 0:h.course_end_time,courseId:ie.coursesId,homeworkIds:u.actionTabs.selectArrs,isBatch:u.actionTabs.type!==2,successCallback:()=>{(0,o.GJ)()?m({type:"classroomList/getClassroomTeacherShixunsList",payload:at(jt(at({},u.actionTabs.params),{type:4}),ie)}):m({type:"classroomList/getClassroomShixunsList",payload:at({},u.actionTabs.params)})}}),s.createElement(yt,null),s.createElement(Wu,null),s.createElement(yn.Z,{visible:u.actionTabs.key==="\u8C03\u6574\u6392\u5E8F",callback:Vn,data:zn,onCancel:()=>{m({type:"classroomList/setActionTabs",payload:{key:""}})}}),s.createElement(E.default,{title:"\u9009\u7528\u5B9E\u9A8C",open:we,centered:!0,onCancel:()=>Ke(!1),onOk:()=>{var c,ue;if((0,o.Rm)()&&!((c=u.AssistantObject.practice)!=null&&c.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(((ue=b.userInfo)==null?void 0:ue.user_status)===2){(0,xe.Rd)();return}m(Cu===1?{type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",params:J}}:{type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B",params:J}}),Ke(!1)}},s.createElement("div",null,s.createElement(ee.ZP.Group,{onChange:c=>{Mn(c.target.value)},value:Cu},s.createElement(ee.ZP,{style:{marginTop:"15px"},value:1},"\u4ECE\u5B9E\u8DF5\u9879\u76EE\u6DFB\u52A0\uFF08\u53EF\u9009\u62E9\u591A\u4E2A\u5B9E\u8DF5\u9879\u76EE\u52A0\u5165\u4F5C\u4E1A\uFF09"),s.createElement(ee.ZP,{style:{marginTop:"15px"},value:2},"\u4ECE\u5B9E\u8DF5\u8BFE\u7A0B\u6DFB\u52A0\uFF08\u5C06\u5B9E\u8DF5\u8BFE\u7A0B\u4E2D\u5168\u90E8\u7684\u5B9E\u8DF5\u9879\u76EE\u90FD\u52A0\u5165\u4F5C\u4E1A\uFF09")))),s.createElement(On.Z,null))};var Zn=(0,j.connect)(({classroomList:t,loading:n,globalSetting:u,shixunHomeworks:p,user:V})=>({classroomList:t,globalSetting:u,loading:n.effects,shixunHomeworks:p,user:V}))(Ln)},60761:function(Je,Be,l){l.d(Be,{_:function(){return W}});var e=l(22796),H=l(62957),j=l(6767),g=l(70858),I=l(95203),X=l(59301),T=(D,z,P)=>new Promise((A,E)=>{var ee=C=>{try{L(P.next(C))}catch(oe){E(oe)}},o=C=>{try{L(P.throw(C))}catch(oe){E(oe)}},L=C=>C.done?A(C.value):Promise.resolve(C.value).then(ee,o);L((P=P.apply(D,z)).next())});const v=D=>T(void 0,[D],function*({is_jupyter:z,is_jupyter_lab:P,shixunId:A,homework_common_id:E,courseId:ee}){if(z||P){const L=yield(0,e.BK)({id:A});L!=null&&L.identifier&&(0,I.xg)(`/tasks/${L.identifier}/jupyter?homework_common_id=${E}`);return}const o=yield(0,e.Ir)({id:A,homework_common_id:E});if(o!=null&&o.game_identifier){(0,I.xg)(`/tasks/${ee}/${E}/${o.game_identifier}`);return}(o==null?void 0:o.status)===2?pe(o==null?void 0:o.message,E,ee):(o==null?void 0:o.status)===3?G(o==null?void 0:o.message):(o==null?void 0:o.status)==-3&&(0,I.eF)()}),pe=(D,z,P)=>{D=D!=null&&D.includes(".json")?D:`${D}.json`,H.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:X.createElement("div",{className:"tc font16"}," \u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>T(void 0,null,function*(){const A=yield(0,e.$Q)({url:D});if(!A)return;j.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const E=yield(0,e.Ir)({id:A.shixun_identifier,homework_common_id:z});if(E!=null&&E.game_identifier){(0,I.xg)(`/tasks/${P}/${z}/${E.game_identifier}`);return}(E==null?void 0:E.status)===2?pe(E==null?void 0:E.message,z,P):(E==null?void 0:E.status)===3&&G(E==null?void 0:E.message)})})},G=D=>{H.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:X.createElement("div",{className:"tc font16"}," \u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",D,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},W=(D,z)=>T(void 0,[D,z],function*(P,{is_jupyter:A,is_jupyter_lab:E}){const ee=yield(0,e.WT)(P);if(ee.length>1)return H.default.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"\u63D0\u793A",content:X.createElement("div",null,X.createElement("div",null,"\u4F60\u5F53\u524D\u6709",ee.length,"\u4E2A\u8FDB\u884C\u4E2D\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u4F7F\u7528\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u5728\u4E0B\u65B9\u70B9\u51FB\u5B9E\u8BAD\u4F5C\u4E1A\u540D\u79F0\u8FDB\u5165\u5B9E\u8BAD\u6311\u6218\u9875\u9762\uFF1A"),X.createElement(g.default,{pagination:!1,columns:[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"\u4F5C\u4E1A\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:240,align:"center",render(o,L){const{course_identifier:C,id:oe}=L||{};return X.createElement("a",{target:"_blank",href:`/classrooms/${C}/shixun_homework/${oe}/detail`},o)}},{title:"\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",align:"center"},{title:"\u64CD\u4F5C",align:"center",render(o,L){const{course_identifier:C,id:oe,shixun_identifier:Z}=L;return X.createElement("div",{style:{cursor:"pointer",color:"#165dff"},onClick:()=>{v({is_jupyter:A,is_jupyter_lab:E,shixunId:Z,homework_common_id:oe,courseId:C})}},"\u524D\u5F80\u6311\u6218")}}],dataSource:ee,rowKey:"id"}))}),!0;if(ee.length===1){const{shixun_identifier:o,id:L,course_identifier:C}=ee[0];return v({is_jupyter:A,is_jupyter_lab:E,shixunId:o,homework_common_id:L,courseId:C}),!0}return!1});Be.Z=v},54500:function(Je,Be,l){l.d(Be,{Z:function(){return e}});const e=H=>H?typeof H=="function"?H():H:null},69106:function(Je,Be,l){l.d(Be,{aV:function(){return pe},t5:function(){return G}});var e=l(59301),H=l(92310),j=l.n(H),g=l(29125),I=l(54500),X=l(48755),T=l(85074),v=function(D,z){var P={};for(var A in D)Object.prototype.hasOwnProperty.call(D,A)&&z.indexOf(A)<0&&(P[A]=D[A]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,A=Object.getOwnPropertySymbols(D);E{let{title:z,content:P,prefixCls:A}=D;return!z&&!P?null:e.createElement(e.Fragment,null,z&&e.createElement("div",{className:`${A}-title`},z),P&&e.createElement("div",{className:`${A}-inner-content`},P))},G=D=>{const{hashId:z,prefixCls:P,className:A,style:E,placement:ee="top",title:o,content:L,children:C}=D,oe=(0,I.Z)(o),Z=(0,I.Z)(L),Ie=j()(z,P,`${P}-pure`,`${P}-placement-${ee}`,A);return e.createElement("div",{className:Ie,style:E},e.createElement("div",{className:`${P}-arrow`}),e.createElement(g.G,Object.assign({},D,{className:z,prefixCls:P}),C||e.createElement(pe,{prefixCls:P,title:oe,content:Z})))},W=D=>{const{prefixCls:z,className:P}=D,A=v(D,["prefixCls","className"]),{getPrefixCls:E}=e.useContext(X.E_),ee=E("popover",z),[o,L,C]=(0,T.Z)(ee);return o(e.createElement(G,Object.assign({},A,{prefixCls:ee,hashId:L,className:j()(P,C)})))};Be.ZP=W},37639:function(Je,Be,l){var e=l(59301),H=l(92310),j=l.n(H),g=l(18929),I=l(10228),X=l(54500),T=l(86641),v=l(22703),pe=l(25399),G=l(69106),W=l(48755),D=l(85074),z=function(E,ee){var o={};for(var L in E)Object.prototype.hasOwnProperty.call(E,L)&&ee.indexOf(L)<0&&(o[L]=E[L]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,L=Object.getOwnPropertySymbols(E);C{var o,L;const{prefixCls:C,title:oe,content:Z,overlayClassName:Ie,placement:We="top",trigger:Ne="hover",children:Ae,mouseEnterDelay:K=.1,mouseLeaveDelay:U=.1,onOpenChange:B,overlayStyle:le={},styles:te,classNames:he}=E,De=z(E,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:f,className:y,style:Y,classNames:ke,styles:ae}=(0,W.dj)("popover"),ge=f("popover",C),[Fe,re,M]=(0,D.Z)(ge),N=f(),Se=j()(Ie,re,M,y,ke.root,he==null?void 0:he.root),ft=j()(ke.body,he==null?void 0:he.body),[_t,Ft]=(0,g.Z)(!1,{value:(o=E.open)!==null&&o!==void 0?o:E.visible,defaultValue:(L=E.defaultOpen)!==null&&L!==void 0?L:E.defaultVisible}),yt=(He,ut)=>{Ft(He,!0),B==null||B(He,ut)},Ge=He=>{He.keyCode===I.Z.ESC&&yt(!1,He)},rt=He=>{yt(He)},Re=(0,X.Z)(oe),je=(0,X.Z)(Z);return Fe(e.createElement(pe.Z,Object.assign({placement:We,trigger:Ne,mouseEnterDelay:K,mouseLeaveDelay:U},De,{prefixCls:ge,classNames:{root:Se,body:ft},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),Y),le),te==null?void 0:te.root),body:Object.assign(Object.assign({},ae.body),te==null?void 0:te.body)},ref:ee,open:_t,onOpenChange:rt,overlay:Re||je?e.createElement(G.aV,{prefixCls:ge,title:Re,content:je}):null,transitionName:(0,T.m)(N,"zoom-big",De.transitionName),"data-popover-inject":!0}),(0,v.Tm)(Ae,{onKeyDown:He=>{var ut,lt;e.isValidElement(Ae)&&((lt=Ae==null?void 0:(ut=Ae.props).onKeyDown)===null||lt===void 0||lt.call(ut,He)),Ge(He)}})))});A._InternalPanelDoNotUseOrYouWillBeFired=G.ZP,Be.Z=A},85074:function(Je,Be,l){var e=l(63356),H=l(34925),j=l(37645),g=l(36305),I=l(34998),X=l(16931),T=l(51636);const v=W=>{const{componentCls:D,popoverColor:z,titleMinWidth:P,fontWeightStrong:A,innerPadding:E,boxShadowSecondary:ee,colorTextHeading:o,borderRadiusLG:L,zIndexPopup:C,titleMarginBottom:oe,colorBgElevated:Z,popoverBg:Ie,titleBorderBottom:We,innerContentPadding:Ne,titlePadding:Ae}=W;return[{[D]:Object.assign(Object.assign({},(0,e.Wf)(W)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:C,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Z,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${D}-content`]:{position:"relative"},[`${D}-inner`]:{backgroundColor:Ie,backgroundClip:"padding-box",borderRadius:L,boxShadow:ee,padding:E},[`${D}-title`]:{minWidth:P,marginBottom:oe,color:o,fontWeight:A,borderBottom:We,padding:Ae},[`${D}-inner-content`]:{color:z,padding:Ne}})},(0,j.ZP)(W,"var(--antd-arrow-background-color)"),{[`${D}-pure`]:{position:"relative",maxWidth:"none",margin:W.sizePopupArrow,display:"inline-block",[`${D}-content`]:{display:"inline-block"}}}]},pe=W=>{const{componentCls:D}=W;return{[D]:I.i.map(z=>{const P=W[`${z}6`];return{[`&${D}-${z}`]:{"--antd-arrow-background-color":P,[`${D}-inner`]:{backgroundColor:P},[`${D}-arrow`]:{background:"transparent"}}}})}},G=W=>{const{lineWidth:D,controlHeight:z,fontHeight:P,padding:A,wireframe:E,zIndexPopupBase:ee,borderRadiusLG:o,marginXS:L,lineType:C,colorSplit:oe,paddingSM:Z}=W,Ie=z-P,We=Ie/2,Ne=Ie/2-D,Ae=A;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ee+30},(0,g.w)(W)),(0,j.wZ)({contentRadius:o,limitVerticalRadius:!0})),{innerPadding:E?0:12,titleMarginBottom:E?0:L,titlePadding:E?`${We}px ${Ae}px ${Ne}px`:0,titleBorderBottom:E?`${D}px ${C} ${oe}`:"none",innerContentPadding:E?`${Z}px ${Ae}px`:0})};Be.Z=(0,X.I$)("Popover",W=>{const{colorBgElevated:D,colorText:z}=W,P=(0,T.mergeToken)(W,{popoverBg:D,popoverColor:z});return[v(P),pe(P),(0,H._y)(P,"zoom-big")]},G,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/p__Classrooms__Lists__ShixunHomeworks__index.ee919535.async.js b/p__Classrooms__Lists__ShixunHomeworks__index.ee919535.async.js deleted file mode 100644 index cedb130c97..0000000000 --- a/p__Classrooms__Lists__ShixunHomeworks__index.ee919535.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7852],{31468:function(Je,Be){Be.Z={flex_box_center:"flex_box_center___vhwFp",flex_space_between:"flex_space_between___rbHwE",flex_box_vertical_center:"flex_box_vertical_center___AF_yr",flex_box_center_end:"flex_box_center_end___FqGSd",flex_box_column:"flex_box_column___ujWr7",failedList:"failedList___KGsCg",name:"name___bbsWC",publish:"publish___mai8J",modal:"modal___t6wU6"}},96546:function(Je,Be,l){l.d(Be,{Z:function(){return v}});var e=l(28284),$=l(37568),M=l(7939),h=l(59301),I={search:"search___JA0r9",btn:"btn___GGtZC"},X=l(59301),v=({value:pe,onChange:L})=>{const[Y]=e.default.useForm(),D=(0,h.useRef)(!1);(0,h.useEffect)(()=>{pe&&Y.setFieldsValue(pe)},pe);const W=P=>{D.current||L(P),D.current=!0,setTimeout(()=>{D.current=!1},2e3)};return X.createElement("div",{className:I.search},X.createElement(e.default,{className:I.formWrap,colon:!1,form:Y,size:"large",layout:"inline",onFinish:P=>{D.current||W(P)}},X.createElement(e.default.Item,{label:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",name:"keyword",initialValue:""},X.createElement($.default,{style:{width:280,height:40}})),X.createElement(e.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"schools",initialValue:"",style:{margin:"0 40px"}},X.createElement($.default,{style:{width:280,height:40}})),X.createElement(e.default.Item,{label:"\u521B\u5EFA\u8005/\u5408\u4F5C\u8005",name:"creator",initialValue:""},X.createElement($.default,{style:{width:200,height:40}})),X.createElement(M.ZP,{className:I.btn,type:"primary",htmlType:"submit"},"\u641C\u7D22")))}},85421:function(Je,Be,l){l.d(Be,{Z:function(){return X}});var e=l(37639),$={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},M=l(32637),h=l(59301),X=({type:T,style:v})=>{const pe=h.createElement("div",{className:$.wrap,onClick:L=>{L.preventDefault(),L.stopPropagation()}},h.createElement("p",null,T==="shixun"||T==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",h.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",T==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),h.createElement("div",{className:$.contact},h.createElement("div",{className:$.img},h.createElement("img",{src:M,width:"124px",height:"124px"})),h.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return h.createElement(e.Z,{content:pe},h.createElement("span",{className:$.text,style:v},"\u9AD8\u6D88\u8017"))}},97612:function(Je,Be,l){l.d(Be,{Z:function(){return he},P:function(){return Me}});var e=l(59301),$=l(28284),M=l(62957),h=l(47889),I=l(37568),X=l(70858),T={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},v=l(22796),pe=Object.defineProperty,L=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,A=(z,g,Q)=>g in z?pe(z,g,{enumerable:!0,configurable:!0,writable:!0,value:Q}):z[g]=Q,E=(z,g)=>{for(var Q in g||(g={}))W.call(g,Q)&&A(z,Q,g[Q]);if(D)for(var Q of D(g))P.call(g,Q)&&A(z,Q,g[Q]);return z},te=(z,g)=>L(z,Y(g)),a=(z,g)=>{var Q={};for(var oe in z)W.call(z,oe)&&g.indexOf(oe)<0&&(Q[oe]=z[oe]);if(z!=null&&D)for(var oe of D(z))g.indexOf(oe)<0&&P.call(z,oe)&&(Q[oe]=z[oe]);return Q},j=(z,g,Q)=>new Promise((oe,q)=>{var Ae=f=>{try{C(Q.next(f))}catch(K){q(K)}},me=f=>{try{C(Q.throw(f))}catch(K){q(K)}},C=f=>f.done?oe(f.value):Promise.resolve(f.value).then(Ae,me);C((Q=Q.apply(z,g)).next())});const B=({studentNames:z,total:g})=>{const Q=["","\u4E00","\u4E24","\u4E09"];return g>3?e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:T.orangeColor},z==null?void 0:z.join("\u3001")),"\u7B49",e.createElement("span",{className:T.orangeColor},g),"\u540D\u5B66\u751F"):e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:T.orangeColor},z==null?void 0:z.join("\u3001")),Q[g],"\u540D\u5B66\u751F")},ae=({used:z,copy:g,canNotCopy:Q,studentNames:oe,studentCount:q,inPaper:Ae,is_random:me=!1,position:C=""})=>{const f=()=>{if(g>0&&Q>0)return e.createElement(e.Fragment,null,"\u5176\u4E2D",e.createElement("span",{className:T.orangeColor},g),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",e.createElement("span",{className:T.orangeColor},Q),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(g>0&&Q===0)return e.createElement(e.Fragment,null,"\u5176\u4E2D",e.createElement("span",{className:T.orangeColor},g),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(g===0&&Q>0)return e.createElement(e.Fragment,null,"\u5176\u4E2D",e.createElement("span",{className:T.orangeColor},Q),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},K=C||(Ae?"\u8BD5\u5377":"\u8BFE\u7A0B");return e.createElement("span",null,e.createElement(B,{studentNames:oe,total:q}),"\u5B66\u4E60\u8FC7",K,"\u4E2D\u7684",e.createElement("span",{className:T.orangeColor},z),"\u4E2A\u9879\u76EE\uFF0C",f(),"\u3002\u8BF7\u9009\u62E9",me?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},V=({onCancel:z,onOk:g,visible:Q,inPaper:oe,renderData:q,type:Ae,isMultipleCourse:me=!1})=>{const[C]=$.default.useForm(),[f,K]=(0,e.useState)(1),[xe,Fe]=(0,e.useState)(!1),le=(0,e.useMemo)(()=>(q==null?void 0:q.total_num)===1&&(q==null?void 0:q.can_copy_num)===1,[q]),Oe=(0,e.useMemo)(()=>{var ge;return(ge=q==null?void 0:q.course_data_list)==null?void 0:ge.filter(U=>U.is_show)},[q]);return e.createElement(e.Fragment,null,le?e.createElement(M.default,{centered:!0,closable:!0,open:Q,destroyOnClose:!0,title:"\u63D0\u793A",className:T.antdModal,width:682,confirmLoading:xe,onCancel:z,onOk:()=>j(void 0,null,function*(){var ge;Fe(!0);let U=f;if(me){const N=E({},C.getFieldsValue());U=(ge=q==null?void 0:q.course_data_list)==null?void 0:ge.map(Se=>N[Se.id]!==void 0?te(E({},Se),{is_copy:N[Se.id]}):Se)}yield g(U),Fe(!1)})},e.createElement("div",{className:T.content,style:{marginBottom:20}},me?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":e.createElement(e.Fragment,null,e.createElement(B,{studentNames:q==null?void 0:q.student_names,total:q==null?void 0:q.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),me?e.createElement($.default,{form:C,preserve:!1},Oe==null?void 0:Oe.map(ge=>e.createElement(e.Fragment,{key:ge.id},e.createElement("h3",{className:"ml15 mb5"},ge.name),e.createElement($.default.Item,{name:ge.id,initialValue:1},e.createElement(h.ZP.Group,{className:T.content},e.createElement(h.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),e.createElement(h.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):e.createElement(h.ZP.Group,{value:f,onChange:ge=>K(ge.target.value),className:T.content,style:{marginBottom:30}},e.createElement(h.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),e.createElement(h.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),e.createElement("div",null,e.createElement("div",{className:T.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),e.createElement("div",{className:T.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),e.createElement("div",{className:`${T.content} ${T.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):e.createElement(M.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Q,confirmLoading:xe,title:"\u63D0\u793A",width:682,onCancel:z,onOk:()=>j(void 0,null,function*(){var ge;Fe(!0);let U=0;if(me){const N=E({},C.getFieldsValue());U=(ge=q==null?void 0:q.course_data_list)==null?void 0:ge.map(Se=>N[Se.id]!==void 0?te(E({},Se),{is_use:N[Se.id]}):Se)}yield g(U),Fe(!1)})},e.createElement("div",{className:T.content},e.createElement(B,{studentNames:q==null?void 0:q.student_names,total:q==null?void 0:q.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",me?e.createElement($.default,{form:C,preserve:!1},e.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),Oe==null?void 0:Oe.map(ge=>e.createElement(e.Fragment,{key:ge.id},e.createElement("h3",{className:"ml15 mb5"},ge.name),e.createElement($.default.Item,{name:ge.id,initialValue:1},e.createElement(h.ZP.Group,{className:T.content},e.createElement(h.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),e.createElement(h.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):e.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",e.createElement("span",{className:T.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},Me=function(){const[z,g]=(0,e.useState)(!1),[Q,oe]=(0,e.useState)();return[z,()=>g(!1),Q,me=>j(this,null,function*(){var C;const f=me,{isImportMultipleCourse:K=!1}=f,xe=a(f,["isImportMultipleCourse"]);console.log(me);const Fe=(me==null?void 0:me.result)||(yield(0,v.Tr)(xe));return"status"in Fe?!1:K?((C=Fe==null?void 0:Fe.course_data_list)==null?void 0:C.some(Oe=>Oe.is_show))?(oe(Fe),g(!0),!0):Fe.course_data_list||[]:Fe.student_count===0?!1:(oe(Fe),g(!0),!0)})]},je=z=>{const[g]=$.default.useForm(),[Q,oe]=(0,e.useState)(!1),{onCancel:q,onOk:Ae,visible:me,inPaper:C=!1,renderData:f,type:K,isMultipleCourse:xe=!1,position:Fe}=z;let le=(0,e.useMemo)(()=>C?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:T.tableCell,render(U,N){return e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},U)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(U,N)=>e.createElement(e.Fragment,null,e.createElement($.default.Item,{name:[`${K==="subject"?N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],initialValue:1},e.createElement(h.ZP.Group,null,e.createElement(h.ZP,{value:1},"\u662F"),e.createElement(h.ZP,{value:0},"\u5426"))),e.createElement($.default.Item,{name:[`${K==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],hidden:!0,initialValue:1},e.createElement(I.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:T.tableCell,render(U,N){return e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},U)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(U,N)=>e.createElement($.default.Item,{name:[`${K==="subject"?N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],initialValue:1},e.createElement(h.ZP.Group,null,e.createElement(h.ZP,{value:1},"\u662F"),e.createElement(h.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(U,N)=>e.createElement($.default.Item,{name:[`${K==="subject"?N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],initialValue:1},e.createElement(h.ZP.Group,null,e.createElement(h.ZP,{value:1},"\u662F"),e.createElement(h.ZP,{value:0},"\u5426")))}],[C]),Oe=(0,e.useMemo)(()=>C?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:T.tableCell,align:"center",ellipsis:!0,render:(U,N)=>e.createElement(e.Fragment,null,e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},U),e.createElement($.default.Item,{name:[`${K==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],hidden:!0,initialValue:0},e.createElement(I.default,{type:"hidden"})),e.createElement($.default.Item,{name:[`${K==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],hidden:!0,initialValue:1},e.createElement(I.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:T.tableCell,ellipsis:!0,align:"center",render:(U,N)=>e.createElement("a",{href:`/shixuns/${N.identifier}/challenges`,target:"_blank"},U)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(U,N)=>e.createElement(e.Fragment,null,e.createElement($.default.Item,{name:[`${K==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_use"],initialValue:0},e.createElement(h.ZP.Group,null,e.createElement(h.ZP,{value:1},"\u662F"),e.createElement(h.ZP,{value:0},"\u5426"))),e.createElement($.default.Item,{name:[`${K==="subject"?N==null?void 0:N.stage_shixun_id:N.shixun_course_id||N.id}`,"is_copy"],hidden:!0,initialValue:0},e.createElement(I.default,{type:"hidden"})))}],[C]);if(xe){const U={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:T.tableCell,render:(N,Se)=>e.createElement("a",{href:`/classrooms/${Se.course_id}`},N)};le=[U,...le],Oe=[U,...Oe]}const ge=(0,e.useMemo)(()=>ae({used:f==null?void 0:f.repeat_shixun_num,copy:f==null?void 0:f.can_copy_num,canNotCopy:f==null?void 0:f.no_copy_num,studentNames:f==null?void 0:f.student_names,studentCount:f==null?void 0:f.student_count,is_random:f==null?void 0:f.is_random,inPaper:C,position:Fe}),[f,C,Fe]);return e.createElement(M.default,{title:"\u63D0\u793A",centered:!0,open:me,confirmLoading:Q,onOk:()=>j(void 0,null,function*(){oe(!0);const U=g.getFieldsValue(),N=Object.keys(U).map(Se=>({id:parseInt(Se.split("_")[0]),course_id:parseInt(Se.split("_")[1]),is_use:U[Se].is_use,is_copy:U[Se].is_copy}));yield Ae(N),oe(!1)}),onCancel:q,width:880,okText:"\u786E\u8BA4",className:T.antdModal,destroyOnClose:!0},e.createElement($.default,{form:g,preserve:!1},e.createElement("div",{className:T.brief},ge),e.createElement("div",{style:{marginBottom:30}},e.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),e.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),e.createElement("div",{className:T.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(f==null?void 0:f.can_copy_num)>0&&e.createElement("div",null,e.createElement("div",{className:T.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),e.createElement(X.default,{columns:le,className:T.antdTable,dataSource:f==null?void 0:f.can_copy_list,rowKey:K==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(f==null?void 0:f.no_copy_num)>0&&e.createElement("div",null,e.createElement("div",{className:T.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),e.createElement(X.default,{columns:Oe,className:T.antdTable,dataSource:f==null?void 0:f.no_copy_list,rowKey:K==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(f==null?void 0:f.no_use_list.length)>0&&(f==null?void 0:f.no_use_list.map(U=>e.createElement("div",{key:K==="subject"?U.stage_shixun_id:U.shixun_course_id||U.id},e.createElement($.default.Item,{name:[`${K==="subject"?U==null?void 0:U.stage_shixun_id:U.shixun_course_id||U.id}`,"is_copy"],hidden:!0,initialValue:0},e.createElement(I.default,{type:"hidden"})),e.createElement($.default.Item,{name:[`${K==="subject"?U==null?void 0:U.stage_shixun_id:U.shixun_course_id||U.id}`,"is_use"],hidden:!0,initialValue:1},e.createElement(I.default,{type:"hidden"})))))))};var he=z=>{const{modalType:g}=z;return g==="multiple"?e.createElement(je,E({},z)):e.createElement(V,E({},z))}},13509:function(Je,Be,l){var e=l(59301),$=l(88634),M=l(62957),h=l(9019),I=l(59301),X=(v,pe,L)=>new Promise((Y,D)=>{var W=E=>{try{A(L.next(E))}catch(te){D(te)}},P=E=>{try{A(L.throw(E))}catch(te){D(te)}},A=E=>E.done?Y(E.value):Promise.resolve(E.value).then(W,P);A((L=L.apply(v,pe)).next())});const T=({classroomList:v,dispatch:pe})=>{var L,Y;const D=(0,e.useRef)(null),[W,P]=(0,e.useState)(!1),A=()=>{pe({type:"classroomList/setActionTabs",payload:{}})};return I.createElement(M.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((L=v==null?void 0:v.actionTabs)==null?void 0:L.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:A,onOk:()=>X(void 0,null,function*(){var E,te;(E=D.current)!=null&&E.onVerify()||(P(!0),yield(te=v==null?void 0:v.actionTabs)==null?void 0:te.onOK(),P(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(Y=v==null?void 0:v.actionTabs)==null?void 0:Y.loading},I.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),I.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),I.createElement(h.Z,{ref:E=>D.current=E}))};Be.Z=(0,$.connect)(({classroomList:v})=>({classroomList:v}))(T)},37428:function(Je,Be,l){l.d(Be,{Z:function(){return te}});var e=l(59301),$=l(88634),M=l(62957),h=l(89787),I=l(7939),X={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},T=l(70892),v=l(66649),pe=l.n(v),L=l(59301),Y=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,P=(a,j)=>{var B={};for(var ae in a)D.call(a,ae)&&j.indexOf(ae)<0&&(B[ae]=a[ae]);if(a!=null&&Y)for(var ae of Y(a))j.indexOf(ae)<0&&W.call(a,ae)&&(B[ae]=a[ae]);return B},A=(a,j,B)=>new Promise((ae,V)=>{var Me=he=>{try{ke(B.next(he))}catch(z){V(z)}},je=he=>{try{ke(B.throw(he))}catch(z){V(z)}},ke=he=>he.done?ae(he.value):Promise.resolve(he.value).then(Me,je);ke((B=B.apply(a,j)).next())});const E=a=>{var j=a,{shixunsDetail:B,globalSetting:ae,loading:V,dispatch:Me,showModal:je,onCancel:ke,onOk:he,okBtnName:z="\u5B8C\u6210",info:g,source:Q}=j,oe=P(j,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[q,Ae]=(0,e.useState)(0),[me,C]=(0,e.useState)(0);return(0,e.useEffect)(()=>{let f=null;const K=()=>A(void 0,null,function*(){let xe={id:g==null?void 0:g.courseId,send_time:pe()().format("YYYY-MM-DD HH:mm"),exercise_id:g!=null&&g.exercise_id?g==null?void 0:g.exercise_id:null},Fe={id:g==null?void 0:g.courseId,course_id:g==null?void 0:g.courseId,identifier:g==null?void 0:g.courseId,type:"normal",is_use:1,is_copy:!0};Q==="\u8BD5\u5377"?(xe.examination_bank_ids=g==null?void 0:g.examination_bank_ids,xe.type="ExaminationBank"):Q==="\u5B9E\u8BAD"?xe.shixun_info=(g==null?void 0:g.shixun_info.length)>0?g==null?void 0:g.shixun_info:[Fe]:Q==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(xe.examination_bank_ids=g==null?void 0:g.examination_bank_ids,xe.shixun_info=(g==null?void 0:g.shixun_info.length)>0?g==null?void 0:g.shixun_info:[Fe]);const le=yield(0,T.ZP)(`/api/courses/${g==null?void 0:g.courseId}/send_shixun_progress.json`,{method:"post",body:xe});(le==null?void 0:le.status)===0&&(Ae(le==null?void 0:le.complete_num),C(le==null?void 0:le.total_num),(le==null?void 0:le.complete_num)!==(le==null?void 0:le.total_num)?(f&&clearInterval(f),f=setInterval(K,5e3)):f&&clearInterval(f))});return je&&(g!=null&&g.courseId)&&K(),()=>{f&&clearInterval(f)}},[je]),L.createElement(M.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:q==me,open:je,destroyOnClose:!0,footer:null,onCancel:ke},L.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",L.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},me),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),L.createElement("div",{className:X.con_warp},L.createElement(h.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:q==me&&me!=0?100:q/me*100,showInfo:!1,size:[350,10]}),L.createElement("div",{className:X.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",L.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},q),"\u4E2A"),q!=me&&L.createElement(I.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),q==me&&L.createElement(I.ZP,{type:"primary",onClick:he},z)))};var te=(0,$.connect)(({shixunsDetail:a,loading:j,globalSetting:B})=>({shixunsDetail:a,globalSetting:B,loading:j.models.index}))(E)},77627:function(Je,Be,l){l.d(Be,{Z:function(){return T}});var e=l(59301),$=l(88634),M=l(25399),h={buttonitem:"buttonitem___LpWeh"},I=l(95203);const X=({user:v,dispatch:pe,type:L,capacity:Y})=>{var D,W,P,A,E,te,a,j,B,ae,V,Me;const[je,ke]=(0,e.useState)(0),[he,z]=(0,e.useState)(0);return(0,e.useEffect)(()=>{var g,Q,oe,q,Ae,me,C,f,K,xe,Fe,le;L==="program"?(ke((oe=(Q=(g=v==null?void 0:v.userInfo)==null?void 0:g.course)==null?void 0:Q.hack_homework_info)==null?void 0:oe.hack_homework_limit_count),z((me=(Ae=(q=v==null?void 0:v.userInfo)==null?void 0:q.course)==null?void 0:Ae.hack_homework_info)==null?void 0:me.hack_homework_remaining_count)):L==="shixun"&&(ke((K=(f=(C=v==null?void 0:v.userInfo)==null?void 0:C.course)==null?void 0:f.shixun_homework_info)==null?void 0:K.shixun_homework_limit_count),z((le=(Fe=(xe=v==null?void 0:v.userInfo)==null?void 0:xe.course)==null?void 0:Fe.shixun_homework_info)==null?void 0:le.shixun_homework_remaining_count))},[L,v]),e.createElement("div",null,["program","shixun"].includes(L)&&((W=(D=v==null?void 0:v.userInfo)==null?void 0:D.paid_version)==null?void 0:W.version_type)!=2&&((P=v==null?void 0:v.userInfo)==null?void 0:P.identity)!=="student"&&((E=(A=v==null?void 0:v.userInfo)==null?void 0:A.course)==null?void 0:E.course_role)!=15&&e.createElement(M.Z,{title:e.createElement("span",null,"\u60A8\u7684\u3010",((a=(te=v==null?void 0:v.userInfo)==null?void 0:te.paid_version)==null?void 0:a.version_type)===0?"\u57FA\u7840\u7248":"\u6807\u51C6\u7248","\u3011\u8D26\u53F7\u5728\u672C\u8BFE\u5802\u4E2D\u6BCF\u65E5\u53EF\u53D1\u5E03",je,"\u4EFD\u4F5C\u4E1A\uFF0C\u989D\u5EA6\u5C06\u4E8E\u6BCF\u65E524\u70B9\u91CD\u7F6E\u3002\u5982\u9700\u53D1\u5E03\u66F4\u591A\uFF0C",e.createElement("a",{onClick:()=>{(0,I.Lm)()}},"\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u6269\u5BB9\u3002"))},e.createElement("div",{style:{marginRight:20},className:h.buttonitem},"\u4ECA\u65E5\u53EF\u53D1\u5E03\u4F5C\u4E1A\u6570",e.createElement("span",{style:{margin:"0px 5px",color:he===0?"#999999":"#3061D0"}},he),"\u4EFD")),["attachment"].includes(L)&&((B=(j=v==null?void 0:v.userInfo)==null?void 0:j.paid_version)==null?void 0:B.version_type)!=2&&((ae=v==null?void 0:v.userInfo)==null?void 0:ae.identity)!=="student"&&e.createElement(M.Z,{title:e.createElement("span",null,"\u60A8\u7684\u3010",((Me=(V=v==null?void 0:v.userInfo)==null?void 0:V.paid_version)==null?void 0:Me.version_type)===0?"\u57FA\u7840\u7248":"\u6807\u51C6\u7248","\u3011\u8D26\u53F7\u6700\u591A\u652F\u6301\u4F7F\u7528",(0,I.RD)((Y==null?void 0:Y.total)||0),"\u7684\u6559\u5B66\u8D44\u6599\u5BB9\u91CF\u3002 \u60A8\u53EF\u4EE5\u6E05\u7406\u6587\u4EF6\u91CA\u653E\u7A7A\u95F4\uFF0C\u6216",e.createElement("a",{onClick:()=>{(0,I.Lm)()}},"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u6269\u5BB9\u3002"))},e.createElement("div",{style:{marginRight:20},className:h.buttonitem},"\u8D44\u6599\u5BB9\u91CF ",e.createElement("span",{style:{marginLeft:5,color:"#3061D0"}},(0,I.RD)((Y==null?void 0:Y.used)||0)),"/",e.createElement("span",{style:{color:"#5F6A95"}},(0,I.RD)((Y==null?void 0:Y.total)||0)))))};var T=(0,$.connect)(({user:v})=>({user:v}))(X)},7082:function(Je,Be,l){var e=l(59301),$=l(28284),M=l(62957),h=l(6767),I=l(77019),X=l(5269),T=l(24017),v=l(47889),pe=l(62673),L=l(66649),Y=l.n(L),D=l(70892),W=l(95203),P=l(88634),A=l(82772),E=l(87218),te=l(71661),a=l(14988),j=l(31468),B=l(18612),ae=l(22796),V=l(59301),Me=Object.defineProperty,je=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,Q=(C,f,K)=>f in C?Me(C,f,{enumerable:!0,configurable:!0,writable:!0,value:K}):C[f]=K,oe=(C,f)=>{for(var K in f||(f={}))z.call(f,K)&&Q(C,K,f[K]);if(he)for(var K of he(f))g.call(f,K)&&Q(C,K,f[K]);return C},q=(C,f)=>je(C,ke(f)),Ae=(C,f,K)=>new Promise((xe,Fe)=>{var le=U=>{try{ge(K.next(U))}catch(N){Fe(N)}},Oe=U=>{try{ge(K.throw(U))}catch(N){Fe(N)}},ge=U=>U.done?xe(U.value):Promise.resolve(U.value).then(le,Oe);ge((K=K.apply(C,f)).next())});const me=({classroomList:C,dispatch:f,user:K,courseEndTime:xe})=>{var Fe;const le=(0,P.useParams)(),[Oe]=$.default.useForm(),[ge,U]=(0,e.useState)(1),[N,Se]=(0,e.useState)([]),[ft,_t]=(0,e.useState)(0),[Ft,yt]=(0,e.useState)(20),[Ge,rt]=(0,e.useState)(!0),[Re,$e]=(0,e.useState)([]),[We,ut]=(0,e.useState)(!0),[lt,Ot]=(0,e.useState)({}),[Ht,Wt]=(0,e.useState)({});le.id=le.coursesId,(0,e.useEffect)(()=>{if(C.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(ht(),Nt(),C.actionTabs.type===2){const fe=C.actionTabs.selectArrsAll[0];ut(fe.unified_setting)}else ut(!1)},[C.actionTabs]);const Nt=fe=>Ae(void 0,null,function*(){rt(!0);const x=yield(0,E.c_)(q(oe({},le),{page:fe||ge,limit:2e4,homework_id:C.actionTabs.type===1?"":C.actionTabs.selectArrs[0]}));x==null||x.course_groups.map((Ce,gt)=>{Ce.key=Ce.id,Ce.title=Ce.name,Ce.disabled=Ce.is_published}),x&&(Se([...x==null?void 0:x.course_groups]),_t(x==null?void 0:x.course_groups_count),rt(!1),fe||Oe.setFieldsValue({publish_time:Y()(Y()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Y()(Y()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),it=()=>{var fe;let x=[...(fe=C.actionTabs.selectArrsAll)==null?void 0:fe.filter(Ce=>Ce.high_resources_consume&&!Ce.high_resources_consume_permission)];(x==null?void 0:x.length)>0&&C.actionTabs.type===1&&M.default.confirm({centered:!0,icon:null,footer:null,width:560,title:"\u63D0\u793A",closable:!0,content:V.createElement("div",null,V.createElement("div",{className:j.Z.tipcontent},V.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",V.createElement("span",{style:{color:"#f06b14"}},x==null?void 0:x.length)," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),V.createElement("div",{className:"mt20 mb20"},x==null?void 0:x.map(Ce=>V.createElement("div",{className:j.Z.failedList,key:Ce.homework_id},V.createElement("div",{className:j.Z.name},Ce==null?void 0:Ce.name),V.createElement("div",{className:j.Z.publish,onClick:()=>{(0,W.xg)(`/classrooms/${le.coursesId}/shixun_homework/${Ce.homework_id}/detail?tabs=0`)}},"\u53D1\u5E03"))))))})},Vt=()=>Ae(void 0,null,function*(){var fe,x,Ce,gt,vt,Bt,Dt,Ct,At,It,Tt,Lt,xt,Zt;if(((Ce=(x=(fe=K==null?void 0:K.userInfo)==null?void 0:fe.course)==null?void 0:x.shixun_homework_info)==null?void 0:Ce.shixun_homework_remaining_count)===0&&((vt=(gt=C.actionTabs.selectArrsAll)==null?void 0:gt.filter(He=>{var Gt,bt;return(bt=(Gt=(He==null?void 0:He.homework_status)||(He==null?void 0:He.status)).includes)==null?void 0:bt.call(Gt,"\u672A\u53D1\u5E03")}))==null?void 0:vt.length)>0){(0,W.bR)(`\u60A8\u4ECA\u65E5\u5728\u3010${(Dt=(Bt=(0,A.eY)())==null?void 0:Bt.course)==null?void 0:Dt.course_name}\u3011\u7684\u8BFE\u5802\u5B9E\u9A8C\u4F5C\u4E1A\u53D1\u5E03\u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u989D\u5EA6\u5C06\u4E8E\u6BCF\u65E524\u70B9\u91CD\u7F6E\uFF0C\u5C4A\u65F6\u5373\u53EF\u7EE7\u7EED\u53D1\u5E03\u3002\u5982\u9700\u7ACB\u5373\u53D1\u5E03\u66F4\u591A\u4F5C\u4E1A\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u6269\u5BB9\u3002`);return}if((0,A.Rm)()&&!((At=(Ct=C.AssistantObject)==null?void 0:Ct.practice)!=null&&At.can_publish)){h.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),qe(!1);return}const ct=oe({},Oe.getFieldsValue());if(ct.end_time<=ct.publish_time){h.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),qe(!1);return}if((Re==null?void 0:Re.length)<=0&&!We&&N.length>0){h.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),qe(!1);return}let mt={homework_ids:[...C.actionTabs.selectArrs],group_ids:Re.length>0?Re.map(He=>He.id):(It=C.detailShixunsList)==null?void 0:It.course_groups,end_time:Y()(ct.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Y()(ct.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!Re.length},Ie=[...(Tt=C.actionTabs.selectArrsAll)==null?void 0:Tt.filter(He=>He.high_resources_consume&&!He.high_resources_consume_permission)];if((Ie==null?void 0:Ie.length)==C.actionTabs.selectArrsAll.length&&C.actionTabs.type==1){f({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),it();return}((Lt=C.actionTabs.selectArrsAll)==null?void 0:Lt.length)>0&&C.actionTabs.type===1&&(mt.homework_ids=[...((Zt=(xt=C.actionTabs.selectArrsAll)==null?void 0:xt.filter(He=>!He.high_resources_consume||He.high_resources_consume_permission))==null?void 0:Zt.map(He=>Number(He==null?void 0:He.homework_id)))||[]]);let ot=yield(0,ae.Tr)({homework_common_ids:[...C.actionTabs.selectArrs],course_id:le.coursesId,type:"homework_common"});(ot==null?void 0:ot.student_count)===0?kt(mt):(Wt(mt),Ot(ot))}),ht=()=>{U(1),Se([]),$e([])},kt=fe=>Ae(void 0,null,function*(){qe(!0);const x=yield(0,D.ZP)(`/api/courses/${le.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:oe({},fe)});qe(!1),x.status===0&&(ht(),(0,W.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u7ACB\u5373\u53D1\u5E03"]),h.ZP.success("\u53D1\u5E03\u6210\u529F"),f({type:"user/getUserInfo",payload:{course_id:le.coursesId}}),f({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),it(),(0,A.GJ)()?C.actionTabs.detail?(f({type:"shixunHomeworks/setActionTabs",payload:{}}),f({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:oe({},le)}),f({type:"shixunHomeworks/getWorkSetting",payload:oe({},le)})):f({type:"classroomList/getClassroomTeacherShixunsList",payload:q(oe({},C.actionTabs.params),{type:4})}):f({type:"classroomList/getClassroomShixunsList",payload:oe({},C.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||f({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:V.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}}))}),Qt=ft>ge*Ft,{detailShixunsList:wt}=C,[st,qe]=(0,e.useState)(!1);return V.createElement("div",null,V.createElement(M.default,{width:600,centered:!0,confirmLoading:st,title:"\u53D1\u5E03\u4F5C\u4E1A",open:C.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:()=>Vt(),onCancel:()=>{ht(),f({type:"classroomList/setActionTabs",payload:{}})}},V.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",V.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),V.createElement($.default,{form:Oe},V.createElement("div",{style:{paddingLeft:0}},V.createElement(I.Z,{className:"mt30",align:"middle"},V.createElement(X.Z,null,V.createElement($.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},V.createElement(T.default,{style:{width:170,marginRight:"25px"},disabledDate:fe=>(0,a.Q8)(fe,xe),disabledTime:fe=>(0,a.d0)(fe),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Y()((0,W.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),V.createElement(X.Z,{className:"ml20"},V.createElement($.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4:"},V.createElement(T.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Y()((0,W.U6)(),"HH:mm")},disabledDate:fe=>(0,a.Q8)(fe,xe,Oe.getFieldValue("publish_time")),disabledTime:fe=>(0,a.d0)(fe,Oe.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),C.actionTabs.type===2&&V.createElement(I.Z,{style:{marginBottom:"10px"}},V.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),V.createElement(v.ZP.Group,{value:We,onChange:fe=>{ut(fe.target.value),$e([])}},V.createElement(v.ZP,{value:!0,disabled:!C.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),V.createElement(v.ZP,{className:"ml20",disabled:N.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),N.length<=0&&C.actionTabs.type===2&&V.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(C.actionTabs.type===1||!We)&&N.length>0&&V.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},V.createElement("span",{style:{flex:1}},V.createElement(pe.default,{checked:Re.length===N.length,onChange:fe=>{Re.length===N.length?$e([]):$e(N)}},"\u5168\u9009")),V.createElement("span",{style:{width:16}}),V.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Re.length||0,"\u4E2A\u5206\u73ED")),(C.actionTabs.type===1||!We)&&N.length>0&&V.createElement(te.Z,{data:N,selectedRowKeys:Re,setSelectedRowKeys:$e}))),V.createElement(B.Z,{resdata:lt,type:((Fe=C.actionTabs.selectArrs)==null?void 0:Fe.length)===1?"shixun":"shixunpush",okloading:st,oktext:(lt==null?void 0:lt.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:fe=>Ae(void 0,null,function*(){qe(!0);let x=yield(0,D.ZP)(`/api/courses/${le.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[...C.actionTabs.selectArrs]}});qe(!1),(x==null?void 0:x.status)===0&&kt(Ht)})}))};Be.Z=(0,P.connect)(({classroomList:C,user:f})=>({classroomList:C,user:f}))(me)},8260:function(Je,Be,l){l.r(Be),l.d(Be,{default:function(){return Zn}});var e=l(59301),$=l(70892),M=l(88634),h=l(93041),I=l(6767),X=l(37568),T=l(77019),v=l(5269),pe=l(75727),L=l(25399),Y=l(44104),D=l(458),W=l(31709),P=l(62673),A=l(7939),E=l(62957),te=l(47889),a=l(82772),j=l(84105),B=l(95203),ae=l(9019),V=Object.defineProperty,Me=Object.defineProperties,je=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,g=(t,n,u)=>n in t?V(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Q=(t,n)=>{for(var u in n||(n={}))he.call(n,u)&&g(t,u,n[u]);if(ke)for(var u of ke(n))z.call(n,u)&&g(t,u,n[u]);return t},oe=(t,n)=>Me(t,je(n)),q=(t,n)=>{var u={};for(var p in t)he.call(t,p)&&n.indexOf(p)<0&&(u[p]=t[p]);if(t!=null&&ke)for(var p of ke(t))n.indexOf(p)<0&&z.call(t,p)&&(u[p]=t[p]);return u},Ae=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const me=t=>{var n=t,{classroomList:u,dispatch:p,match:H,location:b,user:ee}=n,m=q(n,["classroomList","dispatch","match","location","user"]),s,_;const ye=(0,M.useParams)(),[S,J]=(0,e.useState)(!1),[de,De]=(0,e.useState)(!1),Pe=(0,e.useRef)(null);(0,e.useEffect)(()=>{if(u.actionTabs.key==="\u5220\u9664"){if((0,a.j5)()){De(!0);return}const F={hasNum:0,noHasNum:0};u.actionTabs.selectArrsAll.map(re=>{var ve;re.author_login===((ve=ee.userInfo)==null?void 0:ve.login)?++F.hasNum:++F.noHasNum}),F.noHasNum>0?E.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:e.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",e.createElement("span",{className:"c-blue"},F.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",e.createElement("span",{className:"c-red"},F.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",e.createElement("br",null),"\u8BFE\u5802\u5185\u53EA\u80FD\u5220\u9664\u672C\u4EBA\u53D1\u5E03\u7684\u8D44\u6E90\uFF0C\u8BF7\u53D6\u6D88\u9009\u4E2D\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u7684\u8D44\u6E90\u3002"),onOk:()=>{w()}}):De(!0)}else De(!1)},[u.actionTabs.key]);const w=()=>{p({type:"classroomList/setActionTabs",payload:{}})};return e.createElement(E.default,{centered:!0,title:"\u63D0\u793A",open:de,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,confirmLoading:S,onOk:()=>Ae(void 0,null,function*(){var F;if((F=Pe.current)!=null&&F.onVerify())return;J(!0);const re=yield(0,$.ZP)(`/api/courses/${ye.coursesId}/homework_commons/multi_destroy.json`,{method:"post",body:{homework_ids:[...u.actionTabs.selectArrs]}});J(!1),re.status===0&&((0,B.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u5220\u9664"]),I.ZP.success("\u5220\u9664\u6210\u529F"),p({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),(0,a.GJ)()?p({type:"classroomList/getClassroomTeacherShixunsList",payload:oe(Q({},u.actionTabs.params),{type:4})}):p({type:"classroomList/getClassroomShixunsList",payload:Q({},u.actionTabs.params)}),p({type:"classroomList/getClassroomLeftMenus",payload:{id:ye.coursesId}}))}),onCancel:()=>{w()}},!((s=u==null?void 0:u.actionTabs)!=null&&s.status)||!["\u672A\u53D1\u5E03"].includes((_=u==null?void 0:u.actionTabs)==null?void 0:_.status)?e.createElement(e.Fragment,null,e.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u5B9E\u8BAD\u5219\u4F1A\u6E05\u9664\u5B66\u751F\u6240\u6709\u7684\u7B54\u9898\u6570\u636E\uFF0C\u4E14\u6570\u636E\u4E0D\u53EF\u6062\u590D\uFF0C\u5982\u786E\u5B9A\u5220\u9664\uFF0C\u8BF7\u8F93\u5165\u4E0B\u65B9\u9A8C\u8BC1\u7801"),e.createElement(ae.Z,{ref:F=>Pe.current=F})):e.createElement(e.Fragment,null,e.createElement("p",null,"\u63D0\u4EA4\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u6062\u590D"),e.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F")))};var C=(0,M.connect)(({classroomList:t,user:n})=>({classroomList:t,user:n}))(me),f=l(7082),K=l(61523),xe=Object.defineProperty,Fe=Object.defineProperties,le=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,N=(t,n,u)=>n in t?xe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Se=(t,n)=>{for(var u in n||(n={}))ge.call(n,u)&&N(t,u,n[u]);if(Oe)for(var u of Oe(n))U.call(n,u)&&N(t,u,n[u]);return t},ft=(t,n)=>Fe(t,le(n)),_t=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const Ft=({classroomList:t,dispatch:n})=>{const u=(0,M.useParams)();return e.createElement(E.default,{centered:!0,title:"\u63D0\u793A",open:t.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>_t(void 0,null,function*(){(yield(0,$.ZP)(`/api/courses/${u.coursesId}/homework_commons/set_public.json`,{method:"post",body:{homework_ids:[...t.actionTabs.selectArrs]}})).status===0&&((0,B.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u8BBE\u4E3A\u516C\u5F00"]),I.ZP.success("\u64CD\u4F5C\u6210\u529F"),n({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),(0,a.GJ)()?n({type:"classroomList/getClassroomTeacherShixunsList",payload:ft(Se({},t.actionTabs.params),{type:4})}):n({type:"classroomList/getClassroomShixunsList",payload:Se({},t.actionTabs.params)}))}),onCancel:()=>{n({type:"classroomList/setActionTabs",payload:{}})}},e.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",e.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var yt=(0,M.connect)(({classroomList:t})=>({classroomList:t}))(Ft),Ge=l(28284),rt=l(66649),Re=l.n(rt),$e=l(59301),We=Object.defineProperty,ut=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Nt=(t,n,u)=>n in t?We(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,it=(t,n)=>{for(var u in n||(n={}))Ht.call(n,u)&&Nt(t,u,n[u]);if(Ot)for(var u of Ot(n))Wt.call(n,u)&&Nt(t,u,n[u]);return t},Vt=(t,n)=>ut(t,lt(n)),ht=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const kt=({classroomList:t,loading:n,dispatch:u})=>{var p,H;const b=(0,M.useParams)(),[ee,m]=(0,e.useState)(!1),{actionTabs:s}=t,[_]=Ge.default.useForm(),ye=S=>S&&S{var S;t.actionTabs.key==="\u91CD\u547D\u540D"&&_.setFieldsValue({name:(S=s.selectArrs)==null?void 0:S.name})},[t.actionTabs.key]),$e.createElement(E.default,{centered:!0,title:"\u91CD\u547D\u540D",confirmLoading:ee,open:t.actionTabs.key==="\u91CD\u547D\u540D",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onOk:()=>ht(void 0,null,function*(){var S,J;if((0,a.Rm)()&&!((J=(S=t.AssistantObject)==null?void 0:S.practice)!=null&&J.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const de=_.getFieldValue();m(!0);const De=`/api/homework_commons/${t.actionTabs.selectArrs.homework_id}/alter_name.json`,Pe=yield(0,$.ZP)(De,{method:"post",body:it({},de)});m(!1),Pe.status===0&&(I.ZP.success("\u4FEE\u6539\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,a.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:Vt(it({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:it({},t.actionTabs.params)}))}),onCancel:()=>{m(!1),u({type:"classroomList/setActionTabs",payload:{}})}},$e.createElement(Ge.default,{form:_},$e.createElement(T.Z,{className:"mt10 c-grey-999"},$e.createElement(v.Z,null,"\u672C\u5B9E\u8BAD\u521D\u59CB\u540D\u79F0\uFF1A"),$e.createElement(v.Z,{flex:"1"},(p=s.selectArrs)==null?void 0:p.shixun_name)),$e.createElement(Ge.default.Item,{name:"name"},$e.createElement(T.Z,{className:"mt10",align:"middle"},$e.createElement(v.Z,{className:"font14"},"\u4F5C\u4E1A\u540D\u79F0\uFF1A"),$e.createElement(v.Z,{flex:"1"},$e.createElement(X.default,{defaultValue:(H=s.selectArrs)==null?void 0:H.name,maxLength:60}))))))};var Qt=(0,M.connect)(({classroomList:t,loading:n})=>({classroomList:t,loading:n}))(kt),wt=l(36207),st=l(29787),qe=l(37285),fe=l(28860),x={flex_box_center:"flex_box_center___z88Le",flex_space_between:"flex_space_between___b4xPz",flex_box_vertical_center:"flex_box_vertical_center___KkW0d",flex_box_center_end:"flex_box_center_end___pgvoZ",flex_box_column:"flex_box_column___tFgV5",wrp:"wrp___RrUT2",drawer:"drawer___QqugY",menu:"menu___uKpxi",actived:"actived___hCeHj",actived2:"actived2___aIAeg",subTag:"subTag___S0zfl",listItem:"listItem___Ulw3D",listItem2:"listItem2___J8GtN",info:"info___gY955",title:"title___hyfzM",titleLeft:"titleLeft___eH38u",titleRight:"titleRight___JCVAi",search:"search___GnrcF",filter:"filter___jwVvV",description:"description___ynLaI",menuCourse:"menuCourse___HRXxE",authorname:"authorname___qn85G","tooltip-content":"tooltip-content___A6uPo"},Ce=l(14753),gt=l(96546),vt=l(10135),Bt=l(85421),Dt=l(18612),Ct=l(22796),At=l(37428),It=Object.defineProperty,Tt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,mt=(t,n,u)=>n in t?It(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Ie=(t,n)=>{for(var u in n||(n={}))Zt.call(n,u)&&mt(t,u,n[u]);if(xt)for(var u of xt(n))ct.call(n,u)&&mt(t,u,n[u]);return t},ot=(t,n)=>Tt(t,Lt(n)),He=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const{Search:Gt}=X.default,bt=[{id:"type",name:"\u6765\u6E90",children:[{name:"\u5168\u90E8",id:"all",type:"type"},{name:"\u6211\u7684",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u7B80\u5355",id:1,type:"diff"},{name:"\u9002\u4E2D",id:2,type:"diff"},{name:"\u56F0\u96BE",id:3,type:"diff"}]}],Pu=({classroomList:t,loading:n,dispatch:u,shixunsList:p})=>{var H,b;const[ee,m]=(0,e.useState)(Ie({},(0,M.useParams)())),{shixunLists:s,shixunAiRecommendLists:_}=t,[ye,S]=(0,e.useState)([]),[J,de]=(0,e.useState)({}),[De,Pe]=(0,e.useState)([]),[w,F]=(0,e.useState)(!1),[re,ve]=(0,e.useState)({}),[Te,Ee]=(0,e.useState)(!1),Ne=[{name:"\u6700\u65B0",id:"created_at"},{name:"\u6700\u70ED",id:"myshixuns_count"}].filter(r=>!!r),[O,R]=(0,e.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null,shixun_homework:!0}),[y,Le]=(0,e.useState)(!1),[Ze,Qe]=(0,e.useState)({});(0,e.useEffect)(()=>{Z()},[ee.coursesId,O]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&S([]),u({type:"shixunsList/getMenus",payload:{}})},[t.actionTabs.key]),(0,e.useEffect)(()=>{(s!=null&&s.shixun_list||_!=null&&_.shixun_list)&&de(O.sort==="recommend"?_:s)},[s,_]);const Z=()=>He(void 0,null,function*(){de([]),F(!0);let r=Ie({},O);if(O.sort==="recommend"&&(r.sort="myshixuns_count"),O.sort==="recommend")yield u({type:"classroomList/getShixunAiRecommendLists",payload:ot(Ie({},r),{course_id:ee.coursesId})});else{const be=Ie({},r);yield u({type:"classroomList/getShixunLists",payload:be})}const ie=yield(0,$.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});Pe([{id:null,name:"\u5168\u90E8"},{id:-1,name:"\u672A\u52A0\u5165\u76EE\u5F55"},...(ie==null?void 0:ie.groups)||[]]),S([]),F(!1)});if(t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B")return;const Ve=r=>He(void 0,null,function*(){Ee(!0);const ie=yield u({type:"classroomList/createShixunHomework",payload:{category_id:(ee==null?void 0:ee.categoryId)||null,coursesId:ee.coursesId,shixuns_info:r}});Ee(!1),ie.status||(Qe({courseId:ee==null?void 0:ee.coursesId,shixun_info:r}),Le(!0))}),ze=()=>{(0,B.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"]),I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,a.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:ot(Ie({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:Ie({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:ee.coursesId}}),localStorage.getItem("Noviceguide")==="0"||u({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:12,text:e.createElement("div",null,"\u63A5\u4E0B\u6765\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u4E2A\u201C\u8BFE\u7A0B\u5B9E\u9A8C\u201D~\u70B9\u51FB\u201C\u9009\u7528\u5B9E\u8DF5\u9879\u76EE\u201D\uFF0C\u9009\u62E9\u4E00\u4E2A\u4F5C\u4E1A\uFF0C\u7136\u540E\u70B9\u51FB\u201C\u7ACB\u5373\u53D1\u5E03\u201D\u5C31\u7ED9\u5B9E\u8DF5\u8BFE\u5802\u6DFB\u52A0\u4E86\u4E00\u4E2A\u8BFE\u7A0B\u5B9E\u9A8C\u3002")}})},[tt,G]=(0,e.useState)(!1);return e.createElement(e.Fragment,null,e.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!0,className:"body-overflow-hidden",open:t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:x.drawer,onClose:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},footer:e.createElement("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement(A.ZP,{size:"middle",onClick:()=>{u({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"}},"\u53D6\u6D88"),e.createElement(A.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:()=>He(void 0,null,function*(){var r;G(!0);let ie=yield(0,Ct.Tr)({id:ye,type:"shixun",course_id:(r=t.detailTopBanner)==null?void 0:r.course_id});yield Ve(ie==null?void 0:ie.no_use_list),G(!1)}),type:"primary",loading:tt},"\u786E\u5B9A"))},e.createElement("section",{className:"tc"},e.createElement(gt.Z,{onChange:r=>{r!=null&&r.keyword&&(0,vt.tk)({name:r==null?void 0:r.keyword,copywriting:r==null?void 0:r.keyword,position:"Shixun"}),R(ot(Ie(Ie({},O),r),{page:1}))}})),e.createElement("section",{className:"edu-container"},e.createElement(st.Z,{spinning:w},e.createElement("aside",null,bt.map(function(r,ie){var be;return ie!==0?null:e.createElement("ul",{className:x.menu,key:ie},e.createElement("li",null,r.name),(be=r==null?void 0:r.children)==null?void 0:be.map(function(we,Ke){return e.createElement("li",{className:O[r.id]==we.id?x.actived:"",onClick:()=>{O[r.id]=we.id,O.page=1,R(Ie({},O))}},e.createElement("strong",null,we.name))}))}),e.createElement("ul",{className:x.menu},e.createElement("li",null,"\u65B9\u5411"),e.createElement("li",{className:O!=null&&O.discipline_id?"":x.actived,onClick:()=>{delete O.tag_level,delete O.sub_discipline_id,delete O.discipline_id,O.page=1,R(Ie({},O))}},e.createElement("strong",null,"\u5168\u90E8")),p.menus&&p.menus.map(function(r,ie){return e.createElement("li",{key:ie,className:(O==null?void 0:O.discipline_id)==r.id?x.actived:""},e.createElement("strong",{onClick:()=>{O.tag_level=1,O.discipline_id=r.id,delete O.sub_discipline_id,O.page=1,R(Ie({},O))}},r.name),e.createElement("div",null,r.sub_repertoires.map(function(be,we){return e.createElement("div",{key:we,className:"mt5"},e.createElement("div",{className:(O==null?void 0:O.sub_discipline_id)==be.id&&O.tag_level===2?`${x.actived2} ${x.subTag}`:x.subTag,onClick:()=>{O.tag_level=2,O.discipline_id=r.id,O.sub_discipline_id=be.id,R(Ie({},O))}},be.name),e.createElement("ul",{className:"mt5"},be.tags&&be.tags.map(function(Ke,$t){return e.createElement("li",{key:$t,className:O.sub_discipline_id==Ke.id&&O.tag_level===3?x.actived2:"",onClick:()=>{O.tag_level=3,O.discipline_id=r.id,O.sub_discipline_id=Ke.id,R(Ie({},O))}},Ke.name)})))})))})),O.type==="mine"&&e.createElement("ul",{className:x.menu},e.createElement("li",null,"\u76EE\u5F55"),De==null?void 0:De.map((r,ie)=>e.createElement("li",{className:O.group_id==r.id?x.actived:"",key:r.name,onClick:()=>{O.group_id=r.id,O.page=1,R(Ie({},O))}},e.createElement("strong",null,r.name)))),bt.map(function(r,ie){var be;return ie!==1?null:e.createElement("ul",{className:x.menu,key:ie},e.createElement("li",null,r.name),(be=r==null?void 0:r.children)==null?void 0:be.map(function(we,Ke){return e.createElement("li",{className:O[r.id]==we.id?x.actived:"",onClick:()=>{O[r.id]=we.id,R(Ie({},O))}},e.createElement("strong",null,we.name))}))}),e.createElement(T.Z,{align:"middle"},e.createElement(v.Z,{flex:"1",className:x.filter},Ne.map(function(r,ie){return e.createElement(A.ZP,{key:ie,className:"mr20",type:O.sort===r.id?"primary":"default",onClick:()=>{O.sort=r.id,R(Ie({},O))}},r.name)})),e.createElement(v.Z,{className:"c-grey-999"},e.createElement("div",{className:x.menuCourse},e.createElement("ul",null,e.createElement("li",null,"\u5DF2\u9009",e.createElement("span",{className:"c-blue"},ye.length),"\u4E2A"),e.createElement("li",null,"\u5171",e.createElement("span",{className:"c-blue"},J.shixuns_count),"\u4E2A"),e.createElement("li",{className:"current",onClick:()=>{O.order=O.order==="asc"?"desc":"asc",R(Ie({},O))}},"\u5B66\u4E60\u4EBA\u6570",e.createElement("p",{className:`edu-sorter current ${O.order}`},e.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),e.createElement("span",{className:"iconfont icon-sanjiaoxing-down"}))))))),((H=J==null?void 0:J.shixun_list)==null?void 0:H.length)===0&&e.createElement(fe.Z,null),e.createElement(P.default.Group,{style:{display:"block"},value:ye,onChange:r=>{S(r)}},(b=J==null?void 0:J.shixun_list)==null?void 0:b.map(function(r,ie){var be;return e.createElement("div",{className:x.listItem,key:r==null?void 0:r.identifier,style:{cursor:"auto"}},e.createElement(P.default,{value:r==null?void 0:r.identifier,style:{marginTop:"3px"},disabled:(r==null?void 0:r.need_authorize)||(r==null?void 0:r.shixun_tag_num_name)=="\u672A\u53D1\u5E03"}),e.createElement("div",{className:x.info},e.createElement("div",{className:x.title},e.createElement("div",{className:x.titleLeft},e.createElement("div",null,e.createElement(M.Link,{to:`/shixuns/${r.identifier}/challenges`,target:"_blank"},e.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:r.title}})),(r==null?void 0:r.high_resources_consume)&&e.createElement("span",{className:"tag-style current"},e.createElement(Bt.Z,{type:"shixun",style:{marginLeft:0}})),(r==null?void 0:r.need_authorize)&&e.createElement("span",{onClick:()=>{(0,Ce.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),(0,a.Ny)()&&(r==null?void 0:r.mark_status)===1&&e.createElement(L.Z,{zIndex:1e4,title:r==null?void 0:r.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),(0,a.Ny)()&&(r==null?void 0:r.mark_status)===2&&e.createElement(L.Z,{zIndex:1e4,title:r==null?void 0:r.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),(0,a.Ny)()&&(r==null?void 0:r.mark_status)===3&&e.createElement(L.Z,{zIndex:1e4,title:r==null?void 0:r.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")),(r==null?void 0:r.shixun_tag_num_name)=="\u672A\u53D1\u5E03"&&e.createElement(L.Z,{zIndex:1e4,title:"\u5B9E\u8BAD\u9700\u53D1\u5E03\u540E\u624D\u80FD\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\uFF0C\u70B9\u51FB\u540D\u79F0\u53EF\u524D\u5F80\u5B9E\u8BAD\u8BE6\u60C5"},e.createElement("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10"},"\u672A\u53D1\u5E03")),(be=r==null?void 0:r.shixun_marks)==null?void 0:be.map(we=>e.createElement("span",{key:we,className:"tag-badge ml10"},we))),e.createElement(A.ZP,{ghost:!0,href:`/shixuns/${r.identifier}/challenges`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u4F53\u9A8C\u5B9E\u8BAD"))),e.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:r.description}})),e.createElement("div",{className:" mt15"},r.challenge_names.map(function(we,Ke){return e.createElement("span",{key:Ke,className:"mr30"},"\u7B2C",Ke+1,"\u5173 ",we," ")})),e.createElement(qe.Z,{dashed:!0}),e.createElement("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"}},e.createElement("div",null,e.createElement(L.Z,{overlayClassName:x["tooltip-content"],title:e.createElement("div",null,e.createElement("span",{dangerouslySetInnerHTML:{__html:r==null?void 0:r.member_user_names}}))},e.createElement("span",{className:x.authorname,dangerouslySetInnerHTML:{__html:r==null?void 0:r.member_user_names}})),r.author_school_name&&e.createElement(e.Fragment,null,e.createElement("span",{dangerouslySetInnerHTML:{__html:r.author_school_name}}))),e.createElement("div",null,e.createElement("span",{className:"mr30"},"\u96BE\u5EA6 \xA0",r.level),e.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570 \xA0",r.study_count)))))}))))),e.createElement("div",{className:"tc mt20"},e.createElement(W.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:O.page||1,showQuickJumper:!0,total:J==null?void 0:J.shixuns_count,onChange:r=>{O.page=r,R(Ie({},O))}}))),e.createElement(Dt.Z,{resdata:re,type:"subject",okloading:Te,oktext:"\u4E00\u952E\u590D\u5236\u5E76\u4F7F\u7528",onok:r=>{Ve(r)}}),e.createElement(At.Z,{source:"\u5B9E\u8BAD",showModal:y,onCancel:()=>Le(!1),info:Ze,onOk:ze}))};var Su=(0,M.connect)(({classroomList:t,shixunsList:n,loading:u})=>({classroomList:t,shixunsList:n,loading:u.effects}))(Pu),Ou=Object.defineProperty,Nu=Object.defineProperties,ku=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,wu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,qt=(t,n,u)=>n in t?Ou(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,dt=(t,n)=>{for(var u in n||(n={}))wu.call(n,u)&&qt(t,u,n[u]);if(Xt)for(var u of Xt(n))Iu.call(n,u)&&qt(t,u,n[u]);return t},eu=(t,n)=>Nu(t,ku(n)),tu=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const{Search:Tu}=X.default,Lu=({classroomList:t,loading:n,dispatch:u})=>{var p,H;const[b,ee]=(0,e.useState)(dt({},(0,M.useParams)())),{actionTabs:m}=t,{shixunLists:s}=t,[_,ye]=(0,e.useState)([]),[S,J]=(0,e.useState)(!1),[de,De]=(0,e.useState)({page:1,limit:20,search:null});(0,e.useEffect)(()=>{Pe()},[b.coursesId,de]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u4ECE\u8BFE\u5802\u5B9E\u9A8C\u6DFB\u52A0"&&ye([])},[t.actionTabs.key]);const Pe=()=>tu(void 0,null,function*(){var w;const F=eu(dt({},de),{course_id:(w=m==null?void 0:m.params)==null?void 0:w.course_id});yield u({type:"classroomList/getExperimentLists",payload:F}),J(!1)});if(t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B")return e.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!0,style:{zIndex:9999},open:t.actionTabs.key==="\u4ECE\u8BFE\u5802\u5B9E\u9A8C\u6DFB\u52A0",key:"bottom",rootClassName:x.drawer,onClose:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},footer:e.createElement("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"}},e.createElement(A.ZP,{size:"middle",onClick:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"}},"\u53D6\u6D88"),e.createElement(A.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:()=>tu(void 0,null,function*(){var w;(yield u({type:"classroomList/createExperiment",payload:{homework_common_ids:[..._],category_id:b.categoryId,course_id:(w=m==null?void 0:m.params)==null?void 0:w.course_id}})).status||(I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,a.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:eu(dt({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:dt({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:b.coursesId}}),localStorage.getItem("Noviceguide")==="0"||u({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:12,text:e.createElement("div",null,"\u63A5\u4E0B\u6765\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u4E2A\u201C\u8BFE\u7A0B\u5B9E\u9A8C\u201D~\u70B9\u51FB\u201C\u9009\u7528\u5B9E\u8DF5\u9879\u76EE\u201D\uFF0C\u9009\u62E9\u4E00\u4E2A\u4F5C\u4E1A\uFF0C\u7136\u540E\u70B9\u51FB\u201C\u7ACB\u5373\u53D1\u5E03\u201D\u5C31\u7ED9\u5B9E\u8DF5\u8BFE\u5802\u6DFB\u52A0\u4E86\u4E00\u4E2A\u8BFE\u7A0B\u5B9E\u9A8C\u3002")}}))}),type:"primary"},"\u786E\u5B9A"))},e.createElement("section",{className:"tc"},e.createElement(Tu,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u5B9E\u9A8C\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2",enterButton:"\u641C\u7D22",size:"middle",className:x.search,onSearch:w=>{de.search=w,De(dt({},de))}})),e.createElement("section",{className:"edu-container"},e.createElement(st.Z,{spinning:S},e.createElement("aside",null,((p=s==null?void 0:s.homeworks)==null?void 0:p.length)===0&&e.createElement(fe.Z,null),(H=s==null?void 0:s.homeworks)==null?void 0:H.map(function(w,F){var re,ve,Te;return e.createElement("div",{className:x.listItem,key:F,style:{cursor:"auto"}},e.createElement(P.default,{checked:_.includes(w.id),value:w.id,style:{marginTop:"3px"},disabled:w==null?void 0:w.need_authorize,onChange:Ee=>{let Ne=_.indexOf(w.id);_.indexOf(w.id)>-1?ye(_.filter(O=>O!==w.id)):ye(_.concat(w.id))}}),e.createElement("div",{className:x.info},e.createElement("div",{className:x.title},e.createElement("div",{className:x.titleLeft},e.createElement(M.Link,{to:`/shixuns/${w.identifier}/challenges`,target:"_blank"},e.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:w==null?void 0:w.name}})),(w==null?void 0:w.need_authorize)&&e.createElement("span",{onClick:()=>{(0,Ce.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),(0,a.Ny)()&&(w==null?void 0:w.mark_status)===1&&e.createElement(L.Z,{title:w==null?void 0:w.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),(0,a.Ny)()&&(w==null?void 0:w.mark_status)===2&&e.createElement(L.Z,{title:w==null?void 0:w.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),(0,a.Ny)()&&(w==null?void 0:w.mark_status)===3&&e.createElement(L.Z,{title:w==null?void 0:w.mark_content},e.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")),e.createElement(A.ZP,{ghost:!0,href:`/shixuns/${w.shixun_identifier}/challenges`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u67E5\u770B\u5B9E\u9A8C"))),e.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:w==null?void 0:w.description}})),e.createElement("div",{className:" mt15"},(re=w==null?void 0:w.challenges)==null?void 0:re.map(function(Ee,Ne){return e.createElement("span",{key:Ne,className:"mr30"},"\u7B2C",Ne+1,"\u5173 ",Ee==null?void 0:Ee.subject," ")})),e.createElement(qe.Z,{dashed:!0}),e.createElement("div",{className:"c-light-black mt20"},((ve=w==null?void 0:w.user)==null?void 0:ve.name)&&e.createElement(e.Fragment,null,e.createElement("span",null,(Te=w==null?void 0:w.user)==null?void 0:Te.name),e.createElement("span",{className:"ml15 mr15"},"|")),e.createElement("span",null,"\u521B\u5EFA\u65F6\u95F4: "),e.createElement("span",null,w==null?void 0:w.created_at))))})))),e.createElement("div",{className:"tc mt20"},e.createElement(W.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:de.page||1,showQuickJumper:!0,total:s==null?void 0:s.total_count,onChange:w=>{de.page=w,De(dt({},de))}})))};var Zu=(0,M.connect)(({classroomList:t,shixunsList:n,loading:u})=>({classroomList:t,shixunsList:n,loading:u.effects}))(Lu),Mu=Object.defineProperty,uu=Object.getOwnPropertySymbols,Ru=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,nu=(t,n,u)=>n in t?Mu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,Pt=(t,n)=>{for(var u in n||(n={}))Ru.call(n,u)&&nu(t,u,n[u]);if(uu)for(var u of uu(n))ju.call(n,u)&&nu(t,u,n[u]);return t},$u=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const{Search:el}=X.default,Hu=({classroomList:t,loading:n,dispatch:u,shixunsList:p})=>{var H,b;const[ee,m]=(0,e.useState)(Pt({},(0,M.useParams)())),s=(0,M.useLocation)(),{actionTabs:_}=t,[ye]=Ge.default.useForm(),{shixunAiRecommendLists:S}=t,[J,de]=(0,e.useState)([]),De=[{name:"\u6700\u65B0",id:"new"},{name:"\u6700\u70ED",id:"hot"},{name:"\u63A8\u8350",id:"hot"}],[Pe,w]=(0,e.useState)({page:1,course_id:ee.coursesId,limit:20,no_jupyter:1});return(0,e.useEffect)(()=>{},[ee.coursesId,Pe]),(0,e.useEffect)(()=>{t.actionTabs.key==="\u667A\u80FD\u63A8\u8350"&&(de([]),u({type:"classroomList/getShixunAiRecommendLists",payload:Pt({},Pe)}))},[t.actionTabs.key]),t.actionTabs.key!=="\u667A\u80FD\u63A8\u8350"?null:e.createElement(E.default,{title:"\u667A\u80FD\u63A8\u8350",placement:"bottom",centered:!0,height:"60%",width:1e3,closable:!0,style:{zIndex:9999},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",open:t.actionTabs.key==="\u667A\u80FD\u63A8\u8350",key:"bottom",onCancel:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},onOk:()=>$u(void 0,null,function*(){(yield u({type:"classroomList/createShixunHomework",payload:Pt({shixun_ids:[...J],category_id:ee.categoryId},ee)})).status||((0,B.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u667A\u80FD\u63A8\u8350\u9009\u7528"]),sessionStorage.aiRecommentHide=!0,I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),u({type:"classroomList/getClassroomShixunsList",payload:Pt({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:ee.coursesId}}))})},e.createElement("section",{className:"",style:{maxHeight:500,minHeight:150,overflow:"auto"}},e.createElement(st.Z,{spinning:n["classroomList/getShixunAiRecommendLists"]},e.createElement("aside",{style:{minHeight:150}},((H=S==null?void 0:S.shixun_list)==null?void 0:H.length)===0&&e.createElement(fe.Z,null),(b=S==null?void 0:S.shixun_list)==null?void 0:b.map(function(F,re){var ve,Te,Ee;return e.createElement("div",{className:x.listItem2,key:re,style:{cursor:"auto"}},e.createElement(P.default,{checked:J.includes(F.id),value:F.id,style:{marginTop:"3px"},disabled:F==null?void 0:F.need_authorize,onChange:Ne=>{let O=J.indexOf(F.id);J.indexOf(F.id)>-1?de(J.filter(R=>R!==F.id)):de(J.concat(F.id))}}),e.createElement("div",{className:x.info},e.createElement("div",{className:x.title},e.createElement("div",{className:x.titleLeft},e.createElement(M.Link,{to:`/shixuns/${F.identifier}/challenges`,target:"_blank"},e.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:F.title}})),(F==null?void 0:F.need_authorize)&&e.createElement("span",{onClick:()=>{(0,Ce.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),e.createElement(A.ZP,{ghost:!0,href:`/shixuns/${F.identifier}/challenges`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u4F53\u9A8C\u5B9E\u8BAD"))),e.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},e.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:F.description}})),e.createElement("div",{className:" mt10"},F.challenge_names.map(function(Ne,O){return e.createElement("span",{key:O,className:"mr30"},"\u7B2C",O+1,"\u5173 ",Ne," ")})),e.createElement("div",{className:"c-light-black mt10"},(ve=F==null?void 0:F.content)!=null&&ve.author_name?e.createElement("span",{dangerouslySetInnerHTML:{__html:(Ee=(Te=F==null?void 0:F.content)==null?void 0:Te.author_name)==null?void 0:Ee[0]}}):e.createElement("span",null,F.author_name),e.createElement("span",{className:"ml15 mr15"},"|"),F.author_school_name&&e.createElement(e.Fragment,null,e.createElement("span",null,F.author_school_name),e.createElement("span",{className:"ml15 mr15"},"|")),e.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570 ",F.level),e.createElement("span",{className:"ml15 mr15"},"|"),e.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570 "),e.createElement("span",null,F.study_count)),e.createElement(qe.Z,{dashed:!0})))})))),e.createElement("div",{className:"tc mt20 hide"},e.createElement(W.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:Pe.page||1,showQuickJumper:!0,total:S==null?void 0:S.shixuns_count,onChange:F=>{Pe.page=F,w(Pt({},Pe))}})))};var Wu=(0,M.connect)(({classroomList:t,shixunsList:n,loading:u})=>({classroomList:t,shixunsList:n,loading:u.effects}))(Hu),Vu=l(97612),k=l(59301),Gu=Object.defineProperty,zu=Object.defineProperties,Ku=Object.getOwnPropertyDescriptors,lu=Object.getOwnPropertySymbols,Uu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,au=(t,n,u)=>n in t?Gu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,nt=(t,n)=>{for(var u in n||(n={}))Uu.call(n,u)&&au(t,u,n[u]);if(lu)for(var u of lu(n))Ju.call(n,u)&&au(t,u,n[u]);return t},Yu=(t,n)=>zu(t,Ku(n)),su=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const{Search:Qu}=X.default,Xu=({classroomList:t,loading:n,dispatch:u})=>{var p,H;const[b,ee]=(0,e.useState)(nt({},(0,M.useParams)())),m=(0,M.useLocation)(),{actionTabs:s}=t,[_]=Ge.default.useForm(),{coursesLists:ye}=t,[S,J]=(0,e.useState)([]),[de,De]=(0,e.useState)({}),[Pe,w]=(0,e.useState)(!1),[F,re]=(0,e.useState)({page:1,type:"mine",order:"desc",limit:20,sort:"myshixuns_count",shixun_homework:!0}),[ve,Te]=(0,e.useState)(!1),[Ee,Ne]=(0,e.useState)({});(0,e.useEffect)(()=>{t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"&&(u({type:"classroomList/getCoursesLists",payload:nt({},F)}),J([]))},[t.actionTabs.key,b.categoryId,F]);const[O,R,y,Le]=(0,Vu.P)(),Ze=Z=>su(void 0,null,function*(){var Ve;w(!0);const ze=yield u({type:"classroomList/createCoursesHomework",payload:{coursesId:b.coursesId,category_id:(b==null?void 0:b.categoryId)||null,subjects_info:[{subject_id:(Ve=S[0])==null?void 0:Ve.id,stage_shixuns:Z}]}});w(!1),ze.status||(Ne({courseId:b==null?void 0:b.coursesId,shixun_info:Z}),Te(!0))}),Qe=()=>{(0,B.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u7A0B\u5B9E\u9A8C","\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"]),I.ZP.success("\u64CD\u4F5C\u6210\u529F"),u({type:"classroomList/setActionTabs",payload:{}}),(0,a.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:Yu(nt({},t.actionTabs.params),{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:nt({},t.actionTabs.params)}),u({type:"classroomList/getClassroomLeftMenus",payload:{id:b.coursesId}})};return t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"?null:k.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!0,onClose:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},open:t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B",key:"bottom",rootClassName:x.drawer,footer:k.createElement("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"}},k.createElement(A.ZP,{size:"middle",onClick:()=>{u({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"}},"\u53D6\u6D88"),k.createElement(A.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",loading:n["classroomList/createCoursesHomework"],onClick:()=>su(void 0,null,function*(){var Z,Ve;if((S==null?void 0:S.length)===0)return I.ZP.error("\u8BF7\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B"),!1;let ze=yield(0,Ct.Tr)({id:(Z=S[0])==null?void 0:Z.identifier,type:"subject",stage_item_id:[],sync_catelog:1,course_id:(Ve=t.detailTopBanner)==null?void 0:Ve.course_id});yield Ze(ze==null?void 0:ze.no_use_list)}),type:"primary"},"\u786E\u5B9A"))},k.createElement("section",{className:"tc"},k.createElement(Qu,{placeholder:"\u8BFE\u7A0B\u540D\u79F0/\u8BFE\u7A0B\u6807\u8BC6/\u5408\u4F5C\u8005",enterButton:"\u641C\u7D22",size:"middle",className:x.search,onSearch:Z=>{F.keyword=Z,Z&&(0,vt.tk)({name:Z,copywriting:Z,position:"Subject"}),re(nt({},F))}})),k.createElement("section",{className:"edu-container"},k.createElement(st.Z,{spinning:n["classroomList/getCoursesLists"]},k.createElement("aside",null,k.createElement("div",{className:x.menuCourse},k.createElement("ul",null,k.createElement("li",null,"\u5DF2\u9009",k.createElement("span",{className:"c-blue"},S.length),"\u8BFE\u7A0B"),k.createElement("li",null,"\u5171",k.createElement("span",{className:"c-blue"},ye.subjects_count),"\u4E2A\u8BFE\u7A0B"),k.createElement("li",{className:"current",onClick:()=>{F.order=F.order==="asc"?"desc":"asc",F.sort="shixuns_count",re(nt({},F))}},"\u5B9E\u8BAD\u6570",k.createElement("p",{className:`edu-sorter current ${F.sort==="shixuns_count"&&F.order}`},k.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),k.createElement("span",{className:"iconfont icon-sanjiaoxing-down"}))),k.createElement("li",{className:"current",onClick:()=>{F.order=F.order==="asc"?"desc":"asc",F.sort="myshixuns_count",re(nt({},F))}},"\u5B66\u4E60\u4EBA\u6570",k.createElement("p",{className:`edu-sorter current ${F.sort==="myshixuns_count"&&F.order}`},k.createElement("span",{className:"iconfont icon-sanjiaoxing-up"}),k.createElement("span",{className:"iconfont icon-sanjiaoxing-down"}))),k.createElement("li",{className:`${F.type==="all"&&"c-blue"} current`,onClick:()=>{F.type="all",re(nt({},F))}},"\u5168\u90E8\u8BFE\u7A0B"),k.createElement("li",{className:`${F.type==="mine"&&"c-blue"} current`,onClick:()=>{F.type="mine",re(nt({},F))}},"\u6211\u7684\u8BFE\u7A0B"))),((p=ye==null?void 0:ye.subject_list)==null?void 0:p.length)===0&&k.createElement(fe.Z,null),(H=ye==null?void 0:ye.subject_list)==null?void 0:H.map(function(Z,Ve){var ze,tt,G,r,ie,be;return k.createElement("div",{className:x.listItem,key:Z.id,style:{cursor:"auto"}},k.createElement(te.ZP,{checked:S.map(we=>we.id).includes(Z.id),value:Z.id,style:{marginTop:"1px"},disabled:(Z==null?void 0:Z.need_authorize)||(Z==null?void 0:Z.shixun_tag_num_name)=="\u672A\u53D1\u5E03",onChange:we=>{J([{id:Z.id,identifier:Z.identifier}])}}),k.createElement("div",{className:x.info},k.createElement("div",{className:x.title},k.createElement("div",{className:x.titleLeft},k.createElement("div",null,k.createElement(M.Link,{to:`/paths/${Z.id}`,target:"_blank"},k.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:Z.title}})),(Z==null?void 0:Z.need_authorize)&&k.createElement("span",{onClick:()=>{(0,Ce.rX)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002")},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10"},"\u9700\u6388\u6743"),(Z==null?void 0:Z.shixun_tag_num_name)=="\u672A\u53D1\u5E03"&&k.createElement(L.Z,{zIndex:1e4,title:"\u5B9E\u8DF5\u8BFE\u7A0B\u9700\u53D1\u5E03\u540E\u624D\u80FD\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\uFF0C\u70B9\u51FB\u540D\u79F0\u53EF\u524D\u5F80\u8BFE\u7A0B\u8BE6\u60C5"},k.createElement("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10"},"\u672A\u53D1\u5E03"))),k.createElement(L.Z,{zIndex:1e4,title:"\u524D\u5F80\u9009\u7528\u662F\u8FDB\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u9875\u9762\u540E\uFF0C\u70B9\u51FB\u201C\u53D1\u9001\u201D\u6309\u94AE\uFF0C\u5C06\u6240\u9700\u5B9E\u8DF5\u9879\u76EE\u53D1\u9001\u81F3\u5F53\u524D\u8BFE\u5802"},k.createElement(A.ZP,{ghost:!0,href:`/paths/${Z.id}`,type:"primary",target:"_blank",style:{borderRadius:"50px"}},"\u524D\u5F80\u9009\u7528")))),k.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},k.createElement("span",{className:x.description,dangerouslySetInnerHTML:{__html:Z.description}})),k.createElement(qe.Z,{dashed:!0}),k.createElement("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"}},k.createElement("div",null,(ze=Z==null?void 0:Z.content)!=null&&ze.member_user_names?k.createElement(L.Z,{overlayClassName:x["tooltip-content"],title:k.createElement("div",null,k.createElement("span",{dangerouslySetInnerHTML:{__html:(tt=Z==null?void 0:Z.content)==null?void 0:tt.member_user_names}}))},k.createElement("span",{className:x.authorname,dangerouslySetInnerHTML:{__html:(G=Z==null?void 0:Z.content)==null?void 0:G.member_user_names}})):(Z==null?void 0:Z.member_user_names)&&k.createElement(L.Z,{title:k.createElement("div",null,k.createElement("span",null,Z.member_user_names))},k.createElement("span",{className:x.authorname},Z.member_user_names)),(r=Z==null?void 0:Z.content)!=null&&r.author_school_name?k.createElement(L.Z,{overlayClassName:x["tooltip-content"],title:k.createElement("div",null,k.createElement("span",{dangerouslySetInnerHTML:{__html:(ie=Z==null?void 0:Z.content)==null?void 0:ie.author_school_name}}))},k.createElement("span",{className:x.authorname,dangerouslySetInnerHTML:{__html:(be=Z==null?void 0:Z.content)==null?void 0:be.author_school_name}})):(Z==null?void 0:Z.author_school_name)&&k.createElement(L.Z,{title:k.createElement("div",null,k.createElement("span",null,Z.author_school_name))},k.createElement("span",{className:x.authorname},Z.author_school_name))),k.createElement("div",null,k.createElement("span",{className:"mr30"},"\u7AE0\u8282 \xA0",Z.stage_count),k.createElement("span",{className:"mr30"},"\u5B9E\u8BAD \xA0",Z.shixuns_count),k.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570 \xA0",Z.myshixuns_count)))))})))),k.createElement("div",{className:"tc mt20"},k.createElement(W.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,current:F.page||1,showQuickJumper:!0,total:ye==null?void 0:ye.subjects_count,onChange:Z=>{F.page=Z,u({type:"classroomList/getCoursesLists",payload:nt({},F)})}})),k.createElement(Dt.Z,{resdata:de,type:"subject",okloading:Pe,oktext:"\u4E00\u952E\u590D\u5236\u5E76\u4F7F\u7528",onok:Z=>{Ze(Z)}}),k.createElement(At.Z,{source:"\u5B9E\u8BAD",showModal:ve,onCancel:()=>Te(!1),info:Ee,onOk:Qe}))};var qu=(0,M.connect)(({classroomList:t,loading:n})=>({classroomList:t,loading:n.effects}))(Xu),en=l(60643),Et=l(59301),tn=Object.defineProperty,ou=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,ru=(t,n,u)=>n in t?tn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,iu=(t,n)=>{for(var u in n||(n={}))un.call(n,u)&&ru(t,u,n[u]);if(ou)for(var u of ou(n))nn.call(n,u)&&ru(t,u,n[u]);return t},ln=({styles:t={},params:n,setisshowmodal:u,user:p})=>{var H;return Et.createElement("section",{className:"tc animated fadeIn",style:iu(iu({},{color:"#999",margin:"200px auto"}),t)},Et.createElement("img",{src:en.z3}),Et.createElement("p",{className:"mt20 font14"},`\u8BE5${n.category?"\u5206\u7EC4":"\u8BFE\u7A0B"}\u65E0\u8BFE\u7A0B\u5B9E\u9A8C\uFF0C\u53EF\u4EE5\u4E0B\u65B9\u6309\u94AE\u6216\u53F3\u4E0A\u65B9\u201C\u9009\u7528\u5B9E\u9A8C\u201D\u6309\u94AE\u521B\u5EFA\u4F5C\u4E1A`),Et.createElement("div",{style:{marginTop:"30px"}},Et.createElement(A.ZP,{disabled:((H=p==null?void 0:p.userInfo)==null?void 0:H.user_status)===2,onClick:()=>{u(!0)},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px",marginRight:"20px"}},"\u9009\u7528\u5B9E\u9A8C"),Et.createElement(A.ZP,{onClick:()=>{(0,B.xg)("https://www.educoder.net/forums/4909")},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px"}},"\u65B0\u5EFA\u4F5C\u4E1A\u6307\u5F15")))},_e={flex_box_center:"flex_box_center___i0kQ7",flex_space_between:"flex_space_between___st8Nm",flex_box_vertical_center:"flex_box_vertical_center___cGman",flex_box_center_end:"flex_box_center_end___xCqb1",flex_box_column:"flex_box_column___90t8q",bg:"bg___yvvvB",containerDesc:"containerDesc___McNkA",tablestyle:"tablestyle____NWqR",listItem:"listItem___Kb3j3",info:"info___QEKlY",title:"title___IjCCo",titleLeft:"titleLeft___iZ9Qh",titleRight:"titleRight___QK1TN",moveCategory:"moveCategory___ydIP9",name:"name___CCaOX",categoryName:"categoryName___cyGX3",schedule:"schedule___Dx5uk",fnSign:"fnSign___oPdpV",spanSize:"spanSize___LVOA3",classromediv:"classromediv___LNulU",glow:"glow___KEPta",action:"action___WEeMi",btn:"btn___anrwi",btnSort:"btnSort___iBwPq",tips:"tips___ezxph",fixedBottom:"fixedBottom___RTnOi",left:"left___aDYtw",right:"right___txYei",acitons:"acitons___iwBUY",actionBtns:"actionBtns___wvnKM",cancel:"cancel___VgzVn",selectBtn:"selectBtn___mMh11",selectBtn1:"selectBtn1___DNQsU",infoIcon:"infoIcon___fxDKp",infoStuIcon:"infoStuIcon___eoBo6",flexBox:"flexBox____AlDk",iconH:"iconH___Hmjwy",iconV:"iconV___VhZ00",actionIcon:"actionIcon___MWxMa",dro:"dro___bzbDZ",progressInfo:"progressInfo___bQbcf",authorized:"authorized___ZUIgn",btn_warp:"btn_warp___GFOwC",buttonitem:"buttonitem___mOwsZ"},an=l(37639),cu=l(70858),sn=l(41805),on=l(24668),rn=l(34359),mu=l(60761),i=l(59301),cn=Object.defineProperty,mn=Object.defineProperties,dn=Object.getOwnPropertyDescriptors,du=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Eu=(t,n,u)=>n in t?cn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,St=(t,n)=>{for(var u in n||(n={}))En.call(n,u)&&Eu(t,u,n[u]);if(du)for(var u of du(n))pn.call(n,u)&&Eu(t,u,n[u]);return t},pu=(t,n)=>mn(t,dn(n)),Ye=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())}),fn=({v:t,k:n,match:u,selectArrs:p,setSelectArrs:H,setSelectArrsAll:b,selectArrsAll:ee,classroomList:m,dispatch:s,selectshow:_,batchState:ye,pageSize:S,page:J,manageAllGroup:de,user:De,getData:Pe,paramst:w})=>{var F,re,ve,Te,Ee,Ne,O;const R=St(St({},(0,M.useParams)()),w),[y,Le]=(0,e.useState)([]),[Ze,Qe]=(0,e.useState)(!1),[Z,Ve]=(0,e.useState)(!1),[ze,tt]=(0,e.useState)(!0),G=(0,e.useRef)(),[r,ie]=(0,e.useState)(!1);R.category=R.categoryId,R.id=R.coursesId,R.page=J,R.limit=S;function be(){return Ye(this,null,function*(){let d=yield(0,$.ZP)(`/api/homework_commons/${t.homework_id}/group_settings_statistics.json`,{method:"get",params:St({},R)});Le(d.data)})}(0,e.useEffect)(()=>{var d;Le([]),Qe(!1),new Date(t==null?void 0:t.student_passed_time).getTime()>new Date(t==null?void 0:t.end_time_s).getTime()&&((d=t==null?void 0:t.status)!=null&&d.includes("\u5DF2\u622A\u6B62"))&&(t==null?void 0:t.checked_challenge_count)-(t==null?void 0:t.finished_challenge_count)===0?(Ve(!1),tt(!1)):((t==null?void 0:t.checked_challenge_count)-(t==null?void 0:t.finished_challenge_count)===0&&new Date(t==null?void 0:t.student_passed_time).getTime()ne.status.indexOf(d)===0},{title:"\u63D0\u4EA4\u60C5\u51B5",dataIndex:"statistics",key:"statistics",width:80,render:d=>{var ne,ce;return d==="--"?d:i.createElement("span",null,i.createElement("span",null,(ne=d==null?void 0:d.split("/"))==null?void 0:ne[0]),"\xA0/\xA0",i.createElement("span",null,(ce=d==null?void 0:d.split("/"))==null?void 0:ce[1]))}},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:R.order_by==="end_time"?R.sort_direction==="desc"?"descend":"ascend":null},{title:"\u8865\u4EA4\u65F6\u95F4",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:R.order_by==="late_time"?R.sort_direction==="desc"?"descend":"ascend":null},{title:"\u5206\u73ED\u8001\u5E08",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:d=>d==="--"||!d?"--":i.createElement("span",{title:d},d)}],Ke=d=>{if((0,Ce.tJ)(s,!0)){if(d.can_view_details){(0,B.xg)(`/shixuns/${d.shixun_identifier}/challenges?homework_common_id=${d==null?void 0:d.homework_id}`);return}if((0,a.GJ)()){(0,B.xg)(`/shixuns/${d.forked_shixun_identifier}/challenges?homework_common_id=${d==null?void 0:d.homework_id}`);return}d.redo?E.default.confirm({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u518D\u60F3\u60F3",content:i.createElement("div",{className:"tc font16"},"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u9700\u8981\u91CD\u65B0\u6311\u6218"),onOk:()=>Ye(void 0,null,function*(){const ne=yield(0,rn.L8)({id:d.myshixun_identifier,url:d.url});ne&&(0,mu.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:ne.shixun_identifier,homework_common_id:d.homework_id,courseId:R.coursesId})})}):(0,mu.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:d.shixun_identifier,homework_common_id:d.homework_id,courseId:R.coursesId})}},$t=d=>Ye(void 0,null,function*(){const ne=yield(0,$.ZP)(`/api/courses/${R==null?void 0:R.coursesId}/sync_shixuns.json`,{method:"post",body:{homework_common_ids:[d]}});(ne==null?void 0:ne.status)===0&&(s({type:"classroomList/setActionTabs",payload:{}}),I.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),Pe())});return i.createElement("div",{className:_e.listItem,onClick:d=>{d.stopPropagation(),(!((0,a.GJ)()&&ye)||(0,a.GJ)()&&ye&&G.current&&!G.current.contains(d.target))&&((0,a.dE)()?(0,B.xg)(`/classrooms/${R.coursesId}/shixun_homework/${t.homework_id}/detail?tabs=1`):(0,B.xg)(`/classrooms/${R.coursesId}/shixun_homework/${t.homework_id}/detail?tabs=0`))},key:n},(0,a.GJ)()&&ye&&i.createElement("span",{ref:G},i.createElement(P.default,{style:{padding:"10px"},checked:p.includes(t.homework_id),value:t.homework_id,onClick:d=>{d.stopPropagation()},onChange:d=>{let ne=p.indexOf(t.homework_id);p.indexOf(t.homework_id)>-1?(H(p.filter(ce=>ce!==t.homework_id)),b(ee.filter(ce=>ce.homework_id!==t.homework_id))):(b(ee.concat(t)),H(p.concat(t.homework_id)))}})),i.createElement("div",{className:_e.info},i.createElement("div",{className:_e.title},i.createElement("div",{className:_e.titleLeft,style:(0,a.dE)()?{paddingRight:(t==null?void 0:t.checked_challenge_count)-(t==null?void 0:t.finished_challenge_count)?60:140}:{}},(0,a.GJ)()&&i.createElement(on.Z,{value:t.status},i.createElement(B.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[t.status]})),(0,a.dE)()&&i.createElement(B.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:t.status}),i.createElement(L.Z,{title:t.name},i.createElement("span",{className:_e.name},t.name)),(0,a.GJ)()&&t.related_poll&&i.createElement(L.Z,{title:"\u672C\u4F5C\u4E1A\u5305\u542B\u8C03\u67E5\u95EE\u5377"},i.createElement("i",{onClick:d=>{d.stopPropagation(),(0,B.xg)(`/classrooms/${R.coursesId}/poll/${t.poll_id}/detail`)},className:"iconfont icon-tiaochawenjuan ml5",style:{color:"#27C970"}})),(0,a.dE)()&&t.related_poll&&i.createElement(L.Z,{title:"\u672C\u4F5C\u4E1A\u5305\u542B\u8C03\u67E5\u95EE\u5377"+(t.poll_commit_status?"(\u5DF2\u5B8C\u6210)":"(\u672A\u5B8C\u6210)")},i.createElement("i",{onClick:d=>{var ne;if(d.stopPropagation(),t.poll_status===1){I.ZP.warning("\u8C03\u67E5\u95EE\u5377\u6682\u672A\u53D1\u5E03\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08\u67E5\u770B\u60C5\u51B5");return}t.poll_commit_status?(0,B.xg)(`/classrooms/${R.coursesId}/poll/${t.poll_id}/detail?tabs=0`):(0,B.xg)(`/classrooms/${R.coursesId}/poll/${t.poll_id}/users/${(ne=De.userInfo)==null?void 0:ne.login}`)},className:"iconfont icon-tiaochawenjuan ml5",style:{color:t.poll_commit_status?"#27C970":"#8DC7A7"}})),(0,a.G5)()&&(t==null?void 0:t.shixun_change)&&i.createElement(an.Z,{open:r,onOpenChange:d=>{ie(d)},placement:"bottomLeft",title:null,content:i.createElement("div",{style:{width:"310px",color:"#000"},onClick:d=>d.stopPropagation()},i.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u5B9E\u8BAD\u4F5C\u4E1A\u4E2D"),i.createElement("div",{className:_e.btn_warp},i.createElement(A.ZP,{size:"small",onClick:()=>ie(!1)},"\u5FFD\u7565"),i.createElement(A.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{ie(!1),s({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>$t(t==null?void 0:t.homework_id)}})}},"\u786E\u8BA4\u540C\u6B65"),i.createElement(A.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,B.xg)(`/shixuns/${t==null?void 0:t.forked_shixun_identifier}/challenges`)},"\u524D\u5F80\u67E5\u770B")))},i.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:d=>d.stopPropagation()})),!!((F=t.schools)!=null&&F.length)&&i.createElement(L.Z,{title:"\u8BE5\u8BFE\u7A0B\u5B9E\u9A8C\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},i.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 mr10 c-orange"})),(t==null?void 0:t.high_resources_consume)&&!(t!=null&&t.high_resources_consume_permission)&&i.createElement(Bt.Z,{type:"shixun",style:{marginLeft:10}}),(t==null?void 0:t.high_resources_consume)&&(t==null?void 0:t.high_resources_consume_permission)&&i.createElement("span",{className:_e.authorized},"\u5DF2\u6388\u6743"),((re=t==null?void 0:t.shixun_marks)==null?void 0:re.includes("ARM"))&&i.createElement("span",{className:"tag-badge ml10"},"ARM"),((ve=t==null?void 0:t.shixun_marks)==null?void 0:ve.includes("GPU"))&&i.createElement("span",{className:"tag-badge ml10"},"GPU")),i.createElement("div",{className:_e.titleRight},(0,a.GJ)()&&(t==null?void 0:t.status.indexOf("\u672A\u53D1\u5E03"))===0&&i.createElement(M.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){var ne;if(d.stopPropagation(),d.preventDefault(),((ne=De==null?void 0:De.userInfo)==null?void 0:ne.user_status)===2){(0,Ce.Rd)();return}let ce=()=>{s({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:w,type:2,manage_all_group:de}})};t!=null&&t.high_resources_consume&&!(t!=null&&t.high_resources_consume_permission)?s({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:R.coursesId,type:"shixun",type_id:t.homework_id,name:t.name,fn:()=>{s({type:"classroomList/getClassroomTeacherShixunsList",payload:pu(St({},R),{type:4})}),ce()}}}):ce()})},i.createElement("aside",{className:_e.flexBox},i.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),i.createElement("div",null,"\u53D1\u5E03"))),(0,a.dE)()&&i.createElement("div",{className:_e.actionIcon},Z?i.createElement("i",{className:"iconfont icon-yiwancheng1"}):ze?"":i.createElement("i",{className:"iconfont icon-jiezhihoutongguan"}),!((Te=t.status)!=null&&Te.includes("\u5DF2\u622A\u6B62"))&&!((Ee=t.status)!=null&&Ee.includes("\u5BFC\u5165"))&&i.createElement("aside",{onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),Ke(t)}),className:_e.flexBox,style:{marginRight:10}},i.createElement("i",{className:"iconfont icon-kaishixuexi font14"}),i.createElement("div",null,"\u5F00\u59CB\u5B66\u4E60")),(((Ne=t.status)==null?void 0:Ne.includes("\u5DF2\u622A\u6B62"))||((O=t.status)==null?void 0:O.includes("\u5BFC\u5165")))&&i.createElement("aside",{onClick:d=>Ye(void 0,null,function*(){var ne;(ne=t.status)!=null&&ne.includes("\u5BFC\u5165")||(d.stopPropagation(),d.preventDefault(),(0,B.xg)(`/classrooms/${R.coursesId}/shixun_homework/${t.homework_id}/${t.student_work_id}/comment`))}),className:_e.flexBox,style:{marginRight:10}},i.createElement("i",{className:"iconfont icon-chakanzuoye font14"}),i.createElement("div",null,"\u67E5\u770B\u4F5C\u54C1"))),(0,a.GJ)()&&i.createElement(pe.Z,{placement:"bottomCenter",overlayClassName:_e.dro,dropdownRender:()=>i.createElement(h.default,null,t.status!=="\u5BFC\u5165"&&i.createElement(h.default.Item,{key:1,style:{textAlign:"center"}},i.createElement("a",{onClick:d=>Ye(void 0,null,function*(){var ne;if(d.stopPropagation(),d.preventDefault(),((ne=De==null?void 0:De.userInfo)==null?void 0:ne.user_status)===2){(0,Ce.Rd)();return}let ce=()=>{s({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:R,type:2,manage_all_group:de}})};t!=null&&t.high_resources_consume&&!(t!=null&&t.high_resources_consume_permission)?s({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:R.coursesId,type:"shixun",type_id:t.homework_id,name:t.name,fn:()=>{s({type:"classroomList/getClassroomTeacherShixunsList",payload:pu(St({},R),{type:4})}),ce()}}}):ce()})},"\u7ACB\u5373\u53D1\u5E03")),t.status!=="\u5BFC\u5165"&&i.createElement(h.default.Item,{key:2,style:{textAlign:"center"}},i.createElement("a",{onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),s({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:R,type:2}})})},"\u7ACB\u5373\u622A\u6B62")),t.status==="\u5BFC\u5165"&&i.createElement(h.default.Item,{key:23,style:{textAlign:"center"}},i.createElement(M.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),s({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:t==null?void 0:t.name,id:t==null?void 0:t.homework_id,type:"practice"}})})},"\u8865\u5145\u6210\u7EE9")),i.createElement(h.default.Item,{key:22,style:{textAlign:"center"}},i.createElement(M.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),s({type:"classroomList/setActionTabs",payload:{key:"\u5220\u9664",selectArrs:[t==null?void 0:t.homework_id],selectArrsAll:[t],params:R,status:t==null?void 0:t.status}})})},"\u7ACB\u5373\u5220\u9664")),t.status!=="\u5BFC\u5165"&&(t==null?void 0:t.status.indexOf("\u672A\u53D1\u5E03"))<0&&i.createElement(h.default.Item,{key:3,style:{textAlign:"center"}},i.createElement(M.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),s({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const ne=yield(0,sn.Vs)({categoryId:t.homework_id});s({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(ne==null?void 0:ne.status)===0&&I.ZP.success(ne==null?void 0:ne.message)})},"\u66F4\u65B0\u6210\u7EE9")),t.status!=="\u5BFC\u5165"&&i.createElement(h.default.Item,{key:23,style:{textAlign:"center"}},i.createElement(M.Link,{target:"_blank",to:"/",onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),Ke(t)})},"\u8FDB\u5165\u5B9E\u8BAD")),i.createElement(h.default.Item,{key:5,style:{textAlign:"center"}},i.createElement("a",{onClick:d=>{d.stopPropagation(),d.preventDefault(),s({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u547D\u540D",selectArrs:t,params:R}})}},"\u91CD\u65B0\u547D\u540D")),t.status!=="\u5BFC\u5165"&&i.createElement(h.default.Item,{key:6,style:{textAlign:"center"}},i.createElement(M.Link,{target:"_blank",onClick:d=>{d.stopPropagation()},to:`/classrooms/${R.coursesId}/shixun_homework/${t.homework_id}/detail?tabs=3`},"\u9AD8\u7EA7\u8BBE\u7F6E")))},i.createElement("aside",{onClick:d=>d.stopPropagation(),className:_e.flexBox,style:{cursor:"default"}},i.createElement("i",{className:"iconfont icon-gengduo4"}),i.createElement("div",null,"\u66F4\u591A"))))),(0,a.GJ)()&&i.createElement("p",{className:_e.infoIcon},i.createElement("span",{className:"c-grey-333 mr20"},t.author),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D"].includes(t.status)&&!!t.uncommit_count&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u672A\u505A\u9898"),t.uncommit_count,"\u4EBA"),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u5DF2\u7ED3\u675F"].includes(t.status)&&!!t.commit_count&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u5DF2\u505A\u9898"),t.commit_count,"\u4EBA"),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u5DF2\u7ED3\u675F"].includes(t.status)&&!!t.compelete_count&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u5DF2\u5B8C\u6210"),t.compelete_count,"\u4EBA"),["\u672A\u5F00\u59CB"].includes(t.status)&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u5F00\u59CB\u65F6\u95F4"),t.publish_time),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D"].includes(t.status)&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4"),t.end_time),["\u5DF2\u7ED3\u675F"].includes(t.status)&&i.createElement("span",{className:"c-grey-999 mr10"},i.createElement("span",{className:"mr5"},"\u7ED3\u675F\u65F6\u95F4"),t.status_time),!!(t!=null&&t.late_time)&&(t==null?void 0:t.late_time)!=="--"&&i.createElement("span",{className:"c-grey-999"},i.createElement("span",{className:"mr5"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),t==null?void 0:t.late_time),["\u672A\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u622A\u6B62","\u63D0\u4EA4\u4E2D","\u8865\u4EA4\u4E2D","\u5DF2\u7ED3\u675F"].includes(t.status)&&i.createElement("span",{className:_e.iconV,onClick:d=>Ye(void 0,null,function*(){d.stopPropagation(),d.preventDefault(),Ze||be(),Qe(!Ze)})},i.createElement("i",{className:`iconfont icon-${Ze?"shouqi":"xiala2"}`})," ")),(0,a.dE)()&&i.createElement("span",{className:_e.infoStuIcon},i.createElement("span",{className:"c-grey-333"},t.author),i.createElement("span",{className:"c-grey-999 ml20"},i.createElement("i",{className:"iconfont icon-wanchengjindu font12 mr5"}),i.createElement("span",null,i.createElement("span",{className:"c-light-primary"},t==null?void 0:t.finished_challenge_count),"/",t==null?void 0:t.checked_challenge_count)),t.status.includes("\u5DF2\u622A\u6B62")&&!!(t!=null&&t.status_time)&&i.createElement("span",{className:"c-grey-999 ml20"},i.createElement("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",t==null?void 0:t.status_time),i.createElement("span",{className:"ml20 c-grey-999"},i.createElement("i",{className:"iconfont icon-shijian1 font12 mr5"}),t==null?void 0:t.publish_time," \u81F3 ",t==null?void 0:t.end_time," "),!!(t!=null&&t.late_time)&&(t==null?void 0:t.late_time)!=="--"&&i.createElement("span",{className:"c-grey-999 ml20"},i.createElement("span",{className:"mr5"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),t==null?void 0:t.late_time)),(0,a.GJ)()&&!t.status.includes("\u672A\u53D1\u5E03")&&Ze&&y.length>5&&i.createElement(cu.default,{rowKey:"shixun_identifier",scroll:{y:240},onRow:d=>({onClick:ne=>{ne.stopPropagation(),ne.preventDefault()}}),onHeaderRow:(d,ne)=>({onClick:ce=>{ce.stopPropagation(),ce.preventDefault()}}),pagination:!1,dataSource:y,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:(d,ne,ce)=>{ce.field&&(R.order_by=ce.field),ce.order||(R.sort_direction="asc"),ce.order==="ascend"&&(R.sort_direction="asc"),ce.order==="descend"&&(R.sort_direction="desc"),ce.order||(R.sort_direction="asc"),be()},columns:we}),(0,a.GJ)()&&!t.status.includes("\u672A\u53D1\u5E03")&&Ze&&y.length<6&&y.length>0&&i.createElement(cu.default,{rowKey:"shixun_identifier",onRow:d=>({onClick:ne=>{ne.stopPropagation(),ne.preventDefault()}}),onHeaderRow:(d,ne)=>({onClick:ce=>{ce.stopPropagation(),ce.preventDefault()}}),pagination:!1,dataSource:y,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:(d,ne,ce)=>{ce.field&&(R.order_by=ce.field),ce.order||(R.sort_direction="asc"),ce.order==="ascend"&&(R.sort_direction="asc"),ce.order==="descend"&&(R.sort_direction="desc"),ce.order||(R.sort_direction="asc"),be()},columns:we})))},_n=l(20750),Fn=l(70863),yn=l(13872),hn=l(82326),gn=l(24017),vn=l(64796),Bn=l.n(vn),zt=l(87218),Kt=l(67277),se=l(59301),Dn=Object.defineProperty,Cn=Object.defineProperties,An=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,_u=Object.prototype.propertyIsEnumerable,Fu=(t,n,u)=>n in t?Dn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,pt=(t,n)=>{for(var u in n||(n={}))fu.call(n,u)&&Fu(t,u,n[u]);if(Mt)for(var u of Mt(n))_u.call(n,u)&&Fu(t,u,n[u]);return t},yu=(t,n)=>Cn(t,An(n)),xn=(t,n)=>{var u={};for(var p in t)fu.call(t,p)&&n.indexOf(p)<0&&(u[p]=t[p]);if(t!=null&&Mt)for(var p of Mt(t))n.indexOf(p)<0&&_u.call(t,p)&&(u[p]=t[p]);return u},Ut=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});Re().extend(Bn());const bn=({data:t,value:n,onChange:u})=>{var p,H,b,ee;const[m,s]=(0,e.useState)({leftSearch:"",rigthSearch:""}),[_,ye]=(0,e.useState)([]);return(0,e.useEffect)(()=>{ye((n==null?void 0:n.length)>0?t==null?void 0:t.filter(S=>n==null?void 0:n.includes(S==null?void 0:S.id)):[])},[n]),se.createElement("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"}},se.createElement("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"}},se.createElement(P.default,{indeterminate:(_==null?void 0:_.length)>0&&(_==null?void 0:_.length)<(t==null?void 0:t.length),checked:(_==null?void 0:_.length)==(t==null?void 0:t.length),onChange:S=>{u(S.target.checked?t==null?void 0:t.map(J=>J==null?void 0:J.id):[])}},"\u5168\u9009"),se.createElement("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"}},se.createElement(X.default.Search,{className:"p20",style:{paddingBottom:0},placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2",value:m.leftSearch,onChange:S=>{s(yu(pt({},m),{leftSearch:S.target.value}))}}),se.createElement("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"}},((p=m.leftSearch?t==null?void 0:t.filter(S=>{var J;return(J=S==null?void 0:S.name)==null?void 0:J.includes(m.leftSearch)}):t)==null?void 0:p.length)!==0?se.createElement(P.default.Group,{value:n,onChange:S=>{u(S)}},se.createElement(Y.Z,{direction:"vertical"},(H=m.leftSearch?t==null?void 0:t.filter(S=>{var J;return(J=S==null?void 0:S.name)==null?void 0:J.includes(m.leftSearch)}):t)==null?void 0:H.map((S,J)=>se.createElement(P.default,{key:J,value:S.id},S==null?void 0:S.name)))):se.createElement(fe.Z,{styles:{margin:"0 auto"}})))),se.createElement("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"}},se.createElement("div",null,"\u5DF2\u9009\u62E9",(_==null?void 0:_.length)||0,"\u4E2A\u5206\u73ED"),se.createElement("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"}},se.createElement(X.default.Search,{className:"p20",style:{paddingBottom:0},placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2",value:m.rigthSearch,onChange:S=>{s(yu(pt({},m),{rigthSearch:S.target.value}))}}),se.createElement("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"}},((b=m.rigthSearch?_==null?void 0:_.filter(S=>{var J;return(J=S==null?void 0:S.name)==null?void 0:J.includes(m.rigthSearch)}):_)==null?void 0:b.length)!==0?(ee=m.rigthSearch?_==null?void 0:_.filter(S=>{var J;return(J=S==null?void 0:S.name)==null?void 0:J.includes(m.rigthSearch)}):_)==null?void 0:ee.map((S,J)=>se.createElement(T.Z,{key:J,wrap:!1,align:"middle",justify:"space-between"},se.createElement(v.Z,null,S==null?void 0:S.name),se.createElement(v.Z,null,se.createElement("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:()=>{u(n==null?void 0:n.filter(de=>de!==(S==null?void 0:S.id)))}})))):se.createElement(fe.Z,{styles:{margin:"0 auto"}})))))},Pn=t=>{var n=t,{classroomList:u,dispatch:p,user:H,getData:b}=n,ee=xn(n,["classroomList","dispatch","user","getData"]),m,s,_,ye,S,J;const de=(0,M.useParams)(),[De]=Ge.default.useForm(),Pe=Ge.default.useWatch("penalty_type",De),w=((m=u==null?void 0:u.actionTabs)==null?void 0:m.key)==="\u6279\u91CF\u8865\u4EA4",[,F,re,ve]=(0,Kt.U)(zt.c_,pt(pt({},de),(s=u==null?void 0:u.actionTabs)==null?void 0:s.params)),[,,Te,Ee]=(0,Kt.U)(zt.nP,{course_id:de==null?void 0:de.coursesId,homework_ids:(_=u==null?void 0:u.actionTabs)==null?void 0:_.selectArrs}),[,Ne,O]=(0,Kt.U)(zt.sm,{course_id:de==null?void 0:de.coursesId,homework_ids:(ye=u==null?void 0:u.actionTabs)==null?void 0:ye.selectArrs}),R=(...y)=>Ut(void 0,[...y],function*(Le={}){Te({});const Ze=yield re({page:1,limit:2e4,homework_id:u.actionTabs.type===1?"":u.actionTabs.selectArrs[0]})});return(0,e.useEffect)(()=>{w&&R()},[w]),se.createElement(E.default,{centered:!0,title:(S=u==null?void 0:u.actionTabs)==null?void 0:S.key,width:800,open:w,cancelText:"\u6682\u4E0D\u8865\u4EA4",okText:"\u5F00\u542F\u8865\u4EA4",onCancel:()=>{p({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:Ne,onOk:()=>Ut(void 0,null,function*(){De.submit()})},se.createElement("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"}},"\u89C4\u5219\u8BF4\u660E\uFF1A\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B\u5F53\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3001\u4E0D\u53EF\u5173\u95ED\u8865\u4EA4\uFF1B\u5F53\u4F5C\u4E1A\u72B6\u6001\u4E3A\u672A\u53D1\u5E03\u6216\u8005\u4F5C\u4E1A\u5DF2\u5F00\u542F\u7EDF\u4E00\u8865\u4EA4\u65F6\uFF0C\u65B0\u6279\u91CF\u8865\u4EA4\u89C4\u5219\u4E0D\u751F\u6548\u3002"),se.createElement(Ge.default,{form:De,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_penalty:20},onFinish:y=>Ut(void 0,null,function*(){var Le,Ze,Qe;const Z=yield O(((Le=ve==null?void 0:ve.course_groups)==null?void 0:Le.length)>0?{unified_late:((Ze=ve==null?void 0:ve.course_groups)==null?void 0:Ze.length)<=0,allow_late_settings:[pt({},y)]}:pt({unified_late:((Qe=ve==null?void 0:ve.course_groups)==null?void 0:Qe.length)<=0},y));(Z==null?void 0:Z.status)==0&&(I.ZP.success("\u8865\u4EA4\u8BBE\u7F6E\u6210\u529F"),p({type:"classroomList/setActionTabs",payload:{}}),b&&b())})},se.createElement(T.Z,{wrap:!1,gutter:20},se.createElement(v.Z,{flex:1},se.createElement(Ge.default.Item,{label:"\u8865\u4EA4\u6263\u5206",name:"late_penalty",rules:[{required:!0,validator(y,Le,Ze){return Pe===2&&Le>100?Promise.reject(se.createElement("span",{style:{marginLeft:100}},"\u8BF7\u91CD\u65B0\u8F93\u5165\uFF0C\u8303\u56F40-100")):Promise.resolve()}},{required:!0,message:se.createElement("span",{style:{marginLeft:100}},"\u8BF7\u8F93\u5165\u8865\u4EA4\u6263\u5206")}]},se.createElement(X.default,{placeholder:"\u8BF7\u8F93\u5165\u8865\u4EA4\u6263\u5206",min:0,type:"number",suffix:Pe==1?"\u5206":"%",max:Pe===1?Number.MAX_SAFE_INTEGER:100,addonBefore:se.createElement(Ge.default.Item,{name:"penalty_type",noStyle:!0,normalize:y=>(De.setFieldsValue({late_penalty:y==2?20:5}),y)},se.createElement(hn.default,{style:{width:100},options:[{value:2,label:"\u767E\u5206\u6BD4"},{value:1,label:"\u5206\u503C"}]}))}))),se.createElement(v.Z,{flex:"390px"},se.createElement(Ge.default.Item,{label:"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4",name:"late_time",rules:[{required:!0,validator(y,Le,Ze){return Le&&Re()(Le).startOf("minute")<=Re()().startOf("minute")?Promise.reject("\u4F5C\u4E1A\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u6B64\u523B"):Le&&Re()(Le).startOf("minute")<=Re()(Ee==null?void 0:Ee.max_late_time).startOf("minute")?(I.ZP.warning(`\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5C0F\u4E8E\u9009\u4E2D\u4F5C\u4E1A\u4E2D\u6700\u665A\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1A${Ee==null?void 0:Ee.max_late_time}`),Promise.reject("")):Promise.resolve()}},{required:!0,message:"\u8BF7\u5148\u8BBE\u7F6E\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"}]},se.createElement(gn.default,{placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",style:{width:"100%"},disabledDate:y=>(0,B.BO)(y,{startTime:Ee==null?void 0:Ee.max_late_time}),disabledTime:y=>(0,B.hv)(y,{compared:Ee==null?void 0:Ee.max_late_time}),format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:Re()("00:00:00","HH:mm:ss")}})))),((J=ve==null?void 0:ve.course_groups)==null?void 0:J.length)>0&&se.createElement(st.Z,{spinning:F},se.createElement(Ge.default.Item,{name:"group_id",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u73ED\u7EA7"}]},se.createElement(bn,{data:(ve==null?void 0:ve.course_groups)||[],onChange:y=>{Te({group_ids:y})}})))))};var Sn=(0,M.connect)(({classroomList:t,user:n})=>({classroomList:t,user:n}))(Pn),On=l(13509),Nn=l(77627),o=l(59301),kn=Object.defineProperty,wn=Object.defineProperties,In=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,hu=Object.prototype.hasOwnProperty,gu=Object.prototype.propertyIsEnumerable,vu=(t,n,u)=>n in t?kn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[n]=u,at=(t,n)=>{for(var u in n||(n={}))hu.call(n,u)&&vu(t,u,n[u]);if(Rt)for(var u of Rt(n))gu.call(n,u)&&vu(t,u,n[u]);return t},jt=(t,n)=>wn(t,In(n)),Tn=(t,n)=>{var u={};for(var p in t)hu.call(t,p)&&n.indexOf(p)<0&&(u[p]=t[p]);if(t!=null&&Rt)for(var p of Rt(t))n.indexOf(p)<0&&gu.call(t,p)&&(u[p]=t[p]);return u},Bu=(t,n,u)=>new Promise((p,H)=>{var b=s=>{try{m(u.next(s))}catch(_){H(_)}},ee=s=>{try{m(u.throw(s))}catch(_){H(_)}},m=s=>s.done?p(s.value):Promise.resolve(s.value).then(b,ee);m((u=u.apply(t,n)).next())});const Ln=t=>{var n=t,{classroomList:u,globalSetting:p,shixunHomeworks:H,user:b,loading:ee,dispatch:m,match:s}=n,_=Tn(n,["classroomList","globalSetting","shixunHomeworks","user","loading","dispatch","match"]),ye,S,J,de,De,Pe,w;const F=(0,M.useLocation)(),re=(0,M.useParams)(),[ve]=(0,M.useSearchParams)(),Te=re.categoryId,[Ee,Ne]=(0,e.useState)([]),[O,R]=(0,e.useState)([]),{detailShixunsList:y,detailLeftMenus:Le,detailTopBanner:Ze,taskList:Qe}=u,[Z,Ve]=(0,e.useState)(""),[ze,tt]=(0,e.useState)(!1),[G,r]=(0,e.useState)({limit:20,status:Number(ve.get("tabs"))?String(parseInt(ve.get("tabs"))):"0"}),[ie,be]=(0,e.useState)("\u9ED8\u8BA4\u6392\u5E8F"),[we,Ke]=(0,e.useState)(!1),[$t,d]=(0,e.useState)(!1),[ne,ce]=(0,e.useState)("fixed"),[Du]=(0,e.useState)(document.getElementById("footer")),[Cu,Mn]=(0,e.useState)(1),[Rn,nl]=(0,e.useState)(!1);let Jt;G.id=re.coursesId,G.type=4,re.categoryId?G.category=re.categoryId:delete G.category,(0,e.useEffect)(()=>{u.actionTabs.key==="\u6E05\u9664\u9009\u62E9\u6570\u636E"&&(Ne([]),R([])),u.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&et()},[u.actionTabs.key]),(0,e.useEffect)(()=>{ve.get("tabs")==="0"&&(G.status="0",G.page=1,r(at({},G)))},[ve.get("tabs")]),(0,e.useEffect)(()=>{var c,ue,Xe;if((c=b==null?void 0:b.userInfo)!=null&&c.login){const Ue=B.cX.getItem(`${(ue=b==null?void 0:b.userInfo)==null?void 0:ue.login}${(0,a.GJ)()?"Teacher":"Student"}`,"ShixunHomeworks");Ue&&(G.sort_by=Ue==null?void 0:Ue.type,G.sort_direction=Ue==null?void 0:Ue.direction,be(Ue==null?void 0:Ue.name)),et(),(0,a.Rm)()&&$n()}else(Xe=b==null?void 0:b.userInfo)!=null&&Xe.username&&et()},[(ye=b==null?void 0:b.userInfo)==null?void 0:ye.login,F==null?void 0:F.pathname]),(0,e.useEffect)(()=>{window.addEventListener("scroll",jn)},[]);const jn=()=>{document.scrollingElement.scrollTop+window.innerHeight+(Du==null?void 0:Du.clientHeight)+150>document.body.clientHeight?ce("absolute"):ce("fixed")},$n=()=>{m({type:"classroomList/getAssistantPermissions",payload:{course_id:G.id}})},et=()=>{Ne([]),R([]),r(at({},G)),(0,a.GJ)()?m({type:"classroomList/getClassroomTeacherShixunsList",payload:jt(at({},G),{type:4})}):m({type:"classroomList/getClassroomShixunsList",payload:jt(at({},G),{order:G.status})})},Hn=(c,ue)=>{G.page=c,G.limit=ue,et()},Wn=c=>{const ue=c.key;G.status=ue,G.page=1,M.history.replace(`${F.pathname}?tabs=${ue}`),et()};function Vn(c){return Bu(this,null,function*(){yield m({type:"classroomList/updateTaskPosition",payload:{category_id:Te,courseId:G.id,task_ids:c,container_type:"shixun_homework"}}),et()})}function Gn(){let c={courseId:G.id,container_type:"shixun_homework"};Te&&(c.category_id=Te),m({type:"classroomList/getAllTaskList",payload:c}),m({type:"classroomList/setActionTabs",payload:{key:"\u8C03\u6574\u6392\u5E8F"}})}const zn=(0,e.useMemo)(()=>{let c=[];return Qe.length>0&&(c=Qe.map(ue=>({user_name:ue.user_name,task_name:ue.task_name,task_id:ue.task_id,category:ue.category,status:ue.status}))),c},[Qe]),Kn=[{name:"\u5168\u90E8",id:0},{name:"\u63D0\u4EA4\u4E2D",id:1},{name:"\u8865\u4EA4\u4E2D",id:2},{name:"\u5DF2\u622A\u6B62",id:5}],Un=[{name:"\u5168\u90E8",id:0},{name:"\u672A\u53D1\u5E03",id:1},{name:"\u672A\u5F00\u59CB",id:4},{name:"\u8FDB\u884C\u4E2D",id:2},{name:"\u5DF2\u622A\u6B62",id:3}],Au=(0,a.GJ)()?[{name:"\u9ED8\u8BA4\u6392\u5E8F",type:"position",direction:"desc"},{name:"\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u66F4\u65B0\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u66F4\u65B0\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u5347\u5E8F",type:"name_pinyin",direction:"asc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u964D\u5E8F",type:"name_pinyin",direction:"desc"}]:[{name:"\u9ED8\u8BA4\u6392\u5E8F",type:null,direction:null},{name:"\u6309\u53D1\u5E03\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u53D1\u5E03\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u622A\u6B62\u65F6\u95F4\u5347\u5E8F",type:"updated_at",direction:"asc"},{name:"\u6309\u622A\u6B62\u65F6\u95F4\u964D\u5E8F",type:"updated_at",direction:"desc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u5347\u5E8F",type:"name_pinyin",direction:"asc"},{name:"\u5B9E\u9A8C\u540D\u79F0\u964D\u5E8F",type:"name_pinyin",direction:"desc"}];Le.course_modules&&(Jt=u.detailLeftMenus.course_modules.filter(c=>c.type==="shixun_homework")[0]);const Jn=o.createElement("div",{className:_e.moveCategory,onMouseLeave:c=>tt(!1)},o.createElement(h.default,{onClick:c=>Bu(void 0,[c],function*({item:ue,key:Xe,keyPath:Ue,domEvent:Yt}){if(Ee=="")return I.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,$.ZP)(`/api/courses/${G.id}/homework_commons/move_to_category.json`,{method:"post",body:{homework_ids:Ee,new_category_id:Xe}})).status===0&&(I.ZP.success("\u64CD\u4F5C\u6210\u529F"),et(),d(!1),m({type:"classroomList/getClassroomLeftMenus",payload:{id:re.coursesId}}))}),style:{maxHeight:300,width:240,overflow:"auto"}},o.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},o.createElement(X.default,{onChange:c=>{Ve(c.target.value)}})),Jt&&Jt.second_category.filter(c=>c.category_name!=="\u672A\u5206\u914D\u76EE\u5F55").map(function(c,ue){var Xe;if(!(Z!==""&&c.category_name.indexOf(Z)<0))return o.createElement(o.Fragment,null,o.createElement(h.default.Item,{className:"multi-llipsis1e",key:c.category_id},c.category_name),(Xe=c==null?void 0:c.third_category)==null?void 0:Xe.map(Ue=>o.createElement(h.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Ue.category_id},Ue.category_name)))}),o.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:c=>{c.preventDefault(),m({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:G,selectArrs:{category_id:y==null?void 0:y.main_category_id,type:"shixun_homework"}}})}},"\u65B0\u5EFA\u5B50\u76EE\u5F55..."))),xu=(S=[{key:"1",label:"\u6279\u91CF\u53D1\u5E03",icon:o.createElement("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"2",label:"\u6279\u91CF\u622A\u6B62",icon:o.createElement("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"5",label:"\u6279\u91CF\u8865\u4EA4",icon:o.createElement("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"3",label:"\u6279\u91CF\u5220\u9664",icon:o.createElement("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,a.GJ)()||(0,a.Rm)()},{key:"4",label:"\u8BBE\u4E3A\u516C\u5F00",icon:o.createElement("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Ze.is_public}].filter(c=>c==null?void 0:c.isShow))==null?void 0:S.map(c=>(delete c.isShow,c)),Yn=({key:c})=>{var ue,Xe,Ue,Yt;if((c==="1"||c==="2")&&(0,a.Rm)()&&!((Xe=(ue=u.AssistantObject)==null?void 0:ue.practice)!=null&&Xe.can_publish)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(((Ue=b==null?void 0:b.userInfo)==null?void 0:Ue.user_status)===2&&c==="1"){(0,Ce.Rd)();return}if(Ee==""){I.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1");return}m({type:"classroomList/setActionTabs",payload:{key:c==="1"?"\u7ACB\u5373\u53D1\u5E03":c==="2"?"\u7ACB\u5373\u622A\u6B62":c==="3"?"\u5220\u9664":c==="5"?"\u6279\u91CF\u8865\u4EA4":(Yt=xu[Number(c)-1])==null?void 0:Yt.label,selectArrs:Ee,selectArrsAll:O,type:c==="1"||c==="2"?1:"",params:G}})},bu=ie==="\u9ED8\u8BA4\u6392\u5E8F",Qn=(0,e.useMemo)(()=>{const c=!(0,a.GJ)()&&!(0,a.Jd)(),ue=Ze==null?void 0:Ze.excellent;return c&&ue},[b,u]),Xn=(0,e.useMemo)(()=>(y==null?void 0:y.min_finished_game)>0,[u]),qn=(0,e.useMemo)(()=>{const c=(y==null?void 0:y.min_finished_game)-(y==null?void 0:y.finished_challenge_count);return c>0?c:0},[u]);return o.createElement("section",null,o.createElement("aside",{className:_e.bg},o.createElement(T.Z,{align:"middle"},o.createElement(v.Z,{flex:"1"},!!y.main_category_id&&o.createElement(h.default,{mode:"horizontal",onSelect:Wn,selectedKeys:[G.status]},!(0,a.GJ)()&&Kn.map(function(c,ue){return o.createElement(h.default.Item,{key:c==null?void 0:c.id},c.name)}),(0,a.GJ)()&&Un.map(function(c,ue){return o.createElement(h.default.Item,{key:c==null?void 0:c.id},o.createElement("span",{className:"c-grey-666 mr20"},c.name),ue===0&&(0,a.GJ)()&&o.createElement("span",{className:"c-grey-999"},y==null?void 0:y.all_count),ue===1&&(0,a.GJ)()&&o.createElement("span",{className:"c-grey-999"},y==null?void 0:y.unpublished_count),ue===2&&(0,a.GJ)()&&o.createElement("span",{className:"c-grey-999"},y==null?void 0:y.not_start_count),ue===3&&(0,a.GJ)()&&o.createElement("span",{className:"c-grey-999"},y==null?void 0:y.in_progress_count),ue===4&&(0,a.GJ)()&&o.createElement("span",{className:"c-grey-999"},y==null?void 0:y.overed_count))}))),o.createElement(v.Z,{className:"mr20 gutter-row"},o.createElement("div",{className:_e.containerTitle},(0,a.GJ)()&&(0,B.Oo)(Le==null?void 0:Le.course_modules,Te)!=="\u672A\u5206\u914D\u76EE\u5F55"&&o.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:6}},o.createElement(pe.Z,{className:"ml10",placement:"bottom",arrow:!0,dropdownRender:()=>o.createElement(h.default,null,o.createElement(h.default.Item,{key:1,onClick:()=>{var c;if(!(0,B.Ye)(m)){if((0,a.Rm)()&&!((c=u.AssistantObject.practice)!=null&&c.can_download)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:y==null?void 0:y.main_category_name,exportType:"practice",category_id:G.category}})}}},"\u5B66\u751F\u6210\u7EE9"),o.createElement(h.default.Item,{key:3,onClick:()=>{var c;if(!(0,B.Ye)(m)){if((0,a.Rm)()&&!((c=u.AssistantObject.practice)!=null&&c.can_download)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}M.history.push(`/classrooms/${re==null?void 0:re.coursesId}/exportlist/shixun_work_list,shixun_report`)}}},"\u5386\u53F2\u5BFC\u51FA"))},o.createElement("span",{style:{color:"#666666",cursor:"pointer"}},o.createElement("i",{className:"iconfont icon-xiazai6"}))),o.createElement("span",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:c=>{m({type:"classroomList/setActionTabs",payload:{key:re.categoryId?"\u76EE\u5F55\u91CD\u547D\u540D":"\u6DFB\u52A0\u76EE\u5F55",params:G,selectArrs:{category_name:y==null?void 0:y.category_name,category_id:(y==null?void 0:y.category_id)||(y==null?void 0:y.main_category_id),type:"shixun_homework"},cb:()=>{et()}}})}},o.createElement(L.Z,{title:re.categoryId?"\u76EE\u5F55\u91CD\u547D\u540D":"\u65B0\u5EFA\u5B50\u76EE\u5F55"},o.createElement("span",{className:re.categoryId?`${_e.iconH} iconfont icon-zhongmingmingmulu`:`${_e.iconH} iconfont icon-xinjianmulu1`}))),o.createElement(pe.Z,{className:"ml10",disabled:((J=b==null?void 0:b.userInfo)==null?void 0:J.user_status)===2,dropdownRender:()=>o.createElement(h.default,null,o.createElement(h.default.Item,{key:1,onClick:()=>{var c,ue;if((0,a.Rm)()&&!((ue=(c=u.AssistantObject)==null?void 0:c.practice)!=null&&ue.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",params:G}})}},"\u4ECE\u5B9E\u8DF5\u9879\u76EE\u6DFB\u52A0"),o.createElement(h.default.Item,{key:2,onClick:()=>{var c,ue;if((0,a.Rm)()&&!((ue=(c=u.AssistantObject)==null?void 0:c.practice)!=null&&ue.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B",params:G}})}},"\u4ECE\u5B9E\u8DF5\u8BFE\u7A0B\u6DFB\u52A0"),o.createElement(h.default.Item,{key:3,onClick:()=>{var c,ue;if(!(0,B.Ye)(m)){if((0,a.Rm)()&&!((ue=(c=u.AssistantObject)==null?void 0:c.practice)!=null&&ue.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}m({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"practice"}})}}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"))},o.createElement("span",{className:((de=b==null?void 0:b.userInfo)==null?void 0:de.user_status)===2?_e.selectBtn1:_e.selectBtn},o.createElement("span",null,o.createElement("i",{className:"iconfont icon-tianjiadaohang"})),o.createElement(L.Z,{title:((De=b==null?void 0:b.userInfo)==null?void 0:De.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u8BFE\u5802\u5B9E\u9A8C\u521B\u5EFA\u529F\u80FD"},o.createElement("span",null,"\u9009\u7528\u5B9E\u9A8C"))))))))),o.createElement("div",{className:_e.action},o.createElement("div",null,o.createElement(pe.Z,{dropdownRender:()=>o.createElement(h.default,{selectedKeys:[ie]},Au==null?void 0:Au.map((c,ue)=>o.createElement(h.default.Item,{key:c.name,onClick:()=>{var Xe;G.sort_by=c.type,G.sort_direction=c.direction,G.page=1,be(c.name),B.cX.setItem(`${(Xe=b==null?void 0:b.userInfo)==null?void 0:Xe.login}${(0,a.GJ)()?"Teacher":"Student"}`,c,"ShixunHomeworks"),(0,a.GJ)()?m({type:"classroomList/getClassroomTeacherShixunsList",payload:jt(at({},G),{type:4})}):m({type:"classroomList/getClassroomShixunsList",payload:at({},G)})}},c.name)))},o.createElement("span",{className:`${_e.btn} ${bu?_e.btnSort:""}`,onMouseEnter:c=>tt(!1)},o.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),ie))),bu&&o.createElement(L.Z,{title:`\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167${(0,a.GJ)()?"\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F":G.status==5?"\u622A\u6B62\u65F6\u95F4\u964D\u5E8F":"\u622A\u6B62\u65F6\u95F4\u5347\u5E8F"}\u6392\u5217`},o.createElement("span",{className:_e.tips},o.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),o.createElement("div",{style:{marginLeft:"auto",display:"flex"}},o.createElement(Nn.Z,{type:"shixun"}),o.createElement(X.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u9A8C\u540D\u79F0",onSearch:c=>{G.search=c.trim(),G.page=1,et()},style:{width:220}}))),Qn&&o.createElement(T.Z,{justify:"space-between",className:_e.progressInfo},o.createElement(v.Z,null,o.createElement(Y.Z,{size:"middle"},o.createElement("span",null,"\u5B9E\u8BAD\u4F5C\u4E1A\u8FDB\u5EA6\uFF1A",y==null?void 0:y.finished_task_count,"/",y==null?void 0:y.shixun_total_count),o.createElement("span",null,"\u4EFB\u52A1\u5173\u5361\u8FDB\u5EA6\uFF1A",y==null?void 0:y.finished_challenge_count,"/",y==null?void 0:y.challenge_count))),Xn&&o.createElement(v.Z,null,"\u901A\u8FC7",y==null?void 0:y.min_finished_game,"\u5173\u83B7\u5F97\u6EE1\u5206\uFF0C\u8DDD\u79BBMOOC\u5B9E\u8BAD\u4F5C\u4E1A\u6EE1\u5206\u8FD8\u5DEE",qn,"\u5173")),o.createElement("aside",{className:"minH500 skt-loading relative pb40 mb30"},o.createElement(D.Z,{loading:ee[(0,a.GJ)()?"classroomList/getClassroomTeacherShixunsList":"classroomList/getClassroomShixunsList"],active:!0,paragraph:{rows:5},className:"mt30"},(y==null?void 0:y.all_count)===0&&(0,a.GJ)()?o.createElement(ln,{params:G,user:b,setisshowmodal:Ke,dispatch:m}):(y==null?void 0:y.task_count)===0&&o.createElement(fe.Z,null),o.createElement("aside",{className:"animated fadeIn"},y.homeworks&&y.homeworks.map(function(c,ue){return o.createElement(fn,{key:c.homework_id,batchState:!0,v:c,k:ue,match:s,selectArrs:Ee,setSelectArrs:Ne,setSelectArrsAll:R,selectArrsAll:O,classroomList:u,dispatch:m,paramst:G,user:b,page:re.page||1,pageSize:G.limit||20,selectshow:Rn,manageAllGroup:y.manage_all_group,getData:et})}),y.query_total_count>0&&o.createElement("aside",{className:"tc mb50 mt30"},o.createElement(W.Z,{showSizeChanger:!0,current:G.page||1,pageSize:G.limit||20,onChange:Hn,total:y.query_total_count})))),o.createElement("div",{className:_e.fixedBottom,style:{bottom:Ee.length?0:-60,position:Ee.length?ne:"fixed",left:ne==="fixed"?"50%":"317px"}},o.createElement("div",{className:_e.left}),o.createElement("div",{className:_e.right},(0,a.GJ)()&&(y==null?void 0:y.all_count)>0&&o.createElement("aside",{className:[_e.acitons].join(" ")},o.createElement("div",{style:{width:130}},(0,a.GJ)()&&o.createElement(P.default,{checked:((Pe=y.homeworks)==null?void 0:Pe.length)===(Ee==null?void 0:Ee.length),onChange:c=>{c.target.checked?(Ne(y.homeworks.map(ue=>ue.homework_id)),R([...y.homeworks])):(Ne([]),R([]))}},o.createElement("span",{className:"fo"},"\u5168\u9009\u672C\u9875",o.createElement("span",{style:{marginLeft:5}},"(",Ee.length,")")," "))),o.createElement("div",{style:{flex:1}}," ",o.createElement(T.Z,{wrap:!1,align:"middle",justify:"space-between"},o.createElement(v.Z,{flex:1},o.createElement(T.Z,{wrap:!1,align:"middle",gutter:8},o.createElement(v.Z,null,o.createElement(pe.Z,{placement:"top",menu:{items:xu,onClick:Yn}},o.createElement(A.ZP,{type:"primary",icon:o.createElement("i",{className:"iconfont icon-piliangcaozuo3"})},"\u6279\u91CF\u64CD\u4F5C"))),o.createElement(v.Z,null,o.createElement(A.ZP,{type:"primary",icon:o.createElement("i",{className:"iconfont icon-tiaozhengpaixu2"}),onClick:Gn},"\u8C03\u6574\u6392\u5E8F")),o.createElement(v.Z,null,o.createElement(pe.Z,{placement:"topLeft",dropdownRender:()=>Jn,getPopupContainer:c=>c==null?void 0:c.parentNode},o.createElement(A.ZP,{type:"primary",icon:o.createElement("i",{className:"iconfont icon-yidongmulu"})},"\u79FB\u52A8\u5230\u76EE\u5F55 ",o.createElement(j.Z,null)))))),o.createElement(v.Z,null,o.createElement(A.ZP,{type:"primary",ghost:!0,onClick:()=>{Ne&&Ne([]),d(!1)}},"\u53D6\u6D88\u64CD\u4F5C")))))))),((w=u==null?void 0:u.actionTabs)==null?void 0:w.key)==="\u6279\u91CF\u8865\u4EA4"&&o.createElement(Sn,{getData:et}),u.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B"?o.createElement(qu,null):null,o.createElement(_n.Z,{onOk:()=>{et()}}),o.createElement(Fn.Z,{onOk:()=>{}}),u.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?o.createElement(Su,null):null,u.actionTabs.key==="\u4ECE\u8BFE\u5802\u5B9E\u9A8C\u6DFB\u52A0"?o.createElement(Zu,null):null,o.createElement(Qt,null),o.createElement(C,null),o.createElement(f.Z,{courseEndTime:y==null?void 0:y.course_end_time}),o.createElement(K.Z,{visible:u.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",courseEndTime:y==null?void 0:y.course_end_time,courseId:re.coursesId,homeworkIds:u.actionTabs.selectArrs,isBatch:u.actionTabs.type!==2,successCallback:()=>{(0,a.GJ)()?m({type:"classroomList/getClassroomTeacherShixunsList",payload:at(jt(at({},u.actionTabs.params),{type:4}),re)}):m({type:"classroomList/getClassroomShixunsList",payload:at({},u.actionTabs.params)})}}),o.createElement(yt,null),o.createElement(Wu,null),o.createElement(yn.Z,{visible:u.actionTabs.key==="\u8C03\u6574\u6392\u5E8F",callback:Vn,data:zn,onCancel:()=>{m({type:"classroomList/setActionTabs",payload:{key:""}})}}),o.createElement(E.default,{title:"\u9009\u7528\u5B9E\u9A8C",open:we,centered:!0,onCancel:()=>Ke(!1),onOk:()=>{var c,ue;if((0,a.Rm)()&&!((c=u.AssistantObject.practice)!=null&&c.can_create)){I.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(((ue=b.userInfo)==null?void 0:ue.user_status)===2){(0,Ce.Rd)();return}m(Cu===1?{type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",params:G}}:{type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u8BFE\u7A0B",params:G}}),Ke(!1)}},o.createElement("div",null,o.createElement(te.ZP.Group,{onChange:c=>{Mn(c.target.value)},value:Cu},o.createElement(te.ZP,{style:{marginTop:"15px"},value:1},"\u4ECE\u5B9E\u8DF5\u9879\u76EE\u6DFB\u52A0\uFF08\u53EF\u9009\u62E9\u591A\u4E2A\u5B9E\u8DF5\u9879\u76EE\u52A0\u5165\u4F5C\u4E1A\uFF09"),o.createElement(te.ZP,{style:{marginTop:"15px"},value:2},"\u4ECE\u5B9E\u8DF5\u8BFE\u7A0B\u6DFB\u52A0\uFF08\u5C06\u5B9E\u8DF5\u8BFE\u7A0B\u4E2D\u5168\u90E8\u7684\u5B9E\u8DF5\u9879\u76EE\u90FD\u52A0\u5165\u4F5C\u4E1A\uFF09")))),o.createElement(On.Z,null))};var Zn=(0,M.connect)(({classroomList:t,loading:n,globalSetting:u,shixunHomeworks:p,user:H})=>({classroomList:t,globalSetting:u,loading:n.effects,shixunHomeworks:p,user:H}))(Ln)},60761:function(Je,Be,l){l.d(Be,{_:function(){return Y}});var e=l(22796),$=l(62957),M=l(6767),h=l(70858),I=l(95203),X=l(59301),T=(D,W,P)=>new Promise((A,E)=>{var te=B=>{try{j(P.next(B))}catch(ae){E(ae)}},a=B=>{try{j(P.throw(B))}catch(ae){E(ae)}},j=B=>B.done?A(B.value):Promise.resolve(B.value).then(te,a);j((P=P.apply(D,W)).next())});const v=D=>T(void 0,[D],function*({is_jupyter:W,is_jupyter_lab:P,shixunId:A,homework_common_id:E,courseId:te}){if(W||P){const j=yield(0,e.BK)({id:A});j!=null&&j.identifier&&(0,I.xg)(`/tasks/${j.identifier}/jupyter?homework_common_id=${E}`);return}const a=yield(0,e.Ir)({id:A,homework_common_id:E});if(a!=null&&a.game_identifier){(0,I.xg)(`/tasks/${te}/${E}/${a.game_identifier}`);return}(a==null?void 0:a.status)===2?pe(a==null?void 0:a.message,E,te):(a==null?void 0:a.status)===3?L(a==null?void 0:a.message):(a==null?void 0:a.status)==-3&&(0,I.eF)()}),pe=(D,W,P)=>{D=D!=null&&D.includes(".json")?D:`${D}.json`,$.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:X.createElement("div",{className:"tc font16"}," \u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>T(void 0,null,function*(){const A=yield(0,e.$Q)({url:D});if(!A)return;M.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const E=yield(0,e.Ir)({id:A.shixun_identifier,homework_common_id:W});if(E!=null&&E.game_identifier){(0,I.xg)(`/tasks/${P}/${W}/${E.game_identifier}`);return}(E==null?void 0:E.status)===2?pe(E==null?void 0:E.message,W,P):(E==null?void 0:E.status)===3&&L(E==null?void 0:E.message)})})},L=D=>{$.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:X.createElement("div",{className:"tc font16"}," \u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",D,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Y=(D,W)=>T(void 0,[D,W],function*(P,{is_jupyter:A,is_jupyter_lab:E}){const te=yield(0,e.WT)(P);if(te.length>1)return $.default.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"\u63D0\u793A",content:X.createElement("div",null,X.createElement("div",null,"\u4F60\u5F53\u524D\u6709",te.length,"\u4E2A\u8FDB\u884C\u4E2D\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u4F7F\u7528\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u5728\u4E0B\u65B9\u70B9\u51FB\u5B9E\u8BAD\u4F5C\u4E1A\u540D\u79F0\u8FDB\u5165\u5B9E\u8BAD\u6311\u6218\u9875\u9762\uFF1A"),X.createElement(h.default,{pagination:!1,columns:[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"\u4F5C\u4E1A\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:240,align:"center",render(a,j){const{course_identifier:B,id:ae}=j||{};return X.createElement("a",{target:"_blank",href:`/classrooms/${B}/shixun_homework/${ae}/detail`},a)}},{title:"\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",align:"center"},{title:"\u64CD\u4F5C",align:"center",render(a,j){const{course_identifier:B,id:ae,shixun_identifier:V}=j;return X.createElement("div",{style:{cursor:"pointer",color:"#165dff"},onClick:()=>{v({is_jupyter:A,is_jupyter_lab:E,shixunId:V,homework_common_id:ae,courseId:B})}},"\u524D\u5F80\u6311\u6218")}}],dataSource:te,rowKey:"id"}))}),!0;if(te.length===1){const{shixun_identifier:a,id:j,course_identifier:B}=te[0];return v({is_jupyter:A,is_jupyter_lab:E,shixunId:a,homework_common_id:j,courseId:B}),!0}return!1});Be.Z=v},54500:function(Je,Be,l){l.d(Be,{Z:function(){return e}});const e=$=>$?typeof $=="function"?$():$:null},69106:function(Je,Be,l){l.d(Be,{aV:function(){return pe},t5:function(){return L}});var e=l(59301),$=l(92310),M=l.n($),h=l(29125),I=l(54500),X=l(48755),T=l(85074),v=function(D,W){var P={};for(var A in D)Object.prototype.hasOwnProperty.call(D,A)&&W.indexOf(A)<0&&(P[A]=D[A]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,A=Object.getOwnPropertySymbols(D);E{let{title:W,content:P,prefixCls:A}=D;return!W&&!P?null:e.createElement(e.Fragment,null,W&&e.createElement("div",{className:`${A}-title`},W),P&&e.createElement("div",{className:`${A}-inner-content`},P))},L=D=>{const{hashId:W,prefixCls:P,className:A,style:E,placement:te="top",title:a,content:j,children:B}=D,ae=(0,I.Z)(a),V=(0,I.Z)(j),Me=M()(W,P,`${P}-pure`,`${P}-placement-${te}`,A);return e.createElement("div",{className:Me,style:E},e.createElement("div",{className:`${P}-arrow`}),e.createElement(h.G,Object.assign({},D,{className:W,prefixCls:P}),B||e.createElement(pe,{prefixCls:P,title:ae,content:V})))},Y=D=>{const{prefixCls:W,className:P}=D,A=v(D,["prefixCls","className"]),{getPrefixCls:E}=e.useContext(X.E_),te=E("popover",W),[a,j,B]=(0,T.Z)(te);return a(e.createElement(L,Object.assign({},A,{prefixCls:te,hashId:j,className:M()(P,B)})))};Be.ZP=Y},37639:function(Je,Be,l){var e=l(59301),$=l(92310),M=l.n($),h=l(18929),I=l(10228),X=l(54500),T=l(86641),v=l(22703),pe=l(25399),L=l(69106),Y=l(48755),D=l(85074),W=function(E,te){var a={};for(var j in E)Object.prototype.hasOwnProperty.call(E,j)&&te.indexOf(j)<0&&(a[j]=E[j]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,j=Object.getOwnPropertySymbols(E);B{var a,j;const{prefixCls:B,title:ae,content:V,overlayClassName:Me,placement:je="top",trigger:ke="hover",children:he,mouseEnterDelay:z=.1,mouseLeaveDelay:g=.1,onOpenChange:Q,overlayStyle:oe={},styles:q,classNames:Ae}=E,me=W(E,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:f,style:K,classNames:xe,styles:Fe}=(0,Y.dj)("popover"),le=C("popover",B),[Oe,ge,U]=(0,D.Z)(le),N=C(),Se=M()(Me,ge,U,f,xe.root,Ae==null?void 0:Ae.root),ft=M()(xe.body,Ae==null?void 0:Ae.body),[_t,Ft]=(0,h.Z)(!1,{value:(a=E.open)!==null&&a!==void 0?a:E.visible,defaultValue:(j=E.defaultOpen)!==null&&j!==void 0?j:E.defaultVisible}),yt=(We,ut)=>{Ft(We,!0),Q==null||Q(We,ut)},Ge=We=>{We.keyCode===I.Z.ESC&&yt(!1,We)},rt=We=>{yt(We)},Re=(0,X.Z)(ae),$e=(0,X.Z)(V);return Oe(e.createElement(pe.Z,Object.assign({placement:je,trigger:ke,mouseEnterDelay:z,mouseLeaveDelay:g},me,{prefixCls:le,classNames:{root:Se,body:ft},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Fe.root),K),oe),q==null?void 0:q.root),body:Object.assign(Object.assign({},Fe.body),q==null?void 0:q.body)},ref:te,open:_t,onOpenChange:rt,overlay:Re||$e?e.createElement(L.aV,{prefixCls:le,title:Re,content:$e}):null,transitionName:(0,T.m)(N,"zoom-big",me.transitionName),"data-popover-inject":!0}),(0,v.Tm)(he,{onKeyDown:We=>{var ut,lt;e.isValidElement(he)&&((lt=he==null?void 0:(ut=he.props).onKeyDown)===null||lt===void 0||lt.call(ut,We)),Ge(We)}})))});A._InternalPanelDoNotUseOrYouWillBeFired=L.ZP,Be.Z=A},85074:function(Je,Be,l){var e=l(63356),$=l(34925),M=l(37645),h=l(36305),I=l(34998),X=l(16931),T=l(51636);const v=Y=>{const{componentCls:D,popoverColor:W,titleMinWidth:P,fontWeightStrong:A,innerPadding:E,boxShadowSecondary:te,colorTextHeading:a,borderRadiusLG:j,zIndexPopup:B,titleMarginBottom:ae,colorBgElevated:V,popoverBg:Me,titleBorderBottom:je,innerContentPadding:ke,titlePadding:he}=Y;return[{[D]:Object.assign(Object.assign({},(0,e.Wf)(Y)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:B,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":V,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${D}-content`]:{position:"relative"},[`${D}-inner`]:{backgroundColor:Me,backgroundClip:"padding-box",borderRadius:j,boxShadow:te,padding:E},[`${D}-title`]:{minWidth:P,marginBottom:ae,color:a,fontWeight:A,borderBottom:je,padding:he},[`${D}-inner-content`]:{color:W,padding:ke}})},(0,M.ZP)(Y,"var(--antd-arrow-background-color)"),{[`${D}-pure`]:{position:"relative",maxWidth:"none",margin:Y.sizePopupArrow,display:"inline-block",[`${D}-content`]:{display:"inline-block"}}}]},pe=Y=>{const{componentCls:D}=Y;return{[D]:I.i.map(W=>{const P=Y[`${W}6`];return{[`&${D}-${W}`]:{"--antd-arrow-background-color":P,[`${D}-inner`]:{backgroundColor:P},[`${D}-arrow`]:{background:"transparent"}}}})}},L=Y=>{const{lineWidth:D,controlHeight:W,fontHeight:P,padding:A,wireframe:E,zIndexPopupBase:te,borderRadiusLG:a,marginXS:j,lineType:B,colorSplit:ae,paddingSM:V}=Y,Me=W-P,je=Me/2,ke=Me/2-D,he=A;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:te+30},(0,h.w)(Y)),(0,M.wZ)({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:E?0:12,titleMarginBottom:E?0:j,titlePadding:E?`${je}px ${he}px ${ke}px`:0,titleBorderBottom:E?`${D}px ${B} ${ae}`:"none",innerContentPadding:E?`${V}px ${he}px`:0})};Be.Z=(0,X.I$)("Popover",Y=>{const{colorBgElevated:D,colorText:W}=Y,P=(0,T.mergeToken)(Y,{popoverBg:D,popoverColor:W});return[v(P),pe(P),(0,$._y)(P,"zoom-big")]},L,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/p__Paperlibrary__Random__Detail__index.a824eee3.async.js b/p__Paperlibrary__Random__Detail__index.a824eee3.async.js new file mode 100644 index 0000000000..e3a74d5a02 --- /dev/null +++ b/p__Paperlibrary__Random__Detail__index.a824eee3.async.js @@ -0,0 +1,201 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3784],{89489:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},59477:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},40001:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},49198:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},84105:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},18785:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},73331:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},15277:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},52671:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},8657:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},56082:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},33853:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},15075:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},62772:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},43531:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},47472:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},87395:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Q=p,N=t(7657),P=function(n,X){return m.createElement(N.Z,(0,e.Z)({},n,{ref:X,icon:Q}))},g=m.forwardRef(P),D=g},65030:function(Yt,Ge,t){t.d(Ge,{Z:function(){return oe}});var e=t(33885),m=t(42978),p=t(75931),Q=t(43403),N=t(92310),P=t.n(N),g=t(29301),D=t(76846),F=t(96452),n=t(6089),X=t(80402),w=t(34280),I=t(49658),xe=t(59301),Ne=t(54476),pe=t(77900),se=t(8654);function Se(Z){var H=Z.prefixCls,f=Z.align,ce=Z.arrow,A=Z.arrowPos,r=ce||{},u=r.className,V=r.content,K=A.x,y=K===void 0?0:K,z=A.y,L=z===void 0?0:z,J=xe.useRef();if(!f||!f.points)return null;var l={position:"absolute"};if(f.autoArrow!==!1){var v=f.points[0],Me=f.points[1],de=v[0],Ie=v[1],Be=Me[0],Te=Me[1];de===Be||!["t","b"].includes(de)?l.top=L:de==="t"?l.top=0:l.bottom=0,Ie===Te||!["l","r"].includes(Ie)?l.left=y:Ie==="l"?l.left=0:l.right=0}return xe.createElement("div",{ref:J,className:P()("".concat(H,"-arrow"),u),style:l},V)}function h(Z){var H=Z.prefixCls,f=Z.open,ce=Z.zIndex,A=Z.mask,r=Z.motion;return A?xe.createElement(pe.default,(0,Ne.Z)({},r,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(u){var V=u.className;return xe.createElement("div",{style:{zIndex:ce},className:P()("".concat(H,"-mask"),V)})}):null}var fe=xe.memo(function(Z){var H=Z.children;return H},function(Z,H){return H.cache}),s=fe,d=xe.forwardRef(function(Z,H){var f=Z.popup,ce=Z.className,A=Z.prefixCls,r=Z.style,u=Z.target,V=Z.onVisibleChanged,K=Z.open,y=Z.keepDom,z=Z.fresh,L=Z.onClick,J=Z.mask,l=Z.arrow,v=Z.arrowPos,Me=Z.align,de=Z.motion,Ie=Z.maskMotion,Be=Z.forceRender,Te=Z.getPopupContainer,Ue=Z.autoDestroy,je=Z.portal,x=Z.zIndex,te=Z.onMouseEnter,Ce=Z.onMouseLeave,De=Z.onPointerEnter,C=Z.onPointerDownCapture,k=Z.ready,G=Z.offsetX,ve=Z.offsetY,ze=Z.offsetR,Ke=Z.offsetB,ut=Z.onAlign,pt=Z.onPrepare,tt=Z.stretch,mt=Z.targetWidth,ke=Z.targetHeight,rt=typeof f=="function"?f():f,ot=K||y,xt=(Te==null?void 0:Te.length)>0,gt=xe.useState(!Te||!xt),Pt=(0,m.Z)(gt,2),Mt=Pt[0],Gt=Pt[1];if((0,w.Z)(function(){!Mt&&xt&&u&&Gt(!0)},[Mt,xt,u]),!Mt)return null;var rn="auto",Ht={left:"-1000vw",top:"-1000vh",right:rn,bottom:rn};if(k||!K){var At,vn=Me.points,Bt=Me.dynamicInset||((At=Me._experimental)===null||At===void 0?void 0:At.dynamicInset),mn=Bt&&vn[0][1]==="r",pn=Bt&&vn[0][0]==="b";mn?(Ht.right=ze,Ht.left=rn):(Ht.left=G,Ht.right=rn),pn?(Ht.bottom=Ke,Ht.top=rn):(Ht.top=ve,Ht.bottom=rn)}var en={};return tt&&(tt.includes("height")&&ke?en.height=ke:tt.includes("minHeight")&&ke&&(en.minHeight=ke),tt.includes("width")&&mt?en.width=mt:tt.includes("minWidth")&&mt&&(en.minWidth=mt)),K||(en.pointerEvents="none"),xe.createElement(je,{open:Be||ot,getContainer:Te&&function(){return Te(u)},autoDestroy:Ue},xe.createElement(h,{prefixCls:A,open:K,zIndex:x,mask:J,motion:Ie}),xe.createElement(g.Z,{onResize:ut,disabled:!K},function(b){return xe.createElement(pe.default,(0,Ne.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Be,leavedClassName:"".concat(A,"-hidden")},de,{onAppearPrepare:pt,onEnterPrepare:pt,visible:K,onVisibleChanged:function(it){var R;de==null||(R=de.onVisibleChanged)===null||R===void 0||R.call(de,it),V(it)}}),function(O,it){var R=O.className,$=O.style,He=P()(A,R,ce);return xe.createElement("div",{ref:(0,se.sQ)(b,H,it),className:He,style:(0,e.Z)((0,e.Z)((0,e.Z)((0,e.Z)({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Ht),en),$),{},{boxSizing:"border-box",zIndex:x},r),onMouseEnter:te,onMouseLeave:Ce,onPointerEnter:De,onClick:L,onPointerDownCapture:C},l&&xe.createElement(Se,{prefixCls:A,arrow:l,arrowPos:v,align:Me}),xe.createElement(s,{cache:!K&&!z},rt))})}))}),Y=d,ee=xe.forwardRef(function(Z,H){var f=Z.children,ce=Z.getTriggerDOMNode,A=(0,se.Yr)(f),r=xe.useCallback(function(V){(0,se.mH)(H,ce?ce(V):V)},[ce]),u=(0,se.x1)(r,(0,se.C4)(f));return A?xe.cloneElement(f,{ref:u}):f}),_=ee,Ve=xe.createContext(null),Ee=Ve;function ae(Z){return Z?Array.isArray(Z)?Z:[Z]:[]}function ge(Z,H,f,ce){return xe.useMemo(function(){var A=ae(f!=null?f:H),r=ae(ce!=null?ce:H),u=new Set(A),V=new Set(r);return Z&&(u.has("hover")&&(u.delete("hover"),u.add("click")),V.has("hover")&&(V.delete("hover"),V.add("click"))),[u,V]},[Z,H,f,ce])}var re=t(29194);function S(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?Z[0]===H[0]:Z[0]===H[0]&&Z[1]===H[1]}function i(Z,H,f,ce){for(var A=f.points,r=Object.keys(Z),u=0;u1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Z)?H:Z}function T(Z){return c(parseFloat(Z),0)}function ne(Z,H){var f=(0,e.Z)({},Z);return(H||[]).forEach(function(ce){if(!(ce instanceof HTMLBodyElement||ce instanceof HTMLHtmlElement)){var A=M(ce).getComputedStyle(ce),r=A.overflow,u=A.overflowClipMargin,V=A.borderTopWidth,K=A.borderBottomWidth,y=A.borderLeftWidth,z=A.borderRightWidth,L=ce.getBoundingClientRect(),J=ce.offsetHeight,l=ce.clientHeight,v=ce.offsetWidth,Me=ce.clientWidth,de=T(V),Ie=T(K),Be=T(y),Te=T(z),Ue=c(Math.round(L.width/v*1e3)/1e3),je=c(Math.round(L.height/J*1e3)/1e3),x=(v-Me-Be-Te)*Ue,te=(J-l-de-Ie)*je,Ce=de*je,De=Ie*je,C=Be*Ue,k=Te*Ue,G=0,ve=0;if(r==="clip"){var ze=T(u);G=ze*Ue,ve=ze*je}var Ke=L.x+C-G,ut=L.y+Ce-ve,pt=Ke+L.width+2*G-C-k-x,tt=ut+L.height+2*ve-Ce-De-te;f.left=Math.max(f.left,Ke),f.top=Math.max(f.top,ut),f.right=Math.min(f.right,pt),f.bottom=Math.min(f.bottom,tt)}}),f}function q(Z){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(H),ce=f.match(/^(.*)\%$/);return ce?Z*(parseFloat(ce[1])/100):parseFloat(f)}function me(Z,H){var f=H||[],ce=(0,m.Z)(f,2),A=ce[0],r=ce[1];return[q(Z.width,A),q(Z.height,r)]}function et(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Z[0],Z[1]]}function W(Z,H){var f=H[0],ce=H[1],A,r;return f==="t"?r=Z.y:f==="b"?r=Z.y+Z.height:r=Z.y+Z.height/2,ce==="l"?A=Z.x:ce==="r"?A=Z.x+Z.width:A=Z.x+Z.width/2,{x:A,y:r}}function we(Z,H){var f={t:"b",b:"t",l:"r",r:"l"};return Z.map(function(ce,A){return A===H?f[ce]||"c":ce}).join("")}function he(Z,H,f,ce,A,r,u){var V=xe.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:A[ce]||{}}),K=(0,m.Z)(V,2),y=K[0],z=K[1],L=xe.useRef(0),J=xe.useMemo(function(){return H?U(H):[]},[H]),l=xe.useRef({}),v=function(){l.current={}};Z||v();var Me=(0,n.Z)(function(){if(H&&f&&Z){let lr=function(Hr,In){var Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,On=ot.x+Hr,jn=ot.y+In,fr=On+pn,$r=jn+mn,Oo=Math.max(On,Hn.left),gn=Math.max(jn,Hn.top),An=Math.min(fr,Hn.right),tr=Math.min($r,Hn.bottom);return Math.max(0,(An-Oo)*(tr-gn))},Lr=function(){rr=ot.y+Vt,ar=rr+mn,qn=ot.x+$t,Lt=qn+pn};var Be,Te,Ue,je,x=H,te=x.ownerDocument,Ce=M(x),De=Ce.getComputedStyle(x),C=De.position,k=x.style.left,G=x.style.top,ve=x.style.right,ze=x.style.bottom,Ke=x.style.overflow,ut=(0,e.Z)((0,e.Z)({},A[ce]),r),pt=te.createElement("div");(Be=x.parentElement)===null||Be===void 0||Be.appendChild(pt),pt.style.left="".concat(x.offsetLeft,"px"),pt.style.top="".concat(x.offsetTop,"px"),pt.style.position=C,pt.style.height="".concat(x.offsetHeight,"px"),pt.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var tt;if(Array.isArray(f))tt={x:f[0],y:f[1],width:0,height:0};else{var mt,ke,rt=f.getBoundingClientRect();rt.x=(mt=rt.x)!==null&&mt!==void 0?mt:rt.left,rt.y=(ke=rt.y)!==null&&ke!==void 0?ke:rt.top,tt={x:rt.x,y:rt.y,width:rt.width,height:rt.height}}var ot=x.getBoundingClientRect(),xt=Ce.getComputedStyle(x),gt=xt.height,Pt=xt.width;ot.x=(Te=ot.x)!==null&&Te!==void 0?Te:ot.left,ot.y=(Ue=ot.y)!==null&&Ue!==void 0?Ue:ot.top;var Mt=te.documentElement,Gt=Mt.clientWidth,rn=Mt.clientHeight,Ht=Mt.scrollWidth,At=Mt.scrollHeight,vn=Mt.scrollTop,Bt=Mt.scrollLeft,mn=ot.height,pn=ot.width,en=tt.height,b=tt.width,O={left:0,top:0,right:Gt,bottom:rn},it={left:-Bt,top:-vn,right:Ht-Bt,bottom:At-vn},R=ut.htmlRegion,$="visible",He="visibleFirst";R!=="scroll"&&R!==He&&(R=$);var Pe=R===He,Ae=ne(it,J),qe=ne(O,J),Fe=R===$?qe:Ae,at=Pe?qe:Fe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ct=x.getBoundingClientRect();x.style.left=k,x.style.top=G,x.style.right=ve,x.style.bottom=ze,x.style.overflow=Ke,(je=x.parentElement)===null||je===void 0||je.removeChild(pt);var bt=c(Math.round(pn/parseFloat(Pt)*1e3)/1e3),vt=c(Math.round(mn/parseFloat(gt)*1e3)/1e3);if(bt===0||vt===0||(0,D.Sh)(f)&&!(0,re.Z)(f))return;var zt=ut.offset,Kt=ut.targetOffset,Rt=me(ot,zt),ue=(0,m.Z)(Rt,2),Re=ue[0],Ze=ue[1],Ye=me(tt,Kt),_e=(0,m.Z)(Ye,2),nt=_e[0],ft=_e[1];tt.x-=nt,tt.y-=ft;var Ot=ut.points||[],Dt=(0,m.Z)(Ot,2),Ft=Dt[0],Xt=Dt[1],Tt=et(Xt),Zt=et(Ft),jt=W(tt,Tt),Qt=W(ot,Zt),an=(0,e.Z)({},ut),$t=jt.x-Qt.x+Re,Vt=jt.y-Qt.y+Ze,En=lr($t,Vt),un=lr($t,Vt,qe),sn=W(tt,["t","l"]),bn=W(ot,["t","l"]),Wt=W(tt,["b","r"]),Jt=W(ot,["b","r"]),Pn=ut.overflow||{},Dn=Pn.adjustX,Un=Pn.adjustY,Mn=Pn.shiftX,Vn=Pn.shiftY,Jn=function(In){return typeof In=="boolean"?In:In>=0},rr,ar,qn,Lt;Lr();var yt=Jn(Un),Et=Zt[0]===Tt[0];if(yt&&Zt[0]==="t"&&(ar>at.bottom||l.current.bt)){var It=Vt;Et?It-=mn-en:It=sn.y-Jt.y-Ze;var wt=lr($t,It),kt=lr($t,It,qe);wt>En||wt===En&&(!Pe||kt>=un)?(l.current.bt=!0,Vt=It,Ze=-Ze,an.points=[we(Zt,0),we(Tt,0)]):l.current.bt=!1}if(yt&&Zt[0]==="b"&&(rrEn||Tn===En&&(!Pe||Rn>=un)?(l.current.tb=!0,Vt=nn,Ze=-Ze,an.points=[we(Zt,0),we(Tt,0)]):l.current.tb=!1}var kn=Jn(Dn),Cr=Zt[1]===Tt[1];if(kn&&Zt[1]==="l"&&(Lt>at.right||l.current.rl)){var Sr=$t;Cr?Sr-=pn-b:Sr=sn.x-Jt.x-Re;var hr=lr(Sr,Vt),er=lr(Sr,Vt,qe);hr>En||hr===En&&(!Pe||er>=un)?(l.current.rl=!0,$t=Sr,Re=-Re,an.points=[we(Zt,1),we(Tt,1)]):l.current.rl=!1}if(kn&&Zt[1]==="r"&&(qnEn||Er===En&&(!Pe||Dr>=un)?(l.current.lr=!0,$t=xr,Re=-Re,an.points=[we(Zt,1),we(Tt,1)]):l.current.lr=!1}Lr();var cr=Mn===!0?0:Mn;typeof cr=="number"&&(qnqe.right&&($t-=Lt-qe.right-Re,tt.x>qe.right-cr&&($t+=tt.x-qe.right+cr)));var Ir=Vn===!0?0:Vn;typeof Ir=="number"&&(rrqe.bottom&&(Vt-=ar-qe.bottom-Ze,tt.y>qe.bottom-Ir&&(Vt+=tt.y-qe.bottom+Ir)));var ir=ot.x+$t,Zr=ir+pn,kr=ot.y+Vt,jr=kr+mn,Kr=tt.x,Gr=Kr+b,Zn=tt.y,Yn=Zn+en,br=Math.max(ir,Kr),vr=Math.min(Zr,Gr),xo=(br+vr)/2,Lo=xo-ir,vo=Math.max(kr,Zn),Eo=Math.min(jr,Yn),Bo=(vo+Eo)/2,wo=Bo-kr;u==null||u(H,an);var Xr=Ct.right-ot.x-($t+ot.width),co=Ct.bottom-ot.y-(Vt+ot.height);bt===1&&($t=Math.round($t),Xr=Math.round(Xr)),vt===1&&(Vt=Math.round(Vt),co=Math.round(co));var to={ready:!0,offsetX:$t/bt,offsetY:Vt/vt,offsetR:Xr/bt,offsetB:co/vt,arrowX:Lo/bt,arrowY:wo/vt,scaleX:bt,scaleY:vt,align:an};z(to)}}),de=function(){L.current+=1;var Te=L.current;Promise.resolve().then(function(){L.current===Te&&Me()})},Ie=function(){z(function(Te){return(0,e.Z)((0,e.Z)({},Te),{},{ready:!1})})};return(0,w.Z)(Ie,[ce]),(0,w.Z)(function(){Z||Ie()},[Z]),[y.ready,y.offsetX,y.offsetY,y.offsetR,y.offsetB,y.arrowX,y.arrowY,y.scaleX,y.scaleY,y.align,de]}var Xe=t(94480);function B(Z,H,f,ce,A){(0,w.Z)(function(){if(Z&&H&&f){let L=function(){ce(),A()};var r=H,u=f,V=U(r),K=U(u),y=M(u),z=new Set([y].concat((0,Xe.Z)(V),(0,Xe.Z)(K)));return z.forEach(function(J){J.addEventListener("scroll",L,{passive:!0})}),y.addEventListener("resize",L,{passive:!0}),ce(),function(){z.forEach(function(J){J.removeEventListener("scroll",L),y.removeEventListener("resize",L)})}}},[Z,H,f])}var Oe=t(48736);function ye(Z,H,f,ce,A,r,u,V){var K=xe.useRef(Z);K.current=Z;var y=xe.useRef(!1);xe.useEffect(function(){if(H&&ce&&(!A||r)){var L=function(){y.current=!1},J=function(Ue){var je;K.current&&!u(((je=Ue.composedPath)===null||je===void 0||(je=je.call(Ue))===null||je===void 0?void 0:je[0])||Ue.target)&&!y.current&&V(!1)},l=M(ce);l.addEventListener("pointerdown",L,!0),l.addEventListener("mousedown",J,!0),l.addEventListener("contextmenu",J,!0);var v=(0,F.A)(f);if(v&&(v.addEventListener("mousedown",J,!0),v.addEventListener("contextmenu",J,!0)),0)var Me,de,Ie,Be;return function(){l.removeEventListener("pointerdown",L,!0),l.removeEventListener("mousedown",J,!0),l.removeEventListener("contextmenu",J,!0),v&&(v.removeEventListener("mousedown",J,!0),v.removeEventListener("contextmenu",J,!0))}}},[H,f,ce,A,r]);function z(){y.current=!0}return z}var ct=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Le(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q.Z,H=xe.forwardRef(function(f,ce){var A=f.prefixCls,r=A===void 0?"rc-trigger-popup":A,u=f.children,V=f.action,K=V===void 0?"hover":V,y=f.showAction,z=f.hideAction,L=f.popupVisible,J=f.defaultPopupVisible,l=f.onPopupVisibleChange,v=f.afterPopupVisibleChange,Me=f.mouseEnterDelay,de=f.mouseLeaveDelay,Ie=de===void 0?.1:de,Be=f.focusDelay,Te=f.blurDelay,Ue=f.mask,je=f.maskClosable,x=je===void 0?!0:je,te=f.getPopupContainer,Ce=f.forceRender,De=f.autoDestroy,C=f.destroyPopupOnHide,k=f.popup,G=f.popupClassName,ve=f.popupStyle,ze=f.popupPlacement,Ke=f.builtinPlacements,ut=Ke===void 0?{}:Ke,pt=f.popupAlign,tt=f.zIndex,mt=f.stretch,ke=f.getPopupClassNameFromAlign,rt=f.fresh,ot=f.alignPoint,xt=f.onPopupClick,gt=f.onPopupAlign,Pt=f.arrow,Mt=f.popupMotion,Gt=f.maskMotion,rn=f.popupTransitionName,Ht=f.popupAnimation,At=f.maskTransitionName,vn=f.maskAnimation,Bt=f.className,mn=f.getTriggerDOMNode,pn=(0,p.Z)(f,ct),en=De||C||!1,b=xe.useState(!1),O=(0,m.Z)(b,2),it=O[0],R=O[1];(0,w.Z)(function(){R((0,I.Z)())},[]);var $=xe.useRef({}),He=xe.useContext(Ee),Pe=xe.useMemo(function(){return{registerSubPopup:function(An,tr){$.current[An]=tr,He==null||He.registerSubPopup(An,tr)}}},[He]),Ae=(0,X.Z)(),qe=xe.useState(null),Fe=(0,m.Z)(qe,2),at=Fe[0],Ct=Fe[1],bt=xe.useRef(null),vt=(0,n.Z)(function(gn){bt.current=gn,(0,D.Sh)(gn)&&at!==gn&&Ct(gn),He==null||He.registerSubPopup(Ae,gn)}),zt=xe.useState(null),Kt=(0,m.Z)(zt,2),Rt=Kt[0],ue=Kt[1],Re=xe.useRef(null),Ze=(0,n.Z)(function(gn){(0,D.Sh)(gn)&&Rt!==gn&&(ue(gn),Re.current=gn)}),Ye=xe.Children.only(u),_e=(Ye==null?void 0:Ye.props)||{},nt={},ft=(0,n.Z)(function(gn){var An,tr,wr=Rt;return(wr==null?void 0:wr.contains(gn))||((An=(0,F.A)(wr))===null||An===void 0?void 0:An.host)===gn||gn===wr||(at==null?void 0:at.contains(gn))||((tr=(0,F.A)(at))===null||tr===void 0?void 0:tr.host)===gn||gn===at||Object.values($.current).some(function(Pr){return(Pr==null?void 0:Pr.contains(gn))||gn===Pr})}),Ot=le(r,Mt,Ht,rn),Dt=le(r,Gt,vn,At),Ft=xe.useState(J||!1),Xt=(0,m.Z)(Ft,2),Tt=Xt[0],Zt=Xt[1],jt=L!=null?L:Tt,Qt=(0,n.Z)(function(gn){L===void 0&&Zt(gn)});(0,w.Z)(function(){Zt(L||!1)},[L]);var an=xe.useRef(jt);an.current=jt;var $t=xe.useRef([]);$t.current=[];var Vt=(0,n.Z)(function(gn){var An;Qt(gn),((An=$t.current[$t.current.length-1])!==null&&An!==void 0?An:jt)!==gn&&($t.current.push(gn),l==null||l(gn))}),En=xe.useRef(),un=function(){clearTimeout(En.current)},sn=function(An){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;un(),tr===0?Vt(An):En.current=setTimeout(function(){Vt(An)},tr*1e3)};xe.useEffect(function(){return un},[]);var bn=xe.useState(!1),Wt=(0,m.Z)(bn,2),Jt=Wt[0],Pn=Wt[1];(0,w.Z)(function(gn){(!gn||jt)&&Pn(!0)},[jt]);var Dn=xe.useState(null),Un=(0,m.Z)(Dn,2),Mn=Un[0],Vn=Un[1],Jn=xe.useState(null),rr=(0,m.Z)(Jn,2),ar=rr[0],qn=rr[1],Lt=function(An){qn([An.clientX,An.clientY])},yt=he(jt,at,ot&&ar!==null?ar:Rt,ze,ut,pt,gt),Et=(0,m.Z)(yt,11),It=Et[0],wt=Et[1],kt=Et[2],nn=Et[3],Tn=Et[4],Rn=Et[5],kn=Et[6],Cr=Et[7],Sr=Et[8],hr=Et[9],er=Et[10],xr=ge(it,K,y,z),Er=(0,m.Z)(xr,2),Dr=Er[0],cr=Er[1],Ir=Dr.has("click"),ir=cr.has("click")||cr.has("contextMenu"),Zr=(0,n.Z)(function(){Jt||er()}),kr=function(){an.current&&ot&&ir&&sn(!1)};B(jt,Rt,at,Zr,kr),(0,w.Z)(function(){Zr()},[ar,ze]),(0,w.Z)(function(){jt&&!(ut!=null&&ut[ze])&&Zr()},[JSON.stringify(pt)]);var jr=xe.useMemo(function(){var gn=i(ut,r,hr,ot);return P()(gn,ke==null?void 0:ke(hr))},[hr,ke,ut,r,ot]);xe.useImperativeHandle(ce,function(){return{nativeElement:Re.current,popupElement:bt.current,forceAlign:Zr}});var Kr=xe.useState(0),Gr=(0,m.Z)(Kr,2),Zn=Gr[0],Yn=Gr[1],br=xe.useState(0),vr=(0,m.Z)(br,2),xo=vr[0],Lo=vr[1],vo=function(){if(mt&&Rt){var An=Rt.getBoundingClientRect();Yn(An.width),Lo(An.height)}},Eo=function(){vo(),Zr()},Bo=function(An){Pn(!1),er(),v==null||v(An)},wo=function(){return new Promise(function(An){vo(),Vn(function(){return An})})};(0,w.Z)(function(){Mn&&(er(),Mn(),Vn(null))},[Mn]);function Xr(gn,An,tr,wr){nt[gn]=function(Pr){var To;wr==null||wr(Pr),sn(An,tr);for(var Io=arguments.length,Xo=new Array(Io>1?Io-1:0),sr=1;sr1?tr-1:0),Pr=1;Pr1?tr-1:0),Pr=1;Prn in F?m(F,n,{enumerable:!0,configurable:!0,writable:!0,value:X}):F[n]=X,g=(F,n)=>{for(var X in n||(n={}))Q.call(n,X)&&P(F,X,n[X]);if(p)for(var X of p(n))N.call(n,X)&&P(F,X,n[X]);return F};const D=F=>React.createElement("svg",g({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},F),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Ge.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},32981:function(Yt,Ge,t){t.d(Ge,{Z:function(){return xe}});var e=t(7939),m=t(59301),p=Object.defineProperty,Q=Object.defineProperties,N=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,F=(Ne,pe,se)=>pe in Ne?p(Ne,pe,{enumerable:!0,configurable:!0,writable:!0,value:se}):Ne[pe]=se,n=(Ne,pe)=>{for(var se in pe||(pe={}))g.call(pe,se)&&F(Ne,se,pe[se]);if(P)for(var se of P(pe))D.call(pe,se)&&F(Ne,se,pe[se]);return Ne},X=(Ne,pe)=>Q(Ne,N(pe)),w=(Ne,pe)=>{var se={};for(var Se in Ne)g.call(Ne,Se)&&pe.indexOf(Se)<0&&(se[Se]=Ne[Se]);if(Ne!=null&&P)for(var Se of P(Ne))pe.indexOf(Se)<0&&D.call(Ne,Se)&&(se[Se]=Ne[Se]);return se},I=(Ne,pe,se)=>new Promise((Se,h)=>{var fe=Y=>{try{d(se.next(Y))}catch(ee){h(ee)}},s=Y=>{try{d(se.throw(Y))}catch(ee){h(ee)}},d=Y=>Y.done?Se(Y.value):Promise.resolve(Y.value).then(fe,s);d((se=se.apply(Ne,pe)).next())});const xe=Ne=>{var pe=Ne,{children:se}=pe,Se=w(pe,["children"]);const[h,fe]=(0,m.useState)(!1);return m.createElement(e.ZP,X(n({},Se),{loading:h,onClick:s=>I(void 0,null,function*(){try{fe(!0),yield Se.onClick(s),fe(!1)}catch(d){console.error(d),fe(!1)}})}),se)}},18612:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(59301),m={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},p=t(62957),Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqI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Se){I(Se)}},Ne=se=>{try{pe(X.throw(se))}catch(Se){I(Se)}},pe=se=>se.done?w(se.value):Promise.resolve(se.value).then(xe,Ne);pe((X=X.apply(F,n)).next())}),D=({type:F,resdata:n,onok:X,oktext:w,okloading:I})=>{const[xe,Ne]=(0,e.useState)(!1),{can_copy_list:pe,can_copy_num:se,challenge_type:Se,course_data_list:h,no_copy_list:fe,no_copy_num:s,no_use_list:d,no_use_num:Y,repeat_shixun_num:ee,student_count:_,total_num:Ve,use_num:Ee}=n;let ae=se>0||F==="exercise";(0,e.useEffect)(()=>{(n==null?void 0:n.student_count)>0&&Ne(!0)},[n]),console.log("---11",I),(0,e.useEffect)(()=>{I||Ne(!1)},[I]);const ge=()=>{if(F==="exercise"&&Se===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(F==="exercise"&&Se===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&Se===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&Se===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&Se===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&Se===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",e.createElement("span",{className:m.orangeColor},_)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",e.createElement("span",{className:m.orangeColor},Ee)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="exercisepush")return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(F==="shixunpush"&&Se===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixunpush"&&Se===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},_),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",e.createElement("span",{className:m.orangeColor},Ee),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},re=()=>{if(F==="exercise"||F==="subject"||F==="exercisepush"||F==="shixunpush")return e.createElement("div",{style:{marginTop:20}},s>0&&e.createElement("div",null,e.createElement("span",{className:m.flex},e.createElement("img",{src:N,style:{width:14}}),e.createElement("span",{className:m.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),e.createElement("div",{className:m.statusbody},F==="exercise"&&e.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(F==="subject"||F==="exercisepush")&&e.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ae&&e.createElement("span",{className:m.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),F==="shixunpush"&&e.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ae&&e.createElement("span",{className:m.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),e.createElement("div",null,fe==null?void 0:fe.map((S,i)=>e.createElement("a",{href:`/shixuns/${S.identifier}/challenges`,target:"_blank"},"\u300A",S==null?void 0:S.name,"\u300B",i+1!==s&&"\u3001"))))),se>0&&e.createElement("div",{style:{marginTop:20}},e.createElement("span",{className:m.flex},e.createElement("img",{src:Q,style:{width:14}}),e.createElement("span",{className:m.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),e.createElement("div",{className:m.statusbody},F==="exercise"&&e.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(F==="subject"||F==="exercisepush")&&e.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),F==="shixunpush"&&e.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),e.createElement("div",null,pe==null?void 0:pe.map((S,i)=>e.createElement("a",{href:`/shixuns/${S.identifier}/challenges`,target:"_blank"},"\u300A",S==null?void 0:S.name,"\u300B",i+1!==se&&"\u3001"))))));if(F==="shixun")return e.createElement("div",{style:{marginTop:20}},se>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return e.createElement(p.default,{open:xe,onCancel:()=>{Ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ae&&"none"}},zIndex:1003,confirmLoading:I,okText:ae?w:"\u6211\u77E5\u9053\u4E86",onOk:()=>P(void 0,null,function*(){ae?yield X([...pe,...d]):Ne(!1)})},e.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ge(),re()))}},37428:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Se}});var e=t(59301),m=t(88634),p=t(62957),Q=t(89787),N=t(7939),P={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},g=t(70892),D=t(66649),F=t.n(D),n=t(89392),X=t(59301),w=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ne=(h,fe)=>{var s={};for(var d in h)I.call(h,d)&&fe.indexOf(d)<0&&(s[d]=h[d]);if(h!=null&&w)for(var d of w(h))fe.indexOf(d)<0&&xe.call(h,d)&&(s[d]=h[d]);return s},pe=(h,fe,s)=>new Promise((d,Y)=>{var ee=Ee=>{try{Ve(s.next(Ee))}catch(ae){Y(ae)}},_=Ee=>{try{Ve(s.throw(Ee))}catch(ae){Y(ae)}},Ve=Ee=>Ee.done?d(Ee.value):Promise.resolve(Ee.value).then(ee,_);Ve((s=s.apply(h,fe)).next())});const se=h=>{var fe=h,{shixunsDetail:s,globalSetting:d,loading:Y,dispatch:ee,showModal:_,onCancel:Ve,onOk:Ee,okBtnName:ae="\u5B8C\u6210",info:ge,source:re}=fe,S=Ne(fe,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[i,le]=(0,e.useState)(0),[M,U]=(0,e.useState)(0);return(0,e.useEffect)(()=>{var c,T;let ne=null;const q=()=>pe(void 0,null,function*(){let me={id:ge==null?void 0:ge.courseId,send_time:F()().format("YYYY-MM-DD HH:mm"),exercise_id:ge!=null&&ge.exercise_id?ge==null?void 0:ge.exercise_id:null},et={id:ge==null?void 0:ge.courseId,course_id:ge==null?void 0:ge.courseId,identifier:ge==null?void 0:ge.courseId,type:"normal",is_use:1,is_copy:!0};re==="\u8BD5\u5377"?(me.examination_bank_ids=ge==null?void 0:ge.examination_bank_ids,me.type="ExaminationBank"):re==="\u5B9E\u8BAD"?me.shixun_info=(ge==null?void 0:ge.shixun_info.length)>0?ge==null?void 0:ge.shixun_info:[et]:re==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(me.examination_bank_ids=ge==null?void 0:ge.examination_bank_ids,me.shixun_info=(ge==null?void 0:ge.shixun_info.length)>0?ge==null?void 0:ge.shixun_info:[et]);const W=yield(0,g.ZP)(`/api/courses/${ge==null?void 0:ge.courseId}/send_shixun_progress.json`,{method:"post",body:me});(W==null?void 0:W.status)===0&&(le(W==null?void 0:W.complete_num),U(W==null?void 0:W.total_num),(W==null?void 0:W.complete_num)!==(W==null?void 0:W.total_num)?(ne&&clearInterval(ne),ne=setInterval(q,5e3)):ne&&clearInterval(ne))});if(_&&(ge!=null&&ge.courseId)){const me=(c=(ge==null?void 0:ge.shixun_info)||[])==null?void 0:c.filter(W=>!!W.identifier),et=(T=(0,n.uniqBy)(me,"identifier"))==null?void 0:T.length;le(0),U(et),q()}return()=>{ne&&clearInterval(ne)}},[_]),X.createElement(p.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:i==M,open:_,destroyOnClose:!0,footer:null,onCancel:Ve},X.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",X.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},M),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),X.createElement("div",{className:P.con_warp},X.createElement(Q.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:i==M&&M!=0?100:i/M*100,showInfo:!1,size:[350,10]}),X.createElement("div",{className:P.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",X.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},i),"\u4E2A"),i!=M&&X.createElement(N.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),i==M&&X.createElement(N.ZP,{type:"primary",onClick:Ee},ae)))};var Se=(0,m.connect)(({shixunsDetail:h,loading:fe,globalSetting:s})=>({shixunsDetail:h,globalSetting:s,loading:fe.models.index}))(se)},43786:function(Yt,Ge,t){var e=t(59301),m=t(62957),p=t(70858);const Q=({dataSource:N,visible:P,onClose:g=()=>{},onSuccess:D=()=>{},text:F,okText:n})=>{var X;return e.createElement(m.default,{centered:!0,destroyOnClose:!0,open:!!P,title:"\u63D0\u793A",width:"600px",okText:n,cancelText:"\u53D6\u6D88",onCancel:g,onOk:D},P==="single"&&e.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",e.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(X=N==null?void 0:N[0])==null?void 0:X.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",F),P==="multiple"&&e.createElement(e.Fragment,null,e.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",F),e.createElement(p.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:N,scroll:(N==null?void 0:N.length)>7?{y:300}:{},pagination:!1})))};Ge.Z=Q},79734:function(Yt,Ge,t){t.r(Ge),t.d(Ge,{default:function(){return d},difficultType:function(){return h},questionType:function(){return Se}});var e=t(59301),m=t(7939),p=t(29787),Q=t(91882),N=t(15037),P=t(37285),g=t(70892),D=t(32451),F=t(88634),n={randomIcon:"randomIcon___V1A1W",btn:"btn___HSWTW"},X=t(44868),w=t(95203),I=t(34359),xe=Object.defineProperty,Ne=(Y,ee,_)=>ee in Y?xe(Y,ee,{enumerable:!0,configurable:!0,writable:!0,value:_}):Y[ee]=_,pe=(Y,ee,_)=>Ne(Y,typeof ee!="symbol"?ee+"":ee,_),se=(Y,ee,_)=>new Promise((Ve,Ee)=>{var ae=S=>{try{re(_.next(S))}catch(i){Ee(i)}},ge=S=>{try{re(_.throw(S))}catch(i){Ee(i)}},re=S=>S.done?Ve(S.value):Promise.resolve(S.value).then(ae,ge);re((_=_.apply(Y,ee)).next())});const Se={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},h={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},fe=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"];class s extends e.Component{constructor(ee){super(ee),pe(this,"getPaperData",()=>{const _=window.location.href.split("/").pop();this.setState({loading:!0,id:_}),(0,g.ZP)(`/api/examination_banks/${_}/edit_random_exam.json`,{method:"get"}).then(Ve=>{if(this.setState({loading:!1}),Ve!=null&&Ve.examination_bank){const{contents:Ee,examination_bank:ae,score_settings:ge,sort_by_item_type:re}=Ve;this.setState({contents:Ee,examination_bank:ae,score_settings:ge,sort_by_item_type:re})}})}),pe(this,"handleSendToClass",()=>{var _,Ve,Ee,ae,ge,re;const S=(Ve=(_=this.state)==null?void 0:_.score_settings)==null?void 0:Ve.reduce((i,le)=>i+le.score,0);(re=this.props)==null||re.dispatch({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:(Ee=this.state)==null?void 0:Ee.id,data:{is_random:!0},dataSource:[{name:(ge=(ae=this.state)==null?void 0:ae.examination_bank)==null?void 0:ge.name,total_score:S}],type:"single"}}})}),pe(this,"toAnswer",()=>se(this,null,function*(){var _,Ve,Ee;this.setState({btnLoading:!0});const ae=yield(0,I.Mb)({categoryId:this.state.id});this.setState({btnLoading:!1}),ae!=null&&ae.exercise_id&&(0,w.xg)(`/classrooms/coursesId/exercise/${ae.exercise_id}/${(Ee=(Ve=(_=this.props)==null?void 0:_.user)==null?void 0:Ve.userInfo)==null?void 0:Ee.login}/initate_answer`)})),this.state={loading:!1,contents:[],examination_bank:{},score_settings:[],sort_by_item_type:[],modalVisible:!1,id:null,btnLoading:!1}}componentDidMount(){this.getPaperData()}render(){const{contents:ee,examination_bank:_,score_settings:Ve,sort_by_item_type:Ee,loading:ae,btnLoading:ge}=this.state;let re=[],S=0,i=0;Object.keys(Se).map(c=>{let T=0;ee.map(q=>{q.item_type===c&&(T+=q.quanlity)});const ne=Ve.filter(q=>q.item_type===c);re=[...re,{item_type:c,num:T,score:ne.length>0?ne[0].score:0}]});const le=re.filter(c=>c.num!==0);le.map(c=>{Ve.map(T=>{c.item_type===T.item_type&&(S+=c.num*T.score,i+=c.num)})}),console.log(le,Ee,"allcount");function M(c){return Se[c]||c}le.sort((c,T)=>{const ne=M(c.item_type),q=M(T.item_type);return Ee.indexOf(ne)-Ee.indexOf(q)});const U=e.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},e.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"50%",fontWeight:500,fontSize:"16px"}},e.createElement("span",null,"\u603B\u8BA1 ",le.length," \u5927\u9898\uFF0C ",i," \u5C0F\u9898\uFF0C\u603B\u5206 ",S&&S.toFixed(1)," ","\u5206"),e.createElement("span",null,"\u8003\u8BD5\u65F6\u957F\uFF1A",_.time===null||_.time===-1?"\u4E0D\u9650":`${_.time}\u5206\u949F`),e.createElement("span",null,"\u8BD5\u5377\u96BE\u5EA6\uFF1A",h[_.difficulty])),e.createElement("div",null,e.createElement(m.ZP,{onClick:()=>{var c;return F.history.push(`/randompaper/edit/${(c=this.state)==null?void 0:c.id}?type=settings`)},className:n.btn,icon:e.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),e.createElement(m.ZP,{loading:ge,onClick:this.toAnswer,className:n.btn,icon:e.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),e.createElement(m.ZP,{type:"primary",onClick:()=>this.handleSendToClass()},"\u53D1\u9001\u81F3\u8BFE\u5802")));return e.createElement("div",{style:{width:1200,margin:"0px auto"}},e.createElement(p.Z,{spinning:this.state.loading},e.createElement(Q.Z,{separator:">",style:{padding:"12px 0px"}},e.createElement(Q.Z.Item,null,"\u8BD5\u5377\u5E93"),e.createElement(Q.Z.Item,null,e.createElement(D.rU,{to:"/paperlibrary"},"\u6211\u521B\u5EFA\u7684")),e.createElement(Q.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),e.createElement("div",{style:{height:50,display:"flex",alignItems:"center"}},e.createElement("span",{style:{fontSize:20,fontWeight:600}},e.createElement("i",{className:"icon-leftarrow iconfont",style:{fontSize:14,marginRight:8,cursor:"pointer"},onClick:()=>{F.history.back()}}),_.name),e.createElement("span",{className:n.randomIcon},"\u968F\u673A")),e.createElement(N.Z,{title:U,style:{marginBottom:200}},le.map((c,T)=>{const ne=Array.from(new Set(ee.map(q=>q.item_type===c.item_type?q.sub_discipline_id:null).filter(q=>q)));return e.createElement("div",{key:T},e.createElement("div",{style:{color:"#0152d9"}},fe[T],"\u3001",Se[c.item_type],e.createElement("span",{style:{color:"#666666",marginLeft:5}},"(\u5171 ",c.num," \u9898\uFF0C\u6BCF\u9898 ",c.score," \u5206)")),T===le.length-1?null:e.createElement(P.Z,null))})),e.createElement(X.Z,null)))}}var d=(0,F.connect)(({user:Y})=>({user:Y}))(s)},44868:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Xe}});var e=t(59301),m=t(88634),p=t(37568),Q=t(6767),N=t(62957),P=t(4875),g=t(458),D=t(70858),F=t(7939),n=t(89160),X=Object.defineProperty,w=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ne=(B,Oe,ye)=>Oe in B?X(B,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ye}):B[Oe]=ye,pe=(B,Oe)=>{for(var ye in Oe||(Oe={}))I.call(Oe,ye)&&Ne(B,ye,Oe[ye]);if(w)for(var ye of w(Oe))xe.call(Oe,ye)&&Ne(B,ye,Oe[ye]);return B};const se=B=>React.createElement("svg",pe({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},B),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var Se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",h={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},fe=t(95203),s={sendToClass:"sendToClass___le_BX"},d="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8OZ4+ozEtk4fSY15kA88K4Q4MNlXOnWJVi5bJE5M9vq5cl0V9HNkpIhoSwa41gf0mEkAPf1AZwPgh6AHBTiZTIqHy30lVpmePY01K1qxYVGD+Ga518+186ugnwMjRkRLJXADg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uBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",_=({createState:B,refreshLoading:Oe,onRefresh:ye=()=>{},onCreate:ct=()=>{}})=>e.createElement("div",{className:s.sendToClass},B?e.createElement(e.Fragment,null,e.createElement("img",{src:d,alt:"\u7A7A"}),e.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),e.createElement(F.ZP,{onClick:ct,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):e.createElement(e.Fragment,null,e.createElement("img",{src:Y,alt:"\u7A7A"}),e.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),e.createElement(F.ZP,{loading:Oe,onClick:ye,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Ve=t(32981),Ee=t(89392),ae=t(18612),ge=t(37428),re=t(43786),S=t(59301),i=Object.defineProperty,le=Object.defineProperties,M=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,ne=(B,Oe,ye)=>Oe in B?i(B,Oe,{enumerable:!0,configurable:!0,writable:!0,value:ye}):B[Oe]=ye,q=(B,Oe)=>{for(var ye in Oe||(Oe={}))c.call(Oe,ye)&&ne(B,ye,Oe[ye]);if(U)for(var ye of U(Oe))T.call(Oe,ye)&&ne(B,ye,Oe[ye]);return B},me=(B,Oe)=>le(B,M(Oe)),et=(B,Oe)=>{var ye={};for(var ct in B)c.call(B,ct)&&Oe.indexOf(ct)<0&&(ye[ct]=B[ct]);if(B!=null&&U)for(var ct of U(B))Oe.indexOf(ct)<0&&T.call(B,ct)&&(ye[ct]=B[ct]);return ye},W=(B,Oe,ye)=>new Promise((ct,Le)=>{var oe=f=>{try{H(ye.next(f))}catch(ce){Le(ce)}},Z=f=>{try{H(ye.throw(f))}catch(ce){Le(ce)}},H=f=>f.done?ct(f.value):Promise.resolve(f.value).then(oe,Z);H((ye=ye.apply(B,Oe)).next())});const we=p.default.Search,he=B=>{var Oe=B,{paperlibrary:ye,globalSetting:ct,loading:Le,dispatch:oe}=Oe,Z=et(Oe,["paperlibrary","globalSetting","loading","dispatch"]),H,f,ce,A;const[r,u]=(0,e.useState)(""),[V,K]=(0,e.useState)([]),[y,z]=(0,e.useState)([]),[L,J]=(0,e.useState)(!1),[l,v]=(0,e.useState)(!0),[Me,de]=(0,e.useState)(!0),[Ie,Be]=(0,e.useState)(!0),[Te,Ue]=(0,e.useState)(!1),[je,x]=(0,e.useState)(!1),te=(ce=(f=(H=ye.actionTabs)==null?void 0:H.params)==null?void 0:f.data)==null?void 0:ce.is_random,[Ce,De]=(0,e.useState)(!1),[C,k]=(0,e.useState)({}),[G,ve]=(0,e.useState)(!1),[ze,Ke]=(0,e.useState)({}),[ut,pt]=(0,e.useState)(!1),[tt,mt]=(0,e.useState)(!1),[ke,rt]=(0,e.useState)([]);(0,e.useEffect)(()=>{var Ht;if(ye.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:At=[],type:vn}=((Ht=ye.actionTabs)==null?void 0:Ht.params)||{},Bt=At.filter(mn=>![100,120,150].includes(mn.total_score));Bt.length?(mt(vn),rt(Bt)):pt(!0)}},[(A=ye==null?void 0:ye.actionTabs)==null?void 0:A.key]),(0,e.useEffect)(()=>{xt()},[]);const ot=()=>{z([]),u(""),xt(!0),pt(!1),mt(!1),oe({type:"paperlibrary/setActionTabs",payload:{}})},xt=Ht=>W(void 0,null,function*(){de(!0);const At=yield oe({type:"paperlibrary/getCourseList",payload:{search:Ht?"":r}});At&&(K((At==null?void 0:At.courses)||[]),v(!0),Ue(!1)),de(!1),Be(!1)}),gt=Ht=>{const At=parseInt(Ht);return(0,Ee.isNaN)(At)?"":At},Pt=()=>W(void 0,null,function*(){var Ht,At,vn,Bt,mn,pn,en;if(!y.length){Q.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),J(!0);return}const b=yield oe({type:"paperlibrary/postExistCourse",payload:{course_id:te?y==null?void 0:y[0]:y,examination_bank_ids:((At=(Ht=ye.actionTabs)==null?void 0:Ht.params)==null?void 0:At.examination_bank_ids)||((Bt=(vn=ye.actionTabs)==null?void 0:vn.params)==null?void 0:Bt.id)}}),O=()=>W(void 0,null,function*(){yield Mt([])});if(b.status==0&&((mn=b.data)==null?void 0:mn.count)>0){N.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:S.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(en=(pn=b.data)==null?void 0:pn.list)==null?void 0:en.map((it,R)=>{var $;return S.createElement(S.Fragment,null,S.createElement("span",{style:{color:"#FA6400"}},"\u300A",it==null?void 0:it.name,"\u300B"),R!==(($=b.data)==null?void 0:$.count)-1&&S.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>W(void 0,null,function*(){yield O()})}),yield new Promise(it=>setTimeout(()=>it(),1e3));return}yield O()}),Mt=Ht=>W(void 0,null,function*(){var At,vn,Bt,mn,pn,en,b,O,it,R,$,He,Pe;if(!te){De(!0);const at=yield oe({type:(vn=(At=ye.actionTabs)==null?void 0:At.params)!=null&&vn.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:te?y==null?void 0:y[0]:y,id:(mn=(Bt=ye.actionTabs)==null?void 0:Bt.params)==null?void 0:mn.id,examination_bank_ids:(en=(pn=ye.actionTabs)==null?void 0:pn.params)==null?void 0:en.examination_bank_ids,shixuns_info:Ht.map(Ct=>({shixun_id:Ct.id,is_copy:Ct.is_copy,is_use:Ct.is_use,course_id:Ct.course_id}))}});De(!1),at&&at.status===0&&(pt(!1),oe({type:"paperlibrary/setActionTabs",payload:{}}),z([]),at!=null&&at.have_shixun?(Ke(me(q({},(b=at==null?void 0:at.data)==null?void 0:b[0]),{courseId:(it=(O=at==null?void 0:at.data)==null?void 0:O[0])==null?void 0:it.course_identifier,examination_bank_ids:(($=(R=ye.actionTabs)==null?void 0:R.params)==null?void 0:$.examination_bank_ids)||[(Pe=(He=ye.actionTabs)==null?void 0:He.params)==null?void 0:Pe.id]})),ve(!0)):(N.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${at.data[0].first_category_url}`},content:S.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),Q.ZP.success("\u53D1\u9001\u6210\u529F")));return}De(!0),setTimeout(()=>{De(!1)},500);const Ae=V.find(at=>at.course_id===(y==null?void 0:y[0]));let qe=1,Fe=N.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:S.createElement("div",{className:h.modalColumn},S.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},S.createElement("img",{style:{marginRight:5},src:n.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),S.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",Ae==null?void 0:Ae.course_name),S.createElement("div",{style:{paddingLeft:9},className:h.modalRow},S.createElement("sup",{className:h.sup},"*"),S.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),S.createElement(P.Z,{parser:gt,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:qe,onChange:at=>{qe=at;const Ct=document.getElementById("model_error");qe<1||qe>50?Ct.style.display="block":Ct.style.display="none"}})),S.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:ot,onOk:()=>W(void 0,null,function*(){var at,Ct;if(qe<1||qe>50){const vt=document.getElementById("model_error");return vt.style.display="block",Promise.reject()}Fe.update({cancelButtonProps:{disabled:!0}});const bt=yield oe({type:"paperlibrary/sendToClass",payload:{course_id:y==null?void 0:y[0],id:(Ct=(at=ye.actionTabs)==null?void 0:at.params)==null?void 0:Ct.id,num:qe,shixuns_info:Ht.map(vt=>({shixun_id:vt.id,is_copy:vt.is_copy,is_use:vt.is_use}))}});Fe.update({cancelButtonProps:{disabled:!1}}),bt&&bt.status===0&&(N.default.destroyAll(),N.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:S.createElement("div",{className:h.modalColumn},S.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},S.createElement("img",{style:{marginRight:5},src:Se}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{ot()},onOk:()=>{ot(),setTimeout(()=>{var vt,zt;const Kt=(zt=(vt=bt==null?void 0:bt.first_category_url)==null?void 0:vt.split("/"))==null?void 0:zt[2];(0,fe.xg)(`/classrooms/${Kt}/exercise`)},1e3)}}))})})}),Gt=()=>W(void 0,null,function*(){Ue(!0),yield xt()}),rn=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return S.createElement("div",null,S.createElement(N.default,{centered:!0,keyboard:!1,closable:!1,open:ut,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Le["paperlibrary/sendToClass"]||je||!!Le["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:Pt,destroyOnClose:!0,onCancel:ot},S.createElement("div",{className:h.wrap},S.createElement("div",{className:"mb10"},S.createElement(we,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:r,className:h.search,onChange:Ht=>{u(Ht.target.value),Ht.target.value||xt(!0)},onSearch:Ht=>{u(Ht),xt(),z([])}})),S.createElement(g.Z,{loading:Ie},V.length?S.createElement("div",{className:h.radioWrap},S.createElement(D.default,{bordered:!1,scroll:(V==null?void 0:V.length)<=7?{}:{y:350},loading:Me,rowKey:"course_id",pagination:!1,dataSource:V,columns:rn,onRow:Ht=>({onClick:At=>{if(te)z([Ht==null?void 0:Ht.course_id]);else{if(!te&&!y.includes(Ht.course_id)&&y.length>0)return;y!=null&&y.includes(Ht==null?void 0:Ht.course_id)?z(y==null?void 0:y.filter(vn=>vn!==(Ht==null?void 0:Ht.course_id))):z([...y,Ht==null?void 0:Ht.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:y,onChange:Ht=>{z(Ht),J(!1)}}})):!r&&!Me&&S.createElement(_,{createState:l,refreshLoading:Te,onRefresh:Gt,onCreate:()=>{v(!1),(0,fe.xg)("/classrooms/new")}})),L&&S.createElement("div",{className:h.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),S.createElement("div",{className:h.bottom,style:{display:"flex",alignItems:"center"}},S.createElement("div",{style:{flex:1}},S.createElement("div",{className:h.title},S.createElement("img",{src:n.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),S.createElement("div",null,S.createElement(F.ZP,{onClick:ot,className:h.no,style:{marginRight:20}},"\u53D6\u6D88"),S.createElement(Ve.Z,{onClick:Pt,className:h.yes},"\u786E\u8BA4"))))),S.createElement(ae.Z,{resdata:C,type:"exercise",okloading:Ce,oktext:(C==null?void 0:C.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ht=>{Mt(Ht)}}),S.createElement(ge.Z,{source:"\u8BD5\u5377",showModal:G,onCancel:()=>ve(!1),okBtnName:"\u524D\u5F80\u6559\u5B66\u8BFE\u5802",info:ze,onOk:()=>{window.location.href=ze==null?void 0:ze.first_category_url}}),S.createElement(re.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:tt,dataSource:ke,onSuccess:()=>{mt(!1),pt(!0)},onClose:ot}))};var Xe=(0,m.connect)(({paperlibrary:B,loading:Oe,globalSetting:ye})=>({paperlibrary:B,globalSetting:ye,loading:Oe.effects}))(he)},29509:function(Yt,Ge,t){t.d(Ge,{o2:function(){return N},yT:function(){return P}});var e=t(94480),m=t(34998);const p=m.i.map(g=>`${g}-inverse`),Q=["success","processing","error","default","warning"];function N(g){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,e.Z)(p),(0,e.Z)(m.i)).includes(g):m.i.includes(g)}function P(g){return Q.includes(g)}},9981:function(Yt,Ge){const t=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let m=1;m{const N=p[Q];N!==void 0&&(e[Q]=N)})}return e};Ge.Z=t},99402:function(Yt,Ge,t){t.d(Ge,{T:function(){return m},n:function(){return e}});function e(p){return["small","middle","large"].includes(p)}function m(p){return p?typeof p=="number"&&!Number.isNaN(p):!1}},86013:function(Yt,Ge,t){var e=t(59301),m=t(19248);const p=Q=>{let N;return typeof Q=="object"&&(Q!=null&&Q.clearIcon)?N=Q:Q&&(N={clearIcon:e.createElement(m.Z,null)}),N};Ge.Z=p},97224:function(Yt,Ge,t){t.d(Ge,{F:function(){return e}});function e(p){return p!=null&&p===p.window}const m=p=>{var Q,N;if(typeof window=="undefined")return 0;let P=0;return e(p)?P=p.pageYOffset:p instanceof Document?P=p.documentElement.scrollTop:(p instanceof HTMLElement||p)&&(P=p.scrollTop),p&&!e(p)&&typeof P!="number"&&(P=(N=((Q=p.ownerDocument)!==null&&Q!==void 0?Q:p).documentElement)===null||N===void 0?void 0:N.scrollTop),P};Ge.Z=m},52838:function(Yt,Ge,t){t.d(Ge,{Z:function(){return P}});var e=t(37645);function m(g,D,F,n){if(n===!1)return{adjustX:!1,adjustY:!1};const X=n&&typeof n=="object"?n:{},w={};switch(g){case"top":case"bottom":w.shiftX=D.arrowOffsetHorizontal*2+F,w.shiftY=!0,w.adjustY=!0;break;case"left":case"right":w.shiftY=D.arrowOffsetVertical*2+F,w.shiftX=!0,w.adjustX=!0;break}const I=Object.assign(Object.assign({},w),X);return I.shiftX||(I.adjustX=!0),I.shiftY||(I.adjustY=!0),I}const p={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Q={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},N=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function P(g){const{arrowWidth:D,autoAdjustOverflow:F,arrowPointAtCenter:n,offset:X,borderRadius:w,visibleFirst:I}=g,xe=D/2,Ne={};return Object.keys(p).forEach(pe=>{const se=n&&Q[pe]||p[pe],Se=Object.assign(Object.assign({},se),{offset:[0,0],dynamicInset:!0});switch(Ne[pe]=Se,N.has(pe)&&(Se.autoArrow=!1),pe){case"top":case"topLeft":case"topRight":Se.offset[1]=-xe-X;break;case"bottom":case"bottomLeft":case"bottomRight":Se.offset[1]=xe+X;break;case"left":case"leftTop":case"leftBottom":Se.offset[0]=-xe-X;break;case"right":case"rightTop":case"rightBottom":Se.offset[0]=xe+X;break}const h=(0,e.wZ)({contentRadius:w,limitVerticalRadius:!0});if(n)switch(pe){case"topLeft":case"bottomLeft":Se.offset[0]=-h.arrowOffsetHorizontal-xe;break;case"topRight":case"bottomRight":Se.offset[0]=h.arrowOffsetHorizontal+xe;break;case"leftTop":case"rightTop":Se.offset[1]=-h.arrowOffsetHorizontal*2+xe;break;case"leftBottom":case"rightBottom":Se.offset[1]=h.arrowOffsetHorizontal*2-xe;break}Se.overflow=m(pe,h,D,F),I&&(Se.htmlRegion="visibleFirst")}),Ne}},83010:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Q}});var e=t(16089);function m(N,P,g,D){const F=g-P;return N/=D/2,N<1?F/2*N*N*N+P:F/2*((N-=2)*N*N+2)+P}var p=t(97224);function Q(N){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:g=()=>window,callback:D,duration:F=450}=P,n=g(),X=(0,p.Z)(n),w=Date.now(),I=()=>{const Ne=Date.now()-w,pe=m(Ne>F?F:Ne,X,N,F);(0,p.F)(n)?n.scrollTo(window.pageXOffset,pe):n instanceof Document||n.constructor.name==="HTMLDocument"?n.documentElement.scrollTop=pe:n.scrollTop=pe,Neg||P},91882:function(Yt,Ge,t){t.d(Ge,{Z:function(){return M}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(11592),N=t(26112),P=t(22703),g=t(48755),D=t(84105),F=t(19563);const n=U=>{let{children:c}=U;const{getPrefixCls:T}=e.useContext(g.E_),ne=T("breadcrumb");return e.createElement("li",{className:`${ne}-separator`,"aria-hidden":"true"},c===""?c:c||"/")};n.__ANT_BREADCRUMB_SEPARATOR=!0;var X=n,w=function(U,c){var T={};for(var ne in U)Object.prototype.hasOwnProperty.call(U,ne)&&c.indexOf(ne)<0&&(T[ne]=U[ne]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ne=Object.getOwnPropertySymbols(U);qc[q]||ne)}function xe(U,c,T,ne){if(T==null)return null;const{className:q,onClick:me}=c,et=w(c,["className","onClick"]),W=Object.assign(Object.assign({},(0,N.Z)(et,{data:!0,aria:!0})),{onClick:me});return ne!==void 0?e.createElement("a",Object.assign({},W,{className:p()(`${U}-link`,q),href:ne}),T):e.createElement("span",Object.assign({},W,{className:p()(`${U}-link`,q)}),T)}function Ne(U,c){return(ne,q,me,et,W)=>{if(c)return c(ne,q,me,et);const we=I(ne,q);return xe(U,ne,we,W)}}var pe=function(U,c){var T={};for(var ne in U)Object.prototype.hasOwnProperty.call(U,ne)&&c.indexOf(ne)<0&&(T[ne]=U[ne]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ne=Object.getOwnPropertySymbols(U);q{const{prefixCls:c,separator:T="/",children:ne,menu:q,overlay:me,dropdownProps:et,href:W}=U,he=(Xe=>{if(q||me){const B=Object.assign({},et);if(q){const Oe=q||{},{items:ye}=Oe,ct=pe(Oe,["items"]);B.menu=Object.assign(Object.assign({},ct),{items:ye==null?void 0:ye.map((Le,oe)=>{var{key:Z,title:H,label:f,path:ce}=Le,A=pe(Le,["key","title","label","path"]);let r=f!=null?f:H;return ce&&(r=e.createElement("a",{href:`${W}${ce}`},r)),Object.assign(Object.assign({},A),{key:Z!=null?Z:oe,label:r})})})}else me&&(B.overlay=me);return e.createElement(F.Z,Object.assign({placement:"bottom"},B),e.createElement("span",{className:`${c}-overlay-link`},Xe,e.createElement(D.Z,null)))}return Xe})(ne);return he!=null?e.createElement(e.Fragment,null,e.createElement("li",null,he),T&&e.createElement(X,null,T)):null},Se=U=>{const{prefixCls:c,children:T,href:ne}=U,q=pe(U,["prefixCls","children","href"]),{getPrefixCls:me}=e.useContext(g.E_),et=me("breadcrumb",c);return e.createElement(se,Object.assign({},q,{prefixCls:et}),xe(et,q,T,ne))};Se.__ANT_BREADCRUMB_ITEM=!0;var h=Se,fe=t(36237),s=t(63356),d=t(16931),Y=t(51636);const ee=U=>{const{componentCls:c,iconCls:T,calc:ne}=U;return{[c]:Object.assign(Object.assign({},(0,s.Wf)(U)),{color:U.itemColor,fontSize:U.fontSize,[T]:{fontSize:U.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:U.linkColor,transition:`color ${U.motionDurationMid}`,padding:`0 ${(0,fe.unit)(U.paddingXXS)}`,borderRadius:U.borderRadiusSM,height:U.fontHeight,display:"inline-block",marginInline:ne(U.marginXXS).mul(-1).equal(),"&:hover":{color:U.linkHoverColor,backgroundColor:U.colorBgTextHover}},(0,s.Qy)(U)),"li:last-child":{color:U.lastItemColor},[`${c}-separator`]:{marginInline:U.separatorMargin,color:U.separatorColor},[`${c}-link`]:{[` + > ${T} + span, + > ${T} + a + `]:{marginInlineStart:U.marginXXS}},[`${c}-overlay-link`]:{borderRadius:U.borderRadiusSM,height:U.fontHeight,display:"inline-block",padding:`0 ${(0,fe.unit)(U.paddingXXS)}`,marginInline:ne(U.marginXXS).mul(-1).equal(),[`> ${T}`]:{marginInlineStart:U.marginXXS,fontSize:U.fontSizeIcon},"&:hover":{color:U.linkHoverColor,backgroundColor:U.colorBgTextHover,a:{color:U.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${U.componentCls}-rtl`]:{direction:"rtl"}})}},_=U=>({itemColor:U.colorTextDescription,lastItemColor:U.colorText,iconFontSize:U.fontSize,linkColor:U.colorTextDescription,linkHoverColor:U.colorText,separatorColor:U.colorTextDescription,separatorMargin:U.marginXS});var Ve=(0,d.I$)("Breadcrumb",U=>{const c=(0,Y.mergeToken)(U,{});return ee(c)},_),Ee=function(U,c){var T={};for(var ne in U)Object.prototype.hasOwnProperty.call(U,ne)&&c.indexOf(ne)<0&&(T[ne]=U[ne]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ne=Object.getOwnPropertySymbols(U);q{var{breadcrumbName:et}=me,W=Ee(me,["breadcrumbName"]);return Object.assign(Object.assign({},W),{title:et})})}),q}function ge(U,c){return(0,e.useMemo)(()=>U||(c?c.map(ae):null),[U,c])}var re=function(U,c){var T={};for(var ne in U)Object.prototype.hasOwnProperty.call(U,ne)&&c.indexOf(ne)<0&&(T[ne]=U[ne]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ne=Object.getOwnPropertySymbols(U);q{if(c===void 0)return c;let T=(c||"").replace(/^\//,"");return Object.keys(U).forEach(ne=>{T=T.replace(`:${ne}`,U[ne])}),T},i=U=>{const{prefixCls:c,separator:T="/",style:ne,className:q,rootClassName:me,routes:et,items:W,children:we,itemRender:he,params:Xe={}}=U,B=re(U,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Oe,direction:ye,breadcrumb:ct}=e.useContext(g.E_);let Le;const oe=Oe("breadcrumb",c),[Z,H,f]=Ve(oe),ce=ge(W,et),A=Ne(oe,he);if(ce&&ce.length>0){const V=[],K=W||et;Le=ce.map((y,z)=>{const{path:L,key:J,type:l,menu:v,overlay:Me,onClick:de,className:Ie,separator:Be,dropdownProps:Te}=y,Ue=S(Xe,L);Ue!==void 0&&V.push(Ue);const je=J!=null?J:z;if(l==="separator")return e.createElement(X,{key:je},Be);const x={},te=z===ce.length-1;v?x.menu=v:Me&&(x.overlay=Me);let{href:Ce}=y;return V.length&&Ue!==void 0&&(Ce=`#/${V.join("/")}`),e.createElement(se,Object.assign({key:je},x,(0,N.Z)(y,{data:!0,aria:!0}),{className:Ie,dropdownProps:Te,href:Ce,separator:te?"":T,onClick:de,prefixCls:oe}),A(y,Xe,K,V,Ce))})}else if(we){const V=(0,Q.Z)(we).length;Le=(0,Q.Z)(we).map((K,y)=>{if(!K)return K;const z=y===V-1;return(0,P.Tm)(K,{separator:z?"":T,key:y})})}const r=p()(oe,ct==null?void 0:ct.className,{[`${oe}-rtl`]:ye==="rtl"},q,me,H,f),u=Object.assign(Object.assign({},ct==null?void 0:ct.style),ne);return Z(e.createElement("nav",Object.assign({className:r,style:u},B),e.createElement("ol",null,Le)))};i.Item=h,i.Separator=X;var le=i,M=le},15037:function(Yt,Ge,t){t.d(Ge,{Z:function(){return U}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(2738),N=t(48755),P=t(31756),g=t(458),D=t(31691),F=function(c,T){var ne={};for(var q in c)Object.prototype.hasOwnProperty.call(c,q)&&T.indexOf(q)<0&&(ne[q]=c[q]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,q=Object.getOwnPropertySymbols(c);me{var{prefixCls:T,className:ne,hoverable:q=!0}=c,me=F(c,["prefixCls","className","hoverable"]);const{getPrefixCls:et}=e.useContext(N.E_),W=et("card",T),we=p()(`${W}-grid`,ne,{[`${W}-grid-hoverable`]:q});return e.createElement("div",Object.assign({},me,{className:we}))},w=t(36237),I=t(63356),xe=t(16931),Ne=t(51636);const pe=c=>{const{antCls:T,componentCls:ne,headerHeight:q,headerPadding:me,tabsMarginBottom:et}=c;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:q,marginBottom:-1,padding:`0 ${(0,w.unit)(me)}`,color:c.colorTextHeading,fontWeight:c.fontWeightStrong,fontSize:c.headerFontSize,background:c.headerBg,borderBottom:`${(0,w.unit)(c.lineWidth)} ${c.lineType} ${c.colorBorderSecondary}`,borderRadius:`${(0,w.unit)(c.borderRadiusLG)} ${(0,w.unit)(c.borderRadiusLG)} 0 0`},(0,I.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},I.vS),{[` + > ${ne}-typography, + > ${ne}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${T}-tabs-top`]:{clear:"both",marginBottom:et,color:c.colorText,fontWeight:"normal",fontSize:c.fontSize,"&-bar":{borderBottom:`${(0,w.unit)(c.lineWidth)} ${c.lineType} ${c.colorBorderSecondary}`}}})},se=c=>{const{cardPaddingBase:T,colorBorderSecondary:ne,cardShadow:q,lineWidth:me}=c;return{width:"33.33%",padding:T,border:0,borderRadius:0,boxShadow:` + ${(0,w.unit)(me)} 0 0 0 ${ne}, + 0 ${(0,w.unit)(me)} 0 0 ${ne}, + ${(0,w.unit)(me)} ${(0,w.unit)(me)} 0 0 ${ne}, + ${(0,w.unit)(me)} 0 0 0 ${ne} inset, + 0 ${(0,w.unit)(me)} 0 0 ${ne} inset; + `,transition:`all ${c.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:q}}},Se=c=>{const{componentCls:T,iconCls:ne,actionsLiMargin:q,cardActionsIconSize:me,colorBorderSecondary:et,actionsBg:W}=c;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:W,borderTop:`${(0,w.unit)(c.lineWidth)} ${c.lineType} ${et}`,display:"flex",borderRadius:`0 0 ${(0,w.unit)(c.borderRadiusLG)} ${(0,w.unit)(c.borderRadiusLG)}`},(0,I.dF)()),{"& > li":{margin:q,color:c.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:c.calc(c.cardActionsIconSize).mul(2).equal(),fontSize:c.fontSize,lineHeight:c.lineHeight,cursor:"pointer","&:hover":{color:c.colorPrimary,transition:`color ${c.motionDurationMid}`},[`a:not(${T}-btn), > ${ne}`]:{display:"inline-block",width:"100%",color:c.colorTextDescription,lineHeight:(0,w.unit)(c.fontHeight),transition:`color ${c.motionDurationMid}`,"&:hover":{color:c.colorPrimary}},[`> ${ne}`]:{fontSize:me,lineHeight:(0,w.unit)(c.calc(me).mul(c.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,w.unit)(c.lineWidth)} ${c.lineType} ${et}`}}})},h=c=>Object.assign(Object.assign({margin:`${(0,w.unit)(c.calc(c.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,I.dF)()),{"&-avatar":{paddingInlineEnd:c.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:c.marginXS}},"&-title":Object.assign({color:c.colorTextHeading,fontWeight:c.fontWeightStrong,fontSize:c.fontSizeLG},I.vS),"&-description":{color:c.colorTextDescription}}),fe=c=>{const{componentCls:T,colorFillAlter:ne,headerPadding:q,bodyPadding:me}=c;return{[`${T}-head`]:{padding:`0 ${(0,w.unit)(q)}`,background:ne,"&-title":{fontSize:c.fontSize}},[`${T}-body`]:{padding:`${(0,w.unit)(c.padding)} ${(0,w.unit)(me)}`}}},s=c=>{const{componentCls:T}=c;return{overflow:"hidden",[`${T}-body`]:{userSelect:"none"}}},d=c=>{const{componentCls:T,cardShadow:ne,cardHeadPadding:q,colorBorderSecondary:me,boxShadowTertiary:et,bodyPadding:W,extraColor:we}=c;return{[T]:Object.assign(Object.assign({},(0,I.Wf)(c)),{position:"relative",background:c.colorBgContainer,borderRadius:c.borderRadiusLG,[`&:not(${T}-bordered)`]:{boxShadow:et},[`${T}-head`]:pe(c),[`${T}-extra`]:{marginInlineStart:"auto",color:we,fontWeight:"normal",fontSize:c.fontSize},[`${T}-body`]:Object.assign({padding:W,borderRadius:`0 0 ${(0,w.unit)(c.borderRadiusLG)} ${(0,w.unit)(c.borderRadiusLG)}`},(0,I.dF)()),[`${T}-grid`]:se(c),[`${T}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,w.unit)(c.borderRadiusLG)} ${(0,w.unit)(c.borderRadiusLG)} 0 0`}},[`${T}-actions`]:Se(c),[`${T}-meta`]:h(c)}),[`${T}-bordered`]:{border:`${(0,w.unit)(c.lineWidth)} ${c.lineType} ${me}`,[`${T}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${T}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${c.motionDurationMid}, border-color ${c.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:ne}},[`${T}-contain-grid`]:{borderRadius:`${(0,w.unit)(c.borderRadiusLG)} ${(0,w.unit)(c.borderRadiusLG)} 0 0 `,[`${T}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${T}-loading) ${T}-body`]:{marginBlockStart:c.calc(c.lineWidth).mul(-1).equal(),marginInlineStart:c.calc(c.lineWidth).mul(-1).equal(),padding:0}},[`${T}-contain-tabs`]:{[`> div${T}-head`]:{minHeight:0,[`${T}-head-title, ${T}-extra`]:{paddingTop:q}}},[`${T}-type-inner`]:fe(c),[`${T}-loading`]:s(c),[`${T}-rtl`]:{direction:"rtl"}}},Y=c=>{const{componentCls:T,bodyPaddingSM:ne,headerPaddingSM:q,headerHeightSM:me,headerFontSizeSM:et}=c;return{[`${T}-small`]:{[`> ${T}-head`]:{minHeight:me,padding:`0 ${(0,w.unit)(q)}`,fontSize:et,[`> ${T}-head-wrapper`]:{[`> ${T}-extra`]:{fontSize:c.fontSize}}},[`> ${T}-body`]:{padding:ne}},[`${T}-small${T}-contain-tabs`]:{[`> ${T}-head`]:{[`${T}-head-title, ${T}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ee=c=>{var T,ne;return{headerBg:"transparent",headerFontSize:c.fontSizeLG,headerFontSizeSM:c.fontSize,headerHeight:c.fontSizeLG*c.lineHeightLG+c.padding*2,headerHeightSM:c.fontSize*c.lineHeight+c.paddingXS*2,actionsBg:c.colorBgContainer,actionsLiMargin:`${c.paddingSM}px 0`,tabsMarginBottom:-c.padding-c.lineWidth,extraColor:c.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(T=c.bodyPadding)!==null&&T!==void 0?T:c.paddingLG,headerPadding:(ne=c.headerPadding)!==null&&ne!==void 0?ne:c.paddingLG}};var _=(0,xe.I$)("Card",c=>{const T=(0,Ne.mergeToken)(c,{cardShadow:c.boxShadowCard,cardHeadPadding:c.padding,cardPaddingBase:c.paddingLG,cardActionsIconSize:c.fontSize});return[d(T),Y(T)]},ee),Ve=t(24971),Ee=function(c,T){var ne={};for(var q in c)Object.prototype.hasOwnProperty.call(c,q)&&T.indexOf(q)<0&&(ne[q]=c[q]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,q=Object.getOwnPropertySymbols(c);me{const{actionClasses:T,actions:ne=[],actionStyle:q}=c;return e.createElement("ul",{className:T,style:q},ne.map((me,et)=>{const W=`action-${et}`;return e.createElement("li",{style:{width:`${100/ne.length}%`},key:W},e.createElement("span",null,me))}))};var re=e.forwardRef((c,T)=>{const{prefixCls:ne,className:q,rootClassName:me,style:et,extra:W,headStyle:we={},bodyStyle:he={},title:Xe,loading:B,bordered:Oe,variant:ye,size:ct,type:Le,cover:oe,actions:Z,tabList:H,children:f,activeTabKey:ce,defaultActiveTabKey:A,tabBarExtraContent:r,hoverable:u,tabProps:V={},classNames:K,styles:y}=c,z=Ee(c,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:L,direction:J,card:l}=e.useContext(N.E_),[v]=(0,Ve.Z)("card",ye,Oe),Me=gt=>{var Pt;(Pt=c.onTabChange)===null||Pt===void 0||Pt.call(c,gt)},de=gt=>{var Pt;return p()((Pt=l==null?void 0:l.classNames)===null||Pt===void 0?void 0:Pt[gt],K==null?void 0:K[gt])},Ie=gt=>{var Pt;return Object.assign(Object.assign({},(Pt=l==null?void 0:l.styles)===null||Pt===void 0?void 0:Pt[gt]),y==null?void 0:y[gt])},Be=e.useMemo(()=>{let gt=!1;return e.Children.forEach(f,Pt=>{(Pt==null?void 0:Pt.type)===X&&(gt=!0)}),gt},[f]),Te=L("card",ne),[Ue,je,x]=_(Te),te=e.createElement(g.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},f),Ce=ce!==void 0,De=Object.assign(Object.assign({},V),{[Ce?"activeKey":"defaultActiveKey"]:Ce?ce:A,tabBarExtraContent:r});let C;const k=(0,P.Z)(ct),G=!k||k==="default"?"large":k,ve=H?e.createElement(D.default,Object.assign({size:G},De,{className:`${Te}-head-tabs`,onChange:Me,items:H.map(gt=>{var{tab:Pt}=gt,Mt=Ee(gt,["tab"]);return Object.assign({label:Pt},Mt)})})):null;if(Xe||W||ve){const gt=p()(`${Te}-head`,de("header")),Pt=p()(`${Te}-head-title`,de("title")),Mt=p()(`${Te}-extra`,de("extra")),Gt=Object.assign(Object.assign({},we),Ie("header"));C=e.createElement("div",{className:gt,style:Gt},e.createElement("div",{className:`${Te}-head-wrapper`},Xe&&e.createElement("div",{className:Pt,style:Ie("title")},Xe),W&&e.createElement("div",{className:Mt,style:Ie("extra")},W)),ve)}const ze=p()(`${Te}-cover`,de("cover")),Ke=oe?e.createElement("div",{className:ze,style:Ie("cover")},oe):null,ut=p()(`${Te}-body`,de("body")),pt=Object.assign(Object.assign({},he),Ie("body")),tt=e.createElement("div",{className:ut,style:pt},B?te:f),mt=p()(`${Te}-actions`,de("actions")),ke=Z!=null&&Z.length?e.createElement(ae,{actionClasses:mt,actionStyle:Ie("actions"),actions:Z}):null,rt=(0,Q.Z)(z,["onTabChange"]),ot=p()(Te,l==null?void 0:l.className,{[`${Te}-loading`]:B,[`${Te}-bordered`]:v!=="borderless",[`${Te}-hoverable`]:u,[`${Te}-contain-grid`]:Be,[`${Te}-contain-tabs`]:H==null?void 0:H.length,[`${Te}-${k}`]:k,[`${Te}-type-${Le}`]:!!Le,[`${Te}-rtl`]:J==="rtl"},q,me,je,x),xt=Object.assign(Object.assign({},l==null?void 0:l.style),et);return Ue(e.createElement("div",Object.assign({ref:T},rt,{className:ot,style:xt}),C,Ke,tt,ke))}),S=function(c,T){var ne={};for(var q in c)Object.prototype.hasOwnProperty.call(c,q)&&T.indexOf(q)<0&&(ne[q]=c[q]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,q=Object.getOwnPropertySymbols(c);me{const{prefixCls:T,className:ne,avatar:q,title:me,description:et}=c,W=S(c,["prefixCls","className","avatar","title","description"]),{getPrefixCls:we}=e.useContext(N.E_),he=we("card",T),Xe=p()(`${he}-meta`,ne),B=q?e.createElement("div",{className:`${he}-meta-avatar`},q):null,Oe=me?e.createElement("div",{className:`${he}-meta-title`},me):null,ye=et?e.createElement("div",{className:`${he}-meta-description`},et):null,ct=Oe||ye?e.createElement("div",{className:`${he}-meta-detail`},Oe,ye):null;return e.createElement("div",Object.assign({},W,{className:Xe}),B,ct)};const M=re;M.Grid=X,M.Meta=le;var U=M},62673:function(Yt,Ge,t){t.d(Ge,{default:function(){return Ve}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(16632),N=t(8654),P=t(12919),g=t(63872),D=t(48755),F=t(2171),n=t(83397),X=t(56553),I=e.createContext(null),xe=t(36170),Ne=t(74632),pe=function(Ee,ae){var ge={};for(var re in Ee)Object.prototype.hasOwnProperty.call(Ee,re)&&ae.indexOf(re)<0&&(ge[re]=Ee[re]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,re=Object.getOwnPropertySymbols(Ee);S{var ge;const{prefixCls:re,className:S,rootClassName:i,children:le,indeterminate:M=!1,style:U,onMouseEnter:c,onMouseLeave:T,skipGroup:ne=!1,disabled:q}=Ee,me=pe(Ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:W,checkbox:we}=e.useContext(D.E_),he=e.useContext(I),{isFormItemInput:Xe}=e.useContext(X.aM),B=e.useContext(F.Z),Oe=(ge=(he==null?void 0:he.disabled)||q)!==null&&ge!==void 0?ge:B,ye=e.useRef(me.value),ct=e.useRef(null),Le=(0,N.sQ)(ae,ct);e.useEffect(()=>{he==null||he.registerValue(me.value)},[]),e.useEffect(()=>{if(!ne)return me.value!==ye.current&&(he==null||he.cancelValue(ye.current),he==null||he.registerValue(me.value),ye.current=me.value),()=>he==null?void 0:he.cancelValue(me.value)},[me.value]),e.useEffect(()=>{var y;!((y=ct.current)===null||y===void 0)&&y.input&&(ct.current.input.indeterminate=M)},[M]);const oe=et("checkbox",re),Z=(0,n.Z)(oe),[H,f,ce]=(0,xe.ZP)(oe,Z),A=Object.assign({},me);he&&!ne&&(A.onChange=function(){me.onChange&&me.onChange.apply(me,arguments),he.toggleOption&&he.toggleOption({label:le,value:me.value})},A.name=he.name,A.checked=he.value.includes(me.value));const r=p()(`${oe}-wrapper`,{[`${oe}-rtl`]:W==="rtl",[`${oe}-wrapper-checked`]:A.checked,[`${oe}-wrapper-disabled`]:Oe,[`${oe}-wrapper-in-form-item`]:Xe},we==null?void 0:we.className,S,i,ce,Z,f),u=p()({[`${oe}-indeterminate`]:M},g.A,f),[V,K]=(0,Ne.Z)(A.onClick);return H(e.createElement(P.Z,{component:"Checkbox",disabled:Oe},e.createElement("label",{className:r,style:Object.assign(Object.assign({},we==null?void 0:we.style),U),onMouseEnter:c,onMouseLeave:T,onClick:V},e.createElement(Q.Z,Object.assign({},A,{onClick:K,prefixCls:oe,className:u,disabled:Oe,ref:Le})),le!==void 0&&e.createElement("span",{className:`${oe}-label`},le))))};var h=e.forwardRef(se),fe=t(94480),s=t(2738),d=function(Ee,ae){var ge={};for(var re in Ee)Object.prototype.hasOwnProperty.call(Ee,re)&&ae.indexOf(re)<0&&(ge[re]=Ee[re]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,re=Object.getOwnPropertySymbols(Ee);S{const{defaultValue:ge,children:re,options:S=[],prefixCls:i,className:le,rootClassName:M,style:U,onChange:c}=Ee,T=d(Ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ne,direction:q}=e.useContext(D.E_),[me,et]=e.useState(T.value||ge||[]),[W,we]=e.useState([]);e.useEffect(()=>{"value"in T&&et(T.value||[])},[T.value]);const he=e.useMemo(()=>S.map(u=>typeof u=="string"||typeof u=="number"?{label:u,value:u}:u),[S]),Xe=u=>{we(V=>V.filter(K=>K!==u))},B=u=>{we(V=>[].concat((0,fe.Z)(V),[u]))},Oe=u=>{const V=me.indexOf(u.value),K=(0,fe.Z)(me);V===-1?K.push(u.value):K.splice(V,1),"value"in T||et(K),c==null||c(K.filter(y=>W.includes(y)).sort((y,z)=>{const L=he.findIndex(l=>l.value===y),J=he.findIndex(l=>l.value===z);return L-J}))},ye=ne("checkbox",i),ct=`${ye}-group`,Le=(0,n.Z)(ye),[oe,Z,H]=(0,xe.ZP)(ye,Le),f=(0,s.Z)(T,["value","disabled"]),ce=S.length?he.map(u=>e.createElement(h,{prefixCls:ye,key:u.value.toString(),disabled:"disabled"in u?u.disabled:T.disabled,value:u.value,checked:me.includes(u.value),onChange:u.onChange,className:`${ct}-item`,style:u.style,title:u.title,id:u.id,required:u.required},u.label)):re,A={toggleOption:Oe,value:me,disabled:T.disabled,name:T.name,registerValue:B,cancelValue:Xe},r=p()(ct,{[`${ct}-rtl`]:q==="rtl"},le,M,H,Le,Z);return oe(e.createElement("div",Object.assign({className:r,style:U},f,{ref:ae}),e.createElement(I.Provider,{value:A},ce)))});const _=h;_.Group=ee,_.__ANT_CHECKBOX=!0;var Ve=_},36170:function(Yt,Ge,t){t.d(Ge,{C2:function(){return P}});var e=t(36237),m=t(63356),p=t(51636),Q=t(16931);const N=g=>{const{checkboxCls:D}=g,F=`${D}-wrapper`;return[{[`${D}-group`]:Object.assign(Object.assign({},(0,m.Wf)(g)),{display:"inline-flex",flexWrap:"wrap",columnGap:g.marginXS,[`> ${g.antCls}-row`]:{flex:1}}),[F]:Object.assign(Object.assign({},(0,m.Wf)(g)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${F}`]:{marginInlineStart:0},[`&${F}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[D]:Object.assign(Object.assign({},(0,m.Wf)(g)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:g.borderRadiusSM,alignSelf:"center",[`${D}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${D}-inner`]:Object.assign({},(0,m.oN)(g))},[`${D}-inner`]:{boxSizing:"border-box",display:"block",width:g.checkboxSize,height:g.checkboxSize,direction:"ltr",backgroundColor:g.colorBgContainer,border:`${(0,e.unit)(g.lineWidth)} ${g.lineType} ${g.colorBorder}`,borderRadius:g.borderRadiusSM,borderCollapse:"separate",transition:`all ${g.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:g.calc(g.checkboxSize).div(14).mul(5).equal(),height:g.calc(g.checkboxSize).div(14).mul(8).equal(),border:`${(0,e.unit)(g.lineWidthBold)} solid ${g.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${g.motionDurationFast} ${g.motionEaseInBack}, opacity ${g.motionDurationFast}`}},"& + span":{paddingInlineStart:g.paddingXS,paddingInlineEnd:g.paddingXS}})},{[` + ${F}:not(${F}-disabled), + ${D}:not(${D}-disabled) + `]:{[`&:hover ${D}-inner`]:{borderColor:g.colorPrimary}},[`${F}:not(${F}-disabled)`]:{[`&:hover ${D}-checked:not(${D}-disabled) ${D}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${D}-checked:not(${D}-disabled):after`]:{borderColor:g.colorPrimaryHover}}},{[`${D}-checked`]:{[`${D}-inner`]:{backgroundColor:g.colorPrimary,borderColor:g.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${g.motionDurationMid} ${g.motionEaseOutBack} ${g.motionDurationFast}`}}},[` + ${F}-checked:not(${F}-disabled), + ${D}-checked:not(${D}-disabled) + `]:{[`&:hover ${D}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"}}},{[D]:{"&-indeterminate":{[`${D}-inner`]:{backgroundColor:`${g.colorBgContainer} !important`,borderColor:`${g.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:g.calc(g.fontSizeLG).div(2).equal(),height:g.calc(g.fontSizeLG).div(2).equal(),backgroundColor:g.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${D}-inner`]:{backgroundColor:`${g.colorBgContainer} !important`,borderColor:`${g.colorPrimary} !important`}}}},{[`${F}-disabled`]:{cursor:"not-allowed"},[`${D}-disabled`]:{[`&, ${D}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${D}-inner`]:{background:g.colorBgContainerDisabled,borderColor:g.colorBorder,"&:after":{borderColor:g.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:g.colorTextDisabled},[`&${D}-indeterminate ${D}-inner::after`]:{background:g.colorTextDisabled}}}]};function P(g,D){const F=(0,p.mergeToken)(D,{checkboxCls:`.${g}`,checkboxSize:D.controlInteractiveSize});return[N(F)]}Ge.ZP=(0,Q.I$)("Checkbox",(g,D)=>{let{prefixCls:F}=D;return[P(F,g)]})},74632:function(Yt,Ge,t){t.d(Ge,{Z:function(){return p}});var e=t(59301),m=t(16089);function p(Q){const N=e.useRef(null),P=()=>{m.Z.cancel(N.current),N.current=null};return[()=>{P(),N.current=(0,m.Z)(()=>{N.current=null})},F=>{N.current&&(F.stopPropagation(),P()),Q==null||Q(F)}]}},38406:function(Yt,Ge,t){var e=t(59301),m=t(48755),p=t(584);const Q=N=>{const{componentName:P}=N,{getPrefixCls:g}=(0,e.useContext)(m.E_),D=g("empty");switch(P){case"Table":case"List":return e.createElement(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return e.createElement(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,className:`${D}-small`});case"Table.filter":return null;default:return e.createElement(p.Z,null)}};Ge.Z=Q},37285:function(Yt,Ge,t){t.d(Ge,{Z:function(){return xe}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(48755),N=t(36237),P=t(63356),g=t(16931),D=t(51636);const F=Ne=>{const{componentCls:pe,sizePaddingEdgeHorizontal:se,colorSplit:Se,lineWidth:h,textPaddingInline:fe,orientationMargin:s,verticalMarginInline:d}=Ne;return{[pe]:Object.assign(Object.assign({},(0,P.Wf)(Ne)),{borderBlockStart:`${(0,N.unit)(h)} solid ${Se}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,N.unit)(h)} solid ${Se}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,N.unit)(Ne.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${pe}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,N.unit)(Ne.dividerHorizontalWithTextGutterMargin)} 0`,color:Ne.colorTextHeading,fontWeight:500,fontSize:Ne.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Se}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,N.unit)(h)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${pe}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${pe}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${pe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:fe},"&-dashed":{background:"none",borderColor:Se,borderStyle:"dashed",borderWidth:`${(0,N.unit)(h)} 0 0`},[`&-horizontal${pe}-with-text${pe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${pe}-dashed`]:{borderInlineStartWidth:h,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Se,borderStyle:"dotted",borderWidth:`${(0,N.unit)(h)} 0 0`},[`&-horizontal${pe}-with-text${pe}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${pe}-dotted`]:{borderInlineStartWidth:h,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${pe}-with-text`]:{color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize},[`&-horizontal${pe}-with-text-start${pe}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${pe}-inner-text`]:{paddingInlineStart:se}},[`&-horizontal${pe}-with-text-end${pe}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${pe}-inner-text`]:{paddingInlineEnd:se}}})}},n=Ne=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ne.marginXS});var X=(0,g.I$)("Divider",Ne=>{const pe=(0,D.mergeToken)(Ne,{dividerHorizontalWithTextGutterMargin:Ne.margin,dividerHorizontalGutterMargin:Ne.marginLG,sizePaddingEdgeHorizontal:0});return[F(pe)]},n,{unitless:{orientationMargin:!0}}),w=function(Ne,pe){var se={};for(var Se in Ne)Object.prototype.hasOwnProperty.call(Ne,Se)&&pe.indexOf(Se)<0&&(se[Se]=Ne[Se]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,Se=Object.getOwnPropertySymbols(Ne);h{const{getPrefixCls:pe,direction:se,className:Se,style:h}=(0,Q.dj)("divider"),{prefixCls:fe,type:s="horizontal",orientation:d="center",orientationMargin:Y,className:ee,rootClassName:_,children:Ve,dashed:Ee,variant:ae="solid",plain:ge,style:re}=Ne,S=w(Ne,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),i=pe("divider",fe),[le,M,U]=X(i),c=!!Ve,T=e.useMemo(()=>d==="left"?se==="rtl"?"end":"start":d==="right"?se==="rtl"?"start":"end":d,[se,d]),ne=T==="start"&&Y!=null,q=T==="end"&&Y!=null,me=p()(i,Se,M,U,`${i}-${s}`,{[`${i}-with-text`]:c,[`${i}-with-text-${T}`]:c,[`${i}-dashed`]:!!Ee,[`${i}-${ae}`]:ae!=="solid",[`${i}-plain`]:!!ge,[`${i}-rtl`]:se==="rtl",[`${i}-no-default-orientation-margin-start`]:ne,[`${i}-no-default-orientation-margin-end`]:q},ee,_),et=e.useMemo(()=>typeof Y=="number"?Y:/^\d+$/.test(Y)?Number(Y):Y,[Y]),W={marginInlineStart:ne?et:void 0,marginInlineEnd:q?et:void 0};return le(e.createElement("div",Object.assign({className:me,style:Object.assign(Object.assign({},h),re)},S,{role:"separator"}),Ve&&s!=="vertical"&&e.createElement("span",{className:`${i}-inner-text`,style:W},Ve)))}},19563:function(Yt,Ge,t){t.d(Ge,{Z:function(){return et}});var e=t(59301),m=t(33853),p=t(38819),Q=t(92310),N=t.n(Q),P=t(96478),g=t(6089),D=t(18929),F=t(2738),n=t(75030),w=W=>typeof W!="object"&&typeof W!="function"||W===null,I=t(52838),xe=t(45915),Ne=t(22703),pe=t(32383),se=t(55743),Se=t(48755),h=t(83397),fe=t(93041),s=t(78857),d=t(57700),Y=t(36237),ee=t(63356),_=t(46e3),Ve=t(93873),Ee=t(34925),ae=t(37645),ge=t(36305),re=t(16931),S=t(51636),le=W=>{const{componentCls:we,menuCls:he,colorError:Xe,colorTextLightSolid:B}=W,Oe=`${he}-item`;return{[`${we}, ${we}-menu-submenu`]:{[`${he} ${Oe}`]:{[`&${Oe}-danger:not(${Oe}-disabled)`]:{color:Xe,"&:hover":{color:B,backgroundColor:Xe}}}}}};const M=W=>{const{componentCls:we,menuCls:he,zIndexPopup:Xe,dropdownArrowDistance:B,sizePopupArrow:Oe,antCls:ye,iconCls:ct,motionDurationMid:Le,paddingBlock:oe,fontSize:Z,dropdownEdgeChildPadding:H,colorTextDisabled:f,fontSizeIcon:ce,controlPaddingHorizontal:A,colorBgElevated:r}=W;return[{[we]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xe,display:"block","&::before":{position:"absolute",insetBlock:W.calc(Oe).div(2).sub(B).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ye}-btn`]:{[`& > ${ct}-down, & > ${ye}-btn-icon > ${ct}-down`]:{fontSize:ce}},[`${we}-wrap`]:{position:"relative",[`${ye}-btn > ${ct}-down`]:{fontSize:ce},[`${ct}-down::before`]:{transition:`transform ${Le}`}},[`${we}-wrap-open`]:{[`${ct}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ye}-slide-down-enter${ye}-slide-down-enter-active${we}-placement-bottomLeft, + &${ye}-slide-down-appear${ye}-slide-down-appear-active${we}-placement-bottomLeft, + &${ye}-slide-down-enter${ye}-slide-down-enter-active${we}-placement-bottom, + &${ye}-slide-down-appear${ye}-slide-down-appear-active${we}-placement-bottom, + &${ye}-slide-down-enter${ye}-slide-down-enter-active${we}-placement-bottomRight, + &${ye}-slide-down-appear${ye}-slide-down-appear-active${we}-placement-bottomRight`]:{animationName:_.fJ},[`&${ye}-slide-up-enter${ye}-slide-up-enter-active${we}-placement-topLeft, + &${ye}-slide-up-appear${ye}-slide-up-appear-active${we}-placement-topLeft, + &${ye}-slide-up-enter${ye}-slide-up-enter-active${we}-placement-top, + &${ye}-slide-up-appear${ye}-slide-up-appear-active${we}-placement-top, + &${ye}-slide-up-enter${ye}-slide-up-enter-active${we}-placement-topRight, + &${ye}-slide-up-appear${ye}-slide-up-appear-active${we}-placement-topRight`]:{animationName:_.Qt},[`&${ye}-slide-down-leave${ye}-slide-down-leave-active${we}-placement-bottomLeft, + &${ye}-slide-down-leave${ye}-slide-down-leave-active${we}-placement-bottom, + &${ye}-slide-down-leave${ye}-slide-down-leave-active${we}-placement-bottomRight`]:{animationName:_.Uw},[`&${ye}-slide-up-leave${ye}-slide-up-leave-active${we}-placement-topLeft, + &${ye}-slide-up-leave${ye}-slide-up-leave-active${we}-placement-top, + &${ye}-slide-up-leave${ye}-slide-up-leave-active${we}-placement-topRight`]:{animationName:_.ly}}},(0,ae.ZP)(W,r,{arrowPlacement:{top:!0,bottom:!0}}),{[`${we} ${he}`]:{position:"relative",margin:0},[`${he}-submenu-popup`]:{position:"absolute",zIndex:Xe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${we}, ${we}-menu-submenu`]:Object.assign(Object.assign({},(0,ee.Wf)(W)),{[he]:Object.assign(Object.assign({padding:H,listStyleType:"none",backgroundColor:r,backgroundClip:"padding-box",borderRadius:W.borderRadiusLG,outline:"none",boxShadow:W.boxShadowSecondary},(0,ee.Qy)(W)),{"&:empty":{padding:0,boxShadow:"none"},[`${he}-item-group-title`]:{padding:`${(0,Y.unit)(oe)} ${(0,Y.unit)(A)}`,color:W.colorTextDescription,transition:`all ${Le}`},[`${he}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${he}-item-icon`]:{minWidth:Z,marginInlineEnd:W.marginXS,fontSize:W.fontSizeSM},[`${he}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Le}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${he}-item-extra`]:{paddingInlineStart:W.padding,marginInlineStart:"auto",fontSize:W.fontSizeSM,color:W.colorTextDescription}},[`${he}-item, ${he}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Y.unit)(oe)} ${(0,Y.unit)(A)}`,color:W.colorText,fontWeight:"normal",fontSize:Z,lineHeight:W.lineHeight,cursor:"pointer",transition:`all ${Le}`,borderRadius:W.borderRadiusSM,"&:hover, &-active":{backgroundColor:W.controlItemBgHover}},(0,ee.Qy)(W)),{"&-selected":{color:W.colorPrimary,backgroundColor:W.controlItemBgActive,"&:hover, &-active":{backgroundColor:W.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:r,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Y.unit)(W.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:W.colorSplit},[`${we}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,[`${we}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:W.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${he}-item-group-list`]:{margin:`0 ${(0,Y.unit)(W.marginXS)}`,padding:0,listStyle:"none"},[`${he}-submenu-title`]:{paddingInlineEnd:W.calc(A).add(W.fontSizeSM).equal()},[`${he}-submenu-vertical`]:{position:"relative"},[`${he}-submenu${he}-submenu-disabled ${we}-menu-submenu-title`]:{[`&, ${we}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:r,cursor:"not-allowed"}},[`${he}-submenu-selected ${we}-menu-submenu-title`]:{color:W.colorPrimary}})})},[(0,_.oN)(W,"slide-up"),(0,_.oN)(W,"slide-down"),(0,Ve.Fm)(W,"move-up"),(0,Ve.Fm)(W,"move-down"),(0,Ee._y)(W,"zoom-big")]]},U=W=>Object.assign(Object.assign({zIndexPopup:W.zIndexPopupBase+50,paddingBlock:(W.controlHeight-W.fontSize*W.lineHeight)/2},(0,ae.wZ)({contentRadius:W.borderRadiusLG,limitVerticalRadius:!0})),(0,ge.w)(W));var c=(0,re.I$)("Dropdown",W=>{const{marginXXS:we,sizePopupArrow:he,paddingXXS:Xe,componentCls:B}=W,Oe=(0,S.mergeToken)(W,{menuCls:`${B}-menu`,dropdownArrowDistance:W.calc(he).div(2).add(we).equal(),dropdownEdgeChildPadding:Xe});return[M(Oe),le(Oe)]},U,{resetStyle:!1});const T=null,ne=W=>{var we;const{menu:he,arrow:Xe,prefixCls:B,children:Oe,trigger:ye,disabled:ct,dropdownRender:Le,getPopupContainer:oe,overlayClassName:Z,rootClassName:H,overlayStyle:f,open:ce,onOpenChange:A,visible:r,onVisibleChange:u,mouseEnterDelay:V=.15,mouseLeaveDelay:K=.1,autoAdjustOverflow:y=!0,placement:z="",overlay:L,transitionName:J}=W,{getPopupContainer:l,getPrefixCls:v,direction:Me,dropdown:de}=e.useContext(Se.E_),Ie=(0,pe.ln)("Dropdown"),Be=e.useMemo(()=>{const gt=v();return J!==void 0?J:z.includes("top")?`${gt}-slide-down`:`${gt}-slide-up`},[v,z,J]),Te=e.useMemo(()=>z?z.includes("Center")?z.slice(0,z.indexOf("Center")):z:Me==="rtl"?"bottomRight":"bottomLeft",[z,Me]),Ue=v("dropdown",B),je=(0,h.Z)(Ue),[x,te,Ce]=c(Ue,je),[,De]=(0,d.ZP)(),C=e.Children.only(w(Oe)?e.createElement("span",null,Oe):Oe),k=(0,Ne.Tm)(C,{className:N()(`${Ue}-trigger`,{[`${Ue}-rtl`]:Me==="rtl"},C.props.className),disabled:(we=C.props.disabled)!==null&&we!==void 0?we:ct}),G=ct?[]:ye,ve=!!(G!=null&&G.includes("contextMenu")),[ze,Ke]=(0,D.Z)(!1,{value:ce!=null?ce:r}),ut=(0,g.Z)(gt=>{A==null||A(gt,{source:"trigger"}),u==null||u(gt),Ke(gt)}),pt=N()(Z,H,te,Ce,je,de==null?void 0:de.className,{[`${Ue}-rtl`]:Me==="rtl"}),tt=(0,I.Z)({arrowPointAtCenter:typeof Xe=="object"&&Xe.pointAtCenter,autoAdjustOverflow:y,offset:De.marginXXS,arrowWidth:Xe?De.sizePopupArrow:0,borderRadius:De.borderRadius}),mt=e.useCallback(()=>{he!=null&&he.selectable&&(he!=null&&he.multiple)||(A==null||A(!1,{source:"menu"}),Ke(!1))},[he==null?void 0:he.selectable,he==null?void 0:he.multiple]),ke=()=>{let gt;return he!=null&&he.items?gt=e.createElement(fe.default,Object.assign({},he)):typeof L=="function"?gt=L():gt=L,Le&&(gt=Le(gt)),gt=e.Children.only(typeof gt=="string"?e.createElement("span",null,gt):gt),e.createElement(s.J,{prefixCls:`${Ue}-menu`,rootClassName:N()(Ce,je),expandIcon:e.createElement("span",{className:`${Ue}-menu-submenu-arrow`},Me==="rtl"?e.createElement(m.Z,{className:`${Ue}-menu-submenu-arrow-icon`}):e.createElement(p.Z,{className:`${Ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:Pt=>{let{mode:Mt}=Pt}},gt)},[rt,ot]=(0,n.Cn)("Dropdown",f==null?void 0:f.zIndex);let xt=e.createElement(P.Z,Object.assign({alignPoint:ve},(0,F.Z)(W,["rootClassName"]),{mouseEnterDelay:V,mouseLeaveDelay:K,visible:ze,builtinPlacements:tt,arrow:!!Xe,overlayClassName:pt,prefixCls:Ue,getPopupContainer:oe||l,transitionName:Be,trigger:G,overlay:ke,placement:Te,onVisibleChange:ut,overlayStyle:Object.assign(Object.assign(Object.assign({},de==null?void 0:de.style),f),{zIndex:rt})}),k);return rt&&(xt=e.createElement(se.Z.Provider,{value:ot},xt)),x(xt)},q=(0,xe.Z)(ne,"align",void 0,"dropdown",W=>W),me=W=>e.createElement(q,Object.assign({},W),e.createElement("span",null));ne._InternalPanelDoNotUseOrYouWillBeFired=me;var et=ne},75727:function(Yt,Ge,t){t.d(Ge,{Z:function(){return xe}});var e=t(19563),m=t(59301),p=t(18785),Q=t(92310),N=t.n(Q),P=t(7939),g=t(48755),D=t(44104),F=t(70045),n=function(Ne,pe){var se={};for(var Se in Ne)Object.prototype.hasOwnProperty.call(Ne,Se)&&pe.indexOf(Se)<0&&(se[Se]=Ne[Se]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,Se=Object.getOwnPropertySymbols(Ne);h{const{getPopupContainer:pe,getPrefixCls:se,direction:Se}=m.useContext(g.E_),{prefixCls:h,type:fe="default",danger:s,disabled:d,loading:Y,onClick:ee,htmlType:_,children:Ve,className:Ee,menu:ae,arrow:ge,autoFocus:re,overlay:S,trigger:i,align:le,open:M,onOpenChange:U,placement:c,getPopupContainer:T,href:ne,icon:q=m.createElement(p.Z,null),title:me,buttonsRender:et=V=>V,mouseEnterDelay:W,mouseLeaveDelay:we,overlayClassName:he,overlayStyle:Xe,destroyPopupOnHide:B,dropdownRender:Oe}=Ne,ye=n(Ne,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ct=se("dropdown",h),Le=`${ct}-button`,oe={menu:ae,arrow:ge,autoFocus:re,align:le,disabled:d,trigger:d?[]:i,onOpenChange:U,getPopupContainer:T||pe,mouseEnterDelay:W,mouseLeaveDelay:we,overlayClassName:he,overlayStyle:Xe,destroyPopupOnHide:B,dropdownRender:Oe},{compactSize:Z,compactItemClassnames:H}=(0,F.ri)(ct,Se),f=N()(Le,H,Ee);"overlay"in Ne&&(oe.overlay=S),"open"in Ne&&(oe.open=M),"placement"in Ne?oe.placement=c:oe.placement=Se==="rtl"?"bottomLeft":"bottomRight";const ce=m.createElement(P.ZP,{type:fe,danger:s,disabled:d,loading:Y,onClick:ee,htmlType:_,href:ne,title:me},Ve),A=m.createElement(P.ZP,{type:fe,danger:s,icon:q}),[r,u]=et([ce,A]);return m.createElement(D.Z.Compact,Object.assign({className:f,size:Z,block:!0},ye),r,m.createElement(e.Z,Object.assign({},oe),u))};X.__ANT_BUTTON=!0;var w=X;const I=e.Z;I.Button=w;var xe=I},584:function(Yt,Ge,t){t.d(Ge,{Z:function(){return fe}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(9017),N=t(17835),P=t(57700),D=()=>{const[,s]=(0,P.ZP)(),[d]=(0,Q.Z)("Empty"),ee=new N.FastColor(s.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(d==null?void 0:d.description)||"Empty"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},n=()=>{const[,s]=(0,P.ZP)(),[d]=(0,Q.Z)("Empty"),{colorFill:Y,colorFillTertiary:ee,colorFillQuaternary:_,colorBgContainer:Ve}=s,{borderColor:Ee,shadowColor:ae,contentColor:ge}=(0,e.useMemo)(()=>({borderColor:new N.FastColor(Y).onBackground(Ve).toHexString(),shadowColor:new N.FastColor(ee).onBackground(Ve).toHexString(),contentColor:new N.FastColor(_).onBackground(Ve).toHexString()}),[Y,ee,_,Ve]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(d==null?void 0:d.description)||"Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:ae,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:Ee},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:ge}))))},X=t(16931),w=t(51636);const I=s=>{const{componentCls:d,margin:Y,marginXS:ee,marginXL:_,fontSize:Ve,lineHeight:Ee}=s;return{[d]:{marginInline:ee,fontSize:Ve,lineHeight:Ee,textAlign:"center",[`${d}-image`]:{height:s.emptyImgHeight,marginBottom:ee,opacity:s.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${d}-description`]:{color:s.colorTextDescription},[`${d}-footer`]:{marginTop:Y},"&-normal":{marginBlock:_,color:s.colorTextDescription,[`${d}-description`]:{color:s.colorTextDescription},[`${d}-image`]:{height:s.emptyImgHeightMD}},"&-small":{marginBlock:ee,color:s.colorTextDescription,[`${d}-image`]:{height:s.emptyImgHeightSM}}}}};var xe=(0,X.I$)("Empty",s=>{const{componentCls:d,controlHeightLG:Y,calc:ee}=s,_=(0,w.mergeToken)(s,{emptyImgCls:`${d}-img`,emptyImgHeight:ee(Y).mul(2.5).equal(),emptyImgHeightMD:Y,emptyImgHeightSM:ee(Y).mul(.875).equal()});return[I(_)]}),Ne=t(48755),pe=function(s,d){var Y={};for(var ee in s)Object.prototype.hasOwnProperty.call(s,ee)&&d.indexOf(ee)<0&&(Y[ee]=s[ee]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,ee=Object.getOwnPropertySymbols(s);_{const{className:d,rootClassName:Y,prefixCls:ee,image:_=se,description:Ve,children:Ee,imageStyle:ae,style:ge,classNames:re,styles:S}=s,i=pe(s,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:le,direction:M,className:U,style:c,classNames:T,styles:ne}=(0,Ne.dj)("empty"),q=le("empty",ee),[me,et,W]=xe(q),[we]=(0,Q.Z)("Empty"),he=typeof Ve!="undefined"?Ve:we==null?void 0:we.description,Xe=typeof he=="string"?he:"empty";let B=null;return typeof _=="string"?B=e.createElement("img",{alt:Xe,src:_}):B=_,me(e.createElement("div",Object.assign({className:p()(et,W,q,U,{[`${q}-normal`]:_===Se,[`${q}-rtl`]:M==="rtl"},d,Y,T.root,re==null?void 0:re.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ne.root),c),S==null?void 0:S.root),ge)},i),e.createElement("div",{className:p()(`${q}-image`,T.image,re==null?void 0:re.image),style:Object.assign(Object.assign(Object.assign({},ae),ne.image),S==null?void 0:S.image)},B),he&&e.createElement("div",{className:p()(`${q}-description`,T.description,re==null?void 0:re.description),style:Object.assign(Object.assign({},ne.description),S==null?void 0:S.description)},he),Ee&&e.createElement("div",{className:p()(`${q}-footer`,T.footer,re==null?void 0:re.footer),style:Object.assign(Object.assign({},ne.footer),S==null?void 0:S.footer)},Ee)))};h.PRESENTED_IMAGE_DEFAULT=se,h.PRESENTED_IMAGE_SIMPLE=Se;var fe=h},24971:function(Yt,Ge,t){var e=t(59301),m=t(56553),p=t(48755);const Q=function(N,P){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var D,F;const{variant:n,[N]:X}=e.useContext(p.E_),w=e.useContext(m.pg),I=X==null?void 0:X.variant;let xe;typeof P!="undefined"?xe=P:g===!1?xe="borderless":xe=(F=(D=w!=null?w:I)!==null&&D!==void 0?D:n)!==null&&F!==void 0?F:"outlined";const Ne=p.tr.includes(xe);return[xe,Ne]};Ge.Z=Q},4875:function(Yt,Ge,t){t.d(Ge,{Z:function(){return De}});var e=t(59301),m=t(84105),p=t(87395),Q=t(92310),N=t.n(Q),P=t(54476),g=t(20068),D=t(76190),F=t(42978),n=t(75931),X=t(67732),w=t(83652);function I(){return typeof BigInt=="function"}function xe(C){return!C&&C!==0&&!Number.isNaN(C)||!String(C).trim()}function Ne(C){var k=C.trim(),G=k.startsWith("-");G&&(k=k.slice(1)),k=k.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),k.startsWith(".")&&(k="0".concat(k));var ve=k||"0",ze=ve.split("."),Ke=ze[0]||"0",ut=ze[1]||"0";Ke==="0"&&ut==="0"&&(G=!1);var pt=G?"-":"";return{negative:G,negativeStr:pt,trimStr:ve,integerStr:Ke,decimalStr:ut,fullStr:"".concat(pt).concat(ve)}}function pe(C){var k=String(C);return!Number.isNaN(Number(k))&&k.includes("e")}function se(C){var k=String(C);if(pe(C)){var G=Number(k.slice(k.indexOf("e-")+2)),ve=k.match(/\.(\d+)/);return ve!=null&&ve[1]&&(G+=ve[1].length),G}return k.includes(".")&&h(k)?k.length-k.indexOf(".")-1:0}function Se(C){var k=String(C);if(pe(C)){if(C>Number.MAX_SAFE_INTEGER)return String(I()?BigInt(C).toString():Number.MAX_SAFE_INTEGER);if(C0&&arguments[0]!==void 0?arguments[0]:!0;return G?this.isInvalidate()?"":Ne("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),C}(),s=function(){function C(k){if((0,X.Z)(this,C),(0,g.Z)(this,"origin",""),(0,g.Z)(this,"number",void 0),(0,g.Z)(this,"empty",void 0),xe(k)){this.empty=!0;return}this.origin=String(k),this.number=Number(k)}return(0,w.Z)(C,[{key:"negate",value:function(){return new C(-this.toNumber())}},{key:"add",value:function(G){if(this.isInvalidate())return new C(G);var ve=Number(G);if(Number.isNaN(ve))return this;var ze=this.number+ve;if(ze>Number.MAX_SAFE_INTEGER)return new C(Number.MAX_SAFE_INTEGER);if(zeNumber.MAX_SAFE_INTEGER)return new C(Number.MAX_SAFE_INTEGER);if(ze0&&arguments[0]!==void 0?arguments[0]:!0;return G?this.isInvalidate()?"":Se(this.number):this.origin}}]),C}();function d(C){return I()?new fe(C):new s(C)}function Y(C,k,G){var ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(C==="")return"";var ze=Ne(C),Ke=ze.negativeStr,ut=ze.integerStr,pt=ze.decimalStr,tt="".concat(k).concat(pt),mt="".concat(Ke).concat(ut);if(G>=0){var ke=Number(pt[G]);if(ke>=5&&!ve){var rt=d(C).add("".concat(Ke,"0.").concat("0".repeat(G)).concat(10-ke));return Y(rt.toString(),k,G,ve)}return G===0?mt:"".concat(mt).concat(k).concat(pt.padEnd(G,"0").slice(0,G))}return tt===".0"?mt:"".concat(mt).concat(tt)}var ee=d,_=t(36901),Ve=t(34280);function Ee(C,k){return typeof Proxy!="undefined"&&C?new Proxy(C,{get:function(ve,ze){if(k[ze])return k[ze];var Ke=ve[ze];return typeof Ke=="function"?Ke.bind(ve):Ke}}):C}var ae=t(8654),ge=t(48736);function re(C,k){var G=(0,e.useRef)(null);function ve(){try{var Ke=C.selectionStart,ut=C.selectionEnd,pt=C.value,tt=pt.substring(0,Ke),mt=pt.substring(ut);G.current={start:Ke,end:ut,value:pt,beforeTxt:tt,afterTxt:mt}}catch(ke){}}function ze(){if(C&&G.current&&k)try{var Ke=C.value,ut=G.current,pt=ut.beforeTxt,tt=ut.afterTxt,mt=ut.start,ke=Ke.length;if(Ke.startsWith(pt))ke=pt.length;else if(Ke.endsWith(tt))ke=Ke.length-G.current.afterTxt.length;else{var rt=pt[mt-1],ot=Ke.indexOf(rt,mt-1);ot!==-1&&(ke=ot+1)}C.setSelectionRange(ke,ke)}catch(xt){(0,ge.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(xt.message))}}return[ve,ze]}var S=t(49658),i=function(){var k=(0,e.useState)(!1),G=(0,F.Z)(k,2),ve=G[0],ze=G[1];return(0,Ve.Z)(function(){ze((0,S.Z)())},[]),ve},le=i,M=t(16089),U=200,c=600;function T(C){var k=C.prefixCls,G=C.upNode,ve=C.downNode,ze=C.upDisabled,Ke=C.downDisabled,ut=C.onStep,pt=e.useRef(),tt=e.useRef([]),mt=e.useRef();mt.current=ut;var ke=function(){clearTimeout(pt.current)},rt=function(Ht,At){Ht.preventDefault(),ke(),mt.current(At);function vn(){mt.current(At),pt.current=setTimeout(vn,U)}pt.current=setTimeout(vn,c)};e.useEffect(function(){return function(){ke(),tt.current.forEach(function(rn){return M.Z.cancel(rn)})}},[]);var ot=le();if(ot)return null;var xt="".concat(k,"-handler"),gt=N()(xt,"".concat(xt,"-up"),(0,g.Z)({},"".concat(xt,"-up-disabled"),ze)),Pt=N()(xt,"".concat(xt,"-down"),(0,g.Z)({},"".concat(xt,"-down-disabled"),Ke)),Mt=function(){return tt.current.push((0,M.Z)(ke))},Gt={unselectable:"on",role:"button",onMouseUp:Mt,onMouseLeave:Mt};return e.createElement("div",{className:"".concat(xt,"-wrap")},e.createElement("span",(0,P.Z)({},Gt,{onMouseDown:function(Ht){rt(Ht,!0)},"aria-label":"Increase Value","aria-disabled":ze,className:gt}),G||e.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-up-inner")})),e.createElement("span",(0,P.Z)({},Gt,{onMouseDown:function(Ht){rt(Ht,!1)},"aria-label":"Decrease Value","aria-disabled":Ke,className:Pt}),ve||e.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-down-inner")})))}function ne(C){var k=typeof C=="number"?Se(C):Ne(C).fullStr,G=k.includes(".");return G?Ne(k.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:C+"0"}var q=t(30292),me=function(){var C=(0,e.useRef)(0),k=function(){M.Z.cancel(C.current)};return(0,e.useEffect)(function(){return k},[]),function(G){k(),C.current=(0,M.Z)(function(){G()})}},et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],W=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],we=function(k,G){return k||G.isEmpty()?G.toString():G.toNumber()},he=function(k){var G=ee(k);return G.isInvalidate()?null:G},Xe=e.forwardRef(function(C,k){var G=C.prefixCls,ve=C.className,ze=C.style,Ke=C.min,ut=C.max,pt=C.step,tt=pt===void 0?1:pt,mt=C.defaultValue,ke=C.value,rt=C.disabled,ot=C.readOnly,xt=C.upHandler,gt=C.downHandler,Pt=C.keyboard,Mt=C.changeOnWheel,Gt=Mt===void 0?!1:Mt,rn=C.controls,Ht=rn===void 0?!0:rn,At=C.classNames,vn=C.stringMode,Bt=C.parser,mn=C.formatter,pn=C.precision,en=C.decimalSeparator,b=C.onChange,O=C.onInput,it=C.onPressEnter,R=C.onStep,$=C.changeOnBlur,He=$===void 0?!0:$,Pe=C.domRef,Ae=(0,n.Z)(C,et),qe="".concat(G,"-input"),Fe=e.useRef(null),at=e.useState(!1),Ct=(0,F.Z)(at,2),bt=Ct[0],vt=Ct[1],zt=e.useRef(!1),Kt=e.useRef(!1),Rt=e.useRef(!1),ue=e.useState(function(){return ee(ke!=null?ke:mt)}),Re=(0,F.Z)(ue,2),Ze=Re[0],Ye=Re[1];function _e(It){ke===void 0&&Ye(It)}var nt=e.useCallback(function(It,wt){if(!wt)return pn>=0?pn:Math.max(se(It),se(tt))},[pn,tt]),ft=e.useCallback(function(It){var wt=String(It);if(Bt)return Bt(wt);var kt=wt;return en&&(kt=kt.replace(en,".")),kt.replace(/[^\w.-]+/g,"")},[Bt,en]),Ot=e.useRef(""),Dt=e.useCallback(function(It,wt){if(mn)return mn(It,{userTyping:wt,input:String(Ot.current)});var kt=typeof It=="number"?Se(It):It;if(!wt){var nn=nt(kt,wt);if(h(kt)&&(en||nn>=0)){var Tn=en||".";kt=Y(kt,Tn,nn)}}return kt},[mn,nt,en]),Ft=e.useState(function(){var It=mt!=null?mt:ke;return Ze.isInvalidate()&&["string","number"].includes((0,D.Z)(It))?Number.isNaN(It)?"":It:Dt(Ze.toString(),!1)}),Xt=(0,F.Z)(Ft,2),Tt=Xt[0],Zt=Xt[1];Ot.current=Tt;function jt(It,wt){Zt(Dt(It.isInvalidate()?It.toString(!1):It.toString(!wt),wt))}var Qt=e.useMemo(function(){return he(ut)},[ut,pn]),an=e.useMemo(function(){return he(Ke)},[Ke,pn]),$t=e.useMemo(function(){return!Qt||!Ze||Ze.isInvalidate()?!1:Qt.lessEquals(Ze)},[Qt,Ze]),Vt=e.useMemo(function(){return!an||!Ze||Ze.isInvalidate()?!1:Ze.lessEquals(an)},[an,Ze]),En=re(Fe.current,bt),un=(0,F.Z)(En,2),sn=un[0],bn=un[1],Wt=function(wt){return Qt&&!wt.lessEquals(Qt)?Qt:an&&!an.lessEquals(wt)?an:null},Jt=function(wt){return!Wt(wt)},Pn=function(wt,kt){var nn=wt,Tn=Jt(nn)||nn.isEmpty();if(!nn.isEmpty()&&!kt&&(nn=Wt(nn)||nn,Tn=!0),!ot&&!rt&&Tn){var Rn=nn.toString(),kn=nt(Rn,kt);return kn>=0&&(nn=ee(Y(Rn,".",kn)),Jt(nn)||(nn=ee(Y(Rn,".",kn,!0)))),nn.equals(Ze)||(_e(nn),b==null||b(nn.isEmpty()?null:we(vn,nn)),ke===void 0&&jt(nn,kt)),nn}return Ze},Dn=me(),Un=function It(wt){if(sn(),Ot.current=wt,Zt(wt),!Kt.current){var kt=ft(wt),nn=ee(kt);nn.isNaN()||Pn(nn,!0)}O==null||O(wt),Dn(function(){var Tn=wt;Bt||(Tn=wt.replace(/。/g,".")),Tn!==wt&&It(Tn)})},Mn=function(){Kt.current=!0},Vn=function(){Kt.current=!1,Un(Fe.current.value)},Jn=function(wt){Un(wt.target.value)},rr=function(wt){var kt;if(!(wt&&$t||!wt&&Vt)){zt.current=!1;var nn=ee(Rt.current?ne(tt):tt);wt||(nn=nn.negate());var Tn=(Ze||ee(0)).add(nn.toString()),Rn=Pn(Tn,!1);R==null||R(we(vn,Rn),{offset:Rt.current?ne(tt):tt,type:wt?"up":"down"}),(kt=Fe.current)===null||kt===void 0||kt.focus()}},ar=function(wt){var kt=ee(ft(Tt)),nn;kt.isNaN()?nn=Pn(Ze,wt):nn=Pn(kt,wt),ke!==void 0?jt(Ze,!1):nn.isNaN()||jt(nn,!1)},qn=function(){zt.current=!0},Lt=function(wt){var kt=wt.key,nn=wt.shiftKey;zt.current=!0,Rt.current=nn,kt==="Enter"&&(Kt.current||(zt.current=!1),ar(!1),it==null||it(wt)),Pt!==!1&&!Kt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(kt)&&(rr(kt==="Up"||kt==="ArrowUp"),wt.preventDefault())},yt=function(){zt.current=!1,Rt.current=!1};e.useEffect(function(){if(Gt&&bt){var It=function(nn){rr(nn.deltaY<0),nn.preventDefault()},wt=Fe.current;if(wt)return wt.addEventListener("wheel",It,{passive:!1}),function(){return wt.removeEventListener("wheel",It)}}});var Et=function(){He&&ar(!1),vt(!1),zt.current=!1};return(0,Ve.o)(function(){Ze.isInvalidate()||jt(Ze,!1)},[pn,mn]),(0,Ve.o)(function(){var It=ee(ke);Ye(It);var wt=ee(ft(Tt));(!It.equals(wt)||!zt.current||mn)&&jt(It,zt.current)},[ke]),(0,Ve.o)(function(){mn&&bn()},[Tt]),e.createElement("div",{ref:Pe,className:N()(G,ve,(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(G,"-focused"),bt),"".concat(G,"-disabled"),rt),"".concat(G,"-readonly"),ot),"".concat(G,"-not-a-number"),Ze.isNaN()),"".concat(G,"-out-of-range"),!Ze.isInvalidate()&&!Jt(Ze))),style:ze,onFocus:function(){vt(!0)},onBlur:Et,onKeyDown:Lt,onKeyUp:yt,onCompositionStart:Mn,onCompositionEnd:Vn,onBeforeInput:qn},Ht&&e.createElement(T,{prefixCls:G,upNode:xt,downNode:gt,upDisabled:$t,downDisabled:Vt,onStep:rr}),e.createElement("div",{className:"".concat(qe,"-wrap")},e.createElement("input",(0,P.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Ke,"aria-valuemax":ut,"aria-valuenow":Ze.isInvalidate()?null:Ze.toString(),step:tt},Ae,{ref:(0,ae.sQ)(Fe,k),className:qe,value:Tt,onChange:Jn,disabled:rt,readOnly:ot}))))}),B=e.forwardRef(function(C,k){var G=C.disabled,ve=C.style,ze=C.prefixCls,Ke=ze===void 0?"rc-input-number":ze,ut=C.value,pt=C.prefix,tt=C.suffix,mt=C.addonBefore,ke=C.addonAfter,rt=C.className,ot=C.classNames,xt=(0,n.Z)(C,W),gt=e.useRef(null),Pt=e.useRef(null),Mt=e.useRef(null),Gt=function(Ht){Mt.current&&(0,q.nH)(Mt.current,Ht)};return e.useImperativeHandle(k,function(){return Ee(Mt.current,{focus:Gt,nativeElement:gt.current.nativeElement||Pt.current})}),e.createElement(_.BaseInput,{className:rt,triggerFocus:Gt,prefixCls:Ke,value:ut,disabled:G,style:ve,prefix:pt,suffix:tt,addonAfter:ke,addonBefore:mt,classNames:ot,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:gt},e.createElement(Xe,(0,P.Z)({prefixCls:Ke,disabled:G,ref:Mt,domRef:Pt,className:ot==null?void 0:ot.input},xt)))}),Oe=B,ye=Oe,ct=t(62487),Le=t(82855),oe=t(48755),Z=t(60840),H=t(2171),f=t(83397),ce=t(31756),A=t(56553),r=t(24971),u=t(70045),V=t(36237),K=t(53075),y=t(64910),z=t(39082),L=t(63356),J=t(56119),l=t(16931),v=t(51636),Me=t(17835);const de=C=>{var k;const G=(k=C.handleVisible)!==null&&k!==void 0?k:"auto",ve=C.controlHeightSM-C.lineWidth*2;return Object.assign(Object.assign({},(0,y.T)(C)),{controlWidth:90,handleWidth:ve,handleFontSize:C.fontSize/2,handleVisible:G,handleActiveBg:C.colorFillAlter,handleBg:C.colorBgContainer,filledHandleBg:new Me.FastColor(C.colorFillSecondary).onBackground(C.colorBgContainer).toHexString(),handleHoverColor:C.colorPrimary,handleBorderColor:C.colorBorder,handleOpacity:G===!0?1:0,handleVisibleWidth:G===!0?ve:0})},Ie=(C,k)=>{let{componentCls:G,borderRadiusSM:ve,borderRadiusLG:ze}=C;const Ke=k==="lg"?ze:ve;return{[`&-${k}`]:{[`${G}-handler-wrap`]:{borderStartEndRadius:Ke,borderEndEndRadius:Ke},[`${G}-handler-up`]:{borderStartEndRadius:Ke},[`${G}-handler-down`]:{borderEndEndRadius:Ke}}}},Be=C=>{const{componentCls:k,lineWidth:G,lineType:ve,borderRadius:ze,inputFontSizeSM:Ke,inputFontSizeLG:ut,controlHeightLG:pt,controlHeightSM:tt,colorError:mt,paddingInlineSM:ke,paddingBlockSM:rt,paddingBlockLG:ot,paddingInlineLG:xt,colorTextDescription:gt,motionDurationMid:Pt,handleHoverColor:Mt,handleOpacity:Gt,paddingInline:rn,paddingBlock:Ht,handleBg:At,handleActiveBg:vn,colorTextDisabled:Bt,borderRadiusSM:mn,borderRadiusLG:pn,controlWidth:en,handleBorderColor:b,filledHandleBg:O,lineHeightLG:it,calc:R}=C;return[{[k]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,L.Wf)(C)),(0,K.ik)(C)),{display:"inline-block",width:en,margin:0,padding:0,borderRadius:ze}),(0,z.qG)(C,{[`${k}-handler-wrap`]:{background:At,[`${k}-handler-down`]:{borderBlockStart:`${(0,V.unit)(G)} ${ve} ${b}`}}})),(0,z.H8)(C,{[`${k}-handler-wrap`]:{background:O,[`${k}-handler-down`]:{borderBlockStart:`${(0,V.unit)(G)} ${ve} ${b}`}},"&:focus-within":{[`${k}-handler-wrap`]:{background:At}}})),(0,z.vc)(C,{[`${k}-handler-wrap`]:{background:At,[`${k}-handler-down`]:{borderBlockStart:`${(0,V.unit)(G)} ${ve} ${b}`}}})),(0,z.Mu)(C)),{"&-rtl":{direction:"rtl",[`${k}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ut,lineHeight:it,borderRadius:pn,[`input${k}-input`]:{height:R(pt).sub(R(G).mul(2)).equal(),padding:`${(0,V.unit)(ot)} ${(0,V.unit)(xt)}`}},"&-sm":{padding:0,fontSize:Ke,borderRadius:mn,[`input${k}-input`]:{height:R(tt).sub(R(G).mul(2)).equal(),padding:`${(0,V.unit)(rt)} ${(0,V.unit)(ke)}`}},"&-out-of-range":{[`${k}-input-wrap`]:{input:{color:mt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,L.Wf)(C)),(0,K.s7)(C)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${k}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${k}-group-addon`]:{borderRadius:pn,fontSize:C.fontSizeLG}},"&-sm":{[`${k}-group-addon`]:{borderRadius:mn}}},(0,z.ir)(C)),(0,z.S5)(C)),{[`&:not(${k}-compact-first-item):not(${k}-compact-last-item)${k}-compact-item`]:{[`${k}, ${k}-group-addon`]:{borderRadius:0}},[`&:not(${k}-compact-last-item)${k}-compact-first-item`]:{[`${k}, ${k}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${k}-compact-first-item)${k}-compact-last-item`]:{[`${k}, ${k}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${k}-input`]:{cursor:"not-allowed"},[k]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,L.Wf)(C)),{width:"100%",padding:`${(0,V.unit)(Ht)} ${(0,V.unit)(rn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ze,outline:0,transition:`all ${Pt} linear`,appearance:"textfield",fontSize:"inherit"}),(0,K.nz)(C.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${k}-handler-wrap, &-focused ${k}-handler-wrap`]:{width:C.handleWidth,opacity:1}})},{[k]:Object.assign(Object.assign(Object.assign({[`${k}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:C.handleVisibleWidth,opacity:Gt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:ze,borderEndEndRadius:ze,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Pt}`,overflow:"hidden",[`${k}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${k}-handler-up-inner, + ${k}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:C.handleFontSize}}},[`${k}-handler`]:{height:"50%",overflow:"hidden",color:gt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,V.unit)(G)} ${ve} ${b}`,transition:`all ${Pt} linear`,"&:active":{background:vn},"&:hover":{height:"60%",[` + ${k}-handler-up-inner, + ${k}-handler-down-inner + `]:{color:Mt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,L.Ro)()),{color:gt,transition:`all ${Pt} linear`,userSelect:"none"})},[`${k}-handler-up`]:{borderStartEndRadius:ze},[`${k}-handler-down`]:{borderEndEndRadius:ze}},Ie(C,"lg")),Ie(C,"sm")),{"&-disabled, &-readonly":{[`${k}-handler-wrap`]:{display:"none"},[`${k}-input`]:{color:"inherit"}},[` + ${k}-handler-up-disabled, + ${k}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${k}-handler-up-disabled:hover &-handler-up-inner, + ${k}-handler-down-disabled:hover &-handler-down-inner + `]:{color:Bt}})}]},Te=C=>{const{componentCls:k,paddingBlock:G,paddingInline:ve,inputAffixPadding:ze,controlWidth:Ke,borderRadiusLG:ut,borderRadiusSM:pt,paddingInlineLG:tt,paddingInlineSM:mt,paddingBlockLG:ke,paddingBlockSM:rt,motionDurationMid:ot}=C;return{[`${k}-affix-wrapper`]:Object.assign(Object.assign({[`input${k}-input`]:{padding:`${(0,V.unit)(G)} 0`}},(0,K.ik)(C)),{position:"relative",display:"inline-flex",alignItems:"center",width:Ke,padding:0,paddingInlineStart:ve,"&-lg":{borderRadius:ut,paddingInlineStart:tt,[`input${k}-input`]:{padding:`${(0,V.unit)(ke)} 0`}},"&-sm":{borderRadius:pt,paddingInlineStart:mt,[`input${k}-input`]:{padding:`${(0,V.unit)(rt)} 0`}},[`&:not(${k}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${k}-disabled`]:{background:"transparent"},[`> div${k}`]:{width:"100%",border:"none",outline:"none",[`&${k}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${k}-handler-wrap`]:{zIndex:2},[k]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ze},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:ve,marginInlineStart:ze,transition:`margin ${ot}`}},[`&:hover ${k}-handler-wrap, &-focused ${k}-handler-wrap`]:{width:C.handleWidth,opacity:1},[`&:not(${k}-affix-wrapper-without-controls):hover ${k}-suffix`]:{marginInlineEnd:C.calc(C.handleWidth).add(ve).equal()}})}};var Ue=(0,l.I$)("InputNumber",C=>{const k=(0,v.mergeToken)(C,(0,y.e)(C));return[Be(k),Te(k),(0,J.c)(k)]},de,{unitless:{handleOpacity:!0}}),je=function(C,k){var G={};for(var ve in C)Object.prototype.hasOwnProperty.call(C,ve)&&k.indexOf(ve)<0&&(G[ve]=C[ve]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ve=Object.getOwnPropertySymbols(C);ze{const{getPrefixCls:G,direction:ve}=e.useContext(oe.E_),ze=e.useRef(null);e.useImperativeHandle(k,()=>ze.current);const{className:Ke,rootClassName:ut,size:pt,disabled:tt,prefixCls:mt,addonBefore:ke,addonAfter:rt,prefix:ot,suffix:xt,bordered:gt,readOnly:Pt,status:Mt,controls:Gt,variant:rn}=C,Ht=je(C,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),At=G("input-number",mt),vn=(0,f.Z)(At),[Bt,mn,pn]=Ue(At,vn),{compactSize:en,compactItemClassnames:b}=(0,u.ri)(At,ve);let O=e.createElement(p.Z,{className:`${At}-handler-up-inner`}),it=e.createElement(m.Z,{className:`${At}-handler-down-inner`});const R=typeof Gt=="boolean"?Gt:void 0;typeof Gt=="object"&&(O=typeof Gt.upIcon=="undefined"?O:e.createElement("span",{className:`${At}-handler-up-inner`},Gt.upIcon),it=typeof Gt.downIcon=="undefined"?it:e.createElement("span",{className:`${At}-handler-down-inner`},Gt.downIcon));const{hasFeedback:$,status:He,isFormItemInput:Pe,feedbackIcon:Ae}=e.useContext(A.aM),qe=(0,Le.F)(He,Mt),Fe=(0,ce.Z)(Re=>{var Ze;return(Ze=pt!=null?pt:en)!==null&&Ze!==void 0?Ze:Re}),at=e.useContext(H.Z),Ct=tt!=null?tt:at,[bt,vt]=(0,r.Z)("inputNumber",rn,gt),zt=$&&e.createElement(e.Fragment,null,Ae),Kt=N()({[`${At}-lg`]:Fe==="large",[`${At}-sm`]:Fe==="small",[`${At}-rtl`]:ve==="rtl",[`${At}-in-form-item`]:Pe},mn),Rt=`${At}-group`,ue=e.createElement(ye,Object.assign({ref:ze,disabled:Ct,className:N()(pn,vn,Ke,ut,b),upHandler:O,downHandler:it,prefixCls:At,readOnly:Pt,controls:R,prefix:ot,suffix:zt||xt,addonBefore:ke&&e.createElement(ct.Z,{form:!0,space:!0},ke),addonAfter:rt&&e.createElement(ct.Z,{form:!0,space:!0},rt),classNames:{input:Kt,variant:N()({[`${At}-${bt}`]:vt},(0,Le.Z)(At,qe,$)),affixWrapper:N()({[`${At}-affix-wrapper-sm`]:Fe==="small",[`${At}-affix-wrapper-lg`]:Fe==="large",[`${At}-affix-wrapper-rtl`]:ve==="rtl",[`${At}-affix-wrapper-without-controls`]:Gt===!1||Ct},mn),wrapper:N()({[`${Rt}-rtl`]:ve==="rtl"},mn),groupWrapper:N()({[`${At}-group-wrapper-sm`]:Fe==="small",[`${At}-group-wrapper-lg`]:Fe==="large",[`${At}-group-wrapper-rtl`]:ve==="rtl",[`${At}-group-wrapper-${bt}`]:vt},(0,Le.Z)(`${At}-group-wrapper`,qe,$),mn)}},Ht));return Bt(ue)}),te=x,Ce=C=>e.createElement(Z.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},e.createElement(x,Object.assign({},C)));te._InternalPanelDoNotUseOrYouWillBeFired=Ce;var De=te},49397:function(Yt,Ge,t){t.d(Ge,{Z:function(){return s}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(36901),N=t(8654),P=t(62487),g=t(86013),D=t(82855),F=t(48755),n=t(2171),X=t(83397),w=t(31756),I=t(56553),xe=t(24971),Ne=t(70045),pe=t(23826),se=t(53075);function Se(d){return!!(d.prefix||d.suffix||d.allowClear||d.showCount)}var h=function(d,Y){var ee={};for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&Y.indexOf(_)<0&&(ee[_]=d[_]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,_=Object.getOwnPropertySymbols(d);Ve<_.length;Ve++)Y.indexOf(_[Ve])<0&&Object.prototype.propertyIsEnumerable.call(d,_[Ve])&&(ee[_[Ve]]=d[_[Ve]]);return ee},s=(0,e.forwardRef)((d,Y)=>{const{prefixCls:ee,bordered:_=!0,status:Ve,size:Ee,disabled:ae,onBlur:ge,onFocus:re,suffix:S,allowClear:i,addonAfter:le,addonBefore:M,className:U,style:c,styles:T,rootClassName:ne,onChange:q,classNames:me,variant:et}=d,W=h(d,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:we,direction:he,allowClear:Xe,autoComplete:B,className:Oe,style:ye,classNames:ct,styles:Le}=(0,F.dj)("input"),oe=we("input",ee),Z=(0,e.useRef)(null),H=(0,X.Z)(oe),[f,ce,A]=(0,se.TI)(oe,ne),[r]=(0,se.ZP)(oe,H),{compactSize:u,compactItemClassnames:V}=(0,Ne.ri)(oe,he),K=(0,w.Z)(De=>{var C;return(C=Ee!=null?Ee:u)!==null&&C!==void 0?C:De}),y=e.useContext(n.Z),z=ae!=null?ae:y,{status:L,hasFeedback:J,feedbackIcon:l}=(0,e.useContext)(I.aM),v=(0,D.F)(L,Ve),Me=Se(d)||!!J,de=(0,e.useRef)(Me),Ie=(0,pe.Z)(Z,!0),Be=De=>{Ie(),ge==null||ge(De)},Te=De=>{Ie(),re==null||re(De)},Ue=De=>{Ie(),q==null||q(De)},je=(J||S)&&e.createElement(e.Fragment,null,S,J&&l),x=(0,g.Z)(i!=null?i:Xe),[te,Ce]=(0,xe.Z)("input",et,_);return f(r(e.createElement(Q.default,Object.assign({ref:(0,N.sQ)(Y,Z),prefixCls:oe,autoComplete:B},W,{disabled:z,onBlur:Be,onFocus:Te,style:Object.assign(Object.assign({},ye),c),styles:Object.assign(Object.assign({},Le),T),suffix:je,allowClear:x,className:p()(U,ne,A,H,V,Oe),onChange:Ue,addonBefore:M&&e.createElement(P.Z,{form:!0,space:!0},M),addonAfter:le&&e.createElement(P.Z,{form:!0,space:!0},le),classNames:Object.assign(Object.assign(Object.assign({},me),ct),{input:p()({[`${oe}-sm`]:K==="small",[`${oe}-lg`]:K==="large",[`${oe}-rtl`]:he==="rtl"},me==null?void 0:me.input,ct.input,ce),variant:p()({[`${oe}-${te}`]:Ce},(0,D.Z)(oe,v)),affixWrapper:p()({[`${oe}-affix-wrapper-sm`]:K==="small",[`${oe}-affix-wrapper-lg`]:K==="large",[`${oe}-affix-wrapper-rtl`]:he==="rtl"},ce),wrapper:p()({[`${oe}-group-rtl`]:he==="rtl"},ce),groupWrapper:p()({[`${oe}-group-wrapper-sm`]:K==="small",[`${oe}-group-wrapper-lg`]:K==="large",[`${oe}-group-wrapper-rtl`]:he==="rtl",[`${oe}-group-wrapper-${te}`]:Ce},(0,D.Z)(`${oe}-group-wrapper`,v,J),ce)})}))))})},79809:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Y}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(22711),N=t(86013),P=t(82855),g=t(48755),D=t(2171),F=t(83397),n=t(31756),X=t(56553),w=t(24971),I=t(70045),xe=t(30292),Ne=t(53075),pe=t(16931),se=t(51636),Se=t(64910);const h=ee=>{const{componentCls:_,paddingLG:Ve}=ee,Ee=`${_}-textarea`;return{[`textarea${_}`]:{maxWidth:"100%",height:"auto",minHeight:ee.controlHeight,lineHeight:ee.lineHeight,verticalAlign:"bottom",transition:`all ${ee.motionDurationSlow}`,resize:"vertical",[`&${_}-mouse-active`]:{transition:`all ${ee.motionDurationSlow}, height 0s, width 0s`}},[`${_}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ee]:{position:"relative","&-show-count":{[`> ${_}`]:{height:"100%"},[`${_}-data-count`]:{position:"absolute",bottom:ee.calc(ee.fontSize).mul(ee.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ee.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + &-allow-clear > ${_}, + &-affix-wrapper${Ee}-has-feedback ${_} + `]:{paddingInlineEnd:Ve},[`&-affix-wrapper${_}-affix-wrapper`]:{padding:0,[`> textarea${_}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ee.calc(ee.controlHeight).sub(ee.calc(ee.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${_}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${_}-clear-icon`]:{position:"absolute",insetInlineEnd:ee.paddingInline,insetBlockStart:ee.paddingXS},[`${Ee}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ee.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${_}-affix-wrapper-sm`]:{[`${_}-suffix`]:{[`${_}-clear-icon`]:{insetInlineEnd:ee.paddingInlineSM}}}}}};var fe=(0,pe.I$)(["Input","TextArea"],ee=>{const _=(0,se.mergeToken)(ee,(0,Se.e)(ee));return[h(_)]},Se.T,{resetFont:!1}),s=function(ee,_){var Ve={};for(var Ee in ee)Object.prototype.hasOwnProperty.call(ee,Ee)&&_.indexOf(Ee)<0&&(Ve[Ee]=ee[Ee]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Ee=Object.getOwnPropertySymbols(ee);ae{var Ve;const{prefixCls:Ee,bordered:ae=!0,size:ge,disabled:re,status:S,allowClear:i,classNames:le,rootClassName:M,className:U,style:c,styles:T,variant:ne,showCount:q,onMouseDown:me,onResize:et}=ee,W=s(ee,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:we,direction:he,allowClear:Xe,autoComplete:B,className:Oe,style:ye,classNames:ct,styles:Le}=(0,g.dj)("textArea"),oe=e.useContext(D.Z),Z=re!=null?re:oe,{status:H,hasFeedback:f,feedbackIcon:ce}=e.useContext(X.aM),A=(0,P.F)(H,S),r=e.useRef(null);e.useImperativeHandle(_,()=>{var Ce;return{resizableTextArea:(Ce=r.current)===null||Ce===void 0?void 0:Ce.resizableTextArea,focus:De=>{var C,k;(0,xe.nH)((k=(C=r.current)===null||C===void 0?void 0:C.resizableTextArea)===null||k===void 0?void 0:k.textArea,De)},blur:()=>{var De;return(De=r.current)===null||De===void 0?void 0:De.blur()}}});const u=we("input",Ee),V=(0,F.Z)(u),[K,y,z]=(0,Ne.TI)(u,M),[L]=fe(u,V),{compactSize:J,compactItemClassnames:l}=(0,I.ri)(u,he),v=(0,n.Z)(Ce=>{var De;return(De=ge!=null?ge:J)!==null&&De!==void 0?De:Ce}),[Me,de]=(0,w.Z)("textArea",ne,ae),Ie=(0,N.Z)(i!=null?i:Xe),[Be,Te]=e.useState(!1),[Ue,je]=e.useState(!1),x=Ce=>{Te(!0),me==null||me(Ce);const De=()=>{Te(!1),document.removeEventListener("mouseup",De)};document.addEventListener("mouseup",De)},te=Ce=>{var De,C;if(et==null||et(Ce),Be&&typeof getComputedStyle=="function"){const k=(C=(De=r.current)===null||De===void 0?void 0:De.nativeElement)===null||C===void 0?void 0:C.querySelector("textarea");k&&getComputedStyle(k).resize==="both"&&je(!0)}};return K(L(e.createElement(Q.default,Object.assign({autoComplete:B},W,{style:Object.assign(Object.assign({},ye),c),styles:Object.assign(Object.assign({},Le),T),disabled:Z,allowClear:Ie,className:p()(z,V,U,M,l,Oe,Ue&&`${u}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},le),ct),{textarea:p()({[`${u}-sm`]:v==="small",[`${u}-lg`]:v==="large"},y,le==null?void 0:le.textarea,ct.textarea,Be&&`${u}-mouse-active`),variant:p()({[`${u}-${Me}`]:de},(0,P.Z)(u,A)),affixWrapper:p()(`${u}-textarea-affix-wrapper`,{[`${u}-affix-wrapper-rtl`]:he==="rtl",[`${u}-affix-wrapper-sm`]:v==="small",[`${u}-affix-wrapper-lg`]:v==="large",[`${u}-textarea-show-count`]:q||((Ve=ee.count)===null||Ve===void 0?void 0:Ve.show)},y)}),prefixCls:u,suffix:f&&e.createElement("span",{className:`${u}-textarea-suffix`},ce),showCount:q,ref:r,onResize:te,onMouseDown:x}))))})},23826:function(Yt,Ge,t){t.d(Ge,{Z:function(){return m}});var e=t(59301);function m(p,Q){const N=(0,e.useRef)([]),P=()=>{N.current.push(setTimeout(()=>{var g,D,F,n;!((g=p.current)===null||g===void 0)&&g.input&&((D=p.current)===null||D===void 0?void 0:D.input.getAttribute("type"))==="password"&&(!((F=p.current)===null||F===void 0)&&F.input.hasAttribute("value"))&&((n=p.current)===null||n===void 0||n.input.removeAttribute("value"))}))};return(0,e.useEffect)(()=>(Q&&P(),()=>N.current.forEach(g=>{g&&clearTimeout(g)})),[]),P}},37568:function(Yt,Ge,t){t.d(Ge,{default:function(){return ct}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(48755),N=t(56553),P=t(53075),D=Le=>{const{getPrefixCls:oe,direction:Z}=(0,e.useContext)(Q.E_),{prefixCls:H,className:f}=Le,ce=oe("input-group",H),A=oe("input"),[r,u,V]=(0,P.ZP)(A),K=p()(ce,V,{[`${ce}-lg`]:Le.size==="large",[`${ce}-sm`]:Le.size==="small",[`${ce}-compact`]:Le.compact,[`${ce}-rtl`]:Z==="rtl"},u,f),y=(0,e.useContext)(N.aM),z=(0,e.useMemo)(()=>Object.assign(Object.assign({},y),{isFormItemInput:!1}),[y]);return r(e.createElement("span",{className:K,style:Le.style,onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onFocus:Le.onFocus,onBlur:Le.onBlur},e.createElement(N.aM.Provider,{value:z},Le.children)))},F=t(49397),n=t(94480),X=t(6089),w=t(26112),I=t(82855),xe=t(31756),Ne=t(16931),pe=t(51636),se=t(64910);const Se=Le=>{const{componentCls:oe,paddingXS:Z}=Le;return{[oe]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Z,"&-rtl":{direction:"rtl"},[`${oe}-input`]:{textAlign:"center",paddingInline:Le.paddingXXS},[`&${oe}-sm ${oe}-input`]:{paddingInline:Le.calc(Le.paddingXXS).div(2).equal()},[`&${oe}-lg ${oe}-input`]:{paddingInline:Le.paddingXS}}}};var h=(0,Ne.I$)(["Input","OTP"],Le=>{const oe=(0,pe.mergeToken)(Le,(0,se.e)(Le));return[Se(oe)]},se.T),fe=t(16089),s=function(Le,oe){var Z={};for(var H in Le)Object.prototype.hasOwnProperty.call(Le,H)&&oe.indexOf(H)<0&&(Z[H]=Le[H]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,H=Object.getOwnPropertySymbols(Le);f{const{value:Z,onChange:H,onActiveChange:f,index:ce,mask:A}=Le,r=s(Le,["value","onChange","onActiveChange","index","mask"]),u=Z&&typeof A=="string"?A:Z,V=J=>{H(ce,J.target.value)},K=e.useRef(null);e.useImperativeHandle(oe,()=>K.current);const y=()=>{(0,fe.Z)(()=>{var J;const l=(J=K.current)===null||J===void 0?void 0:J.input;document.activeElement===l&&l&&l.select()})},z=J=>{const{key:l,ctrlKey:v,metaKey:Me}=J;l==="ArrowLeft"?f(ce-1):l==="ArrowRight"?f(ce+1):l==="z"&&(v||Me)&&J.preventDefault(),y()},L=J=>{J.key==="Backspace"&&!Z&&f(ce-1),y()};return e.createElement(F.Z,Object.assign({type:A===!0?"password":"text"},r,{ref:K,value:u,onInput:V,onFocus:y,onKeyDown:z,onKeyUp:L,onMouseDown:y,onMouseUp:y}))}),ee=function(Le,oe){var Z={};for(var H in Le)Object.prototype.hasOwnProperty.call(Le,H)&&oe.indexOf(H)<0&&(Z[H]=Le[H]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,H=Object.getOwnPropertySymbols(Le);f{const{index:oe,prefixCls:Z,separator:H}=Le,f=typeof H=="function"?H(oe):H;return f?e.createElement("span",{className:`${Z}-separator`},f):null};var ae=e.forwardRef((Le,oe)=>{const{prefixCls:Z,length:H=6,size:f,defaultValue:ce,value:A,onChange:r,formatter:u,separator:V,variant:K,disabled:y,status:z,autoFocus:L,mask:J,type:l,onInput:v,inputMode:Me}=Le,de=ee(Le,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Ie,direction:Be}=e.useContext(Q.E_),Te=Ie("otp",Z),Ue=(0,w.Z)(de,{aria:!0,data:!0,attr:!0}),[je,x,te]=h(Te),Ce=(0,xe.Z)(ot=>f!=null?f:ot),De=e.useContext(N.aM),C=(0,I.F)(De.status,z),k=e.useMemo(()=>Object.assign(Object.assign({},De),{status:C,hasFeedback:!1,feedbackIcon:null}),[De,C]),G=e.useRef(null),ve=e.useRef({});e.useImperativeHandle(oe,()=>({focus:()=>{var ot;(ot=ve.current[0])===null||ot===void 0||ot.focus()},blur:()=>{var ot;for(let xt=0;xtu?u(ot):ot,[Ke,ut]=e.useState(()=>_(ze(ce||"")));e.useEffect(()=>{A!==void 0&&ut(_(A))},[A]);const pt=(0,X.Z)(ot=>{ut(ot),v&&v(ot),r&&ot.length===H&&ot.every(xt=>xt)&&ot.some((xt,gt)=>Ke[gt]!==xt)&&r(ot.join(""))}),tt=(0,X.Z)((ot,xt)=>{let gt=(0,n.Z)(Ke);for(let Mt=0;Mt=0&&!gt[Mt];Mt-=1)gt.pop();const Pt=ze(gt.map(Mt=>Mt||" ").join(""));return gt=_(Pt).map((Mt,Gt)=>Mt===" "&&!gt[Gt]?gt[Gt]:Mt),gt}),mt=(ot,xt)=>{var gt;const Pt=tt(ot,xt),Mt=Math.min(ot+xt.length,H-1);Mt!==ot&&Pt[ot]!==void 0&&((gt=ve.current[Mt])===null||gt===void 0||gt.focus()),pt(Pt)},ke=ot=>{var xt;(xt=ve.current[ot])===null||xt===void 0||xt.focus()},rt={variant:K,disabled:y,status:C,mask:J,type:l,inputMode:Me};return je(e.createElement("div",Object.assign({},Ue,{ref:G,className:p()(Te,{[`${Te}-sm`]:Ce==="small",[`${Te}-lg`]:Ce==="large",[`${Te}-rtl`]:Be==="rtl"},te,x)}),e.createElement(N.aM.Provider,{value:k},Array.from({length:H}).map((ot,xt)=>{const gt=`otp-${xt}`,Pt=Ke[xt]||"";return e.createElement(e.Fragment,{key:gt},e.createElement(Y,Object.assign({ref:Mt=>{ve.current[xt]=Mt},index:xt,size:Ce,htmlSize:1,className:`${Te}-input`,onChange:mt,value:Pt,onActiveChange:ke,autoFocus:xt===0&&L},rt)),xtLe?e.createElement(re.Z,null):e.createElement(ge.Z,null),T={click:"onClick",hover:"onMouseOver"};var q=e.forwardRef((Le,oe)=>{const{disabled:Z,action:H="click",visibilityToggle:f=!0,iconRender:ce=c}=Le,A=e.useContext(le.Z),r=Z!=null?Z:A,u=typeof f=="object"&&f.visible!==void 0,[V,K]=(0,e.useState)(()=>u?f.visible:!1),y=(0,e.useRef)(null);e.useEffect(()=>{u&&K(f.visible)},[u,f]);const z=(0,M.Z)(y),L=()=>{var Ce;if(r)return;V&&z();const De=!V;K(De),typeof f=="object"&&((Ce=f.onVisibleChange)===null||Ce===void 0||Ce.call(f,De))},J=Ce=>{const De=T[H]||"",C=ce(V),k={[De]:L,className:`${Ce}-icon`,key:"passwordIcon",onMouseDown:G=>{G.preventDefault()},onMouseUp:G=>{G.preventDefault()}};return e.cloneElement(e.isValidElement(C)?C:e.createElement("span",null,C),k)},{className:l,prefixCls:v,inputPrefixCls:Me,size:de}=Le,Ie=U(Le,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Be}=e.useContext(Q.E_),Te=Be("input",Me),Ue=Be("input-password",v),je=f&&J(Ue),x=p()(Ue,l,{[`${Ue}-${de}`]:!!de}),te=Object.assign(Object.assign({},(0,S.Z)(Ie,["suffix","iconRender","visibilityToggle"])),{type:V?"text":"password",className:x,prefixCls:Te,suffix:je});return de&&(te.size=de),e.createElement(F.Z,Object.assign({ref:(0,i.sQ)(oe,y)},te))}),me=t(47472),et=t(22703),W=t(7939),we=t(70045),he=function(Le,oe){var Z={};for(var H in Le)Object.prototype.hasOwnProperty.call(Le,H)&&oe.indexOf(H)<0&&(Z[H]=Le[H]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,H=Object.getOwnPropertySymbols(Le);f{const{prefixCls:Z,inputPrefixCls:H,className:f,size:ce,suffix:A,enterButton:r=!1,addonAfter:u,loading:V,disabled:K,onSearch:y,onChange:z,onCompositionStart:L,onCompositionEnd:J}=Le,l=he(Le,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:Me}=e.useContext(Q.E_),de=e.useRef(!1),Ie=v("input-search",Z),Be=v("input",H),{compactSize:Te}=(0,we.ri)(Ie,Me),Ue=(0,xe.Z)(mt=>{var ke;return(ke=ce!=null?ce:Te)!==null&&ke!==void 0?ke:mt}),je=e.useRef(null),x=mt=>{mt!=null&&mt.target&&mt.type==="click"&&y&&y(mt.target.value,mt,{source:"clear"}),z==null||z(mt)},te=mt=>{var ke;document.activeElement===((ke=je.current)===null||ke===void 0?void 0:ke.input)&&mt.preventDefault()},Ce=mt=>{var ke,rt;y&&y((rt=(ke=je.current)===null||ke===void 0?void 0:ke.input)===null||rt===void 0?void 0:rt.value,mt,{source:"input"})},De=mt=>{de.current||V||Ce(mt)},C=typeof r=="boolean"?e.createElement(me.Z,null):null,k=`${Ie}-button`;let G;const ve=r||{},ze=ve.type&&ve.type.__ANT_BUTTON===!0;ze||ve.type==="button"?G=(0,et.Tm)(ve,Object.assign({onMouseDown:te,onClick:mt=>{var ke,rt;(rt=(ke=ve==null?void 0:ve.props)===null||ke===void 0?void 0:ke.onClick)===null||rt===void 0||rt.call(ke,mt),Ce(mt)},key:"enterButton"},ze?{className:k,size:Ue}:{})):G=e.createElement(W.ZP,{className:k,type:r?"primary":void 0,size:Ue,disabled:K,key:"enterButton",onMouseDown:te,onClick:Ce,loading:V,icon:C},r),u&&(G=[G,(0,et.Tm)(u,{key:"addonAfter"})]);const Ke=p()(Ie,{[`${Ie}-rtl`]:Me==="rtl",[`${Ie}-${Ue}`]:!!Ue,[`${Ie}-with-button`]:!!r},f),ut=Object.assign(Object.assign({},l),{className:Ke,prefixCls:Be,type:"search"}),pt=mt=>{de.current=!0,L==null||L(mt)},tt=mt=>{de.current=!1,J==null||J(mt)};return e.createElement(F.Z,Object.assign({ref:(0,i.sQ)(je,oe),onPressEnter:De},ut,{size:Ue,onCompositionStart:pt,onCompositionEnd:tt,addonAfter:G,suffix:A,onChange:x,disabled:K}))}),Oe=t(79809);const ye=F.Z;ye.Group=D,ye.Search=B,ye.TextArea=Oe.Z,ye.Password=q,ye.OTP=ae;var ct=ye},53075:function(Yt,Ge,t){t.d(Ge,{TI:function(){return fe},ik:function(){return w},nz:function(){return D},s7:function(){return I},x0:function(){return X}});var e=t(36237),m=t(63356),p=t(56119),Q=t(16931),N=t(51636),P=t(64910),g=t(39082);const D=s=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:s,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),F=s=>({borderColor:s.activeBorderColor,boxShadow:s.activeShadow,outline:0,backgroundColor:s.activeBg}),n=s=>{const{paddingBlockLG:d,lineHeightLG:Y,borderRadiusLG:ee,paddingInlineLG:_}=s;return{padding:`${(0,e.unit)(d)} ${(0,e.unit)(_)}`,fontSize:s.inputFontSizeLG,lineHeight:Y,borderRadius:ee}},X=s=>({padding:`${(0,e.unit)(s.paddingBlockSM)} ${(0,e.unit)(s.paddingInlineSM)}`,fontSize:s.inputFontSizeSM,borderRadius:s.borderRadiusSM}),w=s=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,e.unit)(s.paddingBlock)} ${(0,e.unit)(s.paddingInline)}`,color:s.colorText,fontSize:s.inputFontSize,lineHeight:s.lineHeight,borderRadius:s.borderRadius,transition:`all ${s.motionDurationMid}`},D(s.colorTextPlaceholder)),{"&-lg":Object.assign({},n(s)),"&-sm":Object.assign({},X(s)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),I=s=>{const{componentCls:d,antCls:Y}=s;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:s.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${d}, &-lg > ${d}-group-addon`]:Object.assign({},n(s)),[`&-sm ${d}, &-sm > ${d}-group-addon`]:Object.assign({},X(s)),[`&-lg ${Y}-select-single ${Y}-select-selector`]:{height:s.controlHeightLG},[`&-sm ${Y}-select-single ${Y}-select-selector`]:{height:s.controlHeightSM},[`> ${d}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${d}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,e.unit)(s.paddingInline)}`,color:s.colorText,fontWeight:"normal",fontSize:s.inputFontSize,textAlign:"center",borderRadius:s.borderRadius,transition:`all ${s.motionDurationSlow}`,lineHeight:1,[`${Y}-select`]:{margin:`${(0,e.unit)(s.calc(s.paddingBlock).add(1).mul(-1).equal())} ${(0,e.unit)(s.calc(s.paddingInline).mul(-1).equal())}`,[`&${Y}-select-single:not(${Y}-select-customize-input):not(${Y}-pagination-size-changer)`]:{[`${Y}-select-selector`]:{backgroundColor:"inherit",border:`${(0,e.unit)(s.lineWidth)} ${s.lineType} transparent`,boxShadow:"none"}}},[`${Y}-cascader-picker`]:{margin:`-9px ${(0,e.unit)(s.calc(s.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${Y}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[d]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${d}-search-with-button &`]:{zIndex:0}}},[`> ${d}:first-child, ${d}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${d}-affix-wrapper`]:{[`&:not(:first-child) ${d}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${d}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${d}:last-child, ${d}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${d}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${d}-search &`]:{borderStartStartRadius:s.borderRadius,borderEndStartRadius:s.borderRadius}},[`&:not(:first-child), ${d}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${d}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,m.dF)()),{[`${d}-group-addon, ${d}-group-wrap, > ${d}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:s.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${d}-affix-wrapper, + & > ${d}-number-affix-wrapper, + & > ${Y}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:s.calc(s.lineWidth).mul(-1).equal(),borderInlineEndWidth:s.lineWidth},[d]:{float:"none"},[`& > ${Y}-select > ${Y}-select-selector, + & > ${Y}-select-auto-complete ${d}, + & > ${Y}-cascader-picker ${d}, + & > ${d}-group-wrapper ${d}`]:{borderInlineEndWidth:s.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${Y}-select-focused`]:{zIndex:1},[`& > ${Y}-select > ${Y}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${Y}-select:first-child > ${Y}-select-selector, + & > ${Y}-select-auto-complete:first-child ${d}, + & > ${Y}-cascader-picker:first-child ${d}`]:{borderStartStartRadius:s.borderRadius,borderEndStartRadius:s.borderRadius},[`& > *:last-child, + & > ${Y}-select:last-child > ${Y}-select-selector, + & > ${Y}-cascader-picker:last-child ${d}, + & > ${Y}-cascader-picker-focused:last-child ${d}`]:{borderInlineEndWidth:s.lineWidth,borderStartEndRadius:s.borderRadius,borderEndEndRadius:s.borderRadius},[`& > ${Y}-select-auto-complete ${d}`]:{verticalAlign:"top"},[`${d}-group-wrapper + ${d}-group-wrapper`]:{marginInlineStart:s.calc(s.lineWidth).mul(-1).equal(),[`${d}-affix-wrapper`]:{borderRadius:0}},[`${d}-group-wrapper:not(:last-child)`]:{[`&${d}-search > ${d}-group`]:{[`& > ${d}-group-addon > ${d}-search-button`]:{borderRadius:0},[`& > ${d}`]:{borderStartStartRadius:s.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:s.borderRadius}}}})}},xe=s=>{const{componentCls:d,controlHeightSM:Y,lineWidth:ee,calc:_}=s,Ee=_(Y).sub(_(ee).mul(2)).sub(16).div(2).equal();return{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(s)),w(s)),(0,g.qG)(s)),(0,g.H8)(s)),(0,g.Mu)(s)),(0,g.vc)(s)),{'&[type="color"]':{height:s.controlHeight,[`&${d}-lg`]:{height:s.controlHeightLG},[`&${d}-sm`]:{height:Y,paddingTop:Ee,paddingBottom:Ee}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Ne=s=>{const{componentCls:d}=s;return{[`${d}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:s.colorTextQuaternary,fontSize:s.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${s.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:s.colorTextTertiary},"&:active":{color:s.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,e.unit)(s.inputAffixPadding)}`}}}},pe=s=>{const{componentCls:d,inputAffixPadding:Y,colorTextDescription:ee,motionDurationSlow:_,colorIcon:Ve,colorIconHover:Ee,iconCls:ae}=s,ge=`${d}-affix-wrapper`,re=`${d}-affix-wrapper-disabled`;return{[ge]:Object.assign(Object.assign(Object.assign(Object.assign({},w(s)),{display:"inline-flex",[`&:not(${d}-disabled):hover`]:{zIndex:1,[`${d}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${d}`]:{padding:0},[`> input${d}, > textarea${d}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[d]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:s.paddingXS}},"&-show-count-suffix":{color:ee},"&-show-count-has-suffix":{marginInlineEnd:s.paddingXXS},"&-prefix":{marginInlineEnd:Y},"&-suffix":{marginInlineStart:Y}}}),Ne(s)),{[`${ae}${d}-password-icon`]:{color:Ve,cursor:"pointer",transition:`all ${_}`,"&:hover":{color:Ee}}}),[`${d}-underlined`]:{borderRadius:0},[re]:{[`${ae}${d}-password-icon`]:{color:Ve,cursor:"not-allowed","&:hover":{color:Ve}}}}},se=s=>{const{componentCls:d,borderRadiusLG:Y,borderRadiusSM:ee}=s;return{[`${d}-group`]:Object.assign(Object.assign(Object.assign({},(0,m.Wf)(s)),I(s)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${d}-group-addon`]:{borderRadius:Y,fontSize:s.inputFontSizeLG}},"&-sm":{[`${d}-group-addon`]:{borderRadius:ee}}},(0,g.ir)(s)),(0,g.S5)(s)),{[`&:not(${d}-compact-first-item):not(${d}-compact-last-item)${d}-compact-item`]:{[`${d}, ${d}-group-addon`]:{borderRadius:0}},[`&:not(${d}-compact-last-item)${d}-compact-first-item`]:{[`${d}, ${d}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${d}-compact-first-item)${d}-compact-last-item`]:{[`${d}, ${d}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${d}-compact-last-item)${d}-compact-item`]:{[`${d}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${d}-compact-first-item)${d}-compact-item`]:{[`${d}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Se=s=>{const{componentCls:d,antCls:Y}=s,ee=`${d}-search`;return{[ee]:{[d]:{"&:hover, &:focus":{[`+ ${d}-group-addon ${ee}-button:not(${Y}-btn-primary)`]:{borderInlineStartColor:s.colorPrimaryHover}}},[`${d}-affix-wrapper`]:{height:s.controlHeight,borderRadius:0},[`${d}-lg`]:{lineHeight:s.calc(s.lineHeightLG).sub(2e-4).equal()},[`> ${d}-group`]:{[`> ${d}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ee}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${ee}-button:not(${Y}-btn-primary)`]:{color:s.colorTextDescription,"&:hover":{color:s.colorPrimaryHover},"&:active":{color:s.colorPrimaryActive},[`&${Y}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ee}-button`]:{height:s.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${d}-affix-wrapper, ${ee}-button`]:{height:s.controlHeightLG}},"&-small":{[`${d}-affix-wrapper, ${ee}-button`]:{height:s.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${d}-compact-item`]:{[`&:not(${d}-compact-last-item)`]:{[`${d}-group-addon`]:{[`${d}-search-button`]:{marginInlineEnd:s.calc(s.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${d}-compact-first-item)`]:{[`${d},${d}-affix-wrapper`]:{borderRadius:0}},[`> ${d}-group-addon ${d}-search-button, + > ${d}, + ${d}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${d}-affix-wrapper-focused`]:{zIndex:2}}}}},h=s=>{const{componentCls:d}=s;return{[`${d}-out-of-range`]:{[`&, & input, & textarea, ${d}-show-count-suffix, ${d}-data-count`]:{color:s.colorError}}}},fe=(0,Q.I$)(["Input","Shared"],s=>{const d=(0,N.mergeToken)(s,(0,P.e)(s));return[xe(d),pe(d)]},P.T,{resetFont:!1});Ge.ZP=(0,Q.I$)(["Input","Component"],s=>{const d=(0,N.mergeToken)(s,(0,P.e)(s));return[se(d),Se(d),h(d),(0,p.c)(d)]},P.T,{resetFont:!1})},64910:function(Yt,Ge,t){t.d(Ge,{T:function(){return p},e:function(){return m}});var e=t(51636);function m(Q){return(0,e.mergeToken)(Q,{inputAffixPadding:Q.paddingXXS})}const p=Q=>{const{controlHeight:N,fontSize:P,lineHeight:g,lineWidth:D,controlHeightSM:F,controlHeightLG:n,fontSizeLG:X,lineHeightLG:w,paddingSM:I,controlPaddingHorizontalSM:xe,controlPaddingHorizontal:Ne,colorFillAlter:pe,colorPrimaryHover:se,colorPrimary:Se,controlOutlineWidth:h,controlOutline:fe,colorErrorOutline:s,colorWarningOutline:d,colorBgContainer:Y,inputFontSize:ee,inputFontSizeLG:_,inputFontSizeSM:Ve}=Q,Ee=ee||P,ae=Ve||Ee,ge=_||X,re=Math.round((N-Ee*g)/2*10)/10-D,S=Math.round((F-ae*g)/2*10)/10-D,i=Math.ceil((n-ge*w)/2*10)/10-D;return{paddingBlock:Math.max(re,0),paddingBlockSM:Math.max(S,0),paddingBlockLG:Math.max(i,0),paddingInline:I-D,paddingInlineSM:xe-D,paddingInlineLG:Ne-D,addonBg:pe,activeBorderColor:Se,hoverBorderColor:se,activeShadow:`0 0 0 ${h}px ${fe}`,errorActiveShadow:`0 0 0 ${h}px ${s}`,warningActiveShadow:`0 0 0 ${h}px ${d}`,hoverBg:Y,activeBg:Y,inputFontSize:Ee,inputFontSizeLG:ge,inputFontSizeSM:ae}}},39082:function(Yt,Ge,t){t.d(Ge,{$U:function(){return N},H8:function(){return I},Mu:function(){return n},S5:function(){return Ne},Xy:function(){return Q},ir:function(){return F},qG:function(){return g},vc:function(){return Se}});var e=t(36237),m=t(51636);const p=h=>({borderColor:h.hoverBorderColor,backgroundColor:h.hoverBg}),Q=h=>({color:h.colorTextDisabled,backgroundColor:h.colorBgContainerDisabled,borderColor:h.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},p((0,m.mergeToken)(h,{hoverBorderColor:h.colorBorder,hoverBg:h.colorBgContainerDisabled})))}),N=(h,fe)=>({background:h.colorBgContainer,borderWidth:h.lineWidth,borderStyle:h.lineType,borderColor:fe.borderColor,"&:hover":{borderColor:fe.hoverBorderColor,backgroundColor:h.hoverBg},"&:focus, &:focus-within":{borderColor:fe.activeBorderColor,boxShadow:fe.activeShadow,outline:0,backgroundColor:h.activeBg}}),P=(h,fe)=>({[`&${h.componentCls}-status-${fe.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},N(h,fe)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:fe.affixColor}}),[`&${h.componentCls}-status-${fe.status}${h.componentCls}-disabled`]:{borderColor:fe.borderColor}}),g=(h,fe)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N(h,{borderColor:h.colorBorder,hoverBorderColor:h.hoverBorderColor,activeBorderColor:h.activeBorderColor,activeShadow:h.activeShadow})),{[`&${h.componentCls}-disabled, &[disabled]`]:Object.assign({},Q(h))}),P(h,{status:"error",borderColor:h.colorError,hoverBorderColor:h.colorErrorBorderHover,activeBorderColor:h.colorError,activeShadow:h.errorActiveShadow,affixColor:h.colorError})),P(h,{status:"warning",borderColor:h.colorWarning,hoverBorderColor:h.colorWarningBorderHover,activeBorderColor:h.colorWarning,activeShadow:h.warningActiveShadow,affixColor:h.colorWarning})),fe)}),D=(h,fe)=>({[`&${h.componentCls}-group-wrapper-status-${fe.status}`]:{[`${h.componentCls}-group-addon`]:{borderColor:fe.addonBorderColor,color:fe.addonColor}}}),F=h=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${h.componentCls}-group`]:{"&-addon":{background:h.addonBg,border:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},D(h,{status:"error",addonBorderColor:h.colorError,addonColor:h.colorErrorText})),D(h,{status:"warning",addonBorderColor:h.colorWarning,addonColor:h.colorWarningText})),{[`&${h.componentCls}-group-wrapper-disabled`]:{[`${h.componentCls}-group-addon`]:Object.assign({},Q(h))}})}),n=(h,fe)=>{const{componentCls:s}=h;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${s}-disabled, &[disabled]`]:{color:h.colorTextDisabled,cursor:"not-allowed"},[`&${s}-status-error`]:{"&, & input, & textarea":{color:h.colorError}},[`&${s}-status-warning`]:{"&, & input, & textarea":{color:h.colorWarning}}},fe)}},X=(h,fe)=>{var s;return{background:fe.bg,borderWidth:h.lineWidth,borderStyle:h.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(s=fe==null?void 0:fe.inputColor)!==null&&s!==void 0?s:"unset"},"&:hover":{background:fe.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:fe.activeBorderColor,backgroundColor:h.activeBg}}},w=(h,fe)=>({[`&${h.componentCls}-status-${fe.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},X(h,fe)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:fe.affixColor}})}),I=(h,fe)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X(h,{bg:h.colorFillTertiary,hoverBg:h.colorFillSecondary,activeBorderColor:h.activeBorderColor})),{[`&${h.componentCls}-disabled, &[disabled]`]:Object.assign({},Q(h))}),w(h,{status:"error",bg:h.colorErrorBg,hoverBg:h.colorErrorBgHover,activeBorderColor:h.colorError,inputColor:h.colorErrorText,affixColor:h.colorError})),w(h,{status:"warning",bg:h.colorWarningBg,hoverBg:h.colorWarningBgHover,activeBorderColor:h.colorWarning,inputColor:h.colorWarningText,affixColor:h.colorWarning})),fe)}),xe=(h,fe)=>({[`&${h.componentCls}-group-wrapper-status-${fe.status}`]:{[`${h.componentCls}-group-addon`]:{background:fe.addonBg,color:fe.addonColor}}}),Ne=h=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${h.componentCls}-group`]:{"&-addon":{background:h.colorFillTertiary},[`${h.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorSplit}`}}}},xe(h,{status:"error",addonBg:h.colorErrorBg,addonColor:h.colorErrorText})),xe(h,{status:"warning",addonBg:h.colorWarningBg,addonColor:h.colorWarningText})),{[`&${h.componentCls}-group-wrapper-disabled`]:{[`${h.componentCls}-group`]:{"&-addon":{background:h.colorFillTertiary,color:h.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderTop:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderBottom:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderTop:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderBottom:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`}}}})}),pe=(h,fe)=>({background:h.colorBgContainer,borderWidth:`${(0,e.unit)(h.lineWidth)} 0`,borderStyle:`${h.lineType} none`,borderColor:`transparent transparent ${fe.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${fe.borderColor} transparent`,backgroundColor:h.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${fe.borderColor} transparent`,outline:0,backgroundColor:h.activeBg}}),se=(h,fe)=>({[`&${h.componentCls}-status-${fe.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},pe(h,fe)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:fe.affixColor}}),[`&${h.componentCls}-status-${fe.status}${h.componentCls}-disabled`]:{borderColor:`transparent transparent ${fe.borderColor} transparent`}}),Se=(h,fe)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pe(h,{borderColor:h.colorBorder,hoverBorderColor:h.hoverBorderColor,activeBorderColor:h.activeBorderColor,activeShadow:h.activeShadow})),{[`&${h.componentCls}-disabled, &[disabled]`]:{color:h.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${h.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),se(h,{status:"error",borderColor:h.colorError,hoverBorderColor:h.colorErrorBorderHover,activeBorderColor:h.colorError,activeShadow:h.errorActiveShadow,affixColor:h.colorError})),se(h,{status:"warning",borderColor:h.colorWarning,hoverBorderColor:h.colorWarningBorderHover,activeBorderColor:h.colorWarning,activeShadow:h.warningActiveShadow,affixColor:h.colorWarning})),fe)})},24303:function(Yt,Ge,t){t.d(Ge,{D:function(){return ee},Z:function(){return Ee}});var e=t(59301),m=t(54476),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Q=p,N=t(7657),P=function(ge,re){return e.createElement(N.Z,(0,m.Z)({},ge,{ref:re,icon:Q}))},g=e.forwardRef(P),D=g,F=t(33853),n=t(38819),X=t(92310),w=t.n(X),I=t(2738),xe=t(48755),Ne=t(6989),pe=t(36237),se=t(48923),Se=t(16931);const h=ae=>{const{componentCls:ge,siderBg:re,motionDurationMid:S,motionDurationSlow:i,antCls:le,triggerHeight:M,triggerColor:U,triggerBg:c,headerHeight:T,zeroTriggerWidth:ne,zeroTriggerHeight:q,borderRadiusLG:me,lightSiderBg:et,lightTriggerColor:W,lightTriggerBg:we,bodyBg:he}=ae;return{[ge]:{position:"relative",minWidth:0,background:re,transition:`all ${S}, background 0s`,"&-has-trigger":{paddingBottom:M},"&-right":{order:1},[`${ge}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${le}-menu${le}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${ge}-children`]:{overflow:"hidden"},[`${ge}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:M,color:U,lineHeight:(0,pe.unit)(M),textAlign:"center",background:c,cursor:"pointer",transition:`all ${S}`},[`${ge}-zero-width-trigger`]:{position:"absolute",top:T,insetInlineEnd:ae.calc(ne).mul(-1).equal(),zIndex:1,width:ne,height:q,color:U,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:re,borderRadius:`0 ${(0,pe.unit)(me)} ${(0,pe.unit)(me)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ae.calc(ne).mul(-1).equal(),borderRadius:`${(0,pe.unit)(me)} 0 0 ${(0,pe.unit)(me)}`}},"&-light":{background:et,[`${ge}-trigger`]:{color:W,background:we},[`${ge}-zero-width-trigger`]:{color:W,background:we,border:`1px solid ${he}`,borderInlineStart:0}}}}};var fe=(0,Se.I$)(["Layout","Sider"],ae=>[h(ae)],se.eh,{deprecatedTokens:se.jn}),s=function(ae,ge){var re={};for(var S in ae)Object.prototype.hasOwnProperty.call(ae,S)&&ge.indexOf(S)<0&&(re[S]=ae[S]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,S=Object.getOwnPropertySymbols(ae);i!Number.isNaN(Number.parseFloat(ae))&&isFinite(ae),ee=e.createContext({}),_=(()=>{let ae=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${ge}${ae}`}})();var Ee=e.forwardRef((ae,ge)=>{const{prefixCls:re,className:S,trigger:i,children:le,defaultCollapsed:M=!1,theme:U="dark",style:c={},collapsible:T=!1,reverseArrow:ne=!1,width:q=200,collapsedWidth:me=80,zeroWidthTriggerStyle:et,breakpoint:W,onCollapse:we,onBreakpoint:he}=ae,Xe=s(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:B}=(0,e.useContext)(Ne.V),[Oe,ye]=(0,e.useState)("collapsed"in ae?ae.collapsed:M),[ct,Le]=(0,e.useState)(!1);(0,e.useEffect)(()=>{"collapsed"in ae&&ye(ae.collapsed)},[ae.collapsed]);const oe=(Ue,je)=>{"collapsed"in ae||ye(Ue),we==null||we(Ue,je)},{getPrefixCls:Z,direction:H}=(0,e.useContext)(xe.E_),f=Z("layout-sider",re),[ce,A,r]=fe(f),u=(0,e.useRef)(null);u.current=Ue=>{Le(Ue.matches),he==null||he(Ue.matches),Oe!==Ue.matches&&oe(Ue.matches,"responsive")},(0,e.useEffect)(()=>{function Ue(x){return u.current(x)}let je;if(typeof window!="undefined"){const{matchMedia:x}=window;if(x&&W&&W in d){je=x(`screen and (max-width: ${d[W]})`);try{je.addEventListener("change",Ue)}catch(te){je.addListener(Ue)}Ue(je)}}return()=>{try{je==null||je.removeEventListener("change",Ue)}catch(x){je==null||je.removeListener(Ue)}}},[W]),(0,e.useEffect)(()=>{const Ue=_("ant-sider-");return B.addSider(Ue),()=>B.removeSider(Ue)},[]);const V=()=>{oe(!Oe,"clickTrigger")},K=(0,I.Z)(Xe,["collapsed"]),y=Oe?me:q,z=Y(y)?`${y}px`:String(y),L=parseFloat(String(me||0))===0?e.createElement("span",{onClick:V,className:w()(`${f}-zero-width-trigger`,`${f}-zero-width-trigger-${ne?"right":"left"}`),style:et},i||e.createElement(D,null)):null,J=H==="rtl"==!ne,Me={expanded:J?e.createElement(n.Z,null):e.createElement(F.Z,null),collapsed:J?e.createElement(F.Z,null):e.createElement(n.Z,null)}[Oe?"collapsed":"expanded"],de=i!==null?L||e.createElement("div",{className:`${f}-trigger`,onClick:V,style:{width:z}},i||Me):null,Ie=Object.assign(Object.assign({},c),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),Be=w()(f,`${f}-${U}`,{[`${f}-collapsed`]:!!Oe,[`${f}-has-trigger`]:T&&i!==null&&!L,[`${f}-below`]:!!ct,[`${f}-zero-width`]:parseFloat(z)===0},S,A,r),Te=e.useMemo(()=>({siderCollapsed:Oe}),[Oe]);return ce(e.createElement(ee.Provider,{value:Te},e.createElement("aside",Object.assign({className:Be},K,{style:Ie,ref:ge}),e.createElement("div",{className:`${f}-children`},le),T||ct&&L?de:null)))})},6989:function(Yt,Ge,t){t.d(Ge,{V:function(){return m}});var e=t(59301);const m=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Yt,Ge,t){t.d(Ge,{eh:function(){return Q},jn:function(){return N}});var e=t(36237),m=t(16931);const p=P=>{const{antCls:g,componentCls:D,colorText:F,footerBg:n,headerHeight:X,headerPadding:w,headerColor:I,footerPadding:xe,fontSize:Ne,bodyBg:pe,headerBg:se}=P;return{[D]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:pe,"&, *":{boxSizing:"border-box"},[`&${D}-has-sider`]:{flexDirection:"row",[`> ${D}, > ${D}-content`]:{width:0}},[`${D}-header, &${D}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${D}-header`]:{height:X,padding:w,color:I,lineHeight:(0,e.unit)(X),background:se,[`${g}-menu`]:{lineHeight:"inherit"}},[`${D}-footer`]:{padding:xe,color:F,fontSize:Ne,background:n},[`${D}-content`]:{flex:"auto",color:F,minHeight:0}}},Q=P=>{const{colorBgLayout:g,controlHeight:D,controlHeightLG:F,colorText:n,controlHeightSM:X,marginXXS:w,colorTextLightSolid:I,colorBgContainer:xe}=P,Ne=F*1.25;return{colorBgHeader:"#001529",colorBgBody:g,colorBgTrigger:"#002140",bodyBg:g,headerBg:"#001529",headerHeight:D*2,headerPadding:`0 ${Ne}px`,headerColor:n,footerPadding:`${X}px ${Ne}px`,footerBg:g,siderBg:"#001529",triggerHeight:F+w*2,triggerBg:"#002140",triggerColor:I,zeroTriggerWidth:F,zeroTriggerHeight:F,lightSiderBg:xe,lightTriggerBg:xe,lightTriggerColor:n}},N=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ge.ZP=(0,m.I$)("Layout",P=>[p(P)],Q,{deprecatedTokens:N})},78857:function(Yt,Ge,t){t.d(Ge,{J:function(){return P}});var e=t(59301),m=t(8654),p=t(62487),Q=function(g,D){var F={};for(var n in g)Object.prototype.hasOwnProperty.call(g,n)&&D.indexOf(n)<0&&(F[n]=g[n]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,n=Object.getOwnPropertySymbols(g);X{const{children:F}=g,n=Q(g,["children"]),X=e.useContext(N),w=e.useMemo(()=>Object.assign(Object.assign({},X),n),[X,n.prefixCls,n.mode,n.selectable,n.rootClassName]),I=(0,m.t4)(F),xe=(0,m.x1)(D,I?(0,m.C4)(F):null);return e.createElement(N.Provider,{value:w},e.createElement(p.Z,{space:!0},I?e.cloneElement(F,{ref:xe}):F))});Ge.Z=N},93041:function(Yt,Ge,t){t.d(Ge,{default:function(){return ce}});var e=t(59301),m=t(28321),p=t(24303),Q=t(18785),N=t(92310),P=t.n(N),g=t(6089),D=t(2738),F=t(86641),n=t(22703),X=t(48755),w=t(83397),xe=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(A,r){var u={};for(var V in A)Object.prototype.hasOwnProperty.call(A,V)&&r.indexOf(V)<0&&(u[V]=A[V]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,V=Object.getOwnPropertySymbols(A);K{const{prefixCls:r,className:u,dashed:V}=A,K=Ne(A,["prefixCls","className","dashed"]),{getPrefixCls:y}=e.useContext(X.E_),z=y("menu",r),L=P()({[`${z}-item-divider-dashed`]:!!V},u);return e.createElement(m.iz,Object.assign({className:L},K))},Se=t(11592),h=t(25399),s=A=>{var r;const{className:u,children:V,icon:K,title:y,danger:z,extra:L}=A,{prefixCls:J,firstLevel:l,direction:v,disableMenuItemTitleTooltip:Me,inlineCollapsed:de}=e.useContext(xe),Ie=te=>{const Ce=V==null?void 0:V[0],De=e.createElement("span",{className:P()(`${J}-title-content`,{[`${J}-title-content-with-extra`]:!!L||L===0})},V);return(!K||e.isValidElement(V)&&V.type==="span")&&V&&te&&l&&typeof Ce=="string"?e.createElement("div",{className:`${J}-inline-collapsed-noicon`},Ce.charAt(0)):De},{siderCollapsed:Be}=e.useContext(p.D);let Te=y;typeof y=="undefined"?Te=l?V:"":y===!1&&(Te="");const Ue={title:Te};!Be&&!de&&(Ue.title=null,Ue.open=!1);const je=(0,Se.Z)(V).length;let x=e.createElement(m.ck,Object.assign({},(0,D.Z)(A,["title","icon","danger"]),{className:P()({[`${J}-item-danger`]:z,[`${J}-item-only-child`]:(K?je+1:je)===1},u),title:typeof y=="string"?y:void 0}),(0,n.Tm)(K,{className:P()(e.isValidElement(K)?(r=K.props)===null||r===void 0?void 0:r.className:"",`${J}-item-icon`)}),Ie(de));return Me||(x=e.createElement(h.Z,Object.assign({},Ue,{placement:v==="rtl"?"left":"right",classNames:{root:`${J}-inline-collapsed-tooltip`}}),x)),x},d=t(78857),Y=t(36237),ee=t(17835),_=t(63356),Ve=t(34961),Ee=t(46e3),ae=t(34925),ge=t(16931),re=t(51636),i=A=>{const{componentCls:r,motionDurationSlow:u,horizontalLineHeight:V,colorSplit:K,lineWidth:y,lineType:z,itemPaddingInline:L}=A;return{[`${r}-horizontal`]:{lineHeight:V,border:0,borderBottom:`${(0,Y.unit)(y)} ${z} ${K}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${r}-item, ${r}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:L},[`> ${r}-item:hover, + > ${r}-item-active, + > ${r}-submenu ${r}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${r}-item, ${r}-submenu-title`]:{transition:[`border-color ${u}`,`background ${u}`].join(",")},[`${r}-submenu-arrow`]:{display:"none"}}}},M=A=>{let{componentCls:r,menuArrowOffset:u,calc:V}=A;return{[`${r}-rtl`]:{direction:"rtl"},[`${r}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${r}-rtl${r}-vertical, + ${r}-submenu-rtl ${r}-vertical`]:{[`${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Y.unit)(V(u).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Y.unit)(u)})`}}}}};const U=A=>Object.assign({},(0,_.oN)(A));var T=(A,r)=>{const{componentCls:u,itemColor:V,itemSelectedColor:K,subMenuItemSelectedColor:y,groupTitleColor:z,itemBg:L,subMenuItemBg:J,itemSelectedBg:l,activeBarHeight:v,activeBarWidth:Me,activeBarBorderWidth:de,motionDurationSlow:Ie,motionEaseInOut:Be,motionEaseOut:Te,itemPaddingInline:Ue,motionDurationMid:je,itemHoverColor:x,lineType:te,colorSplit:Ce,itemDisabledColor:De,dangerItemColor:C,dangerItemHoverColor:k,dangerItemSelectedColor:G,dangerItemActiveBg:ve,dangerItemSelectedBg:ze,popupBg:Ke,itemHoverBg:ut,itemActiveBg:pt,menuSubMenuBg:tt,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:ke,horizontalItemBorderRadius:rt,horizontalItemHoverBg:ot}=A;return{[`${u}-${r}, ${u}-${r} > ${u}`]:{color:V,background:L,[`&${u}-root:focus-visible`]:Object.assign({},U(A)),[`${u}-item`]:{"&-group-title, &-extra":{color:z}},[`${u}-submenu-selected > ${u}-submenu-title`]:{color:y},[`${u}-item, ${u}-submenu-title`]:{color:V,[`&:not(${u}-item-disabled):focus-visible`]:Object.assign({},U(A))},[`${u}-item-disabled, ${u}-submenu-disabled`]:{color:`${De} !important`},[`${u}-item:not(${u}-item-selected):not(${u}-submenu-selected)`]:{[`&:hover, > ${u}-submenu-title:hover`]:{color:x}},[`&:not(${u}-horizontal)`]:{[`${u}-item:not(${u}-item-selected)`]:{"&:hover":{backgroundColor:ut},"&:active":{backgroundColor:pt}},[`${u}-submenu-title`]:{"&:hover":{backgroundColor:ut},"&:active":{backgroundColor:pt}}},[`${u}-item-danger`]:{color:C,[`&${u}-item:hover`]:{[`&:not(${u}-item-selected):not(${u}-submenu-selected)`]:{color:k}},[`&${u}-item:active`]:{background:ve}},[`${u}-item a`]:{"&, &:hover":{color:"inherit"}},[`${u}-item-selected`]:{color:K,[`&${u}-item-danger`]:{color:G},"a, a:hover":{color:"inherit"}},[`& ${u}-item-selected`]:{backgroundColor:l,[`&${u}-item-danger`]:{backgroundColor:ze}},[`&${u}-submenu > ${u}`]:{backgroundColor:tt},[`&${u}-popup > ${u}`]:{backgroundColor:Ke},[`&${u}-submenu-popup > ${u}`]:{backgroundColor:Ke},[`&${u}-horizontal`]:Object.assign(Object.assign({},r==="dark"?{borderBottom:0}:{}),{[`> ${u}-item, > ${u}-submenu`]:{top:de,marginTop:A.calc(de).mul(-1).equal(),marginBottom:0,borderRadius:rt,"&::after":{position:"absolute",insetInline:Ue,bottom:0,borderBottom:`${(0,Y.unit)(v)} solid transparent`,transition:`border-color ${Ie} ${Be}`,content:'""'},"&:hover, &-active, &-open":{background:ot,"&::after":{borderBottomWidth:v,borderBottomColor:mt}},"&-selected":{color:mt,backgroundColor:ke,"&:hover":{backgroundColor:ke},"&::after":{borderBottomWidth:v,borderBottomColor:mt}}}}),[`&${u}-root`]:{[`&${u}-inline, &${u}-vertical`]:{borderInlineEnd:`${(0,Y.unit)(de)} ${te} ${Ce}`}},[`&${u}-inline`]:{[`${u}-sub${u}-inline`]:{background:J},[`${u}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Y.unit)(Me)} solid ${K}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${je} ${Te}`,`opacity ${je} ${Te}`].join(","),content:'""'},[`&${u}-item-danger`]:{"&::after":{borderInlineEndColor:G}}},[`${u}-selected, ${u}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${je} ${Be}`,`opacity ${je} ${Be}`].join(",")}}}}}};const ne=A=>{const{componentCls:r,itemHeight:u,itemMarginInline:V,padding:K,menuArrowSize:y,marginXS:z,itemMarginBlock:L,itemWidth:J,itemPaddingInline:l}=A,v=A.calc(y).add(K).add(z).equal();return{[`${r}-item`]:{position:"relative",overflow:"hidden"},[`${r}-item, ${r}-submenu-title`]:{height:u,lineHeight:(0,Y.unit)(u),paddingInline:l,overflow:"hidden",textOverflow:"ellipsis",marginInline:V,marginBlock:L,width:J},[`> ${r}-item, + > ${r}-submenu > ${r}-submenu-title`]:{height:u,lineHeight:(0,Y.unit)(u)},[`${r}-item-group-list ${r}-submenu-title, + ${r}-submenu-title`]:{paddingInlineEnd:v}}};var me=A=>{const{componentCls:r,iconCls:u,itemHeight:V,colorTextLightSolid:K,dropdownWidth:y,controlHeightLG:z,motionEaseOut:L,paddingXL:J,itemMarginInline:l,fontSizeLG:v,motionDurationFast:Me,motionDurationSlow:de,paddingXS:Ie,boxShadowSecondary:Be,collapsedWidth:Te,collapsedIconSize:Ue}=A,je={height:V,lineHeight:(0,Y.unit)(V),listStylePosition:"inside",listStyleType:"disc"};return[{[r]:{"&-inline, &-vertical":Object.assign({[`&${r}-root`]:{boxShadow:"none"}},ne(A))},[`${r}-submenu-popup`]:{[`${r}-vertical`]:Object.assign(Object.assign({},ne(A)),{boxShadow:Be})}},{[`${r}-submenu-popup ${r}-vertical${r}-sub`]:{minWidth:y,maxHeight:`calc(100vh - ${(0,Y.unit)(A.calc(z).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${r}-inline`]:{width:"100%",[`&${r}-root`]:{[`${r}-item, ${r}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${de}`,`background ${de}`,`padding ${Me} ${L}`].join(","),[`> ${r}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${r}-sub${r}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${r}-submenu > ${r}-submenu-title`]:je,[`& ${r}-item-group-title`]:{paddingInlineStart:J}},[`${r}-item`]:je}},{[`${r}-inline-collapsed`]:{width:Te,[`&${r}-root`]:{[`${r}-item, ${r}-submenu ${r}-submenu-title`]:{[`> ${r}-inline-collapsed-noicon`]:{fontSize:v,textAlign:"center"}}},[`> ${r}-item, + > ${r}-item-group > ${r}-item-group-list > ${r}-item, + > ${r}-item-group > ${r}-item-group-list > ${r}-submenu > ${r}-submenu-title, + > ${r}-submenu > ${r}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Y.unit)(A.calc(Ue).div(2).equal())} - ${(0,Y.unit)(l)})`,textOverflow:"clip",[` + ${r}-submenu-arrow, + ${r}-submenu-expand-icon + `]:{opacity:0},[`${r}-item-icon, ${u}`]:{margin:0,fontSize:Ue,lineHeight:(0,Y.unit)(V),"+ span":{display:"inline-block",opacity:0}}},[`${r}-item-icon, ${u}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${r}-item-icon, ${u}`]:{display:"none"},"a, a:hover":{color:K}},[`${r}-item-group-title`]:Object.assign(Object.assign({},_.vS),{paddingInline:Ie})}}]};const et=A=>{const{componentCls:r,motionDurationSlow:u,motionDurationMid:V,motionEaseInOut:K,motionEaseOut:y,iconCls:z,iconSize:L,iconMarginInlineEnd:J}=A;return{[`${r}-item, ${r}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${u}`,`background ${u}`,`padding calc(${u} + 0.1s) ${K}`].join(","),[`${r}-item-icon, ${z}`]:{minWidth:L,fontSize:L,transition:[`font-size ${V} ${y}`,`margin ${u} ${K}`,`color ${u}`].join(","),"+ span":{marginInlineStart:J,opacity:1,transition:[`opacity ${u} ${K}`,`margin ${u}`,`color ${u}`].join(",")}},[`${r}-item-icon`]:Object.assign({},(0,_.Ro)()),[`&${r}-item-only-child`]:{[`> ${z}, > ${r}-item-icon`]:{marginInlineEnd:0}}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${r}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},W=A=>{const{componentCls:r,motionDurationSlow:u,motionEaseInOut:V,borderRadius:K,menuArrowSize:y,menuArrowOffset:z}=A;return{[`${r}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:A.margin,width:y,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${u} ${V}, opacity ${u}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:A.calc(y).mul(.6).equal(),height:A.calc(y).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:K,transition:[`background ${u} ${V}`,`transform ${u} ${V}`,`top ${u} ${V}`,`color ${u} ${V}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Y.unit)(A.calc(z).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Y.unit)(z)})`}}}}},we=A=>{const{antCls:r,componentCls:u,fontSize:V,motionDurationSlow:K,motionDurationMid:y,motionEaseInOut:z,paddingXS:L,padding:J,colorSplit:l,lineWidth:v,zIndexPopup:Me,borderRadiusLG:de,subMenuItemBorderRadius:Ie,menuArrowSize:Be,menuArrowOffset:Te,lineType:Ue,groupTitleLineHeight:je,groupTitleFontSize:x}=A;return[{"":{[u]:Object.assign(Object.assign({},(0,_.dF)()),{"&-hidden":{display:"none"}})},[`${u}-submenu-hidden`]:{display:"none"}},{[u]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_.Wf)(A)),(0,_.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:V,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${K} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${u}-item`]:{flex:"none"}},[`${u}-item, ${u}-submenu, ${u}-submenu-title`]:{borderRadius:A.itemBorderRadius},[`${u}-item-group-title`]:{padding:`${(0,Y.unit)(L)} ${(0,Y.unit)(J)}`,fontSize:x,lineHeight:je,transition:`all ${K}`},[`&-horizontal ${u}-submenu`]:{transition:[`border-color ${K} ${z}`,`background ${K} ${z}`].join(",")},[`${u}-submenu, ${u}-submenu-inline`]:{transition:[`border-color ${K} ${z}`,`background ${K} ${z}`,`padding ${y} ${z}`].join(",")},[`${u}-submenu ${u}-sub`]:{cursor:"initial",transition:[`background ${K} ${z}`,`padding ${K} ${z}`].join(",")},[`${u}-title-content`]:{transition:`color ${K}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${r}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${u}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:A.padding}},[`${u}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${u}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:Ue,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(A)),{[`${u}-item-group`]:{[`${u}-item-group-list`]:{margin:0,padding:0,[`${u}-item, ${u}-submenu-title`]:{paddingInline:`${(0,Y.unit)(A.calc(V).mul(2).equal())} ${(0,Y.unit)(J)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Me,borderRadius:de,boxShadow:"none",transformOrigin:"0 0",[`&${u}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${u}`]:Object.assign(Object.assign(Object.assign({borderRadius:de},et(A)),W(A)),{[`${u}-item, ${u}-submenu > ${u}-submenu-title`]:{borderRadius:Ie},[`${u}-submenu-title::after`]:{transition:`transform ${K} ${z}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:A.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:A.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:A.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:A.paddingXS}}}),W(A)),{[`&-inline-collapsed ${u}-submenu-arrow, + &-inline ${u}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Y.unit)(Te)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Y.unit)(A.calc(Te).mul(-1).equal())})`}},[`${u}-submenu-open${u}-submenu-inline > ${u}-submenu-title > ${u}-submenu-arrow`]:{transform:`translateY(${(0,Y.unit)(A.calc(Be).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Y.unit)(A.calc(Te).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Y.unit)(Te)})`}}})},{[`${r}-layout-header`]:{[u]:{lineHeight:"inherit"}}}]},he=A=>{var r,u,V;const{colorPrimary:K,colorError:y,colorTextDisabled:z,colorErrorBg:L,colorText:J,colorTextDescription:l,colorBgContainer:v,colorFillAlter:Me,colorFillContent:de,lineWidth:Ie,lineWidthBold:Be,controlItemBgActive:Te,colorBgTextHover:Ue,controlHeightLG:je,lineHeight:x,colorBgElevated:te,marginXXS:Ce,padding:De,fontSize:C,controlHeightSM:k,fontSizeLG:G,colorTextLightSolid:ve,colorErrorHover:ze}=A,Ke=(r=A.activeBarWidth)!==null&&r!==void 0?r:0,ut=(u=A.activeBarBorderWidth)!==null&&u!==void 0?u:Ie,pt=(V=A.itemMarginInline)!==null&&V!==void 0?V:A.marginXXS,tt=new ee.FastColor(ve).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:A.zIndexPopupBase+50,radiusItem:A.borderRadiusLG,itemBorderRadius:A.borderRadiusLG,radiusSubMenuItem:A.borderRadiusSM,subMenuItemBorderRadius:A.borderRadiusSM,colorItemText:J,itemColor:J,colorItemTextHover:J,itemHoverColor:J,colorItemTextHoverHorizontal:K,horizontalItemHoverColor:K,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:K,itemSelectedColor:K,subMenuItemSelectedColor:K,colorItemTextSelectedHorizontal:K,horizontalItemSelectedColor:K,colorItemBg:v,itemBg:v,colorItemBgHover:Ue,itemHoverBg:Ue,colorItemBgActive:de,itemActiveBg:Te,colorSubItemBg:Me,subMenuItemBg:Me,colorItemBgSelected:Te,itemSelectedBg:Te,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Ke,colorActiveBarHeight:Be,activeBarHeight:Be,colorActiveBarBorderSize:Ie,activeBarBorderWidth:ut,colorItemTextDisabled:z,itemDisabledColor:z,colorDangerItemText:y,dangerItemColor:y,colorDangerItemTextHover:y,dangerItemHoverColor:y,colorDangerItemTextSelected:y,dangerItemSelectedColor:y,colorDangerItemBgActive:L,dangerItemActiveBg:L,colorDangerItemBgSelected:L,dangerItemSelectedBg:L,itemMarginInline:pt,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:je,groupTitleLineHeight:x,collapsedWidth:je*2,popupBg:te,itemMarginBlock:Ce,itemPaddingInline:De,horizontalLineHeight:`${je*1.15}px`,iconSize:C,iconMarginInlineEnd:k-C,collapsedIconSize:G,groupTitleFontSize:C,darkItemDisabledColor:new ee.FastColor(ve).setA(.25).toRgbString(),darkItemColor:tt,darkDangerItemColor:y,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ve,darkItemSelectedBg:K,darkDangerItemSelectedBg:y,darkItemHoverBg:"transparent",darkGroupTitleColor:tt,darkItemHoverColor:ve,darkDangerItemHoverColor:ze,darkDangerItemSelectedColor:ve,darkDangerItemActiveBg:y,itemWidth:Ke?`calc(100% + ${ut}px)`:`calc(100% - ${pt*2}px)`}};var Xe=function(A){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,ge.I$)("Menu",K=>{const{colorBgElevated:y,controlHeightLG:z,fontSize:L,darkItemColor:J,darkDangerItemColor:l,darkItemBg:v,darkSubMenuItemBg:Me,darkItemSelectedColor:de,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Be,darkItemHoverBg:Te,darkGroupTitleColor:Ue,darkItemHoverColor:je,darkItemDisabledColor:x,darkDangerItemHoverColor:te,darkDangerItemSelectedColor:Ce,darkDangerItemActiveBg:De,popupBg:C,darkPopupBg:k}=K,G=K.calc(L).div(7).mul(5).equal(),ve=(0,re.mergeToken)(K,{menuArrowSize:G,menuHorizontalHeight:K.calc(z).mul(1.15).equal(),menuArrowOffset:K.calc(G).mul(.25).equal(),menuSubMenuBg:y,calc:K.calc,popupBg:C}),ze=(0,re.mergeToken)(ve,{itemColor:J,itemHoverColor:je,groupTitleColor:Ue,itemSelectedColor:de,subMenuItemSelectedColor:de,itemBg:v,popupBg:k,subMenuItemBg:Me,itemActiveBg:"transparent",itemSelectedBg:Ie,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Te,itemDisabledColor:x,dangerItemColor:l,dangerItemHoverColor:te,dangerItemSelectedColor:Ce,dangerItemActiveBg:De,dangerItemSelectedBg:Be,menuSubMenuBg:Me,horizontalItemSelectedColor:de,horizontalItemSelectedBg:Ie});return[we(ve),i(ve),me(ve),T(ve,"light"),T(ze,"dark"),M(ve),(0,Ve.Z)(ve),(0,Ee.oN)(ve,"slide-up"),(0,Ee.oN)(ve,"slide-down"),(0,ae._y)(ve,"zoom-big")]},he,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:u,unitless:{groupTitleLineHeight:!0}})(A,r)},B=t(75030),ye=A=>{var r;const{popupClassName:u,icon:V,title:K,theme:y}=A,z=e.useContext(xe),{prefixCls:L,inlineCollapsed:J,theme:l}=z,v=(0,m.Xl)();let Me;if(!V)Me=J&&!v.length&&K&&typeof K=="string"?e.createElement("div",{className:`${L}-inline-collapsed-noicon`},K.charAt(0)):e.createElement("span",{className:`${L}-title-content`},K);else{const Be=e.isValidElement(K)&&K.type==="span";Me=e.createElement(e.Fragment,null,(0,n.Tm)(V,{className:P()(e.isValidElement(V)?(r=V.props)===null||r===void 0?void 0:r.className:"",`${L}-item-icon`)}),Be?K:e.createElement("span",{className:`${L}-title-content`},K))}const de=e.useMemo(()=>Object.assign(Object.assign({},z),{firstLevel:!1}),[z]),[Ie]=(0,B.Cn)("Menu");return e.createElement(xe.Provider,{value:de},e.createElement(m.Wd,Object.assign({},(0,D.Z)(A,["icon"]),{title:Me,popupClassName:P()(L,u,`${L}-${y||l}`),popupStyle:Object.assign({zIndex:Ie},A.popupStyle)})))},ct=function(A,r){var u={};for(var V in A)Object.prototype.hasOwnProperty.call(A,V)&&r.indexOf(V)<0&&(u[V]=A[V]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,V=Object.getOwnPropertySymbols(A);K{var u;const V=e.useContext(d.Z),K=V||{},{getPrefixCls:y,getPopupContainer:z,direction:L,menu:J}=e.useContext(X.E_),l=y(),{prefixCls:v,className:Me,style:de,theme:Ie="light",expandIcon:Be,_internalDisableMenuItemTitleTooltip:Te,inlineCollapsed:Ue,siderCollapsed:je,rootClassName:x,mode:te,selectable:Ce,onClick:De,overflowedIndicatorPopupClassName:C}=A,k=ct(A,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),G=(0,D.Z)(k,["collapsedWidth"]);(u=K.validator)===null||u===void 0||u.call(K,{mode:te});const ve=(0,g.Z)(function(){var Mt;De==null||De.apply(void 0,arguments),(Mt=K.onClick)===null||Mt===void 0||Mt.call(K)}),ze=K.mode||te,Ke=Ce!=null?Ce:K.selectable,ut=Ue!=null?Ue:je,pt={horizontal:{motionName:`${l}-slide-up`},inline:(0,F.Z)(l),other:{motionName:`${l}-zoom-big`}},tt=y("menu",v||K.prefixCls),mt=(0,w.Z)(tt),[ke,rt,ot]=Xe(tt,mt,!V),xt=P()(`${tt}-${Ie}`,J==null?void 0:J.className,Me),gt=e.useMemo(()=>{var Mt,Gt;if(typeof Be=="function"||Le(Be))return Be||null;if(typeof K.expandIcon=="function"||Le(K.expandIcon))return K.expandIcon||null;if(typeof(J==null?void 0:J.expandIcon)=="function"||Le(J==null?void 0:J.expandIcon))return(J==null?void 0:J.expandIcon)||null;const rn=(Mt=Be!=null?Be:K==null?void 0:K.expandIcon)!==null&&Mt!==void 0?Mt:J==null?void 0:J.expandIcon;return(0,n.Tm)(rn,{className:P()(`${tt}-submenu-expand-icon`,e.isValidElement(rn)?(Gt=rn.props)===null||Gt===void 0?void 0:Gt.className:void 0)})},[Be,K==null?void 0:K.expandIcon,J==null?void 0:J.expandIcon,tt]),Pt=e.useMemo(()=>({prefixCls:tt,inlineCollapsed:ut||!1,direction:L,firstLevel:!0,theme:Ie,mode:ze,disableMenuItemTitleTooltip:Te}),[tt,ut,L,Te,Ie]);return ke(e.createElement(d.Z.Provider,{value:null},e.createElement(xe.Provider,{value:Pt},e.createElement(m.ZP,Object.assign({getPopupContainer:z,overflowedIndicator:e.createElement(Q.Z,null),overflowedIndicatorPopupClassName:P()(tt,`${tt}-${Ie}`,C),mode:ze,selectable:Ke,onClick:ve},G,{inlineCollapsed:ut,style:Object.assign(Object.assign({},J==null?void 0:J.style),de),className:xt,prefixCls:tt,direction:L,defaultMotions:pt,expandIcon:gt,ref:r,rootClassName:P()(x,rt,K.rootClassName,ot,mt),_internalComponents:oe})))))});const f=(0,e.forwardRef)((A,r)=>{const u=(0,e.useRef)(null),V=e.useContext(p.D);return(0,e.useImperativeHandle)(r,()=>({menu:u.current,focus:K=>{var y;(y=u.current)===null||y===void 0||y.focus(K)}})),e.createElement(H,Object.assign({ref:u},A,V))});f.Item=s,f.SubMenu=ye,f.Divider=se,f.ItemGroup=m.BW;var ce=f},31709:function(Yt,Ge,t){t.d(Ge,{Z:function(){return J}});var e=t(59301),m=t(54476),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Q=p,N=t(7657),P=function(v,Me){return e.createElement(N.Z,(0,m.Z)({},v,{ref:Me,icon:Q}))},g=e.forwardRef(P),D=g,F=t(49198),n=t(33853),X=t(38819),w=t(92310),I=t.n(w),xe=t(20068),Ne=t(76190),pe=t(33885),se=t(42978),Se=t(18929),h=t(10228),fe=t(26112),s=t(48736),d=t(17119),Y=[10,20,50,100],ee=function(v){var Me=v.pageSizeOptions,de=Me===void 0?Y:Me,Ie=v.locale,Be=v.changeSize,Te=v.pageSize,Ue=v.goButton,je=v.quickGo,x=v.rootPrefixCls,te=v.disabled,Ce=v.buildOptionText,De=v.showSizeChanger,C=v.sizeChangerRender,k=e.useState(""),G=(0,se.Z)(k,2),ve=G[0],ze=G[1],Ke=function(){return!ve||Number.isNaN(ve)?void 0:Number(ve)},ut=typeof Ce=="function"?Ce:function(Pt){return"".concat(Pt," ").concat(Ie.items_per_page)},pt=function(Mt){ze(Mt.target.value)},tt=function(Mt){Ue||ve===""||(ze(""),!(Mt.relatedTarget&&(Mt.relatedTarget.className.indexOf("".concat(x,"-item-link"))>=0||Mt.relatedTarget.className.indexOf("".concat(x,"-item"))>=0))&&(je==null||je(Ke())))},mt=function(Mt){ve!==""&&(Mt.keyCode===h.Z.ENTER||Mt.type==="click")&&(ze(""),je==null||je(Ke()))},ke=function(){return de.some(function(Mt){return Mt.toString()===Te.toString()})?de:de.concat([Te]).sort(function(Mt,Gt){var rn=Number.isNaN(Number(Mt))?0:Number(Mt),Ht=Number.isNaN(Number(Gt))?0:Number(Gt);return rn-Ht})},rt="".concat(x,"-options");if(!De&&!je)return null;var ot=null,xt=null,gt=null;return De&&C&&(ot=C({disabled:te,size:Te,onSizeChange:function(Mt){Be==null||Be(Number(Mt))},"aria-label":Ie.page_size,className:"".concat(rt,"-size-changer"),options:ke().map(function(Pt){return{label:ut(Pt),value:Pt}})})),je&&(Ue&&(gt=typeof Ue=="boolean"?e.createElement("button",{type:"button",onClick:mt,onKeyUp:mt,disabled:te,className:"".concat(rt,"-quick-jumper-button")},Ie.jump_to_confirm):e.createElement("span",{onClick:mt,onKeyUp:mt},Ue)),xt=e.createElement("div",{className:"".concat(rt,"-quick-jumper")},Ie.jump_to,e.createElement("input",{disabled:te,type:"text",value:ve,onChange:pt,onKeyUp:mt,onBlur:tt,"aria-label":Ie.page}),Ie.page,gt)),e.createElement("li",{className:rt},ot,xt)},_=ee,Ve=function(v){var Me=v.rootPrefixCls,de=v.page,Ie=v.active,Be=v.className,Te=v.showTitle,Ue=v.onClick,je=v.onKeyPress,x=v.itemRender,te="".concat(Me,"-item"),Ce=I()(te,"".concat(te,"-").concat(de),(0,xe.Z)((0,xe.Z)({},"".concat(te,"-active"),Ie),"".concat(te,"-disabled"),!de),Be),De=function(){Ue(de)},C=function(ve){je(ve,Ue,de)},k=x(de,"page",e.createElement("a",{rel:"nofollow"},de));return k?e.createElement("li",{title:Te?String(de):null,className:Ce,onClick:De,onKeyDown:C,tabIndex:0},k):null},Ee=Ve,ae=function(v,Me,de){return de};function ge(){}function re(l){var v=Number(l);return typeof v=="number"&&!Number.isNaN(v)&&isFinite(v)&&Math.floor(v)===v}function S(l,v,Me){var de=typeof l=="undefined"?v:l;return Math.floor((Me-1)/de)+1}var i=function(v){var Me=v.prefixCls,de=Me===void 0?"rc-pagination":Me,Ie=v.selectPrefixCls,Be=Ie===void 0?"rc-select":Ie,Te=v.className,Ue=v.current,je=v.defaultCurrent,x=je===void 0?1:je,te=v.total,Ce=te===void 0?0:te,De=v.pageSize,C=v.defaultPageSize,k=C===void 0?10:C,G=v.onChange,ve=G===void 0?ge:G,ze=v.hideOnSinglePage,Ke=v.align,ut=v.showPrevNextJumpers,pt=ut===void 0?!0:ut,tt=v.showQuickJumper,mt=v.showLessItems,ke=v.showTitle,rt=ke===void 0?!0:ke,ot=v.onShowSizeChange,xt=ot===void 0?ge:ot,gt=v.locale,Pt=gt===void 0?d.Z:gt,Mt=v.style,Gt=v.totalBoundaryShowSizeChanger,rn=Gt===void 0?50:Gt,Ht=v.disabled,At=v.simple,vn=v.showTotal,Bt=v.showSizeChanger,mn=Bt===void 0?Ce>rn:Bt,pn=v.sizeChangerRender,en=v.pageSizeOptions,b=v.itemRender,O=b===void 0?ae:b,it=v.jumpPrevIcon,R=v.jumpNextIcon,$=v.prevIcon,He=v.nextIcon,Pe=e.useRef(null),Ae=(0,Se.Z)(10,{value:De,defaultValue:k}),qe=(0,se.Z)(Ae,2),Fe=qe[0],at=qe[1],Ct=(0,Se.Z)(1,{value:Ue,defaultValue:x,postState:function(Yn){return Math.max(1,Math.min(Yn,S(void 0,Fe,Ce)))}}),bt=(0,se.Z)(Ct,2),vt=bt[0],zt=bt[1],Kt=e.useState(vt),Rt=(0,se.Z)(Kt,2),ue=Rt[0],Re=Rt[1];(0,e.useEffect)(function(){Re(vt)},[vt]);var Ze=ve!==ge,Ye="current"in v,_e=Math.max(1,vt-(mt?3:5)),nt=Math.min(S(void 0,Fe,Ce),vt+(mt?3:5));function ft(Zn,Yn){var br=Zn||e.createElement("button",{type:"button","aria-label":Yn,className:"".concat(de,"-item-link")});return typeof Zn=="function"&&(br=e.createElement(Zn,(0,pe.Z)({},v))),br}function Ot(Zn){var Yn=Zn.target.value,br=S(void 0,Fe,Ce),vr;return Yn===""?vr=Yn:Number.isNaN(Number(Yn))?vr=ue:Yn>=br?vr=br:vr=Number(Yn),vr}function Dt(Zn){return re(Zn)&&Zn!==vt&&re(Ce)&&Ce>0}var Ft=Ce>Fe?tt:!1;function Xt(Zn){(Zn.keyCode===h.Z.UP||Zn.keyCode===h.Z.DOWN)&&Zn.preventDefault()}function Tt(Zn){var Yn=Ot(Zn);switch(Yn!==ue&&Re(Yn),Zn.keyCode){case h.Z.ENTER:Qt(Yn);break;case h.Z.UP:Qt(Yn-1);break;case h.Z.DOWN:Qt(Yn+1);break;default:break}}function Zt(Zn){Qt(Ot(Zn))}function jt(Zn){var Yn=S(Zn,Fe,Ce),br=vt>Yn&&Yn!==0?Yn:vt;at(Zn),Re(br),xt==null||xt(vt,Zn),zt(br),ve==null||ve(br,Zn)}function Qt(Zn){if(Dt(Zn)&&!Ht){var Yn=S(void 0,Fe,Ce),br=Zn;return Zn>Yn?br=Yn:Zn<1&&(br=1),br!==ue&&Re(br),zt(br),ve==null||ve(br,Fe),br}return vt}var an=vt>1,$t=vt2?br-2:0),xo=2;xoCe?Ce:vt*Fe])),qn=null,Lt=S(void 0,Fe,Ce);if(ze&&Ce<=Fe)return null;var yt=[],Et={rootPrefixCls:de,onClick:Qt,onKeyPress:bn,showTitle:rt,itemRender:O,page:-1},It=vt-1>0?vt-1:0,wt=vt+1=kn*2&&vt!==3&&(yt[0]=e.cloneElement(yt[0],{className:I()("".concat(de,"-item-after-jump-prev"),yt[0].props.className)}),yt.unshift(Jn)),Lt-vt>=kn*2&&vt!==Lt-2){var Ir=yt[yt.length-1];yt[yt.length-1]=e.cloneElement(Ir,{className:I()("".concat(de,"-item-before-jump-next"),Ir.props.className)}),yt.push(qn)}Er!==1&&yt.unshift(e.createElement(Ee,(0,m.Z)({},Et,{key:1,page:1}))),Dr!==Lt&&yt.push(e.createElement(Ee,(0,m.Z)({},Et,{key:Lt,page:Lt})))}var ir=Un(It);if(ir){var Zr=!an||!Lt;ir=e.createElement("li",{title:rt?Pt.prev_page:null,onClick:Vt,tabIndex:Zr?null:0,onKeyDown:Wt,className:I()("".concat(de,"-prev"),(0,xe.Z)({},"".concat(de,"-disabled"),Zr)),"aria-disabled":Zr},ir)}var kr=Mn(wt);if(kr){var jr,Kr;At?(jr=!$t,Kr=an?0:null):(jr=!$t||!Lt,Kr=jr?null:0),kr=e.createElement("li",{title:rt?Pt.next_page:null,onClick:En,tabIndex:Kr,onKeyDown:Jt,className:I()("".concat(de,"-next"),(0,xe.Z)({},"".concat(de,"-disabled"),jr)),"aria-disabled":jr},kr)}var Gr=I()(de,Te,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(de,"-start"),Ke==="start"),"".concat(de,"-center"),Ke==="center"),"".concat(de,"-end"),Ke==="end"),"".concat(de,"-simple"),At),"".concat(de,"-disabled"),Ht));return e.createElement("ul",(0,m.Z)({className:Gr,style:Mt,ref:Pe},rr),ar,ir,At?Rn:yt,kr,e.createElement(_,{locale:Pt,rootPrefixCls:de,disabled:Ht,selectPrefixCls:Be,changeSize:jt,pageSize:Fe,pageSizeOptions:en,quickGo:Ft?Qt:null,goButton:Tn,showSizeChanger:mn,sizeChangerRender:pn}))},le=i,M=t(61852),U=t(48755),c=t(31756),T=t(13783),ne=t(9017),q=t(82326),me=t(57700),et=t(36237),W=t(53075),we=t(64910),he=t(39082),Xe=t(63356),B=t(51636),Oe=t(16931);const ye=l=>{const{componentCls:v}=l;return{[`${v}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${v}-item-link`]:{color:l.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${v}-item-link`]:{color:l.colorTextDisabled,cursor:"not-allowed"}}},[`&${v}-disabled`]:{cursor:"not-allowed",[`${v}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:l.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:l.colorBorder,backgroundColor:l.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:l.itemActiveBgDisabled},a:{color:l.itemActiveColorDisabled}}},[`${v}-item-link`]:{color:l.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${v}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${v}-simple-pager`]:{color:l.colorTextDisabled},[`${v}-jump-prev, ${v}-jump-next`]:{[`${v}-item-link-icon`]:{opacity:0},[`${v}-item-ellipsis`]:{opacity:1}}},[`&${v}-simple`]:{[`${v}-prev, ${v}-next`]:{[`&${v}-disabled ${v}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ct=l=>{const{componentCls:v}=l;return{[`&${v}-mini ${v}-total-text, &${v}-mini ${v}-simple-pager`]:{height:l.itemSizeSM,lineHeight:(0,et.unit)(l.itemSizeSM)},[`&${v}-mini ${v}-item`]:{minWidth:l.itemSizeSM,height:l.itemSizeSM,margin:0,lineHeight:(0,et.unit)(l.calc(l.itemSizeSM).sub(2).equal())},[`&${v}-mini ${v}-prev, &${v}-mini ${v}-next`]:{minWidth:l.itemSizeSM,height:l.itemSizeSM,margin:0,lineHeight:(0,et.unit)(l.itemSizeSM)},[`&${v}-mini:not(${v}-disabled)`]:{[`${v}-prev, ${v}-next`]:{[`&:hover ${v}-item-link`]:{backgroundColor:l.colorBgTextHover},[`&:active ${v}-item-link`]:{backgroundColor:l.colorBgTextActive},[`&${v}-disabled:hover ${v}-item-link`]:{backgroundColor:"transparent"}}},[` + &${v}-mini ${v}-prev ${v}-item-link, + &${v}-mini ${v}-next ${v}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:l.itemSizeSM,lineHeight:(0,et.unit)(l.itemSizeSM)}},[`&${v}-mini ${v}-jump-prev, &${v}-mini ${v}-jump-next`]:{height:l.itemSizeSM,marginInlineEnd:0,lineHeight:(0,et.unit)(l.itemSizeSM)},[`&${v}-mini ${v}-options`]:{marginInlineStart:l.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:l.miniOptionsSizeChangerTop},"&-quick-jumper":{height:l.itemSizeSM,lineHeight:(0,et.unit)(l.itemSizeSM),input:Object.assign(Object.assign({},(0,W.x0)(l)),{width:l.paginationMiniQuickJumperInputWidth,height:l.controlHeightSM})}}}},Le=l=>{const{componentCls:v}=l;return{[` + &${v}-simple ${v}-prev, + &${v}-simple ${v}-next + `]:{height:l.itemSizeSM,lineHeight:(0,et.unit)(l.itemSizeSM),verticalAlign:"top",[`${v}-item-link`]:{height:l.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:l.colorBgTextHover},"&:active":{backgroundColor:l.colorBgTextActive},"&::after":{height:l.itemSizeSM,lineHeight:(0,et.unit)(l.itemSizeSM)}}},[`&${v}-simple ${v}-simple-pager`]:{display:"inline-block",height:l.itemSizeSM,marginInlineEnd:l.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,et.unit)(l.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:l.itemInputBg,border:`${(0,et.unit)(l.lineWidth)} ${l.lineType} ${l.colorBorder}`,borderRadius:l.borderRadius,outline:"none",transition:`border-color ${l.motionDurationMid}`,color:"inherit","&:hover":{borderColor:l.colorPrimary},"&:focus":{borderColor:l.colorPrimaryHover,boxShadow:`${(0,et.unit)(l.inputOutlineOffset)} 0 ${(0,et.unit)(l.controlOutlineWidth)} ${l.controlOutline}`},"&[disabled]":{color:l.colorTextDisabled,backgroundColor:l.colorBgContainerDisabled,borderColor:l.colorBorder,cursor:"not-allowed"}}}}},oe=l=>{const{componentCls:v}=l;return{[`${v}-jump-prev, ${v}-jump-next`]:{outline:0,[`${v}-item-container`]:{position:"relative",[`${v}-item-link-icon`]:{color:l.colorPrimary,fontSize:l.fontSizeSM,opacity:0,transition:`all ${l.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${v}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:l.colorTextDisabled,letterSpacing:l.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:l.paginationEllipsisTextIndent,opacity:1,transition:`all ${l.motionDurationMid}`}},"&:hover":{[`${v}-item-link-icon`]:{opacity:1},[`${v}-item-ellipsis`]:{opacity:0}}},[` + ${v}-prev, + ${v}-jump-prev, + ${v}-jump-next + `]:{marginInlineEnd:l.marginXS},[` + ${v}-prev, + ${v}-next, + ${v}-jump-prev, + ${v}-jump-next + `]:{display:"inline-block",minWidth:l.itemSize,height:l.itemSize,color:l.colorText,fontFamily:l.fontFamily,lineHeight:(0,et.unit)(l.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:l.borderRadius,cursor:"pointer",transition:`all ${l.motionDurationMid}`},[`${v}-prev, ${v}-next`]:{outline:0,button:{color:l.colorText,cursor:"pointer",userSelect:"none"},[`${v}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:l.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,et.unit)(l.lineWidth)} ${l.lineType} transparent`,borderRadius:l.borderRadius,outline:"none",transition:`all ${l.motionDurationMid}`},[`&:hover ${v}-item-link`]:{backgroundColor:l.colorBgTextHover},[`&:active ${v}-item-link`]:{backgroundColor:l.colorBgTextActive},[`&${v}-disabled:hover`]:{[`${v}-item-link`]:{backgroundColor:"transparent"}}},[`${v}-slash`]:{marginInlineEnd:l.paginationSlashMarginInlineEnd,marginInlineStart:l.paginationSlashMarginInlineStart},[`${v}-options`]:{display:"inline-block",marginInlineStart:l.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:l.controlHeight,marginInlineStart:l.marginXS,lineHeight:(0,et.unit)(l.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,W.ik)(l)),(0,he.$U)(l,{borderColor:l.colorBorder,hoverBorderColor:l.colorPrimaryHover,activeBorderColor:l.colorPrimary,activeShadow:l.activeShadow})),{"&[disabled]":Object.assign({},(0,he.Xy)(l)),width:l.calc(l.controlHeightLG).mul(1.25).equal(),height:l.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:l.marginXS,marginInlineEnd:l.marginXS})}}}},Z=l=>{const{componentCls:v}=l;return{[`${v}-item`]:{display:"inline-block",minWidth:l.itemSize,height:l.itemSize,marginInlineEnd:l.marginXS,fontFamily:l.fontFamily,lineHeight:(0,et.unit)(l.calc(l.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:l.itemBg,border:`${(0,et.unit)(l.lineWidth)} ${l.lineType} transparent`,borderRadius:l.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,et.unit)(l.paginationItemPaddingInline)}`,color:l.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${v}-item-active)`]:{"&:hover":{transition:`all ${l.motionDurationMid}`,backgroundColor:l.colorBgTextHover},"&:active":{backgroundColor:l.colorBgTextActive}},"&-active":{fontWeight:l.fontWeightStrong,backgroundColor:l.itemActiveBg,borderColor:l.colorPrimary,a:{color:l.colorPrimary},"&:hover":{borderColor:l.colorPrimaryHover},"&:hover a":{color:l.colorPrimaryHover}}}}},H=l=>{const{componentCls:v}=l;return{[v]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(l)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${v}-total-text`]:{display:"inline-block",height:l.itemSize,marginInlineEnd:l.marginXS,lineHeight:(0,et.unit)(l.calc(l.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Z(l)),oe(l)),Le(l)),ct(l)),ye(l)),{[`@media only screen and (max-width: ${l.screenLG}px)`]:{[`${v}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${l.screenSM}px)`]:{[`${v}-options`]:{display:"none"}}}),[`&${l.componentCls}-rtl`]:{direction:"rtl"}}},f=l=>{const{componentCls:v}=l;return{[`${v}:not(${v}-disabled)`]:{[`${v}-item`]:Object.assign({},(0,Xe.Qy)(l)),[`${v}-jump-prev, ${v}-jump-next`]:{"&:focus-visible":Object.assign({[`${v}-item-link-icon`]:{opacity:1},[`${v}-item-ellipsis`]:{opacity:0}},(0,Xe.oN)(l))},[`${v}-prev, ${v}-next`]:{[`&:focus-visible ${v}-item-link`]:Object.assign({},(0,Xe.oN)(l))}}}},ce=l=>Object.assign({itemBg:l.colorBgContainer,itemSize:l.controlHeight,itemSizeSM:l.controlHeightSM,itemActiveBg:l.colorBgContainer,itemLinkBg:l.colorBgContainer,itemActiveColorDisabled:l.colorTextDisabled,itemActiveBgDisabled:l.controlItemBgActiveDisabled,itemInputBg:l.colorBgContainer,miniOptionsSizeChangerTop:0},(0,we.T)(l)),A=l=>(0,B.mergeToken)(l,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:l.calc(l.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:l.calc(l.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:l.calc(l.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:l.calc(l.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:l.marginSM,paginationSlashMarginInlineEnd:l.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,we.e)(l));var r=(0,Oe.I$)("Pagination",l=>{const v=A(l);return[H(v),f(v)]},ce);const u=l=>{const{componentCls:v}=l;return{[`${v}${v}-bordered${v}-disabled:not(${v}-mini)`]:{"&, &:hover":{[`${v}-item-link`]:{borderColor:l.colorBorder}},"&:focus-visible":{[`${v}-item-link`]:{borderColor:l.colorBorder}},[`${v}-item, ${v}-item-link`]:{backgroundColor:l.colorBgContainerDisabled,borderColor:l.colorBorder,[`&:hover:not(${v}-item-active)`]:{backgroundColor:l.colorBgContainerDisabled,borderColor:l.colorBorder,a:{color:l.colorTextDisabled}},[`&${v}-item-active`]:{backgroundColor:l.itemActiveBgDisabled}},[`${v}-prev, ${v}-next`]:{"&:hover button":{backgroundColor:l.colorBgContainerDisabled,borderColor:l.colorBorder,color:l.colorTextDisabled},[`${v}-item-link`]:{backgroundColor:l.colorBgContainerDisabled,borderColor:l.colorBorder}}},[`${v}${v}-bordered:not(${v}-mini)`]:{[`${v}-prev, ${v}-next`]:{"&:hover button":{borderColor:l.colorPrimaryHover,backgroundColor:l.itemBg},[`${v}-item-link`]:{backgroundColor:l.itemLinkBg,borderColor:l.colorBorder},[`&:hover ${v}-item-link`]:{borderColor:l.colorPrimary,backgroundColor:l.itemBg,color:l.colorPrimary},[`&${v}-disabled`]:{[`${v}-item-link`]:{borderColor:l.colorBorder,color:l.colorTextDisabled}}},[`${v}-item`]:{backgroundColor:l.itemBg,border:`${(0,et.unit)(l.lineWidth)} ${l.lineType} ${l.colorBorder}`,[`&:hover:not(${v}-item-active)`]:{borderColor:l.colorPrimary,backgroundColor:l.itemBg,a:{color:l.colorPrimary}},"&-active":{borderColor:l.colorPrimary}}}}};var V=(0,Oe.bk)(["Pagination","bordered"],l=>{const v=A(l);return[u(v)]},ce);function K(l){return(0,e.useMemo)(()=>typeof l=="boolean"?[l,{}]:l&&typeof l=="object"?[!0,l]:[void 0,void 0],[l])}var y=function(l,v){var Me={};for(var de in l)Object.prototype.hasOwnProperty.call(l,de)&&v.indexOf(de)<0&&(Me[de]=l[de]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,de=Object.getOwnPropertySymbols(l);Ie{const{align:v,prefixCls:Me,selectPrefixCls:de,className:Ie,rootClassName:Be,style:Te,size:Ue,locale:je,responsive:x,showSizeChanger:te,selectComponentClass:Ce,pageSizeOptions:De}=l,C=y(l,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:k}=(0,T.Z)(x),[,G]=(0,me.ZP)(),{getPrefixCls:ve,direction:ze,showSizeChanger:Ke,className:ut,style:pt}=(0,U.dj)("pagination"),tt=ve("pagination",Me),[mt,ke,rt]=r(tt),ot=(0,c.Z)(Ue),xt=ot==="small"||!!(k&&!ot&&x),[gt]=(0,ne.Z)("Pagination",M.Z),Pt=Object.assign(Object.assign({},gt),je),[Mt,Gt]=K(te),[rn,Ht]=K(Ke),At=Mt!=null?Mt:rn,vn=Gt!=null?Gt:Ht,Bt=Ce||q.default,mn=e.useMemo(()=>De?De.map(R=>Number(R)):void 0,[De]),pn=R=>{var $;const{disabled:He,size:Pe,onSizeChange:Ae,"aria-label":qe,className:Fe,options:at}=R,{className:Ct,onChange:bt}=vn||{},vt=($=at.find(zt=>String(zt.value)===String(Pe)))===null||$===void 0?void 0:$.value;return e.createElement(Bt,Object.assign({disabled:He,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:zt=>zt.parentNode,"aria-label":qe,options:at},vn,{value:vt,onChange:(zt,Kt)=>{Ae==null||Ae(zt),bt==null||bt(zt,Kt)},size:xt?"small":"middle",className:I()(Fe,Ct)}))},en=e.useMemo(()=>{const R=e.createElement("span",{className:`${tt}-item-ellipsis`},"\u2022\u2022\u2022"),$=e.createElement("button",{className:`${tt}-item-link`,type:"button",tabIndex:-1},ze==="rtl"?e.createElement(X.Z,null):e.createElement(n.Z,null)),He=e.createElement("button",{className:`${tt}-item-link`,type:"button",tabIndex:-1},ze==="rtl"?e.createElement(n.Z,null):e.createElement(X.Z,null)),Pe=e.createElement("a",{className:`${tt}-item-link`},e.createElement("div",{className:`${tt}-item-container`},ze==="rtl"?e.createElement(F.Z,{className:`${tt}-item-link-icon`}):e.createElement(D,{className:`${tt}-item-link-icon`}),R)),Ae=e.createElement("a",{className:`${tt}-item-link`},e.createElement("div",{className:`${tt}-item-container`},ze==="rtl"?e.createElement(D,{className:`${tt}-item-link-icon`}):e.createElement(F.Z,{className:`${tt}-item-link-icon`}),R));return{prevIcon:$,nextIcon:He,jumpPrevIcon:Pe,jumpNextIcon:Ae}},[ze,tt]),b=ve("select",de),O=I()({[`${tt}-${v}`]:!!v,[`${tt}-mini`]:xt,[`${tt}-rtl`]:ze==="rtl",[`${tt}-bordered`]:G.wireframe},ut,Ie,Be,ke,rt),it=Object.assign(Object.assign({},pt),Te);return mt(e.createElement(e.Fragment,null,G.wireframe&&e.createElement(V,{prefixCls:tt}),e.createElement(le,Object.assign({},en,C,{style:it,prefixCls:tt,selectPrefixCls:b,className:O,locale:Pt,pageSizeOptions:mn,showSizeChanger:At,sizeChangerRender:pn}))))},J=L},89787:function(Yt,Ge,t){t.d(Ge,{Z:function(){return je}});var e=t(59301),m=t(17835),p=t(29679),Q=t(40001),N=t(19248),P=t(99267),g=t(92310),D=t.n(g),F=t(2738),n=t(48755),X=t(54476),w=t(33885),I=t(75931),xe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ne=function(){var te=(0,e.useRef)([]),Ce=(0,e.useRef)(null);return(0,e.useEffect)(function(){var De=Date.now(),C=!1;te.current.forEach(function(k){if(k){C=!0;var G=k.style;G.transitionDuration=".3s, .3s, .3s, .06s",Ce.current&&De-Ce.current<100&&(G.transitionDuration="0s, 0s")}}),C&&(Ce.current=Date.now())}),te.current},pe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],se=function(te){var Ce=(0,w.Z)((0,w.Z)({},xe),te),De=Ce.className,C=Ce.percent,k=Ce.prefixCls,G=Ce.strokeColor,ve=Ce.strokeLinecap,ze=Ce.strokeWidth,Ke=Ce.style,ut=Ce.trailColor,pt=Ce.trailWidth,tt=Ce.transition,mt=(0,I.Z)(Ce,pe);delete mt.gapPosition;var ke=Array.isArray(C)?C:[C],rt=Array.isArray(G)?G:[G],ot=Ne(),xt=ze/2,gt=100-ze/2,Pt="M ".concat(ve==="round"?xt:0,",").concat(xt,` + L `).concat(ve==="round"?gt:100,",").concat(xt),Mt="0 0 100 ".concat(ze),Gt=0;return e.createElement("svg",(0,X.Z)({className:D()("".concat(k,"-line"),De),viewBox:Mt,preserveAspectRatio:"none",style:Ke},mt),e.createElement("path",{className:"".concat(k,"-line-trail"),d:Pt,strokeLinecap:ve,stroke:ut,strokeWidth:pt||ze,fillOpacity:"0"}),ke.map(function(rn,Ht){var At=1;switch(ve){case"round":At=1-ze/100;break;case"square":At=1-ze/2/100;break;default:At=1;break}var vn={strokeDasharray:"".concat(rn*At,"px, 100px"),strokeDashoffset:"-".concat(Gt,"px"),transition:tt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bt=rt[Ht]||rt[rt.length-1];return Gt+=rn,e.createElement("path",{key:Ht,className:"".concat(k,"-line-path"),d:Pt,strokeLinecap:ve,stroke:Bt,strokeWidth:ze,fillOpacity:"0",ref:function(pn){ot[Ht]=pn},style:vn})}))},Se=se,h=t(76190),fe=t(42978),s=t(47273),d=0,Y=(0,s.Z)();function ee(){var x;return Y?(x=d,d+=1):x="TEST_OR_SSR",x}var _=function(x){var te=e.useState(),Ce=(0,fe.Z)(te,2),De=Ce[0],C=Ce[1];return e.useEffect(function(){C("rc_progress_".concat(ee()))},[]),x||De},Ve=function(te){var Ce=te.bg,De=te.children;return e.createElement("div",{style:{width:"100%",height:"100%",background:Ce}},De)};function Ee(x,te){return Object.keys(x).map(function(Ce){var De=parseFloat(Ce),C="".concat(Math.floor(De*te),"%");return"".concat(x[Ce]," ").concat(C)})}var ae=e.forwardRef(function(x,te){var Ce=x.prefixCls,De=x.color,C=x.gradientId,k=x.radius,G=x.style,ve=x.ptg,ze=x.strokeLinecap,Ke=x.strokeWidth,ut=x.size,pt=x.gapDegree,tt=De&&(0,h.Z)(De)==="object",mt=tt?"#FFF":void 0,ke=ut/2,rt=e.createElement("circle",{className:"".concat(Ce,"-circle-path"),r:k,cx:ke,cy:ke,stroke:mt,strokeLinecap:ze,strokeWidth:Ke,opacity:ve===0?0:1,style:G,ref:te});if(!tt)return rt;var ot="".concat(C,"-conic"),xt=pt?"".concat(180+pt/2,"deg"):"0deg",gt=Ee(De,(360-pt)/360),Pt=Ee(De,1),Mt="conic-gradient(from ".concat(xt,", ").concat(gt.join(", "),")"),Gt="linear-gradient(to ".concat(pt?"bottom":"top",", ").concat(Pt.join(", "),")");return e.createElement(e.Fragment,null,e.createElement("mask",{id:ot},rt),e.createElement("foreignObject",{x:0,y:0,width:ut,height:ut,mask:"url(#".concat(ot,")")},e.createElement(Ve,{bg:Gt},e.createElement(Ve,{bg:Mt}))))}),ge=ae,re=100,S=function(te,Ce,De,C,k,G,ve,ze,Ke,ut){var pt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,tt=De/100*360*((360-G)/360),mt=G===0?0:{bottom:0,top:180,left:90,right:-90}[ve],ke=(100-C)/100*Ce;Ke==="round"&&C!==100&&(ke+=ut/2,ke>=Ce&&(ke=Ce-.01));var rt=re/2;return{stroke:typeof ze=="string"?ze:void 0,strokeDasharray:"".concat(Ce,"px ").concat(te),strokeDashoffset:ke+pt,transform:"rotate(".concat(k+tt+mt,"deg)"),transformOrigin:"".concat(rt,"px ").concat(rt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},i=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function le(x){var te=x!=null?x:[];return Array.isArray(te)?te:[te]}var M=function(te){var Ce=(0,w.Z)((0,w.Z)({},xe),te),De=Ce.id,C=Ce.prefixCls,k=Ce.steps,G=Ce.strokeWidth,ve=Ce.trailWidth,ze=Ce.gapDegree,Ke=ze===void 0?0:ze,ut=Ce.gapPosition,pt=Ce.trailColor,tt=Ce.strokeLinecap,mt=Ce.style,ke=Ce.className,rt=Ce.strokeColor,ot=Ce.percent,xt=(0,I.Z)(Ce,i),gt=re/2,Pt=_(De),Mt="".concat(Pt,"-gradient"),Gt=gt-G/2,rn=Math.PI*2*Gt,Ht=Ke>0?90+Ke/2:-90,At=rn*((360-Ke)/360),vn=(0,h.Z)(k)==="object"?k:{count:k,gap:2},Bt=vn.count,mn=vn.gap,pn=le(ot),en=le(rt),b=en.find(function(Ae){return Ae&&(0,h.Z)(Ae)==="object"}),O=b&&(0,h.Z)(b)==="object",it=O?"butt":tt,R=S(rn,At,0,100,Ht,Ke,ut,pt,it,G),$=Ne(),He=function(){var qe=0;return pn.map(function(Fe,at){var Ct=en[at]||en[en.length-1],bt=S(rn,At,qe,Fe,Ht,Ke,ut,Ct,it,G);return qe+=Fe,e.createElement(ge,{key:at,color:Ct,ptg:Fe,radius:Gt,prefixCls:C,gradientId:Mt,style:bt,strokeLinecap:it,strokeWidth:G,gapDegree:Ke,ref:function(zt){$[at]=zt},size:re})}).reverse()},Pe=function(){var qe=Math.round(Bt*(pn[0]/100)),Fe=100/Bt,at=0;return new Array(Bt).fill(null).map(function(Ct,bt){var vt=bt<=qe-1?en[0]:pt,zt=vt&&(0,h.Z)(vt)==="object"?"url(#".concat(Mt,")"):void 0,Kt=S(rn,At,at,Fe,Ht,Ke,ut,vt,"butt",G,mn);return at+=(At-Kt.strokeDashoffset+mn)*100/At,e.createElement("circle",{key:bt,className:"".concat(C,"-circle-path"),r:Gt,cx:gt,cy:gt,stroke:zt,strokeWidth:G,opacity:1,style:Kt,ref:function(ue){$[bt]=ue}})})};return e.createElement("svg",(0,X.Z)({className:D()("".concat(C,"-circle"),ke),viewBox:"0 0 ".concat(re," ").concat(re),style:mt,id:De,role:"presentation"},xt),!Bt&&e.createElement("circle",{className:"".concat(C,"-circle-trail"),r:Gt,cx:gt,cy:gt,stroke:pt,strokeLinecap:it,strokeWidth:ve||G,style:R}),Bt?Pe():He())},U=M,c={Line:Se,Circle:U},T=t(25399),ne=t(68361);function q(x){return!x||x<0?0:x>100?100:x}function me(x){let{success:te,successPercent:Ce}=x,De=Ce;return te&&"progress"in te&&(De=te.progress),te&&"percent"in te&&(De=te.percent),De}const et=x=>{let{percent:te,success:Ce,successPercent:De}=x;const C=q(me({success:Ce,successPercent:De}));return[C,q(q(te)-C)]},W=x=>{let{success:te={},strokeColor:Ce}=x;const{strokeColor:De}=te;return[De||ne.presetPrimaryColors.green,Ce||null]},we=(x,te,Ce)=>{var De,C,k,G;let ve=-1,ze=-1;if(te==="step"){const Ke=Ce.steps,ut=Ce.strokeWidth;typeof x=="string"||typeof x=="undefined"?(ve=x==="small"?2:14,ze=ut!=null?ut:8):typeof x=="number"?[ve,ze]=[x,x]:[ve=14,ze=8]=Array.isArray(x)?x:[x.width,x.height],ve*=Ke}else if(te==="line"){const Ke=Ce==null?void 0:Ce.strokeWidth;typeof x=="string"||typeof x=="undefined"?ze=Ke||(x==="small"?6:8):typeof x=="number"?[ve,ze]=[x,x]:[ve=-1,ze=8]=Array.isArray(x)?x:[x.width,x.height]}else(te==="circle"||te==="dashboard")&&(typeof x=="string"||typeof x=="undefined"?[ve,ze]=x==="small"?[60,60]:[120,120]:typeof x=="number"?[ve,ze]=[x,x]:Array.isArray(x)&&(ve=(C=(De=x[0])!==null&&De!==void 0?De:x[1])!==null&&C!==void 0?C:120,ze=(G=(k=x[0])!==null&&k!==void 0?k:x[1])!==null&&G!==void 0?G:120));return[ve,ze]},he=3,Xe=x=>he/x*100;var Oe=x=>{const{prefixCls:te,trailColor:Ce=null,strokeLinecap:De="round",gapPosition:C,gapDegree:k,width:G=120,type:ve,children:ze,success:Ke,size:ut=G,steps:pt}=x,[tt,mt]=we(ut,"circle");let{strokeWidth:ke}=x;ke===void 0&&(ke=Math.max(Xe(tt),6));const rt={width:tt,height:mt,fontSize:tt*.15+6},ot=e.useMemo(()=>{if(k||k===0)return k;if(ve==="dashboard")return 75},[k,ve]),xt=et(x),gt=C||ve==="dashboard"&&"bottom"||void 0,Pt=Object.prototype.toString.call(x.strokeColor)==="[object Object]",Mt=W({success:Ke,strokeColor:x.strokeColor}),Gt=D()(`${te}-inner`,{[`${te}-circle-gradient`]:Pt}),rn=e.createElement(U,{steps:pt,percent:pt?xt[1]:xt,strokeWidth:ke,trailWidth:ke,strokeColor:pt?Mt[1]:Mt,strokeLinecap:De,trailColor:Ce,prefixCls:te,gapDegree:ot,gapPosition:gt}),Ht=tt<=20,At=e.createElement("div",{className:Gt,style:rt},rn,!Ht&&ze);return Ht?e.createElement(T.Z,{title:ze},At):At},ye=t(36237),ct=t(63356),Le=t(16931),oe=t(51636);const Z="--progress-line-stroke-color",H="--progress-percent",f=x=>{const te=x?"100%":"-100%";return new ye.Keyframes(`antProgress${x?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${te}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${te}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=x=>{const{componentCls:te,iconCls:Ce}=x;return{[te]:Object.assign(Object.assign({},(0,ct.Wf)(x)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:x.fontSize},[`${te}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${te}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:x.remainingColor,borderRadius:x.lineBorderRadius},[`${te}-inner:not(${te}-circle-gradient)`]:{[`${te}-circle-path`]:{stroke:x.defaultColor}},[`${te}-success-bg, ${te}-bg`]:{position:"relative",background:x.defaultColor,borderRadius:x.lineBorderRadius,transition:`all ${x.motionDurationSlow} ${x.motionEaseInOutCirc}`},[`${te}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${te}-text`]:{width:"max-content",marginInlineStart:0,marginTop:x.marginXXS}},[`${te}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Z})`]},height:"100%",width:`calc(1 / var(${H}) * 100%)`,display:"block"},[`&${te}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${te}-text-inner`]:{color:x.colorWhite,[`&${te}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${te}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:x.colorSuccess},[`${te}-text`]:{display:"inline-block",marginInlineStart:x.marginXS,color:x.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ce]:{fontSize:x.fontSize},[`&${te}-text-outer`]:{width:"max-content"},[`&${te}-text-outer${te}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:x.marginXS}},[`${te}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ye.unit)(x.paddingXXS)}`,[`&${te}-text-start`]:{justifyContent:"start"},[`&${te}-text-end`]:{justifyContent:"end"}},[`&${te}-status-active`]:{[`${te}-bg::before`]:{position:"absolute",inset:0,backgroundColor:x.colorBgContainer,borderRadius:x.lineBorderRadius,opacity:0,animationName:f(),animationDuration:x.progressActiveMotionDuration,animationTimingFunction:x.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${te}-rtl${te}-status-active`]:{[`${te}-bg::before`]:{animationName:f(!0)}},[`&${te}-status-exception`]:{[`${te}-bg`]:{backgroundColor:x.colorError},[`${te}-text`]:{color:x.colorError}},[`&${te}-status-exception ${te}-inner:not(${te}-circle-gradient)`]:{[`${te}-circle-path`]:{stroke:x.colorError}},[`&${te}-status-success`]:{[`${te}-bg`]:{backgroundColor:x.colorSuccess},[`${te}-text`]:{color:x.colorSuccess}},[`&${te}-status-success ${te}-inner:not(${te}-circle-gradient)`]:{[`${te}-circle-path`]:{stroke:x.colorSuccess}}})}},A=x=>{const{componentCls:te,iconCls:Ce}=x;return{[te]:{[`${te}-circle-trail`]:{stroke:x.remainingColor},[`&${te}-circle ${te}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${te}-circle ${te}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:x.circleTextColor,fontSize:x.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ce]:{fontSize:x.circleIconFontSize}},[`${te}-circle&-status-exception`]:{[`${te}-text`]:{color:x.colorError}},[`${te}-circle&-status-success`]:{[`${te}-text`]:{color:x.colorSuccess}}},[`${te}-inline-circle`]:{lineHeight:1,[`${te}-inner`]:{verticalAlign:"bottom"}}}},r=x=>{const{componentCls:te}=x;return{[te]:{[`${te}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:x.progressStepMinWidth,marginInlineEnd:x.progressStepMarginInlineEnd,backgroundColor:x.remainingColor,transition:`all ${x.motionDurationSlow}`,"&-active":{backgroundColor:x.defaultColor}}}}}},u=x=>{const{componentCls:te,iconCls:Ce}=x;return{[te]:{[`${te}-small&-line, ${te}-small&-line ${te}-text ${Ce}`]:{fontSize:x.fontSizeSM}}}},V=x=>({circleTextColor:x.colorText,defaultColor:x.colorInfo,remainingColor:x.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${x.fontSize/x.fontSizeSM}em`});var K=(0,Le.I$)("Progress",x=>{const te=x.calc(x.marginXXS).div(2).equal(),Ce=(0,oe.mergeToken)(x,{progressStepMarginInlineEnd:te,progressStepMinWidth:te,progressActiveMotionDuration:"2.4s"});return[ce(Ce),A(Ce),r(Ce),u(Ce)]},V),y=function(x,te){var Ce={};for(var De in x)Object.prototype.hasOwnProperty.call(x,De)&&te.indexOf(De)<0&&(Ce[De]=x[De]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,De=Object.getOwnPropertySymbols(x);C{let te=[];return Object.keys(x).forEach(Ce=>{const De=parseFloat(Ce.replace(/%/g,""));Number.isNaN(De)||te.push({key:De,value:x[Ce]})}),te=te.sort((Ce,De)=>Ce.key-De.key),te.map(Ce=>{let{key:De,value:C}=Ce;return`${C} ${De}%`}).join(", ")},L=(x,te)=>{const{from:Ce=ne.presetPrimaryColors.blue,to:De=ne.presetPrimaryColors.blue,direction:C=te==="rtl"?"to left":"to right"}=x,k=y(x,["from","to","direction"]);if(Object.keys(k).length!==0){const ve=z(k),ze=`linear-gradient(${C}, ${ve})`;return{background:ze,[Z]:ze}}const G=`linear-gradient(${C}, ${Ce}, ${De})`;return{background:G,[Z]:G}};var l=x=>{const{prefixCls:te,direction:Ce,percent:De,size:C,strokeWidth:k,strokeColor:G,strokeLinecap:ve="round",children:ze,trailColor:Ke=null,percentPosition:ut,success:pt}=x,{align:tt,type:mt}=ut,ke=G&&typeof G!="string"?L(G,Ce):{[Z]:G,background:G},rt=ve==="square"||ve==="butt"?0:void 0,ot=C!=null?C:[-1,k||(C==="small"?6:8)],[xt,gt]=we(ot,"line",{strokeWidth:k}),Pt={backgroundColor:Ke||void 0,borderRadius:rt},Mt=Object.assign(Object.assign({width:`${q(De)}%`,height:gt,borderRadius:rt},ke),{[H]:q(De)/100}),Gt=me(x),rn={width:`${q(Gt)}%`,height:gt,borderRadius:rt,backgroundColor:pt==null?void 0:pt.strokeColor},Ht={width:xt<0?"100%":xt},At=e.createElement("div",{className:`${te}-inner`,style:Pt},e.createElement("div",{className:D()(`${te}-bg`,`${te}-bg-${mt}`),style:Mt},mt==="inner"&&ze),Gt!==void 0&&e.createElement("div",{className:`${te}-success-bg`,style:rn})),vn=mt==="outer"&&tt==="start",Bt=mt==="outer"&&tt==="end";return mt==="outer"&&tt==="center"?e.createElement("div",{className:`${te}-layout-bottom`},At,ze):e.createElement("div",{className:`${te}-outer`,style:Ht},vn&&ze,At,Bt&&ze)},Me=x=>{const{size:te,steps:Ce,rounding:De=Math.round,percent:C=0,strokeWidth:k=8,strokeColor:G,trailColor:ve=null,prefixCls:ze,children:Ke}=x,ut=De(Ce*(C/100)),pt=te==="small"?2:14,tt=te!=null?te:[pt,k],[mt,ke]=we(tt,"step",{steps:Ce,strokeWidth:k}),rt=mt/Ce,ot=Array.from({length:Ce});for(let xt=0;xt{const{prefixCls:Ce,className:De,rootClassName:C,steps:k,strokeColor:G,percent:ve=0,size:ze="default",showInfo:Ke=!0,type:ut="line",status:pt,format:tt,style:mt,percentPosition:ke={}}=x,rt=de(x,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:ot="end",type:xt="outer"}=ke,gt=Array.isArray(G)?G[0]:G,Pt=typeof G=="string"||Array.isArray(G)?G:void 0,Mt=e.useMemo(()=>{if(gt){const He=typeof gt=="string"?gt:Object.values(gt)[0];return new m.FastColor(He).isLight()}return!1},[G]),Gt=e.useMemo(()=>{var He,Pe;const Ae=me(x);return parseInt(Ae!==void 0?(He=Ae!=null?Ae:0)===null||He===void 0?void 0:He.toString():(Pe=ve!=null?ve:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[ve,x.success,x.successPercent]),rn=e.useMemo(()=>!Be.includes(pt)&&Gt>=100?"success":pt||"normal",[pt,Gt]),{getPrefixCls:Ht,direction:At,progress:vn}=e.useContext(n.E_),Bt=Ht("progress",Ce),[mn,pn,en]=K(Bt),b=ut==="line",O=b&&!k,it=e.useMemo(()=>{if(!Ke)return null;const He=me(x);let Pe;const Ae=tt||(Fe=>`${Fe}%`),qe=b&&Mt&&xt==="inner";return xt==="inner"||tt||rn!=="exception"&&rn!=="success"?Pe=Ae(q(ve),q(He)):rn==="exception"?Pe=b?e.createElement(N.Z,null):e.createElement(P.Z,null):rn==="success"&&(Pe=b?e.createElement(p.Z,null):e.createElement(Q.Z,null)),e.createElement("span",{className:D()(`${Bt}-text`,{[`${Bt}-text-bright`]:qe,[`${Bt}-text-${ot}`]:O,[`${Bt}-text-${xt}`]:O}),title:typeof Pe=="string"?Pe:void 0},Pe)},[Ke,ve,Gt,rn,ut,Bt,tt]);let R;ut==="line"?R=k?e.createElement(Me,Object.assign({},x,{strokeColor:Pt,prefixCls:Bt,steps:typeof k=="object"?k.count:k}),it):e.createElement(l,Object.assign({},x,{strokeColor:gt,prefixCls:Bt,direction:At,percentPosition:{align:ot,type:xt}}),it):(ut==="circle"||ut==="dashboard")&&(R=e.createElement(Oe,Object.assign({},x,{strokeColor:gt,prefixCls:Bt,progressStatus:rn}),it));const $=D()(Bt,`${Bt}-status-${rn}`,{[`${Bt}-${ut==="dashboard"&&"circle"||ut}`]:ut!=="line",[`${Bt}-inline-circle`]:ut==="circle"&&we(ze,"circle")[0]<=20,[`${Bt}-line`]:O,[`${Bt}-line-align-${ot}`]:O,[`${Bt}-line-position-${xt}`]:O,[`${Bt}-steps`]:k,[`${Bt}-show-info`]:Ke,[`${Bt}-${ze}`]:typeof ze=="string",[`${Bt}-rtl`]:At==="rtl"},vn==null?void 0:vn.className,De,C,pn,en);return mn(e.createElement("div",Object.assign({ref:te,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),mt),className:$,role:"progressbar","aria-valuenow":Gt,"aria-valuemin":0,"aria-valuemax":100},(0,F.Z)(rt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}),je=Ue},47889:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return et}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(18929),N=t(26112),P=t(48755),g=t(83397),D=t(31756);const F=e.createContext(null),n=F.Provider;var X=F;const w=e.createContext(null),I=w.Provider;var xe=t(16632),Ne=t(8654),pe=t(12919),se=t(63872),Se=t(74632),h=t(2171),fe=t(56553),s=t(36237),d=t(63356),Y=t(16931),ee=t(51636);const _=W=>{const{componentCls:we,antCls:he}=W,Xe=`${we}-group`;return{[Xe]:Object.assign(Object.assign({},(0,d.Wf)(W)),{display:"inline-block",fontSize:0,[`&${Xe}-rtl`]:{direction:"rtl"},[`&${Xe}-block`]:{display:"flex"},[`${he}-badge ${he}-badge-count`]:{zIndex:1},[`> ${he}-badge:not(:first-child) > ${he}-button-wrapper`]:{borderInlineStart:"none"}})}},Ve=W=>{const{componentCls:we,wrapperMarginInlineEnd:he,colorPrimary:Xe,radioSize:B,motionDurationSlow:Oe,motionDurationMid:ye,motionEaseInOutCirc:ct,colorBgContainer:Le,colorBorder:oe,lineWidth:Z,colorBgContainerDisabled:H,colorTextDisabled:f,paddingXS:ce,dotColorDisabled:A,lineType:r,radioColor:u,radioBgColor:V,calc:K}=W,y=`${we}-inner`,L=K(B).sub(K(4).mul(2)),J=K(1).mul(B).equal({unit:!0});return{[`${we}-wrapper`]:Object.assign(Object.assign({},(0,d.Wf)(W)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:he,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${we}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:W.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${we}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,s.unit)(Z)} ${r} ${Xe}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[we]:Object.assign(Object.assign({},(0,d.Wf)(W)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${we}-wrapper:hover &, + &:hover ${y}`]:{borderColor:Xe},[`${we}-input:focus-visible + ${y}`]:Object.assign({},(0,d.oN)(W)),[`${we}:hover::after, ${we}-wrapper:hover &::after`]:{visibility:"visible"},[`${we}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:J,height:J,marginBlockStart:K(1).mul(B).div(-2).equal({unit:!0}),marginInlineStart:K(1).mul(B).div(-2).equal({unit:!0}),backgroundColor:u,borderBlockStart:0,borderInlineStart:0,borderRadius:J,transform:"scale(0)",opacity:0,transition:`all ${Oe} ${ct}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:J,height:J,backgroundColor:Le,borderColor:oe,borderStyle:"solid",borderWidth:Z,borderRadius:"50%",transition:`all ${ye}`},[`${we}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${we}-checked`]:{[y]:{borderColor:Xe,backgroundColor:V,"&::after":{transform:`scale(${W.calc(W.dotSize).div(B).equal()})`,opacity:1,transition:`all ${Oe} ${ct}`}}},[`${we}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:H,borderColor:oe,cursor:"not-allowed","&::after":{backgroundColor:A}},[`${we}-input`]:{cursor:"not-allowed"},[`${we}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${we}-checked`]:{[y]:{"&::after":{transform:`scale(${K(L).div(B).equal()})`}}}},[`span${we} + *`]:{paddingInlineStart:ce,paddingInlineEnd:ce}})}},Ee=W=>{const{buttonColor:we,controlHeight:he,componentCls:Xe,lineWidth:B,lineType:Oe,colorBorder:ye,motionDurationSlow:ct,motionDurationMid:Le,buttonPaddingInline:oe,fontSize:Z,buttonBg:H,fontSizeLG:f,controlHeightLG:ce,controlHeightSM:A,paddingXS:r,borderRadius:u,borderRadiusSM:V,borderRadiusLG:K,buttonCheckedBg:y,buttonSolidCheckedColor:z,colorTextDisabled:L,colorBgContainerDisabled:J,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:v,colorPrimary:Me,colorPrimaryHover:de,colorPrimaryActive:Ie,buttonSolidCheckedBg:Be,buttonSolidCheckedHoverBg:Te,buttonSolidCheckedActiveBg:Ue,calc:je}=W;return{[`${Xe}-button-wrapper`]:{position:"relative",display:"inline-block",height:he,margin:0,paddingInline:oe,paddingBlock:0,color:we,fontSize:Z,lineHeight:(0,s.unit)(je(he).sub(je(B).mul(2)).equal()),background:H,border:`${(0,s.unit)(B)} ${Oe} ${ye}`,borderBlockStartWidth:je(B).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:B,cursor:"pointer",transition:[`color ${Le}`,`background ${Le}`,`box-shadow ${Le}`].join(","),a:{color:we},[`> ${Xe}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:je(B).mul(-1).equal(),insetInlineStart:je(B).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:B,paddingInline:0,backgroundColor:ye,transition:`background-color ${ct}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,s.unit)(B)} ${Oe} ${ye}`,borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u},"&:first-child:last-child":{borderRadius:u},[`${Xe}-group-large &`]:{height:ce,fontSize:f,lineHeight:(0,s.unit)(je(ce).sub(je(B).mul(2)).equal()),"&:first-child":{borderStartStartRadius:K,borderEndStartRadius:K},"&:last-child":{borderStartEndRadius:K,borderEndEndRadius:K}},[`${Xe}-group-small &`]:{height:A,paddingInline:je(r).sub(B).equal(),paddingBlock:0,lineHeight:(0,s.unit)(je(A).sub(je(B).mul(2)).equal()),"&:first-child":{borderStartStartRadius:V,borderEndStartRadius:V},"&:last-child":{borderStartEndRadius:V,borderEndEndRadius:V}},"&:hover":{position:"relative",color:Me},"&:has(:focus-visible)":Object.assign({},(0,d.oN)(W)),[`${Xe}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Xe}-button-wrapper-disabled)`]:{zIndex:1,color:Me,background:y,borderColor:Me,"&::before":{backgroundColor:Me},"&:first-child":{borderColor:Me},"&:hover":{color:de,borderColor:de,"&::before":{backgroundColor:de}},"&:active":{color:Ie,borderColor:Ie,"&::before":{backgroundColor:Ie}}},[`${Xe}-group-solid &-checked:not(${Xe}-button-wrapper-disabled)`]:{color:z,background:Be,borderColor:Be,"&:hover":{color:z,background:Te,borderColor:Te},"&:active":{color:z,background:Ue,borderColor:Ue}},"&-disabled":{color:L,backgroundColor:J,borderColor:ye,cursor:"not-allowed","&:first-child, &:hover":{color:L,backgroundColor:J,borderColor:ye}},[`&-disabled${Xe}-button-wrapper-checked`]:{color:v,backgroundColor:l,borderColor:ye,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},ae=W=>{const{wireframe:we,padding:he,marginXS:Xe,lineWidth:B,fontSizeLG:Oe,colorText:ye,colorBgContainer:ct,colorTextDisabled:Le,controlItemBgActiveDisabled:oe,colorTextLightSolid:Z,colorPrimary:H,colorPrimaryHover:f,colorPrimaryActive:ce,colorWhite:A}=W,r=4,u=Oe,V=we?u-r*2:u-(r+B)*2;return{radioSize:u,dotSize:V,dotColorDisabled:Le,buttonSolidCheckedColor:Z,buttonSolidCheckedBg:H,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:ce,buttonBg:ct,buttonCheckedBg:ct,buttonColor:ye,buttonCheckedBgDisabled:oe,buttonCheckedColorDisabled:Le,buttonPaddingInline:he-B,wrapperMarginInlineEnd:Xe,radioColor:we?H:A,radioBgColor:we?ct:H}};var ge=(0,Y.I$)("Radio",W=>{const{controlOutline:we,controlOutlineWidth:he}=W,Xe=`0 0 0 ${(0,s.unit)(he)} ${we}`,B=Xe,Oe=(0,ee.mergeToken)(W,{radioFocusShadow:Xe,radioButtonFocusShadow:B});return[_(Oe),Ve(Oe),Ee(Oe)]},ae,{unitless:{radioSize:!0,dotSize:!0}}),re=function(W,we){var he={};for(var Xe in W)Object.prototype.hasOwnProperty.call(W,Xe)&&we.indexOf(Xe)<0&&(he[Xe]=W[Xe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,Xe=Object.getOwnPropertySymbols(W);B{var he,Xe;const B=e.useContext(X),Oe=e.useContext(w),{getPrefixCls:ye,direction:ct,radio:Le}=e.useContext(P.E_),oe=e.useRef(null),Z=(0,Ne.sQ)(we,oe),{isFormItemInput:H}=e.useContext(fe.aM),f=x=>{var te,Ce;(te=W.onChange)===null||te===void 0||te.call(W,x),(Ce=B==null?void 0:B.onChange)===null||Ce===void 0||Ce.call(B,x)},{prefixCls:ce,className:A,rootClassName:r,children:u,style:V,title:K}=W,y=re(W,["prefixCls","className","rootClassName","children","style","title"]),z=ye("radio",ce),L=((B==null?void 0:B.optionType)||Oe)==="button",J=L?`${z}-button`:z,l=(0,g.Z)(z),[v,Me,de]=ge(z,l),Ie=Object.assign({},y),Be=e.useContext(h.Z);B&&(Ie.name=B.name,Ie.onChange=f,Ie.checked=W.value===B.value,Ie.disabled=(he=Ie.disabled)!==null&&he!==void 0?he:B.disabled),Ie.disabled=(Xe=Ie.disabled)!==null&&Xe!==void 0?Xe:Be;const Te=p()(`${J}-wrapper`,{[`${J}-wrapper-checked`]:Ie.checked,[`${J}-wrapper-disabled`]:Ie.disabled,[`${J}-wrapper-rtl`]:ct==="rtl",[`${J}-wrapper-in-form-item`]:H,[`${J}-wrapper-block`]:!!(B!=null&&B.block)},Le==null?void 0:Le.className,A,r,Me,de,l),[Ue,je]=(0,Se.Z)(Ie.onClick);return v(e.createElement(pe.Z,{component:"Radio",disabled:Ie.disabled},e.createElement("label",{className:Te,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),V),onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,title:K,onClick:Ue},e.createElement(xe.Z,Object.assign({},Ie,{className:p()(Ie.className,{[se.A]:!L}),type:"radio",prefixCls:J,ref:Z,onClick:je})),u!==void 0?e.createElement("span",{className:`${J}-label`},u):null)))};var le=e.forwardRef(S),M=t(80402);const U=e.forwardRef((W,we)=>{const{getPrefixCls:he,direction:Xe}=e.useContext(P.E_),B=(0,M.Z)(),{prefixCls:Oe,className:ye,rootClassName:ct,options:Le,buttonStyle:oe="outline",disabled:Z,children:H,size:f,style:ce,id:A,optionType:r,name:u=B,defaultValue:V,value:K,block:y=!1,onChange:z,onMouseEnter:L,onMouseLeave:J,onFocus:l,onBlur:v}=W,[Me,de]=(0,Q.Z)(V,{value:K}),Ie=e.useCallback(G=>{const ve=Me,ze=G.target.value;"value"in W||de(ze),ze!==ve&&(z==null||z(G))},[Me,de,z]),Be=he("radio",Oe),Te=`${Be}-group`,Ue=(0,g.Z)(Be),[je,x,te]=ge(Be,Ue);let Ce=H;Le&&Le.length>0&&(Ce=Le.map(G=>typeof G=="string"||typeof G=="number"?e.createElement(le,{key:G.toString(),prefixCls:Be,disabled:Z,value:G,checked:Me===G},G):e.createElement(le,{key:`radio-group-value-options-${G.value}`,prefixCls:Be,disabled:G.disabled||Z,value:G.value,checked:Me===G.value,title:G.title,style:G.style,id:G.id,required:G.required},G.label)));const De=(0,D.Z)(f),C=p()(Te,`${Te}-${oe}`,{[`${Te}-${De}`]:De,[`${Te}-rtl`]:Xe==="rtl",[`${Te}-block`]:y},ye,ct,x,te,Ue),k=e.useMemo(()=>({onChange:Ie,value:Me,disabled:Z,name:u,optionType:r,block:y}),[Ie,Me,Z,u,r,y]);return je(e.createElement("div",Object.assign({},(0,N.Z)(W,{aria:!0,data:!0}),{className:C,style:ce,onMouseEnter:L,onMouseLeave:J,onFocus:l,onBlur:v,id:A,ref:we}),e.createElement(n,{value:k},Ce)))});var c=e.memo(U),T=function(W,we){var he={};for(var Xe in W)Object.prototype.hasOwnProperty.call(W,Xe)&&we.indexOf(Xe)<0&&(he[Xe]=W[Xe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,Xe=Object.getOwnPropertySymbols(W);B{const{getPrefixCls:he}=e.useContext(P.E_),{prefixCls:Xe}=W,B=T(W,["prefixCls"]),Oe=he("radio",Xe);return e.createElement(I,{value:"button"},e.createElement(le,Object.assign({prefixCls:Oe},B,{type:"radio",ref:we})))};var q=e.forwardRef(ne);const me=le;me.Button=q,me.Group=c,me.__ANT_RADIO=!0;var et=me},82326:function(Yt,Ge,t){var e=t(59301),m=t(92310),p=t.n(m),Q=t(37463),N=t(2738),P=t(75030),g=t(86641),D=t(45915),F=t(82855),n=t(48755),X=t(38406),w=t(2171),I=t(83397),xe=t(31756),Ne=t(56553),pe=t(24971),se=t(70045),Se=t(57700),h=t(1722),fe=t(90376),s=t(68525),d=t(90005),Y=function(ae,ge){var re={};for(var S in ae)Object.prototype.hasOwnProperty.call(ae,S)&&ge.indexOf(S)<0&&(re[S]=ae[S]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,S=Object.getOwnPropertySymbols(ae);i{var re;const{prefixCls:S,bordered:i,className:le,rootClassName:M,getPopupContainer:U,popupClassName:c,dropdownClassName:T,listHeight:ne=256,placement:q,listItemHeight:me,size:et,disabled:W,notFoundContent:we,status:he,builtinPlacements:Xe,dropdownMatchSelectWidth:B,popupMatchSelectWidth:Oe,direction:ye,style:ct,allowClear:Le,variant:oe,dropdownStyle:Z,transitionName:H,tagRender:f,maxCount:ce,prefix:A}=ae,r=Y(ae,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:u,getPrefixCls:V,renderEmpty:K,direction:y,virtual:z,popupMatchSelectWidth:L,popupOverflow:J}=e.useContext(n.E_),l=(0,n.dj)("select"),[,v]=(0,Se.ZP)(),Me=me!=null?me:v==null?void 0:v.controlHeight,de=V("select",S),Ie=V(),Be=ye!=null?ye:y,{compactSize:Te,compactItemClassnames:Ue}=(0,se.ri)(de,Be),[je,x]=(0,pe.Z)("select",oe,i),te=(0,I.Z)(de),[Ce,De,C]=(0,fe.Z)(de,te),k=e.useMemo(()=>{const{mode:pn}=ae;if(pn!=="combobox")return pn===ee?"combobox":pn},[ae.mode]),G=k==="multiple"||k==="tags",ve=(0,d.Z)(ae.suffixIcon,ae.showArrow),ze=(re=Oe!=null?Oe:B)!==null&&re!==void 0?re:L,{status:Ke,hasFeedback:ut,isFormItemInput:pt,feedbackIcon:tt}=e.useContext(Ne.aM),mt=(0,F.F)(Ke,he);let ke;we!==void 0?ke=we:k==="combobox"?ke=null:ke=(K==null?void 0:K("Select"))||e.createElement(X.Z,{componentName:"Select"});const{suffixIcon:rt,itemIcon:ot,removeIcon:xt,clearIcon:gt}=(0,s.Z)(Object.assign(Object.assign({},r),{multiple:G,hasFeedback:ut,feedbackIcon:tt,showSuffixIcon:ve,prefixCls:de,componentName:"Select"})),Pt=Le===!0?{clearIcon:gt}:Le,Mt=(0,N.Z)(r,["suffixIcon","itemIcon"]),Gt=p()(c||T,{[`${de}-dropdown-${Be}`]:Be==="rtl"},M,C,te,De),rn=(0,xe.Z)(pn=>{var en;return(en=et!=null?et:Te)!==null&&en!==void 0?en:pn}),Ht=e.useContext(w.Z),At=W!=null?W:Ht,vn=p()({[`${de}-lg`]:rn==="large",[`${de}-sm`]:rn==="small",[`${de}-rtl`]:Be==="rtl",[`${de}-${je}`]:x,[`${de}-in-form-item`]:pt},(0,F.Z)(de,mt,ut),Ue,l.className,le,M,C,te,De),Bt=e.useMemo(()=>q!==void 0?q:Be==="rtl"?"bottomRight":"bottomLeft",[q,Be]),[mn]=(0,P.Cn)("SelectLike",Z==null?void 0:Z.zIndex);return Ce(e.createElement(Q.ZP,Object.assign({ref:ge,virtual:z,showSearch:l.showSearch},Mt,{style:Object.assign(Object.assign({},l.style),ct),dropdownMatchSelectWidth:ze,transitionName:(0,g.m)(Ie,"slide-up",H),builtinPlacements:(0,h.Z)(Xe,J),listHeight:ne,listItemHeight:Me,mode:k,prefixCls:de,placement:Bt,direction:Be,prefix:A,suffixIcon:rt,menuItemSelectedIcon:ot,removeIcon:xt,allowClear:Pt,notFoundContent:ke,className:vn,getPopupContainer:U||u,dropdownClassName:Gt,disabled:At,dropdownStyle:Object.assign(Object.assign({},Z),{zIndex:mn}),maxCount:G?ce:void 0,tagRender:G?f:void 0})))},Ve=e.forwardRef(_),Ee=(0,D.Z)(Ve,"dropdownAlign");Ve.SECRET_COMBOBOX_MODE_DO_NOT_USE=ee,Ve.Option=Q.Wx,Ve.OptGroup=Q.Xo,Ve._InternalPanelDoNotUseOrYouWillBeFired=Ee,Ge.default=Ve},1722:function(Yt,Ge){const t=m=>{const Q={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:m==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Q),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Q),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Q),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Q),{points:["br","tr"],offset:[0,-4]})}};function e(m,p){return m||t(p)}Ge.Z=e},90376:function(Yt,Ge,t){t.d(Ge,{Z:function(){return S}});var e=t(63356),m=t(56119),p=t(16931),Q=t(51636),N=t(46e3),P=t(93873);const g=i=>{const{optionHeight:le,optionFontSize:M,optionLineHeight:U,optionPadding:c}=i;return{position:"relative",display:"block",minHeight:le,padding:c,color:i.colorText,fontWeight:"normal",fontSize:M,lineHeight:U,boxSizing:"border-box"}};var F=i=>{const{antCls:le,componentCls:M}=i,U=`${M}-item`,c=`&${le}-slide-up-enter${le}-slide-up-enter-active`,T=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ne=`&${le}-slide-up-leave${le}-slide-up-leave-active`,q=`${M}-dropdown-placement-`,me=`${U}-option-selected`;return[{[`${M}-dropdown`]:Object.assign(Object.assign({},(0,e.Wf)(i)),{position:"absolute",top:-9999,zIndex:i.zIndexPopup,boxSizing:"border-box",padding:i.paddingXXS,overflow:"hidden",fontSize:i.fontSize,fontVariant:"initial",backgroundColor:i.colorBgElevated,borderRadius:i.borderRadiusLG,outline:"none",boxShadow:i.boxShadowSecondary,[` + ${c}${q}bottomLeft, + ${T}${q}bottomLeft + `]:{animationName:N.fJ},[` + ${c}${q}topLeft, + ${T}${q}topLeft, + ${c}${q}topRight, + ${T}${q}topRight + `]:{animationName:N.Qt},[`${ne}${q}bottomLeft`]:{animationName:N.Uw},[` + ${ne}${q}topLeft, + ${ne}${q}topRight + `]:{animationName:N.ly},"&-hidden":{display:"none"},[U]:Object.assign(Object.assign({},g(i)),{cursor:"pointer",transition:`background ${i.motionDurationSlow} ease`,borderRadius:i.borderRadiusSM,"&-group":{color:i.colorTextDescription,fontSize:i.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${U}-option-disabled)`]:{backgroundColor:i.optionActiveBg},[`&-selected:not(${U}-option-disabled)`]:{color:i.optionSelectedColor,fontWeight:i.optionSelectedFontWeight,backgroundColor:i.optionSelectedBg,[`${U}-option-state`]:{color:i.colorPrimary}},"&-disabled":{[`&${U}-option-selected`]:{backgroundColor:i.colorBgContainerDisabled},color:i.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:i.calc(i.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},g(i)),{color:i.colorTextDisabled})}),[`${me}:has(+ ${me})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${me}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,N.oN)(i,"slide-up"),(0,N.oN)(i,"slide-down"),(0,P.Fm)(i,"move-up"),(0,P.Fm)(i,"move-down")]},n=t(26743),X=t(36237);function w(i,le){const{componentCls:M,inputPaddingHorizontalBase:U,borderRadius:c}=i,T=i.calc(i.controlHeight).sub(i.calc(i.lineWidth).mul(2)).equal(),ne=le?`${M}-${le}`:"";return{[`${M}-single${ne}`]:{fontSize:i.fontSize,height:i.controlHeight,[`${M}-selector`]:Object.assign(Object.assign({},(0,e.Wf)(i,!0)),{display:"flex",borderRadius:c,flex:"1 1 auto",[`${M}-selection-wrap:after`]:{lineHeight:(0,X.unit)(T)},[`${M}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${M}-selection-item, + ${M}-selection-placeholder + `]:{display:"block",padding:0,lineHeight:(0,X.unit)(T),transition:`all ${i.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${M}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${M}-selection-item:empty:after`,`${M}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${M}-show-arrow ${M}-selection-item, + &${M}-show-arrow ${M}-selection-search, + &${M}-show-arrow ${M}-selection-placeholder + `]:{paddingInlineEnd:i.showArrowPaddingInlineEnd},[`&${M}-open ${M}-selection-item`]:{color:i.colorTextPlaceholder},[`&:not(${M}-customize-input)`]:{[`${M}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,X.unit)(U)}`,[`${M}-selection-search-input`]:{height:T,fontSize:i.fontSize},"&:after":{lineHeight:(0,X.unit)(T)}}},[`&${M}-customize-input`]:{[`${M}-selector`]:{"&:after":{display:"none"},[`${M}-selection-search`]:{position:"static",width:"100%"},[`${M}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,X.unit)(U)}`,"&:after":{display:"none"}}}}}}}function I(i){const{componentCls:le}=i,M=i.calc(i.controlPaddingHorizontalSM).sub(i.lineWidth).equal();return[w(i),w((0,Q.mergeToken)(i,{controlHeight:i.controlHeightSM,borderRadius:i.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selector`]:{padding:`0 ${(0,X.unit)(M)}`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:i.calc(M).add(i.calc(i.fontSize).mul(1.5)).equal()},[` + &${le}-show-arrow ${le}-selection-item, + &${le}-show-arrow ${le}-selection-placeholder + `]:{paddingInlineEnd:i.calc(i.fontSize).mul(1.5).equal()}}}},w((0,Q.mergeToken)(i,{controlHeight:i.singleItemHeightLG,fontSize:i.fontSizeLG,borderRadius:i.borderRadiusLG}),"lg")]}const xe=i=>{const{fontSize:le,lineHeight:M,lineWidth:U,controlHeight:c,controlHeightSM:T,controlHeightLG:ne,paddingXXS:q,controlPaddingHorizontal:me,zIndexPopupBase:et,colorText:W,fontWeightStrong:we,controlItemBgActive:he,controlItemBgHover:Xe,colorBgContainer:B,colorFillSecondary:Oe,colorBgContainerDisabled:ye,colorTextDisabled:ct,colorPrimaryHover:Le,colorPrimary:oe,controlOutline:Z}=i,H=q*2,f=U*2,ce=Math.min(c-H,c-f),A=Math.min(T-H,T-f),r=Math.min(ne-H,ne-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(q/2),zIndexPopup:et+50,optionSelectedColor:W,optionSelectedFontWeight:we,optionSelectedBg:he,optionActiveBg:Xe,optionPadding:`${(c-le*M)/2}px ${me}px`,optionFontSize:le,optionLineHeight:M,optionHeight:c,selectorBg:B,clearBg:B,singleItemHeightLG:ne,multipleItemBg:Oe,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:A,multipleItemHeightLG:r,multipleSelectorBgDisabled:ye,multipleItemColorDisabled:ct,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(i.fontSize*1.25),hoverBorderColor:Le,activeBorderColor:oe,activeOutlineColor:Z,selectAffixPadding:q}},Ne=(i,le)=>{const{componentCls:M,antCls:U,controlOutlineWidth:c}=i;return{[`&:not(${M}-customize-input) ${M}-selector`]:{border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} ${le.borderColor}`,background:i.selectorBg},[`&:not(${M}-disabled):not(${M}-customize-input):not(${U}-pagination-size-changer)`]:{[`&:hover ${M}-selector`]:{borderColor:le.hoverBorderHover},[`${M}-focused& ${M}-selector`]:{borderColor:le.activeBorderColor,boxShadow:`0 0 0 ${(0,X.unit)(c)} ${le.activeOutlineColor}`,outline:0},[`${M}-prefix`]:{color:le.color}}}},pe=(i,le)=>({[`&${i.componentCls}-status-${le.status}`]:Object.assign({},Ne(i,le))}),se=i=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(i,{borderColor:i.colorBorder,hoverBorderHover:i.hoverBorderColor,activeBorderColor:i.activeBorderColor,activeOutlineColor:i.activeOutlineColor,color:i.colorText})),pe(i,{status:"error",borderColor:i.colorError,hoverBorderHover:i.colorErrorHover,activeBorderColor:i.colorError,activeOutlineColor:i.colorErrorOutline,color:i.colorError})),pe(i,{status:"warning",borderColor:i.colorWarning,hoverBorderHover:i.colorWarningHover,activeBorderColor:i.colorWarning,activeOutlineColor:i.colorWarningOutline,color:i.colorWarning})),{[`&${i.componentCls}-disabled`]:{[`&:not(${i.componentCls}-customize-input) ${i.componentCls}-selector`]:{background:i.colorBgContainerDisabled,color:i.colorTextDisabled}},[`&${i.componentCls}-multiple ${i.componentCls}-selection-item`]:{background:i.multipleItemBg,border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} ${i.multipleItemBorderColor}`}})}),Se=(i,le)=>{const{componentCls:M,antCls:U}=i;return{[`&:not(${M}-customize-input) ${M}-selector`]:{background:le.bg,border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} transparent`,color:le.color},[`&:not(${M}-disabled):not(${M}-customize-input):not(${U}-pagination-size-changer)`]:{[`&:hover ${M}-selector`]:{background:le.hoverBg},[`${M}-focused& ${M}-selector`]:{background:i.selectorBg,borderColor:le.activeBorderColor,outline:0}}}},h=(i,le)=>({[`&${i.componentCls}-status-${le.status}`]:Object.assign({},Se(i,le))}),fe=i=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Se(i,{bg:i.colorFillTertiary,hoverBg:i.colorFillSecondary,activeBorderColor:i.activeBorderColor,color:i.colorText})),h(i,{status:"error",bg:i.colorErrorBg,hoverBg:i.colorErrorBgHover,activeBorderColor:i.colorError,color:i.colorError})),h(i,{status:"warning",bg:i.colorWarningBg,hoverBg:i.colorWarningBgHover,activeBorderColor:i.colorWarning,color:i.colorWarning})),{[`&${i.componentCls}-disabled`]:{[`&:not(${i.componentCls}-customize-input) ${i.componentCls}-selector`]:{borderColor:i.colorBorder,background:i.colorBgContainerDisabled,color:i.colorTextDisabled}},[`&${i.componentCls}-multiple ${i.componentCls}-selection-item`]:{background:i.colorBgContainer,border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} ${i.colorSplit}`}})}),s=i=>({"&-borderless":{[`${i.componentCls}-selector`]:{background:"transparent",border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} transparent`},[`&${i.componentCls}-disabled`]:{[`&:not(${i.componentCls}-customize-input) ${i.componentCls}-selector`]:{color:i.colorTextDisabled}},[`&${i.componentCls}-multiple ${i.componentCls}-selection-item`]:{background:i.multipleItemBg,border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} ${i.multipleItemBorderColor}`},[`&${i.componentCls}-status-error`]:{[`${i.componentCls}-prefix, ${i.componentCls}-selection-item`]:{color:i.colorError}},[`&${i.componentCls}-status-warning`]:{[`${i.componentCls}-prefix, ${i.componentCls}-selection-item`]:{color:i.colorWarning}}}}),d=(i,le)=>{const{componentCls:M,antCls:U}=i;return{[`&:not(${M}-customize-input) ${M}-selector`]:{borderWidth:`0 0 ${(0,X.unit)(i.lineWidth)} 0`,borderStyle:`none none ${i.lineType} none`,borderColor:le.borderColor,background:i.selectorBg,borderRadius:0},[`&:not(${M}-disabled):not(${M}-customize-input):not(${U}-pagination-size-changer)`]:{[`&:hover ${M}-selector`]:{borderColor:le.hoverBorderHover},[`${M}-focused& ${M}-selector`]:{borderColor:le.activeBorderColor,outline:0},[`${M}-prefix`]:{color:le.color}}}},Y=(i,le)=>({[`&${i.componentCls}-status-${le.status}`]:Object.assign({},d(i,le))}),ee=i=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},d(i,{borderColor:i.colorBorder,hoverBorderHover:i.hoverBorderColor,activeBorderColor:i.activeBorderColor,activeOutlineColor:i.activeOutlineColor,color:i.colorText})),Y(i,{status:"error",borderColor:i.colorError,hoverBorderHover:i.colorErrorHover,activeBorderColor:i.colorError,activeOutlineColor:i.colorErrorOutline,color:i.colorError})),Y(i,{status:"warning",borderColor:i.colorWarning,hoverBorderHover:i.colorWarningHover,activeBorderColor:i.colorWarning,activeOutlineColor:i.colorWarningOutline,color:i.colorWarning})),{[`&${i.componentCls}-disabled`]:{[`&:not(${i.componentCls}-customize-input) ${i.componentCls}-selector`]:{color:i.colorTextDisabled}},[`&${i.componentCls}-multiple ${i.componentCls}-selection-item`]:{background:i.multipleItemBg,border:`${(0,X.unit)(i.lineWidth)} ${i.lineType} ${i.multipleItemBorderColor}`}})});var Ve=i=>({[i.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},se(i)),fe(i)),s(i)),ee(i))});const Ee=i=>{const{componentCls:le}=i;return{position:"relative",transition:`all ${i.motionDurationMid} ${i.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${le}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ae=i=>{const{componentCls:le}=i;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ge=i=>{const{antCls:le,componentCls:M,inputPaddingHorizontalBase:U,iconCls:c}=i;return{[M]:Object.assign(Object.assign({},(0,e.Wf)(i)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${M}-customize-input) ${M}-selector`]:Object.assign(Object.assign({},Ee(i)),ae(i)),[`${M}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},e.vS),{[`> ${le}-typography`]:{display:"inline"}}),[`${M}-selection-placeholder`]:Object.assign(Object.assign({},e.vS),{flex:1,color:i.colorTextPlaceholder,pointerEvents:"none"}),[`${M}-arrow`]:Object.assign(Object.assign({},(0,e.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:U,height:i.fontSizeIcon,marginTop:i.calc(i.fontSizeIcon).mul(-1).div(2).equal(),color:i.colorTextQuaternary,fontSize:i.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${i.motionDurationSlow} ease`,[c]:{verticalAlign:"top",transition:`transform ${i.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${M}-suffix)`]:{pointerEvents:"auto"}},[`${M}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${M}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${M}-prefix`]:{flex:"none",marginInlineEnd:i.selectAffixPadding},[`${M}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:U,zIndex:1,display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,marginTop:i.calc(i.fontSizeIcon).mul(-1).div(2).equal(),color:i.colorTextQuaternary,fontSize:i.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${i.motionDurationMid} ease, opacity ${i.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:i.colorTextTertiary}},[`&:hover ${M}-clear`]:{opacity:1,background:i.colorBgBase,borderRadius:"50%"}}),[`${M}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${M}-has-feedback`]:{[`${M}-clear`]:{insetInlineEnd:i.calc(U).add(i.fontSize).add(i.paddingXS).equal()}}}}}},re=i=>{const{componentCls:le}=i;return[{[le]:{[`&${le}-in-form-item`]:{width:"100%"}}},ge(i),I(i),(0,n.ZP)(i),F(i),{[`${le}-rtl`]:{direction:"rtl"}},(0,m.c)(i,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var S=(0,p.I$)("Select",(i,le)=>{let{rootPrefixCls:M}=le;const U=(0,Q.mergeToken)(i,{rootPrefixCls:M,inputPaddingHorizontalBase:i.calc(i.paddingSM).sub(1).equal(),multipleSelectItemHeight:i.multipleItemHeight,selectHeight:i.controlHeight});return[re(U),Ve(U)]},xe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Yt,Ge,t){t.d(Ge,{_z:function(){return P},gp:function(){return Q}});var e=t(36237),m=t(63356),p=t(51636);const Q=n=>{const{multipleSelectItemHeight:X,paddingXXS:w,lineWidth:I,INTERNAL_FIXED_ITEM_MARGIN:xe}=n,Ne=n.max(n.calc(w).sub(I).equal(),0),pe=n.max(n.calc(Ne).sub(xe).equal(),0);return{basePadding:Ne,containerPadding:pe,itemHeight:(0,e.unit)(X),itemLineHeight:(0,e.unit)(n.calc(X).sub(n.calc(n.lineWidth).mul(2)).equal())}},N=n=>{const{multipleSelectItemHeight:X,selectHeight:w,lineWidth:I}=n;return n.calc(w).sub(X).div(2).sub(I).equal()},P=n=>{const{componentCls:X,iconCls:w,borderRadiusSM:I,motionDurationSlow:xe,paddingXS:Ne,multipleItemColorDisabled:pe,multipleItemBorderColorDisabled:se,colorIcon:Se,colorIconHover:h,INTERNAL_FIXED_ITEM_MARGIN:fe}=n;return{[`${X}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${X}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:fe,borderRadius:I,cursor:"default",transition:`font-size ${xe}, line-height ${xe}, height ${xe}`,marginInlineEnd:n.calc(fe).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:n.calc(Ne).div(2).equal(),[`${X}-disabled&`]:{color:pe,borderColor:se,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:n.calc(Ne).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,m.Ro)()),{display:"inline-flex",alignItems:"center",color:Se,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${w}`]:{verticalAlign:"-0.2em"},"&:hover":{color:h}})}}}},g=(n,X)=>{const{componentCls:w,INTERNAL_FIXED_ITEM_MARGIN:I}=n,xe=`${w}-selection-overflow`,Ne=n.multipleSelectItemHeight,pe=N(n),se=X?`${w}-${X}`:"",Se=Q(n);return{[`${w}-multiple${se}`]:Object.assign(Object.assign({},P(n)),{[`${w}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Se.basePadding,paddingBlock:Se.containerPadding,borderRadius:n.borderRadius,[`${w}-disabled&`]:{background:n.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,e.unit)(I)} 0`,lineHeight:(0,e.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${w}-selection-item`]:{height:Se.itemHeight,lineHeight:(0,e.unit)(Se.itemLineHeight)},[`${w}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,e.unit)(Ne),marginBlock:I}},[`${w}-prefix`]:{marginInlineStart:n.calc(n.inputPaddingHorizontalBase).sub(Se.basePadding).equal()},[`${xe}-item + ${xe}-item, + ${w}-prefix + ${w}-selection-wrap + `]:{[`${w}-selection-search`]:{marginInlineStart:0},[`${w}-selection-placeholder`]:{insetInlineStart:0}},[`${xe}-item-suffix`]:{minHeight:Se.itemHeight,marginBlock:I},[`${w}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:n.calc(n.inputPaddingHorizontalBase).sub(pe).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:n.fontFamily,lineHeight:(0,e.unit)(Ne),transition:`all ${n.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${w}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:n.calc(n.inputPaddingHorizontalBase).sub(Se.basePadding).equal(),insetInlineEnd:n.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${n.motionDurationSlow}`}})}};function D(n,X){const{componentCls:w}=n,I=X?`${w}-${X}`:"",xe={[`${w}-multiple${I}`]:{fontSize:n.fontSize,[`${w}-selector`]:{[`${w}-show-search&`]:{cursor:"text"}},[` + &${w}-show-arrow ${w}-selector, + &${w}-allow-clear ${w}-selector + `]:{paddingInlineEnd:n.calc(n.fontSizeIcon).add(n.controlPaddingHorizontal).equal()}}};return[g(n,X),xe]}const F=n=>{const{componentCls:X}=n,w=(0,p.mergeToken)(n,{selectHeight:n.controlHeightSM,multipleSelectItemHeight:n.multipleItemHeightSM,borderRadius:n.borderRadiusSM,borderRadiusSM:n.borderRadiusXS}),I=(0,p.mergeToken)(n,{fontSize:n.fontSizeLG,selectHeight:n.controlHeightLG,multipleSelectItemHeight:n.multipleItemHeightLG,borderRadius:n.borderRadiusLG,borderRadiusSM:n.borderRadius});return[D(n),D(w,"sm"),{[`${X}-multiple${X}-sm`]:{[`${X}-selection-placeholder`]:{insetInline:n.calc(n.controlPaddingHorizontalSM).sub(n.lineWidth).equal()},[`${X}-selection-search`]:{marginInlineStart:2}}},D(I,"lg")]};Ge.ZP=F},68525:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(59301),m=t(40001),p=t(19248),Q=t(99267),N=t(84105),P=t(58617),g=t(47472);function D(F){let{suffixIcon:n,clearIcon:X,menuItemSelectedIcon:w,removeIcon:I,loading:xe,multiple:Ne,hasFeedback:pe,prefixCls:se,showSuffixIcon:Se,feedbackIcon:h,showArrow:fe,componentName:s}=F;const d=X!=null?X:e.createElement(p.Z,null),Y=Ee=>n===null&&!pe&&!fe?null:e.createElement(e.Fragment,null,Se!==!1&&Ee,pe&&h);let ee=null;if(n!==void 0)ee=Y(n);else if(xe)ee=Y(e.createElement(P.Z,{spin:!0}));else{const Ee=`${se}-suffix`;ee=ae=>{let{open:ge,showSearch:re}=ae;return Y(ge&&re?e.createElement(g.Z,{className:Ee}):e.createElement(N.Z,{className:Ee}))}}let _=null;w!==void 0?_=w:Ne?_=e.createElement(m.Z,null):_=null;let Ve=null;return I!==void 0?Ve=I:Ve=e.createElement(Q.Z,null),{clearIcon:d,suffixIcon:ee,itemIcon:_,removeIcon:Ve}}},90005:function(Yt,Ge,t){t.d(Ge,{Z:function(){return e}});function e(m,p){return p!==void 0?p:m!==null}},44104:function(Yt,Ge,t){t.d(Ge,{Z:function(){return pe}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(11592),N=t(99402),P=t(48755),g=t(70045);const D=e.createContext({latestIndex:0}),F=D.Provider;var X=se=>{let{className:Se,index:h,children:fe,split:s,style:d}=se;const{latestIndex:Y}=e.useContext(D);return fe==null?null:e.createElement(e.Fragment,null,e.createElement("div",{className:Se,style:d},fe),h{var h;const{getPrefixCls:fe,direction:s,size:d,className:Y,style:ee,classNames:_,styles:Ve}=(0,P.dj)("space"),{size:Ee=d!=null?d:"small",align:ae,className:ge,rootClassName:re,children:S,direction:i="horizontal",prefixCls:le,split:M,style:U,wrap:c=!1,classNames:T,styles:ne}=se,q=I(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[me,et]=Array.isArray(Ee)?Ee:[Ee,Ee],W=(0,N.n)(et),we=(0,N.n)(me),he=(0,N.T)(et),Xe=(0,N.T)(me),B=(0,Q.Z)(S,{keepEmpty:!0}),Oe=ae===void 0&&i==="horizontal"?"center":ae,ye=fe("space",le),[ct,Le,oe]=(0,w.Z)(ye),Z=p()(ye,Y,Le,`${ye}-${i}`,{[`${ye}-rtl`]:s==="rtl",[`${ye}-align-${Oe}`]:Oe,[`${ye}-gap-row-${et}`]:W,[`${ye}-gap-col-${me}`]:we},ge,re,oe),H=p()(`${ye}-item`,(h=T==null?void 0:T.item)!==null&&h!==void 0?h:_.item);let f=0;const ce=B.map((u,V)=>{var K;u!=null&&(f=V);const y=(u==null?void 0:u.key)||`${H}-${V}`;return e.createElement(X,{className:H,key:y,index:V,split:M,style:(K=ne==null?void 0:ne.item)!==null&&K!==void 0?K:Ve.item},u)}),A=e.useMemo(()=>({latestIndex:f}),[f]);if(B.length===0)return null;const r={};return c&&(r.flexWrap="wrap"),!we&&Xe&&(r.columnGap=me),!W&&he&&(r.rowGap=et),ct(e.createElement("div",Object.assign({ref:Se,className:Z,style:Object.assign(Object.assign(Object.assign({},r),ee),U)},q),e.createElement(F,{value:A},ce)))});Ne.Compact=g.ZP;var pe=Ne},93873:function(Yt,Ge,t){t.d(Ge,{Fm:function(){return w}});var e=t(36237),m=t(48746);const p=new e.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q=new e.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),N=new e.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new e.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),g=new e.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D=new e.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F=new e.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),n=new e.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),X={"move-up":{inKeyframes:F,outKeyframes:n},"move-down":{inKeyframes:p,outKeyframes:Q},"move-left":{inKeyframes:N,outKeyframes:P},"move-right":{inKeyframes:g,outKeyframes:D}},w=(I,xe)=>{const{antCls:Ne}=I,pe=`${Ne}-${xe}`,{inKeyframes:se,outKeyframes:Se}=X[xe];return[(0,m.R)(pe,se,Se,I.motionDurationMid),{[` + ${pe}-enter, + ${pe}-appear + `]:{opacity:0,animationTimingFunction:I.motionEaseOutCirc},[`${pe}-leave`]:{animationTimingFunction:I.motionEaseInOutCirc}}]}},46e3:function(Yt,Ge,t){t.d(Ge,{Qt:function(){return N},Uw:function(){return Q},fJ:function(){return p},ly:function(){return P},oN:function(){return w}});var e=t(36237),m=t(48746);const p=new e.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Q=new e.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),N=new e.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),P=new e.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),g=new e.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),D=new e.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F=new e.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),n=new e.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),X={"slide-up":{inKeyframes:p,outKeyframes:Q},"slide-down":{inKeyframes:N,outKeyframes:P},"slide-left":{inKeyframes:g,outKeyframes:D},"slide-right":{inKeyframes:F,outKeyframes:n}},w=(I,xe)=>{const{antCls:Ne}=I,pe=`${Ne}-${xe}`,{inKeyframes:se,outKeyframes:Se}=X[xe];return[(0,m.R)(pe,se,Se,I.motionDurationMid),{[` + ${pe}-enter, + ${pe}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:I.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${pe}-leave`]:{animationTimingFunction:I.motionEaseInQuint}}]}},37645:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return P},qN:function(){return p},wZ:function(){return Q}});var e=t(36237),m=t(36305);const p=8;function Q(g){const{contentRadius:D,limitVerticalRadius:F}=g,n=D>12?D+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:F?p:n}}function N(g,D){return g?D:{}}function P(g,D,F){const{componentCls:n,boxShadowPopoverArrow:X,arrowOffsetVertical:w,arrowOffsetHorizontal:I}=g,{arrowDistance:xe=0,arrowPlacement:Ne={left:!0,right:!0,top:!0,bottom:!0}}=F||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,m.W)(g,D,X)),{"&:before":{background:D}})]},N(!!Ne.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:xe,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":I,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:I}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,e.unit)(I)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:I}}}})),N(!!Ne.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:xe,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":I,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:I}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,e.unit)(I)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:I}}}})),N(!!Ne.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:xe},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:w},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:w}})),N(!!Ne.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:xe},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:w},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:w}}))}}},36305:function(Yt,Ge,t){t.d(Ge,{W:function(){return p},w:function(){return m}});var e=t(36237);function m(Q){const{sizePopupArrow:N,borderRadiusXS:P,borderRadiusOuter:g}=Q,D=N/2,F=0,n=D,X=g*1/Math.sqrt(2),w=D-g*(1-1/Math.sqrt(2)),I=D-P*(1/Math.sqrt(2)),xe=g*(Math.sqrt(2)-1)+P*(1/Math.sqrt(2)),Ne=2*D-I,pe=xe,se=2*D-X,Se=w,h=2*D-F,fe=n,s=D*Math.sqrt(2)+g*(Math.sqrt(2)-2),d=g*(Math.sqrt(2)-1),Y=`polygon(${d}px 100%, 50% ${d}px, ${2*D-d}px 100%, ${d}px 100%)`,ee=`path('M ${F} ${n} A ${g} ${g} 0 0 0 ${X} ${w} L ${I} ${xe} A ${P} ${P} 0 0 1 ${Ne} ${pe} L ${se} ${Se} A ${g} ${g} 0 0 0 ${h} ${fe} Z')`;return{arrowShadowWidth:s,arrowPath:ee,arrowPolygon:Y}}const p=(Q,N,P)=>{const{sizePopupArrow:g,arrowPolygon:D,arrowPath:F,arrowShadowWidth:n,borderRadiusXS:X,calc:w}=Q;return{pointerEvents:"none",width:g,height:g,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:g,height:w(g).div(2).equal(),background:N,clipPath:{_multi_value_:!0,value:[D,F]},content:'""'},"&::after":{content:'""',position:"absolute",width:n,height:n,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,e.unit)(X)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:P,zIndex:0,background:"transparent"}}}},70858:function(Yt,Ge,t){t.d(Ge,{default:function(){return tl}});var e=t(59301),m={},p="rc-table-internal-hook",Q=t(42978),N=t(6089),P=t(34280),g=t(13697),D=t(4676);function F(a){var o=e.createContext(void 0),E=function(ie){var be=ie.value,We=ie.children,$e=e.useRef(be);$e.current=be;var Je=e.useState(function(){return{getValue:function(){return $e.current},listeners:new Set}}),Qe=(0,Q.Z)(Je,1),St=Qe[0];return(0,P.Z)(function(){(0,D.unstable_batchedUpdates)(function(){St.listeners.forEach(function(dt){dt(be)})})},[be]),e.createElement(o.Provider,{value:St},We)};return{Context:o,Provider:E,defaultValue:a}}function n(a,o){var E=(0,N.Z)(typeof o=="function"?o:function(dt){if(o===void 0)return dt;if(!Array.isArray(o))return dt[o];var st={};return o.forEach(function(lt){st[lt]=dt[lt]}),st}),j=e.useContext(a==null?void 0:a.Context),ie=j||{},be=ie.listeners,We=ie.getValue,$e=e.useRef();$e.current=E(j?We():a==null?void 0:a.defaultValue);var Je=e.useState({}),Qe=(0,Q.Z)(Je,2),St=Qe[1];return(0,P.Z)(function(){if(!j)return;function dt(st){var lt=E(st);(0,g.Z)($e.current,lt,!0)||St({})}return be.add(dt),function(){be.delete(dt)}},[j]),$e.current}var X=t(54476),w=t(8654);function I(){var a=e.createContext(null);function o(){return e.useContext(a)}function E(ie,be){var We=(0,w.Yr)(ie),$e=function(Qe,St){var dt=We?{ref:St}:{},st=e.useRef(0),lt=e.useRef(Qe),ht=o();return ht!==null?e.createElement(ie,(0,X.Z)({},Qe,dt)):((!be||be(lt.current,Qe))&&(st.current+=1),lt.current=Qe,e.createElement(a.Provider,{value:st.current},e.createElement(ie,(0,X.Z)({},Qe,dt))))};return We?e.forwardRef($e):$e}function j(ie,be){var We=(0,w.Yr)(ie),$e=function(Qe,St){var dt=We?{ref:St}:{};return o(),e.createElement(ie,(0,X.Z)({},Qe,dt))};return We?e.memo(e.forwardRef($e),be):e.memo($e,be)}return{makeImmutable:E,responseImmutable:j,useImmutableMark:o}}var xe=I(),Ne=xe.makeImmutable,pe=xe.responseImmutable,se=xe.useImmutableMark,Se=I(),h=Se.makeImmutable,fe=Se.responseImmutable,s=Se.useImmutableMark,d=F(),Y=d;function ee(a,o){var E=React.useRef(0);E.current+=1;var j=React.useRef(a),ie=[];Object.keys(a||{}).map(function(We){var $e;(a==null?void 0:a[We])!==(($e=j.current)===null||$e===void 0?void 0:$e[We])&&ie.push(We)}),j.current=a;var be=React.useRef([]);return ie.length&&(be.current=ie),React.useDebugValue(E.current),React.useDebugValue(be.current.join(", ")),o&&console.log("".concat(o,":"),E.current,be.current),E.current}var _=null,Ve=null,Ee=t(76190),ae=t(33885),ge=t(20068),re=t(92310),S=t.n(re),i=t(80547),le=t(97938),M=t(48736),U=e.createContext({renderWithProps:!1}),c=U,T="RC_TABLE_KEY";function ne(a){return a==null?[]:Array.isArray(a)?a:[a]}function q(a){var o=[],E={};return a.forEach(function(j){for(var ie=j||{},be=ie.key,We=ie.dataIndex,$e=be||ne(We).join("-")||T;E[$e];)$e="".concat($e,"_next");E[$e]=!0,o.push($e)}),o}function me(a){return a!=null}function et(a){return typeof a=="number"&&!Number.isNaN(a)}function W(a){return a&&(0,Ee.Z)(a)==="object"&&!Array.isArray(a)&&!e.isValidElement(a)}function we(a,o,E,j,ie,be){var We=e.useContext(c),$e=s(),Je=(0,i.Z)(function(){if(me(j))return[j];var Qe=o==null||o===""?[]:Array.isArray(o)?o:[o],St=(0,le.Z)(a,Qe),dt=St,st=void 0;if(ie){var lt=ie(St,a,E);W(lt)?(dt=lt.children,st=lt.props,We.renderWithProps=!0):dt=lt}return[dt,st]},[$e,a,j,o,ie,E],function(Qe,St){if(be){var dt=(0,Q.Z)(Qe,2),st=dt[1],lt=(0,Q.Z)(St,2),ht=lt[1];return be(ht,st)}return We.renderWithProps?!0:!(0,g.Z)(Qe,St,!0)});return Je}function he(a,o,E,j){var ie=a+o-1;return a<=j&&ie>=E}function Xe(a,o){return n(Y,function(E){var j=he(a,o||1,E.hoverStartRow,E.hoverEndRow);return[j,E.onHover]})}var B=t(70425),Oe=function(o){var E=o.ellipsis,j=o.rowType,ie=o.children,be,We=E===!0?{showTitle:!0}:E;return We&&(We.showTitle||j==="header")&&(typeof ie=="string"||typeof ie=="number"?be=ie.toString():e.isValidElement(ie)&&typeof ie.props.children=="string"&&(be=ie.props.children)),be};function ye(a){var o,E,j,ie,be,We,$e,Je,Qe=a.component,St=a.children,dt=a.ellipsis,st=a.scope,lt=a.prefixCls,ht=a.className,qt=a.align,Nt=a.record,_t=a.render,tn=a.dataIndex,Ut=a.renderIndex,ln=a.shouldCellUpdate,dn=a.index,xn=a.rowType,yn=a.colSpan,nr=a.rowSpan,Fn=a.fixLeft,Kn=a.fixRight,Gn=a.firstFixLeft,Cn=a.lastFixLeft,Sn=a.firstFixRight,fn=a.lastFixRight,on=a.appendNode,hn=a.additionalProps,wn=hn===void 0?{}:hn,zn=a.isSticky,cn="".concat(lt,"-cell"),dr=n(Y,["supportSticky","allColumnsFixedLeft","rowHoverable"]),mr=dr.supportSticky,fo=dr.allColumnsFixedLeft,ro=dr.rowHoverable,Qr=we(Nt,tn,Ut,St,_t,ln),lo=(0,Q.Z)(Qr,2),Zo=lo[0],gr=lo[1],yr={},ho=typeof Fn=="number"&&mr,$o=typeof Kn=="number"&&mr;ho&&(yr.position="sticky",yr.left=Fn),$o&&(yr.position="sticky",yr.right=Kn);var Nn=(o=(E=(j=gr==null?void 0:gr.colSpan)!==null&&j!==void 0?j:wn.colSpan)!==null&&E!==void 0?E:yn)!==null&&o!==void 0?o:1,_n=(ie=(be=(We=gr==null?void 0:gr.rowSpan)!==null&&We!==void 0?We:wn.rowSpan)!==null&&be!==void 0?be:nr)!==null&&ie!==void 0?ie:1,$n=Xe(dn,_n),Ln=(0,Q.Z)($n,2),Rr=Ln[0],Mr=Ln[1],oo=(0,B.zX)(function(ao){var Fr;Nt&&Mr(dn,dn+_n-1),wn==null||(Fr=wn.onMouseEnter)===null||Fr===void 0||Fr.call(wn,ao)}),Jr=(0,B.zX)(function(ao){var Fr;Nt&&Mr(-1,-1),wn==null||(Fr=wn.onMouseLeave)===null||Fr===void 0||Fr.call(wn,ao)});if(Nn===0||_n===0)return null;var Ao=($e=wn.title)!==null&&$e!==void 0?$e:Oe({rowType:xn,ellipsis:dt,children:Zo}),zo=S()(cn,ht,(Je={},(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)(Je,"".concat(cn,"-fix-left"),ho&&mr),"".concat(cn,"-fix-left-first"),Gn&&mr),"".concat(cn,"-fix-left-last"),Cn&&mr),"".concat(cn,"-fix-left-all"),Cn&&fo&&mr),"".concat(cn,"-fix-right"),$o&&mr),"".concat(cn,"-fix-right-first"),Sn&&mr),"".concat(cn,"-fix-right-last"),fn&&mr),"".concat(cn,"-ellipsis"),dt),"".concat(cn,"-with-append"),on),"".concat(cn,"-fix-sticky"),(ho||$o)&&zn&&mr),(0,ge.Z)(Je,"".concat(cn,"-row-hover"),!gr&&Rr)),wn.className,gr==null?void 0:gr.className),Bn={};qt&&(Bn.textAlign=qt);var Wn=(0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)({},gr==null?void 0:gr.style),yr),Bn),wn.style),Br=Zo;return(0,Ee.Z)(Br)==="object"&&!Array.isArray(Br)&&!e.isValidElement(Br)&&(Br=null),dt&&(Cn||Sn)&&(Br=e.createElement("span",{className:"".concat(cn,"-content")},Br)),e.createElement(Qe,(0,X.Z)({},gr,wn,{className:zo,style:Wn,title:Ao,scope:st,onMouseEnter:ro?oo:void 0,onMouseLeave:ro?Jr:void 0,colSpan:Nn!==1?Nn:null,rowSpan:_n!==1?_n:null}),on,Br)}var ct=e.memo(ye);function Le(a,o,E,j,ie){var be=E[a]||{},We=E[o]||{},$e,Je;be.fixed==="left"?$e=j.left[ie==="rtl"?o:a]:We.fixed==="right"&&(Je=j.right[ie==="rtl"?a:o]);var Qe=!1,St=!1,dt=!1,st=!1,lt=E[o+1],ht=E[a-1],qt=lt&&!lt.fixed||ht&&!ht.fixed||E.every(function(ln){return ln.fixed==="left"});if(ie==="rtl"){if($e!==void 0){var Nt=ht&&ht.fixed==="left";st=!Nt&&qt}else if(Je!==void 0){var _t=lt&<.fixed==="right";dt=!_t&&qt}}else if($e!==void 0){var tn=lt&<.fixed==="left";Qe=!tn&&qt}else if(Je!==void 0){var Ut=ht&&ht.fixed==="right";St=!Ut&&qt}return{fixLeft:$e,fixRight:Je,lastFixLeft:Qe,firstFixRight:St,lastFixRight:dt,firstFixLeft:st,isSticky:j.isSticky}}var oe=e.createContext({}),Z=oe;function H(a){var o=a.className,E=a.index,j=a.children,ie=a.colSpan,be=ie===void 0?1:ie,We=a.rowSpan,$e=a.align,Je=n(Y,["prefixCls","direction"]),Qe=Je.prefixCls,St=Je.direction,dt=e.useContext(Z),st=dt.scrollColumnIndex,lt=dt.stickyOffsets,ht=dt.flattenColumns,qt=E+be-1,Nt=qt+1===st?be+1:be,_t=Le(E,E+Nt-1,ht,lt,St);return e.createElement(ct,(0,X.Z)({className:o,index:E,component:"td",prefixCls:Qe,record:null,dataIndex:null,align:$e,colSpan:Nt,rowSpan:We,render:function(){return j}},_t))}var f=t(75931),ce=["children"];function A(a){var o=a.children,E=(0,f.Z)(a,ce);return e.createElement("tr",E,o)}function r(a){var o=a.children;return o}r.Row=A,r.Cell=H;var u=r;function V(a){var o=a.children,E=a.stickyOffsets,j=a.flattenColumns,ie=n(Y,"prefixCls"),be=j.length-1,We=j[be],$e=e.useMemo(function(){return{stickyOffsets:E,flattenColumns:j,scrollColumnIndex:We!=null&&We.scrollbar?be:null}},[We,j,be,E]);return e.createElement(Z.Provider,{value:$e},e.createElement("tfoot",{className:"".concat(ie,"-summary")},o))}var K=fe(V),y=u,z=t(29301),L=t(24514),J=t(75152),l=t(26112);function v(a,o,E,j,ie,be,We){a.push({record:o,indent:E,index:We});var $e=be(o),Je=ie==null?void 0:ie.has($e);if(o&&Array.isArray(o[j])&&Je)for(var Qe=0;Qe1?Gn-1:0),Sn=1;Sn=1)),style:(0,ae.Z)((0,ae.Z)({},E),_t==null?void 0:_t.style)}),ht.map(function(Fn,Kn){var Gn=Fn.render,Cn=Fn.dataIndex,Sn=Fn.className,fn=x(st,Fn,Kn,Je,ie),on=fn.key,hn=fn.fixedInfo,wn=fn.appendCellNode,zn=fn.additionalCellProps;return e.createElement(ct,(0,X.Z)({className:Sn,ellipsis:Fn.ellipsis,align:Fn.align,scope:Fn.rowScope,component:Fn.rowScope?dt:St,prefixCls:lt,key:on,record:j,index:ie,renderIndex:be,dataIndex:Cn,render:Gn,shouldCellUpdate:Fn.shouldCellUpdate},hn,{appendNode:wn,additionalProps:zn}))})),yn;if(Ut&&(ln.current||tn)){var nr=Nt(j,ie,Je+1,tn);yn=e.createElement(Be,{expanded:tn,className:S()("".concat(lt,"-expanded-row"),"".concat(lt,"-expanded-row-level-").concat(Je+1),dn),prefixCls:lt,component:Qe,cellComponent:St,colSpan:ht.length,isEmpty:!1},nr)}return e.createElement(e.Fragment,null,xn,yn)}var Ce=fe(te);function De(a){var o=a.columnKey,E=a.onColumnResize,j=e.useRef();return(0,P.Z)(function(){j.current&&E(o,j.current.offsetWidth)},[]),e.createElement(z.Z,{data:o},e.createElement("td",{ref:j,style:{padding:0,border:0,height:0}},e.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var C=t(29194);function k(a){var o=a.prefixCls,E=a.columnsKey,j=a.onColumnResize,ie=e.useRef(null);return e.createElement("tr",{"aria-hidden":"true",className:"".concat(o,"-measure-row"),style:{height:0,fontSize:0},ref:ie},e.createElement(z.Z.Collection,{onBatchResize:function(We){(0,C.Z)(ie.current)&&We.forEach(function($e){var Je=$e.data,Qe=$e.size;j(Je,Qe.offsetWidth)})}},E.map(function(be){return e.createElement(De,{key:be,columnKey:be,onColumnResize:j})})))}function G(a){var o=a.data,E=a.measureColumnWidth,j=n(Y,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ie=j.prefixCls,be=j.getComponent,We=j.onColumnResize,$e=j.flattenColumns,Je=j.getRowKey,Qe=j.expandedKeys,St=j.childrenColumnName,dt=j.emptyNode,st=Me(o,St,Qe,Je),lt=e.useRef({renderWithProps:!1}),ht=be(["body","wrapper"],"tbody"),qt=be(["body","row"],"tr"),Nt=be(["body","cell"],"td"),_t=be(["body","cell"],"th"),tn;o.length?tn=st.map(function(ln,dn){var xn=ln.record,yn=ln.indent,nr=ln.index,Fn=Je(xn,dn);return e.createElement(Ce,{key:Fn,rowKey:Fn,record:xn,index:dn,renderIndex:nr,rowComponent:qt,cellComponent:Nt,scopeCellComponent:_t,indent:yn})}):tn=e.createElement(Be,{expanded:!0,className:"".concat(ie,"-placeholder"),prefixCls:ie,component:qt,cellComponent:Nt,colSpan:$e.length,isEmpty:!0},dt);var Ut=q($e);return e.createElement(c.Provider,{value:lt.current},e.createElement(ht,{className:"".concat(ie,"-tbody")},E&&e.createElement(k,{prefixCls:ie,columnsKey:Ut,onColumnResize:We}),tn))}var ve=fe(G),ze=["expandable"],Ke="RC_TABLE_INTERNAL_COL_DEFINE";function ut(a){var o=a.expandable,E=(0,f.Z)(a,ze),j;return"expandable"in a?j=(0,ae.Z)((0,ae.Z)({},E),o):j=E,j.showExpandColumn===!1&&(j.expandIconColumnIndex=-1),j}var pt=["columnType"];function tt(a){for(var o=a.colWidths,E=a.columns,j=a.columCount,ie=n(Y,["tableLayout"]),be=ie.tableLayout,We=[],$e=j||E.length,Je=!1,Qe=$e-1;Qe>=0;Qe-=1){var St=o[Qe],dt=E&&E[Qe],st=void 0,lt=void 0;if(dt&&(st=dt[Ke],be==="auto"&&(lt=dt.minWidth)),St||lt||st||Je){var ht=st||{},qt=ht.columnType,Nt=(0,f.Z)(ht,pt);We.unshift(e.createElement("col",(0,X.Z)({key:Qe,style:{width:St,minWidth:lt}},Nt))),Je=!0}}return e.createElement("colgroup",null,We)}var mt=tt,ke=t(94480),rt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ot(a,o){return(0,e.useMemo)(function(){for(var E=[],j=0;j1?"colgroup":"col":null,ellipsis:Nt.ellipsis,align:Nt.align,component:We,prefixCls:St,key:lt[qt]},_t,{additionalProps:tn,rowType:"header"}))}))},Mt=Pt;function Gt(a){var o=[];function E(We,$e){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;o[Je]=o[Je]||[];var Qe=$e,St=We.filter(Boolean).map(function(dt){var st={key:dt.key,className:dt.className||"",children:dt.title,column:dt,colStart:Qe},lt=1,ht=dt.children;return ht&&ht.length>0&&(lt=E(ht,Qe,Je+1).reduce(function(qt,Nt){return qt+Nt},0),st.hasSubColumns=!0),"colSpan"in dt&&(lt=dt.colSpan),"rowSpan"in dt&&(st.rowSpan=dt.rowSpan),st.colSpan=lt,st.colEnd=st.colStart+lt-1,o[Je].push(st),Qe+=lt,lt});return St}E(a,0);for(var j=o.length,ie=function($e){o[$e].forEach(function(Je){!("rowSpan"in Je)&&!Je.hasSubColumns&&(Je.rowSpan=j-$e)})},be=0;be1&&arguments[1]!==void 0?arguments[1]:"";return typeof o=="number"?o:o.endsWith("%")?a*parseFloat(o)/100:null}function Bt(a,o,E){return e.useMemo(function(){if(o&&o>0){var j=0,ie=0;a.forEach(function(st){var lt=vn(o,st.width);lt?j+=lt:ie+=1});var be=Math.max(o,E),We=Math.max(be-j,ie),$e=ie,Je=We/ie,Qe=0,St=a.map(function(st){var lt=(0,ae.Z)({},st),ht=vn(o,lt.width);if(ht)lt.width=ht;else{var qt=Math.floor(Je);lt.width=$e===1?We:qt,We-=qt,$e-=1}return Qe+=lt.width,lt});if(Qe0?(0,ae.Z)((0,ae.Z)({},o),{},{children:b(E)}):o})}function O(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return a.filter(function(E){return E&&(0,Ee.Z)(E)==="object"}).reduce(function(E,j,ie){var be=j.fixed,We=be===!0?"left":be,$e="".concat(o,"-").concat(ie),Je=j.children;return Je&&Je.length>0?[].concat((0,ke.Z)(E),(0,ke.Z)(O(Je,$e).map(function(Qe){return(0,ae.Z)({fixed:We},Qe)}))):[].concat((0,ke.Z)(E),[(0,ae.Z)((0,ae.Z)({key:$e},j),{},{fixed:We})])},[])}function it(a){return a.map(function(o){var E=o.fixed,j=(0,f.Z)(o,pn),ie=E;return E==="left"?ie="right":E==="right"&&(ie="left"),(0,ae.Z)({fixed:ie},j)})}function R(a,o){var E=a.prefixCls,j=a.columns,ie=a.children,be=a.expandable,We=a.expandedKeys,$e=a.columnTitle,Je=a.getRowKey,Qe=a.onTriggerExpand,St=a.expandIcon,dt=a.rowExpandable,st=a.expandIconColumnIndex,lt=a.direction,ht=a.expandRowByClick,qt=a.columnWidth,Nt=a.fixed,_t=a.scrollWidth,tn=a.clientWidth,Ut=e.useMemo(function(){var Cn=j||en(ie)||[];return b(Cn.slice())},[j,ie]),ln=e.useMemo(function(){if(be){var Cn=Ut.slice();if(!Cn.includes(m)){var Sn=st||0;Sn>=0&&(Sn||Nt==="left"||!Nt)&&Cn.splice(Sn,0,m),Nt==="right"&&Cn.splice(Ut.length,0,m)}var fn=Cn.indexOf(m);Cn=Cn.filter(function(zn,cn){return zn!==m||cn===fn});var on=Ut[fn],hn;Nt?hn=Nt:hn=on?on.fixed:null;var wn=(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},Ke,{className:"".concat(E,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",$e),"fixed",hn),"className","".concat(E,"-row-expand-icon-cell")),"width",qt),"render",function(cn,dr,mr){var fo=Je(dr,mr),ro=We.has(fo),Qr=dt?dt(dr):!0,lo=St({prefixCls:E,expanded:ro,expandable:Qr,record:dr,onExpand:Qe});return ht?e.createElement("span",{onClick:function(gr){return gr.stopPropagation()}},lo):lo});return Cn.map(function(zn){return zn===m?wn:zn})}return Ut.filter(function(zn){return zn!==m})},[be,Ut,Je,We,St,lt]),dn=e.useMemo(function(){var Cn=ln;return o&&(Cn=o(Cn)),Cn.length||(Cn=[{render:function(){return null}}]),Cn},[o,ln,lt]),xn=e.useMemo(function(){return lt==="rtl"?it(O(dn)):O(dn)},[dn,lt,_t]),yn=e.useMemo(function(){for(var Cn=-1,Sn=xn.length-1;Sn>=0;Sn-=1){var fn=xn[Sn].fixed;if(fn==="left"||fn===!0){Cn=Sn;break}}if(Cn>=0)for(var on=0;on<=Cn;on+=1){var hn=xn[on].fixed;if(hn!=="left"&&hn!==!0)return!0}var wn=xn.findIndex(function(dr){var mr=dr.fixed;return mr==="right"});if(wn>=0)for(var zn=wn;zn=wn-$e?tn(function(zn){return(0,ae.Z)((0,ae.Z)({},zn),{},{isHiddenScrollBar:!0})}):tn(function(zn){return(0,ae.Z)((0,ae.Z)({},zn),{},{isHiddenScrollBar:!1})})}})},Sn=function(on){tn(function(hn){return(0,ae.Z)((0,ae.Z)({},hn),{},{scrollLeft:on/dt*st||0})})};return e.useImperativeHandle(E,function(){return{setScrollLeft:Sn,checkScrollBarVisible:Cn}}),e.useEffect(function(){var fn=(0,ue.Z)(document.body,"mouseup",Fn,!1),on=(0,ue.Z)(document.body,"mousemove",Gn,!1);return Cn(),function(){fn.remove(),on.remove()}},[lt,xn]),e.useEffect(function(){if(be.current){for(var fn=[],on=(0,Ze.bn)(be.current);on;)fn.push(on),on=on.parentElement;return fn.forEach(function(hn){return hn.addEventListener("scroll",Cn,!1)}),window.addEventListener("resize",Cn,!1),window.addEventListener("scroll",Cn,!1),Je.addEventListener("scroll",Cn,!1),function(){fn.forEach(function(hn){return hn.removeEventListener("scroll",Cn)}),window.removeEventListener("resize",Cn),window.removeEventListener("scroll",Cn),Je.removeEventListener("scroll",Cn)}}},[Je]),e.useEffect(function(){_t.isHiddenScrollBar||tn(function(fn){var on=be.current;return on?(0,ae.Z)((0,ae.Z)({},fn),{},{scrollLeft:on.scrollLeft/on.scrollWidth*on.clientWidth}):fn})},[_t.isHiddenScrollBar]),dt<=st||!lt||_t.isHiddenScrollBar?null:e.createElement("div",{style:{height:(0,J.Z)(),width:st,bottom:$e},className:"".concat(St,"-sticky-scroll")},e.createElement("div",{onMouseDown:Kn,ref:ht,className:S()("".concat(St,"-sticky-scroll-bar"),(0,ge.Z)({},"".concat(St,"-sticky-scroll-bar-active"),xn)),style:{width:"".concat(lt,"px"),transform:"translate3d(".concat(_t.scrollLeft,"px, 0, 0)")}}))},nt=e.forwardRef(_e);function ft(a){return null}var Ot=ft;function Dt(a){return null}var Ft=Dt,Xt="rc-table",Tt=[],Zt={};function jt(){return"No Data"}function Qt(a,o){var E=(0,ae.Z)({rowKey:"key",prefixCls:Xt,emptyText:jt},a),j=E.prefixCls,ie=E.className,be=E.rowClassName,We=E.style,$e=E.data,Je=E.rowKey,Qe=E.scroll,St=E.tableLayout,dt=E.direction,st=E.title,lt=E.footer,ht=E.summary,qt=E.caption,Nt=E.id,_t=E.showHeader,tn=E.components,Ut=E.emptyText,ln=E.onRow,dn=E.onHeaderRow,xn=E.onScroll,yn=E.internalHooks,nr=E.transformColumns,Fn=E.internalRefs,Kn=E.tailor,Gn=E.getContainerWidth,Cn=E.sticky,Sn=E.rowHoverable,fn=Sn===void 0?!0:Sn,on=$e||Tt,hn=!!on.length,wn=yn===p,zn=e.useCallback(function(Or,Nr){return(0,le.Z)(tn,Or)||Nr},[tn]),cn=e.useMemo(function(){return typeof Je=="function"?Je:function(Or){var Nr=Or&&Or[Je];return Nr}},[Je]),dr=zn(["body"]),mr=Fe(),fo=(0,Q.Z)(mr,3),ro=fo[0],Qr=fo[1],lo=fo[2],Zo=He(E,on,cn),gr=(0,Q.Z)(Zo,6),yr=gr[0],ho=gr[1],$o=gr[2],Nn=gr[3],_n=gr[4],$n=gr[5],Ln=Qe==null?void 0:Qe.x,Rr=e.useState(0),Mr=(0,Q.Z)(Rr,2),oo=Mr[0],Jr=Mr[1],Ao=$((0,ae.Z)((0,ae.Z)((0,ae.Z)({},E),yr),{},{expandable:!!yr.expandedRowRender,columnTitle:yr.columnTitle,expandedKeys:$o,getRowKey:cn,onTriggerExpand:$n,expandIcon:Nn,expandIconColumnIndex:yr.expandIconColumnIndex,direction:dt,scrollWidth:wn&&Kn&&typeof Ln=="number"?Ln:null,clientWidth:oo}),wn?nr:null),zo=(0,Q.Z)(Ao,4),Bn=zo[0],Wn=zo[1],Br=zo[2],ao=zo[3],Fr=Br!=null?Br:Ln,Ko=e.useMemo(function(){return{columns:Bn,flattenColumns:Wn}},[Bn,Wn]),bo=e.useRef(),ma=e.useRef(),io=e.useRef(),Ar=e.useRef();e.useImperativeHandle(o,function(){return{nativeElement:bo.current,scrollTo:function(Nr){var Vo;if(io.current instanceof HTMLElement){var da=Nr.index,Uo=Nr.top,za=Nr.key;if(et(Uo)){var Na;(Na=io.current)===null||Na===void 0||Na.scrollTo({top:Uo})}else{var Da,Ga=za!=null?za:cn(on[da]);(Da=io.current.querySelector('[data-row-key="'.concat(Ga,'"]')))===null||Da===void 0||Da.scrollIntoView()}}else(Vo=io.current)!==null&&Vo!==void 0&&Vo.scrollTo&&io.current.scrollTo(Nr)}}});var qr=e.useRef(),eo=e.useState(!1),Po=(0,Q.Z)(eo,2),So=Po[0],Tr=Po[1],mo=e.useState(!1),Ur=(0,Q.Z)(mo,2),Ho=Ur[0],yo=Ur[1],Qo=e.useState(new Map),Ia=(0,Q.Z)(Qo,2),Va=Ia[0],so=Ia[1],Ua=q(Wn),Jo=Ua.map(function(Or){return Va.get(Or)}),sa=e.useMemo(function(){return Jo},[Jo.join("_")]),oa=zt(sa,Wn,dt),qo=Qe&&me(Qe.y),_o=Qe&&me(Fr)||!!yr.fixed,ca=_o&&Wn.some(function(Or){var Nr=Or.fixed;return Nr}),$a=e.useRef(),pa=bt(Cn,j),ha=pa.isSticky,ni=pa.offsetHeader,ri=pa.offsetSummary,oi=pa.offsetScroll,Ja=pa.stickyClassName,ai=pa.container,or=e.useMemo(function(){return ht==null?void 0:ht(on)},[ht,on]),zr=(qo||ha)&&e.isValidElement(or)&&or.type===u&&or.props.fixed,Co,Ro,ea;qo&&(Ro={overflowY:hn?"scroll":"auto",maxHeight:Qe.y}),_o&&(Co={overflowX:"auto"},qo||(Ro={overflowY:"hidden"}),ea={width:Fr===!0?"auto":Fr,minWidth:"100%"});var ua=e.useCallback(function(Or,Nr){so(function(Vo){if(Vo.get(Or)!==Nr){var da=new Map(Vo);return da.set(Or,Nr),da}return Vo})},[]),ga=qe(null),Wo=(0,Q.Z)(ga,2),nl=Wo[0],vi=Wo[1];function qa(Or,Nr){Nr&&(typeof Nr=="function"?Nr(Or):Nr.scrollLeft!==Or&&(Nr.scrollLeft=Or,Nr.scrollLeft!==Or&&setTimeout(function(){Nr.scrollLeft=Or},0)))}var Aa=(0,N.Z)(function(Or){var Nr=Or.currentTarget,Vo=Or.scrollLeft,da=dt==="rtl",Uo=typeof Vo=="number"?Vo:Nr.scrollLeft,za=Nr||Zt;if(!vi()||vi()===za){var Na;nl(za),qa(Uo,ma.current),qa(Uo,io.current),qa(Uo,qr.current),qa(Uo,(Na=$a.current)===null||Na===void 0?void 0:Na.setScrollLeft)}var Da=Nr||ma.current;if(Da){var Ga=wn&&Kn&&typeof Fr=="number"?Fr:Da.scrollWidth,ui=Da.clientWidth;if(Ga===ui){Tr(!1),yo(!1);return}da?(Tr(-Uo0)):(Tr(Uo>0),yo(Uo1?Nt-fn:0,hn=(0,ae.Z)((0,ae.Z)((0,ae.Z)({},nr),Qe),{},{flex:"0 0 ".concat(fn,"px"),width:"".concat(fn,"px"),marginRight:on,pointerEvents:"auto"}),wn=e.useMemo(function(){return dt?Cn<=1:Kn===0||Cn===0||Cn>1},[Cn,Kn,dt]);wn?hn.visibility="hidden":dt&&(hn.height=st==null?void 0:st(Cn));var zn=wn?function(){return null}:lt,cn={};return(Cn===0||Kn===0)&&(cn.rowSpan=1,cn.colSpan=1),e.createElement(ct,(0,X.Z)({className:S()(qt,St),ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:We,prefixCls:o.prefixCls,key:ln,record:Je,index:be,renderIndex:$e,dataIndex:ht,render:zn,shouldCellUpdate:E.shouldCellUpdate},dn,{appendNode:xn,additionalProps:(0,ae.Z)((0,ae.Z)({},yn),{},{style:hn},cn)}))}var Pn=Jt,Dn=["data","index","className","rowKey","style","extra","getHeight"],Un=e.forwardRef(function(a,o){var E=a.data,j=a.index,ie=a.className,be=a.rowKey,We=a.style,$e=a.extra,Je=a.getHeight,Qe=(0,f.Z)(a,Dn),St=E.record,dt=E.indent,st=E.index,lt=n(Y,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ht=lt.scrollX,qt=lt.flattenColumns,Nt=lt.prefixCls,_t=lt.fixColumn,tn=lt.componentWidth,Ut=n(sn,["getComponent"]),ln=Ut.getComponent,dn=de(St,be,j,dt),xn=ln(["body","row"],"div"),yn=ln(["body","cell"],"div"),nr=dn.rowSupportExpand,Fn=dn.expanded,Kn=dn.rowProps,Gn=dn.expandedRowRender,Cn=dn.expandedRowClassName,Sn;if(nr&&Fn){var fn=Gn(St,j,dt+1,Fn),on=je(Cn,St,j,dt),hn={};_t&&(hn={style:(0,ge.Z)({},"--virtual-width","".concat(tn,"px"))});var wn="".concat(Nt,"-expanded-row-cell");Sn=e.createElement(xn,{className:S()("".concat(Nt,"-expanded-row"),"".concat(Nt,"-expanded-row-level-").concat(dt+1),on)},e.createElement(ct,{component:yn,prefixCls:Nt,className:S()(wn,(0,ge.Z)({},"".concat(wn,"-fixed"),_t)),additionalProps:hn},fn))}var zn=(0,ae.Z)((0,ae.Z)({},We),{},{width:ht});$e&&(zn.position="absolute",zn.pointerEvents="none");var cn=e.createElement(xn,(0,X.Z)({},Kn,Qe,{"data-row-key":be,ref:nr?null:o,className:S()(ie,"".concat(Nt,"-row"),Kn==null?void 0:Kn.className,(0,ge.Z)({},"".concat(Nt,"-row-extra"),$e)),style:(0,ae.Z)((0,ae.Z)({},zn),Kn==null?void 0:Kn.style)}),qt.map(function(dr,mr){return e.createElement(Pn,{key:mr,component:yn,rowInfo:dn,column:dr,colIndex:mr,indent:dt,index:j,renderIndex:st,record:St,inverse:$e,getHeight:Je})}));return nr?e.createElement("div",{ref:o},cn,Sn):cn}),Mn=fe(Un),Vn=Mn,Jn=e.forwardRef(function(a,o){var E=a.data,j=a.onScroll,ie=n(Y,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),be=ie.flattenColumns,We=ie.onColumnResize,$e=ie.getRowKey,Je=ie.expandedKeys,Qe=ie.prefixCls,St=ie.childrenColumnName,dt=ie.scrollX,st=ie.direction,lt=n(sn),ht=lt.sticky,qt=lt.scrollY,Nt=lt.listItemHeight,_t=lt.getComponent,tn=lt.onScroll,Ut=e.useRef(),ln=Me(E,St,Je,$e),dn=e.useMemo(function(){var Sn=0;return be.map(function(fn){var on=fn.width,hn=fn.key;return Sn+=on,[hn,on,Sn]})},[be]),xn=e.useMemo(function(){return dn.map(function(Sn){return Sn[2]})},[dn]);e.useEffect(function(){dn.forEach(function(Sn){var fn=(0,Q.Z)(Sn,2),on=fn[0],hn=fn[1];We(on,hn)})},[dn]),e.useImperativeHandle(o,function(){var Sn,fn={scrollTo:function(hn){var wn;(wn=Ut.current)===null||wn===void 0||wn.scrollTo(hn)},nativeElement:(Sn=Ut.current)===null||Sn===void 0?void 0:Sn.nativeElement};return Object.defineProperty(fn,"scrollLeft",{get:function(){var hn;return((hn=Ut.current)===null||hn===void 0?void 0:hn.getScrollInfo().x)||0},set:function(hn){var wn;(wn=Ut.current)===null||wn===void 0||wn.scrollTo({left:hn})}}),fn});var yn=function(fn,on){var hn,wn=(hn=ln[on])===null||hn===void 0?void 0:hn.record,zn=fn.onCell;if(zn){var cn,dr=zn(wn,on);return(cn=dr==null?void 0:dr.rowSpan)!==null&&cn!==void 0?cn:1}return 1},nr=function(fn){var on=fn.start,hn=fn.end,wn=fn.getSize,zn=fn.offsetY;if(hn<0)return null;for(var cn=be.filter(function(Nn){return yn(Nn,on)===0}),dr=on,mr=function(_n){if(cn=cn.filter(function($n){return yn($n,_n)===0}),!cn.length)return dr=_n,1},fo=on;fo>=0&&!mr(fo);fo-=1);for(var ro=be.filter(function(Nn){return yn(Nn,hn)!==1}),Qr=hn,lo=function(_n){if(ro=ro.filter(function($n){return yn($n,_n)!==1}),!ro.length)return Qr=Math.max(_n-1,hn),1},Zo=hn;Zo1})&&gr.push(_n)},ho=dr;ho<=Qr;ho+=1)yr(ho);var $o=gr.map(function(Nn){var _n=ln[Nn],$n=$e(_n.record,Nn),Ln=function(oo){var Jr=Nn+oo-1,Ao=$e(ln[Jr].record,Jr),zo=wn($n,Ao);return zo.bottom-zo.top},Rr=wn($n);return e.createElement(Vn,{key:Nn,data:_n,rowKey:$n,index:Nn,style:{top:-zn+Rr.top},extra:!0,getHeight:Ln})});return $o},Fn=e.useMemo(function(){return{columnsOffset:xn}},[xn]),Kn="".concat(Qe,"-tbody"),Gn=_t(["body","wrapper"]),Cn={};return ht&&(Cn.position="sticky",Cn.bottom=0,(0,Ee.Z)(ht)==="object"&&ht.offsetScroll&&(Cn.bottom=ht.offsetScroll)),e.createElement(bn.Provider,{value:Fn},e.createElement(un.Z,{fullHeight:!1,ref:Ut,prefixCls:"".concat(Kn,"-virtual"),styles:{horizontalScrollBar:Cn},className:Kn,height:qt,itemHeight:Nt||24,data:ln,itemKey:function(fn){return $e(fn.record)},component:Gn,scrollWidth:dt,direction:st,onVirtualScroll:function(fn){var on,hn=fn.x;j({currentTarget:(on=Ut.current)===null||on===void 0?void 0:on.nativeElement,scrollLeft:hn})},onScroll:tn,extraRender:nr},function(Sn,fn,on){var hn=$e(Sn.record,fn);return e.createElement(Vn,{data:Sn,rowKey:hn,index:fn,style:on.style})}))}),rr=fe(Jn),ar=rr,qn=function(o,E){var j=E.ref,ie=E.onScroll;return e.createElement(ar,{ref:j,data:o,onScroll:ie})};function Lt(a,o){var E=a.data,j=a.columns,ie=a.scroll,be=a.sticky,We=a.prefixCls,$e=We===void 0?Xt:We,Je=a.className,Qe=a.listItemHeight,St=a.components,dt=a.onScroll,st=ie||{},lt=st.x,ht=st.y;typeof lt!="number"&&(lt=1),typeof ht!="number"&&(ht=500);var qt=(0,B.zX)(function(tn,Ut){return(0,le.Z)(St,tn)||Ut}),Nt=(0,B.zX)(dt),_t=e.useMemo(function(){return{sticky:be,scrollY:ht,listItemHeight:Qe,getComponent:qt,onScroll:Nt}},[be,ht,Qe,qt,Nt]);return e.createElement(sn.Provider,{value:_t},e.createElement(En,(0,X.Z)({},a,{className:S()(Je,"".concat($e,"-virtual")),scroll:(0,ae.Z)((0,ae.Z)({},ie),{},{x:lt}),components:(0,ae.Z)((0,ae.Z)({},St),{},{body:E!=null&&E.length?qn:void 0}),columns:j,internalHooks:p,tailor:!0,ref:o})))}var yt=e.forwardRef(Lt);function Et(a){return h(yt,a)}var It=Et(),wt=null,nn=a=>null,Rn=a=>null,kn=t(84105),Cr=t(82661),Sr=t(34643),hr=t(34061),er=t(18929);function xr(a){const[o,E]=(0,e.useState)(null);return[(0,e.useCallback)((be,We,$e)=>{const Je=o!=null?o:be,Qe=Math.min(Je||0,be),St=Math.max(Je||0,be),dt=We.slice(Qe,St+1).map(ht=>a(ht)),st=dt.some(ht=>!$e.has(ht)),lt=[];return dt.forEach(ht=>{st?($e.has(ht)||lt.push(ht),$e.add(ht)):($e.delete(ht),lt.push(ht))}),E(st?St:null),lt},[o]),be=>{E(be)}]}var Er=t(32383),Dr=t(62673),cr=t(75727),Ir=t(47889);const ir={},Zr="SELECT_ALL",kr="SELECT_INVERT",jr="SELECT_NONE",Kr=[],Gr=(a,o)=>{let E=[];return(o||[]).forEach(j=>{E.push(j),j&&typeof j=="object"&&a in j&&(E=[].concat((0,ke.Z)(E),(0,ke.Z)(Gr(a,j[a]))))}),E};var Yn=(a,o)=>{const{preserveSelectedRowKeys:E,selectedRowKeys:j,defaultSelectedRowKeys:ie,getCheckboxProps:be,onChange:We,onSelect:$e,onSelectAll:Je,onSelectInvert:Qe,onSelectNone:St,onSelectMultiple:dt,columnWidth:st,type:lt,selections:ht,fixed:qt,renderCell:Nt,hideSelectAll:_t,checkStrictly:tn=!0}=o||{},{prefixCls:Ut,data:ln,pageData:dn,getRecordByKey:xn,getRowKey:yn,expandType:nr,childrenColumnName:Fn,locale:Kn,getPopupContainer:Gn}=a,Cn=(0,Er.ln)("Table"),[Sn,fn]=xr(Nn=>Nn),[on,hn]=(0,er.Z)(j||ie||Kr,{value:j}),wn=e.useRef(new Map),zn=(0,e.useCallback)(Nn=>{if(E){const _n=new Map;Nn.forEach($n=>{let Ln=xn($n);!Ln&&wn.current.has($n)&&(Ln=wn.current.get($n)),_n.set($n,Ln)}),wn.current=_n}},[xn,E]);e.useEffect(()=>{zn(on)},[on]);const cn=(0,e.useMemo)(()=>Gr(Fn,dn),[Fn,dn]),{keyEntities:dr}=(0,e.useMemo)(()=>{if(tn)return{keyEntities:null};let Nn=ln;if(E){const _n=new Set(cn.map((Ln,Rr)=>yn(Ln,Rr))),$n=Array.from(wn.current).reduce((Ln,Rr)=>{let[Mr,oo]=Rr;return _n.has(Mr)?Ln:Ln.concat(oo)},[]);Nn=[].concat((0,ke.Z)(Nn),(0,ke.Z)($n))}return(0,hr.I8)(Nn,{externalGetKey:yn,childrenPropName:Fn})},[ln,yn,tn,Fn,E,cn]),mr=(0,e.useMemo)(()=>{const Nn=new Map;return cn.forEach((_n,$n)=>{const Ln=yn(_n,$n),Rr=(be?be(_n):null)||{};Nn.set(Ln,Rr)}),Nn},[cn,yn,be]),fo=(0,e.useCallback)(Nn=>{const _n=yn(Nn);let $n;return mr.has(_n)?$n=mr.get(yn(Nn)):$n=be?be(Nn):void 0,!!($n!=null&&$n.disabled)},[mr,yn]),[ro,Qr]=(0,e.useMemo)(()=>{if(tn)return[on||[],[]];const{checkedKeys:Nn,halfCheckedKeys:_n}=(0,Sr.S)(on,!0,dr,fo);return[Nn||[],_n]},[on,tn,dr,fo]),lo=(0,e.useMemo)(()=>{const Nn=lt==="radio"?ro.slice(0,1):ro;return new Set(Nn)},[ro,lt]),Zo=(0,e.useMemo)(()=>lt==="radio"?new Set:new Set(Qr),[Qr,lt]);e.useEffect(()=>{o||hn(Kr)},[!!o]);const gr=(0,e.useCallback)((Nn,_n)=>{let $n,Ln;zn(Nn),E?($n=Nn,Ln=Nn.map(Rr=>wn.current.get(Rr))):($n=[],Ln=[],Nn.forEach(Rr=>{const Mr=xn(Rr);Mr!==void 0&&($n.push(Rr),Ln.push(Mr))})),hn($n),We==null||We($n,Ln,{type:_n})},[hn,xn,We,E]),yr=(0,e.useCallback)((Nn,_n,$n,Ln)=>{if($e){const Rr=$n.map(Mr=>xn(Mr));$e(xn(Nn),_n,Rr,Ln)}gr($n,"single")},[$e,xn,gr]),ho=(0,e.useMemo)(()=>!ht||_t?null:(ht===!0?[Zr,kr,jr]:ht).map(_n=>_n===Zr?{key:"all",text:Kn.selectionAll,onSelect(){gr(ln.map(($n,Ln)=>yn($n,Ln)).filter($n=>{const Ln=mr.get($n);return!(Ln!=null&&Ln.disabled)||lo.has($n)}),"all")}}:_n===kr?{key:"invert",text:Kn.selectInvert,onSelect(){const $n=new Set(lo);dn.forEach((Rr,Mr)=>{const oo=yn(Rr,Mr),Jr=mr.get(oo);Jr!=null&&Jr.disabled||($n.has(oo)?$n.delete(oo):$n.add(oo))});const Ln=Array.from($n);Qe&&(Cn.deprecated(!1,"onSelectInvert","onChange"),Qe(Ln)),gr(Ln,"invert")}}:_n===jr?{key:"none",text:Kn.selectNone,onSelect(){St==null||St(),gr(Array.from(lo).filter($n=>{const Ln=mr.get($n);return Ln==null?void 0:Ln.disabled}),"none")}}:_n).map(_n=>Object.assign(Object.assign({},_n),{onSelect:function(){for(var $n,Ln,Rr=arguments.length,Mr=new Array(Rr),oo=0;oo{var _n;if(!o)return Nn.filter(Ar=>Ar!==ir);let $n=(0,ke.Z)(Nn);const Ln=new Set(lo),Rr=cn.map(yn).filter(Ar=>!mr.get(Ar).disabled),Mr=Rr.every(Ar=>Ln.has(Ar)),oo=Rr.some(Ar=>Ln.has(Ar)),Jr=()=>{const Ar=[];Mr?Rr.forEach(eo=>{Ln.delete(eo),Ar.push(eo)}):Rr.forEach(eo=>{Ln.has(eo)||(Ln.add(eo),Ar.push(eo))});const qr=Array.from(Ln);Je==null||Je(!Mr,qr.map(eo=>xn(eo)),Ar.map(eo=>xn(eo))),gr(qr,"all"),fn(null)};let Ao,zo;if(lt!=="radio"){let Ar;if(ho){const Tr={getPopupContainer:Gn,items:ho.map((mo,Ur)=>{const{key:Ho,text:yo,onSelect:Qo}=mo;return{key:Ho!=null?Ho:Ur,onClick:()=>{Qo==null||Qo(Rr)},label:yo}})};Ar=e.createElement("div",{className:`${Ut}-selection-extra`},e.createElement(cr.Z,{menu:Tr,getPopupContainer:Gn},e.createElement("span",null,e.createElement(kn.Z,null))))}const qr=cn.map((Tr,mo)=>{const Ur=yn(Tr,mo),Ho=mr.get(Ur)||{};return Object.assign({checked:Ln.has(Ur)},Ho)}).filter(Tr=>{let{disabled:mo}=Tr;return mo}),eo=!!qr.length&&qr.length===cn.length,Po=eo&&qr.every(Tr=>{let{checked:mo}=Tr;return mo}),So=eo&&qr.some(Tr=>{let{checked:mo}=Tr;return mo});zo=e.createElement(Dr.default,{checked:eo?Po:!!cn.length&&Mr,indeterminate:eo?!Po&&So:!Mr&&oo,onChange:Jr,disabled:cn.length===0||eo,"aria-label":Ar?"Custom selection":"Select all",skipGroup:!0}),Ao=!_t&&e.createElement("div",{className:`${Ut}-selection`},zo,Ar)}let Bn;lt==="radio"?Bn=(Ar,qr,eo)=>{const Po=yn(qr,eo),So=Ln.has(Po),Tr=mr.get(Po);return{node:e.createElement(Ir.ZP,Object.assign({},Tr,{checked:So,onClick:mo=>{var Ur;mo.stopPropagation(),(Ur=Tr==null?void 0:Tr.onClick)===null||Ur===void 0||Ur.call(Tr,mo)},onChange:mo=>{var Ur;Ln.has(Po)||yr(Po,!0,[Po],mo.nativeEvent),(Ur=Tr==null?void 0:Tr.onChange)===null||Ur===void 0||Ur.call(Tr,mo)}})),checked:So}}:Bn=(Ar,qr,eo)=>{var Po;const So=yn(qr,eo),Tr=Ln.has(So),mo=Zo.has(So),Ur=mr.get(So);let Ho;return nr==="nest"?Ho=mo:Ho=(Po=Ur==null?void 0:Ur.indeterminate)!==null&&Po!==void 0?Po:mo,{node:e.createElement(Dr.default,Object.assign({},Ur,{indeterminate:Ho,checked:Tr,skipGroup:!0,onClick:yo=>{var Qo;yo.stopPropagation(),(Qo=Ur==null?void 0:Ur.onClick)===null||Qo===void 0||Qo.call(Ur,yo)},onChange:yo=>{var Qo;const{nativeEvent:Ia}=yo,{shiftKey:Va}=Ia,so=Rr.findIndex(Jo=>Jo===So),Ua=ro.some(Jo=>Rr.includes(Jo));if(Va&&tn&&Ua){const Jo=Sn(so,Rr,Ln),sa=Array.from(Ln);dt==null||dt(!Tr,sa.map(oa=>xn(oa)),Jo.map(oa=>xn(oa))),gr(sa,"multiple")}else{const Jo=ro;if(tn){const sa=Tr?(0,Cr._5)(Jo,So):(0,Cr.L0)(Jo,So);yr(So,!Tr,sa,Ia)}else{const sa=(0,Sr.S)([].concat((0,ke.Z)(Jo),[So]),!0,dr,fo),{checkedKeys:oa,halfCheckedKeys:qo}=sa;let _o=oa;if(Tr){const ca=new Set(oa);ca.delete(So),_o=(0,Sr.S)(Array.from(ca),{checked:!1,halfCheckedKeys:qo},dr,fo).checkedKeys}yr(So,!Tr,_o,Ia)}}fn(Tr?null:so),(Qo=Ur==null?void 0:Ur.onChange)===null||Qo===void 0||Qo.call(Ur,yo)}})),checked:Tr}};const Wn=(Ar,qr,eo)=>{const{node:Po,checked:So}=Bn(Ar,qr,eo);return Nt?Nt(So,qr,eo,Po):Po};if(!$n.includes(ir))if($n.findIndex(Ar=>{var qr;return((qr=Ar[Ke])===null||qr===void 0?void 0:qr.columnType)==="EXPAND_COLUMN"})===0){const[Ar,...qr]=$n;$n=[Ar,ir].concat((0,ke.Z)(qr))}else $n=[ir].concat((0,ke.Z)($n));const Br=$n.indexOf(ir);$n=$n.filter((Ar,qr)=>Ar!==ir||qr===Br);const ao=$n[Br-1],Fr=$n[Br+1];let Ko=qt;Ko===void 0&&((Fr==null?void 0:Fr.fixed)!==void 0?Ko=Fr.fixed:(ao==null?void 0:ao.fixed)!==void 0&&(Ko=ao.fixed)),Ko&&ao&&((_n=ao[Ke])===null||_n===void 0?void 0:_n.columnType)==="EXPAND_COLUMN"&&ao.fixed===void 0&&(ao.fixed=Ko);const bo=S()(`${Ut}-selection-col`,{[`${Ut}-selection-col-with-dropdown`]:ht&<==="checkbox"}),ma=()=>o!=null&&o.columnTitle?typeof o.columnTitle=="function"?o.columnTitle(zo):o.columnTitle:Ao,io={fixed:Ko,width:st,className:`${Ut}-selection-column`,title:ma(),render:Wn,onCell:o.onCell,[Ke]:{className:bo}};return $n.map(Ar=>Ar===ir?io:Ar)},[yn,cn,o,ro,lo,Zo,st,ho,nr,mr,dt,yr,fo]),lo]},br=t(2738);function vr(a,o){return a._antProxy=a._antProxy||{},Object.keys(o).forEach(E=>{if(!(E in a._antProxy)){const j=a[E];a._antProxy[E]=j,a[E]=o[E]}}),a}function xo(a,o){return(0,e.useImperativeHandle)(a,()=>{const E=o(),{nativeElement:j}=E;return typeof Proxy!="undefined"?new Proxy(j,{get(ie,be){return E[be]?E[be]:Reflect.get(ie,be)}}):vr(j,E)})}var Lo=t(83010),vo=t(48755),Eo=t(38406),Bo=t(83397),wo=t(31756),Xr=t(13783),co=t(85981),to=t(31709),lr=t(29787),Lr=t(57700);function Hr(a){return o=>{const{prefixCls:E,onExpand:j,record:ie,expanded:be,expandable:We}=o,$e=`${E}-row-expand-icon`;return e.createElement("button",{type:"button",onClick:Je=>{j(ie,Je),Je.stopPropagation()},className:S()($e,{[`${$e}-spaced`]:!We,[`${$e}-expanded`]:We&&be,[`${$e}-collapsed`]:We&&!be}),"aria-label":be?a.collapse:a.expand,"aria-expanded":be})}}var In=Hr;function Hn(a){return(E,j)=>{const ie=E.querySelector(`.${a}-container`);let be=j;if(ie){const We=getComputedStyle(ie),$e=parseInt(We.borderLeftWidth,10),Je=parseInt(We.borderRightWidth,10);be=j-$e-Je}return be}}const On=(a,o)=>"key"in a&&a.key!==void 0&&a.key!==null?a.key:a.dataIndex?Array.isArray(a.dataIndex)?a.dataIndex.join("."):a.dataIndex:o;function jn(a,o){return o?`${o}-${a}`:`${a}`}const fr=(a,o)=>typeof a=="function"?a(o):a,$r=(a,o)=>{const E=fr(a,o);return Object.prototype.toString.call(E)==="[object Object]"?"":E};var Oo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},gn=Oo,An=t(7657),tr=function(o,E){return e.createElement(An.Z,(0,X.Z)({},o,{ref:E,icon:gn}))},wr=e.forwardRef(tr),Pr=wr,To=t(9981),Io=t(40192);function Xo(a){const o=e.useRef(a),E=(0,Io.Z)();return[()=>o.current,j=>{o.current=j,E()}]}var sr=t(7939),Xn=t(584),Vr=t(93041),_r=t(78857),go=t(18287),No=t(47472),ko=t(49397),aa=a=>{const{value:o,filterSearch:E,tablePrefixCls:j,locale:ie,onChange:be}=a;return E?e.createElement("div",{className:`${j}-filter-dropdown-search`},e.createElement(ko.Z,{prefix:e.createElement(No.Z,null),placeholder:ie.filterSearchPlaceholder,onChange:be,value:o,htmlSize:1,className:`${j}-filter-dropdown-search-input`})):null},Do=t(10228);const ba=a=>{const{keyCode:o}=a;o===Do.Z.ENTER&&a.stopPropagation()};var Sa=e.forwardRef((a,o)=>e.createElement("div",{className:a.className,onClick:E=>E.stopPropagation(),onKeyDown:ba,ref:o},a.children));function ta(a){let o=[];return(a||[]).forEach(E=>{let{value:j,children:ie}=E;o.push(j),ie&&(o=[].concat((0,ke.Z)(o),(0,ke.Z)(ta(ie))))}),o}function La(a){return a.some(o=>{let{children:E}=o;return E})}function xa(a,o){return typeof o=="string"||typeof o=="number"?o==null?void 0:o.toString().toLowerCase().includes(a.trim().toLowerCase()):!1}function Ma(a){let{filters:o,prefixCls:E,filteredKeys:j,filterMultiple:ie,searchValue:be,filterSearch:We}=a;return o.map(($e,Je)=>{const Qe=String($e.value);if($e.children)return{key:Qe||Je,label:$e.text,popupClassName:`${E}-dropdown-submenu`,children:Ma({filters:$e.children,prefixCls:E,filteredKeys:j,filterMultiple:ie,searchValue:be,filterSearch:We})};const St=ie?Dr.default:Ir.ZP,dt={key:$e.value!==void 0?Qe:Je,label:e.createElement(e.Fragment,null,e.createElement(St,{checked:j.includes(Qe)}),e.createElement("span",null,$e.text))};return be.trim()?typeof We=="function"?We(be,$e)?dt:null:xa(be,$e.text)?dt:null:dt})}function Ra(a){return a||[]}var Fa=a=>{var o,E,j,ie;const{tablePrefixCls:be,prefixCls:We,column:$e,dropdownPrefixCls:Je,columnKey:Qe,filterOnClose:St,filterMultiple:dt,filterMode:st="menu",filterSearch:lt=!1,filterState:ht,triggerFilter:qt,locale:Nt,children:_t,getPopupContainer:tn,rootClassName:Ut}=a,{filterResetToDefaultFilteredValue:ln,defaultFilteredValue:dn,filterDropdownProps:xn={},filterDropdownOpen:yn,filterDropdownVisible:nr,onFilterDropdownVisibleChange:Fn,onFilterDropdownOpenChange:Kn}=$e,[Gn,Cn]=e.useState(!1),Sn=!!(ht&&(!((o=ht.filteredKeys)===null||o===void 0)&&o.length||ht.forceFiltered)),fn=Bn=>{var Wn;Cn(Bn),(Wn=xn.onOpenChange)===null||Wn===void 0||Wn.call(xn,Bn),Kn==null||Kn(Bn),Fn==null||Fn(Bn)},on=(ie=(j=(E=xn.open)!==null&&E!==void 0?E:yn)!==null&&j!==void 0?j:nr)!==null&&ie!==void 0?ie:Gn,hn=ht==null?void 0:ht.filteredKeys,[wn,zn]=Xo(Ra(hn)),cn=Bn=>{let{selectedKeys:Wn}=Bn;zn(Wn)},dr=(Bn,Wn)=>{let{node:Br,checked:ao}=Wn;cn(dt?{selectedKeys:Bn}:{selectedKeys:ao&&Br.key?[Br.key]:[]})};e.useEffect(()=>{Gn&&cn({selectedKeys:Ra(hn)})},[hn]);const[mr,fo]=e.useState([]),ro=Bn=>{fo(Bn)},[Qr,lo]=e.useState(""),Zo=Bn=>{const{value:Wn}=Bn.target;lo(Wn)};e.useEffect(()=>{Gn||lo("")},[Gn]);const gr=Bn=>{const Wn=Bn!=null&&Bn.length?Bn:null;if(Wn===null&&(!ht||!ht.filteredKeys)||(0,g.Z)(Wn,ht==null?void 0:ht.filteredKeys,!0))return null;qt({column:$e,key:Qe,filteredKeys:Wn})},yr=()=>{fn(!1),gr(wn())},ho=function(){let{confirm:Bn,closeDropdown:Wn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Bn&&gr([]),Wn&&fn(!1),lo(""),zn(ln?(dn||[]).map(Br=>String(Br)):[])},$o=function(){let{closeDropdown:Bn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Bn&&fn(!1),gr(wn())},Nn=(Bn,Wn)=>{Wn.source==="trigger"&&(Bn&&hn!==void 0&&zn(Ra(hn)),fn(Bn),!Bn&&!$e.filterDropdown&&St&&yr())},_n=S()({[`${Je}-menu-without-submenu`]:!La($e.filters||[])}),$n=Bn=>{if(Bn.target.checked){const Wn=ta($e==null?void 0:$e.filters).map(Br=>String(Br));zn(Wn)}else zn([])},Ln=Bn=>{let{filters:Wn}=Bn;return(Wn||[]).map((Br,ao)=>{const Fr=String(Br.value),Ko={title:Br.text,key:Br.value!==void 0?Fr:String(ao)};return Br.children&&(Ko.children=Ln({filters:Br.children})),Ko})},Rr=Bn=>{var Wn;return Object.assign(Object.assign({},Bn),{text:Bn.title,value:Bn.key,children:((Wn=Bn.children)===null||Wn===void 0?void 0:Wn.map(Br=>Rr(Br)))||[]})};let Mr;const{direction:oo,renderEmpty:Jr}=e.useContext(vo.E_);if(typeof $e.filterDropdown=="function")Mr=$e.filterDropdown({prefixCls:`${Je}-custom`,setSelectedKeys:Bn=>cn({selectedKeys:Bn}),selectedKeys:wn(),confirm:$o,clearFilters:ho,filters:$e.filters,visible:on,close:()=>{fn(!1)}});else if($e.filterDropdown)Mr=$e.filterDropdown;else{const Bn=wn()||[],Wn=()=>{var ao,Fr;const Ko=(ao=Jr==null?void 0:Jr("Table.filter"))!==null&&ao!==void 0?ao:e.createElement(Xn.Z,{image:Xn.Z.PRESENTED_IMAGE_SIMPLE,description:Nt.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(($e.filters||[]).length===0)return Ko;if(st==="tree")return e.createElement(e.Fragment,null,e.createElement(aa,{filterSearch:lt,value:Qr,onChange:Zo,tablePrefixCls:be,locale:Nt}),e.createElement("div",{className:`${be}-filter-dropdown-tree`},dt?e.createElement(Dr.default,{checked:Bn.length===ta($e.filters).length,indeterminate:Bn.length>0&&Bn.lengthtypeof lt=="function"?lt(Qr,Rr(io)):xa(Qr,io.title):void 0})));const bo=Ma({filters:$e.filters||[],filterSearch:lt,prefixCls:We,filteredKeys:wn(),filterMultiple:dt,searchValue:Qr}),ma=bo.every(io=>io===null);return e.createElement(e.Fragment,null,e.createElement(aa,{filterSearch:lt,value:Qr,onChange:Zo,tablePrefixCls:be,locale:Nt}),ma?Ko:e.createElement(Vr.default,{selectable:!0,multiple:dt,prefixCls:`${Je}-menu`,className:_n,onSelect:cn,onDeselect:cn,selectedKeys:Bn,getPopupContainer:tn,openKeys:mr,onOpenChange:ro,items:bo}))},Br=()=>ln?(0,g.Z)((dn||[]).map(ao=>String(ao)),Bn,!0):Bn.length===0;Mr=e.createElement(e.Fragment,null,Wn(),e.createElement("div",{className:`${We}-dropdown-btns`},e.createElement(sr.ZP,{type:"link",size:"small",disabled:Br(),onClick:()=>ho()},Nt.filterReset),e.createElement(sr.ZP,{type:"primary",size:"small",onClick:yr},Nt.filterConfirm)))}$e.filterDropdown&&(Mr=e.createElement(_r.J,{selectable:void 0},Mr)),Mr=e.createElement(Sa,{className:`${We}-dropdown`},Mr);const Ao=()=>{let Bn;return typeof $e.filterIcon=="function"?Bn=$e.filterIcon(Sn):$e.filterIcon?Bn=$e.filterIcon:Bn=e.createElement(Pr,null),e.createElement("span",{role:"button",tabIndex:-1,className:S()(`${We}-trigger`,{active:Sn}),onClick:Wn=>{Wn.stopPropagation()}},Bn)},zo=(0,To.Z)({trigger:["click"],placement:oo==="rtl"?"bottomLeft":"bottomRight",children:Ao(),getPopupContainer:tn},Object.assign(Object.assign({},xn),{rootClassName:S()(Ut,xn.rootClassName),open:on,onOpenChange:Nn,dropdownRender:()=>typeof(xn==null?void 0:xn.dropdownRender)=="function"?xn.dropdownRender(Mr):Mr}));return e.createElement("div",{className:`${We}-column`},e.createElement("span",{className:`${be}-column-title`},_t),e.createElement(cr.Z,Object.assign({},zo)))};const ya=(a,o,E)=>{let j=[];return(a||[]).forEach((ie,be)=>{var We;const $e=jn(be,E);if(ie.filters||"filterDropdown"in ie||"onFilter"in ie)if("filteredValue"in ie){let Je=ie.filteredValue;"filterDropdown"in ie||(Je=(We=Je==null?void 0:Je.map(String))!==null&&We!==void 0?We:Je),j.push({column:ie,key:On(ie,$e),filteredKeys:Je,forceFiltered:ie.filtered})}else j.push({column:ie,key:On(ie,$e),filteredKeys:o&&ie.defaultFilteredValue?ie.defaultFilteredValue:void 0,forceFiltered:ie.filtered});"children"in ie&&(j=[].concat((0,ke.Z)(j),(0,ke.Z)(ya(ie.children,o,$e))))}),j};function ia(a,o,E,j,ie,be,We,$e,Je){return E.map((Qe,St)=>{const dt=jn(St,$e),{filterOnClose:st=!0,filterMultiple:lt=!0,filterMode:ht,filterSearch:qt}=Qe;let Nt=Qe;if(Nt.filters||Nt.filterDropdown){const _t=On(Nt,dt),tn=j.find(Ut=>{let{key:ln}=Ut;return _t===ln});Nt=Object.assign(Object.assign({},Nt),{title:Ut=>e.createElement(Fa,{tablePrefixCls:a,prefixCls:`${a}-filter`,dropdownPrefixCls:o,column:Nt,columnKey:_t,filterState:tn,filterOnClose:st,filterMultiple:lt,filterMode:ht,filterSearch:qt,triggerFilter:be,locale:ie,getPopupContainer:We,rootClassName:Je},fr(Qe.title,Ut))})}return"children"in Nt&&(Nt=Object.assign(Object.assign({},Nt),{children:ia(a,o,Nt.children,j,ie,be,We,dt,Je)})),Nt})}const pr=a=>{const o={};return a.forEach(E=>{let{key:j,filteredKeys:ie,column:be}=E;const We=j,{filters:$e,filterDropdown:Je}=be;if(Je)o[We]=ie||null;else if(Array.isArray(ie)){const Qe=ta($e);o[We]=Qe.filter(St=>ie.includes(String(St)))}else o[We]=null}),o},ur=(a,o,E)=>o.reduce((ie,be)=>{const{column:{onFilter:We,filters:$e},filteredKeys:Je}=be;return We&&Je&&Je.length?ie.map(Qe=>Object.assign({},Qe)).filter(Qe=>Je.some(St=>{const dt=ta($e),st=dt.findIndex(ht=>String(ht)===String(St)),lt=st!==-1?dt[st]:St;return Qe[E]&&(Qe[E]=ur(Qe[E],o,E)),We(lt,Qe)})):ie},a),Mo=a=>a.flatMap(o=>"children"in o?[o].concat((0,ke.Z)(Mo(o.children||[]))):[o]);var uo=a=>{const{prefixCls:o,dropdownPrefixCls:E,mergedColumns:j,onFilterChange:ie,getPopupContainer:be,locale:We,rootClassName:$e}=a,Je=(0,Er.ln)("Table"),Qe=e.useMemo(()=>Mo(j||[]),[j]),[St,dt]=e.useState(()=>ya(Qe,!0)),st=e.useMemo(()=>{const Nt=ya(Qe,!1);if(Nt.length===0)return Nt;let _t=!0,tn=!0;if(Nt.forEach(Ut=>{let{filteredKeys:ln}=Ut;ln!==void 0?_t=!1:tn=!1}),_t){const Ut=(Qe||[]).map((ln,dn)=>On(ln,jn(dn)));return St.filter(ln=>{let{key:dn}=ln;return Ut.includes(dn)}).map(ln=>{const dn=Qe[Ut.findIndex(xn=>xn===ln.key)];return Object.assign(Object.assign({},ln),{column:Object.assign(Object.assign({},ln.column),dn),forceFiltered:dn.filtered})})}return Nt},[Qe,St]),lt=e.useMemo(()=>pr(st),[st]),ht=Nt=>{const _t=st.filter(tn=>{let{key:Ut}=tn;return Ut!==Nt.key});_t.push(Nt),dt(_t),ie(pr(_t),_t)};return[Nt=>ia(o,E,Nt,st,We,ht,be,void 0,$e),st,lt]},ra=(a,o,E)=>{const j=e.useRef({});function ie(be){var We;if(!j.current||j.current.data!==a||j.current.childrenColumnName!==o||j.current.getRowKey!==E){let Je=function(Qe){Qe.forEach((St,dt)=>{const st=E(St,dt);$e.set(st,St),St&&typeof St=="object"&&o in St&&Je(St[o]||[])})};const $e=new Map;Je(a),j.current={data:a,childrenColumnName:o,kvMap:$e,getRowKey:E}}return(We=j.current.kvMap)===null||We===void 0?void 0:We.get(be)}return[ie]},na=function(a,o){var E={};for(var j in a)Object.prototype.hasOwnProperty.call(a,j)&&o.indexOf(j)<0&&(E[j]=a[j]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,j=Object.getOwnPropertySymbols(a);ie{const be=a[ie];typeof be!="function"&&(E[ie]=be)}),E}function va(a,o,E){const j=E&&typeof E=="object"?E:{},{total:ie=0}=j,be=na(j,["total"]),[We,$e]=(0,e.useState)(()=>({current:"defaultCurrent"in be?be.defaultCurrent:1,pageSize:"defaultPageSize"in be?be.defaultPageSize:la})),Je=(0,To.Z)(We,be,{total:ie>0?ie:a}),Qe=Math.ceil((ie||a)/Je.pageSize);Je.current>Qe&&(Je.current=Qe||1);const St=(st,lt)=>{$e({current:st!=null?st:1,pageSize:lt||Je.pageSize})},dt=(st,lt)=>{var ht;E&&((ht=E.onChange)===null||ht===void 0||ht.call(E,st,lt)),St(st,lt),o(st,lt||(Je==null?void 0:Je.pageSize))};return E===!1?[{},()=>{}]:[Object.assign(Object.assign({},Je),{onChange:dt}),St]}var Ea=va,wa=t(89489),ti=t(59477),ka=t(25399);const no="ascend",Wr="descend",Yr=a=>typeof a.sorter=="object"&&typeof a.sorter.multiple=="number"?a.sorter.multiple:!1,Go=a=>typeof a=="function"?a:a&&typeof a=="object"&&a.compare?a.compare:!1,Yo=(a,o)=>o?a[a.indexOf(o)+1]:a[0],Oa=(a,o,E)=>{let j=[];const ie=(be,We)=>{j.push({column:be,key:On(be,We),multiplePriority:Yr(be),sortOrder:be.sortOrder})};return(a||[]).forEach((be,We)=>{const $e=jn(We,E);be.children?("sortOrder"in be&&ie(be,$e),j=[].concat((0,ke.Z)(j),(0,ke.Z)(Oa(be.children,o,$e)))):be.sorter&&("sortOrder"in be?ie(be,$e):o&&be.defaultSortOrder&&j.push({column:be,key:On(be,$e),multiplePriority:Yr(be),sortOrder:be.defaultSortOrder}))}),j},Ba=(a,o,E,j,ie,be,We,$e)=>(o||[]).map((Qe,St)=>{const dt=jn(St,$e);let st=Qe;if(st.sorter){const lt=st.sortDirections||ie,ht=st.showSorterTooltip===void 0?We:st.showSorterTooltip,qt=On(st,dt),Nt=E.find(Fn=>{let{key:Kn}=Fn;return Kn===qt}),_t=Nt?Nt.sortOrder:null,tn=Yo(lt,_t);let Ut;if(Qe.sortIcon)Ut=Qe.sortIcon({sortOrder:_t});else{const Fn=lt.includes(no)&&e.createElement(ti.Z,{className:S()(`${a}-column-sorter-up`,{active:_t===no})}),Kn=lt.includes(Wr)&&e.createElement(wa.Z,{className:S()(`${a}-column-sorter-down`,{active:_t===Wr})});Ut=e.createElement("span",{className:S()(`${a}-column-sorter`,{[`${a}-column-sorter-full`]:!!(Fn&&Kn)})},e.createElement("span",{className:`${a}-column-sorter-inner`,"aria-hidden":"true"},Fn,Kn))}const{cancelSort:ln,triggerAsc:dn,triggerDesc:xn}=be||{};let yn=ln;tn===Wr?yn=xn:tn===no&&(yn=dn);const nr=typeof ht=="object"?Object.assign({title:yn},ht):{title:yn};st=Object.assign(Object.assign({},st),{className:S()(st.className,{[`${a}-column-sort`]:_t}),title:Fn=>{const Kn=`${a}-column-sorters`,Gn=e.createElement("span",{className:`${a}-column-title`},fr(Qe.title,Fn)),Cn=e.createElement("div",{className:Kn},Gn,Ut);return ht?typeof ht!="boolean"&&(ht==null?void 0:ht.target)==="sorter-icon"?e.createElement("div",{className:`${Kn} ${a}-column-sorters-tooltip-target-sorter`},Gn,e.createElement(ka.Z,Object.assign({},nr),Ut)):e.createElement(ka.Z,Object.assign({},nr),Cn):Cn},onHeaderCell:Fn=>{var Kn;const Gn=((Kn=Qe.onHeaderCell)===null||Kn===void 0?void 0:Kn.call(Qe,Fn))||{},Cn=Gn.onClick,Sn=Gn.onKeyDown;Gn.onClick=hn=>{j({column:Qe,key:qt,sortOrder:tn,multiplePriority:Yr(Qe)}),Cn==null||Cn(hn)},Gn.onKeyDown=hn=>{hn.keyCode===Do.Z.ENTER&&(j({column:Qe,key:qt,sortOrder:tn,multiplePriority:Yr(Qe)}),Sn==null||Sn(hn))};const fn=$r(Qe.title,{}),on=fn==null?void 0:fn.toString();return _t&&(Gn["aria-sort"]=_t==="ascend"?"ascending":"descending"),Gn["aria-label"]=on||"",Gn.className=S()(Gn.className,`${a}-column-has-sorters`),Gn.tabIndex=0,Qe.ellipsis&&(Gn.title=(fn!=null?fn:"").toString()),Gn}})}return"children"in st&&(st=Object.assign(Object.assign({},st),{children:Ba(a,st.children,E,j,ie,be,We,dt)})),st}),Ya=a=>{const{column:o,sortOrder:E}=a;return{column:o,order:E,field:o.dataIndex,columnKey:o.key}},ja=a=>{const o=a.filter(E=>{let{sortOrder:j}=E;return j}).map(Ya);if(o.length===0&&a.length){const E=a.length-1;return Object.assign(Object.assign({},Ya(a[E])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return o.length<=1?o[0]||{}:o},Ta=(a,o,E)=>{const j=o.slice().sort((We,$e)=>$e.multiplePriority-We.multiplePriority),ie=a.slice(),be=j.filter(We=>{let{column:{sorter:$e},sortOrder:Je}=We;return Go($e)&&Je});return be.length?ie.sort((We,$e)=>{for(let Je=0;Je{const $e=We[E];return $e?Object.assign(Object.assign({},We),{[E]:Ta($e,o,E)}):We}):ie};var Ka=a=>{const{prefixCls:o,mergedColumns:E,sortDirections:j,tableLocale:ie,showSorterTooltip:be,onSorterChange:We}=a,[$e,Je]=e.useState(Oa(E,!0)),Qe=(qt,Nt)=>{const _t=[];return qt.forEach((tn,Ut)=>{const ln=jn(Ut,Nt);if(_t.push(On(tn,ln)),Array.isArray(tn.children)){const dn=Qe(tn.children,ln);_t.push.apply(_t,(0,ke.Z)(dn))}}),_t},St=e.useMemo(()=>{let qt=!0;const Nt=Oa(E,!1);if(!Nt.length){const ln=Qe(E);return $e.filter(dn=>{let{key:xn}=dn;return ln.includes(xn)})}const _t=[];function tn(ln){qt?_t.push(ln):_t.push(Object.assign(Object.assign({},ln),{sortOrder:null}))}let Ut=null;return Nt.forEach(ln=>{Ut===null?(tn(ln),ln.sortOrder&&(ln.multiplePriority===!1?qt=!1:Ut=!0)):(Ut&&ln.multiplePriority!==!1||(qt=!1),tn(ln))}),_t},[E,$e]),dt=e.useMemo(()=>{var qt,Nt;const _t=St.map(tn=>{let{column:Ut,sortOrder:ln}=tn;return{column:Ut,order:ln}});return{sortColumns:_t,sortColumn:(qt=_t[0])===null||qt===void 0?void 0:qt.column,sortOrder:(Nt=_t[0])===null||Nt===void 0?void 0:Nt.order}},[St]),st=qt=>{let Nt;qt.multiplePriority===!1||!St.length||St[0].multiplePriority===!1?Nt=[qt]:Nt=[].concat((0,ke.Z)(St.filter(_t=>{let{key:tn}=_t;return tn!==qt.key})),[qt]),Je(Nt),We(ja(Nt),Nt)};return[qt=>Ba(o,qt,St,st,j,ie,be),St,dt,()=>ja(St)]};const Qa=(a,o)=>a.map(j=>{const ie=Object.assign({},j);return ie.title=fr(j.title,o),"children"in ie&&(ie.children=Qa(ie.children,o)),ie});var Pi=a=>[e.useCallback(E=>Qa(E,a),[a])],Ri=$t((a,o)=>{const{_renderTimes:E}=a,{_renderTimes:j}=o;return E!==j}),Ni=Et((a,o)=>{const{_renderTimes:E}=a,{_renderTimes:j}=o;return E!==j}),Qn=t(36237),Ha=t(17835),Wa=t(63356),Di=t(16931),Mi=t(51636),Bi=a=>{const{componentCls:o,lineWidth:E,lineType:j,tableBorderColor:ie,tableHeaderBg:be,tablePaddingVertical:We,tablePaddingHorizontal:$e,calc:Je}=a,Qe=`${(0,Qn.unit)(E)} ${j} ${ie}`,St=(dt,st,lt)=>({[`&${o}-${dt}`]:{[`> ${o}-container`]:{[`> ${o}-content, > ${o}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`${(0,Qn.unit)(Je(st).mul(-1).equal())} + ${(0,Qn.unit)(Je(Je(lt).add(E)).mul(-1).equal())}`}}}}}});return{[`${o}-wrapper`]:{[`${o}${o}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${o}-title`]:{border:Qe,borderBottom:0},[`> ${o}-container`]:{borderInlineStart:Qe,borderTop:Qe,[` + > ${o}-content, + > ${o}-header, + > ${o}-body, + > ${o}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Qe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Qe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${o}-cell-fix-right-first::after`]:{borderInlineEnd:Qe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`${(0,Qn.unit)(Je(We).mul(-1).equal())} ${(0,Qn.unit)(Je(Je($e).add(E)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:E,bottom:0,borderInlineEnd:Qe,content:'""'}}}}}},[`&${o}-scroll-horizontal`]:{[`> ${o}-container > ${o}-body`]:{"> table > tbody":{[` + > tr${o}-expanded-row, + > tr${o}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},St("middle",a.tablePaddingVerticalMiddle,a.tablePaddingHorizontalMiddle)),St("small",a.tablePaddingVerticalSmall,a.tablePaddingHorizontalSmall)),{[`> ${o}-footer`]:{border:Qe,borderTop:0}}),[`${o}-cell`]:{[`${o}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Qn.unit)(E)} 0 ${(0,Qn.unit)(E)} ${be}`}},[`${o}-bordered ${o}-cell-scrollbar`]:{borderInlineEnd:Qe}}}},Ti=a=>{const{componentCls:o}=a;return{[`${o}-wrapper`]:{[`${o}-cell-ellipsis`]:Object.assign(Object.assign({},Wa.vS),{wordBreak:"keep-all",[` + &${o}-cell-fix-left-last, + &${o}-cell-fix-right-first + `]:{overflow:"visible",[`${o}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${o}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zi=a=>{const{componentCls:o}=a;return{[`${o}-wrapper`]:{[`${o}-tbody > tr${o}-placeholder`]:{textAlign:"center",color:a.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:a.colorBgContainer}}}}},Ai=a=>{const{componentCls:o,antCls:E,motionDurationSlow:j,lineWidth:ie,paddingXS:be,lineType:We,tableBorderColor:$e,tableExpandIconBg:Je,tableExpandColumnWidth:Qe,borderRadius:St,tablePaddingVertical:dt,tablePaddingHorizontal:st,tableExpandedRowBg:lt,paddingXXS:ht,expandIconMarginTop:qt,expandIconSize:Nt,expandIconHalfInner:_t,expandIconScale:tn,calc:Ut}=a,ln=`${(0,Qn.unit)(ie)} ${We} ${$e}`,dn=Ut(ht).sub(ie).equal();return{[`${o}-wrapper`]:{[`${o}-expand-icon-col`]:{width:Qe},[`${o}-row-expand-icon-cell`]:{textAlign:"center",[`${o}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${o}-row-indent`]:{height:1,float:"left"},[`${o}-row-expand-icon`]:Object.assign(Object.assign({},(0,Wa.Nd)(a)),{position:"relative",float:"left",width:Nt,height:Nt,color:"inherit",lineHeight:(0,Qn.unit)(Nt),background:Je,border:ln,borderRadius:St,transform:`scale(${tn})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${j} ease-out`,content:'""'},"&::before":{top:_t,insetInlineEnd:dn,insetInlineStart:dn,height:ie},"&::after":{top:dn,bottom:dn,insetInlineStart:_t,width:ie,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${o}-row-indent + ${o}-row-expand-icon`]:{marginTop:qt,marginInlineEnd:be},[`tr${o}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:lt}},[`${E}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${o}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Qn.unit)(Ut(dt).mul(-1).equal())} ${(0,Qn.unit)(Ut(st).mul(-1).equal())}`,padding:`${(0,Qn.unit)(dt)} ${(0,Qn.unit)(st)}`}}}},zi=a=>{const{componentCls:o,antCls:E,iconCls:j,tableFilterDropdownWidth:ie,tableFilterDropdownSearchWidth:be,paddingXXS:We,paddingXS:$e,colorText:Je,lineWidth:Qe,lineType:St,tableBorderColor:dt,headerIconColor:st,fontSizeSM:lt,tablePaddingHorizontal:ht,borderRadius:qt,motionDurationSlow:Nt,colorTextDescription:_t,colorPrimary:tn,tableHeaderFilterActiveBg:Ut,colorTextDisabled:ln,tableFilterDropdownBg:dn,tableFilterDropdownHeight:xn,controlItemBgHover:yn,controlItemBgActive:nr,boxShadowSecondary:Fn,filterDropdownMenuBg:Kn,calc:Gn}=a,Cn=`${E}-dropdown`,Sn=`${o}-filter-dropdown`,fn=`${E}-tree`,on=`${(0,Qn.unit)(Qe)} ${St} ${dt}`;return[{[`${o}-wrapper`]:{[`${o}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${o}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Gn(We).mul(-1).equal(),marginInline:`${(0,Qn.unit)(We)} ${(0,Qn.unit)(Gn(ht).div(2).mul(-1).equal())}`,padding:`0 ${(0,Qn.unit)(We)}`,color:st,fontSize:lt,borderRadius:qt,cursor:"pointer",transition:`all ${Nt}`,"&:hover":{color:_t,background:Ut},"&.active":{color:tn}}}},{[`${E}-dropdown`]:{[Sn]:Object.assign(Object.assign({},(0,Wa.Wf)(a)),{minWidth:ie,backgroundColor:dn,borderRadius:qt,boxShadow:Fn,overflow:"hidden",[`${Cn}-menu`]:{maxHeight:xn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Kn,"&:empty::after":{display:"block",padding:`${(0,Qn.unit)($e)} 0`,color:ln,fontSize:lt,textAlign:"center",content:'"Not Found"'}},[`${Sn}-tree`]:{paddingBlock:`${(0,Qn.unit)($e)} 0`,paddingInline:$e,[fn]:{padding:0},[`${fn}-treenode ${fn}-node-content-wrapper:hover`]:{backgroundColor:yn},[`${fn}-treenode-checkbox-checked ${fn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:nr}}},[`${Sn}-search`]:{padding:$e,borderBottom:on,"&-input":{input:{minWidth:be},[j]:{color:ln}}},[`${Sn}-checkall`]:{width:"100%",marginBottom:We,marginInlineStart:We},[`${Sn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Qn.unit)(Gn($e).sub(Qe).equal())} ${(0,Qn.unit)($e)}`,overflow:"hidden",borderTop:on}})}},{[`${E}-dropdown ${Sn}, ${Sn}-submenu`]:{[`${E}-checkbox-wrapper + span`]:{paddingInlineStart:$e,color:Je},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Li=a=>{const{componentCls:o,lineWidth:E,colorSplit:j,motionDurationSlow:ie,zIndexTableFixed:be,tableBg:We,zIndexTableSticky:$e,calc:Je}=a,Qe=j;return{[`${o}-wrapper`]:{[` + ${o}-cell-fix-left, + ${o}-cell-fix-right + `]:{position:"sticky !important",zIndex:be,background:We},[` + ${o}-cell-fix-left-first::after, + ${o}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Je(E).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${ie}`,content:'""',pointerEvents:"none"},[`${o}-cell-fix-left-all::after`]:{display:"none"},[` + ${o}-cell-fix-right-first::after, + ${o}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:Je(E).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${ie}`,content:'""',pointerEvents:"none"},[`${o}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Je($e).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${ie}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${o}-ping-left`]:{[`&:not(${o}-has-fix-left) ${o}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Qe}`},[` + ${o}-cell-fix-left-first::after, + ${o}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${Qe}`},[`${o}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${o}-ping-right`]:{[`&:not(${o}-has-fix-right) ${o}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Qe}`},[` + ${o}-cell-fix-right-first::after, + ${o}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${Qe}`}},[`${o}-fixed-column-gapped`]:{[` + ${o}-cell-fix-left-first::after, + ${o}-cell-fix-left-last::after, + ${o}-cell-fix-right-first::after, + ${o}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},Fi=a=>{const{componentCls:o,antCls:E,margin:j}=a;return{[`${o}-wrapper`]:{[`${o}-pagination${E}-pagination`]:{margin:`${(0,Qn.unit)(j)} 0`},[`${o}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:a.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ji=a=>{const{componentCls:o,tableRadius:E}=a;return{[`${o}-wrapper`]:{[o]:{[`${o}-title, ${o}-header`]:{borderRadius:`${(0,Qn.unit)(E)} ${(0,Qn.unit)(E)} 0 0`},[`${o}-title + ${o}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${o}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:E,borderStartEndRadius:E,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:E},"> *:last-child":{borderStartEndRadius:E}}},"&-footer":{borderRadius:`0 0 ${(0,Qn.unit)(E)} ${(0,Qn.unit)(E)}`}}}}},Ki=a=>{const{componentCls:o}=a;return{[`${o}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${o}-pagination-left`]:{justifyContent:"flex-end"},[`${o}-pagination-right`]:{justifyContent:"flex-start"},[`${o}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${o}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${o}-row-indent`]:{float:"right"}}}}},Hi=a=>{const{componentCls:o,antCls:E,iconCls:j,fontSizeIcon:ie,padding:be,paddingXS:We,headerIconColor:$e,headerIconHoverColor:Je,tableSelectionColumnWidth:Qe,tableSelectedRowBg:St,tableSelectedRowHoverBg:dt,tableRowHoverBg:st,tablePaddingHorizontal:lt,calc:ht}=a;return{[`${o}-wrapper`]:{[`${o}-selection-col`]:{width:Qe,[`&${o}-selection-col-with-dropdown`]:{width:ht(Qe).add(ie).add(ht(be).div(4)).equal()}},[`${o}-bordered ${o}-selection-col`]:{width:ht(Qe).add(ht(We).mul(2)).equal(),[`&${o}-selection-col-with-dropdown`]:{width:ht(Qe).add(ie).add(ht(be).div(4)).add(ht(We).mul(2)).equal()}},[` + table tr th${o}-selection-column, + table tr td${o}-selection-column, + ${o}-selection-column + `]:{paddingInlineEnd:a.paddingXS,paddingInlineStart:a.paddingXS,textAlign:"center",[`${E}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${o}-selection-column${o}-cell-fix-left`]:{zIndex:ht(a.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${o}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${o}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${o}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Qn.unit)(ht(lt).div(4).equal()),[j]:{color:$e,fontSize:ie,verticalAlign:"baseline","&:hover":{color:Je}}},[`${o}-tbody`]:{[`${o}-row`]:{[`&${o}-row-selected`]:{[`> ${o}-cell`]:{background:St,"&-row-hover":{background:dt}}},[`> ${o}-cell-row-hover`]:{background:st}}}}}},Wi=a=>{const{componentCls:o,tableExpandColumnWidth:E,calc:j}=a,ie=(be,We,$e,Je)=>({[`${o}${o}-${be}`]:{fontSize:Je,[` + ${o}-title, + ${o}-footer, + ${o}-cell, + ${o}-thead > tr > th, + ${o}-tbody > tr > th, + ${o}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${(0,Qn.unit)(We)} ${(0,Qn.unit)($e)}`},[`${o}-filter-trigger`]:{marginInlineEnd:(0,Qn.unit)(j($e).div(2).mul(-1).equal())},[`${o}-expanded-row-fixed`]:{margin:`${(0,Qn.unit)(j(We).mul(-1).equal())} ${(0,Qn.unit)(j($e).mul(-1).equal())}`},[`${o}-tbody`]:{[`${o}-wrapper:only-child ${o}`]:{marginBlock:(0,Qn.unit)(j(We).mul(-1).equal()),marginInline:`${(0,Qn.unit)(j(E).sub($e).equal())} ${(0,Qn.unit)(j($e).mul(-1).equal())}`}},[`${o}-selection-extra`]:{paddingInlineStart:(0,Qn.unit)(j($e).div(4).equal())}}});return{[`${o}-wrapper`]:Object.assign(Object.assign({},ie("middle",a.tablePaddingVerticalMiddle,a.tablePaddingHorizontalMiddle,a.tableFontSizeMiddle)),ie("small",a.tablePaddingVerticalSmall,a.tablePaddingHorizontalSmall,a.tableFontSizeSmall))}},Vi=a=>{const{componentCls:o,marginXXS:E,fontSizeIcon:j,headerIconColor:ie,headerIconHoverColor:be}=a;return{[`${o}-wrapper`]:{[`${o}-thead th${o}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${a.motionDurationSlow}, left 0s`,"&:hover":{background:a.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:a.colorPrimary},[` + &${o}-cell-fix-left:hover, + &${o}-cell-fix-right:hover + `]:{background:a.tableFixedHeaderSortActiveBg}},[`${o}-thead th${o}-column-sort`]:{background:a.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${o}-column-sort`]:{background:a.tableBodySortBg},[`${o}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${o}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${o}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${o}-column-sorter`]:{marginInlineStart:E,color:ie,fontSize:0,transition:`color ${a.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:j,"&.active":{color:a.colorPrimary}},[`${o}-column-sorter-up + ${o}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${o}-column-sorters:hover ${o}-column-sorter`]:{color:be}}}},Ui=a=>{const{componentCls:o,opacityLoading:E,tableScrollThumbBg:j,tableScrollThumbBgHover:ie,tableScrollThumbSize:be,tableScrollBg:We,zIndexTableSticky:$e,stickyScrollBarBorderRadius:Je,lineWidth:Qe,lineType:St,tableBorderColor:dt}=a,st=`${(0,Qn.unit)(Qe)} ${St} ${dt}`;return{[`${o}-wrapper`]:{[`${o}-sticky`]:{"&-holder":{position:"sticky",zIndex:$e,background:a.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Qn.unit)(be)} !important`,zIndex:$e,display:"flex",alignItems:"center",background:We,borderTop:st,opacity:E,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:be,backgroundColor:j,borderRadius:Je,transition:`all ${a.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:ie}}}}}}},di=a=>{const{componentCls:o,lineWidth:E,tableBorderColor:j,calc:ie}=a,be=`${(0,Qn.unit)(E)} ${a.lineType} ${j}`;return{[`${o}-wrapper`]:{[`${o}-summary`]:{position:"relative",zIndex:a.zIndexTableFixed,background:a.tableBg,"> tr":{"> th, > td":{borderBottom:be}}},[`div${o}-summary`]:{boxShadow:`0 ${(0,Qn.unit)(ie(E).mul(-1).equal())} 0 ${j}`}}}},Gi=a=>{const{componentCls:o,motionDurationMid:E,lineWidth:j,lineType:ie,tableBorderColor:be,calc:We}=a,$e=`${(0,Qn.unit)(j)} ${ie} ${be}`,Je=`${o}-expanded-row-cell`;return{[`${o}-wrapper`]:{[`${o}-tbody-virtual`]:{[`${o}-tbody-virtual-holder-inner`]:{[` + & > ${o}-row, + & > div:not(${o}-row) > ${o}-row + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${o}-cell`]:{borderBottom:$e,transition:`background ${E}`},[`${o}-expanded-row`]:{[`${Je}${Je}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Qn.unit)(j)})`,borderInlineEnd:"none"}}},[`${o}-bordered`]:{[`${o}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:$e,position:"absolute"},[`${o}-cell`]:{borderInlineEnd:$e,[`&${o}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:We(j).mul(-1).equal(),borderInlineStart:$e}}},[`&${o}-virtual`]:{[`${o}-placeholder ${o}-cell`]:{borderInlineEnd:$e,borderBottom:$e}}}}}};const Xi=a=>{const{componentCls:o,fontWeightStrong:E,tablePaddingVertical:j,tablePaddingHorizontal:ie,tableExpandColumnWidth:be,lineWidth:We,lineType:$e,tableBorderColor:Je,tableFontSize:Qe,tableBg:St,tableRadius:dt,tableHeaderTextColor:st,motionDurationMid:lt,tableHeaderBg:ht,tableHeaderCellSplitColor:qt,tableFooterTextColor:Nt,tableFooterBg:_t,calc:tn}=a,Ut=`${(0,Qn.unit)(We)} ${$e} ${Je}`;return{[`${o}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Wa.dF)()),{[o]:Object.assign(Object.assign({},(0,Wa.Wf)(a)),{fontSize:Qe,background:St,borderRadius:`${(0,Qn.unit)(dt)} ${(0,Qn.unit)(dt)} 0 0`,scrollbarColor:`${a.tableScrollThumbBg} ${a.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Qn.unit)(dt)} ${(0,Qn.unit)(dt)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${o}-cell, + ${o}-thead > tr > th, + ${o}-tbody > tr > th, + ${o}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${(0,Qn.unit)(j)} ${(0,Qn.unit)(ie)}`,overflowWrap:"break-word"},[`${o}-title`]:{padding:`${(0,Qn.unit)(j)} ${(0,Qn.unit)(ie)}`},[`${o}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:st,fontWeight:E,textAlign:"start",background:ht,borderBottom:Ut,transition:`background ${lt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${o}-selection-column):not(${o}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:qt,transform:"translateY(-50%)",transition:`background-color ${lt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${o}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${lt}, border-color ${lt}`,borderBottom:Ut,[` + > ${o}-wrapper:only-child, + > ${o}-expanded-row-fixed > ${o}-wrapper:only-child + `]:{[o]:{marginBlock:(0,Qn.unit)(tn(j).mul(-1).equal()),marginInline:`${(0,Qn.unit)(tn(be).sub(ie).equal())} + ${(0,Qn.unit)(tn(ie).mul(-1).equal())}`,[`${o}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:st,fontWeight:E,textAlign:"start",background:ht,borderBottom:Ut,transition:`background ${lt} ease`}}},[`${o}-footer`]:{padding:`${(0,Qn.unit)(j)} ${(0,Qn.unit)(ie)}`,color:Nt,background:_t}})}},ki=a=>{const{colorFillAlter:o,colorBgContainer:E,colorTextHeading:j,colorFillSecondary:ie,colorFillContent:be,controlItemBgActive:We,controlItemBgActiveHover:$e,padding:Je,paddingSM:Qe,paddingXS:St,colorBorderSecondary:dt,borderRadiusLG:st,controlHeight:lt,colorTextPlaceholder:ht,fontSize:qt,fontSizeSM:Nt,lineHeight:_t,lineWidth:tn,colorIcon:Ut,colorIconHover:ln,opacityLoading:dn,controlInteractiveSize:xn}=a,yn=new Ha.FastColor(ie).onBackground(E).toHexString(),nr=new Ha.FastColor(be).onBackground(E).toHexString(),Fn=new Ha.FastColor(o).onBackground(E).toHexString(),Kn=new Ha.FastColor(Ut),Gn=new Ha.FastColor(ln),Cn=xn/2-tn,Sn=Cn*2+tn*3;return{headerBg:Fn,headerColor:j,headerSortActiveBg:yn,headerSortHoverBg:nr,bodySortBg:Fn,rowHoverBg:Fn,rowSelectedBg:We,rowSelectedHoverBg:$e,rowExpandedBg:o,cellPaddingBlock:Je,cellPaddingInline:Je,cellPaddingBlockMD:Qe,cellPaddingInlineMD:St,cellPaddingBlockSM:St,cellPaddingInlineSM:St,borderColor:dt,headerBorderRadius:st,footerBg:Fn,footerColor:j,cellFontSize:qt,cellFontSizeMD:qt,cellFontSizeSM:qt,headerSplitColor:dt,fixedHeaderSortActiveBg:yn,headerFilterHoverBg:be,filterDropdownMenuBg:E,filterDropdownBg:E,expandIconBg:E,selectionColumnWidth:lt,stickyScrollBarBg:ht,stickyScrollBarBorderRadius:100,expandIconMarginTop:(qt*_t-tn*3)/2-Math.ceil((Nt*1.4-tn*3)/2),headerIconColor:Kn.clone().setA(Kn.a*dn).toRgbString(),headerIconHoverColor:Gn.clone().setA(Gn.a*dn).toRgbString(),expandIconHalfInner:Cn,expandIconSize:Sn,expandIconScale:xn/Sn}},fi=2;var Yi=(0,Di.I$)("Table",a=>{const{colorTextHeading:o,colorSplit:E,colorBgContainer:j,controlInteractiveSize:ie,headerBg:be,headerColor:We,headerSortActiveBg:$e,headerSortHoverBg:Je,bodySortBg:Qe,rowHoverBg:St,rowSelectedBg:dt,rowSelectedHoverBg:st,rowExpandedBg:lt,cellPaddingBlock:ht,cellPaddingInline:qt,cellPaddingBlockMD:Nt,cellPaddingInlineMD:_t,cellPaddingBlockSM:tn,cellPaddingInlineSM:Ut,borderColor:ln,footerBg:dn,footerColor:xn,headerBorderRadius:yn,cellFontSize:nr,cellFontSizeMD:Fn,cellFontSizeSM:Kn,headerSplitColor:Gn,fixedHeaderSortActiveBg:Cn,headerFilterHoverBg:Sn,filterDropdownBg:fn,expandIconBg:on,selectionColumnWidth:hn,stickyScrollBarBg:wn,calc:zn}=a,cn=(0,Mi.mergeToken)(a,{tableFontSize:nr,tableBg:j,tableRadius:yn,tablePaddingVertical:ht,tablePaddingHorizontal:qt,tablePaddingVerticalMiddle:Nt,tablePaddingHorizontalMiddle:_t,tablePaddingVerticalSmall:tn,tablePaddingHorizontalSmall:Ut,tableBorderColor:ln,tableHeaderTextColor:We,tableHeaderBg:be,tableFooterTextColor:xn,tableFooterBg:dn,tableHeaderCellSplitColor:Gn,tableHeaderSortBg:$e,tableHeaderSortHoverBg:Je,tableBodySortBg:Qe,tableFixedHeaderSortActiveBg:Cn,tableHeaderFilterActiveBg:Sn,tableFilterDropdownBg:fn,tableRowHoverBg:St,tableSelectedRowBg:dt,tableSelectedRowHoverBg:st,zIndexTableFixed:fi,zIndexTableSticky:zn(fi).add(1).equal({unit:!1}),tableFontSizeMiddle:Fn,tableFontSizeSmall:Kn,tableSelectionColumnWidth:hn,tableExpandIconBg:on,tableExpandColumnWidth:zn(ie).add(zn(a.padding).mul(2)).equal(),tableExpandedRowBg:lt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:wn,tableScrollThumbBgHover:o,tableScrollBg:E});return[Xi(cn),Fi(cn),di(cn),Vi(cn),zi(cn),Bi(cn),ji(cn),Ai(cn),di(cn),Zi(cn),Hi(cn),Li(cn),Ui(cn),Ti(cn),Wi(cn),Ki(cn),Gi(cn)]},ki,{unitless:{expandIconScale:!0}});const Qi=[],Ji=(a,o)=>{var E,j;const{prefixCls:ie,className:be,rootClassName:We,style:$e,size:Je,bordered:Qe,dropdownPrefixCls:St,dataSource:dt,pagination:st,rowSelection:lt,rowKey:ht="key",rowClassName:qt,columns:Nt,children:_t,childrenColumnName:tn,onChange:Ut,getPopupContainer:ln,loading:dn,expandIcon:xn,expandable:yn,expandedRowRender:nr,expandIconColumnIndex:Fn,indentSize:Kn,scroll:Gn,sortDirections:Cn,locale:Sn,showSorterTooltip:fn={target:"full-header"},virtual:on}=a,hn=(0,Er.ln)("Table"),wn=e.useMemo(()=>Nt||en(_t),[Nt,_t]),zn=e.useMemo(()=>wn.some(or=>or.responsive),[wn]),cn=(0,Xr.Z)(zn),dr=e.useMemo(()=>{const or=new Set(Object.keys(cn).filter(zr=>cn[zr]));return wn.filter(zr=>!zr.responsive||zr.responsive.some(Co=>or.has(Co)))},[wn,cn]),mr=(0,br.Z)(a,["className","style","columns"]),{locale:fo=co.Z,direction:ro,table:Qr,renderEmpty:lo,getPrefixCls:Zo,getPopupContainer:gr}=e.useContext(vo.E_),yr=(0,wo.Z)(Je),ho=Object.assign(Object.assign({},fo.Table),Sn),$o=dt||Qi,Nn=Zo("table",ie),_n=Zo("dropdown",St),[,$n]=(0,Lr.ZP)(),Ln=(0,Bo.Z)(Nn),[Rr,Mr,oo]=Yi(Nn,Ln),Jr=Object.assign(Object.assign({childrenColumnName:tn,expandIconColumnIndex:Fn},yn),{expandIcon:(E=yn==null?void 0:yn.expandIcon)!==null&&E!==void 0?E:(j=Qr==null?void 0:Qr.expandable)===null||j===void 0?void 0:j.expandIcon}),{childrenColumnName:Ao="children"}=Jr,zo=e.useMemo(()=>$o.some(or=>or==null?void 0:or[Ao])?"nest":nr||yn!=null&&yn.expandedRowRender?"row":null,[$o]),Bn={body:e.useRef(null)},Wn=Hn(Nn),Br=e.useRef(null),ao=e.useRef(null);xo(o,()=>Object.assign(Object.assign({},ao.current),{nativeElement:Br.current}));const Fr=e.useMemo(()=>typeof ht=="function"?ht:or=>or==null?void 0:or[ht],[ht]),[Ko]=ra($o,Ao,Fr),bo={},ma=function(or,zr){let Co=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ro,ea,ua,ga;const Wo=Object.assign(Object.assign({},bo),or);Co&&((Ro=bo.resetPagination)===null||Ro===void 0||Ro.call(bo),!((ea=Wo.pagination)===null||ea===void 0)&&ea.current&&(Wo.pagination.current=1),st&&((ua=st.onChange)===null||ua===void 0||ua.call(st,1,(ga=Wo.pagination)===null||ga===void 0?void 0:ga.pageSize))),Gn&&Gn.scrollToFirstRowOnChange!==!1&&Bn.body.current&&(0,Lo.Z)(0,{getContainer:()=>Bn.body.current}),Ut==null||Ut(Wo.pagination,Wo.filters,Wo.sorter,{currentDataSource:ur(Ta($o,Wo.sorterStates,Ao),Wo.filterStates,Ao),action:zr})},io=(or,zr)=>{ma({sorter:or,sorterStates:zr},"sort",!1)},[Ar,qr,eo,Po]=Ka({prefixCls:Nn,mergedColumns:dr,onSorterChange:io,sortDirections:Cn||["ascend","descend"],tableLocale:ho,showSorterTooltip:fn}),So=e.useMemo(()=>Ta($o,qr,Ao),[$o,qr]);bo.sorter=Po(),bo.sorterStates=qr;const Tr=(or,zr)=>{ma({filters:or,filterStates:zr},"filter",!0)},[mo,Ur,Ho]=uo({prefixCls:Nn,locale:ho,dropdownPrefixCls:_n,mergedColumns:dr,onFilterChange:Tr,getPopupContainer:ln||gr,rootClassName:S()(We,Ln)}),yo=ur(So,Ur,Ao);bo.filters=Ho,bo.filterStates=Ur;const Qo=e.useMemo(()=>{const or={};return Object.keys(Ho).forEach(zr=>{Ho[zr]!==null&&(or[zr]=Ho[zr])}),Object.assign(Object.assign({},eo),{filters:or})},[eo,Ho]),[Ia]=Pi(Qo),Va=(or,zr)=>{ma({pagination:Object.assign(Object.assign({},bo.pagination),{current:or,pageSize:zr})},"paginate")},[so,Ua]=Ea(yo.length,Va,st);bo.pagination=st===!1?{}:fa(so,st),bo.resetPagination=Ua;const Jo=e.useMemo(()=>{if(st===!1||!so.pageSize)return yo;const{current:or=1,total:zr,pageSize:Co=la}=so;return yo.lengthCo?yo.slice((or-1)*Co,or*Co):yo:yo.slice((or-1)*Co,or*Co)},[!!st,yo,so==null?void 0:so.current,so==null?void 0:so.pageSize,so==null?void 0:so.total]),[sa,oa]=Yn({prefixCls:Nn,data:yo,pageData:Jo,getRowKey:Fr,getRecordByKey:Ko,expandType:zo,childrenColumnName:Ao,locale:ho,getPopupContainer:ln||gr},lt),qo=(or,zr,Co)=>{let Ro;return typeof qt=="function"?Ro=S()(qt(or,zr,Co)):Ro=S()(qt),S()({[`${Nn}-row-selected`]:oa.has(Fr(or,zr))},Ro)};Jr.__PARENT_RENDER_ICON__=Jr.expandIcon,Jr.expandIcon=Jr.expandIcon||xn||In(ho),zo==="nest"&&Jr.expandIconColumnIndex===void 0?Jr.expandIconColumnIndex=lt?1:0:Jr.expandIconColumnIndex>0&<&&(Jr.expandIconColumnIndex-=1),typeof Jr.indentSize!="number"&&(Jr.indentSize=typeof Kn=="number"?Kn:15);const _o=e.useCallback(or=>Ia(sa(mo(Ar(or)))),[Ar,mo,sa]);let ca,$a;if(st!==!1&&(so!=null&&so.total)){let or;so.size?or=so.size:or=yr==="small"||yr==="middle"?"small":void 0;const zr=ea=>e.createElement(to.Z,Object.assign({},so,{className:S()(`${Nn}-pagination ${Nn}-pagination-${ea}`,so.className),size:or})),Co=ro==="rtl"?"left":"right",{position:Ro}=so;if(Ro!==null&&Array.isArray(Ro)){const ea=Ro.find(Wo=>Wo.includes("top")),ua=Ro.find(Wo=>Wo.includes("bottom")),ga=Ro.every(Wo=>`${Wo}`=="none");!ea&&!ua&&!ga&&($a=zr(Co)),ea&&(ca=zr(ea.toLowerCase().replace("top",""))),ua&&($a=zr(ua.toLowerCase().replace("bottom","")))}else $a=zr(Co)}let pa;typeof dn=="boolean"?pa={spinning:dn}:typeof dn=="object"&&(pa=Object.assign({spinning:!0},dn));const ha=S()(oo,Ln,`${Nn}-wrapper`,Qr==null?void 0:Qr.className,{[`${Nn}-wrapper-rtl`]:ro==="rtl"},be,We,Mr),ni=Object.assign(Object.assign({},Qr==null?void 0:Qr.style),$e),ri=typeof(Sn==null?void 0:Sn.emptyText)!="undefined"?Sn.emptyText:(lo==null?void 0:lo("Table"))||e.createElement(Eo.Z,{componentName:"Table"}),oi=on?Ni:Ri,Ja={},ai=e.useMemo(()=>{const{fontSize:or,lineHeight:zr,lineWidth:Co,padding:Ro,paddingXS:ea,paddingSM:ua}=$n,ga=Math.floor(or*zr);switch(yr){case"middle":return ua*2+ga+Co;case"small":return ea*2+ga+Co;default:return Ro*2+ga+Co}},[$n,yr]);return on&&(Ja.listItemHeight=ai),Rr(e.createElement("div",{ref:Br,className:ha,style:ni},e.createElement(lr.Z,Object.assign({spinning:!1},pa),ca,e.createElement(oi,Object.assign({},Ja,mr,{ref:ao,columns:dr,direction:ro,expandable:Jr,prefixCls:Nn,className:S()({[`${Nn}-middle`]:yr==="middle",[`${Nn}-small`]:yr==="small",[`${Nn}-bordered`]:Qe,[`${Nn}-empty`]:$o.length===0},oo,Ln,Mr),data:Jo,rowKey:Fr,rowClassName:qo,emptyText:ri,internalHooks:p,internalRefs:Bn,transformColumns:_o,getContainerWidth:Wn})),$a)))};var qi=e.forwardRef(Ji);const _i=(a,o)=>{const E=e.useRef(0);return E.current+=1,e.createElement(qi,Object.assign({},a,{ref:o,_renderTimes:E.current}))},Ca=e.forwardRef(_i);Ca.SELECTION_COLUMN=ir,Ca.EXPAND_COLUMN=m,Ca.SELECTION_ALL=Zr,Ca.SELECTION_INVERT=kr,Ca.SELECTION_NONE=jr,Ca.Column=nn,Ca.ColumnGroup=Rn,Ca.Summary=y;var el=Ca,tl=el},31691:function(Yt,Ge,t){t.d(Ge,{default:function(){return en}});var e=t(59301),m=t(99267),p=t(18785),Q=t(62772),N=t(92310),P=t.n(N),g=t(54476),D=t(20068),F=t(33885),n=t(42978),X=t(76190),w=t(75931),I=t(18929),xe=t(49658),Ne=(0,e.createContext)(null),pe=t(94480),se=t(29301),Se=t(6089),h=t(8654),fe=t(16089),s=function(O){var it=O.activeTabOffset,R=O.horizontal,$=O.rtl,He=O.indicator,Pe=He===void 0?{}:He,Ae=Pe.size,qe=Pe.align,Fe=qe===void 0?"center":qe,at=(0,e.useState)(),Ct=(0,n.Z)(at,2),bt=Ct[0],vt=Ct[1],zt=(0,e.useRef)(),Kt=e.useCallback(function(ue){return typeof Ae=="function"?Ae(ue):typeof Ae=="number"?Ae:ue},[Ae]);function Rt(){fe.Z.cancel(zt.current)}return(0,e.useEffect)(function(){var ue={};if(it)if(R){ue.width=Kt(it.width);var Re=$?"right":"left";Fe==="start"&&(ue[Re]=it[Re]),Fe==="center"&&(ue[Re]=it[Re]+it.width/2,ue.transform=$?"translateX(50%)":"translateX(-50%)"),Fe==="end"&&(ue[Re]=it[Re]+it.width,ue.transform="translateX(-100%)")}else ue.height=Kt(it.height),Fe==="start"&&(ue.top=it.top),Fe==="center"&&(ue.top=it.top+it.height/2,ue.transform="translateY(-50%)"),Fe==="end"&&(ue.top=it.top+it.height,ue.transform="translateY(-100%)");return Rt(),zt.current=(0,fe.Z)(function(){vt(ue)}),Rt},[it,R,$,Fe,Kt]),{style:bt}},d=s,Y={width:0,height:0,left:0,top:0};function ee(b,O,it){return(0,e.useMemo)(function(){for(var R,$=new Map,He=O.get((R=b[0])===null||R===void 0?void 0:R.key)||Y,Pe=He.left+He.width,Ae=0;Aejt?(Tt=Ft,nt.current="x"):(Tt=Xt,nt.current="y"),O(-Tt,-Tt)&&Dt.preventDefault()}var Ot=(0,e.useRef)(null);Ot.current={onTouchStart:Ze,onTouchMove:Ye,onTouchEnd:_e,onWheel:ft},e.useEffect(function(){function Dt(Zt){Ot.current.onTouchStart(Zt)}function Ft(Zt){Ot.current.onTouchMove(Zt)}function Xt(Zt){Ot.current.onTouchEnd(Zt)}function Tt(Zt){Ot.current.onWheel(Zt)}return document.addEventListener("touchmove",Ft,{passive:!1}),document.addEventListener("touchend",Xt,{passive:!0}),b.current.addEventListener("touchstart",Dt,{passive:!0}),b.current.addEventListener("wheel",Tt,{passive:!1}),function(){document.removeEventListener("touchmove",Ft),document.removeEventListener("touchend",Xt)}},[])}var S=t(34280);function i(b){var O=(0,e.useState)(0),it=(0,n.Z)(O,2),R=it[0],$=it[1],He=(0,e.useRef)(0),Pe=(0,e.useRef)();return Pe.current=b,(0,S.o)(function(){var Ae;(Ae=Pe.current)===null||Ae===void 0||Ae.call(Pe)},[R]),function(){He.current===R&&(He.current+=1,$(He.current))}}function le(b){var O=(0,e.useRef)([]),it=(0,e.useState)({}),R=(0,n.Z)(it,2),$=R[1],He=(0,e.useRef)(typeof b=="function"?b():b),Pe=i(function(){var qe=He.current;O.current.forEach(function(Fe){qe=Fe(qe)}),O.current=[],He.current=qe,$({})});function Ae(qe){O.current.push(qe),Pe()}return[He.current,Ae]}var M={width:0,height:0,left:0,top:0,right:0};function U(b,O,it,R,$,He,Pe){var Ae=Pe.tabs,qe=Pe.tabPosition,Fe=Pe.rtl,at,Ct,bt;return["top","bottom"].includes(qe)?(at="width",Ct=Fe?"right":"left",bt=Math.abs(it)):(at="height",Ct="top",bt=-it),(0,e.useMemo)(function(){if(!Ae.length)return[0,0];for(var vt=Ae.length,zt=vt,Kt=0;KtMath.floor(bt+O)){zt=Kt-1;break}}for(var ue=0,Re=vt-1;Re>=0;Re-=1){var Ze=b.get(Ae[Re].key)||M;if(Ze[Ct]=zt?[0,0]:[ue,zt]},[b,O,R,$,He,bt,qe,Ae.map(function(vt){return vt.key}).join("_"),Fe])}function c(b){var O;return b instanceof Map?(O={},b.forEach(function(it,R){O[R]=it})):O=b,JSON.stringify(O)}var T="TABS_DQ";function ne(b){return String(b).replace(/"/g,T)}function q(b,O,it,R){return!(!it||R||b===!1||b===void 0&&(O===!1||O===null))}var me=e.forwardRef(function(b,O){var it=b.prefixCls,R=b.editable,$=b.locale,He=b.style;return!R||R.showAdd===!1?null:e.createElement("button",{ref:O,type:"button",className:"".concat(it,"-nav-add"),style:He,"aria-label":($==null?void 0:$.addAriaLabel)||"Add tab",onClick:function(Ae){R.onEdit("add",{event:Ae})}},R.addIcon||"+")}),et=me,W=e.forwardRef(function(b,O){var it=b.position,R=b.prefixCls,$=b.extra;if(!$)return null;var He,Pe={};return(0,X.Z)($)==="object"&&!e.isValidElement($)?Pe=$:Pe.right=$,it==="right"&&(He=Pe.right),it==="left"&&(He=Pe.left),He?e.createElement("div",{className:"".concat(R,"-extra-content"),ref:O},He):null}),we=W,he=t(96478),Xe=t(28321),B=t(10228),Oe=e.forwardRef(function(b,O){var it=b.prefixCls,R=b.id,$=b.tabs,He=b.locale,Pe=b.mobile,Ae=b.more,qe=Ae===void 0?{}:Ae,Fe=b.style,at=b.className,Ct=b.editable,bt=b.tabBarGutter,vt=b.rtl,zt=b.removeAriaLabel,Kt=b.onTabClick,Rt=b.getPopupContainer,ue=b.popupClassName,Re=(0,e.useState)(!1),Ze=(0,n.Z)(Re,2),Ye=Ze[0],_e=Ze[1],nt=(0,e.useState)(null),ft=(0,n.Z)(nt,2),Ot=ft[0],Dt=ft[1],Ft=qe.icon,Xt=Ft===void 0?"More":Ft,Tt="".concat(R,"-more-popup"),Zt="".concat(it,"-dropdown"),jt=Ot!==null?"".concat(Tt,"-").concat(Ot):null,Qt=He==null?void 0:He.dropdownAriaLabel;function an(Wt,Jt){Wt.preventDefault(),Wt.stopPropagation(),Ct.onEdit("remove",{key:Jt,event:Wt})}var $t=e.createElement(Xe.ZP,{onClick:function(Jt){var Pn=Jt.key,Dn=Jt.domEvent;Kt(Pn,Dn),_e(!1)},prefixCls:"".concat(Zt,"-menu"),id:Tt,tabIndex:-1,role:"listbox","aria-activedescendant":jt,selectedKeys:[Ot],"aria-label":Qt!==void 0?Qt:"expanded dropdown"},$.map(function(Wt){var Jt=Wt.closable,Pn=Wt.disabled,Dn=Wt.closeIcon,Un=Wt.key,Mn=Wt.label,Vn=q(Jt,Dn,Ct,Pn);return e.createElement(Xe.sN,{key:Un,id:"".concat(Tt,"-").concat(Un),role:"option","aria-controls":R&&"".concat(R,"-panel-").concat(Un),disabled:Pn},e.createElement("span",null,Mn),Vn&&e.createElement("button",{type:"button","aria-label":zt||"remove",tabIndex:0,className:"".concat(Zt,"-menu-item-remove"),onClick:function(rr){rr.stopPropagation(),an(rr,Un)}},Dn||Ct.removeIcon||"\xD7"))}));function Vt(Wt){for(var Jt=$.filter(function(Vn){return!Vn.disabled}),Pn=Jt.findIndex(function(Vn){return Vn.key===Ot})||0,Dn=Jt.length,Un=0;UnXn?"left":"right"})}),Zt=(0,n.Z)(Tt,2),jt=Zt[0],Qt=Zt[1],an=_(0,function(sr,Xn){!Xt&&Kt&&Kt({direction:sr>Xn?"top":"bottom"})}),$t=(0,n.Z)(an,2),Vt=$t[0],En=$t[1],un=(0,e.useState)([0,0]),sn=(0,n.Z)(un,2),bn=sn[0],Wt=sn[1],Jt=(0,e.useState)([0,0]),Pn=(0,n.Z)(Jt,2),Dn=Pn[0],Un=Pn[1],Mn=(0,e.useState)([0,0]),Vn=(0,n.Z)(Mn,2),Jn=Vn[0],rr=Vn[1],ar=(0,e.useState)([0,0]),qn=(0,n.Z)(ar,2),Lt=qn[0],yt=qn[1],Et=le(new Map),It=(0,n.Z)(Et,2),wt=It[0],kt=It[1],nn=ee(Ze,wt,Dn[0]),Tn=H(bn,Xt),Rn=H(Dn,Xt),kn=H(Jn,Xt),Cr=H(Lt,Xt),Sr=Math.floor(Tn)Er?Er:sr}var cr=(0,e.useRef)(null),Ir=(0,e.useState)(),ir=(0,n.Z)(Ir,2),Zr=ir[0],kr=ir[1];function jr(){kr(Date.now())}function Kr(){cr.current&&clearTimeout(cr.current)}re(ft,function(sr,Xn){function Vr(_r,go){_r(function(No){var ko=Dr(No+go);return ko})}return Sr?(Xt?Vr(Qt,sr):Vr(En,Xn),Kr(),jr(),!0):!1}),(0,e.useEffect)(function(){return Kr(),Zr&&(cr.current=setTimeout(function(){kr(0)},100)),Kr},[Zr]);var Gr=U(nn,hr,Xt?jt:Vt,Rn,kn,Cr,(0,F.Z)((0,F.Z)({},b),{},{tabs:Ze})),Zn=(0,n.Z)(Gr,2),Yn=Zn[0],br=Zn[1],vr=(0,Se.Z)(function(){var sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pe,Xn=nn.get(sr)||{width:0,height:0,left:0,right:0,top:0};if(Xt){var Vr=jt;Ae?Xn.rightjt+hr&&(Vr=Xn.right+Xn.width-hr):Xn.left<-jt?Vr=-Xn.left:Xn.left+Xn.width>-jt+hr&&(Vr=-(Xn.left+Xn.width-hr)),En(0),Qt(Dr(Vr))}else{var _r=Vt;Xn.top<-Vt?_r=-Xn.top:Xn.top+Xn.height>-Vt+hr&&(_r=-(Xn.top+Xn.height-hr)),Qt(0),En(Dr(_r))}}),xo=(0,e.useState)(),Lo=(0,n.Z)(xo,2),vo=Lo[0],Eo=Lo[1],Bo=(0,e.useState)(!1),wo=(0,n.Z)(Bo,2),Xr=wo[0],co=wo[1],to=Ze.filter(function(sr){return!sr.disabled}).map(function(sr){return sr.key}),lr=function(Xn){var Vr=to.indexOf(vo||Pe),_r=to.length,go=(Vr+Xn+_r)%_r,No=to[go];Eo(No)},Lr=function(Xn){var Vr=Xn.code,_r=Ae&&Xt,go=to[0],No=to[to.length-1];switch(Vr){case"ArrowLeft":{Xt&&lr(_r?1:-1);break}case"ArrowRight":{Xt&&lr(_r?-1:1);break}case"ArrowUp":{Xn.preventDefault(),Xt||lr(-1);break}case"ArrowDown":{Xn.preventDefault(),Xt||lr(1);break}case"Home":{Xn.preventDefault(),Eo(go);break}case"End":{Xn.preventDefault(),Eo(No);break}case"Enter":case"Space":{Xn.preventDefault(),zt(Pe,Xn);break}case"Backspace":case"Delete":{var ko=to.indexOf(vo),Fo=Ze.find(function(Do){return Do.key===vo}),aa=q(Fo==null?void 0:Fo.closable,Fo==null?void 0:Fo.closeIcon,Fe,Fo==null?void 0:Fo.disabled);aa&&(Xn.preventDefault(),Xn.stopPropagation(),Fe.onEdit("remove",{key:vo,event:Xn}),ko===to.length-1?lr(-1):lr(1));break}}},Hr={};Xt?Hr[Ae?"marginRight":"marginLeft"]=bt:Hr.marginTop=bt;var In=Ze.map(function(sr,Xn){var Vr=sr.key;return e.createElement(Le,{id:$,prefixCls:Re,key:Vr,tab:sr,style:Xn===0?void 0:Hr,closable:sr.closable,editable:Fe,active:Vr===Pe,focus:Vr===vo,renderWrapper:vt,removeAriaLabel:at==null?void 0:at.removeAriaLabel,tabCount:to.length,currentPosition:Xn+1,onClick:function(go){zt(Vr,go)},onKeyDown:Lr,onFocus:function(){Xr||Eo(Vr),vr(Vr),jr(),ft.current&&(Ae||(ft.current.scrollLeft=0),ft.current.scrollTop=0)},onBlur:function(){Eo(void 0)},onMouseDown:function(){co(!0)},onMouseUp:function(){co(!1)}})}),Hn=function(){return kt(function(){var Xn,Vr=new Map,_r=(Xn=Ot.current)===null||Xn===void 0?void 0:Xn.getBoundingClientRect();return Ze.forEach(function(go){var No,ko=go.key,Fo=(No=Ot.current)===null||No===void 0?void 0:No.querySelector('[data-node-key="'.concat(ne(ko),'"]'));if(Fo){var aa=oe(Fo,_r),Do=(0,n.Z)(aa,4),ba=Do[0],Pa=Do[1],Sa=Do[2],ta=Do[3];Vr.set(ko,{width:ba,height:Pa,left:Sa,top:ta})}}),Vr})};(0,e.useEffect)(function(){Hn()},[Ze.map(function(sr){return sr.key}).join("_")]);var On=i(function(){var sr=Z(Ye),Xn=Z(_e),Vr=Z(nt);Wt([sr[0]-Xn[0]-Vr[0],sr[1]-Xn[1]-Vr[1]]);var _r=Z(Ft);rr(_r);var go=Z(Dt);yt(go);var No=Z(Ot);Un([No[0]-_r[0],No[1]-_r[1]]),Hn()}),jn=Ze.slice(0,Yn),fr=Ze.slice(br+1),$r=[].concat((0,pe.Z)(jn),(0,pe.Z)(fr)),Oo=nn.get(Pe),gn=d({activeTabOffset:Oo,horizontal:Xt,indicator:Rt,rtl:Ae}),An=gn.style;(0,e.useEffect)(function(){vr()},[Pe,xr,Er,c(Oo),c(nn),Xt]),(0,e.useEffect)(function(){On()},[Ae]);var tr=!!$r.length,wr="".concat(Re,"-nav-wrap"),Pr,To,Io,Xo;return Xt?Ae?(To=jt>0,Pr=jt!==Er):(Pr=jt<0,To=jt!==xr):(Io=Vt<0,Xo=Vt!==xr),e.createElement(se.Z,{onResize:On},e.createElement("div",{ref:(0,h.x1)(O,Ye),role:"tablist","aria-orientation":Xt?"horizontal":"vertical",className:P()("".concat(Re,"-nav"),it),style:R,onKeyDown:function(){jr()}},e.createElement(we,{ref:_e,position:"left",extra:qe,prefixCls:Re}),e.createElement(se.Z,{onResize:On},e.createElement("div",{className:P()(wr,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(wr,"-ping-left"),Pr),"".concat(wr,"-ping-right"),To),"".concat(wr,"-ping-top"),Io),"".concat(wr,"-ping-bottom"),Xo)),ref:ft},e.createElement(se.Z,{onResize:On},e.createElement("div",{ref:Ot,className:"".concat(Re,"-nav-list"),style:{transform:"translate(".concat(jt,"px, ").concat(Vt,"px)"),transition:Zr?"none":void 0}},In,e.createElement(et,{ref:Ft,prefixCls:Re,locale:at,editable:Fe,style:(0,F.Z)((0,F.Z)({},In.length===0?void 0:Hr),{},{visibility:tr?"hidden":null})}),e.createElement("div",{className:P()("".concat(Re,"-ink-bar"),(0,D.Z)({},"".concat(Re,"-ink-bar-animated"),He.inkBar)),style:An}))))),e.createElement(ye,(0,g.Z)({},b,{removeAriaLabel:at==null?void 0:at.removeAriaLabel,ref:Dt,prefixCls:Re,tabs:$r,className:!tr&&er,tabMoving:!!Zr})),e.createElement(we,{ref:nt,position:"right",extra:qe,prefixCls:Re})))}),ce=f,A=e.forwardRef(function(b,O){var it=b.prefixCls,R=b.className,$=b.style,He=b.id,Pe=b.active,Ae=b.tabKey,qe=b.children;return e.createElement("div",{id:He&&"".concat(He,"-panel-").concat(Ae),role:"tabpanel",tabIndex:Pe?0:-1,"aria-labelledby":He&&"".concat(He,"-tab-").concat(Ae),"aria-hidden":!Pe,style:$,className:P()(it,Pe&&"".concat(it,"-active"),R),ref:O},qe)}),r=A,u=["renderTabBar"],V=["label","key"],K=function(O){var it=O.renderTabBar,R=(0,w.Z)(O,u),$=e.useContext(Ne),He=$.tabs;if(it){var Pe=(0,F.Z)((0,F.Z)({},R),{},{panes:He.map(function(Ae){var qe=Ae.label,Fe=Ae.key,at=(0,w.Z)(Ae,V);return e.createElement(r,(0,g.Z)({tab:qe,key:Fe,tabKey:Fe},at))})});return it(Pe,ce)}return e.createElement(ce,R)},y=K,z=t(77900),L=["key","forceRender","style","className","destroyInactiveTabPane"],J=function(O){var it=O.id,R=O.activeKey,$=O.animated,He=O.tabPosition,Pe=O.destroyInactiveTabPane,Ae=e.useContext(Ne),qe=Ae.prefixCls,Fe=Ae.tabs,at=$.tabPane,Ct="".concat(qe,"-tabpane");return e.createElement("div",{className:P()("".concat(qe,"-content-holder"))},e.createElement("div",{className:P()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(He),(0,D.Z)({},"".concat(qe,"-content-animated"),at))},Fe.map(function(bt){var vt=bt.key,zt=bt.forceRender,Kt=bt.style,Rt=bt.className,ue=bt.destroyInactiveTabPane,Re=(0,w.Z)(bt,L),Ze=vt===R;return e.createElement(z.default,(0,g.Z)({key:vt,visible:Ze,forceRender:zt,removeOnLeave:!!(Pe||ue),leavedClassName:"".concat(Ct,"-hidden")},$.tabPaneMotion),function(Ye,_e){var nt=Ye.style,ft=Ye.className;return e.createElement(r,(0,g.Z)({},Re,{prefixCls:Ct,id:it,tabKey:vt,animated:at,active:Ze,style:(0,F.Z)((0,F.Z)({},Kt),nt),className:P()(Rt,ft),ref:_e}))})})))},l=J,v=t(48736);function Me(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},O;return b===!1?O={inkBar:!1,tabPane:!1}:b===!0?O={inkBar:!0,tabPane:!1}:O=(0,F.Z)({inkBar:!0},(0,X.Z)(b)==="object"?b:{}),O.tabPaneMotion&&O.tabPane===void 0&&(O.tabPane=!0),!O.tabPaneMotion&&O.tabPane&&(O.tabPane=!1),O}var de=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ie=0,Be=e.forwardRef(function(b,O){var it=b.id,R=b.prefixCls,$=R===void 0?"rc-tabs":R,He=b.className,Pe=b.items,Ae=b.direction,qe=b.activeKey,Fe=b.defaultActiveKey,at=b.editable,Ct=b.animated,bt=b.tabPosition,vt=bt===void 0?"top":bt,zt=b.tabBarGutter,Kt=b.tabBarStyle,Rt=b.tabBarExtraContent,ue=b.locale,Re=b.more,Ze=b.destroyInactiveTabPane,Ye=b.renderTabBar,_e=b.onChange,nt=b.onTabClick,ft=b.onTabScroll,Ot=b.getPopupContainer,Dt=b.popupClassName,Ft=b.indicator,Xt=(0,w.Z)(b,de),Tt=e.useMemo(function(){return(Pe||[]).filter(function(Lt){return Lt&&(0,X.Z)(Lt)==="object"&&"key"in Lt})},[Pe]),Zt=Ae==="rtl",jt=Me(Ct),Qt=(0,e.useState)(!1),an=(0,n.Z)(Qt,2),$t=an[0],Vt=an[1];(0,e.useEffect)(function(){Vt((0,xe.Z)())},[]);var En=(0,I.Z)(function(){var Lt;return(Lt=Tt[0])===null||Lt===void 0?void 0:Lt.key},{value:qe,defaultValue:Fe}),un=(0,n.Z)(En,2),sn=un[0],bn=un[1],Wt=(0,e.useState)(function(){return Tt.findIndex(function(Lt){return Lt.key===sn})}),Jt=(0,n.Z)(Wt,2),Pn=Jt[0],Dn=Jt[1];(0,e.useEffect)(function(){var Lt=Tt.findIndex(function(Et){return Et.key===sn});if(Lt===-1){var yt;Lt=Math.max(0,Math.min(Pn,Tt.length-1)),bn((yt=Tt[Lt])===null||yt===void 0?void 0:yt.key)}Dn(Lt)},[Tt.map(function(Lt){return Lt.key}).join("_"),sn,Pn]);var Un=(0,I.Z)(null,{value:it}),Mn=(0,n.Z)(Un,2),Vn=Mn[0],Jn=Mn[1];(0,e.useEffect)(function(){it||(Jn("rc-tabs-".concat(Ie)),Ie+=1)},[]);function rr(Lt,yt){nt==null||nt(Lt,yt);var Et=Lt!==sn;bn(Lt),Et&&(_e==null||_e(Lt))}var ar={id:Vn,activeKey:sn,animated:jt,tabPosition:vt,rtl:Zt,mobile:$t},qn=(0,F.Z)((0,F.Z)({},ar),{},{editable:at,locale:ue,more:Re,tabBarGutter:zt,onTabClick:rr,onTabScroll:ft,extra:Rt,style:Kt,panes:null,getPopupContainer:Ot,popupClassName:Dt,indicator:Ft});return e.createElement(Ne.Provider,{value:{tabs:Tt,prefixCls:$}},e.createElement("div",(0,g.Z)({ref:O,id:it,className:P()($,"".concat($,"-").concat(vt),(0,D.Z)((0,D.Z)((0,D.Z)({},"".concat($,"-mobile"),$t),"".concat($,"-editable"),at),"".concat($,"-rtl"),Zt),He)},Xt),e.createElement(y,(0,g.Z)({},qn,{renderTabBar:Ye})),e.createElement(l,(0,g.Z)({destroyInactiveTabPane:Ze},ar,{animated:jt}))))}),Te=Be,Ue=Te,je=t(48755),x=t(83397),te=t(31756),Ce=t(86641);const De={motionAppear:!1,motionEnter:!0,motionLeave:!0};function C(b){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},it;return O===!1?it={inkBar:!1,tabPane:!1}:O===!0?it={inkBar:!0,tabPane:!0}:it=Object.assign({inkBar:!0},typeof O=="object"?O:{}),it.tabPane&&(it.tabPaneMotion=Object.assign(Object.assign({},De),{motionName:(0,Ce.m)(b,"switch")})),it}var k=t(11592),G=function(b,O){var it={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&O.indexOf(R)<0&&(it[R]=b[R]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,R=Object.getOwnPropertySymbols(b);$O)}function ze(b,O){if(b)return b;const it=(0,k.Z)(O).map(R=>{if(e.isValidElement(R)){const{key:$,props:He}=R,Pe=He||{},{tab:Ae}=Pe,qe=G(Pe,["tab"]);return Object.assign(Object.assign({key:String($)},qe),{label:Ae})}return null});return ve(it)}var Ke=t(36237),ut=t(63356),pt=t(16931),tt=t(51636),mt=t(46e3),rt=b=>{const{componentCls:O,motionDurationSlow:it}=b;return[{[O]:{[`${O}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${it}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${it}`}}}}},[(0,mt.oN)(b,"slide-up"),(0,mt.oN)(b,"slide-down")]]};const ot=b=>{const{componentCls:O,tabsCardPadding:it,cardBg:R,cardGutter:$,colorBorderSecondary:He,itemSelectedColor:Pe}=b;return{[`${O}-card`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab`]:{margin:0,padding:it,background:R,border:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${He}`,transition:`all ${b.motionDurationSlow} ${b.motionEaseInOut}`},[`${O}-tab-active`]:{color:Pe,background:b.colorBgContainer},[`${O}-tab-focus`]:Object.assign({},(0,ut.oN)(b,-3)),[`${O}-ink-bar`]:{visibility:"hidden"},[`& ${O}-tab${O}-tab-focus ${O}-tab-btn`]:{outline:"none"}},[`&${O}-top, &${O}-bottom`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab + ${O}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,Ke.unit)($)}}}},[`&${O}-top`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab`]:{borderRadius:`${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)} 0 0`},[`${O}-tab-active`]:{borderBottomColor:b.colorBgContainer}}},[`&${O}-bottom`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab`]:{borderRadius:`0 0 ${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)}`},[`${O}-tab-active`]:{borderTopColor:b.colorBgContainer}}},[`&${O}-left, &${O}-right`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab + ${O}-tab`]:{marginTop:(0,Ke.unit)($)}}},[`&${O}-left`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,Ke.unit)(b.borderRadiusLG)} 0 0 ${(0,Ke.unit)(b.borderRadiusLG)}`}},[`${O}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:b.colorBgContainer}}}},[`&${O}-right`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)} 0`}},[`${O}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:b.colorBgContainer}}}}}}},xt=b=>{const{componentCls:O,itemHoverColor:it,dropdownEdgeChildVerticalPadding:R}=b;return{[`${O}-dropdown`]:Object.assign(Object.assign({},(0,ut.Wf)(b)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${O}-dropdown-menu`]:{maxHeight:b.tabsDropdownHeight,margin:0,padding:`${(0,Ke.unit)(R)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:b.colorBgContainer,backgroundClip:"padding-box",borderRadius:b.borderRadiusLG,outline:"none",boxShadow:b.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ut.vS),{display:"flex",alignItems:"center",minWidth:b.tabsDropdownWidth,margin:0,padding:`${(0,Ke.unit)(b.paddingXXS)} ${(0,Ke.unit)(b.paddingSM)}`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,lineHeight:b.lineHeight,cursor:"pointer",transition:`all ${b.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:b.marginSM},color:b.colorTextDescription,fontSize:b.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:it}},"&:hover":{background:b.controlItemBgHover},"&-disabled":{"&, &:hover":{color:b.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},gt=b=>{const{componentCls:O,margin:it,colorBorderSecondary:R,horizontalMargin:$,verticalItemPadding:He,verticalItemMargin:Pe,calc:Ae}=b;return{[`${O}-top, ${O}-bottom`]:{flexDirection:"column",[`> ${O}-nav, > div > ${O}-nav`]:{margin:$,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${R}`,content:"''"},[`${O}-ink-bar`]:{height:b.lineWidthBold,"&-animated":{transition:`width ${b.motionDurationSlow}, left ${b.motionDurationSlow}, + right ${b.motionDurationSlow}`}},[`${O}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:b.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:b.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:b.boxShadowTabsOverflowRight},[`&${O}-nav-wrap-ping-left::before`]:{opacity:1},[`&${O}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${O}-top`]:{[`> ${O}-nav, + > div > ${O}-nav`]:{"&::before":{bottom:0},[`${O}-ink-bar`]:{bottom:0}}},[`${O}-bottom`]:{[`> ${O}-nav, > div > ${O}-nav`]:{order:1,marginTop:it,marginBottom:0,"&::before":{top:0},[`${O}-ink-bar`]:{top:0}},[`> ${O}-content-holder, > div > ${O}-content-holder`]:{order:0}},[`${O}-left, ${O}-right`]:{[`> ${O}-nav, > div > ${O}-nav`]:{flexDirection:"column",minWidth:Ae(b.controlHeight).mul(1.25).equal(),[`${O}-tab`]:{padding:He,textAlign:"center"},[`${O}-tab + ${O}-tab`]:{margin:Pe},[`${O}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:b.controlHeight},"&::before":{top:0,boxShadow:b.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:b.boxShadowTabsOverflowBottom},[`&${O}-nav-wrap-ping-top::before`]:{opacity:1},[`&${O}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${O}-ink-bar`]:{width:b.lineWidthBold,"&-animated":{transition:`height ${b.motionDurationSlow}, top ${b.motionDurationSlow}`}},[`${O}-nav-list, ${O}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${O}-left`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${O}-content-holder, > div > ${O}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,Ke.unit)(Ae(b.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${b.colorBorder}`},[`> ${O}-content > ${O}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:b.paddingLG}}}},[`${O}-right`]:{[`> ${O}-nav, > div > ${O}-nav`]:{order:1,[`${O}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${O}-content-holder, > div > ${O}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:Ae(b.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${b.colorBorder}`},[`> ${O}-content > ${O}-tabpane`]:{paddingRight:{_skip_check_:!0,value:b.paddingLG}}}}}},Pt=b=>{const{componentCls:O,cardPaddingSM:it,cardPaddingLG:R,horizontalItemPaddingSM:$,horizontalItemPaddingLG:He}=b;return{[O]:{"&-small":{[`> ${O}-nav`]:{[`${O}-tab`]:{padding:$,fontSize:b.titleFontSizeSM}}},"&-large":{[`> ${O}-nav`]:{[`${O}-tab`]:{padding:He,fontSize:b.titleFontSizeLG}}}},[`${O}-card`]:{[`&${O}-small`]:{[`> ${O}-nav`]:{[`${O}-tab`]:{padding:it}},[`&${O}-bottom`]:{[`> ${O}-nav ${O}-tab`]:{borderRadius:`0 0 ${(0,Ke.unit)(b.borderRadius)} ${(0,Ke.unit)(b.borderRadius)}`}},[`&${O}-top`]:{[`> ${O}-nav ${O}-tab`]:{borderRadius:`${(0,Ke.unit)(b.borderRadius)} ${(0,Ke.unit)(b.borderRadius)} 0 0`}},[`&${O}-right`]:{[`> ${O}-nav ${O}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Ke.unit)(b.borderRadius)} ${(0,Ke.unit)(b.borderRadius)} 0`}}},[`&${O}-left`]:{[`> ${O}-nav ${O}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,Ke.unit)(b.borderRadius)} 0 0 ${(0,Ke.unit)(b.borderRadius)}`}}}},[`&${O}-large`]:{[`> ${O}-nav`]:{[`${O}-tab`]:{padding:R}}}}}},Mt=b=>{const{componentCls:O,itemActiveColor:it,itemHoverColor:R,iconCls:$,tabsHorizontalItemMargin:He,horizontalItemPadding:Pe,itemSelectedColor:Ae,itemColor:qe}=b,Fe=`${O}-tab`;return{[Fe]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Pe,fontSize:b.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:qe,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:it}},"&-btn":{outline:"none",transition:`all ${b.motionDurationSlow}`,[`${Fe}-icon:not(:last-child)`]:{marginInlineEnd:b.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:b.calc(b.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:b.marginXS},color:b.colorTextDescription,fontSize:b.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextHeading}},(0,ut.Qy)(b)),"&:hover":{color:R},[`&${Fe}-active ${Fe}-btn`]:{color:Ae,textShadow:b.tabsActiveTextShadow},[`&${Fe}-focus ${Fe}-btn`]:Object.assign({},(0,ut.oN)(b)),[`&${Fe}-disabled`]:{color:b.colorTextDisabled,cursor:"not-allowed"},[`&${Fe}-disabled ${Fe}-btn, &${Fe}-disabled ${O}-remove`]:{"&:focus, &:active":{color:b.colorTextDisabled}},[`& ${Fe}-remove ${$}`]:{margin:0},[`${$}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:b.marginSM}}},[`${Fe} + ${Fe}`]:{margin:{_skip_check_:!0,value:He}}}},Gt=b=>{const{componentCls:O,tabsHorizontalItemMarginRTL:it,iconCls:R,cardGutter:$,calc:He}=b;return{[`${O}-rtl`]:{direction:"rtl",[`${O}-nav`]:{[`${O}-tab`]:{margin:{_skip_check_:!0,value:it},[`${O}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[R]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,Ke.unit)(b.marginSM)}},[`${O}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,Ke.unit)(b.marginXS)},marginLeft:{_skip_check_:!0,value:(0,Ke.unit)(He(b.marginXXS).mul(-1).equal())},[R]:{margin:0}}}},[`&${O}-left`]:{[`> ${O}-nav`]:{order:1},[`> ${O}-content-holder`]:{order:0}},[`&${O}-right`]:{[`> ${O}-nav`]:{order:0},[`> ${O}-content-holder`]:{order:1}},[`&${O}-card${O}-top, &${O}-card${O}-bottom`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-tab + ${O}-tab`]:{marginRight:{_skip_check_:!0,value:$},marginLeft:{_skip_check_:!0,value:0}}}}},[`${O}-dropdown-rtl`]:{direction:"rtl"},[`${O}-menu-item`]:{[`${O}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},rn=b=>{const{componentCls:O,tabsCardPadding:it,cardHeight:R,cardGutter:$,itemHoverColor:He,itemActiveColor:Pe,colorBorderSecondary:Ae}=b;return{[O]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(b)),{display:"flex",[`> ${O}-nav, > div > ${O}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${O}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${b.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${O}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${b.motionDurationSlow}`},[`${O}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${O}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${O}-nav-more`]:{position:"relative",padding:it,background:"transparent",border:0,color:b.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:b.calc(b.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${O}-nav-add`]:Object.assign({minWidth:R,marginLeft:{_skip_check_:!0,value:$},padding:(0,Ke.unit)(b.paddingXS),background:"transparent",border:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${Ae}`,borderRadius:`${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:b.colorText,transition:`all ${b.motionDurationSlow} ${b.motionEaseInOut}`,"&:hover":{color:He},"&:active, &:focus:not(:focus-visible)":{color:Pe}},(0,ut.Qy)(b,-3))},[`${O}-extra-content`]:{flex:"none"},[`${O}-ink-bar`]:{position:"absolute",background:b.inkBarColor,pointerEvents:"none"}}),Mt(b)),{[`${O}-content`]:{position:"relative",width:"100%"},[`${O}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${O}-tabpane`]:Object.assign(Object.assign({},(0,ut.Qy)(b)),{"&-hidden":{display:"none"}})}),[`${O}-centered`]:{[`> ${O}-nav, > div > ${O}-nav`]:{[`${O}-nav-wrap`]:{[`&:not([class*='${O}-nav-wrap-ping']) > ${O}-nav-list`]:{margin:"auto"}}}}}},Ht=b=>{const O=b.controlHeightLG;return{zIndexPopup:b.zIndexPopupBase+50,cardBg:b.colorFillAlter,cardHeight:O,cardPadding:`${(O-Math.round(b.fontSize*b.lineHeight))/2-b.lineWidth}px ${b.padding}px`,cardPaddingSM:`${b.paddingXXS*1.5}px ${b.padding}px`,cardPaddingLG:`${b.paddingXS}px ${b.padding}px ${b.paddingXXS*1.5}px`,titleFontSize:b.fontSize,titleFontSizeLG:b.fontSizeLG,titleFontSizeSM:b.fontSize,inkBarColor:b.colorPrimary,horizontalMargin:`0 0 ${b.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${b.paddingSM}px 0`,horizontalItemPaddingSM:`${b.paddingXS}px 0`,horizontalItemPaddingLG:`${b.padding}px 0`,verticalItemPadding:`${b.paddingXS}px ${b.paddingLG}px`,verticalItemMargin:`${b.margin}px 0 0 0`,itemColor:b.colorText,itemSelectedColor:b.colorPrimary,itemHoverColor:b.colorPrimaryHover,itemActiveColor:b.colorPrimaryActive,cardGutter:b.marginXXS/2}};var At=(0,pt.I$)("Tabs",b=>{const O=(0,tt.mergeToken)(b,{tabsCardPadding:b.cardPadding,dropdownEdgeChildVerticalPadding:b.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,Ke.unit)(b.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,Ke.unit)(b.horizontalItemGutter)}`});return[Pt(O),Gt(O),gt(O),xt(O),ot(O),rn(O),rt(O)]},Ht),Bt=()=>null,mn=function(b,O){var it={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&O.indexOf(R)<0&&(it[R]=b[R]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,R=Object.getOwnPropertySymbols(b);${var O,it,R,$,He,Pe,Ae,qe,Fe,at,Ct;const{type:bt,className:vt,rootClassName:zt,size:Kt,onEdit:Rt,hideAdd:ue,centered:Re,addIcon:Ze,removeIcon:Ye,moreIcon:_e,more:nt,popupClassName:ft,children:Ot,items:Dt,animated:Ft,style:Xt,indicatorSize:Tt,indicator:Zt}=b,jt=mn(b,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Qt}=jt,{direction:an,tabs:$t,getPrefixCls:Vt,getPopupContainer:En}=e.useContext(je.E_),un=Vt("tabs",Qt),sn=(0,x.Z)(un),[bn,Wt,Jt]=At(un,sn);let Pn;bt==="editable-card"&&(Pn={onEdit:(ar,qn)=>{let{key:Lt,event:yt}=qn;Rt==null||Rt(ar==="add"?yt:Lt,ar)},removeIcon:(O=Ye!=null?Ye:$t==null?void 0:$t.removeIcon)!==null&&O!==void 0?O:e.createElement(m.Z,null),addIcon:(Ze!=null?Ze:$t==null?void 0:$t.addIcon)||e.createElement(Q.Z,null),showAdd:ue!==!0});const Dn=Vt(),Un=(0,te.Z)(Kt),Mn=ze(Dt,Ot),Vn=C(un,Ft),Jn=Object.assign(Object.assign({},$t==null?void 0:$t.style),Xt),rr={align:(it=Zt==null?void 0:Zt.align)!==null&&it!==void 0?it:(R=$t==null?void 0:$t.indicator)===null||R===void 0?void 0:R.align,size:(Ae=(He=($=Zt==null?void 0:Zt.size)!==null&&$!==void 0?$:Tt)!==null&&He!==void 0?He:(Pe=$t==null?void 0:$t.indicator)===null||Pe===void 0?void 0:Pe.size)!==null&&Ae!==void 0?Ae:$t==null?void 0:$t.indicatorSize};return bn(e.createElement(Ue,Object.assign({direction:an,getPopupContainer:En},jt,{items:Mn,className:P()({[`${un}-${Un}`]:Un,[`${un}-card`]:["card","editable-card"].includes(bt),[`${un}-editable-card`]:bt==="editable-card",[`${un}-centered`]:Re},$t==null?void 0:$t.className,vt,zt,Wt,Jt,sn),popupClassName:P()(ft,Wt,Jt,sn),style:Jn,editable:Pn,more:Object.assign({icon:(Ct=(at=(Fe=(qe=$t==null?void 0:$t.more)===null||qe===void 0?void 0:qe.icon)!==null&&Fe!==void 0?Fe:$t==null?void 0:$t.moreIcon)!==null&&at!==void 0?at:_e)!==null&&Ct!==void 0?Ct:e.createElement(p.Z,null),transitionName:`${Dn}-slide-up`},nt),prefixCls:un,animated:Vn,indicator:rr})))};pn.TabPane=Bt;var en=pn},93427:function(Yt,Ge,t){t.d(Ge,{Z:function(){return m}});var e=t(34998);function m(p,Q){return e.i.reduce((N,P)=>{const g=p[`${P}1`],D=p[`${P}3`],F=p[`${P}6`],n=p[`${P}7`];return Object.assign(Object.assign({},N),Q(P,{lightColor:g,lightBorderColor:D,darkColor:F,textColor:n}))},{})}},25399:function(Yt,Ge,t){t.d(Ge,{Z:function(){return le}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(29125),N=t(18929),P=t(62487),g=t(75030),D=t(86641),F=t(52838),n=t(22703),X=t(32383),w=t(55743),I=t(57700),xe=t(48755),Ne=t(36237),pe=t(63356),se=t(34925),Se=t(37645),h=t(36305),fe=t(93427),s=t(51636),d=t(16931);const Y=M=>{const{calc:U,componentCls:c,tooltipMaxWidth:T,tooltipColor:ne,tooltipBg:q,tooltipBorderRadius:me,zIndexPopup:et,controlHeight:W,boxShadowSecondary:we,paddingSM:he,paddingXS:Xe,arrowOffsetHorizontal:B,sizePopupArrow:Oe}=M,ye=U(me).add(Oe).add(B).equal(),ct=U(me).mul(2).add(Oe).equal();return[{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(M)),{position:"absolute",zIndex:et,display:"block",width:"max-content",maxWidth:T,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":q,[`${c}-inner`]:{minWidth:ct,minHeight:W,padding:`${(0,Ne.unit)(M.calc(he).div(2).equal())} ${(0,Ne.unit)(Xe)}`,color:ne,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:q,borderRadius:me,boxShadow:we,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:ye},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${c}-inner`]:{borderRadius:M.min(me,Se.qN)}},[`${c}-content`]:{position:"relative"}}),(0,fe.Z)(M,(Le,oe)=>{let{darkColor:Z}=oe;return{[`&${c}-${Le}`]:{[`${c}-inner`]:{backgroundColor:Z},[`${c}-arrow`]:{"--antd-arrow-background-color":Z}}}})),{"&-rtl":{direction:"rtl"}})},(0,Se.ZP)(M,"var(--antd-arrow-background-color)"),{[`${c}-pure`]:{position:"relative",maxWidth:"none",margin:M.sizePopupArrow}}]},ee=M=>Object.assign(Object.assign({zIndexPopup:M.zIndexPopupBase+70},(0,Se.wZ)({contentRadius:M.borderRadius,limitVerticalRadius:!0})),(0,h.w)((0,s.mergeToken)(M,{borderRadiusOuter:Math.min(M.borderRadiusOuter,4)})));var _=function(M){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,d.I$)("Tooltip",T=>{const{borderRadius:ne,colorTextLightSolid:q,colorBgSpotlight:me}=T,et=(0,s.mergeToken)(T,{tooltipMaxWidth:250,tooltipColor:q,tooltipBorderRadius:ne,tooltipBg:me});return[Y(et),(0,se._y)(T,"zoom-big-fast")]},ee,{resetStyle:!1,injectStyle:U})(M)},Ve=t(29509);function Ee(M,U){const c=(0,Ve.o2)(U),T=p()({[`${M}-${U}`]:U&&c}),ne={},q={};return U&&!c&&(ne.background=U,q["--antd-arrow-background-color"]=U),{className:T,overlayStyle:ne,arrowStyle:q}}var ge=M=>{const{prefixCls:U,className:c,placement:T="top",title:ne,color:q,overlayInnerStyle:me}=M,{getPrefixCls:et}=e.useContext(xe.E_),W=et("tooltip",U),[we,he,Xe]=_(W),B=Ee(W,q),Oe=B.arrowStyle,ye=Object.assign(Object.assign({},me),B.overlayStyle),ct=p()(he,Xe,W,`${W}-pure`,`${W}-placement-${T}`,c,B.className);return we(e.createElement("div",{className:ct,style:Oe},e.createElement("div",{className:`${W}-arrow`}),e.createElement(Q.G,Object.assign({},M,{className:he,prefixCls:W,overlayInnerStyle:ye}),ne)))},re=function(M,U){var c={};for(var T in M)Object.prototype.hasOwnProperty.call(M,T)&&U.indexOf(T)<0&&(c[T]=M[T]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,T=Object.getOwnPropertySymbols(M);ne{var c,T;const{prefixCls:ne,openClassName:q,getTooltipContainer:me,color:et,overlayInnerStyle:W,children:we,afterOpenChange:he,afterVisibleChange:Xe,destroyTooltipOnHide:B,arrow:Oe=!0,title:ye,overlay:ct,builtinPlacements:Le,arrowPointAtCenter:oe=!1,autoAdjustOverflow:Z=!0,motion:H,getPopupContainer:f,placement:ce="top",mouseEnterDelay:A=.1,mouseLeaveDelay:r=.1,overlayStyle:u,rootClassName:V,overlayClassName:K,styles:y,classNames:z}=M,L=re(M,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),J=!!Oe,[,l]=(0,I.ZP)(),{getPopupContainer:v,getPrefixCls:Me,direction:de,className:Ie,style:Be,classNames:Te,styles:Ue}=(0,xe.dj)("tooltip"),je=(0,X.ln)("Tooltip"),x=e.useRef(null),te=()=>{var Bt;(Bt=x.current)===null||Bt===void 0||Bt.forceAlign()};e.useImperativeHandle(U,()=>{var Bt,mn;return{forceAlign:te,forcePopupAlign:()=>{je.deprecated(!1,"forcePopupAlign","forceAlign"),te()},nativeElement:(Bt=x.current)===null||Bt===void 0?void 0:Bt.nativeElement,popupElement:(mn=x.current)===null||mn===void 0?void 0:mn.popupElement}});const[Ce,De]=(0,N.Z)(!1,{value:(c=M.open)!==null&&c!==void 0?c:M.visible,defaultValue:(T=M.defaultOpen)!==null&&T!==void 0?T:M.defaultVisible}),C=!ye&&!ct&&ye!==0,k=Bt=>{var mn,pn;De(C?!1:Bt),C||((mn=M.onOpenChange)===null||mn===void 0||mn.call(M,Bt),(pn=M.onVisibleChange)===null||pn===void 0||pn.call(M,Bt))},G=e.useMemo(()=>{var Bt,mn;let pn=oe;return typeof Oe=="object"&&(pn=(mn=(Bt=Oe.pointAtCenter)!==null&&Bt!==void 0?Bt:Oe.arrowPointAtCenter)!==null&&mn!==void 0?mn:oe),Le||(0,F.Z)({arrowPointAtCenter:pn,autoAdjustOverflow:Z,arrowWidth:J?l.sizePopupArrow:0,borderRadius:l.borderRadius,offset:l.marginXXS,visibleFirst:!0})},[oe,Oe,Le,l]),ve=e.useMemo(()=>ye===0?ye:ct||ye||"",[ct,ye]),ze=e.createElement(P.Z,{space:!0},typeof ve=="function"?ve():ve),Ke=Me("tooltip",ne),ut=Me(),pt=M["data-popover-inject"];let tt=Ce;!("open"in M)&&!("visible"in M)&&C&&(tt=!1);const mt=e.isValidElement(we)&&!(0,n.M2)(we)?we:e.createElement("span",null,we),ke=mt.props,rt=!ke.className||typeof ke.className=="string"?p()(ke.className,q||`${Ke}-open`):ke.className,[ot,xt,gt]=_(Ke,!pt),Pt=Ee(Ke,et),Mt=Pt.arrowStyle,Gt=p()(K,{[`${Ke}-rtl`]:de==="rtl"},Pt.className,V,xt,gt,Ie,Te.root,z==null?void 0:z.root),rn=p()(Te.body,z==null?void 0:z.body),[Ht,At]=(0,g.Cn)("Tooltip",L.zIndex),vn=e.createElement(Q.Z,Object.assign({},L,{zIndex:Ht,showArrow:J,placement:ce,mouseEnterDelay:A,mouseLeaveDelay:r,prefixCls:Ke,classNames:{root:Gt,body:rn},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt),Ue.root),Be),u),y==null?void 0:y.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Ue.body),W),y==null?void 0:y.body),Pt.overlayStyle)},getTooltipContainer:f||me||v,ref:x,builtinPlacements:G,overlay:ze,visible:tt,onVisibleChange:k,afterVisibleChange:he!=null?he:Xe,arrowContent:e.createElement("span",{className:`${Ke}-arrow-content`}),motion:{motionName:(0,D.m)(ut,"zoom-big-fast",M.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!B}),tt?(0,n.Tm)(mt,{className:rt}):mt);return ot(e.createElement(w.Z.Provider,{value:At},vn))});i._InternalPanelDoNotUseOrYouWillBeFired=ge;var le=i},18287:function(Yt,Ge,t){t.d(Ge,{default:function(){return et}});var e=t(3741),m=t(94480),p=t(59301),Q=t(52671),N=t(8657),P=t(54476),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},D=g,F=t(7657),n=function(we,he){return p.createElement(F.Z,(0,P.Z)({},we,{ref:he,icon:D}))},X=p.forwardRef(n),w=X,I=t(92310),xe=t.n(I),Ne=t(82661),pe=t(34061),se=t(48755),Se=t(56082),h=t(86641),fe=t(57700),s=t(12425);const d=4;function Y(W){const{dropPosition:we,dropLevelOffset:he,prefixCls:Xe,indent:B,direction:Oe="ltr"}=W,ye=Oe==="ltr"?"left":"right",ct=Oe==="ltr"?"right":"left",Le={[ye]:-he*B+d,[ct]:0};switch(we){case-1:Le.top=-3;break;case 1:Le.bottom=-3;break;default:Le.bottom=-3,Le[ye]=B+d;break}return p.createElement("div",{style:Le,className:`${Xe}-drop-indicator`})}var ee=Y,_=t(85278),Ee=p.forwardRef((W,we)=>{var he;const{getPrefixCls:Xe,direction:B,virtual:Oe,tree:ye}=p.useContext(se.E_),{prefixCls:ct,className:Le,showIcon:oe=!1,showLine:Z,switcherIcon:H,switcherLoadingIcon:f,blockNode:ce=!1,children:A,checkable:r=!1,selectable:u=!0,draggable:V,motion:K,style:y}=W,z=Xe("tree",ct),L=Xe(),J=K!=null?K:Object.assign(Object.assign({},(0,h.Z)(L)),{motionAppear:!1}),l=Object.assign(Object.assign({},W),{checkable:r,selectable:u,showIcon:oe,motion:J,blockNode:ce,showLine:!!Z,dropIndicatorRender:ee}),[v,Me,de]=(0,s.ZP)(z),[,Ie]=(0,fe.ZP)(),Be=Ie.paddingXS/2+(((he=Ie.Tree)===null||he===void 0?void 0:he.titleHeight)||Ie.controlHeightSM),Te=p.useMemo(()=>{if(!V)return!1;let je={};switch(typeof V){case"function":je.nodeDraggable=V;break;case"object":je=Object.assign({},V);break;default:break}return je.icon!==!1&&(je.icon=je.icon||p.createElement(Se.Z,null)),je},[V]),Ue=je=>p.createElement(_.Z,{prefixCls:z,switcherIcon:H,switcherLoadingIcon:f,treeNodeProps:je,showLine:Z});return v(p.createElement(e.ZP,Object.assign({itemHeight:Be,ref:we,virtual:Oe},l,{style:Object.assign(Object.assign({},ye==null?void 0:ye.style),y),prefixCls:z,className:xe()({[`${z}-icon-hide`]:!oe,[`${z}-block-node`]:ce,[`${z}-unselectable`]:!u,[`${z}-rtl`]:B==="rtl"},ye==null?void 0:ye.className,Le,Me,de),direction:B,checkable:r&&p.createElement("span",{className:`${z}-checkbox-inner`}),selectable:u,switcherIcon:Ue,draggable:Te}),A))});const ae=0,ge=1,re=2;function S(W,we,he){const{key:Xe,children:B}=he;function Oe(ye){const ct=ye[Xe],Le=ye[B];we(ct,ye)!==!1&&S(Le||[],we,he)}W.forEach(Oe)}function i(W){let{treeData:we,expandedKeys:he,startKey:Xe,endKey:B,fieldNames:Oe}=W;const ye=[];let ct=ae;if(Xe&&Xe===B)return[Xe];if(!Xe||!B)return[];function Le(oe){return oe===Xe||oe===B}return S(we,oe=>{if(ct===re)return!1;if(Le(oe)){if(ye.push(oe),ct===ae)ct=ge;else if(ct===ge)return ct=re,!1}else ct===ge&&ye.push(oe);return he.includes(oe)},(0,pe.w$)(Oe)),ye}function le(W,we,he){const Xe=(0,m.Z)(we),B=[];return S(W,(Oe,ye)=>{const ct=Xe.indexOf(Oe);return ct!==-1&&(B.push(ye),Xe.splice(ct,1)),!!Xe.length},(0,pe.w$)(he)),B}var M=function(W,we){var he={};for(var Xe in W)Object.prototype.hasOwnProperty.call(W,Xe)&&we.indexOf(Xe)<0&&(he[Xe]=W[Xe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,Xe=Object.getOwnPropertySymbols(W);B{var{defaultExpandAll:he,defaultExpandParent:Xe,defaultExpandedKeys:B}=W,Oe=M(W,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ye=p.useRef(null),ct=p.useRef(null),Le=()=>{const{keyEntities:v}=(0,pe.I8)(c(Oe));let Me;return he?Me=Object.keys(v):Xe?Me=(0,Ne.r7)(Oe.expandedKeys||B||[],v):Me=Oe.expandedKeys||B||[],Me},[oe,Z]=p.useState(Oe.selectedKeys||Oe.defaultSelectedKeys||[]),[H,f]=p.useState(()=>Le());p.useEffect(()=>{"selectedKeys"in Oe&&Z(Oe.selectedKeys)},[Oe.selectedKeys]),p.useEffect(()=>{"expandedKeys"in Oe&&f(Oe.expandedKeys)},[Oe.expandedKeys]);const ce=(v,Me)=>{var de;return"expandedKeys"in Oe||f(v),(de=Oe.onExpand)===null||de===void 0?void 0:de.call(Oe,v,Me)},A=(v,Me)=>{var de;const{multiple:Ie,fieldNames:Be}=Oe,{node:Te,nativeEvent:Ue}=Me,{key:je=""}=Te,x=c(Oe),te=Object.assign(Object.assign({},Me),{selected:!0}),Ce=(Ue==null?void 0:Ue.ctrlKey)||(Ue==null?void 0:Ue.metaKey),De=Ue==null?void 0:Ue.shiftKey;let C;Ie&&Ce?(C=v,ye.current=je,ct.current=C,te.selectedNodes=le(x,C,Be)):Ie&&De?(C=Array.from(new Set([].concat((0,m.Z)(ct.current||[]),(0,m.Z)(i({treeData:x,expandedKeys:H,startKey:je,endKey:ye.current,fieldNames:Be}))))),te.selectedNodes=le(x,C,Be)):(C=[je],ye.current=je,ct.current=C,te.selectedNodes=le(x,C,Be)),(de=Oe.onSelect)===null||de===void 0||de.call(Oe,C,te),"selectedKeys"in Oe||Z(C)},{getPrefixCls:r,direction:u}=p.useContext(se.E_),{prefixCls:V,className:K,showIcon:y=!0,expandAction:z="click"}=Oe,L=M(Oe,["prefixCls","className","showIcon","expandAction"]),J=r("tree",V),l=xe()(`${J}-directory`,{[`${J}-directory-rtl`]:u==="rtl"},K);return p.createElement(Ee,Object.assign({icon:U,ref:we,blockNode:!0},L,{showIcon:y,expandAction:z,prefixCls:J,className:l,expandedKeys:H,selectedKeys:oe,onSelect:A,onExpand:ce}))};var q=p.forwardRef(T);const me=Ee;me.DirectoryTree=q,me.TreeNode=e.OF;var et=me},12425:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return Ne},Yk:function(){return w},TM:function(){return I}});var e=t(36237),m=t(36170),p=t(63356),Q=t(34961),N=t(51636),P=t(16931);const g=pe=>{let{treeCls:se,treeNodeCls:Se,directoryNodeSelectedBg:h,directoryNodeSelectedColor:fe,motionDurationMid:s,borderRadius:d,controlItemBgHover:Y}=pe;return{[`${se}${se}-directory ${Se}`]:{[`${se}-node-content-wrapper`]:{position:"static",[`> *:not(${se}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${s}`,content:'""',borderRadius:d},"&:hover:before":{background:Y}},[`${se}-switcher, ${se}-checkbox, ${se}-draggable-icon`]:{zIndex:1},"&-selected":{[`${se}-switcher, ${se}-draggable-icon`]:{color:fe},[`${se}-node-content-wrapper`]:{color:fe,background:"transparent","&:before, &:hover:before":{background:h}}}}}},D=new e.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),F=(pe,se)=>({[`.${pe}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${se.motionDurationSlow}`}}}),n=(pe,se)=>({[`.${pe}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:se.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,e.unit)(se.lineWidthBold)} solid ${se.colorPrimary}`,borderRadius:"50%",content:'""'}}}),X=(pe,se)=>{const{treeCls:Se,treeNodeCls:h,treeNodePadding:fe,titleHeight:s,indentSize:d,nodeSelectedBg:Y,nodeHoverBg:ee,colorTextQuaternary:_,controlItemBgActiveDisabled:Ve}=se;return{[Se]:Object.assign(Object.assign({},(0,p.Wf)(se)),{background:se.colorBgContainer,borderRadius:se.borderRadius,transition:`background-color ${se.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Se}-rtl ${Se}-switcher_close ${Se}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Se}-active-focused)`]:Object.assign({},(0,p.oN)(se)),[`${Se}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Se}-block-node`]:{[`${Se}-list-holder-inner`]:{alignItems:"stretch",[`${Se}-node-content-wrapper`]:{flex:"auto"},[`${h}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${se.colorPrimary}`,opacity:0,animationName:D,animationDuration:se.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:se.borderRadius}}},[h]:{display:"flex",alignItems:"flex-start",marginBottom:fe,lineHeight:(0,e.unit)(s),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:fe},[`&-disabled ${Se}-node-content-wrapper`]:{color:se.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Se}-checkbox-disabled + ${Se}-node-selected,&${h}-disabled${h}-selected ${Se}-node-content-wrapper`]:{backgroundColor:Ve},[`${Se}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${h}-disabled)`]:{[`${Se}-node-content-wrapper`]:{"&:hover":{color:se.nodeHoverColor}}},[`&-active ${Se}-node-content-wrapper`]:{background:se.controlItemBgHover},[`&:not(${h}-disabled).filter-node ${Se}-title`]:{color:se.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Se}-draggable-icon`]:{flexShrink:0,width:s,textAlign:"center",visibility:"visible",color:_},[`&${h}-disabled ${Se}-draggable-icon`]:{visibility:"hidden"}}},[`${Se}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:d}},[`${Se}-draggable-icon`]:{visibility:"hidden"},[`${Se}-switcher, ${Se}-checkbox`]:{marginInlineEnd:se.calc(se.calc(s).sub(se.controlInteractiveSize)).div(2).equal()},[`${Se}-switcher`]:Object.assign(Object.assign({},F(pe,se)),{position:"relative",flex:"none",alignSelf:"stretch",width:s,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${se.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:s,height:s,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:se.borderRadius,transition:`all ${se.motionDurationSlow}`},[`&:not(${Se}-switcher-noop):hover:before`]:{backgroundColor:se.colorBgTextHover},[`&_close ${Se}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:se.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se.calc(s).div(2).equal(),bottom:se.calc(fe).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${se.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se.calc(se.calc(s).div(2).equal()).mul(.8).equal(),height:se.calc(s).div(2).equal(),borderBottom:`1px solid ${se.colorBorder}`,content:'""'}}}),[`${Se}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:s,paddingBlock:0,paddingInline:se.paddingXS,background:"transparent",borderRadius:se.borderRadius,cursor:"pointer",transition:`all ${se.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},n(pe,se)),{"&:hover":{backgroundColor:ee},[`&${Se}-node-selected`]:{color:se.nodeSelectedColor,backgroundColor:Y},[`${Se}-iconEle`]:{display:"inline-block",width:s,height:s,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Se}-unselectable ${Se}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${h}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${se.colorPrimary}`},"&-show-line":{[`${Se}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se.calc(s).div(2).equal(),bottom:se.calc(fe).mul(-1).equal(),borderInlineEnd:`1px solid ${se.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Se}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${h}-leaf-last ${Se}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,e.unit)(se.calc(s).div(2).equal())} !important`}})}},w=function(pe,se){let Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const h=`.${pe}`,fe=`${h}-treenode`,s=se.calc(se.paddingXS).div(2).equal(),d=(0,N.mergeToken)(se,{treeCls:h,treeNodeCls:fe,treeNodePadding:s});return[X(pe,d),Se&&g(d)].filter(Boolean)},I=pe=>{const{controlHeightSM:se,controlItemBgHover:Se,controlItemBgActive:h}=pe,fe=se;return{titleHeight:fe,indentSize:fe,nodeHoverBg:Se,nodeHoverColor:pe.colorText,nodeSelectedBg:h,nodeSelectedColor:pe.colorText}},xe=pe=>{const{colorTextLightSolid:se,colorPrimary:Se}=pe;return Object.assign(Object.assign({},I(pe)),{directoryNodeSelectedColor:se,directoryNodeSelectedBg:Se})};var Ne=(0,P.I$)("Tree",(pe,se)=>{let{prefixCls:Se}=se;return[{[pe.componentCls]:(0,m.C2)(`${Se}-checkbox`,pe)},w(Se,pe),(0,Q.Z)(pe)]},xe)},85278:function(Yt,Ge,t){t.d(Ge,{Z:function(){return se}});var e=t(59301),m=t(54476),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Q=p,N=t(7657),P=function(h,fe){return e.createElement(N.Z,(0,m.Z)({},h,{ref:fe,icon:Q}))},g=e.forwardRef(P),D=g,F=t(52671),n=t(58617),X=t(15075),w=t(43531),I=t(92310),xe=t.n(I),Ne=t(22703),se=Se=>{const{prefixCls:h,switcherIcon:fe,treeNodeProps:s,showLine:d,switcherLoadingIcon:Y}=Se,{isLeaf:ee,expanded:_,loading:Ve}=s;if(Ve)return e.isValidElement(Y)?Y:e.createElement(n.Z,{className:`${h}-switcher-loading-icon`});let Ee;if(d&&typeof d=="object"&&(Ee=d.showLeafIcon),ee){if(!d)return null;if(typeof Ee!="boolean"&&Ee){const re=typeof Ee=="function"?Ee(s):Ee,S=`${h}-switcher-line-custom-icon`;return e.isValidElement(re)?(0,Ne.Tm)(re,{className:xe()(re.props.className||"",S)}):re}return Ee?e.createElement(F.Z,{className:`${h}-switcher-line-icon`}):e.createElement("span",{className:`${h}-switcher-leaf-line`})}const ae=`${h}-switcher-icon`,ge=typeof fe=="function"?fe(s):fe;return e.isValidElement(ge)?(0,Ne.Tm)(ge,{className:xe()(ge.props.className||"",ae)}):ge!==void 0?ge:d?_?e.createElement(X.Z,{className:`${h}-switcher-line-icon`}):e.createElement(w.Z,{className:`${h}-switcher-line-icon`}):e.createElement(D,{className:ae})}},16632:function(Yt,Ge,t){var e=t(54476),m=t(33885),p=t(20068),Q=t(42978),N=t(75931),P=t(92310),g=t.n(P),D=t(18929),F=t(59301),n=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],X=(0,F.forwardRef)(function(w,I){var xe=w.prefixCls,Ne=xe===void 0?"rc-checkbox":xe,pe=w.className,se=w.style,Se=w.checked,h=w.disabled,fe=w.defaultChecked,s=fe===void 0?!1:fe,d=w.type,Y=d===void 0?"checkbox":d,ee=w.title,_=w.onChange,Ve=(0,N.Z)(w,n),Ee=(0,F.useRef)(null),ae=(0,F.useRef)(null),ge=(0,D.Z)(s,{value:Se}),re=(0,Q.Z)(ge,2),S=re[0],i=re[1];(0,F.useImperativeHandle)(I,function(){return{focus:function(c){var T;(T=Ee.current)===null||T===void 0||T.focus(c)},blur:function(){var c;(c=Ee.current)===null||c===void 0||c.blur()},input:Ee.current,nativeElement:ae.current}});var le=g()(Ne,pe,(0,p.Z)((0,p.Z)({},"".concat(Ne,"-checked"),S),"".concat(Ne,"-disabled"),h)),M=function(c){h||("checked"in w||i(c.target.checked),_==null||_({target:(0,m.Z)((0,m.Z)({},w),{},{type:Y,checked:c.target.checked}),stopPropagation:function(){c.stopPropagation()},preventDefault:function(){c.preventDefault()},nativeEvent:c.nativeEvent}))};return F.createElement("span",{className:le,title:ee,style:se,ref:ae},F.createElement("input",(0,e.Z)({},Ve,{className:"".concat(Ne,"-input"),ref:Ee,onChange:M,disabled:h,checked:!!S,type:Y})),F.createElement("span",{className:"".concat(Ne,"-inner")}))});Ge.Z=X},96478:function(Yt,Ge,t){t.d(Ge,{Z:function(){return ee}});var e=t(54476),m=t(20068),p=t(42978),Q=t(75931),N=t(65030),P=t(92310),g=t.n(P),D=t(8654),F=t(59301),n=t(10228),X=t(16089),w=n.Z.ESC,I=n.Z.TAB;function xe(_){var Ve=_.visible,Ee=_.triggerRef,ae=_.onVisibleChange,ge=_.autoFocus,re=_.overlayRef,S=F.useRef(!1),i=function(){if(Ve){var c,T;(c=Ee.current)===null||c===void 0||(T=c.focus)===null||T===void 0||T.call(c),ae==null||ae(!1)}},le=function(){var c;return(c=re.current)!==null&&c!==void 0&&c.focus?(re.current.focus(),S.current=!0,!0):!1},M=function(c){switch(c.keyCode){case w:i();break;case I:{var T=!1;S.current||(T=le()),T?c.preventDefault():i();break}}};F.useEffect(function(){return Ve?(window.addEventListener("keydown",M),ge&&(0,X.Z)(le,3),function(){window.removeEventListener("keydown",M),S.current=!1}):function(){S.current=!1}},[Ve])}var Ne=(0,F.forwardRef)(function(_,Ve){var Ee=_.overlay,ae=_.arrow,ge=_.prefixCls,re=(0,F.useMemo)(function(){var i;return typeof Ee=="function"?i=Ee():i=Ee,i},[Ee]),S=(0,D.sQ)(Ve,(0,D.C4)(re));return F.createElement(F.Fragment,null,ae&&F.createElement("div",{className:"".concat(ge,"-arrow")}),F.cloneElement(re,{ref:(0,D.Yr)(re)?S:void 0}))}),pe=Ne,se={adjustX:1,adjustY:1},Se=[0,0],h={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-4],targetOffset:Se},top:{points:["bc","tc"],overflow:se,offset:[0,-4],targetOffset:Se},topRight:{points:["br","tr"],overflow:se,offset:[0,-4],targetOffset:Se},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,4],targetOffset:Se},bottom:{points:["tc","bc"],overflow:se,offset:[0,4],targetOffset:Se},bottomRight:{points:["tr","br"],overflow:se,offset:[0,4],targetOffset:Se}},fe=h,s=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function d(_,Ve){var Ee,ae=_.arrow,ge=ae===void 0?!1:ae,re=_.prefixCls,S=re===void 0?"rc-dropdown":re,i=_.transitionName,le=_.animation,M=_.align,U=_.placement,c=U===void 0?"bottomLeft":U,T=_.placements,ne=T===void 0?fe:T,q=_.getPopupContainer,me=_.showAction,et=_.hideAction,W=_.overlayClassName,we=_.overlayStyle,he=_.visible,Xe=_.trigger,B=Xe===void 0?["hover"]:Xe,Oe=_.autoFocus,ye=_.overlay,ct=_.children,Le=_.onVisibleChange,oe=(0,Q.Z)(_,s),Z=F.useState(),H=(0,p.Z)(Z,2),f=H[0],ce=H[1],A="visible"in _?he:f,r=F.useRef(null),u=F.useRef(null),V=F.useRef(null);F.useImperativeHandle(Ve,function(){return r.current});var K=function(Ie){ce(Ie),Le==null||Le(Ie)};xe({visible:A,triggerRef:V,onVisibleChange:K,autoFocus:Oe,overlayRef:u});var y=function(Ie){var Be=_.onOverlayClick;ce(!1),Be&&Be(Ie)},z=function(){return F.createElement(pe,{ref:u,overlay:ye,prefixCls:S,arrow:ge})},L=function(){return typeof ye=="function"?z:z()},J=function(){var Ie=_.minOverlayWidthMatchTrigger,Be=_.alignPoint;return"minOverlayWidthMatchTrigger"in _?Ie:!Be},l=function(){var Ie=_.openClassName;return Ie!==void 0?Ie:"".concat(S,"-open")},v=F.cloneElement(ct,{className:g()((Ee=ct.props)===null||Ee===void 0?void 0:Ee.className,A&&l()),ref:(0,D.Yr)(ct)?(0,D.sQ)(V,(0,D.C4)(ct)):void 0}),Me=et;return!Me&&B.indexOf("contextMenu")!==-1&&(Me=["click"]),F.createElement(N.Z,(0,e.Z)({builtinPlacements:ne},oe,{prefixCls:S,ref:r,popupClassName:g()(W,(0,m.Z)({},"".concat(S,"-show-arrow"),ge)),popupStyle:we,action:B,showAction:me,hideAction:Me,popupPlacement:c,popupAlign:M,popupTransitionName:i,popupAnimation:le,popupVisible:A,stretch:J()?"minWidth":"",popup:L(),onPopupVisibleChange:K,onPopupClick:y,getPopupContainer:q}),v)}var Y=F.forwardRef(d),ee=Y},66003:function(Yt,Ge,t){t.d(Ge,{Z:function(){return g}});var e=t(75931),m=t(33885),p=t(76190),Q=t(59301),N=["show"];function P(D,F){if(!F.max)return!0;var n=F.strategy(D);return n<=F.max}function g(D,F){return Q.useMemo(function(){var n={};F&&(n.show=(0,p.Z)(F)==="object"&&F.formatter?F.formatter:!!F),n=(0,m.Z)((0,m.Z)({},n),D);var X=n,w=X.show,I=(0,e.Z)(X,N);return(0,m.Z)((0,m.Z)({},I),{},{show:!!w,showFormatter:typeof w=="function"?w:void 0,strategy:I.strategy||function(xe){return xe.length}})},[D,F])}},36901:function(Yt,Ge,t){t.r(Ge),t.d(Ge,{BaseInput:function(){return n},default:function(){return fe}});var e=t(33885),m=t(54476),p=t(20068),Q=t(76190),N=t(92310),P=t.n(N),g=t(59301),D=t(30292),F=g.forwardRef(function(s,d){var Y,ee,_,Ve=s.inputElement,Ee=s.children,ae=s.prefixCls,ge=s.prefix,re=s.suffix,S=s.addonBefore,i=s.addonAfter,le=s.className,M=s.style,U=s.disabled,c=s.readOnly,T=s.focused,ne=s.triggerFocus,q=s.allowClear,me=s.value,et=s.handleReset,W=s.hidden,we=s.classes,he=s.classNames,Xe=s.dataAttrs,B=s.styles,Oe=s.components,ye=s.onClear,ct=Ee!=null?Ee:Ve,Le=(Oe==null?void 0:Oe.affixWrapper)||"span",oe=(Oe==null?void 0:Oe.groupWrapper)||"span",Z=(Oe==null?void 0:Oe.wrapper)||"span",H=(Oe==null?void 0:Oe.groupAddon)||"span",f=(0,g.useRef)(null),ce=function(Ue){var je;(je=f.current)!==null&&je!==void 0&&je.contains(Ue.target)&&(ne==null||ne())},A=(0,D.X3)(s),r=(0,g.cloneElement)(ct,{value:me,className:P()((Y=ct.props)===null||Y===void 0?void 0:Y.className,!A&&(he==null?void 0:he.variant))||null}),u=(0,g.useRef)(null);if(g.useImperativeHandle(d,function(){return{nativeElement:u.current||f.current}}),A){var V=null;if(q){var K=!U&&!c&&me,y="".concat(ae,"-clear-icon"),z=(0,Q.Z)(q)==="object"&&q!==null&&q!==void 0&&q.clearIcon?q.clearIcon:"\u2716";V=g.createElement("button",{type:"button",tabIndex:-1,onClick:function(Ue){et==null||et(Ue),ye==null||ye()},onMouseDown:function(Ue){return Ue.preventDefault()},className:P()(y,(0,p.Z)((0,p.Z)({},"".concat(y,"-hidden"),!K),"".concat(y,"-has-suffix"),!!re))},z)}var L="".concat(ae,"-affix-wrapper"),J=P()(L,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(ae,"-disabled"),U),"".concat(L,"-disabled"),U),"".concat(L,"-focused"),T),"".concat(L,"-readonly"),c),"".concat(L,"-input-with-clear-btn"),re&&q&&me),we==null?void 0:we.affixWrapper,he==null?void 0:he.affixWrapper,he==null?void 0:he.variant),l=(re||q)&&g.createElement("span",{className:P()("".concat(ae,"-suffix"),he==null?void 0:he.suffix),style:B==null?void 0:B.suffix},V,re);r=g.createElement(Le,(0,m.Z)({className:J,style:B==null?void 0:B.affixWrapper,onClick:ce},Xe==null?void 0:Xe.affixWrapper,{ref:f}),ge&&g.createElement("span",{className:P()("".concat(ae,"-prefix"),he==null?void 0:he.prefix),style:B==null?void 0:B.prefix},ge),r,l)}if((0,D.He)(s)){var v="".concat(ae,"-group"),Me="".concat(v,"-addon"),de="".concat(v,"-wrapper"),Ie=P()("".concat(ae,"-wrapper"),v,we==null?void 0:we.wrapper,he==null?void 0:he.wrapper),Be=P()(de,(0,p.Z)({},"".concat(de,"-disabled"),U),we==null?void 0:we.group,he==null?void 0:he.groupWrapper);r=g.createElement(oe,{className:Be,ref:u},g.createElement(Z,{className:Ie},S&&g.createElement(H,{className:Me},S),r,i&&g.createElement(H,{className:Me},i)))}return g.cloneElement(r,{className:P()((ee=r.props)===null||ee===void 0?void 0:ee.className,le)||null,style:(0,e.Z)((0,e.Z)({},(_=r.props)===null||_===void 0?void 0:_.style),M),hidden:W})}),n=F,X=t(94480),w=t(42978),I=t(75931),xe=t(18929),Ne=t(2738),pe=t(66003),se=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Se=(0,g.forwardRef)(function(s,d){var Y=s.autoComplete,ee=s.onChange,_=s.onFocus,Ve=s.onBlur,Ee=s.onPressEnter,ae=s.onKeyDown,ge=s.onKeyUp,re=s.prefixCls,S=re===void 0?"rc-input":re,i=s.disabled,le=s.htmlSize,M=s.className,U=s.maxLength,c=s.suffix,T=s.showCount,ne=s.count,q=s.type,me=q===void 0?"text":q,et=s.classes,W=s.classNames,we=s.styles,he=s.onCompositionStart,Xe=s.onCompositionEnd,B=(0,I.Z)(s,se),Oe=(0,g.useState)(!1),ye=(0,w.Z)(Oe,2),ct=ye[0],Le=ye[1],oe=(0,g.useRef)(!1),Z=(0,g.useRef)(!1),H=(0,g.useRef)(null),f=(0,g.useRef)(null),ce=function(ve){H.current&&(0,D.nH)(H.current,ve)},A=(0,xe.Z)(s.defaultValue,{value:s.value}),r=(0,w.Z)(A,2),u=r[0],V=r[1],K=u==null?"":String(u),y=(0,g.useState)(null),z=(0,w.Z)(y,2),L=z[0],J=z[1],l=(0,pe.Z)(ne,T),v=l.max||U,Me=l.strategy(K),de=!!v&&Me>v;(0,g.useImperativeHandle)(d,function(){var G;return{focus:ce,blur:function(){var ze;(ze=H.current)===null||ze===void 0||ze.blur()},setSelectionRange:function(ze,Ke,ut){var pt;(pt=H.current)===null||pt===void 0||pt.setSelectionRange(ze,Ke,ut)},select:function(){var ze;(ze=H.current)===null||ze===void 0||ze.select()},input:H.current,nativeElement:((G=f.current)===null||G===void 0?void 0:G.nativeElement)||H.current}}),(0,g.useEffect)(function(){Z.current&&(Z.current=!1),Le(function(G){return G&&i?!1:G})},[i]);var Ie=function(ve,ze,Ke){var ut=ze;if(!oe.current&&l.exceedFormatter&&l.max&&l.strategy(ze)>l.max){if(ut=l.exceedFormatter(ze,{max:l.max}),ze!==ut){var pt,tt;J([((pt=H.current)===null||pt===void 0?void 0:pt.selectionStart)||0,((tt=H.current)===null||tt===void 0?void 0:tt.selectionEnd)||0])}}else if(Ke.source==="compositionEnd")return;V(ut),H.current&&(0,D.rJ)(H.current,ve,ee,ut)};(0,g.useEffect)(function(){if(L){var G;(G=H.current)===null||G===void 0||G.setSelectionRange.apply(G,(0,X.Z)(L))}},[L]);var Be=function(ve){Ie(ve,ve.target.value,{source:"change"})},Te=function(ve){oe.current=!1,Ie(ve,ve.currentTarget.value,{source:"compositionEnd"}),Xe==null||Xe(ve)},Ue=function(ve){Ee&&ve.key==="Enter"&&!Z.current&&(Z.current=!0,Ee(ve)),ae==null||ae(ve)},je=function(ve){ve.key==="Enter"&&(Z.current=!1),ge==null||ge(ve)},x=function(ve){Le(!0),_==null||_(ve)},te=function(ve){Z.current&&(Z.current=!1),Le(!1),Ve==null||Ve(ve)},Ce=function(ve){V(""),ce(),H.current&&(0,D.rJ)(H.current,ve,ee)},De=de&&"".concat(S,"-out-of-range"),C=function(){var ve=(0,Ne.Z)(s,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return g.createElement("input",(0,m.Z)({autoComplete:Y},ve,{onChange:Be,onFocus:x,onBlur:te,onKeyDown:Ue,onKeyUp:je,className:P()(S,(0,p.Z)({},"".concat(S,"-disabled"),i),W==null?void 0:W.input),style:we==null?void 0:we.input,ref:H,size:le,type:me,onCompositionStart:function(Ke){oe.current=!0,he==null||he(Ke)},onCompositionEnd:Te}))},k=function(){var ve=Number(v)>0;if(c||l.show){var ze=l.showFormatter?l.showFormatter({value:K,count:Me,maxLength:v}):"".concat(Me).concat(ve?" / ".concat(v):"");return g.createElement(g.Fragment,null,l.show&&g.createElement("span",{className:P()("".concat(S,"-show-count-suffix"),(0,p.Z)({},"".concat(S,"-show-count-has-suffix"),!!c),W==null?void 0:W.count),style:(0,e.Z)({},we==null?void 0:we.count)},ze),c)}return null};return g.createElement(n,(0,m.Z)({},B,{prefixCls:S,className:P()(M,De),handleReset:Ce,value:K,focused:ct,triggerFocus:ce,suffix:k(),disabled:i,classes:et,classNames:W,styles:we}),C())}),h=Se,fe=h},30292:function(Yt,Ge,t){t.d(Ge,{He:function(){return e},X3:function(){return m},nH:function(){return N},rJ:function(){return Q}});function e(P){return!!(P.addonBefore||P.addonAfter)}function m(P){return!!(P.prefix||P.suffix||P.allowClear)}function p(P,g,D){var F=g.cloneNode(!0),n=Object.create(P,{target:{value:F},currentTarget:{value:F}});return F.value=D,typeof g.selectionStart=="number"&&typeof g.selectionEnd=="number"&&(F.selectionStart=g.selectionStart,F.selectionEnd=g.selectionEnd),F.setSelectionRange=function(){g.setSelectionRange.apply(g,arguments)},n}function Q(P,g,D,F){if(D){var n=g;if(g.type==="click"){n=p(g,P,""),D(n);return}if(P.type!=="file"&&F!==void 0){n=p(g,P,F),D(n);return}D(n)}}function N(P,g){if(P){P.focus(g);var D=g||{},F=D.cursor;if(F){var n=P.value.length;switch(F){case"start":P.setSelectionRange(0,0);break;case"end":P.setSelectionRange(n,n);break;default:P.setSelectionRange(0,n)}}}}},28321:function(Yt,Ge,t){t.d(Ge,{iz:function(){return R},ck:function(){return ut},BW:function(){return Ae},sN:function(){return ut},Wd:function(){return O},ZP:function(){return Rt},Xl:function(){return Ee}});var e=t(54476),m=t(20068),p=t(33885),Q=t(94480),N=t(42978),P=t(75931),g=t(92310),D=t.n(g),F=t(83836),n=t(18929),X=t(13697),w=t(48736),I=t(59301),xe=t(4676),Ne=I.createContext(null);function pe(ue,Re){return ue===void 0?null:"".concat(ue,"-").concat(Re)}function se(ue){var Re=I.useContext(Ne);return pe(Re,ue)}var Se=t(80547),h=["children","locked"],fe=I.createContext(null);function s(ue,Re){var Ze=(0,p.Z)({},ue);return Object.keys(Re).forEach(function(Ye){var _e=Re[Ye];_e!==void 0&&(Ze[Ye]=_e)}),Ze}function d(ue){var Re=ue.children,Ze=ue.locked,Ye=(0,P.Z)(ue,h),_e=I.useContext(fe),nt=(0,Se.Z)(function(){return s(_e,Ye)},[_e,Ye],function(ft,Ot){return!Ze&&(ft[0]!==Ot[0]||!(0,X.Z)(ft[1],Ot[1],!0))});return I.createElement(fe.Provider,{value:nt},Re)}var Y=[],ee=I.createContext(null);function _(){return I.useContext(ee)}var Ve=I.createContext(Y);function Ee(ue){var Re=I.useContext(Ve);return I.useMemo(function(){return ue!==void 0?[].concat((0,Q.Z)(Re),[ue]):Re},[Re,ue])}var ae=I.createContext(null),ge=I.createContext({}),re=ge,S=t(29194);function i(ue){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,S.Z)(ue)){var Ze=ue.nodeName.toLowerCase(),Ye=["input","select","textarea","button"].includes(Ze)||ue.isContentEditable||Ze==="a"&&!!ue.getAttribute("href"),_e=ue.getAttribute("tabindex"),nt=Number(_e),ft=null;return _e&&!Number.isNaN(nt)?ft=nt:Ye&&ft===null&&(ft=0),Ye&&ue.disabled&&(ft=null),ft!==null&&(ft>=0||Re&&ft<0)}return!1}function le(ue){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=(0,Q.Z)(ue.querySelectorAll("*")).filter(function(Ye){return i(Ye,Re)});return i(ue,Re)&&Ze.unshift(ue),Ze}var M=null;function U(){M=document.activeElement}function c(){M=null}function T(){if(M)try{M.focus()}catch(ue){}}function ne(ue,Re){if(Re.keyCode===9){var Ze=le(ue),Ye=Ze[Re.shiftKey?0:Ze.length-1],_e=Ye===document.activeElement||ue===document.activeElement;if(_e){var nt=Ze[Re.shiftKey?Ze.length-1:0];nt.focus(),Re.preventDefault()}}}var q=t(10228),me=t(16089),et=q.Z.LEFT,W=q.Z.RIGHT,we=q.Z.UP,he=q.Z.DOWN,Xe=q.Z.ENTER,B=q.Z.ESC,Oe=q.Z.HOME,ye=q.Z.END,ct=[we,he,et,W];function Le(ue,Re,Ze,Ye){var _e,nt="prev",ft="next",Ot="children",Dt="parent";if(ue==="inline"&&Ye===Xe)return{inlineTrigger:!0};var Ft=(0,m.Z)((0,m.Z)({},we,nt),he,ft),Xt=(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},et,Ze?ft:nt),W,Ze?nt:ft),he,Ot),Xe,Ot),Tt=(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},we,nt),he,ft),Xe,Ot),B,Dt),et,Ze?Ot:Dt),W,Ze?Dt:Ot),Zt={inline:Ft,horizontal:Xt,vertical:Tt,inlineSub:Ft,horizontalSub:Tt,verticalSub:Tt},jt=(_e=Zt["".concat(ue).concat(Re?"":"Sub")])===null||_e===void 0?void 0:_e[Ye];switch(jt){case nt:return{offset:-1,sibling:!0};case ft:return{offset:1,sibling:!0};case Dt:return{offset:-1,sibling:!1};case Ot:return{offset:1,sibling:!1};default:return null}}function oe(ue){for(var Re=ue;Re;){if(Re.getAttribute("data-menu-list"))return Re;Re=Re.parentElement}return null}function Z(ue,Re){for(var Ze=ue||document.activeElement;Ze;){if(Re.has(Ze))return Ze;Ze=Ze.parentElement}return null}function H(ue,Re){var Ze=le(ue,!0);return Ze.filter(function(Ye){return Re.has(Ye)})}function f(ue,Re,Ze){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ue)return null;var _e=H(ue,Re),nt=_e.length,ft=_e.findIndex(function(Ot){return Ze===Ot});return Ye<0?ft===-1?ft=nt-1:ft-=1:Ye>0&&(ft+=1),ft=(ft+nt)%nt,_e[ft]}var ce=function(Re,Ze){var Ye=new Set,_e=new Map,nt=new Map;return Re.forEach(function(ft){var Ot=document.querySelector("[data-menu-id='".concat(pe(Ze,ft),"']"));Ot&&(Ye.add(Ot),nt.set(Ot,ft),_e.set(ft,Ot))}),{elements:Ye,key2element:_e,element2key:nt}};function A(ue,Re,Ze,Ye,_e,nt,ft,Ot,Dt,Ft){var Xt=I.useRef(),Tt=I.useRef();Tt.current=Re;var Zt=function(){me.Z.cancel(Xt.current)};return I.useEffect(function(){return function(){Zt()}},[]),function(jt){var Qt=jt.which;if([].concat(ct,[Xe,B,Oe,ye]).includes(Qt)){var an=nt(),$t=ce(an,Ye),Vt=$t,En=Vt.elements,un=Vt.key2element,sn=Vt.element2key,bn=un.get(Re),Wt=Z(bn,En),Jt=sn.get(Wt),Pn=Le(ue,ft(Jt,!0).length===1,Ze,Qt);if(!Pn&&Qt!==Oe&&Qt!==ye)return;(ct.includes(Qt)||[Oe,ye].includes(Qt))&&jt.preventDefault();var Dn=function(Lt){if(Lt){var yt=Lt,Et=Lt.querySelector("a");Et!=null&&Et.getAttribute("href")&&(yt=Et);var It=sn.get(Lt);Ot(It),Zt(),Xt.current=(0,me.Z)(function(){Tt.current===It&&yt.focus()})}};if([Oe,ye].includes(Qt)||Pn.sibling||!Wt){var Un;!Wt||ue==="inline"?Un=_e.current:Un=oe(Wt);var Mn,Vn=H(Un,En);Qt===Oe?Mn=Vn[0]:Qt===ye?Mn=Vn[Vn.length-1]:Mn=f(Un,En,Wt,Pn.offset),Dn(Mn)}else if(Pn.inlineTrigger)Dt(Jt);else if(Pn.offset>0)Dt(Jt,!0),Zt(),Xt.current=(0,me.Z)(function(){$t=ce(an,Ye);var qn=Wt.getAttribute("aria-controls"),Lt=document.getElementById(qn),yt=f(Lt,$t.elements);Dn(yt)},5);else if(Pn.offset<0){var Jn=ft(Jt,!0),rr=Jn[Jn.length-2],ar=un.get(rr);Dt(rr,!1),Dn(ar)}}Ft==null||Ft(jt)}}function r(ue){Promise.resolve().then(ue)}var u="__RC_UTIL_PATH_SPLIT__",V=function(Re){return Re.join(u)},K=function(Re){return Re.split(u)},y="rc-menu-more";function z(){var ue=I.useState({}),Re=(0,N.Z)(ue,2),Ze=Re[1],Ye=(0,I.useRef)(new Map),_e=(0,I.useRef)(new Map),nt=I.useState([]),ft=(0,N.Z)(nt,2),Ot=ft[0],Dt=ft[1],Ft=(0,I.useRef)(0),Xt=(0,I.useRef)(!1),Tt=function(){Xt.current||Ze({})},Zt=(0,I.useCallback)(function(un,sn){var bn=V(sn);_e.current.set(bn,un),Ye.current.set(un,bn),Ft.current+=1;var Wt=Ft.current;r(function(){Wt===Ft.current&&Tt()})},[]),jt=(0,I.useCallback)(function(un,sn){var bn=V(sn);_e.current.delete(bn),Ye.current.delete(un)},[]),Qt=(0,I.useCallback)(function(un){Dt(un)},[]),an=(0,I.useCallback)(function(un,sn){var bn=Ye.current.get(un)||"",Wt=K(bn);return sn&&Ot.includes(Wt[0])&&Wt.unshift(y),Wt},[Ot]),$t=(0,I.useCallback)(function(un,sn){return un.filter(function(bn){return bn!==void 0}).some(function(bn){var Wt=an(bn,!0);return Wt.includes(sn)})},[an]),Vt=function(){var sn=(0,Q.Z)(Ye.current.keys());return Ot.length&&sn.push(y),sn},En=(0,I.useCallback)(function(un){var sn="".concat(Ye.current.get(un)).concat(u),bn=new Set;return(0,Q.Z)(_e.current.keys()).forEach(function(Wt){Wt.startsWith(sn)&&bn.add(_e.current.get(Wt))}),bn},[]);return I.useEffect(function(){return function(){Xt.current=!0}},[]),{registerPath:Zt,unregisterPath:jt,refreshOverflowKeys:Qt,isSubPathKey:$t,getKeyPath:an,getKeys:Vt,getSubPathKeys:En}}function L(ue){var Re=I.useRef(ue);Re.current=ue;var Ze=I.useCallback(function(){for(var Ye,_e=arguments.length,nt=new Array(_e),ft=0;ft<_e;ft++)nt[ft]=arguments[ft];return(Ye=Re.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Re].concat(nt))},[]);return ue?Ze:void 0}var J=Math.random().toFixed(5).toString().slice(2),l=0;function v(ue){var Re=(0,n.Z)(ue,{value:ue}),Ze=(0,N.Z)(Re,2),Ye=Ze[0],_e=Ze[1];return I.useEffect(function(){l+=1;var nt="".concat(J,"-").concat(l);_e("rc-menu-uuid-".concat(nt))},[]),Ye}var Me=t(67732),de=t(83652),Ie=t(42403),Be=t(158),Te=t(2738),Ue=t(8654);function je(ue,Re,Ze,Ye){var _e=I.useContext(fe),nt=_e.activeKey,ft=_e.onActive,Ot=_e.onInactive,Dt={active:nt===ue};return Re||(Dt.onMouseEnter=function(Ft){Ze==null||Ze({key:ue,domEvent:Ft}),ft(ue)},Dt.onMouseLeave=function(Ft){Ye==null||Ye({key:ue,domEvent:Ft}),Ot(ue)}),Dt}function x(ue){var Re=I.useContext(fe),Ze=Re.mode,Ye=Re.rtl,_e=Re.inlineIndent;if(Ze!=="inline")return null;var nt=ue;return Ye?{paddingRight:nt*_e}:{paddingLeft:nt*_e}}function te(ue){var Re=ue.icon,Ze=ue.props,Ye=ue.children,_e;return Re===null||Re===!1?null:(typeof Re=="function"?_e=I.createElement(Re,(0,p.Z)({},Ze)):typeof Re!="boolean"&&(_e=Re),_e||Ye||null)}var Ce=["item"];function De(ue){var Re=ue.item,Ze=(0,P.Z)(ue,Ce);return Object.defineProperty(Ze,"item",{get:function(){return(0,w.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Re}}),Ze}var C=["title","attribute","elementRef"],k=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],G=["active"],ve=function(ue){(0,Ie.Z)(Ze,ue);var Re=(0,Be.Z)(Ze);function Ze(){return(0,Me.Z)(this,Ze),Re.apply(this,arguments)}return(0,de.Z)(Ze,[{key:"render",value:function(){var _e=this.props,nt=_e.title,ft=_e.attribute,Ot=_e.elementRef,Dt=(0,P.Z)(_e,C),Ft=(0,Te.Z)(Dt,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,w.ZP)(!ft,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),I.createElement(F.Z.Item,(0,e.Z)({},ft,{title:typeof nt=="string"?nt:void 0},Ft,{ref:Ot}))}}]),Ze}(I.Component),ze=I.forwardRef(function(ue,Re){var Ze=ue.style,Ye=ue.className,_e=ue.eventKey,nt=ue.warnKey,ft=ue.disabled,Ot=ue.itemIcon,Dt=ue.children,Ft=ue.role,Xt=ue.onMouseEnter,Tt=ue.onMouseLeave,Zt=ue.onClick,jt=ue.onKeyDown,Qt=ue.onFocus,an=(0,P.Z)(ue,k),$t=se(_e),Vt=I.useContext(fe),En=Vt.prefixCls,un=Vt.onItemClick,sn=Vt.disabled,bn=Vt.overflowDisabled,Wt=Vt.itemIcon,Jt=Vt.selectedKeys,Pn=Vt.onActive,Dn=I.useContext(re),Un=Dn._internalRenderMenuItem,Mn="".concat(En,"-item"),Vn=I.useRef(),Jn=I.useRef(),rr=sn||ft,ar=(0,Ue.x1)(Re,Jn),qn=Ee(_e),Lt=function(er){return{key:_e,keyPath:(0,Q.Z)(qn).reverse(),item:Vn.current,domEvent:er}},yt=Ot||Wt,Et=je(_e,rr,Xt,Tt),It=Et.active,wt=(0,P.Z)(Et,G),kt=Jt.includes(_e),nn=x(qn.length),Tn=function(er){if(!rr){var xr=Lt(er);Zt==null||Zt(De(xr)),un(xr)}},Rn=function(er){if(jt==null||jt(er),er.which===q.Z.ENTER){var xr=Lt(er);Zt==null||Zt(De(xr)),un(xr)}},kn=function(er){Pn(_e),Qt==null||Qt(er)},Cr={};ue.role==="option"&&(Cr["aria-selected"]=kt);var Sr=I.createElement(ve,(0,e.Z)({ref:Vn,elementRef:ar,role:Ft===null?"none":Ft||"menuitem",tabIndex:ft?null:-1,"data-menu-id":bn&&$t?null:$t},(0,Te.Z)(an,["extra"]),wt,Cr,{component:"li","aria-disabled":ft,style:(0,p.Z)((0,p.Z)({},nn),Ze),className:D()(Mn,(0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(Mn,"-active"),It),"".concat(Mn,"-selected"),kt),"".concat(Mn,"-disabled"),rr),Ye),onClick:Tn,onKeyDown:Rn,onFocus:kn}),Dt,I.createElement(te,{props:(0,p.Z)((0,p.Z)({},ue),{},{isSelected:kt}),icon:yt}));return Un&&(Sr=Un(Sr,ue,{selected:kt})),Sr});function Ke(ue,Re){var Ze=ue.eventKey,Ye=_(),_e=Ee(Ze);return I.useEffect(function(){if(Ye)return Ye.registerPath(Ze,_e),function(){Ye.unregisterPath(Ze,_e)}},[_e]),Ye?null:I.createElement(ze,(0,e.Z)({},ue,{ref:Re}))}var ut=I.forwardRef(Ke),pt=["className","children"],tt=function(Re,Ze){var Ye=Re.className,_e=Re.children,nt=(0,P.Z)(Re,pt),ft=I.useContext(fe),Ot=ft.prefixCls,Dt=ft.mode,Ft=ft.rtl;return I.createElement("ul",(0,e.Z)({className:D()(Ot,Ft&&"".concat(Ot,"-rtl"),"".concat(Ot,"-sub"),"".concat(Ot,"-").concat(Dt==="inline"?"inline":"vertical"),Ye),role:"menu"},nt,{"data-menu-list":!0,ref:Ze}),_e)},mt=I.forwardRef(tt);mt.displayName="SubMenuList";var ke=mt,rt=t(11592);function ot(ue,Re){return(0,rt.Z)(ue).map(function(Ze,Ye){if(I.isValidElement(Ze)){var _e,nt,ft=Ze.key,Ot=(_e=(nt=Ze.props)===null||nt===void 0?void 0:nt.eventKey)!==null&&_e!==void 0?_e:ft,Dt=Ot==null;Dt&&(Ot="tmp_key-".concat([].concat((0,Q.Z)(Re),[Ye]).join("-")));var Ft={key:Ot,eventKey:Ot};return I.cloneElement(Ze,Ft)}return Ze})}var xt=t(65030),gt={adjustX:1,adjustY:1},Pt={topLeft:{points:["bl","tl"],overflow:gt},topRight:{points:["br","tr"],overflow:gt},bottomLeft:{points:["tl","bl"],overflow:gt},bottomRight:{points:["tr","br"],overflow:gt},leftTop:{points:["tr","tl"],overflow:gt},leftBottom:{points:["br","bl"],overflow:gt},rightTop:{points:["tl","tr"],overflow:gt},rightBottom:{points:["bl","br"],overflow:gt}},Mt={topLeft:{points:["bl","tl"],overflow:gt},topRight:{points:["br","tr"],overflow:gt},bottomLeft:{points:["tl","bl"],overflow:gt},bottomRight:{points:["tr","br"],overflow:gt},rightTop:{points:["tr","tl"],overflow:gt},rightBottom:{points:["br","bl"],overflow:gt},leftTop:{points:["tl","tr"],overflow:gt},leftBottom:{points:["bl","br"],overflow:gt}},Gt=null;function rn(ue,Re,Ze){if(Re)return Re;if(Ze)return Ze[ue]||Ze.other}var Ht={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function At(ue){var Re=ue.prefixCls,Ze=ue.visible,Ye=ue.children,_e=ue.popup,nt=ue.popupStyle,ft=ue.popupClassName,Ot=ue.popupOffset,Dt=ue.disabled,Ft=ue.mode,Xt=ue.onVisibleChange,Tt=I.useContext(fe),Zt=Tt.getPopupContainer,jt=Tt.rtl,Qt=Tt.subMenuOpenDelay,an=Tt.subMenuCloseDelay,$t=Tt.builtinPlacements,Vt=Tt.triggerSubMenuAction,En=Tt.forceSubMenuRender,un=Tt.rootClassName,sn=Tt.motion,bn=Tt.defaultMotions,Wt=I.useState(!1),Jt=(0,N.Z)(Wt,2),Pn=Jt[0],Dn=Jt[1],Un=jt?(0,p.Z)((0,p.Z)({},Mt),$t):(0,p.Z)((0,p.Z)({},Pt),$t),Mn=Ht[Ft],Vn=rn(Ft,sn,bn),Jn=I.useRef(Vn);Ft!=="inline"&&(Jn.current=Vn);var rr=(0,p.Z)((0,p.Z)({},Jn.current),{},{leavedClassName:"".concat(Re,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ar=I.useRef();return I.useEffect(function(){return ar.current=(0,me.Z)(function(){Dn(Ze)}),function(){me.Z.cancel(ar.current)}},[Ze]),I.createElement(xt.Z,{prefixCls:Re,popupClassName:D()("".concat(Re,"-popup"),(0,m.Z)({},"".concat(Re,"-rtl"),jt),ft,un),stretch:Ft==="horizontal"?"minWidth":null,getPopupContainer:Zt,builtinPlacements:Un,popupPlacement:Mn,popupVisible:Pn,popup:_e,popupStyle:nt,popupAlign:Ot&&{offset:Ot},action:Dt?[]:[Vt],mouseEnterDelay:Qt,mouseLeaveDelay:an,onPopupVisibleChange:Xt,forceRender:En,popupMotion:rr,fresh:!0},Ye)}var vn=t(77900);function Bt(ue){var Re=ue.id,Ze=ue.open,Ye=ue.keyPath,_e=ue.children,nt="inline",ft=I.useContext(fe),Ot=ft.prefixCls,Dt=ft.forceSubMenuRender,Ft=ft.motion,Xt=ft.defaultMotions,Tt=ft.mode,Zt=I.useRef(!1);Zt.current=Tt===nt;var jt=I.useState(!Zt.current),Qt=(0,N.Z)(jt,2),an=Qt[0],$t=Qt[1],Vt=Zt.current?Ze:!1;I.useEffect(function(){Zt.current&&$t(!1)},[Tt]);var En=(0,p.Z)({},rn(nt,Ft,Xt));Ye.length>1&&(En.motionAppear=!1);var un=En.onVisibleChanged;return En.onVisibleChanged=function(sn){return!Zt.current&&!sn&&$t(!0),un==null?void 0:un(sn)},an?null:I.createElement(d,{mode:nt,locked:!Zt.current},I.createElement(vn.default,(0,e.Z)({visible:Vt},En,{forceRender:Dt,removeOnLeave:!1,leavedClassName:"".concat(Ot,"-hidden")}),function(sn){var bn=sn.className,Wt=sn.style;return I.createElement(ke,{id:Re,className:bn,style:Wt},_e)}))}var mn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pn=["active"],en=I.forwardRef(function(ue,Re){var Ze=ue.style,Ye=ue.className,_e=ue.title,nt=ue.eventKey,ft=ue.warnKey,Ot=ue.disabled,Dt=ue.internalPopupClose,Ft=ue.children,Xt=ue.itemIcon,Tt=ue.expandIcon,Zt=ue.popupClassName,jt=ue.popupOffset,Qt=ue.popupStyle,an=ue.onClick,$t=ue.onMouseEnter,Vt=ue.onMouseLeave,En=ue.onTitleClick,un=ue.onTitleMouseEnter,sn=ue.onTitleMouseLeave,bn=(0,P.Z)(ue,mn),Wt=se(nt),Jt=I.useContext(fe),Pn=Jt.prefixCls,Dn=Jt.mode,Un=Jt.openKeys,Mn=Jt.disabled,Vn=Jt.overflowDisabled,Jn=Jt.activeKey,rr=Jt.selectedKeys,ar=Jt.itemIcon,qn=Jt.expandIcon,Lt=Jt.onItemClick,yt=Jt.onOpenChange,Et=Jt.onActive,It=I.useContext(re),wt=It._internalRenderSubMenuItem,kt=I.useContext(ae),nn=kt.isSubPathKey,Tn=Ee(),Rn="".concat(Pn,"-submenu"),kn=Mn||Ot,Cr=I.useRef(),Sr=I.useRef(),hr=Xt!=null?Xt:ar,er=Tt!=null?Tt:qn,xr=Un.includes(nt),Er=!Vn&&xr,Dr=nn(rr,nt),cr=je(nt,kn,un,sn),Ir=cr.active,ir=(0,P.Z)(cr,pn),Zr=I.useState(!1),kr=(0,N.Z)(Zr,2),jr=kr[0],Kr=kr[1],Gr=function(Hr){kn||Kr(Hr)},Zn=function(Hr){Gr(!0),$t==null||$t({key:nt,domEvent:Hr})},Yn=function(Hr){Gr(!1),Vt==null||Vt({key:nt,domEvent:Hr})},br=I.useMemo(function(){return Ir||(Dn!=="inline"?jr||nn([Jn],nt):!1)},[Dn,Ir,Jn,jr,nt,nn]),vr=x(Tn.length),xo=function(Hr){kn||(En==null||En({key:nt,domEvent:Hr}),Dn==="inline"&&yt(nt,!xr))},Lo=L(function(Lr){an==null||an(De(Lr)),Lt(Lr)}),vo=function(Hr){Dn!=="inline"&&yt(nt,Hr)},Eo=function(){Et(nt)},Bo=Wt&&"".concat(Wt,"-popup"),wo=I.useMemo(function(){return I.createElement(te,{icon:Dn!=="horizontal"?er:void 0,props:(0,p.Z)((0,p.Z)({},ue),{},{isOpen:Er,isSubMenu:!0})},I.createElement("i",{className:"".concat(Rn,"-arrow")}))},[Dn,er,ue,Er,Rn]),Xr=I.createElement("div",(0,e.Z)({role:"menuitem",style:vr,className:"".concat(Rn,"-title"),tabIndex:kn?null:-1,ref:Cr,title:typeof _e=="string"?_e:null,"data-menu-id":Vn&&Wt?null:Wt,"aria-expanded":Er,"aria-haspopup":!0,"aria-controls":Bo,"aria-disabled":kn,onClick:xo,onFocus:Eo},ir),_e,wo),co=I.useRef(Dn);if(Dn!=="inline"&&Tn.length>1?co.current="vertical":co.current=Dn,!Vn){var to=co.current;Xr=I.createElement(At,{mode:to,prefixCls:Rn,visible:!Dt&&Er&&Dn!=="inline",popupClassName:Zt,popupOffset:jt,popupStyle:Qt,popup:I.createElement(d,{mode:to==="horizontal"?"vertical":to},I.createElement(ke,{id:Bo,ref:Sr},Ft)),disabled:kn,onVisibleChange:vo},Xr)}var lr=I.createElement(F.Z.Item,(0,e.Z)({ref:Re,role:"none"},bn,{component:"li",style:Ze,className:D()(Rn,"".concat(Rn,"-").concat(Dn),Ye,(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(Rn,"-open"),Er),"".concat(Rn,"-active"),br),"".concat(Rn,"-selected"),Dr),"".concat(Rn,"-disabled"),kn)),onMouseEnter:Zn,onMouseLeave:Yn}),Xr,!Vn&&I.createElement(Bt,{id:Bo,open:Er,keyPath:Tn},Ft));return wt&&(lr=wt(lr,ue,{selected:Dr,active:br,open:Er,disabled:kn})),I.createElement(d,{onItemClick:Lo,mode:Dn==="horizontal"?"vertical":Dn,itemIcon:hr,expandIcon:er},lr)}),b=I.forwardRef(function(ue,Re){var Ze=ue.eventKey,Ye=ue.children,_e=Ee(Ze),nt=ot(Ye,_e),ft=_();I.useEffect(function(){if(ft)return ft.registerPath(Ze,_e),function(){ft.unregisterPath(Ze,_e)}},[_e]);var Ot;return ft?Ot=nt:Ot=I.createElement(en,(0,e.Z)({ref:Re},ue),nt),I.createElement(Ve.Provider,{value:_e},Ot)}),O=b,it=t(76190);function R(ue){var Re=ue.className,Ze=ue.style,Ye=I.useContext(fe),_e=Ye.prefixCls,nt=_();return nt?null:I.createElement("li",{role:"separator",className:D()("".concat(_e,"-item-divider"),Re),style:Ze})}var $=["className","title","eventKey","children"],He=I.forwardRef(function(ue,Re){var Ze=ue.className,Ye=ue.title,_e=ue.eventKey,nt=ue.children,ft=(0,P.Z)(ue,$),Ot=I.useContext(fe),Dt=Ot.prefixCls,Ft="".concat(Dt,"-item-group");return I.createElement("li",(0,e.Z)({ref:Re,role:"presentation"},ft,{onClick:function(Tt){return Tt.stopPropagation()},className:D()(Ft,Ze)}),I.createElement("div",{role:"presentation",className:"".concat(Ft,"-title"),title:typeof Ye=="string"?Ye:void 0},Ye),I.createElement("ul",{role:"group",className:"".concat(Ft,"-list")},nt))}),Pe=I.forwardRef(function(ue,Re){var Ze=ue.eventKey,Ye=ue.children,_e=Ee(Ze),nt=ot(Ye,_e),ft=_();return ft?nt:I.createElement(He,(0,e.Z)({ref:Re},(0,Te.Z)(ue,["warnKey"])),nt)}),Ae=Pe,qe=["label","children","key","type","extra"];function Fe(ue,Re,Ze){var Ye=Re.item,_e=Re.group,nt=Re.submenu,ft=Re.divider;return(ue||[]).map(function(Ot,Dt){if(Ot&&(0,it.Z)(Ot)==="object"){var Ft=Ot,Xt=Ft.label,Tt=Ft.children,Zt=Ft.key,jt=Ft.type,Qt=Ft.extra,an=(0,P.Z)(Ft,qe),$t=Zt!=null?Zt:"tmp-".concat(Dt);return Tt||jt==="group"?jt==="group"?I.createElement(_e,(0,e.Z)({key:$t},an,{title:Xt}),Fe(Tt,Re,Ze)):I.createElement(nt,(0,e.Z)({key:$t},an,{title:Xt}),Fe(Tt,Re,Ze)):jt==="divider"?I.createElement(ft,(0,e.Z)({key:$t},an)):I.createElement(Ye,(0,e.Z)({key:$t},an,{extra:Qt}),Xt,(!!Qt||Qt===0)&&I.createElement("span",{className:"".concat(Ze,"-item-extra")},Qt))}return null}).filter(function(Ot){return Ot})}function at(ue,Re,Ze,Ye,_e){var nt=ue,ft=(0,p.Z)({divider:R,item:ut,group:Ae,submenu:O},Ye);return Re&&(nt=Fe(Re,ft,_e)),ot(nt,Ze)}var Ct=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],bt=[],vt=I.forwardRef(function(ue,Re){var Ze,Ye=ue,_e=Ye.prefixCls,nt=_e===void 0?"rc-menu":_e,ft=Ye.rootClassName,Ot=Ye.style,Dt=Ye.className,Ft=Ye.tabIndex,Xt=Ft===void 0?0:Ft,Tt=Ye.items,Zt=Ye.children,jt=Ye.direction,Qt=Ye.id,an=Ye.mode,$t=an===void 0?"vertical":an,Vt=Ye.inlineCollapsed,En=Ye.disabled,un=Ye.disabledOverflow,sn=Ye.subMenuOpenDelay,bn=sn===void 0?.1:sn,Wt=Ye.subMenuCloseDelay,Jt=Wt===void 0?.1:Wt,Pn=Ye.forceSubMenuRender,Dn=Ye.defaultOpenKeys,Un=Ye.openKeys,Mn=Ye.activeKey,Vn=Ye.defaultActiveFirst,Jn=Ye.selectable,rr=Jn===void 0?!0:Jn,ar=Ye.multiple,qn=ar===void 0?!1:ar,Lt=Ye.defaultSelectedKeys,yt=Ye.selectedKeys,Et=Ye.onSelect,It=Ye.onDeselect,wt=Ye.inlineIndent,kt=wt===void 0?24:wt,nn=Ye.motion,Tn=Ye.defaultMotions,Rn=Ye.triggerSubMenuAction,kn=Rn===void 0?"hover":Rn,Cr=Ye.builtinPlacements,Sr=Ye.itemIcon,hr=Ye.expandIcon,er=Ye.overflowedIndicator,xr=er===void 0?"...":er,Er=Ye.overflowedIndicatorPopupClassName,Dr=Ye.getPopupContainer,cr=Ye.onClick,Ir=Ye.onOpenChange,ir=Ye.onKeyDown,Zr=Ye.openAnimation,kr=Ye.openTransitionName,jr=Ye._internalRenderMenuItem,Kr=Ye._internalRenderSubMenuItem,Gr=Ye._internalComponents,Zn=(0,P.Z)(Ye,Ct),Yn=I.useMemo(function(){return[at(Zt,Tt,bt,Gr,nt),at(Zt,Tt,bt,{},nt)]},[Zt,Tt,Gr]),br=(0,N.Z)(Yn,2),vr=br[0],xo=br[1],Lo=I.useState(!1),vo=(0,N.Z)(Lo,2),Eo=vo[0],Bo=vo[1],wo=I.useRef(),Xr=v(Qt),co=jt==="rtl",to=(0,n.Z)(Dn,{value:Un,postState:function(Wr){return Wr||bt}}),lr=(0,N.Z)(to,2),Lr=lr[0],Hr=lr[1],In=function(Wr){var Yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Go(){Hr(Wr),Ir==null||Ir(Wr)}Yr?(0,xe.flushSync)(Go):Go()},Hn=I.useState(Lr),On=(0,N.Z)(Hn,2),jn=On[0],fr=On[1],$r=I.useRef(!1),Oo=I.useMemo(function(){return($t==="inline"||$t==="vertical")&&Vt?["vertical",Vt]:[$t,!1]},[$t,Vt]),gn=(0,N.Z)(Oo,2),An=gn[0],tr=gn[1],wr=An==="inline",Pr=I.useState(An),To=(0,N.Z)(Pr,2),Io=To[0],Xo=To[1],sr=I.useState(tr),Xn=(0,N.Z)(sr,2),Vr=Xn[0],_r=Xn[1];I.useEffect(function(){Xo(An),_r(tr),$r.current&&(wr?Hr(jn):In(bt))},[An,tr]);var go=I.useState(0),No=(0,N.Z)(go,2),ko=No[0],Fo=No[1],aa=ko>=vr.length-1||Io!=="horizontal"||un;I.useEffect(function(){wr&&fr(Lr)},[Lr]),I.useEffect(function(){return $r.current=!0,function(){$r.current=!1}},[]);var Do=z(),ba=Do.registerPath,Pa=Do.unregisterPath,Sa=Do.refreshOverflowKeys,ta=Do.isSubPathKey,La=Do.getKeyPath,xa=Do.getKeys,Ma=Do.getSubPathKeys,Ra=I.useMemo(function(){return{registerPath:ba,unregisterPath:Pa}},[ba,Pa]),Xa=I.useMemo(function(){return{isSubPathKey:ta}},[ta]);I.useEffect(function(){Sa(aa?bt:vr.slice(ko+1).map(function(no){return no.key}))},[ko,aa]);var Fa=(0,n.Z)(Mn||Vn&&((Ze=vr[0])===null||Ze===void 0?void 0:Ze.key),{value:Mn}),ya=(0,N.Z)(Fa,2),ia=ya[0],pr=ya[1],ur=L(function(no){pr(no)}),Mo=L(function(){pr(void 0)});(0,I.useImperativeHandle)(Re,function(){return{list:wo.current,focus:function(Wr){var Yr,Go=xa(),Yo=ce(Go,Xr),Oa=Yo.elements,Ba=Yo.key2element,Ya=Yo.element2key,ja=H(wo.current,Oa),Ta=ia!=null?ia:ja[0]?Ya.get(ja[0]):(Yr=vr.find(function(Qa){return!Qa.props.disabled}))===null||Yr===void 0?void 0:Yr.key,Za=Ba.get(Ta);if(Ta&&Za){var Ka;Za==null||(Ka=Za.focus)===null||Ka===void 0||Ka.call(Za,Wr)}}}});var jo=(0,n.Z)(Lt||[],{value:yt,postState:function(Wr){return Array.isArray(Wr)?Wr:Wr==null?bt:[Wr]}}),uo=(0,N.Z)(jo,2),po=uo[0],ra=uo[1],na=function(Wr){if(rr){var Yr=Wr.key,Go=po.includes(Yr),Yo;qn?Go?Yo=po.filter(function(Ba){return Ba!==Yr}):Yo=[].concat((0,Q.Z)(po),[Yr]):Yo=[Yr],ra(Yo);var Oa=(0,p.Z)((0,p.Z)({},Wr),{},{selectedKeys:Yo});Go?It==null||It(Oa):Et==null||Et(Oa)}!qn&&Lr.length&&Io!=="inline"&&In(bt)},la=L(function(no){cr==null||cr(De(no)),na(no)}),fa=L(function(no,Wr){var Yr=Lr.filter(function(Yo){return Yo!==no});if(Wr)Yr.push(no);else if(Io!=="inline"){var Go=Ma(no);Yr=Yr.filter(function(Yo){return!Go.has(Yo)})}(0,X.Z)(Lr,Yr,!0)||In(Yr,!0)}),va=function(Wr,Yr){var Go=Yr!=null?Yr:!Lr.includes(Wr);fa(Wr,Go)},Ea=A(Io,ia,co,Xr,wo,xa,La,pr,va,ir);I.useEffect(function(){Bo(!0)},[]);var wa=I.useMemo(function(){return{_internalRenderMenuItem:jr,_internalRenderSubMenuItem:Kr}},[jr,Kr]),ti=Io!=="horizontal"||un?vr:vr.map(function(no,Wr){return I.createElement(d,{key:no.key,overflowDisabled:Wr>ko},no)}),ka=I.createElement(F.Z,(0,e.Z)({id:Qt,ref:wo,prefixCls:"".concat(nt,"-overflow"),component:"ul",itemComponent:ut,className:D()(nt,"".concat(nt,"-root"),"".concat(nt,"-").concat(Io),Dt,(0,m.Z)((0,m.Z)({},"".concat(nt,"-inline-collapsed"),Vr),"".concat(nt,"-rtl"),co),ft),dir:jt,style:Ot,role:"menu",tabIndex:Xt,data:ti,renderRawItem:function(Wr){return Wr},renderRawRest:function(Wr){var Yr=Wr.length,Go=Yr?vr.slice(-Yr):null;return I.createElement(O,{eventKey:y,title:xr,disabled:aa,internalPopupClose:Yr===0,popupClassName:Er},Go)},maxCount:Io!=="horizontal"||un?F.Z.INVALIDATE:F.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Wr){Fo(Wr)},onKeyDown:Ea},Zn));return I.createElement(re.Provider,{value:wa},I.createElement(Ne.Provider,{value:Xr},I.createElement(d,{prefixCls:nt,rootClassName:ft,mode:Io,openKeys:Lr,rtl:co,disabled:En,motion:Eo?nn:null,defaultMotions:Eo?Tn:null,activeKey:ia,onActive:ur,onInactive:Mo,selectedKeys:po,inlineIndent:kt,subMenuOpenDelay:bn,subMenuCloseDelay:Jt,forceSubMenuRender:Pn,builtinPlacements:Cr,triggerSubMenuAction:kn,getPopupContainer:Dr,itemIcon:Sr,expandIcon:hr,onItemClick:la,onOpenChange:fa},I.createElement(ae.Provider,{value:Xa},ka),I.createElement("div",{style:{display:"none"},"aria-hidden":!0},I.createElement(ee.Provider,{value:Ra},xo)))))}),zt=vt,Kt=zt;Kt.Item=ut,Kt.SubMenu=O,Kt.ItemGroup=Ae,Kt.Divider=R;var Rt=Kt},83836:function(Yt,Ge,t){t.d(Ge,{Z:function(){return U}});var e=t(54476),m=t(33885),p=t(42978),Q=t(75931),N=t(59301),P=t(92310),g=t.n(P),D=t(29301),F=t(34280),n=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],X=void 0;function w(c,T){var ne=c.prefixCls,q=c.invalidate,me=c.item,et=c.renderItem,W=c.responsive,we=c.responsiveDisabled,he=c.registerSize,Xe=c.itemKey,B=c.className,Oe=c.style,ye=c.children,ct=c.display,Le=c.order,oe=c.component,Z=oe===void 0?"div":oe,H=(0,Q.Z)(c,n),f=W&&!ct;function ce(K){he(Xe,K)}N.useEffect(function(){return function(){ce(null)}},[]);var A=et&&me!==X?et(me,{index:Le}):ye,r;q||(r={opacity:f?0:1,height:f?0:X,overflowY:f?"hidden":X,order:W?Le:X,pointerEvents:f?"none":X,position:f?"absolute":X});var u={};f&&(u["aria-hidden"]=!0);var V=N.createElement(Z,(0,e.Z)({className:g()(!q&&ne,B),style:(0,m.Z)((0,m.Z)({},r),Oe)},u,H,{ref:T}),A);return W&&(V=N.createElement(D.Z,{onResize:function(y){var z=y.offsetWidth;ce(z)},disabled:we},V)),V}var I=N.forwardRef(w);I.displayName="Item";var xe=I,Ne=t(6089),pe=t(4676),se=t(16089);function Se(c){if(typeof MessageChannel=="undefined")(0,se.Z)(c);else{var T=new MessageChannel;T.port1.onmessage=function(){return c()},T.port2.postMessage(void 0)}}function h(){var c=N.useRef(null),T=function(q){c.current||(c.current=[],Se(function(){(0,pe.unstable_batchedUpdates)(function(){c.current.forEach(function(me){me()}),c.current=null})})),c.current.push(q)};return T}function fe(c,T){var ne=N.useState(T),q=(0,p.Z)(ne,2),me=q[0],et=q[1],W=(0,Ne.Z)(function(we){c(function(){et(we)})});return[me,W]}var s=N.createContext(null),d=["component"],Y=["className"],ee=["className"],_=function(T,ne){var q=N.useContext(s);if(!q){var me=T.component,et=me===void 0?"div":me,W=(0,Q.Z)(T,d);return N.createElement(et,(0,e.Z)({},W,{ref:ne}))}var we=q.className,he=(0,Q.Z)(q,Y),Xe=T.className,B=(0,Q.Z)(T,ee);return N.createElement(s.Provider,{value:null},N.createElement(xe,(0,e.Z)({ref:ne,className:g()(we,Xe)},he,B)))},Ve=N.forwardRef(_);Ve.displayName="RawItem";var Ee=Ve,ae=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],ge="responsive",re="invalidate";function S(c){return"+ ".concat(c.length," ...")}function i(c,T){var ne=c.prefixCls,q=ne===void 0?"rc-overflow":ne,me=c.data,et=me===void 0?[]:me,W=c.renderItem,we=c.renderRawItem,he=c.itemKey,Xe=c.itemWidth,B=Xe===void 0?10:Xe,Oe=c.ssr,ye=c.style,ct=c.className,Le=c.maxCount,oe=c.renderRest,Z=c.renderRawRest,H=c.prefix,f=c.suffix,ce=c.component,A=ce===void 0?"div":ce,r=c.itemComponent,u=c.onVisibleChange,V=(0,Q.Z)(c,ae),K=Oe==="full",y=h(),z=fe(y,null),L=(0,p.Z)(z,2),J=L[0],l=L[1],v=J||0,Me=fe(y,new Map),de=(0,p.Z)(Me,2),Ie=de[0],Be=de[1],Te=fe(y,0),Ue=(0,p.Z)(Te,2),je=Ue[0],x=Ue[1],te=fe(y,0),Ce=(0,p.Z)(te,2),De=Ce[0],C=Ce[1],k=fe(y,0),G=(0,p.Z)(k,2),ve=G[0],ze=G[1],Ke=fe(y,0),ut=(0,p.Z)(Ke,2),pt=ut[0],tt=ut[1],mt=(0,N.useState)(null),ke=(0,p.Z)(mt,2),rt=ke[0],ot=ke[1],xt=(0,N.useState)(null),gt=(0,p.Z)(xt,2),Pt=gt[0],Mt=gt[1],Gt=N.useMemo(function(){return Pt===null&&K?Number.MAX_SAFE_INTEGER:Pt||0},[Pt,J]),rn=(0,N.useState)(!1),Ht=(0,p.Z)(rn,2),At=Ht[0],vn=Ht[1],Bt="".concat(q,"-item"),mn=Math.max(je,De),pn=Le===ge,en=et.length&&pn,b=Le===re,O=en||typeof Le=="number"&&et.length>Le,it=(0,N.useMemo)(function(){var _e=et;return en?J===null&&K?_e=et:_e=et.slice(0,Math.min(et.length,v/B)):typeof Le=="number"&&(_e=et.slice(0,Le)),_e},[et,B,J,Le,en]),R=(0,N.useMemo)(function(){return en?et.slice(Gt+1):et.slice(it.length)},[et,it,en,Gt]),$=(0,N.useCallback)(function(_e,nt){var ft;return typeof he=="function"?he(_e):(ft=he&&(_e==null?void 0:_e[he]))!==null&&ft!==void 0?ft:nt},[he]),He=(0,N.useCallback)(W||function(_e){return _e},[W]);function Pe(_e,nt,ft){Pt===_e&&(nt===void 0||nt===rt)||(Mt(_e),ft||(vn(_ev){Pe(Ot-1,_e-Dt-pt+De);break}}f&&bt(0)+pt>v&&ot(null)}},[v,Ie,De,ve,pt,$,it]);var vt=At&&!!R.length,zt={};rt!==null&&en&&(zt={position:"absolute",left:rt,top:0});var Kt={prefixCls:Bt,responsive:en,component:r,invalidate:b},Rt=we?function(_e,nt){var ft=$(_e,nt);return N.createElement(s.Provider,{key:ft,value:(0,m.Z)((0,m.Z)({},Kt),{},{order:nt,item:_e,itemKey:ft,registerSize:qe,display:nt<=Gt})},we(_e,nt))}:function(_e,nt){var ft=$(_e,nt);return N.createElement(xe,(0,e.Z)({},Kt,{order:nt,key:ft,item:_e,renderItem:He,itemKey:ft,registerSize:qe,display:nt<=Gt}))},ue={order:vt?Gt:Number.MAX_SAFE_INTEGER,className:"".concat(Bt,"-rest"),registerSize:Fe,display:vt},Re=oe||S,Ze=Z?N.createElement(s.Provider,{value:(0,m.Z)((0,m.Z)({},Kt),ue)},Z(R)):N.createElement(xe,(0,e.Z)({},Kt,ue),typeof Re=="function"?Re(R):Re),Ye=N.createElement(A,(0,e.Z)({className:g()(!b&&q,ct),style:ye,ref:T},V),H&&N.createElement(xe,(0,e.Z)({},Kt,{responsive:pn,responsiveDisabled:!en,order:-1,className:"".concat(Bt,"-prefix"),registerSize:at,display:!0}),H),it.map(Rt),O?Ze:null,f&&N.createElement(xe,(0,e.Z)({},Kt,{responsive:pn,responsiveDisabled:!en,order:Gt,className:"".concat(Bt,"-suffix"),registerSize:Ct,display:!0,style:zt}),f));return pn?N.createElement(D.Z,{onResize:Ae,disabled:!en},Ye):Ye}var le=N.forwardRef(i);le.displayName="Overflow",le.Item=Ee,le.RESPONSIVE=ge,le.INVALIDATE=re;var M=le,U=M},29301:function(Yt,Ge,t){t.d(Ge,{Z:function(){return re}});var e=t(54476),m=t(59301),p=t(11592),Q=t(48736),N=t(33885),P=t(76190),g=t(76846),D=t(8654),F=m.createContext(null);function n(S){var i=S.children,le=S.onBatchResize,M=m.useRef(0),U=m.useRef([]),c=m.useContext(F),T=m.useCallback(function(ne,q,me){M.current+=1;var et=M.current;U.current.push({size:ne,element:q,data:me}),Promise.resolve().then(function(){et===M.current&&(le==null||le(U.current),U.current=[])}),c==null||c(ne,q,me)},[le,c]);return m.createElement(F.Provider,{value:T},i)}var X=t(76374),w=new Map;function I(S){S.forEach(function(i){var le,M=i.target;(le=w.get(M))===null||le===void 0||le.forEach(function(U){return U(M)})})}var xe=new X.Z(I),Ne=null,pe=null;function se(S,i){w.has(S)||(w.set(S,new Set),xe.observe(S)),w.get(S).add(i)}function Se(S,i){w.has(S)&&(w.get(S).delete(i),w.get(S).size||(xe.unobserve(S),w.delete(S)))}var h=t(67732),fe=t(83652),s=t(42403),d=t(158),Y=function(S){(0,s.Z)(le,S);var i=(0,d.Z)(le);function le(){return(0,h.Z)(this,le),i.apply(this,arguments)}return(0,fe.Z)(le,[{key:"render",value:function(){return this.props.children}}]),le}(m.Component);function ee(S,i){var le=S.children,M=S.disabled,U=m.useRef(null),c=m.useRef(null),T=m.useContext(F),ne=typeof le=="function",q=ne?le(U):le,me=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),et=!ne&&m.isValidElement(q)&&(0,D.Yr)(q),W=et?(0,D.C4)(q):null,we=(0,D.x1)(W,U),he=function(){var ye;return(0,g.ZP)(U.current)||(U.current&&(0,P.Z)(U.current)==="object"?(0,g.ZP)((ye=U.current)===null||ye===void 0?void 0:ye.nativeElement):null)||(0,g.ZP)(c.current)};m.useImperativeHandle(i,function(){return he()});var Xe=m.useRef(S);Xe.current=S;var B=m.useCallback(function(Oe){var ye=Xe.current,ct=ye.onResize,Le=ye.data,oe=Oe.getBoundingClientRect(),Z=oe.width,H=oe.height,f=Oe.offsetWidth,ce=Oe.offsetHeight,A=Math.floor(Z),r=Math.floor(H);if(me.current.width!==A||me.current.height!==r||me.current.offsetWidth!==f||me.current.offsetHeight!==ce){var u={width:A,height:r,offsetWidth:f,offsetHeight:ce};me.current=u;var V=f===Math.round(Z)?Z:f,K=ce===Math.round(H)?H:ce,y=(0,N.Z)((0,N.Z)({},u),{},{offsetWidth:V,offsetHeight:K});T==null||T(y,Oe,Le),ct&&Promise.resolve().then(function(){ct(y,Oe)})}},[]);return m.useEffect(function(){var Oe=he();return Oe&&!M&&se(Oe,B),function(){return Se(Oe,B)}},[U.current,M]),m.createElement(Y,{ref:c},et?m.cloneElement(q,{ref:we}):q)}var _=m.forwardRef(ee),Ve=_,Ee="rc-observer-key";function ae(S,i){var le=S.children,M=typeof le=="function"?[le]:(0,p.Z)(le);return M.map(function(U,c){var T=(U==null?void 0:U.key)||"".concat(Ee,"-").concat(c);return m.createElement(Ve,(0,e.Z)({},S,{key:T,ref:c===0?i:void 0}),U)})}var ge=m.forwardRef(ae);ge.Collection=n;var re=ge},6551:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return g}});var e=t(42978),m=t(59301),p=t(47273),Q=0,N=(0,p.Z)();function P(){var D;return N?(D=Q,Q+=1):D="TEST_OR_SSR",D}function g(D){var F=m.useState(),n=(0,e.Z)(F,2),X=n[0],w=n[1];return m.useEffect(function(){w("rc_select_".concat(P()))},[]),D||X}},37463:function(Yt,Ge,t){t.d(Ge,{Ac:function(){return Te},Xo:function(){return je},Wx:function(){return te},ZP:function(){return it},lk:function(){return fe}});var e=t(54476),m=t(94480),p=t(20068),Q=t(33885),N=t(42978),P=t(75931),g=t(76190),D=t(18929),F=t(48736),n=t(59301),X=t(92310),w=t.n(X),I=t(34280),xe=t(49658),Ne=t(8654),pe=function($){var He=$.className,Pe=$.customizeIcon,Ae=$.customizeIconProps,qe=$.children,Fe=$.onMouseDown,at=$.onClick,Ct=typeof Pe=="function"?Pe(Ae):Pe;return n.createElement("span",{className:He,onMouseDown:function(vt){vt.preventDefault(),Fe==null||Fe(vt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:at,"aria-hidden":!0},Ct!==void 0?Ct:n.createElement("span",{className:w()(He.split(/\s+/).map(function(bt){return"".concat(bt,"-icon")}))},qe))},se=pe,Se=function($,He,Pe,Ae,qe){var Fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,at=arguments.length>6?arguments[6]:void 0,Ct=arguments.length>7?arguments[7]:void 0,bt=n.useMemo(function(){if((0,g.Z)(Ae)==="object")return Ae.clearIcon;if(qe)return qe},[Ae,qe]),vt=n.useMemo(function(){return!!(!Fe&&Ae&&(Pe.length||at)&&!(Ct==="combobox"&&at===""))},[Ae,Fe,Pe.length,at,Ct]);return{allowClear:vt,clearIcon:n.createElement(se,{className:"".concat($,"-clear"),onMouseDown:He,customizeIcon:bt},"\xD7")}},h=n.createContext(null);function fe(){return n.useContext(h)}function s(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$=n.useState(!1),He=(0,N.Z)($,2),Pe=He[0],Ae=He[1],qe=n.useRef(null),Fe=function(){window.clearTimeout(qe.current)};n.useEffect(function(){return Fe},[]);var at=function(bt,vt){Fe(),qe.current=window.setTimeout(function(){Ae(bt),vt&&vt()},R)};return[Pe,at,Fe]}function d(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$=n.useRef(null),He=n.useRef(null);n.useEffect(function(){return function(){window.clearTimeout(He.current)}},[]);function Pe(Ae){(Ae||$.current===null)&&($.current=Ae),window.clearTimeout(He.current),He.current=window.setTimeout(function(){$.current=null},R)}return[function(){return $.current},Pe]}function Y(R,$,He,Pe){var Ae=n.useRef(null);Ae.current={open:$,triggerOpen:He,customizedTrigger:Pe},n.useEffect(function(){function qe(Fe){var at;if(!((at=Ae.current)!==null&&at!==void 0&&at.customizedTrigger)){var Ct=Fe.target;Ct.shadowRoot&&Fe.composed&&(Ct=Fe.composedPath()[0]||Ct),Ae.current.open&&R().filter(function(bt){return bt}).every(function(bt){return!bt.contains(Ct)&&bt!==Ct})&&Ae.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qe),function(){return window.removeEventListener("mousedown",qe)}},[])}var ee=t(10228);function _(R){return R&&![ee.Z.ESC,ee.Z.SHIFT,ee.Z.BACKSPACE,ee.Z.TAB,ee.Z.WIN_KEY,ee.Z.ALT,ee.Z.META,ee.Z.WIN_KEY_RIGHT,ee.Z.CTRL,ee.Z.SEMICOLON,ee.Z.EQUALS,ee.Z.CAPS_LOCK,ee.Z.CONTEXT_MENU,ee.Z.F1,ee.Z.F2,ee.Z.F3,ee.Z.F4,ee.Z.F5,ee.Z.F6,ee.Z.F7,ee.Z.F8,ee.Z.F9,ee.Z.F10,ee.Z.F11,ee.Z.F12].includes(R)}var Ve=t(26112),Ee=t(83836);function ae(R,$,He){var Pe=(0,Q.Z)((0,Q.Z)({},R),He?$:{});return Object.keys($).forEach(function(Ae){var qe=$[Ae];typeof qe=="function"&&(Pe[Ae]=function(){for(var Fe,at=arguments.length,Ct=new Array(at),bt=0;btnt&&(kn="".concat(Cr.slice(0,nt),"..."))}var Sr=function(er){er&&er.stopPropagation(),Xt(wt)};return typeof Dt=="function"?ar(Tn,kn,kt,Rn,Sr):rr(wt,kn,kt,Rn,Sr)},Lt=function(wt){if(!Ae.length)return null;var kt=typeof Ot=="function"?Ot(wt):Ot;return typeof Dt=="function"?ar(void 0,kt,!1,!1,void 0,!0):rr({title:kt},kt,!1)},yt=n.createElement("div",{className:"".concat(Mn,"-search"),style:{width:bn},onFocus:function(){Un(!0)},onBlur:function(){Un(!1)}},n.createElement(le,{ref:Ct,open:qe,prefixCls:Pe,id:He,inputElement:null,disabled:vt,autoFocus:Rt,autoComplete:ue,editable:Jn,activeDescendantId:Re,value:Vn,onKeyDown:jt,onMouseDown:Qt,onChange:Tt,onPaste:Zt,onCompositionStart:an,onCompositionEnd:$t,onBlur:Vt,tabIndex:Ze,attrs:(0,Ve.Z)($,!0)}),n.createElement("span",{ref:En,className:"".concat(Mn,"-search-mirror"),"aria-hidden":!0},Vn,"\xA0")),Et=n.createElement(Ee.Z,{prefixCls:"".concat(Mn,"-overflow"),data:Ae,renderItem:qn,renderRest:Lt,suffix:yt,itemKey:W,maxCount:_e});return n.createElement("span",{className:"".concat(Mn,"-wrap")},Et,!Ae.length&&!Vn&&n.createElement("span",{className:"".concat(Mn,"-placeholder")},bt))},Xe=he,B=function($){var He=$.inputElement,Pe=$.prefixCls,Ae=$.id,qe=$.inputRef,Fe=$.disabled,at=$.autoFocus,Ct=$.autoComplete,bt=$.activeDescendantId,vt=$.mode,zt=$.open,Kt=$.values,Rt=$.placeholder,ue=$.tabIndex,Re=$.showSearch,Ze=$.searchValue,Ye=$.activeValue,_e=$.maxLength,nt=$.onInputKeyDown,ft=$.onInputMouseDown,Ot=$.onInputChange,Dt=$.onInputPaste,Ft=$.onInputCompositionStart,Xt=$.onInputCompositionEnd,Tt=$.onInputBlur,Zt=$.title,jt=n.useState(!1),Qt=(0,N.Z)(jt,2),an=Qt[0],$t=Qt[1],Vt=vt==="combobox",En=Vt||Re,un=Kt[0],sn=Ze||"";Vt&&Ye&&!an&&(sn=Ye),n.useEffect(function(){Vt&&$t(!1)},[Vt,Ye]);var bn=vt!=="combobox"&&!zt&&!Re?!1:!!sn,Wt=Zt===void 0?me(un):Zt,Jt=n.useMemo(function(){return un?null:n.createElement("span",{className:"".concat(Pe,"-selection-placeholder"),style:bn?{visibility:"hidden"}:void 0},Rt)},[un,bn,Rt,Pe]);return n.createElement("span",{className:"".concat(Pe,"-selection-wrap")},n.createElement("span",{className:"".concat(Pe,"-selection-search")},n.createElement(le,{ref:qe,prefixCls:Pe,id:Ae,open:zt,inputElement:He,disabled:Fe,autoFocus:at,autoComplete:Ct,editable:En,activeDescendantId:bt,value:sn,onKeyDown:nt,onMouseDown:ft,onChange:function(Dn){$t(!0),Ot(Dn)},onPaste:Dt,onCompositionStart:Ft,onCompositionEnd:Xt,onBlur:Tt,tabIndex:ue,attrs:(0,Ve.Z)($,!0),maxLength:Vt?_e:void 0})),!Vt&&un?n.createElement("span",{className:"".concat(Pe,"-selection-item"),title:Wt,style:bn?{visibility:"hidden"}:void 0},un.label):null,Jt)},Oe=B,ye=function($,He){var Pe=(0,n.useRef)(null),Ae=(0,n.useRef)(!1),qe=$.prefixCls,Fe=$.open,at=$.mode,Ct=$.showSearch,bt=$.tokenWithEnter,vt=$.disabled,zt=$.prefix,Kt=$.autoClearSearchValue,Rt=$.onSearch,ue=$.onSearchSubmit,Re=$.onToggleOpen,Ze=$.onInputKeyDown,Ye=$.onInputBlur,_e=$.domRef;n.useImperativeHandle(He,function(){return{focus:function(Wt){Pe.current.focus(Wt)},blur:function(){Pe.current.blur()}}});var nt=d(0),ft=(0,N.Z)(nt,2),Ot=ft[0],Dt=ft[1],Ft=function(Wt){var Jt=Wt.which,Pn=Pe.current instanceof HTMLTextAreaElement;!Pn&&Fe&&(Jt===ee.Z.UP||Jt===ee.Z.DOWN)&&Wt.preventDefault(),Ze&&Ze(Wt),Jt===ee.Z.ENTER&&at==="tags"&&!Ae.current&&!Fe&&(ue==null||ue(Wt.target.value)),!(Pn&&!Fe&&~[ee.Z.UP,ee.Z.DOWN,ee.Z.LEFT,ee.Z.RIGHT].indexOf(Jt))&&_(Jt)&&Re(!0)},Xt=function(){Dt(!0)},Tt=(0,n.useRef)(null),Zt=function(Wt){Rt(Wt,!0,Ae.current)!==!1&&Re(!0)},jt=function(){Ae.current=!0},Qt=function(Wt){Ae.current=!1,at!=="combobox"&&Zt(Wt.target.value)},an=function(Wt){var Jt=Wt.target.value;if(bt&&Tt.current&&/[\r\n]/.test(Tt.current)){var Pn=Tt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jt=Jt.replace(Pn,Tt.current)}Tt.current=null,Zt(Jt)},$t=function(Wt){var Jt=Wt.clipboardData,Pn=Jt==null?void 0:Jt.getData("text");Tt.current=Pn||""},Vt=function(Wt){var Jt=Wt.target;if(Jt!==Pe.current){var Pn=document.body.style.msTouchAction!==void 0;Pn?setTimeout(function(){Pe.current.focus()}):Pe.current.focus()}},En=function(Wt){var Jt=Ot();Wt.target!==Pe.current&&!Jt&&!(at==="combobox"&&vt)&&Wt.preventDefault(),(at!=="combobox"&&(!Ct||!Jt)||!Fe)&&(Fe&&Kt!==!1&&Rt("",!0,!1),Re())},un={inputRef:Pe,onInputKeyDown:Ft,onInputMouseDown:Xt,onInputChange:an,onInputPaste:$t,onInputCompositionStart:jt,onInputCompositionEnd:Qt,onInputBlur:Ye},sn=at==="multiple"||at==="tags"?n.createElement(Xe,(0,e.Z)({},$,un)):n.createElement(Oe,(0,e.Z)({},$,un));return n.createElement("div",{ref:_e,className:"".concat(qe,"-selector"),onClick:Vt,onMouseDown:En},zt&&n.createElement("div",{className:"".concat(qe,"-prefix")},zt),sn)},ct=n.forwardRef(ye),Le=ct,oe=t(65030),Z=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function($){var He=$===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"}}},f=function($,He){var Pe=$.prefixCls,Ae=$.disabled,qe=$.visible,Fe=$.children,at=$.popupElement,Ct=$.animation,bt=$.transitionName,vt=$.dropdownStyle,zt=$.dropdownClassName,Kt=$.direction,Rt=Kt===void 0?"ltr":Kt,ue=$.placement,Re=$.builtinPlacements,Ze=$.dropdownMatchSelectWidth,Ye=$.dropdownRender,_e=$.dropdownAlign,nt=$.getPopupContainer,ft=$.empty,Ot=$.getTriggerDOMNode,Dt=$.onPopupVisibleChange,Ft=$.onPopupMouseEnter,Xt=(0,P.Z)($,Z),Tt="".concat(Pe,"-dropdown"),Zt=at;Ye&&(Zt=Ye(at));var jt=n.useMemo(function(){return Re||H(Ze)},[Re,Ze]),Qt=Ct?"".concat(Tt,"-").concat(Ct):bt,an=typeof Ze=="number",$t=n.useMemo(function(){return an?null:Ze===!1?"minWidth":"width"},[Ze,an]),Vt=vt;an&&(Vt=(0,Q.Z)((0,Q.Z)({},Vt),{},{width:Ze}));var En=n.useRef(null);return n.useImperativeHandle(He,function(){return{getPopupElement:function(){var sn;return(sn=En.current)===null||sn===void 0?void 0:sn.popupElement}}}),n.createElement(oe.Z,(0,e.Z)({},Xt,{showAction:Dt?["click"]:[],hideAction:Dt?["click"]:[],popupPlacement:ue||(Rt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:jt,prefixCls:Tt,popupTransitionName:Qt,popup:n.createElement("div",{onMouseEnter:Ft},Zt),ref:En,stretch:$t,popupAlign:_e,popupVisible:qe,getPopupContainer:nt,popupClassName:w()(zt,(0,p.Z)({},"".concat(Tt,"-empty"),ft)),popupStyle:Vt,getTriggerDOMNode:Ot,onPopupVisibleChange:Dt}),Fe)},ce=n.forwardRef(f),A=ce,r=t(66712);function u(R,$){var He=R.key,Pe;return"value"in R&&(Pe=R.value),He!=null?He:Pe!==void 0?Pe:"rc-index-key-".concat($)}function V(R){return typeof R!="undefined"&&!Number.isNaN(R)}function K(R,$){var He=R||{},Pe=He.label,Ae=He.value,qe=He.options,Fe=He.groupLabel,at=Pe||($?"children":"label");return{label:at,value:Ae||"value",options:qe||"options",groupLabel:Fe||at}}function y(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=$.fieldNames,Pe=$.childrenAsData,Ae=[],qe=K(He,!1),Fe=qe.label,at=qe.value,Ct=qe.options,bt=qe.groupLabel;function vt(zt,Kt){Array.isArray(zt)&&zt.forEach(function(Rt){if(Kt||!(Ct in Rt)){var ue=Rt[at];Ae.push({key:u(Rt,Ae.length),groupOption:Kt,data:Rt,label:Rt[Fe],value:ue})}else{var Re=Rt[bt];Re===void 0&&Pe&&(Re=Rt.label),Ae.push({key:u(Rt,Ae.length),group:!0,data:Rt,label:Re}),vt(Rt[Ct],!0)}})}return vt(R,!1),Ae}function z(R){var $=(0,Q.Z)({},R);return"props"in $||Object.defineProperty($,"props",{get:function(){return(0,F.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$}}),$}var L=function($,He,Pe){if(!He||!He.length)return null;var Ae=!1,qe=function at(Ct,bt){var vt=(0,r.Z)(bt),zt=vt[0],Kt=vt.slice(1);if(!zt)return[Ct];var Rt=Ct.split(zt);return Ae=Ae||Rt.length>1,Rt.reduce(function(ue,Re){return[].concat((0,m.Z)(ue),(0,m.Z)(at(Re,Kt)))},[]).filter(Boolean)},Fe=qe($,He);return Ae?typeof Pe!="undefined"?Fe.slice(0,Pe):Fe:null},J=n.createContext(null),l=J;function v(R){var $=R.visible,He=R.values;if(!$)return null;var Pe=50;return n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(He.slice(0,Pe).map(function(Ae){var qe=Ae.label,Fe=Ae.value;return["number","string"].includes((0,g.Z)(qe))?qe:Fe}).join(", ")),He.length>Pe?", ...":null)}var Me=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],de=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ie=function($){return $==="tags"||$==="multiple"},Be=n.forwardRef(function(R,$){var He,Pe=R.id,Ae=R.prefixCls,qe=R.className,Fe=R.showSearch,at=R.tagRender,Ct=R.direction,bt=R.omitDomProps,vt=R.displayValues,zt=R.onDisplayValuesChange,Kt=R.emptyOptions,Rt=R.notFoundContent,ue=Rt===void 0?"Not Found":Rt,Re=R.onClear,Ze=R.mode,Ye=R.disabled,_e=R.loading,nt=R.getInputElement,ft=R.getRawInputElement,Ot=R.open,Dt=R.defaultOpen,Ft=R.onDropdownVisibleChange,Xt=R.activeValue,Tt=R.onActiveValueChange,Zt=R.activeDescendantId,jt=R.searchValue,Qt=R.autoClearSearchValue,an=R.onSearch,$t=R.onSearchSplit,Vt=R.tokenSeparators,En=R.allowClear,un=R.prefix,sn=R.suffixIcon,bn=R.clearIcon,Wt=R.OptionList,Jt=R.animation,Pn=R.transitionName,Dn=R.dropdownStyle,Un=R.dropdownClassName,Mn=R.dropdownMatchSelectWidth,Vn=R.dropdownRender,Jn=R.dropdownAlign,rr=R.placement,ar=R.builtinPlacements,qn=R.getPopupContainer,Lt=R.showAction,yt=Lt===void 0?[]:Lt,Et=R.onFocus,It=R.onBlur,wt=R.onKeyUp,kt=R.onKeyDown,nn=R.onMouseDown,Tn=(0,P.Z)(R,Me),Rn=Ie(Ze),kn=(Fe!==void 0?Fe:Rn)||Ze==="combobox",Cr=(0,Q.Z)({},Tn);de.forEach(function(pr){delete Cr[pr]}),bt==null||bt.forEach(function(pr){delete Cr[pr]});var Sr=n.useState(!1),hr=(0,N.Z)(Sr,2),er=hr[0],xr=hr[1];n.useEffect(function(){xr((0,xe.Z)())},[]);var Er=n.useRef(null),Dr=n.useRef(null),cr=n.useRef(null),Ir=n.useRef(null),ir=n.useRef(null),Zr=n.useRef(!1),kr=s(),jr=(0,N.Z)(kr,3),Kr=jr[0],Gr=jr[1],Zn=jr[2];n.useImperativeHandle($,function(){var pr,ur;return{focus:(pr=Ir.current)===null||pr===void 0?void 0:pr.focus,blur:(ur=Ir.current)===null||ur===void 0?void 0:ur.blur,scrollTo:function(jo){var uo;return(uo=ir.current)===null||uo===void 0?void 0:uo.scrollTo(jo)},nativeElement:Er.current||Dr.current}});var Yn=n.useMemo(function(){var pr;if(Ze!=="combobox")return jt;var ur=(pr=vt[0])===null||pr===void 0?void 0:pr.value;return typeof ur=="string"||typeof ur=="number"?String(ur):""},[jt,Ze,vt]),br=Ze==="combobox"&&typeof nt=="function"&&nt()||null,vr=typeof ft=="function"&&ft(),xo=(0,Ne.x1)(Dr,vr==null||(He=vr.props)===null||He===void 0?void 0:He.ref),Lo=n.useState(!1),vo=(0,N.Z)(Lo,2),Eo=vo[0],Bo=vo[1];(0,I.Z)(function(){Bo(!0)},[]);var wo=(0,D.Z)(!1,{defaultValue:Dt,value:Ot}),Xr=(0,N.Z)(wo,2),co=Xr[0],to=Xr[1],lr=Eo?co:!1,Lr=!ue&&Kt;(Ye||Lr&&lr&&Ze==="combobox")&&(lr=!1);var Hr=Lr?!1:lr,In=n.useCallback(function(pr){var ur=pr!==void 0?pr:!lr;Ye||(to(ur),lr!==ur&&(Ft==null||Ft(ur)))},[Ye,lr,to,Ft]),Hn=n.useMemo(function(){return(Vt||[]).some(function(pr){return[` +`,`\r +`].includes(pr)})},[Vt]),On=n.useContext(l)||{},jn=On.maxCount,fr=On.rawValues,$r=function(ur,Mo,jo){if(!(Rn&&V(jn)&&(fr==null?void 0:fr.size)>=jn)){var uo=!0,po=ur;Tt==null||Tt(null);var ra=L(ur,Vt,V(jn)?jn-fr.size:void 0),na=jo?null:ra;return Ze!=="combobox"&&na&&(po="",$t==null||$t(na),In(!1),uo=!1),an&&Yn!==po&&an(po,{source:Mo?"typing":"effect"}),uo}},Oo=function(ur){!ur||!ur.trim()||an(ur,{source:"submit"})};n.useEffect(function(){!lr&&!Rn&&Ze!=="combobox"&&$r("",!1,!1)},[lr]),n.useEffect(function(){co&&Ye&&to(!1),Ye&&!Zr.current&&Gr(!1)},[Ye]);var gn=d(),An=(0,N.Z)(gn,2),tr=An[0],wr=An[1],Pr=n.useRef(!1),To=function(ur){var Mo=tr(),jo=ur.key,uo=jo==="Enter";if(uo&&(Ze!=="combobox"&&ur.preventDefault(),lr||In(!0)),wr(!!Yn),jo==="Backspace"&&!Mo&&Rn&&!Yn&&vt.length){for(var po=(0,m.Z)(vt),ra=null,na=po.length-1;na>=0;na-=1){var la=po[na];if(!la.disabled){po.splice(na,1),ra=la;break}}ra&&zt(po,{type:"remove",values:[ra]})}for(var fa=arguments.length,va=new Array(fa>1?fa-1:0),Ea=1;Ea1?Mo-1:0),uo=1;uo1?ra-1:0),la=1;la=ue},[at,ue,ft==null?void 0:ft.size]),Vt=function(yt){yt.preventDefault()},En=function(yt){var Et;(Et=an.current)===null||Et===void 0||Et.scrollTo(typeof yt=="number"?{index:yt}:yt)},un=n.useCallback(function(Lt){return Ct==="combobox"?!1:ft.has(Lt)},[Ct,(0,m.Z)(ft).toString(),ft.size]),sn=function(yt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,It=Qt.length,wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!1;Pn(yt);var It={source:Et?"keyboard":"mouse"},wt=Qt[yt];if(!wt){Ze(null,-1,It);return}Ze(wt.value,yt,It)};(0,n.useEffect)(function(){Dn(Ye!==!1?sn(0):-1)},[Qt.length,bt]);var Un=n.useCallback(function(Lt){return Ct==="combobox"?String(Lt).toLowerCase()===bt.toLowerCase():ft.has(Lt)},[Ct,bt,(0,m.Z)(ft).toString(),ft.size]);(0,n.useEffect)(function(){var Lt=setTimeout(function(){if(!at&&Fe&&ft.size===1){var Et=Array.from(ft)[0],It=Qt.findIndex(function(wt){var kt=wt.data;return bt?String(kt.value).startsWith(bt):kt.value===Et});It!==-1&&(Dn(It),En(It))}});if(Fe){var yt;(yt=an.current)===null||yt===void 0||yt.scrollTo(void 0)}return function(){return clearTimeout(Lt)}},[Fe,bt]);var Mn=function(yt){yt!==void 0&&_e(yt,{selected:!ft.has(yt)}),at||vt(!1)};if(n.useImperativeHandle(He,function(){return{onKeyDown:function(yt){var Et=yt.which,It=yt.ctrlKey;switch(Et){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var wt=0;if(Et===ee.Z.UP?wt=-1:Et===ee.Z.DOWN?wt=1:k()&&It&&(Et===ee.Z.N?wt=1:Et===ee.Z.P&&(wt=-1)),wt!==0){var kt=sn(Jt+wt,wt);En(kt),Dn(kt,!0)}break}case ee.Z.TAB:case ee.Z.ENTER:{var nn,Tn=Qt[Jt];Tn&&!(Tn!=null&&(nn=Tn.data)!==null&&nn!==void 0&&nn.disabled)&&!$t?Mn(Tn.value):Mn(void 0),Fe&&yt.preventDefault();break}case ee.Z.ESC:vt(!1),Fe&&yt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yt){En(yt)}}}),Qt.length===0)return n.createElement("div",{role:"listbox",id:"".concat(qe,"_list"),className:"".concat(jt,"-empty"),onMouseDown:Vt},zt);var Vn=Object.keys(Ot).map(function(Lt){return Ot[Lt]}),Jn=function(yt){return yt.label};function rr(Lt,yt){var Et=Lt.group;return{role:Et?"presentation":"option",id:"".concat(qe,"_list_").concat(yt)}}var ar=function(yt){var Et=Qt[yt];if(!Et)return null;var It=Et.data||{},wt=It.value,kt=Et.group,nn=(0,Ve.Z)(It,!0),Tn=Jn(Et);return Et?n.createElement("div",(0,e.Z)({"aria-label":typeof Tn=="string"&&!kt?Tn:null},nn,{key:yt},rr(Et,yt),{"aria-selected":Un(wt)}),wt):null},qn={role:"listbox",id:"".concat(qe,"_list")};return n.createElement(n.Fragment,null,Dt&&n.createElement("div",(0,e.Z)({},qn,{style:{height:0,width:0,overflow:"hidden"}}),ar(Jt-1),ar(Jt),ar(Jt+1)),n.createElement(C.Z,{itemKey:"key",ref:an,data:Qt,height:Xt,itemHeight:Tt,fullHeight:!1,onMouseDown:Vt,onScroll:Kt,virtual:Dt,direction:Ft,innerProps:Dt?null:qn},function(Lt,yt){var Et=Lt.group,It=Lt.groupOption,wt=Lt.data,kt=Lt.label,nn=Lt.value,Tn=wt.key;if(Et){var Rn,kn=(Rn=wt.title)!==null&&Rn!==void 0?Rn:ve(kt)?kt.toString():void 0;return n.createElement("div",{className:w()(jt,"".concat(jt,"-group"),wt.className),title:kn},kt!==void 0?kt:Tn)}var Cr=wt.disabled,Sr=wt.title,hr=wt.children,er=wt.style,xr=wt.className,Er=(0,P.Z)(wt,G),Dr=(0,De.Z)(Er,Vn),cr=un(nn),Ir=Cr||!cr&&$t,ir="".concat(jt,"-option"),Zr=w()(jt,ir,xr,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(ir,"-grouped"),It),"".concat(ir,"-active"),Jt===yt&&!Ir),"".concat(ir,"-disabled"),Ir),"".concat(ir,"-selected"),cr)),kr=Jn(Lt),jr=!nt||typeof nt=="function"||cr,Kr=typeof kr=="number"?kr:kr||nn,Gr=ve(Kr)?Kr.toString():void 0;return Sr!==void 0&&(Gr=Sr),n.createElement("div",(0,e.Z)({},(0,Ve.Z)(Dr),Dt?{}:rr(Lt,yt),{"aria-selected":Un(nn),className:Zr,title:Gr,onMouseMove:function(){Jt===yt||Ir||Dn(yt)},onClick:function(){Ir||Mn(nn)},style:er}),n.createElement("div",{className:"".concat(ir,"-content")},typeof Zt=="function"?Zt(Lt,{index:yt}):Kr),n.isValidElement(nt)||cr,jr&&n.createElement(se,{className:"".concat(jt,"-option-state"),customizeIcon:nt,customizeIconProps:{value:nn,disabled:Ir,isSelected:cr}},cr?"\u2713":null))}))},Ke=n.forwardRef(ze),ut=Ke,pt=function(R,$){var He=n.useRef({values:new Map,options:new Map}),Pe=n.useMemo(function(){var qe=He.current,Fe=qe.values,at=qe.options,Ct=R.map(function(zt){if(zt.label===void 0){var Kt;return(0,Q.Z)((0,Q.Z)({},zt),{},{label:(Kt=Fe.get(zt.value))===null||Kt===void 0?void 0:Kt.label})}return zt}),bt=new Map,vt=new Map;return Ct.forEach(function(zt){bt.set(zt.value,zt),vt.set(zt.value,$.get(zt.value)||at.get(zt.value))}),He.current.values=bt,He.current.options=vt,Ct},[R,$]),Ae=n.useCallback(function(qe){return $.get(qe)||He.current.options.get(qe)},[$]);return[Pe,Ae]};function tt(R,$){return M(R).join("").toUpperCase().includes($)}var mt=function(R,$,He,Pe,Ae){return n.useMemo(function(){if(!He||Pe===!1)return R;var qe=$.options,Fe=$.label,at=$.value,Ct=[],bt=typeof Pe=="function",vt=He.toUpperCase(),zt=bt?Pe:function(Rt,ue){return Ae?tt(ue[Ae],vt):ue[qe]?tt(ue[Fe!=="children"?Fe:"label"],vt):tt(ue[at],vt)},Kt=bt?function(Rt){return z(Rt)}:function(Rt){return Rt};return R.forEach(function(Rt){if(Rt[qe]){var ue=zt(He,Kt(Rt));if(ue)Ct.push(Rt);else{var Re=Rt[qe].filter(function(Ze){return zt(He,Kt(Ze))});Re.length&&Ct.push((0,Q.Z)((0,Q.Z)({},Rt),{},(0,p.Z)({},qe,Re)))}return}zt(He,Kt(Rt))&&Ct.push(Rt)}),Ct},[R,Pe,Ae,He,$])},ke=t(6551),rt=t(11592),ot=["children","value"],xt=["children"];function gt(R){var $=R,He=$.key,Pe=$.props,Ae=Pe.children,qe=Pe.value,Fe=(0,P.Z)(Pe,ot);return(0,Q.Z)({key:He,value:qe!==void 0?qe:He,children:Ae},Fe)}function Pt(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rt.Z)(R).map(function(He,Pe){if(!n.isValidElement(He)||!He.type)return null;var Ae=He,qe=Ae.type.isSelectOptGroup,Fe=Ae.key,at=Ae.props,Ct=at.children,bt=(0,P.Z)(at,xt);return $||!qe?gt(He):(0,Q.Z)((0,Q.Z)({key:"__RC_SELECT_GRP__".concat(Fe===null?Pe:Fe,"__"),label:Fe},bt),{},{options:Pt(Ct)})}).filter(function(He){return He})}var Mt=function($,He,Pe,Ae,qe){return n.useMemo(function(){var Fe=$,at=!$;at&&(Fe=Pt(He));var Ct=new Map,bt=new Map,vt=function(Rt,ue,Re){Re&&typeof Re=="string"&&Rt.set(ue[Re],ue)},zt=function Kt(Rt){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:!1,Fe=0;Fe0?In(jn.options):jn.options}):jn})},jr=n.useMemo(function(){return _e?kr(Zr):Zr},[Zr,_e,qn]),Kr=n.useMemo(function(){return y(jr,{fieldNames:Jn,childrenAsData:Mn})},[jr,Jn,Mn]),Gr=function(Hn){var On=kt(Hn);if(kn(On),Wt&&(On.length!==er.length||On.some(function($r,Oo){var gn;return((gn=er[Oo])===null||gn===void 0?void 0:gn.value)!==($r==null?void 0:$r.value)}))){var jn=bn?On:On.map(function($r){return $r.value}),fr=On.map(function($r){return z(xr($r.value))});Wt(Un?jn:jn[0],Un?fr:fr[0])}},Zn=n.useState(null),Yn=(0,N.Z)(Zn,2),br=Yn[0],vr=Yn[1],xo=n.useState(0),Lo=(0,N.Z)(xo,2),vo=Lo[0],Eo=Lo[1],Bo=Xt!==void 0?Xt:Pe!=="combobox",wo=n.useCallback(function(In,Hn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jn=On.source,fr=jn===void 0?"keyboard":jn;Eo(Hn),Fe&&Pe==="combobox"&&In!==null&&fr==="keyboard"&&vr(String(In))},[Fe,Pe]),Xr=function(Hn,On,jn){var fr=function(){var Xo,sr=xr(Hn);return[bn?{label:sr==null?void 0:sr[Jn.label],value:Hn,key:(Xo=sr==null?void 0:sr.key)!==null&&Xo!==void 0?Xo:Hn}:Hn,z(sr)]};if(On&&Rt){var $r=fr(),Oo=(0,N.Z)($r,2),gn=Oo[0],An=Oo[1];Rt(gn,An)}else if(!On&&ue&&jn!=="clear"){var tr=fr(),wr=(0,N.Z)(tr,2),Pr=wr[0],To=wr[1];ue(Pr,To)}},co=rn(function(In,Hn){var On,jn=Un?Hn.selected:!0;jn?On=Un?[].concat((0,m.Z)(er),[In]):[In]:On=er.filter(function(fr){return fr.value!==In}),Gr(On),Xr(In,jn),Pe==="combobox"?vr(""):(!Ie||Kt)&&(Lt(""),vr(""))}),to=function(Hn,On){Gr(Hn);var jn=On.type,fr=On.values;(jn==="remove"||jn==="clear")&&fr.forEach(function($r){Xr($r.value,!1,jn)})},lr=function(Hn,On){if(Lt(Hn),vr(null),On.source==="submit"){var jn=(Hn||"").trim();if(jn){var fr=Array.from(new Set([].concat((0,m.Z)(Dr),[jn])));Gr(fr),Xr(jn,!0),Lt("")}return}On.source!=="blur"&&(Pe==="combobox"&&Gr(Hn),vt==null||vt(Hn))},Lr=function(Hn){var On=Hn;Pe!=="tags"&&(On=Hn.map(function(fr){var $r=It.get(fr);return $r==null?void 0:$r.value}).filter(function(fr){return fr!==void 0}));var jn=Array.from(new Set([].concat((0,m.Z)(Dr),(0,m.Z)(On))));Gr(jn),jn.forEach(function(fr){Xr(fr,!0)})},Hr=n.useMemo(function(){var In=Zt!==!1&&Ze!==!1;return(0,Q.Z)((0,Q.Z)({},yt),{},{flattenOptions:Kr,onActiveValue:wo,defaultActiveFirstOption:Bo,onSelect:co,menuItemSelectedIcon:Tt,rawValues:Dr,fieldNames:Jn,virtual:In,direction:jt,listHeight:an,listItemHeight:Vt,childrenAsData:Mn,maxCount:Jt,optionRender:Dt})},[Jt,yt,Kr,wo,Bo,co,Tt,Dr,Jn,Zt,Ze,jt,an,Vt,Mn,Dt]);return n.createElement(l.Provider,{value:Hr},n.createElement(Te,(0,e.Z)({},Pn,{id:Dn,prefixCls:qe,ref:$,omitDomProps:mn,mode:Pe,displayValues:Er,onDisplayValuesChange:to,direction:jt,searchValue:qn,onSearch:lr,autoClearSearchValue:Kt,onSearchSplit:Lr,dropdownMatchSelectWidth:Ze,OptionList:ut,emptyOptions:!Kr.length,activeValue:br,activeDescendantId:"".concat(Dn,"_list_").concat(vo)})))}),b=en;b.Option=te,b.OptGroup=je;var O=b,it=O},22711:function(Yt,Ge,t){t.r(Ge),t.d(Ge,{ResizableTextArea:function(){return ge},default:function(){return le}});var e=t(54476),m=t(20068),p=t(33885),Q=t(94480),N=t(42978),P=t(75931),g=t(92310),D=t.n(g),F=t(36901),n=t(66003),X=t(30292),w=t(18929),I=t(59301),xe=t(76190),Ne=t(29301),pe=t(34280),se=t(16089),Se=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,h=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],fe={},s;function d(M){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=M.getAttribute("id")||M.getAttribute("data-reactid")||M.getAttribute("name");if(U&&fe[c])return fe[c];var T=window.getComputedStyle(M),ne=T.getPropertyValue("box-sizing")||T.getPropertyValue("-moz-box-sizing")||T.getPropertyValue("-webkit-box-sizing"),q=parseFloat(T.getPropertyValue("padding-bottom"))+parseFloat(T.getPropertyValue("padding-top")),me=parseFloat(T.getPropertyValue("border-bottom-width"))+parseFloat(T.getPropertyValue("border-top-width")),et=h.map(function(we){return"".concat(we,":").concat(T.getPropertyValue(we))}).join(";"),W={sizingStyle:et,paddingSize:q,borderSize:me,boxSizing:ne};return U&&c&&(fe[c]=W),W}function Y(M){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),s.setAttribute("name","hiddenTextarea"),document.body.appendChild(s)),M.getAttribute("wrap")?s.setAttribute("wrap",M.getAttribute("wrap")):s.removeAttribute("wrap");var ne=d(M,U),q=ne.paddingSize,me=ne.borderSize,et=ne.boxSizing,W=ne.sizingStyle;s.setAttribute("style","".concat(W,";").concat(Se)),s.value=M.value||M.placeholder||"";var we=void 0,he=void 0,Xe,B=s.scrollHeight;if(et==="border-box"?B+=me:et==="content-box"&&(B-=q),c!==null||T!==null){s.value=" ";var Oe=s.scrollHeight-q;c!==null&&(we=Oe*c,et==="border-box"&&(we=we+q+me),B=Math.max(we,B)),T!==null&&(he=Oe*T,et==="border-box"&&(he=he+q+me),Xe=B>he?"":"hidden",B=Math.min(he,B))}var ye={height:B,overflowY:Xe,resize:"none"};return we&&(ye.minHeight=we),he&&(ye.maxHeight=he),ye}var ee=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_=0,Ve=1,Ee=2,ae=I.forwardRef(function(M,U){var c=M,T=c.prefixCls,ne=c.defaultValue,q=c.value,me=c.autoSize,et=c.onResize,W=c.className,we=c.style,he=c.disabled,Xe=c.onChange,B=c.onInternalAutoSize,Oe=(0,P.Z)(c,ee),ye=(0,w.Z)(ne,{value:q,postState:function(te){return te!=null?te:""}}),ct=(0,N.Z)(ye,2),Le=ct[0],oe=ct[1],Z=function(te){oe(te.target.value),Xe==null||Xe(te)},H=I.useRef();I.useImperativeHandle(U,function(){return{textArea:H.current}});var f=I.useMemo(function(){return me&&(0,xe.Z)(me)==="object"?[me.minRows,me.maxRows]:[]},[me]),ce=(0,N.Z)(f,2),A=ce[0],r=ce[1],u=!!me,V=function(){try{if(document.activeElement===H.current){var te=H.current,Ce=te.selectionStart,De=te.selectionEnd,C=te.scrollTop;H.current.setSelectionRange(Ce,De),H.current.scrollTop=C}}catch(k){}},K=I.useState(Ee),y=(0,N.Z)(K,2),z=y[0],L=y[1],J=I.useState(),l=(0,N.Z)(J,2),v=l[0],Me=l[1],de=function(){L(_)};(0,pe.Z)(function(){u&&de()},[q,A,r,u]),(0,pe.Z)(function(){if(z===_)L(Ve);else if(z===Ve){var x=Y(H.current,!1,A,r);L(Ee),Me(x)}else V()},[z]);var Ie=I.useRef(),Be=function(){se.Z.cancel(Ie.current)},Te=function(te){z===Ee&&(et==null||et(te),me&&(Be(),Ie.current=(0,se.Z)(function(){de()})))};I.useEffect(function(){return Be},[]);var Ue=u?v:null,je=(0,p.Z)((0,p.Z)({},we),Ue);return(z===_||z===Ve)&&(je.overflowY="hidden",je.overflowX="hidden"),I.createElement(Ne.Z,{onResize:Te,disabled:!(me||et)},I.createElement("textarea",(0,e.Z)({},Oe,{ref:H,style:je,className:D()(T,W,(0,m.Z)({},"".concat(T,"-disabled"),he)),disabled:he,value:Le,onChange:Z})))}),ge=ae,re=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],S=I.forwardRef(function(M,U){var c,T=M.defaultValue,ne=M.value,q=M.onFocus,me=M.onBlur,et=M.onChange,W=M.allowClear,we=M.maxLength,he=M.onCompositionStart,Xe=M.onCompositionEnd,B=M.suffix,Oe=M.prefixCls,ye=Oe===void 0?"rc-textarea":Oe,ct=M.showCount,Le=M.count,oe=M.className,Z=M.style,H=M.disabled,f=M.hidden,ce=M.classNames,A=M.styles,r=M.onResize,u=M.onClear,V=M.onPressEnter,K=M.readOnly,y=M.autoSize,z=M.onKeyDown,L=(0,P.Z)(M,re),J=(0,w.Z)(T,{value:ne,defaultValue:T}),l=(0,N.Z)(J,2),v=l[0],Me=l[1],de=v==null?"":String(v),Ie=I.useState(!1),Be=(0,N.Z)(Ie,2),Te=Be[0],Ue=Be[1],je=I.useRef(!1),x=I.useState(null),te=(0,N.Z)(x,2),Ce=te[0],De=te[1],C=(0,I.useRef)(null),k=(0,I.useRef)(null),G=function(){var b;return(b=k.current)===null||b===void 0?void 0:b.textArea},ve=function(){G().focus()};(0,I.useImperativeHandle)(U,function(){var en;return{resizableTextArea:k.current,focus:ve,blur:function(){G().blur()},nativeElement:((en=C.current)===null||en===void 0?void 0:en.nativeElement)||G()}}),(0,I.useEffect)(function(){Ue(function(en){return!H&&en})},[H]);var ze=I.useState(null),Ke=(0,N.Z)(ze,2),ut=Ke[0],pt=Ke[1];I.useEffect(function(){if(ut){var en;(en=G()).setSelectionRange.apply(en,(0,Q.Z)(ut))}},[ut]);var tt=(0,n.Z)(Le,ct),mt=(c=tt.max)!==null&&c!==void 0?c:we,ke=Number(mt)>0,rt=tt.strategy(de),ot=!!mt&&rt>mt,xt=function(b,O){var it=O;!je.current&&tt.exceedFormatter&&tt.max&&tt.strategy(O)>tt.max&&(it=tt.exceedFormatter(O,{max:tt.max}),O!==it&&pt([G().selectionStart||0,G().selectionEnd||0])),Me(it),(0,X.rJ)(b.currentTarget,b,et,it)},gt=function(b){je.current=!0,he==null||he(b)},Pt=function(b){je.current=!1,xt(b,b.currentTarget.value),Xe==null||Xe(b)},Mt=function(b){xt(b,b.target.value)},Gt=function(b){b.key==="Enter"&&V&&V(b),z==null||z(b)},rn=function(b){Ue(!0),q==null||q(b)},Ht=function(b){Ue(!1),me==null||me(b)},At=function(b){Me(""),ve(),(0,X.rJ)(G(),b,et)},vn=B,Bt;tt.show&&(tt.showFormatter?Bt=tt.showFormatter({value:de,count:rt,maxLength:mt}):Bt="".concat(rt).concat(ke?" / ".concat(mt):""),vn=I.createElement(I.Fragment,null,vn,I.createElement("span",{className:D()("".concat(ye,"-data-count"),ce==null?void 0:ce.count),style:A==null?void 0:A.count},Bt)));var mn=function(b){var O;r==null||r(b),(O=G())!==null&&O!==void 0&&O.style.height&&De(!0)},pn=!y&&!ct&&!W;return I.createElement(F.BaseInput,{ref:C,value:de,allowClear:W,handleReset:At,suffix:vn,prefixCls:ye,classNames:(0,p.Z)((0,p.Z)({},ce),{},{affixWrapper:D()(ce==null?void 0:ce.affixWrapper,(0,m.Z)((0,m.Z)({},"".concat(ye,"-show-count"),ct),"".concat(ye,"-textarea-allow-clear"),W))}),disabled:H,focused:Te,className:D()(oe,ot&&"".concat(ye,"-out-of-range")),style:(0,p.Z)((0,p.Z)({},Z),Ce&&!pn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Bt=="string"?Bt:void 0}},hidden:f,readOnly:K,onClear:u},I.createElement(ge,(0,e.Z)({},L,{autoSize:y,maxLength:we,onKeyDown:Gt,onChange:Mt,onFocus:rn,onBlur:Ht,onCompositionStart:gt,onCompositionEnd:Pt,className:D()(ce==null?void 0:ce.textarea),style:(0,p.Z)((0,p.Z)({},A==null?void 0:A.textarea),{},{resize:Z==null?void 0:Z.resize}),disabled:H,prefixCls:ye,onResize:mn,ref:k,readOnly:K})))}),i=S,le=i},29125:function(Yt,Ge,t){t.d(Ge,{G:function(){return Q},Z:function(){return Se}});var e=t(92310),m=t.n(e),p=t(59301);function Q(h){var fe=h.children,s=h.prefixCls,d=h.id,Y=h.overlayInnerStyle,ee=h.bodyClassName,_=h.className,Ve=h.style;return p.createElement("div",{className:m()("".concat(s,"-content"),_),style:Ve},p.createElement("div",{className:m()("".concat(s,"-inner"),ee),id:d,role:"tooltip",style:Y},typeof fe=="function"?fe():fe))}var N=t(54476),P=t(33885),g=t(75931),D=t(65030),F={shiftX:64,adjustY:1},n={adjustX:1,shiftY:!0},X=[0,0],w={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:X},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:X},top:{points:["bc","tc"],overflow:F,offset:[0,-4],targetOffset:X},bottom:{points:["tc","bc"],overflow:F,offset:[0,4],targetOffset:X},topLeft:{points:["bl","tl"],overflow:F,offset:[0,-4],targetOffset:X},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:X},topRight:{points:["br","tr"],overflow:F,offset:[0,-4],targetOffset:X},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:X},bottomRight:{points:["tr","br"],overflow:F,offset:[0,4],targetOffset:X},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:X},bottomLeft:{points:["tl","bl"],overflow:F,offset:[0,4],targetOffset:X},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:X}},I=null,xe=t(80402),Ne=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],pe=function(fe,s){var d=fe.overlayClassName,Y=fe.trigger,ee=Y===void 0?["hover"]:Y,_=fe.mouseEnterDelay,Ve=_===void 0?0:_,Ee=fe.mouseLeaveDelay,ae=Ee===void 0?.1:Ee,ge=fe.overlayStyle,re=fe.prefixCls,S=re===void 0?"rc-tooltip":re,i=fe.children,le=fe.onVisibleChange,M=fe.afterVisibleChange,U=fe.transitionName,c=fe.animation,T=fe.motion,ne=fe.placement,q=ne===void 0?"right":ne,me=fe.align,et=me===void 0?{}:me,W=fe.destroyTooltipOnHide,we=W===void 0?!1:W,he=fe.defaultVisible,Xe=fe.getTooltipContainer,B=fe.overlayInnerStyle,Oe=fe.arrowContent,ye=fe.overlay,ct=fe.id,Le=fe.showArrow,oe=Le===void 0?!0:Le,Z=fe.classNames,H=fe.styles,f=(0,g.Z)(fe,Ne),ce=(0,xe.Z)(ct),A=(0,p.useRef)(null);(0,p.useImperativeHandle)(s,function(){return A.current});var r=(0,P.Z)({},f);"visible"in fe&&(r.popupVisible=fe.visible);var u=function(){return p.createElement(Q,{key:"content",prefixCls:S,id:ce,bodyClassName:Z==null?void 0:Z.body,overlayInnerStyle:(0,P.Z)((0,P.Z)({},B),H==null?void 0:H.body)},ye)},V=function(){var y=p.Children.only(i),z=(y==null?void 0:y.props)||{},L=(0,P.Z)((0,P.Z)({},z),{},{"aria-describedby":ye?ce:null});return p.cloneElement(i,L)};return p.createElement(D.Z,(0,N.Z)({popupClassName:m()(d,Z==null?void 0:Z.root),prefixCls:S,popup:u,action:ee,builtinPlacements:w,popupPlacement:q,ref:A,popupAlign:et,getPopupContainer:Xe,onPopupVisibleChange:le,afterPopupVisibleChange:M,popupTransitionName:U,popupAnimation:c,popupMotion:T,defaultPopupVisible:he,autoDestroy:we,mouseLeaveDelay:ae,popupStyle:(0,P.Z)((0,P.Z)({},ge),H==null?void 0:H.root),mouseEnterDelay:Ve,arrow:oe},r),V())},se=(0,p.forwardRef)(pe),Se=se},639:function(Yt,Ge,t){t.d(Ge,{Z:function(){return fe}});var e=t(54476),m=t(20068),p=t(33885),Q=t(42978),N=t(75931),P=t(59301),g=t(92310),D=t.n(g),F=t(26112),n=t(30699),X=function(d){for(var Y=d.prefixCls,ee=d.level,_=d.isStart,Ve=d.isEnd,Ee="".concat(Y,"-indent-unit"),ae=[],ge=0;ge0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=f.length,r=ce.length;if(Math.abs(A-r)!==1)return{add:!1,key:null};function u(V,K){var y=new Map;V.forEach(function(L){y.set(L,!0)});var z=K.filter(function(L){return!y.has(L)});return z.length===1?z[0]:null}return A ").concat(ce);return ce}var Xe=pe.forwardRef(function(f,ce){var A=f.prefixCls,r=f.data,u=f.selectable,V=f.checkable,K=f.expandedKeys,y=f.selectedKeys,z=f.checkedKeys,L=f.loadedKeys,J=f.loadingKeys,l=f.halfCheckedKeys,v=f.keyEntities,Me=f.disabled,de=f.dragging,Ie=f.dragOverNodeKey,Be=f.dropPosition,Te=f.motion,Ue=f.height,je=f.itemHeight,x=f.virtual,te=f.scrollWidth,Ce=f.focusable,De=f.activeItem,C=f.focused,k=f.tabIndex,G=f.onKeyDown,ve=f.onFocus,ze=f.onBlur,Ke=f.onActiveChange,ut=f.onListChangeStart,pt=f.onListChangeEnd,tt=(0,d.Z)(f,U),mt=pe.useRef(null),ke=pe.useRef(null);pe.useImperativeHandle(ce,function(){return{scrollTo:function(at){mt.current.scrollTo(at)},getIndentWidth:function(){return ke.current.offsetWidth}}});var rt=pe.useState(K),ot=(0,s.Z)(rt,2),xt=ot[0],gt=ot[1],Pt=pe.useState(r),Mt=(0,s.Z)(Pt,2),Gt=Mt[0],rn=Mt[1],Ht=pe.useState(r),At=(0,s.Z)(Ht,2),vn=At[0],Bt=At[1],mn=pe.useState([]),pn=(0,s.Z)(mn,2),en=pn[0],b=pn[1],O=pe.useState(null),it=(0,s.Z)(O,2),R=it[0],$=it[1],He=pe.useRef(r);He.current=r;function Pe(){var Fe=He.current;rn(Fe),Bt(Fe),b([]),$(null),pt()}(0,Y.Z)(function(){gt(K);var Fe=le(xt,K);if(Fe.key!==null)if(Fe.add){var at=Gt.findIndex(function(Rt){var ue=Rt.key;return ue===Fe.key}),Ct=W(M(Gt,r,Fe.key),x,Ue,je),bt=Gt.slice();bt.splice(at+1,0,et),Bt(bt),b(Ct),$("show")}else{var vt=r.findIndex(function(Rt){var ue=Rt.key;return ue===Fe.key}),zt=W(M(r,Gt,Fe.key),x,Ue,je),Kt=r.slice();Kt.splice(vt+1,0,et),Bt(Kt),b(zt),$("hide")}else Gt!==r&&(rn(r),Bt(r))},[K,r]),pe.useEffect(function(){de||Pe()},[de]);var Ae=Te?vn:r,qe={expandedKeys:K,selectedKeys:y,loadedKeys:L,loadingKeys:J,checkedKeys:z,halfCheckedKeys:l,dragOverNodeKey:Ie,dropPosition:Be,keyEntities:v};return pe.createElement(pe.Fragment,null,C&&De&&pe.createElement("span",{style:c,"aria-live":"assertive"},he(De)),pe.createElement("div",null,pe.createElement("input",{style:c,disabled:Ce===!1||Me,tabIndex:Ce!==!1?k:null,onKeyDown:G,onFocus:ve,onBlur:ze,value:"",onChange:T,"aria-label":"for screen reader"})),pe.createElement("div",{className:"".concat(A,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},pe.createElement("div",{className:"".concat(A,"-indent")},pe.createElement("div",{ref:ke,className:"".concat(A,"-indent-unit")}))),pe.createElement(ee.Z,(0,e.Z)({},tt,{data:Ae,itemKey:we,height:Ue,fullHeight:!1,virtual:x,itemHeight:je,scrollWidth:te,prefixCls:"".concat(A,"-list"),ref:mt,role:"tree",onVisibleChange:function(at){at.every(function(Ct){return we(Ct)!==ne})&&Pe()}}),function(Fe){var at=Fe.pos,Ct=Object.assign({},(fe(Fe.data),Fe.data)),bt=Fe.title,vt=Fe.key,zt=Fe.isStart,Kt=Fe.isEnd,Rt=(0,ge.km)(vt,at);delete Ct.key,delete Ct.children;var ue=(0,ge.H8)(Rt,qe);return pe.createElement(i,(0,e.Z)({},Ct,ue,{title:bt,active:!!De&&vt===De.key,pos:at,data:Fe.data,isStart:zt,isEnd:Kt,motion:Te,motionNodes:vt===ne?en:null,motionType:R,onMotionStart:ut,onMotionEnd:Pe,treeNodeRequiredProps:qe,onMouseMove:function(){Ke(null)}}))}))}),B=Xe,Oe=t(82661),ye=t(34643),ct=t(65065),Le=10,oe=function(f){(0,D.Z)(A,f);var ce=(0,F.Z)(A);function A(){var r;(0,N.Z)(this,A);for(var u=arguments.length,V=new Array(u),K=0;K2&&arguments[2]!==void 0?arguments[2]:!1,l=r.state,v=l.dragChildrenKeys,Me=l.dropPosition,de=l.dropTargetKey,Ie=l.dropTargetPos,Be=l.dropAllowed;if(Be){var Te=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),de!==null){var Ue=(0,p.Z)((0,p.Z)({},(0,ge.H8)(de,r.getTreeNodeRequiredProps())),{},{active:((L=r.getActiveItem())===null||L===void 0?void 0:L.key)===de,data:(0,ct.Z)(r.state.keyEntities,de).node}),je=v.includes(de);(0,Ne.ZP)(!je,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=(0,Oe.yx)(Ie),te={event:y,node:(0,ge.F)(Ue),dragNode:r.dragNodeProps?(0,ge.F)(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(v),dropToGap:Me!==0,dropPosition:Me+Number(x[x.length-1])};J||Te==null||Te(te),r.dragNodeProps=null}}}),(0,n.Z)((0,g.Z)(r),"cleanDragState",function(){var y=r.state.draggingNodeKey;y!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),(0,n.Z)((0,g.Z)(r),"triggerExpandActionExpand",function(y,z){var L=r.state,J=L.expandedKeys,l=L.flattenNodes,v=z.expanded,Me=z.key,de=z.isLeaf;if(!(de||y.shiftKey||y.metaKey||y.ctrlKey)){var Ie=l.filter(function(Te){return Te.key===Me})[0],Be=(0,ge.F)((0,p.Z)((0,p.Z)({},(0,ge.H8)(Me,r.getTreeNodeRequiredProps())),{},{data:Ie.data}));r.setExpandedKeys(v?(0,Oe._5)(J,Me):(0,Oe.L0)(J,Me)),r.onNodeExpand(y,Be)}}),(0,n.Z)((0,g.Z)(r),"onNodeClick",function(y,z){var L=r.props,J=L.onClick,l=L.expandAction;l==="click"&&r.triggerExpandActionExpand(y,z),J==null||J(y,z)}),(0,n.Z)((0,g.Z)(r),"onNodeDoubleClick",function(y,z){var L=r.props,J=L.onDoubleClick,l=L.expandAction;l==="doubleClick"&&r.triggerExpandActionExpand(y,z),J==null||J(y,z)}),(0,n.Z)((0,g.Z)(r),"onNodeSelect",function(y,z){var L=r.state.selectedKeys,J=r.state,l=J.keyEntities,v=J.fieldNames,Me=r.props,de=Me.onSelect,Ie=Me.multiple,Be=z.selected,Te=z[v.key],Ue=!Be;Ue?Ie?L=(0,Oe.L0)(L,Te):L=[Te]:L=(0,Oe._5)(L,Te);var je=L.map(function(x){var te=(0,ct.Z)(l,x);return te?te.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:L}),de==null||de(L,{event:"select",selected:Ue,node:z,selectedNodes:je,nativeEvent:y.nativeEvent})}),(0,n.Z)((0,g.Z)(r),"onNodeCheck",function(y,z,L){var J=r.state,l=J.keyEntities,v=J.checkedKeys,Me=J.halfCheckedKeys,de=r.props,Ie=de.checkStrictly,Be=de.onCheck,Te=z.key,Ue,je={event:"check",node:z,checked:L,nativeEvent:y.nativeEvent};if(Ie){var x=L?(0,Oe.L0)(v,Te):(0,Oe._5)(v,Te),te=(0,Oe._5)(Me,Te);Ue={checked:x,halfChecked:te},je.checkedNodes=x.map(function(ve){return(0,ct.Z)(l,ve)}).filter(Boolean).map(function(ve){return ve.node}),r.setUncontrolledState({checkedKeys:x})}else{var Ce=(0,ye.S)([].concat((0,Q.Z)(v),[Te]),!0,l),De=Ce.checkedKeys,C=Ce.halfCheckedKeys;if(!L){var k=new Set(De);k.delete(Te);var G=(0,ye.S)(Array.from(k),{checked:!1,halfCheckedKeys:C},l);De=G.checkedKeys,C=G.halfCheckedKeys}Ue=De,je.checkedNodes=[],je.checkedNodesPositions=[],je.halfCheckedKeys=C,De.forEach(function(ve){var ze=(0,ct.Z)(l,ve);if(ze){var Ke=ze.node,ut=ze.pos;je.checkedNodes.push(Ke),je.checkedNodesPositions.push({node:Ke,pos:ut})}}),r.setUncontrolledState({checkedKeys:De},!1,{halfCheckedKeys:C})}Be==null||Be(Ue,je)}),(0,n.Z)((0,g.Z)(r),"onNodeLoad",function(y){var z,L=y.key,J=r.state.keyEntities,l=(0,ct.Z)(J,L);if(!(l!=null&&(z=l.children)!==null&&z!==void 0&&z.length)){var v=new Promise(function(Me,de){r.setState(function(Ie){var Be=Ie.loadedKeys,Te=Be===void 0?[]:Be,Ue=Ie.loadingKeys,je=Ue===void 0?[]:Ue,x=r.props,te=x.loadData,Ce=x.onLoad;if(!te||Te.includes(L)||je.includes(L))return null;var De=te(y);return De.then(function(){var C=r.state.loadedKeys,k=(0,Oe.L0)(C,L);Ce==null||Ce(k,{event:"load",node:y}),r.setUncontrolledState({loadedKeys:k}),r.setState(function(G){return{loadingKeys:(0,Oe._5)(G.loadingKeys,L)}}),Me()}).catch(function(C){if(r.setState(function(G){return{loadingKeys:(0,Oe._5)(G.loadingKeys,L)}}),r.loadingRetryTimes[L]=(r.loadingRetryTimes[L]||0)+1,r.loadingRetryTimes[L]>=Le){var k=r.state.loadedKeys;(0,Ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:(0,Oe.L0)(k,L)}),Me()}de(C)}),{loadingKeys:(0,Oe.L0)(je,L)}})});return v.catch(function(){}),v}}),(0,n.Z)((0,g.Z)(r),"onNodeMouseEnter",function(y,z){var L=r.props.onMouseEnter;L==null||L({event:y,node:z})}),(0,n.Z)((0,g.Z)(r),"onNodeMouseLeave",function(y,z){var L=r.props.onMouseLeave;L==null||L({event:y,node:z})}),(0,n.Z)((0,g.Z)(r),"onNodeContextMenu",function(y,z){var L=r.props.onRightClick;L&&(y.preventDefault(),L({event:y,node:z}))}),(0,n.Z)((0,g.Z)(r),"onFocus",function(){var y=r.props.onFocus;r.setState({focused:!0});for(var z=arguments.length,L=new Array(z),J=0;J1&&arguments[1]!==void 0?arguments[1]:!1,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var J=!1,l=!0,v={};Object.keys(y).forEach(function(Me){if(r.props.hasOwnProperty(Me)){l=!1;return}J=!0,v[Me]=y[Me]}),J&&(!z||l)&&r.setState((0,p.Z)((0,p.Z)({},v),L))}}),(0,n.Z)((0,g.Z)(r),"scrollTo",function(y){r.listRef.current.scrollTo(y)}),r}return(0,P.Z)(A,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var u=this.props,V=u.activeKey,K=u.itemScrollOffset,y=K===void 0?0:K;V!==void 0&&V!==this.state.activeKey&&(this.setState({activeKey:V}),V!==null&&this.scrollTo({key:V,offset:y}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var u=this.state,V=u.focused,K=u.flattenNodes,y=u.keyEntities,z=u.draggingNodeKey,L=u.activeKey,J=u.dropLevelOffset,l=u.dropContainerKey,v=u.dropTargetKey,Me=u.dropPosition,de=u.dragOverNodeKey,Ie=u.indent,Be=this.props,Te=Be.prefixCls,Ue=Be.className,je=Be.style,x=Be.showLine,te=Be.focusable,Ce=Be.tabIndex,De=Ce===void 0?0:Ce,C=Be.selectable,k=Be.showIcon,G=Be.icon,ve=Be.switcherIcon,ze=Be.draggable,Ke=Be.checkable,ut=Be.checkStrictly,pt=Be.disabled,tt=Be.motion,mt=Be.loadData,ke=Be.filterTreeNode,rt=Be.height,ot=Be.itemHeight,xt=Be.scrollWidth,gt=Be.virtual,Pt=Be.titleRender,Mt=Be.dropIndicatorRender,Gt=Be.onContextMenu,rn=Be.onScroll,Ht=Be.direction,At=Be.rootClassName,vn=Be.rootStyle,Bt=(0,xe.Z)(this.props,{aria:!0,data:!0}),mn;ze&&((0,m.Z)(ze)==="object"?mn=ze:typeof ze=="function"?mn={nodeDraggable:ze}:mn={});var pn={prefixCls:Te,selectable:C,showIcon:k,icon:G,switcherIcon:ve,draggable:mn,draggingNodeKey:z,checkable:Ke,checkStrictly:ut,disabled:pt,keyEntities:y,dropLevelOffset:J,dropContainerKey:l,dropTargetKey:v,dropPosition:Me,dragOverNodeKey:de,indent:Ie,direction:Ht,dropIndicatorRender:Mt,loadData:mt,filterTreeNode:ke,titleRender:Pt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return pe.createElement(se.k.Provider,{value:pn},pe.createElement("div",{className:w()(Te,Ue,At,(0,n.Z)((0,n.Z)((0,n.Z)({},"".concat(Te,"-show-line"),x),"".concat(Te,"-focused"),V),"".concat(Te,"-active-focused"),L!==null)),style:vn},pe.createElement(B,(0,e.Z)({ref:this.listRef,prefixCls:Te,style:je,data:K,disabled:pt,selectable:C,checkable:!!Ke,motion:tt,dragging:z!==null,height:rt,itemHeight:ot,virtual:gt,focusable:te,focused:V,tabIndex:De,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Gt,onScroll:rn,scrollWidth:xt},this.getTreeNodeRequiredProps(),Bt))))}}],[{key:"getDerivedStateFromProps",value:function(u,V){var K=V.prevProps,y={prevProps:u};function z(De){return!K&&u.hasOwnProperty(De)||K&&K[De]!==u[De]}var L,J=V.fieldNames;if(z("fieldNames")&&(J=(0,ge.w$)(u.fieldNames),y.fieldNames=J),z("treeData")?L=u.treeData:z("children")&&((0,Ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),L=(0,ge.zn)(u.children)),L){y.treeData=L;var l=(0,ge.I8)(L,{fieldNames:J});y.keyEntities=(0,p.Z)((0,n.Z)({},ne,me),l.keyEntities)}var v=y.keyEntities||V.keyEntities;if(z("expandedKeys")||K&&z("autoExpandParent"))y.expandedKeys=u.autoExpandParent||!K&&u.defaultExpandParent?(0,Oe.r7)(u.expandedKeys,v):u.expandedKeys;else if(!K&&u.defaultExpandAll){var Me=(0,p.Z)({},v);delete Me[ne];var de=[];Object.keys(Me).forEach(function(De){var C=Me[De];C.children&&C.children.length&&de.push(C.key)}),y.expandedKeys=de}else!K&&u.defaultExpandedKeys&&(y.expandedKeys=u.autoExpandParent||u.defaultExpandParent?(0,Oe.r7)(u.defaultExpandedKeys,v):u.defaultExpandedKeys);if(y.expandedKeys||delete y.expandedKeys,L||y.expandedKeys){var Ie=(0,ge.oH)(L||V.treeData,y.expandedKeys||V.expandedKeys,J);y.flattenNodes=Ie}if(u.selectable&&(z("selectedKeys")?y.selectedKeys=(0,Oe.BT)(u.selectedKeys,u):!K&&u.defaultSelectedKeys&&(y.selectedKeys=(0,Oe.BT)(u.defaultSelectedKeys,u))),u.checkable){var Be;if(z("checkedKeys")?Be=(0,Oe.E6)(u.checkedKeys)||{}:!K&&u.defaultCheckedKeys?Be=(0,Oe.E6)(u.defaultCheckedKeys)||{}:L&&(Be=(0,Oe.E6)(u.checkedKeys)||{checkedKeys:V.checkedKeys,halfCheckedKeys:V.halfCheckedKeys}),Be){var Te=Be,Ue=Te.checkedKeys,je=Ue===void 0?[]:Ue,x=Te.halfCheckedKeys,te=x===void 0?[]:x;if(!u.checkStrictly){var Ce=(0,ye.S)(je,!0,v);je=Ce.checkedKeys,te=Ce.halfCheckedKeys}y.checkedKeys=je,y.halfCheckedKeys=te}}return z("loadedKeys")&&(y.loadedKeys=u.loadedKeys),y}}]),A}(pe.Component);(0,n.Z)(oe,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:h,allowDrop:function(){return!0},expandAction:!1}),(0,n.Z)(oe,"TreeNode",Ve.Z);var Z=oe,H=Z},82661:function(Yt,Ge,t){t.d(Ge,{BT:function(){return pe},E6:function(){return h},L0:function(){return n},OM:function(){return Ne},_5:function(){return F},r7:function(){return fe},wA:function(){return w},yx:function(){return X}});var e=t(94480),m=t(76190),p=t(48736),Q=t(59301),N=t(639),P=t(65065),g=t(34061),D=null;function F(s,d){if(!s)return[];var Y=s.slice(),ee=Y.indexOf(d);return ee>=0&&Y.splice(ee,1),Y}function n(s,d){var Y=(s||[]).slice();return Y.indexOf(d)===-1&&Y.push(d),Y}function X(s){return s.split("-")}function w(s,d){var Y=[],ee=(0,P.Z)(d,s);function _(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ve.forEach(function(Ee){var ae=Ee.key,ge=Ee.children;Y.push(ae),_(ge)})}return _(ee.children),Y}function I(s){if(s.parent){var d=X(s.pos);return Number(d[d.length-1])===s.parent.children.length-1}return!1}function xe(s){var d=X(s.pos);return Number(d[d.length-1])===0}function Ne(s,d,Y,ee,_,Ve,Ee,ae,ge,re){var S,i=s.clientX,le=s.clientY,M=s.target.getBoundingClientRect(),U=M.top,c=M.height,T=(re==="rtl"?-1:1)*(((_==null?void 0:_.x)||0)-i),ne=(T-12)/ee,q=ge.filter(function(H){var f;return(f=ae[H])===null||f===void 0||(f=f.children)===null||f===void 0?void 0:f.length}),me=(0,P.Z)(ae,Y.eventKey);if(le-1.5?Ve({dragNode:Le,dropNode:oe,dropPosition:1})?Oe=1:Z=!1:Ve({dragNode:Le,dropNode:oe,dropPosition:0})?Oe=0:Ve({dragNode:Le,dropNode:oe,dropPosition:1})?Oe=1:Z=!1:Ve({dragNode:Le,dropNode:oe,dropPosition:1})?Oe=1:Z=!1,{dropPosition:Oe,dropLevelOffset:ye,dropTargetKey:me.key,dropTargetPos:me.pos,dragOverNodeKey:B,dropContainerKey:Oe===0?null:((S=me.parent)===null||S===void 0?void 0:S.key)||null,dropAllowed:Z}}function pe(s,d){if(s){var Y=d.multiple;return Y?s.slice():s.length?[s[0]]:s}}var se=function(d){return d};function Se(s,d){if(!s)return[];var Y=d||{},ee=Y.processProps,_=ee===void 0?se:ee,Ve=Array.isArray(s)?s:[s];return Ve.map(function(Ee){var ae=Ee.children,ge=_objectWithoutProperties(Ee,D),re=Se(ae,d);return React.createElement(TreeNode,_extends({key:ge.key},_(ge)),re)})}function h(s){if(!s)return null;var d;if(Array.isArray(s))d={checkedKeys:s,halfCheckedKeys:void 0};else if((0,m.Z)(s)==="object")d={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,p.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return d}function fe(s,d){var Y=new Set;function ee(_){if(!Y.has(_)){var Ve=(0,P.Z)(d,_);if(Ve){Y.add(_);var Ee=Ve.parent,ae=Ve.node;ae.disabled||Ee&&ee(Ee.key)}}}return(s||[]).forEach(function(_){ee(_)}),(0,e.Z)(Y)}},34643:function(Yt,Ge,t){t.d(Ge,{S:function(){return g}});var e=t(48736),m=t(65065);function p(D,F){var n=new Set;return D.forEach(function(X){F.has(X)||n.add(X)}),n}function Q(D){var F=D||{},n=F.disabled,X=F.disableCheckbox,w=F.checkable;return!!(n||X)||w===!1}function N(D,F,n,X){for(var w=new Set(D),I=new Set,xe=0;xe<=n;xe+=1){var Ne=F.get(xe)||new Set;Ne.forEach(function(h){var fe=h.key,s=h.node,d=h.children,Y=d===void 0?[]:d;w.has(fe)&&!X(s)&&Y.filter(function(ee){return!X(ee.node)}).forEach(function(ee){w.add(ee.key)})})}for(var pe=new Set,se=n;se>=0;se-=1){var Se=F.get(se)||new Set;Se.forEach(function(h){var fe=h.parent,s=h.node;if(!(X(s)||!h.parent||pe.has(h.parent.key))){if(X(h.parent.node)){pe.add(fe.key);return}var d=!0,Y=!1;(fe.children||[]).filter(function(ee){return!X(ee.node)}).forEach(function(ee){var _=ee.key,Ve=w.has(_);d&&!Ve&&(d=!1),!Y&&(Ve||I.has(_))&&(Y=!0)}),d&&w.add(fe.key),Y&&I.add(fe.key),pe.add(fe.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(p(I,w))}}function P(D,F,n,X,w){for(var I=new Set(D),xe=new Set(F),Ne=0;Ne<=X;Ne+=1){var pe=n.get(Ne)||new Set;pe.forEach(function(fe){var s=fe.key,d=fe.node,Y=fe.children,ee=Y===void 0?[]:Y;!I.has(s)&&!xe.has(s)&&!w(d)&&ee.filter(function(_){return!w(_.node)}).forEach(function(_){I.delete(_.key)})})}xe=new Set;for(var se=new Set,Se=X;Se>=0;Se-=1){var h=n.get(Se)||new Set;h.forEach(function(fe){var s=fe.parent,d=fe.node;if(!(w(d)||!fe.parent||se.has(fe.parent.key))){if(w(fe.parent.node)){se.add(s.key);return}var Y=!0,ee=!1;(s.children||[]).filter(function(_){return!w(_.node)}).forEach(function(_){var Ve=_.key,Ee=I.has(Ve);Y&&!Ee&&(Y=!1),!ee&&(Ee||xe.has(Ve))&&(ee=!0)}),Y||I.delete(s.key),ee&&xe.add(s.key),se.add(s.key)}})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(p(xe,I))}}function g(D,F,n,X){var w=[],I;X?I=X:I=Q;var xe=new Set(D.filter(function(Se){var h=!!(0,m.Z)(n,Se);return h||w.push(Se),h})),Ne=new Map,pe=0;Object.keys(n).forEach(function(Se){var h=n[Se],fe=h.level,s=Ne.get(fe);s||(s=new Set,Ne.set(fe,s)),s.add(h),pe=Math.max(pe,fe)}),(0,e.ZP)(!w.length,"Tree missing follow keys: ".concat(w.slice(0,100).map(function(Se){return"'".concat(Se,"'")}).join(", ")));var se;return F===!0?se=N(xe,Ne,pe,I):se=P(xe,F.halfCheckedKeys,Ne,pe,I),se}},65065:function(Yt,Ge,t){t.d(Ge,{Z:function(){return e}});function e(m,p){return m[p]}},34061:function(Yt,Ge,t){t.d(Ge,{F:function(){return fe},H8:function(){return h},I8:function(){return Se},km:function(){return w},oH:function(){return pe},w$:function(){return I},zn:function(){return Ne}});var e=t(76190),m=t(94480),p=t(33885),Q=t(75931),N=t(11592),P=t(2738),g=t(48736),D=t(65065),F=["children"];function n(s,d){return"".concat(s,"-").concat(d)}function X(s){return s&&s.type&&s.type.isTreeNode}function w(s,d){return s!=null?s:d}function I(s){var d=s||{},Y=d.title,ee=d._title,_=d.key,Ve=d.children,Ee=Y||"title";return{title:Ee,_title:ee||[Ee],key:_||"key",children:Ve||"children"}}function xe(s,d){var Y=new Map;function ee(_){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_||[]).forEach(function(Ee){var ae=Ee[d.key],ge=Ee[d.children];warning(ae!=null,"Tree node must have a certain key: [".concat(Ve).concat(ae,"]"));var re=String(ae);warning(!Y.has(re)||ae===null||ae===void 0,"Same 'key' exist in the Tree: ".concat(re)),Y.set(re,!0),ee(ge,"".concat(Ve).concat(re," > "))})}ee(s)}function Ne(s){function d(Y){var ee=(0,N.Z)(Y);return ee.map(function(_){if(!X(_))return(0,g.ZP)(!_,"Tree/TreeNode can only accept TreeNode as children."),null;var Ve=_.key,Ee=_.props,ae=Ee.children,ge=(0,Q.Z)(Ee,F),re=(0,p.Z)({key:Ve},ge),S=d(ae);return S.length&&(re.children=S),re}).filter(function(_){return _})}return d(s)}function pe(s,d,Y){var ee=I(Y),_=ee._title,Ve=ee.key,Ee=ee.children,ae=new Set(d===!0?[]:d),ge=[];function re(S){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return S.map(function(le,M){for(var U=n(i?i.pos:"0",M),c=w(le[Ve],U),T,ne=0;ne<_.length;ne+=1){var q=_[ne];if(le[q]!==void 0){T=le[q];break}}var me=Object.assign((0,P.Z)(le,[].concat((0,m.Z)(_),[Ve,Ee])),{title:T,key:c,parent:i,pos:U,children:null,data:le,isStart:[].concat((0,m.Z)(i?i.isStart:[]),[M===0]),isEnd:[].concat((0,m.Z)(i?i.isEnd:[]),[M===S.length-1])});return ge.push(me),d===!0||ae.has(c)?me.children=re(le[Ee]||[],me):me.children=[],me})}return re(s),ge}function se(s,d,Y){var ee={};(0,e.Z)(Y)==="object"?ee=Y:ee={externalGetKey:Y},ee=ee||{};var _=ee,Ve=_.childrenPropName,Ee=_.externalGetKey,ae=_.fieldNames,ge=I(ae),re=ge.key,S=ge.children,i=Ve||S,le;Ee?typeof Ee=="string"?le=function(c){return c[Ee]}:typeof Ee=="function"&&(le=function(c){return Ee(c)}):le=function(c,T){return w(c[re],T)};function M(U,c,T,ne){var q=U?U[i]:s,me=U?n(T.pos,c):"0",et=U?[].concat((0,m.Z)(ne),[U]):[];if(U){var W=le(U,me),we={node:U,index:c,pos:me,key:W,parentPos:T.node?T.pos:null,level:T.level+1,nodes:et};d(we)}q&&q.forEach(function(he,Xe){M(he,Xe,{node:U,pos:me,level:T?T.level+1:-1},et)})}M(null)}function Se(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=d.initWrapper,ee=d.processEntity,_=d.onProcessFinished,Ve=d.externalGetKey,Ee=d.childrenPropName,ae=d.fieldNames,ge=arguments.length>2?arguments[2]:void 0,re=Ve||ge,S={},i={},le={posEntities:S,keyEntities:i};return Y&&(le=Y(le)||le),se(s,function(M){var U=M.node,c=M.index,T=M.pos,ne=M.key,q=M.parentPos,me=M.level,et=M.nodes,W={node:U,nodes:et,index:c,key:ne,pos:T,level:me},we=w(ne,T);S[T]=W,i[we]=W,W.parent=S[q],W.parent&&(W.parent.children=W.parent.children||[],W.parent.children.push(W)),ee&&ee(W,le)},{externalGetKey:re,childrenPropName:Ee,fieldNames:ae}),_&&_(le),le}function h(s,d){var Y=d.expandedKeys,ee=d.selectedKeys,_=d.loadedKeys,Ve=d.loadingKeys,Ee=d.checkedKeys,ae=d.halfCheckedKeys,ge=d.dragOverNodeKey,re=d.dropPosition,S=d.keyEntities,i=(0,D.Z)(S,s),le={eventKey:s,expanded:Y.indexOf(s)!==-1,selected:ee.indexOf(s)!==-1,loaded:_.indexOf(s)!==-1,loading:Ve.indexOf(s)!==-1,checked:Ee.indexOf(s)!==-1,halfChecked:ae.indexOf(s)!==-1,pos:String(i?i.pos:""),dragOver:ge===s&&re===0,dragOverGapTop:ge===s&&re===-1,dragOverGapBottom:ge===s&&re===1};return le}function fe(s){var d=s.data,Y=s.expanded,ee=s.selected,_=s.checked,Ve=s.loaded,Ee=s.loading,ae=s.halfChecked,ge=s.dragOver,re=s.dragOverGapTop,S=s.dragOverGapBottom,i=s.pos,le=s.active,M=s.eventKey,U=(0,p.Z)((0,p.Z)({},d),{},{expanded:Y,selected:ee,checked:_,loaded:Ve,loading:Ee,halfChecked:ae,dragOver:ge,dragOverGapTop:re,dragOverGapBottom:S,pos:i,active:le,key:M});return"props"in U||Object.defineProperty(U,"props",{get:function(){return(0,g.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),U}},8224:function(Yt,Ge,t){t.d(Ge,{Z:function(){return m}});var e=t(4676);function m(p,Q,N,P){var g=e.unstable_batchedUpdates?function(F){e.unstable_batchedUpdates(N,F)}:N;return p!=null&&p.addEventListener&&p.addEventListener(Q,g,P),{remove:function(){p!=null&&p.removeEventListener&&p.removeEventListener(Q,g,P)}}}},24514:function(Yt,Ge,t){t.d(Ge,{G:function(){return Q}});var e=t(47273),m=function(P){if((0,e.Z)()&&window.document.documentElement){var g=Array.isArray(P)?P:[P],D=window.document.documentElement;return g.some(function(F){return F in D.style})}return!1},p=function(P,g){if(!m(P))return!1;var D=document.createElement("div"),F=D.style[P];return D.style[P]=g,D.style[P]!==F};function Q(N,P){return!Array.isArray(N)&&P!==void 0?p(N,P):m(N)}},49658:function(Yt,Ge){Ge.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))}},48911:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Le}});var e=t(54476),m=t(76190),p=t(33885),Q=t(20068),N=t(42978),P=t(75931),g=t(92310),D=t.n(g),F=t(29301),n=t(70425),X=t(34280),w=t(59301),I=t(4676),xe=w.forwardRef(function(oe,Z){var H=oe.height,f=oe.offsetY,ce=oe.offsetX,A=oe.children,r=oe.prefixCls,u=oe.onInnerResize,V=oe.innerProps,K=oe.rtl,y=oe.extra,z={},L={display:"flex",flexDirection:"column"};return f!==void 0&&(z={height:H,position:"relative",overflow:"hidden"},L=(0,p.Z)((0,p.Z)({},L),{},(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)({transform:"translateY(".concat(f,"px)")},K?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),w.createElement("div",{style:z},w.createElement(F.Z,{onResize:function(l){var v=l.offsetHeight;v&&u&&u()}},w.createElement("div",(0,e.Z)({style:L,className:D()((0,Q.Z)({},"".concat(r,"-holder-inner"),r)),ref:Z},V),A,y)))});xe.displayName="Filler";var Ne=xe;function pe(oe){var Z=oe.children,H=oe.setRef,f=w.useCallback(function(ce){H(ce)},[]);return w.cloneElement(Z,{ref:f})}function se(oe,Z,H,f,ce,A,r,u){var V=u.getKey;return oe.slice(Z,H+1).map(function(K,y){var z=Z+y,L=r(K,z,{style:{width:f},offsetX:ce}),J=V(K);return w.createElement(pe,{key:J,setRef:function(v){return A(K,v)}},L)})}function Se(oe,Z,H,f){var ce=H-oe,A=Z-H,r=Math.min(ce,A)*2;if(f<=r){var u=Math.floor(f/2);return f%2?H+u+1:H-u}return ce>A?H-(f-A):H+(f-ce)}function h(oe,Z,H){var f=oe.length,ce=Z.length,A,r;if(f===0&&ce===0)return null;f2&&arguments[2]!==void 0?arguments[2]:!1,z=V?K<0&&u.current.left||K>0&&u.current.right:K<0&&u.current.top||K>0&&u.current.bottom;return y&&z?(clearTimeout(A.current),ce.current=!1):(!z||ce.current)&&r(),!ce.current&&z}};function _(oe,Z,H,f,ce,A,r){var u=(0,w.useRef)(0),V=(0,w.useRef)(null),K=(0,w.useRef)(null),y=(0,w.useRef)(!1),z=ee(Z,H,f,ce);function L(Ie,Be){if(s.Z.cancel(V.current),!z(!1,Be)){var Te=Ie;if(!Te._virtualHandled)Te._virtualHandled=!0;else return;u.current+=Be,K.current=Be,Y||Te.preventDefault(),V.current=(0,s.Z)(function(){var Ue=y.current?10:1;r(u.current*Ue,!1),u.current=0})}}function J(Ie,Be){r(Be,!0),Y||Ie.preventDefault()}var l=(0,w.useRef)(null),v=(0,w.useRef)(null);function Me(Ie){if(oe){s.Z.cancel(v.current),v.current=(0,s.Z)(function(){l.current=null},2);var Be=Ie.deltaX,Te=Ie.deltaY,Ue=Ie.shiftKey,je=Be,x=Te;(l.current==="sx"||!l.current&&Ue&&Te&&!Be)&&(je=Te,x=0,l.current="sx");var te=Math.abs(je),Ce=Math.abs(x);l.current===null&&(l.current=A&&te>Ce?"x":"y"),l.current==="y"?L(Ie,x):J(Ie,je)}}function de(Ie){oe&&(y.current=Ie.detail===K.current)}return[Me,de]}function Ve(oe,Z,H,f){var ce=w.useMemo(function(){return[new Map,[]]},[oe,H.id,f]),A=(0,N.Z)(ce,2),r=A[0],u=A[1],V=function(y){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y,L=r.get(y),J=r.get(z);if(L===void 0||J===void 0)for(var l=oe.length,v=u.length;v0&&arguments[0]!==void 0?arguments[0]:!1;y();var l=function(){var de=!1;u.current.forEach(function(Ie,Be){if(Ie&&Ie.offsetParent){var Te=Ie.offsetHeight,Ue=getComputedStyle(Ie),je=Ue.marginTop,x=Ue.marginBottom,te=S(je),Ce=S(x),De=Te+te+Ce;V.current.get(Be)!==De&&(V.current.set(Be,De),de=!0)}}),de&&r(function(Ie){return Ie+1})};if(J)l();else{K.current+=1;var v=K.current;Promise.resolve().then(function(){v===K.current&&l()})}}function L(J,l){var v=oe(J),Me=u.current.get(v);l?(u.current.set(v,l),z()):u.current.delete(v),!Me!=!l&&(l?Z==null||Z(J):H==null||H(J))}return(0,w.useEffect)(function(){return y},[]),[L,z,V.current,A]}var le=14/15;function M(oe,Z,H){var f=(0,w.useRef)(!1),ce=(0,w.useRef)(0),A=(0,w.useRef)(0),r=(0,w.useRef)(null),u=(0,w.useRef)(null),V,K=function(J){if(f.current){var l=Math.ceil(J.touches[0].pageX),v=Math.ceil(J.touches[0].pageY),Me=ce.current-l,de=A.current-v,Ie=Math.abs(Me)>Math.abs(de);Ie?ce.current=l:A.current=v;var Be=H(Ie,Ie?Me:de,!1,J);Be&&J.preventDefault(),clearInterval(u.current),Be&&(u.current=setInterval(function(){Ie?Me*=le:de*=le;var Te=Math.floor(Ie?Me:de);(!H(Ie,Te,!0)||Math.abs(Te)<=.1)&&clearInterval(u.current)},16))}},y=function(){f.current=!1,V()},z=function(J){V(),J.touches.length===1&&!f.current&&(f.current=!0,ce.current=Math.ceil(J.touches[0].pageX),A.current=Math.ceil(J.touches[0].pageY),r.current=J.target,r.current.addEventListener("touchmove",K,{passive:!1}),r.current.addEventListener("touchend",y,{passive:!0}))};V=function(){r.current&&(r.current.removeEventListener("touchmove",K),r.current.removeEventListener("touchend",y))},(0,X.Z)(function(){return oe&&Z.current.addEventListener("touchstart",z,{passive:!0}),function(){var L;(L=Z.current)===null||L===void 0||L.removeEventListener("touchstart",z),V(),clearInterval(u.current)}},[oe])}function U(oe){return Math.floor(Math.pow(oe,.5))}function c(oe,Z){var H="touches"in oe?oe.touches[0]:oe;return H[Z?"pageX":"pageY"]-window[Z?"scrollX":"scrollY"]}function T(oe,Z,H){w.useEffect(function(){var f=Z.current;if(oe&&f){var ce=!1,A,r,u=function(){s.Z.cancel(A)},V=function L(){u(),A=(0,s.Z)(function(){H(r),L()})},K=function(){ce=!1,u()},y=function(J){if(!(J.target.draggable||J.button!==0)){var l=J;l._virtualHandled||(l._virtualHandled=!0,ce=!0)}},z=function(J){if(ce){var l=c(J,!1),v=f.getBoundingClientRect(),Me=v.top,de=v.bottom;if(l<=Me){var Ie=Me-l;r=-U(Ie),V()}else if(l>=de){var Be=l-de;r=U(Be),V()}else u()}};return f.addEventListener("mousedown",y),f.ownerDocument.addEventListener("mouseup",K),f.ownerDocument.addEventListener("mousemove",z),f.ownerDocument.addEventListener("dragend",K),function(){f.removeEventListener("mousedown",y),f.ownerDocument.removeEventListener("mouseup",K),f.ownerDocument.removeEventListener("mousemove",z),f.ownerDocument.removeEventListener("dragend",K),u()}}},[oe])}var ne=10;function q(oe,Z,H,f,ce,A,r,u){var V=w.useRef(),K=w.useState(null),y=(0,N.Z)(K,2),z=y[0],L=y[1];return(0,X.Z)(function(){if(z&&z.times=0;ve-=1){var ze=ce(Z[ve]),Ke=H.get(ze);if(Ke===void 0){Ie=!0;break}if(G-=Ke,G<=0)break}switch(Ue){case"top":Te=x-Me;break;case"bottom":Te=te-de+Me;break;default:{var ut=oe.current.scrollTop,pt=ut+de;xpt&&(Be="bottom")}}Te!==null&&r(Te),Te!==z.lastTop&&(Ie=!0)}Ie&&L((0,p.Z)((0,p.Z)({},z),{},{times:z.times+1,targetAlign:Be,lastTop:Te}))}},[z,oe.current]),function(J){if(J==null){u();return}if(s.Z.cancel(V.current),typeof J=="number")r(J);else if(J&&(0,m.Z)(J)==="object"){var l,v=J.align;"index"in J?l=J.index:l=Z.findIndex(function(Ie){return ce(Ie)===J.key});var Me=J.offset,de=Me===void 0?0:Me;L({times:0,index:l,offset:de,originAlign:v})}}}var me=w.forwardRef(function(oe,Z){var H=oe.prefixCls,f=oe.rtl,ce=oe.scrollOffset,A=oe.scrollRange,r=oe.onStartMove,u=oe.onStopMove,V=oe.onScroll,K=oe.horizontal,y=oe.spinSize,z=oe.containerSize,L=oe.style,J=oe.thumbStyle,l=oe.showScrollBar,v=w.useState(!1),Me=(0,N.Z)(v,2),de=Me[0],Ie=Me[1],Be=w.useState(null),Te=(0,N.Z)(Be,2),Ue=Te[0],je=Te[1],x=w.useState(null),te=(0,N.Z)(x,2),Ce=te[0],De=te[1],C=!f,k=w.useRef(),G=w.useRef(),ve=w.useState(l),ze=(0,N.Z)(ve,2),Ke=ze[0],ut=ze[1],pt=w.useRef(),tt=function(){l===!0||l===!1||(clearTimeout(pt.current),ut(!0),pt.current=setTimeout(function(){ut(!1)},3e3))},mt=A-z||0,ke=z-y||0,rt=w.useMemo(function(){if(ce===0||mt===0)return 0;var At=ce/mt;return At*ke},[ce,mt,ke]),ot=function(vn){vn.stopPropagation(),vn.preventDefault()},xt=w.useRef({top:rt,dragging:de,pageY:Ue,startTop:Ce});xt.current={top:rt,dragging:de,pageY:Ue,startTop:Ce};var gt=function(vn){Ie(!0),je(c(vn,K)),De(xt.current.top),r(),vn.stopPropagation(),vn.preventDefault()};w.useEffect(function(){var At=function(pn){pn.preventDefault()},vn=k.current,Bt=G.current;return vn.addEventListener("touchstart",At,{passive:!1}),Bt.addEventListener("touchstart",gt,{passive:!1}),function(){vn.removeEventListener("touchstart",At),Bt.removeEventListener("touchstart",gt)}},[]);var Pt=w.useRef();Pt.current=mt;var Mt=w.useRef();Mt.current=ke,w.useEffect(function(){if(de){var At,vn=function(pn){var en=xt.current,b=en.dragging,O=en.pageY,it=en.startTop;s.Z.cancel(At);var R=k.current.getBoundingClientRect(),$=z/(K?R.width:R.height);if(b){var He=(c(pn,K)-O)*$,Pe=it;!C&&K?Pe-=He:Pe+=He;var Ae=Pt.current,qe=Mt.current,Fe=qe?Pe/qe:0,at=Math.ceil(Fe*Ae);at=Math.max(at,0),at=Math.min(at,Ae),At=(0,s.Z)(function(){V(at,K)})}},Bt=function(){Ie(!1),u()};return window.addEventListener("mousemove",vn,{passive:!0}),window.addEventListener("touchmove",vn,{passive:!0}),window.addEventListener("mouseup",Bt,{passive:!0}),window.addEventListener("touchend",Bt,{passive:!0}),function(){window.removeEventListener("mousemove",vn),window.removeEventListener("touchmove",vn),window.removeEventListener("mouseup",Bt),window.removeEventListener("touchend",Bt),s.Z.cancel(At)}}},[de]),w.useEffect(function(){return tt(),function(){clearTimeout(pt.current)}},[ce]),w.useImperativeHandle(Z,function(){return{delayHidden:tt}});var Gt="".concat(H,"-scrollbar"),rn={position:"absolute",visibility:Ke?null:"hidden"},Ht={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return K?(Object.assign(rn,{height:8,left:0,right:0,bottom:0}),Object.assign(Ht,(0,Q.Z)({height:"100%",width:y},C?"left":"right",rt))):(Object.assign(rn,(0,Q.Z)({width:8,top:0,bottom:0},C?"right":"left",0)),Object.assign(Ht,{width:"100%",height:y,top:rt})),w.createElement("div",{ref:k,className:D()(Gt,(0,Q.Z)((0,Q.Z)((0,Q.Z)({},"".concat(Gt,"-horizontal"),K),"".concat(Gt,"-vertical"),!K),"".concat(Gt,"-visible"),Ke)),style:(0,p.Z)((0,p.Z)({},rn),L),onMouseDown:ot,onMouseMove:tt},w.createElement("div",{ref:G,className:D()("".concat(Gt,"-thumb"),(0,Q.Z)({},"".concat(Gt,"-thumb-moving"),de)),style:(0,p.Z)((0,p.Z)({},Ht),J),onMouseDown:gt}))}),et=me,W=20;function we(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=oe/Z*oe;return isNaN(H)&&(H=0),H=Math.max(H,W),Math.floor(H)}var he=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Xe=[],B={overflowY:"auto",overflowAnchor:"none"};function Oe(oe,Z){var H=oe.prefixCls,f=H===void 0?"rc-virtual-list":H,ce=oe.className,A=oe.height,r=oe.itemHeight,u=oe.fullHeight,V=u===void 0?!0:u,K=oe.style,y=oe.data,z=oe.children,L=oe.itemKey,J=oe.virtual,l=oe.direction,v=oe.scrollWidth,Me=oe.component,de=Me===void 0?"div":Me,Ie=oe.onScroll,Be=oe.onVirtualScroll,Te=oe.onVisibleChange,Ue=oe.innerProps,je=oe.extraRender,x=oe.styles,te=oe.showScrollBar,Ce=te===void 0?"optional":te,De=(0,P.Z)(oe,he),C=w.useCallback(function(yt){return typeof L=="function"?L(yt):yt==null?void 0:yt[L]},[L]),k=i(C,null,null),G=(0,N.Z)(k,4),ve=G[0],ze=G[1],Ke=G[2],ut=G[3],pt=!!(J!==!1&&A&&r),tt=w.useMemo(function(){return Object.values(Ke.maps).reduce(function(yt,Et){return yt+Et},0)},[Ke.id,Ke.maps]),mt=pt&&y&&(Math.max(r*y.length,tt)>A||!!v),ke=l==="rtl",rt=D()(f,(0,Q.Z)({},"".concat(f,"-rtl"),ke),ce),ot=y||Xe,xt=(0,w.useRef)(),gt=(0,w.useRef)(),Pt=(0,w.useRef)(),Mt=(0,w.useState)(0),Gt=(0,N.Z)(Mt,2),rn=Gt[0],Ht=Gt[1],At=(0,w.useState)(0),vn=(0,N.Z)(At,2),Bt=vn[0],mn=vn[1],pn=(0,w.useState)(!1),en=(0,N.Z)(pn,2),b=en[0],O=en[1],it=function(){O(!0)},R=function(){O(!1)},$={getKey:C};function He(yt){Ht(function(Et){var It;typeof yt=="function"?It=yt(Et):It=yt;var wt=Xt(It);return xt.current.scrollTop=wt,wt})}var Pe=(0,w.useRef)({start:0,end:ot.length}),Ae=(0,w.useRef)(),qe=fe(ot,C),Fe=(0,N.Z)(qe,1),at=Fe[0];Ae.current=at;var Ct=w.useMemo(function(){if(!pt)return{scrollHeight:void 0,start:0,end:ot.length-1,offset:void 0};if(!mt){var yt;return{scrollHeight:((yt=gt.current)===null||yt===void 0?void 0:yt.offsetHeight)||0,start:0,end:ot.length-1,offset:void 0}}for(var Et=0,It,wt,kt,nn=ot.length,Tn=0;Tn=rn&&It===void 0&&(It=Tn,wt=Et),Sr>rn+A&&kt===void 0&&(kt=Tn),Et=Sr}return It===void 0&&(It=0,wt=0,kt=Math.ceil(A/r)),kt===void 0&&(kt=ot.length-1),kt=Math.min(kt+1,ot.length-1),{scrollHeight:Et,start:It,end:kt,offset:wt}},[mt,pt,rn,ot,ut,A]),bt=Ct.scrollHeight,vt=Ct.start,zt=Ct.end,Kt=Ct.offset;Pe.current.start=vt,Pe.current.end=zt,w.useLayoutEffect(function(){var yt=Ke.getRecord();if(yt.size===1){var Et=Array.from(yt.keys())[0],It=yt.get(Et),wt=ot[vt];if(wt&&It===void 0){var kt=C(wt);if(kt===Et){var nn=Ke.get(Et),Tn=nn-r;He(function(Rn){return Rn+Tn})}}}Ke.resetRecord()},[bt]);var Rt=w.useState({width:0,height:A}),ue=(0,N.Z)(Rt,2),Re=ue[0],Ze=ue[1],Ye=function(Et){Ze({width:Et.offsetWidth,height:Et.offsetHeight})},_e=(0,w.useRef)(),nt=(0,w.useRef)(),ft=w.useMemo(function(){return we(Re.width,v)},[Re.width,v]),Ot=w.useMemo(function(){return we(Re.height,bt)},[Re.height,bt]),Dt=bt-A,Ft=(0,w.useRef)(Dt);Ft.current=Dt;function Xt(yt){var Et=yt;return Number.isNaN(Ft.current)||(Et=Math.min(Et,Ft.current)),Et=Math.max(Et,0),Et}var Tt=rn<=0,Zt=rn>=Dt,jt=Bt<=0,Qt=Bt>=v,an=ee(Tt,Zt,jt,Qt),$t=function(){return{x:ke?-Bt:Bt,y:rn}},Vt=(0,w.useRef)($t()),En=(0,n.zX)(function(yt){if(Be){var Et=(0,p.Z)((0,p.Z)({},$t()),yt);(Vt.current.x!==Et.x||Vt.current.y!==Et.y)&&(Be(Et),Vt.current=Et)}});function un(yt,Et){var It=yt;Et?((0,I.flushSync)(function(){mn(It)}),En()):He(It)}function sn(yt){var Et=yt.currentTarget.scrollTop;Et!==rn&&He(Et),Ie==null||Ie(yt),En()}var bn=function(Et){var It=Et,wt=v?v-Re.width:0;return It=Math.max(It,0),It=Math.min(It,wt),It},Wt=(0,n.zX)(function(yt,Et){Et?((0,I.flushSync)(function(){mn(function(It){var wt=It+(ke?-yt:yt);return bn(wt)})}),En()):He(function(It){var wt=It+yt;return wt})}),Jt=_(pt,Tt,Zt,jt,Qt,!!v,Wt),Pn=(0,N.Z)(Jt,2),Dn=Pn[0],Un=Pn[1];M(pt,xt,function(yt,Et,It,wt){var kt=wt;return an(yt,Et,It)?!1:!kt||!kt._virtualHandled?(kt&&(kt._virtualHandled=!0),Dn({preventDefault:function(){},deltaX:yt?Et:0,deltaY:yt?0:Et}),!0):!1}),T(mt,xt,function(yt){He(function(Et){return Et+yt})}),(0,X.Z)(function(){function yt(It){var wt=Tt&&It.detail<0,kt=Zt&&It.detail>0;pt&&!wt&&!kt&&It.preventDefault()}var Et=xt.current;return Et.addEventListener("wheel",Dn,{passive:!1}),Et.addEventListener("DOMMouseScroll",Un,{passive:!0}),Et.addEventListener("MozMousePixelScroll",yt,{passive:!1}),function(){Et.removeEventListener("wheel",Dn),Et.removeEventListener("DOMMouseScroll",Un),Et.removeEventListener("MozMousePixelScroll",yt)}},[pt,Tt,Zt]),(0,X.Z)(function(){if(v){var yt=bn(Bt);mn(yt),En({x:yt})}},[Re.width,v]);var Mn=function(){var Et,It;(Et=_e.current)===null||Et===void 0||Et.delayHidden(),(It=nt.current)===null||It===void 0||It.delayHidden()},Vn=q(xt,ot,Ke,r,C,function(){return ze(!0)},He,Mn);w.useImperativeHandle(Z,function(){return{nativeElement:Pt.current,getScrollInfo:$t,scrollTo:function(Et){function It(wt){return wt&&(0,m.Z)(wt)==="object"&&("left"in wt||"top"in wt)}It(Et)?(Et.left!==void 0&&mn(bn(Et.left)),Vn(Et.top)):Vn(Et)}}}),(0,X.Z)(function(){if(Te){var yt=ot.slice(vt,zt+1);Te(yt,ot)}},[vt,zt,ot]);var Jn=Ve(ot,C,Ke,r),rr=je==null?void 0:je({start:vt,end:zt,virtual:mt,offsetX:Bt,offsetY:Kt,rtl:ke,getSize:Jn}),ar=se(ot,vt,zt,v,Bt,ve,z,$),qn=null;A&&(qn=(0,p.Z)((0,Q.Z)({},V?"height":"maxHeight",A),B),pt&&(qn.overflowY="hidden",v&&(qn.overflowX="hidden"),b&&(qn.pointerEvents="none")));var Lt={};return ke&&(Lt.dir="rtl"),w.createElement("div",(0,e.Z)({ref:Pt,style:(0,p.Z)((0,p.Z)({},K),{},{position:"relative"}),className:rt},Lt,De),w.createElement(F.Z,{onResize:Ye},w.createElement(de,{className:"".concat(f,"-holder"),style:qn,ref:xt,onScroll:sn,onMouseEnter:Mn},w.createElement(Ne,{prefixCls:f,height:bt,offsetX:Bt,offsetY:Kt,scrollWidth:v,onInnerResize:ze,ref:gt,innerProps:Ue,rtl:ke,extra:rr},ar))),mt&&bt>A&&w.createElement(et,{ref:_e,prefixCls:f,scrollOffset:rn,scrollRange:bt,rtl:ke,onScroll:un,onStartMove:it,onStopMove:R,spinSize:Ot,containerSize:Re.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb,showScrollBar:Ce}),mt&&v>Re.width&&w.createElement(et,{ref:nt,prefixCls:f,scrollOffset:Bt,scrollRange:v,rtl:ke,onScroll:un,onStartMove:it,onStopMove:R,spinSize:ft,containerSize:Re.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb,showScrollBar:Ce}))}var ye=w.forwardRef(Oe);ye.displayName="List";var ct=ye,Le=ct},76374:function(Yt,Ge,t){var e=function(){if(typeof Map!="undefined")return Map;function re(S,i){var le=-1;return S.some(function(M,U){return M[0]===i?(le=U,!0):!1}),le}return function(){function S(){this.__entries__=[]}return Object.defineProperty(S.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),S.prototype.get=function(i){var le=re(this.__entries__,i),M=this.__entries__[le];return M&&M[1]},S.prototype.set=function(i,le){var M=re(this.__entries__,i);~M?this.__entries__[M][1]=le:this.__entries__.push([i,le])},S.prototype.delete=function(i){var le=this.__entries__,M=re(le,i);~M&&le.splice(M,1)},S.prototype.has=function(i){return!!~re(this.__entries__,i)},S.prototype.clear=function(){this.__entries__.splice(0)},S.prototype.forEach=function(i,le){le===void 0&&(le=null);for(var M=0,U=this.__entries__;M0},re.prototype.connect_=function(){!m||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),F?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},re.prototype.disconnect_=function(){!m||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},re.prototype.onTransitionEnd_=function(S){var i=S.propertyName,le=i===void 0?"":i,M=D.some(function(U){return!!~le.indexOf(U)});M&&this.refresh()},re.getInstance=function(){return this.instance_||(this.instance_=new re),this.instance_},re.instance_=null,re}(),X=function(re,S){for(var i=0,le=Object.keys(S);i0},re}(),Ee=typeof WeakMap!="undefined"?new WeakMap:new e,ae=function(){function re(S){if(!(this instanceof re))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=n.getInstance(),le=new Ve(S,i,this);Ee.set(this,le)}return re}();["observe","unobserve","disconnect"].forEach(function(re){ae.prototype[re]=function(){var S;return(S=Ee.get(this))[re].apply(S,arguments)}});var ge=function(){return typeof p.ResizeObserver!="undefined"?p.ResizeObserver:ae}();Ge.Z=ge}}]); diff --git a/p__Paperlibrary__Random__Detail__index.b545987d.async.js b/p__Paperlibrary__Random__Detail__index.b545987d.async.js deleted file mode 100644 index cc64cc3009..0000000000 --- a/p__Paperlibrary__Random__Detail__index.b545987d.async.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3784],{89489:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},59477:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},40001:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},49198:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},84105:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},18785:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},73331:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},15277:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},52671:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},8657:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},56082:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},33853:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},15075:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},62772:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},43531:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},47472:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},87395:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(54476),m=t(59301),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Q=p,N=t(7657),P=function(n,J){return m.createElement(N.Z,(0,e.Z)({},n,{ref:J,icon:Q}))},g=m.forwardRef(P),D=g},65030:function(Yt,Ge,t){t.d(Ge,{Z:function(){return re}});var e=t(33885),m=t(42978),p=t(75931),Q=t(43403),N=t(92310),P=t.n(N),g=t(29301),D=t(76846),F=t(96452),n=t(6089),J=t(80402),O=t(34280),I=t(49658),Se=t(59301),Ne=t(54476),ge=t(77900),se=t(8654);function ve(T){var H=T.prefixCls,d=T.align,ce=T.arrow,Z=T.arrowPos,r=ce||{},u=r.className,V=r.content,K=Z.x,y=K===void 0?0:K,A=Z.y,L=A===void 0?0:A,q=Se.useRef();if(!d||!d.points)return null;var i={position:"absolute"};if(d.autoArrow!==!1){var v=d.points[0],Me=d.points[1],fe=v[0],Ie=v[1],Be=Me[0],Te=Me[1];fe===Be||!["t","b"].includes(fe)?i.top=L:fe==="t"?i.top=0:i.bottom=0,Ie===Te||!["l","r"].includes(Ie)?i.left=y:Ie==="l"?i.left=0:i.right=0}return Se.createElement("div",{ref:q,className:P()("".concat(H,"-arrow"),u),style:i},V)}function h(T){var H=T.prefixCls,d=T.open,ce=T.zIndex,Z=T.mask,r=T.motion;return Z?Se.createElement(ge.default,(0,Ne.Z)({},r,{motionAppear:!0,visible:d,removeOnLeave:!0}),function(u){var V=u.className;return Se.createElement("div",{style:{zIndex:ce},className:P()("".concat(H,"-mask"),V)})}):null}var de=Se.memo(function(T){var H=T.children;return H},function(T,H){return H.cache}),s=de,f=Se.forwardRef(function(T,H){var d=T.popup,ce=T.className,Z=T.prefixCls,r=T.style,u=T.target,V=T.onVisibleChanged,K=T.open,y=T.keepDom,A=T.fresh,L=T.onClick,q=T.mask,i=T.arrow,v=T.arrowPos,Me=T.align,fe=T.motion,Ie=T.maskMotion,Be=T.forceRender,Te=T.getPopupContainer,Ue=T.autoDestroy,je=T.portal,x=T.zIndex,ne=T.onMouseEnter,Ce=T.onMouseLeave,De=T.onPointerEnter,S=T.onPointerDownCapture,X=T.ready,U=T.offsetX,me=T.offsetY,ze=T.offsetR,Ke=T.offsetB,ut=T.onAlign,pt=T.onPrepare,tt=T.stretch,mt=T.targetWidth,ke=T.targetHeight,rt=typeof d=="function"?d():d,ot=K||y,xt=(Te==null?void 0:Te.length)>0,gt=Se.useState(!Te||!xt),Pt=(0,m.Z)(gt,2),Mt=Pt[0],Gt=Pt[1];if((0,O.Z)(function(){!Mt&&xt&&u&&Gt(!0)},[Mt,xt,u]),!Mt)return null;var rn="auto",Ht={left:"-1000vw",top:"-1000vh",right:rn,bottom:rn};if(X||!K){var At,vn=Me.points,Bt=Me.dynamicInset||((At=Me._experimental)===null||At===void 0?void 0:At.dynamicInset),mn=Bt&&vn[0][1]==="r",pn=Bt&&vn[0][0]==="b";mn?(Ht.right=ze,Ht.left=rn):(Ht.left=U,Ht.right=rn),pn?(Ht.bottom=Ke,Ht.top=rn):(Ht.top=me,Ht.bottom=rn)}var en={};return tt&&(tt.includes("height")&&ke?en.height=ke:tt.includes("minHeight")&&ke&&(en.minHeight=ke),tt.includes("width")&&mt?en.width=mt:tt.includes("minWidth")&&mt&&(en.minWidth=mt)),K||(en.pointerEvents="none"),Se.createElement(je,{open:Be||ot,getContainer:Te&&function(){return Te(u)},autoDestroy:Ue},Se.createElement(h,{prefixCls:Z,open:K,zIndex:x,mask:q,motion:Ie}),Se.createElement(g.Z,{onResize:ut,disabled:!K},function(b){return Se.createElement(ge.default,(0,Ne.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Be,leavedClassName:"".concat(Z,"-hidden")},fe,{onAppearPrepare:pt,onEnterPrepare:pt,visible:K,onVisibleChanged:function(it){var R;fe==null||(R=fe.onVisibleChanged)===null||R===void 0||R.call(fe,it),V(it)}}),function(w,it){var R=w.className,$=w.style,He=P()(Z,R,ce);return Se.createElement("div",{ref:(0,se.sQ)(b,H,it),className:He,style:(0,e.Z)((0,e.Z)((0,e.Z)((0,e.Z)({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Ht),en),$),{},{boxSizing:"border-box",zIndex:x},r),onMouseEnter:ne,onMouseLeave:Ce,onPointerEnter:De,onClick:L,onPointerDownCapture:S},i&&Se.createElement(ve,{prefixCls:Z,arrow:i,arrowPos:v,align:Me}),Se.createElement(s,{cache:!K&&!A},rt))})}))}),Y=f,ee=Se.forwardRef(function(T,H){var d=T.children,ce=T.getTriggerDOMNode,Z=(0,se.Yr)(d),r=Se.useCallback(function(V){(0,se.mH)(H,ce?ce(V):V)},[ce]),u=(0,se.x1)(r,(0,se.C4)(d));return Z?Se.cloneElement(d,{ref:u}):d}),te=ee,Ve=Se.createContext(null),we=Ve;function k(T){return T?Array.isArray(T)?T:[T]:[]}function Oe(T,H,d,ce){return Se.useMemo(function(){var Z=k(d!=null?d:H),r=k(ce!=null?ce:H),u=new Set(Z),V=new Set(r);return T&&(u.has("hover")&&(u.delete("hover"),u.add("click")),V.has("hover")&&(V.delete("hover"),V.add("click"))),[u,V]},[T,H,d,ce])}var ae=t(29194);function C(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=arguments.length>2?arguments[2]:void 0;return d?T[0]===H[0]:T[0]===H[0]&&T[1]===H[1]}function l(T,H,d,ce){for(var Z=d.points,r=Object.keys(T),u=0;u1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(T)?H:T}function B(T){return c(parseFloat(T),0)}function oe(T,H){var d=(0,e.Z)({},T);return(H||[]).forEach(function(ce){if(!(ce instanceof HTMLBodyElement||ce instanceof HTMLHtmlElement)){var Z=z(ce).getComputedStyle(ce),r=Z.overflow,u=Z.overflowClipMargin,V=Z.borderTopWidth,K=Z.borderBottomWidth,y=Z.borderLeftWidth,A=Z.borderRightWidth,L=ce.getBoundingClientRect(),q=ce.offsetHeight,i=ce.clientHeight,v=ce.offsetWidth,Me=ce.clientWidth,fe=B(V),Ie=B(K),Be=B(y),Te=B(A),Ue=c(Math.round(L.width/v*1e3)/1e3),je=c(Math.round(L.height/q*1e3)/1e3),x=(v-Me-Be-Te)*Ue,ne=(q-i-fe-Ie)*je,Ce=fe*je,De=Ie*je,S=Be*Ue,X=Te*Ue,U=0,me=0;if(r==="clip"){var ze=B(u);U=ze*Ue,me=ze*je}var Ke=L.x+S-U,ut=L.y+Ce-me,pt=Ke+L.width+2*U-S-X-x,tt=ut+L.height+2*me-Ce-De-ne;d.left=Math.max(d.left,Ke),d.top=Math.max(d.top,ut),d.right=Math.min(d.right,pt),d.bottom=Math.min(d.bottom,tt)}}),d}function G(T){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d="".concat(H),ce=d.match(/^(.*)\%$/);return ce?T*(parseFloat(ce[1])/100):parseFloat(d)}function ye(T,H){var d=H||[],ce=(0,m.Z)(d,2),Z=ce[0],r=ce[1];return[G(T.width,Z),G(T.height,r)]}function et(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[T[0],T[1]]}function _(T,H){var d=H[0],ce=H[1],Z,r;return d==="t"?r=T.y:d==="b"?r=T.y+T.height:r=T.y+T.height/2,ce==="l"?Z=T.x:ce==="r"?Z=T.x+T.width:Z=T.x+T.width/2,{x:Z,y:r}}function xe(T,H){var d={t:"b",b:"t",l:"r",r:"l"};return T.map(function(ce,Z){return Z===H?d[ce]||"c":ce}).join("")}function pe(T,H,d,ce,Z,r,u){var V=Se.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Z[ce]||{}}),K=(0,m.Z)(V,2),y=K[0],A=K[1],L=Se.useRef(0),q=Se.useMemo(function(){return H?W(H):[]},[H]),i=Se.useRef({}),v=function(){i.current={}};T||v();var Me=(0,n.Z)(function(){if(H&&d&&T){let lr=function(Hr,In){var Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fe,On=ot.x+Hr,jn=ot.y+In,fr=On+pn,$r=jn+mn,Oo=Math.max(On,Hn.left),gn=Math.max(jn,Hn.top),An=Math.min(fr,Hn.right),tr=Math.min($r,Hn.bottom);return Math.max(0,(An-Oo)*(tr-gn))},Lr=function(){rr=ot.y+Vt,ar=rr+mn,qn=ot.x+$t,Lt=qn+pn};var Be,Te,Ue,je,x=H,ne=x.ownerDocument,Ce=z(x),De=Ce.getComputedStyle(x),S=De.position,X=x.style.left,U=x.style.top,me=x.style.right,ze=x.style.bottom,Ke=x.style.overflow,ut=(0,e.Z)((0,e.Z)({},Z[ce]),r),pt=ne.createElement("div");(Be=x.parentElement)===null||Be===void 0||Be.appendChild(pt),pt.style.left="".concat(x.offsetLeft,"px"),pt.style.top="".concat(x.offsetTop,"px"),pt.style.position=S,pt.style.height="".concat(x.offsetHeight,"px"),pt.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var tt;if(Array.isArray(d))tt={x:d[0],y:d[1],width:0,height:0};else{var mt,ke,rt=d.getBoundingClientRect();rt.x=(mt=rt.x)!==null&&mt!==void 0?mt:rt.left,rt.y=(ke=rt.y)!==null&&ke!==void 0?ke:rt.top,tt={x:rt.x,y:rt.y,width:rt.width,height:rt.height}}var ot=x.getBoundingClientRect(),xt=Ce.getComputedStyle(x),gt=xt.height,Pt=xt.width;ot.x=(Te=ot.x)!==null&&Te!==void 0?Te:ot.left,ot.y=(Ue=ot.y)!==null&&Ue!==void 0?Ue:ot.top;var Mt=ne.documentElement,Gt=Mt.clientWidth,rn=Mt.clientHeight,Ht=Mt.scrollWidth,At=Mt.scrollHeight,vn=Mt.scrollTop,Bt=Mt.scrollLeft,mn=ot.height,pn=ot.width,en=tt.height,b=tt.width,w={left:0,top:0,right:Gt,bottom:rn},it={left:-Bt,top:-vn,right:Ht-Bt,bottom:At-vn},R=ut.htmlRegion,$="visible",He="visibleFirst";R!=="scroll"&&R!==He&&(R=$);var Pe=R===He,Ae=oe(it,q),qe=oe(w,q),Fe=R===$?qe:Ae,at=Pe?qe:Fe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ct=x.getBoundingClientRect();x.style.left=X,x.style.top=U,x.style.right=me,x.style.bottom=ze,x.style.overflow=Ke,(je=x.parentElement)===null||je===void 0||je.removeChild(pt);var bt=c(Math.round(pn/parseFloat(Pt)*1e3)/1e3),vt=c(Math.round(mn/parseFloat(gt)*1e3)/1e3);if(bt===0||vt===0||(0,D.Sh)(d)&&!(0,ae.Z)(d))return;var zt=ut.offset,Kt=ut.targetOffset,Rt=ye(ot,zt),ue=(0,m.Z)(Rt,2),Re=ue[0],Ze=ue[1],Ye=ye(tt,Kt),_e=(0,m.Z)(Ye,2),nt=_e[0],ft=_e[1];tt.x-=nt,tt.y-=ft;var Ot=ut.points||[],Dt=(0,m.Z)(Ot,2),Ft=Dt[0],Xt=Dt[1],Tt=et(Xt),Zt=et(Ft),jt=_(tt,Tt),Qt=_(ot,Zt),an=(0,e.Z)({},ut),$t=jt.x-Qt.x+Re,Vt=jt.y-Qt.y+Ze,En=lr($t,Vt),un=lr($t,Vt,qe),sn=_(tt,["t","l"]),bn=_(ot,["t","l"]),Wt=_(tt,["b","r"]),Jt=_(ot,["b","r"]),Pn=ut.overflow||{},Dn=Pn.adjustX,Un=Pn.adjustY,Mn=Pn.shiftX,Vn=Pn.shiftY,Jn=function(In){return typeof In=="boolean"?In:In>=0},rr,ar,qn,Lt;Lr();var yt=Jn(Un),Et=Zt[0]===Tt[0];if(yt&&Zt[0]==="t"&&(ar>at.bottom||i.current.bt)){var It=Vt;Et?It-=mn-en:It=sn.y-Jt.y-Ze;var wt=lr($t,It),kt=lr($t,It,qe);wt>En||wt===En&&(!Pe||kt>=un)?(i.current.bt=!0,Vt=It,Ze=-Ze,an.points=[xe(Zt,0),xe(Tt,0)]):i.current.bt=!1}if(yt&&Zt[0]==="b"&&(rrEn||Tn===En&&(!Pe||Rn>=un)?(i.current.tb=!0,Vt=nn,Ze=-Ze,an.points=[xe(Zt,0),xe(Tt,0)]):i.current.tb=!1}var kn=Jn(Dn),Cr=Zt[1]===Tt[1];if(kn&&Zt[1]==="l"&&(Lt>at.right||i.current.rl)){var Sr=$t;Cr?Sr-=pn-b:Sr=sn.x-Jt.x-Re;var hr=lr(Sr,Vt),er=lr(Sr,Vt,qe);hr>En||hr===En&&(!Pe||er>=un)?(i.current.rl=!0,$t=Sr,Re=-Re,an.points=[xe(Zt,1),xe(Tt,1)]):i.current.rl=!1}if(kn&&Zt[1]==="r"&&(qnEn||Er===En&&(!Pe||Dr>=un)?(i.current.lr=!0,$t=xr,Re=-Re,an.points=[xe(Zt,1),xe(Tt,1)]):i.current.lr=!1}Lr();var cr=Mn===!0?0:Mn;typeof cr=="number"&&(qnqe.right&&($t-=Lt-qe.right-Re,tt.x>qe.right-cr&&($t+=tt.x-qe.right+cr)));var Ir=Vn===!0?0:Vn;typeof Ir=="number"&&(rrqe.bottom&&(Vt-=ar-qe.bottom-Ze,tt.y>qe.bottom-Ir&&(Vt+=tt.y-qe.bottom+Ir)));var ir=ot.x+$t,Zr=ir+pn,kr=ot.y+Vt,jr=kr+mn,Kr=tt.x,Gr=Kr+b,Zn=tt.y,Yn=Zn+en,br=Math.max(ir,Kr),vr=Math.min(Zr,Gr),xo=(br+vr)/2,Lo=xo-ir,vo=Math.max(kr,Zn),Eo=Math.min(jr,Yn),Bo=(vo+Eo)/2,wo=Bo-kr;u==null||u(H,an);var Xr=Ct.right-ot.x-($t+ot.width),co=Ct.bottom-ot.y-(Vt+ot.height);bt===1&&($t=Math.round($t),Xr=Math.round(Xr)),vt===1&&(Vt=Math.round(Vt),co=Math.round(co));var to={ready:!0,offsetX:$t/bt,offsetY:Vt/vt,offsetR:Xr/bt,offsetB:co/vt,arrowX:Lo/bt,arrowY:wo/vt,scaleX:bt,scaleY:vt,align:an};A(to)}}),fe=function(){L.current+=1;var Te=L.current;Promise.resolve().then(function(){L.current===Te&&Me()})},Ie=function(){A(function(Te){return(0,e.Z)((0,e.Z)({},Te),{},{ready:!1})})};return(0,O.Z)(Ie,[ce]),(0,O.Z)(function(){T||Ie()},[T]),[y.ready,y.offsetX,y.offsetY,y.offsetR,y.offsetB,y.arrowX,y.arrowY,y.scaleX,y.scaleY,y.align,fe]}var Xe=t(94480);function M(T,H,d,ce,Z){(0,O.Z)(function(){if(T&&H&&d){let L=function(){ce(),Z()};var r=H,u=d,V=W(r),K=W(u),y=z(u),A=new Set([y].concat((0,Xe.Z)(V),(0,Xe.Z)(K)));return A.forEach(function(q){q.addEventListener("scroll",L,{passive:!0})}),y.addEventListener("resize",L,{passive:!0}),ce(),function(){A.forEach(function(q){q.removeEventListener("scroll",L),y.removeEventListener("resize",L)})}}},[T,H,d])}var Ee=t(48736);function be(T,H,d,ce,Z,r,u,V){var K=Se.useRef(T);K.current=T;var y=Se.useRef(!1);Se.useEffect(function(){if(H&&ce&&(!Z||r)){var L=function(){y.current=!1},q=function(Ue){var je;K.current&&!u(((je=Ue.composedPath)===null||je===void 0||(je=je.call(Ue))===null||je===void 0?void 0:je[0])||Ue.target)&&!y.current&&V(!1)},i=z(ce);i.addEventListener("pointerdown",L,!0),i.addEventListener("mousedown",q,!0),i.addEventListener("contextmenu",q,!0);var v=(0,F.A)(d);if(v&&(v.addEventListener("mousedown",q,!0),v.addEventListener("contextmenu",q,!0)),0)var Me,fe,Ie,Be;return function(){i.removeEventListener("pointerdown",L,!0),i.removeEventListener("mousedown",q,!0),i.removeEventListener("contextmenu",q,!0),v&&(v.removeEventListener("mousedown",q,!0),v.removeEventListener("contextmenu",q,!0))}}},[H,d,ce,Z,r]);function A(){y.current=!0}return A}var ct=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Le(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Q.Z,H=Se.forwardRef(function(d,ce){var Z=d.prefixCls,r=Z===void 0?"rc-trigger-popup":Z,u=d.children,V=d.action,K=V===void 0?"hover":V,y=d.showAction,A=d.hideAction,L=d.popupVisible,q=d.defaultPopupVisible,i=d.onPopupVisibleChange,v=d.afterPopupVisibleChange,Me=d.mouseEnterDelay,fe=d.mouseLeaveDelay,Ie=fe===void 0?.1:fe,Be=d.focusDelay,Te=d.blurDelay,Ue=d.mask,je=d.maskClosable,x=je===void 0?!0:je,ne=d.getPopupContainer,Ce=d.forceRender,De=d.autoDestroy,S=d.destroyPopupOnHide,X=d.popup,U=d.popupClassName,me=d.popupStyle,ze=d.popupPlacement,Ke=d.builtinPlacements,ut=Ke===void 0?{}:Ke,pt=d.popupAlign,tt=d.zIndex,mt=d.stretch,ke=d.getPopupClassNameFromAlign,rt=d.fresh,ot=d.alignPoint,xt=d.onPopupClick,gt=d.onPopupAlign,Pt=d.arrow,Mt=d.popupMotion,Gt=d.maskMotion,rn=d.popupTransitionName,Ht=d.popupAnimation,At=d.maskTransitionName,vn=d.maskAnimation,Bt=d.className,mn=d.getTriggerDOMNode,pn=(0,p.Z)(d,ct),en=De||S||!1,b=Se.useState(!1),w=(0,m.Z)(b,2),it=w[0],R=w[1];(0,O.Z)(function(){R((0,I.Z)())},[]);var $=Se.useRef({}),He=Se.useContext(we),Pe=Se.useMemo(function(){return{registerSubPopup:function(An,tr){$.current[An]=tr,He==null||He.registerSubPopup(An,tr)}}},[He]),Ae=(0,J.Z)(),qe=Se.useState(null),Fe=(0,m.Z)(qe,2),at=Fe[0],Ct=Fe[1],bt=Se.useRef(null),vt=(0,n.Z)(function(gn){bt.current=gn,(0,D.Sh)(gn)&&at!==gn&&Ct(gn),He==null||He.registerSubPopup(Ae,gn)}),zt=Se.useState(null),Kt=(0,m.Z)(zt,2),Rt=Kt[0],ue=Kt[1],Re=Se.useRef(null),Ze=(0,n.Z)(function(gn){(0,D.Sh)(gn)&&Rt!==gn&&(ue(gn),Re.current=gn)}),Ye=Se.Children.only(u),_e=(Ye==null?void 0:Ye.props)||{},nt={},ft=(0,n.Z)(function(gn){var An,tr,wr=Rt;return(wr==null?void 0:wr.contains(gn))||((An=(0,F.A)(wr))===null||An===void 0?void 0:An.host)===gn||gn===wr||(at==null?void 0:at.contains(gn))||((tr=(0,F.A)(at))===null||tr===void 0?void 0:tr.host)===gn||gn===at||Object.values($.current).some(function(Pr){return(Pr==null?void 0:Pr.contains(gn))||gn===Pr})}),Ot=ie(r,Mt,Ht,rn),Dt=ie(r,Gt,vn,At),Ft=Se.useState(q||!1),Xt=(0,m.Z)(Ft,2),Tt=Xt[0],Zt=Xt[1],jt=L!=null?L:Tt,Qt=(0,n.Z)(function(gn){L===void 0&&Zt(gn)});(0,O.Z)(function(){Zt(L||!1)},[L]);var an=Se.useRef(jt);an.current=jt;var $t=Se.useRef([]);$t.current=[];var Vt=(0,n.Z)(function(gn){var An;Qt(gn),((An=$t.current[$t.current.length-1])!==null&&An!==void 0?An:jt)!==gn&&($t.current.push(gn),i==null||i(gn))}),En=Se.useRef(),un=function(){clearTimeout(En.current)},sn=function(An){var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;un(),tr===0?Vt(An):En.current=setTimeout(function(){Vt(An)},tr*1e3)};Se.useEffect(function(){return un},[]);var bn=Se.useState(!1),Wt=(0,m.Z)(bn,2),Jt=Wt[0],Pn=Wt[1];(0,O.Z)(function(gn){(!gn||jt)&&Pn(!0)},[jt]);var Dn=Se.useState(null),Un=(0,m.Z)(Dn,2),Mn=Un[0],Vn=Un[1],Jn=Se.useState(null),rr=(0,m.Z)(Jn,2),ar=rr[0],qn=rr[1],Lt=function(An){qn([An.clientX,An.clientY])},yt=pe(jt,at,ot&&ar!==null?ar:Rt,ze,ut,pt,gt),Et=(0,m.Z)(yt,11),It=Et[0],wt=Et[1],kt=Et[2],nn=Et[3],Tn=Et[4],Rn=Et[5],kn=Et[6],Cr=Et[7],Sr=Et[8],hr=Et[9],er=Et[10],xr=Oe(it,K,y,A),Er=(0,m.Z)(xr,2),Dr=Er[0],cr=Er[1],Ir=Dr.has("click"),ir=cr.has("click")||cr.has("contextMenu"),Zr=(0,n.Z)(function(){Jt||er()}),kr=function(){an.current&&ot&&ir&&sn(!1)};M(jt,Rt,at,Zr,kr),(0,O.Z)(function(){Zr()},[ar,ze]),(0,O.Z)(function(){jt&&!(ut!=null&&ut[ze])&&Zr()},[JSON.stringify(pt)]);var jr=Se.useMemo(function(){var gn=l(ut,r,hr,ot);return P()(gn,ke==null?void 0:ke(hr))},[hr,ke,ut,r,ot]);Se.useImperativeHandle(ce,function(){return{nativeElement:Re.current,popupElement:bt.current,forceAlign:Zr}});var Kr=Se.useState(0),Gr=(0,m.Z)(Kr,2),Zn=Gr[0],Yn=Gr[1],br=Se.useState(0),vr=(0,m.Z)(br,2),xo=vr[0],Lo=vr[1],vo=function(){if(mt&&Rt){var An=Rt.getBoundingClientRect();Yn(An.width),Lo(An.height)}},Eo=function(){vo(),Zr()},Bo=function(An){Pn(!1),er(),v==null||v(An)},wo=function(){return new Promise(function(An){vo(),Vn(function(){return An})})};(0,O.Z)(function(){Mn&&(er(),Mn(),Vn(null))},[Mn]);function Xr(gn,An,tr,wr){nt[gn]=function(Pr){var To;wr==null||wr(Pr),sn(An,tr);for(var Io=arguments.length,Xo=new Array(Io>1?Io-1:0),sr=1;sr1?tr-1:0),Pr=1;Pr1?tr-1:0),Pr=1;Prn in F?m(F,n,{enumerable:!0,configurable:!0,writable:!0,value:J}):F[n]=J,g=(F,n)=>{for(var J in n||(n={}))Q.call(n,J)&&P(F,J,n[J]);if(p)for(var J of p(n))N.call(n,J)&&P(F,J,n[J]);return F};const D=F=>React.createElement("svg",g({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},F),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Ge.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},32981:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Se}});var e=t(7939),m=t(59301),p=Object.defineProperty,Q=Object.defineProperties,N=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,F=(Ne,ge,se)=>ge in Ne?p(Ne,ge,{enumerable:!0,configurable:!0,writable:!0,value:se}):Ne[ge]=se,n=(Ne,ge)=>{for(var se in ge||(ge={}))g.call(ge,se)&&F(Ne,se,ge[se]);if(P)for(var se of P(ge))D.call(ge,se)&&F(Ne,se,ge[se]);return Ne},J=(Ne,ge)=>Q(Ne,N(ge)),O=(Ne,ge)=>{var se={};for(var ve in Ne)g.call(Ne,ve)&&ge.indexOf(ve)<0&&(se[ve]=Ne[ve]);if(Ne!=null&&P)for(var ve of P(Ne))ge.indexOf(ve)<0&&D.call(Ne,ve)&&(se[ve]=Ne[ve]);return se},I=(Ne,ge,se)=>new Promise((ve,h)=>{var de=Y=>{try{f(se.next(Y))}catch(ee){h(ee)}},s=Y=>{try{f(se.throw(Y))}catch(ee){h(ee)}},f=Y=>Y.done?ve(Y.value):Promise.resolve(Y.value).then(de,s);f((se=se.apply(Ne,ge)).next())});const Se=Ne=>{var ge=Ne,{children:se}=ge,ve=O(ge,["children"]);const[h,de]=(0,m.useState)(!1);return m.createElement(e.ZP,J(n({},ve),{loading:h,onClick:s=>I(void 0,null,function*(){try{de(!0),yield ve.onClick(s),de(!1)}catch(f){console.error(f),de(!1)}})}),se)}},18612:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(59301),m={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},p=t(62957),Q="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",P=(F,n,J)=>new Promise((O,I)=>{var Se=se=>{try{ge(J.next(se))}catch(ve){I(ve)}},Ne=se=>{try{ge(J.throw(se))}catch(ve){I(ve)}},ge=se=>se.done?O(se.value):Promise.resolve(se.value).then(Se,Ne);ge((J=J.apply(F,n)).next())}),D=({type:F,resdata:n,onok:J,oktext:O,okloading:I})=>{const[Se,Ne]=(0,e.useState)(!1),{can_copy_list:ge,can_copy_num:se,challenge_type:ve,course_data_list:h,no_copy_list:de,no_copy_num:s,no_use_list:f,no_use_num:Y,repeat_shixun_num:ee,student_count:te,total_num:Ve,use_num:we}=n;let k=se>0||F==="exercise";(0,e.useEffect)(()=>{(n==null?void 0:n.student_count)>0&&Ne(!0)},[n]),console.log("---11",I),(0,e.useEffect)(()=>{I||Ne(!1)},[I]);const Oe=()=>{if(F==="exercise"&&ve===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(F==="exercise"&&ve===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&ve===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixun"&&ve===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&ve===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="subject"&&ve===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",e.createElement("span",{className:m.orangeColor},te)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",e.createElement("span",{className:m.orangeColor},we)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="exercisepush")return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(F==="shixunpush"&&ve===1)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",e.createElement("span",{className:m.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(F==="shixunpush"&&ve===2)return e.createElement(e.Fragment,null,"\u8BFE\u5802\u5185\u6709",e.createElement("span",{className:m.orangeColor},te),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",e.createElement("span",{className:m.orangeColor},we),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",e.createElement("span",{className:m.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ae=()=>{if(F==="exercise"||F==="subject"||F==="exercisepush"||F==="shixunpush")return e.createElement("div",{style:{marginTop:20}},s>0&&e.createElement("div",null,e.createElement("span",{className:m.flex},e.createElement("img",{src:N,style:{width:14}}),e.createElement("span",{className:m.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),e.createElement("div",{className:m.statusbody},F==="exercise"&&e.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",e.createElement("span",{className:m.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(F==="subject"||F==="exercisepush")&&e.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",k&&e.createElement("span",{className:m.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),F==="shixunpush"&&e.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",k&&e.createElement("span",{className:m.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),e.createElement("div",null,de==null?void 0:de.map((C,l)=>e.createElement("a",{href:`/shixuns/${C.identifier}/challenges`,target:"_blank"},"\u300A",C==null?void 0:C.name,"\u300B",l+1!==s&&"\u3001"))))),se>0&&e.createElement("div",{style:{marginTop:20}},e.createElement("span",{className:m.flex},e.createElement("img",{src:Q,style:{width:14}}),e.createElement("span",{className:m.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),e.createElement("div",{className:m.statusbody},F==="exercise"&&e.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(F==="subject"||F==="exercisepush")&&e.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),F==="shixunpush"&&e.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),e.createElement("div",null,ge==null?void 0:ge.map((C,l)=>e.createElement("a",{href:`/shixuns/${C.identifier}/challenges`,target:"_blank"},"\u300A",C==null?void 0:C.name,"\u300B",l+1!==se&&"\u3001"))))));if(F==="shixun")return e.createElement("div",{style:{marginTop:20}},se>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return e.createElement(p.default,{open:Se,onCancel:()=>{Ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!k&&"none"}},zIndex:1003,confirmLoading:I,okText:k?O:"\u6211\u77E5\u9053\u4E86",onOk:()=>P(void 0,null,function*(){k?yield J([...ge,...f]):Ne(!1)})},e.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Oe(),ae()))}},37428:function(Yt,Ge,t){t.d(Ge,{Z:function(){return se}});var e=t(59301),m=t(88634),p=t(62957),Q=t(89787),N=t(7939),P={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},g=t(70892),D=t(66649),F=t.n(D),n=t(59301),J=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,Se=(ve,h)=>{var de={};for(var s in ve)O.call(ve,s)&&h.indexOf(s)<0&&(de[s]=ve[s]);if(ve!=null&&J)for(var s of J(ve))h.indexOf(s)<0&&I.call(ve,s)&&(de[s]=ve[s]);return de},Ne=(ve,h,de)=>new Promise((s,f)=>{var Y=Ve=>{try{te(de.next(Ve))}catch(we){f(we)}},ee=Ve=>{try{te(de.throw(Ve))}catch(we){f(we)}},te=Ve=>Ve.done?s(Ve.value):Promise.resolve(Ve.value).then(Y,ee);te((de=de.apply(ve,h)).next())});const ge=ve=>{var h=ve,{shixunsDetail:de,globalSetting:s,loading:f,dispatch:Y,showModal:ee,onCancel:te,onOk:Ve,okBtnName:we="\u5B8C\u6210",info:k,source:Oe}=h,ae=Se(h,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[C,l]=(0,e.useState)(0),[ie,z]=(0,e.useState)(0);return(0,e.useEffect)(()=>{let W=null;const c=()=>Ne(void 0,null,function*(){let B={id:k==null?void 0:k.courseId,send_time:F()().format("YYYY-MM-DD HH:mm"),exercise_id:k!=null&&k.exercise_id?k==null?void 0:k.exercise_id:null},oe={id:k==null?void 0:k.courseId,course_id:k==null?void 0:k.courseId,identifier:k==null?void 0:k.courseId,type:"normal",is_use:1,is_copy:!0};Oe==="\u8BD5\u5377"?(B.examination_bank_ids=k==null?void 0:k.examination_bank_ids,B.type="ExaminationBank"):Oe==="\u5B9E\u8BAD"?B.shixun_info=(k==null?void 0:k.shixun_info.length)>0?k==null?void 0:k.shixun_info:[oe]:Oe==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(B.examination_bank_ids=k==null?void 0:k.examination_bank_ids,B.shixun_info=(k==null?void 0:k.shixun_info.length)>0?k==null?void 0:k.shixun_info:[oe]);const G=yield(0,g.ZP)(`/api/courses/${k==null?void 0:k.courseId}/send_shixun_progress.json`,{method:"post",body:B});(G==null?void 0:G.status)===0&&(l(G==null?void 0:G.complete_num),z(G==null?void 0:G.total_num),(G==null?void 0:G.complete_num)!==(G==null?void 0:G.total_num)?(W&&clearInterval(W),W=setInterval(c,5e3)):W&&clearInterval(W))});return ee&&(k!=null&&k.courseId)&&c(),()=>{W&&clearInterval(W)}},[ee]),n.createElement(p.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:C==ie,open:ee,destroyOnClose:!0,footer:null,onCancel:te},n.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",n.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},ie),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),n.createElement("div",{className:P.con_warp},n.createElement(Q.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:C==ie&&ie!=0?100:C/ie*100,showInfo:!1,size:[350,10]}),n.createElement("div",{className:P.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",n.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},C),"\u4E2A"),C!=ie&&n.createElement(N.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),C==ie&&n.createElement(N.ZP,{type:"primary",onClick:Ve},we)))};var se=(0,m.connect)(({shixunsDetail:ve,loading:h,globalSetting:de})=>({shixunsDetail:ve,globalSetting:de,loading:h.models.index}))(ge)},43786:function(Yt,Ge,t){var e=t(59301),m=t(62957),p=t(70858);const Q=({dataSource:N,visible:P,onClose:g=()=>{},onSuccess:D=()=>{},text:F,okText:n})=>{var J;return e.createElement(m.default,{centered:!0,destroyOnClose:!0,open:!!P,title:"\u63D0\u793A",width:"600px",okText:n,cancelText:"\u53D6\u6D88",onCancel:g,onOk:D},P==="single"&&e.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",e.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(J=N==null?void 0:N[0])==null?void 0:J.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",F),P==="multiple"&&e.createElement(e.Fragment,null,e.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",F),e.createElement(p.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:N,scroll:(N==null?void 0:N.length)>7?{y:300}:{},pagination:!1})))};Ge.Z=Q},79734:function(Yt,Ge,t){t.r(Ge),t.d(Ge,{default:function(){return f},difficultType:function(){return h},questionType:function(){return ve}});var e=t(59301),m=t(7939),p=t(29787),Q=t(91882),N=t(15037),P=t(37285),g=t(70892),D=t(32451),F=t(88634),n={randomIcon:"randomIcon___V1A1W",btn:"btn___HSWTW"},J=t(44868),O=t(95203),I=t(34359),Se=Object.defineProperty,Ne=(Y,ee,te)=>ee in Y?Se(Y,ee,{enumerable:!0,configurable:!0,writable:!0,value:te}):Y[ee]=te,ge=(Y,ee,te)=>Ne(Y,typeof ee!="symbol"?ee+"":ee,te),se=(Y,ee,te)=>new Promise((Ve,we)=>{var k=C=>{try{ae(te.next(C))}catch(l){we(l)}},Oe=C=>{try{ae(te.throw(C))}catch(l){we(l)}},ae=C=>C.done?Ve(C.value):Promise.resolve(C.value).then(k,Oe);ae((te=te.apply(Y,ee)).next())});const ve={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},h={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},de=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"];class s extends e.Component{constructor(ee){super(ee),ge(this,"getPaperData",()=>{const te=window.location.href.split("/").pop();this.setState({loading:!0,id:te}),(0,g.ZP)(`/api/examination_banks/${te}/edit_random_exam.json`,{method:"get"}).then(Ve=>{if(this.setState({loading:!1}),Ve!=null&&Ve.examination_bank){const{contents:we,examination_bank:k,score_settings:Oe,sort_by_item_type:ae}=Ve;this.setState({contents:we,examination_bank:k,score_settings:Oe,sort_by_item_type:ae})}})}),ge(this,"handleSendToClass",()=>{var te,Ve,we,k,Oe,ae;const C=(Ve=(te=this.state)==null?void 0:te.score_settings)==null?void 0:Ve.reduce((l,ie)=>l+ie.score,0);(ae=this.props)==null||ae.dispatch({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:(we=this.state)==null?void 0:we.id,data:{is_random:!0},dataSource:[{name:(Oe=(k=this.state)==null?void 0:k.examination_bank)==null?void 0:Oe.name,total_score:C}],type:"single"}}})}),ge(this,"toAnswer",()=>se(this,null,function*(){var te,Ve,we;this.setState({btnLoading:!0});const k=yield(0,I.Mb)({categoryId:this.state.id});this.setState({btnLoading:!1}),k!=null&&k.exercise_id&&(0,O.xg)(`/classrooms/coursesId/exercise/${k.exercise_id}/${(we=(Ve=(te=this.props)==null?void 0:te.user)==null?void 0:Ve.userInfo)==null?void 0:we.login}/initate_answer`)})),this.state={loading:!1,contents:[],examination_bank:{},score_settings:[],sort_by_item_type:[],modalVisible:!1,id:null,btnLoading:!1}}componentDidMount(){this.getPaperData()}render(){const{contents:ee,examination_bank:te,score_settings:Ve,sort_by_item_type:we,loading:k,btnLoading:Oe}=this.state;let ae=[],C=0,l=0;Object.keys(ve).map(c=>{let B=0;ee.map(G=>{G.item_type===c&&(B+=G.quanlity)});const oe=Ve.filter(G=>G.item_type===c);ae=[...ae,{item_type:c,num:B,score:oe.length>0?oe[0].score:0}]});const ie=ae.filter(c=>c.num!==0);ie.map(c=>{Ve.map(B=>{c.item_type===B.item_type&&(C+=c.num*B.score,l+=c.num)})}),console.log(ie,we,"allcount");function z(c){return ve[c]||c}ie.sort((c,B)=>{const oe=z(c.item_type),G=z(B.item_type);return we.indexOf(oe)-we.indexOf(G)});const W=e.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},e.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"50%",fontWeight:500,fontSize:"16px"}},e.createElement("span",null,"\u603B\u8BA1 ",ie.length," \u5927\u9898\uFF0C ",l," \u5C0F\u9898\uFF0C\u603B\u5206 ",C&&C.toFixed(1)," ","\u5206"),e.createElement("span",null,"\u8003\u8BD5\u65F6\u957F\uFF1A",te.time===null||te.time===-1?"\u4E0D\u9650":`${te.time}\u5206\u949F`),e.createElement("span",null,"\u8BD5\u5377\u96BE\u5EA6\uFF1A",h[te.difficulty])),e.createElement("div",null,e.createElement(m.ZP,{onClick:()=>{var c;return F.history.push(`/randompaper/edit/${(c=this.state)==null?void 0:c.id}?type=settings`)},className:n.btn,icon:e.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),e.createElement(m.ZP,{loading:Oe,onClick:this.toAnswer,className:n.btn,icon:e.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),e.createElement(m.ZP,{type:"primary",onClick:()=>this.handleSendToClass()},"\u53D1\u9001\u81F3\u8BFE\u5802")));return e.createElement("div",{style:{width:1200,margin:"0px auto"}},e.createElement(p.Z,{spinning:this.state.loading},e.createElement(Q.Z,{separator:">",style:{padding:"12px 0px"}},e.createElement(Q.Z.Item,null,"\u8BD5\u5377\u5E93"),e.createElement(Q.Z.Item,null,e.createElement(D.rU,{to:"/paperlibrary"},"\u6211\u521B\u5EFA\u7684")),e.createElement(Q.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),e.createElement("div",{style:{height:50,display:"flex",alignItems:"center"}},e.createElement("span",{style:{fontSize:20,fontWeight:600}},e.createElement("i",{className:"icon-leftarrow iconfont",style:{fontSize:14,marginRight:8,cursor:"pointer"},onClick:()=>{F.history.back()}}),te.name),e.createElement("span",{className:n.randomIcon},"\u968F\u673A")),e.createElement(N.Z,{title:W,style:{marginBottom:200}},ie.map((c,B)=>{const oe=Array.from(new Set(ee.map(G=>G.item_type===c.item_type?G.sub_discipline_id:null).filter(G=>G)));return e.createElement("div",{key:B},e.createElement("div",{style:{color:"#0152d9"}},de[B],"\u3001",ve[c.item_type],e.createElement("span",{style:{color:"#666666",marginLeft:5}},"(\u5171 ",c.num," \u9898\uFF0C\u6BCF\u9898 ",c.score," \u5206)")),B===ie.length-1?null:e.createElement(P.Z,null))})),e.createElement(J.Z,null)))}}var f=(0,F.connect)(({user:Y})=>({user:Y}))(s)},44868:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Xe}});var e=t(59301),m=t(88634),p=t(37568),Q=t(6767),N=t(62957),P=t(4875),g=t(458),D=t(70858),F=t(7939),n=t(89160),J=Object.defineProperty,O=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ne=(M,Ee,be)=>Ee in M?J(M,Ee,{enumerable:!0,configurable:!0,writable:!0,value:be}):M[Ee]=be,ge=(M,Ee)=>{for(var be in Ee||(Ee={}))I.call(Ee,be)&&Ne(M,be,Ee[be]);if(O)for(var be of O(Ee))Se.call(Ee,be)&&Ne(M,be,Ee[be]);return M};const se=M=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},M),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var ve="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",h={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},de=t(95203),s={sendToClass:"sendToClass___le_BX"},f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8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QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",te=({createState:M,refreshLoading:Ee,onRefresh:be=()=>{},onCreate:ct=()=>{}})=>e.createElement("div",{className:s.sendToClass},M?e.createElement(e.Fragment,null,e.createElement("img",{src:f,alt:"\u7A7A"}),e.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),e.createElement(F.ZP,{onClick:ct,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):e.createElement(e.Fragment,null,e.createElement("img",{src:Y,alt:"\u7A7A"}),e.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),e.createElement(F.ZP,{loading:Ee,onClick:be,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Ve=t(32981),we=t(89392),k=t(18612),Oe=t(37428),ae=t(43786),C=t(59301),l=Object.defineProperty,ie=Object.defineProperties,z=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,oe=(M,Ee,be)=>Ee in M?l(M,Ee,{enumerable:!0,configurable:!0,writable:!0,value:be}):M[Ee]=be,G=(M,Ee)=>{for(var be in Ee||(Ee={}))c.call(Ee,be)&&oe(M,be,Ee[be]);if(W)for(var be of W(Ee))B.call(Ee,be)&&oe(M,be,Ee[be]);return M},ye=(M,Ee)=>ie(M,z(Ee)),et=(M,Ee)=>{var be={};for(var ct in M)c.call(M,ct)&&Ee.indexOf(ct)<0&&(be[ct]=M[ct]);if(M!=null&&W)for(var ct of W(M))Ee.indexOf(ct)<0&&B.call(M,ct)&&(be[ct]=M[ct]);return be},_=(M,Ee,be)=>new Promise((ct,Le)=>{var re=d=>{try{H(be.next(d))}catch(ce){Le(ce)}},T=d=>{try{H(be.throw(d))}catch(ce){Le(ce)}},H=d=>d.done?ct(d.value):Promise.resolve(d.value).then(re,T);H((be=be.apply(M,Ee)).next())});const xe=p.default.Search,pe=M=>{var Ee=M,{paperlibrary:be,globalSetting:ct,loading:Le,dispatch:re}=Ee,T=et(Ee,["paperlibrary","globalSetting","loading","dispatch"]),H,d,ce,Z;const[r,u]=(0,e.useState)(""),[V,K]=(0,e.useState)([]),[y,A]=(0,e.useState)([]),[L,q]=(0,e.useState)(!1),[i,v]=(0,e.useState)(!0),[Me,fe]=(0,e.useState)(!0),[Ie,Be]=(0,e.useState)(!0),[Te,Ue]=(0,e.useState)(!1),[je,x]=(0,e.useState)(!1),ne=(ce=(d=(H=be.actionTabs)==null?void 0:H.params)==null?void 0:d.data)==null?void 0:ce.is_random,[Ce,De]=(0,e.useState)(!1),[S,X]=(0,e.useState)({}),[U,me]=(0,e.useState)(!1),[ze,Ke]=(0,e.useState)({}),[ut,pt]=(0,e.useState)(!1),[tt,mt]=(0,e.useState)(!1),[ke,rt]=(0,e.useState)([]);(0,e.useEffect)(()=>{var Ht;if(be.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:At=[],type:vn}=((Ht=be.actionTabs)==null?void 0:Ht.params)||{},Bt=At.filter(mn=>![100,120,150].includes(mn.total_score));Bt.length?(mt(vn),rt(Bt)):pt(!0)}},[(Z=be==null?void 0:be.actionTabs)==null?void 0:Z.key]),(0,e.useEffect)(()=>{xt()},[]);const ot=()=>{A([]),u(""),xt(!0),pt(!1),mt(!1),re({type:"paperlibrary/setActionTabs",payload:{}})},xt=Ht=>_(void 0,null,function*(){fe(!0);const At=yield re({type:"paperlibrary/getCourseList",payload:{search:Ht?"":r}});At&&(K((At==null?void 0:At.courses)||[]),v(!0),Ue(!1)),fe(!1),Be(!1)}),gt=Ht=>{const At=parseInt(Ht);return(0,we.isNaN)(At)?"":At},Pt=()=>_(void 0,null,function*(){var Ht,At,vn,Bt,mn,pn,en;if(!y.length){Q.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),q(!0);return}const b=yield re({type:"paperlibrary/postExistCourse",payload:{course_id:ne?y==null?void 0:y[0]:y,examination_bank_ids:((At=(Ht=be.actionTabs)==null?void 0:Ht.params)==null?void 0:At.examination_bank_ids)||((Bt=(vn=be.actionTabs)==null?void 0:vn.params)==null?void 0:Bt.id)}}),w=()=>_(void 0,null,function*(){yield Mt([])});if(b.status==0&&((mn=b.data)==null?void 0:mn.count)>0){N.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:C.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(en=(pn=b.data)==null?void 0:pn.list)==null?void 0:en.map((it,R)=>{var $;return C.createElement(C.Fragment,null,C.createElement("span",{style:{color:"#FA6400"}},"\u300A",it==null?void 0:it.name,"\u300B"),R!==(($=b.data)==null?void 0:$.count)-1&&C.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>_(void 0,null,function*(){yield w()})}),yield new Promise(it=>setTimeout(()=>it(),1e3));return}yield w()}),Mt=Ht=>_(void 0,null,function*(){var At,vn,Bt,mn,pn,en,b,w,it,R,$,He,Pe;if(!ne){De(!0);const at=yield re({type:(vn=(At=be.actionTabs)==null?void 0:At.params)!=null&&vn.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:ne?y==null?void 0:y[0]:y,id:(mn=(Bt=be.actionTabs)==null?void 0:Bt.params)==null?void 0:mn.id,examination_bank_ids:(en=(pn=be.actionTabs)==null?void 0:pn.params)==null?void 0:en.examination_bank_ids,shixuns_info:Ht.map(Ct=>({shixun_id:Ct.id,is_copy:Ct.is_copy,is_use:Ct.is_use,course_id:Ct.course_id}))}});De(!1),at&&at.status===0&&(pt(!1),re({type:"paperlibrary/setActionTabs",payload:{}}),A([]),at!=null&&at.have_shixun?(Ke(ye(G({},(b=at==null?void 0:at.data)==null?void 0:b[0]),{courseId:(it=(w=at==null?void 0:at.data)==null?void 0:w[0])==null?void 0:it.course_identifier,examination_bank_ids:(($=(R=be.actionTabs)==null?void 0:R.params)==null?void 0:$.examination_bank_ids)||[(Pe=(He=be.actionTabs)==null?void 0:He.params)==null?void 0:Pe.id]})),me(!0)):(N.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${at.data[0].first_category_url}`},content:C.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),Q.ZP.success("\u53D1\u9001\u6210\u529F")));return}De(!0),setTimeout(()=>{De(!1)},500);const Ae=V.find(at=>at.course_id===(y==null?void 0:y[0]));let qe=1,Fe=N.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:C.createElement("div",{className:h.modalColumn},C.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},C.createElement("img",{style:{marginRight:5},src:n.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),C.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",Ae==null?void 0:Ae.course_name),C.createElement("div",{style:{paddingLeft:9},className:h.modalRow},C.createElement("sup",{className:h.sup},"*"),C.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),C.createElement(P.Z,{parser:gt,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:qe,onChange:at=>{qe=at;const Ct=document.getElementById("model_error");qe<1||qe>50?Ct.style.display="block":Ct.style.display="none"}})),C.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:ot,onOk:()=>_(void 0,null,function*(){var at,Ct;if(qe<1||qe>50){const vt=document.getElementById("model_error");return vt.style.display="block",Promise.reject()}Fe.update({cancelButtonProps:{disabled:!0}});const bt=yield re({type:"paperlibrary/sendToClass",payload:{course_id:y==null?void 0:y[0],id:(Ct=(at=be.actionTabs)==null?void 0:at.params)==null?void 0:Ct.id,num:qe,shixuns_info:Ht.map(vt=>({shixun_id:vt.id,is_copy:vt.is_copy,is_use:vt.is_use}))}});Fe.update({cancelButtonProps:{disabled:!1}}),bt&&bt.status===0&&(N.default.destroyAll(),N.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:C.createElement("div",{className:h.modalColumn},C.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},C.createElement("img",{style:{marginRight:5},src:ve}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{ot()},onOk:()=>{ot(),setTimeout(()=>{var vt,zt;const Kt=(zt=(vt=bt==null?void 0:bt.first_category_url)==null?void 0:vt.split("/"))==null?void 0:zt[2];(0,de.xg)(`/classrooms/${Kt}/exercise`)},1e3)}}))})})}),Gt=()=>_(void 0,null,function*(){Ue(!0),yield xt()}),rn=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return C.createElement("div",null,C.createElement(N.default,{centered:!0,keyboard:!1,closable:!1,open:ut,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Le["paperlibrary/sendToClass"]||je||!!Le["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:Pt,destroyOnClose:!0,onCancel:ot},C.createElement("div",{className:h.wrap},C.createElement("div",{className:"mb10"},C.createElement(xe,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:r,className:h.search,onChange:Ht=>{u(Ht.target.value),Ht.target.value||xt(!0)},onSearch:Ht=>{u(Ht),xt(),A([])}})),C.createElement(g.Z,{loading:Ie},V.length?C.createElement("div",{className:h.radioWrap},C.createElement(D.default,{bordered:!1,scroll:(V==null?void 0:V.length)<=7?{}:{y:350},loading:Me,rowKey:"course_id",pagination:!1,dataSource:V,columns:rn,onRow:Ht=>({onClick:At=>{if(ne)A([Ht==null?void 0:Ht.course_id]);else{if(!ne&&!y.includes(Ht.course_id)&&y.length>0)return;y!=null&&y.includes(Ht==null?void 0:Ht.course_id)?A(y==null?void 0:y.filter(vn=>vn!==(Ht==null?void 0:Ht.course_id))):A([...y,Ht==null?void 0:Ht.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:y,onChange:Ht=>{A(Ht),q(!1)}}})):!r&&!Me&&C.createElement(te,{createState:i,refreshLoading:Te,onRefresh:Gt,onCreate:()=>{v(!1),(0,de.xg)("/classrooms/new")}})),L&&C.createElement("div",{className:h.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),C.createElement("div",{className:h.bottom,style:{display:"flex",alignItems:"center"}},C.createElement("div",{style:{flex:1}},C.createElement("div",{className:h.title},C.createElement("img",{src:n.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),C.createElement("div",null,C.createElement(F.ZP,{onClick:ot,className:h.no,style:{marginRight:20}},"\u53D6\u6D88"),C.createElement(Ve.Z,{onClick:Pt,className:h.yes},"\u786E\u8BA4"))))),C.createElement(k.Z,{resdata:S,type:"exercise",okloading:Ce,oktext:(S==null?void 0:S.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ht=>{Mt(Ht)}}),C.createElement(Oe.Z,{source:"\u8BD5\u5377",showModal:U,onCancel:()=>me(!1),okBtnName:"\u524D\u5F80\u6559\u5B66\u8BFE\u5802",info:ze,onOk:()=>{window.location.href=ze==null?void 0:ze.first_category_url}}),C.createElement(ae.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:tt,dataSource:ke,onSuccess:()=>{mt(!1),pt(!0)},onClose:ot}))};var Xe=(0,m.connect)(({paperlibrary:M,loading:Ee,globalSetting:be})=>({paperlibrary:M,globalSetting:be,loading:Ee.effects}))(pe)},29509:function(Yt,Ge,t){t.d(Ge,{o2:function(){return N},yT:function(){return P}});var e=t(94480),m=t(34998);const p=m.i.map(g=>`${g}-inverse`),Q=["success","processing","error","default","warning"];function N(g){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,e.Z)(p),(0,e.Z)(m.i)).includes(g):m.i.includes(g)}function P(g){return Q.includes(g)}},9981:function(Yt,Ge){const t=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let m=1;m{const N=p[Q];N!==void 0&&(e[Q]=N)})}return e};Ge.Z=t},99402:function(Yt,Ge,t){t.d(Ge,{T:function(){return m},n:function(){return e}});function e(p){return["small","middle","large"].includes(p)}function m(p){return p?typeof p=="number"&&!Number.isNaN(p):!1}},86013:function(Yt,Ge,t){var e=t(59301),m=t(19248);const p=Q=>{let N;return typeof Q=="object"&&(Q!=null&&Q.clearIcon)?N=Q:Q&&(N={clearIcon:e.createElement(m.Z,null)}),N};Ge.Z=p},97224:function(Yt,Ge,t){t.d(Ge,{F:function(){return e}});function e(p){return p!=null&&p===p.window}const m=p=>{var Q,N;if(typeof window=="undefined")return 0;let P=0;return e(p)?P=p.pageYOffset:p instanceof Document?P=p.documentElement.scrollTop:(p instanceof HTMLElement||p)&&(P=p.scrollTop),p&&!e(p)&&typeof P!="number"&&(P=(N=((Q=p.ownerDocument)!==null&&Q!==void 0?Q:p).documentElement)===null||N===void 0?void 0:N.scrollTop),P};Ge.Z=m},52838:function(Yt,Ge,t){t.d(Ge,{Z:function(){return P}});var e=t(37645);function m(g,D,F,n){if(n===!1)return{adjustX:!1,adjustY:!1};const J=n&&typeof n=="object"?n:{},O={};switch(g){case"top":case"bottom":O.shiftX=D.arrowOffsetHorizontal*2+F,O.shiftY=!0,O.adjustY=!0;break;case"left":case"right":O.shiftY=D.arrowOffsetVertical*2+F,O.shiftX=!0,O.adjustX=!0;break}const I=Object.assign(Object.assign({},O),J);return I.shiftX||(I.adjustX=!0),I.shiftY||(I.adjustY=!0),I}const p={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Q={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},N=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function P(g){const{arrowWidth:D,autoAdjustOverflow:F,arrowPointAtCenter:n,offset:J,borderRadius:O,visibleFirst:I}=g,Se=D/2,Ne={};return Object.keys(p).forEach(ge=>{const se=n&&Q[ge]||p[ge],ve=Object.assign(Object.assign({},se),{offset:[0,0],dynamicInset:!0});switch(Ne[ge]=ve,N.has(ge)&&(ve.autoArrow=!1),ge){case"top":case"topLeft":case"topRight":ve.offset[1]=-Se-J;break;case"bottom":case"bottomLeft":case"bottomRight":ve.offset[1]=Se+J;break;case"left":case"leftTop":case"leftBottom":ve.offset[0]=-Se-J;break;case"right":case"rightTop":case"rightBottom":ve.offset[0]=Se+J;break}const h=(0,e.wZ)({contentRadius:O,limitVerticalRadius:!0});if(n)switch(ge){case"topLeft":case"bottomLeft":ve.offset[0]=-h.arrowOffsetHorizontal-Se;break;case"topRight":case"bottomRight":ve.offset[0]=h.arrowOffsetHorizontal+Se;break;case"leftTop":case"rightTop":ve.offset[1]=-h.arrowOffsetHorizontal*2+Se;break;case"leftBottom":case"rightBottom":ve.offset[1]=h.arrowOffsetHorizontal*2-Se;break}ve.overflow=m(ge,h,D,F),I&&(ve.htmlRegion="visibleFirst")}),Ne}},83010:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Q}});var e=t(16089);function m(N,P,g,D){const F=g-P;return N/=D/2,N<1?F/2*N*N*N+P:F/2*((N-=2)*N*N+2)+P}var p=t(97224);function Q(N){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:g=()=>window,callback:D,duration:F=450}=P,n=g(),J=(0,p.Z)(n),O=Date.now(),I=()=>{const Ne=Date.now()-O,ge=m(Ne>F?F:Ne,J,N,F);(0,p.F)(n)?n.scrollTo(window.pageXOffset,ge):n instanceof Document||n.constructor.name==="HTMLDocument"?n.documentElement.scrollTop=ge:n.scrollTop=ge,Neg||P},91882:function(Yt,Ge,t){t.d(Ge,{Z:function(){return z}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(11592),N=t(26112),P=t(22703),g=t(48755),D=t(84105),F=t(19563);const n=W=>{let{children:c}=W;const{getPrefixCls:B}=e.useContext(g.E_),oe=B("breadcrumb");return e.createElement("li",{className:`${oe}-separator`,"aria-hidden":"true"},c===""?c:c||"/")};n.__ANT_BREADCRUMB_SEPARATOR=!0;var J=n,O=function(W,c){var B={};for(var oe in W)Object.prototype.hasOwnProperty.call(W,oe)&&c.indexOf(oe)<0&&(B[oe]=W[oe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,oe=Object.getOwnPropertySymbols(W);Gc[G]||oe)}function Se(W,c,B,oe){if(B==null)return null;const{className:G,onClick:ye}=c,et=O(c,["className","onClick"]),_=Object.assign(Object.assign({},(0,N.Z)(et,{data:!0,aria:!0})),{onClick:ye});return oe!==void 0?e.createElement("a",Object.assign({},_,{className:p()(`${W}-link`,G),href:oe}),B):e.createElement("span",Object.assign({},_,{className:p()(`${W}-link`,G)}),B)}function Ne(W,c){return(oe,G,ye,et,_)=>{if(c)return c(oe,G,ye,et);const xe=I(oe,G);return Se(W,oe,xe,_)}}var ge=function(W,c){var B={};for(var oe in W)Object.prototype.hasOwnProperty.call(W,oe)&&c.indexOf(oe)<0&&(B[oe]=W[oe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,oe=Object.getOwnPropertySymbols(W);G{const{prefixCls:c,separator:B="/",children:oe,menu:G,overlay:ye,dropdownProps:et,href:_}=W,pe=(Xe=>{if(G||ye){const M=Object.assign({},et);if(G){const Ee=G||{},{items:be}=Ee,ct=ge(Ee,["items"]);M.menu=Object.assign(Object.assign({},ct),{items:be==null?void 0:be.map((Le,re)=>{var{key:T,title:H,label:d,path:ce}=Le,Z=ge(Le,["key","title","label","path"]);let r=d!=null?d:H;return ce&&(r=e.createElement("a",{href:`${_}${ce}`},r)),Object.assign(Object.assign({},Z),{key:T!=null?T:re,label:r})})})}else ye&&(M.overlay=ye);return e.createElement(F.Z,Object.assign({placement:"bottom"},M),e.createElement("span",{className:`${c}-overlay-link`},Xe,e.createElement(D.Z,null)))}return Xe})(oe);return pe!=null?e.createElement(e.Fragment,null,e.createElement("li",null,pe),B&&e.createElement(J,null,B)):null},ve=W=>{const{prefixCls:c,children:B,href:oe}=W,G=ge(W,["prefixCls","children","href"]),{getPrefixCls:ye}=e.useContext(g.E_),et=ye("breadcrumb",c);return e.createElement(se,Object.assign({},G,{prefixCls:et}),Se(et,G,B,oe))};ve.__ANT_BREADCRUMB_ITEM=!0;var h=ve,de=t(36237),s=t(63356),f=t(16931),Y=t(51636);const ee=W=>{const{componentCls:c,iconCls:B,calc:oe}=W;return{[c]:Object.assign(Object.assign({},(0,s.Wf)(W)),{color:W.itemColor,fontSize:W.fontSize,[B]:{fontSize:W.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:W.linkColor,transition:`color ${W.motionDurationMid}`,padding:`0 ${(0,de.unit)(W.paddingXXS)}`,borderRadius:W.borderRadiusSM,height:W.fontHeight,display:"inline-block",marginInline:oe(W.marginXXS).mul(-1).equal(),"&:hover":{color:W.linkHoverColor,backgroundColor:W.colorBgTextHover}},(0,s.Qy)(W)),"li:last-child":{color:W.lastItemColor},[`${c}-separator`]:{marginInline:W.separatorMargin,color:W.separatorColor},[`${c}-link`]:{[` - > ${B} + span, - > ${B} + a - `]:{marginInlineStart:W.marginXXS}},[`${c}-overlay-link`]:{borderRadius:W.borderRadiusSM,height:W.fontHeight,display:"inline-block",padding:`0 ${(0,de.unit)(W.paddingXXS)}`,marginInline:oe(W.marginXXS).mul(-1).equal(),[`> ${B}`]:{marginInlineStart:W.marginXXS,fontSize:W.fontSizeIcon},"&:hover":{color:W.linkHoverColor,backgroundColor:W.colorBgTextHover,a:{color:W.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${W.componentCls}-rtl`]:{direction:"rtl"}})}},te=W=>({itemColor:W.colorTextDescription,lastItemColor:W.colorText,iconFontSize:W.fontSize,linkColor:W.colorTextDescription,linkHoverColor:W.colorText,separatorColor:W.colorTextDescription,separatorMargin:W.marginXS});var Ve=(0,f.I$)("Breadcrumb",W=>{const c=(0,Y.mergeToken)(W,{});return ee(c)},te),we=function(W,c){var B={};for(var oe in W)Object.prototype.hasOwnProperty.call(W,oe)&&c.indexOf(oe)<0&&(B[oe]=W[oe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,oe=Object.getOwnPropertySymbols(W);G{var{breadcrumbName:et}=ye,_=we(ye,["breadcrumbName"]);return Object.assign(Object.assign({},_),{title:et})})}),G}function Oe(W,c){return(0,e.useMemo)(()=>W||(c?c.map(k):null),[W,c])}var ae=function(W,c){var B={};for(var oe in W)Object.prototype.hasOwnProperty.call(W,oe)&&c.indexOf(oe)<0&&(B[oe]=W[oe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,oe=Object.getOwnPropertySymbols(W);G{if(c===void 0)return c;let B=(c||"").replace(/^\//,"");return Object.keys(W).forEach(oe=>{B=B.replace(`:${oe}`,W[oe])}),B},l=W=>{const{prefixCls:c,separator:B="/",style:oe,className:G,rootClassName:ye,routes:et,items:_,children:xe,itemRender:pe,params:Xe={}}=W,M=ae(W,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ee,direction:be,breadcrumb:ct}=e.useContext(g.E_);let Le;const re=Ee("breadcrumb",c),[T,H,d]=Ve(re),ce=Oe(_,et),Z=Ne(re,pe);if(ce&&ce.length>0){const V=[],K=_||et;Le=ce.map((y,A)=>{const{path:L,key:q,type:i,menu:v,overlay:Me,onClick:fe,className:Ie,separator:Be,dropdownProps:Te}=y,Ue=C(Xe,L);Ue!==void 0&&V.push(Ue);const je=q!=null?q:A;if(i==="separator")return e.createElement(J,{key:je},Be);const x={},ne=A===ce.length-1;v?x.menu=v:Me&&(x.overlay=Me);let{href:Ce}=y;return V.length&&Ue!==void 0&&(Ce=`#/${V.join("/")}`),e.createElement(se,Object.assign({key:je},x,(0,N.Z)(y,{data:!0,aria:!0}),{className:Ie,dropdownProps:Te,href:Ce,separator:ne?"":B,onClick:fe,prefixCls:re}),Z(y,Xe,K,V,Ce))})}else if(xe){const V=(0,Q.Z)(xe).length;Le=(0,Q.Z)(xe).map((K,y)=>{if(!K)return K;const A=y===V-1;return(0,P.Tm)(K,{separator:A?"":B,key:y})})}const r=p()(re,ct==null?void 0:ct.className,{[`${re}-rtl`]:be==="rtl"},G,ye,H,d),u=Object.assign(Object.assign({},ct==null?void 0:ct.style),oe);return T(e.createElement("nav",Object.assign({className:r,style:u},M),e.createElement("ol",null,Le)))};l.Item=h,l.Separator=J;var ie=l,z=ie},15037:function(Yt,Ge,t){t.d(Ge,{Z:function(){return W}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(2738),N=t(48755),P=t(31756),g=t(458),D=t(31691),F=function(c,B){var oe={};for(var G in c)Object.prototype.hasOwnProperty.call(c,G)&&B.indexOf(G)<0&&(oe[G]=c[G]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,G=Object.getOwnPropertySymbols(c);ye{var{prefixCls:B,className:oe,hoverable:G=!0}=c,ye=F(c,["prefixCls","className","hoverable"]);const{getPrefixCls:et}=e.useContext(N.E_),_=et("card",B),xe=p()(`${_}-grid`,oe,{[`${_}-grid-hoverable`]:G});return e.createElement("div",Object.assign({},ye,{className:xe}))},O=t(36237),I=t(63356),Se=t(16931),Ne=t(51636);const ge=c=>{const{antCls:B,componentCls:oe,headerHeight:G,headerPadding:ye,tabsMarginBottom:et}=c;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:G,marginBottom:-1,padding:`0 ${(0,O.unit)(ye)}`,color:c.colorTextHeading,fontWeight:c.fontWeightStrong,fontSize:c.headerFontSize,background:c.headerBg,borderBottom:`${(0,O.unit)(c.lineWidth)} ${c.lineType} ${c.colorBorderSecondary}`,borderRadius:`${(0,O.unit)(c.borderRadiusLG)} ${(0,O.unit)(c.borderRadiusLG)} 0 0`},(0,I.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},I.vS),{[` - > ${oe}-typography, - > ${oe}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${B}-tabs-top`]:{clear:"both",marginBottom:et,color:c.colorText,fontWeight:"normal",fontSize:c.fontSize,"&-bar":{borderBottom:`${(0,O.unit)(c.lineWidth)} ${c.lineType} ${c.colorBorderSecondary}`}}})},se=c=>{const{cardPaddingBase:B,colorBorderSecondary:oe,cardShadow:G,lineWidth:ye}=c;return{width:"33.33%",padding:B,border:0,borderRadius:0,boxShadow:` - ${(0,O.unit)(ye)} 0 0 0 ${oe}, - 0 ${(0,O.unit)(ye)} 0 0 ${oe}, - ${(0,O.unit)(ye)} ${(0,O.unit)(ye)} 0 0 ${oe}, - ${(0,O.unit)(ye)} 0 0 0 ${oe} inset, - 0 ${(0,O.unit)(ye)} 0 0 ${oe} inset; - `,transition:`all ${c.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:G}}},ve=c=>{const{componentCls:B,iconCls:oe,actionsLiMargin:G,cardActionsIconSize:ye,colorBorderSecondary:et,actionsBg:_}=c;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:_,borderTop:`${(0,O.unit)(c.lineWidth)} ${c.lineType} ${et}`,display:"flex",borderRadius:`0 0 ${(0,O.unit)(c.borderRadiusLG)} ${(0,O.unit)(c.borderRadiusLG)}`},(0,I.dF)()),{"& > li":{margin:G,color:c.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:c.calc(c.cardActionsIconSize).mul(2).equal(),fontSize:c.fontSize,lineHeight:c.lineHeight,cursor:"pointer","&:hover":{color:c.colorPrimary,transition:`color ${c.motionDurationMid}`},[`a:not(${B}-btn), > ${oe}`]:{display:"inline-block",width:"100%",color:c.colorTextDescription,lineHeight:(0,O.unit)(c.fontHeight),transition:`color ${c.motionDurationMid}`,"&:hover":{color:c.colorPrimary}},[`> ${oe}`]:{fontSize:ye,lineHeight:(0,O.unit)(c.calc(ye).mul(c.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,O.unit)(c.lineWidth)} ${c.lineType} ${et}`}}})},h=c=>Object.assign(Object.assign({margin:`${(0,O.unit)(c.calc(c.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,I.dF)()),{"&-avatar":{paddingInlineEnd:c.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:c.marginXS}},"&-title":Object.assign({color:c.colorTextHeading,fontWeight:c.fontWeightStrong,fontSize:c.fontSizeLG},I.vS),"&-description":{color:c.colorTextDescription}}),de=c=>{const{componentCls:B,colorFillAlter:oe,headerPadding:G,bodyPadding:ye}=c;return{[`${B}-head`]:{padding:`0 ${(0,O.unit)(G)}`,background:oe,"&-title":{fontSize:c.fontSize}},[`${B}-body`]:{padding:`${(0,O.unit)(c.padding)} ${(0,O.unit)(ye)}`}}},s=c=>{const{componentCls:B}=c;return{overflow:"hidden",[`${B}-body`]:{userSelect:"none"}}},f=c=>{const{componentCls:B,cardShadow:oe,cardHeadPadding:G,colorBorderSecondary:ye,boxShadowTertiary:et,bodyPadding:_,extraColor:xe}=c;return{[B]:Object.assign(Object.assign({},(0,I.Wf)(c)),{position:"relative",background:c.colorBgContainer,borderRadius:c.borderRadiusLG,[`&:not(${B}-bordered)`]:{boxShadow:et},[`${B}-head`]:ge(c),[`${B}-extra`]:{marginInlineStart:"auto",color:xe,fontWeight:"normal",fontSize:c.fontSize},[`${B}-body`]:Object.assign({padding:_,borderRadius:`0 0 ${(0,O.unit)(c.borderRadiusLG)} ${(0,O.unit)(c.borderRadiusLG)}`},(0,I.dF)()),[`${B}-grid`]:se(c),[`${B}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,O.unit)(c.borderRadiusLG)} ${(0,O.unit)(c.borderRadiusLG)} 0 0`}},[`${B}-actions`]:ve(c),[`${B}-meta`]:h(c)}),[`${B}-bordered`]:{border:`${(0,O.unit)(c.lineWidth)} ${c.lineType} ${ye}`,[`${B}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${B}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${c.motionDurationMid}, border-color ${c.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:oe}},[`${B}-contain-grid`]:{borderRadius:`${(0,O.unit)(c.borderRadiusLG)} ${(0,O.unit)(c.borderRadiusLG)} 0 0 `,[`${B}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${B}-loading) ${B}-body`]:{marginBlockStart:c.calc(c.lineWidth).mul(-1).equal(),marginInlineStart:c.calc(c.lineWidth).mul(-1).equal(),padding:0}},[`${B}-contain-tabs`]:{[`> div${B}-head`]:{minHeight:0,[`${B}-head-title, ${B}-extra`]:{paddingTop:G}}},[`${B}-type-inner`]:de(c),[`${B}-loading`]:s(c),[`${B}-rtl`]:{direction:"rtl"}}},Y=c=>{const{componentCls:B,bodyPaddingSM:oe,headerPaddingSM:G,headerHeightSM:ye,headerFontSizeSM:et}=c;return{[`${B}-small`]:{[`> ${B}-head`]:{minHeight:ye,padding:`0 ${(0,O.unit)(G)}`,fontSize:et,[`> ${B}-head-wrapper`]:{[`> ${B}-extra`]:{fontSize:c.fontSize}}},[`> ${B}-body`]:{padding:oe}},[`${B}-small${B}-contain-tabs`]:{[`> ${B}-head`]:{[`${B}-head-title, ${B}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ee=c=>{var B,oe;return{headerBg:"transparent",headerFontSize:c.fontSizeLG,headerFontSizeSM:c.fontSize,headerHeight:c.fontSizeLG*c.lineHeightLG+c.padding*2,headerHeightSM:c.fontSize*c.lineHeight+c.paddingXS*2,actionsBg:c.colorBgContainer,actionsLiMargin:`${c.paddingSM}px 0`,tabsMarginBottom:-c.padding-c.lineWidth,extraColor:c.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(B=c.bodyPadding)!==null&&B!==void 0?B:c.paddingLG,headerPadding:(oe=c.headerPadding)!==null&&oe!==void 0?oe:c.paddingLG}};var te=(0,Se.I$)("Card",c=>{const B=(0,Ne.mergeToken)(c,{cardShadow:c.boxShadowCard,cardHeadPadding:c.padding,cardPaddingBase:c.paddingLG,cardActionsIconSize:c.fontSize});return[f(B),Y(B)]},ee),Ve=t(24971),we=function(c,B){var oe={};for(var G in c)Object.prototype.hasOwnProperty.call(c,G)&&B.indexOf(G)<0&&(oe[G]=c[G]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,G=Object.getOwnPropertySymbols(c);ye{const{actionClasses:B,actions:oe=[],actionStyle:G}=c;return e.createElement("ul",{className:B,style:G},oe.map((ye,et)=>{const _=`action-${et}`;return e.createElement("li",{style:{width:`${100/oe.length}%`},key:_},e.createElement("span",null,ye))}))};var ae=e.forwardRef((c,B)=>{const{prefixCls:oe,className:G,rootClassName:ye,style:et,extra:_,headStyle:xe={},bodyStyle:pe={},title:Xe,loading:M,bordered:Ee,variant:be,size:ct,type:Le,cover:re,actions:T,tabList:H,children:d,activeTabKey:ce,defaultActiveTabKey:Z,tabBarExtraContent:r,hoverable:u,tabProps:V={},classNames:K,styles:y}=c,A=we(c,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:L,direction:q,card:i}=e.useContext(N.E_),[v]=(0,Ve.Z)("card",be,Ee),Me=gt=>{var Pt;(Pt=c.onTabChange)===null||Pt===void 0||Pt.call(c,gt)},fe=gt=>{var Pt;return p()((Pt=i==null?void 0:i.classNames)===null||Pt===void 0?void 0:Pt[gt],K==null?void 0:K[gt])},Ie=gt=>{var Pt;return Object.assign(Object.assign({},(Pt=i==null?void 0:i.styles)===null||Pt===void 0?void 0:Pt[gt]),y==null?void 0:y[gt])},Be=e.useMemo(()=>{let gt=!1;return e.Children.forEach(d,Pt=>{(Pt==null?void 0:Pt.type)===J&&(gt=!0)}),gt},[d]),Te=L("card",oe),[Ue,je,x]=te(Te),ne=e.createElement(g.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},d),Ce=ce!==void 0,De=Object.assign(Object.assign({},V),{[Ce?"activeKey":"defaultActiveKey"]:Ce?ce:Z,tabBarExtraContent:r});let S;const X=(0,P.Z)(ct),U=!X||X==="default"?"large":X,me=H?e.createElement(D.default,Object.assign({size:U},De,{className:`${Te}-head-tabs`,onChange:Me,items:H.map(gt=>{var{tab:Pt}=gt,Mt=we(gt,["tab"]);return Object.assign({label:Pt},Mt)})})):null;if(Xe||_||me){const gt=p()(`${Te}-head`,fe("header")),Pt=p()(`${Te}-head-title`,fe("title")),Mt=p()(`${Te}-extra`,fe("extra")),Gt=Object.assign(Object.assign({},xe),Ie("header"));S=e.createElement("div",{className:gt,style:Gt},e.createElement("div",{className:`${Te}-head-wrapper`},Xe&&e.createElement("div",{className:Pt,style:Ie("title")},Xe),_&&e.createElement("div",{className:Mt,style:Ie("extra")},_)),me)}const ze=p()(`${Te}-cover`,fe("cover")),Ke=re?e.createElement("div",{className:ze,style:Ie("cover")},re):null,ut=p()(`${Te}-body`,fe("body")),pt=Object.assign(Object.assign({},pe),Ie("body")),tt=e.createElement("div",{className:ut,style:pt},M?ne:d),mt=p()(`${Te}-actions`,fe("actions")),ke=T!=null&&T.length?e.createElement(k,{actionClasses:mt,actionStyle:Ie("actions"),actions:T}):null,rt=(0,Q.Z)(A,["onTabChange"]),ot=p()(Te,i==null?void 0:i.className,{[`${Te}-loading`]:M,[`${Te}-bordered`]:v!=="borderless",[`${Te}-hoverable`]:u,[`${Te}-contain-grid`]:Be,[`${Te}-contain-tabs`]:H==null?void 0:H.length,[`${Te}-${X}`]:X,[`${Te}-type-${Le}`]:!!Le,[`${Te}-rtl`]:q==="rtl"},G,ye,je,x),xt=Object.assign(Object.assign({},i==null?void 0:i.style),et);return Ue(e.createElement("div",Object.assign({ref:B},rt,{className:ot,style:xt}),S,Ke,tt,ke))}),C=function(c,B){var oe={};for(var G in c)Object.prototype.hasOwnProperty.call(c,G)&&B.indexOf(G)<0&&(oe[G]=c[G]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,G=Object.getOwnPropertySymbols(c);ye{const{prefixCls:B,className:oe,avatar:G,title:ye,description:et}=c,_=C(c,["prefixCls","className","avatar","title","description"]),{getPrefixCls:xe}=e.useContext(N.E_),pe=xe("card",B),Xe=p()(`${pe}-meta`,oe),M=G?e.createElement("div",{className:`${pe}-meta-avatar`},G):null,Ee=ye?e.createElement("div",{className:`${pe}-meta-title`},ye):null,be=et?e.createElement("div",{className:`${pe}-meta-description`},et):null,ct=Ee||be?e.createElement("div",{className:`${pe}-meta-detail`},Ee,be):null;return e.createElement("div",Object.assign({},_,{className:Xe}),M,ct)};const z=ae;z.Grid=J,z.Meta=ie;var W=z},62673:function(Yt,Ge,t){t.d(Ge,{default:function(){return Ve}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(16632),N=t(8654),P=t(12919),g=t(63872),D=t(48755),F=t(2171),n=t(83397),J=t(56553),I=e.createContext(null),Se=t(36170),Ne=t(74632),ge=function(we,k){var Oe={};for(var ae in we)Object.prototype.hasOwnProperty.call(we,ae)&&k.indexOf(ae)<0&&(Oe[ae]=we[ae]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,ae=Object.getOwnPropertySymbols(we);C{var Oe;const{prefixCls:ae,className:C,rootClassName:l,children:ie,indeterminate:z=!1,style:W,onMouseEnter:c,onMouseLeave:B,skipGroup:oe=!1,disabled:G}=we,ye=ge(we,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:_,checkbox:xe}=e.useContext(D.E_),pe=e.useContext(I),{isFormItemInput:Xe}=e.useContext(J.aM),M=e.useContext(F.Z),Ee=(Oe=(pe==null?void 0:pe.disabled)||G)!==null&&Oe!==void 0?Oe:M,be=e.useRef(ye.value),ct=e.useRef(null),Le=(0,N.sQ)(k,ct);e.useEffect(()=>{pe==null||pe.registerValue(ye.value)},[]),e.useEffect(()=>{if(!oe)return ye.value!==be.current&&(pe==null||pe.cancelValue(be.current),pe==null||pe.registerValue(ye.value),be.current=ye.value),()=>pe==null?void 0:pe.cancelValue(ye.value)},[ye.value]),e.useEffect(()=>{var y;!((y=ct.current)===null||y===void 0)&&y.input&&(ct.current.input.indeterminate=z)},[z]);const re=et("checkbox",ae),T=(0,n.Z)(re),[H,d,ce]=(0,Se.ZP)(re,T),Z=Object.assign({},ye);pe&&!oe&&(Z.onChange=function(){ye.onChange&&ye.onChange.apply(ye,arguments),pe.toggleOption&&pe.toggleOption({label:ie,value:ye.value})},Z.name=pe.name,Z.checked=pe.value.includes(ye.value));const r=p()(`${re}-wrapper`,{[`${re}-rtl`]:_==="rtl",[`${re}-wrapper-checked`]:Z.checked,[`${re}-wrapper-disabled`]:Ee,[`${re}-wrapper-in-form-item`]:Xe},xe==null?void 0:xe.className,C,l,ce,T,d),u=p()({[`${re}-indeterminate`]:z},g.A,d),[V,K]=(0,Ne.Z)(Z.onClick);return H(e.createElement(P.Z,{component:"Checkbox",disabled:Ee},e.createElement("label",{className:r,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),W),onMouseEnter:c,onMouseLeave:B,onClick:V},e.createElement(Q.Z,Object.assign({},Z,{onClick:K,prefixCls:re,className:u,disabled:Ee,ref:Le})),ie!==void 0&&e.createElement("span",{className:`${re}-label`},ie))))};var h=e.forwardRef(se),de=t(94480),s=t(2738),f=function(we,k){var Oe={};for(var ae in we)Object.prototype.hasOwnProperty.call(we,ae)&&k.indexOf(ae)<0&&(Oe[ae]=we[ae]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,ae=Object.getOwnPropertySymbols(we);C{const{defaultValue:Oe,children:ae,options:C=[],prefixCls:l,className:ie,rootClassName:z,style:W,onChange:c}=we,B=f(we,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:oe,direction:G}=e.useContext(D.E_),[ye,et]=e.useState(B.value||Oe||[]),[_,xe]=e.useState([]);e.useEffect(()=>{"value"in B&&et(B.value||[])},[B.value]);const pe=e.useMemo(()=>C.map(u=>typeof u=="string"||typeof u=="number"?{label:u,value:u}:u),[C]),Xe=u=>{xe(V=>V.filter(K=>K!==u))},M=u=>{xe(V=>[].concat((0,de.Z)(V),[u]))},Ee=u=>{const V=ye.indexOf(u.value),K=(0,de.Z)(ye);V===-1?K.push(u.value):K.splice(V,1),"value"in B||et(K),c==null||c(K.filter(y=>_.includes(y)).sort((y,A)=>{const L=pe.findIndex(i=>i.value===y),q=pe.findIndex(i=>i.value===A);return L-q}))},be=oe("checkbox",l),ct=`${be}-group`,Le=(0,n.Z)(be),[re,T,H]=(0,Se.ZP)(be,Le),d=(0,s.Z)(B,["value","disabled"]),ce=C.length?pe.map(u=>e.createElement(h,{prefixCls:be,key:u.value.toString(),disabled:"disabled"in u?u.disabled:B.disabled,value:u.value,checked:ye.includes(u.value),onChange:u.onChange,className:`${ct}-item`,style:u.style,title:u.title,id:u.id,required:u.required},u.label)):ae,Z={toggleOption:Ee,value:ye,disabled:B.disabled,name:B.name,registerValue:M,cancelValue:Xe},r=p()(ct,{[`${ct}-rtl`]:G==="rtl"},ie,z,H,Le,T);return re(e.createElement("div",Object.assign({className:r,style:W},d,{ref:k}),e.createElement(I.Provider,{value:Z},ce)))});const te=h;te.Group=ee,te.__ANT_CHECKBOX=!0;var Ve=te},36170:function(Yt,Ge,t){t.d(Ge,{C2:function(){return P}});var e=t(36237),m=t(63356),p=t(51636),Q=t(16931);const N=g=>{const{checkboxCls:D}=g,F=`${D}-wrapper`;return[{[`${D}-group`]:Object.assign(Object.assign({},(0,m.Wf)(g)),{display:"inline-flex",flexWrap:"wrap",columnGap:g.marginXS,[`> ${g.antCls}-row`]:{flex:1}}),[F]:Object.assign(Object.assign({},(0,m.Wf)(g)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${F}`]:{marginInlineStart:0},[`&${F}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[D]:Object.assign(Object.assign({},(0,m.Wf)(g)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:g.borderRadiusSM,alignSelf:"center",[`${D}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${D}-inner`]:Object.assign({},(0,m.oN)(g))},[`${D}-inner`]:{boxSizing:"border-box",display:"block",width:g.checkboxSize,height:g.checkboxSize,direction:"ltr",backgroundColor:g.colorBgContainer,border:`${(0,e.unit)(g.lineWidth)} ${g.lineType} ${g.colorBorder}`,borderRadius:g.borderRadiusSM,borderCollapse:"separate",transition:`all ${g.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:g.calc(g.checkboxSize).div(14).mul(5).equal(),height:g.calc(g.checkboxSize).div(14).mul(8).equal(),border:`${(0,e.unit)(g.lineWidthBold)} solid ${g.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${g.motionDurationFast} ${g.motionEaseInBack}, opacity ${g.motionDurationFast}`}},"& + span":{paddingInlineStart:g.paddingXS,paddingInlineEnd:g.paddingXS}})},{[` - ${F}:not(${F}-disabled), - ${D}:not(${D}-disabled) - `]:{[`&:hover ${D}-inner`]:{borderColor:g.colorPrimary}},[`${F}:not(${F}-disabled)`]:{[`&:hover ${D}-checked:not(${D}-disabled) ${D}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${D}-checked:not(${D}-disabled):after`]:{borderColor:g.colorPrimaryHover}}},{[`${D}-checked`]:{[`${D}-inner`]:{backgroundColor:g.colorPrimary,borderColor:g.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${g.motionDurationMid} ${g.motionEaseOutBack} ${g.motionDurationFast}`}}},[` - ${F}-checked:not(${F}-disabled), - ${D}-checked:not(${D}-disabled) - `]:{[`&:hover ${D}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"}}},{[D]:{"&-indeterminate":{[`${D}-inner`]:{backgroundColor:`${g.colorBgContainer} !important`,borderColor:`${g.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:g.calc(g.fontSizeLG).div(2).equal(),height:g.calc(g.fontSizeLG).div(2).equal(),backgroundColor:g.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${D}-inner`]:{backgroundColor:`${g.colorBgContainer} !important`,borderColor:`${g.colorPrimary} !important`}}}},{[`${F}-disabled`]:{cursor:"not-allowed"},[`${D}-disabled`]:{[`&, ${D}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${D}-inner`]:{background:g.colorBgContainerDisabled,borderColor:g.colorBorder,"&:after":{borderColor:g.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:g.colorTextDisabled},[`&${D}-indeterminate ${D}-inner::after`]:{background:g.colorTextDisabled}}}]};function P(g,D){const F=(0,p.mergeToken)(D,{checkboxCls:`.${g}`,checkboxSize:D.controlInteractiveSize});return[N(F)]}Ge.ZP=(0,Q.I$)("Checkbox",(g,D)=>{let{prefixCls:F}=D;return[P(F,g)]})},74632:function(Yt,Ge,t){t.d(Ge,{Z:function(){return p}});var e=t(59301),m=t(16089);function p(Q){const N=e.useRef(null),P=()=>{m.Z.cancel(N.current),N.current=null};return[()=>{P(),N.current=(0,m.Z)(()=>{N.current=null})},F=>{N.current&&(F.stopPropagation(),P()),Q==null||Q(F)}]}},38406:function(Yt,Ge,t){var e=t(59301),m=t(48755),p=t(584);const Q=N=>{const{componentName:P}=N,{getPrefixCls:g}=(0,e.useContext)(m.E_),D=g("empty");switch(P){case"Table":case"List":return e.createElement(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return e.createElement(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,className:`${D}-small`});case"Table.filter":return null;default:return e.createElement(p.Z,null)}};Ge.Z=Q},37285:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Se}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(48755),N=t(36237),P=t(63356),g=t(16931),D=t(51636);const F=Ne=>{const{componentCls:ge,sizePaddingEdgeHorizontal:se,colorSplit:ve,lineWidth:h,textPaddingInline:de,orientationMargin:s,verticalMarginInline:f}=Ne;return{[ge]:Object.assign(Object.assign({},(0,P.Wf)(Ne)),{borderBlockStart:`${(0,N.unit)(h)} solid ${ve}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:f,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,N.unit)(h)} solid ${ve}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,N.unit)(Ne.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${ge}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,N.unit)(Ne.dividerHorizontalWithTextGutterMargin)} 0`,color:Ne.colorTextHeading,fontWeight:500,fontSize:Ne.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ve}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,N.unit)(h)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ge}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${ge}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${ge}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:de},"&-dashed":{background:"none",borderColor:ve,borderStyle:"dashed",borderWidth:`${(0,N.unit)(h)} 0 0`},[`&-horizontal${ge}-with-text${ge}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ge}-dashed`]:{borderInlineStartWidth:h,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:ve,borderStyle:"dotted",borderWidth:`${(0,N.unit)(h)} 0 0`},[`&-horizontal${ge}-with-text${ge}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${ge}-dotted`]:{borderInlineStartWidth:h,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ge}-with-text`]:{color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize},[`&-horizontal${ge}-with-text-start${ge}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ge}-inner-text`]:{paddingInlineStart:se}},[`&-horizontal${ge}-with-text-end${ge}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ge}-inner-text`]:{paddingInlineEnd:se}}})}},n=Ne=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ne.marginXS});var J=(0,g.I$)("Divider",Ne=>{const ge=(0,D.mergeToken)(Ne,{dividerHorizontalWithTextGutterMargin:Ne.margin,dividerHorizontalGutterMargin:Ne.marginLG,sizePaddingEdgeHorizontal:0});return[F(ge)]},n,{unitless:{orientationMargin:!0}}),O=function(Ne,ge){var se={};for(var ve in Ne)Object.prototype.hasOwnProperty.call(Ne,ve)&&ge.indexOf(ve)<0&&(se[ve]=Ne[ve]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,ve=Object.getOwnPropertySymbols(Ne);h{const{getPrefixCls:ge,direction:se,className:ve,style:h}=(0,Q.dj)("divider"),{prefixCls:de,type:s="horizontal",orientation:f="center",orientationMargin:Y,className:ee,rootClassName:te,children:Ve,dashed:we,variant:k="solid",plain:Oe,style:ae}=Ne,C=O(Ne,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),l=ge("divider",de),[ie,z,W]=J(l),c=!!Ve,B=e.useMemo(()=>f==="left"?se==="rtl"?"end":"start":f==="right"?se==="rtl"?"start":"end":f,[se,f]),oe=B==="start"&&Y!=null,G=B==="end"&&Y!=null,ye=p()(l,ve,z,W,`${l}-${s}`,{[`${l}-with-text`]:c,[`${l}-with-text-${B}`]:c,[`${l}-dashed`]:!!we,[`${l}-${k}`]:k!=="solid",[`${l}-plain`]:!!Oe,[`${l}-rtl`]:se==="rtl",[`${l}-no-default-orientation-margin-start`]:oe,[`${l}-no-default-orientation-margin-end`]:G},ee,te),et=e.useMemo(()=>typeof Y=="number"?Y:/^\d+$/.test(Y)?Number(Y):Y,[Y]),_={marginInlineStart:oe?et:void 0,marginInlineEnd:G?et:void 0};return ie(e.createElement("div",Object.assign({className:ye,style:Object.assign(Object.assign({},h),ae)},C,{role:"separator"}),Ve&&s!=="vertical"&&e.createElement("span",{className:`${l}-inner-text`,style:_},Ve)))}},19563:function(Yt,Ge,t){t.d(Ge,{Z:function(){return et}});var e=t(59301),m=t(33853),p=t(38819),Q=t(92310),N=t.n(Q),P=t(96478),g=t(6089),D=t(18929),F=t(2738),n=t(75030),O=_=>typeof _!="object"&&typeof _!="function"||_===null,I=t(52838),Se=t(45915),Ne=t(22703),ge=t(32383),se=t(55743),ve=t(48755),h=t(83397),de=t(93041),s=t(78857),f=t(57700),Y=t(36237),ee=t(63356),te=t(46e3),Ve=t(93873),we=t(34925),k=t(37645),Oe=t(36305),ae=t(16931),C=t(51636),ie=_=>{const{componentCls:xe,menuCls:pe,colorError:Xe,colorTextLightSolid:M}=_,Ee=`${pe}-item`;return{[`${xe}, ${xe}-menu-submenu`]:{[`${pe} ${Ee}`]:{[`&${Ee}-danger:not(${Ee}-disabled)`]:{color:Xe,"&:hover":{color:M,backgroundColor:Xe}}}}}};const z=_=>{const{componentCls:xe,menuCls:pe,zIndexPopup:Xe,dropdownArrowDistance:M,sizePopupArrow:Ee,antCls:be,iconCls:ct,motionDurationMid:Le,paddingBlock:re,fontSize:T,dropdownEdgeChildPadding:H,colorTextDisabled:d,fontSizeIcon:ce,controlPaddingHorizontal:Z,colorBgElevated:r}=_;return[{[xe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xe,display:"block","&::before":{position:"absolute",insetBlock:_.calc(Ee).div(2).sub(M).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${be}-btn`]:{[`& > ${ct}-down, & > ${be}-btn-icon > ${ct}-down`]:{fontSize:ce}},[`${xe}-wrap`]:{position:"relative",[`${be}-btn > ${ct}-down`]:{fontSize:ce},[`${ct}-down::before`]:{transition:`transform ${Le}`}},[`${xe}-wrap-open`]:{[`${ct}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${be}-slide-down-enter${be}-slide-down-enter-active${xe}-placement-bottomLeft, - &${be}-slide-down-appear${be}-slide-down-appear-active${xe}-placement-bottomLeft, - &${be}-slide-down-enter${be}-slide-down-enter-active${xe}-placement-bottom, - &${be}-slide-down-appear${be}-slide-down-appear-active${xe}-placement-bottom, - &${be}-slide-down-enter${be}-slide-down-enter-active${xe}-placement-bottomRight, - &${be}-slide-down-appear${be}-slide-down-appear-active${xe}-placement-bottomRight`]:{animationName:te.fJ},[`&${be}-slide-up-enter${be}-slide-up-enter-active${xe}-placement-topLeft, - &${be}-slide-up-appear${be}-slide-up-appear-active${xe}-placement-topLeft, - &${be}-slide-up-enter${be}-slide-up-enter-active${xe}-placement-top, - &${be}-slide-up-appear${be}-slide-up-appear-active${xe}-placement-top, - &${be}-slide-up-enter${be}-slide-up-enter-active${xe}-placement-topRight, - &${be}-slide-up-appear${be}-slide-up-appear-active${xe}-placement-topRight`]:{animationName:te.Qt},[`&${be}-slide-down-leave${be}-slide-down-leave-active${xe}-placement-bottomLeft, - &${be}-slide-down-leave${be}-slide-down-leave-active${xe}-placement-bottom, - &${be}-slide-down-leave${be}-slide-down-leave-active${xe}-placement-bottomRight`]:{animationName:te.Uw},[`&${be}-slide-up-leave${be}-slide-up-leave-active${xe}-placement-topLeft, - &${be}-slide-up-leave${be}-slide-up-leave-active${xe}-placement-top, - &${be}-slide-up-leave${be}-slide-up-leave-active${xe}-placement-topRight`]:{animationName:te.ly}}},(0,k.ZP)(_,r,{arrowPlacement:{top:!0,bottom:!0}}),{[`${xe} ${pe}`]:{position:"relative",margin:0},[`${pe}-submenu-popup`]:{position:"absolute",zIndex:Xe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${xe}, ${xe}-menu-submenu`]:Object.assign(Object.assign({},(0,ee.Wf)(_)),{[pe]:Object.assign(Object.assign({padding:H,listStyleType:"none",backgroundColor:r,backgroundClip:"padding-box",borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary},(0,ee.Qy)(_)),{"&:empty":{padding:0,boxShadow:"none"},[`${pe}-item-group-title`]:{padding:`${(0,Y.unit)(re)} ${(0,Y.unit)(Z)}`,color:_.colorTextDescription,transition:`all ${Le}`},[`${pe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${pe}-item-icon`]:{minWidth:T,marginInlineEnd:_.marginXS,fontSize:_.fontSizeSM},[`${pe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Le}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${pe}-item-extra`]:{paddingInlineStart:_.padding,marginInlineStart:"auto",fontSize:_.fontSizeSM,color:_.colorTextDescription}},[`${pe}-item, ${pe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Y.unit)(re)} ${(0,Y.unit)(Z)}`,color:_.colorText,fontWeight:"normal",fontSize:T,lineHeight:_.lineHeight,cursor:"pointer",transition:`all ${Le}`,borderRadius:_.borderRadiusSM,"&:hover, &-active":{backgroundColor:_.controlItemBgHover}},(0,ee.Qy)(_)),{"&-selected":{color:_.colorPrimary,backgroundColor:_.controlItemBgActive,"&:hover, &-active":{backgroundColor:_.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:r,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Y.unit)(_.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:_.colorSplit},[`${xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_.paddingXS,[`${xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${pe}-item-group-list`]:{margin:`0 ${(0,Y.unit)(_.marginXS)}`,padding:0,listStyle:"none"},[`${pe}-submenu-title`]:{paddingInlineEnd:_.calc(Z).add(_.fontSizeSM).equal()},[`${pe}-submenu-vertical`]:{position:"relative"},[`${pe}-submenu${pe}-submenu-disabled ${xe}-menu-submenu-title`]:{[`&, ${xe}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:r,cursor:"not-allowed"}},[`${pe}-submenu-selected ${xe}-menu-submenu-title`]:{color:_.colorPrimary}})})},[(0,te.oN)(_,"slide-up"),(0,te.oN)(_,"slide-down"),(0,Ve.Fm)(_,"move-up"),(0,Ve.Fm)(_,"move-down"),(0,we._y)(_,"zoom-big")]]},W=_=>Object.assign(Object.assign({zIndexPopup:_.zIndexPopupBase+50,paddingBlock:(_.controlHeight-_.fontSize*_.lineHeight)/2},(0,k.wZ)({contentRadius:_.borderRadiusLG,limitVerticalRadius:!0})),(0,Oe.w)(_));var c=(0,ae.I$)("Dropdown",_=>{const{marginXXS:xe,sizePopupArrow:pe,paddingXXS:Xe,componentCls:M}=_,Ee=(0,C.mergeToken)(_,{menuCls:`${M}-menu`,dropdownArrowDistance:_.calc(pe).div(2).add(xe).equal(),dropdownEdgeChildPadding:Xe});return[z(Ee),ie(Ee)]},W,{resetStyle:!1});const B=null,oe=_=>{var xe;const{menu:pe,arrow:Xe,prefixCls:M,children:Ee,trigger:be,disabled:ct,dropdownRender:Le,getPopupContainer:re,overlayClassName:T,rootClassName:H,overlayStyle:d,open:ce,onOpenChange:Z,visible:r,onVisibleChange:u,mouseEnterDelay:V=.15,mouseLeaveDelay:K=.1,autoAdjustOverflow:y=!0,placement:A="",overlay:L,transitionName:q}=_,{getPopupContainer:i,getPrefixCls:v,direction:Me,dropdown:fe}=e.useContext(ve.E_),Ie=(0,ge.ln)("Dropdown"),Be=e.useMemo(()=>{const gt=v();return q!==void 0?q:A.includes("top")?`${gt}-slide-down`:`${gt}-slide-up`},[v,A,q]),Te=e.useMemo(()=>A?A.includes("Center")?A.slice(0,A.indexOf("Center")):A:Me==="rtl"?"bottomRight":"bottomLeft",[A,Me]),Ue=v("dropdown",M),je=(0,h.Z)(Ue),[x,ne,Ce]=c(Ue,je),[,De]=(0,f.ZP)(),S=e.Children.only(O(Ee)?e.createElement("span",null,Ee):Ee),X=(0,Ne.Tm)(S,{className:N()(`${Ue}-trigger`,{[`${Ue}-rtl`]:Me==="rtl"},S.props.className),disabled:(xe=S.props.disabled)!==null&&xe!==void 0?xe:ct}),U=ct?[]:be,me=!!(U!=null&&U.includes("contextMenu")),[ze,Ke]=(0,D.Z)(!1,{value:ce!=null?ce:r}),ut=(0,g.Z)(gt=>{Z==null||Z(gt,{source:"trigger"}),u==null||u(gt),Ke(gt)}),pt=N()(T,H,ne,Ce,je,fe==null?void 0:fe.className,{[`${Ue}-rtl`]:Me==="rtl"}),tt=(0,I.Z)({arrowPointAtCenter:typeof Xe=="object"&&Xe.pointAtCenter,autoAdjustOverflow:y,offset:De.marginXXS,arrowWidth:Xe?De.sizePopupArrow:0,borderRadius:De.borderRadius}),mt=e.useCallback(()=>{pe!=null&&pe.selectable&&(pe!=null&&pe.multiple)||(Z==null||Z(!1,{source:"menu"}),Ke(!1))},[pe==null?void 0:pe.selectable,pe==null?void 0:pe.multiple]),ke=()=>{let gt;return pe!=null&&pe.items?gt=e.createElement(de.default,Object.assign({},pe)):typeof L=="function"?gt=L():gt=L,Le&&(gt=Le(gt)),gt=e.Children.only(typeof gt=="string"?e.createElement("span",null,gt):gt),e.createElement(s.J,{prefixCls:`${Ue}-menu`,rootClassName:N()(Ce,je),expandIcon:e.createElement("span",{className:`${Ue}-menu-submenu-arrow`},Me==="rtl"?e.createElement(m.Z,{className:`${Ue}-menu-submenu-arrow-icon`}):e.createElement(p.Z,{className:`${Ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:Pt=>{let{mode:Mt}=Pt}},gt)},[rt,ot]=(0,n.Cn)("Dropdown",d==null?void 0:d.zIndex);let xt=e.createElement(P.Z,Object.assign({alignPoint:me},(0,F.Z)(_,["rootClassName"]),{mouseEnterDelay:V,mouseLeaveDelay:K,visible:ze,builtinPlacements:tt,arrow:!!Xe,overlayClassName:pt,prefixCls:Ue,getPopupContainer:re||i,transitionName:Be,trigger:U,overlay:ke,placement:Te,onVisibleChange:ut,overlayStyle:Object.assign(Object.assign(Object.assign({},fe==null?void 0:fe.style),d),{zIndex:rt})}),X);return rt&&(xt=e.createElement(se.Z.Provider,{value:ot},xt)),x(xt)},G=(0,Se.Z)(oe,"align",void 0,"dropdown",_=>_),ye=_=>e.createElement(G,Object.assign({},_),e.createElement("span",null));oe._InternalPanelDoNotUseOrYouWillBeFired=ye;var et=oe},75727:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Se}});var e=t(19563),m=t(59301),p=t(18785),Q=t(92310),N=t.n(Q),P=t(7939),g=t(48755),D=t(44104),F=t(70045),n=function(Ne,ge){var se={};for(var ve in Ne)Object.prototype.hasOwnProperty.call(Ne,ve)&&ge.indexOf(ve)<0&&(se[ve]=Ne[ve]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,ve=Object.getOwnPropertySymbols(Ne);h{const{getPopupContainer:ge,getPrefixCls:se,direction:ve}=m.useContext(g.E_),{prefixCls:h,type:de="default",danger:s,disabled:f,loading:Y,onClick:ee,htmlType:te,children:Ve,className:we,menu:k,arrow:Oe,autoFocus:ae,overlay:C,trigger:l,align:ie,open:z,onOpenChange:W,placement:c,getPopupContainer:B,href:oe,icon:G=m.createElement(p.Z,null),title:ye,buttonsRender:et=V=>V,mouseEnterDelay:_,mouseLeaveDelay:xe,overlayClassName:pe,overlayStyle:Xe,destroyPopupOnHide:M,dropdownRender:Ee}=Ne,be=n(Ne,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ct=se("dropdown",h),Le=`${ct}-button`,re={menu:k,arrow:Oe,autoFocus:ae,align:ie,disabled:f,trigger:f?[]:l,onOpenChange:W,getPopupContainer:B||ge,mouseEnterDelay:_,mouseLeaveDelay:xe,overlayClassName:pe,overlayStyle:Xe,destroyPopupOnHide:M,dropdownRender:Ee},{compactSize:T,compactItemClassnames:H}=(0,F.ri)(ct,ve),d=N()(Le,H,we);"overlay"in Ne&&(re.overlay=C),"open"in Ne&&(re.open=z),"placement"in Ne?re.placement=c:re.placement=ve==="rtl"?"bottomLeft":"bottomRight";const ce=m.createElement(P.ZP,{type:de,danger:s,disabled:f,loading:Y,onClick:ee,htmlType:te,href:oe,title:ye},Ve),Z=m.createElement(P.ZP,{type:de,danger:s,icon:G}),[r,u]=et([ce,Z]);return m.createElement(D.Z.Compact,Object.assign({className:d,size:T,block:!0},be),r,m.createElement(e.Z,Object.assign({},re),u))};J.__ANT_BUTTON=!0;var O=J;const I=e.Z;I.Button=O;var Se=I},584:function(Yt,Ge,t){t.d(Ge,{Z:function(){return de}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(9017),N=t(17835),P=t(57700),D=()=>{const[,s]=(0,P.ZP)(),[f]=(0,Q.Z)("Empty"),ee=new N.FastColor(s.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(f==null?void 0:f.description)||"Empty"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),e.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),e.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),e.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),e.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},n=()=>{const[,s]=(0,P.ZP)(),[f]=(0,Q.Z)("Empty"),{colorFill:Y,colorFillTertiary:ee,colorFillQuaternary:te,colorBgContainer:Ve}=s,{borderColor:we,shadowColor:k,contentColor:Oe}=(0,e.useMemo)(()=>({borderColor:new N.FastColor(Y).onBackground(Ve).toHexString(),shadowColor:new N.FastColor(ee).onBackground(Ve).toHexString(),contentColor:new N.FastColor(te).onBackground(Ve).toHexString()}),[Y,ee,te,Ve]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(f==null?void 0:f.description)||"Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:k,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:we},e.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),e.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Oe}))))},J=t(16931),O=t(51636);const I=s=>{const{componentCls:f,margin:Y,marginXS:ee,marginXL:te,fontSize:Ve,lineHeight:we}=s;return{[f]:{marginInline:ee,fontSize:Ve,lineHeight:we,textAlign:"center",[`${f}-image`]:{height:s.emptyImgHeight,marginBottom:ee,opacity:s.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${f}-description`]:{color:s.colorTextDescription},[`${f}-footer`]:{marginTop:Y},"&-normal":{marginBlock:te,color:s.colorTextDescription,[`${f}-description`]:{color:s.colorTextDescription},[`${f}-image`]:{height:s.emptyImgHeightMD}},"&-small":{marginBlock:ee,color:s.colorTextDescription,[`${f}-image`]:{height:s.emptyImgHeightSM}}}}};var Se=(0,J.I$)("Empty",s=>{const{componentCls:f,controlHeightLG:Y,calc:ee}=s,te=(0,O.mergeToken)(s,{emptyImgCls:`${f}-img`,emptyImgHeight:ee(Y).mul(2.5).equal(),emptyImgHeightMD:Y,emptyImgHeightSM:ee(Y).mul(.875).equal()});return[I(te)]}),Ne=t(48755),ge=function(s,f){var Y={};for(var ee in s)Object.prototype.hasOwnProperty.call(s,ee)&&f.indexOf(ee)<0&&(Y[ee]=s[ee]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,ee=Object.getOwnPropertySymbols(s);te{const{className:f,rootClassName:Y,prefixCls:ee,image:te=se,description:Ve,children:we,imageStyle:k,style:Oe,classNames:ae,styles:C}=s,l=ge(s,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ie,direction:z,className:W,style:c,classNames:B,styles:oe}=(0,Ne.dj)("empty"),G=ie("empty",ee),[ye,et,_]=Se(G),[xe]=(0,Q.Z)("Empty"),pe=typeof Ve!="undefined"?Ve:xe==null?void 0:xe.description,Xe=typeof pe=="string"?pe:"empty";let M=null;return typeof te=="string"?M=e.createElement("img",{alt:Xe,src:te}):M=te,ye(e.createElement("div",Object.assign({className:p()(et,_,G,W,{[`${G}-normal`]:te===ve,[`${G}-rtl`]:z==="rtl"},f,Y,B.root,ae==null?void 0:ae.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},oe.root),c),C==null?void 0:C.root),Oe)},l),e.createElement("div",{className:p()(`${G}-image`,B.image,ae==null?void 0:ae.image),style:Object.assign(Object.assign(Object.assign({},k),oe.image),C==null?void 0:C.image)},M),pe&&e.createElement("div",{className:p()(`${G}-description`,B.description,ae==null?void 0:ae.description),style:Object.assign(Object.assign({},oe.description),C==null?void 0:C.description)},pe),we&&e.createElement("div",{className:p()(`${G}-footer`,B.footer,ae==null?void 0:ae.footer),style:Object.assign(Object.assign({},oe.footer),C==null?void 0:C.footer)},we)))};h.PRESENTED_IMAGE_DEFAULT=se,h.PRESENTED_IMAGE_SIMPLE=ve;var de=h},24971:function(Yt,Ge,t){var e=t(59301),m=t(56553),p=t(48755);const Q=function(N,P){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var D,F;const{variant:n,[N]:J}=e.useContext(p.E_),O=e.useContext(m.pg),I=J==null?void 0:J.variant;let Se;typeof P!="undefined"?Se=P:g===!1?Se="borderless":Se=(F=(D=O!=null?O:I)!==null&&D!==void 0?D:n)!==null&&F!==void 0?F:"outlined";const Ne=p.tr.includes(Se);return[Se,Ne]};Ge.Z=Q},4875:function(Yt,Ge,t){t.d(Ge,{Z:function(){return De}});var e=t(59301),m=t(84105),p=t(87395),Q=t(92310),N=t.n(Q),P=t(54476),g=t(20068),D=t(76190),F=t(42978),n=t(75931),J=t(67732),O=t(83652);function I(){return typeof BigInt=="function"}function Se(S){return!S&&S!==0&&!Number.isNaN(S)||!String(S).trim()}function Ne(S){var X=S.trim(),U=X.startsWith("-");U&&(X=X.slice(1)),X=X.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),X.startsWith(".")&&(X="0".concat(X));var me=X||"0",ze=me.split("."),Ke=ze[0]||"0",ut=ze[1]||"0";Ke==="0"&&ut==="0"&&(U=!1);var pt=U?"-":"";return{negative:U,negativeStr:pt,trimStr:me,integerStr:Ke,decimalStr:ut,fullStr:"".concat(pt).concat(me)}}function ge(S){var X=String(S);return!Number.isNaN(Number(X))&&X.includes("e")}function se(S){var X=String(S);if(ge(S)){var U=Number(X.slice(X.indexOf("e-")+2)),me=X.match(/\.(\d+)/);return me!=null&&me[1]&&(U+=me[1].length),U}return X.includes(".")&&h(X)?X.length-X.indexOf(".")-1:0}function ve(S){var X=String(S);if(ge(S)){if(S>Number.MAX_SAFE_INTEGER)return String(I()?BigInt(S).toString():Number.MAX_SAFE_INTEGER);if(S0&&arguments[0]!==void 0?arguments[0]:!0;return U?this.isInvalidate()?"":Ne("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),S}(),s=function(){function S(X){if((0,J.Z)(this,S),(0,g.Z)(this,"origin",""),(0,g.Z)(this,"number",void 0),(0,g.Z)(this,"empty",void 0),Se(X)){this.empty=!0;return}this.origin=String(X),this.number=Number(X)}return(0,O.Z)(S,[{key:"negate",value:function(){return new S(-this.toNumber())}},{key:"add",value:function(U){if(this.isInvalidate())return new S(U);var me=Number(U);if(Number.isNaN(me))return this;var ze=this.number+me;if(ze>Number.MAX_SAFE_INTEGER)return new S(Number.MAX_SAFE_INTEGER);if(zeNumber.MAX_SAFE_INTEGER)return new S(Number.MAX_SAFE_INTEGER);if(ze0&&arguments[0]!==void 0?arguments[0]:!0;return U?this.isInvalidate()?"":ve(this.number):this.origin}}]),S}();function f(S){return I()?new de(S):new s(S)}function Y(S,X,U){var me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(S==="")return"";var ze=Ne(S),Ke=ze.negativeStr,ut=ze.integerStr,pt=ze.decimalStr,tt="".concat(X).concat(pt),mt="".concat(Ke).concat(ut);if(U>=0){var ke=Number(pt[U]);if(ke>=5&&!me){var rt=f(S).add("".concat(Ke,"0.").concat("0".repeat(U)).concat(10-ke));return Y(rt.toString(),X,U,me)}return U===0?mt:"".concat(mt).concat(X).concat(pt.padEnd(U,"0").slice(0,U))}return tt===".0"?mt:"".concat(mt).concat(tt)}var ee=f,te=t(36901),Ve=t(34280);function we(S,X){return typeof Proxy!="undefined"&&S?new Proxy(S,{get:function(me,ze){if(X[ze])return X[ze];var Ke=me[ze];return typeof Ke=="function"?Ke.bind(me):Ke}}):S}var k=t(8654),Oe=t(48736);function ae(S,X){var U=(0,e.useRef)(null);function me(){try{var Ke=S.selectionStart,ut=S.selectionEnd,pt=S.value,tt=pt.substring(0,Ke),mt=pt.substring(ut);U.current={start:Ke,end:ut,value:pt,beforeTxt:tt,afterTxt:mt}}catch(ke){}}function ze(){if(S&&U.current&&X)try{var Ke=S.value,ut=U.current,pt=ut.beforeTxt,tt=ut.afterTxt,mt=ut.start,ke=Ke.length;if(Ke.startsWith(pt))ke=pt.length;else if(Ke.endsWith(tt))ke=Ke.length-U.current.afterTxt.length;else{var rt=pt[mt-1],ot=Ke.indexOf(rt,mt-1);ot!==-1&&(ke=ot+1)}S.setSelectionRange(ke,ke)}catch(xt){(0,Oe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(xt.message))}}return[me,ze]}var C=t(49658),l=function(){var X=(0,e.useState)(!1),U=(0,F.Z)(X,2),me=U[0],ze=U[1];return(0,Ve.Z)(function(){ze((0,C.Z)())},[]),me},ie=l,z=t(16089),W=200,c=600;function B(S){var X=S.prefixCls,U=S.upNode,me=S.downNode,ze=S.upDisabled,Ke=S.downDisabled,ut=S.onStep,pt=e.useRef(),tt=e.useRef([]),mt=e.useRef();mt.current=ut;var ke=function(){clearTimeout(pt.current)},rt=function(Ht,At){Ht.preventDefault(),ke(),mt.current(At);function vn(){mt.current(At),pt.current=setTimeout(vn,W)}pt.current=setTimeout(vn,c)};e.useEffect(function(){return function(){ke(),tt.current.forEach(function(rn){return z.Z.cancel(rn)})}},[]);var ot=ie();if(ot)return null;var xt="".concat(X,"-handler"),gt=N()(xt,"".concat(xt,"-up"),(0,g.Z)({},"".concat(xt,"-up-disabled"),ze)),Pt=N()(xt,"".concat(xt,"-down"),(0,g.Z)({},"".concat(xt,"-down-disabled"),Ke)),Mt=function(){return tt.current.push((0,z.Z)(ke))},Gt={unselectable:"on",role:"button",onMouseUp:Mt,onMouseLeave:Mt};return e.createElement("div",{className:"".concat(xt,"-wrap")},e.createElement("span",(0,P.Z)({},Gt,{onMouseDown:function(Ht){rt(Ht,!0)},"aria-label":"Increase Value","aria-disabled":ze,className:gt}),U||e.createElement("span",{unselectable:"on",className:"".concat(X,"-handler-up-inner")})),e.createElement("span",(0,P.Z)({},Gt,{onMouseDown:function(Ht){rt(Ht,!1)},"aria-label":"Decrease Value","aria-disabled":Ke,className:Pt}),me||e.createElement("span",{unselectable:"on",className:"".concat(X,"-handler-down-inner")})))}function oe(S){var X=typeof S=="number"?ve(S):Ne(S).fullStr,U=X.includes(".");return U?Ne(X.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:S+"0"}var G=t(30292),ye=function(){var S=(0,e.useRef)(0),X=function(){z.Z.cancel(S.current)};return(0,e.useEffect)(function(){return X},[]),function(U){X(),S.current=(0,z.Z)(function(){U()})}},et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],_=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],xe=function(X,U){return X||U.isEmpty()?U.toString():U.toNumber()},pe=function(X){var U=ee(X);return U.isInvalidate()?null:U},Xe=e.forwardRef(function(S,X){var U=S.prefixCls,me=S.className,ze=S.style,Ke=S.min,ut=S.max,pt=S.step,tt=pt===void 0?1:pt,mt=S.defaultValue,ke=S.value,rt=S.disabled,ot=S.readOnly,xt=S.upHandler,gt=S.downHandler,Pt=S.keyboard,Mt=S.changeOnWheel,Gt=Mt===void 0?!1:Mt,rn=S.controls,Ht=rn===void 0?!0:rn,At=S.classNames,vn=S.stringMode,Bt=S.parser,mn=S.formatter,pn=S.precision,en=S.decimalSeparator,b=S.onChange,w=S.onInput,it=S.onPressEnter,R=S.onStep,$=S.changeOnBlur,He=$===void 0?!0:$,Pe=S.domRef,Ae=(0,n.Z)(S,et),qe="".concat(U,"-input"),Fe=e.useRef(null),at=e.useState(!1),Ct=(0,F.Z)(at,2),bt=Ct[0],vt=Ct[1],zt=e.useRef(!1),Kt=e.useRef(!1),Rt=e.useRef(!1),ue=e.useState(function(){return ee(ke!=null?ke:mt)}),Re=(0,F.Z)(ue,2),Ze=Re[0],Ye=Re[1];function _e(It){ke===void 0&&Ye(It)}var nt=e.useCallback(function(It,wt){if(!wt)return pn>=0?pn:Math.max(se(It),se(tt))},[pn,tt]),ft=e.useCallback(function(It){var wt=String(It);if(Bt)return Bt(wt);var kt=wt;return en&&(kt=kt.replace(en,".")),kt.replace(/[^\w.-]+/g,"")},[Bt,en]),Ot=e.useRef(""),Dt=e.useCallback(function(It,wt){if(mn)return mn(It,{userTyping:wt,input:String(Ot.current)});var kt=typeof It=="number"?ve(It):It;if(!wt){var nn=nt(kt,wt);if(h(kt)&&(en||nn>=0)){var Tn=en||".";kt=Y(kt,Tn,nn)}}return kt},[mn,nt,en]),Ft=e.useState(function(){var It=mt!=null?mt:ke;return Ze.isInvalidate()&&["string","number"].includes((0,D.Z)(It))?Number.isNaN(It)?"":It:Dt(Ze.toString(),!1)}),Xt=(0,F.Z)(Ft,2),Tt=Xt[0],Zt=Xt[1];Ot.current=Tt;function jt(It,wt){Zt(Dt(It.isInvalidate()?It.toString(!1):It.toString(!wt),wt))}var Qt=e.useMemo(function(){return pe(ut)},[ut,pn]),an=e.useMemo(function(){return pe(Ke)},[Ke,pn]),$t=e.useMemo(function(){return!Qt||!Ze||Ze.isInvalidate()?!1:Qt.lessEquals(Ze)},[Qt,Ze]),Vt=e.useMemo(function(){return!an||!Ze||Ze.isInvalidate()?!1:Ze.lessEquals(an)},[an,Ze]),En=ae(Fe.current,bt),un=(0,F.Z)(En,2),sn=un[0],bn=un[1],Wt=function(wt){return Qt&&!wt.lessEquals(Qt)?Qt:an&&!an.lessEquals(wt)?an:null},Jt=function(wt){return!Wt(wt)},Pn=function(wt,kt){var nn=wt,Tn=Jt(nn)||nn.isEmpty();if(!nn.isEmpty()&&!kt&&(nn=Wt(nn)||nn,Tn=!0),!ot&&!rt&&Tn){var Rn=nn.toString(),kn=nt(Rn,kt);return kn>=0&&(nn=ee(Y(Rn,".",kn)),Jt(nn)||(nn=ee(Y(Rn,".",kn,!0)))),nn.equals(Ze)||(_e(nn),b==null||b(nn.isEmpty()?null:xe(vn,nn)),ke===void 0&&jt(nn,kt)),nn}return Ze},Dn=ye(),Un=function It(wt){if(sn(),Ot.current=wt,Zt(wt),!Kt.current){var kt=ft(wt),nn=ee(kt);nn.isNaN()||Pn(nn,!0)}w==null||w(wt),Dn(function(){var Tn=wt;Bt||(Tn=wt.replace(/。/g,".")),Tn!==wt&&It(Tn)})},Mn=function(){Kt.current=!0},Vn=function(){Kt.current=!1,Un(Fe.current.value)},Jn=function(wt){Un(wt.target.value)},rr=function(wt){var kt;if(!(wt&&$t||!wt&&Vt)){zt.current=!1;var nn=ee(Rt.current?oe(tt):tt);wt||(nn=nn.negate());var Tn=(Ze||ee(0)).add(nn.toString()),Rn=Pn(Tn,!1);R==null||R(xe(vn,Rn),{offset:Rt.current?oe(tt):tt,type:wt?"up":"down"}),(kt=Fe.current)===null||kt===void 0||kt.focus()}},ar=function(wt){var kt=ee(ft(Tt)),nn;kt.isNaN()?nn=Pn(Ze,wt):nn=Pn(kt,wt),ke!==void 0?jt(Ze,!1):nn.isNaN()||jt(nn,!1)},qn=function(){zt.current=!0},Lt=function(wt){var kt=wt.key,nn=wt.shiftKey;zt.current=!0,Rt.current=nn,kt==="Enter"&&(Kt.current||(zt.current=!1),ar(!1),it==null||it(wt)),Pt!==!1&&!Kt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(kt)&&(rr(kt==="Up"||kt==="ArrowUp"),wt.preventDefault())},yt=function(){zt.current=!1,Rt.current=!1};e.useEffect(function(){if(Gt&&bt){var It=function(nn){rr(nn.deltaY<0),nn.preventDefault()},wt=Fe.current;if(wt)return wt.addEventListener("wheel",It,{passive:!1}),function(){return wt.removeEventListener("wheel",It)}}});var Et=function(){He&&ar(!1),vt(!1),zt.current=!1};return(0,Ve.o)(function(){Ze.isInvalidate()||jt(Ze,!1)},[pn,mn]),(0,Ve.o)(function(){var It=ee(ke);Ye(It);var wt=ee(ft(Tt));(!It.equals(wt)||!zt.current||mn)&&jt(It,zt.current)},[ke]),(0,Ve.o)(function(){mn&&bn()},[Tt]),e.createElement("div",{ref:Pe,className:N()(U,me,(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(U,"-focused"),bt),"".concat(U,"-disabled"),rt),"".concat(U,"-readonly"),ot),"".concat(U,"-not-a-number"),Ze.isNaN()),"".concat(U,"-out-of-range"),!Ze.isInvalidate()&&!Jt(Ze))),style:ze,onFocus:function(){vt(!0)},onBlur:Et,onKeyDown:Lt,onKeyUp:yt,onCompositionStart:Mn,onCompositionEnd:Vn,onBeforeInput:qn},Ht&&e.createElement(B,{prefixCls:U,upNode:xt,downNode:gt,upDisabled:$t,downDisabled:Vt,onStep:rr}),e.createElement("div",{className:"".concat(qe,"-wrap")},e.createElement("input",(0,P.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Ke,"aria-valuemax":ut,"aria-valuenow":Ze.isInvalidate()?null:Ze.toString(),step:tt},Ae,{ref:(0,k.sQ)(Fe,X),className:qe,value:Tt,onChange:Jn,disabled:rt,readOnly:ot}))))}),M=e.forwardRef(function(S,X){var U=S.disabled,me=S.style,ze=S.prefixCls,Ke=ze===void 0?"rc-input-number":ze,ut=S.value,pt=S.prefix,tt=S.suffix,mt=S.addonBefore,ke=S.addonAfter,rt=S.className,ot=S.classNames,xt=(0,n.Z)(S,_),gt=e.useRef(null),Pt=e.useRef(null),Mt=e.useRef(null),Gt=function(Ht){Mt.current&&(0,G.nH)(Mt.current,Ht)};return e.useImperativeHandle(X,function(){return we(Mt.current,{focus:Gt,nativeElement:gt.current.nativeElement||Pt.current})}),e.createElement(te.BaseInput,{className:rt,triggerFocus:Gt,prefixCls:Ke,value:ut,disabled:U,style:me,prefix:pt,suffix:tt,addonAfter:ke,addonBefore:mt,classNames:ot,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:gt},e.createElement(Xe,(0,P.Z)({prefixCls:Ke,disabled:U,ref:Mt,domRef:Pt,className:ot==null?void 0:ot.input},xt)))}),Ee=M,be=Ee,ct=t(62487),Le=t(82855),re=t(48755),T=t(60840),H=t(2171),d=t(83397),ce=t(31756),Z=t(56553),r=t(24971),u=t(70045),V=t(36237),K=t(53075),y=t(64910),A=t(39082),L=t(63356),q=t(56119),i=t(16931),v=t(51636),Me=t(17835);const fe=S=>{var X;const U=(X=S.handleVisible)!==null&&X!==void 0?X:"auto",me=S.controlHeightSM-S.lineWidth*2;return Object.assign(Object.assign({},(0,y.T)(S)),{controlWidth:90,handleWidth:me,handleFontSize:S.fontSize/2,handleVisible:U,handleActiveBg:S.colorFillAlter,handleBg:S.colorBgContainer,filledHandleBg:new Me.FastColor(S.colorFillSecondary).onBackground(S.colorBgContainer).toHexString(),handleHoverColor:S.colorPrimary,handleBorderColor:S.colorBorder,handleOpacity:U===!0?1:0,handleVisibleWidth:U===!0?me:0})},Ie=(S,X)=>{let{componentCls:U,borderRadiusSM:me,borderRadiusLG:ze}=S;const Ke=X==="lg"?ze:me;return{[`&-${X}`]:{[`${U}-handler-wrap`]:{borderStartEndRadius:Ke,borderEndEndRadius:Ke},[`${U}-handler-up`]:{borderStartEndRadius:Ke},[`${U}-handler-down`]:{borderEndEndRadius:Ke}}}},Be=S=>{const{componentCls:X,lineWidth:U,lineType:me,borderRadius:ze,inputFontSizeSM:Ke,inputFontSizeLG:ut,controlHeightLG:pt,controlHeightSM:tt,colorError:mt,paddingInlineSM:ke,paddingBlockSM:rt,paddingBlockLG:ot,paddingInlineLG:xt,colorTextDescription:gt,motionDurationMid:Pt,handleHoverColor:Mt,handleOpacity:Gt,paddingInline:rn,paddingBlock:Ht,handleBg:At,handleActiveBg:vn,colorTextDisabled:Bt,borderRadiusSM:mn,borderRadiusLG:pn,controlWidth:en,handleBorderColor:b,filledHandleBg:w,lineHeightLG:it,calc:R}=S;return[{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,L.Wf)(S)),(0,K.ik)(S)),{display:"inline-block",width:en,margin:0,padding:0,borderRadius:ze}),(0,A.qG)(S,{[`${X}-handler-wrap`]:{background:At,[`${X}-handler-down`]:{borderBlockStart:`${(0,V.unit)(U)} ${me} ${b}`}}})),(0,A.H8)(S,{[`${X}-handler-wrap`]:{background:w,[`${X}-handler-down`]:{borderBlockStart:`${(0,V.unit)(U)} ${me} ${b}`}},"&:focus-within":{[`${X}-handler-wrap`]:{background:At}}})),(0,A.vc)(S,{[`${X}-handler-wrap`]:{background:At,[`${X}-handler-down`]:{borderBlockStart:`${(0,V.unit)(U)} ${me} ${b}`}}})),(0,A.Mu)(S)),{"&-rtl":{direction:"rtl",[`${X}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ut,lineHeight:it,borderRadius:pn,[`input${X}-input`]:{height:R(pt).sub(R(U).mul(2)).equal(),padding:`${(0,V.unit)(ot)} ${(0,V.unit)(xt)}`}},"&-sm":{padding:0,fontSize:Ke,borderRadius:mn,[`input${X}-input`]:{height:R(tt).sub(R(U).mul(2)).equal(),padding:`${(0,V.unit)(rt)} ${(0,V.unit)(ke)}`}},"&-out-of-range":{[`${X}-input-wrap`]:{input:{color:mt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,L.Wf)(S)),(0,K.s7)(S)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${X}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${X}-group-addon`]:{borderRadius:pn,fontSize:S.fontSizeLG}},"&-sm":{[`${X}-group-addon`]:{borderRadius:mn}}},(0,A.ir)(S)),(0,A.S5)(S)),{[`&:not(${X}-compact-first-item):not(${X}-compact-last-item)${X}-compact-item`]:{[`${X}, ${X}-group-addon`]:{borderRadius:0}},[`&:not(${X}-compact-last-item)${X}-compact-first-item`]:{[`${X}, ${X}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${X}-compact-first-item)${X}-compact-last-item`]:{[`${X}, ${X}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${X}-input`]:{cursor:"not-allowed"},[X]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,L.Wf)(S)),{width:"100%",padding:`${(0,V.unit)(Ht)} ${(0,V.unit)(rn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ze,outline:0,transition:`all ${Pt} linear`,appearance:"textfield",fontSize:"inherit"}),(0,K.nz)(S.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${X}-handler-wrap, &-focused ${X}-handler-wrap`]:{width:S.handleWidth,opacity:1}})},{[X]:Object.assign(Object.assign(Object.assign({[`${X}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:S.handleVisibleWidth,opacity:Gt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:ze,borderEndEndRadius:ze,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Pt}`,overflow:"hidden",[`${X}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${X}-handler-up-inner, - ${X}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:S.handleFontSize}}},[`${X}-handler`]:{height:"50%",overflow:"hidden",color:gt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,V.unit)(U)} ${me} ${b}`,transition:`all ${Pt} linear`,"&:active":{background:vn},"&:hover":{height:"60%",[` - ${X}-handler-up-inner, - ${X}-handler-down-inner - `]:{color:Mt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,L.Ro)()),{color:gt,transition:`all ${Pt} linear`,userSelect:"none"})},[`${X}-handler-up`]:{borderStartEndRadius:ze},[`${X}-handler-down`]:{borderEndEndRadius:ze}},Ie(S,"lg")),Ie(S,"sm")),{"&-disabled, &-readonly":{[`${X}-handler-wrap`]:{display:"none"},[`${X}-input`]:{color:"inherit"}},[` - ${X}-handler-up-disabled, - ${X}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${X}-handler-up-disabled:hover &-handler-up-inner, - ${X}-handler-down-disabled:hover &-handler-down-inner - `]:{color:Bt}})}]},Te=S=>{const{componentCls:X,paddingBlock:U,paddingInline:me,inputAffixPadding:ze,controlWidth:Ke,borderRadiusLG:ut,borderRadiusSM:pt,paddingInlineLG:tt,paddingInlineSM:mt,paddingBlockLG:ke,paddingBlockSM:rt,motionDurationMid:ot}=S;return{[`${X}-affix-wrapper`]:Object.assign(Object.assign({[`input${X}-input`]:{padding:`${(0,V.unit)(U)} 0`}},(0,K.ik)(S)),{position:"relative",display:"inline-flex",alignItems:"center",width:Ke,padding:0,paddingInlineStart:me,"&-lg":{borderRadius:ut,paddingInlineStart:tt,[`input${X}-input`]:{padding:`${(0,V.unit)(ke)} 0`}},"&-sm":{borderRadius:pt,paddingInlineStart:mt,[`input${X}-input`]:{padding:`${(0,V.unit)(rt)} 0`}},[`&:not(${X}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${X}-disabled`]:{background:"transparent"},[`> div${X}`]:{width:"100%",border:"none",outline:"none",[`&${X}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${X}-handler-wrap`]:{zIndex:2},[X]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ze},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:me,marginInlineStart:ze,transition:`margin ${ot}`}},[`&:hover ${X}-handler-wrap, &-focused ${X}-handler-wrap`]:{width:S.handleWidth,opacity:1},[`&:not(${X}-affix-wrapper-without-controls):hover ${X}-suffix`]:{marginInlineEnd:S.calc(S.handleWidth).add(me).equal()}})}};var Ue=(0,i.I$)("InputNumber",S=>{const X=(0,v.mergeToken)(S,(0,y.e)(S));return[Be(X),Te(X),(0,q.c)(X)]},fe,{unitless:{handleOpacity:!0}}),je=function(S,X){var U={};for(var me in S)Object.prototype.hasOwnProperty.call(S,me)&&X.indexOf(me)<0&&(U[me]=S[me]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,me=Object.getOwnPropertySymbols(S);ze{const{getPrefixCls:U,direction:me}=e.useContext(re.E_),ze=e.useRef(null);e.useImperativeHandle(X,()=>ze.current);const{className:Ke,rootClassName:ut,size:pt,disabled:tt,prefixCls:mt,addonBefore:ke,addonAfter:rt,prefix:ot,suffix:xt,bordered:gt,readOnly:Pt,status:Mt,controls:Gt,variant:rn}=S,Ht=je(S,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),At=U("input-number",mt),vn=(0,d.Z)(At),[Bt,mn,pn]=Ue(At,vn),{compactSize:en,compactItemClassnames:b}=(0,u.ri)(At,me);let w=e.createElement(p.Z,{className:`${At}-handler-up-inner`}),it=e.createElement(m.Z,{className:`${At}-handler-down-inner`});const R=typeof Gt=="boolean"?Gt:void 0;typeof Gt=="object"&&(w=typeof Gt.upIcon=="undefined"?w:e.createElement("span",{className:`${At}-handler-up-inner`},Gt.upIcon),it=typeof Gt.downIcon=="undefined"?it:e.createElement("span",{className:`${At}-handler-down-inner`},Gt.downIcon));const{hasFeedback:$,status:He,isFormItemInput:Pe,feedbackIcon:Ae}=e.useContext(Z.aM),qe=(0,Le.F)(He,Mt),Fe=(0,ce.Z)(Re=>{var Ze;return(Ze=pt!=null?pt:en)!==null&&Ze!==void 0?Ze:Re}),at=e.useContext(H.Z),Ct=tt!=null?tt:at,[bt,vt]=(0,r.Z)("inputNumber",rn,gt),zt=$&&e.createElement(e.Fragment,null,Ae),Kt=N()({[`${At}-lg`]:Fe==="large",[`${At}-sm`]:Fe==="small",[`${At}-rtl`]:me==="rtl",[`${At}-in-form-item`]:Pe},mn),Rt=`${At}-group`,ue=e.createElement(be,Object.assign({ref:ze,disabled:Ct,className:N()(pn,vn,Ke,ut,b),upHandler:w,downHandler:it,prefixCls:At,readOnly:Pt,controls:R,prefix:ot,suffix:zt||xt,addonBefore:ke&&e.createElement(ct.Z,{form:!0,space:!0},ke),addonAfter:rt&&e.createElement(ct.Z,{form:!0,space:!0},rt),classNames:{input:Kt,variant:N()({[`${At}-${bt}`]:vt},(0,Le.Z)(At,qe,$)),affixWrapper:N()({[`${At}-affix-wrapper-sm`]:Fe==="small",[`${At}-affix-wrapper-lg`]:Fe==="large",[`${At}-affix-wrapper-rtl`]:me==="rtl",[`${At}-affix-wrapper-without-controls`]:Gt===!1||Ct},mn),wrapper:N()({[`${Rt}-rtl`]:me==="rtl"},mn),groupWrapper:N()({[`${At}-group-wrapper-sm`]:Fe==="small",[`${At}-group-wrapper-lg`]:Fe==="large",[`${At}-group-wrapper-rtl`]:me==="rtl",[`${At}-group-wrapper-${bt}`]:vt},(0,Le.Z)(`${At}-group-wrapper`,qe,$),mn)}},Ht));return Bt(ue)}),ne=x,Ce=S=>e.createElement(T.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},e.createElement(x,Object.assign({},S)));ne._InternalPanelDoNotUseOrYouWillBeFired=Ce;var De=ne},49397:function(Yt,Ge,t){t.d(Ge,{Z:function(){return s}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(36901),N=t(8654),P=t(62487),g=t(86013),D=t(82855),F=t(48755),n=t(2171),J=t(83397),O=t(31756),I=t(56553),Se=t(24971),Ne=t(70045),ge=t(23826),se=t(53075);function ve(f){return!!(f.prefix||f.suffix||f.allowClear||f.showCount)}var h=function(f,Y){var ee={};for(var te in f)Object.prototype.hasOwnProperty.call(f,te)&&Y.indexOf(te)<0&&(ee[te]=f[te]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,te=Object.getOwnPropertySymbols(f);Ve{const{prefixCls:ee,bordered:te=!0,status:Ve,size:we,disabled:k,onBlur:Oe,onFocus:ae,suffix:C,allowClear:l,addonAfter:ie,addonBefore:z,className:W,style:c,styles:B,rootClassName:oe,onChange:G,classNames:ye,variant:et}=f,_=h(f,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:xe,direction:pe,allowClear:Xe,autoComplete:M,className:Ee,style:be,classNames:ct,styles:Le}=(0,F.dj)("input"),re=xe("input",ee),T=(0,e.useRef)(null),H=(0,J.Z)(re),[d,ce,Z]=(0,se.TI)(re,oe),[r]=(0,se.ZP)(re,H),{compactSize:u,compactItemClassnames:V}=(0,Ne.ri)(re,pe),K=(0,O.Z)(De=>{var S;return(S=we!=null?we:u)!==null&&S!==void 0?S:De}),y=e.useContext(n.Z),A=k!=null?k:y,{status:L,hasFeedback:q,feedbackIcon:i}=(0,e.useContext)(I.aM),v=(0,D.F)(L,Ve),Me=ve(f)||!!q,fe=(0,e.useRef)(Me),Ie=(0,ge.Z)(T,!0),Be=De=>{Ie(),Oe==null||Oe(De)},Te=De=>{Ie(),ae==null||ae(De)},Ue=De=>{Ie(),G==null||G(De)},je=(q||C)&&e.createElement(e.Fragment,null,C,q&&i),x=(0,g.Z)(l!=null?l:Xe),[ne,Ce]=(0,Se.Z)("input",et,te);return d(r(e.createElement(Q.default,Object.assign({ref:(0,N.sQ)(Y,T),prefixCls:re,autoComplete:M},_,{disabled:A,onBlur:Be,onFocus:Te,style:Object.assign(Object.assign({},be),c),styles:Object.assign(Object.assign({},Le),B),suffix:je,allowClear:x,className:p()(W,oe,Z,H,V,Ee),onChange:Ue,addonBefore:z&&e.createElement(P.Z,{form:!0,space:!0},z),addonAfter:ie&&e.createElement(P.Z,{form:!0,space:!0},ie),classNames:Object.assign(Object.assign(Object.assign({},ye),ct),{input:p()({[`${re}-sm`]:K==="small",[`${re}-lg`]:K==="large",[`${re}-rtl`]:pe==="rtl"},ye==null?void 0:ye.input,ct.input,ce),variant:p()({[`${re}-${ne}`]:Ce},(0,D.Z)(re,v)),affixWrapper:p()({[`${re}-affix-wrapper-sm`]:K==="small",[`${re}-affix-wrapper-lg`]:K==="large",[`${re}-affix-wrapper-rtl`]:pe==="rtl"},ce),wrapper:p()({[`${re}-group-rtl`]:pe==="rtl"},ce),groupWrapper:p()({[`${re}-group-wrapper-sm`]:K==="small",[`${re}-group-wrapper-lg`]:K==="large",[`${re}-group-wrapper-rtl`]:pe==="rtl",[`${re}-group-wrapper-${ne}`]:Ce},(0,D.Z)(`${re}-group-wrapper`,v,q),ce)})}))))})},79809:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Y}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(22711),N=t(86013),P=t(82855),g=t(48755),D=t(2171),F=t(83397),n=t(31756),J=t(56553),O=t(24971),I=t(70045),Se=t(30292),Ne=t(53075),ge=t(16931),se=t(51636),ve=t(64910);const h=ee=>{const{componentCls:te,paddingLG:Ve}=ee,we=`${te}-textarea`;return{[`textarea${te}`]:{maxWidth:"100%",height:"auto",minHeight:ee.controlHeight,lineHeight:ee.lineHeight,verticalAlign:"bottom",transition:`all ${ee.motionDurationSlow}`,resize:"vertical",[`&${te}-mouse-active`]:{transition:`all ${ee.motionDurationSlow}, height 0s, width 0s`}},[`${te}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[we]:{position:"relative","&-show-count":{[`> ${te}`]:{height:"100%"},[`${te}-data-count`]:{position:"absolute",bottom:ee.calc(ee.fontSize).mul(ee.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ee.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` - &-allow-clear > ${te}, - &-affix-wrapper${we}-has-feedback ${te} - `]:{paddingInlineEnd:Ve},[`&-affix-wrapper${te}-affix-wrapper`]:{padding:0,[`> textarea${te}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ee.calc(ee.controlHeight).sub(ee.calc(ee.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${te}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${te}-clear-icon`]:{position:"absolute",insetInlineEnd:ee.paddingInline,insetBlockStart:ee.paddingXS},[`${we}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ee.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${te}-affix-wrapper-sm`]:{[`${te}-suffix`]:{[`${te}-clear-icon`]:{insetInlineEnd:ee.paddingInlineSM}}}}}};var de=(0,ge.I$)(["Input","TextArea"],ee=>{const te=(0,se.mergeToken)(ee,(0,ve.e)(ee));return[h(te)]},ve.T,{resetFont:!1}),s=function(ee,te){var Ve={};for(var we in ee)Object.prototype.hasOwnProperty.call(ee,we)&&te.indexOf(we)<0&&(Ve[we]=ee[we]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,we=Object.getOwnPropertySymbols(ee);k{var Ve;const{prefixCls:we,bordered:k=!0,size:Oe,disabled:ae,status:C,allowClear:l,classNames:ie,rootClassName:z,className:W,style:c,styles:B,variant:oe,showCount:G,onMouseDown:ye,onResize:et}=ee,_=s(ee,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:xe,direction:pe,allowClear:Xe,autoComplete:M,className:Ee,style:be,classNames:ct,styles:Le}=(0,g.dj)("textArea"),re=e.useContext(D.Z),T=ae!=null?ae:re,{status:H,hasFeedback:d,feedbackIcon:ce}=e.useContext(J.aM),Z=(0,P.F)(H,C),r=e.useRef(null);e.useImperativeHandle(te,()=>{var Ce;return{resizableTextArea:(Ce=r.current)===null||Ce===void 0?void 0:Ce.resizableTextArea,focus:De=>{var S,X;(0,Se.nH)((X=(S=r.current)===null||S===void 0?void 0:S.resizableTextArea)===null||X===void 0?void 0:X.textArea,De)},blur:()=>{var De;return(De=r.current)===null||De===void 0?void 0:De.blur()}}});const u=xe("input",we),V=(0,F.Z)(u),[K,y,A]=(0,Ne.TI)(u,z),[L]=de(u,V),{compactSize:q,compactItemClassnames:i}=(0,I.ri)(u,pe),v=(0,n.Z)(Ce=>{var De;return(De=Oe!=null?Oe:q)!==null&&De!==void 0?De:Ce}),[Me,fe]=(0,O.Z)("textArea",oe,k),Ie=(0,N.Z)(l!=null?l:Xe),[Be,Te]=e.useState(!1),[Ue,je]=e.useState(!1),x=Ce=>{Te(!0),ye==null||ye(Ce);const De=()=>{Te(!1),document.removeEventListener("mouseup",De)};document.addEventListener("mouseup",De)},ne=Ce=>{var De,S;if(et==null||et(Ce),Be&&typeof getComputedStyle=="function"){const X=(S=(De=r.current)===null||De===void 0?void 0:De.nativeElement)===null||S===void 0?void 0:S.querySelector("textarea");X&&getComputedStyle(X).resize==="both"&&je(!0)}};return K(L(e.createElement(Q.default,Object.assign({autoComplete:M},_,{style:Object.assign(Object.assign({},be),c),styles:Object.assign(Object.assign({},Le),B),disabled:T,allowClear:Ie,className:p()(A,V,W,z,i,Ee,Ue&&`${u}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ie),ct),{textarea:p()({[`${u}-sm`]:v==="small",[`${u}-lg`]:v==="large"},y,ie==null?void 0:ie.textarea,ct.textarea,Be&&`${u}-mouse-active`),variant:p()({[`${u}-${Me}`]:fe},(0,P.Z)(u,Z)),affixWrapper:p()(`${u}-textarea-affix-wrapper`,{[`${u}-affix-wrapper-rtl`]:pe==="rtl",[`${u}-affix-wrapper-sm`]:v==="small",[`${u}-affix-wrapper-lg`]:v==="large",[`${u}-textarea-show-count`]:G||((Ve=ee.count)===null||Ve===void 0?void 0:Ve.show)},y)}),prefixCls:u,suffix:d&&e.createElement("span",{className:`${u}-textarea-suffix`},ce),showCount:G,ref:r,onResize:ne,onMouseDown:x}))))})},23826:function(Yt,Ge,t){t.d(Ge,{Z:function(){return m}});var e=t(59301);function m(p,Q){const N=(0,e.useRef)([]),P=()=>{N.current.push(setTimeout(()=>{var g,D,F,n;!((g=p.current)===null||g===void 0)&&g.input&&((D=p.current)===null||D===void 0?void 0:D.input.getAttribute("type"))==="password"&&(!((F=p.current)===null||F===void 0)&&F.input.hasAttribute("value"))&&((n=p.current)===null||n===void 0||n.input.removeAttribute("value"))}))};return(0,e.useEffect)(()=>(Q&&P(),()=>N.current.forEach(g=>{g&&clearTimeout(g)})),[]),P}},37568:function(Yt,Ge,t){t.d(Ge,{default:function(){return ct}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(48755),N=t(56553),P=t(53075),D=Le=>{const{getPrefixCls:re,direction:T}=(0,e.useContext)(Q.E_),{prefixCls:H,className:d}=Le,ce=re("input-group",H),Z=re("input"),[r,u,V]=(0,P.ZP)(Z),K=p()(ce,V,{[`${ce}-lg`]:Le.size==="large",[`${ce}-sm`]:Le.size==="small",[`${ce}-compact`]:Le.compact,[`${ce}-rtl`]:T==="rtl"},u,d),y=(0,e.useContext)(N.aM),A=(0,e.useMemo)(()=>Object.assign(Object.assign({},y),{isFormItemInput:!1}),[y]);return r(e.createElement("span",{className:K,style:Le.style,onMouseEnter:Le.onMouseEnter,onMouseLeave:Le.onMouseLeave,onFocus:Le.onFocus,onBlur:Le.onBlur},e.createElement(N.aM.Provider,{value:A},Le.children)))},F=t(49397),n=t(94480),J=t(6089),O=t(26112),I=t(82855),Se=t(31756),Ne=t(16931),ge=t(51636),se=t(64910);const ve=Le=>{const{componentCls:re,paddingXS:T}=Le;return{[re]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:T,"&-rtl":{direction:"rtl"},[`${re}-input`]:{textAlign:"center",paddingInline:Le.paddingXXS},[`&${re}-sm ${re}-input`]:{paddingInline:Le.calc(Le.paddingXXS).div(2).equal()},[`&${re}-lg ${re}-input`]:{paddingInline:Le.paddingXS}}}};var h=(0,Ne.I$)(["Input","OTP"],Le=>{const re=(0,ge.mergeToken)(Le,(0,se.e)(Le));return[ve(re)]},se.T),de=t(16089),s=function(Le,re){var T={};for(var H in Le)Object.prototype.hasOwnProperty.call(Le,H)&&re.indexOf(H)<0&&(T[H]=Le[H]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,H=Object.getOwnPropertySymbols(Le);d{const{value:T,onChange:H,onActiveChange:d,index:ce,mask:Z}=Le,r=s(Le,["value","onChange","onActiveChange","index","mask"]),u=T&&typeof Z=="string"?Z:T,V=q=>{H(ce,q.target.value)},K=e.useRef(null);e.useImperativeHandle(re,()=>K.current);const y=()=>{(0,de.Z)(()=>{var q;const i=(q=K.current)===null||q===void 0?void 0:q.input;document.activeElement===i&&i&&i.select()})},A=q=>{const{key:i,ctrlKey:v,metaKey:Me}=q;i==="ArrowLeft"?d(ce-1):i==="ArrowRight"?d(ce+1):i==="z"&&(v||Me)&&q.preventDefault(),y()},L=q=>{q.key==="Backspace"&&!T&&d(ce-1),y()};return e.createElement(F.Z,Object.assign({type:Z===!0?"password":"text"},r,{ref:K,value:u,onInput:V,onFocus:y,onKeyDown:A,onKeyUp:L,onMouseDown:y,onMouseUp:y}))}),ee=function(Le,re){var T={};for(var H in Le)Object.prototype.hasOwnProperty.call(Le,H)&&re.indexOf(H)<0&&(T[H]=Le[H]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,H=Object.getOwnPropertySymbols(Le);d{const{index:re,prefixCls:T,separator:H}=Le,d=typeof H=="function"?H(re):H;return d?e.createElement("span",{className:`${T}-separator`},d):null};var k=e.forwardRef((Le,re)=>{const{prefixCls:T,length:H=6,size:d,defaultValue:ce,value:Z,onChange:r,formatter:u,separator:V,variant:K,disabled:y,status:A,autoFocus:L,mask:q,type:i,onInput:v,inputMode:Me}=Le,fe=ee(Le,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Ie,direction:Be}=e.useContext(Q.E_),Te=Ie("otp",T),Ue=(0,O.Z)(fe,{aria:!0,data:!0,attr:!0}),[je,x,ne]=h(Te),Ce=(0,Se.Z)(ot=>d!=null?d:ot),De=e.useContext(N.aM),S=(0,I.F)(De.status,A),X=e.useMemo(()=>Object.assign(Object.assign({},De),{status:S,hasFeedback:!1,feedbackIcon:null}),[De,S]),U=e.useRef(null),me=e.useRef({});e.useImperativeHandle(re,()=>({focus:()=>{var ot;(ot=me.current[0])===null||ot===void 0||ot.focus()},blur:()=>{var ot;for(let xt=0;xtu?u(ot):ot,[Ke,ut]=e.useState(()=>te(ze(ce||"")));e.useEffect(()=>{Z!==void 0&&ut(te(Z))},[Z]);const pt=(0,J.Z)(ot=>{ut(ot),v&&v(ot),r&&ot.length===H&&ot.every(xt=>xt)&&ot.some((xt,gt)=>Ke[gt]!==xt)&&r(ot.join(""))}),tt=(0,J.Z)((ot,xt)=>{let gt=(0,n.Z)(Ke);for(let Mt=0;Mt=0&&!gt[Mt];Mt-=1)gt.pop();const Pt=ze(gt.map(Mt=>Mt||" ").join(""));return gt=te(Pt).map((Mt,Gt)=>Mt===" "&&!gt[Gt]?gt[Gt]:Mt),gt}),mt=(ot,xt)=>{var gt;const Pt=tt(ot,xt),Mt=Math.min(ot+xt.length,H-1);Mt!==ot&&Pt[ot]!==void 0&&((gt=me.current[Mt])===null||gt===void 0||gt.focus()),pt(Pt)},ke=ot=>{var xt;(xt=me.current[ot])===null||xt===void 0||xt.focus()},rt={variant:K,disabled:y,status:S,mask:q,type:i,inputMode:Me};return je(e.createElement("div",Object.assign({},Ue,{ref:U,className:p()(Te,{[`${Te}-sm`]:Ce==="small",[`${Te}-lg`]:Ce==="large",[`${Te}-rtl`]:Be==="rtl"},ne,x)}),e.createElement(N.aM.Provider,{value:X},Array.from({length:H}).map((ot,xt)=>{const gt=`otp-${xt}`,Pt=Ke[xt]||"";return e.createElement(e.Fragment,{key:gt},e.createElement(Y,Object.assign({ref:Mt=>{me.current[xt]=Mt},index:xt,size:Ce,htmlSize:1,className:`${Te}-input`,onChange:mt,value:Pt,onActiveChange:ke,autoFocus:xt===0&&L},rt)),xtLe?e.createElement(ae.Z,null):e.createElement(Oe.Z,null),B={click:"onClick",hover:"onMouseOver"};var G=e.forwardRef((Le,re)=>{const{disabled:T,action:H="click",visibilityToggle:d=!0,iconRender:ce=c}=Le,Z=e.useContext(ie.Z),r=T!=null?T:Z,u=typeof d=="object"&&d.visible!==void 0,[V,K]=(0,e.useState)(()=>u?d.visible:!1),y=(0,e.useRef)(null);e.useEffect(()=>{u&&K(d.visible)},[u,d]);const A=(0,z.Z)(y),L=()=>{var Ce;if(r)return;V&&A();const De=!V;K(De),typeof d=="object"&&((Ce=d.onVisibleChange)===null||Ce===void 0||Ce.call(d,De))},q=Ce=>{const De=B[H]||"",S=ce(V),X={[De]:L,className:`${Ce}-icon`,key:"passwordIcon",onMouseDown:U=>{U.preventDefault()},onMouseUp:U=>{U.preventDefault()}};return e.cloneElement(e.isValidElement(S)?S:e.createElement("span",null,S),X)},{className:i,prefixCls:v,inputPrefixCls:Me,size:fe}=Le,Ie=W(Le,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Be}=e.useContext(Q.E_),Te=Be("input",Me),Ue=Be("input-password",v),je=d&&q(Ue),x=p()(Ue,i,{[`${Ue}-${fe}`]:!!fe}),ne=Object.assign(Object.assign({},(0,C.Z)(Ie,["suffix","iconRender","visibilityToggle"])),{type:V?"text":"password",className:x,prefixCls:Te,suffix:je});return fe&&(ne.size=fe),e.createElement(F.Z,Object.assign({ref:(0,l.sQ)(re,y)},ne))}),ye=t(47472),et=t(22703),_=t(7939),xe=t(70045),pe=function(Le,re){var T={};for(var H in Le)Object.prototype.hasOwnProperty.call(Le,H)&&re.indexOf(H)<0&&(T[H]=Le[H]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,H=Object.getOwnPropertySymbols(Le);d{const{prefixCls:T,inputPrefixCls:H,className:d,size:ce,suffix:Z,enterButton:r=!1,addonAfter:u,loading:V,disabled:K,onSearch:y,onChange:A,onCompositionStart:L,onCompositionEnd:q}=Le,i=pe(Le,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:Me}=e.useContext(Q.E_),fe=e.useRef(!1),Ie=v("input-search",T),Be=v("input",H),{compactSize:Te}=(0,xe.ri)(Ie,Me),Ue=(0,Se.Z)(mt=>{var ke;return(ke=ce!=null?ce:Te)!==null&&ke!==void 0?ke:mt}),je=e.useRef(null),x=mt=>{mt!=null&&mt.target&&mt.type==="click"&&y&&y(mt.target.value,mt,{source:"clear"}),A==null||A(mt)},ne=mt=>{var ke;document.activeElement===((ke=je.current)===null||ke===void 0?void 0:ke.input)&&mt.preventDefault()},Ce=mt=>{var ke,rt;y&&y((rt=(ke=je.current)===null||ke===void 0?void 0:ke.input)===null||rt===void 0?void 0:rt.value,mt,{source:"input"})},De=mt=>{fe.current||V||Ce(mt)},S=typeof r=="boolean"?e.createElement(ye.Z,null):null,X=`${Ie}-button`;let U;const me=r||{},ze=me.type&&me.type.__ANT_BUTTON===!0;ze||me.type==="button"?U=(0,et.Tm)(me,Object.assign({onMouseDown:ne,onClick:mt=>{var ke,rt;(rt=(ke=me==null?void 0:me.props)===null||ke===void 0?void 0:ke.onClick)===null||rt===void 0||rt.call(ke,mt),Ce(mt)},key:"enterButton"},ze?{className:X,size:Ue}:{})):U=e.createElement(_.ZP,{className:X,type:r?"primary":void 0,size:Ue,disabled:K,key:"enterButton",onMouseDown:ne,onClick:Ce,loading:V,icon:S},r),u&&(U=[U,(0,et.Tm)(u,{key:"addonAfter"})]);const Ke=p()(Ie,{[`${Ie}-rtl`]:Me==="rtl",[`${Ie}-${Ue}`]:!!Ue,[`${Ie}-with-button`]:!!r},d),ut=Object.assign(Object.assign({},i),{className:Ke,prefixCls:Be,type:"search"}),pt=mt=>{fe.current=!0,L==null||L(mt)},tt=mt=>{fe.current=!1,q==null||q(mt)};return e.createElement(F.Z,Object.assign({ref:(0,l.sQ)(je,re),onPressEnter:De},ut,{size:Ue,onCompositionStart:pt,onCompositionEnd:tt,addonAfter:U,suffix:Z,onChange:x,disabled:K}))}),Ee=t(79809);const be=F.Z;be.Group=D,be.Search=M,be.TextArea=Ee.Z,be.Password=G,be.OTP=k;var ct=be},53075:function(Yt,Ge,t){t.d(Ge,{TI:function(){return de},ik:function(){return O},nz:function(){return D},s7:function(){return I},x0:function(){return J}});var e=t(36237),m=t(63356),p=t(56119),Q=t(16931),N=t(51636),P=t(64910),g=t(39082);const D=s=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:s,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),F=s=>({borderColor:s.activeBorderColor,boxShadow:s.activeShadow,outline:0,backgroundColor:s.activeBg}),n=s=>{const{paddingBlockLG:f,lineHeightLG:Y,borderRadiusLG:ee,paddingInlineLG:te}=s;return{padding:`${(0,e.unit)(f)} ${(0,e.unit)(te)}`,fontSize:s.inputFontSizeLG,lineHeight:Y,borderRadius:ee}},J=s=>({padding:`${(0,e.unit)(s.paddingBlockSM)} ${(0,e.unit)(s.paddingInlineSM)}`,fontSize:s.inputFontSizeSM,borderRadius:s.borderRadiusSM}),O=s=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,e.unit)(s.paddingBlock)} ${(0,e.unit)(s.paddingInline)}`,color:s.colorText,fontSize:s.inputFontSize,lineHeight:s.lineHeight,borderRadius:s.borderRadius,transition:`all ${s.motionDurationMid}`},D(s.colorTextPlaceholder)),{"&-lg":Object.assign({},n(s)),"&-sm":Object.assign({},J(s)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),I=s=>{const{componentCls:f,antCls:Y}=s;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:s.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${f}, &-lg > ${f}-group-addon`]:Object.assign({},n(s)),[`&-sm ${f}, &-sm > ${f}-group-addon`]:Object.assign({},J(s)),[`&-lg ${Y}-select-single ${Y}-select-selector`]:{height:s.controlHeightLG},[`&-sm ${Y}-select-single ${Y}-select-selector`]:{height:s.controlHeightSM},[`> ${f}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${f}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,e.unit)(s.paddingInline)}`,color:s.colorText,fontWeight:"normal",fontSize:s.inputFontSize,textAlign:"center",borderRadius:s.borderRadius,transition:`all ${s.motionDurationSlow}`,lineHeight:1,[`${Y}-select`]:{margin:`${(0,e.unit)(s.calc(s.paddingBlock).add(1).mul(-1).equal())} ${(0,e.unit)(s.calc(s.paddingInline).mul(-1).equal())}`,[`&${Y}-select-single:not(${Y}-select-customize-input):not(${Y}-pagination-size-changer)`]:{[`${Y}-select-selector`]:{backgroundColor:"inherit",border:`${(0,e.unit)(s.lineWidth)} ${s.lineType} transparent`,boxShadow:"none"}}},[`${Y}-cascader-picker`]:{margin:`-9px ${(0,e.unit)(s.calc(s.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${Y}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[f]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${f}-search-with-button &`]:{zIndex:0}}},[`> ${f}:first-child, ${f}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${f}-affix-wrapper`]:{[`&:not(:first-child) ${f}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${f}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${f}:last-child, ${f}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Y}-select ${Y}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${f}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${f}-search &`]:{borderStartStartRadius:s.borderRadius,borderEndStartRadius:s.borderRadius}},[`&:not(:first-child), ${f}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${f}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,m.dF)()),{[`${f}-group-addon, ${f}-group-wrap, > ${f}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:s.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${f}-affix-wrapper, - & > ${f}-number-affix-wrapper, - & > ${Y}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:s.calc(s.lineWidth).mul(-1).equal(),borderInlineEndWidth:s.lineWidth},[f]:{float:"none"},[`& > ${Y}-select > ${Y}-select-selector, - & > ${Y}-select-auto-complete ${f}, - & > ${Y}-cascader-picker ${f}, - & > ${f}-group-wrapper ${f}`]:{borderInlineEndWidth:s.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${Y}-select-focused`]:{zIndex:1},[`& > ${Y}-select > ${Y}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${Y}-select:first-child > ${Y}-select-selector, - & > ${Y}-select-auto-complete:first-child ${f}, - & > ${Y}-cascader-picker:first-child ${f}`]:{borderStartStartRadius:s.borderRadius,borderEndStartRadius:s.borderRadius},[`& > *:last-child, - & > ${Y}-select:last-child > ${Y}-select-selector, - & > ${Y}-cascader-picker:last-child ${f}, - & > ${Y}-cascader-picker-focused:last-child ${f}`]:{borderInlineEndWidth:s.lineWidth,borderStartEndRadius:s.borderRadius,borderEndEndRadius:s.borderRadius},[`& > ${Y}-select-auto-complete ${f}`]:{verticalAlign:"top"},[`${f}-group-wrapper + ${f}-group-wrapper`]:{marginInlineStart:s.calc(s.lineWidth).mul(-1).equal(),[`${f}-affix-wrapper`]:{borderRadius:0}},[`${f}-group-wrapper:not(:last-child)`]:{[`&${f}-search > ${f}-group`]:{[`& > ${f}-group-addon > ${f}-search-button`]:{borderRadius:0},[`& > ${f}`]:{borderStartStartRadius:s.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:s.borderRadius}}}})}},Se=s=>{const{componentCls:f,controlHeightSM:Y,lineWidth:ee,calc:te}=s,we=te(Y).sub(te(ee).mul(2)).sub(16).div(2).equal();return{[f]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,m.Wf)(s)),O(s)),(0,g.qG)(s)),(0,g.H8)(s)),(0,g.Mu)(s)),(0,g.vc)(s)),{'&[type="color"]':{height:s.controlHeight,[`&${f}-lg`]:{height:s.controlHeightLG},[`&${f}-sm`]:{height:Y,paddingTop:we,paddingBottom:we}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Ne=s=>{const{componentCls:f}=s;return{[`${f}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:s.colorTextQuaternary,fontSize:s.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${s.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:s.colorTextTertiary},"&:active":{color:s.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,e.unit)(s.inputAffixPadding)}`}}}},ge=s=>{const{componentCls:f,inputAffixPadding:Y,colorTextDescription:ee,motionDurationSlow:te,colorIcon:Ve,colorIconHover:we,iconCls:k}=s,Oe=`${f}-affix-wrapper`,ae=`${f}-affix-wrapper-disabled`;return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign({},O(s)),{display:"inline-flex",[`&:not(${f}-disabled):hover`]:{zIndex:1,[`${f}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${f}`]:{padding:0},[`> input${f}, > textarea${f}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[f]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:s.paddingXS}},"&-show-count-suffix":{color:ee},"&-show-count-has-suffix":{marginInlineEnd:s.paddingXXS},"&-prefix":{marginInlineEnd:Y},"&-suffix":{marginInlineStart:Y}}}),Ne(s)),{[`${k}${f}-password-icon`]:{color:Ve,cursor:"pointer",transition:`all ${te}`,"&:hover":{color:we}}}),[`${f}-underlined`]:{borderRadius:0},[ae]:{[`${k}${f}-password-icon`]:{color:Ve,cursor:"not-allowed","&:hover":{color:Ve}}}}},se=s=>{const{componentCls:f,borderRadiusLG:Y,borderRadiusSM:ee}=s;return{[`${f}-group`]:Object.assign(Object.assign(Object.assign({},(0,m.Wf)(s)),I(s)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${f}-group-addon`]:{borderRadius:Y,fontSize:s.inputFontSizeLG}},"&-sm":{[`${f}-group-addon`]:{borderRadius:ee}}},(0,g.ir)(s)),(0,g.S5)(s)),{[`&:not(${f}-compact-first-item):not(${f}-compact-last-item)${f}-compact-item`]:{[`${f}, ${f}-group-addon`]:{borderRadius:0}},[`&:not(${f}-compact-last-item)${f}-compact-first-item`]:{[`${f}, ${f}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${f}-compact-first-item)${f}-compact-last-item`]:{[`${f}, ${f}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${f}-compact-last-item)${f}-compact-item`]:{[`${f}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${f}-compact-first-item)${f}-compact-item`]:{[`${f}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},ve=s=>{const{componentCls:f,antCls:Y}=s,ee=`${f}-search`;return{[ee]:{[f]:{"&:hover, &:focus":{[`+ ${f}-group-addon ${ee}-button:not(${Y}-btn-primary)`]:{borderInlineStartColor:s.colorPrimaryHover}}},[`${f}-affix-wrapper`]:{height:s.controlHeight,borderRadius:0},[`${f}-lg`]:{lineHeight:s.calc(s.lineHeightLG).sub(2e-4).equal()},[`> ${f}-group`]:{[`> ${f}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${ee}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${ee}-button:not(${Y}-btn-primary)`]:{color:s.colorTextDescription,"&:hover":{color:s.colorPrimaryHover},"&:active":{color:s.colorPrimaryActive},[`&${Y}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${ee}-button`]:{height:s.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${f}-affix-wrapper, ${ee}-button`]:{height:s.controlHeightLG}},"&-small":{[`${f}-affix-wrapper, ${ee}-button`]:{height:s.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${f}-compact-item`]:{[`&:not(${f}-compact-last-item)`]:{[`${f}-group-addon`]:{[`${f}-search-button`]:{marginInlineEnd:s.calc(s.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${f}-compact-first-item)`]:{[`${f},${f}-affix-wrapper`]:{borderRadius:0}},[`> ${f}-group-addon ${f}-search-button, - > ${f}, - ${f}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${f}-affix-wrapper-focused`]:{zIndex:2}}}}},h=s=>{const{componentCls:f}=s;return{[`${f}-out-of-range`]:{[`&, & input, & textarea, ${f}-show-count-suffix, ${f}-data-count`]:{color:s.colorError}}}},de=(0,Q.I$)(["Input","Shared"],s=>{const f=(0,N.mergeToken)(s,(0,P.e)(s));return[Se(f),ge(f)]},P.T,{resetFont:!1});Ge.ZP=(0,Q.I$)(["Input","Component"],s=>{const f=(0,N.mergeToken)(s,(0,P.e)(s));return[se(f),ve(f),h(f),(0,p.c)(f)]},P.T,{resetFont:!1})},64910:function(Yt,Ge,t){t.d(Ge,{T:function(){return p},e:function(){return m}});var e=t(51636);function m(Q){return(0,e.mergeToken)(Q,{inputAffixPadding:Q.paddingXXS})}const p=Q=>{const{controlHeight:N,fontSize:P,lineHeight:g,lineWidth:D,controlHeightSM:F,controlHeightLG:n,fontSizeLG:J,lineHeightLG:O,paddingSM:I,controlPaddingHorizontalSM:Se,controlPaddingHorizontal:Ne,colorFillAlter:ge,colorPrimaryHover:se,colorPrimary:ve,controlOutlineWidth:h,controlOutline:de,colorErrorOutline:s,colorWarningOutline:f,colorBgContainer:Y,inputFontSize:ee,inputFontSizeLG:te,inputFontSizeSM:Ve}=Q,we=ee||P,k=Ve||we,Oe=te||J,ae=Math.round((N-we*g)/2*10)/10-D,C=Math.round((F-k*g)/2*10)/10-D,l=Math.ceil((n-Oe*O)/2*10)/10-D;return{paddingBlock:Math.max(ae,0),paddingBlockSM:Math.max(C,0),paddingBlockLG:Math.max(l,0),paddingInline:I-D,paddingInlineSM:Se-D,paddingInlineLG:Ne-D,addonBg:ge,activeBorderColor:ve,hoverBorderColor:se,activeShadow:`0 0 0 ${h}px ${de}`,errorActiveShadow:`0 0 0 ${h}px ${s}`,warningActiveShadow:`0 0 0 ${h}px ${f}`,hoverBg:Y,activeBg:Y,inputFontSize:we,inputFontSizeLG:Oe,inputFontSizeSM:k}}},39082:function(Yt,Ge,t){t.d(Ge,{$U:function(){return N},H8:function(){return I},Mu:function(){return n},S5:function(){return Ne},Xy:function(){return Q},ir:function(){return F},qG:function(){return g},vc:function(){return ve}});var e=t(36237),m=t(51636);const p=h=>({borderColor:h.hoverBorderColor,backgroundColor:h.hoverBg}),Q=h=>({color:h.colorTextDisabled,backgroundColor:h.colorBgContainerDisabled,borderColor:h.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},p((0,m.mergeToken)(h,{hoverBorderColor:h.colorBorder,hoverBg:h.colorBgContainerDisabled})))}),N=(h,de)=>({background:h.colorBgContainer,borderWidth:h.lineWidth,borderStyle:h.lineType,borderColor:de.borderColor,"&:hover":{borderColor:de.hoverBorderColor,backgroundColor:h.hoverBg},"&:focus, &:focus-within":{borderColor:de.activeBorderColor,boxShadow:de.activeShadow,outline:0,backgroundColor:h.activeBg}}),P=(h,de)=>({[`&${h.componentCls}-status-${de.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},N(h,de)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:de.affixColor}}),[`&${h.componentCls}-status-${de.status}${h.componentCls}-disabled`]:{borderColor:de.borderColor}}),g=(h,de)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},N(h,{borderColor:h.colorBorder,hoverBorderColor:h.hoverBorderColor,activeBorderColor:h.activeBorderColor,activeShadow:h.activeShadow})),{[`&${h.componentCls}-disabled, &[disabled]`]:Object.assign({},Q(h))}),P(h,{status:"error",borderColor:h.colorError,hoverBorderColor:h.colorErrorBorderHover,activeBorderColor:h.colorError,activeShadow:h.errorActiveShadow,affixColor:h.colorError})),P(h,{status:"warning",borderColor:h.colorWarning,hoverBorderColor:h.colorWarningBorderHover,activeBorderColor:h.colorWarning,activeShadow:h.warningActiveShadow,affixColor:h.colorWarning})),de)}),D=(h,de)=>({[`&${h.componentCls}-group-wrapper-status-${de.status}`]:{[`${h.componentCls}-group-addon`]:{borderColor:de.addonBorderColor,color:de.addonColor}}}),F=h=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${h.componentCls}-group`]:{"&-addon":{background:h.addonBg,border:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},D(h,{status:"error",addonBorderColor:h.colorError,addonColor:h.colorErrorText})),D(h,{status:"warning",addonBorderColor:h.colorWarning,addonColor:h.colorWarningText})),{[`&${h.componentCls}-group-wrapper-disabled`]:{[`${h.componentCls}-group-addon`]:Object.assign({},Q(h))}})}),n=(h,de)=>{const{componentCls:s}=h;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${s}-disabled, &[disabled]`]:{color:h.colorTextDisabled,cursor:"not-allowed"},[`&${s}-status-error`]:{"&, & input, & textarea":{color:h.colorError}},[`&${s}-status-warning`]:{"&, & input, & textarea":{color:h.colorWarning}}},de)}},J=(h,de)=>{var s;return{background:de.bg,borderWidth:h.lineWidth,borderStyle:h.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(s=de==null?void 0:de.inputColor)!==null&&s!==void 0?s:"unset"},"&:hover":{background:de.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:de.activeBorderColor,backgroundColor:h.activeBg}}},O=(h,de)=>({[`&${h.componentCls}-status-${de.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},J(h,de)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:de.affixColor}})}),I=(h,de)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},J(h,{bg:h.colorFillTertiary,hoverBg:h.colorFillSecondary,activeBorderColor:h.activeBorderColor})),{[`&${h.componentCls}-disabled, &[disabled]`]:Object.assign({},Q(h))}),O(h,{status:"error",bg:h.colorErrorBg,hoverBg:h.colorErrorBgHover,activeBorderColor:h.colorError,inputColor:h.colorErrorText,affixColor:h.colorError})),O(h,{status:"warning",bg:h.colorWarningBg,hoverBg:h.colorWarningBgHover,activeBorderColor:h.colorWarning,inputColor:h.colorWarningText,affixColor:h.colorWarning})),de)}),Se=(h,de)=>({[`&${h.componentCls}-group-wrapper-status-${de.status}`]:{[`${h.componentCls}-group-addon`]:{background:de.addonBg,color:de.addonColor}}}),Ne=h=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${h.componentCls}-group`]:{"&-addon":{background:h.colorFillTertiary},[`${h.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorSplit}`}}}},Se(h,{status:"error",addonBg:h.colorErrorBg,addonColor:h.colorErrorText})),Se(h,{status:"warning",addonBg:h.colorWarningBg,addonColor:h.colorWarningText})),{[`&${h.componentCls}-group-wrapper-disabled`]:{[`${h.componentCls}-group`]:{"&-addon":{background:h.colorFillTertiary,color:h.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderTop:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderBottom:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderTop:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`,borderBottom:`${(0,e.unit)(h.lineWidth)} ${h.lineType} ${h.colorBorder}`}}}})}),ge=(h,de)=>({background:h.colorBgContainer,borderWidth:`${(0,e.unit)(h.lineWidth)} 0`,borderStyle:`${h.lineType} none`,borderColor:`transparent transparent ${de.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${de.borderColor} transparent`,backgroundColor:h.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${de.borderColor} transparent`,outline:0,backgroundColor:h.activeBg}}),se=(h,de)=>({[`&${h.componentCls}-status-${de.status}:not(${h.componentCls}-disabled)`]:Object.assign(Object.assign({},ge(h,de)),{[`${h.componentCls}-prefix, ${h.componentCls}-suffix`]:{color:de.affixColor}}),[`&${h.componentCls}-status-${de.status}${h.componentCls}-disabled`]:{borderColor:`transparent transparent ${de.borderColor} transparent`}}),ve=(h,de)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ge(h,{borderColor:h.colorBorder,hoverBorderColor:h.hoverBorderColor,activeBorderColor:h.activeBorderColor,activeShadow:h.activeShadow})),{[`&${h.componentCls}-disabled, &[disabled]`]:{color:h.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${h.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),se(h,{status:"error",borderColor:h.colorError,hoverBorderColor:h.colorErrorBorderHover,activeBorderColor:h.colorError,activeShadow:h.errorActiveShadow,affixColor:h.colorError})),se(h,{status:"warning",borderColor:h.colorWarning,hoverBorderColor:h.colorWarningBorderHover,activeBorderColor:h.colorWarning,activeShadow:h.warningActiveShadow,affixColor:h.colorWarning})),de)})},24303:function(Yt,Ge,t){t.d(Ge,{D:function(){return ee},Z:function(){return we}});var e=t(59301),m=t(54476),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Q=p,N=t(7657),P=function(Oe,ae){return e.createElement(N.Z,(0,m.Z)({},Oe,{ref:ae,icon:Q}))},g=e.forwardRef(P),D=g,F=t(33853),n=t(38819),J=t(92310),O=t.n(J),I=t(2738),Se=t(48755),Ne=t(6989),ge=t(36237),se=t(48923),ve=t(16931);const h=k=>{const{componentCls:Oe,siderBg:ae,motionDurationMid:C,motionDurationSlow:l,antCls:ie,triggerHeight:z,triggerColor:W,triggerBg:c,headerHeight:B,zeroTriggerWidth:oe,zeroTriggerHeight:G,borderRadiusLG:ye,lightSiderBg:et,lightTriggerColor:_,lightTriggerBg:xe,bodyBg:pe}=k;return{[Oe]:{position:"relative",minWidth:0,background:ae,transition:`all ${C}, background 0s`,"&-has-trigger":{paddingBottom:z},"&-right":{order:1},[`${Oe}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ie}-menu${ie}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Oe}-children`]:{overflow:"hidden"},[`${Oe}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:z,color:W,lineHeight:(0,ge.unit)(z),textAlign:"center",background:c,cursor:"pointer",transition:`all ${C}`},[`${Oe}-zero-width-trigger`]:{position:"absolute",top:B,insetInlineEnd:k.calc(oe).mul(-1).equal(),zIndex:1,width:oe,height:G,color:W,fontSize:k.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ae,borderRadius:`0 ${(0,ge.unit)(ye)} ${(0,ge.unit)(ye)} 0`,cursor:"pointer",transition:`background ${l} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${l}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:k.calc(oe).mul(-1).equal(),borderRadius:`${(0,ge.unit)(ye)} 0 0 ${(0,ge.unit)(ye)}`}},"&-light":{background:et,[`${Oe}-trigger`]:{color:_,background:xe},[`${Oe}-zero-width-trigger`]:{color:_,background:xe,border:`1px solid ${pe}`,borderInlineStart:0}}}}};var de=(0,ve.I$)(["Layout","Sider"],k=>[h(k)],se.eh,{deprecatedTokens:se.jn}),s=function(k,Oe){var ae={};for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&Oe.indexOf(C)<0&&(ae[C]=k[C]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,C=Object.getOwnPropertySymbols(k);l!Number.isNaN(Number.parseFloat(k))&&isFinite(k),ee=e.createContext({}),te=(()=>{let k=0;return function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return k+=1,`${Oe}${k}`}})();var we=e.forwardRef((k,Oe)=>{const{prefixCls:ae,className:C,trigger:l,children:ie,defaultCollapsed:z=!1,theme:W="dark",style:c={},collapsible:B=!1,reverseArrow:oe=!1,width:G=200,collapsedWidth:ye=80,zeroWidthTriggerStyle:et,breakpoint:_,onCollapse:xe,onBreakpoint:pe}=k,Xe=s(k,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:M}=(0,e.useContext)(Ne.V),[Ee,be]=(0,e.useState)("collapsed"in k?k.collapsed:z),[ct,Le]=(0,e.useState)(!1);(0,e.useEffect)(()=>{"collapsed"in k&&be(k.collapsed)},[k.collapsed]);const re=(Ue,je)=>{"collapsed"in k||be(Ue),xe==null||xe(Ue,je)},{getPrefixCls:T,direction:H}=(0,e.useContext)(Se.E_),d=T("layout-sider",ae),[ce,Z,r]=de(d),u=(0,e.useRef)(null);u.current=Ue=>{Le(Ue.matches),pe==null||pe(Ue.matches),Ee!==Ue.matches&&re(Ue.matches,"responsive")},(0,e.useEffect)(()=>{function Ue(x){return u.current(x)}let je;if(typeof window!="undefined"){const{matchMedia:x}=window;if(x&&_&&_ in f){je=x(`screen and (max-width: ${f[_]})`);try{je.addEventListener("change",Ue)}catch(ne){je.addListener(Ue)}Ue(je)}}return()=>{try{je==null||je.removeEventListener("change",Ue)}catch(x){je==null||je.removeListener(Ue)}}},[_]),(0,e.useEffect)(()=>{const Ue=te("ant-sider-");return M.addSider(Ue),()=>M.removeSider(Ue)},[]);const V=()=>{re(!Ee,"clickTrigger")},K=(0,I.Z)(Xe,["collapsed"]),y=Ee?ye:G,A=Y(y)?`${y}px`:String(y),L=parseFloat(String(ye||0))===0?e.createElement("span",{onClick:V,className:O()(`${d}-zero-width-trigger`,`${d}-zero-width-trigger-${oe?"right":"left"}`),style:et},l||e.createElement(D,null)):null,q=H==="rtl"==!oe,Me={expanded:q?e.createElement(n.Z,null):e.createElement(F.Z,null),collapsed:q?e.createElement(F.Z,null):e.createElement(n.Z,null)}[Ee?"collapsed":"expanded"],fe=l!==null?L||e.createElement("div",{className:`${d}-trigger`,onClick:V,style:{width:A}},l||Me):null,Ie=Object.assign(Object.assign({},c),{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}),Be=O()(d,`${d}-${W}`,{[`${d}-collapsed`]:!!Ee,[`${d}-has-trigger`]:B&&l!==null&&!L,[`${d}-below`]:!!ct,[`${d}-zero-width`]:parseFloat(A)===0},C,Z,r),Te=e.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return ce(e.createElement(ee.Provider,{value:Te},e.createElement("aside",Object.assign({className:Be},K,{style:Ie,ref:Oe}),e.createElement("div",{className:`${d}-children`},ie),B||ct&&L?fe:null)))})},6989:function(Yt,Ge,t){t.d(Ge,{V:function(){return m}});var e=t(59301);const m=e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Yt,Ge,t){t.d(Ge,{eh:function(){return Q},jn:function(){return N}});var e=t(36237),m=t(16931);const p=P=>{const{antCls:g,componentCls:D,colorText:F,footerBg:n,headerHeight:J,headerPadding:O,headerColor:I,footerPadding:Se,fontSize:Ne,bodyBg:ge,headerBg:se}=P;return{[D]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ge,"&, *":{boxSizing:"border-box"},[`&${D}-has-sider`]:{flexDirection:"row",[`> ${D}, > ${D}-content`]:{width:0}},[`${D}-header, &${D}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${D}-header`]:{height:J,padding:O,color:I,lineHeight:(0,e.unit)(J),background:se,[`${g}-menu`]:{lineHeight:"inherit"}},[`${D}-footer`]:{padding:Se,color:F,fontSize:Ne,background:n},[`${D}-content`]:{flex:"auto",color:F,minHeight:0}}},Q=P=>{const{colorBgLayout:g,controlHeight:D,controlHeightLG:F,colorText:n,controlHeightSM:J,marginXXS:O,colorTextLightSolid:I,colorBgContainer:Se}=P,Ne=F*1.25;return{colorBgHeader:"#001529",colorBgBody:g,colorBgTrigger:"#002140",bodyBg:g,headerBg:"#001529",headerHeight:D*2,headerPadding:`0 ${Ne}px`,headerColor:n,footerPadding:`${J}px ${Ne}px`,footerBg:g,siderBg:"#001529",triggerHeight:F+O*2,triggerBg:"#002140",triggerColor:I,zeroTriggerWidth:F,zeroTriggerHeight:F,lightSiderBg:Se,lightTriggerBg:Se,lightTriggerColor:n}},N=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ge.ZP=(0,m.I$)("Layout",P=>[p(P)],Q,{deprecatedTokens:N})},78857:function(Yt,Ge,t){t.d(Ge,{J:function(){return P}});var e=t(59301),m=t(8654),p=t(62487),Q=function(g,D){var F={};for(var n in g)Object.prototype.hasOwnProperty.call(g,n)&&D.indexOf(n)<0&&(F[n]=g[n]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,n=Object.getOwnPropertySymbols(g);J{const{children:F}=g,n=Q(g,["children"]),J=e.useContext(N),O=e.useMemo(()=>Object.assign(Object.assign({},J),n),[J,n.prefixCls,n.mode,n.selectable,n.rootClassName]),I=(0,m.t4)(F),Se=(0,m.x1)(D,I?(0,m.C4)(F):null);return e.createElement(N.Provider,{value:O},e.createElement(p.Z,{space:!0},I?e.cloneElement(F,{ref:Se}):F))});Ge.Z=N},93041:function(Yt,Ge,t){t.d(Ge,{default:function(){return ce}});var e=t(59301),m=t(28321),p=t(24303),Q=t(18785),N=t(92310),P=t.n(N),g=t(6089),D=t(2738),F=t(86641),n=t(22703),J=t(48755),O=t(83397),Se=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(Z,r){var u={};for(var V in Z)Object.prototype.hasOwnProperty.call(Z,V)&&r.indexOf(V)<0&&(u[V]=Z[V]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,V=Object.getOwnPropertySymbols(Z);K{const{prefixCls:r,className:u,dashed:V}=Z,K=Ne(Z,["prefixCls","className","dashed"]),{getPrefixCls:y}=e.useContext(J.E_),A=y("menu",r),L=P()({[`${A}-item-divider-dashed`]:!!V},u);return e.createElement(m.iz,Object.assign({className:L},K))},ve=t(11592),h=t(25399),s=Z=>{var r;const{className:u,children:V,icon:K,title:y,danger:A,extra:L}=Z,{prefixCls:q,firstLevel:i,direction:v,disableMenuItemTitleTooltip:Me,inlineCollapsed:fe}=e.useContext(Se),Ie=ne=>{const Ce=V==null?void 0:V[0],De=e.createElement("span",{className:P()(`${q}-title-content`,{[`${q}-title-content-with-extra`]:!!L||L===0})},V);return(!K||e.isValidElement(V)&&V.type==="span")&&V&&ne&&i&&typeof Ce=="string"?e.createElement("div",{className:`${q}-inline-collapsed-noicon`},Ce.charAt(0)):De},{siderCollapsed:Be}=e.useContext(p.D);let Te=y;typeof y=="undefined"?Te=i?V:"":y===!1&&(Te="");const Ue={title:Te};!Be&&!fe&&(Ue.title=null,Ue.open=!1);const je=(0,ve.Z)(V).length;let x=e.createElement(m.ck,Object.assign({},(0,D.Z)(Z,["title","icon","danger"]),{className:P()({[`${q}-item-danger`]:A,[`${q}-item-only-child`]:(K?je+1:je)===1},u),title:typeof y=="string"?y:void 0}),(0,n.Tm)(K,{className:P()(e.isValidElement(K)?(r=K.props)===null||r===void 0?void 0:r.className:"",`${q}-item-icon`)}),Ie(fe));return Me||(x=e.createElement(h.Z,Object.assign({},Ue,{placement:v==="rtl"?"left":"right",classNames:{root:`${q}-inline-collapsed-tooltip`}}),x)),x},f=t(78857),Y=t(36237),ee=t(17835),te=t(63356),Ve=t(34961),we=t(46e3),k=t(34925),Oe=t(16931),ae=t(51636),l=Z=>{const{componentCls:r,motionDurationSlow:u,horizontalLineHeight:V,colorSplit:K,lineWidth:y,lineType:A,itemPaddingInline:L}=Z;return{[`${r}-horizontal`]:{lineHeight:V,border:0,borderBottom:`${(0,Y.unit)(y)} ${A} ${K}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${r}-item, ${r}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:L},[`> ${r}-item:hover, - > ${r}-item-active, - > ${r}-submenu ${r}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${r}-item, ${r}-submenu-title`]:{transition:[`border-color ${u}`,`background ${u}`].join(",")},[`${r}-submenu-arrow`]:{display:"none"}}}},z=Z=>{let{componentCls:r,menuArrowOffset:u,calc:V}=Z;return{[`${r}-rtl`]:{direction:"rtl"},[`${r}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${r}-rtl${r}-vertical, - ${r}-submenu-rtl ${r}-vertical`]:{[`${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Y.unit)(V(u).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Y.unit)(u)})`}}}}};const W=Z=>Object.assign({},(0,te.oN)(Z));var B=(Z,r)=>{const{componentCls:u,itemColor:V,itemSelectedColor:K,subMenuItemSelectedColor:y,groupTitleColor:A,itemBg:L,subMenuItemBg:q,itemSelectedBg:i,activeBarHeight:v,activeBarWidth:Me,activeBarBorderWidth:fe,motionDurationSlow:Ie,motionEaseInOut:Be,motionEaseOut:Te,itemPaddingInline:Ue,motionDurationMid:je,itemHoverColor:x,lineType:ne,colorSplit:Ce,itemDisabledColor:De,dangerItemColor:S,dangerItemHoverColor:X,dangerItemSelectedColor:U,dangerItemActiveBg:me,dangerItemSelectedBg:ze,popupBg:Ke,itemHoverBg:ut,itemActiveBg:pt,menuSubMenuBg:tt,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:ke,horizontalItemBorderRadius:rt,horizontalItemHoverBg:ot}=Z;return{[`${u}-${r}, ${u}-${r} > ${u}`]:{color:V,background:L,[`&${u}-root:focus-visible`]:Object.assign({},W(Z)),[`${u}-item`]:{"&-group-title, &-extra":{color:A}},[`${u}-submenu-selected > ${u}-submenu-title`]:{color:y},[`${u}-item, ${u}-submenu-title`]:{color:V,[`&:not(${u}-item-disabled):focus-visible`]:Object.assign({},W(Z))},[`${u}-item-disabled, ${u}-submenu-disabled`]:{color:`${De} !important`},[`${u}-item:not(${u}-item-selected):not(${u}-submenu-selected)`]:{[`&:hover, > ${u}-submenu-title:hover`]:{color:x}},[`&:not(${u}-horizontal)`]:{[`${u}-item:not(${u}-item-selected)`]:{"&:hover":{backgroundColor:ut},"&:active":{backgroundColor:pt}},[`${u}-submenu-title`]:{"&:hover":{backgroundColor:ut},"&:active":{backgroundColor:pt}}},[`${u}-item-danger`]:{color:S,[`&${u}-item:hover`]:{[`&:not(${u}-item-selected):not(${u}-submenu-selected)`]:{color:X}},[`&${u}-item:active`]:{background:me}},[`${u}-item a`]:{"&, &:hover":{color:"inherit"}},[`${u}-item-selected`]:{color:K,[`&${u}-item-danger`]:{color:U},"a, a:hover":{color:"inherit"}},[`& ${u}-item-selected`]:{backgroundColor:i,[`&${u}-item-danger`]:{backgroundColor:ze}},[`&${u}-submenu > ${u}`]:{backgroundColor:tt},[`&${u}-popup > ${u}`]:{backgroundColor:Ke},[`&${u}-submenu-popup > ${u}`]:{backgroundColor:Ke},[`&${u}-horizontal`]:Object.assign(Object.assign({},r==="dark"?{borderBottom:0}:{}),{[`> ${u}-item, > ${u}-submenu`]:{top:fe,marginTop:Z.calc(fe).mul(-1).equal(),marginBottom:0,borderRadius:rt,"&::after":{position:"absolute",insetInline:Ue,bottom:0,borderBottom:`${(0,Y.unit)(v)} solid transparent`,transition:`border-color ${Ie} ${Be}`,content:'""'},"&:hover, &-active, &-open":{background:ot,"&::after":{borderBottomWidth:v,borderBottomColor:mt}},"&-selected":{color:mt,backgroundColor:ke,"&:hover":{backgroundColor:ke},"&::after":{borderBottomWidth:v,borderBottomColor:mt}}}}),[`&${u}-root`]:{[`&${u}-inline, &${u}-vertical`]:{borderInlineEnd:`${(0,Y.unit)(fe)} ${ne} ${Ce}`}},[`&${u}-inline`]:{[`${u}-sub${u}-inline`]:{background:q},[`${u}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Y.unit)(Me)} solid ${K}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${je} ${Te}`,`opacity ${je} ${Te}`].join(","),content:'""'},[`&${u}-item-danger`]:{"&::after":{borderInlineEndColor:U}}},[`${u}-selected, ${u}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${je} ${Be}`,`opacity ${je} ${Be}`].join(",")}}}}}};const oe=Z=>{const{componentCls:r,itemHeight:u,itemMarginInline:V,padding:K,menuArrowSize:y,marginXS:A,itemMarginBlock:L,itemWidth:q,itemPaddingInline:i}=Z,v=Z.calc(y).add(K).add(A).equal();return{[`${r}-item`]:{position:"relative",overflow:"hidden"},[`${r}-item, ${r}-submenu-title`]:{height:u,lineHeight:(0,Y.unit)(u),paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:V,marginBlock:L,width:q},[`> ${r}-item, - > ${r}-submenu > ${r}-submenu-title`]:{height:u,lineHeight:(0,Y.unit)(u)},[`${r}-item-group-list ${r}-submenu-title, - ${r}-submenu-title`]:{paddingInlineEnd:v}}};var ye=Z=>{const{componentCls:r,iconCls:u,itemHeight:V,colorTextLightSolid:K,dropdownWidth:y,controlHeightLG:A,motionEaseOut:L,paddingXL:q,itemMarginInline:i,fontSizeLG:v,motionDurationFast:Me,motionDurationSlow:fe,paddingXS:Ie,boxShadowSecondary:Be,collapsedWidth:Te,collapsedIconSize:Ue}=Z,je={height:V,lineHeight:(0,Y.unit)(V),listStylePosition:"inside",listStyleType:"disc"};return[{[r]:{"&-inline, &-vertical":Object.assign({[`&${r}-root`]:{boxShadow:"none"}},oe(Z))},[`${r}-submenu-popup`]:{[`${r}-vertical`]:Object.assign(Object.assign({},oe(Z)),{boxShadow:Be})}},{[`${r}-submenu-popup ${r}-vertical${r}-sub`]:{minWidth:y,maxHeight:`calc(100vh - ${(0,Y.unit)(Z.calc(A).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${r}-inline`]:{width:"100%",[`&${r}-root`]:{[`${r}-item, ${r}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${Me} ${L}`].join(","),[`> ${r}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${r}-sub${r}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${r}-submenu > ${r}-submenu-title`]:je,[`& ${r}-item-group-title`]:{paddingInlineStart:q}},[`${r}-item`]:je}},{[`${r}-inline-collapsed`]:{width:Te,[`&${r}-root`]:{[`${r}-item, ${r}-submenu ${r}-submenu-title`]:{[`> ${r}-inline-collapsed-noicon`]:{fontSize:v,textAlign:"center"}}},[`> ${r}-item, - > ${r}-item-group > ${r}-item-group-list > ${r}-item, - > ${r}-item-group > ${r}-item-group-list > ${r}-submenu > ${r}-submenu-title, - > ${r}-submenu > ${r}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Y.unit)(Z.calc(Ue).div(2).equal())} - ${(0,Y.unit)(i)})`,textOverflow:"clip",[` - ${r}-submenu-arrow, - ${r}-submenu-expand-icon - `]:{opacity:0},[`${r}-item-icon, ${u}`]:{margin:0,fontSize:Ue,lineHeight:(0,Y.unit)(V),"+ span":{display:"inline-block",opacity:0}}},[`${r}-item-icon, ${u}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${r}-item-icon, ${u}`]:{display:"none"},"a, a:hover":{color:K}},[`${r}-item-group-title`]:Object.assign(Object.assign({},te.vS),{paddingInline:Ie})}}]};const et=Z=>{const{componentCls:r,motionDurationSlow:u,motionDurationMid:V,motionEaseInOut:K,motionEaseOut:y,iconCls:A,iconSize:L,iconMarginInlineEnd:q}=Z;return{[`${r}-item, ${r}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${u}`,`background ${u}`,`padding calc(${u} + 0.1s) ${K}`].join(","),[`${r}-item-icon, ${A}`]:{minWidth:L,fontSize:L,transition:[`font-size ${V} ${y}`,`margin ${u} ${K}`,`color ${u}`].join(","),"+ span":{marginInlineStart:q,opacity:1,transition:[`opacity ${u} ${K}`,`margin ${u}`,`color ${u}`].join(",")}},[`${r}-item-icon`]:Object.assign({},(0,te.Ro)()),[`&${r}-item-only-child`]:{[`> ${A}, > ${r}-item-icon`]:{marginInlineEnd:0}}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${r}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_=Z=>{const{componentCls:r,motionDurationSlow:u,motionEaseInOut:V,borderRadius:K,menuArrowSize:y,menuArrowOffset:A}=Z;return{[`${r}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Z.margin,width:y,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${u} ${V}, opacity ${u}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Z.calc(y).mul(.6).equal(),height:Z.calc(y).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:K,transition:[`background ${u} ${V}`,`transform ${u} ${V}`,`top ${u} ${V}`,`color ${u} ${V}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Y.unit)(Z.calc(A).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Y.unit)(A)})`}}}}},xe=Z=>{const{antCls:r,componentCls:u,fontSize:V,motionDurationSlow:K,motionDurationMid:y,motionEaseInOut:A,paddingXS:L,padding:q,colorSplit:i,lineWidth:v,zIndexPopup:Me,borderRadiusLG:fe,subMenuItemBorderRadius:Ie,menuArrowSize:Be,menuArrowOffset:Te,lineType:Ue,groupTitleLineHeight:je,groupTitleFontSize:x}=Z;return[{"":{[u]:Object.assign(Object.assign({},(0,te.dF)()),{"&-hidden":{display:"none"}})},[`${u}-submenu-hidden`]:{display:"none"}},{[u]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,te.Wf)(Z)),(0,te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:V,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${K} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${u}-item`]:{flex:"none"}},[`${u}-item, ${u}-submenu, ${u}-submenu-title`]:{borderRadius:Z.itemBorderRadius},[`${u}-item-group-title`]:{padding:`${(0,Y.unit)(L)} ${(0,Y.unit)(q)}`,fontSize:x,lineHeight:je,transition:`all ${K}`},[`&-horizontal ${u}-submenu`]:{transition:[`border-color ${K} ${A}`,`background ${K} ${A}`].join(",")},[`${u}-submenu, ${u}-submenu-inline`]:{transition:[`border-color ${K} ${A}`,`background ${K} ${A}`,`padding ${y} ${A}`].join(",")},[`${u}-submenu ${u}-sub`]:{cursor:"initial",transition:[`background ${K} ${A}`,`padding ${K} ${A}`].join(",")},[`${u}-title-content`]:{transition:`color ${K}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${r}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${u}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Z.padding}},[`${u}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${u}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:i,borderStyle:Ue,borderWidth:0,borderTopWidth:v,marginBlock:v,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(Z)),{[`${u}-item-group`]:{[`${u}-item-group-list`]:{margin:0,padding:0,[`${u}-item, ${u}-submenu-title`]:{paddingInline:`${(0,Y.unit)(Z.calc(V).mul(2).equal())} ${(0,Y.unit)(q)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Me,borderRadius:fe,boxShadow:"none",transformOrigin:"0 0",[`&${u}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${u}`]:Object.assign(Object.assign(Object.assign({borderRadius:fe},et(Z)),_(Z)),{[`${u}-item, ${u}-submenu > ${u}-submenu-title`]:{borderRadius:Ie},[`${u}-submenu-title::after`]:{transition:`transform ${K} ${A}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Z.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Z.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Z.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Z.paddingXS}}}),_(Z)),{[`&-inline-collapsed ${u}-submenu-arrow, - &-inline ${u}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Y.unit)(Te)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Y.unit)(Z.calc(Te).mul(-1).equal())})`}},[`${u}-submenu-open${u}-submenu-inline > ${u}-submenu-title > ${u}-submenu-arrow`]:{transform:`translateY(${(0,Y.unit)(Z.calc(Be).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Y.unit)(Z.calc(Te).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Y.unit)(Te)})`}}})},{[`${r}-layout-header`]:{[u]:{lineHeight:"inherit"}}}]},pe=Z=>{var r,u,V;const{colorPrimary:K,colorError:y,colorTextDisabled:A,colorErrorBg:L,colorText:q,colorTextDescription:i,colorBgContainer:v,colorFillAlter:Me,colorFillContent:fe,lineWidth:Ie,lineWidthBold:Be,controlItemBgActive:Te,colorBgTextHover:Ue,controlHeightLG:je,lineHeight:x,colorBgElevated:ne,marginXXS:Ce,padding:De,fontSize:S,controlHeightSM:X,fontSizeLG:U,colorTextLightSolid:me,colorErrorHover:ze}=Z,Ke=(r=Z.activeBarWidth)!==null&&r!==void 0?r:0,ut=(u=Z.activeBarBorderWidth)!==null&&u!==void 0?u:Ie,pt=(V=Z.itemMarginInline)!==null&&V!==void 0?V:Z.marginXXS,tt=new ee.FastColor(me).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Z.zIndexPopupBase+50,radiusItem:Z.borderRadiusLG,itemBorderRadius:Z.borderRadiusLG,radiusSubMenuItem:Z.borderRadiusSM,subMenuItemBorderRadius:Z.borderRadiusSM,colorItemText:q,itemColor:q,colorItemTextHover:q,itemHoverColor:q,colorItemTextHoverHorizontal:K,horizontalItemHoverColor:K,colorGroupTitle:i,groupTitleColor:i,colorItemTextSelected:K,itemSelectedColor:K,subMenuItemSelectedColor:K,colorItemTextSelectedHorizontal:K,horizontalItemSelectedColor:K,colorItemBg:v,itemBg:v,colorItemBgHover:Ue,itemHoverBg:Ue,colorItemBgActive:fe,itemActiveBg:Te,colorSubItemBg:Me,subMenuItemBg:Me,colorItemBgSelected:Te,itemSelectedBg:Te,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Ke,colorActiveBarHeight:Be,activeBarHeight:Be,colorActiveBarBorderSize:Ie,activeBarBorderWidth:ut,colorItemTextDisabled:A,itemDisabledColor:A,colorDangerItemText:y,dangerItemColor:y,colorDangerItemTextHover:y,dangerItemHoverColor:y,colorDangerItemTextSelected:y,dangerItemSelectedColor:y,colorDangerItemBgActive:L,dangerItemActiveBg:L,colorDangerItemBgSelected:L,dangerItemSelectedBg:L,itemMarginInline:pt,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:je,groupTitleLineHeight:x,collapsedWidth:je*2,popupBg:ne,itemMarginBlock:Ce,itemPaddingInline:De,horizontalLineHeight:`${je*1.15}px`,iconSize:S,iconMarginInlineEnd:X-S,collapsedIconSize:U,groupTitleFontSize:S,darkItemDisabledColor:new ee.FastColor(me).setA(.25).toRgbString(),darkItemColor:tt,darkDangerItemColor:y,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:me,darkItemSelectedBg:K,darkDangerItemSelectedBg:y,darkItemHoverBg:"transparent",darkGroupTitleColor:tt,darkItemHoverColor:me,darkDangerItemHoverColor:ze,darkDangerItemSelectedColor:me,darkDangerItemActiveBg:y,itemWidth:Ke?`calc(100% + ${ut}px)`:`calc(100% - ${pt*2}px)`}};var Xe=function(Z){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Z,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Oe.I$)("Menu",K=>{const{colorBgElevated:y,controlHeightLG:A,fontSize:L,darkItemColor:q,darkDangerItemColor:i,darkItemBg:v,darkSubMenuItemBg:Me,darkItemSelectedColor:fe,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Be,darkItemHoverBg:Te,darkGroupTitleColor:Ue,darkItemHoverColor:je,darkItemDisabledColor:x,darkDangerItemHoverColor:ne,darkDangerItemSelectedColor:Ce,darkDangerItemActiveBg:De,popupBg:S,darkPopupBg:X}=K,U=K.calc(L).div(7).mul(5).equal(),me=(0,ae.mergeToken)(K,{menuArrowSize:U,menuHorizontalHeight:K.calc(A).mul(1.15).equal(),menuArrowOffset:K.calc(U).mul(.25).equal(),menuSubMenuBg:y,calc:K.calc,popupBg:S}),ze=(0,ae.mergeToken)(me,{itemColor:q,itemHoverColor:je,groupTitleColor:Ue,itemSelectedColor:fe,subMenuItemSelectedColor:fe,itemBg:v,popupBg:X,subMenuItemBg:Me,itemActiveBg:"transparent",itemSelectedBg:Ie,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Te,itemDisabledColor:x,dangerItemColor:i,dangerItemHoverColor:ne,dangerItemSelectedColor:Ce,dangerItemActiveBg:De,dangerItemSelectedBg:Be,menuSubMenuBg:Me,horizontalItemSelectedColor:fe,horizontalItemSelectedBg:Ie});return[xe(me),l(me),ye(me),B(me,"light"),B(ze,"dark"),z(me),(0,Ve.Z)(me),(0,we.oN)(me,"slide-up"),(0,we.oN)(me,"slide-down"),(0,k._y)(me,"zoom-big")]},pe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:u,unitless:{groupTitleLineHeight:!0}})(Z,r)},M=t(75030),be=Z=>{var r;const{popupClassName:u,icon:V,title:K,theme:y}=Z,A=e.useContext(Se),{prefixCls:L,inlineCollapsed:q,theme:i}=A,v=(0,m.Xl)();let Me;if(!V)Me=q&&!v.length&&K&&typeof K=="string"?e.createElement("div",{className:`${L}-inline-collapsed-noicon`},K.charAt(0)):e.createElement("span",{className:`${L}-title-content`},K);else{const Be=e.isValidElement(K)&&K.type==="span";Me=e.createElement(e.Fragment,null,(0,n.Tm)(V,{className:P()(e.isValidElement(V)?(r=V.props)===null||r===void 0?void 0:r.className:"",`${L}-item-icon`)}),Be?K:e.createElement("span",{className:`${L}-title-content`},K))}const fe=e.useMemo(()=>Object.assign(Object.assign({},A),{firstLevel:!1}),[A]),[Ie]=(0,M.Cn)("Menu");return e.createElement(Se.Provider,{value:fe},e.createElement(m.Wd,Object.assign({},(0,D.Z)(Z,["icon"]),{title:Me,popupClassName:P()(L,u,`${L}-${y||i}`),popupStyle:Object.assign({zIndex:Ie},Z.popupStyle)})))},ct=function(Z,r){var u={};for(var V in Z)Object.prototype.hasOwnProperty.call(Z,V)&&r.indexOf(V)<0&&(u[V]=Z[V]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,V=Object.getOwnPropertySymbols(Z);K{var u;const V=e.useContext(f.Z),K=V||{},{getPrefixCls:y,getPopupContainer:A,direction:L,menu:q}=e.useContext(J.E_),i=y(),{prefixCls:v,className:Me,style:fe,theme:Ie="light",expandIcon:Be,_internalDisableMenuItemTitleTooltip:Te,inlineCollapsed:Ue,siderCollapsed:je,rootClassName:x,mode:ne,selectable:Ce,onClick:De,overflowedIndicatorPopupClassName:S}=Z,X=ct(Z,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),U=(0,D.Z)(X,["collapsedWidth"]);(u=K.validator)===null||u===void 0||u.call(K,{mode:ne});const me=(0,g.Z)(function(){var Mt;De==null||De.apply(void 0,arguments),(Mt=K.onClick)===null||Mt===void 0||Mt.call(K)}),ze=K.mode||ne,Ke=Ce!=null?Ce:K.selectable,ut=Ue!=null?Ue:je,pt={horizontal:{motionName:`${i}-slide-up`},inline:(0,F.Z)(i),other:{motionName:`${i}-zoom-big`}},tt=y("menu",v||K.prefixCls),mt=(0,O.Z)(tt),[ke,rt,ot]=Xe(tt,mt,!V),xt=P()(`${tt}-${Ie}`,q==null?void 0:q.className,Me),gt=e.useMemo(()=>{var Mt,Gt;if(typeof Be=="function"||Le(Be))return Be||null;if(typeof K.expandIcon=="function"||Le(K.expandIcon))return K.expandIcon||null;if(typeof(q==null?void 0:q.expandIcon)=="function"||Le(q==null?void 0:q.expandIcon))return(q==null?void 0:q.expandIcon)||null;const rn=(Mt=Be!=null?Be:K==null?void 0:K.expandIcon)!==null&&Mt!==void 0?Mt:q==null?void 0:q.expandIcon;return(0,n.Tm)(rn,{className:P()(`${tt}-submenu-expand-icon`,e.isValidElement(rn)?(Gt=rn.props)===null||Gt===void 0?void 0:Gt.className:void 0)})},[Be,K==null?void 0:K.expandIcon,q==null?void 0:q.expandIcon,tt]),Pt=e.useMemo(()=>({prefixCls:tt,inlineCollapsed:ut||!1,direction:L,firstLevel:!0,theme:Ie,mode:ze,disableMenuItemTitleTooltip:Te}),[tt,ut,L,Te,Ie]);return ke(e.createElement(f.Z.Provider,{value:null},e.createElement(Se.Provider,{value:Pt},e.createElement(m.ZP,Object.assign({getPopupContainer:A,overflowedIndicator:e.createElement(Q.Z,null),overflowedIndicatorPopupClassName:P()(tt,`${tt}-${Ie}`,S),mode:ze,selectable:Ke,onClick:me},U,{inlineCollapsed:ut,style:Object.assign(Object.assign({},q==null?void 0:q.style),fe),className:xt,prefixCls:tt,direction:L,defaultMotions:pt,expandIcon:gt,ref:r,rootClassName:P()(x,rt,K.rootClassName,ot,mt),_internalComponents:re})))))});const d=(0,e.forwardRef)((Z,r)=>{const u=(0,e.useRef)(null),V=e.useContext(p.D);return(0,e.useImperativeHandle)(r,()=>({menu:u.current,focus:K=>{var y;(y=u.current)===null||y===void 0||y.focus(K)}})),e.createElement(H,Object.assign({ref:u},Z,V))});d.Item=s,d.SubMenu=be,d.Divider=se,d.ItemGroup=m.BW;var ce=d},31709:function(Yt,Ge,t){t.d(Ge,{Z:function(){return q}});var e=t(59301),m=t(54476),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Q=p,N=t(7657),P=function(v,Me){return e.createElement(N.Z,(0,m.Z)({},v,{ref:Me,icon:Q}))},g=e.forwardRef(P),D=g,F=t(49198),n=t(33853),J=t(38819),O=t(92310),I=t.n(O),Se=t(20068),Ne=t(76190),ge=t(33885),se=t(42978),ve=t(18929),h=t(10228),de=t(26112),s=t(48736),f=t(17119),Y=[10,20,50,100],ee=function(v){var Me=v.pageSizeOptions,fe=Me===void 0?Y:Me,Ie=v.locale,Be=v.changeSize,Te=v.pageSize,Ue=v.goButton,je=v.quickGo,x=v.rootPrefixCls,ne=v.disabled,Ce=v.buildOptionText,De=v.showSizeChanger,S=v.sizeChangerRender,X=e.useState(""),U=(0,se.Z)(X,2),me=U[0],ze=U[1],Ke=function(){return!me||Number.isNaN(me)?void 0:Number(me)},ut=typeof Ce=="function"?Ce:function(Pt){return"".concat(Pt," ").concat(Ie.items_per_page)},pt=function(Mt){ze(Mt.target.value)},tt=function(Mt){Ue||me===""||(ze(""),!(Mt.relatedTarget&&(Mt.relatedTarget.className.indexOf("".concat(x,"-item-link"))>=0||Mt.relatedTarget.className.indexOf("".concat(x,"-item"))>=0))&&(je==null||je(Ke())))},mt=function(Mt){me!==""&&(Mt.keyCode===h.Z.ENTER||Mt.type==="click")&&(ze(""),je==null||je(Ke()))},ke=function(){return fe.some(function(Mt){return Mt.toString()===Te.toString()})?fe:fe.concat([Te]).sort(function(Mt,Gt){var rn=Number.isNaN(Number(Mt))?0:Number(Mt),Ht=Number.isNaN(Number(Gt))?0:Number(Gt);return rn-Ht})},rt="".concat(x,"-options");if(!De&&!je)return null;var ot=null,xt=null,gt=null;return De&&S&&(ot=S({disabled:ne,size:Te,onSizeChange:function(Mt){Be==null||Be(Number(Mt))},"aria-label":Ie.page_size,className:"".concat(rt,"-size-changer"),options:ke().map(function(Pt){return{label:ut(Pt),value:Pt}})})),je&&(Ue&&(gt=typeof Ue=="boolean"?e.createElement("button",{type:"button",onClick:mt,onKeyUp:mt,disabled:ne,className:"".concat(rt,"-quick-jumper-button")},Ie.jump_to_confirm):e.createElement("span",{onClick:mt,onKeyUp:mt},Ue)),xt=e.createElement("div",{className:"".concat(rt,"-quick-jumper")},Ie.jump_to,e.createElement("input",{disabled:ne,type:"text",value:me,onChange:pt,onKeyUp:mt,onBlur:tt,"aria-label":Ie.page}),Ie.page,gt)),e.createElement("li",{className:rt},ot,xt)},te=ee,Ve=function(v){var Me=v.rootPrefixCls,fe=v.page,Ie=v.active,Be=v.className,Te=v.showTitle,Ue=v.onClick,je=v.onKeyPress,x=v.itemRender,ne="".concat(Me,"-item"),Ce=I()(ne,"".concat(ne,"-").concat(fe),(0,Se.Z)((0,Se.Z)({},"".concat(ne,"-active"),Ie),"".concat(ne,"-disabled"),!fe),Be),De=function(){Ue(fe)},S=function(me){je(me,Ue,fe)},X=x(fe,"page",e.createElement("a",{rel:"nofollow"},fe));return X?e.createElement("li",{title:Te?String(fe):null,className:Ce,onClick:De,onKeyDown:S,tabIndex:0},X):null},we=Ve,k=function(v,Me,fe){return fe};function Oe(){}function ae(i){var v=Number(i);return typeof v=="number"&&!Number.isNaN(v)&&isFinite(v)&&Math.floor(v)===v}function C(i,v,Me){var fe=typeof i=="undefined"?v:i;return Math.floor((Me-1)/fe)+1}var l=function(v){var Me=v.prefixCls,fe=Me===void 0?"rc-pagination":Me,Ie=v.selectPrefixCls,Be=Ie===void 0?"rc-select":Ie,Te=v.className,Ue=v.current,je=v.defaultCurrent,x=je===void 0?1:je,ne=v.total,Ce=ne===void 0?0:ne,De=v.pageSize,S=v.defaultPageSize,X=S===void 0?10:S,U=v.onChange,me=U===void 0?Oe:U,ze=v.hideOnSinglePage,Ke=v.align,ut=v.showPrevNextJumpers,pt=ut===void 0?!0:ut,tt=v.showQuickJumper,mt=v.showLessItems,ke=v.showTitle,rt=ke===void 0?!0:ke,ot=v.onShowSizeChange,xt=ot===void 0?Oe:ot,gt=v.locale,Pt=gt===void 0?f.Z:gt,Mt=v.style,Gt=v.totalBoundaryShowSizeChanger,rn=Gt===void 0?50:Gt,Ht=v.disabled,At=v.simple,vn=v.showTotal,Bt=v.showSizeChanger,mn=Bt===void 0?Ce>rn:Bt,pn=v.sizeChangerRender,en=v.pageSizeOptions,b=v.itemRender,w=b===void 0?k:b,it=v.jumpPrevIcon,R=v.jumpNextIcon,$=v.prevIcon,He=v.nextIcon,Pe=e.useRef(null),Ae=(0,ve.Z)(10,{value:De,defaultValue:X}),qe=(0,se.Z)(Ae,2),Fe=qe[0],at=qe[1],Ct=(0,ve.Z)(1,{value:Ue,defaultValue:x,postState:function(Yn){return Math.max(1,Math.min(Yn,C(void 0,Fe,Ce)))}}),bt=(0,se.Z)(Ct,2),vt=bt[0],zt=bt[1],Kt=e.useState(vt),Rt=(0,se.Z)(Kt,2),ue=Rt[0],Re=Rt[1];(0,e.useEffect)(function(){Re(vt)},[vt]);var Ze=me!==Oe,Ye="current"in v,_e=Math.max(1,vt-(mt?3:5)),nt=Math.min(C(void 0,Fe,Ce),vt+(mt?3:5));function ft(Zn,Yn){var br=Zn||e.createElement("button",{type:"button","aria-label":Yn,className:"".concat(fe,"-item-link")});return typeof Zn=="function"&&(br=e.createElement(Zn,(0,ge.Z)({},v))),br}function Ot(Zn){var Yn=Zn.target.value,br=C(void 0,Fe,Ce),vr;return Yn===""?vr=Yn:Number.isNaN(Number(Yn))?vr=ue:Yn>=br?vr=br:vr=Number(Yn),vr}function Dt(Zn){return ae(Zn)&&Zn!==vt&&ae(Ce)&&Ce>0}var Ft=Ce>Fe?tt:!1;function Xt(Zn){(Zn.keyCode===h.Z.UP||Zn.keyCode===h.Z.DOWN)&&Zn.preventDefault()}function Tt(Zn){var Yn=Ot(Zn);switch(Yn!==ue&&Re(Yn),Zn.keyCode){case h.Z.ENTER:Qt(Yn);break;case h.Z.UP:Qt(Yn-1);break;case h.Z.DOWN:Qt(Yn+1);break;default:break}}function Zt(Zn){Qt(Ot(Zn))}function jt(Zn){var Yn=C(Zn,Fe,Ce),br=vt>Yn&&Yn!==0?Yn:vt;at(Zn),Re(br),xt==null||xt(vt,Zn),zt(br),me==null||me(br,Zn)}function Qt(Zn){if(Dt(Zn)&&!Ht){var Yn=C(void 0,Fe,Ce),br=Zn;return Zn>Yn?br=Yn:Zn<1&&(br=1),br!==ue&&Re(br),zt(br),me==null||me(br,Fe),br}return vt}var an=vt>1,$t=vt2?br-2:0),xo=2;xoCe?Ce:vt*Fe])),qn=null,Lt=C(void 0,Fe,Ce);if(ze&&Ce<=Fe)return null;var yt=[],Et={rootPrefixCls:fe,onClick:Qt,onKeyPress:bn,showTitle:rt,itemRender:w,page:-1},It=vt-1>0?vt-1:0,wt=vt+1=kn*2&&vt!==3&&(yt[0]=e.cloneElement(yt[0],{className:I()("".concat(fe,"-item-after-jump-prev"),yt[0].props.className)}),yt.unshift(Jn)),Lt-vt>=kn*2&&vt!==Lt-2){var Ir=yt[yt.length-1];yt[yt.length-1]=e.cloneElement(Ir,{className:I()("".concat(fe,"-item-before-jump-next"),Ir.props.className)}),yt.push(qn)}Er!==1&&yt.unshift(e.createElement(we,(0,m.Z)({},Et,{key:1,page:1}))),Dr!==Lt&&yt.push(e.createElement(we,(0,m.Z)({},Et,{key:Lt,page:Lt})))}var ir=Un(It);if(ir){var Zr=!an||!Lt;ir=e.createElement("li",{title:rt?Pt.prev_page:null,onClick:Vt,tabIndex:Zr?null:0,onKeyDown:Wt,className:I()("".concat(fe,"-prev"),(0,Se.Z)({},"".concat(fe,"-disabled"),Zr)),"aria-disabled":Zr},ir)}var kr=Mn(wt);if(kr){var jr,Kr;At?(jr=!$t,Kr=an?0:null):(jr=!$t||!Lt,Kr=jr?null:0),kr=e.createElement("li",{title:rt?Pt.next_page:null,onClick:En,tabIndex:Kr,onKeyDown:Jt,className:I()("".concat(fe,"-next"),(0,Se.Z)({},"".concat(fe,"-disabled"),jr)),"aria-disabled":jr},kr)}var Gr=I()(fe,Te,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(fe,"-start"),Ke==="start"),"".concat(fe,"-center"),Ke==="center"),"".concat(fe,"-end"),Ke==="end"),"".concat(fe,"-simple"),At),"".concat(fe,"-disabled"),Ht));return e.createElement("ul",(0,m.Z)({className:Gr,style:Mt,ref:Pe},rr),ar,ir,At?Rn:yt,kr,e.createElement(te,{locale:Pt,rootPrefixCls:fe,disabled:Ht,selectPrefixCls:Be,changeSize:jt,pageSize:Fe,pageSizeOptions:en,quickGo:Ft?Qt:null,goButton:Tn,showSizeChanger:mn,sizeChangerRender:pn}))},ie=l,z=t(61852),W=t(48755),c=t(31756),B=t(13783),oe=t(9017),G=t(82326),ye=t(57700),et=t(36237),_=t(53075),xe=t(64910),pe=t(39082),Xe=t(63356),M=t(51636),Ee=t(16931);const be=i=>{const{componentCls:v}=i;return{[`${v}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${v}-item-link`]:{color:i.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${v}-item-link`]:{color:i.colorTextDisabled,cursor:"not-allowed"}}},[`&${v}-disabled`]:{cursor:"not-allowed",[`${v}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:i.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:i.colorBorder,backgroundColor:i.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:i.itemActiveBgDisabled},a:{color:i.itemActiveColorDisabled}}},[`${v}-item-link`]:{color:i.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${v}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${v}-simple-pager`]:{color:i.colorTextDisabled},[`${v}-jump-prev, ${v}-jump-next`]:{[`${v}-item-link-icon`]:{opacity:0},[`${v}-item-ellipsis`]:{opacity:1}}},[`&${v}-simple`]:{[`${v}-prev, ${v}-next`]:{[`&${v}-disabled ${v}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ct=i=>{const{componentCls:v}=i;return{[`&${v}-mini ${v}-total-text, &${v}-mini ${v}-simple-pager`]:{height:i.itemSizeSM,lineHeight:(0,et.unit)(i.itemSizeSM)},[`&${v}-mini ${v}-item`]:{minWidth:i.itemSizeSM,height:i.itemSizeSM,margin:0,lineHeight:(0,et.unit)(i.calc(i.itemSizeSM).sub(2).equal())},[`&${v}-mini ${v}-prev, &${v}-mini ${v}-next`]:{minWidth:i.itemSizeSM,height:i.itemSizeSM,margin:0,lineHeight:(0,et.unit)(i.itemSizeSM)},[`&${v}-mini:not(${v}-disabled)`]:{[`${v}-prev, ${v}-next`]:{[`&:hover ${v}-item-link`]:{backgroundColor:i.colorBgTextHover},[`&:active ${v}-item-link`]:{backgroundColor:i.colorBgTextActive},[`&${v}-disabled:hover ${v}-item-link`]:{backgroundColor:"transparent"}}},[` - &${v}-mini ${v}-prev ${v}-item-link, - &${v}-mini ${v}-next ${v}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:i.itemSizeSM,lineHeight:(0,et.unit)(i.itemSizeSM)}},[`&${v}-mini ${v}-jump-prev, &${v}-mini ${v}-jump-next`]:{height:i.itemSizeSM,marginInlineEnd:0,lineHeight:(0,et.unit)(i.itemSizeSM)},[`&${v}-mini ${v}-options`]:{marginInlineStart:i.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:i.miniOptionsSizeChangerTop},"&-quick-jumper":{height:i.itemSizeSM,lineHeight:(0,et.unit)(i.itemSizeSM),input:Object.assign(Object.assign({},(0,_.x0)(i)),{width:i.paginationMiniQuickJumperInputWidth,height:i.controlHeightSM})}}}},Le=i=>{const{componentCls:v}=i;return{[` - &${v}-simple ${v}-prev, - &${v}-simple ${v}-next - `]:{height:i.itemSizeSM,lineHeight:(0,et.unit)(i.itemSizeSM),verticalAlign:"top",[`${v}-item-link`]:{height:i.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:i.colorBgTextHover},"&:active":{backgroundColor:i.colorBgTextActive},"&::after":{height:i.itemSizeSM,lineHeight:(0,et.unit)(i.itemSizeSM)}}},[`&${v}-simple ${v}-simple-pager`]:{display:"inline-block",height:i.itemSizeSM,marginInlineEnd:i.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,et.unit)(i.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:i.itemInputBg,border:`${(0,et.unit)(i.lineWidth)} ${i.lineType} ${i.colorBorder}`,borderRadius:i.borderRadius,outline:"none",transition:`border-color ${i.motionDurationMid}`,color:"inherit","&:hover":{borderColor:i.colorPrimary},"&:focus":{borderColor:i.colorPrimaryHover,boxShadow:`${(0,et.unit)(i.inputOutlineOffset)} 0 ${(0,et.unit)(i.controlOutlineWidth)} ${i.controlOutline}`},"&[disabled]":{color:i.colorTextDisabled,backgroundColor:i.colorBgContainerDisabled,borderColor:i.colorBorder,cursor:"not-allowed"}}}}},re=i=>{const{componentCls:v}=i;return{[`${v}-jump-prev, ${v}-jump-next`]:{outline:0,[`${v}-item-container`]:{position:"relative",[`${v}-item-link-icon`]:{color:i.colorPrimary,fontSize:i.fontSizeSM,opacity:0,transition:`all ${i.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${v}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:i.colorTextDisabled,letterSpacing:i.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:i.paginationEllipsisTextIndent,opacity:1,transition:`all ${i.motionDurationMid}`}},"&:hover":{[`${v}-item-link-icon`]:{opacity:1},[`${v}-item-ellipsis`]:{opacity:0}}},[` - ${v}-prev, - ${v}-jump-prev, - ${v}-jump-next - `]:{marginInlineEnd:i.marginXS},[` - ${v}-prev, - ${v}-next, - ${v}-jump-prev, - ${v}-jump-next - `]:{display:"inline-block",minWidth:i.itemSize,height:i.itemSize,color:i.colorText,fontFamily:i.fontFamily,lineHeight:(0,et.unit)(i.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:i.borderRadius,cursor:"pointer",transition:`all ${i.motionDurationMid}`},[`${v}-prev, ${v}-next`]:{outline:0,button:{color:i.colorText,cursor:"pointer",userSelect:"none"},[`${v}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:i.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,et.unit)(i.lineWidth)} ${i.lineType} transparent`,borderRadius:i.borderRadius,outline:"none",transition:`all ${i.motionDurationMid}`},[`&:hover ${v}-item-link`]:{backgroundColor:i.colorBgTextHover},[`&:active ${v}-item-link`]:{backgroundColor:i.colorBgTextActive},[`&${v}-disabled:hover`]:{[`${v}-item-link`]:{backgroundColor:"transparent"}}},[`${v}-slash`]:{marginInlineEnd:i.paginationSlashMarginInlineEnd,marginInlineStart:i.paginationSlashMarginInlineStart},[`${v}-options`]:{display:"inline-block",marginInlineStart:i.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:i.controlHeight,marginInlineStart:i.marginXS,lineHeight:(0,et.unit)(i.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,_.ik)(i)),(0,pe.$U)(i,{borderColor:i.colorBorder,hoverBorderColor:i.colorPrimaryHover,activeBorderColor:i.colorPrimary,activeShadow:i.activeShadow})),{"&[disabled]":Object.assign({},(0,pe.Xy)(i)),width:i.calc(i.controlHeightLG).mul(1.25).equal(),height:i.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:i.marginXS,marginInlineEnd:i.marginXS})}}}},T=i=>{const{componentCls:v}=i;return{[`${v}-item`]:{display:"inline-block",minWidth:i.itemSize,height:i.itemSize,marginInlineEnd:i.marginXS,fontFamily:i.fontFamily,lineHeight:(0,et.unit)(i.calc(i.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:i.itemBg,border:`${(0,et.unit)(i.lineWidth)} ${i.lineType} transparent`,borderRadius:i.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,et.unit)(i.paginationItemPaddingInline)}`,color:i.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${v}-item-active)`]:{"&:hover":{transition:`all ${i.motionDurationMid}`,backgroundColor:i.colorBgTextHover},"&:active":{backgroundColor:i.colorBgTextActive}},"&-active":{fontWeight:i.fontWeightStrong,backgroundColor:i.itemActiveBg,borderColor:i.colorPrimary,a:{color:i.colorPrimary},"&:hover":{borderColor:i.colorPrimaryHover},"&:hover a":{color:i.colorPrimaryHover}}}}},H=i=>{const{componentCls:v}=i;return{[v]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(i)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${v}-total-text`]:{display:"inline-block",height:i.itemSize,marginInlineEnd:i.marginXS,lineHeight:(0,et.unit)(i.calc(i.itemSize).sub(2).equal()),verticalAlign:"middle"}}),T(i)),re(i)),Le(i)),ct(i)),be(i)),{[`@media only screen and (max-width: ${i.screenLG}px)`]:{[`${v}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${i.screenSM}px)`]:{[`${v}-options`]:{display:"none"}}}),[`&${i.componentCls}-rtl`]:{direction:"rtl"}}},d=i=>{const{componentCls:v}=i;return{[`${v}:not(${v}-disabled)`]:{[`${v}-item`]:Object.assign({},(0,Xe.Qy)(i)),[`${v}-jump-prev, ${v}-jump-next`]:{"&:focus-visible":Object.assign({[`${v}-item-link-icon`]:{opacity:1},[`${v}-item-ellipsis`]:{opacity:0}},(0,Xe.oN)(i))},[`${v}-prev, ${v}-next`]:{[`&:focus-visible ${v}-item-link`]:Object.assign({},(0,Xe.oN)(i))}}}},ce=i=>Object.assign({itemBg:i.colorBgContainer,itemSize:i.controlHeight,itemSizeSM:i.controlHeightSM,itemActiveBg:i.colorBgContainer,itemLinkBg:i.colorBgContainer,itemActiveColorDisabled:i.colorTextDisabled,itemActiveBgDisabled:i.controlItemBgActiveDisabled,itemInputBg:i.colorBgContainer,miniOptionsSizeChangerTop:0},(0,xe.T)(i)),Z=i=>(0,M.mergeToken)(i,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:i.calc(i.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:i.calc(i.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:i.calc(i.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:i.calc(i.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:i.marginSM,paginationSlashMarginInlineEnd:i.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,xe.e)(i));var r=(0,Ee.I$)("Pagination",i=>{const v=Z(i);return[H(v),d(v)]},ce);const u=i=>{const{componentCls:v}=i;return{[`${v}${v}-bordered${v}-disabled:not(${v}-mini)`]:{"&, &:hover":{[`${v}-item-link`]:{borderColor:i.colorBorder}},"&:focus-visible":{[`${v}-item-link`]:{borderColor:i.colorBorder}},[`${v}-item, ${v}-item-link`]:{backgroundColor:i.colorBgContainerDisabled,borderColor:i.colorBorder,[`&:hover:not(${v}-item-active)`]:{backgroundColor:i.colorBgContainerDisabled,borderColor:i.colorBorder,a:{color:i.colorTextDisabled}},[`&${v}-item-active`]:{backgroundColor:i.itemActiveBgDisabled}},[`${v}-prev, ${v}-next`]:{"&:hover button":{backgroundColor:i.colorBgContainerDisabled,borderColor:i.colorBorder,color:i.colorTextDisabled},[`${v}-item-link`]:{backgroundColor:i.colorBgContainerDisabled,borderColor:i.colorBorder}}},[`${v}${v}-bordered:not(${v}-mini)`]:{[`${v}-prev, ${v}-next`]:{"&:hover button":{borderColor:i.colorPrimaryHover,backgroundColor:i.itemBg},[`${v}-item-link`]:{backgroundColor:i.itemLinkBg,borderColor:i.colorBorder},[`&:hover ${v}-item-link`]:{borderColor:i.colorPrimary,backgroundColor:i.itemBg,color:i.colorPrimary},[`&${v}-disabled`]:{[`${v}-item-link`]:{borderColor:i.colorBorder,color:i.colorTextDisabled}}},[`${v}-item`]:{backgroundColor:i.itemBg,border:`${(0,et.unit)(i.lineWidth)} ${i.lineType} ${i.colorBorder}`,[`&:hover:not(${v}-item-active)`]:{borderColor:i.colorPrimary,backgroundColor:i.itemBg,a:{color:i.colorPrimary}},"&-active":{borderColor:i.colorPrimary}}}}};var V=(0,Ee.bk)(["Pagination","bordered"],i=>{const v=Z(i);return[u(v)]},ce);function K(i){return(0,e.useMemo)(()=>typeof i=="boolean"?[i,{}]:i&&typeof i=="object"?[!0,i]:[void 0,void 0],[i])}var y=function(i,v){var Me={};for(var fe in i)Object.prototype.hasOwnProperty.call(i,fe)&&v.indexOf(fe)<0&&(Me[fe]=i[fe]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,fe=Object.getOwnPropertySymbols(i);Ie{const{align:v,prefixCls:Me,selectPrefixCls:fe,className:Ie,rootClassName:Be,style:Te,size:Ue,locale:je,responsive:x,showSizeChanger:ne,selectComponentClass:Ce,pageSizeOptions:De}=i,S=y(i,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:X}=(0,B.Z)(x),[,U]=(0,ye.ZP)(),{getPrefixCls:me,direction:ze,showSizeChanger:Ke,className:ut,style:pt}=(0,W.dj)("pagination"),tt=me("pagination",Me),[mt,ke,rt]=r(tt),ot=(0,c.Z)(Ue),xt=ot==="small"||!!(X&&!ot&&x),[gt]=(0,oe.Z)("Pagination",z.Z),Pt=Object.assign(Object.assign({},gt),je),[Mt,Gt]=K(ne),[rn,Ht]=K(Ke),At=Mt!=null?Mt:rn,vn=Gt!=null?Gt:Ht,Bt=Ce||G.default,mn=e.useMemo(()=>De?De.map(R=>Number(R)):void 0,[De]),pn=R=>{var $;const{disabled:He,size:Pe,onSizeChange:Ae,"aria-label":qe,className:Fe,options:at}=R,{className:Ct,onChange:bt}=vn||{},vt=($=at.find(zt=>String(zt.value)===String(Pe)))===null||$===void 0?void 0:$.value;return e.createElement(Bt,Object.assign({disabled:He,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:zt=>zt.parentNode,"aria-label":qe,options:at},vn,{value:vt,onChange:(zt,Kt)=>{Ae==null||Ae(zt),bt==null||bt(zt,Kt)},size:xt?"small":"middle",className:I()(Fe,Ct)}))},en=e.useMemo(()=>{const R=e.createElement("span",{className:`${tt}-item-ellipsis`},"\u2022\u2022\u2022"),$=e.createElement("button",{className:`${tt}-item-link`,type:"button",tabIndex:-1},ze==="rtl"?e.createElement(J.Z,null):e.createElement(n.Z,null)),He=e.createElement("button",{className:`${tt}-item-link`,type:"button",tabIndex:-1},ze==="rtl"?e.createElement(n.Z,null):e.createElement(J.Z,null)),Pe=e.createElement("a",{className:`${tt}-item-link`},e.createElement("div",{className:`${tt}-item-container`},ze==="rtl"?e.createElement(F.Z,{className:`${tt}-item-link-icon`}):e.createElement(D,{className:`${tt}-item-link-icon`}),R)),Ae=e.createElement("a",{className:`${tt}-item-link`},e.createElement("div",{className:`${tt}-item-container`},ze==="rtl"?e.createElement(D,{className:`${tt}-item-link-icon`}):e.createElement(F.Z,{className:`${tt}-item-link-icon`}),R));return{prevIcon:$,nextIcon:He,jumpPrevIcon:Pe,jumpNextIcon:Ae}},[ze,tt]),b=me("select",fe),w=I()({[`${tt}-${v}`]:!!v,[`${tt}-mini`]:xt,[`${tt}-rtl`]:ze==="rtl",[`${tt}-bordered`]:U.wireframe},ut,Ie,Be,ke,rt),it=Object.assign(Object.assign({},pt),Te);return mt(e.createElement(e.Fragment,null,U.wireframe&&e.createElement(V,{prefixCls:tt}),e.createElement(ie,Object.assign({},en,S,{style:it,prefixCls:tt,selectPrefixCls:b,className:w,locale:Pt,pageSizeOptions:mn,showSizeChanger:At,sizeChangerRender:pn}))))},q=L},89787:function(Yt,Ge,t){t.d(Ge,{Z:function(){return je}});var e=t(59301),m=t(17835),p=t(29679),Q=t(40001),N=t(19248),P=t(99267),g=t(92310),D=t.n(g),F=t(2738),n=t(48755),J=t(54476),O=t(33885),I=t(75931),Se={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ne=function(){var ne=(0,e.useRef)([]),Ce=(0,e.useRef)(null);return(0,e.useEffect)(function(){var De=Date.now(),S=!1;ne.current.forEach(function(X){if(X){S=!0;var U=X.style;U.transitionDuration=".3s, .3s, .3s, .06s",Ce.current&&De-Ce.current<100&&(U.transitionDuration="0s, 0s")}}),S&&(Ce.current=Date.now())}),ne.current},ge=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],se=function(ne){var Ce=(0,O.Z)((0,O.Z)({},Se),ne),De=Ce.className,S=Ce.percent,X=Ce.prefixCls,U=Ce.strokeColor,me=Ce.strokeLinecap,ze=Ce.strokeWidth,Ke=Ce.style,ut=Ce.trailColor,pt=Ce.trailWidth,tt=Ce.transition,mt=(0,I.Z)(Ce,ge);delete mt.gapPosition;var ke=Array.isArray(S)?S:[S],rt=Array.isArray(U)?U:[U],ot=Ne(),xt=ze/2,gt=100-ze/2,Pt="M ".concat(me==="round"?xt:0,",").concat(xt,` - L `).concat(me==="round"?gt:100,",").concat(xt),Mt="0 0 100 ".concat(ze),Gt=0;return e.createElement("svg",(0,J.Z)({className:D()("".concat(X,"-line"),De),viewBox:Mt,preserveAspectRatio:"none",style:Ke},mt),e.createElement("path",{className:"".concat(X,"-line-trail"),d:Pt,strokeLinecap:me,stroke:ut,strokeWidth:pt||ze,fillOpacity:"0"}),ke.map(function(rn,Ht){var At=1;switch(me){case"round":At=1-ze/100;break;case"square":At=1-ze/2/100;break;default:At=1;break}var vn={strokeDasharray:"".concat(rn*At,"px, 100px"),strokeDashoffset:"-".concat(Gt,"px"),transition:tt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bt=rt[Ht]||rt[rt.length-1];return Gt+=rn,e.createElement("path",{key:Ht,className:"".concat(X,"-line-path"),d:Pt,strokeLinecap:me,stroke:Bt,strokeWidth:ze,fillOpacity:"0",ref:function(pn){ot[Ht]=pn},style:vn})}))},ve=se,h=t(76190),de=t(42978),s=t(47273),f=0,Y=(0,s.Z)();function ee(){var x;return Y?(x=f,f+=1):x="TEST_OR_SSR",x}var te=function(x){var ne=e.useState(),Ce=(0,de.Z)(ne,2),De=Ce[0],S=Ce[1];return e.useEffect(function(){S("rc_progress_".concat(ee()))},[]),x||De},Ve=function(ne){var Ce=ne.bg,De=ne.children;return e.createElement("div",{style:{width:"100%",height:"100%",background:Ce}},De)};function we(x,ne){return Object.keys(x).map(function(Ce){var De=parseFloat(Ce),S="".concat(Math.floor(De*ne),"%");return"".concat(x[Ce]," ").concat(S)})}var k=e.forwardRef(function(x,ne){var Ce=x.prefixCls,De=x.color,S=x.gradientId,X=x.radius,U=x.style,me=x.ptg,ze=x.strokeLinecap,Ke=x.strokeWidth,ut=x.size,pt=x.gapDegree,tt=De&&(0,h.Z)(De)==="object",mt=tt?"#FFF":void 0,ke=ut/2,rt=e.createElement("circle",{className:"".concat(Ce,"-circle-path"),r:X,cx:ke,cy:ke,stroke:mt,strokeLinecap:ze,strokeWidth:Ke,opacity:me===0?0:1,style:U,ref:ne});if(!tt)return rt;var ot="".concat(S,"-conic"),xt=pt?"".concat(180+pt/2,"deg"):"0deg",gt=we(De,(360-pt)/360),Pt=we(De,1),Mt="conic-gradient(from ".concat(xt,", ").concat(gt.join(", "),")"),Gt="linear-gradient(to ".concat(pt?"bottom":"top",", ").concat(Pt.join(", "),")");return e.createElement(e.Fragment,null,e.createElement("mask",{id:ot},rt),e.createElement("foreignObject",{x:0,y:0,width:ut,height:ut,mask:"url(#".concat(ot,")")},e.createElement(Ve,{bg:Gt},e.createElement(Ve,{bg:Mt}))))}),Oe=k,ae=100,C=function(ne,Ce,De,S,X,U,me,ze,Ke,ut){var pt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,tt=De/100*360*((360-U)/360),mt=U===0?0:{bottom:0,top:180,left:90,right:-90}[me],ke=(100-S)/100*Ce;Ke==="round"&&S!==100&&(ke+=ut/2,ke>=Ce&&(ke=Ce-.01));var rt=ae/2;return{stroke:typeof ze=="string"?ze:void 0,strokeDasharray:"".concat(Ce,"px ").concat(ne),strokeDashoffset:ke+pt,transform:"rotate(".concat(X+tt+mt,"deg)"),transformOrigin:"".concat(rt,"px ").concat(rt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},l=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ie(x){var ne=x!=null?x:[];return Array.isArray(ne)?ne:[ne]}var z=function(ne){var Ce=(0,O.Z)((0,O.Z)({},Se),ne),De=Ce.id,S=Ce.prefixCls,X=Ce.steps,U=Ce.strokeWidth,me=Ce.trailWidth,ze=Ce.gapDegree,Ke=ze===void 0?0:ze,ut=Ce.gapPosition,pt=Ce.trailColor,tt=Ce.strokeLinecap,mt=Ce.style,ke=Ce.className,rt=Ce.strokeColor,ot=Ce.percent,xt=(0,I.Z)(Ce,l),gt=ae/2,Pt=te(De),Mt="".concat(Pt,"-gradient"),Gt=gt-U/2,rn=Math.PI*2*Gt,Ht=Ke>0?90+Ke/2:-90,At=rn*((360-Ke)/360),vn=(0,h.Z)(X)==="object"?X:{count:X,gap:2},Bt=vn.count,mn=vn.gap,pn=ie(ot),en=ie(rt),b=en.find(function(Ae){return Ae&&(0,h.Z)(Ae)==="object"}),w=b&&(0,h.Z)(b)==="object",it=w?"butt":tt,R=C(rn,At,0,100,Ht,Ke,ut,pt,it,U),$=Ne(),He=function(){var qe=0;return pn.map(function(Fe,at){var Ct=en[at]||en[en.length-1],bt=C(rn,At,qe,Fe,Ht,Ke,ut,Ct,it,U);return qe+=Fe,e.createElement(Oe,{key:at,color:Ct,ptg:Fe,radius:Gt,prefixCls:S,gradientId:Mt,style:bt,strokeLinecap:it,strokeWidth:U,gapDegree:Ke,ref:function(zt){$[at]=zt},size:ae})}).reverse()},Pe=function(){var qe=Math.round(Bt*(pn[0]/100)),Fe=100/Bt,at=0;return new Array(Bt).fill(null).map(function(Ct,bt){var vt=bt<=qe-1?en[0]:pt,zt=vt&&(0,h.Z)(vt)==="object"?"url(#".concat(Mt,")"):void 0,Kt=C(rn,At,at,Fe,Ht,Ke,ut,vt,"butt",U,mn);return at+=(At-Kt.strokeDashoffset+mn)*100/At,e.createElement("circle",{key:bt,className:"".concat(S,"-circle-path"),r:Gt,cx:gt,cy:gt,stroke:zt,strokeWidth:U,opacity:1,style:Kt,ref:function(ue){$[bt]=ue}})})};return e.createElement("svg",(0,J.Z)({className:D()("".concat(S,"-circle"),ke),viewBox:"0 0 ".concat(ae," ").concat(ae),style:mt,id:De,role:"presentation"},xt),!Bt&&e.createElement("circle",{className:"".concat(S,"-circle-trail"),r:Gt,cx:gt,cy:gt,stroke:pt,strokeLinecap:it,strokeWidth:me||U,style:R}),Bt?Pe():He())},W=z,c={Line:ve,Circle:W},B=t(25399),oe=t(68361);function G(x){return!x||x<0?0:x>100?100:x}function ye(x){let{success:ne,successPercent:Ce}=x,De=Ce;return ne&&"progress"in ne&&(De=ne.progress),ne&&"percent"in ne&&(De=ne.percent),De}const et=x=>{let{percent:ne,success:Ce,successPercent:De}=x;const S=G(ye({success:Ce,successPercent:De}));return[S,G(G(ne)-S)]},_=x=>{let{success:ne={},strokeColor:Ce}=x;const{strokeColor:De}=ne;return[De||oe.presetPrimaryColors.green,Ce||null]},xe=(x,ne,Ce)=>{var De,S,X,U;let me=-1,ze=-1;if(ne==="step"){const Ke=Ce.steps,ut=Ce.strokeWidth;typeof x=="string"||typeof x=="undefined"?(me=x==="small"?2:14,ze=ut!=null?ut:8):typeof x=="number"?[me,ze]=[x,x]:[me=14,ze=8]=Array.isArray(x)?x:[x.width,x.height],me*=Ke}else if(ne==="line"){const Ke=Ce==null?void 0:Ce.strokeWidth;typeof x=="string"||typeof x=="undefined"?ze=Ke||(x==="small"?6:8):typeof x=="number"?[me,ze]=[x,x]:[me=-1,ze=8]=Array.isArray(x)?x:[x.width,x.height]}else(ne==="circle"||ne==="dashboard")&&(typeof x=="string"||typeof x=="undefined"?[me,ze]=x==="small"?[60,60]:[120,120]:typeof x=="number"?[me,ze]=[x,x]:Array.isArray(x)&&(me=(S=(De=x[0])!==null&&De!==void 0?De:x[1])!==null&&S!==void 0?S:120,ze=(U=(X=x[0])!==null&&X!==void 0?X:x[1])!==null&&U!==void 0?U:120));return[me,ze]},pe=3,Xe=x=>pe/x*100;var Ee=x=>{const{prefixCls:ne,trailColor:Ce=null,strokeLinecap:De="round",gapPosition:S,gapDegree:X,width:U=120,type:me,children:ze,success:Ke,size:ut=U,steps:pt}=x,[tt,mt]=xe(ut,"circle");let{strokeWidth:ke}=x;ke===void 0&&(ke=Math.max(Xe(tt),6));const rt={width:tt,height:mt,fontSize:tt*.15+6},ot=e.useMemo(()=>{if(X||X===0)return X;if(me==="dashboard")return 75},[X,me]),xt=et(x),gt=S||me==="dashboard"&&"bottom"||void 0,Pt=Object.prototype.toString.call(x.strokeColor)==="[object Object]",Mt=_({success:Ke,strokeColor:x.strokeColor}),Gt=D()(`${ne}-inner`,{[`${ne}-circle-gradient`]:Pt}),rn=e.createElement(W,{steps:pt,percent:pt?xt[1]:xt,strokeWidth:ke,trailWidth:ke,strokeColor:pt?Mt[1]:Mt,strokeLinecap:De,trailColor:Ce,prefixCls:ne,gapDegree:ot,gapPosition:gt}),Ht=tt<=20,At=e.createElement("div",{className:Gt,style:rt},rn,!Ht&&ze);return Ht?e.createElement(B.Z,{title:ze},At):At},be=t(36237),ct=t(63356),Le=t(16931),re=t(51636);const T="--progress-line-stroke-color",H="--progress-percent",d=x=>{const ne=x?"100%":"-100%";return new be.Keyframes(`antProgress${x?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ne}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ne}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=x=>{const{componentCls:ne,iconCls:Ce}=x;return{[ne]:Object.assign(Object.assign({},(0,ct.Wf)(x)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:x.fontSize},[`${ne}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ne}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:x.remainingColor,borderRadius:x.lineBorderRadius},[`${ne}-inner:not(${ne}-circle-gradient)`]:{[`${ne}-circle-path`]:{stroke:x.defaultColor}},[`${ne}-success-bg, ${ne}-bg`]:{position:"relative",background:x.defaultColor,borderRadius:x.lineBorderRadius,transition:`all ${x.motionDurationSlow} ${x.motionEaseInOutCirc}`},[`${ne}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ne}-text`]:{width:"max-content",marginInlineStart:0,marginTop:x.marginXXS}},[`${ne}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${T})`]},height:"100%",width:`calc(1 / var(${H}) * 100%)`,display:"block"},[`&${ne}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ne}-text-inner`]:{color:x.colorWhite,[`&${ne}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ne}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:x.colorSuccess},[`${ne}-text`]:{display:"inline-block",marginInlineStart:x.marginXS,color:x.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ce]:{fontSize:x.fontSize},[`&${ne}-text-outer`]:{width:"max-content"},[`&${ne}-text-outer${ne}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:x.marginXS}},[`${ne}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,be.unit)(x.paddingXXS)}`,[`&${ne}-text-start`]:{justifyContent:"start"},[`&${ne}-text-end`]:{justifyContent:"end"}},[`&${ne}-status-active`]:{[`${ne}-bg::before`]:{position:"absolute",inset:0,backgroundColor:x.colorBgContainer,borderRadius:x.lineBorderRadius,opacity:0,animationName:d(),animationDuration:x.progressActiveMotionDuration,animationTimingFunction:x.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ne}-rtl${ne}-status-active`]:{[`${ne}-bg::before`]:{animationName:d(!0)}},[`&${ne}-status-exception`]:{[`${ne}-bg`]:{backgroundColor:x.colorError},[`${ne}-text`]:{color:x.colorError}},[`&${ne}-status-exception ${ne}-inner:not(${ne}-circle-gradient)`]:{[`${ne}-circle-path`]:{stroke:x.colorError}},[`&${ne}-status-success`]:{[`${ne}-bg`]:{backgroundColor:x.colorSuccess},[`${ne}-text`]:{color:x.colorSuccess}},[`&${ne}-status-success ${ne}-inner:not(${ne}-circle-gradient)`]:{[`${ne}-circle-path`]:{stroke:x.colorSuccess}}})}},Z=x=>{const{componentCls:ne,iconCls:Ce}=x;return{[ne]:{[`${ne}-circle-trail`]:{stroke:x.remainingColor},[`&${ne}-circle ${ne}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ne}-circle ${ne}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:x.circleTextColor,fontSize:x.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ce]:{fontSize:x.circleIconFontSize}},[`${ne}-circle&-status-exception`]:{[`${ne}-text`]:{color:x.colorError}},[`${ne}-circle&-status-success`]:{[`${ne}-text`]:{color:x.colorSuccess}}},[`${ne}-inline-circle`]:{lineHeight:1,[`${ne}-inner`]:{verticalAlign:"bottom"}}}},r=x=>{const{componentCls:ne}=x;return{[ne]:{[`${ne}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:x.progressStepMinWidth,marginInlineEnd:x.progressStepMarginInlineEnd,backgroundColor:x.remainingColor,transition:`all ${x.motionDurationSlow}`,"&-active":{backgroundColor:x.defaultColor}}}}}},u=x=>{const{componentCls:ne,iconCls:Ce}=x;return{[ne]:{[`${ne}-small&-line, ${ne}-small&-line ${ne}-text ${Ce}`]:{fontSize:x.fontSizeSM}}}},V=x=>({circleTextColor:x.colorText,defaultColor:x.colorInfo,remainingColor:x.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${x.fontSize/x.fontSizeSM}em`});var K=(0,Le.I$)("Progress",x=>{const ne=x.calc(x.marginXXS).div(2).equal(),Ce=(0,re.mergeToken)(x,{progressStepMarginInlineEnd:ne,progressStepMinWidth:ne,progressActiveMotionDuration:"2.4s"});return[ce(Ce),Z(Ce),r(Ce),u(Ce)]},V),y=function(x,ne){var Ce={};for(var De in x)Object.prototype.hasOwnProperty.call(x,De)&&ne.indexOf(De)<0&&(Ce[De]=x[De]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,De=Object.getOwnPropertySymbols(x);S{let ne=[];return Object.keys(x).forEach(Ce=>{const De=parseFloat(Ce.replace(/%/g,""));Number.isNaN(De)||ne.push({key:De,value:x[Ce]})}),ne=ne.sort((Ce,De)=>Ce.key-De.key),ne.map(Ce=>{let{key:De,value:S}=Ce;return`${S} ${De}%`}).join(", ")},L=(x,ne)=>{const{from:Ce=oe.presetPrimaryColors.blue,to:De=oe.presetPrimaryColors.blue,direction:S=ne==="rtl"?"to left":"to right"}=x,X=y(x,["from","to","direction"]);if(Object.keys(X).length!==0){const me=A(X),ze=`linear-gradient(${S}, ${me})`;return{background:ze,[T]:ze}}const U=`linear-gradient(${S}, ${Ce}, ${De})`;return{background:U,[T]:U}};var i=x=>{const{prefixCls:ne,direction:Ce,percent:De,size:S,strokeWidth:X,strokeColor:U,strokeLinecap:me="round",children:ze,trailColor:Ke=null,percentPosition:ut,success:pt}=x,{align:tt,type:mt}=ut,ke=U&&typeof U!="string"?L(U,Ce):{[T]:U,background:U},rt=me==="square"||me==="butt"?0:void 0,ot=S!=null?S:[-1,X||(S==="small"?6:8)],[xt,gt]=xe(ot,"line",{strokeWidth:X}),Pt={backgroundColor:Ke||void 0,borderRadius:rt},Mt=Object.assign(Object.assign({width:`${G(De)}%`,height:gt,borderRadius:rt},ke),{[H]:G(De)/100}),Gt=ye(x),rn={width:`${G(Gt)}%`,height:gt,borderRadius:rt,backgroundColor:pt==null?void 0:pt.strokeColor},Ht={width:xt<0?"100%":xt},At=e.createElement("div",{className:`${ne}-inner`,style:Pt},e.createElement("div",{className:D()(`${ne}-bg`,`${ne}-bg-${mt}`),style:Mt},mt==="inner"&&ze),Gt!==void 0&&e.createElement("div",{className:`${ne}-success-bg`,style:rn})),vn=mt==="outer"&&tt==="start",Bt=mt==="outer"&&tt==="end";return mt==="outer"&&tt==="center"?e.createElement("div",{className:`${ne}-layout-bottom`},At,ze):e.createElement("div",{className:`${ne}-outer`,style:Ht},vn&&ze,At,Bt&&ze)},Me=x=>{const{size:ne,steps:Ce,rounding:De=Math.round,percent:S=0,strokeWidth:X=8,strokeColor:U,trailColor:me=null,prefixCls:ze,children:Ke}=x,ut=De(Ce*(S/100)),pt=ne==="small"?2:14,tt=ne!=null?ne:[pt,X],[mt,ke]=xe(tt,"step",{steps:Ce,strokeWidth:X}),rt=mt/Ce,ot=Array.from({length:Ce});for(let xt=0;xt{const{prefixCls:Ce,className:De,rootClassName:S,steps:X,strokeColor:U,percent:me=0,size:ze="default",showInfo:Ke=!0,type:ut="line",status:pt,format:tt,style:mt,percentPosition:ke={}}=x,rt=fe(x,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:ot="end",type:xt="outer"}=ke,gt=Array.isArray(U)?U[0]:U,Pt=typeof U=="string"||Array.isArray(U)?U:void 0,Mt=e.useMemo(()=>{if(gt){const He=typeof gt=="string"?gt:Object.values(gt)[0];return new m.FastColor(He).isLight()}return!1},[U]),Gt=e.useMemo(()=>{var He,Pe;const Ae=ye(x);return parseInt(Ae!==void 0?(He=Ae!=null?Ae:0)===null||He===void 0?void 0:He.toString():(Pe=me!=null?me:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[me,x.success,x.successPercent]),rn=e.useMemo(()=>!Be.includes(pt)&&Gt>=100?"success":pt||"normal",[pt,Gt]),{getPrefixCls:Ht,direction:At,progress:vn}=e.useContext(n.E_),Bt=Ht("progress",Ce),[mn,pn,en]=K(Bt),b=ut==="line",w=b&&!X,it=e.useMemo(()=>{if(!Ke)return null;const He=ye(x);let Pe;const Ae=tt||(Fe=>`${Fe}%`),qe=b&&Mt&&xt==="inner";return xt==="inner"||tt||rn!=="exception"&&rn!=="success"?Pe=Ae(G(me),G(He)):rn==="exception"?Pe=b?e.createElement(N.Z,null):e.createElement(P.Z,null):rn==="success"&&(Pe=b?e.createElement(p.Z,null):e.createElement(Q.Z,null)),e.createElement("span",{className:D()(`${Bt}-text`,{[`${Bt}-text-bright`]:qe,[`${Bt}-text-${ot}`]:w,[`${Bt}-text-${xt}`]:w}),title:typeof Pe=="string"?Pe:void 0},Pe)},[Ke,me,Gt,rn,ut,Bt,tt]);let R;ut==="line"?R=X?e.createElement(Me,Object.assign({},x,{strokeColor:Pt,prefixCls:Bt,steps:typeof X=="object"?X.count:X}),it):e.createElement(i,Object.assign({},x,{strokeColor:gt,prefixCls:Bt,direction:At,percentPosition:{align:ot,type:xt}}),it):(ut==="circle"||ut==="dashboard")&&(R=e.createElement(Ee,Object.assign({},x,{strokeColor:gt,prefixCls:Bt,progressStatus:rn}),it));const $=D()(Bt,`${Bt}-status-${rn}`,{[`${Bt}-${ut==="dashboard"&&"circle"||ut}`]:ut!=="line",[`${Bt}-inline-circle`]:ut==="circle"&&xe(ze,"circle")[0]<=20,[`${Bt}-line`]:w,[`${Bt}-line-align-${ot}`]:w,[`${Bt}-line-position-${xt}`]:w,[`${Bt}-steps`]:X,[`${Bt}-show-info`]:Ke,[`${Bt}-${ze}`]:typeof ze=="string",[`${Bt}-rtl`]:At==="rtl"},vn==null?void 0:vn.className,De,S,pn,en);return mn(e.createElement("div",Object.assign({ref:ne,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),mt),className:$,role:"progressbar","aria-valuenow":Gt,"aria-valuemin":0,"aria-valuemax":100},(0,F.Z)(rt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))}),je=Ue},47889:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return et}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(18929),N=t(26112),P=t(48755),g=t(83397),D=t(31756);const F=e.createContext(null),n=F.Provider;var J=F;const O=e.createContext(null),I=O.Provider;var Se=t(16632),Ne=t(8654),ge=t(12919),se=t(63872),ve=t(74632),h=t(2171),de=t(56553),s=t(36237),f=t(63356),Y=t(16931),ee=t(51636);const te=_=>{const{componentCls:xe,antCls:pe}=_,Xe=`${xe}-group`;return{[Xe]:Object.assign(Object.assign({},(0,f.Wf)(_)),{display:"inline-block",fontSize:0,[`&${Xe}-rtl`]:{direction:"rtl"},[`&${Xe}-block`]:{display:"flex"},[`${pe}-badge ${pe}-badge-count`]:{zIndex:1},[`> ${pe}-badge:not(:first-child) > ${pe}-button-wrapper`]:{borderInlineStart:"none"}})}},Ve=_=>{const{componentCls:xe,wrapperMarginInlineEnd:pe,colorPrimary:Xe,radioSize:M,motionDurationSlow:Ee,motionDurationMid:be,motionEaseInOutCirc:ct,colorBgContainer:Le,colorBorder:re,lineWidth:T,colorBgContainerDisabled:H,colorTextDisabled:d,paddingXS:ce,dotColorDisabled:Z,lineType:r,radioColor:u,radioBgColor:V,calc:K}=_,y=`${xe}-inner`,L=K(M).sub(K(4).mul(2)),q=K(1).mul(M).equal({unit:!0});return{[`${xe}-wrapper`]:Object.assign(Object.assign({},(0,f.Wf)(_)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:pe,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${xe}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:_.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${xe}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,s.unit)(T)} ${r} ${Xe}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[xe]:Object.assign(Object.assign({},(0,f.Wf)(_)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${xe}-wrapper:hover &, - &:hover ${y}`]:{borderColor:Xe},[`${xe}-input:focus-visible + ${y}`]:Object.assign({},(0,f.oN)(_)),[`${xe}:hover::after, ${xe}-wrapper:hover &::after`]:{visibility:"visible"},[`${xe}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:q,height:q,marginBlockStart:K(1).mul(M).div(-2).equal({unit:!0}),marginInlineStart:K(1).mul(M).div(-2).equal({unit:!0}),backgroundColor:u,borderBlockStart:0,borderInlineStart:0,borderRadius:q,transform:"scale(0)",opacity:0,transition:`all ${Ee} ${ct}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:q,height:q,backgroundColor:Le,borderColor:re,borderStyle:"solid",borderWidth:T,borderRadius:"50%",transition:`all ${be}`},[`${xe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${xe}-checked`]:{[y]:{borderColor:Xe,backgroundColor:V,"&::after":{transform:`scale(${_.calc(_.dotSize).div(M).equal()})`,opacity:1,transition:`all ${Ee} ${ct}`}}},[`${xe}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:H,borderColor:re,cursor:"not-allowed","&::after":{backgroundColor:Z}},[`${xe}-input`]:{cursor:"not-allowed"},[`${xe}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${xe}-checked`]:{[y]:{"&::after":{transform:`scale(${K(L).div(M).equal()})`}}}},[`span${xe} + *`]:{paddingInlineStart:ce,paddingInlineEnd:ce}})}},we=_=>{const{buttonColor:xe,controlHeight:pe,componentCls:Xe,lineWidth:M,lineType:Ee,colorBorder:be,motionDurationSlow:ct,motionDurationMid:Le,buttonPaddingInline:re,fontSize:T,buttonBg:H,fontSizeLG:d,controlHeightLG:ce,controlHeightSM:Z,paddingXS:r,borderRadius:u,borderRadiusSM:V,borderRadiusLG:K,buttonCheckedBg:y,buttonSolidCheckedColor:A,colorTextDisabled:L,colorBgContainerDisabled:q,buttonCheckedBgDisabled:i,buttonCheckedColorDisabled:v,colorPrimary:Me,colorPrimaryHover:fe,colorPrimaryActive:Ie,buttonSolidCheckedBg:Be,buttonSolidCheckedHoverBg:Te,buttonSolidCheckedActiveBg:Ue,calc:je}=_;return{[`${Xe}-button-wrapper`]:{position:"relative",display:"inline-block",height:pe,margin:0,paddingInline:re,paddingBlock:0,color:xe,fontSize:T,lineHeight:(0,s.unit)(je(pe).sub(je(M).mul(2)).equal()),background:H,border:`${(0,s.unit)(M)} ${Ee} ${be}`,borderBlockStartWidth:je(M).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:M,cursor:"pointer",transition:[`color ${Le}`,`background ${Le}`,`box-shadow ${Le}`].join(","),a:{color:xe},[`> ${Xe}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:je(M).mul(-1).equal(),insetInlineStart:je(M).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:M,paddingInline:0,backgroundColor:be,transition:`background-color ${ct}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,s.unit)(M)} ${Ee} ${be}`,borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u},"&:first-child:last-child":{borderRadius:u},[`${Xe}-group-large &`]:{height:ce,fontSize:d,lineHeight:(0,s.unit)(je(ce).sub(je(M).mul(2)).equal()),"&:first-child":{borderStartStartRadius:K,borderEndStartRadius:K},"&:last-child":{borderStartEndRadius:K,borderEndEndRadius:K}},[`${Xe}-group-small &`]:{height:Z,paddingInline:je(r).sub(M).equal(),paddingBlock:0,lineHeight:(0,s.unit)(je(Z).sub(je(M).mul(2)).equal()),"&:first-child":{borderStartStartRadius:V,borderEndStartRadius:V},"&:last-child":{borderStartEndRadius:V,borderEndEndRadius:V}},"&:hover":{position:"relative",color:Me},"&:has(:focus-visible)":Object.assign({},(0,f.oN)(_)),[`${Xe}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Xe}-button-wrapper-disabled)`]:{zIndex:1,color:Me,background:y,borderColor:Me,"&::before":{backgroundColor:Me},"&:first-child":{borderColor:Me},"&:hover":{color:fe,borderColor:fe,"&::before":{backgroundColor:fe}},"&:active":{color:Ie,borderColor:Ie,"&::before":{backgroundColor:Ie}}},[`${Xe}-group-solid &-checked:not(${Xe}-button-wrapper-disabled)`]:{color:A,background:Be,borderColor:Be,"&:hover":{color:A,background:Te,borderColor:Te},"&:active":{color:A,background:Ue,borderColor:Ue}},"&-disabled":{color:L,backgroundColor:q,borderColor:be,cursor:"not-allowed","&:first-child, &:hover":{color:L,backgroundColor:q,borderColor:be}},[`&-disabled${Xe}-button-wrapper-checked`]:{color:v,backgroundColor:i,borderColor:be,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},k=_=>{const{wireframe:xe,padding:pe,marginXS:Xe,lineWidth:M,fontSizeLG:Ee,colorText:be,colorBgContainer:ct,colorTextDisabled:Le,controlItemBgActiveDisabled:re,colorTextLightSolid:T,colorPrimary:H,colorPrimaryHover:d,colorPrimaryActive:ce,colorWhite:Z}=_,r=4,u=Ee,V=xe?u-r*2:u-(r+M)*2;return{radioSize:u,dotSize:V,dotColorDisabled:Le,buttonSolidCheckedColor:T,buttonSolidCheckedBg:H,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:ce,buttonBg:ct,buttonCheckedBg:ct,buttonColor:be,buttonCheckedBgDisabled:re,buttonCheckedColorDisabled:Le,buttonPaddingInline:pe-M,wrapperMarginInlineEnd:Xe,radioColor:xe?H:Z,radioBgColor:xe?ct:H}};var Oe=(0,Y.I$)("Radio",_=>{const{controlOutline:xe,controlOutlineWidth:pe}=_,Xe=`0 0 0 ${(0,s.unit)(pe)} ${xe}`,M=Xe,Ee=(0,ee.mergeToken)(_,{radioFocusShadow:Xe,radioButtonFocusShadow:M});return[te(Ee),Ve(Ee),we(Ee)]},k,{unitless:{radioSize:!0,dotSize:!0}}),ae=function(_,xe){var pe={};for(var Xe in _)Object.prototype.hasOwnProperty.call(_,Xe)&&xe.indexOf(Xe)<0&&(pe[Xe]=_[Xe]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,Xe=Object.getOwnPropertySymbols(_);M{var pe,Xe;const M=e.useContext(J),Ee=e.useContext(O),{getPrefixCls:be,direction:ct,radio:Le}=e.useContext(P.E_),re=e.useRef(null),T=(0,Ne.sQ)(xe,re),{isFormItemInput:H}=e.useContext(de.aM),d=x=>{var ne,Ce;(ne=_.onChange)===null||ne===void 0||ne.call(_,x),(Ce=M==null?void 0:M.onChange)===null||Ce===void 0||Ce.call(M,x)},{prefixCls:ce,className:Z,rootClassName:r,children:u,style:V,title:K}=_,y=ae(_,["prefixCls","className","rootClassName","children","style","title"]),A=be("radio",ce),L=((M==null?void 0:M.optionType)||Ee)==="button",q=L?`${A}-button`:A,i=(0,g.Z)(A),[v,Me,fe]=Oe(A,i),Ie=Object.assign({},y),Be=e.useContext(h.Z);M&&(Ie.name=M.name,Ie.onChange=d,Ie.checked=_.value===M.value,Ie.disabled=(pe=Ie.disabled)!==null&&pe!==void 0?pe:M.disabled),Ie.disabled=(Xe=Ie.disabled)!==null&&Xe!==void 0?Xe:Be;const Te=p()(`${q}-wrapper`,{[`${q}-wrapper-checked`]:Ie.checked,[`${q}-wrapper-disabled`]:Ie.disabled,[`${q}-wrapper-rtl`]:ct==="rtl",[`${q}-wrapper-in-form-item`]:H,[`${q}-wrapper-block`]:!!(M!=null&&M.block)},Le==null?void 0:Le.className,Z,r,Me,fe,i),[Ue,je]=(0,ve.Z)(Ie.onClick);return v(e.createElement(ge.Z,{component:"Radio",disabled:Ie.disabled},e.createElement("label",{className:Te,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),V),onMouseEnter:_.onMouseEnter,onMouseLeave:_.onMouseLeave,title:K,onClick:Ue},e.createElement(Se.Z,Object.assign({},Ie,{className:p()(Ie.className,{[se.A]:!L}),type:"radio",prefixCls:q,ref:T,onClick:je})),u!==void 0?e.createElement("span",{className:`${q}-label`},u):null)))};var ie=e.forwardRef(C),z=t(80402);const W=e.forwardRef((_,xe)=>{const{getPrefixCls:pe,direction:Xe}=e.useContext(P.E_),M=(0,z.Z)(),{prefixCls:Ee,className:be,rootClassName:ct,options:Le,buttonStyle:re="outline",disabled:T,children:H,size:d,style:ce,id:Z,optionType:r,name:u=M,defaultValue:V,value:K,block:y=!1,onChange:A,onMouseEnter:L,onMouseLeave:q,onFocus:i,onBlur:v}=_,[Me,fe]=(0,Q.Z)(V,{value:K}),Ie=e.useCallback(U=>{const me=Me,ze=U.target.value;"value"in _||fe(ze),ze!==me&&(A==null||A(U))},[Me,fe,A]),Be=pe("radio",Ee),Te=`${Be}-group`,Ue=(0,g.Z)(Be),[je,x,ne]=Oe(Be,Ue);let Ce=H;Le&&Le.length>0&&(Ce=Le.map(U=>typeof U=="string"||typeof U=="number"?e.createElement(ie,{key:U.toString(),prefixCls:Be,disabled:T,value:U,checked:Me===U},U):e.createElement(ie,{key:`radio-group-value-options-${U.value}`,prefixCls:Be,disabled:U.disabled||T,value:U.value,checked:Me===U.value,title:U.title,style:U.style,id:U.id,required:U.required},U.label)));const De=(0,D.Z)(d),S=p()(Te,`${Te}-${re}`,{[`${Te}-${De}`]:De,[`${Te}-rtl`]:Xe==="rtl",[`${Te}-block`]:y},be,ct,x,ne,Ue),X=e.useMemo(()=>({onChange:Ie,value:Me,disabled:T,name:u,optionType:r,block:y}),[Ie,Me,T,u,r,y]);return je(e.createElement("div",Object.assign({},(0,N.Z)(_,{aria:!0,data:!0}),{className:S,style:ce,onMouseEnter:L,onMouseLeave:q,onFocus:i,onBlur:v,id:Z,ref:xe}),e.createElement(n,{value:X},Ce)))});var c=e.memo(W),B=function(_,xe){var pe={};for(var Xe in _)Object.prototype.hasOwnProperty.call(_,Xe)&&xe.indexOf(Xe)<0&&(pe[Xe]=_[Xe]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,Xe=Object.getOwnPropertySymbols(_);M{const{getPrefixCls:pe}=e.useContext(P.E_),{prefixCls:Xe}=_,M=B(_,["prefixCls"]),Ee=pe("radio",Xe);return e.createElement(I,{value:"button"},e.createElement(ie,Object.assign({prefixCls:Ee},M,{type:"radio",ref:xe})))};var G=e.forwardRef(oe);const ye=ie;ye.Button=G,ye.Group=c,ye.__ANT_RADIO=!0;var et=ye},82326:function(Yt,Ge,t){var e=t(59301),m=t(92310),p=t.n(m),Q=t(37463),N=t(2738),P=t(75030),g=t(86641),D=t(45915),F=t(82855),n=t(48755),J=t(38406),O=t(2171),I=t(83397),Se=t(31756),Ne=t(56553),ge=t(24971),se=t(70045),ve=t(57700),h=t(1722),de=t(90376),s=t(68525),f=t(90005),Y=function(k,Oe){var ae={};for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&Oe.indexOf(C)<0&&(ae[C]=k[C]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,C=Object.getOwnPropertySymbols(k);l{var ae;const{prefixCls:C,bordered:l,className:ie,rootClassName:z,getPopupContainer:W,popupClassName:c,dropdownClassName:B,listHeight:oe=256,placement:G,listItemHeight:ye,size:et,disabled:_,notFoundContent:xe,status:pe,builtinPlacements:Xe,dropdownMatchSelectWidth:M,popupMatchSelectWidth:Ee,direction:be,style:ct,allowClear:Le,variant:re,dropdownStyle:T,transitionName:H,tagRender:d,maxCount:ce,prefix:Z}=k,r=Y(k,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:u,getPrefixCls:V,renderEmpty:K,direction:y,virtual:A,popupMatchSelectWidth:L,popupOverflow:q}=e.useContext(n.E_),i=(0,n.dj)("select"),[,v]=(0,ve.ZP)(),Me=ye!=null?ye:v==null?void 0:v.controlHeight,fe=V("select",C),Ie=V(),Be=be!=null?be:y,{compactSize:Te,compactItemClassnames:Ue}=(0,se.ri)(fe,Be),[je,x]=(0,ge.Z)("select",re,l),ne=(0,I.Z)(fe),[Ce,De,S]=(0,de.Z)(fe,ne),X=e.useMemo(()=>{const{mode:pn}=k;if(pn!=="combobox")return pn===ee?"combobox":pn},[k.mode]),U=X==="multiple"||X==="tags",me=(0,f.Z)(k.suffixIcon,k.showArrow),ze=(ae=Ee!=null?Ee:M)!==null&&ae!==void 0?ae:L,{status:Ke,hasFeedback:ut,isFormItemInput:pt,feedbackIcon:tt}=e.useContext(Ne.aM),mt=(0,F.F)(Ke,pe);let ke;xe!==void 0?ke=xe:X==="combobox"?ke=null:ke=(K==null?void 0:K("Select"))||e.createElement(J.Z,{componentName:"Select"});const{suffixIcon:rt,itemIcon:ot,removeIcon:xt,clearIcon:gt}=(0,s.Z)(Object.assign(Object.assign({},r),{multiple:U,hasFeedback:ut,feedbackIcon:tt,showSuffixIcon:me,prefixCls:fe,componentName:"Select"})),Pt=Le===!0?{clearIcon:gt}:Le,Mt=(0,N.Z)(r,["suffixIcon","itemIcon"]),Gt=p()(c||B,{[`${fe}-dropdown-${Be}`]:Be==="rtl"},z,S,ne,De),rn=(0,Se.Z)(pn=>{var en;return(en=et!=null?et:Te)!==null&&en!==void 0?en:pn}),Ht=e.useContext(O.Z),At=_!=null?_:Ht,vn=p()({[`${fe}-lg`]:rn==="large",[`${fe}-sm`]:rn==="small",[`${fe}-rtl`]:Be==="rtl",[`${fe}-${je}`]:x,[`${fe}-in-form-item`]:pt},(0,F.Z)(fe,mt,ut),Ue,i.className,ie,z,S,ne,De),Bt=e.useMemo(()=>G!==void 0?G:Be==="rtl"?"bottomRight":"bottomLeft",[G,Be]),[mn]=(0,P.Cn)("SelectLike",T==null?void 0:T.zIndex);return Ce(e.createElement(Q.ZP,Object.assign({ref:Oe,virtual:A,showSearch:i.showSearch},Mt,{style:Object.assign(Object.assign({},i.style),ct),dropdownMatchSelectWidth:ze,transitionName:(0,g.m)(Ie,"slide-up",H),builtinPlacements:(0,h.Z)(Xe,q),listHeight:oe,listItemHeight:Me,mode:X,prefixCls:fe,placement:Bt,direction:Be,prefix:Z,suffixIcon:rt,menuItemSelectedIcon:ot,removeIcon:xt,allowClear:Pt,notFoundContent:ke,className:vn,getPopupContainer:W||u,dropdownClassName:Gt,disabled:At,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:mn}),maxCount:U?ce:void 0,tagRender:U?d:void 0})))},Ve=e.forwardRef(te),we=(0,D.Z)(Ve,"dropdownAlign");Ve.SECRET_COMBOBOX_MODE_DO_NOT_USE=ee,Ve.Option=Q.Wx,Ve.OptGroup=Q.Xo,Ve._InternalPanelDoNotUseOrYouWillBeFired=we,Ge.default=Ve},1722:function(Yt,Ge){const t=m=>{const Q={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:m==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Q),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Q),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Q),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Q),{points:["br","tr"],offset:[0,-4]})}};function e(m,p){return m||t(p)}Ge.Z=e},90376:function(Yt,Ge,t){t.d(Ge,{Z:function(){return C}});var e=t(63356),m=t(56119),p=t(16931),Q=t(51636),N=t(46e3),P=t(93873);const g=l=>{const{optionHeight:ie,optionFontSize:z,optionLineHeight:W,optionPadding:c}=l;return{position:"relative",display:"block",minHeight:ie,padding:c,color:l.colorText,fontWeight:"normal",fontSize:z,lineHeight:W,boxSizing:"border-box"}};var F=l=>{const{antCls:ie,componentCls:z}=l,W=`${z}-item`,c=`&${ie}-slide-up-enter${ie}-slide-up-enter-active`,B=`&${ie}-slide-up-appear${ie}-slide-up-appear-active`,oe=`&${ie}-slide-up-leave${ie}-slide-up-leave-active`,G=`${z}-dropdown-placement-`,ye=`${W}-option-selected`;return[{[`${z}-dropdown`]:Object.assign(Object.assign({},(0,e.Wf)(l)),{position:"absolute",top:-9999,zIndex:l.zIndexPopup,boxSizing:"border-box",padding:l.paddingXXS,overflow:"hidden",fontSize:l.fontSize,fontVariant:"initial",backgroundColor:l.colorBgElevated,borderRadius:l.borderRadiusLG,outline:"none",boxShadow:l.boxShadowSecondary,[` - ${c}${G}bottomLeft, - ${B}${G}bottomLeft - `]:{animationName:N.fJ},[` - ${c}${G}topLeft, - ${B}${G}topLeft, - ${c}${G}topRight, - ${B}${G}topRight - `]:{animationName:N.Qt},[`${oe}${G}bottomLeft`]:{animationName:N.Uw},[` - ${oe}${G}topLeft, - ${oe}${G}topRight - `]:{animationName:N.ly},"&-hidden":{display:"none"},[W]:Object.assign(Object.assign({},g(l)),{cursor:"pointer",transition:`background ${l.motionDurationSlow} ease`,borderRadius:l.borderRadiusSM,"&-group":{color:l.colorTextDescription,fontSize:l.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},e.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${W}-option-disabled)`]:{backgroundColor:l.optionActiveBg},[`&-selected:not(${W}-option-disabled)`]:{color:l.optionSelectedColor,fontWeight:l.optionSelectedFontWeight,backgroundColor:l.optionSelectedBg,[`${W}-option-state`]:{color:l.colorPrimary}},"&-disabled":{[`&${W}-option-selected`]:{backgroundColor:l.colorBgContainerDisabled},color:l.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:l.calc(l.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},g(l)),{color:l.colorTextDisabled})}),[`${ye}:has(+ ${ye})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${ye}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,N.oN)(l,"slide-up"),(0,N.oN)(l,"slide-down"),(0,P.Fm)(l,"move-up"),(0,P.Fm)(l,"move-down")]},n=t(26743),J=t(36237);function O(l,ie){const{componentCls:z,inputPaddingHorizontalBase:W,borderRadius:c}=l,B=l.calc(l.controlHeight).sub(l.calc(l.lineWidth).mul(2)).equal(),oe=ie?`${z}-${ie}`:"";return{[`${z}-single${oe}`]:{fontSize:l.fontSize,height:l.controlHeight,[`${z}-selector`]:Object.assign(Object.assign({},(0,e.Wf)(l,!0)),{display:"flex",borderRadius:c,flex:"1 1 auto",[`${z}-selection-wrap:after`]:{lineHeight:(0,J.unit)(B)},[`${z}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${z}-selection-item, - ${z}-selection-placeholder - `]:{display:"block",padding:0,lineHeight:(0,J.unit)(B),transition:`all ${l.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${z}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${z}-selection-item:empty:after`,`${z}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${z}-show-arrow ${z}-selection-item, - &${z}-show-arrow ${z}-selection-search, - &${z}-show-arrow ${z}-selection-placeholder - `]:{paddingInlineEnd:l.showArrowPaddingInlineEnd},[`&${z}-open ${z}-selection-item`]:{color:l.colorTextPlaceholder},[`&:not(${z}-customize-input)`]:{[`${z}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,J.unit)(W)}`,[`${z}-selection-search-input`]:{height:B,fontSize:l.fontSize},"&:after":{lineHeight:(0,J.unit)(B)}}},[`&${z}-customize-input`]:{[`${z}-selector`]:{"&:after":{display:"none"},[`${z}-selection-search`]:{position:"static",width:"100%"},[`${z}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,J.unit)(W)}`,"&:after":{display:"none"}}}}}}}function I(l){const{componentCls:ie}=l,z=l.calc(l.controlPaddingHorizontalSM).sub(l.lineWidth).equal();return[O(l),O((0,Q.mergeToken)(l,{controlHeight:l.controlHeightSM,borderRadius:l.borderRadiusSM}),"sm"),{[`${ie}-single${ie}-sm`]:{[`&:not(${ie}-customize-input)`]:{[`${ie}-selector`]:{padding:`0 ${(0,J.unit)(z)}`},[`&${ie}-show-arrow ${ie}-selection-search`]:{insetInlineEnd:l.calc(z).add(l.calc(l.fontSize).mul(1.5)).equal()},[` - &${ie}-show-arrow ${ie}-selection-item, - &${ie}-show-arrow ${ie}-selection-placeholder - `]:{paddingInlineEnd:l.calc(l.fontSize).mul(1.5).equal()}}}},O((0,Q.mergeToken)(l,{controlHeight:l.singleItemHeightLG,fontSize:l.fontSizeLG,borderRadius:l.borderRadiusLG}),"lg")]}const Se=l=>{const{fontSize:ie,lineHeight:z,lineWidth:W,controlHeight:c,controlHeightSM:B,controlHeightLG:oe,paddingXXS:G,controlPaddingHorizontal:ye,zIndexPopupBase:et,colorText:_,fontWeightStrong:xe,controlItemBgActive:pe,controlItemBgHover:Xe,colorBgContainer:M,colorFillSecondary:Ee,colorBgContainerDisabled:be,colorTextDisabled:ct,colorPrimaryHover:Le,colorPrimary:re,controlOutline:T}=l,H=G*2,d=W*2,ce=Math.min(c-H,c-d),Z=Math.min(B-H,B-d),r=Math.min(oe-H,oe-d);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(G/2),zIndexPopup:et+50,optionSelectedColor:_,optionSelectedFontWeight:xe,optionSelectedBg:pe,optionActiveBg:Xe,optionPadding:`${(c-ie*z)/2}px ${ye}px`,optionFontSize:ie,optionLineHeight:z,optionHeight:c,selectorBg:M,clearBg:M,singleItemHeightLG:oe,multipleItemBg:Ee,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:Z,multipleItemHeightLG:r,multipleSelectorBgDisabled:be,multipleItemColorDisabled:ct,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(l.fontSize*1.25),hoverBorderColor:Le,activeBorderColor:re,activeOutlineColor:T,selectAffixPadding:G}},Ne=(l,ie)=>{const{componentCls:z,antCls:W,controlOutlineWidth:c}=l;return{[`&:not(${z}-customize-input) ${z}-selector`]:{border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} ${ie.borderColor}`,background:l.selectorBg},[`&:not(${z}-disabled):not(${z}-customize-input):not(${W}-pagination-size-changer)`]:{[`&:hover ${z}-selector`]:{borderColor:ie.hoverBorderHover},[`${z}-focused& ${z}-selector`]:{borderColor:ie.activeBorderColor,boxShadow:`0 0 0 ${(0,J.unit)(c)} ${ie.activeOutlineColor}`,outline:0},[`${z}-prefix`]:{color:ie.color}}}},ge=(l,ie)=>({[`&${l.componentCls}-status-${ie.status}`]:Object.assign({},Ne(l,ie))}),se=l=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(l,{borderColor:l.colorBorder,hoverBorderHover:l.hoverBorderColor,activeBorderColor:l.activeBorderColor,activeOutlineColor:l.activeOutlineColor,color:l.colorText})),ge(l,{status:"error",borderColor:l.colorError,hoverBorderHover:l.colorErrorHover,activeBorderColor:l.colorError,activeOutlineColor:l.colorErrorOutline,color:l.colorError})),ge(l,{status:"warning",borderColor:l.colorWarning,hoverBorderHover:l.colorWarningHover,activeBorderColor:l.colorWarning,activeOutlineColor:l.colorWarningOutline,color:l.colorWarning})),{[`&${l.componentCls}-disabled`]:{[`&:not(${l.componentCls}-customize-input) ${l.componentCls}-selector`]:{background:l.colorBgContainerDisabled,color:l.colorTextDisabled}},[`&${l.componentCls}-multiple ${l.componentCls}-selection-item`]:{background:l.multipleItemBg,border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} ${l.multipleItemBorderColor}`}})}),ve=(l,ie)=>{const{componentCls:z,antCls:W}=l;return{[`&:not(${z}-customize-input) ${z}-selector`]:{background:ie.bg,border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} transparent`,color:ie.color},[`&:not(${z}-disabled):not(${z}-customize-input):not(${W}-pagination-size-changer)`]:{[`&:hover ${z}-selector`]:{background:ie.hoverBg},[`${z}-focused& ${z}-selector`]:{background:l.selectorBg,borderColor:ie.activeBorderColor,outline:0}}}},h=(l,ie)=>({[`&${l.componentCls}-status-${ie.status}`]:Object.assign({},ve(l,ie))}),de=l=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ve(l,{bg:l.colorFillTertiary,hoverBg:l.colorFillSecondary,activeBorderColor:l.activeBorderColor,color:l.colorText})),h(l,{status:"error",bg:l.colorErrorBg,hoverBg:l.colorErrorBgHover,activeBorderColor:l.colorError,color:l.colorError})),h(l,{status:"warning",bg:l.colorWarningBg,hoverBg:l.colorWarningBgHover,activeBorderColor:l.colorWarning,color:l.colorWarning})),{[`&${l.componentCls}-disabled`]:{[`&:not(${l.componentCls}-customize-input) ${l.componentCls}-selector`]:{borderColor:l.colorBorder,background:l.colorBgContainerDisabled,color:l.colorTextDisabled}},[`&${l.componentCls}-multiple ${l.componentCls}-selection-item`]:{background:l.colorBgContainer,border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} ${l.colorSplit}`}})}),s=l=>({"&-borderless":{[`${l.componentCls}-selector`]:{background:"transparent",border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} transparent`},[`&${l.componentCls}-disabled`]:{[`&:not(${l.componentCls}-customize-input) ${l.componentCls}-selector`]:{color:l.colorTextDisabled}},[`&${l.componentCls}-multiple ${l.componentCls}-selection-item`]:{background:l.multipleItemBg,border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} ${l.multipleItemBorderColor}`},[`&${l.componentCls}-status-error`]:{[`${l.componentCls}-prefix, ${l.componentCls}-selection-item`]:{color:l.colorError}},[`&${l.componentCls}-status-warning`]:{[`${l.componentCls}-prefix, ${l.componentCls}-selection-item`]:{color:l.colorWarning}}}}),f=(l,ie)=>{const{componentCls:z,antCls:W}=l;return{[`&:not(${z}-customize-input) ${z}-selector`]:{borderWidth:`0 0 ${(0,J.unit)(l.lineWidth)} 0`,borderStyle:`none none ${l.lineType} none`,borderColor:ie.borderColor,background:l.selectorBg,borderRadius:0},[`&:not(${z}-disabled):not(${z}-customize-input):not(${W}-pagination-size-changer)`]:{[`&:hover ${z}-selector`]:{borderColor:ie.hoverBorderHover},[`${z}-focused& ${z}-selector`]:{borderColor:ie.activeBorderColor,outline:0},[`${z}-prefix`]:{color:ie.color}}}},Y=(l,ie)=>({[`&${l.componentCls}-status-${ie.status}`]:Object.assign({},f(l,ie))}),ee=l=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},f(l,{borderColor:l.colorBorder,hoverBorderHover:l.hoverBorderColor,activeBorderColor:l.activeBorderColor,activeOutlineColor:l.activeOutlineColor,color:l.colorText})),Y(l,{status:"error",borderColor:l.colorError,hoverBorderHover:l.colorErrorHover,activeBorderColor:l.colorError,activeOutlineColor:l.colorErrorOutline,color:l.colorError})),Y(l,{status:"warning",borderColor:l.colorWarning,hoverBorderHover:l.colorWarningHover,activeBorderColor:l.colorWarning,activeOutlineColor:l.colorWarningOutline,color:l.colorWarning})),{[`&${l.componentCls}-disabled`]:{[`&:not(${l.componentCls}-customize-input) ${l.componentCls}-selector`]:{color:l.colorTextDisabled}},[`&${l.componentCls}-multiple ${l.componentCls}-selection-item`]:{background:l.multipleItemBg,border:`${(0,J.unit)(l.lineWidth)} ${l.lineType} ${l.multipleItemBorderColor}`}})});var Ve=l=>({[l.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},se(l)),de(l)),s(l)),ee(l))});const we=l=>{const{componentCls:ie}=l;return{position:"relative",transition:`all ${l.motionDurationMid} ${l.motionEaseInOut}`,input:{cursor:"pointer"},[`${ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ie}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},k=l=>{const{componentCls:ie}=l;return{[`${ie}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Oe=l=>{const{antCls:ie,componentCls:z,inputPaddingHorizontalBase:W,iconCls:c}=l;return{[z]:Object.assign(Object.assign({},(0,e.Wf)(l)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${z}-customize-input) ${z}-selector`]:Object.assign(Object.assign({},we(l)),k(l)),[`${z}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},e.vS),{[`> ${ie}-typography`]:{display:"inline"}}),[`${z}-selection-placeholder`]:Object.assign(Object.assign({},e.vS),{flex:1,color:l.colorTextPlaceholder,pointerEvents:"none"}),[`${z}-arrow`]:Object.assign(Object.assign({},(0,e.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:W,height:l.fontSizeIcon,marginTop:l.calc(l.fontSizeIcon).mul(-1).div(2).equal(),color:l.colorTextQuaternary,fontSize:l.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${l.motionDurationSlow} ease`,[c]:{verticalAlign:"top",transition:`transform ${l.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${z}-suffix)`]:{pointerEvents:"auto"}},[`${z}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${z}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${z}-prefix`]:{flex:"none",marginInlineEnd:l.selectAffixPadding},[`${z}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:W,zIndex:1,display:"inline-block",width:l.fontSizeIcon,height:l.fontSizeIcon,marginTop:l.calc(l.fontSizeIcon).mul(-1).div(2).equal(),color:l.colorTextQuaternary,fontSize:l.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${l.motionDurationMid} ease, opacity ${l.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:l.colorTextTertiary}},[`&:hover ${z}-clear`]:{opacity:1,background:l.colorBgBase,borderRadius:"50%"}}),[`${z}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${z}-has-feedback`]:{[`${z}-clear`]:{insetInlineEnd:l.calc(W).add(l.fontSize).add(l.paddingXS).equal()}}}}}},ae=l=>{const{componentCls:ie}=l;return[{[ie]:{[`&${ie}-in-form-item`]:{width:"100%"}}},Oe(l),I(l),(0,n.ZP)(l),F(l),{[`${ie}-rtl`]:{direction:"rtl"}},(0,m.c)(l,{borderElCls:`${ie}-selector`,focusElCls:`${ie}-focused`})]};var C=(0,p.I$)("Select",(l,ie)=>{let{rootPrefixCls:z}=ie;const W=(0,Q.mergeToken)(l,{rootPrefixCls:z,inputPaddingHorizontalBase:l.calc(l.paddingSM).sub(1).equal(),multipleSelectItemHeight:l.multipleItemHeight,selectHeight:l.controlHeight});return[ae(W),Ve(W)]},Se,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Yt,Ge,t){t.d(Ge,{_z:function(){return P},gp:function(){return Q}});var e=t(36237),m=t(63356),p=t(51636);const Q=n=>{const{multipleSelectItemHeight:J,paddingXXS:O,lineWidth:I,INTERNAL_FIXED_ITEM_MARGIN:Se}=n,Ne=n.max(n.calc(O).sub(I).equal(),0),ge=n.max(n.calc(Ne).sub(Se).equal(),0);return{basePadding:Ne,containerPadding:ge,itemHeight:(0,e.unit)(J),itemLineHeight:(0,e.unit)(n.calc(J).sub(n.calc(n.lineWidth).mul(2)).equal())}},N=n=>{const{multipleSelectItemHeight:J,selectHeight:O,lineWidth:I}=n;return n.calc(O).sub(J).div(2).sub(I).equal()},P=n=>{const{componentCls:J,iconCls:O,borderRadiusSM:I,motionDurationSlow:Se,paddingXS:Ne,multipleItemColorDisabled:ge,multipleItemBorderColorDisabled:se,colorIcon:ve,colorIconHover:h,INTERNAL_FIXED_ITEM_MARGIN:de}=n;return{[`${J}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${J}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:de,borderRadius:I,cursor:"default",transition:`font-size ${Se}, line-height ${Se}, height ${Se}`,marginInlineEnd:n.calc(de).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:n.calc(Ne).div(2).equal(),[`${J}-disabled&`]:{color:ge,borderColor:se,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:n.calc(Ne).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,m.Ro)()),{display:"inline-flex",alignItems:"center",color:ve,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${O}`]:{verticalAlign:"-0.2em"},"&:hover":{color:h}})}}}},g=(n,J)=>{const{componentCls:O,INTERNAL_FIXED_ITEM_MARGIN:I}=n,Se=`${O}-selection-overflow`,Ne=n.multipleSelectItemHeight,ge=N(n),se=J?`${O}-${J}`:"",ve=Q(n);return{[`${O}-multiple${se}`]:Object.assign(Object.assign({},P(n)),{[`${O}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ve.basePadding,paddingBlock:ve.containerPadding,borderRadius:n.borderRadius,[`${O}-disabled&`]:{background:n.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,e.unit)(I)} 0`,lineHeight:(0,e.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${O}-selection-item`]:{height:ve.itemHeight,lineHeight:(0,e.unit)(ve.itemLineHeight)},[`${O}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,e.unit)(Ne),marginBlock:I}},[`${O}-prefix`]:{marginInlineStart:n.calc(n.inputPaddingHorizontalBase).sub(ve.basePadding).equal()},[`${Se}-item + ${Se}-item, - ${O}-prefix + ${O}-selection-wrap - `]:{[`${O}-selection-search`]:{marginInlineStart:0},[`${O}-selection-placeholder`]:{insetInlineStart:0}},[`${Se}-item-suffix`]:{minHeight:ve.itemHeight,marginBlock:I},[`${O}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:n.calc(n.inputPaddingHorizontalBase).sub(ge).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:n.fontFamily,lineHeight:(0,e.unit)(Ne),transition:`all ${n.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${O}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:n.calc(n.inputPaddingHorizontalBase).sub(ve.basePadding).equal(),insetInlineEnd:n.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${n.motionDurationSlow}`}})}};function D(n,J){const{componentCls:O}=n,I=J?`${O}-${J}`:"",Se={[`${O}-multiple${I}`]:{fontSize:n.fontSize,[`${O}-selector`]:{[`${O}-show-search&`]:{cursor:"text"}},[` - &${O}-show-arrow ${O}-selector, - &${O}-allow-clear ${O}-selector - `]:{paddingInlineEnd:n.calc(n.fontSizeIcon).add(n.controlPaddingHorizontal).equal()}}};return[g(n,J),Se]}const F=n=>{const{componentCls:J}=n,O=(0,p.mergeToken)(n,{selectHeight:n.controlHeightSM,multipleSelectItemHeight:n.multipleItemHeightSM,borderRadius:n.borderRadiusSM,borderRadiusSM:n.borderRadiusXS}),I=(0,p.mergeToken)(n,{fontSize:n.fontSizeLG,selectHeight:n.controlHeightLG,multipleSelectItemHeight:n.multipleItemHeightLG,borderRadius:n.borderRadiusLG,borderRadiusSM:n.borderRadius});return[D(n),D(O,"sm"),{[`${J}-multiple${J}-sm`]:{[`${J}-selection-placeholder`]:{insetInline:n.calc(n.controlPaddingHorizontalSM).sub(n.lineWidth).equal()},[`${J}-selection-search`]:{marginInlineStart:2}}},D(I,"lg")]};Ge.ZP=F},68525:function(Yt,Ge,t){t.d(Ge,{Z:function(){return D}});var e=t(59301),m=t(40001),p=t(19248),Q=t(99267),N=t(84105),P=t(58617),g=t(47472);function D(F){let{suffixIcon:n,clearIcon:J,menuItemSelectedIcon:O,removeIcon:I,loading:Se,multiple:Ne,hasFeedback:ge,prefixCls:se,showSuffixIcon:ve,feedbackIcon:h,showArrow:de,componentName:s}=F;const f=J!=null?J:e.createElement(p.Z,null),Y=we=>n===null&&!ge&&!de?null:e.createElement(e.Fragment,null,ve!==!1&&we,ge&&h);let ee=null;if(n!==void 0)ee=Y(n);else if(Se)ee=Y(e.createElement(P.Z,{spin:!0}));else{const we=`${se}-suffix`;ee=k=>{let{open:Oe,showSearch:ae}=k;return Y(Oe&&ae?e.createElement(g.Z,{className:we}):e.createElement(N.Z,{className:we}))}}let te=null;O!==void 0?te=O:Ne?te=e.createElement(m.Z,null):te=null;let Ve=null;return I!==void 0?Ve=I:Ve=e.createElement(Q.Z,null),{clearIcon:f,suffixIcon:ee,itemIcon:te,removeIcon:Ve}}},90005:function(Yt,Ge,t){t.d(Ge,{Z:function(){return e}});function e(m,p){return p!==void 0?p:m!==null}},44104:function(Yt,Ge,t){t.d(Ge,{Z:function(){return ge}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(11592),N=t(99402),P=t(48755),g=t(70045);const D=e.createContext({latestIndex:0}),F=D.Provider;var J=se=>{let{className:ve,index:h,children:de,split:s,style:f}=se;const{latestIndex:Y}=e.useContext(D);return de==null?null:e.createElement(e.Fragment,null,e.createElement("div",{className:ve,style:f},de),h{var h;const{getPrefixCls:de,direction:s,size:f,className:Y,style:ee,classNames:te,styles:Ve}=(0,P.dj)("space"),{size:we=f!=null?f:"small",align:k,className:Oe,rootClassName:ae,children:C,direction:l="horizontal",prefixCls:ie,split:z,style:W,wrap:c=!1,classNames:B,styles:oe}=se,G=I(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ye,et]=Array.isArray(we)?we:[we,we],_=(0,N.n)(et),xe=(0,N.n)(ye),pe=(0,N.T)(et),Xe=(0,N.T)(ye),M=(0,Q.Z)(C,{keepEmpty:!0}),Ee=k===void 0&&l==="horizontal"?"center":k,be=de("space",ie),[ct,Le,re]=(0,O.Z)(be),T=p()(be,Y,Le,`${be}-${l}`,{[`${be}-rtl`]:s==="rtl",[`${be}-align-${Ee}`]:Ee,[`${be}-gap-row-${et}`]:_,[`${be}-gap-col-${ye}`]:xe},Oe,ae,re),H=p()(`${be}-item`,(h=B==null?void 0:B.item)!==null&&h!==void 0?h:te.item);let d=0;const ce=M.map((u,V)=>{var K;u!=null&&(d=V);const y=(u==null?void 0:u.key)||`${H}-${V}`;return e.createElement(J,{className:H,key:y,index:V,split:z,style:(K=oe==null?void 0:oe.item)!==null&&K!==void 0?K:Ve.item},u)}),Z=e.useMemo(()=>({latestIndex:d}),[d]);if(M.length===0)return null;const r={};return c&&(r.flexWrap="wrap"),!xe&&Xe&&(r.columnGap=ye),!_&&pe&&(r.rowGap=et),ct(e.createElement("div",Object.assign({ref:ve,className:T,style:Object.assign(Object.assign(Object.assign({},r),ee),W)},G),e.createElement(F,{value:Z},ce)))});Ne.Compact=g.ZP;var ge=Ne},93873:function(Yt,Ge,t){t.d(Ge,{Fm:function(){return O}});var e=t(36237),m=t(48746);const p=new e.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q=new e.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),N=new e.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new e.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),g=new e.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D=new e.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F=new e.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),n=new e.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),J={"move-up":{inKeyframes:F,outKeyframes:n},"move-down":{inKeyframes:p,outKeyframes:Q},"move-left":{inKeyframes:N,outKeyframes:P},"move-right":{inKeyframes:g,outKeyframes:D}},O=(I,Se)=>{const{antCls:Ne}=I,ge=`${Ne}-${Se}`,{inKeyframes:se,outKeyframes:ve}=J[Se];return[(0,m.R)(ge,se,ve,I.motionDurationMid),{[` - ${ge}-enter, - ${ge}-appear - `]:{opacity:0,animationTimingFunction:I.motionEaseOutCirc},[`${ge}-leave`]:{animationTimingFunction:I.motionEaseInOutCirc}}]}},46e3:function(Yt,Ge,t){t.d(Ge,{Qt:function(){return N},Uw:function(){return Q},fJ:function(){return p},ly:function(){return P},oN:function(){return O}});var e=t(36237),m=t(48746);const p=new e.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Q=new e.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),N=new e.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),P=new e.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),g=new e.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),D=new e.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F=new e.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),n=new e.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),J={"slide-up":{inKeyframes:p,outKeyframes:Q},"slide-down":{inKeyframes:N,outKeyframes:P},"slide-left":{inKeyframes:g,outKeyframes:D},"slide-right":{inKeyframes:F,outKeyframes:n}},O=(I,Se)=>{const{antCls:Ne}=I,ge=`${Ne}-${Se}`,{inKeyframes:se,outKeyframes:ve}=J[Se];return[(0,m.R)(ge,se,ve,I.motionDurationMid),{[` - ${ge}-enter, - ${ge}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:I.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ge}-leave`]:{animationTimingFunction:I.motionEaseInQuint}}]}},37645:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return P},qN:function(){return p},wZ:function(){return Q}});var e=t(36237),m=t(36305);const p=8;function Q(g){const{contentRadius:D,limitVerticalRadius:F}=g,n=D>12?D+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:F?p:n}}function N(g,D){return g?D:{}}function P(g,D,F){const{componentCls:n,boxShadowPopoverArrow:J,arrowOffsetVertical:O,arrowOffsetHorizontal:I}=g,{arrowDistance:Se=0,arrowPlacement:Ne={left:!0,right:!0,top:!0,bottom:!0}}=F||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,m.W)(g,D,J)),{"&:before":{background:D}})]},N(!!Ne.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:Se,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":I,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:I}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,e.unit)(I)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:I}}}})),N(!!Ne.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:Se,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":I,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:I}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,e.unit)(I)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:I}}}})),N(!!Ne.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Se},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:O},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:O}})),N(!!Ne.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Se},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:O},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:O}}))}}},36305:function(Yt,Ge,t){t.d(Ge,{W:function(){return p},w:function(){return m}});var e=t(36237);function m(Q){const{sizePopupArrow:N,borderRadiusXS:P,borderRadiusOuter:g}=Q,D=N/2,F=0,n=D,J=g*1/Math.sqrt(2),O=D-g*(1-1/Math.sqrt(2)),I=D-P*(1/Math.sqrt(2)),Se=g*(Math.sqrt(2)-1)+P*(1/Math.sqrt(2)),Ne=2*D-I,ge=Se,se=2*D-J,ve=O,h=2*D-F,de=n,s=D*Math.sqrt(2)+g*(Math.sqrt(2)-2),f=g*(Math.sqrt(2)-1),Y=`polygon(${f}px 100%, 50% ${f}px, ${2*D-f}px 100%, ${f}px 100%)`,ee=`path('M ${F} ${n} A ${g} ${g} 0 0 0 ${J} ${O} L ${I} ${Se} A ${P} ${P} 0 0 1 ${Ne} ${ge} L ${se} ${ve} A ${g} ${g} 0 0 0 ${h} ${de} Z')`;return{arrowShadowWidth:s,arrowPath:ee,arrowPolygon:Y}}const p=(Q,N,P)=>{const{sizePopupArrow:g,arrowPolygon:D,arrowPath:F,arrowShadowWidth:n,borderRadiusXS:J,calc:O}=Q;return{pointerEvents:"none",width:g,height:g,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:g,height:O(g).div(2).equal(),background:N,clipPath:{_multi_value_:!0,value:[D,F]},content:'""'},"&::after":{content:'""',position:"absolute",width:n,height:n,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,e.unit)(J)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:P,zIndex:0,background:"transparent"}}}},70858:function(Yt,Ge,t){t.d(Ge,{default:function(){return tl}});var e=t(59301),m={},p="rc-table-internal-hook",Q=t(42978),N=t(6089),P=t(34280),g=t(13697),D=t(4676);function F(a){var o=e.createContext(void 0),E=function(le){var he=le.value,We=le.children,$e=e.useRef(he);$e.current=he;var Je=e.useState(function(){return{getValue:function(){return $e.current},listeners:new Set}}),Qe=(0,Q.Z)(Je,1),St=Qe[0];return(0,P.Z)(function(){(0,D.unstable_batchedUpdates)(function(){St.listeners.forEach(function(dt){dt(he)})})},[he]),e.createElement(o.Provider,{value:St},We)};return{Context:o,Provider:E,defaultValue:a}}function n(a,o){var E=(0,N.Z)(typeof o=="function"?o:function(dt){if(o===void 0)return dt;if(!Array.isArray(o))return dt[o];var st={};return o.forEach(function(lt){st[lt]=dt[lt]}),st}),j=e.useContext(a==null?void 0:a.Context),le=j||{},he=le.listeners,We=le.getValue,$e=e.useRef();$e.current=E(j?We():a==null?void 0:a.defaultValue);var Je=e.useState({}),Qe=(0,Q.Z)(Je,2),St=Qe[1];return(0,P.Z)(function(){if(!j)return;function dt(st){var lt=E(st);(0,g.Z)($e.current,lt,!0)||St({})}return he.add(dt),function(){he.delete(dt)}},[j]),$e.current}var J=t(54476),O=t(8654);function I(){var a=e.createContext(null);function o(){return e.useContext(a)}function E(le,he){var We=(0,O.Yr)(le),$e=function(Qe,St){var dt=We?{ref:St}:{},st=e.useRef(0),lt=e.useRef(Qe),ht=o();return ht!==null?e.createElement(le,(0,J.Z)({},Qe,dt)):((!he||he(lt.current,Qe))&&(st.current+=1),lt.current=Qe,e.createElement(a.Provider,{value:st.current},e.createElement(le,(0,J.Z)({},Qe,dt))))};return We?e.forwardRef($e):$e}function j(le,he){var We=(0,O.Yr)(le),$e=function(Qe,St){var dt=We?{ref:St}:{};return o(),e.createElement(le,(0,J.Z)({},Qe,dt))};return We?e.memo(e.forwardRef($e),he):e.memo($e,he)}return{makeImmutable:E,responseImmutable:j,useImmutableMark:o}}var Se=I(),Ne=Se.makeImmutable,ge=Se.responseImmutable,se=Se.useImmutableMark,ve=I(),h=ve.makeImmutable,de=ve.responseImmutable,s=ve.useImmutableMark,f=F(),Y=f;function ee(a,o){var E=React.useRef(0);E.current+=1;var j=React.useRef(a),le=[];Object.keys(a||{}).map(function(We){var $e;(a==null?void 0:a[We])!==(($e=j.current)===null||$e===void 0?void 0:$e[We])&&le.push(We)}),j.current=a;var he=React.useRef([]);return le.length&&(he.current=le),React.useDebugValue(E.current),React.useDebugValue(he.current.join(", ")),o&&console.log("".concat(o,":"),E.current,he.current),E.current}var te=null,Ve=null,we=t(76190),k=t(33885),Oe=t(20068),ae=t(92310),C=t.n(ae),l=t(80547),ie=t(97938),z=t(48736),W=e.createContext({renderWithProps:!1}),c=W,B="RC_TABLE_KEY";function oe(a){return a==null?[]:Array.isArray(a)?a:[a]}function G(a){var o=[],E={};return a.forEach(function(j){for(var le=j||{},he=le.key,We=le.dataIndex,$e=he||oe(We).join("-")||B;E[$e];)$e="".concat($e,"_next");E[$e]=!0,o.push($e)}),o}function ye(a){return a!=null}function et(a){return typeof a=="number"&&!Number.isNaN(a)}function _(a){return a&&(0,we.Z)(a)==="object"&&!Array.isArray(a)&&!e.isValidElement(a)}function xe(a,o,E,j,le,he){var We=e.useContext(c),$e=s(),Je=(0,l.Z)(function(){if(ye(j))return[j];var Qe=o==null||o===""?[]:Array.isArray(o)?o:[o],St=(0,ie.Z)(a,Qe),dt=St,st=void 0;if(le){var lt=le(St,a,E);_(lt)?(dt=lt.children,st=lt.props,We.renderWithProps=!0):dt=lt}return[dt,st]},[$e,a,j,o,le,E],function(Qe,St){if(he){var dt=(0,Q.Z)(Qe,2),st=dt[1],lt=(0,Q.Z)(St,2),ht=lt[1];return he(ht,st)}return We.renderWithProps?!0:!(0,g.Z)(Qe,St,!0)});return Je}function pe(a,o,E,j){var le=a+o-1;return a<=j&&le>=E}function Xe(a,o){return n(Y,function(E){var j=pe(a,o||1,E.hoverStartRow,E.hoverEndRow);return[j,E.onHover]})}var M=t(70425),Ee=function(o){var E=o.ellipsis,j=o.rowType,le=o.children,he,We=E===!0?{showTitle:!0}:E;return We&&(We.showTitle||j==="header")&&(typeof le=="string"||typeof le=="number"?he=le.toString():e.isValidElement(le)&&typeof le.props.children=="string"&&(he=le.props.children)),he};function be(a){var o,E,j,le,he,We,$e,Je,Qe=a.component,St=a.children,dt=a.ellipsis,st=a.scope,lt=a.prefixCls,ht=a.className,qt=a.align,Nt=a.record,_t=a.render,tn=a.dataIndex,Ut=a.renderIndex,ln=a.shouldCellUpdate,dn=a.index,xn=a.rowType,yn=a.colSpan,nr=a.rowSpan,Fn=a.fixLeft,Kn=a.fixRight,Gn=a.firstFixLeft,Cn=a.lastFixLeft,Sn=a.firstFixRight,fn=a.lastFixRight,on=a.appendNode,hn=a.additionalProps,wn=hn===void 0?{}:hn,zn=a.isSticky,cn="".concat(lt,"-cell"),dr=n(Y,["supportSticky","allColumnsFixedLeft","rowHoverable"]),mr=dr.supportSticky,fo=dr.allColumnsFixedLeft,ro=dr.rowHoverable,Qr=xe(Nt,tn,Ut,St,_t,ln),lo=(0,Q.Z)(Qr,2),Zo=lo[0],gr=lo[1],yr={},ho=typeof Fn=="number"&&mr,$o=typeof Kn=="number"&&mr;ho&&(yr.position="sticky",yr.left=Fn),$o&&(yr.position="sticky",yr.right=Kn);var Nn=(o=(E=(j=gr==null?void 0:gr.colSpan)!==null&&j!==void 0?j:wn.colSpan)!==null&&E!==void 0?E:yn)!==null&&o!==void 0?o:1,_n=(le=(he=(We=gr==null?void 0:gr.rowSpan)!==null&&We!==void 0?We:wn.rowSpan)!==null&&he!==void 0?he:nr)!==null&&le!==void 0?le:1,$n=Xe(dn,_n),Ln=(0,Q.Z)($n,2),Rr=Ln[0],Mr=Ln[1],oo=(0,M.zX)(function(ao){var Fr;Nt&&Mr(dn,dn+_n-1),wn==null||(Fr=wn.onMouseEnter)===null||Fr===void 0||Fr.call(wn,ao)}),Jr=(0,M.zX)(function(ao){var Fr;Nt&&Mr(-1,-1),wn==null||(Fr=wn.onMouseLeave)===null||Fr===void 0||Fr.call(wn,ao)});if(Nn===0||_n===0)return null;var Ao=($e=wn.title)!==null&&$e!==void 0?$e:Ee({rowType:xn,ellipsis:dt,children:Zo}),zo=C()(cn,ht,(Je={},(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)(Je,"".concat(cn,"-fix-left"),ho&&mr),"".concat(cn,"-fix-left-first"),Gn&&mr),"".concat(cn,"-fix-left-last"),Cn&&mr),"".concat(cn,"-fix-left-all"),Cn&&fo&&mr),"".concat(cn,"-fix-right"),$o&&mr),"".concat(cn,"-fix-right-first"),Sn&&mr),"".concat(cn,"-fix-right-last"),fn&&mr),"".concat(cn,"-ellipsis"),dt),"".concat(cn,"-with-append"),on),"".concat(cn,"-fix-sticky"),(ho||$o)&&zn&&mr),(0,Oe.Z)(Je,"".concat(cn,"-row-hover"),!gr&&Rr)),wn.className,gr==null?void 0:gr.className),Bn={};qt&&(Bn.textAlign=qt);var Wn=(0,k.Z)((0,k.Z)((0,k.Z)((0,k.Z)({},gr==null?void 0:gr.style),yr),Bn),wn.style),Br=Zo;return(0,we.Z)(Br)==="object"&&!Array.isArray(Br)&&!e.isValidElement(Br)&&(Br=null),dt&&(Cn||Sn)&&(Br=e.createElement("span",{className:"".concat(cn,"-content")},Br)),e.createElement(Qe,(0,J.Z)({},gr,wn,{className:zo,style:Wn,title:Ao,scope:st,onMouseEnter:ro?oo:void 0,onMouseLeave:ro?Jr:void 0,colSpan:Nn!==1?Nn:null,rowSpan:_n!==1?_n:null}),on,Br)}var ct=e.memo(be);function Le(a,o,E,j,le){var he=E[a]||{},We=E[o]||{},$e,Je;he.fixed==="left"?$e=j.left[le==="rtl"?o:a]:We.fixed==="right"&&(Je=j.right[le==="rtl"?a:o]);var Qe=!1,St=!1,dt=!1,st=!1,lt=E[o+1],ht=E[a-1],qt=lt&&!lt.fixed||ht&&!ht.fixed||E.every(function(ln){return ln.fixed==="left"});if(le==="rtl"){if($e!==void 0){var Nt=ht&&ht.fixed==="left";st=!Nt&&qt}else if(Je!==void 0){var _t=lt&<.fixed==="right";dt=!_t&&qt}}else if($e!==void 0){var tn=lt&<.fixed==="left";Qe=!tn&&qt}else if(Je!==void 0){var Ut=ht&&ht.fixed==="right";St=!Ut&&qt}return{fixLeft:$e,fixRight:Je,lastFixLeft:Qe,firstFixRight:St,lastFixRight:dt,firstFixLeft:st,isSticky:j.isSticky}}var re=e.createContext({}),T=re;function H(a){var o=a.className,E=a.index,j=a.children,le=a.colSpan,he=le===void 0?1:le,We=a.rowSpan,$e=a.align,Je=n(Y,["prefixCls","direction"]),Qe=Je.prefixCls,St=Je.direction,dt=e.useContext(T),st=dt.scrollColumnIndex,lt=dt.stickyOffsets,ht=dt.flattenColumns,qt=E+he-1,Nt=qt+1===st?he+1:he,_t=Le(E,E+Nt-1,ht,lt,St);return e.createElement(ct,(0,J.Z)({className:o,index:E,component:"td",prefixCls:Qe,record:null,dataIndex:null,align:$e,colSpan:Nt,rowSpan:We,render:function(){return j}},_t))}var d=t(75931),ce=["children"];function Z(a){var o=a.children,E=(0,d.Z)(a,ce);return e.createElement("tr",E,o)}function r(a){var o=a.children;return o}r.Row=Z,r.Cell=H;var u=r;function V(a){var o=a.children,E=a.stickyOffsets,j=a.flattenColumns,le=n(Y,"prefixCls"),he=j.length-1,We=j[he],$e=e.useMemo(function(){return{stickyOffsets:E,flattenColumns:j,scrollColumnIndex:We!=null&&We.scrollbar?he:null}},[We,j,he,E]);return e.createElement(T.Provider,{value:$e},e.createElement("tfoot",{className:"".concat(le,"-summary")},o))}var K=de(V),y=u,A=t(29301),L=t(24514),q=t(75152),i=t(26112);function v(a,o,E,j,le,he,We){a.push({record:o,indent:E,index:We});var $e=he(o),Je=le==null?void 0:le.has($e);if(o&&Array.isArray(o[j])&&Je)for(var Qe=0;Qe1?Gn-1:0),Sn=1;Sn=1)),style:(0,k.Z)((0,k.Z)({},E),_t==null?void 0:_t.style)}),ht.map(function(Fn,Kn){var Gn=Fn.render,Cn=Fn.dataIndex,Sn=Fn.className,fn=x(st,Fn,Kn,Je,le),on=fn.key,hn=fn.fixedInfo,wn=fn.appendCellNode,zn=fn.additionalCellProps;return e.createElement(ct,(0,J.Z)({className:Sn,ellipsis:Fn.ellipsis,align:Fn.align,scope:Fn.rowScope,component:Fn.rowScope?dt:St,prefixCls:lt,key:on,record:j,index:le,renderIndex:he,dataIndex:Cn,render:Gn,shouldCellUpdate:Fn.shouldCellUpdate},hn,{appendNode:wn,additionalProps:zn}))})),yn;if(Ut&&(ln.current||tn)){var nr=Nt(j,le,Je+1,tn);yn=e.createElement(Be,{expanded:tn,className:C()("".concat(lt,"-expanded-row"),"".concat(lt,"-expanded-row-level-").concat(Je+1),dn),prefixCls:lt,component:Qe,cellComponent:St,colSpan:ht.length,isEmpty:!1},nr)}return e.createElement(e.Fragment,null,xn,yn)}var Ce=de(ne);function De(a){var o=a.columnKey,E=a.onColumnResize,j=e.useRef();return(0,P.Z)(function(){j.current&&E(o,j.current.offsetWidth)},[]),e.createElement(A.Z,{data:o},e.createElement("td",{ref:j,style:{padding:0,border:0,height:0}},e.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var S=t(29194);function X(a){var o=a.prefixCls,E=a.columnsKey,j=a.onColumnResize,le=e.useRef(null);return e.createElement("tr",{"aria-hidden":"true",className:"".concat(o,"-measure-row"),style:{height:0,fontSize:0},ref:le},e.createElement(A.Z.Collection,{onBatchResize:function(We){(0,S.Z)(le.current)&&We.forEach(function($e){var Je=$e.data,Qe=$e.size;j(Je,Qe.offsetWidth)})}},E.map(function(he){return e.createElement(De,{key:he,columnKey:he,onColumnResize:j})})))}function U(a){var o=a.data,E=a.measureColumnWidth,j=n(Y,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),le=j.prefixCls,he=j.getComponent,We=j.onColumnResize,$e=j.flattenColumns,Je=j.getRowKey,Qe=j.expandedKeys,St=j.childrenColumnName,dt=j.emptyNode,st=Me(o,St,Qe,Je),lt=e.useRef({renderWithProps:!1}),ht=he(["body","wrapper"],"tbody"),qt=he(["body","row"],"tr"),Nt=he(["body","cell"],"td"),_t=he(["body","cell"],"th"),tn;o.length?tn=st.map(function(ln,dn){var xn=ln.record,yn=ln.indent,nr=ln.index,Fn=Je(xn,dn);return e.createElement(Ce,{key:Fn,rowKey:Fn,record:xn,index:dn,renderIndex:nr,rowComponent:qt,cellComponent:Nt,scopeCellComponent:_t,indent:yn})}):tn=e.createElement(Be,{expanded:!0,className:"".concat(le,"-placeholder"),prefixCls:le,component:qt,cellComponent:Nt,colSpan:$e.length,isEmpty:!0},dt);var Ut=G($e);return e.createElement(c.Provider,{value:lt.current},e.createElement(ht,{className:"".concat(le,"-tbody")},E&&e.createElement(X,{prefixCls:le,columnsKey:Ut,onColumnResize:We}),tn))}var me=de(U),ze=["expandable"],Ke="RC_TABLE_INTERNAL_COL_DEFINE";function ut(a){var o=a.expandable,E=(0,d.Z)(a,ze),j;return"expandable"in a?j=(0,k.Z)((0,k.Z)({},E),o):j=E,j.showExpandColumn===!1&&(j.expandIconColumnIndex=-1),j}var pt=["columnType"];function tt(a){for(var o=a.colWidths,E=a.columns,j=a.columCount,le=n(Y,["tableLayout"]),he=le.tableLayout,We=[],$e=j||E.length,Je=!1,Qe=$e-1;Qe>=0;Qe-=1){var St=o[Qe],dt=E&&E[Qe],st=void 0,lt=void 0;if(dt&&(st=dt[Ke],he==="auto"&&(lt=dt.minWidth)),St||lt||st||Je){var ht=st||{},qt=ht.columnType,Nt=(0,d.Z)(ht,pt);We.unshift(e.createElement("col",(0,J.Z)({key:Qe,style:{width:St,minWidth:lt}},Nt))),Je=!0}}return e.createElement("colgroup",null,We)}var mt=tt,ke=t(94480),rt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ot(a,o){return(0,e.useMemo)(function(){for(var E=[],j=0;j1?"colgroup":"col":null,ellipsis:Nt.ellipsis,align:Nt.align,component:We,prefixCls:St,key:lt[qt]},_t,{additionalProps:tn,rowType:"header"}))}))},Mt=Pt;function Gt(a){var o=[];function E(We,$e){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;o[Je]=o[Je]||[];var Qe=$e,St=We.filter(Boolean).map(function(dt){var st={key:dt.key,className:dt.className||"",children:dt.title,column:dt,colStart:Qe},lt=1,ht=dt.children;return ht&&ht.length>0&&(lt=E(ht,Qe,Je+1).reduce(function(qt,Nt){return qt+Nt},0),st.hasSubColumns=!0),"colSpan"in dt&&(lt=dt.colSpan),"rowSpan"in dt&&(st.rowSpan=dt.rowSpan),st.colSpan=lt,st.colEnd=st.colStart+lt-1,o[Je].push(st),Qe+=lt,lt});return St}E(a,0);for(var j=o.length,le=function($e){o[$e].forEach(function(Je){!("rowSpan"in Je)&&!Je.hasSubColumns&&(Je.rowSpan=j-$e)})},he=0;he1&&arguments[1]!==void 0?arguments[1]:"";return typeof o=="number"?o:o.endsWith("%")?a*parseFloat(o)/100:null}function Bt(a,o,E){return e.useMemo(function(){if(o&&o>0){var j=0,le=0;a.forEach(function(st){var lt=vn(o,st.width);lt?j+=lt:le+=1});var he=Math.max(o,E),We=Math.max(he-j,le),$e=le,Je=We/le,Qe=0,St=a.map(function(st){var lt=(0,k.Z)({},st),ht=vn(o,lt.width);if(ht)lt.width=ht;else{var qt=Math.floor(Je);lt.width=$e===1?We:qt,We-=qt,$e-=1}return Qe+=lt.width,lt});if(Qe0?(0,k.Z)((0,k.Z)({},o),{},{children:b(E)}):o})}function w(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return a.filter(function(E){return E&&(0,we.Z)(E)==="object"}).reduce(function(E,j,le){var he=j.fixed,We=he===!0?"left":he,$e="".concat(o,"-").concat(le),Je=j.children;return Je&&Je.length>0?[].concat((0,ke.Z)(E),(0,ke.Z)(w(Je,$e).map(function(Qe){return(0,k.Z)({fixed:We},Qe)}))):[].concat((0,ke.Z)(E),[(0,k.Z)((0,k.Z)({key:$e},j),{},{fixed:We})])},[])}function it(a){return a.map(function(o){var E=o.fixed,j=(0,d.Z)(o,pn),le=E;return E==="left"?le="right":E==="right"&&(le="left"),(0,k.Z)({fixed:le},j)})}function R(a,o){var E=a.prefixCls,j=a.columns,le=a.children,he=a.expandable,We=a.expandedKeys,$e=a.columnTitle,Je=a.getRowKey,Qe=a.onTriggerExpand,St=a.expandIcon,dt=a.rowExpandable,st=a.expandIconColumnIndex,lt=a.direction,ht=a.expandRowByClick,qt=a.columnWidth,Nt=a.fixed,_t=a.scrollWidth,tn=a.clientWidth,Ut=e.useMemo(function(){var Cn=j||en(le)||[];return b(Cn.slice())},[j,le]),ln=e.useMemo(function(){if(he){var Cn=Ut.slice();if(!Cn.includes(m)){var Sn=st||0;Sn>=0&&(Sn||Nt==="left"||!Nt)&&Cn.splice(Sn,0,m),Nt==="right"&&Cn.splice(Ut.length,0,m)}var fn=Cn.indexOf(m);Cn=Cn.filter(function(zn,cn){return zn!==m||cn===fn});var on=Ut[fn],hn;Nt?hn=Nt:hn=on?on.fixed:null;var wn=(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},Ke,{className:"".concat(E,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",$e),"fixed",hn),"className","".concat(E,"-row-expand-icon-cell")),"width",qt),"render",function(cn,dr,mr){var fo=Je(dr,mr),ro=We.has(fo),Qr=dt?dt(dr):!0,lo=St({prefixCls:E,expanded:ro,expandable:Qr,record:dr,onExpand:Qe});return ht?e.createElement("span",{onClick:function(gr){return gr.stopPropagation()}},lo):lo});return Cn.map(function(zn){return zn===m?wn:zn})}return Ut.filter(function(zn){return zn!==m})},[he,Ut,Je,We,St,lt]),dn=e.useMemo(function(){var Cn=ln;return o&&(Cn=o(Cn)),Cn.length||(Cn=[{render:function(){return null}}]),Cn},[o,ln,lt]),xn=e.useMemo(function(){return lt==="rtl"?it(w(dn)):w(dn)},[dn,lt,_t]),yn=e.useMemo(function(){for(var Cn=-1,Sn=xn.length-1;Sn>=0;Sn-=1){var fn=xn[Sn].fixed;if(fn==="left"||fn===!0){Cn=Sn;break}}if(Cn>=0)for(var on=0;on<=Cn;on+=1){var hn=xn[on].fixed;if(hn!=="left"&&hn!==!0)return!0}var wn=xn.findIndex(function(dr){var mr=dr.fixed;return mr==="right"});if(wn>=0)for(var zn=wn;zn=wn-$e?tn(function(zn){return(0,k.Z)((0,k.Z)({},zn),{},{isHiddenScrollBar:!0})}):tn(function(zn){return(0,k.Z)((0,k.Z)({},zn),{},{isHiddenScrollBar:!1})})}})},Sn=function(on){tn(function(hn){return(0,k.Z)((0,k.Z)({},hn),{},{scrollLeft:on/dt*st||0})})};return e.useImperativeHandle(E,function(){return{setScrollLeft:Sn,checkScrollBarVisible:Cn}}),e.useEffect(function(){var fn=(0,ue.Z)(document.body,"mouseup",Fn,!1),on=(0,ue.Z)(document.body,"mousemove",Gn,!1);return Cn(),function(){fn.remove(),on.remove()}},[lt,xn]),e.useEffect(function(){if(he.current){for(var fn=[],on=(0,Ze.bn)(he.current);on;)fn.push(on),on=on.parentElement;return fn.forEach(function(hn){return hn.addEventListener("scroll",Cn,!1)}),window.addEventListener("resize",Cn,!1),window.addEventListener("scroll",Cn,!1),Je.addEventListener("scroll",Cn,!1),function(){fn.forEach(function(hn){return hn.removeEventListener("scroll",Cn)}),window.removeEventListener("resize",Cn),window.removeEventListener("scroll",Cn),Je.removeEventListener("scroll",Cn)}}},[Je]),e.useEffect(function(){_t.isHiddenScrollBar||tn(function(fn){var on=he.current;return on?(0,k.Z)((0,k.Z)({},fn),{},{scrollLeft:on.scrollLeft/on.scrollWidth*on.clientWidth}):fn})},[_t.isHiddenScrollBar]),dt<=st||!lt||_t.isHiddenScrollBar?null:e.createElement("div",{style:{height:(0,q.Z)(),width:st,bottom:$e},className:"".concat(St,"-sticky-scroll")},e.createElement("div",{onMouseDown:Kn,ref:ht,className:C()("".concat(St,"-sticky-scroll-bar"),(0,Oe.Z)({},"".concat(St,"-sticky-scroll-bar-active"),xn)),style:{width:"".concat(lt,"px"),transform:"translate3d(".concat(_t.scrollLeft,"px, 0, 0)")}}))},nt=e.forwardRef(_e);function ft(a){return null}var Ot=ft;function Dt(a){return null}var Ft=Dt,Xt="rc-table",Tt=[],Zt={};function jt(){return"No Data"}function Qt(a,o){var E=(0,k.Z)({rowKey:"key",prefixCls:Xt,emptyText:jt},a),j=E.prefixCls,le=E.className,he=E.rowClassName,We=E.style,$e=E.data,Je=E.rowKey,Qe=E.scroll,St=E.tableLayout,dt=E.direction,st=E.title,lt=E.footer,ht=E.summary,qt=E.caption,Nt=E.id,_t=E.showHeader,tn=E.components,Ut=E.emptyText,ln=E.onRow,dn=E.onHeaderRow,xn=E.onScroll,yn=E.internalHooks,nr=E.transformColumns,Fn=E.internalRefs,Kn=E.tailor,Gn=E.getContainerWidth,Cn=E.sticky,Sn=E.rowHoverable,fn=Sn===void 0?!0:Sn,on=$e||Tt,hn=!!on.length,wn=yn===p,zn=e.useCallback(function(Or,Nr){return(0,ie.Z)(tn,Or)||Nr},[tn]),cn=e.useMemo(function(){return typeof Je=="function"?Je:function(Or){var Nr=Or&&Or[Je];return Nr}},[Je]),dr=zn(["body"]),mr=Fe(),fo=(0,Q.Z)(mr,3),ro=fo[0],Qr=fo[1],lo=fo[2],Zo=He(E,on,cn),gr=(0,Q.Z)(Zo,6),yr=gr[0],ho=gr[1],$o=gr[2],Nn=gr[3],_n=gr[4],$n=gr[5],Ln=Qe==null?void 0:Qe.x,Rr=e.useState(0),Mr=(0,Q.Z)(Rr,2),oo=Mr[0],Jr=Mr[1],Ao=$((0,k.Z)((0,k.Z)((0,k.Z)({},E),yr),{},{expandable:!!yr.expandedRowRender,columnTitle:yr.columnTitle,expandedKeys:$o,getRowKey:cn,onTriggerExpand:$n,expandIcon:Nn,expandIconColumnIndex:yr.expandIconColumnIndex,direction:dt,scrollWidth:wn&&Kn&&typeof Ln=="number"?Ln:null,clientWidth:oo}),wn?nr:null),zo=(0,Q.Z)(Ao,4),Bn=zo[0],Wn=zo[1],Br=zo[2],ao=zo[3],Fr=Br!=null?Br:Ln,Ko=e.useMemo(function(){return{columns:Bn,flattenColumns:Wn}},[Bn,Wn]),bo=e.useRef(),ma=e.useRef(),io=e.useRef(),Ar=e.useRef();e.useImperativeHandle(o,function(){return{nativeElement:bo.current,scrollTo:function(Nr){var Vo;if(io.current instanceof HTMLElement){var da=Nr.index,Uo=Nr.top,za=Nr.key;if(et(Uo)){var Na;(Na=io.current)===null||Na===void 0||Na.scrollTo({top:Uo})}else{var Da,Ga=za!=null?za:cn(on[da]);(Da=io.current.querySelector('[data-row-key="'.concat(Ga,'"]')))===null||Da===void 0||Da.scrollIntoView()}}else(Vo=io.current)!==null&&Vo!==void 0&&Vo.scrollTo&&io.current.scrollTo(Nr)}}});var qr=e.useRef(),eo=e.useState(!1),Po=(0,Q.Z)(eo,2),So=Po[0],Tr=Po[1],mo=e.useState(!1),Ur=(0,Q.Z)(mo,2),Ho=Ur[0],yo=Ur[1],Qo=e.useState(new Map),Ia=(0,Q.Z)(Qo,2),Va=Ia[0],so=Ia[1],Ua=G(Wn),Jo=Ua.map(function(Or){return Va.get(Or)}),sa=e.useMemo(function(){return Jo},[Jo.join("_")]),oa=zt(sa,Wn,dt),qo=Qe&&ye(Qe.y),_o=Qe&&ye(Fr)||!!yr.fixed,ca=_o&&Wn.some(function(Or){var Nr=Or.fixed;return Nr}),$a=e.useRef(),pa=bt(Cn,j),ha=pa.isSticky,ni=pa.offsetHeader,ri=pa.offsetSummary,oi=pa.offsetScroll,Ja=pa.stickyClassName,ai=pa.container,or=e.useMemo(function(){return ht==null?void 0:ht(on)},[ht,on]),zr=(qo||ha)&&e.isValidElement(or)&&or.type===u&&or.props.fixed,Co,Ro,ea;qo&&(Ro={overflowY:hn?"scroll":"auto",maxHeight:Qe.y}),_o&&(Co={overflowX:"auto"},qo||(Ro={overflowY:"hidden"}),ea={width:Fr===!0?"auto":Fr,minWidth:"100%"});var ua=e.useCallback(function(Or,Nr){so(function(Vo){if(Vo.get(Or)!==Nr){var da=new Map(Vo);return da.set(Or,Nr),da}return Vo})},[]),ga=qe(null),Wo=(0,Q.Z)(ga,2),nl=Wo[0],vi=Wo[1];function qa(Or,Nr){Nr&&(typeof Nr=="function"?Nr(Or):Nr.scrollLeft!==Or&&(Nr.scrollLeft=Or,Nr.scrollLeft!==Or&&setTimeout(function(){Nr.scrollLeft=Or},0)))}var Aa=(0,N.Z)(function(Or){var Nr=Or.currentTarget,Vo=Or.scrollLeft,da=dt==="rtl",Uo=typeof Vo=="number"?Vo:Nr.scrollLeft,za=Nr||Zt;if(!vi()||vi()===za){var Na;nl(za),qa(Uo,ma.current),qa(Uo,io.current),qa(Uo,qr.current),qa(Uo,(Na=$a.current)===null||Na===void 0?void 0:Na.setScrollLeft)}var Da=Nr||ma.current;if(Da){var Ga=wn&&Kn&&typeof Fr=="number"?Fr:Da.scrollWidth,ui=Da.clientWidth;if(Ga===ui){Tr(!1),yo(!1);return}da?(Tr(-Uo0)):(Tr(Uo>0),yo(Uo1?Nt-fn:0,hn=(0,k.Z)((0,k.Z)((0,k.Z)({},nr),Qe),{},{flex:"0 0 ".concat(fn,"px"),width:"".concat(fn,"px"),marginRight:on,pointerEvents:"auto"}),wn=e.useMemo(function(){return dt?Cn<=1:Kn===0||Cn===0||Cn>1},[Cn,Kn,dt]);wn?hn.visibility="hidden":dt&&(hn.height=st==null?void 0:st(Cn));var zn=wn?function(){return null}:lt,cn={};return(Cn===0||Kn===0)&&(cn.rowSpan=1,cn.colSpan=1),e.createElement(ct,(0,J.Z)({className:C()(qt,St),ellipsis:E.ellipsis,align:E.align,scope:E.rowScope,component:We,prefixCls:o.prefixCls,key:ln,record:Je,index:he,renderIndex:$e,dataIndex:ht,render:zn,shouldCellUpdate:E.shouldCellUpdate},dn,{appendNode:xn,additionalProps:(0,k.Z)((0,k.Z)({},yn),{},{style:hn},cn)}))}var Pn=Jt,Dn=["data","index","className","rowKey","style","extra","getHeight"],Un=e.forwardRef(function(a,o){var E=a.data,j=a.index,le=a.className,he=a.rowKey,We=a.style,$e=a.extra,Je=a.getHeight,Qe=(0,d.Z)(a,Dn),St=E.record,dt=E.indent,st=E.index,lt=n(Y,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ht=lt.scrollX,qt=lt.flattenColumns,Nt=lt.prefixCls,_t=lt.fixColumn,tn=lt.componentWidth,Ut=n(sn,["getComponent"]),ln=Ut.getComponent,dn=fe(St,he,j,dt),xn=ln(["body","row"],"div"),yn=ln(["body","cell"],"div"),nr=dn.rowSupportExpand,Fn=dn.expanded,Kn=dn.rowProps,Gn=dn.expandedRowRender,Cn=dn.expandedRowClassName,Sn;if(nr&&Fn){var fn=Gn(St,j,dt+1,Fn),on=je(Cn,St,j,dt),hn={};_t&&(hn={style:(0,Oe.Z)({},"--virtual-width","".concat(tn,"px"))});var wn="".concat(Nt,"-expanded-row-cell");Sn=e.createElement(xn,{className:C()("".concat(Nt,"-expanded-row"),"".concat(Nt,"-expanded-row-level-").concat(dt+1),on)},e.createElement(ct,{component:yn,prefixCls:Nt,className:C()(wn,(0,Oe.Z)({},"".concat(wn,"-fixed"),_t)),additionalProps:hn},fn))}var zn=(0,k.Z)((0,k.Z)({},We),{},{width:ht});$e&&(zn.position="absolute",zn.pointerEvents="none");var cn=e.createElement(xn,(0,J.Z)({},Kn,Qe,{"data-row-key":he,ref:nr?null:o,className:C()(le,"".concat(Nt,"-row"),Kn==null?void 0:Kn.className,(0,Oe.Z)({},"".concat(Nt,"-row-extra"),$e)),style:(0,k.Z)((0,k.Z)({},zn),Kn==null?void 0:Kn.style)}),qt.map(function(dr,mr){return e.createElement(Pn,{key:mr,component:yn,rowInfo:dn,column:dr,colIndex:mr,indent:dt,index:j,renderIndex:st,record:St,inverse:$e,getHeight:Je})}));return nr?e.createElement("div",{ref:o},cn,Sn):cn}),Mn=de(Un),Vn=Mn,Jn=e.forwardRef(function(a,o){var E=a.data,j=a.onScroll,le=n(Y,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),he=le.flattenColumns,We=le.onColumnResize,$e=le.getRowKey,Je=le.expandedKeys,Qe=le.prefixCls,St=le.childrenColumnName,dt=le.scrollX,st=le.direction,lt=n(sn),ht=lt.sticky,qt=lt.scrollY,Nt=lt.listItemHeight,_t=lt.getComponent,tn=lt.onScroll,Ut=e.useRef(),ln=Me(E,St,Je,$e),dn=e.useMemo(function(){var Sn=0;return he.map(function(fn){var on=fn.width,hn=fn.key;return Sn+=on,[hn,on,Sn]})},[he]),xn=e.useMemo(function(){return dn.map(function(Sn){return Sn[2]})},[dn]);e.useEffect(function(){dn.forEach(function(Sn){var fn=(0,Q.Z)(Sn,2),on=fn[0],hn=fn[1];We(on,hn)})},[dn]),e.useImperativeHandle(o,function(){var Sn,fn={scrollTo:function(hn){var wn;(wn=Ut.current)===null||wn===void 0||wn.scrollTo(hn)},nativeElement:(Sn=Ut.current)===null||Sn===void 0?void 0:Sn.nativeElement};return Object.defineProperty(fn,"scrollLeft",{get:function(){var hn;return((hn=Ut.current)===null||hn===void 0?void 0:hn.getScrollInfo().x)||0},set:function(hn){var wn;(wn=Ut.current)===null||wn===void 0||wn.scrollTo({left:hn})}}),fn});var yn=function(fn,on){var hn,wn=(hn=ln[on])===null||hn===void 0?void 0:hn.record,zn=fn.onCell;if(zn){var cn,dr=zn(wn,on);return(cn=dr==null?void 0:dr.rowSpan)!==null&&cn!==void 0?cn:1}return 1},nr=function(fn){var on=fn.start,hn=fn.end,wn=fn.getSize,zn=fn.offsetY;if(hn<0)return null;for(var cn=he.filter(function(Nn){return yn(Nn,on)===0}),dr=on,mr=function(_n){if(cn=cn.filter(function($n){return yn($n,_n)===0}),!cn.length)return dr=_n,1},fo=on;fo>=0&&!mr(fo);fo-=1);for(var ro=he.filter(function(Nn){return yn(Nn,hn)!==1}),Qr=hn,lo=function(_n){if(ro=ro.filter(function($n){return yn($n,_n)!==1}),!ro.length)return Qr=Math.max(_n-1,hn),1},Zo=hn;Zo1})&&gr.push(_n)},ho=dr;ho<=Qr;ho+=1)yr(ho);var $o=gr.map(function(Nn){var _n=ln[Nn],$n=$e(_n.record,Nn),Ln=function(oo){var Jr=Nn+oo-1,Ao=$e(ln[Jr].record,Jr),zo=wn($n,Ao);return zo.bottom-zo.top},Rr=wn($n);return e.createElement(Vn,{key:Nn,data:_n,rowKey:$n,index:Nn,style:{top:-zn+Rr.top},extra:!0,getHeight:Ln})});return $o},Fn=e.useMemo(function(){return{columnsOffset:xn}},[xn]),Kn="".concat(Qe,"-tbody"),Gn=_t(["body","wrapper"]),Cn={};return ht&&(Cn.position="sticky",Cn.bottom=0,(0,we.Z)(ht)==="object"&&ht.offsetScroll&&(Cn.bottom=ht.offsetScroll)),e.createElement(bn.Provider,{value:Fn},e.createElement(un.Z,{fullHeight:!1,ref:Ut,prefixCls:"".concat(Kn,"-virtual"),styles:{horizontalScrollBar:Cn},className:Kn,height:qt,itemHeight:Nt||24,data:ln,itemKey:function(fn){return $e(fn.record)},component:Gn,scrollWidth:dt,direction:st,onVirtualScroll:function(fn){var on,hn=fn.x;j({currentTarget:(on=Ut.current)===null||on===void 0?void 0:on.nativeElement,scrollLeft:hn})},onScroll:tn,extraRender:nr},function(Sn,fn,on){var hn=$e(Sn.record,fn);return e.createElement(Vn,{data:Sn,rowKey:hn,index:fn,style:on.style})}))}),rr=de(Jn),ar=rr,qn=function(o,E){var j=E.ref,le=E.onScroll;return e.createElement(ar,{ref:j,data:o,onScroll:le})};function Lt(a,o){var E=a.data,j=a.columns,le=a.scroll,he=a.sticky,We=a.prefixCls,$e=We===void 0?Xt:We,Je=a.className,Qe=a.listItemHeight,St=a.components,dt=a.onScroll,st=le||{},lt=st.x,ht=st.y;typeof lt!="number"&&(lt=1),typeof ht!="number"&&(ht=500);var qt=(0,M.zX)(function(tn,Ut){return(0,ie.Z)(St,tn)||Ut}),Nt=(0,M.zX)(dt),_t=e.useMemo(function(){return{sticky:he,scrollY:ht,listItemHeight:Qe,getComponent:qt,onScroll:Nt}},[he,ht,Qe,qt,Nt]);return e.createElement(sn.Provider,{value:_t},e.createElement(En,(0,J.Z)({},a,{className:C()(Je,"".concat($e,"-virtual")),scroll:(0,k.Z)((0,k.Z)({},le),{},{x:lt}),components:(0,k.Z)((0,k.Z)({},St),{},{body:E!=null&&E.length?qn:void 0}),columns:j,internalHooks:p,tailor:!0,ref:o})))}var yt=e.forwardRef(Lt);function Et(a){return h(yt,a)}var It=Et(),wt=null,nn=a=>null,Rn=a=>null,kn=t(84105),Cr=t(82661),Sr=t(34643),hr=t(34061),er=t(18929);function xr(a){const[o,E]=(0,e.useState)(null);return[(0,e.useCallback)((he,We,$e)=>{const Je=o!=null?o:he,Qe=Math.min(Je||0,he),St=Math.max(Je||0,he),dt=We.slice(Qe,St+1).map(ht=>a(ht)),st=dt.some(ht=>!$e.has(ht)),lt=[];return dt.forEach(ht=>{st?($e.has(ht)||lt.push(ht),$e.add(ht)):($e.delete(ht),lt.push(ht))}),E(st?St:null),lt},[o]),he=>{E(he)}]}var Er=t(32383),Dr=t(62673),cr=t(75727),Ir=t(47889);const ir={},Zr="SELECT_ALL",kr="SELECT_INVERT",jr="SELECT_NONE",Kr=[],Gr=(a,o)=>{let E=[];return(o||[]).forEach(j=>{E.push(j),j&&typeof j=="object"&&a in j&&(E=[].concat((0,ke.Z)(E),(0,ke.Z)(Gr(a,j[a]))))}),E};var Yn=(a,o)=>{const{preserveSelectedRowKeys:E,selectedRowKeys:j,defaultSelectedRowKeys:le,getCheckboxProps:he,onChange:We,onSelect:$e,onSelectAll:Je,onSelectInvert:Qe,onSelectNone:St,onSelectMultiple:dt,columnWidth:st,type:lt,selections:ht,fixed:qt,renderCell:Nt,hideSelectAll:_t,checkStrictly:tn=!0}=o||{},{prefixCls:Ut,data:ln,pageData:dn,getRecordByKey:xn,getRowKey:yn,expandType:nr,childrenColumnName:Fn,locale:Kn,getPopupContainer:Gn}=a,Cn=(0,Er.ln)("Table"),[Sn,fn]=xr(Nn=>Nn),[on,hn]=(0,er.Z)(j||le||Kr,{value:j}),wn=e.useRef(new Map),zn=(0,e.useCallback)(Nn=>{if(E){const _n=new Map;Nn.forEach($n=>{let Ln=xn($n);!Ln&&wn.current.has($n)&&(Ln=wn.current.get($n)),_n.set($n,Ln)}),wn.current=_n}},[xn,E]);e.useEffect(()=>{zn(on)},[on]);const cn=(0,e.useMemo)(()=>Gr(Fn,dn),[Fn,dn]),{keyEntities:dr}=(0,e.useMemo)(()=>{if(tn)return{keyEntities:null};let Nn=ln;if(E){const _n=new Set(cn.map((Ln,Rr)=>yn(Ln,Rr))),$n=Array.from(wn.current).reduce((Ln,Rr)=>{let[Mr,oo]=Rr;return _n.has(Mr)?Ln:Ln.concat(oo)},[]);Nn=[].concat((0,ke.Z)(Nn),(0,ke.Z)($n))}return(0,hr.I8)(Nn,{externalGetKey:yn,childrenPropName:Fn})},[ln,yn,tn,Fn,E,cn]),mr=(0,e.useMemo)(()=>{const Nn=new Map;return cn.forEach((_n,$n)=>{const Ln=yn(_n,$n),Rr=(he?he(_n):null)||{};Nn.set(Ln,Rr)}),Nn},[cn,yn,he]),fo=(0,e.useCallback)(Nn=>{const _n=yn(Nn);let $n;return mr.has(_n)?$n=mr.get(yn(Nn)):$n=he?he(Nn):void 0,!!($n!=null&&$n.disabled)},[mr,yn]),[ro,Qr]=(0,e.useMemo)(()=>{if(tn)return[on||[],[]];const{checkedKeys:Nn,halfCheckedKeys:_n}=(0,Sr.S)(on,!0,dr,fo);return[Nn||[],_n]},[on,tn,dr,fo]),lo=(0,e.useMemo)(()=>{const Nn=lt==="radio"?ro.slice(0,1):ro;return new Set(Nn)},[ro,lt]),Zo=(0,e.useMemo)(()=>lt==="radio"?new Set:new Set(Qr),[Qr,lt]);e.useEffect(()=>{o||hn(Kr)},[!!o]);const gr=(0,e.useCallback)((Nn,_n)=>{let $n,Ln;zn(Nn),E?($n=Nn,Ln=Nn.map(Rr=>wn.current.get(Rr))):($n=[],Ln=[],Nn.forEach(Rr=>{const Mr=xn(Rr);Mr!==void 0&&($n.push(Rr),Ln.push(Mr))})),hn($n),We==null||We($n,Ln,{type:_n})},[hn,xn,We,E]),yr=(0,e.useCallback)((Nn,_n,$n,Ln)=>{if($e){const Rr=$n.map(Mr=>xn(Mr));$e(xn(Nn),_n,Rr,Ln)}gr($n,"single")},[$e,xn,gr]),ho=(0,e.useMemo)(()=>!ht||_t?null:(ht===!0?[Zr,kr,jr]:ht).map(_n=>_n===Zr?{key:"all",text:Kn.selectionAll,onSelect(){gr(ln.map(($n,Ln)=>yn($n,Ln)).filter($n=>{const Ln=mr.get($n);return!(Ln!=null&&Ln.disabled)||lo.has($n)}),"all")}}:_n===kr?{key:"invert",text:Kn.selectInvert,onSelect(){const $n=new Set(lo);dn.forEach((Rr,Mr)=>{const oo=yn(Rr,Mr),Jr=mr.get(oo);Jr!=null&&Jr.disabled||($n.has(oo)?$n.delete(oo):$n.add(oo))});const Ln=Array.from($n);Qe&&(Cn.deprecated(!1,"onSelectInvert","onChange"),Qe(Ln)),gr(Ln,"invert")}}:_n===jr?{key:"none",text:Kn.selectNone,onSelect(){St==null||St(),gr(Array.from(lo).filter($n=>{const Ln=mr.get($n);return Ln==null?void 0:Ln.disabled}),"none")}}:_n).map(_n=>Object.assign(Object.assign({},_n),{onSelect:function(){for(var $n,Ln,Rr=arguments.length,Mr=new Array(Rr),oo=0;oo{var _n;if(!o)return Nn.filter(Ar=>Ar!==ir);let $n=(0,ke.Z)(Nn);const Ln=new Set(lo),Rr=cn.map(yn).filter(Ar=>!mr.get(Ar).disabled),Mr=Rr.every(Ar=>Ln.has(Ar)),oo=Rr.some(Ar=>Ln.has(Ar)),Jr=()=>{const Ar=[];Mr?Rr.forEach(eo=>{Ln.delete(eo),Ar.push(eo)}):Rr.forEach(eo=>{Ln.has(eo)||(Ln.add(eo),Ar.push(eo))});const qr=Array.from(Ln);Je==null||Je(!Mr,qr.map(eo=>xn(eo)),Ar.map(eo=>xn(eo))),gr(qr,"all"),fn(null)};let Ao,zo;if(lt!=="radio"){let Ar;if(ho){const Tr={getPopupContainer:Gn,items:ho.map((mo,Ur)=>{const{key:Ho,text:yo,onSelect:Qo}=mo;return{key:Ho!=null?Ho:Ur,onClick:()=>{Qo==null||Qo(Rr)},label:yo}})};Ar=e.createElement("div",{className:`${Ut}-selection-extra`},e.createElement(cr.Z,{menu:Tr,getPopupContainer:Gn},e.createElement("span",null,e.createElement(kn.Z,null))))}const qr=cn.map((Tr,mo)=>{const Ur=yn(Tr,mo),Ho=mr.get(Ur)||{};return Object.assign({checked:Ln.has(Ur)},Ho)}).filter(Tr=>{let{disabled:mo}=Tr;return mo}),eo=!!qr.length&&qr.length===cn.length,Po=eo&&qr.every(Tr=>{let{checked:mo}=Tr;return mo}),So=eo&&qr.some(Tr=>{let{checked:mo}=Tr;return mo});zo=e.createElement(Dr.default,{checked:eo?Po:!!cn.length&&Mr,indeterminate:eo?!Po&&So:!Mr&&oo,onChange:Jr,disabled:cn.length===0||eo,"aria-label":Ar?"Custom selection":"Select all",skipGroup:!0}),Ao=!_t&&e.createElement("div",{className:`${Ut}-selection`},zo,Ar)}let Bn;lt==="radio"?Bn=(Ar,qr,eo)=>{const Po=yn(qr,eo),So=Ln.has(Po),Tr=mr.get(Po);return{node:e.createElement(Ir.ZP,Object.assign({},Tr,{checked:So,onClick:mo=>{var Ur;mo.stopPropagation(),(Ur=Tr==null?void 0:Tr.onClick)===null||Ur===void 0||Ur.call(Tr,mo)},onChange:mo=>{var Ur;Ln.has(Po)||yr(Po,!0,[Po],mo.nativeEvent),(Ur=Tr==null?void 0:Tr.onChange)===null||Ur===void 0||Ur.call(Tr,mo)}})),checked:So}}:Bn=(Ar,qr,eo)=>{var Po;const So=yn(qr,eo),Tr=Ln.has(So),mo=Zo.has(So),Ur=mr.get(So);let Ho;return nr==="nest"?Ho=mo:Ho=(Po=Ur==null?void 0:Ur.indeterminate)!==null&&Po!==void 0?Po:mo,{node:e.createElement(Dr.default,Object.assign({},Ur,{indeterminate:Ho,checked:Tr,skipGroup:!0,onClick:yo=>{var Qo;yo.stopPropagation(),(Qo=Ur==null?void 0:Ur.onClick)===null||Qo===void 0||Qo.call(Ur,yo)},onChange:yo=>{var Qo;const{nativeEvent:Ia}=yo,{shiftKey:Va}=Ia,so=Rr.findIndex(Jo=>Jo===So),Ua=ro.some(Jo=>Rr.includes(Jo));if(Va&&tn&&Ua){const Jo=Sn(so,Rr,Ln),sa=Array.from(Ln);dt==null||dt(!Tr,sa.map(oa=>xn(oa)),Jo.map(oa=>xn(oa))),gr(sa,"multiple")}else{const Jo=ro;if(tn){const sa=Tr?(0,Cr._5)(Jo,So):(0,Cr.L0)(Jo,So);yr(So,!Tr,sa,Ia)}else{const sa=(0,Sr.S)([].concat((0,ke.Z)(Jo),[So]),!0,dr,fo),{checkedKeys:oa,halfCheckedKeys:qo}=sa;let _o=oa;if(Tr){const ca=new Set(oa);ca.delete(So),_o=(0,Sr.S)(Array.from(ca),{checked:!1,halfCheckedKeys:qo},dr,fo).checkedKeys}yr(So,!Tr,_o,Ia)}}fn(Tr?null:so),(Qo=Ur==null?void 0:Ur.onChange)===null||Qo===void 0||Qo.call(Ur,yo)}})),checked:Tr}};const Wn=(Ar,qr,eo)=>{const{node:Po,checked:So}=Bn(Ar,qr,eo);return Nt?Nt(So,qr,eo,Po):Po};if(!$n.includes(ir))if($n.findIndex(Ar=>{var qr;return((qr=Ar[Ke])===null||qr===void 0?void 0:qr.columnType)==="EXPAND_COLUMN"})===0){const[Ar,...qr]=$n;$n=[Ar,ir].concat((0,ke.Z)(qr))}else $n=[ir].concat((0,ke.Z)($n));const Br=$n.indexOf(ir);$n=$n.filter((Ar,qr)=>Ar!==ir||qr===Br);const ao=$n[Br-1],Fr=$n[Br+1];let Ko=qt;Ko===void 0&&((Fr==null?void 0:Fr.fixed)!==void 0?Ko=Fr.fixed:(ao==null?void 0:ao.fixed)!==void 0&&(Ko=ao.fixed)),Ko&&ao&&((_n=ao[Ke])===null||_n===void 0?void 0:_n.columnType)==="EXPAND_COLUMN"&&ao.fixed===void 0&&(ao.fixed=Ko);const bo=C()(`${Ut}-selection-col`,{[`${Ut}-selection-col-with-dropdown`]:ht&<==="checkbox"}),ma=()=>o!=null&&o.columnTitle?typeof o.columnTitle=="function"?o.columnTitle(zo):o.columnTitle:Ao,io={fixed:Ko,width:st,className:`${Ut}-selection-column`,title:ma(),render:Wn,onCell:o.onCell,[Ke]:{className:bo}};return $n.map(Ar=>Ar===ir?io:Ar)},[yn,cn,o,ro,lo,Zo,st,ho,nr,mr,dt,yr,fo]),lo]},br=t(2738);function vr(a,o){return a._antProxy=a._antProxy||{},Object.keys(o).forEach(E=>{if(!(E in a._antProxy)){const j=a[E];a._antProxy[E]=j,a[E]=o[E]}}),a}function xo(a,o){return(0,e.useImperativeHandle)(a,()=>{const E=o(),{nativeElement:j}=E;return typeof Proxy!="undefined"?new Proxy(j,{get(le,he){return E[he]?E[he]:Reflect.get(le,he)}}):vr(j,E)})}var Lo=t(83010),vo=t(48755),Eo=t(38406),Bo=t(83397),wo=t(31756),Xr=t(13783),co=t(85981),to=t(31709),lr=t(29787),Lr=t(57700);function Hr(a){return o=>{const{prefixCls:E,onExpand:j,record:le,expanded:he,expandable:We}=o,$e=`${E}-row-expand-icon`;return e.createElement("button",{type:"button",onClick:Je=>{j(le,Je),Je.stopPropagation()},className:C()($e,{[`${$e}-spaced`]:!We,[`${$e}-expanded`]:We&&he,[`${$e}-collapsed`]:We&&!he}),"aria-label":he?a.collapse:a.expand,"aria-expanded":he})}}var In=Hr;function Hn(a){return(E,j)=>{const le=E.querySelector(`.${a}-container`);let he=j;if(le){const We=getComputedStyle(le),$e=parseInt(We.borderLeftWidth,10),Je=parseInt(We.borderRightWidth,10);he=j-$e-Je}return he}}const On=(a,o)=>"key"in a&&a.key!==void 0&&a.key!==null?a.key:a.dataIndex?Array.isArray(a.dataIndex)?a.dataIndex.join("."):a.dataIndex:o;function jn(a,o){return o?`${o}-${a}`:`${a}`}const fr=(a,o)=>typeof a=="function"?a(o):a,$r=(a,o)=>{const E=fr(a,o);return Object.prototype.toString.call(E)==="[object Object]"?"":E};var Oo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},gn=Oo,An=t(7657),tr=function(o,E){return e.createElement(An.Z,(0,J.Z)({},o,{ref:E,icon:gn}))},wr=e.forwardRef(tr),Pr=wr,To=t(9981),Io=t(40192);function Xo(a){const o=e.useRef(a),E=(0,Io.Z)();return[()=>o.current,j=>{o.current=j,E()}]}var sr=t(7939),Xn=t(584),Vr=t(93041),_r=t(78857),go=t(18287),No=t(47472),ko=t(49397),aa=a=>{const{value:o,filterSearch:E,tablePrefixCls:j,locale:le,onChange:he}=a;return E?e.createElement("div",{className:`${j}-filter-dropdown-search`},e.createElement(ko.Z,{prefix:e.createElement(No.Z,null),placeholder:le.filterSearchPlaceholder,onChange:he,value:o,htmlSize:1,className:`${j}-filter-dropdown-search-input`})):null},Do=t(10228);const ba=a=>{const{keyCode:o}=a;o===Do.Z.ENTER&&a.stopPropagation()};var Sa=e.forwardRef((a,o)=>e.createElement("div",{className:a.className,onClick:E=>E.stopPropagation(),onKeyDown:ba,ref:o},a.children));function ta(a){let o=[];return(a||[]).forEach(E=>{let{value:j,children:le}=E;o.push(j),le&&(o=[].concat((0,ke.Z)(o),(0,ke.Z)(ta(le))))}),o}function La(a){return a.some(o=>{let{children:E}=o;return E})}function xa(a,o){return typeof o=="string"||typeof o=="number"?o==null?void 0:o.toString().toLowerCase().includes(a.trim().toLowerCase()):!1}function Ma(a){let{filters:o,prefixCls:E,filteredKeys:j,filterMultiple:le,searchValue:he,filterSearch:We}=a;return o.map(($e,Je)=>{const Qe=String($e.value);if($e.children)return{key:Qe||Je,label:$e.text,popupClassName:`${E}-dropdown-submenu`,children:Ma({filters:$e.children,prefixCls:E,filteredKeys:j,filterMultiple:le,searchValue:he,filterSearch:We})};const St=le?Dr.default:Ir.ZP,dt={key:$e.value!==void 0?Qe:Je,label:e.createElement(e.Fragment,null,e.createElement(St,{checked:j.includes(Qe)}),e.createElement("span",null,$e.text))};return he.trim()?typeof We=="function"?We(he,$e)?dt:null:xa(he,$e.text)?dt:null:dt})}function Ra(a){return a||[]}var Fa=a=>{var o,E,j,le;const{tablePrefixCls:he,prefixCls:We,column:$e,dropdownPrefixCls:Je,columnKey:Qe,filterOnClose:St,filterMultiple:dt,filterMode:st="menu",filterSearch:lt=!1,filterState:ht,triggerFilter:qt,locale:Nt,children:_t,getPopupContainer:tn,rootClassName:Ut}=a,{filterResetToDefaultFilteredValue:ln,defaultFilteredValue:dn,filterDropdownProps:xn={},filterDropdownOpen:yn,filterDropdownVisible:nr,onFilterDropdownVisibleChange:Fn,onFilterDropdownOpenChange:Kn}=$e,[Gn,Cn]=e.useState(!1),Sn=!!(ht&&(!((o=ht.filteredKeys)===null||o===void 0)&&o.length||ht.forceFiltered)),fn=Bn=>{var Wn;Cn(Bn),(Wn=xn.onOpenChange)===null||Wn===void 0||Wn.call(xn,Bn),Kn==null||Kn(Bn),Fn==null||Fn(Bn)},on=(le=(j=(E=xn.open)!==null&&E!==void 0?E:yn)!==null&&j!==void 0?j:nr)!==null&&le!==void 0?le:Gn,hn=ht==null?void 0:ht.filteredKeys,[wn,zn]=Xo(Ra(hn)),cn=Bn=>{let{selectedKeys:Wn}=Bn;zn(Wn)},dr=(Bn,Wn)=>{let{node:Br,checked:ao}=Wn;cn(dt?{selectedKeys:Bn}:{selectedKeys:ao&&Br.key?[Br.key]:[]})};e.useEffect(()=>{Gn&&cn({selectedKeys:Ra(hn)})},[hn]);const[mr,fo]=e.useState([]),ro=Bn=>{fo(Bn)},[Qr,lo]=e.useState(""),Zo=Bn=>{const{value:Wn}=Bn.target;lo(Wn)};e.useEffect(()=>{Gn||lo("")},[Gn]);const gr=Bn=>{const Wn=Bn!=null&&Bn.length?Bn:null;if(Wn===null&&(!ht||!ht.filteredKeys)||(0,g.Z)(Wn,ht==null?void 0:ht.filteredKeys,!0))return null;qt({column:$e,key:Qe,filteredKeys:Wn})},yr=()=>{fn(!1),gr(wn())},ho=function(){let{confirm:Bn,closeDropdown:Wn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Bn&&gr([]),Wn&&fn(!1),lo(""),zn(ln?(dn||[]).map(Br=>String(Br)):[])},$o=function(){let{closeDropdown:Bn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Bn&&fn(!1),gr(wn())},Nn=(Bn,Wn)=>{Wn.source==="trigger"&&(Bn&&hn!==void 0&&zn(Ra(hn)),fn(Bn),!Bn&&!$e.filterDropdown&&St&&yr())},_n=C()({[`${Je}-menu-without-submenu`]:!La($e.filters||[])}),$n=Bn=>{if(Bn.target.checked){const Wn=ta($e==null?void 0:$e.filters).map(Br=>String(Br));zn(Wn)}else zn([])},Ln=Bn=>{let{filters:Wn}=Bn;return(Wn||[]).map((Br,ao)=>{const Fr=String(Br.value),Ko={title:Br.text,key:Br.value!==void 0?Fr:String(ao)};return Br.children&&(Ko.children=Ln({filters:Br.children})),Ko})},Rr=Bn=>{var Wn;return Object.assign(Object.assign({},Bn),{text:Bn.title,value:Bn.key,children:((Wn=Bn.children)===null||Wn===void 0?void 0:Wn.map(Br=>Rr(Br)))||[]})};let Mr;const{direction:oo,renderEmpty:Jr}=e.useContext(vo.E_);if(typeof $e.filterDropdown=="function")Mr=$e.filterDropdown({prefixCls:`${Je}-custom`,setSelectedKeys:Bn=>cn({selectedKeys:Bn}),selectedKeys:wn(),confirm:$o,clearFilters:ho,filters:$e.filters,visible:on,close:()=>{fn(!1)}});else if($e.filterDropdown)Mr=$e.filterDropdown;else{const Bn=wn()||[],Wn=()=>{var ao,Fr;const Ko=(ao=Jr==null?void 0:Jr("Table.filter"))!==null&&ao!==void 0?ao:e.createElement(Xn.Z,{image:Xn.Z.PRESENTED_IMAGE_SIMPLE,description:Nt.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(($e.filters||[]).length===0)return Ko;if(st==="tree")return e.createElement(e.Fragment,null,e.createElement(aa,{filterSearch:lt,value:Qr,onChange:Zo,tablePrefixCls:he,locale:Nt}),e.createElement("div",{className:`${he}-filter-dropdown-tree`},dt?e.createElement(Dr.default,{checked:Bn.length===ta($e.filters).length,indeterminate:Bn.length>0&&Bn.lengthtypeof lt=="function"?lt(Qr,Rr(io)):xa(Qr,io.title):void 0})));const bo=Ma({filters:$e.filters||[],filterSearch:lt,prefixCls:We,filteredKeys:wn(),filterMultiple:dt,searchValue:Qr}),ma=bo.every(io=>io===null);return e.createElement(e.Fragment,null,e.createElement(aa,{filterSearch:lt,value:Qr,onChange:Zo,tablePrefixCls:he,locale:Nt}),ma?Ko:e.createElement(Vr.default,{selectable:!0,multiple:dt,prefixCls:`${Je}-menu`,className:_n,onSelect:cn,onDeselect:cn,selectedKeys:Bn,getPopupContainer:tn,openKeys:mr,onOpenChange:ro,items:bo}))},Br=()=>ln?(0,g.Z)((dn||[]).map(ao=>String(ao)),Bn,!0):Bn.length===0;Mr=e.createElement(e.Fragment,null,Wn(),e.createElement("div",{className:`${We}-dropdown-btns`},e.createElement(sr.ZP,{type:"link",size:"small",disabled:Br(),onClick:()=>ho()},Nt.filterReset),e.createElement(sr.ZP,{type:"primary",size:"small",onClick:yr},Nt.filterConfirm)))}$e.filterDropdown&&(Mr=e.createElement(_r.J,{selectable:void 0},Mr)),Mr=e.createElement(Sa,{className:`${We}-dropdown`},Mr);const Ao=()=>{let Bn;return typeof $e.filterIcon=="function"?Bn=$e.filterIcon(Sn):$e.filterIcon?Bn=$e.filterIcon:Bn=e.createElement(Pr,null),e.createElement("span",{role:"button",tabIndex:-1,className:C()(`${We}-trigger`,{active:Sn}),onClick:Wn=>{Wn.stopPropagation()}},Bn)},zo=(0,To.Z)({trigger:["click"],placement:oo==="rtl"?"bottomLeft":"bottomRight",children:Ao(),getPopupContainer:tn},Object.assign(Object.assign({},xn),{rootClassName:C()(Ut,xn.rootClassName),open:on,onOpenChange:Nn,dropdownRender:()=>typeof(xn==null?void 0:xn.dropdownRender)=="function"?xn.dropdownRender(Mr):Mr}));return e.createElement("div",{className:`${We}-column`},e.createElement("span",{className:`${he}-column-title`},_t),e.createElement(cr.Z,Object.assign({},zo)))};const ya=(a,o,E)=>{let j=[];return(a||[]).forEach((le,he)=>{var We;const $e=jn(he,E);if(le.filters||"filterDropdown"in le||"onFilter"in le)if("filteredValue"in le){let Je=le.filteredValue;"filterDropdown"in le||(Je=(We=Je==null?void 0:Je.map(String))!==null&&We!==void 0?We:Je),j.push({column:le,key:On(le,$e),filteredKeys:Je,forceFiltered:le.filtered})}else j.push({column:le,key:On(le,$e),filteredKeys:o&&le.defaultFilteredValue?le.defaultFilteredValue:void 0,forceFiltered:le.filtered});"children"in le&&(j=[].concat((0,ke.Z)(j),(0,ke.Z)(ya(le.children,o,$e))))}),j};function ia(a,o,E,j,le,he,We,$e,Je){return E.map((Qe,St)=>{const dt=jn(St,$e),{filterOnClose:st=!0,filterMultiple:lt=!0,filterMode:ht,filterSearch:qt}=Qe;let Nt=Qe;if(Nt.filters||Nt.filterDropdown){const _t=On(Nt,dt),tn=j.find(Ut=>{let{key:ln}=Ut;return _t===ln});Nt=Object.assign(Object.assign({},Nt),{title:Ut=>e.createElement(Fa,{tablePrefixCls:a,prefixCls:`${a}-filter`,dropdownPrefixCls:o,column:Nt,columnKey:_t,filterState:tn,filterOnClose:st,filterMultiple:lt,filterMode:ht,filterSearch:qt,triggerFilter:he,locale:le,getPopupContainer:We,rootClassName:Je},fr(Qe.title,Ut))})}return"children"in Nt&&(Nt=Object.assign(Object.assign({},Nt),{children:ia(a,o,Nt.children,j,le,he,We,dt,Je)})),Nt})}const pr=a=>{const o={};return a.forEach(E=>{let{key:j,filteredKeys:le,column:he}=E;const We=j,{filters:$e,filterDropdown:Je}=he;if(Je)o[We]=le||null;else if(Array.isArray(le)){const Qe=ta($e);o[We]=Qe.filter(St=>le.includes(String(St)))}else o[We]=null}),o},ur=(a,o,E)=>o.reduce((le,he)=>{const{column:{onFilter:We,filters:$e},filteredKeys:Je}=he;return We&&Je&&Je.length?le.map(Qe=>Object.assign({},Qe)).filter(Qe=>Je.some(St=>{const dt=ta($e),st=dt.findIndex(ht=>String(ht)===String(St)),lt=st!==-1?dt[st]:St;return Qe[E]&&(Qe[E]=ur(Qe[E],o,E)),We(lt,Qe)})):le},a),Mo=a=>a.flatMap(o=>"children"in o?[o].concat((0,ke.Z)(Mo(o.children||[]))):[o]);var uo=a=>{const{prefixCls:o,dropdownPrefixCls:E,mergedColumns:j,onFilterChange:le,getPopupContainer:he,locale:We,rootClassName:$e}=a,Je=(0,Er.ln)("Table"),Qe=e.useMemo(()=>Mo(j||[]),[j]),[St,dt]=e.useState(()=>ya(Qe,!0)),st=e.useMemo(()=>{const Nt=ya(Qe,!1);if(Nt.length===0)return Nt;let _t=!0,tn=!0;if(Nt.forEach(Ut=>{let{filteredKeys:ln}=Ut;ln!==void 0?_t=!1:tn=!1}),_t){const Ut=(Qe||[]).map((ln,dn)=>On(ln,jn(dn)));return St.filter(ln=>{let{key:dn}=ln;return Ut.includes(dn)}).map(ln=>{const dn=Qe[Ut.findIndex(xn=>xn===ln.key)];return Object.assign(Object.assign({},ln),{column:Object.assign(Object.assign({},ln.column),dn),forceFiltered:dn.filtered})})}return Nt},[Qe,St]),lt=e.useMemo(()=>pr(st),[st]),ht=Nt=>{const _t=st.filter(tn=>{let{key:Ut}=tn;return Ut!==Nt.key});_t.push(Nt),dt(_t),le(pr(_t),_t)};return[Nt=>ia(o,E,Nt,st,We,ht,he,void 0,$e),st,lt]},ra=(a,o,E)=>{const j=e.useRef({});function le(he){var We;if(!j.current||j.current.data!==a||j.current.childrenColumnName!==o||j.current.getRowKey!==E){let Je=function(Qe){Qe.forEach((St,dt)=>{const st=E(St,dt);$e.set(st,St),St&&typeof St=="object"&&o in St&&Je(St[o]||[])})};const $e=new Map;Je(a),j.current={data:a,childrenColumnName:o,kvMap:$e,getRowKey:E}}return(We=j.current.kvMap)===null||We===void 0?void 0:We.get(he)}return[le]},na=function(a,o){var E={};for(var j in a)Object.prototype.hasOwnProperty.call(a,j)&&o.indexOf(j)<0&&(E[j]=a[j]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,j=Object.getOwnPropertySymbols(a);le{const he=a[le];typeof he!="function"&&(E[le]=he)}),E}function va(a,o,E){const j=E&&typeof E=="object"?E:{},{total:le=0}=j,he=na(j,["total"]),[We,$e]=(0,e.useState)(()=>({current:"defaultCurrent"in he?he.defaultCurrent:1,pageSize:"defaultPageSize"in he?he.defaultPageSize:la})),Je=(0,To.Z)(We,he,{total:le>0?le:a}),Qe=Math.ceil((le||a)/Je.pageSize);Je.current>Qe&&(Je.current=Qe||1);const St=(st,lt)=>{$e({current:st!=null?st:1,pageSize:lt||Je.pageSize})},dt=(st,lt)=>{var ht;E&&((ht=E.onChange)===null||ht===void 0||ht.call(E,st,lt)),St(st,lt),o(st,lt||(Je==null?void 0:Je.pageSize))};return E===!1?[{},()=>{}]:[Object.assign(Object.assign({},Je),{onChange:dt}),St]}var Ea=va,wa=t(89489),ti=t(59477),ka=t(25399);const no="ascend",Wr="descend",Yr=a=>typeof a.sorter=="object"&&typeof a.sorter.multiple=="number"?a.sorter.multiple:!1,Go=a=>typeof a=="function"?a:a&&typeof a=="object"&&a.compare?a.compare:!1,Yo=(a,o)=>o?a[a.indexOf(o)+1]:a[0],Oa=(a,o,E)=>{let j=[];const le=(he,We)=>{j.push({column:he,key:On(he,We),multiplePriority:Yr(he),sortOrder:he.sortOrder})};return(a||[]).forEach((he,We)=>{const $e=jn(We,E);he.children?("sortOrder"in he&&le(he,$e),j=[].concat((0,ke.Z)(j),(0,ke.Z)(Oa(he.children,o,$e)))):he.sorter&&("sortOrder"in he?le(he,$e):o&&he.defaultSortOrder&&j.push({column:he,key:On(he,$e),multiplePriority:Yr(he),sortOrder:he.defaultSortOrder}))}),j},Ba=(a,o,E,j,le,he,We,$e)=>(o||[]).map((Qe,St)=>{const dt=jn(St,$e);let st=Qe;if(st.sorter){const lt=st.sortDirections||le,ht=st.showSorterTooltip===void 0?We:st.showSorterTooltip,qt=On(st,dt),Nt=E.find(Fn=>{let{key:Kn}=Fn;return Kn===qt}),_t=Nt?Nt.sortOrder:null,tn=Yo(lt,_t);let Ut;if(Qe.sortIcon)Ut=Qe.sortIcon({sortOrder:_t});else{const Fn=lt.includes(no)&&e.createElement(ti.Z,{className:C()(`${a}-column-sorter-up`,{active:_t===no})}),Kn=lt.includes(Wr)&&e.createElement(wa.Z,{className:C()(`${a}-column-sorter-down`,{active:_t===Wr})});Ut=e.createElement("span",{className:C()(`${a}-column-sorter`,{[`${a}-column-sorter-full`]:!!(Fn&&Kn)})},e.createElement("span",{className:`${a}-column-sorter-inner`,"aria-hidden":"true"},Fn,Kn))}const{cancelSort:ln,triggerAsc:dn,triggerDesc:xn}=he||{};let yn=ln;tn===Wr?yn=xn:tn===no&&(yn=dn);const nr=typeof ht=="object"?Object.assign({title:yn},ht):{title:yn};st=Object.assign(Object.assign({},st),{className:C()(st.className,{[`${a}-column-sort`]:_t}),title:Fn=>{const Kn=`${a}-column-sorters`,Gn=e.createElement("span",{className:`${a}-column-title`},fr(Qe.title,Fn)),Cn=e.createElement("div",{className:Kn},Gn,Ut);return ht?typeof ht!="boolean"&&(ht==null?void 0:ht.target)==="sorter-icon"?e.createElement("div",{className:`${Kn} ${a}-column-sorters-tooltip-target-sorter`},Gn,e.createElement(ka.Z,Object.assign({},nr),Ut)):e.createElement(ka.Z,Object.assign({},nr),Cn):Cn},onHeaderCell:Fn=>{var Kn;const Gn=((Kn=Qe.onHeaderCell)===null||Kn===void 0?void 0:Kn.call(Qe,Fn))||{},Cn=Gn.onClick,Sn=Gn.onKeyDown;Gn.onClick=hn=>{j({column:Qe,key:qt,sortOrder:tn,multiplePriority:Yr(Qe)}),Cn==null||Cn(hn)},Gn.onKeyDown=hn=>{hn.keyCode===Do.Z.ENTER&&(j({column:Qe,key:qt,sortOrder:tn,multiplePriority:Yr(Qe)}),Sn==null||Sn(hn))};const fn=$r(Qe.title,{}),on=fn==null?void 0:fn.toString();return _t&&(Gn["aria-sort"]=_t==="ascend"?"ascending":"descending"),Gn["aria-label"]=on||"",Gn.className=C()(Gn.className,`${a}-column-has-sorters`),Gn.tabIndex=0,Qe.ellipsis&&(Gn.title=(fn!=null?fn:"").toString()),Gn}})}return"children"in st&&(st=Object.assign(Object.assign({},st),{children:Ba(a,st.children,E,j,le,he,We,dt)})),st}),Ya=a=>{const{column:o,sortOrder:E}=a;return{column:o,order:E,field:o.dataIndex,columnKey:o.key}},ja=a=>{const o=a.filter(E=>{let{sortOrder:j}=E;return j}).map(Ya);if(o.length===0&&a.length){const E=a.length-1;return Object.assign(Object.assign({},Ya(a[E])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return o.length<=1?o[0]||{}:o},Ta=(a,o,E)=>{const j=o.slice().sort((We,$e)=>$e.multiplePriority-We.multiplePriority),le=a.slice(),he=j.filter(We=>{let{column:{sorter:$e},sortOrder:Je}=We;return Go($e)&&Je});return he.length?le.sort((We,$e)=>{for(let Je=0;Je{const $e=We[E];return $e?Object.assign(Object.assign({},We),{[E]:Ta($e,o,E)}):We}):le};var Ka=a=>{const{prefixCls:o,mergedColumns:E,sortDirections:j,tableLocale:le,showSorterTooltip:he,onSorterChange:We}=a,[$e,Je]=e.useState(Oa(E,!0)),Qe=(qt,Nt)=>{const _t=[];return qt.forEach((tn,Ut)=>{const ln=jn(Ut,Nt);if(_t.push(On(tn,ln)),Array.isArray(tn.children)){const dn=Qe(tn.children,ln);_t.push.apply(_t,(0,ke.Z)(dn))}}),_t},St=e.useMemo(()=>{let qt=!0;const Nt=Oa(E,!1);if(!Nt.length){const ln=Qe(E);return $e.filter(dn=>{let{key:xn}=dn;return ln.includes(xn)})}const _t=[];function tn(ln){qt?_t.push(ln):_t.push(Object.assign(Object.assign({},ln),{sortOrder:null}))}let Ut=null;return Nt.forEach(ln=>{Ut===null?(tn(ln),ln.sortOrder&&(ln.multiplePriority===!1?qt=!1:Ut=!0)):(Ut&&ln.multiplePriority!==!1||(qt=!1),tn(ln))}),_t},[E,$e]),dt=e.useMemo(()=>{var qt,Nt;const _t=St.map(tn=>{let{column:Ut,sortOrder:ln}=tn;return{column:Ut,order:ln}});return{sortColumns:_t,sortColumn:(qt=_t[0])===null||qt===void 0?void 0:qt.column,sortOrder:(Nt=_t[0])===null||Nt===void 0?void 0:Nt.order}},[St]),st=qt=>{let Nt;qt.multiplePriority===!1||!St.length||St[0].multiplePriority===!1?Nt=[qt]:Nt=[].concat((0,ke.Z)(St.filter(_t=>{let{key:tn}=_t;return tn!==qt.key})),[qt]),Je(Nt),We(ja(Nt),Nt)};return[qt=>Ba(o,qt,St,st,j,le,he),St,dt,()=>ja(St)]};const Qa=(a,o)=>a.map(j=>{const le=Object.assign({},j);return le.title=fr(j.title,o),"children"in le&&(le.children=Qa(le.children,o)),le});var Pi=a=>[e.useCallback(E=>Qa(E,a),[a])],Ri=$t((a,o)=>{const{_renderTimes:E}=a,{_renderTimes:j}=o;return E!==j}),Ni=Et((a,o)=>{const{_renderTimes:E}=a,{_renderTimes:j}=o;return E!==j}),Qn=t(36237),Ha=t(17835),Wa=t(63356),Di=t(16931),Mi=t(51636),Bi=a=>{const{componentCls:o,lineWidth:E,lineType:j,tableBorderColor:le,tableHeaderBg:he,tablePaddingVertical:We,tablePaddingHorizontal:$e,calc:Je}=a,Qe=`${(0,Qn.unit)(E)} ${j} ${le}`,St=(dt,st,lt)=>({[`&${o}-${dt}`]:{[`> ${o}-container`]:{[`> ${o}-content, > ${o}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`${(0,Qn.unit)(Je(st).mul(-1).equal())} - ${(0,Qn.unit)(Je(Je(lt).add(E)).mul(-1).equal())}`}}}}}});return{[`${o}-wrapper`]:{[`${o}${o}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${o}-title`]:{border:Qe,borderBottom:0},[`> ${o}-container`]:{borderInlineStart:Qe,borderTop:Qe,[` - > ${o}-content, - > ${o}-header, - > ${o}-body, - > ${o}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Qe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Qe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${o}-cell-fix-right-first::after`]:{borderInlineEnd:Qe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`${(0,Qn.unit)(Je(We).mul(-1).equal())} ${(0,Qn.unit)(Je(Je($e).add(E)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:E,bottom:0,borderInlineEnd:Qe,content:'""'}}}}}},[`&${o}-scroll-horizontal`]:{[`> ${o}-container > ${o}-body`]:{"> table > tbody":{[` - > tr${o}-expanded-row, - > tr${o}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},St("middle",a.tablePaddingVerticalMiddle,a.tablePaddingHorizontalMiddle)),St("small",a.tablePaddingVerticalSmall,a.tablePaddingHorizontalSmall)),{[`> ${o}-footer`]:{border:Qe,borderTop:0}}),[`${o}-cell`]:{[`${o}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Qn.unit)(E)} 0 ${(0,Qn.unit)(E)} ${he}`}},[`${o}-bordered ${o}-cell-scrollbar`]:{borderInlineEnd:Qe}}}},Ti=a=>{const{componentCls:o}=a;return{[`${o}-wrapper`]:{[`${o}-cell-ellipsis`]:Object.assign(Object.assign({},Wa.vS),{wordBreak:"keep-all",[` - &${o}-cell-fix-left-last, - &${o}-cell-fix-right-first - `]:{overflow:"visible",[`${o}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${o}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Zi=a=>{const{componentCls:o}=a;return{[`${o}-wrapper`]:{[`${o}-tbody > tr${o}-placeholder`]:{textAlign:"center",color:a.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:a.colorBgContainer}}}}},Ai=a=>{const{componentCls:o,antCls:E,motionDurationSlow:j,lineWidth:le,paddingXS:he,lineType:We,tableBorderColor:$e,tableExpandIconBg:Je,tableExpandColumnWidth:Qe,borderRadius:St,tablePaddingVertical:dt,tablePaddingHorizontal:st,tableExpandedRowBg:lt,paddingXXS:ht,expandIconMarginTop:qt,expandIconSize:Nt,expandIconHalfInner:_t,expandIconScale:tn,calc:Ut}=a,ln=`${(0,Qn.unit)(le)} ${We} ${$e}`,dn=Ut(ht).sub(le).equal();return{[`${o}-wrapper`]:{[`${o}-expand-icon-col`]:{width:Qe},[`${o}-row-expand-icon-cell`]:{textAlign:"center",[`${o}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${o}-row-indent`]:{height:1,float:"left"},[`${o}-row-expand-icon`]:Object.assign(Object.assign({},(0,Wa.Nd)(a)),{position:"relative",float:"left",width:Nt,height:Nt,color:"inherit",lineHeight:(0,Qn.unit)(Nt),background:Je,border:ln,borderRadius:St,transform:`scale(${tn})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${j} ease-out`,content:'""'},"&::before":{top:_t,insetInlineEnd:dn,insetInlineStart:dn,height:le},"&::after":{top:dn,bottom:dn,insetInlineStart:_t,width:le,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${o}-row-indent + ${o}-row-expand-icon`]:{marginTop:qt,marginInlineEnd:he},[`tr${o}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:lt}},[`${E}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${o}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Qn.unit)(Ut(dt).mul(-1).equal())} ${(0,Qn.unit)(Ut(st).mul(-1).equal())}`,padding:`${(0,Qn.unit)(dt)} ${(0,Qn.unit)(st)}`}}}},zi=a=>{const{componentCls:o,antCls:E,iconCls:j,tableFilterDropdownWidth:le,tableFilterDropdownSearchWidth:he,paddingXXS:We,paddingXS:$e,colorText:Je,lineWidth:Qe,lineType:St,tableBorderColor:dt,headerIconColor:st,fontSizeSM:lt,tablePaddingHorizontal:ht,borderRadius:qt,motionDurationSlow:Nt,colorTextDescription:_t,colorPrimary:tn,tableHeaderFilterActiveBg:Ut,colorTextDisabled:ln,tableFilterDropdownBg:dn,tableFilterDropdownHeight:xn,controlItemBgHover:yn,controlItemBgActive:nr,boxShadowSecondary:Fn,filterDropdownMenuBg:Kn,calc:Gn}=a,Cn=`${E}-dropdown`,Sn=`${o}-filter-dropdown`,fn=`${E}-tree`,on=`${(0,Qn.unit)(Qe)} ${St} ${dt}`;return[{[`${o}-wrapper`]:{[`${o}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${o}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Gn(We).mul(-1).equal(),marginInline:`${(0,Qn.unit)(We)} ${(0,Qn.unit)(Gn(ht).div(2).mul(-1).equal())}`,padding:`0 ${(0,Qn.unit)(We)}`,color:st,fontSize:lt,borderRadius:qt,cursor:"pointer",transition:`all ${Nt}`,"&:hover":{color:_t,background:Ut},"&.active":{color:tn}}}},{[`${E}-dropdown`]:{[Sn]:Object.assign(Object.assign({},(0,Wa.Wf)(a)),{minWidth:le,backgroundColor:dn,borderRadius:qt,boxShadow:Fn,overflow:"hidden",[`${Cn}-menu`]:{maxHeight:xn,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Kn,"&:empty::after":{display:"block",padding:`${(0,Qn.unit)($e)} 0`,color:ln,fontSize:lt,textAlign:"center",content:'"Not Found"'}},[`${Sn}-tree`]:{paddingBlock:`${(0,Qn.unit)($e)} 0`,paddingInline:$e,[fn]:{padding:0},[`${fn}-treenode ${fn}-node-content-wrapper:hover`]:{backgroundColor:yn},[`${fn}-treenode-checkbox-checked ${fn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:nr}}},[`${Sn}-search`]:{padding:$e,borderBottom:on,"&-input":{input:{minWidth:he},[j]:{color:ln}}},[`${Sn}-checkall`]:{width:"100%",marginBottom:We,marginInlineStart:We},[`${Sn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Qn.unit)(Gn($e).sub(Qe).equal())} ${(0,Qn.unit)($e)}`,overflow:"hidden",borderTop:on}})}},{[`${E}-dropdown ${Sn}, ${Sn}-submenu`]:{[`${E}-checkbox-wrapper + span`]:{paddingInlineStart:$e,color:Je},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Li=a=>{const{componentCls:o,lineWidth:E,colorSplit:j,motionDurationSlow:le,zIndexTableFixed:he,tableBg:We,zIndexTableSticky:$e,calc:Je}=a,Qe=j;return{[`${o}-wrapper`]:{[` - ${o}-cell-fix-left, - ${o}-cell-fix-right - `]:{position:"sticky !important",zIndex:he,background:We},[` - ${o}-cell-fix-left-first::after, - ${o}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Je(E).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${le}`,content:'""',pointerEvents:"none"},[`${o}-cell-fix-left-all::after`]:{display:"none"},[` - ${o}-cell-fix-right-first::after, - ${o}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:Je(E).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${le}`,content:'""',pointerEvents:"none"},[`${o}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Je($e).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${le}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${o}-ping-left`]:{[`&:not(${o}-has-fix-left) ${o}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Qe}`},[` - ${o}-cell-fix-left-first::after, - ${o}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${Qe}`},[`${o}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${o}-ping-right`]:{[`&:not(${o}-has-fix-right) ${o}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Qe}`},[` - ${o}-cell-fix-right-first::after, - ${o}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${Qe}`}},[`${o}-fixed-column-gapped`]:{[` - ${o}-cell-fix-left-first::after, - ${o}-cell-fix-left-last::after, - ${o}-cell-fix-right-first::after, - ${o}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},Fi=a=>{const{componentCls:o,antCls:E,margin:j}=a;return{[`${o}-wrapper`]:{[`${o}-pagination${E}-pagination`]:{margin:`${(0,Qn.unit)(j)} 0`},[`${o}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:a.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ji=a=>{const{componentCls:o,tableRadius:E}=a;return{[`${o}-wrapper`]:{[o]:{[`${o}-title, ${o}-header`]:{borderRadius:`${(0,Qn.unit)(E)} ${(0,Qn.unit)(E)} 0 0`},[`${o}-title + ${o}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${o}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:E,borderStartEndRadius:E,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:E},"> *:last-child":{borderStartEndRadius:E}}},"&-footer":{borderRadius:`0 0 ${(0,Qn.unit)(E)} ${(0,Qn.unit)(E)}`}}}}},Ki=a=>{const{componentCls:o}=a;return{[`${o}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${o}-pagination-left`]:{justifyContent:"flex-end"},[`${o}-pagination-right`]:{justifyContent:"flex-start"},[`${o}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${o}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${o}-row-indent`]:{float:"right"}}}}},Hi=a=>{const{componentCls:o,antCls:E,iconCls:j,fontSizeIcon:le,padding:he,paddingXS:We,headerIconColor:$e,headerIconHoverColor:Je,tableSelectionColumnWidth:Qe,tableSelectedRowBg:St,tableSelectedRowHoverBg:dt,tableRowHoverBg:st,tablePaddingHorizontal:lt,calc:ht}=a;return{[`${o}-wrapper`]:{[`${o}-selection-col`]:{width:Qe,[`&${o}-selection-col-with-dropdown`]:{width:ht(Qe).add(le).add(ht(he).div(4)).equal()}},[`${o}-bordered ${o}-selection-col`]:{width:ht(Qe).add(ht(We).mul(2)).equal(),[`&${o}-selection-col-with-dropdown`]:{width:ht(Qe).add(le).add(ht(he).div(4)).add(ht(We).mul(2)).equal()}},[` - table tr th${o}-selection-column, - table tr td${o}-selection-column, - ${o}-selection-column - `]:{paddingInlineEnd:a.paddingXS,paddingInlineStart:a.paddingXS,textAlign:"center",[`${E}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${o}-selection-column${o}-cell-fix-left`]:{zIndex:ht(a.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${o}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${o}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${o}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Qn.unit)(ht(lt).div(4).equal()),[j]:{color:$e,fontSize:le,verticalAlign:"baseline","&:hover":{color:Je}}},[`${o}-tbody`]:{[`${o}-row`]:{[`&${o}-row-selected`]:{[`> ${o}-cell`]:{background:St,"&-row-hover":{background:dt}}},[`> ${o}-cell-row-hover`]:{background:st}}}}}},Wi=a=>{const{componentCls:o,tableExpandColumnWidth:E,calc:j}=a,le=(he,We,$e,Je)=>({[`${o}${o}-${he}`]:{fontSize:Je,[` - ${o}-title, - ${o}-footer, - ${o}-cell, - ${o}-thead > tr > th, - ${o}-tbody > tr > th, - ${o}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${(0,Qn.unit)(We)} ${(0,Qn.unit)($e)}`},[`${o}-filter-trigger`]:{marginInlineEnd:(0,Qn.unit)(j($e).div(2).mul(-1).equal())},[`${o}-expanded-row-fixed`]:{margin:`${(0,Qn.unit)(j(We).mul(-1).equal())} ${(0,Qn.unit)(j($e).mul(-1).equal())}`},[`${o}-tbody`]:{[`${o}-wrapper:only-child ${o}`]:{marginBlock:(0,Qn.unit)(j(We).mul(-1).equal()),marginInline:`${(0,Qn.unit)(j(E).sub($e).equal())} ${(0,Qn.unit)(j($e).mul(-1).equal())}`}},[`${o}-selection-extra`]:{paddingInlineStart:(0,Qn.unit)(j($e).div(4).equal())}}});return{[`${o}-wrapper`]:Object.assign(Object.assign({},le("middle",a.tablePaddingVerticalMiddle,a.tablePaddingHorizontalMiddle,a.tableFontSizeMiddle)),le("small",a.tablePaddingVerticalSmall,a.tablePaddingHorizontalSmall,a.tableFontSizeSmall))}},Vi=a=>{const{componentCls:o,marginXXS:E,fontSizeIcon:j,headerIconColor:le,headerIconHoverColor:he}=a;return{[`${o}-wrapper`]:{[`${o}-thead th${o}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${a.motionDurationSlow}, left 0s`,"&:hover":{background:a.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:a.colorPrimary},[` - &${o}-cell-fix-left:hover, - &${o}-cell-fix-right:hover - `]:{background:a.tableFixedHeaderSortActiveBg}},[`${o}-thead th${o}-column-sort`]:{background:a.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${o}-column-sort`]:{background:a.tableBodySortBg},[`${o}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${o}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${o}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${o}-column-sorter`]:{marginInlineStart:E,color:le,fontSize:0,transition:`color ${a.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:j,"&.active":{color:a.colorPrimary}},[`${o}-column-sorter-up + ${o}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${o}-column-sorters:hover ${o}-column-sorter`]:{color:he}}}},Ui=a=>{const{componentCls:o,opacityLoading:E,tableScrollThumbBg:j,tableScrollThumbBgHover:le,tableScrollThumbSize:he,tableScrollBg:We,zIndexTableSticky:$e,stickyScrollBarBorderRadius:Je,lineWidth:Qe,lineType:St,tableBorderColor:dt}=a,st=`${(0,Qn.unit)(Qe)} ${St} ${dt}`;return{[`${o}-wrapper`]:{[`${o}-sticky`]:{"&-holder":{position:"sticky",zIndex:$e,background:a.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Qn.unit)(he)} !important`,zIndex:$e,display:"flex",alignItems:"center",background:We,borderTop:st,opacity:E,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:he,backgroundColor:j,borderRadius:Je,transition:`all ${a.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:le}}}}}}},di=a=>{const{componentCls:o,lineWidth:E,tableBorderColor:j,calc:le}=a,he=`${(0,Qn.unit)(E)} ${a.lineType} ${j}`;return{[`${o}-wrapper`]:{[`${o}-summary`]:{position:"relative",zIndex:a.zIndexTableFixed,background:a.tableBg,"> tr":{"> th, > td":{borderBottom:he}}},[`div${o}-summary`]:{boxShadow:`0 ${(0,Qn.unit)(le(E).mul(-1).equal())} 0 ${j}`}}}},Gi=a=>{const{componentCls:o,motionDurationMid:E,lineWidth:j,lineType:le,tableBorderColor:he,calc:We}=a,$e=`${(0,Qn.unit)(j)} ${le} ${he}`,Je=`${o}-expanded-row-cell`;return{[`${o}-wrapper`]:{[`${o}-tbody-virtual`]:{[`${o}-tbody-virtual-holder-inner`]:{[` - & > ${o}-row, - & > div:not(${o}-row) > ${o}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${o}-cell`]:{borderBottom:$e,transition:`background ${E}`},[`${o}-expanded-row`]:{[`${Je}${Je}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Qn.unit)(j)})`,borderInlineEnd:"none"}}},[`${o}-bordered`]:{[`${o}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:$e,position:"absolute"},[`${o}-cell`]:{borderInlineEnd:$e,[`&${o}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:We(j).mul(-1).equal(),borderInlineStart:$e}}},[`&${o}-virtual`]:{[`${o}-placeholder ${o}-cell`]:{borderInlineEnd:$e,borderBottom:$e}}}}}};const Xi=a=>{const{componentCls:o,fontWeightStrong:E,tablePaddingVertical:j,tablePaddingHorizontal:le,tableExpandColumnWidth:he,lineWidth:We,lineType:$e,tableBorderColor:Je,tableFontSize:Qe,tableBg:St,tableRadius:dt,tableHeaderTextColor:st,motionDurationMid:lt,tableHeaderBg:ht,tableHeaderCellSplitColor:qt,tableFooterTextColor:Nt,tableFooterBg:_t,calc:tn}=a,Ut=`${(0,Qn.unit)(We)} ${$e} ${Je}`;return{[`${o}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Wa.dF)()),{[o]:Object.assign(Object.assign({},(0,Wa.Wf)(a)),{fontSize:Qe,background:St,borderRadius:`${(0,Qn.unit)(dt)} ${(0,Qn.unit)(dt)} 0 0`,scrollbarColor:`${a.tableScrollThumbBg} ${a.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Qn.unit)(dt)} ${(0,Qn.unit)(dt)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${o}-cell, - ${o}-thead > tr > th, - ${o}-tbody > tr > th, - ${o}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${(0,Qn.unit)(j)} ${(0,Qn.unit)(le)}`,overflowWrap:"break-word"},[`${o}-title`]:{padding:`${(0,Qn.unit)(j)} ${(0,Qn.unit)(le)}`},[`${o}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:st,fontWeight:E,textAlign:"start",background:ht,borderBottom:Ut,transition:`background ${lt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${o}-selection-column):not(${o}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:qt,transform:"translateY(-50%)",transition:`background-color ${lt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${o}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${lt}, border-color ${lt}`,borderBottom:Ut,[` - > ${o}-wrapper:only-child, - > ${o}-expanded-row-fixed > ${o}-wrapper:only-child - `]:{[o]:{marginBlock:(0,Qn.unit)(tn(j).mul(-1).equal()),marginInline:`${(0,Qn.unit)(tn(he).sub(le).equal())} - ${(0,Qn.unit)(tn(le).mul(-1).equal())}`,[`${o}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:st,fontWeight:E,textAlign:"start",background:ht,borderBottom:Ut,transition:`background ${lt} ease`}}},[`${o}-footer`]:{padding:`${(0,Qn.unit)(j)} ${(0,Qn.unit)(le)}`,color:Nt,background:_t}})}},ki=a=>{const{colorFillAlter:o,colorBgContainer:E,colorTextHeading:j,colorFillSecondary:le,colorFillContent:he,controlItemBgActive:We,controlItemBgActiveHover:$e,padding:Je,paddingSM:Qe,paddingXS:St,colorBorderSecondary:dt,borderRadiusLG:st,controlHeight:lt,colorTextPlaceholder:ht,fontSize:qt,fontSizeSM:Nt,lineHeight:_t,lineWidth:tn,colorIcon:Ut,colorIconHover:ln,opacityLoading:dn,controlInteractiveSize:xn}=a,yn=new Ha.FastColor(le).onBackground(E).toHexString(),nr=new Ha.FastColor(he).onBackground(E).toHexString(),Fn=new Ha.FastColor(o).onBackground(E).toHexString(),Kn=new Ha.FastColor(Ut),Gn=new Ha.FastColor(ln),Cn=xn/2-tn,Sn=Cn*2+tn*3;return{headerBg:Fn,headerColor:j,headerSortActiveBg:yn,headerSortHoverBg:nr,bodySortBg:Fn,rowHoverBg:Fn,rowSelectedBg:We,rowSelectedHoverBg:$e,rowExpandedBg:o,cellPaddingBlock:Je,cellPaddingInline:Je,cellPaddingBlockMD:Qe,cellPaddingInlineMD:St,cellPaddingBlockSM:St,cellPaddingInlineSM:St,borderColor:dt,headerBorderRadius:st,footerBg:Fn,footerColor:j,cellFontSize:qt,cellFontSizeMD:qt,cellFontSizeSM:qt,headerSplitColor:dt,fixedHeaderSortActiveBg:yn,headerFilterHoverBg:he,filterDropdownMenuBg:E,filterDropdownBg:E,expandIconBg:E,selectionColumnWidth:lt,stickyScrollBarBg:ht,stickyScrollBarBorderRadius:100,expandIconMarginTop:(qt*_t-tn*3)/2-Math.ceil((Nt*1.4-tn*3)/2),headerIconColor:Kn.clone().setA(Kn.a*dn).toRgbString(),headerIconHoverColor:Gn.clone().setA(Gn.a*dn).toRgbString(),expandIconHalfInner:Cn,expandIconSize:Sn,expandIconScale:xn/Sn}},fi=2;var Yi=(0,Di.I$)("Table",a=>{const{colorTextHeading:o,colorSplit:E,colorBgContainer:j,controlInteractiveSize:le,headerBg:he,headerColor:We,headerSortActiveBg:$e,headerSortHoverBg:Je,bodySortBg:Qe,rowHoverBg:St,rowSelectedBg:dt,rowSelectedHoverBg:st,rowExpandedBg:lt,cellPaddingBlock:ht,cellPaddingInline:qt,cellPaddingBlockMD:Nt,cellPaddingInlineMD:_t,cellPaddingBlockSM:tn,cellPaddingInlineSM:Ut,borderColor:ln,footerBg:dn,footerColor:xn,headerBorderRadius:yn,cellFontSize:nr,cellFontSizeMD:Fn,cellFontSizeSM:Kn,headerSplitColor:Gn,fixedHeaderSortActiveBg:Cn,headerFilterHoverBg:Sn,filterDropdownBg:fn,expandIconBg:on,selectionColumnWidth:hn,stickyScrollBarBg:wn,calc:zn}=a,cn=(0,Mi.mergeToken)(a,{tableFontSize:nr,tableBg:j,tableRadius:yn,tablePaddingVertical:ht,tablePaddingHorizontal:qt,tablePaddingVerticalMiddle:Nt,tablePaddingHorizontalMiddle:_t,tablePaddingVerticalSmall:tn,tablePaddingHorizontalSmall:Ut,tableBorderColor:ln,tableHeaderTextColor:We,tableHeaderBg:he,tableFooterTextColor:xn,tableFooterBg:dn,tableHeaderCellSplitColor:Gn,tableHeaderSortBg:$e,tableHeaderSortHoverBg:Je,tableBodySortBg:Qe,tableFixedHeaderSortActiveBg:Cn,tableHeaderFilterActiveBg:Sn,tableFilterDropdownBg:fn,tableRowHoverBg:St,tableSelectedRowBg:dt,tableSelectedRowHoverBg:st,zIndexTableFixed:fi,zIndexTableSticky:zn(fi).add(1).equal({unit:!1}),tableFontSizeMiddle:Fn,tableFontSizeSmall:Kn,tableSelectionColumnWidth:hn,tableExpandIconBg:on,tableExpandColumnWidth:zn(le).add(zn(a.padding).mul(2)).equal(),tableExpandedRowBg:lt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:wn,tableScrollThumbBgHover:o,tableScrollBg:E});return[Xi(cn),Fi(cn),di(cn),Vi(cn),zi(cn),Bi(cn),ji(cn),Ai(cn),di(cn),Zi(cn),Hi(cn),Li(cn),Ui(cn),Ti(cn),Wi(cn),Ki(cn),Gi(cn)]},ki,{unitless:{expandIconScale:!0}});const Qi=[],Ji=(a,o)=>{var E,j;const{prefixCls:le,className:he,rootClassName:We,style:$e,size:Je,bordered:Qe,dropdownPrefixCls:St,dataSource:dt,pagination:st,rowSelection:lt,rowKey:ht="key",rowClassName:qt,columns:Nt,children:_t,childrenColumnName:tn,onChange:Ut,getPopupContainer:ln,loading:dn,expandIcon:xn,expandable:yn,expandedRowRender:nr,expandIconColumnIndex:Fn,indentSize:Kn,scroll:Gn,sortDirections:Cn,locale:Sn,showSorterTooltip:fn={target:"full-header"},virtual:on}=a,hn=(0,Er.ln)("Table"),wn=e.useMemo(()=>Nt||en(_t),[Nt,_t]),zn=e.useMemo(()=>wn.some(or=>or.responsive),[wn]),cn=(0,Xr.Z)(zn),dr=e.useMemo(()=>{const or=new Set(Object.keys(cn).filter(zr=>cn[zr]));return wn.filter(zr=>!zr.responsive||zr.responsive.some(Co=>or.has(Co)))},[wn,cn]),mr=(0,br.Z)(a,["className","style","columns"]),{locale:fo=co.Z,direction:ro,table:Qr,renderEmpty:lo,getPrefixCls:Zo,getPopupContainer:gr}=e.useContext(vo.E_),yr=(0,wo.Z)(Je),ho=Object.assign(Object.assign({},fo.Table),Sn),$o=dt||Qi,Nn=Zo("table",le),_n=Zo("dropdown",St),[,$n]=(0,Lr.ZP)(),Ln=(0,Bo.Z)(Nn),[Rr,Mr,oo]=Yi(Nn,Ln),Jr=Object.assign(Object.assign({childrenColumnName:tn,expandIconColumnIndex:Fn},yn),{expandIcon:(E=yn==null?void 0:yn.expandIcon)!==null&&E!==void 0?E:(j=Qr==null?void 0:Qr.expandable)===null||j===void 0?void 0:j.expandIcon}),{childrenColumnName:Ao="children"}=Jr,zo=e.useMemo(()=>$o.some(or=>or==null?void 0:or[Ao])?"nest":nr||yn!=null&&yn.expandedRowRender?"row":null,[$o]),Bn={body:e.useRef(null)},Wn=Hn(Nn),Br=e.useRef(null),ao=e.useRef(null);xo(o,()=>Object.assign(Object.assign({},ao.current),{nativeElement:Br.current}));const Fr=e.useMemo(()=>typeof ht=="function"?ht:or=>or==null?void 0:or[ht],[ht]),[Ko]=ra($o,Ao,Fr),bo={},ma=function(or,zr){let Co=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ro,ea,ua,ga;const Wo=Object.assign(Object.assign({},bo),or);Co&&((Ro=bo.resetPagination)===null||Ro===void 0||Ro.call(bo),!((ea=Wo.pagination)===null||ea===void 0)&&ea.current&&(Wo.pagination.current=1),st&&((ua=st.onChange)===null||ua===void 0||ua.call(st,1,(ga=Wo.pagination)===null||ga===void 0?void 0:ga.pageSize))),Gn&&Gn.scrollToFirstRowOnChange!==!1&&Bn.body.current&&(0,Lo.Z)(0,{getContainer:()=>Bn.body.current}),Ut==null||Ut(Wo.pagination,Wo.filters,Wo.sorter,{currentDataSource:ur(Ta($o,Wo.sorterStates,Ao),Wo.filterStates,Ao),action:zr})},io=(or,zr)=>{ma({sorter:or,sorterStates:zr},"sort",!1)},[Ar,qr,eo,Po]=Ka({prefixCls:Nn,mergedColumns:dr,onSorterChange:io,sortDirections:Cn||["ascend","descend"],tableLocale:ho,showSorterTooltip:fn}),So=e.useMemo(()=>Ta($o,qr,Ao),[$o,qr]);bo.sorter=Po(),bo.sorterStates=qr;const Tr=(or,zr)=>{ma({filters:or,filterStates:zr},"filter",!0)},[mo,Ur,Ho]=uo({prefixCls:Nn,locale:ho,dropdownPrefixCls:_n,mergedColumns:dr,onFilterChange:Tr,getPopupContainer:ln||gr,rootClassName:C()(We,Ln)}),yo=ur(So,Ur,Ao);bo.filters=Ho,bo.filterStates=Ur;const Qo=e.useMemo(()=>{const or={};return Object.keys(Ho).forEach(zr=>{Ho[zr]!==null&&(or[zr]=Ho[zr])}),Object.assign(Object.assign({},eo),{filters:or})},[eo,Ho]),[Ia]=Pi(Qo),Va=(or,zr)=>{ma({pagination:Object.assign(Object.assign({},bo.pagination),{current:or,pageSize:zr})},"paginate")},[so,Ua]=Ea(yo.length,Va,st);bo.pagination=st===!1?{}:fa(so,st),bo.resetPagination=Ua;const Jo=e.useMemo(()=>{if(st===!1||!so.pageSize)return yo;const{current:or=1,total:zr,pageSize:Co=la}=so;return yo.lengthCo?yo.slice((or-1)*Co,or*Co):yo:yo.slice((or-1)*Co,or*Co)},[!!st,yo,so==null?void 0:so.current,so==null?void 0:so.pageSize,so==null?void 0:so.total]),[sa,oa]=Yn({prefixCls:Nn,data:yo,pageData:Jo,getRowKey:Fr,getRecordByKey:Ko,expandType:zo,childrenColumnName:Ao,locale:ho,getPopupContainer:ln||gr},lt),qo=(or,zr,Co)=>{let Ro;return typeof qt=="function"?Ro=C()(qt(or,zr,Co)):Ro=C()(qt),C()({[`${Nn}-row-selected`]:oa.has(Fr(or,zr))},Ro)};Jr.__PARENT_RENDER_ICON__=Jr.expandIcon,Jr.expandIcon=Jr.expandIcon||xn||In(ho),zo==="nest"&&Jr.expandIconColumnIndex===void 0?Jr.expandIconColumnIndex=lt?1:0:Jr.expandIconColumnIndex>0&<&&(Jr.expandIconColumnIndex-=1),typeof Jr.indentSize!="number"&&(Jr.indentSize=typeof Kn=="number"?Kn:15);const _o=e.useCallback(or=>Ia(sa(mo(Ar(or)))),[Ar,mo,sa]);let ca,$a;if(st!==!1&&(so!=null&&so.total)){let or;so.size?or=so.size:or=yr==="small"||yr==="middle"?"small":void 0;const zr=ea=>e.createElement(to.Z,Object.assign({},so,{className:C()(`${Nn}-pagination ${Nn}-pagination-${ea}`,so.className),size:or})),Co=ro==="rtl"?"left":"right",{position:Ro}=so;if(Ro!==null&&Array.isArray(Ro)){const ea=Ro.find(Wo=>Wo.includes("top")),ua=Ro.find(Wo=>Wo.includes("bottom")),ga=Ro.every(Wo=>`${Wo}`=="none");!ea&&!ua&&!ga&&($a=zr(Co)),ea&&(ca=zr(ea.toLowerCase().replace("top",""))),ua&&($a=zr(ua.toLowerCase().replace("bottom","")))}else $a=zr(Co)}let pa;typeof dn=="boolean"?pa={spinning:dn}:typeof dn=="object"&&(pa=Object.assign({spinning:!0},dn));const ha=C()(oo,Ln,`${Nn}-wrapper`,Qr==null?void 0:Qr.className,{[`${Nn}-wrapper-rtl`]:ro==="rtl"},he,We,Mr),ni=Object.assign(Object.assign({},Qr==null?void 0:Qr.style),$e),ri=typeof(Sn==null?void 0:Sn.emptyText)!="undefined"?Sn.emptyText:(lo==null?void 0:lo("Table"))||e.createElement(Eo.Z,{componentName:"Table"}),oi=on?Ni:Ri,Ja={},ai=e.useMemo(()=>{const{fontSize:or,lineHeight:zr,lineWidth:Co,padding:Ro,paddingXS:ea,paddingSM:ua}=$n,ga=Math.floor(or*zr);switch(yr){case"middle":return ua*2+ga+Co;case"small":return ea*2+ga+Co;default:return Ro*2+ga+Co}},[$n,yr]);return on&&(Ja.listItemHeight=ai),Rr(e.createElement("div",{ref:Br,className:ha,style:ni},e.createElement(lr.Z,Object.assign({spinning:!1},pa),ca,e.createElement(oi,Object.assign({},Ja,mr,{ref:ao,columns:dr,direction:ro,expandable:Jr,prefixCls:Nn,className:C()({[`${Nn}-middle`]:yr==="middle",[`${Nn}-small`]:yr==="small",[`${Nn}-bordered`]:Qe,[`${Nn}-empty`]:$o.length===0},oo,Ln,Mr),data:Jo,rowKey:Fr,rowClassName:qo,emptyText:ri,internalHooks:p,internalRefs:Bn,transformColumns:_o,getContainerWidth:Wn})),$a)))};var qi=e.forwardRef(Ji);const _i=(a,o)=>{const E=e.useRef(0);return E.current+=1,e.createElement(qi,Object.assign({},a,{ref:o,_renderTimes:E.current}))},Ca=e.forwardRef(_i);Ca.SELECTION_COLUMN=ir,Ca.EXPAND_COLUMN=m,Ca.SELECTION_ALL=Zr,Ca.SELECTION_INVERT=kr,Ca.SELECTION_NONE=jr,Ca.Column=nn,Ca.ColumnGroup=Rn,Ca.Summary=y;var el=Ca,tl=el},31691:function(Yt,Ge,t){t.d(Ge,{default:function(){return en}});var e=t(59301),m=t(99267),p=t(18785),Q=t(62772),N=t(92310),P=t.n(N),g=t(54476),D=t(20068),F=t(33885),n=t(42978),J=t(76190),O=t(75931),I=t(18929),Se=t(49658),Ne=(0,e.createContext)(null),ge=t(94480),se=t(29301),ve=t(6089),h=t(8654),de=t(16089),s=function(w){var it=w.activeTabOffset,R=w.horizontal,$=w.rtl,He=w.indicator,Pe=He===void 0?{}:He,Ae=Pe.size,qe=Pe.align,Fe=qe===void 0?"center":qe,at=(0,e.useState)(),Ct=(0,n.Z)(at,2),bt=Ct[0],vt=Ct[1],zt=(0,e.useRef)(),Kt=e.useCallback(function(ue){return typeof Ae=="function"?Ae(ue):typeof Ae=="number"?Ae:ue},[Ae]);function Rt(){de.Z.cancel(zt.current)}return(0,e.useEffect)(function(){var ue={};if(it)if(R){ue.width=Kt(it.width);var Re=$?"right":"left";Fe==="start"&&(ue[Re]=it[Re]),Fe==="center"&&(ue[Re]=it[Re]+it.width/2,ue.transform=$?"translateX(50%)":"translateX(-50%)"),Fe==="end"&&(ue[Re]=it[Re]+it.width,ue.transform="translateX(-100%)")}else ue.height=Kt(it.height),Fe==="start"&&(ue.top=it.top),Fe==="center"&&(ue.top=it.top+it.height/2,ue.transform="translateY(-50%)"),Fe==="end"&&(ue.top=it.top+it.height,ue.transform="translateY(-100%)");return Rt(),zt.current=(0,de.Z)(function(){vt(ue)}),Rt},[it,R,$,Fe,Kt]),{style:bt}},f=s,Y={width:0,height:0,left:0,top:0};function ee(b,w,it){return(0,e.useMemo)(function(){for(var R,$=new Map,He=w.get((R=b[0])===null||R===void 0?void 0:R.key)||Y,Pe=He.left+He.width,Ae=0;Aejt?(Tt=Ft,nt.current="x"):(Tt=Xt,nt.current="y"),w(-Tt,-Tt)&&Dt.preventDefault()}var Ot=(0,e.useRef)(null);Ot.current={onTouchStart:Ze,onTouchMove:Ye,onTouchEnd:_e,onWheel:ft},e.useEffect(function(){function Dt(Zt){Ot.current.onTouchStart(Zt)}function Ft(Zt){Ot.current.onTouchMove(Zt)}function Xt(Zt){Ot.current.onTouchEnd(Zt)}function Tt(Zt){Ot.current.onWheel(Zt)}return document.addEventListener("touchmove",Ft,{passive:!1}),document.addEventListener("touchend",Xt,{passive:!0}),b.current.addEventListener("touchstart",Dt,{passive:!0}),b.current.addEventListener("wheel",Tt,{passive:!1}),function(){document.removeEventListener("touchmove",Ft),document.removeEventListener("touchend",Xt)}},[])}var C=t(34280);function l(b){var w=(0,e.useState)(0),it=(0,n.Z)(w,2),R=it[0],$=it[1],He=(0,e.useRef)(0),Pe=(0,e.useRef)();return Pe.current=b,(0,C.o)(function(){var Ae;(Ae=Pe.current)===null||Ae===void 0||Ae.call(Pe)},[R]),function(){He.current===R&&(He.current+=1,$(He.current))}}function ie(b){var w=(0,e.useRef)([]),it=(0,e.useState)({}),R=(0,n.Z)(it,2),$=R[1],He=(0,e.useRef)(typeof b=="function"?b():b),Pe=l(function(){var qe=He.current;w.current.forEach(function(Fe){qe=Fe(qe)}),w.current=[],He.current=qe,$({})});function Ae(qe){w.current.push(qe),Pe()}return[He.current,Ae]}var z={width:0,height:0,left:0,top:0,right:0};function W(b,w,it,R,$,He,Pe){var Ae=Pe.tabs,qe=Pe.tabPosition,Fe=Pe.rtl,at,Ct,bt;return["top","bottom"].includes(qe)?(at="width",Ct=Fe?"right":"left",bt=Math.abs(it)):(at="height",Ct="top",bt=-it),(0,e.useMemo)(function(){if(!Ae.length)return[0,0];for(var vt=Ae.length,zt=vt,Kt=0;KtMath.floor(bt+w)){zt=Kt-1;break}}for(var ue=0,Re=vt-1;Re>=0;Re-=1){var Ze=b.get(Ae[Re].key)||z;if(Ze[Ct]=zt?[0,0]:[ue,zt]},[b,w,R,$,He,bt,qe,Ae.map(function(vt){return vt.key}).join("_"),Fe])}function c(b){var w;return b instanceof Map?(w={},b.forEach(function(it,R){w[R]=it})):w=b,JSON.stringify(w)}var B="TABS_DQ";function oe(b){return String(b).replace(/"/g,B)}function G(b,w,it,R){return!(!it||R||b===!1||b===void 0&&(w===!1||w===null))}var ye=e.forwardRef(function(b,w){var it=b.prefixCls,R=b.editable,$=b.locale,He=b.style;return!R||R.showAdd===!1?null:e.createElement("button",{ref:w,type:"button",className:"".concat(it,"-nav-add"),style:He,"aria-label":($==null?void 0:$.addAriaLabel)||"Add tab",onClick:function(Ae){R.onEdit("add",{event:Ae})}},R.addIcon||"+")}),et=ye,_=e.forwardRef(function(b,w){var it=b.position,R=b.prefixCls,$=b.extra;if(!$)return null;var He,Pe={};return(0,J.Z)($)==="object"&&!e.isValidElement($)?Pe=$:Pe.right=$,it==="right"&&(He=Pe.right),it==="left"&&(He=Pe.left),He?e.createElement("div",{className:"".concat(R,"-extra-content"),ref:w},He):null}),xe=_,pe=t(96478),Xe=t(28321),M=t(10228),Ee=e.forwardRef(function(b,w){var it=b.prefixCls,R=b.id,$=b.tabs,He=b.locale,Pe=b.mobile,Ae=b.more,qe=Ae===void 0?{}:Ae,Fe=b.style,at=b.className,Ct=b.editable,bt=b.tabBarGutter,vt=b.rtl,zt=b.removeAriaLabel,Kt=b.onTabClick,Rt=b.getPopupContainer,ue=b.popupClassName,Re=(0,e.useState)(!1),Ze=(0,n.Z)(Re,2),Ye=Ze[0],_e=Ze[1],nt=(0,e.useState)(null),ft=(0,n.Z)(nt,2),Ot=ft[0],Dt=ft[1],Ft=qe.icon,Xt=Ft===void 0?"More":Ft,Tt="".concat(R,"-more-popup"),Zt="".concat(it,"-dropdown"),jt=Ot!==null?"".concat(Tt,"-").concat(Ot):null,Qt=He==null?void 0:He.dropdownAriaLabel;function an(Wt,Jt){Wt.preventDefault(),Wt.stopPropagation(),Ct.onEdit("remove",{key:Jt,event:Wt})}var $t=e.createElement(Xe.ZP,{onClick:function(Jt){var Pn=Jt.key,Dn=Jt.domEvent;Kt(Pn,Dn),_e(!1)},prefixCls:"".concat(Zt,"-menu"),id:Tt,tabIndex:-1,role:"listbox","aria-activedescendant":jt,selectedKeys:[Ot],"aria-label":Qt!==void 0?Qt:"expanded dropdown"},$.map(function(Wt){var Jt=Wt.closable,Pn=Wt.disabled,Dn=Wt.closeIcon,Un=Wt.key,Mn=Wt.label,Vn=G(Jt,Dn,Ct,Pn);return e.createElement(Xe.sN,{key:Un,id:"".concat(Tt,"-").concat(Un),role:"option","aria-controls":R&&"".concat(R,"-panel-").concat(Un),disabled:Pn},e.createElement("span",null,Mn),Vn&&e.createElement("button",{type:"button","aria-label":zt||"remove",tabIndex:0,className:"".concat(Zt,"-menu-item-remove"),onClick:function(rr){rr.stopPropagation(),an(rr,Un)}},Dn||Ct.removeIcon||"\xD7"))}));function Vt(Wt){for(var Jt=$.filter(function(Vn){return!Vn.disabled}),Pn=Jt.findIndex(function(Vn){return Vn.key===Ot})||0,Dn=Jt.length,Un=0;UnXn?"left":"right"})}),Zt=(0,n.Z)(Tt,2),jt=Zt[0],Qt=Zt[1],an=te(0,function(sr,Xn){!Xt&&Kt&&Kt({direction:sr>Xn?"top":"bottom"})}),$t=(0,n.Z)(an,2),Vt=$t[0],En=$t[1],un=(0,e.useState)([0,0]),sn=(0,n.Z)(un,2),bn=sn[0],Wt=sn[1],Jt=(0,e.useState)([0,0]),Pn=(0,n.Z)(Jt,2),Dn=Pn[0],Un=Pn[1],Mn=(0,e.useState)([0,0]),Vn=(0,n.Z)(Mn,2),Jn=Vn[0],rr=Vn[1],ar=(0,e.useState)([0,0]),qn=(0,n.Z)(ar,2),Lt=qn[0],yt=qn[1],Et=ie(new Map),It=(0,n.Z)(Et,2),wt=It[0],kt=It[1],nn=ee(Ze,wt,Dn[0]),Tn=H(bn,Xt),Rn=H(Dn,Xt),kn=H(Jn,Xt),Cr=H(Lt,Xt),Sr=Math.floor(Tn)Er?Er:sr}var cr=(0,e.useRef)(null),Ir=(0,e.useState)(),ir=(0,n.Z)(Ir,2),Zr=ir[0],kr=ir[1];function jr(){kr(Date.now())}function Kr(){cr.current&&clearTimeout(cr.current)}ae(ft,function(sr,Xn){function Vr(_r,go){_r(function(No){var ko=Dr(No+go);return ko})}return Sr?(Xt?Vr(Qt,sr):Vr(En,Xn),Kr(),jr(),!0):!1}),(0,e.useEffect)(function(){return Kr(),Zr&&(cr.current=setTimeout(function(){kr(0)},100)),Kr},[Zr]);var Gr=W(nn,hr,Xt?jt:Vt,Rn,kn,Cr,(0,F.Z)((0,F.Z)({},b),{},{tabs:Ze})),Zn=(0,n.Z)(Gr,2),Yn=Zn[0],br=Zn[1],vr=(0,ve.Z)(function(){var sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pe,Xn=nn.get(sr)||{width:0,height:0,left:0,right:0,top:0};if(Xt){var Vr=jt;Ae?Xn.rightjt+hr&&(Vr=Xn.right+Xn.width-hr):Xn.left<-jt?Vr=-Xn.left:Xn.left+Xn.width>-jt+hr&&(Vr=-(Xn.left+Xn.width-hr)),En(0),Qt(Dr(Vr))}else{var _r=Vt;Xn.top<-Vt?_r=-Xn.top:Xn.top+Xn.height>-Vt+hr&&(_r=-(Xn.top+Xn.height-hr)),Qt(0),En(Dr(_r))}}),xo=(0,e.useState)(),Lo=(0,n.Z)(xo,2),vo=Lo[0],Eo=Lo[1],Bo=(0,e.useState)(!1),wo=(0,n.Z)(Bo,2),Xr=wo[0],co=wo[1],to=Ze.filter(function(sr){return!sr.disabled}).map(function(sr){return sr.key}),lr=function(Xn){var Vr=to.indexOf(vo||Pe),_r=to.length,go=(Vr+Xn+_r)%_r,No=to[go];Eo(No)},Lr=function(Xn){var Vr=Xn.code,_r=Ae&&Xt,go=to[0],No=to[to.length-1];switch(Vr){case"ArrowLeft":{Xt&&lr(_r?1:-1);break}case"ArrowRight":{Xt&&lr(_r?-1:1);break}case"ArrowUp":{Xn.preventDefault(),Xt||lr(-1);break}case"ArrowDown":{Xn.preventDefault(),Xt||lr(1);break}case"Home":{Xn.preventDefault(),Eo(go);break}case"End":{Xn.preventDefault(),Eo(No);break}case"Enter":case"Space":{Xn.preventDefault(),zt(Pe,Xn);break}case"Backspace":case"Delete":{var ko=to.indexOf(vo),Fo=Ze.find(function(Do){return Do.key===vo}),aa=G(Fo==null?void 0:Fo.closable,Fo==null?void 0:Fo.closeIcon,Fe,Fo==null?void 0:Fo.disabled);aa&&(Xn.preventDefault(),Xn.stopPropagation(),Fe.onEdit("remove",{key:vo,event:Xn}),ko===to.length-1?lr(-1):lr(1));break}}},Hr={};Xt?Hr[Ae?"marginRight":"marginLeft"]=bt:Hr.marginTop=bt;var In=Ze.map(function(sr,Xn){var Vr=sr.key;return e.createElement(Le,{id:$,prefixCls:Re,key:Vr,tab:sr,style:Xn===0?void 0:Hr,closable:sr.closable,editable:Fe,active:Vr===Pe,focus:Vr===vo,renderWrapper:vt,removeAriaLabel:at==null?void 0:at.removeAriaLabel,tabCount:to.length,currentPosition:Xn+1,onClick:function(go){zt(Vr,go)},onKeyDown:Lr,onFocus:function(){Xr||Eo(Vr),vr(Vr),jr(),ft.current&&(Ae||(ft.current.scrollLeft=0),ft.current.scrollTop=0)},onBlur:function(){Eo(void 0)},onMouseDown:function(){co(!0)},onMouseUp:function(){co(!1)}})}),Hn=function(){return kt(function(){var Xn,Vr=new Map,_r=(Xn=Ot.current)===null||Xn===void 0?void 0:Xn.getBoundingClientRect();return Ze.forEach(function(go){var No,ko=go.key,Fo=(No=Ot.current)===null||No===void 0?void 0:No.querySelector('[data-node-key="'.concat(oe(ko),'"]'));if(Fo){var aa=re(Fo,_r),Do=(0,n.Z)(aa,4),ba=Do[0],Pa=Do[1],Sa=Do[2],ta=Do[3];Vr.set(ko,{width:ba,height:Pa,left:Sa,top:ta})}}),Vr})};(0,e.useEffect)(function(){Hn()},[Ze.map(function(sr){return sr.key}).join("_")]);var On=l(function(){var sr=T(Ye),Xn=T(_e),Vr=T(nt);Wt([sr[0]-Xn[0]-Vr[0],sr[1]-Xn[1]-Vr[1]]);var _r=T(Ft);rr(_r);var go=T(Dt);yt(go);var No=T(Ot);Un([No[0]-_r[0],No[1]-_r[1]]),Hn()}),jn=Ze.slice(0,Yn),fr=Ze.slice(br+1),$r=[].concat((0,ge.Z)(jn),(0,ge.Z)(fr)),Oo=nn.get(Pe),gn=f({activeTabOffset:Oo,horizontal:Xt,indicator:Rt,rtl:Ae}),An=gn.style;(0,e.useEffect)(function(){vr()},[Pe,xr,Er,c(Oo),c(nn),Xt]),(0,e.useEffect)(function(){On()},[Ae]);var tr=!!$r.length,wr="".concat(Re,"-nav-wrap"),Pr,To,Io,Xo;return Xt?Ae?(To=jt>0,Pr=jt!==Er):(Pr=jt<0,To=jt!==xr):(Io=Vt<0,Xo=Vt!==xr),e.createElement(se.Z,{onResize:On},e.createElement("div",{ref:(0,h.x1)(w,Ye),role:"tablist","aria-orientation":Xt?"horizontal":"vertical",className:P()("".concat(Re,"-nav"),it),style:R,onKeyDown:function(){jr()}},e.createElement(xe,{ref:_e,position:"left",extra:qe,prefixCls:Re}),e.createElement(se.Z,{onResize:On},e.createElement("div",{className:P()(wr,(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({},"".concat(wr,"-ping-left"),Pr),"".concat(wr,"-ping-right"),To),"".concat(wr,"-ping-top"),Io),"".concat(wr,"-ping-bottom"),Xo)),ref:ft},e.createElement(se.Z,{onResize:On},e.createElement("div",{ref:Ot,className:"".concat(Re,"-nav-list"),style:{transform:"translate(".concat(jt,"px, ").concat(Vt,"px)"),transition:Zr?"none":void 0}},In,e.createElement(et,{ref:Ft,prefixCls:Re,locale:at,editable:Fe,style:(0,F.Z)((0,F.Z)({},In.length===0?void 0:Hr),{},{visibility:tr?"hidden":null})}),e.createElement("div",{className:P()("".concat(Re,"-ink-bar"),(0,D.Z)({},"".concat(Re,"-ink-bar-animated"),He.inkBar)),style:An}))))),e.createElement(be,(0,g.Z)({},b,{removeAriaLabel:at==null?void 0:at.removeAriaLabel,ref:Dt,prefixCls:Re,tabs:$r,className:!tr&&er,tabMoving:!!Zr})),e.createElement(xe,{ref:nt,position:"right",extra:qe,prefixCls:Re})))}),ce=d,Z=e.forwardRef(function(b,w){var it=b.prefixCls,R=b.className,$=b.style,He=b.id,Pe=b.active,Ae=b.tabKey,qe=b.children;return e.createElement("div",{id:He&&"".concat(He,"-panel-").concat(Ae),role:"tabpanel",tabIndex:Pe?0:-1,"aria-labelledby":He&&"".concat(He,"-tab-").concat(Ae),"aria-hidden":!Pe,style:$,className:P()(it,Pe&&"".concat(it,"-active"),R),ref:w},qe)}),r=Z,u=["renderTabBar"],V=["label","key"],K=function(w){var it=w.renderTabBar,R=(0,O.Z)(w,u),$=e.useContext(Ne),He=$.tabs;if(it){var Pe=(0,F.Z)((0,F.Z)({},R),{},{panes:He.map(function(Ae){var qe=Ae.label,Fe=Ae.key,at=(0,O.Z)(Ae,V);return e.createElement(r,(0,g.Z)({tab:qe,key:Fe,tabKey:Fe},at))})});return it(Pe,ce)}return e.createElement(ce,R)},y=K,A=t(77900),L=["key","forceRender","style","className","destroyInactiveTabPane"],q=function(w){var it=w.id,R=w.activeKey,$=w.animated,He=w.tabPosition,Pe=w.destroyInactiveTabPane,Ae=e.useContext(Ne),qe=Ae.prefixCls,Fe=Ae.tabs,at=$.tabPane,Ct="".concat(qe,"-tabpane");return e.createElement("div",{className:P()("".concat(qe,"-content-holder"))},e.createElement("div",{className:P()("".concat(qe,"-content"),"".concat(qe,"-content-").concat(He),(0,D.Z)({},"".concat(qe,"-content-animated"),at))},Fe.map(function(bt){var vt=bt.key,zt=bt.forceRender,Kt=bt.style,Rt=bt.className,ue=bt.destroyInactiveTabPane,Re=(0,O.Z)(bt,L),Ze=vt===R;return e.createElement(A.default,(0,g.Z)({key:vt,visible:Ze,forceRender:zt,removeOnLeave:!!(Pe||ue),leavedClassName:"".concat(Ct,"-hidden")},$.tabPaneMotion),function(Ye,_e){var nt=Ye.style,ft=Ye.className;return e.createElement(r,(0,g.Z)({},Re,{prefixCls:Ct,id:it,tabKey:vt,animated:at,active:Ze,style:(0,F.Z)((0,F.Z)({},Kt),nt),className:P()(Rt,ft),ref:_e}))})})))},i=q,v=t(48736);function Me(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},w;return b===!1?w={inkBar:!1,tabPane:!1}:b===!0?w={inkBar:!0,tabPane:!1}:w=(0,F.Z)({inkBar:!0},(0,J.Z)(b)==="object"?b:{}),w.tabPaneMotion&&w.tabPane===void 0&&(w.tabPane=!0),!w.tabPaneMotion&&w.tabPane&&(w.tabPane=!1),w}var fe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ie=0,Be=e.forwardRef(function(b,w){var it=b.id,R=b.prefixCls,$=R===void 0?"rc-tabs":R,He=b.className,Pe=b.items,Ae=b.direction,qe=b.activeKey,Fe=b.defaultActiveKey,at=b.editable,Ct=b.animated,bt=b.tabPosition,vt=bt===void 0?"top":bt,zt=b.tabBarGutter,Kt=b.tabBarStyle,Rt=b.tabBarExtraContent,ue=b.locale,Re=b.more,Ze=b.destroyInactiveTabPane,Ye=b.renderTabBar,_e=b.onChange,nt=b.onTabClick,ft=b.onTabScroll,Ot=b.getPopupContainer,Dt=b.popupClassName,Ft=b.indicator,Xt=(0,O.Z)(b,fe),Tt=e.useMemo(function(){return(Pe||[]).filter(function(Lt){return Lt&&(0,J.Z)(Lt)==="object"&&"key"in Lt})},[Pe]),Zt=Ae==="rtl",jt=Me(Ct),Qt=(0,e.useState)(!1),an=(0,n.Z)(Qt,2),$t=an[0],Vt=an[1];(0,e.useEffect)(function(){Vt((0,Se.Z)())},[]);var En=(0,I.Z)(function(){var Lt;return(Lt=Tt[0])===null||Lt===void 0?void 0:Lt.key},{value:qe,defaultValue:Fe}),un=(0,n.Z)(En,2),sn=un[0],bn=un[1],Wt=(0,e.useState)(function(){return Tt.findIndex(function(Lt){return Lt.key===sn})}),Jt=(0,n.Z)(Wt,2),Pn=Jt[0],Dn=Jt[1];(0,e.useEffect)(function(){var Lt=Tt.findIndex(function(Et){return Et.key===sn});if(Lt===-1){var yt;Lt=Math.max(0,Math.min(Pn,Tt.length-1)),bn((yt=Tt[Lt])===null||yt===void 0?void 0:yt.key)}Dn(Lt)},[Tt.map(function(Lt){return Lt.key}).join("_"),sn,Pn]);var Un=(0,I.Z)(null,{value:it}),Mn=(0,n.Z)(Un,2),Vn=Mn[0],Jn=Mn[1];(0,e.useEffect)(function(){it||(Jn("rc-tabs-".concat(Ie)),Ie+=1)},[]);function rr(Lt,yt){nt==null||nt(Lt,yt);var Et=Lt!==sn;bn(Lt),Et&&(_e==null||_e(Lt))}var ar={id:Vn,activeKey:sn,animated:jt,tabPosition:vt,rtl:Zt,mobile:$t},qn=(0,F.Z)((0,F.Z)({},ar),{},{editable:at,locale:ue,more:Re,tabBarGutter:zt,onTabClick:rr,onTabScroll:ft,extra:Rt,style:Kt,panes:null,getPopupContainer:Ot,popupClassName:Dt,indicator:Ft});return e.createElement(Ne.Provider,{value:{tabs:Tt,prefixCls:$}},e.createElement("div",(0,g.Z)({ref:w,id:it,className:P()($,"".concat($,"-").concat(vt),(0,D.Z)((0,D.Z)((0,D.Z)({},"".concat($,"-mobile"),$t),"".concat($,"-editable"),at),"".concat($,"-rtl"),Zt),He)},Xt),e.createElement(y,(0,g.Z)({},qn,{renderTabBar:Ye})),e.createElement(i,(0,g.Z)({destroyInactiveTabPane:Ze},ar,{animated:jt}))))}),Te=Be,Ue=Te,je=t(48755),x=t(83397),ne=t(31756),Ce=t(86641);const De={motionAppear:!1,motionEnter:!0,motionLeave:!0};function S(b){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},it;return w===!1?it={inkBar:!1,tabPane:!1}:w===!0?it={inkBar:!0,tabPane:!0}:it=Object.assign({inkBar:!0},typeof w=="object"?w:{}),it.tabPane&&(it.tabPaneMotion=Object.assign(Object.assign({},De),{motionName:(0,Ce.m)(b,"switch")})),it}var X=t(11592),U=function(b,w){var it={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&w.indexOf(R)<0&&(it[R]=b[R]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,R=Object.getOwnPropertySymbols(b);$w)}function ze(b,w){if(b)return b;const it=(0,X.Z)(w).map(R=>{if(e.isValidElement(R)){const{key:$,props:He}=R,Pe=He||{},{tab:Ae}=Pe,qe=U(Pe,["tab"]);return Object.assign(Object.assign({key:String($)},qe),{label:Ae})}return null});return me(it)}var Ke=t(36237),ut=t(63356),pt=t(16931),tt=t(51636),mt=t(46e3),rt=b=>{const{componentCls:w,motionDurationSlow:it}=b;return[{[w]:{[`${w}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${it}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${it}`}}}}},[(0,mt.oN)(b,"slide-up"),(0,mt.oN)(b,"slide-down")]]};const ot=b=>{const{componentCls:w,tabsCardPadding:it,cardBg:R,cardGutter:$,colorBorderSecondary:He,itemSelectedColor:Pe}=b;return{[`${w}-card`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab`]:{margin:0,padding:it,background:R,border:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${He}`,transition:`all ${b.motionDurationSlow} ${b.motionEaseInOut}`},[`${w}-tab-active`]:{color:Pe,background:b.colorBgContainer},[`${w}-tab-focus`]:Object.assign({},(0,ut.oN)(b,-3)),[`${w}-ink-bar`]:{visibility:"hidden"},[`& ${w}-tab${w}-tab-focus ${w}-tab-btn`]:{outline:"none"}},[`&${w}-top, &${w}-bottom`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab + ${w}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,Ke.unit)($)}}}},[`&${w}-top`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab`]:{borderRadius:`${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)} 0 0`},[`${w}-tab-active`]:{borderBottomColor:b.colorBgContainer}}},[`&${w}-bottom`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab`]:{borderRadius:`0 0 ${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)}`},[`${w}-tab-active`]:{borderTopColor:b.colorBgContainer}}},[`&${w}-left, &${w}-right`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab + ${w}-tab`]:{marginTop:(0,Ke.unit)($)}}},[`&${w}-left`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,Ke.unit)(b.borderRadiusLG)} 0 0 ${(0,Ke.unit)(b.borderRadiusLG)}`}},[`${w}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:b.colorBgContainer}}}},[`&${w}-right`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)} 0`}},[`${w}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:b.colorBgContainer}}}}}}},xt=b=>{const{componentCls:w,itemHoverColor:it,dropdownEdgeChildVerticalPadding:R}=b;return{[`${w}-dropdown`]:Object.assign(Object.assign({},(0,ut.Wf)(b)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:b.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${w}-dropdown-menu`]:{maxHeight:b.tabsDropdownHeight,margin:0,padding:`${(0,Ke.unit)(R)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:b.colorBgContainer,backgroundClip:"padding-box",borderRadius:b.borderRadiusLG,outline:"none",boxShadow:b.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ut.vS),{display:"flex",alignItems:"center",minWidth:b.tabsDropdownWidth,margin:0,padding:`${(0,Ke.unit)(b.paddingXXS)} ${(0,Ke.unit)(b.paddingSM)}`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,lineHeight:b.lineHeight,cursor:"pointer",transition:`all ${b.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:b.marginSM},color:b.colorTextDescription,fontSize:b.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:it}},"&:hover":{background:b.controlItemBgHover},"&-disabled":{"&, &:hover":{color:b.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},gt=b=>{const{componentCls:w,margin:it,colorBorderSecondary:R,horizontalMargin:$,verticalItemPadding:He,verticalItemMargin:Pe,calc:Ae}=b;return{[`${w}-top, ${w}-bottom`]:{flexDirection:"column",[`> ${w}-nav, > div > ${w}-nav`]:{margin:$,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${R}`,content:"''"},[`${w}-ink-bar`]:{height:b.lineWidthBold,"&-animated":{transition:`width ${b.motionDurationSlow}, left ${b.motionDurationSlow}, - right ${b.motionDurationSlow}`}},[`${w}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:b.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:b.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:b.boxShadowTabsOverflowRight},[`&${w}-nav-wrap-ping-left::before`]:{opacity:1},[`&${w}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${w}-top`]:{[`> ${w}-nav, - > div > ${w}-nav`]:{"&::before":{bottom:0},[`${w}-ink-bar`]:{bottom:0}}},[`${w}-bottom`]:{[`> ${w}-nav, > div > ${w}-nav`]:{order:1,marginTop:it,marginBottom:0,"&::before":{top:0},[`${w}-ink-bar`]:{top:0}},[`> ${w}-content-holder, > div > ${w}-content-holder`]:{order:0}},[`${w}-left, ${w}-right`]:{[`> ${w}-nav, > div > ${w}-nav`]:{flexDirection:"column",minWidth:Ae(b.controlHeight).mul(1.25).equal(),[`${w}-tab`]:{padding:He,textAlign:"center"},[`${w}-tab + ${w}-tab`]:{margin:Pe},[`${w}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:b.controlHeight},"&::before":{top:0,boxShadow:b.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:b.boxShadowTabsOverflowBottom},[`&${w}-nav-wrap-ping-top::before`]:{opacity:1},[`&${w}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${w}-ink-bar`]:{width:b.lineWidthBold,"&-animated":{transition:`height ${b.motionDurationSlow}, top ${b.motionDurationSlow}`}},[`${w}-nav-list, ${w}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${w}-left`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${w}-content-holder, > div > ${w}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,Ke.unit)(Ae(b.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${b.colorBorder}`},[`> ${w}-content > ${w}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:b.paddingLG}}}},[`${w}-right`]:{[`> ${w}-nav, > div > ${w}-nav`]:{order:1,[`${w}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${w}-content-holder, > div > ${w}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:Ae(b.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${b.colorBorder}`},[`> ${w}-content > ${w}-tabpane`]:{paddingRight:{_skip_check_:!0,value:b.paddingLG}}}}}},Pt=b=>{const{componentCls:w,cardPaddingSM:it,cardPaddingLG:R,horizontalItemPaddingSM:$,horizontalItemPaddingLG:He}=b;return{[w]:{"&-small":{[`> ${w}-nav`]:{[`${w}-tab`]:{padding:$,fontSize:b.titleFontSizeSM}}},"&-large":{[`> ${w}-nav`]:{[`${w}-tab`]:{padding:He,fontSize:b.titleFontSizeLG}}}},[`${w}-card`]:{[`&${w}-small`]:{[`> ${w}-nav`]:{[`${w}-tab`]:{padding:it}},[`&${w}-bottom`]:{[`> ${w}-nav ${w}-tab`]:{borderRadius:`0 0 ${(0,Ke.unit)(b.borderRadius)} ${(0,Ke.unit)(b.borderRadius)}`}},[`&${w}-top`]:{[`> ${w}-nav ${w}-tab`]:{borderRadius:`${(0,Ke.unit)(b.borderRadius)} ${(0,Ke.unit)(b.borderRadius)} 0 0`}},[`&${w}-right`]:{[`> ${w}-nav ${w}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Ke.unit)(b.borderRadius)} ${(0,Ke.unit)(b.borderRadius)} 0`}}},[`&${w}-left`]:{[`> ${w}-nav ${w}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,Ke.unit)(b.borderRadius)} 0 0 ${(0,Ke.unit)(b.borderRadius)}`}}}},[`&${w}-large`]:{[`> ${w}-nav`]:{[`${w}-tab`]:{padding:R}}}}}},Mt=b=>{const{componentCls:w,itemActiveColor:it,itemHoverColor:R,iconCls:$,tabsHorizontalItemMargin:He,horizontalItemPadding:Pe,itemSelectedColor:Ae,itemColor:qe}=b,Fe=`${w}-tab`;return{[Fe]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Pe,fontSize:b.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:qe,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:it}},"&-btn":{outline:"none",transition:`all ${b.motionDurationSlow}`,[`${Fe}-icon:not(:last-child)`]:{marginInlineEnd:b.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:b.calc(b.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:b.marginXS},color:b.colorTextDescription,fontSize:b.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextHeading}},(0,ut.Qy)(b)),"&:hover":{color:R},[`&${Fe}-active ${Fe}-btn`]:{color:Ae,textShadow:b.tabsActiveTextShadow},[`&${Fe}-focus ${Fe}-btn`]:Object.assign({},(0,ut.oN)(b)),[`&${Fe}-disabled`]:{color:b.colorTextDisabled,cursor:"not-allowed"},[`&${Fe}-disabled ${Fe}-btn, &${Fe}-disabled ${w}-remove`]:{"&:focus, &:active":{color:b.colorTextDisabled}},[`& ${Fe}-remove ${$}`]:{margin:0},[`${$}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:b.marginSM}}},[`${Fe} + ${Fe}`]:{margin:{_skip_check_:!0,value:He}}}},Gt=b=>{const{componentCls:w,tabsHorizontalItemMarginRTL:it,iconCls:R,cardGutter:$,calc:He}=b;return{[`${w}-rtl`]:{direction:"rtl",[`${w}-nav`]:{[`${w}-tab`]:{margin:{_skip_check_:!0,value:it},[`${w}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[R]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,Ke.unit)(b.marginSM)}},[`${w}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,Ke.unit)(b.marginXS)},marginLeft:{_skip_check_:!0,value:(0,Ke.unit)(He(b.marginXXS).mul(-1).equal())},[R]:{margin:0}}}},[`&${w}-left`]:{[`> ${w}-nav`]:{order:1},[`> ${w}-content-holder`]:{order:0}},[`&${w}-right`]:{[`> ${w}-nav`]:{order:0},[`> ${w}-content-holder`]:{order:1}},[`&${w}-card${w}-top, &${w}-card${w}-bottom`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-tab + ${w}-tab`]:{marginRight:{_skip_check_:!0,value:$},marginLeft:{_skip_check_:!0,value:0}}}}},[`${w}-dropdown-rtl`]:{direction:"rtl"},[`${w}-menu-item`]:{[`${w}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},rn=b=>{const{componentCls:w,tabsCardPadding:it,cardHeight:R,cardGutter:$,itemHoverColor:He,itemActiveColor:Pe,colorBorderSecondary:Ae}=b;return{[w]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(b)),{display:"flex",[`> ${w}-nav, > div > ${w}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${w}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${b.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${w}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${b.motionDurationSlow}`},[`${w}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${w}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${w}-nav-more`]:{position:"relative",padding:it,background:"transparent",border:0,color:b.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:b.calc(b.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${w}-nav-add`]:Object.assign({minWidth:R,marginLeft:{_skip_check_:!0,value:$},padding:(0,Ke.unit)(b.paddingXS),background:"transparent",border:`${(0,Ke.unit)(b.lineWidth)} ${b.lineType} ${Ae}`,borderRadius:`${(0,Ke.unit)(b.borderRadiusLG)} ${(0,Ke.unit)(b.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:b.colorText,transition:`all ${b.motionDurationSlow} ${b.motionEaseInOut}`,"&:hover":{color:He},"&:active, &:focus:not(:focus-visible)":{color:Pe}},(0,ut.Qy)(b,-3))},[`${w}-extra-content`]:{flex:"none"},[`${w}-ink-bar`]:{position:"absolute",background:b.inkBarColor,pointerEvents:"none"}}),Mt(b)),{[`${w}-content`]:{position:"relative",width:"100%"},[`${w}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${w}-tabpane`]:Object.assign(Object.assign({},(0,ut.Qy)(b)),{"&-hidden":{display:"none"}})}),[`${w}-centered`]:{[`> ${w}-nav, > div > ${w}-nav`]:{[`${w}-nav-wrap`]:{[`&:not([class*='${w}-nav-wrap-ping']) > ${w}-nav-list`]:{margin:"auto"}}}}}},Ht=b=>{const w=b.controlHeightLG;return{zIndexPopup:b.zIndexPopupBase+50,cardBg:b.colorFillAlter,cardHeight:w,cardPadding:`${(w-Math.round(b.fontSize*b.lineHeight))/2-b.lineWidth}px ${b.padding}px`,cardPaddingSM:`${b.paddingXXS*1.5}px ${b.padding}px`,cardPaddingLG:`${b.paddingXS}px ${b.padding}px ${b.paddingXXS*1.5}px`,titleFontSize:b.fontSize,titleFontSizeLG:b.fontSizeLG,titleFontSizeSM:b.fontSize,inkBarColor:b.colorPrimary,horizontalMargin:`0 0 ${b.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${b.paddingSM}px 0`,horizontalItemPaddingSM:`${b.paddingXS}px 0`,horizontalItemPaddingLG:`${b.padding}px 0`,verticalItemPadding:`${b.paddingXS}px ${b.paddingLG}px`,verticalItemMargin:`${b.margin}px 0 0 0`,itemColor:b.colorText,itemSelectedColor:b.colorPrimary,itemHoverColor:b.colorPrimaryHover,itemActiveColor:b.colorPrimaryActive,cardGutter:b.marginXXS/2}};var At=(0,pt.I$)("Tabs",b=>{const w=(0,tt.mergeToken)(b,{tabsCardPadding:b.cardPadding,dropdownEdgeChildVerticalPadding:b.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,Ke.unit)(b.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,Ke.unit)(b.horizontalItemGutter)}`});return[Pt(w),Gt(w),gt(w),xt(w),ot(w),rn(w),rt(w)]},Ht),Bt=()=>null,mn=function(b,w){var it={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&w.indexOf(R)<0&&(it[R]=b[R]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,R=Object.getOwnPropertySymbols(b);${var w,it,R,$,He,Pe,Ae,qe,Fe,at,Ct;const{type:bt,className:vt,rootClassName:zt,size:Kt,onEdit:Rt,hideAdd:ue,centered:Re,addIcon:Ze,removeIcon:Ye,moreIcon:_e,more:nt,popupClassName:ft,children:Ot,items:Dt,animated:Ft,style:Xt,indicatorSize:Tt,indicator:Zt}=b,jt=mn(b,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Qt}=jt,{direction:an,tabs:$t,getPrefixCls:Vt,getPopupContainer:En}=e.useContext(je.E_),un=Vt("tabs",Qt),sn=(0,x.Z)(un),[bn,Wt,Jt]=At(un,sn);let Pn;bt==="editable-card"&&(Pn={onEdit:(ar,qn)=>{let{key:Lt,event:yt}=qn;Rt==null||Rt(ar==="add"?yt:Lt,ar)},removeIcon:(w=Ye!=null?Ye:$t==null?void 0:$t.removeIcon)!==null&&w!==void 0?w:e.createElement(m.Z,null),addIcon:(Ze!=null?Ze:$t==null?void 0:$t.addIcon)||e.createElement(Q.Z,null),showAdd:ue!==!0});const Dn=Vt(),Un=(0,ne.Z)(Kt),Mn=ze(Dt,Ot),Vn=S(un,Ft),Jn=Object.assign(Object.assign({},$t==null?void 0:$t.style),Xt),rr={align:(it=Zt==null?void 0:Zt.align)!==null&&it!==void 0?it:(R=$t==null?void 0:$t.indicator)===null||R===void 0?void 0:R.align,size:(Ae=(He=($=Zt==null?void 0:Zt.size)!==null&&$!==void 0?$:Tt)!==null&&He!==void 0?He:(Pe=$t==null?void 0:$t.indicator)===null||Pe===void 0?void 0:Pe.size)!==null&&Ae!==void 0?Ae:$t==null?void 0:$t.indicatorSize};return bn(e.createElement(Ue,Object.assign({direction:an,getPopupContainer:En},jt,{items:Mn,className:P()({[`${un}-${Un}`]:Un,[`${un}-card`]:["card","editable-card"].includes(bt),[`${un}-editable-card`]:bt==="editable-card",[`${un}-centered`]:Re},$t==null?void 0:$t.className,vt,zt,Wt,Jt,sn),popupClassName:P()(ft,Wt,Jt,sn),style:Jn,editable:Pn,more:Object.assign({icon:(Ct=(at=(Fe=(qe=$t==null?void 0:$t.more)===null||qe===void 0?void 0:qe.icon)!==null&&Fe!==void 0?Fe:$t==null?void 0:$t.moreIcon)!==null&&at!==void 0?at:_e)!==null&&Ct!==void 0?Ct:e.createElement(p.Z,null),transitionName:`${Dn}-slide-up`},nt),prefixCls:un,animated:Vn,indicator:rr})))};pn.TabPane=Bt;var en=pn},93427:function(Yt,Ge,t){t.d(Ge,{Z:function(){return m}});var e=t(34998);function m(p,Q){return e.i.reduce((N,P)=>{const g=p[`${P}1`],D=p[`${P}3`],F=p[`${P}6`],n=p[`${P}7`];return Object.assign(Object.assign({},N),Q(P,{lightColor:g,lightBorderColor:D,darkColor:F,textColor:n}))},{})}},25399:function(Yt,Ge,t){t.d(Ge,{Z:function(){return ie}});var e=t(59301),m=t(92310),p=t.n(m),Q=t(29125),N=t(18929),P=t(62487),g=t(75030),D=t(86641),F=t(52838),n=t(22703),J=t(32383),O=t(55743),I=t(57700),Se=t(48755),Ne=t(36237),ge=t(63356),se=t(34925),ve=t(37645),h=t(36305),de=t(93427),s=t(51636),f=t(16931);const Y=z=>{const{calc:W,componentCls:c,tooltipMaxWidth:B,tooltipColor:oe,tooltipBg:G,tooltipBorderRadius:ye,zIndexPopup:et,controlHeight:_,boxShadowSecondary:xe,paddingSM:pe,paddingXS:Xe,arrowOffsetHorizontal:M,sizePopupArrow:Ee}=z,be=W(ye).add(Ee).add(M).equal(),ct=W(ye).mul(2).add(Ee).equal();return[{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(z)),{position:"absolute",zIndex:et,display:"block",width:"max-content",maxWidth:B,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":G,[`${c}-inner`]:{minWidth:ct,minHeight:_,padding:`${(0,Ne.unit)(z.calc(pe).div(2).equal())} ${(0,Ne.unit)(Xe)}`,color:oe,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:G,borderRadius:ye,boxShadow:xe,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:be},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${c}-inner`]:{borderRadius:z.min(ye,ve.qN)}},[`${c}-content`]:{position:"relative"}}),(0,de.Z)(z,(Le,re)=>{let{darkColor:T}=re;return{[`&${c}-${Le}`]:{[`${c}-inner`]:{backgroundColor:T},[`${c}-arrow`]:{"--antd-arrow-background-color":T}}}})),{"&-rtl":{direction:"rtl"}})},(0,ve.ZP)(z,"var(--antd-arrow-background-color)"),{[`${c}-pure`]:{position:"relative",maxWidth:"none",margin:z.sizePopupArrow}}]},ee=z=>Object.assign(Object.assign({zIndexPopup:z.zIndexPopupBase+70},(0,ve.wZ)({contentRadius:z.borderRadius,limitVerticalRadius:!0})),(0,h.w)((0,s.mergeToken)(z,{borderRadiusOuter:Math.min(z.borderRadiusOuter,4)})));var te=function(z){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return(0,f.I$)("Tooltip",B=>{const{borderRadius:oe,colorTextLightSolid:G,colorBgSpotlight:ye}=B,et=(0,s.mergeToken)(B,{tooltipMaxWidth:250,tooltipColor:G,tooltipBorderRadius:oe,tooltipBg:ye});return[Y(et),(0,se._y)(B,"zoom-big-fast")]},ee,{resetStyle:!1,injectStyle:W})(z)},Ve=t(29509);function we(z,W){const c=(0,Ve.o2)(W),B=p()({[`${z}-${W}`]:W&&c}),oe={},G={};return W&&!c&&(oe.background=W,G["--antd-arrow-background-color"]=W),{className:B,overlayStyle:oe,arrowStyle:G}}var Oe=z=>{const{prefixCls:W,className:c,placement:B="top",title:oe,color:G,overlayInnerStyle:ye}=z,{getPrefixCls:et}=e.useContext(Se.E_),_=et("tooltip",W),[xe,pe,Xe]=te(_),M=we(_,G),Ee=M.arrowStyle,be=Object.assign(Object.assign({},ye),M.overlayStyle),ct=p()(pe,Xe,_,`${_}-pure`,`${_}-placement-${B}`,c,M.className);return xe(e.createElement("div",{className:ct,style:Ee},e.createElement("div",{className:`${_}-arrow`}),e.createElement(Q.G,Object.assign({},z,{className:pe,prefixCls:_,overlayInnerStyle:be}),oe)))},ae=function(z,W){var c={};for(var B in z)Object.prototype.hasOwnProperty.call(z,B)&&W.indexOf(B)<0&&(c[B]=z[B]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,B=Object.getOwnPropertySymbols(z);oe{var c,B;const{prefixCls:oe,openClassName:G,getTooltipContainer:ye,color:et,overlayInnerStyle:_,children:xe,afterOpenChange:pe,afterVisibleChange:Xe,destroyTooltipOnHide:M,arrow:Ee=!0,title:be,overlay:ct,builtinPlacements:Le,arrowPointAtCenter:re=!1,autoAdjustOverflow:T=!0,motion:H,getPopupContainer:d,placement:ce="top",mouseEnterDelay:Z=.1,mouseLeaveDelay:r=.1,overlayStyle:u,rootClassName:V,overlayClassName:K,styles:y,classNames:A}=z,L=ae(z,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),q=!!Ee,[,i]=(0,I.ZP)(),{getPopupContainer:v,getPrefixCls:Me,direction:fe,className:Ie,style:Be,classNames:Te,styles:Ue}=(0,Se.dj)("tooltip"),je=(0,J.ln)("Tooltip"),x=e.useRef(null),ne=()=>{var Bt;(Bt=x.current)===null||Bt===void 0||Bt.forceAlign()};e.useImperativeHandle(W,()=>{var Bt,mn;return{forceAlign:ne,forcePopupAlign:()=>{je.deprecated(!1,"forcePopupAlign","forceAlign"),ne()},nativeElement:(Bt=x.current)===null||Bt===void 0?void 0:Bt.nativeElement,popupElement:(mn=x.current)===null||mn===void 0?void 0:mn.popupElement}});const[Ce,De]=(0,N.Z)(!1,{value:(c=z.open)!==null&&c!==void 0?c:z.visible,defaultValue:(B=z.defaultOpen)!==null&&B!==void 0?B:z.defaultVisible}),S=!be&&!ct&&be!==0,X=Bt=>{var mn,pn;De(S?!1:Bt),S||((mn=z.onOpenChange)===null||mn===void 0||mn.call(z,Bt),(pn=z.onVisibleChange)===null||pn===void 0||pn.call(z,Bt))},U=e.useMemo(()=>{var Bt,mn;let pn=re;return typeof Ee=="object"&&(pn=(mn=(Bt=Ee.pointAtCenter)!==null&&Bt!==void 0?Bt:Ee.arrowPointAtCenter)!==null&&mn!==void 0?mn:re),Le||(0,F.Z)({arrowPointAtCenter:pn,autoAdjustOverflow:T,arrowWidth:q?i.sizePopupArrow:0,borderRadius:i.borderRadius,offset:i.marginXXS,visibleFirst:!0})},[re,Ee,Le,i]),me=e.useMemo(()=>be===0?be:ct||be||"",[ct,be]),ze=e.createElement(P.Z,{space:!0},typeof me=="function"?me():me),Ke=Me("tooltip",oe),ut=Me(),pt=z["data-popover-inject"];let tt=Ce;!("open"in z)&&!("visible"in z)&&S&&(tt=!1);const mt=e.isValidElement(xe)&&!(0,n.M2)(xe)?xe:e.createElement("span",null,xe),ke=mt.props,rt=!ke.className||typeof ke.className=="string"?p()(ke.className,G||`${Ke}-open`):ke.className,[ot,xt,gt]=te(Ke,!pt),Pt=we(Ke,et),Mt=Pt.arrowStyle,Gt=p()(K,{[`${Ke}-rtl`]:fe==="rtl"},Pt.className,V,xt,gt,Ie,Te.root,A==null?void 0:A.root),rn=p()(Te.body,A==null?void 0:A.body),[Ht,At]=(0,g.Cn)("Tooltip",L.zIndex),vn=e.createElement(Q.Z,Object.assign({},L,{zIndex:Ht,showArrow:q,placement:ce,mouseEnterDelay:Z,mouseLeaveDelay:r,prefixCls:Ke,classNames:{root:Gt,body:rn},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mt),Ue.root),Be),u),y==null?void 0:y.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Ue.body),_),y==null?void 0:y.body),Pt.overlayStyle)},getTooltipContainer:d||ye||v,ref:x,builtinPlacements:U,overlay:ze,visible:tt,onVisibleChange:X,afterVisibleChange:pe!=null?pe:Xe,arrowContent:e.createElement("span",{className:`${Ke}-arrow-content`}),motion:{motionName:(0,D.m)(ut,"zoom-big-fast",z.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!M}),tt?(0,n.Tm)(mt,{className:rt}):mt);return ot(e.createElement(O.Z.Provider,{value:At},vn))});l._InternalPanelDoNotUseOrYouWillBeFired=Oe;var ie=l},18287:function(Yt,Ge,t){t.d(Ge,{default:function(){return et}});var e=t(3741),m=t(94480),p=t(59301),Q=t(52671),N=t(8657),P=t(54476),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},D=g,F=t(7657),n=function(xe,pe){return p.createElement(F.Z,(0,P.Z)({},xe,{ref:pe,icon:D}))},J=p.forwardRef(n),O=J,I=t(92310),Se=t.n(I),Ne=t(82661),ge=t(34061),se=t(48755),ve=t(56082),h=t(86641),de=t(57700),s=t(12425);const f=4;function Y(_){const{dropPosition:xe,dropLevelOffset:pe,prefixCls:Xe,indent:M,direction:Ee="ltr"}=_,be=Ee==="ltr"?"left":"right",ct=Ee==="ltr"?"right":"left",Le={[be]:-pe*M+f,[ct]:0};switch(xe){case-1:Le.top=-3;break;case 1:Le.bottom=-3;break;default:Le.bottom=-3,Le[be]=M+f;break}return p.createElement("div",{style:Le,className:`${Xe}-drop-indicator`})}var ee=Y,te=t(85278),we=p.forwardRef((_,xe)=>{var pe;const{getPrefixCls:Xe,direction:M,virtual:Ee,tree:be}=p.useContext(se.E_),{prefixCls:ct,className:Le,showIcon:re=!1,showLine:T,switcherIcon:H,switcherLoadingIcon:d,blockNode:ce=!1,children:Z,checkable:r=!1,selectable:u=!0,draggable:V,motion:K,style:y}=_,A=Xe("tree",ct),L=Xe(),q=K!=null?K:Object.assign(Object.assign({},(0,h.Z)(L)),{motionAppear:!1}),i=Object.assign(Object.assign({},_),{checkable:r,selectable:u,showIcon:re,motion:q,blockNode:ce,showLine:!!T,dropIndicatorRender:ee}),[v,Me,fe]=(0,s.ZP)(A),[,Ie]=(0,de.ZP)(),Be=Ie.paddingXS/2+(((pe=Ie.Tree)===null||pe===void 0?void 0:pe.titleHeight)||Ie.controlHeightSM),Te=p.useMemo(()=>{if(!V)return!1;let je={};switch(typeof V){case"function":je.nodeDraggable=V;break;case"object":je=Object.assign({},V);break;default:break}return je.icon!==!1&&(je.icon=je.icon||p.createElement(ve.Z,null)),je},[V]),Ue=je=>p.createElement(te.Z,{prefixCls:A,switcherIcon:H,switcherLoadingIcon:d,treeNodeProps:je,showLine:T});return v(p.createElement(e.ZP,Object.assign({itemHeight:Be,ref:xe,virtual:Ee},i,{style:Object.assign(Object.assign({},be==null?void 0:be.style),y),prefixCls:A,className:Se()({[`${A}-icon-hide`]:!re,[`${A}-block-node`]:ce,[`${A}-unselectable`]:!u,[`${A}-rtl`]:M==="rtl"},be==null?void 0:be.className,Le,Me,fe),direction:M,checkable:r&&p.createElement("span",{className:`${A}-checkbox-inner`}),selectable:u,switcherIcon:Ue,draggable:Te}),Z))});const k=0,Oe=1,ae=2;function C(_,xe,pe){const{key:Xe,children:M}=pe;function Ee(be){const ct=be[Xe],Le=be[M];xe(ct,be)!==!1&&C(Le||[],xe,pe)}_.forEach(Ee)}function l(_){let{treeData:xe,expandedKeys:pe,startKey:Xe,endKey:M,fieldNames:Ee}=_;const be=[];let ct=k;if(Xe&&Xe===M)return[Xe];if(!Xe||!M)return[];function Le(re){return re===Xe||re===M}return C(xe,re=>{if(ct===ae)return!1;if(Le(re)){if(be.push(re),ct===k)ct=Oe;else if(ct===Oe)return ct=ae,!1}else ct===Oe&&be.push(re);return pe.includes(re)},(0,ge.w$)(Ee)),be}function ie(_,xe,pe){const Xe=(0,m.Z)(xe),M=[];return C(_,(Ee,be)=>{const ct=Xe.indexOf(Ee);return ct!==-1&&(M.push(be),Xe.splice(ct,1)),!!Xe.length},(0,ge.w$)(pe)),M}var z=function(_,xe){var pe={};for(var Xe in _)Object.prototype.hasOwnProperty.call(_,Xe)&&xe.indexOf(Xe)<0&&(pe[Xe]=_[Xe]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,Xe=Object.getOwnPropertySymbols(_);M{var{defaultExpandAll:pe,defaultExpandParent:Xe,defaultExpandedKeys:M}=_,Ee=z(_,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const be=p.useRef(null),ct=p.useRef(null),Le=()=>{const{keyEntities:v}=(0,ge.I8)(c(Ee));let Me;return pe?Me=Object.keys(v):Xe?Me=(0,Ne.r7)(Ee.expandedKeys||M||[],v):Me=Ee.expandedKeys||M||[],Me},[re,T]=p.useState(Ee.selectedKeys||Ee.defaultSelectedKeys||[]),[H,d]=p.useState(()=>Le());p.useEffect(()=>{"selectedKeys"in Ee&&T(Ee.selectedKeys)},[Ee.selectedKeys]),p.useEffect(()=>{"expandedKeys"in Ee&&d(Ee.expandedKeys)},[Ee.expandedKeys]);const ce=(v,Me)=>{var fe;return"expandedKeys"in Ee||d(v),(fe=Ee.onExpand)===null||fe===void 0?void 0:fe.call(Ee,v,Me)},Z=(v,Me)=>{var fe;const{multiple:Ie,fieldNames:Be}=Ee,{node:Te,nativeEvent:Ue}=Me,{key:je=""}=Te,x=c(Ee),ne=Object.assign(Object.assign({},Me),{selected:!0}),Ce=(Ue==null?void 0:Ue.ctrlKey)||(Ue==null?void 0:Ue.metaKey),De=Ue==null?void 0:Ue.shiftKey;let S;Ie&&Ce?(S=v,be.current=je,ct.current=S,ne.selectedNodes=ie(x,S,Be)):Ie&&De?(S=Array.from(new Set([].concat((0,m.Z)(ct.current||[]),(0,m.Z)(l({treeData:x,expandedKeys:H,startKey:je,endKey:be.current,fieldNames:Be}))))),ne.selectedNodes=ie(x,S,Be)):(S=[je],be.current=je,ct.current=S,ne.selectedNodes=ie(x,S,Be)),(fe=Ee.onSelect)===null||fe===void 0||fe.call(Ee,S,ne),"selectedKeys"in Ee||T(S)},{getPrefixCls:r,direction:u}=p.useContext(se.E_),{prefixCls:V,className:K,showIcon:y=!0,expandAction:A="click"}=Ee,L=z(Ee,["prefixCls","className","showIcon","expandAction"]),q=r("tree",V),i=Se()(`${q}-directory`,{[`${q}-directory-rtl`]:u==="rtl"},K);return p.createElement(we,Object.assign({icon:W,ref:xe,blockNode:!0},L,{showIcon:y,expandAction:A,prefixCls:q,className:i,expandedKeys:H,selectedKeys:re,onSelect:Z,onExpand:ce}))};var G=p.forwardRef(B);const ye=we;ye.DirectoryTree=G,ye.TreeNode=e.OF;var et=ye},12425:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return Ne},Yk:function(){return O},TM:function(){return I}});var e=t(36237),m=t(36170),p=t(63356),Q=t(34961),N=t(51636),P=t(16931);const g=ge=>{let{treeCls:se,treeNodeCls:ve,directoryNodeSelectedBg:h,directoryNodeSelectedColor:de,motionDurationMid:s,borderRadius:f,controlItemBgHover:Y}=ge;return{[`${se}${se}-directory ${ve}`]:{[`${se}-node-content-wrapper`]:{position:"static",[`> *:not(${se}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${s}`,content:'""',borderRadius:f},"&:hover:before":{background:Y}},[`${se}-switcher, ${se}-checkbox, ${se}-draggable-icon`]:{zIndex:1},"&-selected":{[`${se}-switcher, ${se}-draggable-icon`]:{color:de},[`${se}-node-content-wrapper`]:{color:de,background:"transparent","&:before, &:hover:before":{background:h}}}}}},D=new e.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),F=(ge,se)=>({[`.${ge}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${se.motionDurationSlow}`}}}),n=(ge,se)=>({[`.${ge}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:se.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,e.unit)(se.lineWidthBold)} solid ${se.colorPrimary}`,borderRadius:"50%",content:'""'}}}),J=(ge,se)=>{const{treeCls:ve,treeNodeCls:h,treeNodePadding:de,titleHeight:s,indentSize:f,nodeSelectedBg:Y,nodeHoverBg:ee,colorTextQuaternary:te,controlItemBgActiveDisabled:Ve}=se;return{[ve]:Object.assign(Object.assign({},(0,p.Wf)(se)),{background:se.colorBgContainer,borderRadius:se.borderRadius,transition:`background-color ${se.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${ve}-rtl ${ve}-switcher_close ${ve}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${ve}-active-focused)`]:Object.assign({},(0,p.oN)(se)),[`${ve}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ve}-block-node`]:{[`${ve}-list-holder-inner`]:{alignItems:"stretch",[`${ve}-node-content-wrapper`]:{flex:"auto"},[`${h}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${se.colorPrimary}`,opacity:0,animationName:D,animationDuration:se.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:se.borderRadius}}},[h]:{display:"flex",alignItems:"flex-start",marginBottom:de,lineHeight:(0,e.unit)(s),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:de},[`&-disabled ${ve}-node-content-wrapper`]:{color:se.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${ve}-checkbox-disabled + ${ve}-node-selected,&${h}-disabled${h}-selected ${ve}-node-content-wrapper`]:{backgroundColor:Ve},[`${ve}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${h}-disabled)`]:{[`${ve}-node-content-wrapper`]:{"&:hover":{color:se.nodeHoverColor}}},[`&-active ${ve}-node-content-wrapper`]:{background:se.controlItemBgHover},[`&:not(${h}-disabled).filter-node ${ve}-title`]:{color:se.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${ve}-draggable-icon`]:{flexShrink:0,width:s,textAlign:"center",visibility:"visible",color:te},[`&${h}-disabled ${ve}-draggable-icon`]:{visibility:"hidden"}}},[`${ve}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:f}},[`${ve}-draggable-icon`]:{visibility:"hidden"},[`${ve}-switcher, ${ve}-checkbox`]:{marginInlineEnd:se.calc(se.calc(s).sub(se.controlInteractiveSize)).div(2).equal()},[`${ve}-switcher`]:Object.assign(Object.assign({},F(ge,se)),{position:"relative",flex:"none",alignSelf:"stretch",width:s,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${se.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:s,height:s,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:se.borderRadius,transition:`all ${se.motionDurationSlow}`},[`&:not(${ve}-switcher-noop):hover:before`]:{backgroundColor:se.colorBgTextHover},[`&_close ${ve}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:se.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se.calc(s).div(2).equal(),bottom:se.calc(de).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${se.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se.calc(se.calc(s).div(2).equal()).mul(.8).equal(),height:se.calc(s).div(2).equal(),borderBottom:`1px solid ${se.colorBorder}`,content:'""'}}}),[`${ve}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:s,paddingBlock:0,paddingInline:se.paddingXS,background:"transparent",borderRadius:se.borderRadius,cursor:"pointer",transition:`all ${se.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},n(ge,se)),{"&:hover":{backgroundColor:ee},[`&${ve}-node-selected`]:{color:se.nodeSelectedColor,backgroundColor:Y},[`${ve}-iconEle`]:{display:"inline-block",width:s,height:s,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${ve}-unselectable ${ve}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${h}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${se.colorPrimary}`},"&-show-line":{[`${ve}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:se.calc(s).div(2).equal(),bottom:se.calc(de).mul(-1).equal(),borderInlineEnd:`1px solid ${se.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${ve}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${h}-leaf-last ${ve}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,e.unit)(se.calc(s).div(2).equal())} !important`}})}},O=function(ge,se){let ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const h=`.${ge}`,de=`${h}-treenode`,s=se.calc(se.paddingXS).div(2).equal(),f=(0,N.mergeToken)(se,{treeCls:h,treeNodeCls:de,treeNodePadding:s});return[J(ge,f),ve&&g(f)].filter(Boolean)},I=ge=>{const{controlHeightSM:se,controlItemBgHover:ve,controlItemBgActive:h}=ge,de=se;return{titleHeight:de,indentSize:de,nodeHoverBg:ve,nodeHoverColor:ge.colorText,nodeSelectedBg:h,nodeSelectedColor:ge.colorText}},Se=ge=>{const{colorTextLightSolid:se,colorPrimary:ve}=ge;return Object.assign(Object.assign({},I(ge)),{directoryNodeSelectedColor:se,directoryNodeSelectedBg:ve})};var Ne=(0,P.I$)("Tree",(ge,se)=>{let{prefixCls:ve}=se;return[{[ge.componentCls]:(0,m.C2)(`${ve}-checkbox`,ge)},O(ve,ge),(0,Q.Z)(ge)]},Se)},85278:function(Yt,Ge,t){t.d(Ge,{Z:function(){return se}});var e=t(59301),m=t(54476),p={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Q=p,N=t(7657),P=function(h,de){return e.createElement(N.Z,(0,m.Z)({},h,{ref:de,icon:Q}))},g=e.forwardRef(P),D=g,F=t(52671),n=t(58617),J=t(15075),O=t(43531),I=t(92310),Se=t.n(I),Ne=t(22703),se=ve=>{const{prefixCls:h,switcherIcon:de,treeNodeProps:s,showLine:f,switcherLoadingIcon:Y}=ve,{isLeaf:ee,expanded:te,loading:Ve}=s;if(Ve)return e.isValidElement(Y)?Y:e.createElement(n.Z,{className:`${h}-switcher-loading-icon`});let we;if(f&&typeof f=="object"&&(we=f.showLeafIcon),ee){if(!f)return null;if(typeof we!="boolean"&&we){const ae=typeof we=="function"?we(s):we,C=`${h}-switcher-line-custom-icon`;return e.isValidElement(ae)?(0,Ne.Tm)(ae,{className:Se()(ae.props.className||"",C)}):ae}return we?e.createElement(F.Z,{className:`${h}-switcher-line-icon`}):e.createElement("span",{className:`${h}-switcher-leaf-line`})}const k=`${h}-switcher-icon`,Oe=typeof de=="function"?de(s):de;return e.isValidElement(Oe)?(0,Ne.Tm)(Oe,{className:Se()(Oe.props.className||"",k)}):Oe!==void 0?Oe:f?te?e.createElement(J.Z,{className:`${h}-switcher-line-icon`}):e.createElement(O.Z,{className:`${h}-switcher-line-icon`}):e.createElement(D,{className:k})}},16632:function(Yt,Ge,t){var e=t(54476),m=t(33885),p=t(20068),Q=t(42978),N=t(75931),P=t(92310),g=t.n(P),D=t(18929),F=t(59301),n=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],J=(0,F.forwardRef)(function(O,I){var Se=O.prefixCls,Ne=Se===void 0?"rc-checkbox":Se,ge=O.className,se=O.style,ve=O.checked,h=O.disabled,de=O.defaultChecked,s=de===void 0?!1:de,f=O.type,Y=f===void 0?"checkbox":f,ee=O.title,te=O.onChange,Ve=(0,N.Z)(O,n),we=(0,F.useRef)(null),k=(0,F.useRef)(null),Oe=(0,D.Z)(s,{value:ve}),ae=(0,Q.Z)(Oe,2),C=ae[0],l=ae[1];(0,F.useImperativeHandle)(I,function(){return{focus:function(c){var B;(B=we.current)===null||B===void 0||B.focus(c)},blur:function(){var c;(c=we.current)===null||c===void 0||c.blur()},input:we.current,nativeElement:k.current}});var ie=g()(Ne,ge,(0,p.Z)((0,p.Z)({},"".concat(Ne,"-checked"),C),"".concat(Ne,"-disabled"),h)),z=function(c){h||("checked"in O||l(c.target.checked),te==null||te({target:(0,m.Z)((0,m.Z)({},O),{},{type:Y,checked:c.target.checked}),stopPropagation:function(){c.stopPropagation()},preventDefault:function(){c.preventDefault()},nativeEvent:c.nativeEvent}))};return F.createElement("span",{className:ie,title:ee,style:se,ref:k},F.createElement("input",(0,e.Z)({},Ve,{className:"".concat(Ne,"-input"),ref:we,onChange:z,disabled:h,checked:!!C,type:Y})),F.createElement("span",{className:"".concat(Ne,"-inner")}))});Ge.Z=J},96478:function(Yt,Ge,t){t.d(Ge,{Z:function(){return ee}});var e=t(54476),m=t(20068),p=t(42978),Q=t(75931),N=t(65030),P=t(92310),g=t.n(P),D=t(8654),F=t(59301),n=t(10228),J=t(16089),O=n.Z.ESC,I=n.Z.TAB;function Se(te){var Ve=te.visible,we=te.triggerRef,k=te.onVisibleChange,Oe=te.autoFocus,ae=te.overlayRef,C=F.useRef(!1),l=function(){if(Ve){var c,B;(c=we.current)===null||c===void 0||(B=c.focus)===null||B===void 0||B.call(c),k==null||k(!1)}},ie=function(){var c;return(c=ae.current)!==null&&c!==void 0&&c.focus?(ae.current.focus(),C.current=!0,!0):!1},z=function(c){switch(c.keyCode){case O:l();break;case I:{var B=!1;C.current||(B=ie()),B?c.preventDefault():l();break}}};F.useEffect(function(){return Ve?(window.addEventListener("keydown",z),Oe&&(0,J.Z)(ie,3),function(){window.removeEventListener("keydown",z),C.current=!1}):function(){C.current=!1}},[Ve])}var Ne=(0,F.forwardRef)(function(te,Ve){var we=te.overlay,k=te.arrow,Oe=te.prefixCls,ae=(0,F.useMemo)(function(){var l;return typeof we=="function"?l=we():l=we,l},[we]),C=(0,D.sQ)(Ve,(0,D.C4)(ae));return F.createElement(F.Fragment,null,k&&F.createElement("div",{className:"".concat(Oe,"-arrow")}),F.cloneElement(ae,{ref:(0,D.Yr)(ae)?C:void 0}))}),ge=Ne,se={adjustX:1,adjustY:1},ve=[0,0],h={topLeft:{points:["bl","tl"],overflow:se,offset:[0,-4],targetOffset:ve},top:{points:["bc","tc"],overflow:se,offset:[0,-4],targetOffset:ve},topRight:{points:["br","tr"],overflow:se,offset:[0,-4],targetOffset:ve},bottomLeft:{points:["tl","bl"],overflow:se,offset:[0,4],targetOffset:ve},bottom:{points:["tc","bc"],overflow:se,offset:[0,4],targetOffset:ve},bottomRight:{points:["tr","br"],overflow:se,offset:[0,4],targetOffset:ve}},de=h,s=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function f(te,Ve){var we,k=te.arrow,Oe=k===void 0?!1:k,ae=te.prefixCls,C=ae===void 0?"rc-dropdown":ae,l=te.transitionName,ie=te.animation,z=te.align,W=te.placement,c=W===void 0?"bottomLeft":W,B=te.placements,oe=B===void 0?de:B,G=te.getPopupContainer,ye=te.showAction,et=te.hideAction,_=te.overlayClassName,xe=te.overlayStyle,pe=te.visible,Xe=te.trigger,M=Xe===void 0?["hover"]:Xe,Ee=te.autoFocus,be=te.overlay,ct=te.children,Le=te.onVisibleChange,re=(0,Q.Z)(te,s),T=F.useState(),H=(0,p.Z)(T,2),d=H[0],ce=H[1],Z="visible"in te?pe:d,r=F.useRef(null),u=F.useRef(null),V=F.useRef(null);F.useImperativeHandle(Ve,function(){return r.current});var K=function(Ie){ce(Ie),Le==null||Le(Ie)};Se({visible:Z,triggerRef:V,onVisibleChange:K,autoFocus:Ee,overlayRef:u});var y=function(Ie){var Be=te.onOverlayClick;ce(!1),Be&&Be(Ie)},A=function(){return F.createElement(ge,{ref:u,overlay:be,prefixCls:C,arrow:Oe})},L=function(){return typeof be=="function"?A:A()},q=function(){var Ie=te.minOverlayWidthMatchTrigger,Be=te.alignPoint;return"minOverlayWidthMatchTrigger"in te?Ie:!Be},i=function(){var Ie=te.openClassName;return Ie!==void 0?Ie:"".concat(C,"-open")},v=F.cloneElement(ct,{className:g()((we=ct.props)===null||we===void 0?void 0:we.className,Z&&i()),ref:(0,D.Yr)(ct)?(0,D.sQ)(V,(0,D.C4)(ct)):void 0}),Me=et;return!Me&&M.indexOf("contextMenu")!==-1&&(Me=["click"]),F.createElement(N.Z,(0,e.Z)({builtinPlacements:oe},re,{prefixCls:C,ref:r,popupClassName:g()(_,(0,m.Z)({},"".concat(C,"-show-arrow"),Oe)),popupStyle:xe,action:M,showAction:ye,hideAction:Me,popupPlacement:c,popupAlign:z,popupTransitionName:l,popupAnimation:ie,popupVisible:Z,stretch:q()?"minWidth":"",popup:L(),onPopupVisibleChange:K,onPopupClick:y,getPopupContainer:G}),v)}var Y=F.forwardRef(f),ee=Y},66003:function(Yt,Ge,t){t.d(Ge,{Z:function(){return g}});var e=t(75931),m=t(33885),p=t(76190),Q=t(59301),N=["show"];function P(D,F){if(!F.max)return!0;var n=F.strategy(D);return n<=F.max}function g(D,F){return Q.useMemo(function(){var n={};F&&(n.show=(0,p.Z)(F)==="object"&&F.formatter?F.formatter:!!F),n=(0,m.Z)((0,m.Z)({},n),D);var J=n,O=J.show,I=(0,e.Z)(J,N);return(0,m.Z)((0,m.Z)({},I),{},{show:!!O,showFormatter:typeof O=="function"?O:void 0,strategy:I.strategy||function(Se){return Se.length}})},[D,F])}},36901:function(Yt,Ge,t){t.r(Ge),t.d(Ge,{BaseInput:function(){return n},default:function(){return de}});var e=t(33885),m=t(54476),p=t(20068),Q=t(76190),N=t(92310),P=t.n(N),g=t(59301),D=t(30292),F=g.forwardRef(function(s,f){var Y,ee,te,Ve=s.inputElement,we=s.children,k=s.prefixCls,Oe=s.prefix,ae=s.suffix,C=s.addonBefore,l=s.addonAfter,ie=s.className,z=s.style,W=s.disabled,c=s.readOnly,B=s.focused,oe=s.triggerFocus,G=s.allowClear,ye=s.value,et=s.handleReset,_=s.hidden,xe=s.classes,pe=s.classNames,Xe=s.dataAttrs,M=s.styles,Ee=s.components,be=s.onClear,ct=we!=null?we:Ve,Le=(Ee==null?void 0:Ee.affixWrapper)||"span",re=(Ee==null?void 0:Ee.groupWrapper)||"span",T=(Ee==null?void 0:Ee.wrapper)||"span",H=(Ee==null?void 0:Ee.groupAddon)||"span",d=(0,g.useRef)(null),ce=function(Ue){var je;(je=d.current)!==null&&je!==void 0&&je.contains(Ue.target)&&(oe==null||oe())},Z=(0,D.X3)(s),r=(0,g.cloneElement)(ct,{value:ye,className:P()((Y=ct.props)===null||Y===void 0?void 0:Y.className,!Z&&(pe==null?void 0:pe.variant))||null}),u=(0,g.useRef)(null);if(g.useImperativeHandle(f,function(){return{nativeElement:u.current||d.current}}),Z){var V=null;if(G){var K=!W&&!c&&ye,y="".concat(k,"-clear-icon"),A=(0,Q.Z)(G)==="object"&&G!==null&&G!==void 0&&G.clearIcon?G.clearIcon:"\u2716";V=g.createElement("button",{type:"button",tabIndex:-1,onClick:function(Ue){et==null||et(Ue),be==null||be()},onMouseDown:function(Ue){return Ue.preventDefault()},className:P()(y,(0,p.Z)((0,p.Z)({},"".concat(y,"-hidden"),!K),"".concat(y,"-has-suffix"),!!ae))},A)}var L="".concat(k,"-affix-wrapper"),q=P()(L,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(k,"-disabled"),W),"".concat(L,"-disabled"),W),"".concat(L,"-focused"),B),"".concat(L,"-readonly"),c),"".concat(L,"-input-with-clear-btn"),ae&&G&&ye),xe==null?void 0:xe.affixWrapper,pe==null?void 0:pe.affixWrapper,pe==null?void 0:pe.variant),i=(ae||G)&&g.createElement("span",{className:P()("".concat(k,"-suffix"),pe==null?void 0:pe.suffix),style:M==null?void 0:M.suffix},V,ae);r=g.createElement(Le,(0,m.Z)({className:q,style:M==null?void 0:M.affixWrapper,onClick:ce},Xe==null?void 0:Xe.affixWrapper,{ref:d}),Oe&&g.createElement("span",{className:P()("".concat(k,"-prefix"),pe==null?void 0:pe.prefix),style:M==null?void 0:M.prefix},Oe),r,i)}if((0,D.He)(s)){var v="".concat(k,"-group"),Me="".concat(v,"-addon"),fe="".concat(v,"-wrapper"),Ie=P()("".concat(k,"-wrapper"),v,xe==null?void 0:xe.wrapper,pe==null?void 0:pe.wrapper),Be=P()(fe,(0,p.Z)({},"".concat(fe,"-disabled"),W),xe==null?void 0:xe.group,pe==null?void 0:pe.groupWrapper);r=g.createElement(re,{className:Be,ref:u},g.createElement(T,{className:Ie},C&&g.createElement(H,{className:Me},C),r,l&&g.createElement(H,{className:Me},l)))}return g.cloneElement(r,{className:P()((ee=r.props)===null||ee===void 0?void 0:ee.className,ie)||null,style:(0,e.Z)((0,e.Z)({},(te=r.props)===null||te===void 0?void 0:te.style),z),hidden:_})}),n=F,J=t(94480),O=t(42978),I=t(75931),Se=t(18929),Ne=t(2738),ge=t(66003),se=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ve=(0,g.forwardRef)(function(s,f){var Y=s.autoComplete,ee=s.onChange,te=s.onFocus,Ve=s.onBlur,we=s.onPressEnter,k=s.onKeyDown,Oe=s.onKeyUp,ae=s.prefixCls,C=ae===void 0?"rc-input":ae,l=s.disabled,ie=s.htmlSize,z=s.className,W=s.maxLength,c=s.suffix,B=s.showCount,oe=s.count,G=s.type,ye=G===void 0?"text":G,et=s.classes,_=s.classNames,xe=s.styles,pe=s.onCompositionStart,Xe=s.onCompositionEnd,M=(0,I.Z)(s,se),Ee=(0,g.useState)(!1),be=(0,O.Z)(Ee,2),ct=be[0],Le=be[1],re=(0,g.useRef)(!1),T=(0,g.useRef)(!1),H=(0,g.useRef)(null),d=(0,g.useRef)(null),ce=function(me){H.current&&(0,D.nH)(H.current,me)},Z=(0,Se.Z)(s.defaultValue,{value:s.value}),r=(0,O.Z)(Z,2),u=r[0],V=r[1],K=u==null?"":String(u),y=(0,g.useState)(null),A=(0,O.Z)(y,2),L=A[0],q=A[1],i=(0,ge.Z)(oe,B),v=i.max||W,Me=i.strategy(K),fe=!!v&&Me>v;(0,g.useImperativeHandle)(f,function(){var U;return{focus:ce,blur:function(){var ze;(ze=H.current)===null||ze===void 0||ze.blur()},setSelectionRange:function(ze,Ke,ut){var pt;(pt=H.current)===null||pt===void 0||pt.setSelectionRange(ze,Ke,ut)},select:function(){var ze;(ze=H.current)===null||ze===void 0||ze.select()},input:H.current,nativeElement:((U=d.current)===null||U===void 0?void 0:U.nativeElement)||H.current}}),(0,g.useEffect)(function(){T.current&&(T.current=!1),Le(function(U){return U&&l?!1:U})},[l]);var Ie=function(me,ze,Ke){var ut=ze;if(!re.current&&i.exceedFormatter&&i.max&&i.strategy(ze)>i.max){if(ut=i.exceedFormatter(ze,{max:i.max}),ze!==ut){var pt,tt;q([((pt=H.current)===null||pt===void 0?void 0:pt.selectionStart)||0,((tt=H.current)===null||tt===void 0?void 0:tt.selectionEnd)||0])}}else if(Ke.source==="compositionEnd")return;V(ut),H.current&&(0,D.rJ)(H.current,me,ee,ut)};(0,g.useEffect)(function(){if(L){var U;(U=H.current)===null||U===void 0||U.setSelectionRange.apply(U,(0,J.Z)(L))}},[L]);var Be=function(me){Ie(me,me.target.value,{source:"change"})},Te=function(me){re.current=!1,Ie(me,me.currentTarget.value,{source:"compositionEnd"}),Xe==null||Xe(me)},Ue=function(me){we&&me.key==="Enter"&&!T.current&&(T.current=!0,we(me)),k==null||k(me)},je=function(me){me.key==="Enter"&&(T.current=!1),Oe==null||Oe(me)},x=function(me){Le(!0),te==null||te(me)},ne=function(me){T.current&&(T.current=!1),Le(!1),Ve==null||Ve(me)},Ce=function(me){V(""),ce(),H.current&&(0,D.rJ)(H.current,me,ee)},De=fe&&"".concat(C,"-out-of-range"),S=function(){var me=(0,Ne.Z)(s,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return g.createElement("input",(0,m.Z)({autoComplete:Y},me,{onChange:Be,onFocus:x,onBlur:ne,onKeyDown:Ue,onKeyUp:je,className:P()(C,(0,p.Z)({},"".concat(C,"-disabled"),l),_==null?void 0:_.input),style:xe==null?void 0:xe.input,ref:H,size:ie,type:ye,onCompositionStart:function(Ke){re.current=!0,pe==null||pe(Ke)},onCompositionEnd:Te}))},X=function(){var me=Number(v)>0;if(c||i.show){var ze=i.showFormatter?i.showFormatter({value:K,count:Me,maxLength:v}):"".concat(Me).concat(me?" / ".concat(v):"");return g.createElement(g.Fragment,null,i.show&&g.createElement("span",{className:P()("".concat(C,"-show-count-suffix"),(0,p.Z)({},"".concat(C,"-show-count-has-suffix"),!!c),_==null?void 0:_.count),style:(0,e.Z)({},xe==null?void 0:xe.count)},ze),c)}return null};return g.createElement(n,(0,m.Z)({},M,{prefixCls:C,className:P()(z,De),handleReset:Ce,value:K,focused:ct,triggerFocus:ce,suffix:X(),disabled:l,classes:et,classNames:_,styles:xe}),S())}),h=ve,de=h},30292:function(Yt,Ge,t){t.d(Ge,{He:function(){return e},X3:function(){return m},nH:function(){return N},rJ:function(){return Q}});function e(P){return!!(P.addonBefore||P.addonAfter)}function m(P){return!!(P.prefix||P.suffix||P.allowClear)}function p(P,g,D){var F=g.cloneNode(!0),n=Object.create(P,{target:{value:F},currentTarget:{value:F}});return F.value=D,typeof g.selectionStart=="number"&&typeof g.selectionEnd=="number"&&(F.selectionStart=g.selectionStart,F.selectionEnd=g.selectionEnd),F.setSelectionRange=function(){g.setSelectionRange.apply(g,arguments)},n}function Q(P,g,D,F){if(D){var n=g;if(g.type==="click"){n=p(g,P,""),D(n);return}if(P.type!=="file"&&F!==void 0){n=p(g,P,F),D(n);return}D(n)}}function N(P,g){if(P){P.focus(g);var D=g||{},F=D.cursor;if(F){var n=P.value.length;switch(F){case"start":P.setSelectionRange(0,0);break;case"end":P.setSelectionRange(n,n);break;default:P.setSelectionRange(0,n)}}}}},28321:function(Yt,Ge,t){t.d(Ge,{iz:function(){return R},ck:function(){return ut},BW:function(){return Ae},sN:function(){return ut},Wd:function(){return w},ZP:function(){return Rt},Xl:function(){return we}});var e=t(54476),m=t(20068),p=t(33885),Q=t(94480),N=t(42978),P=t(75931),g=t(92310),D=t.n(g),F=t(83836),n=t(18929),J=t(13697),O=t(48736),I=t(59301),Se=t(4676),Ne=I.createContext(null);function ge(ue,Re){return ue===void 0?null:"".concat(ue,"-").concat(Re)}function se(ue){var Re=I.useContext(Ne);return ge(Re,ue)}var ve=t(80547),h=["children","locked"],de=I.createContext(null);function s(ue,Re){var Ze=(0,p.Z)({},ue);return Object.keys(Re).forEach(function(Ye){var _e=Re[Ye];_e!==void 0&&(Ze[Ye]=_e)}),Ze}function f(ue){var Re=ue.children,Ze=ue.locked,Ye=(0,P.Z)(ue,h),_e=I.useContext(de),nt=(0,ve.Z)(function(){return s(_e,Ye)},[_e,Ye],function(ft,Ot){return!Ze&&(ft[0]!==Ot[0]||!(0,J.Z)(ft[1],Ot[1],!0))});return I.createElement(de.Provider,{value:nt},Re)}var Y=[],ee=I.createContext(null);function te(){return I.useContext(ee)}var Ve=I.createContext(Y);function we(ue){var Re=I.useContext(Ve);return I.useMemo(function(){return ue!==void 0?[].concat((0,Q.Z)(Re),[ue]):Re},[Re,ue])}var k=I.createContext(null),Oe=I.createContext({}),ae=Oe,C=t(29194);function l(ue){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,C.Z)(ue)){var Ze=ue.nodeName.toLowerCase(),Ye=["input","select","textarea","button"].includes(Ze)||ue.isContentEditable||Ze==="a"&&!!ue.getAttribute("href"),_e=ue.getAttribute("tabindex"),nt=Number(_e),ft=null;return _e&&!Number.isNaN(nt)?ft=nt:Ye&&ft===null&&(ft=0),Ye&&ue.disabled&&(ft=null),ft!==null&&(ft>=0||Re&&ft<0)}return!1}function ie(ue){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=(0,Q.Z)(ue.querySelectorAll("*")).filter(function(Ye){return l(Ye,Re)});return l(ue,Re)&&Ze.unshift(ue),Ze}var z=null;function W(){z=document.activeElement}function c(){z=null}function B(){if(z)try{z.focus()}catch(ue){}}function oe(ue,Re){if(Re.keyCode===9){var Ze=ie(ue),Ye=Ze[Re.shiftKey?0:Ze.length-1],_e=Ye===document.activeElement||ue===document.activeElement;if(_e){var nt=Ze[Re.shiftKey?Ze.length-1:0];nt.focus(),Re.preventDefault()}}}var G=t(10228),ye=t(16089),et=G.Z.LEFT,_=G.Z.RIGHT,xe=G.Z.UP,pe=G.Z.DOWN,Xe=G.Z.ENTER,M=G.Z.ESC,Ee=G.Z.HOME,be=G.Z.END,ct=[xe,pe,et,_];function Le(ue,Re,Ze,Ye){var _e,nt="prev",ft="next",Ot="children",Dt="parent";if(ue==="inline"&&Ye===Xe)return{inlineTrigger:!0};var Ft=(0,m.Z)((0,m.Z)({},xe,nt),pe,ft),Xt=(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},et,Ze?ft:nt),_,Ze?nt:ft),pe,Ot),Xe,Ot),Tt=(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},xe,nt),pe,ft),Xe,Ot),M,Dt),et,Ze?Ot:Dt),_,Ze?Dt:Ot),Zt={inline:Ft,horizontal:Xt,vertical:Tt,inlineSub:Ft,horizontalSub:Tt,verticalSub:Tt},jt=(_e=Zt["".concat(ue).concat(Re?"":"Sub")])===null||_e===void 0?void 0:_e[Ye];switch(jt){case nt:return{offset:-1,sibling:!0};case ft:return{offset:1,sibling:!0};case Dt:return{offset:-1,sibling:!1};case Ot:return{offset:1,sibling:!1};default:return null}}function re(ue){for(var Re=ue;Re;){if(Re.getAttribute("data-menu-list"))return Re;Re=Re.parentElement}return null}function T(ue,Re){for(var Ze=ue||document.activeElement;Ze;){if(Re.has(Ze))return Ze;Ze=Ze.parentElement}return null}function H(ue,Re){var Ze=ie(ue,!0);return Ze.filter(function(Ye){return Re.has(Ye)})}function d(ue,Re,Ze){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!ue)return null;var _e=H(ue,Re),nt=_e.length,ft=_e.findIndex(function(Ot){return Ze===Ot});return Ye<0?ft===-1?ft=nt-1:ft-=1:Ye>0&&(ft+=1),ft=(ft+nt)%nt,_e[ft]}var ce=function(Re,Ze){var Ye=new Set,_e=new Map,nt=new Map;return Re.forEach(function(ft){var Ot=document.querySelector("[data-menu-id='".concat(ge(Ze,ft),"']"));Ot&&(Ye.add(Ot),nt.set(Ot,ft),_e.set(ft,Ot))}),{elements:Ye,key2element:_e,element2key:nt}};function Z(ue,Re,Ze,Ye,_e,nt,ft,Ot,Dt,Ft){var Xt=I.useRef(),Tt=I.useRef();Tt.current=Re;var Zt=function(){ye.Z.cancel(Xt.current)};return I.useEffect(function(){return function(){Zt()}},[]),function(jt){var Qt=jt.which;if([].concat(ct,[Xe,M,Ee,be]).includes(Qt)){var an=nt(),$t=ce(an,Ye),Vt=$t,En=Vt.elements,un=Vt.key2element,sn=Vt.element2key,bn=un.get(Re),Wt=T(bn,En),Jt=sn.get(Wt),Pn=Le(ue,ft(Jt,!0).length===1,Ze,Qt);if(!Pn&&Qt!==Ee&&Qt!==be)return;(ct.includes(Qt)||[Ee,be].includes(Qt))&&jt.preventDefault();var Dn=function(Lt){if(Lt){var yt=Lt,Et=Lt.querySelector("a");Et!=null&&Et.getAttribute("href")&&(yt=Et);var It=sn.get(Lt);Ot(It),Zt(),Xt.current=(0,ye.Z)(function(){Tt.current===It&&yt.focus()})}};if([Ee,be].includes(Qt)||Pn.sibling||!Wt){var Un;!Wt||ue==="inline"?Un=_e.current:Un=re(Wt);var Mn,Vn=H(Un,En);Qt===Ee?Mn=Vn[0]:Qt===be?Mn=Vn[Vn.length-1]:Mn=d(Un,En,Wt,Pn.offset),Dn(Mn)}else if(Pn.inlineTrigger)Dt(Jt);else if(Pn.offset>0)Dt(Jt,!0),Zt(),Xt.current=(0,ye.Z)(function(){$t=ce(an,Ye);var qn=Wt.getAttribute("aria-controls"),Lt=document.getElementById(qn),yt=d(Lt,$t.elements);Dn(yt)},5);else if(Pn.offset<0){var Jn=ft(Jt,!0),rr=Jn[Jn.length-2],ar=un.get(rr);Dt(rr,!1),Dn(ar)}}Ft==null||Ft(jt)}}function r(ue){Promise.resolve().then(ue)}var u="__RC_UTIL_PATH_SPLIT__",V=function(Re){return Re.join(u)},K=function(Re){return Re.split(u)},y="rc-menu-more";function A(){var ue=I.useState({}),Re=(0,N.Z)(ue,2),Ze=Re[1],Ye=(0,I.useRef)(new Map),_e=(0,I.useRef)(new Map),nt=I.useState([]),ft=(0,N.Z)(nt,2),Ot=ft[0],Dt=ft[1],Ft=(0,I.useRef)(0),Xt=(0,I.useRef)(!1),Tt=function(){Xt.current||Ze({})},Zt=(0,I.useCallback)(function(un,sn){var bn=V(sn);_e.current.set(bn,un),Ye.current.set(un,bn),Ft.current+=1;var Wt=Ft.current;r(function(){Wt===Ft.current&&Tt()})},[]),jt=(0,I.useCallback)(function(un,sn){var bn=V(sn);_e.current.delete(bn),Ye.current.delete(un)},[]),Qt=(0,I.useCallback)(function(un){Dt(un)},[]),an=(0,I.useCallback)(function(un,sn){var bn=Ye.current.get(un)||"",Wt=K(bn);return sn&&Ot.includes(Wt[0])&&Wt.unshift(y),Wt},[Ot]),$t=(0,I.useCallback)(function(un,sn){return un.filter(function(bn){return bn!==void 0}).some(function(bn){var Wt=an(bn,!0);return Wt.includes(sn)})},[an]),Vt=function(){var sn=(0,Q.Z)(Ye.current.keys());return Ot.length&&sn.push(y),sn},En=(0,I.useCallback)(function(un){var sn="".concat(Ye.current.get(un)).concat(u),bn=new Set;return(0,Q.Z)(_e.current.keys()).forEach(function(Wt){Wt.startsWith(sn)&&bn.add(_e.current.get(Wt))}),bn},[]);return I.useEffect(function(){return function(){Xt.current=!0}},[]),{registerPath:Zt,unregisterPath:jt,refreshOverflowKeys:Qt,isSubPathKey:$t,getKeyPath:an,getKeys:Vt,getSubPathKeys:En}}function L(ue){var Re=I.useRef(ue);Re.current=ue;var Ze=I.useCallback(function(){for(var Ye,_e=arguments.length,nt=new Array(_e),ft=0;ft<_e;ft++)nt[ft]=arguments[ft];return(Ye=Re.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Re].concat(nt))},[]);return ue?Ze:void 0}var q=Math.random().toFixed(5).toString().slice(2),i=0;function v(ue){var Re=(0,n.Z)(ue,{value:ue}),Ze=(0,N.Z)(Re,2),Ye=Ze[0],_e=Ze[1];return I.useEffect(function(){i+=1;var nt="".concat(q,"-").concat(i);_e("rc-menu-uuid-".concat(nt))},[]),Ye}var Me=t(67732),fe=t(83652),Ie=t(42403),Be=t(158),Te=t(2738),Ue=t(8654);function je(ue,Re,Ze,Ye){var _e=I.useContext(de),nt=_e.activeKey,ft=_e.onActive,Ot=_e.onInactive,Dt={active:nt===ue};return Re||(Dt.onMouseEnter=function(Ft){Ze==null||Ze({key:ue,domEvent:Ft}),ft(ue)},Dt.onMouseLeave=function(Ft){Ye==null||Ye({key:ue,domEvent:Ft}),Ot(ue)}),Dt}function x(ue){var Re=I.useContext(de),Ze=Re.mode,Ye=Re.rtl,_e=Re.inlineIndent;if(Ze!=="inline")return null;var nt=ue;return Ye?{paddingRight:nt*_e}:{paddingLeft:nt*_e}}function ne(ue){var Re=ue.icon,Ze=ue.props,Ye=ue.children,_e;return Re===null||Re===!1?null:(typeof Re=="function"?_e=I.createElement(Re,(0,p.Z)({},Ze)):typeof Re!="boolean"&&(_e=Re),_e||Ye||null)}var Ce=["item"];function De(ue){var Re=ue.item,Ze=(0,P.Z)(ue,Ce);return Object.defineProperty(Ze,"item",{get:function(){return(0,O.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Re}}),Ze}var S=["title","attribute","elementRef"],X=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],U=["active"],me=function(ue){(0,Ie.Z)(Ze,ue);var Re=(0,Be.Z)(Ze);function Ze(){return(0,Me.Z)(this,Ze),Re.apply(this,arguments)}return(0,fe.Z)(Ze,[{key:"render",value:function(){var _e=this.props,nt=_e.title,ft=_e.attribute,Ot=_e.elementRef,Dt=(0,P.Z)(_e,S),Ft=(0,Te.Z)(Dt,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,O.ZP)(!ft,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),I.createElement(F.Z.Item,(0,e.Z)({},ft,{title:typeof nt=="string"?nt:void 0},Ft,{ref:Ot}))}}]),Ze}(I.Component),ze=I.forwardRef(function(ue,Re){var Ze=ue.style,Ye=ue.className,_e=ue.eventKey,nt=ue.warnKey,ft=ue.disabled,Ot=ue.itemIcon,Dt=ue.children,Ft=ue.role,Xt=ue.onMouseEnter,Tt=ue.onMouseLeave,Zt=ue.onClick,jt=ue.onKeyDown,Qt=ue.onFocus,an=(0,P.Z)(ue,X),$t=se(_e),Vt=I.useContext(de),En=Vt.prefixCls,un=Vt.onItemClick,sn=Vt.disabled,bn=Vt.overflowDisabled,Wt=Vt.itemIcon,Jt=Vt.selectedKeys,Pn=Vt.onActive,Dn=I.useContext(ae),Un=Dn._internalRenderMenuItem,Mn="".concat(En,"-item"),Vn=I.useRef(),Jn=I.useRef(),rr=sn||ft,ar=(0,Ue.x1)(Re,Jn),qn=we(_e),Lt=function(er){return{key:_e,keyPath:(0,Q.Z)(qn).reverse(),item:Vn.current,domEvent:er}},yt=Ot||Wt,Et=je(_e,rr,Xt,Tt),It=Et.active,wt=(0,P.Z)(Et,U),kt=Jt.includes(_e),nn=x(qn.length),Tn=function(er){if(!rr){var xr=Lt(er);Zt==null||Zt(De(xr)),un(xr)}},Rn=function(er){if(jt==null||jt(er),er.which===G.Z.ENTER){var xr=Lt(er);Zt==null||Zt(De(xr)),un(xr)}},kn=function(er){Pn(_e),Qt==null||Qt(er)},Cr={};ue.role==="option"&&(Cr["aria-selected"]=kt);var Sr=I.createElement(me,(0,e.Z)({ref:Vn,elementRef:ar,role:Ft===null?"none":Ft||"menuitem",tabIndex:ft?null:-1,"data-menu-id":bn&&$t?null:$t},(0,Te.Z)(an,["extra"]),wt,Cr,{component:"li","aria-disabled":ft,style:(0,p.Z)((0,p.Z)({},nn),Ze),className:D()(Mn,(0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(Mn,"-active"),It),"".concat(Mn,"-selected"),kt),"".concat(Mn,"-disabled"),rr),Ye),onClick:Tn,onKeyDown:Rn,onFocus:kn}),Dt,I.createElement(ne,{props:(0,p.Z)((0,p.Z)({},ue),{},{isSelected:kt}),icon:yt}));return Un&&(Sr=Un(Sr,ue,{selected:kt})),Sr});function Ke(ue,Re){var Ze=ue.eventKey,Ye=te(),_e=we(Ze);return I.useEffect(function(){if(Ye)return Ye.registerPath(Ze,_e),function(){Ye.unregisterPath(Ze,_e)}},[_e]),Ye?null:I.createElement(ze,(0,e.Z)({},ue,{ref:Re}))}var ut=I.forwardRef(Ke),pt=["className","children"],tt=function(Re,Ze){var Ye=Re.className,_e=Re.children,nt=(0,P.Z)(Re,pt),ft=I.useContext(de),Ot=ft.prefixCls,Dt=ft.mode,Ft=ft.rtl;return I.createElement("ul",(0,e.Z)({className:D()(Ot,Ft&&"".concat(Ot,"-rtl"),"".concat(Ot,"-sub"),"".concat(Ot,"-").concat(Dt==="inline"?"inline":"vertical"),Ye),role:"menu"},nt,{"data-menu-list":!0,ref:Ze}),_e)},mt=I.forwardRef(tt);mt.displayName="SubMenuList";var ke=mt,rt=t(11592);function ot(ue,Re){return(0,rt.Z)(ue).map(function(Ze,Ye){if(I.isValidElement(Ze)){var _e,nt,ft=Ze.key,Ot=(_e=(nt=Ze.props)===null||nt===void 0?void 0:nt.eventKey)!==null&&_e!==void 0?_e:ft,Dt=Ot==null;Dt&&(Ot="tmp_key-".concat([].concat((0,Q.Z)(Re),[Ye]).join("-")));var Ft={key:Ot,eventKey:Ot};return I.cloneElement(Ze,Ft)}return Ze})}var xt=t(65030),gt={adjustX:1,adjustY:1},Pt={topLeft:{points:["bl","tl"],overflow:gt},topRight:{points:["br","tr"],overflow:gt},bottomLeft:{points:["tl","bl"],overflow:gt},bottomRight:{points:["tr","br"],overflow:gt},leftTop:{points:["tr","tl"],overflow:gt},leftBottom:{points:["br","bl"],overflow:gt},rightTop:{points:["tl","tr"],overflow:gt},rightBottom:{points:["bl","br"],overflow:gt}},Mt={topLeft:{points:["bl","tl"],overflow:gt},topRight:{points:["br","tr"],overflow:gt},bottomLeft:{points:["tl","bl"],overflow:gt},bottomRight:{points:["tr","br"],overflow:gt},rightTop:{points:["tr","tl"],overflow:gt},rightBottom:{points:["br","bl"],overflow:gt},leftTop:{points:["tl","tr"],overflow:gt},leftBottom:{points:["bl","br"],overflow:gt}},Gt=null;function rn(ue,Re,Ze){if(Re)return Re;if(Ze)return Ze[ue]||Ze.other}var Ht={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function At(ue){var Re=ue.prefixCls,Ze=ue.visible,Ye=ue.children,_e=ue.popup,nt=ue.popupStyle,ft=ue.popupClassName,Ot=ue.popupOffset,Dt=ue.disabled,Ft=ue.mode,Xt=ue.onVisibleChange,Tt=I.useContext(de),Zt=Tt.getPopupContainer,jt=Tt.rtl,Qt=Tt.subMenuOpenDelay,an=Tt.subMenuCloseDelay,$t=Tt.builtinPlacements,Vt=Tt.triggerSubMenuAction,En=Tt.forceSubMenuRender,un=Tt.rootClassName,sn=Tt.motion,bn=Tt.defaultMotions,Wt=I.useState(!1),Jt=(0,N.Z)(Wt,2),Pn=Jt[0],Dn=Jt[1],Un=jt?(0,p.Z)((0,p.Z)({},Mt),$t):(0,p.Z)((0,p.Z)({},Pt),$t),Mn=Ht[Ft],Vn=rn(Ft,sn,bn),Jn=I.useRef(Vn);Ft!=="inline"&&(Jn.current=Vn);var rr=(0,p.Z)((0,p.Z)({},Jn.current),{},{leavedClassName:"".concat(Re,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ar=I.useRef();return I.useEffect(function(){return ar.current=(0,ye.Z)(function(){Dn(Ze)}),function(){ye.Z.cancel(ar.current)}},[Ze]),I.createElement(xt.Z,{prefixCls:Re,popupClassName:D()("".concat(Re,"-popup"),(0,m.Z)({},"".concat(Re,"-rtl"),jt),ft,un),stretch:Ft==="horizontal"?"minWidth":null,getPopupContainer:Zt,builtinPlacements:Un,popupPlacement:Mn,popupVisible:Pn,popup:_e,popupStyle:nt,popupAlign:Ot&&{offset:Ot},action:Dt?[]:[Vt],mouseEnterDelay:Qt,mouseLeaveDelay:an,onPopupVisibleChange:Xt,forceRender:En,popupMotion:rr,fresh:!0},Ye)}var vn=t(77900);function Bt(ue){var Re=ue.id,Ze=ue.open,Ye=ue.keyPath,_e=ue.children,nt="inline",ft=I.useContext(de),Ot=ft.prefixCls,Dt=ft.forceSubMenuRender,Ft=ft.motion,Xt=ft.defaultMotions,Tt=ft.mode,Zt=I.useRef(!1);Zt.current=Tt===nt;var jt=I.useState(!Zt.current),Qt=(0,N.Z)(jt,2),an=Qt[0],$t=Qt[1],Vt=Zt.current?Ze:!1;I.useEffect(function(){Zt.current&&$t(!1)},[Tt]);var En=(0,p.Z)({},rn(nt,Ft,Xt));Ye.length>1&&(En.motionAppear=!1);var un=En.onVisibleChanged;return En.onVisibleChanged=function(sn){return!Zt.current&&!sn&&$t(!0),un==null?void 0:un(sn)},an?null:I.createElement(f,{mode:nt,locked:!Zt.current},I.createElement(vn.default,(0,e.Z)({visible:Vt},En,{forceRender:Dt,removeOnLeave:!1,leavedClassName:"".concat(Ot,"-hidden")}),function(sn){var bn=sn.className,Wt=sn.style;return I.createElement(ke,{id:Re,className:bn,style:Wt},_e)}))}var mn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pn=["active"],en=I.forwardRef(function(ue,Re){var Ze=ue.style,Ye=ue.className,_e=ue.title,nt=ue.eventKey,ft=ue.warnKey,Ot=ue.disabled,Dt=ue.internalPopupClose,Ft=ue.children,Xt=ue.itemIcon,Tt=ue.expandIcon,Zt=ue.popupClassName,jt=ue.popupOffset,Qt=ue.popupStyle,an=ue.onClick,$t=ue.onMouseEnter,Vt=ue.onMouseLeave,En=ue.onTitleClick,un=ue.onTitleMouseEnter,sn=ue.onTitleMouseLeave,bn=(0,P.Z)(ue,mn),Wt=se(nt),Jt=I.useContext(de),Pn=Jt.prefixCls,Dn=Jt.mode,Un=Jt.openKeys,Mn=Jt.disabled,Vn=Jt.overflowDisabled,Jn=Jt.activeKey,rr=Jt.selectedKeys,ar=Jt.itemIcon,qn=Jt.expandIcon,Lt=Jt.onItemClick,yt=Jt.onOpenChange,Et=Jt.onActive,It=I.useContext(ae),wt=It._internalRenderSubMenuItem,kt=I.useContext(k),nn=kt.isSubPathKey,Tn=we(),Rn="".concat(Pn,"-submenu"),kn=Mn||Ot,Cr=I.useRef(),Sr=I.useRef(),hr=Xt!=null?Xt:ar,er=Tt!=null?Tt:qn,xr=Un.includes(nt),Er=!Vn&&xr,Dr=nn(rr,nt),cr=je(nt,kn,un,sn),Ir=cr.active,ir=(0,P.Z)(cr,pn),Zr=I.useState(!1),kr=(0,N.Z)(Zr,2),jr=kr[0],Kr=kr[1],Gr=function(Hr){kn||Kr(Hr)},Zn=function(Hr){Gr(!0),$t==null||$t({key:nt,domEvent:Hr})},Yn=function(Hr){Gr(!1),Vt==null||Vt({key:nt,domEvent:Hr})},br=I.useMemo(function(){return Ir||(Dn!=="inline"?jr||nn([Jn],nt):!1)},[Dn,Ir,Jn,jr,nt,nn]),vr=x(Tn.length),xo=function(Hr){kn||(En==null||En({key:nt,domEvent:Hr}),Dn==="inline"&&yt(nt,!xr))},Lo=L(function(Lr){an==null||an(De(Lr)),Lt(Lr)}),vo=function(Hr){Dn!=="inline"&&yt(nt,Hr)},Eo=function(){Et(nt)},Bo=Wt&&"".concat(Wt,"-popup"),wo=I.useMemo(function(){return I.createElement(ne,{icon:Dn!=="horizontal"?er:void 0,props:(0,p.Z)((0,p.Z)({},ue),{},{isOpen:Er,isSubMenu:!0})},I.createElement("i",{className:"".concat(Rn,"-arrow")}))},[Dn,er,ue,Er,Rn]),Xr=I.createElement("div",(0,e.Z)({role:"menuitem",style:vr,className:"".concat(Rn,"-title"),tabIndex:kn?null:-1,ref:Cr,title:typeof _e=="string"?_e:null,"data-menu-id":Vn&&Wt?null:Wt,"aria-expanded":Er,"aria-haspopup":!0,"aria-controls":Bo,"aria-disabled":kn,onClick:xo,onFocus:Eo},ir),_e,wo),co=I.useRef(Dn);if(Dn!=="inline"&&Tn.length>1?co.current="vertical":co.current=Dn,!Vn){var to=co.current;Xr=I.createElement(At,{mode:to,prefixCls:Rn,visible:!Dt&&Er&&Dn!=="inline",popupClassName:Zt,popupOffset:jt,popupStyle:Qt,popup:I.createElement(f,{mode:to==="horizontal"?"vertical":to},I.createElement(ke,{id:Bo,ref:Sr},Ft)),disabled:kn,onVisibleChange:vo},Xr)}var lr=I.createElement(F.Z.Item,(0,e.Z)({ref:Re,role:"none"},bn,{component:"li",style:Ze,className:D()(Rn,"".concat(Rn,"-").concat(Dn),Ye,(0,m.Z)((0,m.Z)((0,m.Z)((0,m.Z)({},"".concat(Rn,"-open"),Er),"".concat(Rn,"-active"),br),"".concat(Rn,"-selected"),Dr),"".concat(Rn,"-disabled"),kn)),onMouseEnter:Zn,onMouseLeave:Yn}),Xr,!Vn&&I.createElement(Bt,{id:Bo,open:Er,keyPath:Tn},Ft));return wt&&(lr=wt(lr,ue,{selected:Dr,active:br,open:Er,disabled:kn})),I.createElement(f,{onItemClick:Lo,mode:Dn==="horizontal"?"vertical":Dn,itemIcon:hr,expandIcon:er},lr)}),b=I.forwardRef(function(ue,Re){var Ze=ue.eventKey,Ye=ue.children,_e=we(Ze),nt=ot(Ye,_e),ft=te();I.useEffect(function(){if(ft)return ft.registerPath(Ze,_e),function(){ft.unregisterPath(Ze,_e)}},[_e]);var Ot;return ft?Ot=nt:Ot=I.createElement(en,(0,e.Z)({ref:Re},ue),nt),I.createElement(Ve.Provider,{value:_e},Ot)}),w=b,it=t(76190);function R(ue){var Re=ue.className,Ze=ue.style,Ye=I.useContext(de),_e=Ye.prefixCls,nt=te();return nt?null:I.createElement("li",{role:"separator",className:D()("".concat(_e,"-item-divider"),Re),style:Ze})}var $=["className","title","eventKey","children"],He=I.forwardRef(function(ue,Re){var Ze=ue.className,Ye=ue.title,_e=ue.eventKey,nt=ue.children,ft=(0,P.Z)(ue,$),Ot=I.useContext(de),Dt=Ot.prefixCls,Ft="".concat(Dt,"-item-group");return I.createElement("li",(0,e.Z)({ref:Re,role:"presentation"},ft,{onClick:function(Tt){return Tt.stopPropagation()},className:D()(Ft,Ze)}),I.createElement("div",{role:"presentation",className:"".concat(Ft,"-title"),title:typeof Ye=="string"?Ye:void 0},Ye),I.createElement("ul",{role:"group",className:"".concat(Ft,"-list")},nt))}),Pe=I.forwardRef(function(ue,Re){var Ze=ue.eventKey,Ye=ue.children,_e=we(Ze),nt=ot(Ye,_e),ft=te();return ft?nt:I.createElement(He,(0,e.Z)({ref:Re},(0,Te.Z)(ue,["warnKey"])),nt)}),Ae=Pe,qe=["label","children","key","type","extra"];function Fe(ue,Re,Ze){var Ye=Re.item,_e=Re.group,nt=Re.submenu,ft=Re.divider;return(ue||[]).map(function(Ot,Dt){if(Ot&&(0,it.Z)(Ot)==="object"){var Ft=Ot,Xt=Ft.label,Tt=Ft.children,Zt=Ft.key,jt=Ft.type,Qt=Ft.extra,an=(0,P.Z)(Ft,qe),$t=Zt!=null?Zt:"tmp-".concat(Dt);return Tt||jt==="group"?jt==="group"?I.createElement(_e,(0,e.Z)({key:$t},an,{title:Xt}),Fe(Tt,Re,Ze)):I.createElement(nt,(0,e.Z)({key:$t},an,{title:Xt}),Fe(Tt,Re,Ze)):jt==="divider"?I.createElement(ft,(0,e.Z)({key:$t},an)):I.createElement(Ye,(0,e.Z)({key:$t},an,{extra:Qt}),Xt,(!!Qt||Qt===0)&&I.createElement("span",{className:"".concat(Ze,"-item-extra")},Qt))}return null}).filter(function(Ot){return Ot})}function at(ue,Re,Ze,Ye,_e){var nt=ue,ft=(0,p.Z)({divider:R,item:ut,group:Ae,submenu:w},Ye);return Re&&(nt=Fe(Re,ft,_e)),ot(nt,Ze)}var Ct=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],bt=[],vt=I.forwardRef(function(ue,Re){var Ze,Ye=ue,_e=Ye.prefixCls,nt=_e===void 0?"rc-menu":_e,ft=Ye.rootClassName,Ot=Ye.style,Dt=Ye.className,Ft=Ye.tabIndex,Xt=Ft===void 0?0:Ft,Tt=Ye.items,Zt=Ye.children,jt=Ye.direction,Qt=Ye.id,an=Ye.mode,$t=an===void 0?"vertical":an,Vt=Ye.inlineCollapsed,En=Ye.disabled,un=Ye.disabledOverflow,sn=Ye.subMenuOpenDelay,bn=sn===void 0?.1:sn,Wt=Ye.subMenuCloseDelay,Jt=Wt===void 0?.1:Wt,Pn=Ye.forceSubMenuRender,Dn=Ye.defaultOpenKeys,Un=Ye.openKeys,Mn=Ye.activeKey,Vn=Ye.defaultActiveFirst,Jn=Ye.selectable,rr=Jn===void 0?!0:Jn,ar=Ye.multiple,qn=ar===void 0?!1:ar,Lt=Ye.defaultSelectedKeys,yt=Ye.selectedKeys,Et=Ye.onSelect,It=Ye.onDeselect,wt=Ye.inlineIndent,kt=wt===void 0?24:wt,nn=Ye.motion,Tn=Ye.defaultMotions,Rn=Ye.triggerSubMenuAction,kn=Rn===void 0?"hover":Rn,Cr=Ye.builtinPlacements,Sr=Ye.itemIcon,hr=Ye.expandIcon,er=Ye.overflowedIndicator,xr=er===void 0?"...":er,Er=Ye.overflowedIndicatorPopupClassName,Dr=Ye.getPopupContainer,cr=Ye.onClick,Ir=Ye.onOpenChange,ir=Ye.onKeyDown,Zr=Ye.openAnimation,kr=Ye.openTransitionName,jr=Ye._internalRenderMenuItem,Kr=Ye._internalRenderSubMenuItem,Gr=Ye._internalComponents,Zn=(0,P.Z)(Ye,Ct),Yn=I.useMemo(function(){return[at(Zt,Tt,bt,Gr,nt),at(Zt,Tt,bt,{},nt)]},[Zt,Tt,Gr]),br=(0,N.Z)(Yn,2),vr=br[0],xo=br[1],Lo=I.useState(!1),vo=(0,N.Z)(Lo,2),Eo=vo[0],Bo=vo[1],wo=I.useRef(),Xr=v(Qt),co=jt==="rtl",to=(0,n.Z)(Dn,{value:Un,postState:function(Wr){return Wr||bt}}),lr=(0,N.Z)(to,2),Lr=lr[0],Hr=lr[1],In=function(Wr){var Yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Go(){Hr(Wr),Ir==null||Ir(Wr)}Yr?(0,Se.flushSync)(Go):Go()},Hn=I.useState(Lr),On=(0,N.Z)(Hn,2),jn=On[0],fr=On[1],$r=I.useRef(!1),Oo=I.useMemo(function(){return($t==="inline"||$t==="vertical")&&Vt?["vertical",Vt]:[$t,!1]},[$t,Vt]),gn=(0,N.Z)(Oo,2),An=gn[0],tr=gn[1],wr=An==="inline",Pr=I.useState(An),To=(0,N.Z)(Pr,2),Io=To[0],Xo=To[1],sr=I.useState(tr),Xn=(0,N.Z)(sr,2),Vr=Xn[0],_r=Xn[1];I.useEffect(function(){Xo(An),_r(tr),$r.current&&(wr?Hr(jn):In(bt))},[An,tr]);var go=I.useState(0),No=(0,N.Z)(go,2),ko=No[0],Fo=No[1],aa=ko>=vr.length-1||Io!=="horizontal"||un;I.useEffect(function(){wr&&fr(Lr)},[Lr]),I.useEffect(function(){return $r.current=!0,function(){$r.current=!1}},[]);var Do=A(),ba=Do.registerPath,Pa=Do.unregisterPath,Sa=Do.refreshOverflowKeys,ta=Do.isSubPathKey,La=Do.getKeyPath,xa=Do.getKeys,Ma=Do.getSubPathKeys,Ra=I.useMemo(function(){return{registerPath:ba,unregisterPath:Pa}},[ba,Pa]),Xa=I.useMemo(function(){return{isSubPathKey:ta}},[ta]);I.useEffect(function(){Sa(aa?bt:vr.slice(ko+1).map(function(no){return no.key}))},[ko,aa]);var Fa=(0,n.Z)(Mn||Vn&&((Ze=vr[0])===null||Ze===void 0?void 0:Ze.key),{value:Mn}),ya=(0,N.Z)(Fa,2),ia=ya[0],pr=ya[1],ur=L(function(no){pr(no)}),Mo=L(function(){pr(void 0)});(0,I.useImperativeHandle)(Re,function(){return{list:wo.current,focus:function(Wr){var Yr,Go=xa(),Yo=ce(Go,Xr),Oa=Yo.elements,Ba=Yo.key2element,Ya=Yo.element2key,ja=H(wo.current,Oa),Ta=ia!=null?ia:ja[0]?Ya.get(ja[0]):(Yr=vr.find(function(Qa){return!Qa.props.disabled}))===null||Yr===void 0?void 0:Yr.key,Za=Ba.get(Ta);if(Ta&&Za){var Ka;Za==null||(Ka=Za.focus)===null||Ka===void 0||Ka.call(Za,Wr)}}}});var jo=(0,n.Z)(Lt||[],{value:yt,postState:function(Wr){return Array.isArray(Wr)?Wr:Wr==null?bt:[Wr]}}),uo=(0,N.Z)(jo,2),po=uo[0],ra=uo[1],na=function(Wr){if(rr){var Yr=Wr.key,Go=po.includes(Yr),Yo;qn?Go?Yo=po.filter(function(Ba){return Ba!==Yr}):Yo=[].concat((0,Q.Z)(po),[Yr]):Yo=[Yr],ra(Yo);var Oa=(0,p.Z)((0,p.Z)({},Wr),{},{selectedKeys:Yo});Go?It==null||It(Oa):Et==null||Et(Oa)}!qn&&Lr.length&&Io!=="inline"&&In(bt)},la=L(function(no){cr==null||cr(De(no)),na(no)}),fa=L(function(no,Wr){var Yr=Lr.filter(function(Yo){return Yo!==no});if(Wr)Yr.push(no);else if(Io!=="inline"){var Go=Ma(no);Yr=Yr.filter(function(Yo){return!Go.has(Yo)})}(0,J.Z)(Lr,Yr,!0)||In(Yr,!0)}),va=function(Wr,Yr){var Go=Yr!=null?Yr:!Lr.includes(Wr);fa(Wr,Go)},Ea=Z(Io,ia,co,Xr,wo,xa,La,pr,va,ir);I.useEffect(function(){Bo(!0)},[]);var wa=I.useMemo(function(){return{_internalRenderMenuItem:jr,_internalRenderSubMenuItem:Kr}},[jr,Kr]),ti=Io!=="horizontal"||un?vr:vr.map(function(no,Wr){return I.createElement(f,{key:no.key,overflowDisabled:Wr>ko},no)}),ka=I.createElement(F.Z,(0,e.Z)({id:Qt,ref:wo,prefixCls:"".concat(nt,"-overflow"),component:"ul",itemComponent:ut,className:D()(nt,"".concat(nt,"-root"),"".concat(nt,"-").concat(Io),Dt,(0,m.Z)((0,m.Z)({},"".concat(nt,"-inline-collapsed"),Vr),"".concat(nt,"-rtl"),co),ft),dir:jt,style:Ot,role:"menu",tabIndex:Xt,data:ti,renderRawItem:function(Wr){return Wr},renderRawRest:function(Wr){var Yr=Wr.length,Go=Yr?vr.slice(-Yr):null;return I.createElement(w,{eventKey:y,title:xr,disabled:aa,internalPopupClose:Yr===0,popupClassName:Er},Go)},maxCount:Io!=="horizontal"||un?F.Z.INVALIDATE:F.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Wr){Fo(Wr)},onKeyDown:Ea},Zn));return I.createElement(ae.Provider,{value:wa},I.createElement(Ne.Provider,{value:Xr},I.createElement(f,{prefixCls:nt,rootClassName:ft,mode:Io,openKeys:Lr,rtl:co,disabled:En,motion:Eo?nn:null,defaultMotions:Eo?Tn:null,activeKey:ia,onActive:ur,onInactive:Mo,selectedKeys:po,inlineIndent:kt,subMenuOpenDelay:bn,subMenuCloseDelay:Jt,forceSubMenuRender:Pn,builtinPlacements:Cr,triggerSubMenuAction:kn,getPopupContainer:Dr,itemIcon:Sr,expandIcon:hr,onItemClick:la,onOpenChange:fa},I.createElement(k.Provider,{value:Xa},ka),I.createElement("div",{style:{display:"none"},"aria-hidden":!0},I.createElement(ee.Provider,{value:Ra},xo)))))}),zt=vt,Kt=zt;Kt.Item=ut,Kt.SubMenu=w,Kt.ItemGroup=Ae,Kt.Divider=R;var Rt=Kt},83836:function(Yt,Ge,t){t.d(Ge,{Z:function(){return W}});var e=t(54476),m=t(33885),p=t(42978),Q=t(75931),N=t(59301),P=t(92310),g=t.n(P),D=t(29301),F=t(34280),n=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],J=void 0;function O(c,B){var oe=c.prefixCls,G=c.invalidate,ye=c.item,et=c.renderItem,_=c.responsive,xe=c.responsiveDisabled,pe=c.registerSize,Xe=c.itemKey,M=c.className,Ee=c.style,be=c.children,ct=c.display,Le=c.order,re=c.component,T=re===void 0?"div":re,H=(0,Q.Z)(c,n),d=_&&!ct;function ce(K){pe(Xe,K)}N.useEffect(function(){return function(){ce(null)}},[]);var Z=et&&ye!==J?et(ye,{index:Le}):be,r;G||(r={opacity:d?0:1,height:d?0:J,overflowY:d?"hidden":J,order:_?Le:J,pointerEvents:d?"none":J,position:d?"absolute":J});var u={};d&&(u["aria-hidden"]=!0);var V=N.createElement(T,(0,e.Z)({className:g()(!G&&oe,M),style:(0,m.Z)((0,m.Z)({},r),Ee)},u,H,{ref:B}),Z);return _&&(V=N.createElement(D.Z,{onResize:function(y){var A=y.offsetWidth;ce(A)},disabled:xe},V)),V}var I=N.forwardRef(O);I.displayName="Item";var Se=I,Ne=t(6089),ge=t(4676),se=t(16089);function ve(c){if(typeof MessageChannel=="undefined")(0,se.Z)(c);else{var B=new MessageChannel;B.port1.onmessage=function(){return c()},B.port2.postMessage(void 0)}}function h(){var c=N.useRef(null),B=function(G){c.current||(c.current=[],ve(function(){(0,ge.unstable_batchedUpdates)(function(){c.current.forEach(function(ye){ye()}),c.current=null})})),c.current.push(G)};return B}function de(c,B){var oe=N.useState(B),G=(0,p.Z)(oe,2),ye=G[0],et=G[1],_=(0,Ne.Z)(function(xe){c(function(){et(xe)})});return[ye,_]}var s=N.createContext(null),f=["component"],Y=["className"],ee=["className"],te=function(B,oe){var G=N.useContext(s);if(!G){var ye=B.component,et=ye===void 0?"div":ye,_=(0,Q.Z)(B,f);return N.createElement(et,(0,e.Z)({},_,{ref:oe}))}var xe=G.className,pe=(0,Q.Z)(G,Y),Xe=B.className,M=(0,Q.Z)(B,ee);return N.createElement(s.Provider,{value:null},N.createElement(Se,(0,e.Z)({ref:oe,className:g()(xe,Xe)},pe,M)))},Ve=N.forwardRef(te);Ve.displayName="RawItem";var we=Ve,k=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Oe="responsive",ae="invalidate";function C(c){return"+ ".concat(c.length," ...")}function l(c,B){var oe=c.prefixCls,G=oe===void 0?"rc-overflow":oe,ye=c.data,et=ye===void 0?[]:ye,_=c.renderItem,xe=c.renderRawItem,pe=c.itemKey,Xe=c.itemWidth,M=Xe===void 0?10:Xe,Ee=c.ssr,be=c.style,ct=c.className,Le=c.maxCount,re=c.renderRest,T=c.renderRawRest,H=c.prefix,d=c.suffix,ce=c.component,Z=ce===void 0?"div":ce,r=c.itemComponent,u=c.onVisibleChange,V=(0,Q.Z)(c,k),K=Ee==="full",y=h(),A=de(y,null),L=(0,p.Z)(A,2),q=L[0],i=L[1],v=q||0,Me=de(y,new Map),fe=(0,p.Z)(Me,2),Ie=fe[0],Be=fe[1],Te=de(y,0),Ue=(0,p.Z)(Te,2),je=Ue[0],x=Ue[1],ne=de(y,0),Ce=(0,p.Z)(ne,2),De=Ce[0],S=Ce[1],X=de(y,0),U=(0,p.Z)(X,2),me=U[0],ze=U[1],Ke=de(y,0),ut=(0,p.Z)(Ke,2),pt=ut[0],tt=ut[1],mt=(0,N.useState)(null),ke=(0,p.Z)(mt,2),rt=ke[0],ot=ke[1],xt=(0,N.useState)(null),gt=(0,p.Z)(xt,2),Pt=gt[0],Mt=gt[1],Gt=N.useMemo(function(){return Pt===null&&K?Number.MAX_SAFE_INTEGER:Pt||0},[Pt,q]),rn=(0,N.useState)(!1),Ht=(0,p.Z)(rn,2),At=Ht[0],vn=Ht[1],Bt="".concat(G,"-item"),mn=Math.max(je,De),pn=Le===Oe,en=et.length&&pn,b=Le===ae,w=en||typeof Le=="number"&&et.length>Le,it=(0,N.useMemo)(function(){var _e=et;return en?q===null&&K?_e=et:_e=et.slice(0,Math.min(et.length,v/M)):typeof Le=="number"&&(_e=et.slice(0,Le)),_e},[et,M,q,Le,en]),R=(0,N.useMemo)(function(){return en?et.slice(Gt+1):et.slice(it.length)},[et,it,en,Gt]),$=(0,N.useCallback)(function(_e,nt){var ft;return typeof pe=="function"?pe(_e):(ft=pe&&(_e==null?void 0:_e[pe]))!==null&&ft!==void 0?ft:nt},[pe]),He=(0,N.useCallback)(_||function(_e){return _e},[_]);function Pe(_e,nt,ft){Pt===_e&&(nt===void 0||nt===rt)||(Mt(_e),ft||(vn(_ev){Pe(Ot-1,_e-Dt-pt+De);break}}d&&bt(0)+pt>v&&ot(null)}},[v,Ie,De,me,pt,$,it]);var vt=At&&!!R.length,zt={};rt!==null&&en&&(zt={position:"absolute",left:rt,top:0});var Kt={prefixCls:Bt,responsive:en,component:r,invalidate:b},Rt=xe?function(_e,nt){var ft=$(_e,nt);return N.createElement(s.Provider,{key:ft,value:(0,m.Z)((0,m.Z)({},Kt),{},{order:nt,item:_e,itemKey:ft,registerSize:qe,display:nt<=Gt})},xe(_e,nt))}:function(_e,nt){var ft=$(_e,nt);return N.createElement(Se,(0,e.Z)({},Kt,{order:nt,key:ft,item:_e,renderItem:He,itemKey:ft,registerSize:qe,display:nt<=Gt}))},ue={order:vt?Gt:Number.MAX_SAFE_INTEGER,className:"".concat(Bt,"-rest"),registerSize:Fe,display:vt},Re=re||C,Ze=T?N.createElement(s.Provider,{value:(0,m.Z)((0,m.Z)({},Kt),ue)},T(R)):N.createElement(Se,(0,e.Z)({},Kt,ue),typeof Re=="function"?Re(R):Re),Ye=N.createElement(Z,(0,e.Z)({className:g()(!b&&G,ct),style:be,ref:B},V),H&&N.createElement(Se,(0,e.Z)({},Kt,{responsive:pn,responsiveDisabled:!en,order:-1,className:"".concat(Bt,"-prefix"),registerSize:at,display:!0}),H),it.map(Rt),w?Ze:null,d&&N.createElement(Se,(0,e.Z)({},Kt,{responsive:pn,responsiveDisabled:!en,order:Gt,className:"".concat(Bt,"-suffix"),registerSize:Ct,display:!0,style:zt}),d));return pn?N.createElement(D.Z,{onResize:Ae,disabled:!en},Ye):Ye}var ie=N.forwardRef(l);ie.displayName="Overflow",ie.Item=we,ie.RESPONSIVE=Oe,ie.INVALIDATE=ae;var z=ie,W=z},29301:function(Yt,Ge,t){t.d(Ge,{Z:function(){return ae}});var e=t(54476),m=t(59301),p=t(11592),Q=t(48736),N=t(33885),P=t(76190),g=t(76846),D=t(8654),F=m.createContext(null);function n(C){var l=C.children,ie=C.onBatchResize,z=m.useRef(0),W=m.useRef([]),c=m.useContext(F),B=m.useCallback(function(oe,G,ye){z.current+=1;var et=z.current;W.current.push({size:oe,element:G,data:ye}),Promise.resolve().then(function(){et===z.current&&(ie==null||ie(W.current),W.current=[])}),c==null||c(oe,G,ye)},[ie,c]);return m.createElement(F.Provider,{value:B},l)}var J=t(76374),O=new Map;function I(C){C.forEach(function(l){var ie,z=l.target;(ie=O.get(z))===null||ie===void 0||ie.forEach(function(W){return W(z)})})}var Se=new J.Z(I),Ne=null,ge=null;function se(C,l){O.has(C)||(O.set(C,new Set),Se.observe(C)),O.get(C).add(l)}function ve(C,l){O.has(C)&&(O.get(C).delete(l),O.get(C).size||(Se.unobserve(C),O.delete(C)))}var h=t(67732),de=t(83652),s=t(42403),f=t(158),Y=function(C){(0,s.Z)(ie,C);var l=(0,f.Z)(ie);function ie(){return(0,h.Z)(this,ie),l.apply(this,arguments)}return(0,de.Z)(ie,[{key:"render",value:function(){return this.props.children}}]),ie}(m.Component);function ee(C,l){var ie=C.children,z=C.disabled,W=m.useRef(null),c=m.useRef(null),B=m.useContext(F),oe=typeof ie=="function",G=oe?ie(W):ie,ye=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),et=!oe&&m.isValidElement(G)&&(0,D.Yr)(G),_=et?(0,D.C4)(G):null,xe=(0,D.x1)(_,W),pe=function(){var be;return(0,g.ZP)(W.current)||(W.current&&(0,P.Z)(W.current)==="object"?(0,g.ZP)((be=W.current)===null||be===void 0?void 0:be.nativeElement):null)||(0,g.ZP)(c.current)};m.useImperativeHandle(l,function(){return pe()});var Xe=m.useRef(C);Xe.current=C;var M=m.useCallback(function(Ee){var be=Xe.current,ct=be.onResize,Le=be.data,re=Ee.getBoundingClientRect(),T=re.width,H=re.height,d=Ee.offsetWidth,ce=Ee.offsetHeight,Z=Math.floor(T),r=Math.floor(H);if(ye.current.width!==Z||ye.current.height!==r||ye.current.offsetWidth!==d||ye.current.offsetHeight!==ce){var u={width:Z,height:r,offsetWidth:d,offsetHeight:ce};ye.current=u;var V=d===Math.round(T)?T:d,K=ce===Math.round(H)?H:ce,y=(0,N.Z)((0,N.Z)({},u),{},{offsetWidth:V,offsetHeight:K});B==null||B(y,Ee,Le),ct&&Promise.resolve().then(function(){ct(y,Ee)})}},[]);return m.useEffect(function(){var Ee=pe();return Ee&&!z&&se(Ee,M),function(){return ve(Ee,M)}},[W.current,z]),m.createElement(Y,{ref:c},et?m.cloneElement(G,{ref:xe}):G)}var te=m.forwardRef(ee),Ve=te,we="rc-observer-key";function k(C,l){var ie=C.children,z=typeof ie=="function"?[ie]:(0,p.Z)(ie);return z.map(function(W,c){var B=(W==null?void 0:W.key)||"".concat(we,"-").concat(c);return m.createElement(Ve,(0,e.Z)({},C,{key:B,ref:c===0?l:void 0}),W)})}var Oe=m.forwardRef(k);Oe.Collection=n;var ae=Oe},6551:function(Yt,Ge,t){t.d(Ge,{ZP:function(){return g}});var e=t(42978),m=t(59301),p=t(47273),Q=0,N=(0,p.Z)();function P(){var D;return N?(D=Q,Q+=1):D="TEST_OR_SSR",D}function g(D){var F=m.useState(),n=(0,e.Z)(F,2),J=n[0],O=n[1];return m.useEffect(function(){O("rc_select_".concat(P()))},[]),D||J}},37463:function(Yt,Ge,t){t.d(Ge,{Ac:function(){return Te},Xo:function(){return je},Wx:function(){return ne},ZP:function(){return it},lk:function(){return de}});var e=t(54476),m=t(94480),p=t(20068),Q=t(33885),N=t(42978),P=t(75931),g=t(76190),D=t(18929),F=t(48736),n=t(59301),J=t(92310),O=t.n(J),I=t(34280),Se=t(49658),Ne=t(8654),ge=function($){var He=$.className,Pe=$.customizeIcon,Ae=$.customizeIconProps,qe=$.children,Fe=$.onMouseDown,at=$.onClick,Ct=typeof Pe=="function"?Pe(Ae):Pe;return n.createElement("span",{className:He,onMouseDown:function(vt){vt.preventDefault(),Fe==null||Fe(vt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:at,"aria-hidden":!0},Ct!==void 0?Ct:n.createElement("span",{className:O()(He.split(/\s+/).map(function(bt){return"".concat(bt,"-icon")}))},qe))},se=ge,ve=function($,He,Pe,Ae,qe){var Fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,at=arguments.length>6?arguments[6]:void 0,Ct=arguments.length>7?arguments[7]:void 0,bt=n.useMemo(function(){if((0,g.Z)(Ae)==="object")return Ae.clearIcon;if(qe)return qe},[Ae,qe]),vt=n.useMemo(function(){return!!(!Fe&&Ae&&(Pe.length||at)&&!(Ct==="combobox"&&at===""))},[Ae,Fe,Pe.length,at,Ct]);return{allowClear:vt,clearIcon:n.createElement(se,{className:"".concat($,"-clear"),onMouseDown:He,customizeIcon:bt},"\xD7")}},h=n.createContext(null);function de(){return n.useContext(h)}function s(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$=n.useState(!1),He=(0,N.Z)($,2),Pe=He[0],Ae=He[1],qe=n.useRef(null),Fe=function(){window.clearTimeout(qe.current)};n.useEffect(function(){return Fe},[]);var at=function(bt,vt){Fe(),qe.current=window.setTimeout(function(){Ae(bt),vt&&vt()},R)};return[Pe,at,Fe]}function f(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$=n.useRef(null),He=n.useRef(null);n.useEffect(function(){return function(){window.clearTimeout(He.current)}},[]);function Pe(Ae){(Ae||$.current===null)&&($.current=Ae),window.clearTimeout(He.current),He.current=window.setTimeout(function(){$.current=null},R)}return[function(){return $.current},Pe]}function Y(R,$,He,Pe){var Ae=n.useRef(null);Ae.current={open:$,triggerOpen:He,customizedTrigger:Pe},n.useEffect(function(){function qe(Fe){var at;if(!((at=Ae.current)!==null&&at!==void 0&&at.customizedTrigger)){var Ct=Fe.target;Ct.shadowRoot&&Fe.composed&&(Ct=Fe.composedPath()[0]||Ct),Ae.current.open&&R().filter(function(bt){return bt}).every(function(bt){return!bt.contains(Ct)&&bt!==Ct})&&Ae.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qe),function(){return window.removeEventListener("mousedown",qe)}},[])}var ee=t(10228);function te(R){return R&&![ee.Z.ESC,ee.Z.SHIFT,ee.Z.BACKSPACE,ee.Z.TAB,ee.Z.WIN_KEY,ee.Z.ALT,ee.Z.META,ee.Z.WIN_KEY_RIGHT,ee.Z.CTRL,ee.Z.SEMICOLON,ee.Z.EQUALS,ee.Z.CAPS_LOCK,ee.Z.CONTEXT_MENU,ee.Z.F1,ee.Z.F2,ee.Z.F3,ee.Z.F4,ee.Z.F5,ee.Z.F6,ee.Z.F7,ee.Z.F8,ee.Z.F9,ee.Z.F10,ee.Z.F11,ee.Z.F12].includes(R)}var Ve=t(26112),we=t(83836);function k(R,$,He){var Pe=(0,Q.Z)((0,Q.Z)({},R),He?$:{});return Object.keys($).forEach(function(Ae){var qe=$[Ae];typeof qe=="function"&&(Pe[Ae]=function(){for(var Fe,at=arguments.length,Ct=new Array(at),bt=0;btnt&&(kn="".concat(Cr.slice(0,nt),"..."))}var Sr=function(er){er&&er.stopPropagation(),Xt(wt)};return typeof Dt=="function"?ar(Tn,kn,kt,Rn,Sr):rr(wt,kn,kt,Rn,Sr)},Lt=function(wt){if(!Ae.length)return null;var kt=typeof Ot=="function"?Ot(wt):Ot;return typeof Dt=="function"?ar(void 0,kt,!1,!1,void 0,!0):rr({title:kt},kt,!1)},yt=n.createElement("div",{className:"".concat(Mn,"-search"),style:{width:bn},onFocus:function(){Un(!0)},onBlur:function(){Un(!1)}},n.createElement(ie,{ref:Ct,open:qe,prefixCls:Pe,id:He,inputElement:null,disabled:vt,autoFocus:Rt,autoComplete:ue,editable:Jn,activeDescendantId:Re,value:Vn,onKeyDown:jt,onMouseDown:Qt,onChange:Tt,onPaste:Zt,onCompositionStart:an,onCompositionEnd:$t,onBlur:Vt,tabIndex:Ze,attrs:(0,Ve.Z)($,!0)}),n.createElement("span",{ref:En,className:"".concat(Mn,"-search-mirror"),"aria-hidden":!0},Vn,"\xA0")),Et=n.createElement(we.Z,{prefixCls:"".concat(Mn,"-overflow"),data:Ae,renderItem:qn,renderRest:Lt,suffix:yt,itemKey:_,maxCount:_e});return n.createElement("span",{className:"".concat(Mn,"-wrap")},Et,!Ae.length&&!Vn&&n.createElement("span",{className:"".concat(Mn,"-placeholder")},bt))},Xe=pe,M=function($){var He=$.inputElement,Pe=$.prefixCls,Ae=$.id,qe=$.inputRef,Fe=$.disabled,at=$.autoFocus,Ct=$.autoComplete,bt=$.activeDescendantId,vt=$.mode,zt=$.open,Kt=$.values,Rt=$.placeholder,ue=$.tabIndex,Re=$.showSearch,Ze=$.searchValue,Ye=$.activeValue,_e=$.maxLength,nt=$.onInputKeyDown,ft=$.onInputMouseDown,Ot=$.onInputChange,Dt=$.onInputPaste,Ft=$.onInputCompositionStart,Xt=$.onInputCompositionEnd,Tt=$.onInputBlur,Zt=$.title,jt=n.useState(!1),Qt=(0,N.Z)(jt,2),an=Qt[0],$t=Qt[1],Vt=vt==="combobox",En=Vt||Re,un=Kt[0],sn=Ze||"";Vt&&Ye&&!an&&(sn=Ye),n.useEffect(function(){Vt&&$t(!1)},[Vt,Ye]);var bn=vt!=="combobox"&&!zt&&!Re?!1:!!sn,Wt=Zt===void 0?ye(un):Zt,Jt=n.useMemo(function(){return un?null:n.createElement("span",{className:"".concat(Pe,"-selection-placeholder"),style:bn?{visibility:"hidden"}:void 0},Rt)},[un,bn,Rt,Pe]);return n.createElement("span",{className:"".concat(Pe,"-selection-wrap")},n.createElement("span",{className:"".concat(Pe,"-selection-search")},n.createElement(ie,{ref:qe,prefixCls:Pe,id:Ae,open:zt,inputElement:He,disabled:Fe,autoFocus:at,autoComplete:Ct,editable:En,activeDescendantId:bt,value:sn,onKeyDown:nt,onMouseDown:ft,onChange:function(Dn){$t(!0),Ot(Dn)},onPaste:Dt,onCompositionStart:Ft,onCompositionEnd:Xt,onBlur:Tt,tabIndex:ue,attrs:(0,Ve.Z)($,!0),maxLength:Vt?_e:void 0})),!Vt&&un?n.createElement("span",{className:"".concat(Pe,"-selection-item"),title:Wt,style:bn?{visibility:"hidden"}:void 0},un.label):null,Jt)},Ee=M,be=function($,He){var Pe=(0,n.useRef)(null),Ae=(0,n.useRef)(!1),qe=$.prefixCls,Fe=$.open,at=$.mode,Ct=$.showSearch,bt=$.tokenWithEnter,vt=$.disabled,zt=$.prefix,Kt=$.autoClearSearchValue,Rt=$.onSearch,ue=$.onSearchSubmit,Re=$.onToggleOpen,Ze=$.onInputKeyDown,Ye=$.onInputBlur,_e=$.domRef;n.useImperativeHandle(He,function(){return{focus:function(Wt){Pe.current.focus(Wt)},blur:function(){Pe.current.blur()}}});var nt=f(0),ft=(0,N.Z)(nt,2),Ot=ft[0],Dt=ft[1],Ft=function(Wt){var Jt=Wt.which,Pn=Pe.current instanceof HTMLTextAreaElement;!Pn&&Fe&&(Jt===ee.Z.UP||Jt===ee.Z.DOWN)&&Wt.preventDefault(),Ze&&Ze(Wt),Jt===ee.Z.ENTER&&at==="tags"&&!Ae.current&&!Fe&&(ue==null||ue(Wt.target.value)),!(Pn&&!Fe&&~[ee.Z.UP,ee.Z.DOWN,ee.Z.LEFT,ee.Z.RIGHT].indexOf(Jt))&&te(Jt)&&Re(!0)},Xt=function(){Dt(!0)},Tt=(0,n.useRef)(null),Zt=function(Wt){Rt(Wt,!0,Ae.current)!==!1&&Re(!0)},jt=function(){Ae.current=!0},Qt=function(Wt){Ae.current=!1,at!=="combobox"&&Zt(Wt.target.value)},an=function(Wt){var Jt=Wt.target.value;if(bt&&Tt.current&&/[\r\n]/.test(Tt.current)){var Pn=Tt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jt=Jt.replace(Pn,Tt.current)}Tt.current=null,Zt(Jt)},$t=function(Wt){var Jt=Wt.clipboardData,Pn=Jt==null?void 0:Jt.getData("text");Tt.current=Pn||""},Vt=function(Wt){var Jt=Wt.target;if(Jt!==Pe.current){var Pn=document.body.style.msTouchAction!==void 0;Pn?setTimeout(function(){Pe.current.focus()}):Pe.current.focus()}},En=function(Wt){var Jt=Ot();Wt.target!==Pe.current&&!Jt&&!(at==="combobox"&&vt)&&Wt.preventDefault(),(at!=="combobox"&&(!Ct||!Jt)||!Fe)&&(Fe&&Kt!==!1&&Rt("",!0,!1),Re())},un={inputRef:Pe,onInputKeyDown:Ft,onInputMouseDown:Xt,onInputChange:an,onInputPaste:$t,onInputCompositionStart:jt,onInputCompositionEnd:Qt,onInputBlur:Ye},sn=at==="multiple"||at==="tags"?n.createElement(Xe,(0,e.Z)({},$,un)):n.createElement(Ee,(0,e.Z)({},$,un));return n.createElement("div",{ref:_e,className:"".concat(qe,"-selector"),onClick:Vt,onMouseDown:En},zt&&n.createElement("div",{className:"".concat(qe,"-prefix")},zt),sn)},ct=n.forwardRef(be),Le=ct,re=t(65030),T=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],H=function($){var He=$===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:He,adjustY:1},htmlRegion:"scroll"}}},d=function($,He){var Pe=$.prefixCls,Ae=$.disabled,qe=$.visible,Fe=$.children,at=$.popupElement,Ct=$.animation,bt=$.transitionName,vt=$.dropdownStyle,zt=$.dropdownClassName,Kt=$.direction,Rt=Kt===void 0?"ltr":Kt,ue=$.placement,Re=$.builtinPlacements,Ze=$.dropdownMatchSelectWidth,Ye=$.dropdownRender,_e=$.dropdownAlign,nt=$.getPopupContainer,ft=$.empty,Ot=$.getTriggerDOMNode,Dt=$.onPopupVisibleChange,Ft=$.onPopupMouseEnter,Xt=(0,P.Z)($,T),Tt="".concat(Pe,"-dropdown"),Zt=at;Ye&&(Zt=Ye(at));var jt=n.useMemo(function(){return Re||H(Ze)},[Re,Ze]),Qt=Ct?"".concat(Tt,"-").concat(Ct):bt,an=typeof Ze=="number",$t=n.useMemo(function(){return an?null:Ze===!1?"minWidth":"width"},[Ze,an]),Vt=vt;an&&(Vt=(0,Q.Z)((0,Q.Z)({},Vt),{},{width:Ze}));var En=n.useRef(null);return n.useImperativeHandle(He,function(){return{getPopupElement:function(){var sn;return(sn=En.current)===null||sn===void 0?void 0:sn.popupElement}}}),n.createElement(re.Z,(0,e.Z)({},Xt,{showAction:Dt?["click"]:[],hideAction:Dt?["click"]:[],popupPlacement:ue||(Rt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:jt,prefixCls:Tt,popupTransitionName:Qt,popup:n.createElement("div",{onMouseEnter:Ft},Zt),ref:En,stretch:$t,popupAlign:_e,popupVisible:qe,getPopupContainer:nt,popupClassName:O()(zt,(0,p.Z)({},"".concat(Tt,"-empty"),ft)),popupStyle:Vt,getTriggerDOMNode:Ot,onPopupVisibleChange:Dt}),Fe)},ce=n.forwardRef(d),Z=ce,r=t(66712);function u(R,$){var He=R.key,Pe;return"value"in R&&(Pe=R.value),He!=null?He:Pe!==void 0?Pe:"rc-index-key-".concat($)}function V(R){return typeof R!="undefined"&&!Number.isNaN(R)}function K(R,$){var He=R||{},Pe=He.label,Ae=He.value,qe=He.options,Fe=He.groupLabel,at=Pe||($?"children":"label");return{label:at,value:Ae||"value",options:qe||"options",groupLabel:Fe||at}}function y(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=$.fieldNames,Pe=$.childrenAsData,Ae=[],qe=K(He,!1),Fe=qe.label,at=qe.value,Ct=qe.options,bt=qe.groupLabel;function vt(zt,Kt){Array.isArray(zt)&&zt.forEach(function(Rt){if(Kt||!(Ct in Rt)){var ue=Rt[at];Ae.push({key:u(Rt,Ae.length),groupOption:Kt,data:Rt,label:Rt[Fe],value:ue})}else{var Re=Rt[bt];Re===void 0&&Pe&&(Re=Rt.label),Ae.push({key:u(Rt,Ae.length),group:!0,data:Rt,label:Re}),vt(Rt[Ct],!0)}})}return vt(R,!1),Ae}function A(R){var $=(0,Q.Z)({},R);return"props"in $||Object.defineProperty($,"props",{get:function(){return(0,F.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$}}),$}var L=function($,He,Pe){if(!He||!He.length)return null;var Ae=!1,qe=function at(Ct,bt){var vt=(0,r.Z)(bt),zt=vt[0],Kt=vt.slice(1);if(!zt)return[Ct];var Rt=Ct.split(zt);return Ae=Ae||Rt.length>1,Rt.reduce(function(ue,Re){return[].concat((0,m.Z)(ue),(0,m.Z)(at(Re,Kt)))},[]).filter(Boolean)},Fe=qe($,He);return Ae?typeof Pe!="undefined"?Fe.slice(0,Pe):Fe:null},q=n.createContext(null),i=q;function v(R){var $=R.visible,He=R.values;if(!$)return null;var Pe=50;return n.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(He.slice(0,Pe).map(function(Ae){var qe=Ae.label,Fe=Ae.value;return["number","string"].includes((0,g.Z)(qe))?qe:Fe}).join(", ")),He.length>Pe?", ...":null)}var Me=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],fe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Ie=function($){return $==="tags"||$==="multiple"},Be=n.forwardRef(function(R,$){var He,Pe=R.id,Ae=R.prefixCls,qe=R.className,Fe=R.showSearch,at=R.tagRender,Ct=R.direction,bt=R.omitDomProps,vt=R.displayValues,zt=R.onDisplayValuesChange,Kt=R.emptyOptions,Rt=R.notFoundContent,ue=Rt===void 0?"Not Found":Rt,Re=R.onClear,Ze=R.mode,Ye=R.disabled,_e=R.loading,nt=R.getInputElement,ft=R.getRawInputElement,Ot=R.open,Dt=R.defaultOpen,Ft=R.onDropdownVisibleChange,Xt=R.activeValue,Tt=R.onActiveValueChange,Zt=R.activeDescendantId,jt=R.searchValue,Qt=R.autoClearSearchValue,an=R.onSearch,$t=R.onSearchSplit,Vt=R.tokenSeparators,En=R.allowClear,un=R.prefix,sn=R.suffixIcon,bn=R.clearIcon,Wt=R.OptionList,Jt=R.animation,Pn=R.transitionName,Dn=R.dropdownStyle,Un=R.dropdownClassName,Mn=R.dropdownMatchSelectWidth,Vn=R.dropdownRender,Jn=R.dropdownAlign,rr=R.placement,ar=R.builtinPlacements,qn=R.getPopupContainer,Lt=R.showAction,yt=Lt===void 0?[]:Lt,Et=R.onFocus,It=R.onBlur,wt=R.onKeyUp,kt=R.onKeyDown,nn=R.onMouseDown,Tn=(0,P.Z)(R,Me),Rn=Ie(Ze),kn=(Fe!==void 0?Fe:Rn)||Ze==="combobox",Cr=(0,Q.Z)({},Tn);fe.forEach(function(pr){delete Cr[pr]}),bt==null||bt.forEach(function(pr){delete Cr[pr]});var Sr=n.useState(!1),hr=(0,N.Z)(Sr,2),er=hr[0],xr=hr[1];n.useEffect(function(){xr((0,Se.Z)())},[]);var Er=n.useRef(null),Dr=n.useRef(null),cr=n.useRef(null),Ir=n.useRef(null),ir=n.useRef(null),Zr=n.useRef(!1),kr=s(),jr=(0,N.Z)(kr,3),Kr=jr[0],Gr=jr[1],Zn=jr[2];n.useImperativeHandle($,function(){var pr,ur;return{focus:(pr=Ir.current)===null||pr===void 0?void 0:pr.focus,blur:(ur=Ir.current)===null||ur===void 0?void 0:ur.blur,scrollTo:function(jo){var uo;return(uo=ir.current)===null||uo===void 0?void 0:uo.scrollTo(jo)},nativeElement:Er.current||Dr.current}});var Yn=n.useMemo(function(){var pr;if(Ze!=="combobox")return jt;var ur=(pr=vt[0])===null||pr===void 0?void 0:pr.value;return typeof ur=="string"||typeof ur=="number"?String(ur):""},[jt,Ze,vt]),br=Ze==="combobox"&&typeof nt=="function"&&nt()||null,vr=typeof ft=="function"&&ft(),xo=(0,Ne.x1)(Dr,vr==null||(He=vr.props)===null||He===void 0?void 0:He.ref),Lo=n.useState(!1),vo=(0,N.Z)(Lo,2),Eo=vo[0],Bo=vo[1];(0,I.Z)(function(){Bo(!0)},[]);var wo=(0,D.Z)(!1,{defaultValue:Dt,value:Ot}),Xr=(0,N.Z)(wo,2),co=Xr[0],to=Xr[1],lr=Eo?co:!1,Lr=!ue&&Kt;(Ye||Lr&&lr&&Ze==="combobox")&&(lr=!1);var Hr=Lr?!1:lr,In=n.useCallback(function(pr){var ur=pr!==void 0?pr:!lr;Ye||(to(ur),lr!==ur&&(Ft==null||Ft(ur)))},[Ye,lr,to,Ft]),Hn=n.useMemo(function(){return(Vt||[]).some(function(pr){return[` -`,`\r -`].includes(pr)})},[Vt]),On=n.useContext(i)||{},jn=On.maxCount,fr=On.rawValues,$r=function(ur,Mo,jo){if(!(Rn&&V(jn)&&(fr==null?void 0:fr.size)>=jn)){var uo=!0,po=ur;Tt==null||Tt(null);var ra=L(ur,Vt,V(jn)?jn-fr.size:void 0),na=jo?null:ra;return Ze!=="combobox"&&na&&(po="",$t==null||$t(na),In(!1),uo=!1),an&&Yn!==po&&an(po,{source:Mo?"typing":"effect"}),uo}},Oo=function(ur){!ur||!ur.trim()||an(ur,{source:"submit"})};n.useEffect(function(){!lr&&!Rn&&Ze!=="combobox"&&$r("",!1,!1)},[lr]),n.useEffect(function(){co&&Ye&&to(!1),Ye&&!Zr.current&&Gr(!1)},[Ye]);var gn=f(),An=(0,N.Z)(gn,2),tr=An[0],wr=An[1],Pr=n.useRef(!1),To=function(ur){var Mo=tr(),jo=ur.key,uo=jo==="Enter";if(uo&&(Ze!=="combobox"&&ur.preventDefault(),lr||In(!0)),wr(!!Yn),jo==="Backspace"&&!Mo&&Rn&&!Yn&&vt.length){for(var po=(0,m.Z)(vt),ra=null,na=po.length-1;na>=0;na-=1){var la=po[na];if(!la.disabled){po.splice(na,1),ra=la;break}}ra&&zt(po,{type:"remove",values:[ra]})}for(var fa=arguments.length,va=new Array(fa>1?fa-1:0),Ea=1;Ea1?Mo-1:0),uo=1;uo1?ra-1:0),la=1;la=ue},[at,ue,ft==null?void 0:ft.size]),Vt=function(yt){yt.preventDefault()},En=function(yt){var Et;(Et=an.current)===null||Et===void 0||Et.scrollTo(typeof yt=="number"?{index:yt}:yt)},un=n.useCallback(function(Lt){return Ct==="combobox"?!1:ft.has(Lt)},[Ct,(0,m.Z)(ft).toString(),ft.size]),sn=function(yt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,It=Qt.length,wt=0;wt1&&arguments[1]!==void 0?arguments[1]:!1;Pn(yt);var It={source:Et?"keyboard":"mouse"},wt=Qt[yt];if(!wt){Ze(null,-1,It);return}Ze(wt.value,yt,It)};(0,n.useEffect)(function(){Dn(Ye!==!1?sn(0):-1)},[Qt.length,bt]);var Un=n.useCallback(function(Lt){return Ct==="combobox"?String(Lt).toLowerCase()===bt.toLowerCase():ft.has(Lt)},[Ct,bt,(0,m.Z)(ft).toString(),ft.size]);(0,n.useEffect)(function(){var Lt=setTimeout(function(){if(!at&&Fe&&ft.size===1){var Et=Array.from(ft)[0],It=Qt.findIndex(function(wt){var kt=wt.data;return bt?String(kt.value).startsWith(bt):kt.value===Et});It!==-1&&(Dn(It),En(It))}});if(Fe){var yt;(yt=an.current)===null||yt===void 0||yt.scrollTo(void 0)}return function(){return clearTimeout(Lt)}},[Fe,bt]);var Mn=function(yt){yt!==void 0&&_e(yt,{selected:!ft.has(yt)}),at||vt(!1)};if(n.useImperativeHandle(He,function(){return{onKeyDown:function(yt){var Et=yt.which,It=yt.ctrlKey;switch(Et){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var wt=0;if(Et===ee.Z.UP?wt=-1:Et===ee.Z.DOWN?wt=1:X()&&It&&(Et===ee.Z.N?wt=1:Et===ee.Z.P&&(wt=-1)),wt!==0){var kt=sn(Jt+wt,wt);En(kt),Dn(kt,!0)}break}case ee.Z.TAB:case ee.Z.ENTER:{var nn,Tn=Qt[Jt];Tn&&!(Tn!=null&&(nn=Tn.data)!==null&&nn!==void 0&&nn.disabled)&&!$t?Mn(Tn.value):Mn(void 0),Fe&&yt.preventDefault();break}case ee.Z.ESC:vt(!1),Fe&&yt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yt){En(yt)}}}),Qt.length===0)return n.createElement("div",{role:"listbox",id:"".concat(qe,"_list"),className:"".concat(jt,"-empty"),onMouseDown:Vt},zt);var Vn=Object.keys(Ot).map(function(Lt){return Ot[Lt]}),Jn=function(yt){return yt.label};function rr(Lt,yt){var Et=Lt.group;return{role:Et?"presentation":"option",id:"".concat(qe,"_list_").concat(yt)}}var ar=function(yt){var Et=Qt[yt];if(!Et)return null;var It=Et.data||{},wt=It.value,kt=Et.group,nn=(0,Ve.Z)(It,!0),Tn=Jn(Et);return Et?n.createElement("div",(0,e.Z)({"aria-label":typeof Tn=="string"&&!kt?Tn:null},nn,{key:yt},rr(Et,yt),{"aria-selected":Un(wt)}),wt):null},qn={role:"listbox",id:"".concat(qe,"_list")};return n.createElement(n.Fragment,null,Dt&&n.createElement("div",(0,e.Z)({},qn,{style:{height:0,width:0,overflow:"hidden"}}),ar(Jt-1),ar(Jt),ar(Jt+1)),n.createElement(S.Z,{itemKey:"key",ref:an,data:Qt,height:Xt,itemHeight:Tt,fullHeight:!1,onMouseDown:Vt,onScroll:Kt,virtual:Dt,direction:Ft,innerProps:Dt?null:qn},function(Lt,yt){var Et=Lt.group,It=Lt.groupOption,wt=Lt.data,kt=Lt.label,nn=Lt.value,Tn=wt.key;if(Et){var Rn,kn=(Rn=wt.title)!==null&&Rn!==void 0?Rn:me(kt)?kt.toString():void 0;return n.createElement("div",{className:O()(jt,"".concat(jt,"-group"),wt.className),title:kn},kt!==void 0?kt:Tn)}var Cr=wt.disabled,Sr=wt.title,hr=wt.children,er=wt.style,xr=wt.className,Er=(0,P.Z)(wt,U),Dr=(0,De.Z)(Er,Vn),cr=un(nn),Ir=Cr||!cr&&$t,ir="".concat(jt,"-option"),Zr=O()(jt,ir,xr,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(ir,"-grouped"),It),"".concat(ir,"-active"),Jt===yt&&!Ir),"".concat(ir,"-disabled"),Ir),"".concat(ir,"-selected"),cr)),kr=Jn(Lt),jr=!nt||typeof nt=="function"||cr,Kr=typeof kr=="number"?kr:kr||nn,Gr=me(Kr)?Kr.toString():void 0;return Sr!==void 0&&(Gr=Sr),n.createElement("div",(0,e.Z)({},(0,Ve.Z)(Dr),Dt?{}:rr(Lt,yt),{"aria-selected":Un(nn),className:Zr,title:Gr,onMouseMove:function(){Jt===yt||Ir||Dn(yt)},onClick:function(){Ir||Mn(nn)},style:er}),n.createElement("div",{className:"".concat(ir,"-content")},typeof Zt=="function"?Zt(Lt,{index:yt}):Kr),n.isValidElement(nt)||cr,jr&&n.createElement(se,{className:"".concat(jt,"-option-state"),customizeIcon:nt,customizeIconProps:{value:nn,disabled:Ir,isSelected:cr}},cr?"\u2713":null))}))},Ke=n.forwardRef(ze),ut=Ke,pt=function(R,$){var He=n.useRef({values:new Map,options:new Map}),Pe=n.useMemo(function(){var qe=He.current,Fe=qe.values,at=qe.options,Ct=R.map(function(zt){if(zt.label===void 0){var Kt;return(0,Q.Z)((0,Q.Z)({},zt),{},{label:(Kt=Fe.get(zt.value))===null||Kt===void 0?void 0:Kt.label})}return zt}),bt=new Map,vt=new Map;return Ct.forEach(function(zt){bt.set(zt.value,zt),vt.set(zt.value,$.get(zt.value)||at.get(zt.value))}),He.current.values=bt,He.current.options=vt,Ct},[R,$]),Ae=n.useCallback(function(qe){return $.get(qe)||He.current.options.get(qe)},[$]);return[Pe,Ae]};function tt(R,$){return z(R).join("").toUpperCase().includes($)}var mt=function(R,$,He,Pe,Ae){return n.useMemo(function(){if(!He||Pe===!1)return R;var qe=$.options,Fe=$.label,at=$.value,Ct=[],bt=typeof Pe=="function",vt=He.toUpperCase(),zt=bt?Pe:function(Rt,ue){return Ae?tt(ue[Ae],vt):ue[qe]?tt(ue[Fe!=="children"?Fe:"label"],vt):tt(ue[at],vt)},Kt=bt?function(Rt){return A(Rt)}:function(Rt){return Rt};return R.forEach(function(Rt){if(Rt[qe]){var ue=zt(He,Kt(Rt));if(ue)Ct.push(Rt);else{var Re=Rt[qe].filter(function(Ze){return zt(He,Kt(Ze))});Re.length&&Ct.push((0,Q.Z)((0,Q.Z)({},Rt),{},(0,p.Z)({},qe,Re)))}return}zt(He,Kt(Rt))&&Ct.push(Rt)}),Ct},[R,Pe,Ae,He,$])},ke=t(6551),rt=t(11592),ot=["children","value"],xt=["children"];function gt(R){var $=R,He=$.key,Pe=$.props,Ae=Pe.children,qe=Pe.value,Fe=(0,P.Z)(Pe,ot);return(0,Q.Z)({key:He,value:qe!==void 0?qe:He,children:Ae},Fe)}function Pt(R){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rt.Z)(R).map(function(He,Pe){if(!n.isValidElement(He)||!He.type)return null;var Ae=He,qe=Ae.type.isSelectOptGroup,Fe=Ae.key,at=Ae.props,Ct=at.children,bt=(0,P.Z)(at,xt);return $||!qe?gt(He):(0,Q.Z)((0,Q.Z)({key:"__RC_SELECT_GRP__".concat(Fe===null?Pe:Fe,"__"),label:Fe},bt),{},{options:Pt(Ct)})}).filter(function(He){return He})}var Mt=function($,He,Pe,Ae,qe){return n.useMemo(function(){var Fe=$,at=!$;at&&(Fe=Pt(He));var Ct=new Map,bt=new Map,vt=function(Rt,ue,Re){Re&&typeof Re=="string"&&Rt.set(ue[Re],ue)},zt=function Kt(Rt){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=0;Re1&&arguments[1]!==void 0?arguments[1]:!1,Fe=0;Fe0?In(jn.options):jn.options}):jn})},jr=n.useMemo(function(){return _e?kr(Zr):Zr},[Zr,_e,qn]),Kr=n.useMemo(function(){return y(jr,{fieldNames:Jn,childrenAsData:Mn})},[jr,Jn,Mn]),Gr=function(Hn){var On=kt(Hn);if(kn(On),Wt&&(On.length!==er.length||On.some(function($r,Oo){var gn;return((gn=er[Oo])===null||gn===void 0?void 0:gn.value)!==($r==null?void 0:$r.value)}))){var jn=bn?On:On.map(function($r){return $r.value}),fr=On.map(function($r){return A(xr($r.value))});Wt(Un?jn:jn[0],Un?fr:fr[0])}},Zn=n.useState(null),Yn=(0,N.Z)(Zn,2),br=Yn[0],vr=Yn[1],xo=n.useState(0),Lo=(0,N.Z)(xo,2),vo=Lo[0],Eo=Lo[1],Bo=Xt!==void 0?Xt:Pe!=="combobox",wo=n.useCallback(function(In,Hn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},jn=On.source,fr=jn===void 0?"keyboard":jn;Eo(Hn),Fe&&Pe==="combobox"&&In!==null&&fr==="keyboard"&&vr(String(In))},[Fe,Pe]),Xr=function(Hn,On,jn){var fr=function(){var Xo,sr=xr(Hn);return[bn?{label:sr==null?void 0:sr[Jn.label],value:Hn,key:(Xo=sr==null?void 0:sr.key)!==null&&Xo!==void 0?Xo:Hn}:Hn,A(sr)]};if(On&&Rt){var $r=fr(),Oo=(0,N.Z)($r,2),gn=Oo[0],An=Oo[1];Rt(gn,An)}else if(!On&&ue&&jn!=="clear"){var tr=fr(),wr=(0,N.Z)(tr,2),Pr=wr[0],To=wr[1];ue(Pr,To)}},co=rn(function(In,Hn){var On,jn=Un?Hn.selected:!0;jn?On=Un?[].concat((0,m.Z)(er),[In]):[In]:On=er.filter(function(fr){return fr.value!==In}),Gr(On),Xr(In,jn),Pe==="combobox"?vr(""):(!Ie||Kt)&&(Lt(""),vr(""))}),to=function(Hn,On){Gr(Hn);var jn=On.type,fr=On.values;(jn==="remove"||jn==="clear")&&fr.forEach(function($r){Xr($r.value,!1,jn)})},lr=function(Hn,On){if(Lt(Hn),vr(null),On.source==="submit"){var jn=(Hn||"").trim();if(jn){var fr=Array.from(new Set([].concat((0,m.Z)(Dr),[jn])));Gr(fr),Xr(jn,!0),Lt("")}return}On.source!=="blur"&&(Pe==="combobox"&&Gr(Hn),vt==null||vt(Hn))},Lr=function(Hn){var On=Hn;Pe!=="tags"&&(On=Hn.map(function(fr){var $r=It.get(fr);return $r==null?void 0:$r.value}).filter(function(fr){return fr!==void 0}));var jn=Array.from(new Set([].concat((0,m.Z)(Dr),(0,m.Z)(On))));Gr(jn),jn.forEach(function(fr){Xr(fr,!0)})},Hr=n.useMemo(function(){var In=Zt!==!1&&Ze!==!1;return(0,Q.Z)((0,Q.Z)({},yt),{},{flattenOptions:Kr,onActiveValue:wo,defaultActiveFirstOption:Bo,onSelect:co,menuItemSelectedIcon:Tt,rawValues:Dr,fieldNames:Jn,virtual:In,direction:jt,listHeight:an,listItemHeight:Vt,childrenAsData:Mn,maxCount:Jt,optionRender:Dt})},[Jt,yt,Kr,wo,Bo,co,Tt,Dr,Jn,Zt,Ze,jt,an,Vt,Mn,Dt]);return n.createElement(i.Provider,{value:Hr},n.createElement(Te,(0,e.Z)({},Pn,{id:Dn,prefixCls:qe,ref:$,omitDomProps:mn,mode:Pe,displayValues:Er,onDisplayValuesChange:to,direction:jt,searchValue:qn,onSearch:lr,autoClearSearchValue:Kt,onSearchSplit:Lr,dropdownMatchSelectWidth:Ze,OptionList:ut,emptyOptions:!Kr.length,activeValue:br,activeDescendantId:"".concat(Dn,"_list_").concat(vo)})))}),b=en;b.Option=ne,b.OptGroup=je;var w=b,it=w},22711:function(Yt,Ge,t){t.r(Ge),t.d(Ge,{ResizableTextArea:function(){return Oe},default:function(){return ie}});var e=t(54476),m=t(20068),p=t(33885),Q=t(94480),N=t(42978),P=t(75931),g=t(92310),D=t.n(g),F=t(36901),n=t(66003),J=t(30292),O=t(18929),I=t(59301),Se=t(76190),Ne=t(29301),ge=t(34280),se=t(16089),ve=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,h=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],de={},s;function f(z){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=z.getAttribute("id")||z.getAttribute("data-reactid")||z.getAttribute("name");if(W&&de[c])return de[c];var B=window.getComputedStyle(z),oe=B.getPropertyValue("box-sizing")||B.getPropertyValue("-moz-box-sizing")||B.getPropertyValue("-webkit-box-sizing"),G=parseFloat(B.getPropertyValue("padding-bottom"))+parseFloat(B.getPropertyValue("padding-top")),ye=parseFloat(B.getPropertyValue("border-bottom-width"))+parseFloat(B.getPropertyValue("border-top-width")),et=h.map(function(xe){return"".concat(xe,":").concat(B.getPropertyValue(xe))}).join(";"),_={sizingStyle:et,paddingSize:G,borderSize:ye,boxSizing:oe};return W&&c&&(de[c]=_),_}function Y(z){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;s||(s=document.createElement("textarea"),s.setAttribute("tab-index","-1"),s.setAttribute("aria-hidden","true"),s.setAttribute("name","hiddenTextarea"),document.body.appendChild(s)),z.getAttribute("wrap")?s.setAttribute("wrap",z.getAttribute("wrap")):s.removeAttribute("wrap");var oe=f(z,W),G=oe.paddingSize,ye=oe.borderSize,et=oe.boxSizing,_=oe.sizingStyle;s.setAttribute("style","".concat(_,";").concat(ve)),s.value=z.value||z.placeholder||"";var xe=void 0,pe=void 0,Xe,M=s.scrollHeight;if(et==="border-box"?M+=ye:et==="content-box"&&(M-=G),c!==null||B!==null){s.value=" ";var Ee=s.scrollHeight-G;c!==null&&(xe=Ee*c,et==="border-box"&&(xe=xe+G+ye),M=Math.max(xe,M)),B!==null&&(pe=Ee*B,et==="border-box"&&(pe=pe+G+ye),Xe=M>pe?"":"hidden",M=Math.min(pe,M))}var be={height:M,overflowY:Xe,resize:"none"};return xe&&(be.minHeight=xe),pe&&(be.maxHeight=pe),be}var ee=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],te=0,Ve=1,we=2,k=I.forwardRef(function(z,W){var c=z,B=c.prefixCls,oe=c.defaultValue,G=c.value,ye=c.autoSize,et=c.onResize,_=c.className,xe=c.style,pe=c.disabled,Xe=c.onChange,M=c.onInternalAutoSize,Ee=(0,P.Z)(c,ee),be=(0,O.Z)(oe,{value:G,postState:function(ne){return ne!=null?ne:""}}),ct=(0,N.Z)(be,2),Le=ct[0],re=ct[1],T=function(ne){re(ne.target.value),Xe==null||Xe(ne)},H=I.useRef();I.useImperativeHandle(W,function(){return{textArea:H.current}});var d=I.useMemo(function(){return ye&&(0,Se.Z)(ye)==="object"?[ye.minRows,ye.maxRows]:[]},[ye]),ce=(0,N.Z)(d,2),Z=ce[0],r=ce[1],u=!!ye,V=function(){try{if(document.activeElement===H.current){var ne=H.current,Ce=ne.selectionStart,De=ne.selectionEnd,S=ne.scrollTop;H.current.setSelectionRange(Ce,De),H.current.scrollTop=S}}catch(X){}},K=I.useState(we),y=(0,N.Z)(K,2),A=y[0],L=y[1],q=I.useState(),i=(0,N.Z)(q,2),v=i[0],Me=i[1],fe=function(){L(te)};(0,ge.Z)(function(){u&&fe()},[G,Z,r,u]),(0,ge.Z)(function(){if(A===te)L(Ve);else if(A===Ve){var x=Y(H.current,!1,Z,r);L(we),Me(x)}else V()},[A]);var Ie=I.useRef(),Be=function(){se.Z.cancel(Ie.current)},Te=function(ne){A===we&&(et==null||et(ne),ye&&(Be(),Ie.current=(0,se.Z)(function(){fe()})))};I.useEffect(function(){return Be},[]);var Ue=u?v:null,je=(0,p.Z)((0,p.Z)({},xe),Ue);return(A===te||A===Ve)&&(je.overflowY="hidden",je.overflowX="hidden"),I.createElement(Ne.Z,{onResize:Te,disabled:!(ye||et)},I.createElement("textarea",(0,e.Z)({},Ee,{ref:H,style:je,className:D()(B,_,(0,m.Z)({},"".concat(B,"-disabled"),pe)),disabled:pe,value:Le,onChange:T})))}),Oe=k,ae=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],C=I.forwardRef(function(z,W){var c,B=z.defaultValue,oe=z.value,G=z.onFocus,ye=z.onBlur,et=z.onChange,_=z.allowClear,xe=z.maxLength,pe=z.onCompositionStart,Xe=z.onCompositionEnd,M=z.suffix,Ee=z.prefixCls,be=Ee===void 0?"rc-textarea":Ee,ct=z.showCount,Le=z.count,re=z.className,T=z.style,H=z.disabled,d=z.hidden,ce=z.classNames,Z=z.styles,r=z.onResize,u=z.onClear,V=z.onPressEnter,K=z.readOnly,y=z.autoSize,A=z.onKeyDown,L=(0,P.Z)(z,ae),q=(0,O.Z)(B,{value:oe,defaultValue:B}),i=(0,N.Z)(q,2),v=i[0],Me=i[1],fe=v==null?"":String(v),Ie=I.useState(!1),Be=(0,N.Z)(Ie,2),Te=Be[0],Ue=Be[1],je=I.useRef(!1),x=I.useState(null),ne=(0,N.Z)(x,2),Ce=ne[0],De=ne[1],S=(0,I.useRef)(null),X=(0,I.useRef)(null),U=function(){var b;return(b=X.current)===null||b===void 0?void 0:b.textArea},me=function(){U().focus()};(0,I.useImperativeHandle)(W,function(){var en;return{resizableTextArea:X.current,focus:me,blur:function(){U().blur()},nativeElement:((en=S.current)===null||en===void 0?void 0:en.nativeElement)||U()}}),(0,I.useEffect)(function(){Ue(function(en){return!H&&en})},[H]);var ze=I.useState(null),Ke=(0,N.Z)(ze,2),ut=Ke[0],pt=Ke[1];I.useEffect(function(){if(ut){var en;(en=U()).setSelectionRange.apply(en,(0,Q.Z)(ut))}},[ut]);var tt=(0,n.Z)(Le,ct),mt=(c=tt.max)!==null&&c!==void 0?c:xe,ke=Number(mt)>0,rt=tt.strategy(fe),ot=!!mt&&rt>mt,xt=function(b,w){var it=w;!je.current&&tt.exceedFormatter&&tt.max&&tt.strategy(w)>tt.max&&(it=tt.exceedFormatter(w,{max:tt.max}),w!==it&&pt([U().selectionStart||0,U().selectionEnd||0])),Me(it),(0,J.rJ)(b.currentTarget,b,et,it)},gt=function(b){je.current=!0,pe==null||pe(b)},Pt=function(b){je.current=!1,xt(b,b.currentTarget.value),Xe==null||Xe(b)},Mt=function(b){xt(b,b.target.value)},Gt=function(b){b.key==="Enter"&&V&&V(b),A==null||A(b)},rn=function(b){Ue(!0),G==null||G(b)},Ht=function(b){Ue(!1),ye==null||ye(b)},At=function(b){Me(""),me(),(0,J.rJ)(U(),b,et)},vn=M,Bt;tt.show&&(tt.showFormatter?Bt=tt.showFormatter({value:fe,count:rt,maxLength:mt}):Bt="".concat(rt).concat(ke?" / ".concat(mt):""),vn=I.createElement(I.Fragment,null,vn,I.createElement("span",{className:D()("".concat(be,"-data-count"),ce==null?void 0:ce.count),style:Z==null?void 0:Z.count},Bt)));var mn=function(b){var w;r==null||r(b),(w=U())!==null&&w!==void 0&&w.style.height&&De(!0)},pn=!y&&!ct&&!_;return I.createElement(F.BaseInput,{ref:S,value:fe,allowClear:_,handleReset:At,suffix:vn,prefixCls:be,classNames:(0,p.Z)((0,p.Z)({},ce),{},{affixWrapper:D()(ce==null?void 0:ce.affixWrapper,(0,m.Z)((0,m.Z)({},"".concat(be,"-show-count"),ct),"".concat(be,"-textarea-allow-clear"),_))}),disabled:H,focused:Te,className:D()(re,ot&&"".concat(be,"-out-of-range")),style:(0,p.Z)((0,p.Z)({},T),Ce&&!pn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Bt=="string"?Bt:void 0}},hidden:d,readOnly:K,onClear:u},I.createElement(Oe,(0,e.Z)({},L,{autoSize:y,maxLength:xe,onKeyDown:Gt,onChange:Mt,onFocus:rn,onBlur:Ht,onCompositionStart:gt,onCompositionEnd:Pt,className:D()(ce==null?void 0:ce.textarea),style:(0,p.Z)((0,p.Z)({},Z==null?void 0:Z.textarea),{},{resize:T==null?void 0:T.resize}),disabled:H,prefixCls:be,onResize:mn,ref:X,readOnly:K})))}),l=C,ie=l},29125:function(Yt,Ge,t){t.d(Ge,{G:function(){return Q},Z:function(){return ve}});var e=t(92310),m=t.n(e),p=t(59301);function Q(h){var de=h.children,s=h.prefixCls,f=h.id,Y=h.overlayInnerStyle,ee=h.bodyClassName,te=h.className,Ve=h.style;return p.createElement("div",{className:m()("".concat(s,"-content"),te),style:Ve},p.createElement("div",{className:m()("".concat(s,"-inner"),ee),id:f,role:"tooltip",style:Y},typeof de=="function"?de():de))}var N=t(54476),P=t(33885),g=t(75931),D=t(65030),F={shiftX:64,adjustY:1},n={adjustX:1,shiftY:!0},J=[0,0],O={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:J},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:J},top:{points:["bc","tc"],overflow:F,offset:[0,-4],targetOffset:J},bottom:{points:["tc","bc"],overflow:F,offset:[0,4],targetOffset:J},topLeft:{points:["bl","tl"],overflow:F,offset:[0,-4],targetOffset:J},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:J},topRight:{points:["br","tr"],overflow:F,offset:[0,-4],targetOffset:J},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:J},bottomRight:{points:["tr","br"],overflow:F,offset:[0,4],targetOffset:J},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:J},bottomLeft:{points:["tl","bl"],overflow:F,offset:[0,4],targetOffset:J},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:J}},I=null,Se=t(80402),Ne=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],ge=function(de,s){var f=de.overlayClassName,Y=de.trigger,ee=Y===void 0?["hover"]:Y,te=de.mouseEnterDelay,Ve=te===void 0?0:te,we=de.mouseLeaveDelay,k=we===void 0?.1:we,Oe=de.overlayStyle,ae=de.prefixCls,C=ae===void 0?"rc-tooltip":ae,l=de.children,ie=de.onVisibleChange,z=de.afterVisibleChange,W=de.transitionName,c=de.animation,B=de.motion,oe=de.placement,G=oe===void 0?"right":oe,ye=de.align,et=ye===void 0?{}:ye,_=de.destroyTooltipOnHide,xe=_===void 0?!1:_,pe=de.defaultVisible,Xe=de.getTooltipContainer,M=de.overlayInnerStyle,Ee=de.arrowContent,be=de.overlay,ct=de.id,Le=de.showArrow,re=Le===void 0?!0:Le,T=de.classNames,H=de.styles,d=(0,g.Z)(de,Ne),ce=(0,Se.Z)(ct),Z=(0,p.useRef)(null);(0,p.useImperativeHandle)(s,function(){return Z.current});var r=(0,P.Z)({},d);"visible"in de&&(r.popupVisible=de.visible);var u=function(){return p.createElement(Q,{key:"content",prefixCls:C,id:ce,bodyClassName:T==null?void 0:T.body,overlayInnerStyle:(0,P.Z)((0,P.Z)({},M),H==null?void 0:H.body)},be)},V=function(){var y=p.Children.only(l),A=(y==null?void 0:y.props)||{},L=(0,P.Z)((0,P.Z)({},A),{},{"aria-describedby":be?ce:null});return p.cloneElement(l,L)};return p.createElement(D.Z,(0,N.Z)({popupClassName:m()(f,T==null?void 0:T.root),prefixCls:C,popup:u,action:ee,builtinPlacements:O,popupPlacement:G,ref:Z,popupAlign:et,getPopupContainer:Xe,onPopupVisibleChange:ie,afterPopupVisibleChange:z,popupTransitionName:W,popupAnimation:c,popupMotion:B,defaultPopupVisible:pe,autoDestroy:xe,mouseLeaveDelay:k,popupStyle:(0,P.Z)((0,P.Z)({},Oe),H==null?void 0:H.root),mouseEnterDelay:Ve,arrow:re},r),V())},se=(0,p.forwardRef)(ge),ve=se},639:function(Yt,Ge,t){t.d(Ge,{Z:function(){return de}});var e=t(54476),m=t(20068),p=t(33885),Q=t(42978),N=t(75931),P=t(59301),g=t(92310),D=t.n(g),F=t(26112),n=t(30699),J=function(f){for(var Y=f.prefixCls,ee=f.level,te=f.isStart,Ve=f.isEnd,we="".concat(Y,"-indent-unit"),k=[],Oe=0;Oe0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Z=d.length,r=ce.length;if(Math.abs(Z-r)!==1)return{add:!1,key:null};function u(V,K){var y=new Map;V.forEach(function(L){y.set(L,!0)});var A=K.filter(function(L){return!y.has(L)});return A.length===1?A[0]:null}return Z ").concat(ce);return ce}var Xe=ge.forwardRef(function(d,ce){var Z=d.prefixCls,r=d.data,u=d.selectable,V=d.checkable,K=d.expandedKeys,y=d.selectedKeys,A=d.checkedKeys,L=d.loadedKeys,q=d.loadingKeys,i=d.halfCheckedKeys,v=d.keyEntities,Me=d.disabled,fe=d.dragging,Ie=d.dragOverNodeKey,Be=d.dropPosition,Te=d.motion,Ue=d.height,je=d.itemHeight,x=d.virtual,ne=d.scrollWidth,Ce=d.focusable,De=d.activeItem,S=d.focused,X=d.tabIndex,U=d.onKeyDown,me=d.onFocus,ze=d.onBlur,Ke=d.onActiveChange,ut=d.onListChangeStart,pt=d.onListChangeEnd,tt=(0,f.Z)(d,W),mt=ge.useRef(null),ke=ge.useRef(null);ge.useImperativeHandle(ce,function(){return{scrollTo:function(at){mt.current.scrollTo(at)},getIndentWidth:function(){return ke.current.offsetWidth}}});var rt=ge.useState(K),ot=(0,s.Z)(rt,2),xt=ot[0],gt=ot[1],Pt=ge.useState(r),Mt=(0,s.Z)(Pt,2),Gt=Mt[0],rn=Mt[1],Ht=ge.useState(r),At=(0,s.Z)(Ht,2),vn=At[0],Bt=At[1],mn=ge.useState([]),pn=(0,s.Z)(mn,2),en=pn[0],b=pn[1],w=ge.useState(null),it=(0,s.Z)(w,2),R=it[0],$=it[1],He=ge.useRef(r);He.current=r;function Pe(){var Fe=He.current;rn(Fe),Bt(Fe),b([]),$(null),pt()}(0,Y.Z)(function(){gt(K);var Fe=ie(xt,K);if(Fe.key!==null)if(Fe.add){var at=Gt.findIndex(function(Rt){var ue=Rt.key;return ue===Fe.key}),Ct=_(z(Gt,r,Fe.key),x,Ue,je),bt=Gt.slice();bt.splice(at+1,0,et),Bt(bt),b(Ct),$("show")}else{var vt=r.findIndex(function(Rt){var ue=Rt.key;return ue===Fe.key}),zt=_(z(r,Gt,Fe.key),x,Ue,je),Kt=r.slice();Kt.splice(vt+1,0,et),Bt(Kt),b(zt),$("hide")}else Gt!==r&&(rn(r),Bt(r))},[K,r]),ge.useEffect(function(){fe||Pe()},[fe]);var Ae=Te?vn:r,qe={expandedKeys:K,selectedKeys:y,loadedKeys:L,loadingKeys:q,checkedKeys:A,halfCheckedKeys:i,dragOverNodeKey:Ie,dropPosition:Be,keyEntities:v};return ge.createElement(ge.Fragment,null,S&&De&&ge.createElement("span",{style:c,"aria-live":"assertive"},pe(De)),ge.createElement("div",null,ge.createElement("input",{style:c,disabled:Ce===!1||Me,tabIndex:Ce!==!1?X:null,onKeyDown:U,onFocus:me,onBlur:ze,value:"",onChange:B,"aria-label":"for screen reader"})),ge.createElement("div",{className:"".concat(Z,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ge.createElement("div",{className:"".concat(Z,"-indent")},ge.createElement("div",{ref:ke,className:"".concat(Z,"-indent-unit")}))),ge.createElement(ee.Z,(0,e.Z)({},tt,{data:Ae,itemKey:xe,height:Ue,fullHeight:!1,virtual:x,itemHeight:je,scrollWidth:ne,prefixCls:"".concat(Z,"-list"),ref:mt,role:"tree",onVisibleChange:function(at){at.every(function(Ct){return xe(Ct)!==oe})&&Pe()}}),function(Fe){var at=Fe.pos,Ct=Object.assign({},(de(Fe.data),Fe.data)),bt=Fe.title,vt=Fe.key,zt=Fe.isStart,Kt=Fe.isEnd,Rt=(0,Oe.km)(vt,at);delete Ct.key,delete Ct.children;var ue=(0,Oe.H8)(Rt,qe);return ge.createElement(l,(0,e.Z)({},Ct,ue,{title:bt,active:!!De&&vt===De.key,pos:at,data:Fe.data,isStart:zt,isEnd:Kt,motion:Te,motionNodes:vt===oe?en:null,motionType:R,onMotionStart:ut,onMotionEnd:Pe,treeNodeRequiredProps:qe,onMouseMove:function(){Ke(null)}}))}))}),M=Xe,Ee=t(82661),be=t(34643),ct=t(65065),Le=10,re=function(d){(0,D.Z)(Z,d);var ce=(0,F.Z)(Z);function Z(){var r;(0,N.Z)(this,Z);for(var u=arguments.length,V=new Array(u),K=0;K2&&arguments[2]!==void 0?arguments[2]:!1,i=r.state,v=i.dragChildrenKeys,Me=i.dropPosition,fe=i.dropTargetKey,Ie=i.dropTargetPos,Be=i.dropAllowed;if(Be){var Te=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),fe!==null){var Ue=(0,p.Z)((0,p.Z)({},(0,Oe.H8)(fe,r.getTreeNodeRequiredProps())),{},{active:((L=r.getActiveItem())===null||L===void 0?void 0:L.key)===fe,data:(0,ct.Z)(r.state.keyEntities,fe).node}),je=v.includes(fe);(0,Ne.ZP)(!je,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var x=(0,Ee.yx)(Ie),ne={event:y,node:(0,Oe.F)(Ue),dragNode:r.dragNodeProps?(0,Oe.F)(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(v),dropToGap:Me!==0,dropPosition:Me+Number(x[x.length-1])};q||Te==null||Te(ne),r.dragNodeProps=null}}}),(0,n.Z)((0,g.Z)(r),"cleanDragState",function(){var y=r.state.draggingNodeKey;y!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),(0,n.Z)((0,g.Z)(r),"triggerExpandActionExpand",function(y,A){var L=r.state,q=L.expandedKeys,i=L.flattenNodes,v=A.expanded,Me=A.key,fe=A.isLeaf;if(!(fe||y.shiftKey||y.metaKey||y.ctrlKey)){var Ie=i.filter(function(Te){return Te.key===Me})[0],Be=(0,Oe.F)((0,p.Z)((0,p.Z)({},(0,Oe.H8)(Me,r.getTreeNodeRequiredProps())),{},{data:Ie.data}));r.setExpandedKeys(v?(0,Ee._5)(q,Me):(0,Ee.L0)(q,Me)),r.onNodeExpand(y,Be)}}),(0,n.Z)((0,g.Z)(r),"onNodeClick",function(y,A){var L=r.props,q=L.onClick,i=L.expandAction;i==="click"&&r.triggerExpandActionExpand(y,A),q==null||q(y,A)}),(0,n.Z)((0,g.Z)(r),"onNodeDoubleClick",function(y,A){var L=r.props,q=L.onDoubleClick,i=L.expandAction;i==="doubleClick"&&r.triggerExpandActionExpand(y,A),q==null||q(y,A)}),(0,n.Z)((0,g.Z)(r),"onNodeSelect",function(y,A){var L=r.state.selectedKeys,q=r.state,i=q.keyEntities,v=q.fieldNames,Me=r.props,fe=Me.onSelect,Ie=Me.multiple,Be=A.selected,Te=A[v.key],Ue=!Be;Ue?Ie?L=(0,Ee.L0)(L,Te):L=[Te]:L=(0,Ee._5)(L,Te);var je=L.map(function(x){var ne=(0,ct.Z)(i,x);return ne?ne.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:L}),fe==null||fe(L,{event:"select",selected:Ue,node:A,selectedNodes:je,nativeEvent:y.nativeEvent})}),(0,n.Z)((0,g.Z)(r),"onNodeCheck",function(y,A,L){var q=r.state,i=q.keyEntities,v=q.checkedKeys,Me=q.halfCheckedKeys,fe=r.props,Ie=fe.checkStrictly,Be=fe.onCheck,Te=A.key,Ue,je={event:"check",node:A,checked:L,nativeEvent:y.nativeEvent};if(Ie){var x=L?(0,Ee.L0)(v,Te):(0,Ee._5)(v,Te),ne=(0,Ee._5)(Me,Te);Ue={checked:x,halfChecked:ne},je.checkedNodes=x.map(function(me){return(0,ct.Z)(i,me)}).filter(Boolean).map(function(me){return me.node}),r.setUncontrolledState({checkedKeys:x})}else{var Ce=(0,be.S)([].concat((0,Q.Z)(v),[Te]),!0,i),De=Ce.checkedKeys,S=Ce.halfCheckedKeys;if(!L){var X=new Set(De);X.delete(Te);var U=(0,be.S)(Array.from(X),{checked:!1,halfCheckedKeys:S},i);De=U.checkedKeys,S=U.halfCheckedKeys}Ue=De,je.checkedNodes=[],je.checkedNodesPositions=[],je.halfCheckedKeys=S,De.forEach(function(me){var ze=(0,ct.Z)(i,me);if(ze){var Ke=ze.node,ut=ze.pos;je.checkedNodes.push(Ke),je.checkedNodesPositions.push({node:Ke,pos:ut})}}),r.setUncontrolledState({checkedKeys:De},!1,{halfCheckedKeys:S})}Be==null||Be(Ue,je)}),(0,n.Z)((0,g.Z)(r),"onNodeLoad",function(y){var A,L=y.key,q=r.state.keyEntities,i=(0,ct.Z)(q,L);if(!(i!=null&&(A=i.children)!==null&&A!==void 0&&A.length)){var v=new Promise(function(Me,fe){r.setState(function(Ie){var Be=Ie.loadedKeys,Te=Be===void 0?[]:Be,Ue=Ie.loadingKeys,je=Ue===void 0?[]:Ue,x=r.props,ne=x.loadData,Ce=x.onLoad;if(!ne||Te.includes(L)||je.includes(L))return null;var De=ne(y);return De.then(function(){var S=r.state.loadedKeys,X=(0,Ee.L0)(S,L);Ce==null||Ce(X,{event:"load",node:y}),r.setUncontrolledState({loadedKeys:X}),r.setState(function(U){return{loadingKeys:(0,Ee._5)(U.loadingKeys,L)}}),Me()}).catch(function(S){if(r.setState(function(U){return{loadingKeys:(0,Ee._5)(U.loadingKeys,L)}}),r.loadingRetryTimes[L]=(r.loadingRetryTimes[L]||0)+1,r.loadingRetryTimes[L]>=Le){var X=r.state.loadedKeys;(0,Ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:(0,Ee.L0)(X,L)}),Me()}fe(S)}),{loadingKeys:(0,Ee.L0)(je,L)}})});return v.catch(function(){}),v}}),(0,n.Z)((0,g.Z)(r),"onNodeMouseEnter",function(y,A){var L=r.props.onMouseEnter;L==null||L({event:y,node:A})}),(0,n.Z)((0,g.Z)(r),"onNodeMouseLeave",function(y,A){var L=r.props.onMouseLeave;L==null||L({event:y,node:A})}),(0,n.Z)((0,g.Z)(r),"onNodeContextMenu",function(y,A){var L=r.props.onRightClick;L&&(y.preventDefault(),L({event:y,node:A}))}),(0,n.Z)((0,g.Z)(r),"onFocus",function(){var y=r.props.onFocus;r.setState({focused:!0});for(var A=arguments.length,L=new Array(A),q=0;q1&&arguments[1]!==void 0?arguments[1]:!1,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var q=!1,i=!0,v={};Object.keys(y).forEach(function(Me){if(r.props.hasOwnProperty(Me)){i=!1;return}q=!0,v[Me]=y[Me]}),q&&(!A||i)&&r.setState((0,p.Z)((0,p.Z)({},v),L))}}),(0,n.Z)((0,g.Z)(r),"scrollTo",function(y){r.listRef.current.scrollTo(y)}),r}return(0,P.Z)(Z,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var u=this.props,V=u.activeKey,K=u.itemScrollOffset,y=K===void 0?0:K;V!==void 0&&V!==this.state.activeKey&&(this.setState({activeKey:V}),V!==null&&this.scrollTo({key:V,offset:y}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var u=this.state,V=u.focused,K=u.flattenNodes,y=u.keyEntities,A=u.draggingNodeKey,L=u.activeKey,q=u.dropLevelOffset,i=u.dropContainerKey,v=u.dropTargetKey,Me=u.dropPosition,fe=u.dragOverNodeKey,Ie=u.indent,Be=this.props,Te=Be.prefixCls,Ue=Be.className,je=Be.style,x=Be.showLine,ne=Be.focusable,Ce=Be.tabIndex,De=Ce===void 0?0:Ce,S=Be.selectable,X=Be.showIcon,U=Be.icon,me=Be.switcherIcon,ze=Be.draggable,Ke=Be.checkable,ut=Be.checkStrictly,pt=Be.disabled,tt=Be.motion,mt=Be.loadData,ke=Be.filterTreeNode,rt=Be.height,ot=Be.itemHeight,xt=Be.scrollWidth,gt=Be.virtual,Pt=Be.titleRender,Mt=Be.dropIndicatorRender,Gt=Be.onContextMenu,rn=Be.onScroll,Ht=Be.direction,At=Be.rootClassName,vn=Be.rootStyle,Bt=(0,Se.Z)(this.props,{aria:!0,data:!0}),mn;ze&&((0,m.Z)(ze)==="object"?mn=ze:typeof ze=="function"?mn={nodeDraggable:ze}:mn={});var pn={prefixCls:Te,selectable:S,showIcon:X,icon:U,switcherIcon:me,draggable:mn,draggingNodeKey:A,checkable:Ke,checkStrictly:ut,disabled:pt,keyEntities:y,dropLevelOffset:q,dropContainerKey:i,dropTargetKey:v,dropPosition:Me,dragOverNodeKey:fe,indent:Ie,direction:Ht,dropIndicatorRender:Mt,loadData:mt,filterTreeNode:ke,titleRender:Pt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ge.createElement(se.k.Provider,{value:pn},ge.createElement("div",{className:O()(Te,Ue,At,(0,n.Z)((0,n.Z)((0,n.Z)({},"".concat(Te,"-show-line"),x),"".concat(Te,"-focused"),V),"".concat(Te,"-active-focused"),L!==null)),style:vn},ge.createElement(M,(0,e.Z)({ref:this.listRef,prefixCls:Te,style:je,data:K,disabled:pt,selectable:S,checkable:!!Ke,motion:tt,dragging:A!==null,height:rt,itemHeight:ot,virtual:gt,focusable:ne,focused:V,tabIndex:De,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Gt,onScroll:rn,scrollWidth:xt},this.getTreeNodeRequiredProps(),Bt))))}}],[{key:"getDerivedStateFromProps",value:function(u,V){var K=V.prevProps,y={prevProps:u};function A(De){return!K&&u.hasOwnProperty(De)||K&&K[De]!==u[De]}var L,q=V.fieldNames;if(A("fieldNames")&&(q=(0,Oe.w$)(u.fieldNames),y.fieldNames=q),A("treeData")?L=u.treeData:A("children")&&((0,Ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),L=(0,Oe.zn)(u.children)),L){y.treeData=L;var i=(0,Oe.I8)(L,{fieldNames:q});y.keyEntities=(0,p.Z)((0,n.Z)({},oe,ye),i.keyEntities)}var v=y.keyEntities||V.keyEntities;if(A("expandedKeys")||K&&A("autoExpandParent"))y.expandedKeys=u.autoExpandParent||!K&&u.defaultExpandParent?(0,Ee.r7)(u.expandedKeys,v):u.expandedKeys;else if(!K&&u.defaultExpandAll){var Me=(0,p.Z)({},v);delete Me[oe];var fe=[];Object.keys(Me).forEach(function(De){var S=Me[De];S.children&&S.children.length&&fe.push(S.key)}),y.expandedKeys=fe}else!K&&u.defaultExpandedKeys&&(y.expandedKeys=u.autoExpandParent||u.defaultExpandParent?(0,Ee.r7)(u.defaultExpandedKeys,v):u.defaultExpandedKeys);if(y.expandedKeys||delete y.expandedKeys,L||y.expandedKeys){var Ie=(0,Oe.oH)(L||V.treeData,y.expandedKeys||V.expandedKeys,q);y.flattenNodes=Ie}if(u.selectable&&(A("selectedKeys")?y.selectedKeys=(0,Ee.BT)(u.selectedKeys,u):!K&&u.defaultSelectedKeys&&(y.selectedKeys=(0,Ee.BT)(u.defaultSelectedKeys,u))),u.checkable){var Be;if(A("checkedKeys")?Be=(0,Ee.E6)(u.checkedKeys)||{}:!K&&u.defaultCheckedKeys?Be=(0,Ee.E6)(u.defaultCheckedKeys)||{}:L&&(Be=(0,Ee.E6)(u.checkedKeys)||{checkedKeys:V.checkedKeys,halfCheckedKeys:V.halfCheckedKeys}),Be){var Te=Be,Ue=Te.checkedKeys,je=Ue===void 0?[]:Ue,x=Te.halfCheckedKeys,ne=x===void 0?[]:x;if(!u.checkStrictly){var Ce=(0,be.S)(je,!0,v);je=Ce.checkedKeys,ne=Ce.halfCheckedKeys}y.checkedKeys=je,y.halfCheckedKeys=ne}}return A("loadedKeys")&&(y.loadedKeys=u.loadedKeys),y}}]),Z}(ge.Component);(0,n.Z)(re,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:h,allowDrop:function(){return!0},expandAction:!1}),(0,n.Z)(re,"TreeNode",Ve.Z);var T=re,H=T},82661:function(Yt,Ge,t){t.d(Ge,{BT:function(){return ge},E6:function(){return h},L0:function(){return n},OM:function(){return Ne},_5:function(){return F},r7:function(){return de},wA:function(){return O},yx:function(){return J}});var e=t(94480),m=t(76190),p=t(48736),Q=t(59301),N=t(639),P=t(65065),g=t(34061),D=null;function F(s,f){if(!s)return[];var Y=s.slice(),ee=Y.indexOf(f);return ee>=0&&Y.splice(ee,1),Y}function n(s,f){var Y=(s||[]).slice();return Y.indexOf(f)===-1&&Y.push(f),Y}function J(s){return s.split("-")}function O(s,f){var Y=[],ee=(0,P.Z)(f,s);function te(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ve.forEach(function(we){var k=we.key,Oe=we.children;Y.push(k),te(Oe)})}return te(ee.children),Y}function I(s){if(s.parent){var f=J(s.pos);return Number(f[f.length-1])===s.parent.children.length-1}return!1}function Se(s){var f=J(s.pos);return Number(f[f.length-1])===0}function Ne(s,f,Y,ee,te,Ve,we,k,Oe,ae){var C,l=s.clientX,ie=s.clientY,z=s.target.getBoundingClientRect(),W=z.top,c=z.height,B=(ae==="rtl"?-1:1)*(((te==null?void 0:te.x)||0)-l),oe=(B-12)/ee,G=Oe.filter(function(H){var d;return(d=k[H])===null||d===void 0||(d=d.children)===null||d===void 0?void 0:d.length}),ye=(0,P.Z)(k,Y.eventKey);if(ie-1.5?Ve({dragNode:Le,dropNode:re,dropPosition:1})?Ee=1:T=!1:Ve({dragNode:Le,dropNode:re,dropPosition:0})?Ee=0:Ve({dragNode:Le,dropNode:re,dropPosition:1})?Ee=1:T=!1:Ve({dragNode:Le,dropNode:re,dropPosition:1})?Ee=1:T=!1,{dropPosition:Ee,dropLevelOffset:be,dropTargetKey:ye.key,dropTargetPos:ye.pos,dragOverNodeKey:M,dropContainerKey:Ee===0?null:((C=ye.parent)===null||C===void 0?void 0:C.key)||null,dropAllowed:T}}function ge(s,f){if(s){var Y=f.multiple;return Y?s.slice():s.length?[s[0]]:s}}var se=function(f){return f};function ve(s,f){if(!s)return[];var Y=f||{},ee=Y.processProps,te=ee===void 0?se:ee,Ve=Array.isArray(s)?s:[s];return Ve.map(function(we){var k=we.children,Oe=_objectWithoutProperties(we,D),ae=ve(k,f);return React.createElement(TreeNode,_extends({key:Oe.key},te(Oe)),ae)})}function h(s){if(!s)return null;var f;if(Array.isArray(s))f={checkedKeys:s,halfCheckedKeys:void 0};else if((0,m.Z)(s)==="object")f={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,p.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return f}function de(s,f){var Y=new Set;function ee(te){if(!Y.has(te)){var Ve=(0,P.Z)(f,te);if(Ve){Y.add(te);var we=Ve.parent,k=Ve.node;k.disabled||we&&ee(we.key)}}}return(s||[]).forEach(function(te){ee(te)}),(0,e.Z)(Y)}},34643:function(Yt,Ge,t){t.d(Ge,{S:function(){return g}});var e=t(48736),m=t(65065);function p(D,F){var n=new Set;return D.forEach(function(J){F.has(J)||n.add(J)}),n}function Q(D){var F=D||{},n=F.disabled,J=F.disableCheckbox,O=F.checkable;return!!(n||J)||O===!1}function N(D,F,n,J){for(var O=new Set(D),I=new Set,Se=0;Se<=n;Se+=1){var Ne=F.get(Se)||new Set;Ne.forEach(function(h){var de=h.key,s=h.node,f=h.children,Y=f===void 0?[]:f;O.has(de)&&!J(s)&&Y.filter(function(ee){return!J(ee.node)}).forEach(function(ee){O.add(ee.key)})})}for(var ge=new Set,se=n;se>=0;se-=1){var ve=F.get(se)||new Set;ve.forEach(function(h){var de=h.parent,s=h.node;if(!(J(s)||!h.parent||ge.has(h.parent.key))){if(J(h.parent.node)){ge.add(de.key);return}var f=!0,Y=!1;(de.children||[]).filter(function(ee){return!J(ee.node)}).forEach(function(ee){var te=ee.key,Ve=O.has(te);f&&!Ve&&(f=!1),!Y&&(Ve||I.has(te))&&(Y=!0)}),f&&O.add(de.key),Y&&I.add(de.key),ge.add(de.key)}})}return{checkedKeys:Array.from(O),halfCheckedKeys:Array.from(p(I,O))}}function P(D,F,n,J,O){for(var I=new Set(D),Se=new Set(F),Ne=0;Ne<=J;Ne+=1){var ge=n.get(Ne)||new Set;ge.forEach(function(de){var s=de.key,f=de.node,Y=de.children,ee=Y===void 0?[]:Y;!I.has(s)&&!Se.has(s)&&!O(f)&&ee.filter(function(te){return!O(te.node)}).forEach(function(te){I.delete(te.key)})})}Se=new Set;for(var se=new Set,ve=J;ve>=0;ve-=1){var h=n.get(ve)||new Set;h.forEach(function(de){var s=de.parent,f=de.node;if(!(O(f)||!de.parent||se.has(de.parent.key))){if(O(de.parent.node)){se.add(s.key);return}var Y=!0,ee=!1;(s.children||[]).filter(function(te){return!O(te.node)}).forEach(function(te){var Ve=te.key,we=I.has(Ve);Y&&!we&&(Y=!1),!ee&&(we||Se.has(Ve))&&(ee=!0)}),Y||I.delete(s.key),ee&&Se.add(s.key),se.add(s.key)}})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(p(Se,I))}}function g(D,F,n,J){var O=[],I;J?I=J:I=Q;var Se=new Set(D.filter(function(ve){var h=!!(0,m.Z)(n,ve);return h||O.push(ve),h})),Ne=new Map,ge=0;Object.keys(n).forEach(function(ve){var h=n[ve],de=h.level,s=Ne.get(de);s||(s=new Set,Ne.set(de,s)),s.add(h),ge=Math.max(ge,de)}),(0,e.ZP)(!O.length,"Tree missing follow keys: ".concat(O.slice(0,100).map(function(ve){return"'".concat(ve,"'")}).join(", ")));var se;return F===!0?se=N(Se,Ne,ge,I):se=P(Se,F.halfCheckedKeys,Ne,ge,I),se}},65065:function(Yt,Ge,t){t.d(Ge,{Z:function(){return e}});function e(m,p){return m[p]}},34061:function(Yt,Ge,t){t.d(Ge,{F:function(){return de},H8:function(){return h},I8:function(){return ve},km:function(){return O},oH:function(){return ge},w$:function(){return I},zn:function(){return Ne}});var e=t(76190),m=t(94480),p=t(33885),Q=t(75931),N=t(11592),P=t(2738),g=t(48736),D=t(65065),F=["children"];function n(s,f){return"".concat(s,"-").concat(f)}function J(s){return s&&s.type&&s.type.isTreeNode}function O(s,f){return s!=null?s:f}function I(s){var f=s||{},Y=f.title,ee=f._title,te=f.key,Ve=f.children,we=Y||"title";return{title:we,_title:ee||[we],key:te||"key",children:Ve||"children"}}function Se(s,f){var Y=new Map;function ee(te){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(te||[]).forEach(function(we){var k=we[f.key],Oe=we[f.children];warning(k!=null,"Tree node must have a certain key: [".concat(Ve).concat(k,"]"));var ae=String(k);warning(!Y.has(ae)||k===null||k===void 0,"Same 'key' exist in the Tree: ".concat(ae)),Y.set(ae,!0),ee(Oe,"".concat(Ve).concat(ae," > "))})}ee(s)}function Ne(s){function f(Y){var ee=(0,N.Z)(Y);return ee.map(function(te){if(!J(te))return(0,g.ZP)(!te,"Tree/TreeNode can only accept TreeNode as children."),null;var Ve=te.key,we=te.props,k=we.children,Oe=(0,Q.Z)(we,F),ae=(0,p.Z)({key:Ve},Oe),C=f(k);return C.length&&(ae.children=C),ae}).filter(function(te){return te})}return f(s)}function ge(s,f,Y){var ee=I(Y),te=ee._title,Ve=ee.key,we=ee.children,k=new Set(f===!0?[]:f),Oe=[];function ae(C){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(ie,z){for(var W=n(l?l.pos:"0",z),c=O(ie[Ve],W),B,oe=0;oe1&&arguments[1]!==void 0?arguments[1]:{},Y=f.initWrapper,ee=f.processEntity,te=f.onProcessFinished,Ve=f.externalGetKey,we=f.childrenPropName,k=f.fieldNames,Oe=arguments.length>2?arguments[2]:void 0,ae=Ve||Oe,C={},l={},ie={posEntities:C,keyEntities:l};return Y&&(ie=Y(ie)||ie),se(s,function(z){var W=z.node,c=z.index,B=z.pos,oe=z.key,G=z.parentPos,ye=z.level,et=z.nodes,_={node:W,nodes:et,index:c,key:oe,pos:B,level:ye},xe=O(oe,B);C[B]=_,l[xe]=_,_.parent=C[G],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),ee&&ee(_,ie)},{externalGetKey:ae,childrenPropName:we,fieldNames:k}),te&&te(ie),ie}function h(s,f){var Y=f.expandedKeys,ee=f.selectedKeys,te=f.loadedKeys,Ve=f.loadingKeys,we=f.checkedKeys,k=f.halfCheckedKeys,Oe=f.dragOverNodeKey,ae=f.dropPosition,C=f.keyEntities,l=(0,D.Z)(C,s),ie={eventKey:s,expanded:Y.indexOf(s)!==-1,selected:ee.indexOf(s)!==-1,loaded:te.indexOf(s)!==-1,loading:Ve.indexOf(s)!==-1,checked:we.indexOf(s)!==-1,halfChecked:k.indexOf(s)!==-1,pos:String(l?l.pos:""),dragOver:Oe===s&&ae===0,dragOverGapTop:Oe===s&&ae===-1,dragOverGapBottom:Oe===s&&ae===1};return ie}function de(s){var f=s.data,Y=s.expanded,ee=s.selected,te=s.checked,Ve=s.loaded,we=s.loading,k=s.halfChecked,Oe=s.dragOver,ae=s.dragOverGapTop,C=s.dragOverGapBottom,l=s.pos,ie=s.active,z=s.eventKey,W=(0,p.Z)((0,p.Z)({},f),{},{expanded:Y,selected:ee,checked:te,loaded:Ve,loading:we,halfChecked:k,dragOver:Oe,dragOverGapTop:ae,dragOverGapBottom:C,pos:l,active:ie,key:z});return"props"in W||Object.defineProperty(W,"props",{get:function(){return(0,g.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),s}}),W}},8224:function(Yt,Ge,t){t.d(Ge,{Z:function(){return m}});var e=t(4676);function m(p,Q,N,P){var g=e.unstable_batchedUpdates?function(F){e.unstable_batchedUpdates(N,F)}:N;return p!=null&&p.addEventListener&&p.addEventListener(Q,g,P),{remove:function(){p!=null&&p.removeEventListener&&p.removeEventListener(Q,g,P)}}}},24514:function(Yt,Ge,t){t.d(Ge,{G:function(){return Q}});var e=t(47273),m=function(P){if((0,e.Z)()&&window.document.documentElement){var g=Array.isArray(P)?P:[P],D=window.document.documentElement;return g.some(function(F){return F in D.style})}return!1},p=function(P,g){if(!m(P))return!1;var D=document.createElement("div"),F=D.style[P];return D.style[P]=g,D.style[P]!==F};function Q(N,P){return!Array.isArray(N)&&P!==void 0?p(N,P):m(N)}},49658:function(Yt,Ge){Ge.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))}},48911:function(Yt,Ge,t){t.d(Ge,{Z:function(){return Le}});var e=t(54476),m=t(76190),p=t(33885),Q=t(20068),N=t(42978),P=t(75931),g=t(92310),D=t.n(g),F=t(29301),n=t(70425),J=t(34280),O=t(59301),I=t(4676),Se=O.forwardRef(function(re,T){var H=re.height,d=re.offsetY,ce=re.offsetX,Z=re.children,r=re.prefixCls,u=re.onInnerResize,V=re.innerProps,K=re.rtl,y=re.extra,A={},L={display:"flex",flexDirection:"column"};return d!==void 0&&(A={height:H,position:"relative",overflow:"hidden"},L=(0,p.Z)((0,p.Z)({},L),{},(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)({transform:"translateY(".concat(d,"px)")},K?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),O.createElement("div",{style:A},O.createElement(F.Z,{onResize:function(i){var v=i.offsetHeight;v&&u&&u()}},O.createElement("div",(0,e.Z)({style:L,className:D()((0,Q.Z)({},"".concat(r,"-holder-inner"),r)),ref:T},V),Z,y)))});Se.displayName="Filler";var Ne=Se;function ge(re){var T=re.children,H=re.setRef,d=O.useCallback(function(ce){H(ce)},[]);return O.cloneElement(T,{ref:d})}function se(re,T,H,d,ce,Z,r,u){var V=u.getKey;return re.slice(T,H+1).map(function(K,y){var A=T+y,L=r(K,A,{style:{width:d},offsetX:ce}),q=V(K);return O.createElement(ge,{key:q,setRef:function(v){return Z(K,v)}},L)})}function ve(re,T,H,d){var ce=H-re,Z=T-H,r=Math.min(ce,Z)*2;if(d<=r){var u=Math.floor(d/2);return d%2?H+u+1:H-u}return ce>Z?H-(d-Z):H+(d-ce)}function h(re,T,H){var d=re.length,ce=T.length,Z,r;if(d===0&&ce===0)return null;d2&&arguments[2]!==void 0?arguments[2]:!1,A=V?K<0&&u.current.left||K>0&&u.current.right:K<0&&u.current.top||K>0&&u.current.bottom;return y&&A?(clearTimeout(Z.current),ce.current=!1):(!A||ce.current)&&r(),!ce.current&&A}};function te(re,T,H,d,ce,Z,r){var u=(0,O.useRef)(0),V=(0,O.useRef)(null),K=(0,O.useRef)(null),y=(0,O.useRef)(!1),A=ee(T,H,d,ce);function L(Ie,Be){if(s.Z.cancel(V.current),!A(!1,Be)){var Te=Ie;if(!Te._virtualHandled)Te._virtualHandled=!0;else return;u.current+=Be,K.current=Be,Y||Te.preventDefault(),V.current=(0,s.Z)(function(){var Ue=y.current?10:1;r(u.current*Ue,!1),u.current=0})}}function q(Ie,Be){r(Be,!0),Y||Ie.preventDefault()}var i=(0,O.useRef)(null),v=(0,O.useRef)(null);function Me(Ie){if(re){s.Z.cancel(v.current),v.current=(0,s.Z)(function(){i.current=null},2);var Be=Ie.deltaX,Te=Ie.deltaY,Ue=Ie.shiftKey,je=Be,x=Te;(i.current==="sx"||!i.current&&Ue&&Te&&!Be)&&(je=Te,x=0,i.current="sx");var ne=Math.abs(je),Ce=Math.abs(x);i.current===null&&(i.current=Z&&ne>Ce?"x":"y"),i.current==="y"?L(Ie,x):q(Ie,je)}}function fe(Ie){re&&(y.current=Ie.detail===K.current)}return[Me,fe]}function Ve(re,T,H,d){var ce=O.useMemo(function(){return[new Map,[]]},[re,H.id,d]),Z=(0,N.Z)(ce,2),r=Z[0],u=Z[1],V=function(y){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y,L=r.get(y),q=r.get(A);if(L===void 0||q===void 0)for(var i=re.length,v=u.length;v0&&arguments[0]!==void 0?arguments[0]:!1;y();var i=function(){var fe=!1;u.current.forEach(function(Ie,Be){if(Ie&&Ie.offsetParent){var Te=Ie.offsetHeight,Ue=getComputedStyle(Ie),je=Ue.marginTop,x=Ue.marginBottom,ne=C(je),Ce=C(x),De=Te+ne+Ce;V.current.get(Be)!==De&&(V.current.set(Be,De),fe=!0)}}),fe&&r(function(Ie){return Ie+1})};if(q)i();else{K.current+=1;var v=K.current;Promise.resolve().then(function(){v===K.current&&i()})}}function L(q,i){var v=re(q),Me=u.current.get(v);i?(u.current.set(v,i),A()):u.current.delete(v),!Me!=!i&&(i?T==null||T(q):H==null||H(q))}return(0,O.useEffect)(function(){return y},[]),[L,A,V.current,Z]}var ie=14/15;function z(re,T,H){var d=(0,O.useRef)(!1),ce=(0,O.useRef)(0),Z=(0,O.useRef)(0),r=(0,O.useRef)(null),u=(0,O.useRef)(null),V,K=function(q){if(d.current){var i=Math.ceil(q.touches[0].pageX),v=Math.ceil(q.touches[0].pageY),Me=ce.current-i,fe=Z.current-v,Ie=Math.abs(Me)>Math.abs(fe);Ie?ce.current=i:Z.current=v;var Be=H(Ie,Ie?Me:fe,!1,q);Be&&q.preventDefault(),clearInterval(u.current),Be&&(u.current=setInterval(function(){Ie?Me*=ie:fe*=ie;var Te=Math.floor(Ie?Me:fe);(!H(Ie,Te,!0)||Math.abs(Te)<=.1)&&clearInterval(u.current)},16))}},y=function(){d.current=!1,V()},A=function(q){V(),q.touches.length===1&&!d.current&&(d.current=!0,ce.current=Math.ceil(q.touches[0].pageX),Z.current=Math.ceil(q.touches[0].pageY),r.current=q.target,r.current.addEventListener("touchmove",K,{passive:!1}),r.current.addEventListener("touchend",y,{passive:!0}))};V=function(){r.current&&(r.current.removeEventListener("touchmove",K),r.current.removeEventListener("touchend",y))},(0,J.Z)(function(){return re&&T.current.addEventListener("touchstart",A,{passive:!0}),function(){var L;(L=T.current)===null||L===void 0||L.removeEventListener("touchstart",A),V(),clearInterval(u.current)}},[re])}function W(re){return Math.floor(Math.pow(re,.5))}function c(re,T){var H="touches"in re?re.touches[0]:re;return H[T?"pageX":"pageY"]-window[T?"scrollX":"scrollY"]}function B(re,T,H){O.useEffect(function(){var d=T.current;if(re&&d){var ce=!1,Z,r,u=function(){s.Z.cancel(Z)},V=function L(){u(),Z=(0,s.Z)(function(){H(r),L()})},K=function(){ce=!1,u()},y=function(q){if(!(q.target.draggable||q.button!==0)){var i=q;i._virtualHandled||(i._virtualHandled=!0,ce=!0)}},A=function(q){if(ce){var i=c(q,!1),v=d.getBoundingClientRect(),Me=v.top,fe=v.bottom;if(i<=Me){var Ie=Me-i;r=-W(Ie),V()}else if(i>=fe){var Be=i-fe;r=W(Be),V()}else u()}};return d.addEventListener("mousedown",y),d.ownerDocument.addEventListener("mouseup",K),d.ownerDocument.addEventListener("mousemove",A),d.ownerDocument.addEventListener("dragend",K),function(){d.removeEventListener("mousedown",y),d.ownerDocument.removeEventListener("mouseup",K),d.ownerDocument.removeEventListener("mousemove",A),d.ownerDocument.removeEventListener("dragend",K),u()}}},[re])}var oe=10;function G(re,T,H,d,ce,Z,r,u){var V=O.useRef(),K=O.useState(null),y=(0,N.Z)(K,2),A=y[0],L=y[1];return(0,J.Z)(function(){if(A&&A.times=0;me-=1){var ze=ce(T[me]),Ke=H.get(ze);if(Ke===void 0){Ie=!0;break}if(U-=Ke,U<=0)break}switch(Ue){case"top":Te=x-Me;break;case"bottom":Te=ne-fe+Me;break;default:{var ut=re.current.scrollTop,pt=ut+fe;xpt&&(Be="bottom")}}Te!==null&&r(Te),Te!==A.lastTop&&(Ie=!0)}Ie&&L((0,p.Z)((0,p.Z)({},A),{},{times:A.times+1,targetAlign:Be,lastTop:Te}))}},[A,re.current]),function(q){if(q==null){u();return}if(s.Z.cancel(V.current),typeof q=="number")r(q);else if(q&&(0,m.Z)(q)==="object"){var i,v=q.align;"index"in q?i=q.index:i=T.findIndex(function(Ie){return ce(Ie)===q.key});var Me=q.offset,fe=Me===void 0?0:Me;L({times:0,index:i,offset:fe,originAlign:v})}}}var ye=O.forwardRef(function(re,T){var H=re.prefixCls,d=re.rtl,ce=re.scrollOffset,Z=re.scrollRange,r=re.onStartMove,u=re.onStopMove,V=re.onScroll,K=re.horizontal,y=re.spinSize,A=re.containerSize,L=re.style,q=re.thumbStyle,i=re.showScrollBar,v=O.useState(!1),Me=(0,N.Z)(v,2),fe=Me[0],Ie=Me[1],Be=O.useState(null),Te=(0,N.Z)(Be,2),Ue=Te[0],je=Te[1],x=O.useState(null),ne=(0,N.Z)(x,2),Ce=ne[0],De=ne[1],S=!d,X=O.useRef(),U=O.useRef(),me=O.useState(i),ze=(0,N.Z)(me,2),Ke=ze[0],ut=ze[1],pt=O.useRef(),tt=function(){i===!0||i===!1||(clearTimeout(pt.current),ut(!0),pt.current=setTimeout(function(){ut(!1)},3e3))},mt=Z-A||0,ke=A-y||0,rt=O.useMemo(function(){if(ce===0||mt===0)return 0;var At=ce/mt;return At*ke},[ce,mt,ke]),ot=function(vn){vn.stopPropagation(),vn.preventDefault()},xt=O.useRef({top:rt,dragging:fe,pageY:Ue,startTop:Ce});xt.current={top:rt,dragging:fe,pageY:Ue,startTop:Ce};var gt=function(vn){Ie(!0),je(c(vn,K)),De(xt.current.top),r(),vn.stopPropagation(),vn.preventDefault()};O.useEffect(function(){var At=function(pn){pn.preventDefault()},vn=X.current,Bt=U.current;return vn.addEventListener("touchstart",At,{passive:!1}),Bt.addEventListener("touchstart",gt,{passive:!1}),function(){vn.removeEventListener("touchstart",At),Bt.removeEventListener("touchstart",gt)}},[]);var Pt=O.useRef();Pt.current=mt;var Mt=O.useRef();Mt.current=ke,O.useEffect(function(){if(fe){var At,vn=function(pn){var en=xt.current,b=en.dragging,w=en.pageY,it=en.startTop;s.Z.cancel(At);var R=X.current.getBoundingClientRect(),$=A/(K?R.width:R.height);if(b){var He=(c(pn,K)-w)*$,Pe=it;!S&&K?Pe-=He:Pe+=He;var Ae=Pt.current,qe=Mt.current,Fe=qe?Pe/qe:0,at=Math.ceil(Fe*Ae);at=Math.max(at,0),at=Math.min(at,Ae),At=(0,s.Z)(function(){V(at,K)})}},Bt=function(){Ie(!1),u()};return window.addEventListener("mousemove",vn,{passive:!0}),window.addEventListener("touchmove",vn,{passive:!0}),window.addEventListener("mouseup",Bt,{passive:!0}),window.addEventListener("touchend",Bt,{passive:!0}),function(){window.removeEventListener("mousemove",vn),window.removeEventListener("touchmove",vn),window.removeEventListener("mouseup",Bt),window.removeEventListener("touchend",Bt),s.Z.cancel(At)}}},[fe]),O.useEffect(function(){return tt(),function(){clearTimeout(pt.current)}},[ce]),O.useImperativeHandle(T,function(){return{delayHidden:tt}});var Gt="".concat(H,"-scrollbar"),rn={position:"absolute",visibility:Ke?null:"hidden"},Ht={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return K?(Object.assign(rn,{height:8,left:0,right:0,bottom:0}),Object.assign(Ht,(0,Q.Z)({height:"100%",width:y},S?"left":"right",rt))):(Object.assign(rn,(0,Q.Z)({width:8,top:0,bottom:0},S?"right":"left",0)),Object.assign(Ht,{width:"100%",height:y,top:rt})),O.createElement("div",{ref:X,className:D()(Gt,(0,Q.Z)((0,Q.Z)((0,Q.Z)({},"".concat(Gt,"-horizontal"),K),"".concat(Gt,"-vertical"),!K),"".concat(Gt,"-visible"),Ke)),style:(0,p.Z)((0,p.Z)({},rn),L),onMouseDown:ot,onMouseMove:tt},O.createElement("div",{ref:U,className:D()("".concat(Gt,"-thumb"),(0,Q.Z)({},"".concat(Gt,"-thumb-moving"),fe)),style:(0,p.Z)((0,p.Z)({},Ht),q),onMouseDown:gt}))}),et=ye,_=20;function xe(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=re/T*re;return isNaN(H)&&(H=0),H=Math.max(H,_),Math.floor(H)}var pe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Xe=[],M={overflowY:"auto",overflowAnchor:"none"};function Ee(re,T){var H=re.prefixCls,d=H===void 0?"rc-virtual-list":H,ce=re.className,Z=re.height,r=re.itemHeight,u=re.fullHeight,V=u===void 0?!0:u,K=re.style,y=re.data,A=re.children,L=re.itemKey,q=re.virtual,i=re.direction,v=re.scrollWidth,Me=re.component,fe=Me===void 0?"div":Me,Ie=re.onScroll,Be=re.onVirtualScroll,Te=re.onVisibleChange,Ue=re.innerProps,je=re.extraRender,x=re.styles,ne=re.showScrollBar,Ce=ne===void 0?"optional":ne,De=(0,P.Z)(re,pe),S=O.useCallback(function(yt){return typeof L=="function"?L(yt):yt==null?void 0:yt[L]},[L]),X=l(S,null,null),U=(0,N.Z)(X,4),me=U[0],ze=U[1],Ke=U[2],ut=U[3],pt=!!(q!==!1&&Z&&r),tt=O.useMemo(function(){return Object.values(Ke.maps).reduce(function(yt,Et){return yt+Et},0)},[Ke.id,Ke.maps]),mt=pt&&y&&(Math.max(r*y.length,tt)>Z||!!v),ke=i==="rtl",rt=D()(d,(0,Q.Z)({},"".concat(d,"-rtl"),ke),ce),ot=y||Xe,xt=(0,O.useRef)(),gt=(0,O.useRef)(),Pt=(0,O.useRef)(),Mt=(0,O.useState)(0),Gt=(0,N.Z)(Mt,2),rn=Gt[0],Ht=Gt[1],At=(0,O.useState)(0),vn=(0,N.Z)(At,2),Bt=vn[0],mn=vn[1],pn=(0,O.useState)(!1),en=(0,N.Z)(pn,2),b=en[0],w=en[1],it=function(){w(!0)},R=function(){w(!1)},$={getKey:S};function He(yt){Ht(function(Et){var It;typeof yt=="function"?It=yt(Et):It=yt;var wt=Xt(It);return xt.current.scrollTop=wt,wt})}var Pe=(0,O.useRef)({start:0,end:ot.length}),Ae=(0,O.useRef)(),qe=de(ot,S),Fe=(0,N.Z)(qe,1),at=Fe[0];Ae.current=at;var Ct=O.useMemo(function(){if(!pt)return{scrollHeight:void 0,start:0,end:ot.length-1,offset:void 0};if(!mt){var yt;return{scrollHeight:((yt=gt.current)===null||yt===void 0?void 0:yt.offsetHeight)||0,start:0,end:ot.length-1,offset:void 0}}for(var Et=0,It,wt,kt,nn=ot.length,Tn=0;Tn=rn&&It===void 0&&(It=Tn,wt=Et),Sr>rn+Z&&kt===void 0&&(kt=Tn),Et=Sr}return It===void 0&&(It=0,wt=0,kt=Math.ceil(Z/r)),kt===void 0&&(kt=ot.length-1),kt=Math.min(kt+1,ot.length-1),{scrollHeight:Et,start:It,end:kt,offset:wt}},[mt,pt,rn,ot,ut,Z]),bt=Ct.scrollHeight,vt=Ct.start,zt=Ct.end,Kt=Ct.offset;Pe.current.start=vt,Pe.current.end=zt,O.useLayoutEffect(function(){var yt=Ke.getRecord();if(yt.size===1){var Et=Array.from(yt.keys())[0],It=yt.get(Et),wt=ot[vt];if(wt&&It===void 0){var kt=S(wt);if(kt===Et){var nn=Ke.get(Et),Tn=nn-r;He(function(Rn){return Rn+Tn})}}}Ke.resetRecord()},[bt]);var Rt=O.useState({width:0,height:Z}),ue=(0,N.Z)(Rt,2),Re=ue[0],Ze=ue[1],Ye=function(Et){Ze({width:Et.offsetWidth,height:Et.offsetHeight})},_e=(0,O.useRef)(),nt=(0,O.useRef)(),ft=O.useMemo(function(){return xe(Re.width,v)},[Re.width,v]),Ot=O.useMemo(function(){return xe(Re.height,bt)},[Re.height,bt]),Dt=bt-Z,Ft=(0,O.useRef)(Dt);Ft.current=Dt;function Xt(yt){var Et=yt;return Number.isNaN(Ft.current)||(Et=Math.min(Et,Ft.current)),Et=Math.max(Et,0),Et}var Tt=rn<=0,Zt=rn>=Dt,jt=Bt<=0,Qt=Bt>=v,an=ee(Tt,Zt,jt,Qt),$t=function(){return{x:ke?-Bt:Bt,y:rn}},Vt=(0,O.useRef)($t()),En=(0,n.zX)(function(yt){if(Be){var Et=(0,p.Z)((0,p.Z)({},$t()),yt);(Vt.current.x!==Et.x||Vt.current.y!==Et.y)&&(Be(Et),Vt.current=Et)}});function un(yt,Et){var It=yt;Et?((0,I.flushSync)(function(){mn(It)}),En()):He(It)}function sn(yt){var Et=yt.currentTarget.scrollTop;Et!==rn&&He(Et),Ie==null||Ie(yt),En()}var bn=function(Et){var It=Et,wt=v?v-Re.width:0;return It=Math.max(It,0),It=Math.min(It,wt),It},Wt=(0,n.zX)(function(yt,Et){Et?((0,I.flushSync)(function(){mn(function(It){var wt=It+(ke?-yt:yt);return bn(wt)})}),En()):He(function(It){var wt=It+yt;return wt})}),Jt=te(pt,Tt,Zt,jt,Qt,!!v,Wt),Pn=(0,N.Z)(Jt,2),Dn=Pn[0],Un=Pn[1];z(pt,xt,function(yt,Et,It,wt){var kt=wt;return an(yt,Et,It)?!1:!kt||!kt._virtualHandled?(kt&&(kt._virtualHandled=!0),Dn({preventDefault:function(){},deltaX:yt?Et:0,deltaY:yt?0:Et}),!0):!1}),B(mt,xt,function(yt){He(function(Et){return Et+yt})}),(0,J.Z)(function(){function yt(It){var wt=Tt&&It.detail<0,kt=Zt&&It.detail>0;pt&&!wt&&!kt&&It.preventDefault()}var Et=xt.current;return Et.addEventListener("wheel",Dn,{passive:!1}),Et.addEventListener("DOMMouseScroll",Un,{passive:!0}),Et.addEventListener("MozMousePixelScroll",yt,{passive:!1}),function(){Et.removeEventListener("wheel",Dn),Et.removeEventListener("DOMMouseScroll",Un),Et.removeEventListener("MozMousePixelScroll",yt)}},[pt,Tt,Zt]),(0,J.Z)(function(){if(v){var yt=bn(Bt);mn(yt),En({x:yt})}},[Re.width,v]);var Mn=function(){var Et,It;(Et=_e.current)===null||Et===void 0||Et.delayHidden(),(It=nt.current)===null||It===void 0||It.delayHidden()},Vn=G(xt,ot,Ke,r,S,function(){return ze(!0)},He,Mn);O.useImperativeHandle(T,function(){return{nativeElement:Pt.current,getScrollInfo:$t,scrollTo:function(Et){function It(wt){return wt&&(0,m.Z)(wt)==="object"&&("left"in wt||"top"in wt)}It(Et)?(Et.left!==void 0&&mn(bn(Et.left)),Vn(Et.top)):Vn(Et)}}}),(0,J.Z)(function(){if(Te){var yt=ot.slice(vt,zt+1);Te(yt,ot)}},[vt,zt,ot]);var Jn=Ve(ot,S,Ke,r),rr=je==null?void 0:je({start:vt,end:zt,virtual:mt,offsetX:Bt,offsetY:Kt,rtl:ke,getSize:Jn}),ar=se(ot,vt,zt,v,Bt,me,A,$),qn=null;Z&&(qn=(0,p.Z)((0,Q.Z)({},V?"height":"maxHeight",Z),M),pt&&(qn.overflowY="hidden",v&&(qn.overflowX="hidden"),b&&(qn.pointerEvents="none")));var Lt={};return ke&&(Lt.dir="rtl"),O.createElement("div",(0,e.Z)({ref:Pt,style:(0,p.Z)((0,p.Z)({},K),{},{position:"relative"}),className:rt},Lt,De),O.createElement(F.Z,{onResize:Ye},O.createElement(fe,{className:"".concat(d,"-holder"),style:qn,ref:xt,onScroll:sn,onMouseEnter:Mn},O.createElement(Ne,{prefixCls:d,height:bt,offsetX:Bt,offsetY:Kt,scrollWidth:v,onInnerResize:ze,ref:gt,innerProps:Ue,rtl:ke,extra:rr},ar))),mt&&bt>Z&&O.createElement(et,{ref:_e,prefixCls:d,scrollOffset:rn,scrollRange:bt,rtl:ke,onScroll:un,onStartMove:it,onStopMove:R,spinSize:Ot,containerSize:Re.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb,showScrollBar:Ce}),mt&&v>Re.width&&O.createElement(et,{ref:nt,prefixCls:d,scrollOffset:Bt,scrollRange:v,rtl:ke,onScroll:un,onStartMove:it,onStopMove:R,spinSize:ft,containerSize:Re.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb,showScrollBar:Ce}))}var be=O.forwardRef(Ee);be.displayName="List";var ct=be,Le=ct},76374:function(Yt,Ge,t){var e=function(){if(typeof Map!="undefined")return Map;function ae(C,l){var ie=-1;return C.some(function(z,W){return z[0]===l?(ie=W,!0):!1}),ie}return function(){function C(){this.__entries__=[]}return Object.defineProperty(C.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),C.prototype.get=function(l){var ie=ae(this.__entries__,l),z=this.__entries__[ie];return z&&z[1]},C.prototype.set=function(l,ie){var z=ae(this.__entries__,l);~z?this.__entries__[z][1]=ie:this.__entries__.push([l,ie])},C.prototype.delete=function(l){var ie=this.__entries__,z=ae(ie,l);~z&&ie.splice(z,1)},C.prototype.has=function(l){return!!~ae(this.__entries__,l)},C.prototype.clear=function(){this.__entries__.splice(0)},C.prototype.forEach=function(l,ie){ie===void 0&&(ie=null);for(var z=0,W=this.__entries__;z0},ae.prototype.connect_=function(){!m||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),F?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},ae.prototype.disconnect_=function(){!m||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},ae.prototype.onTransitionEnd_=function(C){var l=C.propertyName,ie=l===void 0?"":l,z=D.some(function(W){return!!~ie.indexOf(W)});z&&this.refresh()},ae.getInstance=function(){return this.instance_||(this.instance_=new ae),this.instance_},ae.instance_=null,ae}(),J=function(ae,C){for(var l=0,ie=Object.keys(C);l0},ae}(),we=typeof WeakMap!="undefined"?new WeakMap:new e,k=function(){function ae(C){if(!(this instanceof ae))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var l=n.getInstance(),ie=new Ve(C,l,this);we.set(this,ie)}return ae}();["observe","unobserve","disconnect"].forEach(function(ae){k.prototype[ae]=function(){var C;return(C=we.get(this))[ae].apply(C,arguments)}});var Oe=function(){return typeof p.ResizeObserver!="undefined"?p.ResizeObserver:k}();Ge.Z=Oe}}]); diff --git a/p__Paperlibrary__See__index.3cad039d.async.js b/p__Paperlibrary__See__index.3ac60e67.async.js similarity index 68% rename from p__Paperlibrary__See__index.3cad039d.async.js rename to p__Paperlibrary__See__index.3ac60e67.async.js index 713c935295..6a7fe5b4a9 100644 --- a/p__Paperlibrary__See__index.3cad039d.async.js +++ b/p__Paperlibrary__See__index.3ac60e67.async.js @@ -1,4 +1,4 @@ -!(function(){var Rv=Object.defineProperty;var Om=Object.getOwnPropertySymbols;var _v=Object.prototype.hasOwnProperty,jv=Object.prototype.propertyIsEnumerable;var Sg=(nr,Zt,g)=>Zt in nr?Rv(nr,Zt,{enumerable:!0,configurable:!0,writable:!0,value:g}):nr[Zt]=g,Fg=(nr,Zt)=>{for(var g in Zt||(Zt={}))_v.call(Zt,g)&&Sg(nr,g,Zt[g]);if(Om)for(var g of Om(Zt))jv.call(Zt,g)&&Sg(nr,g,Zt[g]);return nr};var xa=(nr,Zt,g)=>Sg(nr,typeof Zt!="symbol"?Zt+"":Zt,g);(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},59477:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},40001:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},49198:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},73331:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},15277:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},52671:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},8657:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},56082:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},33853:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},15075:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},43531:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},47472:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},87395:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(54476),Se=g(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Be=M,te=g(7657),G=function(i,N){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:N,icon:Be}))},Z=Se.forwardRef(G),v=Z},71043:function(nr,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},89160:function(nr,Zt,g){"use strict";var s=g(59301),Se=Object.defineProperty,M=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,G=(L,i,N)=>i in L?Se(L,i,{enumerable:!0,configurable:!0,writable:!0,value:N}):L[i]=N,Z=(L,i)=>{for(var N in i||(i={}))Be.call(i,N)&&G(L,N,i[N]);if(M)for(var N of M(i))te.call(i,N)&&G(L,N,i[N]);return L};const v=L=>React.createElement("svg",Z({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},L),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Zt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},32981:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return O}});var s=g(7939),Se=g(59301),M=Object.defineProperty,Be=Object.defineProperties,te=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,L=(T,E,U)=>E in T?M(T,E,{enumerable:!0,configurable:!0,writable:!0,value:U}):T[E]=U,i=(T,E)=>{for(var U in E||(E={}))Z.call(E,U)&&L(T,U,E[U]);if(G)for(var U of G(E))v.call(E,U)&&L(T,U,E[U]);return T},N=(T,E)=>Be(T,te(E)),B=(T,E)=>{var U={};for(var F in T)Z.call(T,F)&&E.indexOf(F)<0&&(U[F]=T[F]);if(T!=null&&G)for(var F of G(T))E.indexOf(F)<0&&v.call(T,F)&&(U[F]=T[F]);return U},D=(T,E,U)=>new Promise((F,W)=>{var re=de=>{try{k(U.next(de))}catch(ue){W(ue)}},H=de=>{try{k(U.throw(de))}catch(ue){W(ue)}},k=de=>de.done?F(de.value):Promise.resolve(de.value).then(re,H);k((U=U.apply(T,E)).next())});const O=T=>{var E=T,{children:U}=E,F=B(E,["children"]);const[W,re]=(0,Se.useState)(!1);return Se.createElement(s.ZP,N(i({},F),{loading:W,onClick:H=>D(void 0,null,function*(){try{re(!0),yield F.onClick(H),re(!1)}catch(k){console.error(k),re(!1)}})}),U)}},28618:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(71043),M=g(48136),Be=g(34171),te=g(62957),G=g(59301);const Z=(0,s.forwardRef)(({callback:v,width:L,onChange:i,disabled:N,readOnly:B,type:D="",value:O="",style:T={}},E)=>{const U=(0,s.useRef)(),F=(0,s.useRef)(),[W,re]=(0,s.useState)(0),[H,k]=(0,s.useState)(0),[de,ue]=(0,s.useState)(!1),Fe=()=>{var J=document.createElement("div");J.innerHTML=U.current.getValue();var ye=J.innerText;return v&&v(ye),ye};(0,s.useImperativeHandle)(E,()=>({getData:Fe}));const me=J=>{J.preventDefault();const ye=J.clientX-W,p=J.clientY-H;document.body.onmousemove=j=>{let Xe=j.clientX-ye,ie=j.clientY-p;const he=document.getElementsByClassName("markdown-popup-form")[0],Ce=window.innerWidth-he.offsetWidth,ge=window.innerHeight-he.offsetHeight;Xe=Math.max(0,Math.min(Xe,Ce)),ie=Math.max(0,Math.min(ie,ge)),ve(j.clientX,j.clientY,ye,p)&&(re(Xe),k(ie))},document.body.onmouseup=function(){document.body.onmousemove=null}},ve=(J,ye,p,j)=>{const Xe=document.body.clientHeight,ie=document.body.clientWidth;return J<20&&p>J||J>ie-20&&pye||ye>Xe-20&&j{de&&setTimeout(()=>{const J=document.getElementsByClassName("markdown-popup-form")[0],ye=window.innerWidth/2-J.offsetWidth/2,p=window.innerHeight/2-J.offsetHeight/2;re(ye),k(p)},0)},[de]);const pe=()=>{N||B||ue(!0)};return G.createElement("div",{style:T},G.createElement("div",{style:{width:L||"100%",position:"relative"},className:`${Se.Z.mathFillWrap} ${N||B?"cursorDefault":""}`,onClick:()=>pe()},G.createElement("math-field",{disabled:N,locale:"zh_cn",class:`${Se.Z.mathField} ${D}`,readOnly:B,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:U,style:{width:"100%",fontSize:O?18:14},value:O||""})),G.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:W,top:H},title:G.createElement("div",{style:{cursor:"move"},onMouseDown:me},"\u8F93\u5165\u516C\u5F0F"),open:de,onOk:()=>{const J=F.current.getData();U.current.setValue(J),i(J),ue(!1)},onCancel:()=>{ue(!1)},destroyOnClose:!0,className:"markdown-popup-form"},G.createElement(Be.Z,{value:O,ref:F,onChange:i,showSaveButton:!1})))});Zt.Z=Z},34171:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(77019),M=g(5269),Be=g(31691),te=g(7939),G=g(67495),Z=g(71043),v=g(48136),L=g(59301);const i=(0,s.forwardRef)(({callback:N,showSaveButton:B,value:D=""},O)=>{const T=(0,s.useRef)(),E=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],U=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r +!(function(){var Rv=Object.defineProperty;var Om=Object.getOwnPropertySymbols;var _v=Object.prototype.hasOwnProperty,jv=Object.prototype.propertyIsEnumerable;var Sg=(nr,Zt,p)=>Zt in nr?Rv(nr,Zt,{enumerable:!0,configurable:!0,writable:!0,value:p}):nr[Zt]=p,Fg=(nr,Zt)=>{for(var p in Zt||(Zt={}))_v.call(Zt,p)&&Sg(nr,p,Zt[p]);if(Om)for(var p of Om(Zt))jv.call(Zt,p)&&Sg(nr,p,Zt[p]);return nr};var xa=(nr,Zt,p)=>Sg(nr,typeof Zt!="symbol"?Zt+"":Zt,p);(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},59477:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},40001:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},49198:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},73331:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},15277:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},52671:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},8657:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},56082:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},33853:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},15075:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},43531:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},47472:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},87395:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(54476),Se=p(59301),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},we=M,te=p(7657),$=function(i,L){return Se.createElement(te.Z,(0,s.Z)({},i,{ref:L,icon:we}))},Z=Se.forwardRef($),v=Z},71043:function(nr,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},89160:function(nr,Zt,p){"use strict";var s=p(59301),Se=Object.defineProperty,M=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,$=(N,i,L)=>i in N?Se(N,i,{enumerable:!0,configurable:!0,writable:!0,value:L}):N[i]=L,Z=(N,i)=>{for(var L in i||(i={}))we.call(i,L)&&$(N,L,i[L]);if(M)for(var L of M(i))te.call(i,L)&&$(N,L,i[L]);return N};const v=N=>React.createElement("svg",Z({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},N),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Zt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},32981:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return O}});var s=p(7939),Se=p(59301),M=Object.defineProperty,we=Object.defineProperties,te=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,N=(T,E,I)=>E in T?M(T,E,{enumerable:!0,configurable:!0,writable:!0,value:I}):T[E]=I,i=(T,E)=>{for(var I in E||(E={}))Z.call(E,I)&&N(T,I,E[I]);if($)for(var I of $(E))v.call(E,I)&&N(T,I,E[I]);return T},L=(T,E)=>we(T,te(E)),B=(T,E)=>{var I={};for(var U in T)Z.call(T,U)&&E.indexOf(U)<0&&(I[U]=T[U]);if(T!=null&&$)for(var U of $(T))E.indexOf(U)<0&&v.call(T,U)&&(I[U]=T[U]);return I},D=(T,E,I)=>new Promise((U,W)=>{var re=de=>{try{H(I.next(de))}catch(ce){W(ce)}},k=de=>{try{H(I.throw(de))}catch(ce){W(ce)}},H=de=>de.done?U(de.value):Promise.resolve(de.value).then(re,k);H((I=I.apply(T,E)).next())});const O=T=>{var E=T,{children:I}=E,U=B(E,["children"]);const[W,re]=(0,Se.useState)(!1);return Se.createElement(s.ZP,L(i({},U),{loading:W,onClick:k=>D(void 0,null,function*(){try{re(!0),yield U.onClick(k),re(!1)}catch(H){console.error(H),re(!1)}})}),I)}},28618:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(71043),M=p(48136),we=p(34171),te=p(62957),$=p(59301);const Z=(0,s.forwardRef)(({callback:v,width:N,onChange:i,disabled:L,readOnly:B,type:D="",value:O="",style:T={}},E)=>{const I=(0,s.useRef)(),U=(0,s.useRef)(),[W,re]=(0,s.useState)(0),[k,H]=(0,s.useState)(0),[de,ce]=(0,s.useState)(!1),Fe=()=>{var G=document.createElement("div");G.innerHTML=I.current.getValue();var ge=G.innerText;return v&&v(ge),ge};(0,s.useImperativeHandle)(E,()=>({getData:Fe}));const ve=G=>{G.preventDefault();const ge=G.clientX-W,g=G.clientY-k;document.body.onmousemove=j=>{let Ye=j.clientX-ge,oe=j.clientY-g;const he=document.getElementsByClassName("markdown-popup-form")[0],be=window.innerWidth-he.offsetWidth,me=window.innerHeight-he.offsetHeight;Ye=Math.max(0,Math.min(Ye,be)),oe=Math.max(0,Math.min(oe,me)),pe(j.clientX,j.clientY,ge,g)&&(re(Ye),H(oe))},document.body.onmouseup=function(){document.body.onmousemove=null}},pe=(G,ge,g,j)=>{const Ye=document.body.clientHeight,oe=document.body.clientWidth;return G<20&&g>G||G>oe-20&&gge||ge>Ye-20&&j{de&&setTimeout(()=>{const G=document.getElementsByClassName("markdown-popup-form")[0],ge=window.innerWidth/2-G.offsetWidth/2,g=window.innerHeight/2-G.offsetHeight/2;re(ge),H(g)},0)},[de]);const Ce=()=>{L||B||ce(!0)};return $.createElement("div",{style:T},$.createElement("div",{style:{width:N||"100%",position:"relative"},className:`${Se.Z.mathFillWrap} ${L||B?"cursorDefault":""}`,onClick:()=>Ce()},$.createElement("math-field",{disabled:L,locale:"zh_cn",class:`${Se.Z.mathField} ${D}`,readOnly:B,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:I,style:{width:"100%",fontSize:O?18:14},value:O||""})),$.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:W,top:k},title:$.createElement("div",{style:{cursor:"move"},onMouseDown:ve},"\u8F93\u5165\u516C\u5F0F"),open:de,onOk:()=>{const G=U.current.getData();I.current.setValue(G),i(G),ce(!1)},onCancel:()=>{ce(!1)},destroyOnClose:!0,className:"markdown-popup-form"},$.createElement(we.Z,{value:O,ref:U,onChange:i,showSaveButton:!1})))});Zt.Z=Z},34171:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(77019),M=p(5269),we=p(31691),te=p(7939),$=p(67495),Z=p(71043),v=p(48136),N=p(59301);const i=(0,s.forwardRef)(({callback:L,showSaveButton:B,value:D=""},O)=>{const T=(0,s.useRef)(),E=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],I=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r @@ -66,7 +66,7 @@ \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r -\\end{array}`}]}]}],F=H=>{T.current.setValue(T.current.getValue()+" "+H.value+" ")},W=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:L.createElement(Se.Z,{className:Z.Z.lists,gutter:[10,10]},E.map((H,k)=>L.createElement(M.Z,{flex:"110px",className:Z.Z.item},L.createElement("div",null,L.createElement(G.Z,{value:`$$${H.value}$$`}),H.name),L.createElement("div",{className:Z.Z.children},H.children.map((de,ue)=>L.createElement("div",{key:ue},L.createElement("h1",null,de.name),L.createElement(Se.Z,{gutter:[10,10]},de.data.map((Fe,me)=>L.createElement(M.Z,{key:me,onClick:()=>F(Fe),className:Z.Z.diamond},L.createElement(G.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:L.createElement(Se.Z,{className:Z.Z.lists,gutter:[10,10]},U.map((H,k)=>L.createElement(M.Z,{flex:"110px",className:Z.Z.item},L.createElement("div",null,L.createElement(G.Z,{value:"`$$"+H.value+"$$`"}),H.name),L.createElement("div",{className:Z.Z.children},H.children.map((de,ue)=>L.createElement("div",{key:ue},de.name&&L.createElement("h1",null,de.name),L.createElement(Se.Z,{gutter:[10,10]},de.data.map((Fe,me)=>L.createElement(M.Z,{key:me,onClick:()=>F(Fe),className:Z.Z.diamond},L.createElement(G.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))}],re=()=>{var H=document.createElement("div");H.innerHTML=T.current.getValue();var k=H.innerText;return N&&N(k),k};return(0,s.useImperativeHandle)(O,()=>({getData:re})),L.createElement("div",{className:Z.Z.mathWrap},L.createElement(Be.default,{defaultActiveKey:"1",items:W}),L.createElement("math-field",{locale:"zh_cn",className:Z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:T,style:{width:800,marginTop:30,fontSize:18}},D||""),B&&L.createElement("div",{className:Z.Z.button},L.createElement(te.ZP,{size:"large",onClick:re,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=i},28860:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(93314),M=g(7939),Be=Object.defineProperty,te=Object.defineProperties,G=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,i=(O,T,E)=>T in O?Be(O,T,{enumerable:!0,configurable:!0,writable:!0,value:E}):O[T]=E,N=(O,T)=>{for(var E in T||(T={}))v.call(T,E)&&i(O,E,T[E]);if(Z)for(var E of Z(T))L.call(T,E)&&i(O,E,T[E]);return O},B=(O,T)=>te(O,G(T));const D=({img:O,buttonProps:T={},styles:E={},customText:U,ButtonText:F,ButtonClick:W,Buttonclass:re,ButtonTwo:H,imgStyles:k,loading:de=!1,className:ue=""})=>s.createElement("section",{className:`tc animated fadeIn ${ue}`,style:N({color:"#999",margin:"100px auto",visibility:de?"hidden":"visible"},E)},s.createElement("img",{src:O||Se,style:B(N({},k),{pointerEvents:"none",userSelect:"none"})}),s.createElement("p",{className:"mt20 font14"},U||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),F&&s.createElement(M.ZP,N({className:re,onClick:W},T),F),H&&H);Zt.Z=D},44977:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return re}});var s=g(59301),Se={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},M=g(7939),Be=g(70557),te=g(86746),G=g(25399),Z=g(95203),v=g(34359),L=g(28860),i=g(51802),N=g(27120),B=g(59301),D=Object.defineProperty,O=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,U=(H,k,de)=>k in H?D(H,k,{enumerable:!0,configurable:!0,writable:!0,value:de}):H[k]=de,F=(H,k)=>{for(var de in k||(k={}))T.call(k,de)&&U(H,de,k[de]);if(O)for(var de of O(k))E.call(k,de)&&U(H,de,k[de]);return H},W=(H,k,de)=>new Promise((ue,Fe)=>{var me=J=>{try{pe(de.next(J))}catch(ye){Fe(ye)}},ve=J=>{try{pe(de.throw(J))}catch(ye){Fe(ye)}},pe=J=>J.done?ue(J.value):Promise.resolve(J.value).then(me,ve);pe((de=de.apply(H,k)).next())}),re=({editOffice:H="view",data:k,issaver:de,onSaver:ue,theme:Fe,type:me,filename:ve,monacoEditor:pe,className:J,style:ye,close:p,onClose:j,hasMask:Xe,disabledDownload:ie,onImgDimensions:he,showNodata:Ce,recordInfo:ge})=>{const[ae,Ae]=(0,s.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[nt,vt]=(0,s.useState)(""),[Ve,Nt]=(0,s.useState)(),yt=window.ENV==="build"?"/react/build":"",zt=location.host.startsWith("localhost")?i.Z.PROXY_SERVER:i.Z.API_SERVER,It=10*(1024*1024),ze=(0,s.useRef)();k!=null&&k.startsWith("/api")&&me!=="txt"&&(k=i.Z.API_SERVER+k);const Pt=h=>h.substring(h.lastIndexOf("/")+1).split(".").pop();ve&&pe&&(pe.filename=ve),(0,s.useEffect)(()=>{var h,C;const b=(C=(h=document.cookie)==null?void 0:h.replace(/\s/g,""))==null?void 0:C.split(";");b==null||b.map(K=>{let ee=K.split("=");ee[0]==="_educoder_session"&&vt(ee[1])})},[]),(0,s.useEffect)(()=>{me==="office"&&(k.indexOf("bigfilescdn.")>-1||k.indexOf("bigfiles1")>-1?Nt({url:k,fileType:Pt(k),model:k.indexOf("model=edit")?"edit":"view"}):k.indexOf("coze")>-1?Nt({url:k,fileType:"doc",model:"view"}):x())},[me,k]);function ct(h){return W(this,null,function*(){h.data.type==="pdfdata"&&(ue(h.data.data),window.removeEventListener("message",ct,!1)),console.log("mess---:",h.data)})}const x=()=>W(void 0,null,function*(){console.log("data:",k);let h=k;k.startsWith("http")||(h=location.origin+h);let C=new URL(h).pathname.split("/").pop();const b=yield(0,v.gJ)({attachment_id:C});b.url=zt+b.url,Nt(b)}),ke=()=>{if(k.startsWith("http")||k.startsWith("blob:")){P();return}(0,Z.Sv)(ve||"educoder",k,ve)},P=()=>{ge&&(0,N.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,Z.Nd)(ve||"educoder",decodeURIComponent(k))};(0,s.useEffect)(()=>(window.addEventListener("message",A),()=>{window.removeEventListener("message",A)}),[]);const A=h=>{var C;((C=h==null?void 0:h.data)==null?void 0:C.type)==="closePop"&&j()};return B.createElement("div",{style:F({},ye||{}),className:`${Xe&&Se.bgBlack} ${me?Se.wrp:"hide"}`},p&&B.createElement("div",{id:"closePop",className:Se.close,ref:ze},!!he&&B.createElement(G.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ze.current},B.createElement("span",{onClick:()=>{j(),he()}},B.createElement("i",{className:"icon-yulanpizhu"}))),!ie&&window.parent===window&&B.createElement(G.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ze.current},B.createElement("span",{onClick:P},B.createElement("i",{className:"icon-quxiaozhiding"}))),de&&B.createElement(G.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ze.current},B.createElement("span",{className:"",onClick:()=>{const h=document.getElementById("pdfiframe");window.addEventListener("message",ct,!1),setTimeout(()=>{h.contentWindow.postMessage("getData","*")},300)}},B.createElement("i",{className:"icon-baocun"}))),B.createElement(G.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ze.current},B.createElement("span",{className:"",onClick:()=>{j()}},B.createElement("i",{className:"icon-guanbi1"})))),B.createElement("div",{className:`${Se[J]} ${J} ${Se.monaco} ${me==="txt"?"show":"hide"}`},me==="txt"&&B.createElement(B.Fragment,null,B.createElement(te.ZP,F({},pe)))),me==="audio"&&B.createElement("audio",{src:`${(k==null?void 0:k.indexOf("http://"))>-1||(k==null?void 0:k.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${k}`,autoPlay:!0}),me==="video"&&B.createElement(B.Fragment,null,(k==null?void 0:k.indexOf("http"))>-1?B.createElement("video",{controls:!0,src:`${k}`,autoPlay:!0}):B.createElement("video",{controls:!0,src:`data:video/mp4;base64,${k}`,autoPlay:!0})),me==="office"&&Ve&&B.createElement("iframe",{src:`${yt}/office.html?key=${Ve.key}&url=${btoa(Ve.url)}&callbackUrl=${zt+(Ve.callbackUrl||"")}&fileType=${Ve.fileType}&title=${Ve.title||""}&model=${H}&officeServer=${i.Z.ONLYOFFICE}&disabledDownload=${!!ie}`}),me==="html"&&B.createElement("iframe",{src:k+"&disposition=inline"}),me==="pdf"&&B.createElement("iframe",{id:"pdfiframe",src:`${yt}/js/pdf/index.html?filename=${ve||"educoder.pdf"}&url=${encodeURIComponent(k)}&disabledDownload=${!!ie}&model=${H}`}),me==="image"&&B.createElement("img",{src:`${(k==null?void 0:k.indexOf("http://"))>-1||(k==null?void 0:k.indexOf("https://"))>-1?"":"data:image/png;base64,"}${k}`}),(me==="other"||me==="download")&&B.createElement(B.Fragment,null,Ce?B.createElement(L.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:B.createElement(M.ZP,{icon:B.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ke,disabled:ie},"\u4E0B\u8F7D")}):B.createElement(M.ZP,{type:"primary",size:"middle",onClick:ke,disabled:ie},B.createElement(Be.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),me==="flowChart"&&B.createElement("div",{className:"embed"},B.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${k||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},67495:function(nr,Zt,g){"use strict";g.d(Zt,{z:function(){return pe},Z:function(){return J}});var s=g(59301),Se=g(12103),M=g(77845),Be=g(64018),te=g(16471),G=g(51802),Z=g(95203),v=g(15342),L=g(44104),i=g(7939),N=g(1012),B=g(44977),D=g(59301),T=({html:ye})=>{const p=(0,s.useRef)(null),j=(0,s.useRef)(null),Xe=`.markdown-body p { +\\end{array}`}]}]}],U=k=>{T.current.setValue(T.current.getValue()+" "+k.value+" ")},W=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:N.createElement(Se.Z,{className:Z.Z.lists,gutter:[10,10]},E.map((k,H)=>N.createElement(M.Z,{flex:"110px",className:Z.Z.item},N.createElement("div",null,N.createElement($.Z,{value:`$$${k.value}$$`}),k.name),N.createElement("div",{className:Z.Z.children},k.children.map((de,ce)=>N.createElement("div",{key:ce},N.createElement("h1",null,de.name),N.createElement(Se.Z,{gutter:[10,10]},de.data.map((Fe,ve)=>N.createElement(M.Z,{key:ve,onClick:()=>U(Fe),className:Z.Z.diamond},N.createElement($.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:N.createElement(Se.Z,{className:Z.Z.lists,gutter:[10,10]},I.map((k,H)=>N.createElement(M.Z,{flex:"110px",className:Z.Z.item},N.createElement("div",null,N.createElement($.Z,{value:"`$$"+k.value+"$$`"}),k.name),N.createElement("div",{className:Z.Z.children},k.children.map((de,ce)=>N.createElement("div",{key:ce},de.name&&N.createElement("h1",null,de.name),N.createElement(Se.Z,{gutter:[10,10]},de.data.map((Fe,ve)=>N.createElement(M.Z,{key:ve,onClick:()=>U(Fe),className:Z.Z.diamond},N.createElement($.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))}],re=()=>{var k=document.createElement("div");k.innerHTML=T.current.getValue();var H=k.innerText;return L&&L(H),H};return(0,s.useImperativeHandle)(O,()=>({getData:re})),N.createElement("div",{className:Z.Z.mathWrap},N.createElement(we.default,{defaultActiveKey:"1",items:W}),N.createElement("math-field",{locale:"zh_cn",className:Z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:T,style:{width:800,marginTop:30,fontSize:18}},D||""),B&&N.createElement("div",{className:Z.Z.button},N.createElement(te.ZP,{size:"large",onClick:re,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=i},28860:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(93314),M=p(7939),we=Object.defineProperty,te=Object.defineProperties,$=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,i=(O,T,E)=>T in O?we(O,T,{enumerable:!0,configurable:!0,writable:!0,value:E}):O[T]=E,L=(O,T)=>{for(var E in T||(T={}))v.call(T,E)&&i(O,E,T[E]);if(Z)for(var E of Z(T))N.call(T,E)&&i(O,E,T[E]);return O},B=(O,T)=>te(O,$(T));const D=({img:O,buttonProps:T={},styles:E={},customText:I,ButtonText:U,ButtonClick:W,Buttonclass:re,ButtonTwo:k,imgStyles:H,loading:de=!1,className:ce=""})=>s.createElement("section",{className:`tc animated fadeIn ${ce}`,style:L({color:"#999",margin:"100px auto",visibility:de?"hidden":"visible"},E)},s.createElement("img",{src:O||Se,style:B(L({},H),{pointerEvents:"none",userSelect:"none"})}),s.createElement("p",{className:"mt20 font14"},I||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),U&&s.createElement(M.ZP,L({className:re,onClick:W},T),U),k&&k);Zt.Z=D},44977:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return re}});var s=p(59301),Se={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},M=p(7939),we=p(70557),te=p(86746),$=p(25399),Z=p(95203),v=p(34359),N=p(28860),i=p(51802),L=p(27120),B=p(59301),D=Object.defineProperty,O=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,I=(k,H,de)=>H in k?D(k,H,{enumerable:!0,configurable:!0,writable:!0,value:de}):k[H]=de,U=(k,H)=>{for(var de in H||(H={}))T.call(H,de)&&I(k,de,H[de]);if(O)for(var de of O(H))E.call(H,de)&&I(k,de,H[de]);return k},W=(k,H,de)=>new Promise((ce,Fe)=>{var ve=G=>{try{Ce(de.next(G))}catch(ge){Fe(ge)}},pe=G=>{try{Ce(de.throw(G))}catch(ge){Fe(ge)}},Ce=G=>G.done?ce(G.value):Promise.resolve(G.value).then(ve,pe);Ce((de=de.apply(k,H)).next())}),re=({editOffice:k="view",data:H,issaver:de,onSaver:ce,theme:Fe,type:ve,filename:pe,monacoEditor:Ce,className:G,style:ge,close:g,onClose:j,hasMask:Ye,disabledDownload:oe,onImgDimensions:he,showNodata:be,recordInfo:me})=>{const[ae,se]=(0,s.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Je,mt]=(0,s.useState)(""),[Me,Nt]=(0,s.useState)(),yt=window.ENV==="build"?"/react/build":"",zt=location.host.startsWith("localhost")?i.Z.PROXY_SERVER:i.Z.API_SERVER,It=10*(1024*1024),Ze=(0,s.useRef)();H!=null&&H.startsWith("/api")&&ve!=="txt"&&(H=i.Z.API_SERVER+H);const Pt=h=>h.substring(h.lastIndexOf("/")+1).split(".").pop();pe&&Ce&&(Ce.filename=pe),(0,s.useEffect)(()=>{var h,C;const b=(C=(h=document.cookie)==null?void 0:h.replace(/\s/g,""))==null?void 0:C.split(";");b==null||b.map(K=>{let ee=K.split("=");ee[0]==="_educoder_session"&&mt(ee[1])})},[]),(0,s.useEffect)(()=>{ve==="office"&&(H.indexOf("bigfilescdn.")>-1||H.indexOf("bigfiles1")>-1?Nt({url:H,fileType:Pt(H),model:H.indexOf("model=edit")?"edit":"view"}):H.indexOf("coze")>-1?Nt({url:H,fileType:"doc",model:"view"}):x())},[ve,H]);function ct(h){return W(this,null,function*(){h.data.type==="pdfdata"&&(ce(h.data.data),window.removeEventListener("message",ct,!1)),console.log("mess---:",h.data)})}const x=()=>W(void 0,null,function*(){console.log("data:",H);let h=H;H.startsWith("http")||(h=location.origin+h);let C=new URL(h).pathname.split("/").pop();const b=yield(0,v.gJ)({attachment_id:C});b.url=zt+b.url,Nt(b)}),Ke=()=>{if(H.startsWith("http")||H.startsWith("blob:")){P();return}(0,Z.Sv)(pe||"educoder",H,pe)},P=()=>{me&&(0,L.fc)({id:me==null?void 0:me.id,watch_type:1,course_id:me==null?void 0:me.course_id}),(0,Z.Nd)(pe||"educoder",decodeURIComponent(H))};(0,s.useEffect)(()=>(window.addEventListener("message",A),()=>{window.removeEventListener("message",A)}),[]);const A=h=>{var C;((C=h==null?void 0:h.data)==null?void 0:C.type)==="closePop"&&j()};return B.createElement("div",{style:U({},ge||{}),className:`${Ye&&Se.bgBlack} ${ve?Se.wrp:"hide"}`},g&&B.createElement("div",{id:"closePop",className:Se.close,ref:Ze},!!he&&B.createElement($.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ze.current},B.createElement("span",{onClick:()=>{j(),he()}},B.createElement("i",{className:"icon-yulanpizhu"}))),!oe&&window.parent===window&&B.createElement($.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ze.current},B.createElement("span",{onClick:P},B.createElement("i",{className:"icon-quxiaozhiding"}))),de&&B.createElement($.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ze.current},B.createElement("span",{className:"",onClick:()=>{const h=document.getElementById("pdfiframe");window.addEventListener("message",ct,!1),setTimeout(()=>{h.contentWindow.postMessage("getData","*")},300)}},B.createElement("i",{className:"icon-baocun"}))),B.createElement($.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ze.current},B.createElement("span",{className:"",onClick:()=>{j()}},B.createElement("i",{className:"icon-guanbi1"})))),B.createElement("div",{className:`${Se[G]} ${G} ${Se.monaco} ${ve==="txt"?"show":"hide"}`},ve==="txt"&&B.createElement(B.Fragment,null,B.createElement(te.ZP,U({},Ce)))),ve==="audio"&&B.createElement("audio",{src:`${(H==null?void 0:H.indexOf("http://"))>-1||(H==null?void 0:H.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${H}`,autoPlay:!0}),ve==="video"&&B.createElement(B.Fragment,null,(H==null?void 0:H.indexOf("http"))>-1?B.createElement("video",{controls:!0,src:`${H}`,autoPlay:!0}):B.createElement("video",{controls:!0,src:`data:video/mp4;base64,${H}`,autoPlay:!0})),ve==="office"&&Me&&B.createElement("iframe",{src:`${yt}/office.html?key=${Me.key}&url=${btoa(Me.url)}&callbackUrl=${zt+(Me.callbackUrl||"")}&fileType=${Me.fileType}&title=${Me.title||""}&model=${k}&officeServer=${i.Z.ONLYOFFICE}&disabledDownload=${!!oe}`}),ve==="html"&&B.createElement("iframe",{src:H+"&disposition=inline"}),ve==="pdf"&&B.createElement("iframe",{id:"pdfiframe",src:`${yt}/js/pdf/index.html?filename=${pe||"educoder.pdf"}&url=${encodeURIComponent(H)}&disabledDownload=${!!oe}&model=${k}`}),ve==="image"&&B.createElement("img",{src:`${(H==null?void 0:H.indexOf("http://"))>-1||(H==null?void 0:H.indexOf("https://"))>-1?"":"data:image/png;base64,"}${H}`}),(ve==="other"||ve==="download")&&B.createElement(B.Fragment,null,be?B.createElement(N.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:B.createElement(M.ZP,{icon:B.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ke,disabled:oe},"\u4E0B\u8F7D")}):B.createElement(M.ZP,{type:"primary",size:"middle",onClick:Ke,disabled:oe},B.createElement(we.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ve==="flowChart"&&B.createElement("div",{className:"embed"},B.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${H||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},67495:function(nr,Zt,p){"use strict";p.d(Zt,{z:function(){return Ce},Z:function(){return G}});var s=p(59301),Se=p(12103),M=p(77845),we=p(64018),te=p(16471),$=p(51802),Z=p(95203),v=p(15342),N=p(44104),i=p(7939),L=p(1012),B=p(44977),D=p(59301),T=({html:ge})=>{const g=(0,s.useRef)(null),j=(0,s.useRef)(null),Ye=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; @@ -913,9 +913,9 @@ .markdown-body pre { margin-top: 0; margin-bottom: 16px; - }`;return(0,s.useEffect)(()=>{const ie=p.current.attachShadow({mode:"open"});j.current=document.createElement("div"),j.current.className="markdown-body",j.current.innerHTML=ye,ie.appendChild(j.current);const he=document.createElement("style");return he.textContent=Xe,ie.appendChild(he),()=>{ie.innerHTML=""}},[]),(0,s.useEffect)(()=>{j.current&&(j.current.innerHTML=ye)},[ye]),D.createElement("div",{ref:p})};function E(ye){const p=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],j=new RegExp(`\\b(${p.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ye.replace(j,"").trim()}var U={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},F=Object.defineProperty,W=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,k=(ye,p,j)=>p in ye?F(ye,p,{enumerable:!0,configurable:!0,writable:!0,value:j}):ye[p]=j,de=(ye,p)=>{for(var j in p||(p={}))re.call(p,j)&&k(ye,j,p[j]);if(W)for(var j of W(p))H.call(p,j)&&k(ye,j,p[j]);return ye};const ue="@\u2581\u2581@",Fe="@\u2581@",me=/]*>/g;function ve(ye){let p=document.createElement("div");return p.innerHTML=ye,p.childNodes.length===0?"":p.childNodes[0].nodeValue}const pe=(ye,p)=>{ye=ye||"";const j=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ie=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,he=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return p?ye.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(j,(Ce,ge,ae,Ae,nt,vt,Ve)=>{const Nt=ge||Ae||vt,yt=ae||nt||Ve||"?";return G.Z.API_SERVER+"/api/attachments/"+Nt+yt+"&t="+(0,Z.Jn)(Nt,Date.now())+(Ce.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ye=ye.replace(he,(Ce,ge,ae,Ae,nt,vt,Ve)=>{const Nt=ge||Ae||vt,yt=ae||nt||Ve||"?";return G.Z.API_SERVER+"/attachments/download/"+Nt+yt+"&t="+(0,Z.Jn)(Nt,Date.now())+(Ce.indexOf(")")>-1?")":"&")}).replace(j,(Ce,ge,ae,Ae,nt,vt,Ve)=>{const Nt=ge||Ae||vt,yt=ae||nt||Ve||"?";return G.Z.API_SERVER+"/api/attachments/"+Nt+yt+"&t="+(0,Z.Jn)(Nt,Date.now())+(Ce.indexOf(")")>-1?")":"&")}).replace(Xe,(Ce,ge,ae,Ae,nt)=>{const vt=ge||Ae,Ve=ae||nt||"";return'"'+G.Z.API_SERVER+"/api/attachments/"+vt+Ve+vt+Ve+"&t="+(0,Z.Jn)(vt,Date.now())}).replace(ie,(Ce,ge,ae,Ae,nt)=>{const vt=ge||Ae,Ve=ae||nt||"";return"("+G.Z.API_SERVER+"/files/uploads/"+vt+Ve+vt+Ve+"&t="+(0,Z.Jn)(vt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`),ye)};var J=({value:ye="",edit:p=!1,className:j,showTextOnly:Xe,showLines:ie,style:he={},stylesPrev:Ce={},highlightKeywords:ge,showProgramFill:ae,isProgramFill:Ae,disabledFill:nt=!1,programFillValue:vt,openEditor:Ve=()=>{},onFillChange:Nt=je=>{},onFillBlur:yt=()=>{},onFillFocus:zt=()=>{}})=>{let je=E(String(ye||""));const It=(0,s.useRef)(),ze=(0,s.useRef)(),[Pt,ct]=(0,s.useState)(""),[x,ke]=(0,s.useState)("office"),[P,A]=(0,s.useState)([]),h=(0,s.useRef)("a"+(0,N.Z)()),C={},b=Ge=>//i.test(Ge||""),K=(Ge,Ut,St)=>{const Ie=document.createElement(Ge===Fe?"input":"textarea");Ie.style.width="100%",Ie.style.height=Ge===Fe?"40px":"151px",Ie.rows=5,Ie.spellcheck=!1,Ie.name="edu-program-fill",Ie.placeholder="\u8BF7\u8F93\u5165",Ie.dataset.id=Ut;const $e=Object.keys(C).length;return C[$e]=Ie,`${Ie.outerHTML}`};function ee(Ge){return Ge=Ge.replace(/!\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(/\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(new RegExp("","gs"),""),Ge=Ge.replace(//g,""),Ge=Ge.replace(//g,""),Ge=Ge.replace(new RegExp(".*?<\\/video>","gs"),""),Ge=Ge.replace(new RegExp(".*?<\\/audio>","gs"),""),Ge=Ge.replace(new RegExp(".*?<\\/style>","gs"),""),Ge=Ge.replace(new RegExp(".*?<\\/script>","gs"),""),Ge}const Ee=Ge=>!Xe&&b(je)?Ge:Ge.replace(/([\s\S]+?)<\/style>/gim,function(Ut,St){let Ie=St.replace(/(\n|\r)/g,"").split("}"),$e=[];return Ie.map(ut=>{ut!=""&&$e.push(`.${h.current} ${ut}`)}),``}),le=(0,s.useMemo)(()=>{try{const Ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,$e=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ut=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Qt=/\(\/attachments\/download\//g;je=je.replace(Qt,"("+G.Z.API_SERVER+"/attachments/download/").replace(Ie,"("+G.Z.API_SERVER+"/api/attachments/").replace($e,'"'+G.Z.API_SERVER+"/api/attachments/").replace(ut,'"'+G.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` -`),It.current.style.display="none"}catch(Ie){}if(ae){let Ie=-1;return je=je.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function($e,ut,Qt){var se;return++Ie,K($e,Ie,(se=vt==null?void 0:vt[Ie])==null?void 0:se.value.replaceAll("<","<").replaceAll(">",">"))}),`
      ${Ee(je||"")}
      `}let Ge=Ee(je);Ge=(0,M.ZP)(Ge);const Ut=(0,M.ez)();je.match(/\[TOC\]/)&&(Ge=Ge.replace("

      [TOC]

      ",(0,M.Qv)()),(0,M.Iy)()),Ge=Ge.replace(/(__special_katext_id_\d+__)/g,(Ie,$e)=>{const{type:ut,expression:Qt}=Ut[$e];return(0,v.renderToString)(ve(Qt)||"",{displayMode:ut==="block",throwOnError:!1,output:"html"})}),Ge=Ge.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,M.AL)();const St=document.createElement("div");if(St.innerHTML=Ge,Xe)return St.innerText;if(ge){const Ie=ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return oe(St,Ie),St.innerHTML}return setTimeout(()=>Te(),500),St.innerHTML},[je,ge]);(0,s.useEffect)(()=>{$.current&&$.current.querySelectorAll(["input","textarea"]).forEach(Ut=>{Ut.oninput=ce,Ut.onblur=Qe,Ut.onfocus=He})},[P]),(0,s.useEffect)(()=>{var Ge,Ut,St,Ie,$e;if(vt!=null&&vt.length)try{const ut=$.current.querySelectorAll(".edu-program-fill-score"),Qt=$.current.querySelectorAll('[name="edu-program-fill"]');for(const[se,Oe]of Qt.entries())Oe.value=((Ge=vt==null?void 0:vt[se])==null?void 0:Ge.value)||"",((Ut=vt==null?void 0:vt[se])==null?void 0:Ut.type)==="warning"?Oe.className="program-fill-warning":((St=vt==null?void 0:vt[se])==null?void 0:St.type)==="success"?Oe.className="program-fill-success":Oe.className="";for(const[se,Oe]of ut.entries())Oe.innerHTML=(Ie=vt==null?void 0:vt[se])!=null&&Ie.score?`${($e=vt==null?void 0:vt[se])==null?void 0:$e.score}\u5206`:"";A(vt)}catch(ut){console.log(ut,"error")}},[vt]);const ce=Ge=>{P[Ge.target.dataset.id]=P[Ge.target.dataset.id]||{},P[Ge.target.dataset.id].value=Ge.target.value,A([...P]),Nt(P,Ge.target.dataset.id)},Qe=Ge=>{P[Ge.target.dataset.id]=P[Ge.target.dataset.id]||{},P[Ge.target.dataset.id].value=Ge.target.value,A([...P]),yt(P,Ge.target.dataset.id)},He=Ge=>{P[Ge.target.dataset.id]=P[Ge.target.dataset.id]||{},P[Ge.target.dataset.id].value=Ge.target.value,A([...P]),zt(P,Ge.target.dataset.id)};function oe(Ge,Ut){return Ge.childNodes.forEach(St=>{var Ie;if(St.childNodes.length>0)oe(St,Ut);else if(St.nodeName!=="IMG")if(St.innerHTML)St.innerHTML=(Ie=St.innerHTML)==null?void 0:Ie.replace(new RegExp(Ut,"gi"),'$&');else{const $e=document.createElement("span");$e.innerHTML=St.textContent.replace(new RegExp(Ut,"gi"),'$&'),St.replaceWith($e)}})}const $=(0,s.useRef)();M.jb.WebkitLineClamp=ie,ie&&(he=de(de({},he),M.jb));function et(Ge){let Ut=Ge.target;if(Ut.tagName.toUpperCase()==="A"){let St=Ut.getAttribute("href");if(St.indexOf("office")>-1)Ge.preventDefault(),ct(St),ke("office");else if(St.indexOf("application/pdf")>-1)Ge.preventDefault(),ct(St),ke("pdf");else if(St.indexOf("text/html")>-1)Ge.preventDefault(),ct(St),ke("html");else if(St.startsWith("#")){Ge.preventDefault();let Ie=document.getElementById(St.replace("#",""));Ie&&Ie.scrollIntoView(!0)}}}const Te=()=>{var Ge;const Ut=(Ge=$.current)==null?void 0:Ge.querySelectorAll("video");Ut==null||Ut.forEach(St=>{if(St.oncontextmenu=()=>!1,St.src.indexOf(".m3u8")>-1&&!St.canPlayType("application/vnd.apple.mpegurl")){if(te.ZP.isSupported()){var Ie=new te.ZP;Ie.loadSource(St.src),Ie.attachMedia(St)}}})};(0,s.useEffect)(()=>{if($.current&&le&&le.match(me)&&window.PR.prettyPrint(),$.current)return $.current.addEventListener("click",et),()=>{var Ge;(Ge=$.current)==null||Ge.removeEventListener("click",et),(0,M.AL)(),(0,M.Iy)()}},[le,$.current,et]);const Et=Ge=>{Ge.target.nodeName==="IMG"&&Ge.target.className.indexOf("draw-flowchart")>-1?(It.current.style.zIndex=1,It.current.style.display="flex",It.current.style.width=Ge.target.clientWidth+"px",It.current.style.height=Ge.target.clientHeight+"px",It.current.style.top=Ge.target.offsetTop+"px",It.current.style.left=Ge.target.offsetLeft+"px",Ge.target.id&&(ze.current=Ge.target.id)):It.current.style.display="none"},at=()=>{It.current.style.display="none"};return(0,s.useEffect)(()=>{var Ge;const Ut=St=>{St.preventDefault(),St.clipboardData.setData("text",window.getSelection().toString())};return(Ge=$.current)==null||Ge.addEventListener("copy",Ut),()=>{var St;(St=$.current)==null||St.removeEventListener("copy",Ut)}},[$.current]),s.createElement("div",{style:{position:"relative"},onMouseLeave:at},Xe&&s.createElement("div",{ref:$,className:`${U.mdBody} `},le),!Xe&&!b(le)&&s.createElement("div",{ref:$,style:de({},he),onMouseOver:Et,className:`${j||""} ${nt?"disabled-fill":""} markdown-body ${U.mdBody} ${h.current}`,dangerouslySetInnerHTML:{__html:le}}),!Xe&&b(le)&&s.createElement(T,{html:le}),s.createElement("div",{ref:It,className:`${U.button} ${p?"":U.previewFlowChart}`},s.createElement(L.Z,null,s.createElement(i.ZP,{onClick:()=>{p?Ve(ze.current):(ct(ze.current),ke("flowChart"))}},p?"\u7F16\u8F91":"\u9884\u89C8"))),s.createElement(B.Z,{close:!0,data:Pt,type:Pt!=null&&Pt.length?x:"",style:de({},Ce),onClose:()=>ct("")}))}},18612:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(59301),Se={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},M=g(62957),Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",G=(L,i,N)=>new Promise((B,D)=>{var O=U=>{try{E(N.next(U))}catch(F){D(F)}},T=U=>{try{E(N.throw(U))}catch(F){D(F)}},E=U=>U.done?B(U.value):Promise.resolve(U.value).then(O,T);E((N=N.apply(L,i)).next())}),v=({type:L,resdata:i,onok:N,oktext:B,okloading:D})=>{const[O,T]=(0,s.useState)(!1),{can_copy_list:E,can_copy_num:U,challenge_type:F,course_data_list:W,no_copy_list:re,no_copy_num:H,no_use_list:k,no_use_num:de,repeat_shixun_num:ue,student_count:Fe,total_num:me,use_num:ve}=i;let pe=U>0||L==="exercise";(0,s.useEffect)(()=>{(i==null?void 0:i.student_count)>0&&T(!0)},[i]),console.log("---11",D),(0,s.useEffect)(()=>{D||T(!1)},[D]);const J=()=>{if(L==="exercise"&&F===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(L==="exercise"&&F===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(L==="shixun"&&F===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(L==="shixun"&&F===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(L==="subject"&&F===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(L==="subject"&&F===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",s.createElement("span",{className:Se.orangeColor},Fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",s.createElement("span",{className:Se.orangeColor},ve)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(L==="exercisepush")return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(L==="shixunpush"&&F===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(L==="shixunpush"&&F===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",s.createElement("span",{className:Se.orangeColor},ve),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ye=()=>{if(L==="exercise"||L==="subject"||L==="exercisepush"||L==="shixunpush")return s.createElement("div",{style:{marginTop:20}},H>0&&s.createElement("div",null,s.createElement("span",{className:Se.flex},s.createElement("img",{src:te,style:{width:14}}),s.createElement("span",{className:Se.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),s.createElement("div",{className:Se.statusbody},L==="exercise"&&s.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(L==="subject"||L==="exercisepush")&&s.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe&&s.createElement("span",{className:Se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),L==="shixunpush"&&s.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe&&s.createElement("span",{className:Se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),s.createElement("div",null,re==null?void 0:re.map((p,j)=>s.createElement("a",{href:`/shixuns/${p.identifier}/challenges`,target:"_blank"},"\u300A",p==null?void 0:p.name,"\u300B",j+1!==H&&"\u3001"))))),U>0&&s.createElement("div",{style:{marginTop:20}},s.createElement("span",{className:Se.flex},s.createElement("img",{src:Be,style:{width:14}}),s.createElement("span",{className:Se.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),s.createElement("div",{className:Se.statusbody},L==="exercise"&&s.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(L==="subject"||L==="exercisepush")&&s.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),L==="shixunpush"&&s.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),s.createElement("div",null,E==null?void 0:E.map((p,j)=>s.createElement("a",{href:`/shixuns/${p.identifier}/challenges`,target:"_blank"},"\u300A",p==null?void 0:p.name,"\u300B",j+1!==U&&"\u3001"))))));if(L==="shixun")return s.createElement("div",{style:{marginTop:20}},U>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return s.createElement(M.default,{open:O,onCancel:()=>{T(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!pe&&"none"}},zIndex:1003,confirmLoading:D,okText:pe?B:"\u6211\u77E5\u9053\u4E86",onOk:()=>G(void 0,null,function*(){pe?yield N([...E,...k]):T(!1)})},s.createElement("div",{style:{maxHeight:600,overflow:"auto"}},J(),ye()))}},37428:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return U}});var s=g(59301),Se=g(88634),M=g(62957),Be=g(89787),te=g(7939),G={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},Z=g(70892),v=g(66649),L=g.n(v),i=g(59301),N=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,O=(F,W)=>{var re={};for(var H in F)B.call(F,H)&&W.indexOf(H)<0&&(re[H]=F[H]);if(F!=null&&N)for(var H of N(F))W.indexOf(H)<0&&D.call(F,H)&&(re[H]=F[H]);return re},T=(F,W,re)=>new Promise((H,k)=>{var de=me=>{try{Fe(re.next(me))}catch(ve){k(ve)}},ue=me=>{try{Fe(re.throw(me))}catch(ve){k(ve)}},Fe=me=>me.done?H(me.value):Promise.resolve(me.value).then(de,ue);Fe((re=re.apply(F,W)).next())});const E=F=>{var W=F,{shixunsDetail:re,globalSetting:H,loading:k,dispatch:de,showModal:ue,onCancel:Fe,onOk:me,okBtnName:ve="\u5B8C\u6210",info:pe,source:J}=W,ye=O(W,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[p,j]=(0,s.useState)(0),[Xe,ie]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let he=null;const Ce=()=>T(void 0,null,function*(){let ge={id:pe==null?void 0:pe.courseId,send_time:L()().format("YYYY-MM-DD HH:mm"),exercise_id:pe!=null&&pe.exercise_id?pe==null?void 0:pe.exercise_id:null},ae={id:pe==null?void 0:pe.courseId,course_id:pe==null?void 0:pe.courseId,identifier:pe==null?void 0:pe.courseId,type:"normal",is_use:1,is_copy:!0};J==="\u8BD5\u5377"?(ge.examination_bank_ids=pe==null?void 0:pe.examination_bank_ids,ge.type="ExaminationBank"):J==="\u5B9E\u8BAD"?ge.shixun_info=(pe==null?void 0:pe.shixun_info.length)>0?pe==null?void 0:pe.shixun_info:[ae]:J==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(ge.examination_bank_ids=pe==null?void 0:pe.examination_bank_ids,ge.shixun_info=(pe==null?void 0:pe.shixun_info.length)>0?pe==null?void 0:pe.shixun_info:[ae]);const Ae=yield(0,Z.ZP)(`/api/courses/${pe==null?void 0:pe.courseId}/send_shixun_progress.json`,{method:"post",body:ge});(Ae==null?void 0:Ae.status)===0&&(j(Ae==null?void 0:Ae.complete_num),ie(Ae==null?void 0:Ae.total_num),(Ae==null?void 0:Ae.complete_num)!==(Ae==null?void 0:Ae.total_num)?(he&&clearInterval(he),he=setInterval(Ce,5e3)):he&&clearInterval(he))});return ue&&(pe!=null&&pe.courseId)&&Ce(),()=>{he&&clearInterval(he)}},[ue]),i.createElement(M.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:p==Xe,open:ue,destroyOnClose:!0,footer:null,onCancel:Fe},i.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",i.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},Xe),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),i.createElement("div",{className:G.con_warp},i.createElement(Be.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:p==Xe&&Xe!=0?100:p/Xe*100,showInfo:!1,size:[350,10]}),i.createElement("div",{className:G.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",i.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},p),"\u4E2A"),p!=Xe&&i.createElement(te.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),p==Xe&&i.createElement(te.ZP,{type:"primary",onClick:me},ve)))};var U=(0,Se.connect)(({shixunsDetail:F,loading:W,globalSetting:re})=>({shixunsDetail:F,globalSetting:re,loading:W.models.index}))(E)},43786:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(62957),M=g(70858);const Be=({dataSource:te,visible:G,onClose:Z=()=>{},onSuccess:v=()=>{},text:L,okText:i})=>{var N;return s.createElement(Se.default,{centered:!0,destroyOnClose:!0,open:!!G,title:"\u63D0\u793A",width:"600px",okText:i,cancelText:"\u53D6\u6D88",onCancel:Z,onOk:v},G==="single"&&s.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",s.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(N=te==null?void 0:te[0])==null?void 0:N.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",L),G==="multiple"&&s.createElement(s.Fragment,null,s.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",L),s.createElement(M.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:te,scroll:(te==null?void 0:te.length)>7?{y:300}:{},pagination:!1})))};Zt.Z=Be},86746:function(nr,Zt,g){"use strict";g.d(Zt,{SV:function(){return It},ZP:function(){return je}});var s=g(59301),Se=g(76374);const M={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Be={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` + }`;return(0,s.useEffect)(()=>{const oe=g.current.attachShadow({mode:"open"});j.current=document.createElement("div"),j.current.className="markdown-body",j.current.innerHTML=ge,oe.appendChild(j.current);const he=document.createElement("style");return he.textContent=Ye,oe.appendChild(he),()=>{oe.innerHTML=""}},[]),(0,s.useEffect)(()=>{j.current&&(j.current.innerHTML=ge)},[ge]),D.createElement("div",{ref:g})};function E(ge){const g=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],j=new RegExp(`\\b(${g.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ge.replace(j,"").trim()}var I={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},U=Object.defineProperty,W=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,H=(ge,g,j)=>g in ge?U(ge,g,{enumerable:!0,configurable:!0,writable:!0,value:j}):ge[g]=j,de=(ge,g)=>{for(var j in g||(g={}))re.call(g,j)&&H(ge,j,g[j]);if(W)for(var j of W(g))k.call(g,j)&&H(ge,j,g[j]);return ge};const ce="@\u2581\u2581@",Fe="@\u2581@",ve=/]*>/g;function pe(ge){let g=document.createElement("div");return g.innerHTML=ge,g.childNodes.length===0?"":g.childNodes[0].nodeValue}const Ce=(ge,g)=>{ge=ge||"";const j=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,oe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,he=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return g?ge.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(j,(be,me,ae,se,Je,mt,Me)=>{const Nt=me||se||mt,yt=ae||Je||Me||"?";return $.Z.API_SERVER+"/api/attachments/"+Nt+yt+"&t="+(0,Z.Jn)(Nt,Date.now())+(be.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ge=ge.replace(he,(be,me,ae,se,Je,mt,Me)=>{const Nt=me||se||mt,yt=ae||Je||Me||"?";return $.Z.API_SERVER+"/attachments/download/"+Nt+yt+"&t="+(0,Z.Jn)(Nt,Date.now())+(be.indexOf(")")>-1?")":"&")}).replace(j,(be,me,ae,se,Je,mt,Me)=>{const Nt=me||se||mt,yt=ae||Je||Me||"?";return $.Z.API_SERVER+"/api/attachments/"+Nt+yt+"&t="+(0,Z.Jn)(Nt,Date.now())+(be.indexOf(")")>-1?")":"&")}).replace(Ye,(be,me,ae,se,Je)=>{const mt=me||se,Me=ae||Je||"";return'"'+$.Z.API_SERVER+"/api/attachments/"+mt+Me+mt+Me+"&t="+(0,Z.Jn)(mt,Date.now())}).replace(oe,(be,me,ae,se,Je)=>{const mt=me||se,Me=ae||Je||"";return"("+$.Z.API_SERVER+"/files/uploads/"+mt+Me+mt+Me+"&t="+(0,Z.Jn)(mt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`),ge)};var G=({value:ge="",edit:g=!1,className:j,showTextOnly:Ye,showLines:oe,style:he={},stylesPrev:be={},highlightKeywords:me,showProgramFill:ae,isProgramFill:se,disabledFill:Je=!1,programFillValue:mt,openEditor:Me=()=>{},onFillChange:Nt=je=>{},onFillBlur:yt=()=>{},onFillFocus:zt=()=>{}})=>{let je=E(String(ge||""));const It=(0,s.useRef)(),Ze=(0,s.useRef)(),[Pt,ct]=(0,s.useState)(""),[x,Ke]=(0,s.useState)("office"),[P,A]=(0,s.useState)([]),h=(0,s.useRef)("a"+(0,L.Z)()),C={},b=Ge=>//i.test(Ge||""),K=(Ge,Ut,St)=>{const Ie=document.createElement(Ge===Fe?"input":"textarea");Ie.style.width="100%",Ie.style.height=Ge===Fe?"40px":"151px",Ie.rows=5,Ie.spellcheck=!1,Ie.name="edu-program-fill",Ie.placeholder="\u8BF7\u8F93\u5165",Ie.dataset.id=Ut;const $e=Object.keys(C).length;return C[$e]=Ie,`${Ie.outerHTML}`};function ee(Ge){return Ge=Ge.replace(/!\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(/\[.*?\]\(.*?\)/g,""),Ge=Ge.replace(new RegExp("","gs"),""),Ge=Ge.replace(//g,""),Ge=Ge.replace(//g,""),Ge=Ge.replace(new RegExp(".*?<\\/video>","gs"),""),Ge=Ge.replace(new RegExp(".*?<\\/audio>","gs"),""),Ge=Ge.replace(new RegExp(".*?<\\/style>","gs"),""),Ge=Ge.replace(new RegExp(".*?<\\/script>","gs"),""),Ge}const Ee=Ge=>!Ye&&b(je)?Ge:Ge.replace(/([\s\S]+?)<\/style>/gim,function(Ut,St){let Ie=St.replace(/(\n|\r)/g,"").split("}"),$e=[];return Ie.map(ut=>{ut!=""&&$e.push(`.${h.current} ${ut}`)}),``}),le=(0,s.useMemo)(()=>{try{const Ie=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,$e=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ut=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Qt=/\(\/attachments\/download\//g;je=je.replace(Qt,"("+$.Z.API_SERVER+"/attachments/download/").replace(Ie,"("+$.Z.API_SERVER+"/api/attachments/").replace($e,'"'+$.Z.API_SERVER+"/api/attachments/").replace(ut,'"'+$.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` +`),It.current.style.display="none"}catch(Ie){}if(ae){let Ie=-1;return je=je.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function($e,ut,Qt){var Ae;return++Ie,K($e,Ie,(Ae=mt==null?void 0:mt[Ie])==null?void 0:Ae.value.replaceAll("<","<").replaceAll(">",">"))}),`
      ${Ee(je||"")}
      `}let Ge=Ee(je);Ge=(0,M.ZP)(Ge);const Ut=(0,M.ez)();je.match(/\[TOC\]/)&&(Ge=Ge.replace("

      [TOC]

      ",(0,M.Qv)()),(0,M.Iy)()),Ge=Ge.replace(/(__special_katext_id_\d+__)/g,(Ie,$e)=>{const{type:ut,expression:Qt}=Ut[$e];return(0,v.renderToString)(pe(Qt)||"",{displayMode:ut==="block",throwOnError:!1,output:"html"})}),Ge=Ge.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,M.AL)();const St=document.createElement("div");if(St.innerHTML=Ge,Ye)return St.innerText;if(me){const Ie=me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ie(St,Ie),St.innerHTML}return setTimeout(()=>Te(),500),St.innerHTML},[je,me]);(0,s.useEffect)(()=>{X.current&&X.current.querySelectorAll(["input","textarea"]).forEach(Ut=>{Ut.oninput=ue,Ut.onblur=Qe,Ut.onfocus=ke})},[P]),(0,s.useEffect)(()=>{var Ge,Ut,St,Ie,$e;if(mt!=null&&mt.length)try{const ut=X.current.querySelectorAll(".edu-program-fill-score"),Qt=X.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ae,Oe]of Qt.entries())Oe.value=((Ge=mt==null?void 0:mt[Ae])==null?void 0:Ge.value)||"",((Ut=mt==null?void 0:mt[Ae])==null?void 0:Ut.type)==="warning"?Oe.className="program-fill-warning":((St=mt==null?void 0:mt[Ae])==null?void 0:St.type)==="success"?Oe.className="program-fill-success":Oe.className="";for(const[Ae,Oe]of ut.entries())Oe.innerHTML=(Ie=mt==null?void 0:mt[Ae])!=null&&Ie.score?`${($e=mt==null?void 0:mt[Ae])==null?void 0:$e.score}\u5206`:"";A(mt)}catch(ut){console.log(ut,"error")}},[mt]);const ue=Ge=>{P[Ge.target.dataset.id]=P[Ge.target.dataset.id]||{},P[Ge.target.dataset.id].value=Ge.target.value,A([...P]),Nt(P,Ge.target.dataset.id)},Qe=Ge=>{P[Ge.target.dataset.id]=P[Ge.target.dataset.id]||{},P[Ge.target.dataset.id].value=Ge.target.value,A([...P]),yt(P,Ge.target.dataset.id)},ke=Ge=>{P[Ge.target.dataset.id]=P[Ge.target.dataset.id]||{},P[Ge.target.dataset.id].value=Ge.target.value,A([...P]),zt(P,Ge.target.dataset.id)};function ie(Ge,Ut){return Ge.childNodes.forEach(St=>{var Ie;if(St.childNodes.length>0)ie(St,Ut);else if(St.nodeName!=="IMG")if(St.innerHTML)St.innerHTML=(Ie=St.innerHTML)==null?void 0:Ie.replace(new RegExp(Ut,"gi"),'$&');else{const $e=document.createElement("span");$e.innerHTML=St.textContent.replace(new RegExp(Ut,"gi"),'$&'),St.replaceWith($e)}})}const X=(0,s.useRef)();M.jb.WebkitLineClamp=oe,oe&&(he=de(de({},he),M.jb));function tt(Ge){let Ut=Ge.target;if(Ut.tagName.toUpperCase()==="A"){let St=Ut.getAttribute("href");if(St.indexOf("office")>-1)Ge.preventDefault(),ct(St),Ke("office");else if(St.indexOf("application/pdf")>-1)Ge.preventDefault(),ct(St),Ke("pdf");else if(St.indexOf("text/html")>-1)Ge.preventDefault(),ct(St),Ke("html");else if(St.startsWith("#")){Ge.preventDefault();let Ie=document.getElementById(St.replace("#",""));Ie&&Ie.scrollIntoView(!0)}}}const Te=()=>{var Ge;const Ut=(Ge=X.current)==null?void 0:Ge.querySelectorAll("video");Ut==null||Ut.forEach(St=>{if(St.oncontextmenu=()=>!1,St.src.indexOf(".m3u8")>-1&&!St.canPlayType("application/vnd.apple.mpegurl")){if(te.ZP.isSupported()){var Ie=new te.ZP;Ie.loadSource(St.src),Ie.attachMedia(St)}}})};(0,s.useEffect)(()=>{if(X.current&&le&&le.match(ve)&&window.PR.prettyPrint(),X.current)return X.current.addEventListener("click",tt),()=>{var Ge;(Ge=X.current)==null||Ge.removeEventListener("click",tt),(0,M.AL)(),(0,M.Iy)()}},[le,X.current,tt]);const Et=Ge=>{Ge.target.nodeName==="IMG"&&Ge.target.className.indexOf("draw-flowchart")>-1?(It.current.style.zIndex=1,It.current.style.display="flex",It.current.style.width=Ge.target.clientWidth+"px",It.current.style.height=Ge.target.clientHeight+"px",It.current.style.top=Ge.target.offsetTop+"px",It.current.style.left=Ge.target.offsetLeft+"px",Ge.target.id&&(Ze.current=Ge.target.id)):It.current.style.display="none"},at=()=>{It.current.style.display="none"};return(0,s.useEffect)(()=>{var Ge;const Ut=St=>{St.preventDefault(),St.clipboardData.setData("text",window.getSelection().toString())};return(Ge=X.current)==null||Ge.addEventListener("copy",Ut),()=>{var St;(St=X.current)==null||St.removeEventListener("copy",Ut)}},[X.current]),s.createElement("div",{style:{position:"relative"},onMouseLeave:at},Ye&&s.createElement("div",{ref:X,className:`${I.mdBody} `},le),!Ye&&!b(le)&&s.createElement("div",{ref:X,style:de({},he),onMouseOver:Et,className:`${j||""} ${Je?"disabled-fill":""} markdown-body ${I.mdBody} ${h.current}`,dangerouslySetInnerHTML:{__html:le}}),!Ye&&b(le)&&s.createElement(T,{html:le}),s.createElement("div",{ref:It,className:`${I.button} ${g?"":I.previewFlowChart}`},s.createElement(N.Z,null,s.createElement(i.ZP,{onClick:()=>{g?Me(Ze.current):(ct(Ze.current),Ke("flowChart"))}},g?"\u7F16\u8F91":"\u9884\u89C8"))),s.createElement(B.Z,{close:!0,data:Pt,type:Pt!=null&&Pt.length?x:"",style:de({},be),onClose:()=>ct("")}))}},18612:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(59301),Se={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},M=p(62957),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",$=(N,i,L)=>new Promise((B,D)=>{var O=I=>{try{E(L.next(I))}catch(U){D(U)}},T=I=>{try{E(L.throw(I))}catch(U){D(U)}},E=I=>I.done?B(I.value):Promise.resolve(I.value).then(O,T);E((L=L.apply(N,i)).next())}),v=({type:N,resdata:i,onok:L,oktext:B,okloading:D})=>{const[O,T]=(0,s.useState)(!1),{can_copy_list:E,can_copy_num:I,challenge_type:U,course_data_list:W,no_copy_list:re,no_copy_num:k,no_use_list:H,no_use_num:de,repeat_shixun_num:ce,student_count:Fe,total_num:ve,use_num:pe}=i;let Ce=I>0||N==="exercise";(0,s.useEffect)(()=>{(i==null?void 0:i.student_count)>0&&T(!0)},[i]),console.log("---11",D),(0,s.useEffect)(()=>{D||T(!1)},[D]);const G=()=>{if(N==="exercise"&&U===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},pe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(N==="exercise"&&U===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},pe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(N==="shixun"&&U===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(N==="shixun"&&U===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(N==="subject"&&U===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},pe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(N==="subject"&&U===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",s.createElement("span",{className:Se.orangeColor},Fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",s.createElement("span",{className:Se.orangeColor},pe)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(N==="exercisepush")return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},pe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(N==="shixunpush"&&U===1)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",s.createElement("span",{className:Se.orangeColor},pe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(N==="shixunpush"&&U===2)return s.createElement(s.Fragment,null,"\u8BFE\u5802\u5185\u6709",s.createElement("span",{className:Se.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",s.createElement("span",{className:Se.orangeColor},pe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",s.createElement("span",{className:Se.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ge=()=>{if(N==="exercise"||N==="subject"||N==="exercisepush"||N==="shixunpush")return s.createElement("div",{style:{marginTop:20}},k>0&&s.createElement("div",null,s.createElement("span",{className:Se.flex},s.createElement("img",{src:te,style:{width:14}}),s.createElement("span",{className:Se.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),s.createElement("div",{className:Se.statusbody},N==="exercise"&&s.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",s.createElement("span",{className:Se.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(N==="subject"||N==="exercisepush")&&s.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ce&&s.createElement("span",{className:Se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),N==="shixunpush"&&s.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ce&&s.createElement("span",{className:Se.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),s.createElement("div",null,re==null?void 0:re.map((g,j)=>s.createElement("a",{href:`/shixuns/${g.identifier}/challenges`,target:"_blank"},"\u300A",g==null?void 0:g.name,"\u300B",j+1!==k&&"\u3001"))))),I>0&&s.createElement("div",{style:{marginTop:20}},s.createElement("span",{className:Se.flex},s.createElement("img",{src:we,style:{width:14}}),s.createElement("span",{className:Se.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),s.createElement("div",{className:Se.statusbody},N==="exercise"&&s.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(N==="subject"||N==="exercisepush")&&s.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),N==="shixunpush"&&s.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),s.createElement("div",null,E==null?void 0:E.map((g,j)=>s.createElement("a",{href:`/shixuns/${g.identifier}/challenges`,target:"_blank"},"\u300A",g==null?void 0:g.name,"\u300B",j+1!==I&&"\u3001"))))));if(N==="shixun")return s.createElement("div",{style:{marginTop:20}},I>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return s.createElement(M.default,{open:O,onCancel:()=>{T(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ce&&"none"}},zIndex:1003,confirmLoading:D,okText:Ce?B:"\u6211\u77E5\u9053\u4E86",onOk:()=>$(void 0,null,function*(){Ce?yield L([...E,...H]):T(!1)})},s.createElement("div",{style:{maxHeight:600,overflow:"auto"}},G(),ge()))}},37428:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return U}});var s=p(59301),Se=p(88634),M=p(62957),we=p(89787),te=p(7939),$={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},Z=p(70892),v=p(66649),N=p.n(v),i=p(89392),L=p(59301),B=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(W,re)=>{var k={};for(var H in W)D.call(W,H)&&re.indexOf(H)<0&&(k[H]=W[H]);if(W!=null&&B)for(var H of B(W))re.indexOf(H)<0&&O.call(W,H)&&(k[H]=W[H]);return k},E=(W,re,k)=>new Promise((H,de)=>{var ce=pe=>{try{ve(k.next(pe))}catch(Ce){de(Ce)}},Fe=pe=>{try{ve(k.throw(pe))}catch(Ce){de(Ce)}},ve=pe=>pe.done?H(pe.value):Promise.resolve(pe.value).then(ce,Fe);ve((k=k.apply(W,re)).next())});const I=W=>{var re=W,{shixunsDetail:k,globalSetting:H,loading:de,dispatch:ce,showModal:Fe,onCancel:ve,onOk:pe,okBtnName:Ce="\u5B8C\u6210",info:G,source:ge}=re,g=T(re,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[j,Ye]=(0,s.useState)(0),[oe,he]=(0,s.useState)(0);return(0,s.useEffect)(()=>{var be,me;let ae=null;const se=()=>E(void 0,null,function*(){let Je={id:G==null?void 0:G.courseId,send_time:N()().format("YYYY-MM-DD HH:mm"),exercise_id:G!=null&&G.exercise_id?G==null?void 0:G.exercise_id:null},mt={id:G==null?void 0:G.courseId,course_id:G==null?void 0:G.courseId,identifier:G==null?void 0:G.courseId,type:"normal",is_use:1,is_copy:!0};ge==="\u8BD5\u5377"?(Je.examination_bank_ids=G==null?void 0:G.examination_bank_ids,Je.type="ExaminationBank"):ge==="\u5B9E\u8BAD"?Je.shixun_info=(G==null?void 0:G.shixun_info.length)>0?G==null?void 0:G.shixun_info:[mt]:ge==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(Je.examination_bank_ids=G==null?void 0:G.examination_bank_ids,Je.shixun_info=(G==null?void 0:G.shixun_info.length)>0?G==null?void 0:G.shixun_info:[mt]);const Me=yield(0,Z.ZP)(`/api/courses/${G==null?void 0:G.courseId}/send_shixun_progress.json`,{method:"post",body:Je});(Me==null?void 0:Me.status)===0&&(Ye(Me==null?void 0:Me.complete_num),he(Me==null?void 0:Me.total_num),(Me==null?void 0:Me.complete_num)!==(Me==null?void 0:Me.total_num)?(ae&&clearInterval(ae),ae=setInterval(se,5e3)):ae&&clearInterval(ae))});if(Fe&&(G!=null&&G.courseId)){const Je=(be=(G==null?void 0:G.shixun_info)||[])==null?void 0:be.filter(Me=>!!Me.identifier),mt=(me=(0,i.uniqBy)(Je,"identifier"))==null?void 0:me.length;Ye(0),he(mt),se()}return()=>{ae&&clearInterval(ae)}},[Fe]),L.createElement(M.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:j==oe,open:Fe,destroyOnClose:!0,footer:null,onCancel:ve},L.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",L.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},oe),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),L.createElement("div",{className:$.con_warp},L.createElement(we.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:j==oe&&oe!=0?100:j/oe*100,showInfo:!1,size:[350,10]}),L.createElement("div",{className:$.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",L.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},j),"\u4E2A"),j!=oe&&L.createElement(te.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),j==oe&&L.createElement(te.ZP,{type:"primary",onClick:pe},Ce)))};var U=(0,Se.connect)(({shixunsDetail:W,loading:re,globalSetting:k})=>({shixunsDetail:W,globalSetting:k,loading:re.models.index}))(I)},43786:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(62957),M=p(70858);const we=({dataSource:te,visible:$,onClose:Z=()=>{},onSuccess:v=()=>{},text:N,okText:i})=>{var L;return s.createElement(Se.default,{centered:!0,destroyOnClose:!0,open:!!$,title:"\u63D0\u793A",width:"600px",okText:i,cancelText:"\u53D6\u6D88",onCancel:Z,onOk:v},$==="single"&&s.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",s.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(L=te==null?void 0:te[0])==null?void 0:L.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",N),$==="multiple"&&s.createElement(s.Fragment,null,s.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",N),s.createElement(M.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:te,scroll:(te==null?void 0:te.length)>7?{y:300}:{},pagination:!1})))};Zt.Z=we},86746:function(nr,Zt,p){"use strict";p.d(Zt,{SV:function(){return It},ZP:function(){return je}});var s=p(59301),Se=p(76374);const M={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},we={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},te={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` @@ -933,199 +933,199 @@ `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` -`)}]},G={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` +`)}]},$={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Z={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` -`)}]};var v=g(53184),L=g.n(v),i=(ze,Pt,ct)=>new Promise((x,ke)=>{var P=C=>{try{h(ct.next(C))}catch(b){ke(b)}},A=C=>{try{h(ct.throw(C))}catch(b){ke(b)}},h=C=>C.done?x(C.value):Promise.resolve(C.value).then(P,A);h((ct=ct.apply(ze,Pt)).next())});const N={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},B=(ze,Pt,ct,x)=>{const ke=Pt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ct.lineNumber,endColumn:ct.column});return Array.from(new Set(ke.match(/\b\w{2,}\b/g)||[])).map(A=>({label:A,kind:ze.languages.CompletionItemKind.Text,insertText:A,range:x}))},D=(ze,Pt,ct,x)=>{ze.languages.registerCompletionItemProvider(Pt,{provideCompletionItems(ke,P){const A=ke.getWordUntilPosition(P),h={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:A.startColumn,endColumn:A.endColumn},C=ke.getLineContent(P.lineNumber).substring(A.startColumn-2,A.endColumn);return{suggestions:[...B(ze,ke,P,h),...ct.map(K=>({label:K,kind:ze.languages.CompletionItemKind.Keyword,documentation:K,insertText:K,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:h})),...x.map(K=>({label:K.label,kind:ze.languages.CompletionItemKind.Snippet,documentation:K.content,insertText:C.startsWith("#")?K.content.replace(/#/,""):K.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:h}))]}}})};var O=ze=>{N.languages.forEach(Pt=>{ze.languages.registerDocumentFormattingEditProvider(Pt,{provideDocumentFormattingEdits(ct){return i(this,null,function*(){const x=L()(ct.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:ct.getFullModelRange(),text:x}]})}})}),D(ze,"java",Be.keywords,Be.quickKey),D(ze,"cpp",te.keywords,te.quickKey),D(ze,"c",M.keywords,[]),D(ze,"python",G.keywords,G.quickKey),D(ze,"scala",Z.keywords,Z.quickKey)};const T="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var E=Object.defineProperty,U=(ze,Pt,ct)=>Pt in ze?E(ze,Pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[Pt]=ct,F=(ze,Pt,ct)=>U(ze,typeof Pt!="symbol"?Pt+"":Pt,ct);const W=class Dm{constructor(Pt,ct,x){this.placeholder=Pt,this.editor=ct,this.monaco=x,ct.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Dm.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};F(W,"ID","editor.widget.placeholderHint");var H=W,k=g(96236),de=g(6767),ue=g(25399),Fe=g(89392),me=g(86050),ve=g(56102),pe=Object.defineProperty,J=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ie=(ze,Pt,ct)=>Pt in ze?pe(ze,Pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ze[Pt]=ct,he=(ze,Pt)=>{for(var ct in Pt||(Pt={}))j.call(Pt,ct)&&ie(ze,ct,Pt[ct]);if(p)for(var ct of p(Pt))Xe.call(Pt,ct)&&ie(ze,ct,Pt[ct]);return ze},Ce=(ze,Pt)=>J(ze,ye(Pt)),ge=(ze,Pt)=>{var ct={};for(var x in ze)j.call(ze,x)&&Pt.indexOf(x)<0&&(ct[x]=ze[x]);if(ze!=null&&p)for(var x of p(ze))Pt.indexOf(x)<0&&Xe.call(ze,x)&&(ct[x]=ze[x]);return ct},ae=(ze,Pt,ct)=>new Promise((x,ke)=>{var P=C=>{try{h(ct.next(C))}catch(b){ke(b)}},A=C=>{try{h(ct.throw(C))}catch(b){ke(b)}},h=C=>C.done?x(C.value):Promise.resolve(C.value).then(P,A);h((ct=ct.apply(ze,Pt)).next())});function Ae(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function nt(){}let vt=!1;const Ve={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Nt(ze=[]){let Pt=ze;if(Array.isArray(ze)){for(let ct=0;ctae(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ze){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ze)}});var je=ze=>{var Pt=ze,{width:ct="100%",height:x="100%",value:ke,language:P="javascript",style:A={},options:h={},overrideServices:C={},theme:b="vs-dark",onEditBlur:K,isCopy:ee=!1,onSave:Ee,autoHeight:le=!1,forbidCopy:ce=!1,forbidCopyTips:Qe,onChange:He=nt,editorDidMount:oe=nt,onFocus:$=nt,onBreakPoint:et=nt,breakPointValue:Te=[],filename:Et="educoder.txt",errorLine:at,errorContent:Ge="",highlightLine:Ut,openBreakPoint:St=!1,placeholder:Ie="",showMiniMap:$e=!0}=Pt,ut=ge(Pt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Qt=(0,s.useRef)(),se=(0,s.useRef)({}),Oe=(0,s.useRef)(),We=(0,s.useRef)(),mt=(0,s.useRef)([]),Rt=(0,s.useRef)(!1),en=(0,s.useRef)(),En=(0,s.useRef)(),xn=(0,s.useRef)(!1),[ln,tn]=(0,s.useState)(!1);function Yt(){let Dn;return Qt.current&&(Dn=new Se.Z(Cn=>{for(let br of Cn)(br.target.offsetHeight>0||br.target.offsetWidth>0)&&se.current.instance.layout()}),Dn.observe(Qt.current)),Dn}function cn(){de.ZP.warning({content:decodeURIComponent(Qe||T),key:"monaco-editor-tip"})}const yn=()=>{let Dn=se.current.instance;if(ke!=null&&Dn&&ln){const Cn=Dn.getModel();Cn&&ke!==Cn.getValue()&&(vt=!0,Cn.setValue(ke),Dn.layout(),vt=!1)}};(0,s.useEffect)(()=>{const Dn=me.Z.subscribe("formatDocument",Cn=>{var br;let Or=se.current.instance;(br=Or==null?void 0:Or.getAction)==null||br.call(Or,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{He(Cn)},Dn},[]),(0,s.useEffect)(()=>{var Dn;let Cn=se.current.instance;We.current&&clearTimeout(We.current),We.current=setTimeout(()=>{yn()},500),ke&&(ke!=null&&ke.length)&&((Dn=Cn==null?void 0:Cn.updateOptions)==null||Dn.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[ke,ln,se.current]),(0,s.useEffect)(()=>{if(at&&se.current&&se.current.instance){let Cn=se.current.instance;Cn.changeViewZones(function(br){var Or=document.createElement("div");Or.style.padding="10px 20px",Or.style.width="calc(100% - 20px)",Or.className="my-error-line-wrp",Or.innerHTML=Ge,br.addZone({afterLineNumber:at||11,heightInLines:3,domNode:Or})});var Dn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Cn.addOverlayWidget(Dn),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[at,se.current,ln]);const In=(Dn="",Cn)=>{if(!Dn||Dn.trim()==="")return!0;const Or=se.current.instance.getModel().getLineTokens(Cn);let wt=!1;for(let dt=0;dt<2;dt++)Or.getStandardTokenType(dt)===1&&(wt=!0);return wt};(0,s.useEffect)(()=>{var Dn;const Cn=(Dn=se.current)==null?void 0:Dn.instance;if(Cn&&ln&&ce){const br=Cn.onDidBlurEditorWidget(()=>{xn.current=!1}),Or=Cn.onDidFocusEditorText(()=>{xn.current=!0});return()=>{br.dispose(),Or.dispose()}}},[se.current,ln,ce]),(0,s.useEffect)(()=>{var Dn;if((Dn=se.current)!=null&&Dn.instance&&ln&&St){let Cn=se.current.instance,br=Cn.getModel();if(!br)return;(()=>{var hn;let Mn=[],sr=[];const Wn=br.getAllDecorations();for(let hr of Wn)hr.options.className==="highlighted-line"&&(Mn.push((hn=hr==null?void 0:hr.range)==null?void 0:hn.startLineNumber),sr.push(hr==null?void 0:hr.id));if(Ut===Mn[0])return;br.deltaDecorations(sr,[]);const Sr=br.getLineCount();Ut&&Ut<=Sr&&(Cn.deltaDecorations([],[{range:new yt.Range(Ut,1,Ut,br.getLineMaxColumn(Ut)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(Ut))})();const wt=(hn=!1)=>{var Mn;let sr=[],Wn=[];const Sr=br.getAllDecorations();for(let hr of Sr)hr.options.linesDecorationsClassName==="breakpoints-select"&&(sr.push((Mn=hr==null?void 0:hr.range)==null?void 0:Mn.startLineNumber),Wn.push(hr==null?void 0:hr.id));if(hn)return{lines:sr,ids:Wn};et(sr)},dt=hn=>ae(void 0,null,function*(){let Mn={range:new yt.Range(hn,1,hn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield br.deltaDecorations([],[Mn]),wt()}),Sn=hn=>ae(void 0,null,function*(){let Mn=[];const sr=Cn.getLineDecorations(hn);for(let Wn of sr)Wn.options.linesDecorationsClassName==="breakpoints-select"&&Mn.push(Wn.id);yield br.deltaDecorations(Mn,[]),wt()}),Re=hn=>{let Mn=Cn.getLineDecorations(hn);for(let sr of Mn)if(sr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Fe.isEqual)(Te,wt(!0).lines)){br.deltaDecorations(wt(!0).ids,[]);const hn=Te.map(Mn=>({range:new yt.Range(Mn,1,Mn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));br.deltaDecorations([],hn)}const lt=Cn.onDidChangeModelContent(hn=>{let Mn=Cn.getPosition();if(Mn){let sr=Mn.lineNumber;clearTimeout(En.current),En.current=setTimeout(()=>{In(br.getLineContent(sr),sr)?Sn(sr):Re(sr)?(Sn(sr),dt(sr)):wt()},100)}}),Bt=Cn.onMouseDown(hn=>{var Mn,sr,Wn;if(hn.target.detail&&((Wn=(sr=(Mn=hn.target)==null?void 0:Mn.element)==null?void 0:sr.className)!=null&&Wn.includes("line-numbers"))){let Sr=hn.target.position.lineNumber;if(In(br.getLineContent(Sr),Sr))return;Re(Sr)?Sn(Sr):dt(Sr)}}),qt=hn=>{let Mn={range:new yt.Range(hn,1,hn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mt.current=Cn.deltaDecorations(mt.current,[Mn])},bn=()=>{mt.current=Cn.deltaDecorations(mt.current,[])},zn=Cn.onMouseMove(hn=>{var Mn,sr,Wn;if(bn(),hn.target.detail&&((Wn=(sr=(Mn=hn.target)==null?void 0:Mn.element)==null?void 0:sr.className)!=null&&Wn.includes("line-numbers"))){let Sr=hn.target.position.lineNumber;if(In(br.getLineContent(Sr),Sr))return;qt(Sr)}}),Yn=Cn.onMouseLeave(()=>{bn()});return()=>{lt.dispose(),Bt.dispose(),zn.dispose(),Yn.dispose()}}},[se.current,ln,Te,Ut,St,P]),(0,s.useEffect)(()=>{var Dn;(Dn=se.current)!=null&&Dn.instance&&St&&se.current.instance.setPosition({lineNumber:0,column:0})},[Ut]);function Kn(){let Dn=se.current.instance;if(Dn){const Cn=Dn.getSelection(),br=se.current.pastePos||{},Or=new yt.Range(br.startLineNumber||Cn.endLineNumber,br.startColumn||Cn.endColumn,br.endLineNumber||Cn.endLineNumber,br.endColumn||Cn.endColumn);setTimeout(()=>{Dn.executeEdits("",[{range:Or,text:""}])},300)}}function qn(Dn){(window.navigator.platform.match("Mac")?Dn.metaKey:Dn.ctrlKey)&&Dn.keyCode==83&&(Dn.preventDefault(),Ee())}const er=()=>{if(le&&se.current.instance){const Dn=se.current.instance.getContentHeight();ao(Dn{if(!xn.current)return;const{keyCode:Cn,ctrlKey:br,metaKey:Or,target:wt,type:dt}=Dn;return(dt==="paste"||(Cn===67||Cn===86)&&(Or||br))&&wt.nodeName==="TEXTAREA"&&(cn(),Dn.preventDefault()),!1};function fr(Dn,Cn){var br=window.URL||window.webkitURL||window,Or=new Blob([Cn]),wt=document.createElementNS("http://www.w3.org/1999/xhtml","a");wt.href=br.createObjectURL(Or),wt.download=Dn,xr(wt)}(0,s.useEffect)(()=>{er()},[er]),(0,s.useEffect)(()=>{Qt.current&&!ln&&Promise.all([g.e(8909),g.e(5507)]).then(g.bind(g,71448)).then(Dn=>{try{yt=Dn,se.current.instance=yt.editor.create(Qt.current,{value:ke,language:Nt(P),theme:b,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:$e||!1}},C);const Cn=se.current.instance;let wt=[...k.BH._menuItems].find(lt=>lt[0]._debugName=="EditorContext")[1],dt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Sn=(lt,Bt)=>{var qt,bn;let zn=lt._first;do Bt.includes((bn=(qt=zn.element)==null?void 0:qt.command)==null?void 0:bn.id)&<._remove(zn);while(zn=zn.next)};if(oe(Cn,yt),setTimeout(()=>{er(),se.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{fr(Et||"educoder.txt",Cn.getValue())}})},500),se.current.subscription=Cn.onDidChangeModelContent(lt=>{Rt.current?clearTimeout(en.current):(er(),He(Cn.getValue(),lt)),en.current=setTimeout(()=>{Rt.current=!1},500)}),window.Monaco||O(yt,Nt(P)),ce&&(Sn(wt,dt),Qt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lr),window.removeEventListener("paste",Lr),window.addEventListener("keydown",Lr),window.addEventListener("paste",Lr)),window.Monaco=yt,K&&Cn.onDidBlurEditorWidget(()=>{K(Cn.getValue())}),$&&Cn.onDidFocusEditorText(()=>{ce&&zt(),$(Cn.getValue())}),ce){zt();try{Cn.onDidPaste(lt=>{const Bt=Cn.getSelection(),qt=se.current.pastePos||{},bn=new yt.Range(qt.startLineNumber||Bt.endLineNumber,qt.startColumn||Bt.endColumn,qt.endLineNumber||Bt.endLineNumber,qt.endColumn||Bt.endColumn);Cn.executeEdits("",[{range:lt.range,text:""}])})}catch(lt){}}let Re=Yt();return Ie&&typeof Ie=="string"&&new H(Ie,Cn,yt),tn(!0),()=>{const lt=se.current.instance;lt.dispose();const Bt=lt.getModel();Bt&&Bt.dispose(),se.current.subscription&&se.current.subscription.dispose(),Re.unobserve(Qt.current)}}catch(Cn){}})},[]),(0,s.useEffect)(()=>{if(se.current.instance&&ln)return document.addEventListener("keydown",qn,!1),()=>{document.removeEventListener("keydown",qn)}},[Ee,ln]),(0,s.useEffect)(()=>{let Dn=se.current.instance;if(Dn&&ln){let Cn=Nt(P);yt.editor.setModelLanguage(Dn.getModel(),Cn)}},[P,ln]),(0,s.useEffect)(()=>{se.current.instance&&ln&&yt.editor.setTheme(b)},[b,ln]),(0,s.useEffect)(()=>{let Dn=se.current.instance;Oe.current=h,Dn&&ln&&(Dn.updateOptions(he({},h)),setTimeout(()=>{Dn.getModel().updateOptions(he({},h))},200))},[JSON.stringify(h),ln]),(0,s.useEffect)(()=>{let Dn=se.current.instance;Dn&&ln&&Dn.layout()},[ct,x,ln]);const[Jn,zr]=(0,s.useState)(Ae(ct)),[pr,ao]=(0,s.useState)(Ae(x)),mo=Ce(he({},A),{width:Jn,height:pr,position:"relative"});return s.createElement("div",{className:"my-monaco-editor",ref:Qt,style:mo,onFocus:()=>{ce&&zt()}},ee&&s.createElement(ve.CopyToClipboard,{text:ke,onCopy:()=>de.ZP.success("\u590D\u5236\u6210\u529F")},s.createElement(ue.Z,{title:"\u590D\u5236\u4EE3\u7801"},s.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},s.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function It({width:ze="100%",height:Pt="100%",original:ct,modified:x,language:ke,options:P={}}){const A=(0,s.useRef)(),[h,C]=(0,s.useState)(null);function b(le){let ce;return A.current&&(ce=new Se.Z(Qe=>{for(let He of Qe)(He.target.offsetHeight>0||He.target.offsetWidth>0)&&le.layout()}),ce.observe(A.current)),ce}(0,s.useEffect)(()=>(A.current&&Promise.all([g.e(8909),g.e(9404)]).then(g.bind(g,2550)).then(le=>{yt=le;const ce=yt.editor.createDiffEditor(A.current,Ce(he({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},P),{wordWrap:!0}));C(ce);let Qe=b(ce);return()=>{ce.dispose();const He=ce.getModel();He&&He.dispose(),Qe.unobserve(A.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,s.useEffect)(()=>{h&&h.setModel({original:yt.editor.createModel(ct,ke),modified:yt.editor.createModel(x,ke)})},[ct,x,ke,h]);const K=Ae(ze),ee=Ae(Pt),Ee={width:K,height:ee};return s.createElement("div",{className:"my-diff-editor",ref:A,style:Ee})}},42968:function(nr,Zt,g){"use strict";g.d(Zt,{B:function(){return L},F:function(){return v}});var s=g(44164),Se=g.n(s),M=g(86129),Be=g.n(M),te=(i,N,B)=>new Promise((D,O)=>{var T=F=>{try{U(B.next(F))}catch(W){O(W)}},E=F=>{try{U(B.throw(F))}catch(W){O(W)}},U=F=>F.done?D(F.value):Promise.resolve(F.value).then(T,E);U((B=B.apply(i,N)).next())});const G=()=>{document.body.scrollIntoView()},Z=()=>{document.querySelectorAll("canvas").forEach(i=>{(!i.clientWidth||!i.clientHeight)&&i.remove()})},v=(i,N)=>te(void 0,null,function*(){G(),Z();const B={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let D=Se()();for(let T=0;Tte(void 0,null,function*(){Tte(void 0,null,function*(){G(),Z();const B={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let D=Se()();for(let O=0;Ote(void 0,null,function*(){Ozt in yt?j(yt,zt,{enumerable:!0,configurable:!0,writable:!0,value:je}):yt[zt]=je,ge=(yt,zt)=>{for(var je in zt||(zt={}))ie.call(zt,je)&&Ce(yt,je,zt[je]);if(Xe)for(var je of Xe(zt))he.call(zt,je)&&Ce(yt,je,zt[je]);return yt},ae=(yt,zt,je)=>new Promise((It,ze)=>{var Pt=ke=>{try{x(je.next(ke))}catch(P){ze(P)}},ct=ke=>{try{x(je.throw(ke))}catch(P){ze(P)}},x=ke=>ke.done?It(ke.value):Promise.resolve(ke.value).then(Pt,ct);x((je=je.apply(yt,zt)).next())});const{TextArea:Ae}=M.default,nt={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},vt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Ve=({newExercisePaper:yt,isExportBlank:zt=!1,paperlibrary:je,user:It,globalSetting:ze,loading:Pt,dispatch:ct})=>{var x,ke,P,A,h,C,b,K,ee,Ee,le,ce,Qe,He,oe,$,et,Te,Et;const at=(0,Se.useLocation)(),Ge=(0,Se.useParams)(),[Ut]=(0,Se.useSearchParams)(),[St,Ie]=(0,s.useState)(),$e=(0,s.useRef)(),[ut,Qt]=(0,s.useState)(),[se,Oe]=(0,s.useState)(),[We,mt]=(0,s.useState)([]),[Rt,en]=(0,s.useState)(!1),[En,xn]=(0,s.useState)(""),[ln,tn]=(0,s.useState)(!1),[Yt,cn]=(0,s.useState)(!1),yn=Ut.get("isIntelligentAssistant"),In=((P=(ke=(x=je.paperData)==null?void 0:x.questionList)==null?void 0:ke.filter(Re=>Re.question_type===5))==null?void 0:P.length)>0,Kn=((C=(h=(A=je.paperData)==null?void 0:A.questionList)==null?void 0:h.filter(Re=>Re.question_type===6))==null?void 0:C.length)>0,[qn,er]=(0,s.useState)({param_show_hack_description:!1,param_show_hack_sets:!1,param_show_challenge_task_pass:!1,param_show_challenge_test_sets:!0});(0,s.useEffect)(()=>{var Re;return console.log((Re=je.paperData)==null?void 0:Re.questionList),ct({type:"globalSetting/footerToggle",payload:!1}),()=>{ct({type:"globalSetting/footerToggle",payload:!0})}},[]),(0,s.useEffect)(()=>{$e.current=Ge==null?void 0:Ge.id,Ie(Ut.get("defaultActiveKey")||"0"),Jn(),Lr(),xr()},[Ge==null?void 0:Ge.id]),(0,s.useEffect)(()=>{var Re;if((Re=yt.exerciseExportHeadData)!=null&&Re.title){const lt=yt.exerciseExportHeadData;Qt(ge({},lt||{}));const{table:Bt}=lt||{};let qt,bn;(Bt!=null&&Bt.total_singles_scores||Bt!=null&&Bt.total_doubles_scores||Bt!=null&&Bt.total_nulls_scores||Bt!=null&&Bt.total_judges_scores||Bt!=null&&Bt.total_pros_scores||Bt!=null&&Bt.total_shixuns_scores||Bt!=null&&Bt.total_mains_scores||Bt!=null&&Bt.total_combination_scores||Bt!=null&&Bt.total_bpros_scores)&&(qt=Number(Bt==null?void 0:Bt.total_singles_scores)+Number(Bt==null?void 0:Bt.total_doubles_scores)+Number(Bt==null?void 0:Bt.total_nulls_scores)+Number(Bt==null?void 0:Bt.total_judges_scores)+Number(Bt==null?void 0:Bt.total_pros_scores)+Number(Bt==null?void 0:Bt.total_shixuns_scores)+Number(Bt==null?void 0:Bt.total_mains_scores)+Number(Bt==null?void 0:Bt.total_combination_scores)+Number(Bt==null?void 0:Bt.total_bpros_scores)),(Bt!=null&&Bt.singles_scores||Bt!=null&&Bt.doubles_scores||Bt!=null&&Bt.nulls_scores||Bt!=null&&Bt.judges_scores||Bt!=null&&Bt.pros_scores||Bt!=null&&Bt.bpros_scores||Bt!=null&&Bt.shixuns_scores||Bt!=null&&Bt.mains_scores||Bt!=null&&Bt.combination_scores)&&(bn=Number(Bt==null?void 0:Bt.singles_scores)+Number(Bt==null?void 0:Bt.doubles_scores)+Number(Bt==null?void 0:Bt.nulls_scores)+Number(Bt==null?void 0:Bt.judges_scores)+Number(Bt==null?void 0:Bt.pros_scores)+Number(Bt==null?void 0:Bt.bpros_scores)+Number(Bt==null?void 0:Bt.shixuns_scores)+Number(Bt==null?void 0:Bt.mains_scores)+Number(Bt==null?void 0:Bt.combination_scores));const zn=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Bt==null?void 0:Bt.total_singles_scores,doubles_score:Bt==null?void 0:Bt.total_doubles_scores,nulls_score:Bt==null?void 0:Bt.total_nulls_scores,judges_score:Bt==null?void 0:Bt.total_judges_scores,pros_score:Bt==null?void 0:Bt.total_pros_scores,bpros_score:Bt==null?void 0:Bt.total_bpros_scores,shixuns_score:Bt==null?void 0:Bt.total_shixuns_scores,mains_score:Bt==null?void 0:Bt.total_mains_scores,combinations_score:Bt==null?void 0:Bt.total_combination_scores,total_score:qt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Bt==null?void 0:Bt.singles_scores,doubles_score:Bt==null?void 0:Bt.doubles_scores,nulls_score:Bt==null?void 0:Bt.nulls_scores,judges_score:Bt==null?void 0:Bt.judges_scores,pros_score:Bt==null?void 0:Bt.pros_scores,bpros_score:Bt==null?void 0:Bt.bpros_scores,shixuns_score:Bt==null?void 0:Bt.shixuns_scores,mains_score:Bt==null?void 0:Bt.mains_scores,combinations_score:Bt==null?void 0:Bt.combination_scores,total_score:bn},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Yn=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Bt==null?void 0:Bt.total_singles_scores,doubles_score:Bt==null?void 0:Bt.total_doubles_scores,nulls_score:Bt==null?void 0:Bt.total_nulls_scores,judges_score:Bt==null?void 0:Bt.total_judges_scores,pros_score:Bt==null?void 0:Bt.total_pros_scores,bpros_score:Bt==null?void 0:Bt.total_bpros_scores,shixuns_score:Bt==null?void 0:Bt.total_shixuns_scores,mains_score:Bt==null?void 0:Bt.total_mains_scores,combinations_score:Bt==null?void 0:Bt.combination_scores,total_score:qt},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Oe([...zt?Yn:zn])}},[yt.exerciseExportHeadData]);const xr=()=>ae(void 0,null,function*(){var Re;const lt=yield(0,re.cV)({id:Ge.id});lt.status==0&&mt(lt.data),yield Lr(),Ut.get("exportPDF")&&((Re=je.paperData)!=null&&Re.questionList)&&(Be.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,W.F)(ao.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),Lr=()=>ae(void 0,null,function*(){const Re=yield(0,re.Dq)(Ge.id);Qt(Re||{});const{table:lt}=Re||{};let Bt,qt;(lt!=null&<.total_singles_scores||lt!=null&<.total_doubles_scores||lt!=null&<.total_nulls_scores||lt!=null&<.total_judges_scores||lt!=null&<.total_pros_scores||lt!=null&<.total_shixuns_scores||lt!=null&<.total_mains_scores||lt!=null&<.total_combination_scores||lt!=null&<.total_bpros_scores)&&(Bt=Number(lt==null?void 0:lt.total_singles_scores)+Number(lt==null?void 0:lt.total_doubles_scores)+Number(lt==null?void 0:lt.total_nulls_scores)+Number(lt==null?void 0:lt.total_judges_scores)+Number(lt==null?void 0:lt.total_pros_scores)+Number(lt==null?void 0:lt.total_shixuns_scores)+Number(lt==null?void 0:lt.total_mains_scores)+Number(lt==null?void 0:lt.total_combination_scores)+Number(lt==null?void 0:lt.total_bpros_scores)),(lt!=null&<.singles_scores||lt!=null&<.doubles_scores||lt!=null&<.nulls_scores||lt!=null&<.judges_scores||lt!=null&<.pros_scores||lt!=null&<.bpros_scores||lt!=null&<.shixuns_scores||lt!=null&<.mains_scores||lt!=null&<.combinations_score)&&(qt=Number(lt==null?void 0:lt.singles_scores)+Number(lt==null?void 0:lt.doubles_scores)+Number(lt==null?void 0:lt.nulls_scores)+Number(lt==null?void 0:lt.judges_scores)+Number(lt==null?void 0:lt.pros_scores)+Number(lt==null?void 0:lt.bpros_scores)+Number(lt==null?void 0:lt.shixuns_scores)+Number(lt==null?void 0:lt.mains_scores)+Number(lt==null?void 0:lt.combinations_score));const bn=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:lt==null?void 0:lt.total_singles_scores,doubles_score:lt==null?void 0:lt.total_doubles_scores,nulls_score:lt==null?void 0:lt.total_nulls_scores,judges_score:lt==null?void 0:lt.total_judges_scores,pros_score:lt==null?void 0:lt.total_pros_scores,bpros_score:lt==null?void 0:lt.total_bpros_scores,shixuns_score:lt==null?void 0:lt.total_shixuns_scores,combinations_score:lt==null?void 0:lt.total_combination_scores,mains_score:lt==null?void 0:lt.total_mains_scores,total_score:Bt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:lt==null?void 0:lt.singles_scores,doubles_score:lt==null?void 0:lt.doubles_scores,nulls_score:lt==null?void 0:lt.nulls_scores,judges_score:lt==null?void 0:lt.judges_scores,pros_score:lt==null?void 0:lt.pros_scores,bpros_score:lt==null?void 0:lt.bpros_scores,shixuns_score:lt==null?void 0:lt.shixuns_scores,mains_score:lt==null?void 0:lt.mains_scores,combinations_score:lt==null?void 0:lt.combination_scores,total_score:qt},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Oe(zt?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:bn)}),fr=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:Re=>p.createElement("a",null,Re)},{width:"9%",title:((b=We.find(Re=>Re.value==H.fw[0].nameType))==null?void 0:b.name)||H.fw[0].name,align:"center",dataIndex:"singles_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((K=We.find(Re=>Re.value==H.fw[1].nameType))==null?void 0:K.name)||H.fw[1].name,align:"center",dataIndex:"doubles_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((ee=We.find(Re=>Re.value==H.fw[3].nameType))==null?void 0:ee.name)||H.fw[3].name,align:"center",dataIndex:"nulls_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((Ee=We.find(Re=>Re.value==H.fw[2].nameType))==null?void 0:Ee.name)||H.fw[2].name,align:"center",dataIndex:"judges_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((le=We.find(Re=>Re.value==H.fw[6].nameType))==null?void 0:le.name)||H.fw[6].name,align:"center",dataIndex:"pros_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((ce=We.find(Re=>Re.value==H.fw[5].nameType))==null?void 0:ce.name)||H.fw[5].name,align:"center",dataIndex:"shixuns_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((Qe=We.find(Re=>Re.value==H.fw[4].nameType))==null?void 0:Qe.name)||H.fw[4].name,align:"center",dataIndex:"mains_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((He=We.find(Re=>Re.value==H.fw[7].nameType))==null?void 0:He.name)||H.fw[7].name,align:"center",dataIndex:"combinations_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"10%",title:((oe=We.find(Re=>Re.value==H.fw[8].nameType))==null?void 0:oe.name)||H.fw[8].name,align:"center",dataIndex:"bpros_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:Re=>p.createElement("a",null,Re==="0.0"?0:Re?parseFloat(Re).toFixed(1):"")}],Jn=Re=>{ct({type:"paperlibrary/getPaperData",payload:ge({id:$e.current},Re)})},zr=(Re,lt)=>ae(void 0,null,function*(){if(!Re.destination||!Re.source)return;const Bt=lt.questions[Re.source.index].id,qt=Re.destination.index+1;(yield ct({type:"paperlibrary/adjustPosition",payload:{id:$e.current,itemId:Bt,position:qt}})).status!==-1&&Jn()}),pr=()=>{var Re,lt,Bt,qt;ct({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:$e.current,data:{is_random:!1},dataSource:[{name:(lt=(Re=je.paperData)==null?void 0:Re.exam)==null?void 0:lt.name,total_score:(qt=(Bt=je.paperData)==null?void 0:Bt.exam)==null?void 0:qt.all_score}],type:"single"}}})},ao=(0,s.useRef)(),[mo,Dn]=(0,s.useState)(!0),Cn=()=>ae(void 0,null,function*(){Dn(!1),xn(""),en(!0)}),br=()=>ae(void 0,null,function*(){Dn(!0),xn(""),en(!0)}),Or=()=>ae(void 0,null,function*(){var Re;tn(!0);const lt=yield(0,ue.Mb)({categoryId:$e.current});tn(!1),lt!=null&<.exercise_id&&(0,de.xg)(`/classrooms/coursesId/exercise/${lt.exercise_id}/${(Re=It.userInfo)==null?void 0:Re.login}/initate_answer`)}),wt=(Re,lt,Bt)=>{var qt,bn,zn,Yn,hn,Mn,sr,Wn,Sr,hr,Fr,Ko,$i,wi,Ro,Fi,Lo,_i,Xi,zo,Ii,Oi;return p.createElement(p.Fragment,null,!Bt&&p.createElement("div",{style:{display:"flex"},className:U.programTitle},p.createElement("span",{style:{flexShrink:0},className:"font18"},lt+1,"."),p.createElement(Fe.Z,{style:{maxWidth:1100},value:(Re==null?void 0:Re.question_type)==8?(qt=Re==null?void 0:Re.program_attr)==null?void 0:qt.description:Re.name||(Re==null?void 0:Re.shixun_name)}),p.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(Re==null?void 0:Re.question_type)===7?`\u5171${Re==null?void 0:Re.sub_count}\u5C0F\u9898`:""," ",Re.score,"\u5206\uFF09")),(Re==null?void 0:Re.question_type)===8&&p.createElement(Fe.Z,{showProgramFill:!0,disabledFill:!0,value:me.Base64.decode(((bn=Re==null?void 0:Re.program_attr)==null?void 0:bn.code)||"")}),(Re==null?void 0:Re.question_type)===5&&p.createElement("div",null,(zn=Re==null?void 0:Re.examination_bank_shixun_challenges)==null?void 0:zn.map((_r,lo)=>p.createElement("div",null,p.createElement("div",{key:lo,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},p.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",lo+1,"\u5173 ",p.createElement("span",{className:"ml10"},_r.challenge_name))))),(Re==null?void 0:Re.question_type)===6&&p.createElement("div",null,p.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(hn=(Yn=Re==null?void 0:Re.program_attr)==null?void 0:Yn.languages)==null?void 0:hn.join("/")),((sr=(Mn=je==null?void 0:je.paperData)==null?void 0:Mn.exam)==null?void 0:sr.show_hack_sets)&&p.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},p.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},p.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),p.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(_r,lo,oi)=>oi+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(_r,lo,oi)=>p.createElement(G.Z,{title:p.createElement("pre",null,_r)},p.createElement("div",{className:U.divname},_r))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(_r,lo,oi)=>p.createElement(G.Z,{title:p.createElement("pre",null,_r)}," ",p.createElement("div",{className:U.divname},_r))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Wn=Re==null?void 0:Re.program_attr)==null?void 0:Wn.hack_sets})),((hr=(Sr=je==null?void 0:je.paperData)==null?void 0:Sr.exam)==null?void 0:hr.show_hack_description)&&p.createElement("div",null,p.createElement(Fe.Z,{className:U.content,value:((Fr=Re==null?void 0:Re.program_attr)==null?void 0:Fr.description)||"- -"}))),Re.question_type===ve.c.Single&&p.createElement(p.Fragment,null,(Ko=Re.choices)==null?void 0:Ko.map(function(_r,lo){return p.createElement(Z.Z,{key:lo},p.createElement(v.Z,{flex:"1"},p.createElement("div",{style:{display:"flex"}},p.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},vt[lo]),p.createElement(Fe.Z,{value:_r.choice_text||""}))))})),Re.question_type===ve.c.Multiple&&p.createElement(p.Fragment,null,($i=Re.choices)==null?void 0:$i.map(function(_r,lo){return p.createElement(Z.Z,{key:lo},p.createElement(v.Z,{flex:"1"},p.createElement("div",{style:{display:"flex"}},p.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},vt[lo]),p.createElement(Fe.Z,{value:_r.choice_text||""}))))})),Re.question_type===ve.c.Judge&&p.createElement("div",{className:U.flexRow},(wi=Re.choices)==null?void 0:wi.map(function(_r,lo){return p.createElement(Z.Z,{key:lo},p.createElement(v.Z,{flex:"25px"},p.createElement("div",{style:{width:25,overflow:"hidden"}},p.createElement(L.ZP,{disabled:!0,style:{width:25,marginLeft:lo===1&&10}}))),p.createElement(v.Z,{flex:"1",style:{marginLeft:lo===1&&10}},_r.choice_text))})),Re.question_type===ve.c.Combine&&p.createElement(p.Fragment,null,(Ro=Re.sub_questions)==null?void 0:Ro.map(function(_r,lo){return p.createElement("div",{style:{marginLeft:10}},p.createElement("div",{style:{display:"flex"},className:U.programTitle},p.createElement("span",{style:{flexShrink:0},className:"font18"},lt+1,".",lo+1),p.createElement(Fe.Z,{value:_r.name||(_r==null?void 0:_r.shixun_name)}),p.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",_r.score,"\u5206\uFF09")),wt(_r,lo,!0))})),mo&&p.createElement("div",{style:{marginTop:10}},(Re==null?void 0:Re.question_type)<3&&(Re==null?void 0:Re.standard_answer_show)&&p.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",Re==null?void 0:Re.standard_answer_show),!!((Fi=Re==null?void 0:Re.standard_answer)!=null&&Fi.length)&&mo&&(Re==null?void 0:Re.question_type)===3&&p.createElement("div",null,(Lo=Re==null?void 0:Re.standard_answer)==null?void 0:Lo.map((_r,lo)=>p.createElement("div",null,p.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",lo+1,"\uFF09:"),p.createElement("div",null,_r.answer_text.map(function(oi,_o){return p.createElement(v.Z,{span:24,key:_o},(_r==null?void 0:_r.model)===1?p.createElement(Ae,{autoSize:!0,disabled:!0,value:oi}):p.createElement(pe.Z,{value:oi,disabled:!0}))}))))),!!((_i=Re==null?void 0:Re.standard_answer)!=null&&_i.length)&&mo&&(Re==null?void 0:Re.question_type)===8&&p.createElement("div",null,(Xi=Re==null?void 0:Re.standard_answer)==null?void 0:Xi.map((_r,lo)=>p.createElement("div",null,p.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",lo+1,"\uFF09:"),p.createElement("div",null,p.createElement(Ae,{autoSize:!0,disabled:!0,value:(_r==null?void 0:_r.answer_text)||""}))))),!!((zo=Re==null?void 0:Re.answer_texts)!=null&&zo.length)&&(Re==null?void 0:Re.question_type)===4&&p.createElement("div",null,p.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),p.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},p.createElement(Fe.Z,{value:(Ii=Re==null?void 0:Re.answer_texts)==null?void 0:Ii[0]}))),(Re==null?void 0:Re.question_type)===6&&p.createElement("div",null,p.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(Re!=null&&Re.answer_text)&&"\u6682\u65E0"),(Re==null?void 0:Re.answer_text)&&p.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},p.createElement(Fe.Z,{value:Re==null?void 0:Re.answer_text}))),(Re==null?void 0:Re.question_type)<=4&&((Re==null?void 0:Re.standard_answer_show)||((Oi=Re==null?void 0:Re.standard_answer)==null?void 0:Oi.length)>0)&&p.createElement(Z.Z,{style:{marginTop:14}},p.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),p.createElement(Fe.Z,{className:U.renderHtml,value:(Re==null?void 0:Re.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Bt&&p.createElement(i.Z,null))},dt=(0,s.useCallback)(()=>{var Re,lt;return p.createElement("div",null,p.createElement("div",{className:U.titleForExport},(lt=(Re=je.paperData)==null?void 0:Re.exam)==null?void 0:lt.name),p.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",ut==null?void 0:ut.large_counts,"\u5927\u9898\u3011\u3010",ut==null?void 0:ut.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",ut==null?void 0:ut.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(ut==null?void 0:ut.time)>-1?`${ut==null?void 0:ut.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(ut!=null&&ut.exercise_description)&&p.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},p.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),ut==null?void 0:ut.exercise_description),p.createElement(te.default,{style:{margin:"20px auto"},className:U.table,columns:fr,dataSource:[...se||[]],bordered:!0,pagination:!1}))},[je.paperData]),Sn=()=>ae(void 0,null,function*(){const Re=yield(0,ye.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ge==null?void 0:Ge.id}});(Re==null?void 0:Re.status)===0&&Se.history.replace("/paperlibrary")});return p.createElement("section",{className:U.bg},p.createElement(N.Z,{spinning:Pt["paperlibrary/getPaperData"]},p.createElement(Z.Z,{className:"pt20",justify:"space-between"},p.createElement(B.Z,{separator:">"},p.createElement(B.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),p.createElement(B.Z.Item,{href:`/paperlibrary?defaultActiveKey=${St}`},St==="1"?"\u516C\u5F00":St==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),p.createElement(B.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),p.createElement("div",{className:U.btnWrapper},!yn&&p.createElement(D.ZP,{onClick:pr,className:U.btn,icon:p.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),p.createElement(D.ZP,{onClick:()=>Se.history.push(`/paperlibrary/add/${$e.current}?type=2${yn?"&isIntelligentAssistant=true":""}`),className:U.btn,icon:p.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),p.createElement(D.ZP,{loading:ln,onClick:Or,className:U.btn,icon:p.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!yn&&p.createElement(O.Z,{menu:{items:[{key:"1",label:p.createElement("div",{onClick:br},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:p.createElement("div",{onClick:Cn},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},p.createElement(D.ZP,{type:"primary",icon:p.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),yn&&p.createElement(J.Z,{onClick:Sn,type:"primary",icon:p.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),p.createElement("div",{className:`${U.wrap} pt20 pb20`,ref:ao,id:"paperDomRef"},!((et=($=je.paperData)==null?void 0:$.questionList)!=null&&et.length)&&dt(),(Et=(Te=je.paperData)==null?void 0:Te.questionList)==null?void 0:Et.map((Re,lt)=>{var Bt;return p.createElement(p.Fragment,null,(Bt=Re.questions)==null?void 0:Bt.map((qt,bn)=>{const zn=Math.floor(bn/10);return bn%10===0?p.createElement("div",{className:"abc",key:`group-${zn}`},lt===0&&bn===0&&dt(),bn===0&&p.createElement("div",null,p.createElement("span",{className:"font16 c-light-primary"},Re.number,"\u3001",Re.name),p.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Re.questions_count,"\u9898\uFF0C",(Re==null?void 0:Re.question_type)===7?`\u5305\u542B${Re==null?void 0:Re.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",Re.questions_score,"\u5206\uFF09")),Re.questions.slice(bn,bn+10).map((Yn,hn)=>p.createElement("div",{key:Yn.id},wt(Yn,bn+hn)))):null}))}))),p.createElement(F.Z,null),p.createElement(T.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Rt,onCancel:()=>{if(Yt){Be.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}en(!1)},okButtonProps:{loading:Yt},onOk:()=>ae(void 0,null,function*(){var Re,lt;if(cn(!0),En==""){cn(!1),Be.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else En=="pdf"?yield(0,W.F)(ao.current.children,(lt=(Re=je.paperData)==null?void 0:Re.exam)==null?void 0:lt.name):En=="word"&&(0,k.ON)(ge({id:$e.current,middle_export:1,export_type:mo?1:0},qn));cn(!1),en(!1)})},p.createElement("div",{className:U.export_type_modal},p.createElement("div",{className:U.export_type_modal_con},p.createElement("div",{className:U.type_item},p.createElement("div",{className:`${U.img_warp} ${En=="pdf"?U.img_warp_active:""}`,onClick:()=>xn("pdf")},p.createElement("img",{src:g(45614),width:70,height:70})),"pdf\u683C\u5F0F"),p.createElement("div",{className:U.type_item},p.createElement("div",{className:`${U.img_warp} ${En=="word"?U.img_warp_active:""}`,onClick:()=>xn("word")},p.createElement("img",{src:g(38347),width:70,height:70})),"word\u683C\u5F0F"))),En==="word"&&p.createElement("div",{style:{marginTop:30}},(In||Kn)&&p.createElement("div",{style:{fontSize:14,color:"#666",marginBottom:20}},"\u8BF7\u9009\u62E9\u9700\u8981\u989D\u5916\u5BFC\u51FA\u7684\u5185\u5BB9"),In&&p.createElement("div",null,p.createElement("span",null,"\u5B9E\u8BAD\u9898"),p.createElement(E.default,{checked:qn.param_show_challenge_task_pass,onChange:Re=>{qn.param_show_challenge_task_pass=Re.target.checked,er(ge({},qn))},style:{marginLeft:20}},"\u5BFC\u51FA\u5B9E\u8BAD\u5173\u5361\u63CF\u8FF0"),p.createElement(E.default,{className:"ml20",checked:qn.param_show_challenge_test_sets,onChange:Re=>{qn.param_show_challenge_test_sets=Re.target.checked,er(ge({},qn))}},"\u6D4B\u8BD5\u7528\u4F8B")),Kn&&p.createElement("div",{style:{marginTop:20}},p.createElement("span",null,"\u7F16\u7A0B\u9898"),p.createElement(E.default,{checked:qn.param_show_hack_sets,onChange:Re=>{qn.param_show_hack_sets=Re.target.checked,er(ge({},qn))},style:{marginLeft:20}},"\u5BFC\u51FA\u7F16\u7A0B\u9898\u6D4B\u8BD5\u7528\u4F8B"),p.createElement(E.default,{checked:qn.param_show_hack_description,onChange:Re=>{qn.param_show_hack_description=Re.target.checked,er(ge({},qn))},style:{marginLeft:20}},"\u5BFC\u51FA\u7F16\u7A0B\u9898\u63CF\u8FF0")))))};var Nt=(0,Se.connect)(({paperlibrary:yt,user:zt,loading:je,globalSetting:It,newExercisePaper:ze})=>({paperlibrary:yt,user:zt,globalSetting:It,loading:je.effects,newExercisePaper:ze}))(Ve)},44868:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return zt}});var s=g(59301),Se=g(88634),M=g(37568),Be=g(6767),te=g(62957),G=g(4875),Z=g(458),v=g(70858),L=g(7939),i=g(89160),N=Object.defineProperty,B=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(je,It,ze)=>It in je?N(je,It,{enumerable:!0,configurable:!0,writable:!0,value:ze}):je[It]=ze,E=(je,It)=>{for(var ze in It||(It={}))D.call(It,ze)&&T(je,ze,It[ze]);if(B)for(var ze of B(It))O.call(It,ze)&&T(je,ze,It[ze]);return je};const U=je=>React.createElement("svg",E({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var F="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",W={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},re=g(95203),H={sendToClass:"send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UN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",Fe=({createState:je,refreshLoading:It,onRefresh:ze=()=>{},onCreate:Pt=()=>{}})=>s.createElement("div",{className:H.sendToClass},je?s.createElement(s.Fragment,null,s.createElement("img",{src:k,alt:"\u7A7A"}),s.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),s.createElement(L.ZP,{onClick:Pt,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):s.createElement(s.Fragment,null,s.createElement("img",{src:de,alt:"\u7A7A"}),s.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),s.createElement(L.ZP,{loading:It,onClick:ze,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),me=g(32981),ve=g(89392),pe=g(18612),J=g(37428),ye=g(43786),p=g(59301),j=Object.defineProperty,Xe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ae=(je,It,ze)=>It in je?j(je,It,{enumerable:!0,configurable:!0,writable:!0,value:ze}):je[It]=ze,Ae=(je,It)=>{for(var ze in It||(It={}))Ce.call(It,ze)&&ae(je,ze,It[ze]);if(he)for(var ze of he(It))ge.call(It,ze)&&ae(je,ze,It[ze]);return je},nt=(je,It)=>Xe(je,ie(It)),vt=(je,It)=>{var ze={};for(var Pt in je)Ce.call(je,Pt)&&It.indexOf(Pt)<0&&(ze[Pt]=je[Pt]);if(je!=null&&he)for(var Pt of he(je))It.indexOf(Pt)<0&&ge.call(je,Pt)&&(ze[Pt]=je[Pt]);return ze},Ve=(je,It,ze)=>new Promise((Pt,ct)=>{var x=A=>{try{P(ze.next(A))}catch(h){ct(h)}},ke=A=>{try{P(ze.throw(A))}catch(h){ct(h)}},P=A=>A.done?Pt(A.value):Promise.resolve(A.value).then(x,ke);P((ze=ze.apply(je,It)).next())});const Nt=M.default.Search,yt=je=>{var It=je,{paperlibrary:ze,globalSetting:Pt,loading:ct,dispatch:x}=It,ke=vt(It,["paperlibrary","globalSetting","loading","dispatch"]),P,A,h,C;const[b,K]=(0,s.useState)(""),[ee,Ee]=(0,s.useState)([]),[le,ce]=(0,s.useState)([]),[Qe,He]=(0,s.useState)(!1),[oe,$]=(0,s.useState)(!0),[et,Te]=(0,s.useState)(!0),[Et,at]=(0,s.useState)(!0),[Ge,Ut]=(0,s.useState)(!1),[St,Ie]=(0,s.useState)(!1),$e=(h=(A=(P=ze.actionTabs)==null?void 0:P.params)==null?void 0:A.data)==null?void 0:h.is_random,[ut,Qt]=(0,s.useState)(!1),[se,Oe]=(0,s.useState)({}),[We,mt]=(0,s.useState)(!1),[Rt,en]=(0,s.useState)({}),[En,xn]=(0,s.useState)(!1),[ln,tn]=(0,s.useState)(!1),[Yt,cn]=(0,s.useState)([]);(0,s.useEffect)(()=>{var fr;if(ze.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Jn=[],type:zr}=((fr=ze.actionTabs)==null?void 0:fr.params)||{},pr=Jn.filter(ao=>![100,120,150].includes(ao.total_score));pr.length?(tn(zr),cn(pr)):xn(!0)}},[(C=ze==null?void 0:ze.actionTabs)==null?void 0:C.key]),(0,s.useEffect)(()=>{In()},[]);const yn=()=>{ce([]),K(""),In(!0),xn(!1),tn(!1),x({type:"paperlibrary/setActionTabs",payload:{}})},In=fr=>Ve(void 0,null,function*(){Te(!0);const Jn=yield x({type:"paperlibrary/getCourseList",payload:{search:fr?"":b}});Jn&&(Ee((Jn==null?void 0:Jn.courses)||[]),$(!0),Ut(!1)),Te(!1),at(!1)}),Kn=fr=>{const Jn=parseInt(fr);return(0,ve.isNaN)(Jn)?"":Jn},qn=()=>Ve(void 0,null,function*(){var fr,Jn,zr,pr,ao,mo,Dn;if(!le.length){Be.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),He(!0);return}const Cn=yield x({type:"paperlibrary/postExistCourse",payload:{course_id:$e?le==null?void 0:le[0]:le,examination_bank_ids:((Jn=(fr=ze.actionTabs)==null?void 0:fr.params)==null?void 0:Jn.examination_bank_ids)||((pr=(zr=ze.actionTabs)==null?void 0:zr.params)==null?void 0:pr.id)}}),br=()=>Ve(void 0,null,function*(){yield er([])});if(Cn.status==0&&((ao=Cn.data)==null?void 0:ao.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:p.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(Dn=(mo=Cn.data)==null?void 0:mo.list)==null?void 0:Dn.map((Or,wt)=>{var dt;return p.createElement(p.Fragment,null,p.createElement("span",{style:{color:"#FA6400"}},"\u300A",Or==null?void 0:Or.name,"\u300B"),wt!==((dt=Cn.data)==null?void 0:dt.count)-1&&p.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>Ve(void 0,null,function*(){yield br()})}),yield new Promise(Or=>setTimeout(()=>Or(),1e3));return}yield br()}),er=fr=>Ve(void 0,null,function*(){var Jn,zr,pr,ao,mo,Dn,Cn,br,Or,wt,dt,Sn,Re;if(!$e){Qt(!0);const bn=yield x({type:(zr=(Jn=ze.actionTabs)==null?void 0:Jn.params)!=null&&zr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:$e?le==null?void 0:le[0]:le,id:(ao=(pr=ze.actionTabs)==null?void 0:pr.params)==null?void 0:ao.id,examination_bank_ids:(Dn=(mo=ze.actionTabs)==null?void 0:mo.params)==null?void 0:Dn.examination_bank_ids,shixuns_info:fr.map(zn=>({shixun_id:zn.id,is_copy:zn.is_copy,is_use:zn.is_use,course_id:zn.course_id}))}});Qt(!1),bn&&bn.status===0&&(xn(!1),x({type:"paperlibrary/setActionTabs",payload:{}}),ce([]),bn!=null&&bn.have_shixun?(en(nt(Ae({},(Cn=bn==null?void 0:bn.data)==null?void 0:Cn[0]),{courseId:(Or=(br=bn==null?void 0:bn.data)==null?void 0:br[0])==null?void 0:Or.course_identifier,examination_bank_ids:((dt=(wt=ze.actionTabs)==null?void 0:wt.params)==null?void 0:dt.examination_bank_ids)||[(Re=(Sn=ze.actionTabs)==null?void 0:Sn.params)==null?void 0:Re.id]})),mt(!0)):(te.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${bn.data[0].first_category_url}`},content:p.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),Be.ZP.success("\u53D1\u9001\u6210\u529F")));return}Qt(!0),setTimeout(()=>{Qt(!1)},500);const lt=ee.find(bn=>bn.course_id===(le==null?void 0:le[0]));let Bt=1,qt=te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:p.createElement("div",{className:W.modalColumn},p.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},p.createElement("img",{style:{marginRight:5},src:i.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),p.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",lt==null?void 0:lt.course_name),p.createElement("div",{style:{paddingLeft:9},className:W.modalRow},p.createElement("sup",{className:W.sup},"*"),p.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),p.createElement(G.Z,{parser:Kn,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Bt,onChange:bn=>{Bt=bn;const zn=document.getElementById("model_error");Bt<1||Bt>50?zn.style.display="block":zn.style.display="none"}})),p.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:yn,onOk:()=>Ve(void 0,null,function*(){var bn,zn;if(Bt<1||Bt>50){const hn=document.getElementById("model_error");return hn.style.display="block",Promise.reject()}qt.update({cancelButtonProps:{disabled:!0}});const Yn=yield x({type:"paperlibrary/sendToClass",payload:{course_id:le==null?void 0:le[0],id:(zn=(bn=ze.actionTabs)==null?void 0:bn.params)==null?void 0:zn.id,num:Bt,shixuns_info:fr.map(hn=>({shixun_id:hn.id,is_copy:hn.is_copy,is_use:hn.is_use}))}});qt.update({cancelButtonProps:{disabled:!1}}),Yn&&Yn.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:p.createElement("div",{className:W.modalColumn},p.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},p.createElement("img",{style:{marginRight:5},src:F}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{yn()},onOk:()=>{yn(),setTimeout(()=>{var hn,Mn;const sr=(Mn=(hn=Yn==null?void 0:Yn.first_category_url)==null?void 0:hn.split("/"))==null?void 0:Mn[2];(0,re.xg)(`/classrooms/${sr}/exercise`)},1e3)}}))})})}),xr=()=>Ve(void 0,null,function*(){Ut(!0),yield In()}),Lr=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return p.createElement("div",null,p.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:En,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ct["paperlibrary/sendToClass"]||St||!!ct["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:qn,destroyOnClose:!0,onCancel:yn},p.createElement("div",{className:W.wrap},p.createElement("div",{className:"mb10"},p.createElement(Nt,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:b,className:W.search,onChange:fr=>{K(fr.target.value),fr.target.value||In(!0)},onSearch:fr=>{K(fr),In(),ce([])}})),p.createElement(Z.Z,{loading:Et},ee.length?p.createElement("div",{className:W.radioWrap},p.createElement(v.default,{bordered:!1,scroll:(ee==null?void 0:ee.length)<=7?{}:{y:350},loading:et,rowKey:"course_id",pagination:!1,dataSource:ee,columns:Lr,onRow:fr=>({onClick:Jn=>{if($e)ce([fr==null?void 0:fr.course_id]);else{if(!$e&&!le.includes(fr.course_id)&&le.length>0)return;le!=null&&le.includes(fr==null?void 0:fr.course_id)?ce(le==null?void 0:le.filter(zr=>zr!==(fr==null?void 0:fr.course_id))):ce([...le,fr==null?void 0:fr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:le,onChange:fr=>{ce(fr),He(!1)}}})):!b&&!et&&p.createElement(Fe,{createState:oe,refreshLoading:Ge,onRefresh:xr,onCreate:()=>{$(!1),(0,re.xg)("/classrooms/new")}})),Qe&&p.createElement("div",{className:W.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),p.createElement("div",{className:W.bottom,style:{display:"flex",alignItems:"center"}},p.createElement("div",{style:{flex:1}},p.createElement("div",{className:W.title},p.createElement("img",{src:i.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),p.createElement("div",null,p.createElement(L.ZP,{onClick:yn,className:W.no,style:{marginRight:20}},"\u53D6\u6D88"),p.createElement(me.Z,{onClick:qn,className:W.yes},"\u786E\u8BA4"))))),p.createElement(pe.Z,{resdata:se,type:"exercise",okloading:ut,oktext:(se==null?void 0:se.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:fr=>{er(fr)}}),p.createElement(J.Z,{source:"\u8BD5\u5377",showModal:We,onCancel:()=>mt(!1),okBtnName:"\u524D\u5F80\u6559\u5B66\u8BFE\u5802",info:Rt,onOk:()=>{window.location.href=Rt==null?void 0:Rt.first_category_url}}),p.createElement(ye.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:ln,dataSource:Yt,onSuccess:()=>{tn(!1),xn(!0)},onClose:yn}))};var zt=(0,Se.connect)(({paperlibrary:je,loading:It,globalSetting:ze})=>({paperlibrary:je,globalSetting:ze,loading:It.effects}))(yt)},60240:function(nr,Zt,g){"use strict";g.d(Zt,{c:function(){return Se}});var s=(M=>(M.FirstPage="firstPage",M.PrevPage="prevPage",M.NextPage="nextPage",M))(s||{}),Se=(M=>(M[M.Single=0]="Single",M[M.Multiple=1]="Multiple",M[M.Judge=2]="Judge",M[M.Fill=3]="Fill",M[M.Subjective=4]="Subjective",M[M.Shixun=5]="Shixun",M[M.Program=6]="Program",M[M.Combine=7]="Combine",M))(Se||{})},60594:function(nr,Zt,g){"use strict";g.d(Zt,{AD:function(){return j},BA:function(){return P},D9:function(){return Ae},Hp:function(){return de},IM:function(){return vt},Iy:function(){return Fe},KM:function(){return ke},KU:function(){return zt},MJ:function(){return ue},Ne:function(){return nt},ON:function(){return It},Uj:function(){return ct},VY:function(){return yt},YO:function(){return Pt},YX:function(){return ze},Zn:function(){return T},_g:function(){return re},_k:function(){return ge},c6:function(){return ye},cr:function(){return E},eV:function(){return p},fi:function(){return U},gh:function(){return pe},hS:function(){return Ve},iA:function(){return F},j6:function(){return H},je:function(){return he},jj:function(){return k},kS:function(){return je},lS:function(){return Ce},o6:function(){return J},pO:function(){return x},rQ:function(){return Xe},sA:function(){return ve},xm:function(){return ae},xo:function(){return Nt},y8:function(){return ie},yd:function(){return W}});var s=g(87218),Se=g(88634),M=g(95203),Be=g(6767),te=g(51802),G=Object.defineProperty,Z=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,i=(A,h,C)=>h in A?G(A,h,{enumerable:!0,configurable:!0,writable:!0,value:C}):A[h]=C,N=(A,h)=>{for(var C in h||(h={}))v.call(h,C)&&i(A,C,h[C]);if(Z)for(var C of Z(h))L.call(h,C)&&i(A,C,h[C]);return A},B=(A,h,C)=>new Promise((b,K)=>{var ee=ce=>{try{le(C.next(ce))}catch(Qe){K(Qe)}},Ee=ce=>{try{le(C.throw(ce))}catch(Qe){K(Qe)}},le=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(ee,Ee);le((C=C.apply(A,h)).next())});const D=()=>{(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},O=()=>{(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},T=A=>B(void 0,null,function*(){D(),(yield(0,s.YR)(N({},A))).status===0&&(yield(0,M.QH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/export_couser_info.json`,query:A}))),O()}),E=A=>B(void 0,null,function*(){const h=yield(0,s.yS)(N({},A));if(h.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_member_act_score`);else{if(h.status===-2)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_member_act_score`))}}),U=A=>B(void 0,null,function*(){const h=yield(0,s.W0)(N({},A));if(h.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_score`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_score`))}}),F=A=>B(void 0,null,function*(){const h=yield(0,s.Nl)(N({},A));if(h.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`))}}),W=A=>B(void 0,null,function*(){const h=yield(0,s.IU)(N({},A));if(h.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/export_star_user`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/export_star_user`))}}),re=A=>B(void 0,null,function*(){const h=yield(0,s.td)(N({},A));if(h.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`);else{if(h.status===-2)return h;if(h.status===-3)(0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`);else if(h.status===-4)return h}}),H=A=>B(void 0,null,function*(){const h=yield(0,s.QX)(N({},A));if(h.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_homework`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_homework`))}}),k=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.o_)(N({},A));C.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),de=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.ZL)(N({},A));C.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),ue=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.vV)(N({},A));C.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),Fe=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.aP)(N({},A));C.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),me=A=>B(void 0,null,function*(){D(),(yield exportCourseWorkListAppendix(N({},A))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${A.categoryId}/works_list.zip`,query:A}))),O()}),ve=A=>B(void 0,null,function*(){D(),yield(0,M.FH)("",te.Z.API_SERVER+`/api/polls/${A.categoryId}/commit_result.xlsx`),O()}),pe=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/attendances/export_xlsx_data.xlsx`,query:A}))}),J=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/video_study_statics.xlsx`,query:A}))}),ye=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/export_video_study.xlsx`,query:A}))}),p=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/export_course_students_info.xlsx`,query:A}))}),j=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:A}))}),Xe=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:A}))}),ie=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:A}))}),he=A=>B(void 0,null,function*(){const h=yield(0,s.Uy)(N({},A));h.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_users`)):h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Ce=A=>B(void 0,null,function*(){const h=yield(0,s.tg)(N({},A));h.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_report`)):h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_report`))}),ge=A=>B(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/export_records/${A.id}.xlsx`,query:A}))}),ae=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:A}))}),Ae=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A==null?void 0:A.coursesId}/${A.menuKey}_statistic.xlsx?${A.checkedList.map(h=>`course_group_id[]=${h}`).join("&")}`,query:A}))}),nt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/ec_years/${A==null?void 0:A.ec_year_id}/ec_training_objectives.xlsx`,query:A}))}),vt=A=>B(void 0,null,function*(){yield(0,M.FH)(A==null?void 0:A.name,(0,M.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:A}))}),Ve=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/ec_years/${A==null?void 0:A.ec_year_id}/ec_courses.xlsx`,query:A}))}),Nt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/ec_years/${A==null?void 0:A.ec_year_id}/ec_graduation_requirements.xlsx`,query:A}))}),yt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:A}))}),zt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/exercises/${A.categoryId}/rank_list.xlsx`,query:A}))}),je=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:A}))}),It=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${A.id}.json`,query:A}))}),ze=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/exercises/${A.categoryId}.json`,query:A}))}),Pt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/polls/${A==null?void 0:A.id}/commit_result.json`,query:A}))}),ct=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:A}))}),x=(A,h)=>B(void 0,null,function*(){yield(0,M.FH)(h||"",(0,M.NY)({url:te.Z.API_SERVER+`/api/exercises/${A==null?void 0:A.exercise_id}/consult_exercise.json`,query:A}))}),ke=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/competitions/${A==null?void 0:A.identifier}/competition_commit_records/member_works.xlsx`,query:A}))}),P=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A==null?void 0:A.coursesId}/group_homeworks/import_group_template.xlsx`,query:A}))})},77845:function(nr,Zt,g){"use strict";g.d(Zt,{AL:function(){return H},Iy:function(){return N},Qv:function(){return O},ez:function(){return re},jb:function(){return B}});var s=g(32834),Se=g.n(s),M=g(11690),Be=g.n(M);let te=1;function G(me,ve){const pe=me.match(/^(\s+)(?:```)/);if(pe===null)return ve;const J=pe[1];return ve.split(` -`).map(ye=>{const p=ye.match(/^\s+/);if(p===null)return ye;const[j]=p;return j.length>=J.length?ye.slice(J.length):ye}).join(` -`)}let Z=[],v=["
        "];const L=new(Se()).Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function N(){Z.length=0,v=["
          "]}const B={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function D(me,ve,pe,J){if(ve>=me.length||me[ve].level<=pe)return ve;var ye=me[ve];J.push("
        • "+ye.text+""),ve++;var p=[];return ve=D(me,ve,ye.level,p),p.length>0&&(J.push("
            "),p.forEach(function(j){J.push(j)}),J.push("
          ")),J.push("
        • "),ve=D(me,ve,pe,J),ve}function O(){return D(Z,0,0,v),v.push("
        "),v.join("")}const T={heading(me){const ve=i.exec(me);if(te+=1,ve)return{type:"heading",raw:ve[0],depth:ve[1].length,text:ve[2]}},fences(me){const ve=this.rules.block.fences.exec(me);if(ve){const pe=ve[0];let J=G(pe,ve[3]||"");const ye=ve[2]?ve[2].trim():ve[2];if(["latex","katex","math"].indexOf(ye)>=0){const p=F(),j=J;J=p,W[p]={type:"block",expression:j}}return{type:"code",raw:pe,lang:ye,text:J}}}},E=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let U=0;const F=()=>`__special_katext_id_${U++}__`;let W={};function re(){return W}function H(){U=0,W={}}function k(me){return me=me.replace(E,(ve,pe)=>{const J=F();return W[J]={type:"inline",expression:pe},J}),me}const de=L.listitem;L.listitem=function(me){return de(k(me))};const ue=L.paragraph;L.paragraph=function(me){return ue(k(me))};const Fe=L.tablecell;L.tablecell=function(me,ve){return Fe(k(me),ve)},L.code=function(me,ve,pe){const J=(ve||"").match(/\S*/)[0];return J?["latex","katex","math"].indexOf(J)>=0?`

        ${me}

        `:`
        ${pe?me:(0,M.escape)(me,!0)}
        -`:'
        '+(pe?me:(0,M.escape)(me,!0))+"
        "},L.heading=function(me,ve,pe){let J=this.options.headerPrefix+pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Z.push({anchor:J,level:ve,text:me}),"'+me+""},Se().setOptions({silent:!0,gfm:!0,pedantic:!1}),Se().use({tokenizer:T,renderer:L}),Zt.ZP=Se()},9981:function(nr,Zt){"use strict";const g=function(){const s=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Se=1;Se{const te=M[Be];te!==void 0&&(s[Be]=te)})}return s};Zt.Z=g},86013:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(19248);const M=Be=>{let te;return typeof Be=="object"&&(Be!=null&&Be.clearIcon)?te=Be:Be&&(te={clearIcon:s.createElement(Se.Z,null)}),te};Zt.Z=M},97224:function(nr,Zt,g){"use strict";g.d(Zt,{F:function(){return s}});function s(M){return M!=null&&M===M.window}const Se=M=>{var Be,te;if(typeof window=="undefined")return 0;let G=0;return s(M)?G=M.pageYOffset:M instanceof Document?G=M.documentElement.scrollTop:(M instanceof HTMLElement||M)&&(G=M.scrollTop),M&&!s(M)&&typeof G!="number"&&(G=(te=((Be=M.ownerDocument)!==null&&Be!==void 0?Be:M).documentElement)===null||te===void 0?void 0:te.scrollTop),G};Zt.Z=Se},83010:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return Be}});var s=g(16089);function Se(te,G,Z,v){const L=Z-G;return te/=v/2,te<1?L/2*te*te*te+G:L/2*((te-=2)*te*te+2)+G}var M=g(97224);function Be(te){let G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Z=()=>window,callback:v,duration:L=450}=G,i=Z(),N=(0,M.Z)(i),B=Date.now(),D=()=>{const T=Date.now()-B,E=Se(T>L?L:T,N,te,L);(0,M.F)(i)?i.scrollTo(window.pageXOffset,E):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=E:i.scrollTop=E,T{let{children:Ce}=he;const{getPrefixCls:ge}=s.useContext(Z.E_),ae=ge("breadcrumb");return s.createElement("li",{className:`${ae}-separator`,"aria-hidden":"true"},Ce===""?Ce:Ce||"/")};i.__ANT_BREADCRUMB_SEPARATOR=!0;var N=i,B=function(he,Ce){var ge={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&Ce.indexOf(ae)<0&&(ge[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ae=Object.getOwnPropertySymbols(he);AeCe[Ae]||ae)}function O(he,Ce,ge,ae){if(ge==null)return null;const{className:Ae,onClick:nt}=Ce,vt=B(Ce,["className","onClick"]),Ve=Object.assign(Object.assign({},(0,te.Z)(vt,{data:!0,aria:!0})),{onClick:nt});return ae!==void 0?s.createElement("a",Object.assign({},Ve,{className:M()(`${he}-link`,Ae),href:ae}),ge):s.createElement("span",Object.assign({},Ve,{className:M()(`${he}-link`,Ae)}),ge)}function T(he,Ce){return(ae,Ae,nt,vt,Ve)=>{if(Ce)return Ce(ae,Ae,nt,vt);const Nt=D(ae,Ae);return O(he,ae,Nt,Ve)}}var E=function(he,Ce){var ge={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&Ce.indexOf(ae)<0&&(ge[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ae=Object.getOwnPropertySymbols(he);Ae{const{prefixCls:Ce,separator:ge="/",children:ae,menu:Ae,overlay:nt,dropdownProps:vt,href:Ve}=he,yt=(zt=>{if(Ae||nt){const je=Object.assign({},vt);if(Ae){const It=Ae||{},{items:ze}=It,Pt=E(It,["items"]);je.menu=Object.assign(Object.assign({},Pt),{items:ze==null?void 0:ze.map((ct,x)=>{var{key:ke,title:P,label:A,path:h}=ct,C=E(ct,["key","title","label","path"]);let b=A!=null?A:P;return h&&(b=s.createElement("a",{href:`${Ve}${h}`},b)),Object.assign(Object.assign({},C),{key:ke!=null?ke:x,label:b})})})}else nt&&(je.overlay=nt);return s.createElement(L.Z,Object.assign({placement:"bottom"},je),s.createElement("span",{className:`${Ce}-overlay-link`},zt,s.createElement(v.Z,null)))}return zt})(ae);return yt!=null?s.createElement(s.Fragment,null,s.createElement("li",null,yt),ge&&s.createElement(N,null,ge)):null},F=he=>{const{prefixCls:Ce,children:ge,href:ae}=he,Ae=E(he,["prefixCls","children","href"]),{getPrefixCls:nt}=s.useContext(Z.E_),vt=nt("breadcrumb",Ce);return s.createElement(U,Object.assign({},Ae,{prefixCls:vt}),O(vt,Ae,ge,ae))};F.__ANT_BREADCRUMB_ITEM=!0;var W=F,re=g(36237),H=g(63356),k=g(16931),de=g(51636);const ue=he=>{const{componentCls:Ce,iconCls:ge,calc:ae}=he;return{[Ce]:Object.assign(Object.assign({},(0,H.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[ge]:{fontSize:he.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:he.linkColor,transition:`color ${he.motionDurationMid}`,padding:`0 ${(0,re.unit)(he.paddingXXS)}`,borderRadius:he.borderRadiusSM,height:he.fontHeight,display:"inline-block",marginInline:ae(he.marginXXS).mul(-1).equal(),"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover}},(0,H.Qy)(he)),"li:last-child":{color:he.lastItemColor},[`${Ce}-separator`]:{marginInline:he.separatorMargin,color:he.separatorColor},[`${Ce}-link`]:{[` - > ${ge} + span, - > ${ge} + a - `]:{marginInlineStart:he.marginXXS}},[`${Ce}-overlay-link`]:{borderRadius:he.borderRadiusSM,height:he.fontHeight,display:"inline-block",padding:`0 ${(0,re.unit)(he.paddingXXS)}`,marginInline:ae(he.marginXXS).mul(-1).equal(),[`> ${ge}`]:{marginInlineStart:he.marginXXS,fontSize:he.fontSizeIcon},"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover,a:{color:he.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${he.componentCls}-rtl`]:{direction:"rtl"}})}},Fe=he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS});var me=(0,k.I$)("Breadcrumb",he=>{const Ce=(0,de.mergeToken)(he,{});return ue(Ce)},Fe),ve=function(he,Ce){var ge={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&Ce.indexOf(ae)<0&&(ge[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ae=Object.getOwnPropertySymbols(he);Ae{var{breadcrumbName:vt}=nt,Ve=ve(nt,["breadcrumbName"]);return Object.assign(Object.assign({},Ve),{title:vt})})}),Ae}function J(he,Ce){return(0,s.useMemo)(()=>he||(Ce?Ce.map(pe):null),[he,Ce])}var ye=function(he,Ce){var ge={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&Ce.indexOf(ae)<0&&(ge[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ae=Object.getOwnPropertySymbols(he);Ae{if(Ce===void 0)return Ce;let ge=(Ce||"").replace(/^\//,"");return Object.keys(he).forEach(ae=>{ge=ge.replace(`:${ae}`,he[ae])}),ge},j=he=>{const{prefixCls:Ce,separator:ge="/",style:ae,className:Ae,rootClassName:nt,routes:vt,items:Ve,children:Nt,itemRender:yt,params:zt={}}=he,je=ye(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:It,direction:ze,breadcrumb:Pt}=s.useContext(Z.E_);let ct;const x=It("breadcrumb",Ce),[ke,P,A]=me(x),h=J(Ve,vt),C=T(x,yt);if(h&&h.length>0){const ee=[],Ee=Ve||vt;ct=h.map((le,ce)=>{const{path:Qe,key:He,type:oe,menu:$,overlay:et,onClick:Te,className:Et,separator:at,dropdownProps:Ge}=le,Ut=p(zt,Qe);Ut!==void 0&&ee.push(Ut);const St=He!=null?He:ce;if(oe==="separator")return s.createElement(N,{key:St},at);const Ie={},$e=ce===h.length-1;$?Ie.menu=$:et&&(Ie.overlay=et);let{href:ut}=le;return ee.length&&Ut!==void 0&&(ut=`#/${ee.join("/")}`),s.createElement(U,Object.assign({key:St},Ie,(0,te.Z)(le,{data:!0,aria:!0}),{className:Et,dropdownProps:Ge,href:ut,separator:$e?"":ge,onClick:Te,prefixCls:x}),C(le,zt,Ee,ee,ut))})}else if(Nt){const ee=(0,Be.Z)(Nt).length;ct=(0,Be.Z)(Nt).map((Ee,le)=>{if(!Ee)return Ee;const ce=le===ee-1;return(0,G.Tm)(Ee,{separator:ce?"":ge,key:le})})}const b=M()(x,Pt==null?void 0:Pt.className,{[`${x}-rtl`]:ze==="rtl"},Ae,nt,P,A),K=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),ae);return ke(s.createElement("nav",Object.assign({className:b,style:K},je),s.createElement("ol",null,ct)))};j.Item=W,j.Separator=N;var Xe=j,ie=Xe},62673:function(nr,Zt,g){"use strict";g.d(Zt,{default:function(){return me}});var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(16632),te=g(8654),G=g(12919),Z=g(63872),v=g(48755),L=g(2171),i=g(83397),N=g(56553),D=s.createContext(null),O=g(36170),T=g(74632),E=function(ve,pe){var J={};for(var ye in ve)Object.prototype.hasOwnProperty.call(ve,ye)&&pe.indexOf(ye)<0&&(J[ye]=ve[ye]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,ye=Object.getOwnPropertySymbols(ve);p{var J;const{prefixCls:ye,className:p,rootClassName:j,children:Xe,indeterminate:ie=!1,style:he,onMouseEnter:Ce,onMouseLeave:ge,skipGroup:ae=!1,disabled:Ae}=ve,nt=E(ve,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:vt,direction:Ve,checkbox:Nt}=s.useContext(v.E_),yt=s.useContext(D),{isFormItemInput:zt}=s.useContext(N.aM),je=s.useContext(L.Z),It=(J=(yt==null?void 0:yt.disabled)||Ae)!==null&&J!==void 0?J:je,ze=s.useRef(nt.value),Pt=s.useRef(null),ct=(0,te.sQ)(pe,Pt);s.useEffect(()=>{yt==null||yt.registerValue(nt.value)},[]),s.useEffect(()=>{if(!ae)return nt.value!==ze.current&&(yt==null||yt.cancelValue(ze.current),yt==null||yt.registerValue(nt.value),ze.current=nt.value),()=>yt==null?void 0:yt.cancelValue(nt.value)},[nt.value]),s.useEffect(()=>{var le;!((le=Pt.current)===null||le===void 0)&&le.input&&(Pt.current.input.indeterminate=ie)},[ie]);const x=vt("checkbox",ye),ke=(0,i.Z)(x),[P,A,h]=(0,O.ZP)(x,ke),C=Object.assign({},nt);yt&&!ae&&(C.onChange=function(){nt.onChange&&nt.onChange.apply(nt,arguments),yt.toggleOption&&yt.toggleOption({label:Xe,value:nt.value})},C.name=yt.name,C.checked=yt.value.includes(nt.value));const b=M()(`${x}-wrapper`,{[`${x}-rtl`]:Ve==="rtl",[`${x}-wrapper-checked`]:C.checked,[`${x}-wrapper-disabled`]:It,[`${x}-wrapper-in-form-item`]:zt},Nt==null?void 0:Nt.className,p,j,h,ke,A),K=M()({[`${x}-indeterminate`]:ie},Z.A,A),[ee,Ee]=(0,T.Z)(C.onClick);return P(s.createElement(G.Z,{component:"Checkbox",disabled:It},s.createElement("label",{className:b,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),he),onMouseEnter:Ce,onMouseLeave:ge,onClick:ee},s.createElement(Be.Z,Object.assign({},C,{onClick:Ee,prefixCls:x,className:K,disabled:It,ref:ct})),Xe!==void 0&&s.createElement("span",{className:`${x}-label`},Xe))))};var W=s.forwardRef(U),re=g(94480),H=g(2738),k=function(ve,pe){var J={};for(var ye in ve)Object.prototype.hasOwnProperty.call(ve,ye)&&pe.indexOf(ye)<0&&(J[ye]=ve[ye]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,ye=Object.getOwnPropertySymbols(ve);p{const{defaultValue:J,children:ye,options:p=[],prefixCls:j,className:Xe,rootClassName:ie,style:he,onChange:Ce}=ve,ge=k(ve,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ae,direction:Ae}=s.useContext(v.E_),[nt,vt]=s.useState(ge.value||J||[]),[Ve,Nt]=s.useState([]);s.useEffect(()=>{"value"in ge&&vt(ge.value||[])},[ge.value]);const yt=s.useMemo(()=>p.map(K=>typeof K=="string"||typeof K=="number"?{label:K,value:K}:K),[p]),zt=K=>{Nt(ee=>ee.filter(Ee=>Ee!==K))},je=K=>{Nt(ee=>[].concat((0,re.Z)(ee),[K]))},It=K=>{const ee=nt.indexOf(K.value),Ee=(0,re.Z)(nt);ee===-1?Ee.push(K.value):Ee.splice(ee,1),"value"in ge||vt(Ee),Ce==null||Ce(Ee.filter(le=>Ve.includes(le)).sort((le,ce)=>{const Qe=yt.findIndex(oe=>oe.value===le),He=yt.findIndex(oe=>oe.value===ce);return Qe-He}))},ze=ae("checkbox",j),Pt=`${ze}-group`,ct=(0,i.Z)(ze),[x,ke,P]=(0,O.ZP)(ze,ct),A=(0,H.Z)(ge,["value","disabled"]),h=p.length?yt.map(K=>s.createElement(W,{prefixCls:ze,key:K.value.toString(),disabled:"disabled"in K?K.disabled:ge.disabled,value:K.value,checked:nt.includes(K.value),onChange:K.onChange,className:`${Pt}-item`,style:K.style,title:K.title,id:K.id,required:K.required},K.label)):ye,C={toggleOption:It,value:nt,disabled:ge.disabled,name:ge.name,registerValue:je,cancelValue:zt},b=M()(Pt,{[`${Pt}-rtl`]:Ae==="rtl"},Xe,ie,P,ct,ke);return x(s.createElement("div",Object.assign({className:b,style:he},A,{ref:pe}),s.createElement(D.Provider,{value:C},h)))});const Fe=W;Fe.Group=ue,Fe.__ANT_CHECKBOX=!0;var me=Fe},36170:function(nr,Zt,g){"use strict";g.d(Zt,{C2:function(){return G}});var s=g(36237),Se=g(63356),M=g(51636),Be=g(16931);const te=Z=>{const{checkboxCls:v}=Z,L=`${v}-wrapper`;return[{[`${v}-group`]:Object.assign(Object.assign({},(0,Se.Wf)(Z)),{display:"inline-flex",flexWrap:"wrap",columnGap:Z.marginXS,[`> ${Z.antCls}-row`]:{flex:1}}),[L]:Object.assign(Object.assign({},(0,Se.Wf)(Z)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${L}`]:{marginInlineStart:0},[`&${L}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[v]:Object.assign(Object.assign({},(0,Se.Wf)(Z)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Z.borderRadiusSM,alignSelf:"center",[`${v}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${v}-inner`]:Object.assign({},(0,Se.oN)(Z))},[`${v}-inner`]:{boxSizing:"border-box",display:"block",width:Z.checkboxSize,height:Z.checkboxSize,direction:"ltr",backgroundColor:Z.colorBgContainer,border:`${(0,s.unit)(Z.lineWidth)} ${Z.lineType} ${Z.colorBorder}`,borderRadius:Z.borderRadiusSM,borderCollapse:"separate",transition:`all ${Z.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Z.calc(Z.checkboxSize).div(14).mul(5).equal(),height:Z.calc(Z.checkboxSize).div(14).mul(8).equal(),border:`${(0,s.unit)(Z.lineWidthBold)} solid ${Z.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Z.motionDurationFast} ${Z.motionEaseInBack}, opacity ${Z.motionDurationFast}`}},"& + span":{paddingInlineStart:Z.paddingXS,paddingInlineEnd:Z.paddingXS}})},{[` - ${L}:not(${L}-disabled), +`)}]};var v=p(53184),N=p.n(v),i=(Ze,Pt,ct)=>new Promise((x,Ke)=>{var P=C=>{try{h(ct.next(C))}catch(b){Ke(b)}},A=C=>{try{h(ct.throw(C))}catch(b){Ke(b)}},h=C=>C.done?x(C.value):Promise.resolve(C.value).then(P,A);h((ct=ct.apply(Ze,Pt)).next())});const L={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},B=(Ze,Pt,ct,x)=>{const Ke=Pt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ct.lineNumber,endColumn:ct.column});return Array.from(new Set(Ke.match(/\b\w{2,}\b/g)||[])).map(A=>({label:A,kind:Ze.languages.CompletionItemKind.Text,insertText:A,range:x}))},D=(Ze,Pt,ct,x)=>{Ze.languages.registerCompletionItemProvider(Pt,{provideCompletionItems(Ke,P){const A=Ke.getWordUntilPosition(P),h={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:A.startColumn,endColumn:A.endColumn},C=Ke.getLineContent(P.lineNumber).substring(A.startColumn-2,A.endColumn);return{suggestions:[...B(Ze,Ke,P,h),...ct.map(K=>({label:K,kind:Ze.languages.CompletionItemKind.Keyword,documentation:K,insertText:K,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:h})),...x.map(K=>({label:K.label,kind:Ze.languages.CompletionItemKind.Snippet,documentation:K.content,insertText:C.startsWith("#")?K.content.replace(/#/,""):K.content,insertTextRules:Ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:h}))]}}})};var O=Ze=>{L.languages.forEach(Pt=>{Ze.languages.registerDocumentFormattingEditProvider(Pt,{provideDocumentFormattingEdits(ct){return i(this,null,function*(){const x=N()(ct.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:ct.getFullModelRange(),text:x}]})}})}),D(Ze,"java",we.keywords,we.quickKey),D(Ze,"cpp",te.keywords,te.quickKey),D(Ze,"c",M.keywords,[]),D(Ze,"python",$.keywords,$.quickKey),D(Ze,"scala",Z.keywords,Z.quickKey)};const T="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var E=Object.defineProperty,I=(Ze,Pt,ct)=>Pt in Ze?E(Ze,Pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ze[Pt]=ct,U=(Ze,Pt,ct)=>I(Ze,typeof Pt!="symbol"?Pt+"":Pt,ct);const W=class Dm{constructor(Pt,ct,x){this.placeholder=Pt,this.editor=ct,this.monaco=x,ct.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Dm.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};U(W,"ID","editor.widget.placeholderHint");var k=W,H=p(96236),de=p(6767),ce=p(25399),Fe=p(89392),ve=p(86050),pe=p(56102),Ce=Object.defineProperty,G=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,oe=(Ze,Pt,ct)=>Pt in Ze?Ce(Ze,Pt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ze[Pt]=ct,he=(Ze,Pt)=>{for(var ct in Pt||(Pt={}))j.call(Pt,ct)&&oe(Ze,ct,Pt[ct]);if(g)for(var ct of g(Pt))Ye.call(Pt,ct)&&oe(Ze,ct,Pt[ct]);return Ze},be=(Ze,Pt)=>G(Ze,ge(Pt)),me=(Ze,Pt)=>{var ct={};for(var x in Ze)j.call(Ze,x)&&Pt.indexOf(x)<0&&(ct[x]=Ze[x]);if(Ze!=null&&g)for(var x of g(Ze))Pt.indexOf(x)<0&&Ye.call(Ze,x)&&(ct[x]=Ze[x]);return ct},ae=(Ze,Pt,ct)=>new Promise((x,Ke)=>{var P=C=>{try{h(ct.next(C))}catch(b){Ke(b)}},A=C=>{try{h(ct.throw(C))}catch(b){Ke(b)}},h=C=>C.done?x(C.value):Promise.resolve(C.value).then(P,A);h((ct=ct.apply(Ze,Pt)).next())});function se(Ze){return/^\d+$/.test(Ze)?`${Ze}px`:Ze}function Je(){}let mt=!1;const Me={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Nt(Ze=[]){let Pt=Ze;if(Array.isArray(Ze)){for(let ct=0;ctae(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ze){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ze)}});var je=Ze=>{var Pt=Ze,{width:ct="100%",height:x="100%",value:Ke,language:P="javascript",style:A={},options:h={},overrideServices:C={},theme:b="vs-dark",onEditBlur:K,isCopy:ee=!1,onSave:Ee,autoHeight:le=!1,forbidCopy:ue=!1,forbidCopyTips:Qe,onChange:ke=Je,editorDidMount:ie=Je,onFocus:X=Je,onBreakPoint:tt=Je,breakPointValue:Te=[],filename:Et="educoder.txt",errorLine:at,errorContent:Ge="",highlightLine:Ut,openBreakPoint:St=!1,placeholder:Ie="",showMiniMap:$e=!0}=Pt,ut=me(Pt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Qt=(0,s.useRef)(),Ae=(0,s.useRef)({}),Oe=(0,s.useRef)(),We=(0,s.useRef)(),vt=(0,s.useRef)([]),Rt=(0,s.useRef)(!1),en=(0,s.useRef)(),En=(0,s.useRef)(),xn=(0,s.useRef)(!1),[ln,tn]=(0,s.useState)(!1);function Yt(){let Dn;return Qt.current&&(Dn=new Se.Z(Cn=>{for(let br of Cn)(br.target.offsetHeight>0||br.target.offsetWidth>0)&&Ae.current.instance.layout()}),Dn.observe(Qt.current)),Dn}function cn(){de.ZP.warning({content:decodeURIComponent(Qe||T),key:"monaco-editor-tip"})}const yn=()=>{let Dn=Ae.current.instance;if(Ke!=null&&Dn&&ln){const Cn=Dn.getModel();Cn&&Ke!==Cn.getValue()&&(mt=!0,Cn.setValue(Ke),Dn.layout(),mt=!1)}};(0,s.useEffect)(()=>{const Dn=ve.Z.subscribe("formatDocument",Cn=>{var br;let Or=Ae.current.instance;(br=Or==null?void 0:Or.getAction)==null||br.call(Or,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{ke(Cn)},Dn},[]),(0,s.useEffect)(()=>{var Dn;let Cn=Ae.current.instance;We.current&&clearTimeout(We.current),We.current=setTimeout(()=>{yn()},500),Ke&&(Ke!=null&&Ke.length)&&((Dn=Cn==null?void 0:Cn.updateOptions)==null||Dn.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ke,ln,Ae.current]),(0,s.useEffect)(()=>{if(at&&Ae.current&&Ae.current.instance){let Cn=Ae.current.instance;Cn.changeViewZones(function(br){var Or=document.createElement("div");Or.style.padding="10px 20px",Or.style.width="calc(100% - 20px)",Or.className="my-error-line-wrp",Or.innerHTML=Ge,br.addZone({afterLineNumber:at||11,heightInLines:3,domNode:Or})});var Dn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Cn.addOverlayWidget(Dn),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[at,Ae.current,ln]);const In=(Dn="",Cn)=>{if(!Dn||Dn.trim()==="")return!0;const Or=Ae.current.instance.getModel().getLineTokens(Cn);let wt=!1;for(let dt=0;dt<2;dt++)Or.getStandardTokenType(dt)===1&&(wt=!0);return wt};(0,s.useEffect)(()=>{var Dn;const Cn=(Dn=Ae.current)==null?void 0:Dn.instance;if(Cn&&ln&&ue){const br=Cn.onDidBlurEditorWidget(()=>{xn.current=!1}),Or=Cn.onDidFocusEditorText(()=>{xn.current=!0});return()=>{br.dispose(),Or.dispose()}}},[Ae.current,ln,ue]),(0,s.useEffect)(()=>{var Dn;if((Dn=Ae.current)!=null&&Dn.instance&&ln&&St){let Cn=Ae.current.instance,br=Cn.getModel();if(!br)return;(()=>{var hn;let Mn=[],sr=[];const Wn=br.getAllDecorations();for(let hr of Wn)hr.options.className==="highlighted-line"&&(Mn.push((hn=hr==null?void 0:hr.range)==null?void 0:hn.startLineNumber),sr.push(hr==null?void 0:hr.id));if(Ut===Mn[0])return;br.deltaDecorations(sr,[]);const Sr=br.getLineCount();Ut&&Ut<=Sr&&(Cn.deltaDecorations([],[{range:new yt.Range(Ut,1,Ut,br.getLineMaxColumn(Ut)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(Ut))})();const wt=(hn=!1)=>{var Mn;let sr=[],Wn=[];const Sr=br.getAllDecorations();for(let hr of Sr)hr.options.linesDecorationsClassName==="breakpoints-select"&&(sr.push((Mn=hr==null?void 0:hr.range)==null?void 0:Mn.startLineNumber),Wn.push(hr==null?void 0:hr.id));if(hn)return{lines:sr,ids:Wn};tt(sr)},dt=hn=>ae(void 0,null,function*(){let Mn={range:new yt.Range(hn,1,hn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield br.deltaDecorations([],[Mn]),wt()}),Sn=hn=>ae(void 0,null,function*(){let Mn=[];const sr=Cn.getLineDecorations(hn);for(let Wn of sr)Wn.options.linesDecorationsClassName==="breakpoints-select"&&Mn.push(Wn.id);yield br.deltaDecorations(Mn,[]),wt()}),Re=hn=>{let Mn=Cn.getLineDecorations(hn);for(let sr of Mn)if(sr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Fe.isEqual)(Te,wt(!0).lines)){br.deltaDecorations(wt(!0).ids,[]);const hn=Te.map(Mn=>({range:new yt.Range(Mn,1,Mn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));br.deltaDecorations([],hn)}const lt=Cn.onDidChangeModelContent(hn=>{let Mn=Cn.getPosition();if(Mn){let sr=Mn.lineNumber;clearTimeout(En.current),En.current=setTimeout(()=>{In(br.getLineContent(sr),sr)?Sn(sr):Re(sr)?(Sn(sr),dt(sr)):wt()},100)}}),Bt=Cn.onMouseDown(hn=>{var Mn,sr,Wn;if(hn.target.detail&&((Wn=(sr=(Mn=hn.target)==null?void 0:Mn.element)==null?void 0:sr.className)!=null&&Wn.includes("line-numbers"))){let Sr=hn.target.position.lineNumber;if(In(br.getLineContent(Sr),Sr))return;Re(Sr)?Sn(Sr):dt(Sr)}}),qt=hn=>{let Mn={range:new yt.Range(hn,1,hn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vt.current=Cn.deltaDecorations(vt.current,[Mn])},bn=()=>{vt.current=Cn.deltaDecorations(vt.current,[])},zn=Cn.onMouseMove(hn=>{var Mn,sr,Wn;if(bn(),hn.target.detail&&((Wn=(sr=(Mn=hn.target)==null?void 0:Mn.element)==null?void 0:sr.className)!=null&&Wn.includes("line-numbers"))){let Sr=hn.target.position.lineNumber;if(In(br.getLineContent(Sr),Sr))return;qt(Sr)}}),Yn=Cn.onMouseLeave(()=>{bn()});return()=>{lt.dispose(),Bt.dispose(),zn.dispose(),Yn.dispose()}}},[Ae.current,ln,Te,Ut,St,P]),(0,s.useEffect)(()=>{var Dn;(Dn=Ae.current)!=null&&Dn.instance&&St&&Ae.current.instance.setPosition({lineNumber:0,column:0})},[Ut]);function Kn(){let Dn=Ae.current.instance;if(Dn){const Cn=Dn.getSelection(),br=Ae.current.pastePos||{},Or=new yt.Range(br.startLineNumber||Cn.endLineNumber,br.startColumn||Cn.endColumn,br.endLineNumber||Cn.endLineNumber,br.endColumn||Cn.endColumn);setTimeout(()=>{Dn.executeEdits("",[{range:Or,text:""}])},300)}}function qn(Dn){(window.navigator.platform.match("Mac")?Dn.metaKey:Dn.ctrlKey)&&Dn.keyCode==83&&(Dn.preventDefault(),Ee())}const er=()=>{if(le&&Ae.current.instance){const Dn=Ae.current.instance.getContentHeight();ao(Dn{if(!xn.current)return;const{keyCode:Cn,ctrlKey:br,metaKey:Or,target:wt,type:dt}=Dn;return(dt==="paste"||(Cn===67||Cn===86)&&(Or||br))&&wt.nodeName==="TEXTAREA"&&(cn(),Dn.preventDefault()),!1};function fr(Dn,Cn){var br=window.URL||window.webkitURL||window,Or=new Blob([Cn]),wt=document.createElementNS("http://www.w3.org/1999/xhtml","a");wt.href=br.createObjectURL(Or),wt.download=Dn,xr(wt)}(0,s.useEffect)(()=>{er()},[er]),(0,s.useEffect)(()=>{Qt.current&&!ln&&Promise.all([p.e(8909),p.e(5507)]).then(p.bind(p,71448)).then(Dn=>{try{yt=Dn,Ae.current.instance=yt.editor.create(Qt.current,{value:Ke,language:Nt(P),theme:b,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:$e||!1}},C);const Cn=Ae.current.instance;let wt=[...H.BH._menuItems].find(lt=>lt[0]._debugName=="EditorContext")[1],dt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Sn=(lt,Bt)=>{var qt,bn;let zn=lt._first;do Bt.includes((bn=(qt=zn.element)==null?void 0:qt.command)==null?void 0:bn.id)&<._remove(zn);while(zn=zn.next)};if(ie(Cn,yt),setTimeout(()=>{er(),Ae.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{fr(Et||"educoder.txt",Cn.getValue())}})},500),Ae.current.subscription=Cn.onDidChangeModelContent(lt=>{Rt.current?clearTimeout(en.current):(er(),ke(Cn.getValue(),lt)),en.current=setTimeout(()=>{Rt.current=!1},500)}),window.Monaco||O(yt,Nt(P)),ue&&(Sn(wt,dt),Qt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lr),window.removeEventListener("paste",Lr),window.addEventListener("keydown",Lr),window.addEventListener("paste",Lr)),window.Monaco=yt,K&&Cn.onDidBlurEditorWidget(()=>{K(Cn.getValue())}),X&&Cn.onDidFocusEditorText(()=>{ue&&zt(),X(Cn.getValue())}),ue){zt();try{Cn.onDidPaste(lt=>{const Bt=Cn.getSelection(),qt=Ae.current.pastePos||{},bn=new yt.Range(qt.startLineNumber||Bt.endLineNumber,qt.startColumn||Bt.endColumn,qt.endLineNumber||Bt.endLineNumber,qt.endColumn||Bt.endColumn);Cn.executeEdits("",[{range:lt.range,text:""}])})}catch(lt){}}let Re=Yt();return Ie&&typeof Ie=="string"&&new k(Ie,Cn,yt),tn(!0),()=>{const lt=Ae.current.instance;lt.dispose();const Bt=lt.getModel();Bt&&Bt.dispose(),Ae.current.subscription&&Ae.current.subscription.dispose(),Re.unobserve(Qt.current)}}catch(Cn){}})},[]),(0,s.useEffect)(()=>{if(Ae.current.instance&&ln)return document.addEventListener("keydown",qn,!1),()=>{document.removeEventListener("keydown",qn)}},[Ee,ln]),(0,s.useEffect)(()=>{let Dn=Ae.current.instance;if(Dn&&ln){let Cn=Nt(P);yt.editor.setModelLanguage(Dn.getModel(),Cn)}},[P,ln]),(0,s.useEffect)(()=>{Ae.current.instance&&ln&&yt.editor.setTheme(b)},[b,ln]),(0,s.useEffect)(()=>{let Dn=Ae.current.instance;Oe.current=h,Dn&&ln&&(Dn.updateOptions(he({},h)),setTimeout(()=>{Dn.getModel().updateOptions(he({},h))},200))},[JSON.stringify(h),ln]),(0,s.useEffect)(()=>{let Dn=Ae.current.instance;Dn&&ln&&Dn.layout()},[ct,x,ln]);const[Jn,zr]=(0,s.useState)(se(ct)),[pr,ao]=(0,s.useState)(se(x)),mo=be(he({},A),{width:Jn,height:pr,position:"relative"});return s.createElement("div",{className:"my-monaco-editor",ref:Qt,style:mo,onFocus:()=>{ue&&zt()}},ee&&s.createElement(pe.CopyToClipboard,{text:Ke,onCopy:()=>de.ZP.success("\u590D\u5236\u6210\u529F")},s.createElement(ce.Z,{title:"\u590D\u5236\u4EE3\u7801"},s.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},s.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function It({width:Ze="100%",height:Pt="100%",original:ct,modified:x,language:Ke,options:P={}}){const A=(0,s.useRef)(),[h,C]=(0,s.useState)(null);function b(le){let ue;return A.current&&(ue=new Se.Z(Qe=>{for(let ke of Qe)(ke.target.offsetHeight>0||ke.target.offsetWidth>0)&&le.layout()}),ue.observe(A.current)),ue}(0,s.useEffect)(()=>(A.current&&Promise.all([p.e(8909),p.e(9404)]).then(p.bind(p,2550)).then(le=>{yt=le;const ue=yt.editor.createDiffEditor(A.current,be(he({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},P),{wordWrap:!0}));C(ue);let Qe=b(ue);return()=>{ue.dispose();const ke=ue.getModel();ke&&ke.dispose(),Qe.unobserve(A.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,s.useEffect)(()=>{h&&h.setModel({original:yt.editor.createModel(ct,Ke),modified:yt.editor.createModel(x,Ke)})},[ct,x,Ke,h]);const K=se(Ze),ee=se(Pt),Ee={width:K,height:ee};return s.createElement("div",{className:"my-diff-editor",ref:A,style:Ee})}},42968:function(nr,Zt,p){"use strict";p.d(Zt,{B:function(){return N},F:function(){return v}});var s=p(44164),Se=p.n(s),M=p(86129),we=p.n(M),te=(i,L,B)=>new Promise((D,O)=>{var T=U=>{try{I(B.next(U))}catch(W){O(W)}},E=U=>{try{I(B.throw(U))}catch(W){O(W)}},I=U=>U.done?D(U.value):Promise.resolve(U.value).then(T,E);I((B=B.apply(i,L)).next())});const $=()=>{document.body.scrollIntoView()},Z=()=>{document.querySelectorAll("canvas").forEach(i=>{(!i.clientWidth||!i.clientHeight)&&i.remove()})},v=(i,L)=>te(void 0,null,function*(){$(),Z();const B={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let D=Se()();for(let T=0;Tte(void 0,null,function*(){Tte(void 0,null,function*(){$(),Z();const B={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let D=Se()();for(let O=0;Ote(void 0,null,function*(){Ozt in yt?j(yt,zt,{enumerable:!0,configurable:!0,writable:!0,value:je}):yt[zt]=je,me=(yt,zt)=>{for(var je in zt||(zt={}))oe.call(zt,je)&&be(yt,je,zt[je]);if(Ye)for(var je of Ye(zt))he.call(zt,je)&&be(yt,je,zt[je]);return yt},ae=(yt,zt,je)=>new Promise((It,Ze)=>{var Pt=Ke=>{try{x(je.next(Ke))}catch(P){Ze(P)}},ct=Ke=>{try{x(je.throw(Ke))}catch(P){Ze(P)}},x=Ke=>Ke.done?It(Ke.value):Promise.resolve(Ke.value).then(Pt,ct);x((je=je.apply(yt,zt)).next())});const{TextArea:se}=M.default,Je={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},mt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Me=({newExercisePaper:yt,isExportBlank:zt=!1,paperlibrary:je,user:It,globalSetting:Ze,loading:Pt,dispatch:ct})=>{var x,Ke,P,A,h,C,b,K,ee,Ee,le,ue,Qe,ke,ie,X,tt,Te,Et;const at=(0,Se.useLocation)(),Ge=(0,Se.useParams)(),[Ut]=(0,Se.useSearchParams)(),[St,Ie]=(0,s.useState)(),$e=(0,s.useRef)(),[ut,Qt]=(0,s.useState)(),[Ae,Oe]=(0,s.useState)(),[We,vt]=(0,s.useState)([]),[Rt,en]=(0,s.useState)(!1),[En,xn]=(0,s.useState)(""),[ln,tn]=(0,s.useState)(!1),[Yt,cn]=(0,s.useState)(!1),yn=Ut.get("isIntelligentAssistant"),In=((P=(Ke=(x=je.paperData)==null?void 0:x.questionList)==null?void 0:Ke.filter(Re=>Re.question_type===5))==null?void 0:P.length)>0,Kn=((C=(h=(A=je.paperData)==null?void 0:A.questionList)==null?void 0:h.filter(Re=>Re.question_type===6))==null?void 0:C.length)>0,[qn,er]=(0,s.useState)({param_show_hack_description:!1,param_show_hack_sets:!1,param_show_challenge_task_pass:!1,param_show_challenge_test_sets:!0});(0,s.useEffect)(()=>{var Re;return console.log((Re=je.paperData)==null?void 0:Re.questionList),ct({type:"globalSetting/footerToggle",payload:!1}),()=>{ct({type:"globalSetting/footerToggle",payload:!0})}},[]),(0,s.useEffect)(()=>{$e.current=Ge==null?void 0:Ge.id,Ie(Ut.get("defaultActiveKey")||"0"),Jn(),Lr(),xr()},[Ge==null?void 0:Ge.id]),(0,s.useEffect)(()=>{var Re;if((Re=yt.exerciseExportHeadData)!=null&&Re.title){const lt=yt.exerciseExportHeadData;Qt(me({},lt||{}));const{table:Bt}=lt||{};let qt,bn;(Bt!=null&&Bt.total_singles_scores||Bt!=null&&Bt.total_doubles_scores||Bt!=null&&Bt.total_nulls_scores||Bt!=null&&Bt.total_judges_scores||Bt!=null&&Bt.total_pros_scores||Bt!=null&&Bt.total_shixuns_scores||Bt!=null&&Bt.total_mains_scores||Bt!=null&&Bt.total_combination_scores||Bt!=null&&Bt.total_bpros_scores)&&(qt=Number(Bt==null?void 0:Bt.total_singles_scores)+Number(Bt==null?void 0:Bt.total_doubles_scores)+Number(Bt==null?void 0:Bt.total_nulls_scores)+Number(Bt==null?void 0:Bt.total_judges_scores)+Number(Bt==null?void 0:Bt.total_pros_scores)+Number(Bt==null?void 0:Bt.total_shixuns_scores)+Number(Bt==null?void 0:Bt.total_mains_scores)+Number(Bt==null?void 0:Bt.total_combination_scores)+Number(Bt==null?void 0:Bt.total_bpros_scores)),(Bt!=null&&Bt.singles_scores||Bt!=null&&Bt.doubles_scores||Bt!=null&&Bt.nulls_scores||Bt!=null&&Bt.judges_scores||Bt!=null&&Bt.pros_scores||Bt!=null&&Bt.bpros_scores||Bt!=null&&Bt.shixuns_scores||Bt!=null&&Bt.mains_scores||Bt!=null&&Bt.combination_scores)&&(bn=Number(Bt==null?void 0:Bt.singles_scores)+Number(Bt==null?void 0:Bt.doubles_scores)+Number(Bt==null?void 0:Bt.nulls_scores)+Number(Bt==null?void 0:Bt.judges_scores)+Number(Bt==null?void 0:Bt.pros_scores)+Number(Bt==null?void 0:Bt.bpros_scores)+Number(Bt==null?void 0:Bt.shixuns_scores)+Number(Bt==null?void 0:Bt.mains_scores)+Number(Bt==null?void 0:Bt.combination_scores));const zn=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Bt==null?void 0:Bt.total_singles_scores,doubles_score:Bt==null?void 0:Bt.total_doubles_scores,nulls_score:Bt==null?void 0:Bt.total_nulls_scores,judges_score:Bt==null?void 0:Bt.total_judges_scores,pros_score:Bt==null?void 0:Bt.total_pros_scores,bpros_score:Bt==null?void 0:Bt.total_bpros_scores,shixuns_score:Bt==null?void 0:Bt.total_shixuns_scores,mains_score:Bt==null?void 0:Bt.total_mains_scores,combinations_score:Bt==null?void 0:Bt.total_combination_scores,total_score:qt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Bt==null?void 0:Bt.singles_scores,doubles_score:Bt==null?void 0:Bt.doubles_scores,nulls_score:Bt==null?void 0:Bt.nulls_scores,judges_score:Bt==null?void 0:Bt.judges_scores,pros_score:Bt==null?void 0:Bt.pros_scores,bpros_score:Bt==null?void 0:Bt.bpros_scores,shixuns_score:Bt==null?void 0:Bt.shixuns_scores,mains_score:Bt==null?void 0:Bt.mains_scores,combinations_score:Bt==null?void 0:Bt.combination_scores,total_score:bn},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Yn=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Bt==null?void 0:Bt.total_singles_scores,doubles_score:Bt==null?void 0:Bt.total_doubles_scores,nulls_score:Bt==null?void 0:Bt.total_nulls_scores,judges_score:Bt==null?void 0:Bt.total_judges_scores,pros_score:Bt==null?void 0:Bt.total_pros_scores,bpros_score:Bt==null?void 0:Bt.total_bpros_scores,shixuns_score:Bt==null?void 0:Bt.total_shixuns_scores,mains_score:Bt==null?void 0:Bt.total_mains_scores,combinations_score:Bt==null?void 0:Bt.combination_scores,total_score:qt},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Oe([...zt?Yn:zn])}},[yt.exerciseExportHeadData]);const xr=()=>ae(void 0,null,function*(){var Re;const lt=yield(0,re.cV)({id:Ge.id});lt.status==0&&vt(lt.data),yield Lr(),Ut.get("exportPDF")&&((Re=je.paperData)!=null&&Re.questionList)&&(we.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,W.F)(ao.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),Lr=()=>ae(void 0,null,function*(){const Re=yield(0,re.Dq)(Ge.id);Qt(Re||{});const{table:lt}=Re||{};let Bt,qt;(lt!=null&<.total_singles_scores||lt!=null&<.total_doubles_scores||lt!=null&<.total_nulls_scores||lt!=null&<.total_judges_scores||lt!=null&<.total_pros_scores||lt!=null&<.total_shixuns_scores||lt!=null&<.total_mains_scores||lt!=null&<.total_combination_scores||lt!=null&<.total_bpros_scores)&&(Bt=Number(lt==null?void 0:lt.total_singles_scores)+Number(lt==null?void 0:lt.total_doubles_scores)+Number(lt==null?void 0:lt.total_nulls_scores)+Number(lt==null?void 0:lt.total_judges_scores)+Number(lt==null?void 0:lt.total_pros_scores)+Number(lt==null?void 0:lt.total_shixuns_scores)+Number(lt==null?void 0:lt.total_mains_scores)+Number(lt==null?void 0:lt.total_combination_scores)+Number(lt==null?void 0:lt.total_bpros_scores)),(lt!=null&<.singles_scores||lt!=null&<.doubles_scores||lt!=null&<.nulls_scores||lt!=null&<.judges_scores||lt!=null&<.pros_scores||lt!=null&<.bpros_scores||lt!=null&<.shixuns_scores||lt!=null&<.mains_scores||lt!=null&<.combinations_score)&&(qt=Number(lt==null?void 0:lt.singles_scores)+Number(lt==null?void 0:lt.doubles_scores)+Number(lt==null?void 0:lt.nulls_scores)+Number(lt==null?void 0:lt.judges_scores)+Number(lt==null?void 0:lt.pros_scores)+Number(lt==null?void 0:lt.bpros_scores)+Number(lt==null?void 0:lt.shixuns_scores)+Number(lt==null?void 0:lt.mains_scores)+Number(lt==null?void 0:lt.combinations_score));const bn=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:lt==null?void 0:lt.total_singles_scores,doubles_score:lt==null?void 0:lt.total_doubles_scores,nulls_score:lt==null?void 0:lt.total_nulls_scores,judges_score:lt==null?void 0:lt.total_judges_scores,pros_score:lt==null?void 0:lt.total_pros_scores,bpros_score:lt==null?void 0:lt.total_bpros_scores,shixuns_score:lt==null?void 0:lt.total_shixuns_scores,combinations_score:lt==null?void 0:lt.total_combination_scores,mains_score:lt==null?void 0:lt.total_mains_scores,total_score:Bt},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:lt==null?void 0:lt.singles_scores,doubles_score:lt==null?void 0:lt.doubles_scores,nulls_score:lt==null?void 0:lt.nulls_scores,judges_score:lt==null?void 0:lt.judges_scores,pros_score:lt==null?void 0:lt.pros_scores,bpros_score:lt==null?void 0:lt.bpros_scores,shixuns_score:lt==null?void 0:lt.shixuns_scores,mains_score:lt==null?void 0:lt.mains_scores,combinations_score:lt==null?void 0:lt.combination_scores,total_score:qt},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Oe(zt?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:bn)}),fr=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:Re=>g.createElement("a",null,Re)},{width:"9%",title:((b=We.find(Re=>Re.value==k.fw[0].nameType))==null?void 0:b.name)||k.fw[0].name,align:"center",dataIndex:"singles_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((K=We.find(Re=>Re.value==k.fw[1].nameType))==null?void 0:K.name)||k.fw[1].name,align:"center",dataIndex:"doubles_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((ee=We.find(Re=>Re.value==k.fw[3].nameType))==null?void 0:ee.name)||k.fw[3].name,align:"center",dataIndex:"nulls_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((Ee=We.find(Re=>Re.value==k.fw[2].nameType))==null?void 0:Ee.name)||k.fw[2].name,align:"center",dataIndex:"judges_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((le=We.find(Re=>Re.value==k.fw[6].nameType))==null?void 0:le.name)||k.fw[6].name,align:"center",dataIndex:"pros_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((ue=We.find(Re=>Re.value==k.fw[5].nameType))==null?void 0:ue.name)||k.fw[5].name,align:"center",dataIndex:"shixuns_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((Qe=We.find(Re=>Re.value==k.fw[4].nameType))==null?void 0:Qe.name)||k.fw[4].name,align:"center",dataIndex:"mains_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:((ke=We.find(Re=>Re.value==k.fw[7].nameType))==null?void 0:ke.name)||k.fw[7].name,align:"center",dataIndex:"combinations_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"10%",title:((ie=We.find(Re=>Re.value==k.fw[8].nameType))==null?void 0:ie.name)||k.fw[8].name,align:"center",dataIndex:"bpros_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:Re=>g.createElement("a",null,Re==="0.0"?0:Re?parseFloat(Re).toFixed(1):"")}],Jn=Re=>{ct({type:"paperlibrary/getPaperData",payload:me({id:$e.current},Re)})},zr=(Re,lt)=>ae(void 0,null,function*(){if(!Re.destination||!Re.source)return;const Bt=lt.questions[Re.source.index].id,qt=Re.destination.index+1;(yield ct({type:"paperlibrary/adjustPosition",payload:{id:$e.current,itemId:Bt,position:qt}})).status!==-1&&Jn()}),pr=()=>{var Re,lt,Bt,qt;ct({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:$e.current,data:{is_random:!1},dataSource:[{name:(lt=(Re=je.paperData)==null?void 0:Re.exam)==null?void 0:lt.name,total_score:(qt=(Bt=je.paperData)==null?void 0:Bt.exam)==null?void 0:qt.all_score}],type:"single"}}})},ao=(0,s.useRef)(),[mo,Dn]=(0,s.useState)(!0),Cn=()=>ae(void 0,null,function*(){Dn(!1),xn(""),en(!0)}),br=()=>ae(void 0,null,function*(){Dn(!0),xn(""),en(!0)}),Or=()=>ae(void 0,null,function*(){var Re;tn(!0);const lt=yield(0,ce.Mb)({categoryId:$e.current});tn(!1),lt!=null&<.exercise_id&&(0,de.xg)(`/classrooms/coursesId/exercise/${lt.exercise_id}/${(Re=It.userInfo)==null?void 0:Re.login}/initate_answer`)}),wt=(Re,lt,Bt)=>{var qt,bn,zn,Yn,hn,Mn,sr,Wn,Sr,hr,Fr,Ko,$i,wi,Ro,Fi,Lo,_i,Xi,zo,Ii,Oi;return g.createElement(g.Fragment,null,!Bt&&g.createElement("div",{style:{display:"flex"},className:I.programTitle},g.createElement("span",{style:{flexShrink:0},className:"font18"},lt+1,"."),g.createElement(Fe.Z,{style:{maxWidth:1100},value:(Re==null?void 0:Re.question_type)==8?(qt=Re==null?void 0:Re.program_attr)==null?void 0:qt.description:Re.name||(Re==null?void 0:Re.shixun_name)}),g.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(Re==null?void 0:Re.question_type)===7?`\u5171${Re==null?void 0:Re.sub_count}\u5C0F\u9898`:""," ",Re.score,"\u5206\uFF09")),(Re==null?void 0:Re.question_type)===8&&g.createElement(Fe.Z,{showProgramFill:!0,disabledFill:!0,value:ve.Base64.decode(((bn=Re==null?void 0:Re.program_attr)==null?void 0:bn.code)||"")}),(Re==null?void 0:Re.question_type)===5&&g.createElement("div",null,(zn=Re==null?void 0:Re.examination_bank_shixun_challenges)==null?void 0:zn.map((_r,lo)=>g.createElement("div",null,g.createElement("div",{key:lo,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},g.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",lo+1,"\u5173 ",g.createElement("span",{className:"ml10"},_r.challenge_name))))),(Re==null?void 0:Re.question_type)===6&&g.createElement("div",null,g.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(hn=(Yn=Re==null?void 0:Re.program_attr)==null?void 0:Yn.languages)==null?void 0:hn.join("/")),((sr=(Mn=je==null?void 0:je.paperData)==null?void 0:Mn.exam)==null?void 0:sr.show_hack_sets)&&g.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},g.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},g.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),g.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(_r,lo,oi)=>oi+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(_r,lo,oi)=>g.createElement($.Z,{title:g.createElement("pre",null,_r)},g.createElement("div",{className:I.divname},_r))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(_r,lo,oi)=>g.createElement($.Z,{title:g.createElement("pre",null,_r)}," ",g.createElement("div",{className:I.divname},_r))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Wn=Re==null?void 0:Re.program_attr)==null?void 0:Wn.hack_sets})),((hr=(Sr=je==null?void 0:je.paperData)==null?void 0:Sr.exam)==null?void 0:hr.show_hack_description)&&g.createElement("div",null,g.createElement(Fe.Z,{className:I.content,value:((Fr=Re==null?void 0:Re.program_attr)==null?void 0:Fr.description)||"- -"}))),Re.question_type===pe.c.Single&&g.createElement(g.Fragment,null,(Ko=Re.choices)==null?void 0:Ko.map(function(_r,lo){return g.createElement(Z.Z,{key:lo},g.createElement(v.Z,{flex:"1"},g.createElement("div",{style:{display:"flex"}},g.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},mt[lo]),g.createElement(Fe.Z,{value:_r.choice_text||""}))))})),Re.question_type===pe.c.Multiple&&g.createElement(g.Fragment,null,($i=Re.choices)==null?void 0:$i.map(function(_r,lo){return g.createElement(Z.Z,{key:lo},g.createElement(v.Z,{flex:"1"},g.createElement("div",{style:{display:"flex"}},g.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},mt[lo]),g.createElement(Fe.Z,{value:_r.choice_text||""}))))})),Re.question_type===pe.c.Judge&&g.createElement("div",{className:I.flexRow},(wi=Re.choices)==null?void 0:wi.map(function(_r,lo){return g.createElement(Z.Z,{key:lo},g.createElement(v.Z,{flex:"25px"},g.createElement("div",{style:{width:25,overflow:"hidden"}},g.createElement(N.ZP,{disabled:!0,style:{width:25,marginLeft:lo===1&&10}}))),g.createElement(v.Z,{flex:"1",style:{marginLeft:lo===1&&10}},_r.choice_text))})),Re.question_type===pe.c.Combine&&g.createElement(g.Fragment,null,(Ro=Re.sub_questions)==null?void 0:Ro.map(function(_r,lo){return g.createElement("div",{style:{marginLeft:10}},g.createElement("div",{style:{display:"flex"},className:I.programTitle},g.createElement("span",{style:{flexShrink:0},className:"font18"},lt+1,".",lo+1),g.createElement(Fe.Z,{value:_r.name||(_r==null?void 0:_r.shixun_name)}),g.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",_r.score,"\u5206\uFF09")),wt(_r,lo,!0))})),mo&&g.createElement("div",{style:{marginTop:10}},(Re==null?void 0:Re.question_type)<3&&(Re==null?void 0:Re.standard_answer_show)&&g.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",Re==null?void 0:Re.standard_answer_show),!!((Fi=Re==null?void 0:Re.standard_answer)!=null&&Fi.length)&&mo&&(Re==null?void 0:Re.question_type)===3&&g.createElement("div",null,(Lo=Re==null?void 0:Re.standard_answer)==null?void 0:Lo.map((_r,lo)=>g.createElement("div",null,g.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",lo+1,"\uFF09:"),g.createElement("div",null,_r.answer_text.map(function(oi,_o){return g.createElement(v.Z,{span:24,key:_o},(_r==null?void 0:_r.model)===1?g.createElement(se,{autoSize:!0,disabled:!0,value:oi}):g.createElement(Ce.Z,{value:oi,disabled:!0}))}))))),!!((_i=Re==null?void 0:Re.standard_answer)!=null&&_i.length)&&mo&&(Re==null?void 0:Re.question_type)===8&&g.createElement("div",null,(Xi=Re==null?void 0:Re.standard_answer)==null?void 0:Xi.map((_r,lo)=>g.createElement("div",null,g.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",lo+1,"\uFF09:"),g.createElement("div",null,g.createElement(se,{autoSize:!0,disabled:!0,value:(_r==null?void 0:_r.answer_text)||""}))))),!!((zo=Re==null?void 0:Re.answer_texts)!=null&&zo.length)&&(Re==null?void 0:Re.question_type)===4&&g.createElement("div",null,g.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),g.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},g.createElement(Fe.Z,{value:(Ii=Re==null?void 0:Re.answer_texts)==null?void 0:Ii[0]}))),(Re==null?void 0:Re.question_type)===6&&g.createElement("div",null,g.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(Re!=null&&Re.answer_text)&&"\u6682\u65E0"),(Re==null?void 0:Re.answer_text)&&g.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},g.createElement(Fe.Z,{value:Re==null?void 0:Re.answer_text}))),(Re==null?void 0:Re.question_type)<=4&&((Re==null?void 0:Re.standard_answer_show)||((Oi=Re==null?void 0:Re.standard_answer)==null?void 0:Oi.length)>0)&&g.createElement(Z.Z,{style:{marginTop:14}},g.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),g.createElement(Fe.Z,{className:I.renderHtml,value:(Re==null?void 0:Re.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Bt&&g.createElement(i.Z,null))},dt=(0,s.useCallback)(()=>{var Re,lt;return g.createElement("div",null,g.createElement("div",{className:I.titleForExport},(lt=(Re=je.paperData)==null?void 0:Re.exam)==null?void 0:lt.name),g.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",ut==null?void 0:ut.large_counts,"\u5927\u9898\u3011\u3010",ut==null?void 0:ut.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",ut==null?void 0:ut.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(ut==null?void 0:ut.time)>-1?`${ut==null?void 0:ut.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(ut!=null&&ut.exercise_description)&&g.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},g.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),ut==null?void 0:ut.exercise_description),g.createElement(te.default,{style:{margin:"20px auto"},className:I.table,columns:fr,dataSource:[...Ae||[]],bordered:!0,pagination:!1}))},[je.paperData]),Sn=()=>ae(void 0,null,function*(){const Re=yield(0,ge.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ge==null?void 0:Ge.id}});(Re==null?void 0:Re.status)===0&&Se.history.replace("/paperlibrary")});return g.createElement("section",{className:I.bg},g.createElement(L.Z,{spinning:Pt["paperlibrary/getPaperData"]},g.createElement(Z.Z,{className:"pt20",justify:"space-between"},g.createElement(B.Z,{separator:">"},g.createElement(B.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),g.createElement(B.Z.Item,{href:`/paperlibrary?defaultActiveKey=${St}`},St==="1"?"\u516C\u5F00":St==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),g.createElement(B.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),g.createElement("div",{className:I.btnWrapper},!yn&&g.createElement(D.ZP,{onClick:pr,className:I.btn,icon:g.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),g.createElement(D.ZP,{onClick:()=>Se.history.push(`/paperlibrary/add/${$e.current}?type=2${yn?"&isIntelligentAssistant=true":""}`),className:I.btn,icon:g.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),g.createElement(D.ZP,{loading:ln,onClick:Or,className:I.btn,icon:g.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!yn&&g.createElement(O.Z,{menu:{items:[{key:"1",label:g.createElement("div",{onClick:br},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:g.createElement("div",{onClick:Cn},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},g.createElement(D.ZP,{type:"primary",icon:g.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),yn&&g.createElement(G.Z,{onClick:Sn,type:"primary",icon:g.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),g.createElement("div",{className:`${I.wrap} pt20 pb20`,ref:ao,id:"paperDomRef"},!((tt=(X=je.paperData)==null?void 0:X.questionList)!=null&&tt.length)&&dt(),(Et=(Te=je.paperData)==null?void 0:Te.questionList)==null?void 0:Et.map((Re,lt)=>{var Bt;return g.createElement(g.Fragment,null,(Bt=Re.questions)==null?void 0:Bt.map((qt,bn)=>{const zn=Math.floor(bn/10);return bn%10===0?g.createElement("div",{className:"abc",key:`group-${zn}`},lt===0&&bn===0&&dt(),bn===0&&g.createElement("div",null,g.createElement("span",{className:"font16 c-light-primary"},Re.number,"\u3001",Re.name),g.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",Re.questions_count,"\u9898\uFF0C",(Re==null?void 0:Re.question_type)===7?`\u5305\u542B${Re==null?void 0:Re.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",Re.questions_score,"\u5206\uFF09")),Re.questions.slice(bn,bn+10).map((Yn,hn)=>g.createElement("div",{key:Yn.id},wt(Yn,bn+hn)))):null}))}))),g.createElement(U.Z,null),g.createElement(T.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Rt,onCancel:()=>{if(Yt){we.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}en(!1)},okButtonProps:{loading:Yt},onOk:()=>ae(void 0,null,function*(){var Re,lt;if(cn(!0),En==""){cn(!1),we.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else En=="pdf"?yield(0,W.F)(ao.current.children,(lt=(Re=je.paperData)==null?void 0:Re.exam)==null?void 0:lt.name):En=="word"&&(0,H.ON)(me({id:$e.current,middle_export:1,export_type:mo?1:0},qn));cn(!1),en(!1)})},g.createElement("div",{className:I.export_type_modal},g.createElement("div",{className:I.export_type_modal_con},g.createElement("div",{className:I.type_item},g.createElement("div",{className:`${I.img_warp} ${En=="pdf"?I.img_warp_active:""}`,onClick:()=>xn("pdf")},g.createElement("img",{src:p(45614),width:70,height:70})),"pdf\u683C\u5F0F"),g.createElement("div",{className:I.type_item},g.createElement("div",{className:`${I.img_warp} ${En=="word"?I.img_warp_active:""}`,onClick:()=>xn("word")},g.createElement("img",{src:p(38347),width:70,height:70})),"word\u683C\u5F0F"))),En==="word"&&g.createElement("div",{style:{marginTop:30}},(In||Kn)&&g.createElement("div",{style:{fontSize:14,color:"#666",marginBottom:20}},"\u8BF7\u9009\u62E9\u9700\u8981\u989D\u5916\u5BFC\u51FA\u7684\u5185\u5BB9"),In&&g.createElement("div",null,g.createElement("span",null,"\u5B9E\u8BAD\u9898"),g.createElement(E.default,{checked:qn.param_show_challenge_task_pass,onChange:Re=>{qn.param_show_challenge_task_pass=Re.target.checked,er(me({},qn))},style:{marginLeft:20}},"\u5BFC\u51FA\u5B9E\u8BAD\u5173\u5361\u63CF\u8FF0"),g.createElement(E.default,{className:"ml20",checked:qn.param_show_challenge_test_sets,onChange:Re=>{qn.param_show_challenge_test_sets=Re.target.checked,er(me({},qn))}},"\u6D4B\u8BD5\u7528\u4F8B")),Kn&&g.createElement("div",{style:{marginTop:20}},g.createElement("span",null,"\u7F16\u7A0B\u9898"),g.createElement(E.default,{checked:qn.param_show_hack_sets,onChange:Re=>{qn.param_show_hack_sets=Re.target.checked,er(me({},qn))},style:{marginLeft:20}},"\u5BFC\u51FA\u7F16\u7A0B\u9898\u6D4B\u8BD5\u7528\u4F8B"),g.createElement(E.default,{checked:qn.param_show_hack_description,onChange:Re=>{qn.param_show_hack_description=Re.target.checked,er(me({},qn))},style:{marginLeft:20}},"\u5BFC\u51FA\u7F16\u7A0B\u9898\u63CF\u8FF0")))))};var Nt=(0,Se.connect)(({paperlibrary:yt,user:zt,loading:je,globalSetting:It,newExercisePaper:Ze})=>({paperlibrary:yt,user:zt,globalSetting:It,loading:je.effects,newExercisePaper:Ze}))(Me)},44868:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return zt}});var s=p(59301),Se=p(88634),M=p(37568),we=p(6767),te=p(62957),$=p(4875),Z=p(458),v=p(70858),N=p(7939),i=p(89160),L=Object.defineProperty,B=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(je,It,Ze)=>It in je?L(je,It,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):je[It]=Ze,E=(je,It)=>{for(var Ze in It||(It={}))D.call(It,Ze)&&T(je,Ze,It[Ze]);if(B)for(var Ze of B(It))O.call(It,Ze)&&T(je,Ze,It[Ze]);return je};const I=je=>React.createElement("svg",E({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));var U="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",W={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},re=p(95203),k={sendToClass:"sendToClass___le_BX"},H="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AA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yX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",Fe=({createState:je,refreshLoading:It,onRefresh:Ze=()=>{},onCreate:Pt=()=>{}})=>s.createElement("div",{className:k.sendToClass},je?s.createElement(s.Fragment,null,s.createElement("img",{src:H,alt:"\u7A7A"}),s.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),s.createElement(N.ZP,{onClick:Pt,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):s.createElement(s.Fragment,null,s.createElement("img",{src:de,alt:"\u7A7A"}),s.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),s.createElement(N.ZP,{loading:It,onClick:Ze,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),ve=p(32981),pe=p(89392),Ce=p(18612),G=p(37428),ge=p(43786),g=p(59301),j=Object.defineProperty,Ye=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,ae=(je,It,Ze)=>It in je?j(je,It,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):je[It]=Ze,se=(je,It)=>{for(var Ze in It||(It={}))be.call(It,Ze)&&ae(je,Ze,It[Ze]);if(he)for(var Ze of he(It))me.call(It,Ze)&&ae(je,Ze,It[Ze]);return je},Je=(je,It)=>Ye(je,oe(It)),mt=(je,It)=>{var Ze={};for(var Pt in je)be.call(je,Pt)&&It.indexOf(Pt)<0&&(Ze[Pt]=je[Pt]);if(je!=null&&he)for(var Pt of he(je))It.indexOf(Pt)<0&&me.call(je,Pt)&&(Ze[Pt]=je[Pt]);return Ze},Me=(je,It,Ze)=>new Promise((Pt,ct)=>{var x=A=>{try{P(Ze.next(A))}catch(h){ct(h)}},Ke=A=>{try{P(Ze.throw(A))}catch(h){ct(h)}},P=A=>A.done?Pt(A.value):Promise.resolve(A.value).then(x,Ke);P((Ze=Ze.apply(je,It)).next())});const Nt=M.default.Search,yt=je=>{var It=je,{paperlibrary:Ze,globalSetting:Pt,loading:ct,dispatch:x}=It,Ke=mt(It,["paperlibrary","globalSetting","loading","dispatch"]),P,A,h,C;const[b,K]=(0,s.useState)(""),[ee,Ee]=(0,s.useState)([]),[le,ue]=(0,s.useState)([]),[Qe,ke]=(0,s.useState)(!1),[ie,X]=(0,s.useState)(!0),[tt,Te]=(0,s.useState)(!0),[Et,at]=(0,s.useState)(!0),[Ge,Ut]=(0,s.useState)(!1),[St,Ie]=(0,s.useState)(!1),$e=(h=(A=(P=Ze.actionTabs)==null?void 0:P.params)==null?void 0:A.data)==null?void 0:h.is_random,[ut,Qt]=(0,s.useState)(!1),[Ae,Oe]=(0,s.useState)({}),[We,vt]=(0,s.useState)(!1),[Rt,en]=(0,s.useState)({}),[En,xn]=(0,s.useState)(!1),[ln,tn]=(0,s.useState)(!1),[Yt,cn]=(0,s.useState)([]);(0,s.useEffect)(()=>{var fr;if(Ze.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Jn=[],type:zr}=((fr=Ze.actionTabs)==null?void 0:fr.params)||{},pr=Jn.filter(ao=>![100,120,150].includes(ao.total_score));pr.length?(tn(zr),cn(pr)):xn(!0)}},[(C=Ze==null?void 0:Ze.actionTabs)==null?void 0:C.key]),(0,s.useEffect)(()=>{In()},[]);const yn=()=>{ue([]),K(""),In(!0),xn(!1),tn(!1),x({type:"paperlibrary/setActionTabs",payload:{}})},In=fr=>Me(void 0,null,function*(){Te(!0);const Jn=yield x({type:"paperlibrary/getCourseList",payload:{search:fr?"":b}});Jn&&(Ee((Jn==null?void 0:Jn.courses)||[]),X(!0),Ut(!1)),Te(!1),at(!1)}),Kn=fr=>{const Jn=parseInt(fr);return(0,pe.isNaN)(Jn)?"":Jn},qn=()=>Me(void 0,null,function*(){var fr,Jn,zr,pr,ao,mo,Dn;if(!le.length){we.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),ke(!0);return}const Cn=yield x({type:"paperlibrary/postExistCourse",payload:{course_id:$e?le==null?void 0:le[0]:le,examination_bank_ids:((Jn=(fr=Ze.actionTabs)==null?void 0:fr.params)==null?void 0:Jn.examination_bank_ids)||((pr=(zr=Ze.actionTabs)==null?void 0:zr.params)==null?void 0:pr.id)}}),br=()=>Me(void 0,null,function*(){yield er([])});if(Cn.status==0&&((ao=Cn.data)==null?void 0:ao.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:g.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(Dn=(mo=Cn.data)==null?void 0:mo.list)==null?void 0:Dn.map((Or,wt)=>{var dt;return g.createElement(g.Fragment,null,g.createElement("span",{style:{color:"#FA6400"}},"\u300A",Or==null?void 0:Or.name,"\u300B"),wt!==((dt=Cn.data)==null?void 0:dt.count)-1&&g.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>Me(void 0,null,function*(){yield br()})}),yield new Promise(Or=>setTimeout(()=>Or(),1e3));return}yield br()}),er=fr=>Me(void 0,null,function*(){var Jn,zr,pr,ao,mo,Dn,Cn,br,Or,wt,dt,Sn,Re;if(!$e){Qt(!0);const bn=yield x({type:(zr=(Jn=Ze.actionTabs)==null?void 0:Jn.params)!=null&&zr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:$e?le==null?void 0:le[0]:le,id:(ao=(pr=Ze.actionTabs)==null?void 0:pr.params)==null?void 0:ao.id,examination_bank_ids:(Dn=(mo=Ze.actionTabs)==null?void 0:mo.params)==null?void 0:Dn.examination_bank_ids,shixuns_info:fr.map(zn=>({shixun_id:zn.id,is_copy:zn.is_copy,is_use:zn.is_use,course_id:zn.course_id}))}});Qt(!1),bn&&bn.status===0&&(xn(!1),x({type:"paperlibrary/setActionTabs",payload:{}}),ue([]),bn!=null&&bn.have_shixun?(en(Je(se({},(Cn=bn==null?void 0:bn.data)==null?void 0:Cn[0]),{courseId:(Or=(br=bn==null?void 0:bn.data)==null?void 0:br[0])==null?void 0:Or.course_identifier,examination_bank_ids:((dt=(wt=Ze.actionTabs)==null?void 0:wt.params)==null?void 0:dt.examination_bank_ids)||[(Re=(Sn=Ze.actionTabs)==null?void 0:Sn.params)==null?void 0:Re.id]})),vt(!0)):(te.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${bn.data[0].first_category_url}`},content:g.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),we.ZP.success("\u53D1\u9001\u6210\u529F")));return}Qt(!0),setTimeout(()=>{Qt(!1)},500);const lt=ee.find(bn=>bn.course_id===(le==null?void 0:le[0]));let Bt=1,qt=te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:g.createElement("div",{className:W.modalColumn},g.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},g.createElement("img",{style:{marginRight:5},src:i.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),g.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",lt==null?void 0:lt.course_name),g.createElement("div",{style:{paddingLeft:9},className:W.modalRow},g.createElement("sup",{className:W.sup},"*"),g.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),g.createElement($.Z,{parser:Kn,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Bt,onChange:bn=>{Bt=bn;const zn=document.getElementById("model_error");Bt<1||Bt>50?zn.style.display="block":zn.style.display="none"}})),g.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:yn,onOk:()=>Me(void 0,null,function*(){var bn,zn;if(Bt<1||Bt>50){const hn=document.getElementById("model_error");return hn.style.display="block",Promise.reject()}qt.update({cancelButtonProps:{disabled:!0}});const Yn=yield x({type:"paperlibrary/sendToClass",payload:{course_id:le==null?void 0:le[0],id:(zn=(bn=Ze.actionTabs)==null?void 0:bn.params)==null?void 0:zn.id,num:Bt,shixuns_info:fr.map(hn=>({shixun_id:hn.id,is_copy:hn.is_copy,is_use:hn.is_use}))}});qt.update({cancelButtonProps:{disabled:!1}}),Yn&&Yn.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:g.createElement("div",{className:W.modalColumn},g.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},g.createElement("img",{style:{marginRight:5},src:U}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{yn()},onOk:()=>{yn(),setTimeout(()=>{var hn,Mn;const sr=(Mn=(hn=Yn==null?void 0:Yn.first_category_url)==null?void 0:hn.split("/"))==null?void 0:Mn[2];(0,re.xg)(`/classrooms/${sr}/exercise`)},1e3)}}))})})}),xr=()=>Me(void 0,null,function*(){Ut(!0),yield In()}),Lr=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return g.createElement("div",null,g.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:En,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ct["paperlibrary/sendToClass"]||St||!!ct["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:qn,destroyOnClose:!0,onCancel:yn},g.createElement("div",{className:W.wrap},g.createElement("div",{className:"mb10"},g.createElement(Nt,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:b,className:W.search,onChange:fr=>{K(fr.target.value),fr.target.value||In(!0)},onSearch:fr=>{K(fr),In(),ue([])}})),g.createElement(Z.Z,{loading:Et},ee.length?g.createElement("div",{className:W.radioWrap},g.createElement(v.default,{bordered:!1,scroll:(ee==null?void 0:ee.length)<=7?{}:{y:350},loading:tt,rowKey:"course_id",pagination:!1,dataSource:ee,columns:Lr,onRow:fr=>({onClick:Jn=>{if($e)ue([fr==null?void 0:fr.course_id]);else{if(!$e&&!le.includes(fr.course_id)&&le.length>0)return;le!=null&&le.includes(fr==null?void 0:fr.course_id)?ue(le==null?void 0:le.filter(zr=>zr!==(fr==null?void 0:fr.course_id))):ue([...le,fr==null?void 0:fr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:le,onChange:fr=>{ue(fr),ke(!1)}}})):!b&&!tt&&g.createElement(Fe,{createState:ie,refreshLoading:Ge,onRefresh:xr,onCreate:()=>{X(!1),(0,re.xg)("/classrooms/new")}})),Qe&&g.createElement("div",{className:W.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),g.createElement("div",{className:W.bottom,style:{display:"flex",alignItems:"center"}},g.createElement("div",{style:{flex:1}},g.createElement("div",{className:W.title},g.createElement("img",{src:i.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),g.createElement("div",null,g.createElement(N.ZP,{onClick:yn,className:W.no,style:{marginRight:20}},"\u53D6\u6D88"),g.createElement(ve.Z,{onClick:qn,className:W.yes},"\u786E\u8BA4"))))),g.createElement(Ce.Z,{resdata:Ae,type:"exercise",okloading:ut,oktext:(Ae==null?void 0:Ae.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:fr=>{er(fr)}}),g.createElement(G.Z,{source:"\u8BD5\u5377",showModal:We,onCancel:()=>vt(!1),okBtnName:"\u524D\u5F80\u6559\u5B66\u8BFE\u5802",info:Rt,onOk:()=>{window.location.href=Rt==null?void 0:Rt.first_category_url}}),g.createElement(ge.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:ln,dataSource:Yt,onSuccess:()=>{tn(!1),xn(!0)},onClose:yn}))};var zt=(0,Se.connect)(({paperlibrary:je,loading:It,globalSetting:Ze})=>({paperlibrary:je,globalSetting:Ze,loading:It.effects}))(yt)},60240:function(nr,Zt,p){"use strict";p.d(Zt,{c:function(){return Se}});var s=(M=>(M.FirstPage="firstPage",M.PrevPage="prevPage",M.NextPage="nextPage",M))(s||{}),Se=(M=>(M[M.Single=0]="Single",M[M.Multiple=1]="Multiple",M[M.Judge=2]="Judge",M[M.Fill=3]="Fill",M[M.Subjective=4]="Subjective",M[M.Shixun=5]="Shixun",M[M.Program=6]="Program",M[M.Combine=7]="Combine",M))(Se||{})},60594:function(nr,Zt,p){"use strict";p.d(Zt,{AD:function(){return j},BA:function(){return P},D9:function(){return se},Hp:function(){return de},IM:function(){return mt},Iy:function(){return Fe},KM:function(){return Ke},KU:function(){return zt},MJ:function(){return ce},Ne:function(){return Je},ON:function(){return It},Uj:function(){return ct},VY:function(){return yt},YO:function(){return Pt},YX:function(){return Ze},Zn:function(){return T},_g:function(){return re},_k:function(){return me},c6:function(){return ge},cr:function(){return E},eV:function(){return g},fi:function(){return I},gh:function(){return Ce},hS:function(){return Me},iA:function(){return U},j6:function(){return k},je:function(){return he},jj:function(){return H},kS:function(){return je},lS:function(){return be},o6:function(){return G},pO:function(){return x},rQ:function(){return Ye},sA:function(){return pe},xm:function(){return ae},xo:function(){return Nt},y8:function(){return oe},yd:function(){return W}});var s=p(87218),Se=p(88634),M=p(95203),we=p(6767),te=p(51802),$=Object.defineProperty,Z=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,i=(A,h,C)=>h in A?$(A,h,{enumerable:!0,configurable:!0,writable:!0,value:C}):A[h]=C,L=(A,h)=>{for(var C in h||(h={}))v.call(h,C)&&i(A,C,h[C]);if(Z)for(var C of Z(h))N.call(h,C)&&i(A,C,h[C]);return A},B=(A,h,C)=>new Promise((b,K)=>{var ee=ue=>{try{le(C.next(ue))}catch(Qe){K(Qe)}},Ee=ue=>{try{le(C.throw(ue))}catch(Qe){K(Qe)}},le=ue=>ue.done?b(ue.value):Promise.resolve(ue.value).then(ee,Ee);le((C=C.apply(A,h)).next())});const D=()=>{(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},O=()=>{(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},T=A=>B(void 0,null,function*(){D(),(yield(0,s.YR)(L({},A))).status===0&&(yield(0,M.QH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/export_couser_info.json`,query:A}))),O()}),E=A=>B(void 0,null,function*(){const h=yield(0,s.yS)(L({},A));if(h.status===0)we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_member_act_score`);else{if(h.status===-2)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_member_act_score`))}}),I=A=>B(void 0,null,function*(){const h=yield(0,s.W0)(L({},A));if(h.status===0)we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_score`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_score`))}}),U=A=>B(void 0,null,function*(){const h=yield(0,s.Nl)(L({},A));if(h.status===0)we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`))}}),W=A=>B(void 0,null,function*(){const h=yield(0,s.IU)(L({},A));if(h.status===0)we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/export_star_user`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/export_star_user`))}}),re=A=>B(void 0,null,function*(){const h=yield(0,s.td)(L({},A));if(h.status===0)we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`);else{if(h.status===-2)return h;if(h.status===-3)(0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_exercise_and_other`);else if(h.status===-4)return h}}),k=A=>B(void 0,null,function*(){const h=yield(0,s.QX)(L({},A));if(h.status===0)we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_homework`);else{if(h.status===-4)return h;h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/course_total_homework`))}}),H=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.o_)(L({},A));C.status===0?(we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),de=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.ZL)(L({},A));C.status===0?(we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),ce=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.vV)(L({},A));C.status===0?(we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),Fe=(A,h)=>B(void 0,null,function*(){const C=yield(0,s.aP)(L({},A));C.status===0?(we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`)):C.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/${h}`))}),ve=A=>B(void 0,null,function*(){D(),(yield exportCourseWorkListAppendix(L({},A))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${A.categoryId}/works_list.zip`,query:A}))),O()}),pe=A=>B(void 0,null,function*(){D(),yield(0,M.FH)("",te.Z.API_SERVER+`/api/polls/${A.categoryId}/commit_result.xlsx`),O()}),Ce=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/attendances/export_xlsx_data.xlsx`,query:A}))}),G=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/video_study_statics.xlsx`,query:A}))}),ge=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/export_video_study.xlsx`,query:A}))}),g=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A.coursesId}/export_course_students_info.xlsx`,query:A}))}),j=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:A}))}),Ye=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:A}))}),oe=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:A}))}),he=A=>B(void 0,null,function*(){const h=yield(0,s.Uy)(L({},A));h.status===0?(we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_users`)):h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_users`))}),be=A=>B(void 0,null,function*(){const h=yield(0,s.tg)(L({},A));h.status===0?(we.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_report`)):h.status===-3&&((0,Se.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Se.history.push(`/classrooms/${A.coursesId}/exportlist/exercise_score,export_exercise_report`))}),me=A=>B(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/export_records/${A.id}.xlsx`,query:A}))}),ae=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:A}))}),se=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A==null?void 0:A.coursesId}/${A.menuKey}_statistic.xlsx?${A.checkedList.map(h=>`course_group_id[]=${h}`).join("&")}`,query:A}))}),Je=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/ec_years/${A==null?void 0:A.ec_year_id}/ec_training_objectives.xlsx`,query:A}))}),mt=A=>B(void 0,null,function*(){yield(0,M.FH)(A==null?void 0:A.name,(0,M.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:A}))}),Me=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/ec_years/${A==null?void 0:A.ec_year_id}/ec_courses.xlsx`,query:A}))}),Nt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/ec_years/${A==null?void 0:A.ec_year_id}/ec_graduation_requirements.xlsx`,query:A}))}),yt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:A}))}),zt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/exercises/${A.categoryId}/rank_list.xlsx`,query:A}))}),je=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:A}))}),It=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${A.id}.json`,query:A}))}),Ze=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/exercises/${A.categoryId}.json`,query:A}))}),Pt=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/polls/${A==null?void 0:A.id}/commit_result.json`,query:A}))}),ct=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:A}))}),x=(A,h)=>B(void 0,null,function*(){yield(0,M.FH)(h||"",(0,M.NY)({url:te.Z.API_SERVER+`/api/exercises/${A==null?void 0:A.exercise_id}/consult_exercise.json`,query:A}))}),Ke=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/competitions/${A==null?void 0:A.identifier}/competition_commit_records/member_works.xlsx`,query:A}))}),P=A=>B(void 0,null,function*(){yield(0,M.FH)("",(0,M.NY)({url:te.Z.API_SERVER+`/api/courses/${A==null?void 0:A.coursesId}/group_homeworks/import_group_template.xlsx`,query:A}))})},77845:function(nr,Zt,p){"use strict";p.d(Zt,{AL:function(){return k},Iy:function(){return L},Qv:function(){return O},ez:function(){return re},jb:function(){return B}});var s=p(32834),Se=p.n(s),M=p(11690),we=p.n(M);let te=1;function $(ve,pe){const Ce=ve.match(/^(\s+)(?:```)/);if(Ce===null)return pe;const G=Ce[1];return pe.split(` +`).map(ge=>{const g=ge.match(/^\s+/);if(g===null)return ge;const[j]=g;return j.length>=G.length?ge.slice(G.length):ge}).join(` +`)}let Z=[],v=["
          "];const N=new(Se()).Renderer,i=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){Z.length=0,v=["
            "]}const B={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function D(ve,pe,Ce,G){if(pe>=ve.length||ve[pe].level<=Ce)return pe;var ge=ve[pe];G.push("
          • "+ge.text+""),pe++;var g=[];return pe=D(ve,pe,ge.level,g),g.length>0&&(G.push("
              "),g.forEach(function(j){G.push(j)}),G.push("
            ")),G.push("
          • "),pe=D(ve,pe,Ce,G),pe}function O(){return D(Z,0,0,v),v.push("
          "),v.join("")}const T={heading(ve){const pe=i.exec(ve);if(te+=1,pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},fences(ve){const pe=this.rules.block.fences.exec(ve);if(pe){const Ce=pe[0];let G=$(Ce,pe[3]||"");const ge=pe[2]?pe[2].trim():pe[2];if(["latex","katex","math"].indexOf(ge)>=0){const g=U(),j=G;G=g,W[g]={type:"block",expression:j}}return{type:"code",raw:Ce,lang:ge,text:G}}}},E=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let I=0;const U=()=>`__special_katext_id_${I++}__`;let W={};function re(){return W}function k(){I=0,W={}}function H(ve){return ve=ve.replace(E,(pe,Ce)=>{const G=U();return W[G]={type:"inline",expression:Ce},G}),ve}const de=N.listitem;N.listitem=function(ve){return de(H(ve))};const ce=N.paragraph;N.paragraph=function(ve){return ce(H(ve))};const Fe=N.tablecell;N.tablecell=function(ve,pe){return Fe(H(ve),pe)},N.code=function(ve,pe,Ce){const G=(pe||"").match(/\S*/)[0];return G?["latex","katex","math"].indexOf(G)>=0?`

          ${ve}

          `:`
          ${Ce?ve:(0,M.escape)(ve,!0)}
          +`:'
          '+(Ce?ve:(0,M.escape)(ve,!0))+"
          "},N.heading=function(ve,pe,Ce){let G=this.options.headerPrefix+Ce.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Z.push({anchor:G,level:pe,text:ve}),"'+ve+""},Se().setOptions({silent:!0,gfm:!0,pedantic:!1}),Se().use({tokenizer:T,renderer:N}),Zt.ZP=Se()},9981:function(nr,Zt){"use strict";const p=function(){const s=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Se=1;Se{const te=M[we];te!==void 0&&(s[we]=te)})}return s};Zt.Z=p},86013:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(19248);const M=we=>{let te;return typeof we=="object"&&(we!=null&&we.clearIcon)?te=we:we&&(te={clearIcon:s.createElement(Se.Z,null)}),te};Zt.Z=M},97224:function(nr,Zt,p){"use strict";p.d(Zt,{F:function(){return s}});function s(M){return M!=null&&M===M.window}const Se=M=>{var we,te;if(typeof window=="undefined")return 0;let $=0;return s(M)?$=M.pageYOffset:M instanceof Document?$=M.documentElement.scrollTop:(M instanceof HTMLElement||M)&&($=M.scrollTop),M&&!s(M)&&typeof $!="number"&&($=(te=((we=M.ownerDocument)!==null&&we!==void 0?we:M).documentElement)===null||te===void 0?void 0:te.scrollTop),$};Zt.Z=Se},83010:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return we}});var s=p(16089);function Se(te,$,Z,v){const N=Z-$;return te/=v/2,te<1?N/2*te*te*te+$:N/2*((te-=2)*te*te+2)+$}var M=p(97224);function we(te){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Z=()=>window,callback:v,duration:N=450}=$,i=Z(),L=(0,M.Z)(i),B=Date.now(),D=()=>{const T=Date.now()-B,E=Se(T>N?N:T,L,te,N);(0,M.F)(i)?i.scrollTo(window.pageXOffset,E):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=E:i.scrollTop=E,T{let{children:be}=he;const{getPrefixCls:me}=s.useContext(Z.E_),ae=me("breadcrumb");return s.createElement("li",{className:`${ae}-separator`,"aria-hidden":"true"},be===""?be:be||"/")};i.__ANT_BREADCRUMB_SEPARATOR=!0;var L=i,B=function(he,be){var me={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&be.indexOf(ae)<0&&(me[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ae=Object.getOwnPropertySymbols(he);sebe[se]||ae)}function O(he,be,me,ae){if(me==null)return null;const{className:se,onClick:Je}=be,mt=B(be,["className","onClick"]),Me=Object.assign(Object.assign({},(0,te.Z)(mt,{data:!0,aria:!0})),{onClick:Je});return ae!==void 0?s.createElement("a",Object.assign({},Me,{className:M()(`${he}-link`,se),href:ae}),me):s.createElement("span",Object.assign({},Me,{className:M()(`${he}-link`,se)}),me)}function T(he,be){return(ae,se,Je,mt,Me)=>{if(be)return be(ae,se,Je,mt);const Nt=D(ae,se);return O(he,ae,Nt,Me)}}var E=function(he,be){var me={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&be.indexOf(ae)<0&&(me[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ae=Object.getOwnPropertySymbols(he);se{const{prefixCls:be,separator:me="/",children:ae,menu:se,overlay:Je,dropdownProps:mt,href:Me}=he,yt=(zt=>{if(se||Je){const je=Object.assign({},mt);if(se){const It=se||{},{items:Ze}=It,Pt=E(It,["items"]);je.menu=Object.assign(Object.assign({},Pt),{items:Ze==null?void 0:Ze.map((ct,x)=>{var{key:Ke,title:P,label:A,path:h}=ct,C=E(ct,["key","title","label","path"]);let b=A!=null?A:P;return h&&(b=s.createElement("a",{href:`${Me}${h}`},b)),Object.assign(Object.assign({},C),{key:Ke!=null?Ke:x,label:b})})})}else Je&&(je.overlay=Je);return s.createElement(N.Z,Object.assign({placement:"bottom"},je),s.createElement("span",{className:`${be}-overlay-link`},zt,s.createElement(v.Z,null)))}return zt})(ae);return yt!=null?s.createElement(s.Fragment,null,s.createElement("li",null,yt),me&&s.createElement(L,null,me)):null},U=he=>{const{prefixCls:be,children:me,href:ae}=he,se=E(he,["prefixCls","children","href"]),{getPrefixCls:Je}=s.useContext(Z.E_),mt=Je("breadcrumb",be);return s.createElement(I,Object.assign({},se,{prefixCls:mt}),O(mt,se,me,ae))};U.__ANT_BREADCRUMB_ITEM=!0;var W=U,re=p(36237),k=p(63356),H=p(16931),de=p(51636);const ce=he=>{const{componentCls:be,iconCls:me,calc:ae}=he;return{[be]:Object.assign(Object.assign({},(0,k.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[me]:{fontSize:he.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:he.linkColor,transition:`color ${he.motionDurationMid}`,padding:`0 ${(0,re.unit)(he.paddingXXS)}`,borderRadius:he.borderRadiusSM,height:he.fontHeight,display:"inline-block",marginInline:ae(he.marginXXS).mul(-1).equal(),"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover}},(0,k.Qy)(he)),"li:last-child":{color:he.lastItemColor},[`${be}-separator`]:{marginInline:he.separatorMargin,color:he.separatorColor},[`${be}-link`]:{[` + > ${me} + span, + > ${me} + a + `]:{marginInlineStart:he.marginXXS}},[`${be}-overlay-link`]:{borderRadius:he.borderRadiusSM,height:he.fontHeight,display:"inline-block",padding:`0 ${(0,re.unit)(he.paddingXXS)}`,marginInline:ae(he.marginXXS).mul(-1).equal(),[`> ${me}`]:{marginInlineStart:he.marginXXS,fontSize:he.fontSizeIcon},"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover,a:{color:he.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${he.componentCls}-rtl`]:{direction:"rtl"}})}},Fe=he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS});var ve=(0,H.I$)("Breadcrumb",he=>{const be=(0,de.mergeToken)(he,{});return ce(be)},Fe),pe=function(he,be){var me={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&be.indexOf(ae)<0&&(me[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ae=Object.getOwnPropertySymbols(he);se{var{breadcrumbName:mt}=Je,Me=pe(Je,["breadcrumbName"]);return Object.assign(Object.assign({},Me),{title:mt})})}),se}function G(he,be){return(0,s.useMemo)(()=>he||(be?be.map(Ce):null),[he,be])}var ge=function(he,be){var me={};for(var ae in he)Object.prototype.hasOwnProperty.call(he,ae)&&be.indexOf(ae)<0&&(me[ae]=he[ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ae=Object.getOwnPropertySymbols(he);se{if(be===void 0)return be;let me=(be||"").replace(/^\//,"");return Object.keys(he).forEach(ae=>{me=me.replace(`:${ae}`,he[ae])}),me},j=he=>{const{prefixCls:be,separator:me="/",style:ae,className:se,rootClassName:Je,routes:mt,items:Me,children:Nt,itemRender:yt,params:zt={}}=he,je=ge(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:It,direction:Ze,breadcrumb:Pt}=s.useContext(Z.E_);let ct;const x=It("breadcrumb",be),[Ke,P,A]=ve(x),h=G(Me,mt),C=T(x,yt);if(h&&h.length>0){const ee=[],Ee=Me||mt;ct=h.map((le,ue)=>{const{path:Qe,key:ke,type:ie,menu:X,overlay:tt,onClick:Te,className:Et,separator:at,dropdownProps:Ge}=le,Ut=g(zt,Qe);Ut!==void 0&&ee.push(Ut);const St=ke!=null?ke:ue;if(ie==="separator")return s.createElement(L,{key:St},at);const Ie={},$e=ue===h.length-1;X?Ie.menu=X:tt&&(Ie.overlay=tt);let{href:ut}=le;return ee.length&&Ut!==void 0&&(ut=`#/${ee.join("/")}`),s.createElement(I,Object.assign({key:St},Ie,(0,te.Z)(le,{data:!0,aria:!0}),{className:Et,dropdownProps:Ge,href:ut,separator:$e?"":me,onClick:Te,prefixCls:x}),C(le,zt,Ee,ee,ut))})}else if(Nt){const ee=(0,we.Z)(Nt).length;ct=(0,we.Z)(Nt).map((Ee,le)=>{if(!Ee)return Ee;const ue=le===ee-1;return(0,$.Tm)(Ee,{separator:ue?"":me,key:le})})}const b=M()(x,Pt==null?void 0:Pt.className,{[`${x}-rtl`]:Ze==="rtl"},se,Je,P,A),K=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),ae);return Ke(s.createElement("nav",Object.assign({className:b,style:K},je),s.createElement("ol",null,ct)))};j.Item=W,j.Separator=L;var Ye=j,oe=Ye},62673:function(nr,Zt,p){"use strict";p.d(Zt,{default:function(){return ve}});var s=p(59301),Se=p(92310),M=p.n(Se),we=p(16632),te=p(8654),$=p(12919),Z=p(63872),v=p(48755),N=p(2171),i=p(83397),L=p(56553),D=s.createContext(null),O=p(36170),T=p(74632),E=function(pe,Ce){var G={};for(var ge in pe)Object.prototype.hasOwnProperty.call(pe,ge)&&Ce.indexOf(ge)<0&&(G[ge]=pe[ge]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,ge=Object.getOwnPropertySymbols(pe);g{var G;const{prefixCls:ge,className:g,rootClassName:j,children:Ye,indeterminate:oe=!1,style:he,onMouseEnter:be,onMouseLeave:me,skipGroup:ae=!1,disabled:se}=pe,Je=E(pe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:mt,direction:Me,checkbox:Nt}=s.useContext(v.E_),yt=s.useContext(D),{isFormItemInput:zt}=s.useContext(L.aM),je=s.useContext(N.Z),It=(G=(yt==null?void 0:yt.disabled)||se)!==null&&G!==void 0?G:je,Ze=s.useRef(Je.value),Pt=s.useRef(null),ct=(0,te.sQ)(Ce,Pt);s.useEffect(()=>{yt==null||yt.registerValue(Je.value)},[]),s.useEffect(()=>{if(!ae)return Je.value!==Ze.current&&(yt==null||yt.cancelValue(Ze.current),yt==null||yt.registerValue(Je.value),Ze.current=Je.value),()=>yt==null?void 0:yt.cancelValue(Je.value)},[Je.value]),s.useEffect(()=>{var le;!((le=Pt.current)===null||le===void 0)&&le.input&&(Pt.current.input.indeterminate=oe)},[oe]);const x=mt("checkbox",ge),Ke=(0,i.Z)(x),[P,A,h]=(0,O.ZP)(x,Ke),C=Object.assign({},Je);yt&&!ae&&(C.onChange=function(){Je.onChange&&Je.onChange.apply(Je,arguments),yt.toggleOption&&yt.toggleOption({label:Ye,value:Je.value})},C.name=yt.name,C.checked=yt.value.includes(Je.value));const b=M()(`${x}-wrapper`,{[`${x}-rtl`]:Me==="rtl",[`${x}-wrapper-checked`]:C.checked,[`${x}-wrapper-disabled`]:It,[`${x}-wrapper-in-form-item`]:zt},Nt==null?void 0:Nt.className,g,j,h,Ke,A),K=M()({[`${x}-indeterminate`]:oe},Z.A,A),[ee,Ee]=(0,T.Z)(C.onClick);return P(s.createElement($.Z,{component:"Checkbox",disabled:It},s.createElement("label",{className:b,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),he),onMouseEnter:be,onMouseLeave:me,onClick:ee},s.createElement(we.Z,Object.assign({},C,{onClick:Ee,prefixCls:x,className:K,disabled:It,ref:ct})),Ye!==void 0&&s.createElement("span",{className:`${x}-label`},Ye))))};var W=s.forwardRef(I),re=p(94480),k=p(2738),H=function(pe,Ce){var G={};for(var ge in pe)Object.prototype.hasOwnProperty.call(pe,ge)&&Ce.indexOf(ge)<0&&(G[ge]=pe[ge]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,ge=Object.getOwnPropertySymbols(pe);g{const{defaultValue:G,children:ge,options:g=[],prefixCls:j,className:Ye,rootClassName:oe,style:he,onChange:be}=pe,me=H(pe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ae,direction:se}=s.useContext(v.E_),[Je,mt]=s.useState(me.value||G||[]),[Me,Nt]=s.useState([]);s.useEffect(()=>{"value"in me&&mt(me.value||[])},[me.value]);const yt=s.useMemo(()=>g.map(K=>typeof K=="string"||typeof K=="number"?{label:K,value:K}:K),[g]),zt=K=>{Nt(ee=>ee.filter(Ee=>Ee!==K))},je=K=>{Nt(ee=>[].concat((0,re.Z)(ee),[K]))},It=K=>{const ee=Je.indexOf(K.value),Ee=(0,re.Z)(Je);ee===-1?Ee.push(K.value):Ee.splice(ee,1),"value"in me||mt(Ee),be==null||be(Ee.filter(le=>Me.includes(le)).sort((le,ue)=>{const Qe=yt.findIndex(ie=>ie.value===le),ke=yt.findIndex(ie=>ie.value===ue);return Qe-ke}))},Ze=ae("checkbox",j),Pt=`${Ze}-group`,ct=(0,i.Z)(Ze),[x,Ke,P]=(0,O.ZP)(Ze,ct),A=(0,k.Z)(me,["value","disabled"]),h=g.length?yt.map(K=>s.createElement(W,{prefixCls:Ze,key:K.value.toString(),disabled:"disabled"in K?K.disabled:me.disabled,value:K.value,checked:Je.includes(K.value),onChange:K.onChange,className:`${Pt}-item`,style:K.style,title:K.title,id:K.id,required:K.required},K.label)):ge,C={toggleOption:It,value:Je,disabled:me.disabled,name:me.name,registerValue:je,cancelValue:zt},b=M()(Pt,{[`${Pt}-rtl`]:se==="rtl"},Ye,oe,P,ct,Ke);return x(s.createElement("div",Object.assign({className:b,style:he},A,{ref:Ce}),s.createElement(D.Provider,{value:C},h)))});const Fe=W;Fe.Group=ce,Fe.__ANT_CHECKBOX=!0;var ve=Fe},36170:function(nr,Zt,p){"use strict";p.d(Zt,{C2:function(){return $}});var s=p(36237),Se=p(63356),M=p(51636),we=p(16931);const te=Z=>{const{checkboxCls:v}=Z,N=`${v}-wrapper`;return[{[`${v}-group`]:Object.assign(Object.assign({},(0,Se.Wf)(Z)),{display:"inline-flex",flexWrap:"wrap",columnGap:Z.marginXS,[`> ${Z.antCls}-row`]:{flex:1}}),[N]:Object.assign(Object.assign({},(0,Se.Wf)(Z)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${N}`]:{marginInlineStart:0},[`&${N}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[v]:Object.assign(Object.assign({},(0,Se.Wf)(Z)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Z.borderRadiusSM,alignSelf:"center",[`${v}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${v}-inner`]:Object.assign({},(0,Se.oN)(Z))},[`${v}-inner`]:{boxSizing:"border-box",display:"block",width:Z.checkboxSize,height:Z.checkboxSize,direction:"ltr",backgroundColor:Z.colorBgContainer,border:`${(0,s.unit)(Z.lineWidth)} ${Z.lineType} ${Z.colorBorder}`,borderRadius:Z.borderRadiusSM,borderCollapse:"separate",transition:`all ${Z.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Z.calc(Z.checkboxSize).div(14).mul(5).equal(),height:Z.calc(Z.checkboxSize).div(14).mul(8).equal(),border:`${(0,s.unit)(Z.lineWidthBold)} solid ${Z.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Z.motionDurationFast} ${Z.motionEaseInBack}, opacity ${Z.motionDurationFast}`}},"& + span":{paddingInlineStart:Z.paddingXS,paddingInlineEnd:Z.paddingXS}})},{[` + ${N}:not(${N}-disabled), ${v}:not(${v}-disabled) - `]:{[`&:hover ${v}-inner`]:{borderColor:Z.colorPrimary}},[`${L}:not(${L}-disabled)`]:{[`&:hover ${v}-checked:not(${v}-disabled) ${v}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${v}-checked:not(${v}-disabled):after`]:{borderColor:Z.colorPrimaryHover}}},{[`${v}-checked`]:{[`${v}-inner`]:{backgroundColor:Z.colorPrimary,borderColor:Z.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Z.motionDurationMid} ${Z.motionEaseOutBack} ${Z.motionDurationFast}`}}},[` - ${L}-checked:not(${L}-disabled), + `]:{[`&:hover ${v}-inner`]:{borderColor:Z.colorPrimary}},[`${N}:not(${N}-disabled)`]:{[`&:hover ${v}-checked:not(${v}-disabled) ${v}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${v}-checked:not(${v}-disabled):after`]:{borderColor:Z.colorPrimaryHover}}},{[`${v}-checked`]:{[`${v}-inner`]:{backgroundColor:Z.colorPrimary,borderColor:Z.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Z.motionDurationMid} ${Z.motionEaseOutBack} ${Z.motionDurationFast}`}}},[` + ${N}-checked:not(${N}-disabled), ${v}-checked:not(${v}-disabled) - `]:{[`&:hover ${v}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"}}},{[v]:{"&-indeterminate":{[`${v}-inner`]:{backgroundColor:`${Z.colorBgContainer} !important`,borderColor:`${Z.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Z.calc(Z.fontSizeLG).div(2).equal(),height:Z.calc(Z.fontSizeLG).div(2).equal(),backgroundColor:Z.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${v}-inner`]:{backgroundColor:`${Z.colorBgContainer} !important`,borderColor:`${Z.colorPrimary} !important`}}}},{[`${L}-disabled`]:{cursor:"not-allowed"},[`${v}-disabled`]:{[`&, ${v}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${v}-inner`]:{background:Z.colorBgContainerDisabled,borderColor:Z.colorBorder,"&:after":{borderColor:Z.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Z.colorTextDisabled},[`&${v}-indeterminate ${v}-inner::after`]:{background:Z.colorTextDisabled}}}]};function G(Z,v){const L=(0,M.mergeToken)(v,{checkboxCls:`.${Z}`,checkboxSize:v.controlInteractiveSize});return[te(L)]}Zt.ZP=(0,Be.I$)("Checkbox",(Z,v)=>{let{prefixCls:L}=v;return[G(L,Z)]})},38406:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(48755),M=g(584);const Be=te=>{const{componentName:G}=te,{getPrefixCls:Z}=(0,s.useContext)(Se.E_),v=Z("empty");switch(G){case"Table":case"List":return s.createElement(M.Z,{image:M.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return s.createElement(M.Z,{image:M.Z.PRESENTED_IMAGE_SIMPLE,className:`${v}-small`});case"Table.filter":return null;default:return s.createElement(M.Z,null)}};Zt.Z=Be},37285:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return O}});var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(48755),te=g(36237),G=g(63356),Z=g(16931),v=g(51636);const L=T=>{const{componentCls:E,sizePaddingEdgeHorizontal:U,colorSplit:F,lineWidth:W,textPaddingInline:re,orientationMargin:H,verticalMarginInline:k}=T;return{[E]:Object.assign(Object.assign({},(0,G.Wf)(T)),{borderBlockStart:`${(0,te.unit)(W)} solid ${F}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:k,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,te.unit)(W)} solid ${F}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,te.unit)(T.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${E}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,te.unit)(T.dividerHorizontalWithTextGutterMargin)} 0`,color:T.colorTextHeading,fontWeight:500,fontSize:T.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${F}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,te.unit)(W)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${E}-with-text-start`]:{"&::before":{width:`calc(${H} * 100%)`},"&::after":{width:`calc(100% - ${H} * 100%)`}},[`&-horizontal${E}-with-text-end`]:{"&::before":{width:`calc(100% - ${H} * 100%)`},"&::after":{width:`calc(${H} * 100%)`}},[`${E}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:re},"&-dashed":{background:"none",borderColor:F,borderStyle:"dashed",borderWidth:`${(0,te.unit)(W)} 0 0`},[`&-horizontal${E}-with-text${E}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${E}-dashed`]:{borderInlineStartWidth:W,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:F,borderStyle:"dotted",borderWidth:`${(0,te.unit)(W)} 0 0`},[`&-horizontal${E}-with-text${E}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${E}-dotted`]:{borderInlineStartWidth:W,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${E}-with-text`]:{color:T.colorText,fontWeight:"normal",fontSize:T.fontSize},[`&-horizontal${E}-with-text-start${E}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${E}-inner-text`]:{paddingInlineStart:U}},[`&-horizontal${E}-with-text-end${E}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${E}-inner-text`]:{paddingInlineEnd:U}}})}},i=T=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:T.marginXS});var N=(0,Z.I$)("Divider",T=>{const E=(0,v.mergeToken)(T,{dividerHorizontalWithTextGutterMargin:T.margin,dividerHorizontalGutterMargin:T.marginLG,sizePaddingEdgeHorizontal:0});return[L(E)]},i,{unitless:{orientationMargin:!0}}),B=function(T,E){var U={};for(var F in T)Object.prototype.hasOwnProperty.call(T,F)&&E.indexOf(F)<0&&(U[F]=T[F]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,F=Object.getOwnPropertySymbols(T);W{const{getPrefixCls:E,direction:U,className:F,style:W}=(0,Be.dj)("divider"),{prefixCls:re,type:H="horizontal",orientation:k="center",orientationMargin:de,className:ue,rootClassName:Fe,children:me,dashed:ve,variant:pe="solid",plain:J,style:ye}=T,p=B(T,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),j=E("divider",re),[Xe,ie,he]=N(j),Ce=!!me,ge=s.useMemo(()=>k==="left"?U==="rtl"?"end":"start":k==="right"?U==="rtl"?"start":"end":k,[U,k]),ae=ge==="start"&&de!=null,Ae=ge==="end"&&de!=null,nt=M()(j,F,ie,he,`${j}-${H}`,{[`${j}-with-text`]:Ce,[`${j}-with-text-${ge}`]:Ce,[`${j}-dashed`]:!!ve,[`${j}-${pe}`]:pe!=="solid",[`${j}-plain`]:!!J,[`${j}-rtl`]:U==="rtl",[`${j}-no-default-orientation-margin-start`]:ae,[`${j}-no-default-orientation-margin-end`]:Ae},ue,Fe),vt=s.useMemo(()=>typeof de=="number"?de:/^\d+$/.test(de)?Number(de):de,[de]),Ve={marginInlineStart:ae?vt:void 0,marginInlineEnd:Ae?vt:void 0};return Xe(s.createElement("div",Object.assign({className:nt,style:Object.assign(Object.assign({},W),ye)},p,{role:"separator"}),me&&H!=="vertical"&&s.createElement("span",{className:`${j}-inner-text`,style:Ve},me)))}},19563:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return vt}});var s=g(59301),Se=g(33853),M=g(38819),Be=g(92310),te=g.n(Be),G=g(96478),Z=g(6089),v=g(18929),L=g(2738),i=g(75030),B=Ve=>typeof Ve!="object"&&typeof Ve!="function"||Ve===null,D=g(52838),O=g(45915),T=g(22703),E=g(32383),U=g(55743),F=g(48755),W=g(83397),re=g(93041),H=g(78857),k=g(57700),de=g(36237),ue=g(63356),Fe=g(46e3),me=g(93873),ve=g(34925),pe=g(37645),J=g(36305),ye=g(16931),p=g(51636),Xe=Ve=>{const{componentCls:Nt,menuCls:yt,colorError:zt,colorTextLightSolid:je}=Ve,It=`${yt}-item`;return{[`${Nt}, ${Nt}-menu-submenu`]:{[`${yt} ${It}`]:{[`&${It}-danger:not(${It}-disabled)`]:{color:zt,"&:hover":{color:je,backgroundColor:zt}}}}}};const ie=Ve=>{const{componentCls:Nt,menuCls:yt,zIndexPopup:zt,dropdownArrowDistance:je,sizePopupArrow:It,antCls:ze,iconCls:Pt,motionDurationMid:ct,paddingBlock:x,fontSize:ke,dropdownEdgeChildPadding:P,colorTextDisabled:A,fontSizeIcon:h,controlPaddingHorizontal:C,colorBgElevated:b}=Ve;return[{[Nt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:zt,display:"block","&::before":{position:"absolute",insetBlock:Ve.calc(It).div(2).sub(je).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ze}-btn`]:{[`& > ${Pt}-down, & > ${ze}-btn-icon > ${Pt}-down`]:{fontSize:h}},[`${Nt}-wrap`]:{position:"relative",[`${ze}-btn > ${Pt}-down`]:{fontSize:h},[`${Pt}-down::before`]:{transition:`transform ${ct}`}},[`${Nt}-wrap-open`]:{[`${Pt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ze}-slide-down-enter${ze}-slide-down-enter-active${Nt}-placement-bottomLeft, - &${ze}-slide-down-appear${ze}-slide-down-appear-active${Nt}-placement-bottomLeft, - &${ze}-slide-down-enter${ze}-slide-down-enter-active${Nt}-placement-bottom, - &${ze}-slide-down-appear${ze}-slide-down-appear-active${Nt}-placement-bottom, - &${ze}-slide-down-enter${ze}-slide-down-enter-active${Nt}-placement-bottomRight, - &${ze}-slide-down-appear${ze}-slide-down-appear-active${Nt}-placement-bottomRight`]:{animationName:Fe.fJ},[`&${ze}-slide-up-enter${ze}-slide-up-enter-active${Nt}-placement-topLeft, - &${ze}-slide-up-appear${ze}-slide-up-appear-active${Nt}-placement-topLeft, - &${ze}-slide-up-enter${ze}-slide-up-enter-active${Nt}-placement-top, - &${ze}-slide-up-appear${ze}-slide-up-appear-active${Nt}-placement-top, - &${ze}-slide-up-enter${ze}-slide-up-enter-active${Nt}-placement-topRight, - &${ze}-slide-up-appear${ze}-slide-up-appear-active${Nt}-placement-topRight`]:{animationName:Fe.Qt},[`&${ze}-slide-down-leave${ze}-slide-down-leave-active${Nt}-placement-bottomLeft, - &${ze}-slide-down-leave${ze}-slide-down-leave-active${Nt}-placement-bottom, - &${ze}-slide-down-leave${ze}-slide-down-leave-active${Nt}-placement-bottomRight`]:{animationName:Fe.Uw},[`&${ze}-slide-up-leave${ze}-slide-up-leave-active${Nt}-placement-topLeft, - &${ze}-slide-up-leave${ze}-slide-up-leave-active${Nt}-placement-top, - &${ze}-slide-up-leave${ze}-slide-up-leave-active${Nt}-placement-topRight`]:{animationName:Fe.ly}}},(0,pe.ZP)(Ve,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Nt} ${yt}`]:{position:"relative",margin:0},[`${yt}-submenu-popup`]:{position:"absolute",zIndex:zt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Nt}, ${Nt}-menu-submenu`]:Object.assign(Object.assign({},(0,ue.Wf)(Ve)),{[yt]:Object.assign(Object.assign({padding:P,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:Ve.borderRadiusLG,outline:"none",boxShadow:Ve.boxShadowSecondary},(0,ue.Qy)(Ve)),{"&:empty":{padding:0,boxShadow:"none"},[`${yt}-item-group-title`]:{padding:`${(0,de.unit)(x)} ${(0,de.unit)(C)}`,color:Ve.colorTextDescription,transition:`all ${ct}`},[`${yt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${yt}-item-icon`]:{minWidth:ke,marginInlineEnd:Ve.marginXS,fontSize:Ve.fontSizeSM},[`${yt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${yt}-item-extra`]:{paddingInlineStart:Ve.padding,marginInlineStart:"auto",fontSize:Ve.fontSizeSM,color:Ve.colorTextDescription}},[`${yt}-item, ${yt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,de.unit)(x)} ${(0,de.unit)(C)}`,color:Ve.colorText,fontWeight:"normal",fontSize:ke,lineHeight:Ve.lineHeight,cursor:"pointer",transition:`all ${ct}`,borderRadius:Ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ve.controlItemBgHover}},(0,ue.Qy)(Ve)),{"&-selected":{color:Ve.colorPrimary,backgroundColor:Ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ve.controlItemBgActiveHover}},"&-disabled":{color:A,cursor:"not-allowed","&:hover":{color:A,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,de.unit)(Ve.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ve.colorSplit},[`${Nt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingXS,[`${Nt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ve.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${yt}-item-group-list`]:{margin:`0 ${(0,de.unit)(Ve.marginXS)}`,padding:0,listStyle:"none"},[`${yt}-submenu-title`]:{paddingInlineEnd:Ve.calc(C).add(Ve.fontSizeSM).equal()},[`${yt}-submenu-vertical`]:{position:"relative"},[`${yt}-submenu${yt}-submenu-disabled ${Nt}-menu-submenu-title`]:{[`&, ${Nt}-menu-submenu-arrow-icon`]:{color:A,backgroundColor:b,cursor:"not-allowed"}},[`${yt}-submenu-selected ${Nt}-menu-submenu-title`]:{color:Ve.colorPrimary}})})},[(0,Fe.oN)(Ve,"slide-up"),(0,Fe.oN)(Ve,"slide-down"),(0,me.Fm)(Ve,"move-up"),(0,me.Fm)(Ve,"move-down"),(0,ve._y)(Ve,"zoom-big")]]},he=Ve=>Object.assign(Object.assign({zIndexPopup:Ve.zIndexPopupBase+50,paddingBlock:(Ve.controlHeight-Ve.fontSize*Ve.lineHeight)/2},(0,pe.wZ)({contentRadius:Ve.borderRadiusLG,limitVerticalRadius:!0})),(0,J.w)(Ve));var Ce=(0,ye.I$)("Dropdown",Ve=>{const{marginXXS:Nt,sizePopupArrow:yt,paddingXXS:zt,componentCls:je}=Ve,It=(0,p.mergeToken)(Ve,{menuCls:`${je}-menu`,dropdownArrowDistance:Ve.calc(yt).div(2).add(Nt).equal(),dropdownEdgeChildPadding:zt});return[ie(It),Xe(It)]},he,{resetStyle:!1});const ge=null,ae=Ve=>{var Nt;const{menu:yt,arrow:zt,prefixCls:je,children:It,trigger:ze,disabled:Pt,dropdownRender:ct,getPopupContainer:x,overlayClassName:ke,rootClassName:P,overlayStyle:A,open:h,onOpenChange:C,visible:b,onVisibleChange:K,mouseEnterDelay:ee=.15,mouseLeaveDelay:Ee=.1,autoAdjustOverflow:le=!0,placement:ce="",overlay:Qe,transitionName:He}=Ve,{getPopupContainer:oe,getPrefixCls:$,direction:et,dropdown:Te}=s.useContext(F.E_),Et=(0,E.ln)("Dropdown"),at=s.useMemo(()=>{const Kn=$();return He!==void 0?He:ce.includes("top")?`${Kn}-slide-down`:`${Kn}-slide-up`},[$,ce,He]),Ge=s.useMemo(()=>ce?ce.includes("Center")?ce.slice(0,ce.indexOf("Center")):ce:et==="rtl"?"bottomRight":"bottomLeft",[ce,et]),Ut=$("dropdown",je),St=(0,W.Z)(Ut),[Ie,$e,ut]=Ce(Ut,St),[,Qt]=(0,k.ZP)(),se=s.Children.only(B(It)?s.createElement("span",null,It):It),Oe=(0,T.Tm)(se,{className:te()(`${Ut}-trigger`,{[`${Ut}-rtl`]:et==="rtl"},se.props.className),disabled:(Nt=se.props.disabled)!==null&&Nt!==void 0?Nt:Pt}),We=Pt?[]:ze,mt=!!(We!=null&&We.includes("contextMenu")),[Rt,en]=(0,v.Z)(!1,{value:h!=null?h:b}),En=(0,Z.Z)(Kn=>{C==null||C(Kn,{source:"trigger"}),K==null||K(Kn),en(Kn)}),xn=te()(ke,P,$e,ut,St,Te==null?void 0:Te.className,{[`${Ut}-rtl`]:et==="rtl"}),ln=(0,D.Z)({arrowPointAtCenter:typeof zt=="object"&&zt.pointAtCenter,autoAdjustOverflow:le,offset:Qt.marginXXS,arrowWidth:zt?Qt.sizePopupArrow:0,borderRadius:Qt.borderRadius}),tn=s.useCallback(()=>{yt!=null&&yt.selectable&&(yt!=null&&yt.multiple)||(C==null||C(!1,{source:"menu"}),en(!1))},[yt==null?void 0:yt.selectable,yt==null?void 0:yt.multiple]),Yt=()=>{let Kn;return yt!=null&&yt.items?Kn=s.createElement(re.default,Object.assign({},yt)):typeof Qe=="function"?Kn=Qe():Kn=Qe,ct&&(Kn=ct(Kn)),Kn=s.Children.only(typeof Kn=="string"?s.createElement("span",null,Kn):Kn),s.createElement(H.J,{prefixCls:`${Ut}-menu`,rootClassName:te()(ut,St),expandIcon:s.createElement("span",{className:`${Ut}-menu-submenu-arrow`},et==="rtl"?s.createElement(Se.Z,{className:`${Ut}-menu-submenu-arrow-icon`}):s.createElement(M.Z,{className:`${Ut}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:tn,validator:qn=>{let{mode:er}=qn}},Kn)},[cn,yn]=(0,i.Cn)("Dropdown",A==null?void 0:A.zIndex);let In=s.createElement(G.Z,Object.assign({alignPoint:mt},(0,L.Z)(Ve,["rootClassName"]),{mouseEnterDelay:ee,mouseLeaveDelay:Ee,visible:Rt,builtinPlacements:ln,arrow:!!zt,overlayClassName:xn,prefixCls:Ut,getPopupContainer:x||oe,transitionName:at,trigger:We,overlay:Yt,placement:Ge,onVisibleChange:En,overlayStyle:Object.assign(Object.assign(Object.assign({},Te==null?void 0:Te.style),A),{zIndex:cn})}),Oe);return cn&&(In=s.createElement(U.Z.Provider,{value:yn},In)),Ie(In)},Ae=(0,O.Z)(ae,"align",void 0,"dropdown",Ve=>Ve),nt=Ve=>s.createElement(Ae,Object.assign({},Ve),s.createElement("span",null));ae._InternalPanelDoNotUseOrYouWillBeFired=nt;var vt=ae},75727:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return O}});var s=g(19563),Se=g(59301),M=g(18785),Be=g(92310),te=g.n(Be),G=g(7939),Z=g(48755),v=g(44104),L=g(70045),i=function(T,E){var U={};for(var F in T)Object.prototype.hasOwnProperty.call(T,F)&&E.indexOf(F)<0&&(U[F]=T[F]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,F=Object.getOwnPropertySymbols(T);W{const{getPopupContainer:E,getPrefixCls:U,direction:F}=Se.useContext(Z.E_),{prefixCls:W,type:re="default",danger:H,disabled:k,loading:de,onClick:ue,htmlType:Fe,children:me,className:ve,menu:pe,arrow:J,autoFocus:ye,overlay:p,trigger:j,align:Xe,open:ie,onOpenChange:he,placement:Ce,getPopupContainer:ge,href:ae,icon:Ae=Se.createElement(M.Z,null),title:nt,buttonsRender:vt=ee=>ee,mouseEnterDelay:Ve,mouseLeaveDelay:Nt,overlayClassName:yt,overlayStyle:zt,destroyPopupOnHide:je,dropdownRender:It}=T,ze=i(T,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Pt=U("dropdown",W),ct=`${Pt}-button`,x={menu:pe,arrow:J,autoFocus:ye,align:Xe,disabled:k,trigger:k?[]:j,onOpenChange:he,getPopupContainer:ge||E,mouseEnterDelay:Ve,mouseLeaveDelay:Nt,overlayClassName:yt,overlayStyle:zt,destroyPopupOnHide:je,dropdownRender:It},{compactSize:ke,compactItemClassnames:P}=(0,L.ri)(Pt,F),A=te()(ct,P,ve);"overlay"in T&&(x.overlay=p),"open"in T&&(x.open=ie),"placement"in T?x.placement=Ce:x.placement=F==="rtl"?"bottomLeft":"bottomRight";const h=Se.createElement(G.ZP,{type:re,danger:H,disabled:k,loading:de,onClick:ue,htmlType:Fe,href:ae,title:nt},me),C=Se.createElement(G.ZP,{type:re,danger:H,icon:Ae}),[b,K]=vt([h,C]);return Se.createElement(v.Z.Compact,Object.assign({className:A,size:ke,block:!0},ze),b,Se.createElement(s.Z,Object.assign({},x),K))};N.__ANT_BUTTON=!0;var B=N;const D=s.Z;D.Button=B;var O=D},584:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return re}});var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(9017),te=g(17835),G=g(57700),v=()=>{const[,H]=(0,G.ZP)(),[k]=(0,Be.Z)("Empty"),ue=new te.FastColor(H.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:ue,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(k==null?void 0:k.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},i=()=>{const[,H]=(0,G.ZP)(),[k]=(0,Be.Z)("Empty"),{colorFill:de,colorFillTertiary:ue,colorFillQuaternary:Fe,colorBgContainer:me}=H,{borderColor:ve,shadowColor:pe,contentColor:J}=(0,s.useMemo)(()=>({borderColor:new te.FastColor(de).onBackground(me).toHexString(),shadowColor:new te.FastColor(ue).onBackground(me).toHexString(),contentColor:new te.FastColor(Fe).onBackground(me).toHexString()}),[de,ue,Fe,me]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(k==null?void 0:k.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:pe,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:ve},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:J}))))},N=g(16931),B=g(51636);const D=H=>{const{componentCls:k,margin:de,marginXS:ue,marginXL:Fe,fontSize:me,lineHeight:ve}=H;return{[k]:{marginInline:ue,fontSize:me,lineHeight:ve,textAlign:"center",[`${k}-image`]:{height:H.emptyImgHeight,marginBottom:ue,opacity:H.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${k}-description`]:{color:H.colorTextDescription},[`${k}-footer`]:{marginTop:de},"&-normal":{marginBlock:Fe,color:H.colorTextDescription,[`${k}-description`]:{color:H.colorTextDescription},[`${k}-image`]:{height:H.emptyImgHeightMD}},"&-small":{marginBlock:ue,color:H.colorTextDescription,[`${k}-image`]:{height:H.emptyImgHeightSM}}}}};var O=(0,N.I$)("Empty",H=>{const{componentCls:k,controlHeightLG:de,calc:ue}=H,Fe=(0,B.mergeToken)(H,{emptyImgCls:`${k}-img`,emptyImgHeight:ue(de).mul(2.5).equal(),emptyImgHeightMD:de,emptyImgHeightSM:ue(de).mul(.875).equal()});return[D(Fe)]}),T=g(48755),E=function(H,k){var de={};for(var ue in H)Object.prototype.hasOwnProperty.call(H,ue)&&k.indexOf(ue)<0&&(de[ue]=H[ue]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ue=Object.getOwnPropertySymbols(H);Fe{const{className:k,rootClassName:de,prefixCls:ue,image:Fe=U,description:me,children:ve,imageStyle:pe,style:J,classNames:ye,styles:p}=H,j=E(H,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Xe,direction:ie,className:he,style:Ce,classNames:ge,styles:ae}=(0,T.dj)("empty"),Ae=Xe("empty",ue),[nt,vt,Ve]=O(Ae),[Nt]=(0,Be.Z)("Empty"),yt=typeof me!="undefined"?me:Nt==null?void 0:Nt.description,zt=typeof yt=="string"?yt:"empty";let je=null;return typeof Fe=="string"?je=s.createElement("img",{alt:zt,src:Fe}):je=Fe,nt(s.createElement("div",Object.assign({className:M()(vt,Ve,Ae,he,{[`${Ae}-normal`]:Fe===F,[`${Ae}-rtl`]:ie==="rtl"},k,de,ge.root,ye==null?void 0:ye.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),Ce),p==null?void 0:p.root),J)},j),s.createElement("div",{className:M()(`${Ae}-image`,ge.image,ye==null?void 0:ye.image),style:Object.assign(Object.assign(Object.assign({},pe),ae.image),p==null?void 0:p.image)},je),yt&&s.createElement("div",{className:M()(`${Ae}-description`,ge.description,ye==null?void 0:ye.description),style:Object.assign(Object.assign({},ae.description),p==null?void 0:p.description)},yt),ve&&s.createElement("div",{className:M()(`${Ae}-footer`,ge.footer,ye==null?void 0:ye.footer),style:Object.assign(Object.assign({},ae.footer),p==null?void 0:p.footer)},ve)))};W.PRESENTED_IMAGE_DEFAULT=U,W.PRESENTED_IMAGE_SIMPLE=F;var re=W},4875:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return Qt}});var s=g(59301),Se=g(84105),M=g(87395),Be=g(92310),te=g.n(Be),G=g(54476),Z=g(20068),v=g(76190),L=g(42978),i=g(75931),N=g(67732),B=g(83652);function D(){return typeof BigInt=="function"}function O(se){return!se&&se!==0&&!Number.isNaN(se)||!String(se).trim()}function T(se){var Oe=se.trim(),We=Oe.startsWith("-");We&&(Oe=Oe.slice(1)),Oe=Oe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Oe.startsWith(".")&&(Oe="0".concat(Oe));var mt=Oe||"0",Rt=mt.split("."),en=Rt[0]||"0",En=Rt[1]||"0";en==="0"&&En==="0"&&(We=!1);var xn=We?"-":"";return{negative:We,negativeStr:xn,trimStr:mt,integerStr:en,decimalStr:En,fullStr:"".concat(xn).concat(mt)}}function E(se){var Oe=String(se);return!Number.isNaN(Number(Oe))&&Oe.includes("e")}function U(se){var Oe=String(se);if(E(se)){var We=Number(Oe.slice(Oe.indexOf("e-")+2)),mt=Oe.match(/\.(\d+)/);return mt!=null&&mt[1]&&(We+=mt[1].length),We}return Oe.includes(".")&&W(Oe)?Oe.length-Oe.indexOf(".")-1:0}function F(se){var Oe=String(se);if(E(se)){if(se>Number.MAX_SAFE_INTEGER)return String(D()?BigInt(se).toString():Number.MAX_SAFE_INTEGER);if(se0&&arguments[0]!==void 0?arguments[0]:!0;return We?this.isInvalidate()?"":T("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),se}(),H=function(){function se(Oe){if((0,N.Z)(this,se),(0,Z.Z)(this,"origin",""),(0,Z.Z)(this,"number",void 0),(0,Z.Z)(this,"empty",void 0),O(Oe)){this.empty=!0;return}this.origin=String(Oe),this.number=Number(Oe)}return(0,B.Z)(se,[{key:"negate",value:function(){return new se(-this.toNumber())}},{key:"add",value:function(We){if(this.isInvalidate())return new se(We);var mt=Number(We);if(Number.isNaN(mt))return this;var Rt=this.number+mt;if(Rt>Number.MAX_SAFE_INTEGER)return new se(Number.MAX_SAFE_INTEGER);if(RtNumber.MAX_SAFE_INTEGER)return new se(Number.MAX_SAFE_INTEGER);if(Rt0&&arguments[0]!==void 0?arguments[0]:!0;return We?this.isInvalidate()?"":F(this.number):this.origin}}]),se}();function k(se){return D()?new re(se):new H(se)}function de(se,Oe,We){var mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(se==="")return"";var Rt=T(se),en=Rt.negativeStr,En=Rt.integerStr,xn=Rt.decimalStr,ln="".concat(Oe).concat(xn),tn="".concat(en).concat(En);if(We>=0){var Yt=Number(xn[We]);if(Yt>=5&&!mt){var cn=k(se).add("".concat(en,"0.").concat("0".repeat(We)).concat(10-Yt));return de(cn.toString(),Oe,We,mt)}return We===0?tn:"".concat(tn).concat(Oe).concat(xn.padEnd(We,"0").slice(0,We))}return ln===".0"?tn:"".concat(tn).concat(ln)}var ue=k,Fe=g(36901),me=g(34280);function ve(se,Oe){return typeof Proxy!="undefined"&&se?new Proxy(se,{get:function(mt,Rt){if(Oe[Rt])return Oe[Rt];var en=mt[Rt];return typeof en=="function"?en.bind(mt):en}}):se}var pe=g(8654),J=g(48736);function ye(se,Oe){var We=(0,s.useRef)(null);function mt(){try{var en=se.selectionStart,En=se.selectionEnd,xn=se.value,ln=xn.substring(0,en),tn=xn.substring(En);We.current={start:en,end:En,value:xn,beforeTxt:ln,afterTxt:tn}}catch(Yt){}}function Rt(){if(se&&We.current&&Oe)try{var en=se.value,En=We.current,xn=En.beforeTxt,ln=En.afterTxt,tn=En.start,Yt=en.length;if(en.startsWith(xn))Yt=xn.length;else if(en.endsWith(ln))Yt=en.length-We.current.afterTxt.length;else{var cn=xn[tn-1],yn=en.indexOf(cn,tn-1);yn!==-1&&(Yt=yn+1)}se.setSelectionRange(Yt,Yt)}catch(In){(0,J.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(In.message))}}return[mt,Rt]}var p=g(49658),j=function(){var Oe=(0,s.useState)(!1),We=(0,L.Z)(Oe,2),mt=We[0],Rt=We[1];return(0,me.Z)(function(){Rt((0,p.Z)())},[]),mt},Xe=j,ie=g(16089),he=200,Ce=600;function ge(se){var Oe=se.prefixCls,We=se.upNode,mt=se.downNode,Rt=se.upDisabled,en=se.downDisabled,En=se.onStep,xn=s.useRef(),ln=s.useRef([]),tn=s.useRef();tn.current=En;var Yt=function(){clearTimeout(xn.current)},cn=function(fr,Jn){fr.preventDefault(),Yt(),tn.current(Jn);function zr(){tn.current(Jn),xn.current=setTimeout(zr,he)}xn.current=setTimeout(zr,Ce)};s.useEffect(function(){return function(){Yt(),ln.current.forEach(function(Lr){return ie.Z.cancel(Lr)})}},[]);var yn=Xe();if(yn)return null;var In="".concat(Oe,"-handler"),Kn=te()(In,"".concat(In,"-up"),(0,Z.Z)({},"".concat(In,"-up-disabled"),Rt)),qn=te()(In,"".concat(In,"-down"),(0,Z.Z)({},"".concat(In,"-down-disabled"),en)),er=function(){return ln.current.push((0,ie.Z)(Yt))},xr={unselectable:"on",role:"button",onMouseUp:er,onMouseLeave:er};return s.createElement("div",{className:"".concat(In,"-wrap")},s.createElement("span",(0,G.Z)({},xr,{onMouseDown:function(fr){cn(fr,!0)},"aria-label":"Increase Value","aria-disabled":Rt,className:Kn}),We||s.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-up-inner")})),s.createElement("span",(0,G.Z)({},xr,{onMouseDown:function(fr){cn(fr,!1)},"aria-label":"Decrease Value","aria-disabled":en,className:qn}),mt||s.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-down-inner")})))}function ae(se){var Oe=typeof se=="number"?F(se):T(se).fullStr,We=Oe.includes(".");return We?T(Oe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:se+"0"}var Ae=g(30292),nt=function(){var se=(0,s.useRef)(0),Oe=function(){ie.Z.cancel(se.current)};return(0,s.useEffect)(function(){return Oe},[]),function(We){Oe(),se.current=(0,ie.Z)(function(){We()})}},vt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Ve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Nt=function(Oe,We){return Oe||We.isEmpty()?We.toString():We.toNumber()},yt=function(Oe){var We=ue(Oe);return We.isInvalidate()?null:We},zt=s.forwardRef(function(se,Oe){var We=se.prefixCls,mt=se.className,Rt=se.style,en=se.min,En=se.max,xn=se.step,ln=xn===void 0?1:xn,tn=se.defaultValue,Yt=se.value,cn=se.disabled,yn=se.readOnly,In=se.upHandler,Kn=se.downHandler,qn=se.keyboard,er=se.changeOnWheel,xr=er===void 0?!1:er,Lr=se.controls,fr=Lr===void 0?!0:Lr,Jn=se.classNames,zr=se.stringMode,pr=se.parser,ao=se.formatter,mo=se.precision,Dn=se.decimalSeparator,Cn=se.onChange,br=se.onInput,Or=se.onPressEnter,wt=se.onStep,dt=se.changeOnBlur,Sn=dt===void 0?!0:dt,Re=se.domRef,lt=(0,i.Z)(se,vt),Bt="".concat(We,"-input"),qt=s.useRef(null),bn=s.useState(!1),zn=(0,L.Z)(bn,2),Yn=zn[0],hn=zn[1],Mn=s.useRef(!1),sr=s.useRef(!1),Wn=s.useRef(!1),Sr=s.useState(function(){return ue(Yt!=null?Yt:tn)}),hr=(0,L.Z)(Sr,2),Fr=hr[0],Ko=hr[1];function $i(Gn){Yt===void 0&&Ko(Gn)}var wi=s.useCallback(function(Gn,_n){if(!_n)return mo>=0?mo:Math.max(U(Gn),U(ln))},[mo,ln]),Ro=s.useCallback(function(Gn){var _n=String(Gn);if(pr)return pr(_n);var gr=_n;return Dn&&(gr=gr.replace(Dn,".")),gr.replace(/[^\w.-]+/g,"")},[pr,Dn]),Fi=s.useRef(""),Lo=s.useCallback(function(Gn,_n){if(ao)return ao(Gn,{userTyping:_n,input:String(Fi.current)});var gr=typeof Gn=="number"?F(Gn):Gn;if(!_n){var jr=wi(gr,_n);if(W(gr)&&(Dn||jr>=0)){var Ao=Dn||".";gr=de(gr,Ao,jr)}}return gr},[ao,wi,Dn]),_i=s.useState(function(){var Gn=tn!=null?tn:Yt;return Fr.isInvalidate()&&["string","number"].includes((0,v.Z)(Gn))?Number.isNaN(Gn)?"":Gn:Lo(Fr.toString(),!1)}),Xi=(0,L.Z)(_i,2),zo=Xi[0],Ii=Xi[1];Fi.current=zo;function Oi(Gn,_n){Ii(Lo(Gn.isInvalidate()?Gn.toString(!1):Gn.toString(!_n),_n))}var _r=s.useMemo(function(){return yt(En)},[En,mo]),lo=s.useMemo(function(){return yt(en)},[en,mo]),oi=s.useMemo(function(){return!_r||!Fr||Fr.isInvalidate()?!1:_r.lessEquals(Fr)},[_r,Fr]),_o=s.useMemo(function(){return!lo||!Fr||Fr.isInvalidate()?!1:Fr.lessEquals(lo)},[lo,Fr]),ea=ye(qt.current,Yn),ya=(0,L.Z)(ea,2),ki=ya[0],ri=ya[1],di=function(_n){return _r&&!_n.lessEquals(_r)?_r:lo&&!lo.lessEquals(_n)?lo:null},Xo=function(_n){return!di(_n)},aa=function(_n,gr){var jr=_n,Ao=Xo(jr)||jr.isEmpty();if(!jr.isEmpty()&&!gr&&(jr=di(jr)||jr,Ao=!0),!yn&&!cn&&Ao){var qo=jr.toString(),fi=wi(qo,gr);return fi>=0&&(jr=ue(de(qo,".",fi)),Xo(jr)||(jr=ue(de(qo,".",fi,!0)))),jr.equals(Fr)||($i(jr),Cn==null||Cn(jr.isEmpty()?null:Nt(zr,jr)),Yt===void 0&&Oi(jr,gr)),jr}return Fr},Ga=nt(),wa=function Gn(_n){if(ki(),Fi.current=_n,Ii(_n),!sr.current){var gr=Ro(_n),jr=ue(gr);jr.isNaN()||aa(jr,!0)}br==null||br(_n),Ga(function(){var Ao=_n;pr||(Ao=_n.replace(/。/g,".")),Ao!==_n&&Gn(Ao)})},Aa=function(){sr.current=!0},Yi=function(){sr.current=!1,wa(qt.current.value)},fa=function(_n){wa(_n.target.value)},vA=function(_n){var gr;if(!(_n&&oi||!_n&&_o)){Mn.current=!1;var jr=ue(Wn.current?ae(ln):ln);_n||(jr=jr.negate());var Ao=(Fr||ue(0)).add(jr.toString()),qo=aa(Ao,!1);wt==null||wt(Nt(zr,qo),{offset:Wn.current?ae(ln):ln,type:_n?"up":"down"}),(gr=qt.current)===null||gr===void 0||gr.focus()}},sA=function(_n){var gr=ue(Ro(zo)),jr;gr.isNaN()?jr=aa(Fr,_n):jr=aa(gr,_n),Yt!==void 0?Oi(Fr,!1):jr.isNaN()||Oi(jr,!1)},sa=function(){Mn.current=!0},Vr=function(_n){var gr=_n.key,jr=_n.shiftKey;Mn.current=!0,Wn.current=jr,gr==="Enter"&&(sr.current||(Mn.current=!1),sA(!1),Or==null||Or(_n)),qn!==!1&&!sr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(gr)&&(vA(gr==="Up"||gr==="ArrowUp"),_n.preventDefault())},Qn=function(){Mn.current=!1,Wn.current=!1};s.useEffect(function(){if(xr&&Yn){var Gn=function(jr){vA(jr.deltaY<0),jr.preventDefault()},_n=qt.current;if(_n)return _n.addEventListener("wheel",Gn,{passive:!1}),function(){return _n.removeEventListener("wheel",Gn)}}});var Xn=function(){Sn&&sA(!1),hn(!1),Mn.current=!1};return(0,me.o)(function(){Fr.isInvalidate()||Oi(Fr,!1)},[mo,ao]),(0,me.o)(function(){var Gn=ue(Yt);Ko(Gn);var _n=ue(Ro(zo));(!Gn.equals(_n)||!Mn.current||ao)&&Oi(Gn,Mn.current)},[Yt]),(0,me.o)(function(){ao&&ri()},[zo]),s.createElement("div",{ref:Re,className:te()(We,mt,(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({},"".concat(We,"-focused"),Yn),"".concat(We,"-disabled"),cn),"".concat(We,"-readonly"),yn),"".concat(We,"-not-a-number"),Fr.isNaN()),"".concat(We,"-out-of-range"),!Fr.isInvalidate()&&!Xo(Fr))),style:Rt,onFocus:function(){hn(!0)},onBlur:Xn,onKeyDown:Vr,onKeyUp:Qn,onCompositionStart:Aa,onCompositionEnd:Yi,onBeforeInput:sa},fr&&s.createElement(ge,{prefixCls:We,upNode:In,downNode:Kn,upDisabled:oi,downDisabled:_o,onStep:vA}),s.createElement("div",{className:"".concat(Bt,"-wrap")},s.createElement("input",(0,G.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":en,"aria-valuemax":En,"aria-valuenow":Fr.isInvalidate()?null:Fr.toString(),step:ln},lt,{ref:(0,pe.sQ)(qt,Oe),className:Bt,value:zo,onChange:fa,disabled:cn,readOnly:yn}))))}),je=s.forwardRef(function(se,Oe){var We=se.disabled,mt=se.style,Rt=se.prefixCls,en=Rt===void 0?"rc-input-number":Rt,En=se.value,xn=se.prefix,ln=se.suffix,tn=se.addonBefore,Yt=se.addonAfter,cn=se.className,yn=se.classNames,In=(0,i.Z)(se,Ve),Kn=s.useRef(null),qn=s.useRef(null),er=s.useRef(null),xr=function(fr){er.current&&(0,Ae.nH)(er.current,fr)};return s.useImperativeHandle(Oe,function(){return ve(er.current,{focus:xr,nativeElement:Kn.current.nativeElement||qn.current})}),s.createElement(Fe.BaseInput,{className:cn,triggerFocus:xr,prefixCls:en,value:En,disabled:We,style:mt,prefix:xn,suffix:ln,addonAfter:Yt,addonBefore:tn,classNames:yn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Kn},s.createElement(zt,(0,G.Z)({prefixCls:en,disabled:We,ref:er,domRef:qn,className:yn==null?void 0:yn.input},In)))}),It=je,ze=It,Pt=g(62487),ct=g(82855),x=g(48755),ke=g(60840),P=g(2171),A=g(83397),h=g(31756),C=g(56553),b=g(24971),K=g(70045),ee=g(36237),Ee=g(53075),le=g(64910),ce=g(39082),Qe=g(63356),He=g(56119),oe=g(16931),$=g(51636),et=g(17835);const Te=se=>{var Oe;const We=(Oe=se.handleVisible)!==null&&Oe!==void 0?Oe:"auto",mt=se.controlHeightSM-se.lineWidth*2;return Object.assign(Object.assign({},(0,le.T)(se)),{controlWidth:90,handleWidth:mt,handleFontSize:se.fontSize/2,handleVisible:We,handleActiveBg:se.colorFillAlter,handleBg:se.colorBgContainer,filledHandleBg:new et.FastColor(se.colorFillSecondary).onBackground(se.colorBgContainer).toHexString(),handleHoverColor:se.colorPrimary,handleBorderColor:se.colorBorder,handleOpacity:We===!0?1:0,handleVisibleWidth:We===!0?mt:0})},Et=(se,Oe)=>{let{componentCls:We,borderRadiusSM:mt,borderRadiusLG:Rt}=se;const en=Oe==="lg"?Rt:mt;return{[`&-${Oe}`]:{[`${We}-handler-wrap`]:{borderStartEndRadius:en,borderEndEndRadius:en},[`${We}-handler-up`]:{borderStartEndRadius:en},[`${We}-handler-down`]:{borderEndEndRadius:en}}}},at=se=>{const{componentCls:Oe,lineWidth:We,lineType:mt,borderRadius:Rt,inputFontSizeSM:en,inputFontSizeLG:En,controlHeightLG:xn,controlHeightSM:ln,colorError:tn,paddingInlineSM:Yt,paddingBlockSM:cn,paddingBlockLG:yn,paddingInlineLG:In,colorTextDescription:Kn,motionDurationMid:qn,handleHoverColor:er,handleOpacity:xr,paddingInline:Lr,paddingBlock:fr,handleBg:Jn,handleActiveBg:zr,colorTextDisabled:pr,borderRadiusSM:ao,borderRadiusLG:mo,controlWidth:Dn,handleBorderColor:Cn,filledHandleBg:br,lineHeightLG:Or,calc:wt}=se;return[{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(se)),(0,Ee.ik)(se)),{display:"inline-block",width:Dn,margin:0,padding:0,borderRadius:Rt}),(0,ce.qG)(se,{[`${Oe}-handler-wrap`]:{background:Jn,[`${Oe}-handler-down`]:{borderBlockStart:`${(0,ee.unit)(We)} ${mt} ${Cn}`}}})),(0,ce.H8)(se,{[`${Oe}-handler-wrap`]:{background:br,[`${Oe}-handler-down`]:{borderBlockStart:`${(0,ee.unit)(We)} ${mt} ${Cn}`}},"&:focus-within":{[`${Oe}-handler-wrap`]:{background:Jn}}})),(0,ce.vc)(se,{[`${Oe}-handler-wrap`]:{background:Jn,[`${Oe}-handler-down`]:{borderBlockStart:`${(0,ee.unit)(We)} ${mt} ${Cn}`}}})),(0,ce.Mu)(se)),{"&-rtl":{direction:"rtl",[`${Oe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:En,lineHeight:Or,borderRadius:mo,[`input${Oe}-input`]:{height:wt(xn).sub(wt(We).mul(2)).equal(),padding:`${(0,ee.unit)(yn)} ${(0,ee.unit)(In)}`}},"&-sm":{padding:0,fontSize:en,borderRadius:ao,[`input${Oe}-input`]:{height:wt(ln).sub(wt(We).mul(2)).equal(),padding:`${(0,ee.unit)(cn)} ${(0,ee.unit)(Yt)}`}},"&-out-of-range":{[`${Oe}-input-wrap`]:{input:{color:tn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(se)),(0,Ee.s7)(se)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Oe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Oe}-group-addon`]:{borderRadius:mo,fontSize:se.fontSizeLG}},"&-sm":{[`${Oe}-group-addon`]:{borderRadius:ao}}},(0,ce.ir)(se)),(0,ce.S5)(se)),{[`&:not(${Oe}-compact-first-item):not(${Oe}-compact-last-item)${Oe}-compact-item`]:{[`${Oe}, ${Oe}-group-addon`]:{borderRadius:0}},[`&:not(${Oe}-compact-last-item)${Oe}-compact-first-item`]:{[`${Oe}, ${Oe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Oe}-compact-first-item)${Oe}-compact-last-item`]:{[`${Oe}, ${Oe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Oe}-input`]:{cursor:"not-allowed"},[Oe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(se)),{width:"100%",padding:`${(0,ee.unit)(fr)} ${(0,ee.unit)(Lr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Rt,outline:0,transition:`all ${qn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ee.nz)(se.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Oe}-handler-wrap, &-focused ${Oe}-handler-wrap`]:{width:se.handleWidth,opacity:1}})},{[Oe]:Object.assign(Object.assign(Object.assign({[`${Oe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:se.handleVisibleWidth,opacity:xr,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Rt,borderEndEndRadius:Rt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${qn}`,overflow:"hidden",[`${Oe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{[`&:hover ${v}-inner`]:{backgroundColor:Z.colorPrimaryHover,borderColor:"transparent"}}},{[v]:{"&-indeterminate":{[`${v}-inner`]:{backgroundColor:`${Z.colorBgContainer} !important`,borderColor:`${Z.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Z.calc(Z.fontSizeLG).div(2).equal(),height:Z.calc(Z.fontSizeLG).div(2).equal(),backgroundColor:Z.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${v}-inner`]:{backgroundColor:`${Z.colorBgContainer} !important`,borderColor:`${Z.colorPrimary} !important`}}}},{[`${N}-disabled`]:{cursor:"not-allowed"},[`${v}-disabled`]:{[`&, ${v}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${v}-inner`]:{background:Z.colorBgContainerDisabled,borderColor:Z.colorBorder,"&:after":{borderColor:Z.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Z.colorTextDisabled},[`&${v}-indeterminate ${v}-inner::after`]:{background:Z.colorTextDisabled}}}]};function $(Z,v){const N=(0,M.mergeToken)(v,{checkboxCls:`.${Z}`,checkboxSize:v.controlInteractiveSize});return[te(N)]}Zt.ZP=(0,we.I$)("Checkbox",(Z,v)=>{let{prefixCls:N}=v;return[$(N,Z)]})},38406:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(48755),M=p(584);const we=te=>{const{componentName:$}=te,{getPrefixCls:Z}=(0,s.useContext)(Se.E_),v=Z("empty");switch($){case"Table":case"List":return s.createElement(M.Z,{image:M.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return s.createElement(M.Z,{image:M.Z.PRESENTED_IMAGE_SIMPLE,className:`${v}-small`});case"Table.filter":return null;default:return s.createElement(M.Z,null)}};Zt.Z=we},37285:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return O}});var s=p(59301),Se=p(92310),M=p.n(Se),we=p(48755),te=p(36237),$=p(63356),Z=p(16931),v=p(51636);const N=T=>{const{componentCls:E,sizePaddingEdgeHorizontal:I,colorSplit:U,lineWidth:W,textPaddingInline:re,orientationMargin:k,verticalMarginInline:H}=T;return{[E]:Object.assign(Object.assign({},(0,$.Wf)(T)),{borderBlockStart:`${(0,te.unit)(W)} solid ${U}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:H,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,te.unit)(W)} solid ${U}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,te.unit)(T.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${E}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,te.unit)(T.dividerHorizontalWithTextGutterMargin)} 0`,color:T.colorTextHeading,fontWeight:500,fontSize:T.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${U}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,te.unit)(W)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${E}-with-text-start`]:{"&::before":{width:`calc(${k} * 100%)`},"&::after":{width:`calc(100% - ${k} * 100%)`}},[`&-horizontal${E}-with-text-end`]:{"&::before":{width:`calc(100% - ${k} * 100%)`},"&::after":{width:`calc(${k} * 100%)`}},[`${E}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:re},"&-dashed":{background:"none",borderColor:U,borderStyle:"dashed",borderWidth:`${(0,te.unit)(W)} 0 0`},[`&-horizontal${E}-with-text${E}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${E}-dashed`]:{borderInlineStartWidth:W,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:U,borderStyle:"dotted",borderWidth:`${(0,te.unit)(W)} 0 0`},[`&-horizontal${E}-with-text${E}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${E}-dotted`]:{borderInlineStartWidth:W,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${E}-with-text`]:{color:T.colorText,fontWeight:"normal",fontSize:T.fontSize},[`&-horizontal${E}-with-text-start${E}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${E}-inner-text`]:{paddingInlineStart:I}},[`&-horizontal${E}-with-text-end${E}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${E}-inner-text`]:{paddingInlineEnd:I}}})}},i=T=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:T.marginXS});var L=(0,Z.I$)("Divider",T=>{const E=(0,v.mergeToken)(T,{dividerHorizontalWithTextGutterMargin:T.margin,dividerHorizontalGutterMargin:T.marginLG,sizePaddingEdgeHorizontal:0});return[N(E)]},i,{unitless:{orientationMargin:!0}}),B=function(T,E){var I={};for(var U in T)Object.prototype.hasOwnProperty.call(T,U)&&E.indexOf(U)<0&&(I[U]=T[U]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,U=Object.getOwnPropertySymbols(T);W{const{getPrefixCls:E,direction:I,className:U,style:W}=(0,we.dj)("divider"),{prefixCls:re,type:k="horizontal",orientation:H="center",orientationMargin:de,className:ce,rootClassName:Fe,children:ve,dashed:pe,variant:Ce="solid",plain:G,style:ge}=T,g=B(T,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),j=E("divider",re),[Ye,oe,he]=L(j),be=!!ve,me=s.useMemo(()=>H==="left"?I==="rtl"?"end":"start":H==="right"?I==="rtl"?"start":"end":H,[I,H]),ae=me==="start"&&de!=null,se=me==="end"&&de!=null,Je=M()(j,U,oe,he,`${j}-${k}`,{[`${j}-with-text`]:be,[`${j}-with-text-${me}`]:be,[`${j}-dashed`]:!!pe,[`${j}-${Ce}`]:Ce!=="solid",[`${j}-plain`]:!!G,[`${j}-rtl`]:I==="rtl",[`${j}-no-default-orientation-margin-start`]:ae,[`${j}-no-default-orientation-margin-end`]:se},ce,Fe),mt=s.useMemo(()=>typeof de=="number"?de:/^\d+$/.test(de)?Number(de):de,[de]),Me={marginInlineStart:ae?mt:void 0,marginInlineEnd:se?mt:void 0};return Ye(s.createElement("div",Object.assign({className:Je,style:Object.assign(Object.assign({},W),ge)},g,{role:"separator"}),ve&&k!=="vertical"&&s.createElement("span",{className:`${j}-inner-text`,style:Me},ve)))}},19563:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return mt}});var s=p(59301),Se=p(33853),M=p(38819),we=p(92310),te=p.n(we),$=p(96478),Z=p(6089),v=p(18929),N=p(2738),i=p(75030),B=Me=>typeof Me!="object"&&typeof Me!="function"||Me===null,D=p(52838),O=p(45915),T=p(22703),E=p(32383),I=p(55743),U=p(48755),W=p(83397),re=p(93041),k=p(78857),H=p(57700),de=p(36237),ce=p(63356),Fe=p(46e3),ve=p(93873),pe=p(34925),Ce=p(37645),G=p(36305),ge=p(16931),g=p(51636),Ye=Me=>{const{componentCls:Nt,menuCls:yt,colorError:zt,colorTextLightSolid:je}=Me,It=`${yt}-item`;return{[`${Nt}, ${Nt}-menu-submenu`]:{[`${yt} ${It}`]:{[`&${It}-danger:not(${It}-disabled)`]:{color:zt,"&:hover":{color:je,backgroundColor:zt}}}}}};const oe=Me=>{const{componentCls:Nt,menuCls:yt,zIndexPopup:zt,dropdownArrowDistance:je,sizePopupArrow:It,antCls:Ze,iconCls:Pt,motionDurationMid:ct,paddingBlock:x,fontSize:Ke,dropdownEdgeChildPadding:P,colorTextDisabled:A,fontSizeIcon:h,controlPaddingHorizontal:C,colorBgElevated:b}=Me;return[{[Nt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:zt,display:"block","&::before":{position:"absolute",insetBlock:Me.calc(It).div(2).sub(je).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ze}-btn`]:{[`& > ${Pt}-down, & > ${Ze}-btn-icon > ${Pt}-down`]:{fontSize:h}},[`${Nt}-wrap`]:{position:"relative",[`${Ze}-btn > ${Pt}-down`]:{fontSize:h},[`${Pt}-down::before`]:{transition:`transform ${ct}`}},[`${Nt}-wrap-open`]:{[`${Pt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ze}-slide-down-enter${Ze}-slide-down-enter-active${Nt}-placement-bottomLeft, + &${Ze}-slide-down-appear${Ze}-slide-down-appear-active${Nt}-placement-bottomLeft, + &${Ze}-slide-down-enter${Ze}-slide-down-enter-active${Nt}-placement-bottom, + &${Ze}-slide-down-appear${Ze}-slide-down-appear-active${Nt}-placement-bottom, + &${Ze}-slide-down-enter${Ze}-slide-down-enter-active${Nt}-placement-bottomRight, + &${Ze}-slide-down-appear${Ze}-slide-down-appear-active${Nt}-placement-bottomRight`]:{animationName:Fe.fJ},[`&${Ze}-slide-up-enter${Ze}-slide-up-enter-active${Nt}-placement-topLeft, + &${Ze}-slide-up-appear${Ze}-slide-up-appear-active${Nt}-placement-topLeft, + &${Ze}-slide-up-enter${Ze}-slide-up-enter-active${Nt}-placement-top, + &${Ze}-slide-up-appear${Ze}-slide-up-appear-active${Nt}-placement-top, + &${Ze}-slide-up-enter${Ze}-slide-up-enter-active${Nt}-placement-topRight, + &${Ze}-slide-up-appear${Ze}-slide-up-appear-active${Nt}-placement-topRight`]:{animationName:Fe.Qt},[`&${Ze}-slide-down-leave${Ze}-slide-down-leave-active${Nt}-placement-bottomLeft, + &${Ze}-slide-down-leave${Ze}-slide-down-leave-active${Nt}-placement-bottom, + &${Ze}-slide-down-leave${Ze}-slide-down-leave-active${Nt}-placement-bottomRight`]:{animationName:Fe.Uw},[`&${Ze}-slide-up-leave${Ze}-slide-up-leave-active${Nt}-placement-topLeft, + &${Ze}-slide-up-leave${Ze}-slide-up-leave-active${Nt}-placement-top, + &${Ze}-slide-up-leave${Ze}-slide-up-leave-active${Nt}-placement-topRight`]:{animationName:Fe.ly}}},(0,Ce.ZP)(Me,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Nt} ${yt}`]:{position:"relative",margin:0},[`${yt}-submenu-popup`]:{position:"absolute",zIndex:zt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Nt}, ${Nt}-menu-submenu`]:Object.assign(Object.assign({},(0,ce.Wf)(Me)),{[yt]:Object.assign(Object.assign({padding:P,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary},(0,ce.Qy)(Me)),{"&:empty":{padding:0,boxShadow:"none"},[`${yt}-item-group-title`]:{padding:`${(0,de.unit)(x)} ${(0,de.unit)(C)}`,color:Me.colorTextDescription,transition:`all ${ct}`},[`${yt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${yt}-item-icon`]:{minWidth:Ke,marginInlineEnd:Me.marginXS,fontSize:Me.fontSizeSM},[`${yt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${yt}-item-extra`]:{paddingInlineStart:Me.padding,marginInlineStart:"auto",fontSize:Me.fontSizeSM,color:Me.colorTextDescription}},[`${yt}-item, ${yt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,de.unit)(x)} ${(0,de.unit)(C)}`,color:Me.colorText,fontWeight:"normal",fontSize:Ke,lineHeight:Me.lineHeight,cursor:"pointer",transition:`all ${ct}`,borderRadius:Me.borderRadiusSM,"&:hover, &-active":{backgroundColor:Me.controlItemBgHover}},(0,ce.Qy)(Me)),{"&-selected":{color:Me.colorPrimary,backgroundColor:Me.controlItemBgActive,"&:hover, &-active":{backgroundColor:Me.controlItemBgActiveHover}},"&-disabled":{color:A,cursor:"not-allowed","&:hover":{color:A,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,de.unit)(Me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Me.colorSplit},[`${Nt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,[`${Nt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Me.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${yt}-item-group-list`]:{margin:`0 ${(0,de.unit)(Me.marginXS)}`,padding:0,listStyle:"none"},[`${yt}-submenu-title`]:{paddingInlineEnd:Me.calc(C).add(Me.fontSizeSM).equal()},[`${yt}-submenu-vertical`]:{position:"relative"},[`${yt}-submenu${yt}-submenu-disabled ${Nt}-menu-submenu-title`]:{[`&, ${Nt}-menu-submenu-arrow-icon`]:{color:A,backgroundColor:b,cursor:"not-allowed"}},[`${yt}-submenu-selected ${Nt}-menu-submenu-title`]:{color:Me.colorPrimary}})})},[(0,Fe.oN)(Me,"slide-up"),(0,Fe.oN)(Me,"slide-down"),(0,ve.Fm)(Me,"move-up"),(0,ve.Fm)(Me,"move-down"),(0,pe._y)(Me,"zoom-big")]]},he=Me=>Object.assign(Object.assign({zIndexPopup:Me.zIndexPopupBase+50,paddingBlock:(Me.controlHeight-Me.fontSize*Me.lineHeight)/2},(0,Ce.wZ)({contentRadius:Me.borderRadiusLG,limitVerticalRadius:!0})),(0,G.w)(Me));var be=(0,ge.I$)("Dropdown",Me=>{const{marginXXS:Nt,sizePopupArrow:yt,paddingXXS:zt,componentCls:je}=Me,It=(0,g.mergeToken)(Me,{menuCls:`${je}-menu`,dropdownArrowDistance:Me.calc(yt).div(2).add(Nt).equal(),dropdownEdgeChildPadding:zt});return[oe(It),Ye(It)]},he,{resetStyle:!1});const me=null,ae=Me=>{var Nt;const{menu:yt,arrow:zt,prefixCls:je,children:It,trigger:Ze,disabled:Pt,dropdownRender:ct,getPopupContainer:x,overlayClassName:Ke,rootClassName:P,overlayStyle:A,open:h,onOpenChange:C,visible:b,onVisibleChange:K,mouseEnterDelay:ee=.15,mouseLeaveDelay:Ee=.1,autoAdjustOverflow:le=!0,placement:ue="",overlay:Qe,transitionName:ke}=Me,{getPopupContainer:ie,getPrefixCls:X,direction:tt,dropdown:Te}=s.useContext(U.E_),Et=(0,E.ln)("Dropdown"),at=s.useMemo(()=>{const Kn=X();return ke!==void 0?ke:ue.includes("top")?`${Kn}-slide-down`:`${Kn}-slide-up`},[X,ue,ke]),Ge=s.useMemo(()=>ue?ue.includes("Center")?ue.slice(0,ue.indexOf("Center")):ue:tt==="rtl"?"bottomRight":"bottomLeft",[ue,tt]),Ut=X("dropdown",je),St=(0,W.Z)(Ut),[Ie,$e,ut]=be(Ut,St),[,Qt]=(0,H.ZP)(),Ae=s.Children.only(B(It)?s.createElement("span",null,It):It),Oe=(0,T.Tm)(Ae,{className:te()(`${Ut}-trigger`,{[`${Ut}-rtl`]:tt==="rtl"},Ae.props.className),disabled:(Nt=Ae.props.disabled)!==null&&Nt!==void 0?Nt:Pt}),We=Pt?[]:Ze,vt=!!(We!=null&&We.includes("contextMenu")),[Rt,en]=(0,v.Z)(!1,{value:h!=null?h:b}),En=(0,Z.Z)(Kn=>{C==null||C(Kn,{source:"trigger"}),K==null||K(Kn),en(Kn)}),xn=te()(Ke,P,$e,ut,St,Te==null?void 0:Te.className,{[`${Ut}-rtl`]:tt==="rtl"}),ln=(0,D.Z)({arrowPointAtCenter:typeof zt=="object"&&zt.pointAtCenter,autoAdjustOverflow:le,offset:Qt.marginXXS,arrowWidth:zt?Qt.sizePopupArrow:0,borderRadius:Qt.borderRadius}),tn=s.useCallback(()=>{yt!=null&&yt.selectable&&(yt!=null&&yt.multiple)||(C==null||C(!1,{source:"menu"}),en(!1))},[yt==null?void 0:yt.selectable,yt==null?void 0:yt.multiple]),Yt=()=>{let Kn;return yt!=null&&yt.items?Kn=s.createElement(re.default,Object.assign({},yt)):typeof Qe=="function"?Kn=Qe():Kn=Qe,ct&&(Kn=ct(Kn)),Kn=s.Children.only(typeof Kn=="string"?s.createElement("span",null,Kn):Kn),s.createElement(k.J,{prefixCls:`${Ut}-menu`,rootClassName:te()(ut,St),expandIcon:s.createElement("span",{className:`${Ut}-menu-submenu-arrow`},tt==="rtl"?s.createElement(Se.Z,{className:`${Ut}-menu-submenu-arrow-icon`}):s.createElement(M.Z,{className:`${Ut}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:tn,validator:qn=>{let{mode:er}=qn}},Kn)},[cn,yn]=(0,i.Cn)("Dropdown",A==null?void 0:A.zIndex);let In=s.createElement($.Z,Object.assign({alignPoint:vt},(0,N.Z)(Me,["rootClassName"]),{mouseEnterDelay:ee,mouseLeaveDelay:Ee,visible:Rt,builtinPlacements:ln,arrow:!!zt,overlayClassName:xn,prefixCls:Ut,getPopupContainer:x||ie,transitionName:at,trigger:We,overlay:Yt,placement:Ge,onVisibleChange:En,overlayStyle:Object.assign(Object.assign(Object.assign({},Te==null?void 0:Te.style),A),{zIndex:cn})}),Oe);return cn&&(In=s.createElement(I.Z.Provider,{value:yn},In)),Ie(In)},se=(0,O.Z)(ae,"align",void 0,"dropdown",Me=>Me),Je=Me=>s.createElement(se,Object.assign({},Me),s.createElement("span",null));ae._InternalPanelDoNotUseOrYouWillBeFired=Je;var mt=ae},75727:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return O}});var s=p(19563),Se=p(59301),M=p(18785),we=p(92310),te=p.n(we),$=p(7939),Z=p(48755),v=p(44104),N=p(70045),i=function(T,E){var I={};for(var U in T)Object.prototype.hasOwnProperty.call(T,U)&&E.indexOf(U)<0&&(I[U]=T[U]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,U=Object.getOwnPropertySymbols(T);W{const{getPopupContainer:E,getPrefixCls:I,direction:U}=Se.useContext(Z.E_),{prefixCls:W,type:re="default",danger:k,disabled:H,loading:de,onClick:ce,htmlType:Fe,children:ve,className:pe,menu:Ce,arrow:G,autoFocus:ge,overlay:g,trigger:j,align:Ye,open:oe,onOpenChange:he,placement:be,getPopupContainer:me,href:ae,icon:se=Se.createElement(M.Z,null),title:Je,buttonsRender:mt=ee=>ee,mouseEnterDelay:Me,mouseLeaveDelay:Nt,overlayClassName:yt,overlayStyle:zt,destroyPopupOnHide:je,dropdownRender:It}=T,Ze=i(T,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Pt=I("dropdown",W),ct=`${Pt}-button`,x={menu:Ce,arrow:G,autoFocus:ge,align:Ye,disabled:H,trigger:H?[]:j,onOpenChange:he,getPopupContainer:me||E,mouseEnterDelay:Me,mouseLeaveDelay:Nt,overlayClassName:yt,overlayStyle:zt,destroyPopupOnHide:je,dropdownRender:It},{compactSize:Ke,compactItemClassnames:P}=(0,N.ri)(Pt,U),A=te()(ct,P,pe);"overlay"in T&&(x.overlay=g),"open"in T&&(x.open=oe),"placement"in T?x.placement=be:x.placement=U==="rtl"?"bottomLeft":"bottomRight";const h=Se.createElement($.ZP,{type:re,danger:k,disabled:H,loading:de,onClick:ce,htmlType:Fe,href:ae,title:Je},ve),C=Se.createElement($.ZP,{type:re,danger:k,icon:se}),[b,K]=mt([h,C]);return Se.createElement(v.Z.Compact,Object.assign({className:A,size:Ke,block:!0},Ze),b,Se.createElement(s.Z,Object.assign({},x),K))};L.__ANT_BUTTON=!0;var B=L;const D=s.Z;D.Button=B;var O=D},584:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return re}});var s=p(59301),Se=p(92310),M=p.n(Se),we=p(9017),te=p(17835),$=p(57700),v=()=>{const[,k]=(0,$.ZP)(),[H]=(0,we.Z)("Empty"),ce=new te.FastColor(k.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(H==null?void 0:H.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),s.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),s.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),s.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),s.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},i=()=>{const[,k]=(0,$.ZP)(),[H]=(0,we.Z)("Empty"),{colorFill:de,colorFillTertiary:ce,colorFillQuaternary:Fe,colorBgContainer:ve}=k,{borderColor:pe,shadowColor:Ce,contentColor:G}=(0,s.useMemo)(()=>({borderColor:new te.FastColor(de).onBackground(ve).toHexString(),shadowColor:new te.FastColor(ce).onBackground(ve).toHexString(),contentColor:new te.FastColor(Fe).onBackground(ve).toHexString()}),[de,ce,Fe,ve]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(H==null?void 0:H.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:pe},s.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),s.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:G}))))},L=p(16931),B=p(51636);const D=k=>{const{componentCls:H,margin:de,marginXS:ce,marginXL:Fe,fontSize:ve,lineHeight:pe}=k;return{[H]:{marginInline:ce,fontSize:ve,lineHeight:pe,textAlign:"center",[`${H}-image`]:{height:k.emptyImgHeight,marginBottom:ce,opacity:k.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${H}-description`]:{color:k.colorTextDescription},[`${H}-footer`]:{marginTop:de},"&-normal":{marginBlock:Fe,color:k.colorTextDescription,[`${H}-description`]:{color:k.colorTextDescription},[`${H}-image`]:{height:k.emptyImgHeightMD}},"&-small":{marginBlock:ce,color:k.colorTextDescription,[`${H}-image`]:{height:k.emptyImgHeightSM}}}}};var O=(0,L.I$)("Empty",k=>{const{componentCls:H,controlHeightLG:de,calc:ce}=k,Fe=(0,B.mergeToken)(k,{emptyImgCls:`${H}-img`,emptyImgHeight:ce(de).mul(2.5).equal(),emptyImgHeightMD:de,emptyImgHeightSM:ce(de).mul(.875).equal()});return[D(Fe)]}),T=p(48755),E=function(k,H){var de={};for(var ce in k)Object.prototype.hasOwnProperty.call(k,ce)&&H.indexOf(ce)<0&&(de[ce]=k[ce]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ce=Object.getOwnPropertySymbols(k);Fe{const{className:H,rootClassName:de,prefixCls:ce,image:Fe=I,description:ve,children:pe,imageStyle:Ce,style:G,classNames:ge,styles:g}=k,j=E(k,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ye,direction:oe,className:he,style:be,classNames:me,styles:ae}=(0,T.dj)("empty"),se=Ye("empty",ce),[Je,mt,Me]=O(se),[Nt]=(0,we.Z)("Empty"),yt=typeof ve!="undefined"?ve:Nt==null?void 0:Nt.description,zt=typeof yt=="string"?yt:"empty";let je=null;return typeof Fe=="string"?je=s.createElement("img",{alt:zt,src:Fe}):je=Fe,Je(s.createElement("div",Object.assign({className:M()(mt,Me,se,he,{[`${se}-normal`]:Fe===U,[`${se}-rtl`]:oe==="rtl"},H,de,me.root,ge==null?void 0:ge.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ae.root),be),g==null?void 0:g.root),G)},j),s.createElement("div",{className:M()(`${se}-image`,me.image,ge==null?void 0:ge.image),style:Object.assign(Object.assign(Object.assign({},Ce),ae.image),g==null?void 0:g.image)},je),yt&&s.createElement("div",{className:M()(`${se}-description`,me.description,ge==null?void 0:ge.description),style:Object.assign(Object.assign({},ae.description),g==null?void 0:g.description)},yt),pe&&s.createElement("div",{className:M()(`${se}-footer`,me.footer,ge==null?void 0:ge.footer),style:Object.assign(Object.assign({},ae.footer),g==null?void 0:g.footer)},pe)))};W.PRESENTED_IMAGE_DEFAULT=I,W.PRESENTED_IMAGE_SIMPLE=U;var re=W},4875:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return Qt}});var s=p(59301),Se=p(84105),M=p(87395),we=p(92310),te=p.n(we),$=p(54476),Z=p(20068),v=p(76190),N=p(42978),i=p(75931),L=p(67732),B=p(83652);function D(){return typeof BigInt=="function"}function O(Ae){return!Ae&&Ae!==0&&!Number.isNaN(Ae)||!String(Ae).trim()}function T(Ae){var Oe=Ae.trim(),We=Oe.startsWith("-");We&&(Oe=Oe.slice(1)),Oe=Oe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Oe.startsWith(".")&&(Oe="0".concat(Oe));var vt=Oe||"0",Rt=vt.split("."),en=Rt[0]||"0",En=Rt[1]||"0";en==="0"&&En==="0"&&(We=!1);var xn=We?"-":"";return{negative:We,negativeStr:xn,trimStr:vt,integerStr:en,decimalStr:En,fullStr:"".concat(xn).concat(vt)}}function E(Ae){var Oe=String(Ae);return!Number.isNaN(Number(Oe))&&Oe.includes("e")}function I(Ae){var Oe=String(Ae);if(E(Ae)){var We=Number(Oe.slice(Oe.indexOf("e-")+2)),vt=Oe.match(/\.(\d+)/);return vt!=null&&vt[1]&&(We+=vt[1].length),We}return Oe.includes(".")&&W(Oe)?Oe.length-Oe.indexOf(".")-1:0}function U(Ae){var Oe=String(Ae);if(E(Ae)){if(Ae>Number.MAX_SAFE_INTEGER)return String(D()?BigInt(Ae).toString():Number.MAX_SAFE_INTEGER);if(Ae0&&arguments[0]!==void 0?arguments[0]:!0;return We?this.isInvalidate()?"":T("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ae}(),k=function(){function Ae(Oe){if((0,L.Z)(this,Ae),(0,Z.Z)(this,"origin",""),(0,Z.Z)(this,"number",void 0),(0,Z.Z)(this,"empty",void 0),O(Oe)){this.empty=!0;return}this.origin=String(Oe),this.number=Number(Oe)}return(0,B.Z)(Ae,[{key:"negate",value:function(){return new Ae(-this.toNumber())}},{key:"add",value:function(We){if(this.isInvalidate())return new Ae(We);var vt=Number(We);if(Number.isNaN(vt))return this;var Rt=this.number+vt;if(Rt>Number.MAX_SAFE_INTEGER)return new Ae(Number.MAX_SAFE_INTEGER);if(RtNumber.MAX_SAFE_INTEGER)return new Ae(Number.MAX_SAFE_INTEGER);if(Rt0&&arguments[0]!==void 0?arguments[0]:!0;return We?this.isInvalidate()?"":U(this.number):this.origin}}]),Ae}();function H(Ae){return D()?new re(Ae):new k(Ae)}function de(Ae,Oe,We){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ae==="")return"";var Rt=T(Ae),en=Rt.negativeStr,En=Rt.integerStr,xn=Rt.decimalStr,ln="".concat(Oe).concat(xn),tn="".concat(en).concat(En);if(We>=0){var Yt=Number(xn[We]);if(Yt>=5&&!vt){var cn=H(Ae).add("".concat(en,"0.").concat("0".repeat(We)).concat(10-Yt));return de(cn.toString(),Oe,We,vt)}return We===0?tn:"".concat(tn).concat(Oe).concat(xn.padEnd(We,"0").slice(0,We))}return ln===".0"?tn:"".concat(tn).concat(ln)}var ce=H,Fe=p(36901),ve=p(34280);function pe(Ae,Oe){return typeof Proxy!="undefined"&&Ae?new Proxy(Ae,{get:function(vt,Rt){if(Oe[Rt])return Oe[Rt];var en=vt[Rt];return typeof en=="function"?en.bind(vt):en}}):Ae}var Ce=p(8654),G=p(48736);function ge(Ae,Oe){var We=(0,s.useRef)(null);function vt(){try{var en=Ae.selectionStart,En=Ae.selectionEnd,xn=Ae.value,ln=xn.substring(0,en),tn=xn.substring(En);We.current={start:en,end:En,value:xn,beforeTxt:ln,afterTxt:tn}}catch(Yt){}}function Rt(){if(Ae&&We.current&&Oe)try{var en=Ae.value,En=We.current,xn=En.beforeTxt,ln=En.afterTxt,tn=En.start,Yt=en.length;if(en.startsWith(xn))Yt=xn.length;else if(en.endsWith(ln))Yt=en.length-We.current.afterTxt.length;else{var cn=xn[tn-1],yn=en.indexOf(cn,tn-1);yn!==-1&&(Yt=yn+1)}Ae.setSelectionRange(Yt,Yt)}catch(In){(0,G.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(In.message))}}return[vt,Rt]}var g=p(49658),j=function(){var Oe=(0,s.useState)(!1),We=(0,N.Z)(Oe,2),vt=We[0],Rt=We[1];return(0,ve.Z)(function(){Rt((0,g.Z)())},[]),vt},Ye=j,oe=p(16089),he=200,be=600;function me(Ae){var Oe=Ae.prefixCls,We=Ae.upNode,vt=Ae.downNode,Rt=Ae.upDisabled,en=Ae.downDisabled,En=Ae.onStep,xn=s.useRef(),ln=s.useRef([]),tn=s.useRef();tn.current=En;var Yt=function(){clearTimeout(xn.current)},cn=function(fr,Jn){fr.preventDefault(),Yt(),tn.current(Jn);function zr(){tn.current(Jn),xn.current=setTimeout(zr,he)}xn.current=setTimeout(zr,be)};s.useEffect(function(){return function(){Yt(),ln.current.forEach(function(Lr){return oe.Z.cancel(Lr)})}},[]);var yn=Ye();if(yn)return null;var In="".concat(Oe,"-handler"),Kn=te()(In,"".concat(In,"-up"),(0,Z.Z)({},"".concat(In,"-up-disabled"),Rt)),qn=te()(In,"".concat(In,"-down"),(0,Z.Z)({},"".concat(In,"-down-disabled"),en)),er=function(){return ln.current.push((0,oe.Z)(Yt))},xr={unselectable:"on",role:"button",onMouseUp:er,onMouseLeave:er};return s.createElement("div",{className:"".concat(In,"-wrap")},s.createElement("span",(0,$.Z)({},xr,{onMouseDown:function(fr){cn(fr,!0)},"aria-label":"Increase Value","aria-disabled":Rt,className:Kn}),We||s.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-up-inner")})),s.createElement("span",(0,$.Z)({},xr,{onMouseDown:function(fr){cn(fr,!1)},"aria-label":"Decrease Value","aria-disabled":en,className:qn}),vt||s.createElement("span",{unselectable:"on",className:"".concat(Oe,"-handler-down-inner")})))}function ae(Ae){var Oe=typeof Ae=="number"?U(Ae):T(Ae).fullStr,We=Oe.includes(".");return We?T(Oe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ae+"0"}var se=p(30292),Je=function(){var Ae=(0,s.useRef)(0),Oe=function(){oe.Z.cancel(Ae.current)};return(0,s.useEffect)(function(){return Oe},[]),function(We){Oe(),Ae.current=(0,oe.Z)(function(){We()})}},mt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Nt=function(Oe,We){return Oe||We.isEmpty()?We.toString():We.toNumber()},yt=function(Oe){var We=ce(Oe);return We.isInvalidate()?null:We},zt=s.forwardRef(function(Ae,Oe){var We=Ae.prefixCls,vt=Ae.className,Rt=Ae.style,en=Ae.min,En=Ae.max,xn=Ae.step,ln=xn===void 0?1:xn,tn=Ae.defaultValue,Yt=Ae.value,cn=Ae.disabled,yn=Ae.readOnly,In=Ae.upHandler,Kn=Ae.downHandler,qn=Ae.keyboard,er=Ae.changeOnWheel,xr=er===void 0?!1:er,Lr=Ae.controls,fr=Lr===void 0?!0:Lr,Jn=Ae.classNames,zr=Ae.stringMode,pr=Ae.parser,ao=Ae.formatter,mo=Ae.precision,Dn=Ae.decimalSeparator,Cn=Ae.onChange,br=Ae.onInput,Or=Ae.onPressEnter,wt=Ae.onStep,dt=Ae.changeOnBlur,Sn=dt===void 0?!0:dt,Re=Ae.domRef,lt=(0,i.Z)(Ae,mt),Bt="".concat(We,"-input"),qt=s.useRef(null),bn=s.useState(!1),zn=(0,N.Z)(bn,2),Yn=zn[0],hn=zn[1],Mn=s.useRef(!1),sr=s.useRef(!1),Wn=s.useRef(!1),Sr=s.useState(function(){return ce(Yt!=null?Yt:tn)}),hr=(0,N.Z)(Sr,2),Fr=hr[0],Ko=hr[1];function $i(Gn){Yt===void 0&&Ko(Gn)}var wi=s.useCallback(function(Gn,_n){if(!_n)return mo>=0?mo:Math.max(I(Gn),I(ln))},[mo,ln]),Ro=s.useCallback(function(Gn){var _n=String(Gn);if(pr)return pr(_n);var gr=_n;return Dn&&(gr=gr.replace(Dn,".")),gr.replace(/[^\w.-]+/g,"")},[pr,Dn]),Fi=s.useRef(""),Lo=s.useCallback(function(Gn,_n){if(ao)return ao(Gn,{userTyping:_n,input:String(Fi.current)});var gr=typeof Gn=="number"?U(Gn):Gn;if(!_n){var jr=wi(gr,_n);if(W(gr)&&(Dn||jr>=0)){var Ao=Dn||".";gr=de(gr,Ao,jr)}}return gr},[ao,wi,Dn]),_i=s.useState(function(){var Gn=tn!=null?tn:Yt;return Fr.isInvalidate()&&["string","number"].includes((0,v.Z)(Gn))?Number.isNaN(Gn)?"":Gn:Lo(Fr.toString(),!1)}),Xi=(0,N.Z)(_i,2),zo=Xi[0],Ii=Xi[1];Fi.current=zo;function Oi(Gn,_n){Ii(Lo(Gn.isInvalidate()?Gn.toString(!1):Gn.toString(!_n),_n))}var _r=s.useMemo(function(){return yt(En)},[En,mo]),lo=s.useMemo(function(){return yt(en)},[en,mo]),oi=s.useMemo(function(){return!_r||!Fr||Fr.isInvalidate()?!1:_r.lessEquals(Fr)},[_r,Fr]),_o=s.useMemo(function(){return!lo||!Fr||Fr.isInvalidate()?!1:Fr.lessEquals(lo)},[lo,Fr]),ea=ge(qt.current,Yn),ya=(0,N.Z)(ea,2),ki=ya[0],ri=ya[1],di=function(_n){return _r&&!_n.lessEquals(_r)?_r:lo&&!lo.lessEquals(_n)?lo:null},Xo=function(_n){return!di(_n)},aa=function(_n,gr){var jr=_n,Ao=Xo(jr)||jr.isEmpty();if(!jr.isEmpty()&&!gr&&(jr=di(jr)||jr,Ao=!0),!yn&&!cn&&Ao){var qo=jr.toString(),fi=wi(qo,gr);return fi>=0&&(jr=ce(de(qo,".",fi)),Xo(jr)||(jr=ce(de(qo,".",fi,!0)))),jr.equals(Fr)||($i(jr),Cn==null||Cn(jr.isEmpty()?null:Nt(zr,jr)),Yt===void 0&&Oi(jr,gr)),jr}return Fr},Ga=Je(),wa=function Gn(_n){if(ki(),Fi.current=_n,Ii(_n),!sr.current){var gr=Ro(_n),jr=ce(gr);jr.isNaN()||aa(jr,!0)}br==null||br(_n),Ga(function(){var Ao=_n;pr||(Ao=_n.replace(/。/g,".")),Ao!==_n&&Gn(Ao)})},Aa=function(){sr.current=!0},Yi=function(){sr.current=!1,wa(qt.current.value)},fa=function(_n){wa(_n.target.value)},vA=function(_n){var gr;if(!(_n&&oi||!_n&&_o)){Mn.current=!1;var jr=ce(Wn.current?ae(ln):ln);_n||(jr=jr.negate());var Ao=(Fr||ce(0)).add(jr.toString()),qo=aa(Ao,!1);wt==null||wt(Nt(zr,qo),{offset:Wn.current?ae(ln):ln,type:_n?"up":"down"}),(gr=qt.current)===null||gr===void 0||gr.focus()}},sA=function(_n){var gr=ce(Ro(zo)),jr;gr.isNaN()?jr=aa(Fr,_n):jr=aa(gr,_n),Yt!==void 0?Oi(Fr,!1):jr.isNaN()||Oi(jr,!1)},sa=function(){Mn.current=!0},Vr=function(_n){var gr=_n.key,jr=_n.shiftKey;Mn.current=!0,Wn.current=jr,gr==="Enter"&&(sr.current||(Mn.current=!1),sA(!1),Or==null||Or(_n)),qn!==!1&&!sr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(gr)&&(vA(gr==="Up"||gr==="ArrowUp"),_n.preventDefault())},Qn=function(){Mn.current=!1,Wn.current=!1};s.useEffect(function(){if(xr&&Yn){var Gn=function(jr){vA(jr.deltaY<0),jr.preventDefault()},_n=qt.current;if(_n)return _n.addEventListener("wheel",Gn,{passive:!1}),function(){return _n.removeEventListener("wheel",Gn)}}});var Xn=function(){Sn&&sA(!1),hn(!1),Mn.current=!1};return(0,ve.o)(function(){Fr.isInvalidate()||Oi(Fr,!1)},[mo,ao]),(0,ve.o)(function(){var Gn=ce(Yt);Ko(Gn);var _n=ce(Ro(zo));(!Gn.equals(_n)||!Mn.current||ao)&&Oi(Gn,Mn.current)},[Yt]),(0,ve.o)(function(){ao&&ri()},[zo]),s.createElement("div",{ref:Re,className:te()(We,vt,(0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)((0,Z.Z)({},"".concat(We,"-focused"),Yn),"".concat(We,"-disabled"),cn),"".concat(We,"-readonly"),yn),"".concat(We,"-not-a-number"),Fr.isNaN()),"".concat(We,"-out-of-range"),!Fr.isInvalidate()&&!Xo(Fr))),style:Rt,onFocus:function(){hn(!0)},onBlur:Xn,onKeyDown:Vr,onKeyUp:Qn,onCompositionStart:Aa,onCompositionEnd:Yi,onBeforeInput:sa},fr&&s.createElement(me,{prefixCls:We,upNode:In,downNode:Kn,upDisabled:oi,downDisabled:_o,onStep:vA}),s.createElement("div",{className:"".concat(Bt,"-wrap")},s.createElement("input",(0,$.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":en,"aria-valuemax":En,"aria-valuenow":Fr.isInvalidate()?null:Fr.toString(),step:ln},lt,{ref:(0,Ce.sQ)(qt,Oe),className:Bt,value:zo,onChange:fa,disabled:cn,readOnly:yn}))))}),je=s.forwardRef(function(Ae,Oe){var We=Ae.disabled,vt=Ae.style,Rt=Ae.prefixCls,en=Rt===void 0?"rc-input-number":Rt,En=Ae.value,xn=Ae.prefix,ln=Ae.suffix,tn=Ae.addonBefore,Yt=Ae.addonAfter,cn=Ae.className,yn=Ae.classNames,In=(0,i.Z)(Ae,Me),Kn=s.useRef(null),qn=s.useRef(null),er=s.useRef(null),xr=function(fr){er.current&&(0,se.nH)(er.current,fr)};return s.useImperativeHandle(Oe,function(){return pe(er.current,{focus:xr,nativeElement:Kn.current.nativeElement||qn.current})}),s.createElement(Fe.BaseInput,{className:cn,triggerFocus:xr,prefixCls:en,value:En,disabled:We,style:vt,prefix:xn,suffix:ln,addonAfter:Yt,addonBefore:tn,classNames:yn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Kn},s.createElement(zt,(0,$.Z)({prefixCls:en,disabled:We,ref:er,domRef:qn,className:yn==null?void 0:yn.input},In)))}),It=je,Ze=It,Pt=p(62487),ct=p(82855),x=p(48755),Ke=p(60840),P=p(2171),A=p(83397),h=p(31756),C=p(56553),b=p(24971),K=p(70045),ee=p(36237),Ee=p(53075),le=p(64910),ue=p(39082),Qe=p(63356),ke=p(56119),ie=p(16931),X=p(51636),tt=p(17835);const Te=Ae=>{var Oe;const We=(Oe=Ae.handleVisible)!==null&&Oe!==void 0?Oe:"auto",vt=Ae.controlHeightSM-Ae.lineWidth*2;return Object.assign(Object.assign({},(0,le.T)(Ae)),{controlWidth:90,handleWidth:vt,handleFontSize:Ae.fontSize/2,handleVisible:We,handleActiveBg:Ae.colorFillAlter,handleBg:Ae.colorBgContainer,filledHandleBg:new tt.FastColor(Ae.colorFillSecondary).onBackground(Ae.colorBgContainer).toHexString(),handleHoverColor:Ae.colorPrimary,handleBorderColor:Ae.colorBorder,handleOpacity:We===!0?1:0,handleVisibleWidth:We===!0?vt:0})},Et=(Ae,Oe)=>{let{componentCls:We,borderRadiusSM:vt,borderRadiusLG:Rt}=Ae;const en=Oe==="lg"?Rt:vt;return{[`&-${Oe}`]:{[`${We}-handler-wrap`]:{borderStartEndRadius:en,borderEndEndRadius:en},[`${We}-handler-up`]:{borderStartEndRadius:en},[`${We}-handler-down`]:{borderEndEndRadius:en}}}},at=Ae=>{const{componentCls:Oe,lineWidth:We,lineType:vt,borderRadius:Rt,inputFontSizeSM:en,inputFontSizeLG:En,controlHeightLG:xn,controlHeightSM:ln,colorError:tn,paddingInlineSM:Yt,paddingBlockSM:cn,paddingBlockLG:yn,paddingInlineLG:In,colorTextDescription:Kn,motionDurationMid:qn,handleHoverColor:er,handleOpacity:xr,paddingInline:Lr,paddingBlock:fr,handleBg:Jn,handleActiveBg:zr,colorTextDisabled:pr,borderRadiusSM:ao,borderRadiusLG:mo,controlWidth:Dn,handleBorderColor:Cn,filledHandleBg:br,lineHeightLG:Or,calc:wt}=Ae;return[{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Ae)),(0,Ee.ik)(Ae)),{display:"inline-block",width:Dn,margin:0,padding:0,borderRadius:Rt}),(0,ue.qG)(Ae,{[`${Oe}-handler-wrap`]:{background:Jn,[`${Oe}-handler-down`]:{borderBlockStart:`${(0,ee.unit)(We)} ${vt} ${Cn}`}}})),(0,ue.H8)(Ae,{[`${Oe}-handler-wrap`]:{background:br,[`${Oe}-handler-down`]:{borderBlockStart:`${(0,ee.unit)(We)} ${vt} ${Cn}`}},"&:focus-within":{[`${Oe}-handler-wrap`]:{background:Jn}}})),(0,ue.vc)(Ae,{[`${Oe}-handler-wrap`]:{background:Jn,[`${Oe}-handler-down`]:{borderBlockStart:`${(0,ee.unit)(We)} ${vt} ${Cn}`}}})),(0,ue.Mu)(Ae)),{"&-rtl":{direction:"rtl",[`${Oe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:En,lineHeight:Or,borderRadius:mo,[`input${Oe}-input`]:{height:wt(xn).sub(wt(We).mul(2)).equal(),padding:`${(0,ee.unit)(yn)} ${(0,ee.unit)(In)}`}},"&-sm":{padding:0,fontSize:en,borderRadius:ao,[`input${Oe}-input`]:{height:wt(ln).sub(wt(We).mul(2)).equal(),padding:`${(0,ee.unit)(cn)} ${(0,ee.unit)(Yt)}`}},"&-out-of-range":{[`${Oe}-input-wrap`]:{input:{color:tn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Ae)),(0,Ee.s7)(Ae)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Oe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Oe}-group-addon`]:{borderRadius:mo,fontSize:Ae.fontSizeLG}},"&-sm":{[`${Oe}-group-addon`]:{borderRadius:ao}}},(0,ue.ir)(Ae)),(0,ue.S5)(Ae)),{[`&:not(${Oe}-compact-first-item):not(${Oe}-compact-last-item)${Oe}-compact-item`]:{[`${Oe}, ${Oe}-group-addon`]:{borderRadius:0}},[`&:not(${Oe}-compact-last-item)${Oe}-compact-first-item`]:{[`${Oe}, ${Oe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Oe}-compact-first-item)${Oe}-compact-last-item`]:{[`${Oe}, ${Oe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Oe}-input`]:{cursor:"not-allowed"},[Oe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Ae)),{width:"100%",padding:`${(0,ee.unit)(fr)} ${(0,ee.unit)(Lr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Rt,outline:0,transition:`all ${qn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ee.nz)(Ae.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Oe}-handler-wrap, &-focused ${Oe}-handler-wrap`]:{width:Ae.handleWidth,opacity:1}})},{[Oe]:Object.assign(Object.assign(Object.assign({[`${Oe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ae.handleVisibleWidth,opacity:xr,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Rt,borderEndEndRadius:Rt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${qn}`,overflow:"hidden",[`${Oe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Oe}-handler-up-inner, ${Oe}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:se.handleFontSize}}},[`${Oe}-handler`]:{height:"50%",overflow:"hidden",color:Kn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ee.unit)(We)} ${mt} ${Cn}`,transition:`all ${qn} linear`,"&:active":{background:zr},"&:hover":{height:"60%",[` + `]:{marginInlineEnd:0,fontSize:Ae.handleFontSize}}},[`${Oe}-handler`]:{height:"50%",overflow:"hidden",color:Kn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ee.unit)(We)} ${vt} ${Cn}`,transition:`all ${qn} linear`,"&:active":{background:zr},"&:hover":{height:"60%",[` ${Oe}-handler-up-inner, ${Oe}-handler-down-inner - `]:{color:er}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Qe.Ro)()),{color:Kn,transition:`all ${qn} linear`,userSelect:"none"})},[`${Oe}-handler-up`]:{borderStartEndRadius:Rt},[`${Oe}-handler-down`]:{borderEndEndRadius:Rt}},Et(se,"lg")),Et(se,"sm")),{"&-disabled, &-readonly":{[`${Oe}-handler-wrap`]:{display:"none"},[`${Oe}-input`]:{color:"inherit"}},[` + `]:{color:er}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Qe.Ro)()),{color:Kn,transition:`all ${qn} linear`,userSelect:"none"})},[`${Oe}-handler-up`]:{borderStartEndRadius:Rt},[`${Oe}-handler-down`]:{borderEndEndRadius:Rt}},Et(Ae,"lg")),Et(Ae,"sm")),{"&-disabled, &-readonly":{[`${Oe}-handler-wrap`]:{display:"none"},[`${Oe}-input`]:{color:"inherit"}},[` ${Oe}-handler-up-disabled, ${Oe}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Oe}-handler-up-disabled:hover &-handler-up-inner, ${Oe}-handler-down-disabled:hover &-handler-down-inner - `]:{color:pr}})}]},Ge=se=>{const{componentCls:Oe,paddingBlock:We,paddingInline:mt,inputAffixPadding:Rt,controlWidth:en,borderRadiusLG:En,borderRadiusSM:xn,paddingInlineLG:ln,paddingInlineSM:tn,paddingBlockLG:Yt,paddingBlockSM:cn,motionDurationMid:yn}=se;return{[`${Oe}-affix-wrapper`]:Object.assign(Object.assign({[`input${Oe}-input`]:{padding:`${(0,ee.unit)(We)} 0`}},(0,Ee.ik)(se)),{position:"relative",display:"inline-flex",alignItems:"center",width:en,padding:0,paddingInlineStart:mt,"&-lg":{borderRadius:En,paddingInlineStart:ln,[`input${Oe}-input`]:{padding:`${(0,ee.unit)(Yt)} 0`}},"&-sm":{borderRadius:xn,paddingInlineStart:tn,[`input${Oe}-input`]:{padding:`${(0,ee.unit)(cn)} 0`}},[`&:not(${Oe}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Oe}-disabled`]:{background:"transparent"},[`> div${Oe}`]:{width:"100%",border:"none",outline:"none",[`&${Oe}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Oe}-handler-wrap`]:{zIndex:2},[Oe]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Rt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:mt,marginInlineStart:Rt,transition:`margin ${yn}`}},[`&:hover ${Oe}-handler-wrap, &-focused ${Oe}-handler-wrap`]:{width:se.handleWidth,opacity:1},[`&:not(${Oe}-affix-wrapper-without-controls):hover ${Oe}-suffix`]:{marginInlineEnd:se.calc(se.handleWidth).add(mt).equal()}})}};var Ut=(0,oe.I$)("InputNumber",se=>{const Oe=(0,$.mergeToken)(se,(0,le.e)(se));return[at(Oe),Ge(Oe),(0,He.c)(Oe)]},Te,{unitless:{handleOpacity:!0}}),St=function(se,Oe){var We={};for(var mt in se)Object.prototype.hasOwnProperty.call(se,mt)&&Oe.indexOf(mt)<0&&(We[mt]=se[mt]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,mt=Object.getOwnPropertySymbols(se);Rt{const{getPrefixCls:We,direction:mt}=s.useContext(x.E_),Rt=s.useRef(null);s.useImperativeHandle(Oe,()=>Rt.current);const{className:en,rootClassName:En,size:xn,disabled:ln,prefixCls:tn,addonBefore:Yt,addonAfter:cn,prefix:yn,suffix:In,bordered:Kn,readOnly:qn,status:er,controls:xr,variant:Lr}=se,fr=St(se,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Jn=We("input-number",tn),zr=(0,A.Z)(Jn),[pr,ao,mo]=Ut(Jn,zr),{compactSize:Dn,compactItemClassnames:Cn}=(0,K.ri)(Jn,mt);let br=s.createElement(M.Z,{className:`${Jn}-handler-up-inner`}),Or=s.createElement(Se.Z,{className:`${Jn}-handler-down-inner`});const wt=typeof xr=="boolean"?xr:void 0;typeof xr=="object"&&(br=typeof xr.upIcon=="undefined"?br:s.createElement("span",{className:`${Jn}-handler-up-inner`},xr.upIcon),Or=typeof xr.downIcon=="undefined"?Or:s.createElement("span",{className:`${Jn}-handler-down-inner`},xr.downIcon));const{hasFeedback:dt,status:Sn,isFormItemInput:Re,feedbackIcon:lt}=s.useContext(C.aM),Bt=(0,ct.F)(Sn,er),qt=(0,h.Z)(hr=>{var Fr;return(Fr=xn!=null?xn:Dn)!==null&&Fr!==void 0?Fr:hr}),bn=s.useContext(P.Z),zn=ln!=null?ln:bn,[Yn,hn]=(0,b.Z)("inputNumber",Lr,Kn),Mn=dt&&s.createElement(s.Fragment,null,lt),sr=te()({[`${Jn}-lg`]:qt==="large",[`${Jn}-sm`]:qt==="small",[`${Jn}-rtl`]:mt==="rtl",[`${Jn}-in-form-item`]:Re},ao),Wn=`${Jn}-group`,Sr=s.createElement(ze,Object.assign({ref:Rt,disabled:zn,className:te()(mo,zr,en,En,Cn),upHandler:br,downHandler:Or,prefixCls:Jn,readOnly:qn,controls:wt,prefix:yn,suffix:Mn||In,addonBefore:Yt&&s.createElement(Pt.Z,{form:!0,space:!0},Yt),addonAfter:cn&&s.createElement(Pt.Z,{form:!0,space:!0},cn),classNames:{input:sr,variant:te()({[`${Jn}-${Yn}`]:hn},(0,ct.Z)(Jn,Bt,dt)),affixWrapper:te()({[`${Jn}-affix-wrapper-sm`]:qt==="small",[`${Jn}-affix-wrapper-lg`]:qt==="large",[`${Jn}-affix-wrapper-rtl`]:mt==="rtl",[`${Jn}-affix-wrapper-without-controls`]:xr===!1||zn},ao),wrapper:te()({[`${Wn}-rtl`]:mt==="rtl"},ao),groupWrapper:te()({[`${Jn}-group-wrapper-sm`]:qt==="small",[`${Jn}-group-wrapper-lg`]:qt==="large",[`${Jn}-group-wrapper-rtl`]:mt==="rtl",[`${Jn}-group-wrapper-${Yn}`]:hn},(0,ct.Z)(`${Jn}-group-wrapper`,Bt,dt),ao)}},fr));return pr(Sr)}),$e=Ie,ut=se=>s.createElement(ke.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(Ie,Object.assign({},se)));$e._InternalPanelDoNotUseOrYouWillBeFired=ut;var Qt=$e},49397:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return H}});var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(36901),te=g(8654),G=g(62487),Z=g(86013),v=g(82855),L=g(48755),i=g(2171),N=g(83397),B=g(31756),D=g(56553),O=g(24971),T=g(70045),E=g(23826),U=g(53075);function F(k){return!!(k.prefix||k.suffix||k.allowClear||k.showCount)}var W=function(k,de){var ue={};for(var Fe in k)Object.prototype.hasOwnProperty.call(k,Fe)&&de.indexOf(Fe)<0&&(ue[Fe]=k[Fe]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Fe=Object.getOwnPropertySymbols(k);me{const{prefixCls:ue,bordered:Fe=!0,status:me,size:ve,disabled:pe,onBlur:J,onFocus:ye,suffix:p,allowClear:j,addonAfter:Xe,addonBefore:ie,className:he,style:Ce,styles:ge,rootClassName:ae,onChange:Ae,classNames:nt,variant:vt}=k,Ve=W(k,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Nt,direction:yt,allowClear:zt,autoComplete:je,className:It,style:ze,classNames:Pt,styles:ct}=(0,L.dj)("input"),x=Nt("input",ue),ke=(0,s.useRef)(null),P=(0,N.Z)(x),[A,h,C]=(0,U.TI)(x,ae),[b]=(0,U.ZP)(x,P),{compactSize:K,compactItemClassnames:ee}=(0,T.ri)(x,yt),Ee=(0,B.Z)(Qt=>{var se;return(se=ve!=null?ve:K)!==null&&se!==void 0?se:Qt}),le=s.useContext(i.Z),ce=pe!=null?pe:le,{status:Qe,hasFeedback:He,feedbackIcon:oe}=(0,s.useContext)(D.aM),$=(0,v.F)(Qe,me),et=F(k)||!!He,Te=(0,s.useRef)(et),Et=(0,E.Z)(ke,!0),at=Qt=>{Et(),J==null||J(Qt)},Ge=Qt=>{Et(),ye==null||ye(Qt)},Ut=Qt=>{Et(),Ae==null||Ae(Qt)},St=(He||p)&&s.createElement(s.Fragment,null,p,He&&oe),Ie=(0,Z.Z)(j!=null?j:zt),[$e,ut]=(0,O.Z)("input",vt,Fe);return A(b(s.createElement(Be.default,Object.assign({ref:(0,te.sQ)(de,ke),prefixCls:x,autoComplete:je},Ve,{disabled:ce,onBlur:at,onFocus:Ge,style:Object.assign(Object.assign({},ze),Ce),styles:Object.assign(Object.assign({},ct),ge),suffix:St,allowClear:Ie,className:M()(he,ae,C,P,ee,It),onChange:Ut,addonBefore:ie&&s.createElement(G.Z,{form:!0,space:!0},ie),addonAfter:Xe&&s.createElement(G.Z,{form:!0,space:!0},Xe),classNames:Object.assign(Object.assign(Object.assign({},nt),Pt),{input:M()({[`${x}-sm`]:Ee==="small",[`${x}-lg`]:Ee==="large",[`${x}-rtl`]:yt==="rtl"},nt==null?void 0:nt.input,Pt.input,h),variant:M()({[`${x}-${$e}`]:ut},(0,v.Z)(x,$)),affixWrapper:M()({[`${x}-affix-wrapper-sm`]:Ee==="small",[`${x}-affix-wrapper-lg`]:Ee==="large",[`${x}-affix-wrapper-rtl`]:yt==="rtl"},h),wrapper:M()({[`${x}-group-rtl`]:yt==="rtl"},h),groupWrapper:M()({[`${x}-group-wrapper-sm`]:Ee==="small",[`${x}-group-wrapper-lg`]:Ee==="large",[`${x}-group-wrapper-rtl`]:yt==="rtl",[`${x}-group-wrapper-${$e}`]:ut},(0,v.Z)(`${x}-group-wrapper`,$,He),h)})}))))})},79809:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return de}});var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(22711),te=g(86013),G=g(82855),Z=g(48755),v=g(2171),L=g(83397),i=g(31756),N=g(56553),B=g(24971),D=g(70045),O=g(30292),T=g(53075),E=g(16931),U=g(51636),F=g(64910);const W=ue=>{const{componentCls:Fe,paddingLG:me}=ue,ve=`${Fe}-textarea`;return{[`textarea${Fe}`]:{maxWidth:"100%",height:"auto",minHeight:ue.controlHeight,lineHeight:ue.lineHeight,verticalAlign:"bottom",transition:`all ${ue.motionDurationSlow}`,resize:"vertical",[`&${Fe}-mouse-active`]:{transition:`all ${ue.motionDurationSlow}, height 0s, width 0s`}},[`${Fe}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ve]:{position:"relative","&-show-count":{[`> ${Fe}`]:{height:"100%"},[`${Fe}-data-count`]:{position:"absolute",bottom:ue.calc(ue.fontSize).mul(ue.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ue.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + `]:{color:pr}})}]},Ge=Ae=>{const{componentCls:Oe,paddingBlock:We,paddingInline:vt,inputAffixPadding:Rt,controlWidth:en,borderRadiusLG:En,borderRadiusSM:xn,paddingInlineLG:ln,paddingInlineSM:tn,paddingBlockLG:Yt,paddingBlockSM:cn,motionDurationMid:yn}=Ae;return{[`${Oe}-affix-wrapper`]:Object.assign(Object.assign({[`input${Oe}-input`]:{padding:`${(0,ee.unit)(We)} 0`}},(0,Ee.ik)(Ae)),{position:"relative",display:"inline-flex",alignItems:"center",width:en,padding:0,paddingInlineStart:vt,"&-lg":{borderRadius:En,paddingInlineStart:ln,[`input${Oe}-input`]:{padding:`${(0,ee.unit)(Yt)} 0`}},"&-sm":{borderRadius:xn,paddingInlineStart:tn,[`input${Oe}-input`]:{padding:`${(0,ee.unit)(cn)} 0`}},[`&:not(${Oe}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Oe}-disabled`]:{background:"transparent"},[`> div${Oe}`]:{width:"100%",border:"none",outline:"none",[`&${Oe}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Oe}-handler-wrap`]:{zIndex:2},[Oe]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Rt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:vt,marginInlineStart:Rt,transition:`margin ${yn}`}},[`&:hover ${Oe}-handler-wrap, &-focused ${Oe}-handler-wrap`]:{width:Ae.handleWidth,opacity:1},[`&:not(${Oe}-affix-wrapper-without-controls):hover ${Oe}-suffix`]:{marginInlineEnd:Ae.calc(Ae.handleWidth).add(vt).equal()}})}};var Ut=(0,ie.I$)("InputNumber",Ae=>{const Oe=(0,X.mergeToken)(Ae,(0,le.e)(Ae));return[at(Oe),Ge(Oe),(0,ke.c)(Oe)]},Te,{unitless:{handleOpacity:!0}}),St=function(Ae,Oe){var We={};for(var vt in Ae)Object.prototype.hasOwnProperty.call(Ae,vt)&&Oe.indexOf(vt)<0&&(We[vt]=Ae[vt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,vt=Object.getOwnPropertySymbols(Ae);Rt{const{getPrefixCls:We,direction:vt}=s.useContext(x.E_),Rt=s.useRef(null);s.useImperativeHandle(Oe,()=>Rt.current);const{className:en,rootClassName:En,size:xn,disabled:ln,prefixCls:tn,addonBefore:Yt,addonAfter:cn,prefix:yn,suffix:In,bordered:Kn,readOnly:qn,status:er,controls:xr,variant:Lr}=Ae,fr=St(Ae,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Jn=We("input-number",tn),zr=(0,A.Z)(Jn),[pr,ao,mo]=Ut(Jn,zr),{compactSize:Dn,compactItemClassnames:Cn}=(0,K.ri)(Jn,vt);let br=s.createElement(M.Z,{className:`${Jn}-handler-up-inner`}),Or=s.createElement(Se.Z,{className:`${Jn}-handler-down-inner`});const wt=typeof xr=="boolean"?xr:void 0;typeof xr=="object"&&(br=typeof xr.upIcon=="undefined"?br:s.createElement("span",{className:`${Jn}-handler-up-inner`},xr.upIcon),Or=typeof xr.downIcon=="undefined"?Or:s.createElement("span",{className:`${Jn}-handler-down-inner`},xr.downIcon));const{hasFeedback:dt,status:Sn,isFormItemInput:Re,feedbackIcon:lt}=s.useContext(C.aM),Bt=(0,ct.F)(Sn,er),qt=(0,h.Z)(hr=>{var Fr;return(Fr=xn!=null?xn:Dn)!==null&&Fr!==void 0?Fr:hr}),bn=s.useContext(P.Z),zn=ln!=null?ln:bn,[Yn,hn]=(0,b.Z)("inputNumber",Lr,Kn),Mn=dt&&s.createElement(s.Fragment,null,lt),sr=te()({[`${Jn}-lg`]:qt==="large",[`${Jn}-sm`]:qt==="small",[`${Jn}-rtl`]:vt==="rtl",[`${Jn}-in-form-item`]:Re},ao),Wn=`${Jn}-group`,Sr=s.createElement(Ze,Object.assign({ref:Rt,disabled:zn,className:te()(mo,zr,en,En,Cn),upHandler:br,downHandler:Or,prefixCls:Jn,readOnly:qn,controls:wt,prefix:yn,suffix:Mn||In,addonBefore:Yt&&s.createElement(Pt.Z,{form:!0,space:!0},Yt),addonAfter:cn&&s.createElement(Pt.Z,{form:!0,space:!0},cn),classNames:{input:sr,variant:te()({[`${Jn}-${Yn}`]:hn},(0,ct.Z)(Jn,Bt,dt)),affixWrapper:te()({[`${Jn}-affix-wrapper-sm`]:qt==="small",[`${Jn}-affix-wrapper-lg`]:qt==="large",[`${Jn}-affix-wrapper-rtl`]:vt==="rtl",[`${Jn}-affix-wrapper-without-controls`]:xr===!1||zn},ao),wrapper:te()({[`${Wn}-rtl`]:vt==="rtl"},ao),groupWrapper:te()({[`${Jn}-group-wrapper-sm`]:qt==="small",[`${Jn}-group-wrapper-lg`]:qt==="large",[`${Jn}-group-wrapper-rtl`]:vt==="rtl",[`${Jn}-group-wrapper-${Yn}`]:hn},(0,ct.Z)(`${Jn}-group-wrapper`,Bt,dt),ao)}},fr));return pr(Sr)}),$e=Ie,ut=Ae=>s.createElement(Ke.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(Ie,Object.assign({},Ae)));$e._InternalPanelDoNotUseOrYouWillBeFired=ut;var Qt=$e},49397:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return k}});var s=p(59301),Se=p(92310),M=p.n(Se),we=p(36901),te=p(8654),$=p(62487),Z=p(86013),v=p(82855),N=p(48755),i=p(2171),L=p(83397),B=p(31756),D=p(56553),O=p(24971),T=p(70045),E=p(23826),I=p(53075);function U(H){return!!(H.prefix||H.suffix||H.allowClear||H.showCount)}var W=function(H,de){var ce={};for(var Fe in H)Object.prototype.hasOwnProperty.call(H,Fe)&&de.indexOf(Fe)<0&&(ce[Fe]=H[Fe]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Fe=Object.getOwnPropertySymbols(H);ve{const{prefixCls:ce,bordered:Fe=!0,status:ve,size:pe,disabled:Ce,onBlur:G,onFocus:ge,suffix:g,allowClear:j,addonAfter:Ye,addonBefore:oe,className:he,style:be,styles:me,rootClassName:ae,onChange:se,classNames:Je,variant:mt}=H,Me=W(H,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Nt,direction:yt,allowClear:zt,autoComplete:je,className:It,style:Ze,classNames:Pt,styles:ct}=(0,N.dj)("input"),x=Nt("input",ce),Ke=(0,s.useRef)(null),P=(0,L.Z)(x),[A,h,C]=(0,I.TI)(x,ae),[b]=(0,I.ZP)(x,P),{compactSize:K,compactItemClassnames:ee}=(0,T.ri)(x,yt),Ee=(0,B.Z)(Qt=>{var Ae;return(Ae=pe!=null?pe:K)!==null&&Ae!==void 0?Ae:Qt}),le=s.useContext(i.Z),ue=Ce!=null?Ce:le,{status:Qe,hasFeedback:ke,feedbackIcon:ie}=(0,s.useContext)(D.aM),X=(0,v.F)(Qe,ve),tt=U(H)||!!ke,Te=(0,s.useRef)(tt),Et=(0,E.Z)(Ke,!0),at=Qt=>{Et(),G==null||G(Qt)},Ge=Qt=>{Et(),ge==null||ge(Qt)},Ut=Qt=>{Et(),se==null||se(Qt)},St=(ke||g)&&s.createElement(s.Fragment,null,g,ke&&ie),Ie=(0,Z.Z)(j!=null?j:zt),[$e,ut]=(0,O.Z)("input",mt,Fe);return A(b(s.createElement(we.default,Object.assign({ref:(0,te.sQ)(de,Ke),prefixCls:x,autoComplete:je},Me,{disabled:ue,onBlur:at,onFocus:Ge,style:Object.assign(Object.assign({},Ze),be),styles:Object.assign(Object.assign({},ct),me),suffix:St,allowClear:Ie,className:M()(he,ae,C,P,ee,It),onChange:Ut,addonBefore:oe&&s.createElement($.Z,{form:!0,space:!0},oe),addonAfter:Ye&&s.createElement($.Z,{form:!0,space:!0},Ye),classNames:Object.assign(Object.assign(Object.assign({},Je),Pt),{input:M()({[`${x}-sm`]:Ee==="small",[`${x}-lg`]:Ee==="large",[`${x}-rtl`]:yt==="rtl"},Je==null?void 0:Je.input,Pt.input,h),variant:M()({[`${x}-${$e}`]:ut},(0,v.Z)(x,X)),affixWrapper:M()({[`${x}-affix-wrapper-sm`]:Ee==="small",[`${x}-affix-wrapper-lg`]:Ee==="large",[`${x}-affix-wrapper-rtl`]:yt==="rtl"},h),wrapper:M()({[`${x}-group-rtl`]:yt==="rtl"},h),groupWrapper:M()({[`${x}-group-wrapper-sm`]:Ee==="small",[`${x}-group-wrapper-lg`]:Ee==="large",[`${x}-group-wrapper-rtl`]:yt==="rtl",[`${x}-group-wrapper-${$e}`]:ut},(0,v.Z)(`${x}-group-wrapper`,X,ke),h)})}))))})},79809:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return de}});var s=p(59301),Se=p(92310),M=p.n(Se),we=p(22711),te=p(86013),$=p(82855),Z=p(48755),v=p(2171),N=p(83397),i=p(31756),L=p(56553),B=p(24971),D=p(70045),O=p(30292),T=p(53075),E=p(16931),I=p(51636),U=p(64910);const W=ce=>{const{componentCls:Fe,paddingLG:ve}=ce,pe=`${Fe}-textarea`;return{[`textarea${Fe}`]:{maxWidth:"100%",height:"auto",minHeight:ce.controlHeight,lineHeight:ce.lineHeight,verticalAlign:"bottom",transition:`all ${ce.motionDurationSlow}`,resize:"vertical",[`&${Fe}-mouse-active`]:{transition:`all ${ce.motionDurationSlow}, height 0s, width 0s`}},[`${Fe}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[pe]:{position:"relative","&-show-count":{[`> ${Fe}`]:{height:"100%"},[`${Fe}-data-count`]:{position:"absolute",bottom:ce.calc(ce.fontSize).mul(ce.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ce.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${Fe}, - &-affix-wrapper${ve}-has-feedback ${Fe} - `]:{paddingInlineEnd:me},[`&-affix-wrapper${Fe}-affix-wrapper`]:{padding:0,[`> textarea${Fe}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Fe}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Fe}-clear-icon`]:{position:"absolute",insetInlineEnd:ue.paddingInline,insetBlockStart:ue.paddingXS},[`${ve}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ue.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Fe}-affix-wrapper-sm`]:{[`${Fe}-suffix`]:{[`${Fe}-clear-icon`]:{insetInlineEnd:ue.paddingInlineSM}}}}}};var re=(0,E.I$)(["Input","TextArea"],ue=>{const Fe=(0,U.mergeToken)(ue,(0,F.e)(ue));return[W(Fe)]},F.T,{resetFont:!1}),H=function(ue,Fe){var me={};for(var ve in ue)Object.prototype.hasOwnProperty.call(ue,ve)&&Fe.indexOf(ve)<0&&(me[ve]=ue[ve]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ve=Object.getOwnPropertySymbols(ue);pe{var me;const{prefixCls:ve,bordered:pe=!0,size:J,disabled:ye,status:p,allowClear:j,classNames:Xe,rootClassName:ie,className:he,style:Ce,styles:ge,variant:ae,showCount:Ae,onMouseDown:nt,onResize:vt}=ue,Ve=H(ue,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Nt,direction:yt,allowClear:zt,autoComplete:je,className:It,style:ze,classNames:Pt,styles:ct}=(0,Z.dj)("textArea"),x=s.useContext(v.Z),ke=ye!=null?ye:x,{status:P,hasFeedback:A,feedbackIcon:h}=s.useContext(N.aM),C=(0,G.F)(P,p),b=s.useRef(null);s.useImperativeHandle(Fe,()=>{var ut;return{resizableTextArea:(ut=b.current)===null||ut===void 0?void 0:ut.resizableTextArea,focus:Qt=>{var se,Oe;(0,O.nH)((Oe=(se=b.current)===null||se===void 0?void 0:se.resizableTextArea)===null||Oe===void 0?void 0:Oe.textArea,Qt)},blur:()=>{var Qt;return(Qt=b.current)===null||Qt===void 0?void 0:Qt.blur()}}});const K=Nt("input",ve),ee=(0,L.Z)(K),[Ee,le,ce]=(0,T.TI)(K,ie),[Qe]=re(K,ee),{compactSize:He,compactItemClassnames:oe}=(0,D.ri)(K,yt),$=(0,i.Z)(ut=>{var Qt;return(Qt=J!=null?J:He)!==null&&Qt!==void 0?Qt:ut}),[et,Te]=(0,B.Z)("textArea",ae,pe),Et=(0,te.Z)(j!=null?j:zt),[at,Ge]=s.useState(!1),[Ut,St]=s.useState(!1),Ie=ut=>{Ge(!0),nt==null||nt(ut);const Qt=()=>{Ge(!1),document.removeEventListener("mouseup",Qt)};document.addEventListener("mouseup",Qt)},$e=ut=>{var Qt,se;if(vt==null||vt(ut),at&&typeof getComputedStyle=="function"){const Oe=(se=(Qt=b.current)===null||Qt===void 0?void 0:Qt.nativeElement)===null||se===void 0?void 0:se.querySelector("textarea");Oe&&getComputedStyle(Oe).resize==="both"&&St(!0)}};return Ee(Qe(s.createElement(Be.default,Object.assign({autoComplete:je},Ve,{style:Object.assign(Object.assign({},ze),Ce),styles:Object.assign(Object.assign({},ct),ge),disabled:ke,allowClear:Et,className:M()(ce,ee,he,ie,oe,It,Ut&&`${K}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Xe),Pt),{textarea:M()({[`${K}-sm`]:$==="small",[`${K}-lg`]:$==="large"},le,Xe==null?void 0:Xe.textarea,Pt.textarea,at&&`${K}-mouse-active`),variant:M()({[`${K}-${et}`]:Te},(0,G.Z)(K,C)),affixWrapper:M()(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:yt==="rtl",[`${K}-affix-wrapper-sm`]:$==="small",[`${K}-affix-wrapper-lg`]:$==="large",[`${K}-textarea-show-count`]:Ae||((me=ue.count)===null||me===void 0?void 0:me.show)},le)}),prefixCls:K,suffix:A&&s.createElement("span",{className:`${K}-textarea-suffix`},h),showCount:Ae,ref:b,onResize:$e,onMouseDown:Ie}))))})},23826:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return Se}});var s=g(59301);function Se(M,Be){const te=(0,s.useRef)([]),G=()=>{te.current.push(setTimeout(()=>{var Z,v,L,i;!((Z=M.current)===null||Z===void 0)&&Z.input&&((v=M.current)===null||v===void 0?void 0:v.input.getAttribute("type"))==="password"&&(!((L=M.current)===null||L===void 0)&&L.input.hasAttribute("value"))&&((i=M.current)===null||i===void 0||i.input.removeAttribute("value"))}))};return(0,s.useEffect)(()=>(Be&&G(),()=>te.current.forEach(Z=>{Z&&clearTimeout(Z)})),[]),G}},37568:function(nr,Zt,g){"use strict";g.d(Zt,{default:function(){return Pt}});var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(48755),te=g(56553),G=g(53075),v=ct=>{const{getPrefixCls:x,direction:ke}=(0,s.useContext)(Be.E_),{prefixCls:P,className:A}=ct,h=x("input-group",P),C=x("input"),[b,K,ee]=(0,G.ZP)(C),Ee=M()(h,ee,{[`${h}-lg`]:ct.size==="large",[`${h}-sm`]:ct.size==="small",[`${h}-compact`]:ct.compact,[`${h}-rtl`]:ke==="rtl"},K,A),le=(0,s.useContext)(te.aM),ce=(0,s.useMemo)(()=>Object.assign(Object.assign({},le),{isFormItemInput:!1}),[le]);return b(s.createElement("span",{className:Ee,style:ct.style,onMouseEnter:ct.onMouseEnter,onMouseLeave:ct.onMouseLeave,onFocus:ct.onFocus,onBlur:ct.onBlur},s.createElement(te.aM.Provider,{value:ce},ct.children)))},L=g(49397),i=g(94480),N=g(6089),B=g(26112),D=g(82855),O=g(31756),T=g(16931),E=g(51636),U=g(64910);const F=ct=>{const{componentCls:x,paddingXS:ke}=ct;return{[x]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ke,"&-rtl":{direction:"rtl"},[`${x}-input`]:{textAlign:"center",paddingInline:ct.paddingXXS},[`&${x}-sm ${x}-input`]:{paddingInline:ct.calc(ct.paddingXXS).div(2).equal()},[`&${x}-lg ${x}-input`]:{paddingInline:ct.paddingXS}}}};var W=(0,T.I$)(["Input","OTP"],ct=>{const x=(0,E.mergeToken)(ct,(0,U.e)(ct));return[F(x)]},U.T),re=g(16089),H=function(ct,x){var ke={};for(var P in ct)Object.prototype.hasOwnProperty.call(ct,P)&&x.indexOf(P)<0&&(ke[P]=ct[P]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,P=Object.getOwnPropertySymbols(ct);A{const{value:ke,onChange:P,onActiveChange:A,index:h,mask:C}=ct,b=H(ct,["value","onChange","onActiveChange","index","mask"]),K=ke&&typeof C=="string"?C:ke,ee=He=>{P(h,He.target.value)},Ee=s.useRef(null);s.useImperativeHandle(x,()=>Ee.current);const le=()=>{(0,re.Z)(()=>{var He;const oe=(He=Ee.current)===null||He===void 0?void 0:He.input;document.activeElement===oe&&oe&&oe.select()})},ce=He=>{const{key:oe,ctrlKey:$,metaKey:et}=He;oe==="ArrowLeft"?A(h-1):oe==="ArrowRight"?A(h+1):oe==="z"&&($||et)&&He.preventDefault(),le()},Qe=He=>{He.key==="Backspace"&&!ke&&A(h-1),le()};return s.createElement(L.Z,Object.assign({type:C===!0?"password":"text"},b,{ref:Ee,value:K,onInput:ee,onFocus:le,onKeyDown:ce,onKeyUp:Qe,onMouseDown:le,onMouseUp:le}))}),ue=function(ct,x){var ke={};for(var P in ct)Object.prototype.hasOwnProperty.call(ct,P)&&x.indexOf(P)<0&&(ke[P]=ct[P]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,P=Object.getOwnPropertySymbols(ct);A{const{index:x,prefixCls:ke,separator:P}=ct,A=typeof P=="function"?P(x):P;return A?s.createElement("span",{className:`${ke}-separator`},A):null};var pe=s.forwardRef((ct,x)=>{const{prefixCls:ke,length:P=6,size:A,defaultValue:h,value:C,onChange:b,formatter:K,separator:ee,variant:Ee,disabled:le,status:ce,autoFocus:Qe,mask:He,type:oe,onInput:$,inputMode:et}=ct,Te=ue(ct,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Et,direction:at}=s.useContext(Be.E_),Ge=Et("otp",ke),Ut=(0,B.Z)(Te,{aria:!0,data:!0,attr:!0}),[St,Ie,$e]=W(Ge),ut=(0,O.Z)(yn=>A!=null?A:yn),Qt=s.useContext(te.aM),se=(0,D.F)(Qt.status,ce),Oe=s.useMemo(()=>Object.assign(Object.assign({},Qt),{status:se,hasFeedback:!1,feedbackIcon:null}),[Qt,se]),We=s.useRef(null),mt=s.useRef({});s.useImperativeHandle(x,()=>({focus:()=>{var yn;(yn=mt.current[0])===null||yn===void 0||yn.focus()},blur:()=>{var yn;for(let In=0;InK?K(yn):yn,[en,En]=s.useState(()=>Fe(Rt(h||"")));s.useEffect(()=>{C!==void 0&&En(Fe(C))},[C]);const xn=(0,N.Z)(yn=>{En(yn),$&&$(yn),b&&yn.length===P&&yn.every(In=>In)&&yn.some((In,Kn)=>en[Kn]!==In)&&b(yn.join(""))}),ln=(0,N.Z)((yn,In)=>{let Kn=(0,i.Z)(en);for(let er=0;er=0&&!Kn[er];er-=1)Kn.pop();const qn=Rt(Kn.map(er=>er||" ").join(""));return Kn=Fe(qn).map((er,xr)=>er===" "&&!Kn[xr]?Kn[xr]:er),Kn}),tn=(yn,In)=>{var Kn;const qn=ln(yn,In),er=Math.min(yn+In.length,P-1);er!==yn&&qn[yn]!==void 0&&((Kn=mt.current[er])===null||Kn===void 0||Kn.focus()),xn(qn)},Yt=yn=>{var In;(In=mt.current[yn])===null||In===void 0||In.focus()},cn={variant:Ee,disabled:le,status:se,mask:He,type:oe,inputMode:et};return St(s.createElement("div",Object.assign({},Ut,{ref:We,className:M()(Ge,{[`${Ge}-sm`]:ut==="small",[`${Ge}-lg`]:ut==="large",[`${Ge}-rtl`]:at==="rtl"},$e,Ie)}),s.createElement(te.aM.Provider,{value:Oe},Array.from({length:P}).map((yn,In)=>{const Kn=`otp-${In}`,qn=en[In]||"";return s.createElement(s.Fragment,{key:Kn},s.createElement(de,Object.assign({ref:er=>{mt.current[In]=er},index:In,size:ut,htmlSize:1,className:`${Ge}-input`,onChange:tn,value:qn,onActiveChange:Yt,autoFocus:In===0&&Qe},cn)),Inct?s.createElement(ye.Z,null):s.createElement(J.Z,null),ge={click:"onClick",hover:"onMouseOver"};var Ae=s.forwardRef((ct,x)=>{const{disabled:ke,action:P="click",visibilityToggle:A=!0,iconRender:h=Ce}=ct,C=s.useContext(Xe.Z),b=ke!=null?ke:C,K=typeof A=="object"&&A.visible!==void 0,[ee,Ee]=(0,s.useState)(()=>K?A.visible:!1),le=(0,s.useRef)(null);s.useEffect(()=>{K&&Ee(A.visible)},[K,A]);const ce=(0,ie.Z)(le),Qe=()=>{var ut;if(b)return;ee&&ce();const Qt=!ee;Ee(Qt),typeof A=="object"&&((ut=A.onVisibleChange)===null||ut===void 0||ut.call(A,Qt))},He=ut=>{const Qt=ge[P]||"",se=h(ee),Oe={[Qt]:Qe,className:`${ut}-icon`,key:"passwordIcon",onMouseDown:We=>{We.preventDefault()},onMouseUp:We=>{We.preventDefault()}};return s.cloneElement(s.isValidElement(se)?se:s.createElement("span",null,se),Oe)},{className:oe,prefixCls:$,inputPrefixCls:et,size:Te}=ct,Et=he(ct,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:at}=s.useContext(Be.E_),Ge=at("input",et),Ut=at("input-password",$),St=A&&He(Ut),Ie=M()(Ut,oe,{[`${Ut}-${Te}`]:!!Te}),$e=Object.assign(Object.assign({},(0,p.Z)(Et,["suffix","iconRender","visibilityToggle"])),{type:ee?"text":"password",className:Ie,prefixCls:Ge,suffix:St});return Te&&($e.size=Te),s.createElement(L.Z,Object.assign({ref:(0,j.sQ)(x,le)},$e))}),nt=g(47472),vt=g(22703),Ve=g(7939),Nt=g(70045),yt=function(ct,x){var ke={};for(var P in ct)Object.prototype.hasOwnProperty.call(ct,P)&&x.indexOf(P)<0&&(ke[P]=ct[P]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,P=Object.getOwnPropertySymbols(ct);A{const{prefixCls:ke,inputPrefixCls:P,className:A,size:h,suffix:C,enterButton:b=!1,addonAfter:K,loading:ee,disabled:Ee,onSearch:le,onChange:ce,onCompositionStart:Qe,onCompositionEnd:He}=ct,oe=yt(ct,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:$,direction:et}=s.useContext(Be.E_),Te=s.useRef(!1),Et=$("input-search",ke),at=$("input",P),{compactSize:Ge}=(0,Nt.ri)(Et,et),Ut=(0,O.Z)(tn=>{var Yt;return(Yt=h!=null?h:Ge)!==null&&Yt!==void 0?Yt:tn}),St=s.useRef(null),Ie=tn=>{tn!=null&&tn.target&&tn.type==="click"&&le&&le(tn.target.value,tn,{source:"clear"}),ce==null||ce(tn)},$e=tn=>{var Yt;document.activeElement===((Yt=St.current)===null||Yt===void 0?void 0:Yt.input)&&tn.preventDefault()},ut=tn=>{var Yt,cn;le&&le((cn=(Yt=St.current)===null||Yt===void 0?void 0:Yt.input)===null||cn===void 0?void 0:cn.value,tn,{source:"input"})},Qt=tn=>{Te.current||ee||ut(tn)},se=typeof b=="boolean"?s.createElement(nt.Z,null):null,Oe=`${Et}-button`;let We;const mt=b||{},Rt=mt.type&&mt.type.__ANT_BUTTON===!0;Rt||mt.type==="button"?We=(0,vt.Tm)(mt,Object.assign({onMouseDown:$e,onClick:tn=>{var Yt,cn;(cn=(Yt=mt==null?void 0:mt.props)===null||Yt===void 0?void 0:Yt.onClick)===null||cn===void 0||cn.call(Yt,tn),ut(tn)},key:"enterButton"},Rt?{className:Oe,size:Ut}:{})):We=s.createElement(Ve.ZP,{className:Oe,type:b?"primary":void 0,size:Ut,disabled:Ee,key:"enterButton",onMouseDown:$e,onClick:ut,loading:ee,icon:se},b),K&&(We=[We,(0,vt.Tm)(K,{key:"addonAfter"})]);const en=M()(Et,{[`${Et}-rtl`]:et==="rtl",[`${Et}-${Ut}`]:!!Ut,[`${Et}-with-button`]:!!b},A),En=Object.assign(Object.assign({},oe),{className:en,prefixCls:at,type:"search"}),xn=tn=>{Te.current=!0,Qe==null||Qe(tn)},ln=tn=>{Te.current=!1,He==null||He(tn)};return s.createElement(L.Z,Object.assign({ref:(0,j.sQ)(St,x),onPressEnter:Qt},En,{size:Ut,onCompositionStart:xn,onCompositionEnd:ln,addonAfter:We,suffix:C,onChange:Ie,disabled:Ee}))}),It=g(79809);const ze=L.Z;ze.Group=v,ze.Search=je,ze.TextArea=It.Z,ze.Password=Ae,ze.OTP=pe;var Pt=ze},24303:function(nr,Zt,g){"use strict";g.d(Zt,{D:function(){return ue},Z:function(){return ve}});var s=g(59301),Se=g(54476),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Be=M,te=g(7657),G=function(J,ye){return s.createElement(te.Z,(0,Se.Z)({},J,{ref:ye,icon:Be}))},Z=s.forwardRef(G),v=Z,L=g(33853),i=g(38819),N=g(92310),B=g.n(N),D=g(2738),O=g(48755),T=g(6989),E=g(36237),U=g(48923),F=g(16931);const W=pe=>{const{componentCls:J,siderBg:ye,motionDurationMid:p,motionDurationSlow:j,antCls:Xe,triggerHeight:ie,triggerColor:he,triggerBg:Ce,headerHeight:ge,zeroTriggerWidth:ae,zeroTriggerHeight:Ae,borderRadiusLG:nt,lightSiderBg:vt,lightTriggerColor:Ve,lightTriggerBg:Nt,bodyBg:yt}=pe;return{[J]:{position:"relative",minWidth:0,background:ye,transition:`all ${p}, background 0s`,"&-has-trigger":{paddingBottom:ie},"&-right":{order:1},[`${J}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Xe}-menu${Xe}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${J}-children`]:{overflow:"hidden"},[`${J}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ie,color:he,lineHeight:(0,E.unit)(ie),textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${p}`},[`${J}-zero-width-trigger`]:{position:"absolute",top:ge,insetInlineEnd:pe.calc(ae).mul(-1).equal(),zIndex:1,width:ae,height:Ae,color:he,fontSize:pe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderRadius:`0 ${(0,E.unit)(nt)} ${(0,E.unit)(nt)} 0`,cursor:"pointer",transition:`background ${j} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${j}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:pe.calc(ae).mul(-1).equal(),borderRadius:`${(0,E.unit)(nt)} 0 0 ${(0,E.unit)(nt)}`}},"&-light":{background:vt,[`${J}-trigger`]:{color:Ve,background:Nt},[`${J}-zero-width-trigger`]:{color:Ve,background:Nt,border:`1px solid ${yt}`,borderInlineStart:0}}}}};var re=(0,F.I$)(["Layout","Sider"],pe=>[W(pe)],U.eh,{deprecatedTokens:U.jn}),H=function(pe,J){var ye={};for(var p in pe)Object.prototype.hasOwnProperty.call(pe,p)&&J.indexOf(p)<0&&(ye[p]=pe[p]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,p=Object.getOwnPropertySymbols(pe);j!Number.isNaN(Number.parseFloat(pe))&&isFinite(pe),ue=s.createContext({}),Fe=(()=>{let pe=0;return function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return pe+=1,`${J}${pe}`}})();var ve=s.forwardRef((pe,J)=>{const{prefixCls:ye,className:p,trigger:j,children:Xe,defaultCollapsed:ie=!1,theme:he="dark",style:Ce={},collapsible:ge=!1,reverseArrow:ae=!1,width:Ae=200,collapsedWidth:nt=80,zeroWidthTriggerStyle:vt,breakpoint:Ve,onCollapse:Nt,onBreakpoint:yt}=pe,zt=H(pe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:je}=(0,s.useContext)(T.V),[It,ze]=(0,s.useState)("collapsed"in pe?pe.collapsed:ie),[Pt,ct]=(0,s.useState)(!1);(0,s.useEffect)(()=>{"collapsed"in pe&&ze(pe.collapsed)},[pe.collapsed]);const x=(Ut,St)=>{"collapsed"in pe||ze(Ut),Nt==null||Nt(Ut,St)},{getPrefixCls:ke,direction:P}=(0,s.useContext)(O.E_),A=ke("layout-sider",ye),[h,C,b]=re(A),K=(0,s.useRef)(null);K.current=Ut=>{ct(Ut.matches),yt==null||yt(Ut.matches),It!==Ut.matches&&x(Ut.matches,"responsive")},(0,s.useEffect)(()=>{function Ut(Ie){return K.current(Ie)}let St;if(typeof window!="undefined"){const{matchMedia:Ie}=window;if(Ie&&Ve&&Ve in k){St=Ie(`screen and (max-width: ${k[Ve]})`);try{St.addEventListener("change",Ut)}catch($e){St.addListener(Ut)}Ut(St)}}return()=>{try{St==null||St.removeEventListener("change",Ut)}catch(Ie){St==null||St.removeListener(Ut)}}},[Ve]),(0,s.useEffect)(()=>{const Ut=Fe("ant-sider-");return je.addSider(Ut),()=>je.removeSider(Ut)},[]);const ee=()=>{x(!It,"clickTrigger")},Ee=(0,D.Z)(zt,["collapsed"]),le=It?nt:Ae,ce=de(le)?`${le}px`:String(le),Qe=parseFloat(String(nt||0))===0?s.createElement("span",{onClick:ee,className:B()(`${A}-zero-width-trigger`,`${A}-zero-width-trigger-${ae?"right":"left"}`),style:vt},j||s.createElement(v,null)):null,He=P==="rtl"==!ae,et={expanded:He?s.createElement(i.Z,null):s.createElement(L.Z,null),collapsed:He?s.createElement(L.Z,null):s.createElement(i.Z,null)}[It?"collapsed":"expanded"],Te=j!==null?Qe||s.createElement("div",{className:`${A}-trigger`,onClick:ee,style:{width:ce}},j||et):null,Et=Object.assign(Object.assign({},Ce),{flex:`0 0 ${ce}`,maxWidth:ce,minWidth:ce,width:ce}),at=B()(A,`${A}-${he}`,{[`${A}-collapsed`]:!!It,[`${A}-has-trigger`]:ge&&j!==null&&!Qe,[`${A}-below`]:!!Pt,[`${A}-zero-width`]:parseFloat(ce)===0},p,C,b),Ge=s.useMemo(()=>({siderCollapsed:It}),[It]);return h(s.createElement(ue.Provider,{value:Ge},s.createElement("aside",Object.assign({className:at},Ee,{style:Et,ref:J}),s.createElement("div",{className:`${A}-children`},Xe),ge||Pt&&Qe?Te:null)))})},6989:function(nr,Zt,g){"use strict";g.d(Zt,{V:function(){return Se}});var s=g(59301);const Se=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(nr,Zt,g){"use strict";g.d(Zt,{eh:function(){return Be},jn:function(){return te}});var s=g(36237),Se=g(16931);const M=G=>{const{antCls:Z,componentCls:v,colorText:L,footerBg:i,headerHeight:N,headerPadding:B,headerColor:D,footerPadding:O,fontSize:T,bodyBg:E,headerBg:U}=G;return{[v]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},[`&${v}-has-sider`]:{flexDirection:"row",[`> ${v}, > ${v}-content`]:{width:0}},[`${v}-header, &${v}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${v}-header`]:{height:N,padding:B,color:D,lineHeight:(0,s.unit)(N),background:U,[`${Z}-menu`]:{lineHeight:"inherit"}},[`${v}-footer`]:{padding:O,color:L,fontSize:T,background:i},[`${v}-content`]:{flex:"auto",color:L,minHeight:0}}},Be=G=>{const{colorBgLayout:Z,controlHeight:v,controlHeightLG:L,colorText:i,controlHeightSM:N,marginXXS:B,colorTextLightSolid:D,colorBgContainer:O}=G,T=L*1.25;return{colorBgHeader:"#001529",colorBgBody:Z,colorBgTrigger:"#002140",bodyBg:Z,headerBg:"#001529",headerHeight:v*2,headerPadding:`0 ${T}px`,headerColor:i,footerPadding:`${N}px ${T}px`,footerBg:Z,siderBg:"#001529",triggerHeight:L+B*2,triggerBg:"#002140",triggerColor:D,zeroTriggerWidth:L,zeroTriggerHeight:L,lightSiderBg:O,lightTriggerBg:O,lightTriggerColor:i}},te=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Zt.ZP=(0,Se.I$)("Layout",G=>[M(G)],Be,{deprecatedTokens:te})},78857:function(nr,Zt,g){"use strict";g.d(Zt,{J:function(){return G}});var s=g(59301),Se=g(8654),M=g(62487),Be=function(Z,v){var L={};for(var i in Z)Object.prototype.hasOwnProperty.call(Z,i)&&v.indexOf(i)<0&&(L[i]=Z[i]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,i=Object.getOwnPropertySymbols(Z);N{const{children:L}=Z,i=Be(Z,["children"]),N=s.useContext(te),B=s.useMemo(()=>Object.assign(Object.assign({},N),i),[N,i.prefixCls,i.mode,i.selectable,i.rootClassName]),D=(0,Se.t4)(L),O=(0,Se.x1)(v,D?(0,Se.C4)(L):null);return s.createElement(te.Provider,{value:B},s.createElement(M.Z,{space:!0},D?s.cloneElement(L,{ref:O}):L))});Zt.Z=te},93041:function(nr,Zt,g){"use strict";g.d(Zt,{default:function(){return h}});var s=g(59301),Se=g(28321),M=g(24303),Be=g(18785),te=g(92310),G=g.n(te),Z=g(6089),v=g(2738),L=g(86641),i=g(22703),N=g(48755),B=g(83397),O=(0,s.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),T=function(C,b){var K={};for(var ee in C)Object.prototype.hasOwnProperty.call(C,ee)&&b.indexOf(ee)<0&&(K[ee]=C[ee]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ee=Object.getOwnPropertySymbols(C);Ee{const{prefixCls:b,className:K,dashed:ee}=C,Ee=T(C,["prefixCls","className","dashed"]),{getPrefixCls:le}=s.useContext(N.E_),ce=le("menu",b),Qe=G()({[`${ce}-item-divider-dashed`]:!!ee},K);return s.createElement(Se.iz,Object.assign({className:Qe},Ee))},F=g(11592),W=g(25399),H=C=>{var b;const{className:K,children:ee,icon:Ee,title:le,danger:ce,extra:Qe}=C,{prefixCls:He,firstLevel:oe,direction:$,disableMenuItemTitleTooltip:et,inlineCollapsed:Te}=s.useContext(O),Et=$e=>{const ut=ee==null?void 0:ee[0],Qt=s.createElement("span",{className:G()(`${He}-title-content`,{[`${He}-title-content-with-extra`]:!!Qe||Qe===0})},ee);return(!Ee||s.isValidElement(ee)&&ee.type==="span")&&ee&&$e&&oe&&typeof ut=="string"?s.createElement("div",{className:`${He}-inline-collapsed-noicon`},ut.charAt(0)):Qt},{siderCollapsed:at}=s.useContext(M.D);let Ge=le;typeof le=="undefined"?Ge=oe?ee:"":le===!1&&(Ge="");const Ut={title:Ge};!at&&!Te&&(Ut.title=null,Ut.open=!1);const St=(0,F.Z)(ee).length;let Ie=s.createElement(Se.ck,Object.assign({},(0,v.Z)(C,["title","icon","danger"]),{className:G()({[`${He}-item-danger`]:ce,[`${He}-item-only-child`]:(Ee?St+1:St)===1},K),title:typeof le=="string"?le:void 0}),(0,i.Tm)(Ee,{className:G()(s.isValidElement(Ee)?(b=Ee.props)===null||b===void 0?void 0:b.className:"",`${He}-item-icon`)}),Et(Te));return et||(Ie=s.createElement(W.Z,Object.assign({},Ut,{placement:$==="rtl"?"left":"right",classNames:{root:`${He}-inline-collapsed-tooltip`}}),Ie)),Ie},k=g(78857),de=g(36237),ue=g(17835),Fe=g(63356),me=g(34961),ve=g(46e3),pe=g(34925),J=g(16931),ye=g(51636),j=C=>{const{componentCls:b,motionDurationSlow:K,horizontalLineHeight:ee,colorSplit:Ee,lineWidth:le,lineType:ce,itemPaddingInline:Qe}=C;return{[`${b}-horizontal`]:{lineHeight:ee,border:0,borderBottom:`${(0,de.unit)(le)} ${ce} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${b}-item, ${b}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Qe},[`> ${b}-item:hover, + &-affix-wrapper${pe}-has-feedback ${Fe} + `]:{paddingInlineEnd:ve},[`&-affix-wrapper${Fe}-affix-wrapper`]:{padding:0,[`> textarea${Fe}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ce.calc(ce.controlHeight).sub(ce.calc(ce.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Fe}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Fe}-clear-icon`]:{position:"absolute",insetInlineEnd:ce.paddingInline,insetBlockStart:ce.paddingXS},[`${pe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ce.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Fe}-affix-wrapper-sm`]:{[`${Fe}-suffix`]:{[`${Fe}-clear-icon`]:{insetInlineEnd:ce.paddingInlineSM}}}}}};var re=(0,E.I$)(["Input","TextArea"],ce=>{const Fe=(0,I.mergeToken)(ce,(0,U.e)(ce));return[W(Fe)]},U.T,{resetFont:!1}),k=function(ce,Fe){var ve={};for(var pe in ce)Object.prototype.hasOwnProperty.call(ce,pe)&&Fe.indexOf(pe)<0&&(ve[pe]=ce[pe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,pe=Object.getOwnPropertySymbols(ce);Ce{var ve;const{prefixCls:pe,bordered:Ce=!0,size:G,disabled:ge,status:g,allowClear:j,classNames:Ye,rootClassName:oe,className:he,style:be,styles:me,variant:ae,showCount:se,onMouseDown:Je,onResize:mt}=ce,Me=k(ce,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Nt,direction:yt,allowClear:zt,autoComplete:je,className:It,style:Ze,classNames:Pt,styles:ct}=(0,Z.dj)("textArea"),x=s.useContext(v.Z),Ke=ge!=null?ge:x,{status:P,hasFeedback:A,feedbackIcon:h}=s.useContext(L.aM),C=(0,$.F)(P,g),b=s.useRef(null);s.useImperativeHandle(Fe,()=>{var ut;return{resizableTextArea:(ut=b.current)===null||ut===void 0?void 0:ut.resizableTextArea,focus:Qt=>{var Ae,Oe;(0,O.nH)((Oe=(Ae=b.current)===null||Ae===void 0?void 0:Ae.resizableTextArea)===null||Oe===void 0?void 0:Oe.textArea,Qt)},blur:()=>{var Qt;return(Qt=b.current)===null||Qt===void 0?void 0:Qt.blur()}}});const K=Nt("input",pe),ee=(0,N.Z)(K),[Ee,le,ue]=(0,T.TI)(K,oe),[Qe]=re(K,ee),{compactSize:ke,compactItemClassnames:ie}=(0,D.ri)(K,yt),X=(0,i.Z)(ut=>{var Qt;return(Qt=G!=null?G:ke)!==null&&Qt!==void 0?Qt:ut}),[tt,Te]=(0,B.Z)("textArea",ae,Ce),Et=(0,te.Z)(j!=null?j:zt),[at,Ge]=s.useState(!1),[Ut,St]=s.useState(!1),Ie=ut=>{Ge(!0),Je==null||Je(ut);const Qt=()=>{Ge(!1),document.removeEventListener("mouseup",Qt)};document.addEventListener("mouseup",Qt)},$e=ut=>{var Qt,Ae;if(mt==null||mt(ut),at&&typeof getComputedStyle=="function"){const Oe=(Ae=(Qt=b.current)===null||Qt===void 0?void 0:Qt.nativeElement)===null||Ae===void 0?void 0:Ae.querySelector("textarea");Oe&&getComputedStyle(Oe).resize==="both"&&St(!0)}};return Ee(Qe(s.createElement(we.default,Object.assign({autoComplete:je},Me,{style:Object.assign(Object.assign({},Ze),be),styles:Object.assign(Object.assign({},ct),me),disabled:Ke,allowClear:Et,className:M()(ue,ee,he,oe,ie,It,Ut&&`${K}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ye),Pt),{textarea:M()({[`${K}-sm`]:X==="small",[`${K}-lg`]:X==="large"},le,Ye==null?void 0:Ye.textarea,Pt.textarea,at&&`${K}-mouse-active`),variant:M()({[`${K}-${tt}`]:Te},(0,$.Z)(K,C)),affixWrapper:M()(`${K}-textarea-affix-wrapper`,{[`${K}-affix-wrapper-rtl`]:yt==="rtl",[`${K}-affix-wrapper-sm`]:X==="small",[`${K}-affix-wrapper-lg`]:X==="large",[`${K}-textarea-show-count`]:se||((ve=ce.count)===null||ve===void 0?void 0:ve.show)},le)}),prefixCls:K,suffix:A&&s.createElement("span",{className:`${K}-textarea-suffix`},h),showCount:se,ref:b,onResize:$e,onMouseDown:Ie}))))})},23826:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return Se}});var s=p(59301);function Se(M,we){const te=(0,s.useRef)([]),$=()=>{te.current.push(setTimeout(()=>{var Z,v,N,i;!((Z=M.current)===null||Z===void 0)&&Z.input&&((v=M.current)===null||v===void 0?void 0:v.input.getAttribute("type"))==="password"&&(!((N=M.current)===null||N===void 0)&&N.input.hasAttribute("value"))&&((i=M.current)===null||i===void 0||i.input.removeAttribute("value"))}))};return(0,s.useEffect)(()=>(we&&$(),()=>te.current.forEach(Z=>{Z&&clearTimeout(Z)})),[]),$}},37568:function(nr,Zt,p){"use strict";p.d(Zt,{default:function(){return Pt}});var s=p(59301),Se=p(92310),M=p.n(Se),we=p(48755),te=p(56553),$=p(53075),v=ct=>{const{getPrefixCls:x,direction:Ke}=(0,s.useContext)(we.E_),{prefixCls:P,className:A}=ct,h=x("input-group",P),C=x("input"),[b,K,ee]=(0,$.ZP)(C),Ee=M()(h,ee,{[`${h}-lg`]:ct.size==="large",[`${h}-sm`]:ct.size==="small",[`${h}-compact`]:ct.compact,[`${h}-rtl`]:Ke==="rtl"},K,A),le=(0,s.useContext)(te.aM),ue=(0,s.useMemo)(()=>Object.assign(Object.assign({},le),{isFormItemInput:!1}),[le]);return b(s.createElement("span",{className:Ee,style:ct.style,onMouseEnter:ct.onMouseEnter,onMouseLeave:ct.onMouseLeave,onFocus:ct.onFocus,onBlur:ct.onBlur},s.createElement(te.aM.Provider,{value:ue},ct.children)))},N=p(49397),i=p(94480),L=p(6089),B=p(26112),D=p(82855),O=p(31756),T=p(16931),E=p(51636),I=p(64910);const U=ct=>{const{componentCls:x,paddingXS:Ke}=ct;return{[x]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Ke,"&-rtl":{direction:"rtl"},[`${x}-input`]:{textAlign:"center",paddingInline:ct.paddingXXS},[`&${x}-sm ${x}-input`]:{paddingInline:ct.calc(ct.paddingXXS).div(2).equal()},[`&${x}-lg ${x}-input`]:{paddingInline:ct.paddingXS}}}};var W=(0,T.I$)(["Input","OTP"],ct=>{const x=(0,E.mergeToken)(ct,(0,I.e)(ct));return[U(x)]},I.T),re=p(16089),k=function(ct,x){var Ke={};for(var P in ct)Object.prototype.hasOwnProperty.call(ct,P)&&x.indexOf(P)<0&&(Ke[P]=ct[P]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,P=Object.getOwnPropertySymbols(ct);A{const{value:Ke,onChange:P,onActiveChange:A,index:h,mask:C}=ct,b=k(ct,["value","onChange","onActiveChange","index","mask"]),K=Ke&&typeof C=="string"?C:Ke,ee=ke=>{P(h,ke.target.value)},Ee=s.useRef(null);s.useImperativeHandle(x,()=>Ee.current);const le=()=>{(0,re.Z)(()=>{var ke;const ie=(ke=Ee.current)===null||ke===void 0?void 0:ke.input;document.activeElement===ie&&ie&&ie.select()})},ue=ke=>{const{key:ie,ctrlKey:X,metaKey:tt}=ke;ie==="ArrowLeft"?A(h-1):ie==="ArrowRight"?A(h+1):ie==="z"&&(X||tt)&&ke.preventDefault(),le()},Qe=ke=>{ke.key==="Backspace"&&!Ke&&A(h-1),le()};return s.createElement(N.Z,Object.assign({type:C===!0?"password":"text"},b,{ref:Ee,value:K,onInput:ee,onFocus:le,onKeyDown:ue,onKeyUp:Qe,onMouseDown:le,onMouseUp:le}))}),ce=function(ct,x){var Ke={};for(var P in ct)Object.prototype.hasOwnProperty.call(ct,P)&&x.indexOf(P)<0&&(Ke[P]=ct[P]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,P=Object.getOwnPropertySymbols(ct);A{const{index:x,prefixCls:Ke,separator:P}=ct,A=typeof P=="function"?P(x):P;return A?s.createElement("span",{className:`${Ke}-separator`},A):null};var Ce=s.forwardRef((ct,x)=>{const{prefixCls:Ke,length:P=6,size:A,defaultValue:h,value:C,onChange:b,formatter:K,separator:ee,variant:Ee,disabled:le,status:ue,autoFocus:Qe,mask:ke,type:ie,onInput:X,inputMode:tt}=ct,Te=ce(ct,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Et,direction:at}=s.useContext(we.E_),Ge=Et("otp",Ke),Ut=(0,B.Z)(Te,{aria:!0,data:!0,attr:!0}),[St,Ie,$e]=W(Ge),ut=(0,O.Z)(yn=>A!=null?A:yn),Qt=s.useContext(te.aM),Ae=(0,D.F)(Qt.status,ue),Oe=s.useMemo(()=>Object.assign(Object.assign({},Qt),{status:Ae,hasFeedback:!1,feedbackIcon:null}),[Qt,Ae]),We=s.useRef(null),vt=s.useRef({});s.useImperativeHandle(x,()=>({focus:()=>{var yn;(yn=vt.current[0])===null||yn===void 0||yn.focus()},blur:()=>{var yn;for(let In=0;InK?K(yn):yn,[en,En]=s.useState(()=>Fe(Rt(h||"")));s.useEffect(()=>{C!==void 0&&En(Fe(C))},[C]);const xn=(0,L.Z)(yn=>{En(yn),X&&X(yn),b&&yn.length===P&&yn.every(In=>In)&&yn.some((In,Kn)=>en[Kn]!==In)&&b(yn.join(""))}),ln=(0,L.Z)((yn,In)=>{let Kn=(0,i.Z)(en);for(let er=0;er=0&&!Kn[er];er-=1)Kn.pop();const qn=Rt(Kn.map(er=>er||" ").join(""));return Kn=Fe(qn).map((er,xr)=>er===" "&&!Kn[xr]?Kn[xr]:er),Kn}),tn=(yn,In)=>{var Kn;const qn=ln(yn,In),er=Math.min(yn+In.length,P-1);er!==yn&&qn[yn]!==void 0&&((Kn=vt.current[er])===null||Kn===void 0||Kn.focus()),xn(qn)},Yt=yn=>{var In;(In=vt.current[yn])===null||In===void 0||In.focus()},cn={variant:Ee,disabled:le,status:Ae,mask:ke,type:ie,inputMode:tt};return St(s.createElement("div",Object.assign({},Ut,{ref:We,className:M()(Ge,{[`${Ge}-sm`]:ut==="small",[`${Ge}-lg`]:ut==="large",[`${Ge}-rtl`]:at==="rtl"},$e,Ie)}),s.createElement(te.aM.Provider,{value:Oe},Array.from({length:P}).map((yn,In)=>{const Kn=`otp-${In}`,qn=en[In]||"";return s.createElement(s.Fragment,{key:Kn},s.createElement(de,Object.assign({ref:er=>{vt.current[In]=er},index:In,size:ut,htmlSize:1,className:`${Ge}-input`,onChange:tn,value:qn,onActiveChange:Yt,autoFocus:In===0&&Qe},cn)),Inct?s.createElement(ge.Z,null):s.createElement(G.Z,null),me={click:"onClick",hover:"onMouseOver"};var se=s.forwardRef((ct,x)=>{const{disabled:Ke,action:P="click",visibilityToggle:A=!0,iconRender:h=be}=ct,C=s.useContext(Ye.Z),b=Ke!=null?Ke:C,K=typeof A=="object"&&A.visible!==void 0,[ee,Ee]=(0,s.useState)(()=>K?A.visible:!1),le=(0,s.useRef)(null);s.useEffect(()=>{K&&Ee(A.visible)},[K,A]);const ue=(0,oe.Z)(le),Qe=()=>{var ut;if(b)return;ee&&ue();const Qt=!ee;Ee(Qt),typeof A=="object"&&((ut=A.onVisibleChange)===null||ut===void 0||ut.call(A,Qt))},ke=ut=>{const Qt=me[P]||"",Ae=h(ee),Oe={[Qt]:Qe,className:`${ut}-icon`,key:"passwordIcon",onMouseDown:We=>{We.preventDefault()},onMouseUp:We=>{We.preventDefault()}};return s.cloneElement(s.isValidElement(Ae)?Ae:s.createElement("span",null,Ae),Oe)},{className:ie,prefixCls:X,inputPrefixCls:tt,size:Te}=ct,Et=he(ct,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:at}=s.useContext(we.E_),Ge=at("input",tt),Ut=at("input-password",X),St=A&&ke(Ut),Ie=M()(Ut,ie,{[`${Ut}-${Te}`]:!!Te}),$e=Object.assign(Object.assign({},(0,g.Z)(Et,["suffix","iconRender","visibilityToggle"])),{type:ee?"text":"password",className:Ie,prefixCls:Ge,suffix:St});return Te&&($e.size=Te),s.createElement(N.Z,Object.assign({ref:(0,j.sQ)(x,le)},$e))}),Je=p(47472),mt=p(22703),Me=p(7939),Nt=p(70045),yt=function(ct,x){var Ke={};for(var P in ct)Object.prototype.hasOwnProperty.call(ct,P)&&x.indexOf(P)<0&&(Ke[P]=ct[P]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,P=Object.getOwnPropertySymbols(ct);A{const{prefixCls:Ke,inputPrefixCls:P,className:A,size:h,suffix:C,enterButton:b=!1,addonAfter:K,loading:ee,disabled:Ee,onSearch:le,onChange:ue,onCompositionStart:Qe,onCompositionEnd:ke}=ct,ie=yt(ct,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:X,direction:tt}=s.useContext(we.E_),Te=s.useRef(!1),Et=X("input-search",Ke),at=X("input",P),{compactSize:Ge}=(0,Nt.ri)(Et,tt),Ut=(0,O.Z)(tn=>{var Yt;return(Yt=h!=null?h:Ge)!==null&&Yt!==void 0?Yt:tn}),St=s.useRef(null),Ie=tn=>{tn!=null&&tn.target&&tn.type==="click"&&le&&le(tn.target.value,tn,{source:"clear"}),ue==null||ue(tn)},$e=tn=>{var Yt;document.activeElement===((Yt=St.current)===null||Yt===void 0?void 0:Yt.input)&&tn.preventDefault()},ut=tn=>{var Yt,cn;le&&le((cn=(Yt=St.current)===null||Yt===void 0?void 0:Yt.input)===null||cn===void 0?void 0:cn.value,tn,{source:"input"})},Qt=tn=>{Te.current||ee||ut(tn)},Ae=typeof b=="boolean"?s.createElement(Je.Z,null):null,Oe=`${Et}-button`;let We;const vt=b||{},Rt=vt.type&&vt.type.__ANT_BUTTON===!0;Rt||vt.type==="button"?We=(0,mt.Tm)(vt,Object.assign({onMouseDown:$e,onClick:tn=>{var Yt,cn;(cn=(Yt=vt==null?void 0:vt.props)===null||Yt===void 0?void 0:Yt.onClick)===null||cn===void 0||cn.call(Yt,tn),ut(tn)},key:"enterButton"},Rt?{className:Oe,size:Ut}:{})):We=s.createElement(Me.ZP,{className:Oe,type:b?"primary":void 0,size:Ut,disabled:Ee,key:"enterButton",onMouseDown:$e,onClick:ut,loading:ee,icon:Ae},b),K&&(We=[We,(0,mt.Tm)(K,{key:"addonAfter"})]);const en=M()(Et,{[`${Et}-rtl`]:tt==="rtl",[`${Et}-${Ut}`]:!!Ut,[`${Et}-with-button`]:!!b},A),En=Object.assign(Object.assign({},ie),{className:en,prefixCls:at,type:"search"}),xn=tn=>{Te.current=!0,Qe==null||Qe(tn)},ln=tn=>{Te.current=!1,ke==null||ke(tn)};return s.createElement(N.Z,Object.assign({ref:(0,j.sQ)(St,x),onPressEnter:Qt},En,{size:Ut,onCompositionStart:xn,onCompositionEnd:ln,addonAfter:We,suffix:C,onChange:Ie,disabled:Ee}))}),It=p(79809);const Ze=N.Z;Ze.Group=v,Ze.Search=je,Ze.TextArea=It.Z,Ze.Password=se,Ze.OTP=Ce;var Pt=Ze},24303:function(nr,Zt,p){"use strict";p.d(Zt,{D:function(){return ce},Z:function(){return pe}});var s=p(59301),Se=p(54476),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},we=M,te=p(7657),$=function(G,ge){return s.createElement(te.Z,(0,Se.Z)({},G,{ref:ge,icon:we}))},Z=s.forwardRef($),v=Z,N=p(33853),i=p(38819),L=p(92310),B=p.n(L),D=p(2738),O=p(48755),T=p(6989),E=p(36237),I=p(48923),U=p(16931);const W=Ce=>{const{componentCls:G,siderBg:ge,motionDurationMid:g,motionDurationSlow:j,antCls:Ye,triggerHeight:oe,triggerColor:he,triggerBg:be,headerHeight:me,zeroTriggerWidth:ae,zeroTriggerHeight:se,borderRadiusLG:Je,lightSiderBg:mt,lightTriggerColor:Me,lightTriggerBg:Nt,bodyBg:yt}=Ce;return{[G]:{position:"relative",minWidth:0,background:ge,transition:`all ${g}, background 0s`,"&-has-trigger":{paddingBottom:oe},"&-right":{order:1},[`${G}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ye}-menu${Ye}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${G}-children`]:{overflow:"hidden"},[`${G}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:oe,color:he,lineHeight:(0,E.unit)(oe),textAlign:"center",background:be,cursor:"pointer",transition:`all ${g}`},[`${G}-zero-width-trigger`]:{position:"absolute",top:me,insetInlineEnd:Ce.calc(ae).mul(-1).equal(),zIndex:1,width:ae,height:se,color:he,fontSize:Ce.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ge,borderRadius:`0 ${(0,E.unit)(Je)} ${(0,E.unit)(Je)} 0`,cursor:"pointer",transition:`background ${j} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${j}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ce.calc(ae).mul(-1).equal(),borderRadius:`${(0,E.unit)(Je)} 0 0 ${(0,E.unit)(Je)}`}},"&-light":{background:mt,[`${G}-trigger`]:{color:Me,background:Nt},[`${G}-zero-width-trigger`]:{color:Me,background:Nt,border:`1px solid ${yt}`,borderInlineStart:0}}}}};var re=(0,U.I$)(["Layout","Sider"],Ce=>[W(Ce)],I.eh,{deprecatedTokens:I.jn}),k=function(Ce,G){var ge={};for(var g in Ce)Object.prototype.hasOwnProperty.call(Ce,g)&&G.indexOf(g)<0&&(ge[g]=Ce[g]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,g=Object.getOwnPropertySymbols(Ce);j!Number.isNaN(Number.parseFloat(Ce))&&isFinite(Ce),ce=s.createContext({}),Fe=(()=>{let Ce=0;return function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce+=1,`${G}${Ce}`}})();var pe=s.forwardRef((Ce,G)=>{const{prefixCls:ge,className:g,trigger:j,children:Ye,defaultCollapsed:oe=!1,theme:he="dark",style:be={},collapsible:me=!1,reverseArrow:ae=!1,width:se=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:mt,breakpoint:Me,onCollapse:Nt,onBreakpoint:yt}=Ce,zt=k(Ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:je}=(0,s.useContext)(T.V),[It,Ze]=(0,s.useState)("collapsed"in Ce?Ce.collapsed:oe),[Pt,ct]=(0,s.useState)(!1);(0,s.useEffect)(()=>{"collapsed"in Ce&&Ze(Ce.collapsed)},[Ce.collapsed]);const x=(Ut,St)=>{"collapsed"in Ce||Ze(Ut),Nt==null||Nt(Ut,St)},{getPrefixCls:Ke,direction:P}=(0,s.useContext)(O.E_),A=Ke("layout-sider",ge),[h,C,b]=re(A),K=(0,s.useRef)(null);K.current=Ut=>{ct(Ut.matches),yt==null||yt(Ut.matches),It!==Ut.matches&&x(Ut.matches,"responsive")},(0,s.useEffect)(()=>{function Ut(Ie){return K.current(Ie)}let St;if(typeof window!="undefined"){const{matchMedia:Ie}=window;if(Ie&&Me&&Me in H){St=Ie(`screen and (max-width: ${H[Me]})`);try{St.addEventListener("change",Ut)}catch($e){St.addListener(Ut)}Ut(St)}}return()=>{try{St==null||St.removeEventListener("change",Ut)}catch(Ie){St==null||St.removeListener(Ut)}}},[Me]),(0,s.useEffect)(()=>{const Ut=Fe("ant-sider-");return je.addSider(Ut),()=>je.removeSider(Ut)},[]);const ee=()=>{x(!It,"clickTrigger")},Ee=(0,D.Z)(zt,["collapsed"]),le=It?Je:se,ue=de(le)?`${le}px`:String(le),Qe=parseFloat(String(Je||0))===0?s.createElement("span",{onClick:ee,className:B()(`${A}-zero-width-trigger`,`${A}-zero-width-trigger-${ae?"right":"left"}`),style:mt},j||s.createElement(v,null)):null,ke=P==="rtl"==!ae,tt={expanded:ke?s.createElement(i.Z,null):s.createElement(N.Z,null),collapsed:ke?s.createElement(N.Z,null):s.createElement(i.Z,null)}[It?"collapsed":"expanded"],Te=j!==null?Qe||s.createElement("div",{className:`${A}-trigger`,onClick:ee,style:{width:ue}},j||tt):null,Et=Object.assign(Object.assign({},be),{flex:`0 0 ${ue}`,maxWidth:ue,minWidth:ue,width:ue}),at=B()(A,`${A}-${he}`,{[`${A}-collapsed`]:!!It,[`${A}-has-trigger`]:me&&j!==null&&!Qe,[`${A}-below`]:!!Pt,[`${A}-zero-width`]:parseFloat(ue)===0},g,C,b),Ge=s.useMemo(()=>({siderCollapsed:It}),[It]);return h(s.createElement(ce.Provider,{value:Ge},s.createElement("aside",Object.assign({className:at},Ee,{style:Et,ref:G}),s.createElement("div",{className:`${A}-children`},Ye),me||Pt&&Qe?Te:null)))})},6989:function(nr,Zt,p){"use strict";p.d(Zt,{V:function(){return Se}});var s=p(59301);const Se=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(nr,Zt,p){"use strict";p.d(Zt,{eh:function(){return we},jn:function(){return te}});var s=p(36237),Se=p(16931);const M=$=>{const{antCls:Z,componentCls:v,colorText:N,footerBg:i,headerHeight:L,headerPadding:B,headerColor:D,footerPadding:O,fontSize:T,bodyBg:E,headerBg:I}=$;return{[v]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:E,"&, *":{boxSizing:"border-box"},[`&${v}-has-sider`]:{flexDirection:"row",[`> ${v}, > ${v}-content`]:{width:0}},[`${v}-header, &${v}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${v}-header`]:{height:L,padding:B,color:D,lineHeight:(0,s.unit)(L),background:I,[`${Z}-menu`]:{lineHeight:"inherit"}},[`${v}-footer`]:{padding:O,color:N,fontSize:T,background:i},[`${v}-content`]:{flex:"auto",color:N,minHeight:0}}},we=$=>{const{colorBgLayout:Z,controlHeight:v,controlHeightLG:N,colorText:i,controlHeightSM:L,marginXXS:B,colorTextLightSolid:D,colorBgContainer:O}=$,T=N*1.25;return{colorBgHeader:"#001529",colorBgBody:Z,colorBgTrigger:"#002140",bodyBg:Z,headerBg:"#001529",headerHeight:v*2,headerPadding:`0 ${T}px`,headerColor:i,footerPadding:`${L}px ${T}px`,footerBg:Z,siderBg:"#001529",triggerHeight:N+B*2,triggerBg:"#002140",triggerColor:D,zeroTriggerWidth:N,zeroTriggerHeight:N,lightSiderBg:O,lightTriggerBg:O,lightTriggerColor:i}},te=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Zt.ZP=(0,Se.I$)("Layout",$=>[M($)],we,{deprecatedTokens:te})},78857:function(nr,Zt,p){"use strict";p.d(Zt,{J:function(){return $}});var s=p(59301),Se=p(8654),M=p(62487),we=function(Z,v){var N={};for(var i in Z)Object.prototype.hasOwnProperty.call(Z,i)&&v.indexOf(i)<0&&(N[i]=Z[i]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,i=Object.getOwnPropertySymbols(Z);L{const{children:N}=Z,i=we(Z,["children"]),L=s.useContext(te),B=s.useMemo(()=>Object.assign(Object.assign({},L),i),[L,i.prefixCls,i.mode,i.selectable,i.rootClassName]),D=(0,Se.t4)(N),O=(0,Se.x1)(v,D?(0,Se.C4)(N):null);return s.createElement(te.Provider,{value:B},s.createElement(M.Z,{space:!0},D?s.cloneElement(N,{ref:O}):N))});Zt.Z=te},93041:function(nr,Zt,p){"use strict";p.d(Zt,{default:function(){return h}});var s=p(59301),Se=p(28321),M=p(24303),we=p(18785),te=p(92310),$=p.n(te),Z=p(6089),v=p(2738),N=p(86641),i=p(22703),L=p(48755),B=p(83397),O=(0,s.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),T=function(C,b){var K={};for(var ee in C)Object.prototype.hasOwnProperty.call(C,ee)&&b.indexOf(ee)<0&&(K[ee]=C[ee]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ee=Object.getOwnPropertySymbols(C);Ee{const{prefixCls:b,className:K,dashed:ee}=C,Ee=T(C,["prefixCls","className","dashed"]),{getPrefixCls:le}=s.useContext(L.E_),ue=le("menu",b),Qe=$()({[`${ue}-item-divider-dashed`]:!!ee},K);return s.createElement(Se.iz,Object.assign({className:Qe},Ee))},U=p(11592),W=p(25399),k=C=>{var b;const{className:K,children:ee,icon:Ee,title:le,danger:ue,extra:Qe}=C,{prefixCls:ke,firstLevel:ie,direction:X,disableMenuItemTitleTooltip:tt,inlineCollapsed:Te}=s.useContext(O),Et=$e=>{const ut=ee==null?void 0:ee[0],Qt=s.createElement("span",{className:$()(`${ke}-title-content`,{[`${ke}-title-content-with-extra`]:!!Qe||Qe===0})},ee);return(!Ee||s.isValidElement(ee)&&ee.type==="span")&&ee&&$e&&ie&&typeof ut=="string"?s.createElement("div",{className:`${ke}-inline-collapsed-noicon`},ut.charAt(0)):Qt},{siderCollapsed:at}=s.useContext(M.D);let Ge=le;typeof le=="undefined"?Ge=ie?ee:"":le===!1&&(Ge="");const Ut={title:Ge};!at&&!Te&&(Ut.title=null,Ut.open=!1);const St=(0,U.Z)(ee).length;let Ie=s.createElement(Se.ck,Object.assign({},(0,v.Z)(C,["title","icon","danger"]),{className:$()({[`${ke}-item-danger`]:ue,[`${ke}-item-only-child`]:(Ee?St+1:St)===1},K),title:typeof le=="string"?le:void 0}),(0,i.Tm)(Ee,{className:$()(s.isValidElement(Ee)?(b=Ee.props)===null||b===void 0?void 0:b.className:"",`${ke}-item-icon`)}),Et(Te));return tt||(Ie=s.createElement(W.Z,Object.assign({},Ut,{placement:X==="rtl"?"left":"right",classNames:{root:`${ke}-inline-collapsed-tooltip`}}),Ie)),Ie},H=p(78857),de=p(36237),ce=p(17835),Fe=p(63356),ve=p(34961),pe=p(46e3),Ce=p(34925),G=p(16931),ge=p(51636),j=C=>{const{componentCls:b,motionDurationSlow:K,horizontalLineHeight:ee,colorSplit:Ee,lineWidth:le,lineType:ue,itemPaddingInline:Qe}=C;return{[`${b}-horizontal`]:{lineHeight:ee,border:0,borderBottom:`${(0,de.unit)(le)} ${ue} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${b}-item, ${b}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Qe},[`> ${b}-item:hover, > ${b}-item-active, - > ${b}-submenu ${b}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${b}-item, ${b}-submenu-title`]:{transition:[`border-color ${K}`,`background ${K}`].join(",")},[`${b}-submenu-arrow`]:{display:"none"}}}},ie=C=>{let{componentCls:b,menuArrowOffset:K,calc:ee}=C;return{[`${b}-rtl`]:{direction:"rtl"},[`${b}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${b}-rtl${b}-vertical, - ${b}-submenu-rtl ${b}-vertical`]:{[`${b}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,de.unit)(ee(K).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,de.unit)(K)})`}}}}};const he=C=>Object.assign({},(0,Fe.oN)(C));var ge=(C,b)=>{const{componentCls:K,itemColor:ee,itemSelectedColor:Ee,subMenuItemSelectedColor:le,groupTitleColor:ce,itemBg:Qe,subMenuItemBg:He,itemSelectedBg:oe,activeBarHeight:$,activeBarWidth:et,activeBarBorderWidth:Te,motionDurationSlow:Et,motionEaseInOut:at,motionEaseOut:Ge,itemPaddingInline:Ut,motionDurationMid:St,itemHoverColor:Ie,lineType:$e,colorSplit:ut,itemDisabledColor:Qt,dangerItemColor:se,dangerItemHoverColor:Oe,dangerItemSelectedColor:We,dangerItemActiveBg:mt,dangerItemSelectedBg:Rt,popupBg:en,itemHoverBg:En,itemActiveBg:xn,menuSubMenuBg:ln,horizontalItemSelectedColor:tn,horizontalItemSelectedBg:Yt,horizontalItemBorderRadius:cn,horizontalItemHoverBg:yn}=C;return{[`${K}-${b}, ${K}-${b} > ${K}`]:{color:ee,background:Qe,[`&${K}-root:focus-visible`]:Object.assign({},he(C)),[`${K}-item`]:{"&-group-title, &-extra":{color:ce}},[`${K}-submenu-selected > ${K}-submenu-title`]:{color:le},[`${K}-item, ${K}-submenu-title`]:{color:ee,[`&:not(${K}-item-disabled):focus-visible`]:Object.assign({},he(C))},[`${K}-item-disabled, ${K}-submenu-disabled`]:{color:`${Qt} !important`},[`${K}-item:not(${K}-item-selected):not(${K}-submenu-selected)`]:{[`&:hover, > ${K}-submenu-title:hover`]:{color:Ie}},[`&:not(${K}-horizontal)`]:{[`${K}-item:not(${K}-item-selected)`]:{"&:hover":{backgroundColor:En},"&:active":{backgroundColor:xn}},[`${K}-submenu-title`]:{"&:hover":{backgroundColor:En},"&:active":{backgroundColor:xn}}},[`${K}-item-danger`]:{color:se,[`&${K}-item:hover`]:{[`&:not(${K}-item-selected):not(${K}-submenu-selected)`]:{color:Oe}},[`&${K}-item:active`]:{background:mt}},[`${K}-item a`]:{"&, &:hover":{color:"inherit"}},[`${K}-item-selected`]:{color:Ee,[`&${K}-item-danger`]:{color:We},"a, a:hover":{color:"inherit"}},[`& ${K}-item-selected`]:{backgroundColor:oe,[`&${K}-item-danger`]:{backgroundColor:Rt}},[`&${K}-submenu > ${K}`]:{backgroundColor:ln},[`&${K}-popup > ${K}`]:{backgroundColor:en},[`&${K}-submenu-popup > ${K}`]:{backgroundColor:en},[`&${K}-horizontal`]:Object.assign(Object.assign({},b==="dark"?{borderBottom:0}:{}),{[`> ${K}-item, > ${K}-submenu`]:{top:Te,marginTop:C.calc(Te).mul(-1).equal(),marginBottom:0,borderRadius:cn,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${(0,de.unit)($)} solid transparent`,transition:`border-color ${Et} ${at}`,content:'""'},"&:hover, &-active, &-open":{background:yn,"&::after":{borderBottomWidth:$,borderBottomColor:tn}},"&-selected":{color:tn,backgroundColor:Yt,"&:hover":{backgroundColor:Yt},"&::after":{borderBottomWidth:$,borderBottomColor:tn}}}}),[`&${K}-root`]:{[`&${K}-inline, &${K}-vertical`]:{borderInlineEnd:`${(0,de.unit)(Te)} ${$e} ${ut}`}},[`&${K}-inline`]:{[`${K}-sub${K}-inline`]:{background:He},[`${K}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,de.unit)(et)} solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${St} ${Ge}`,`opacity ${St} ${Ge}`].join(","),content:'""'},[`&${K}-item-danger`]:{"&::after":{borderInlineEndColor:We}}},[`${K}-selected, ${K}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${St} ${at}`,`opacity ${St} ${at}`].join(",")}}}}}};const ae=C=>{const{componentCls:b,itemHeight:K,itemMarginInline:ee,padding:Ee,menuArrowSize:le,marginXS:ce,itemMarginBlock:Qe,itemWidth:He,itemPaddingInline:oe}=C,$=C.calc(le).add(Ee).add(ce).equal();return{[`${b}-item`]:{position:"relative",overflow:"hidden"},[`${b}-item, ${b}-submenu-title`]:{height:K,lineHeight:(0,de.unit)(K),paddingInline:oe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ee,marginBlock:Qe,width:He},[`> ${b}-item, + > ${b}-submenu ${b}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${b}-item, ${b}-submenu-title`]:{transition:[`border-color ${K}`,`background ${K}`].join(",")},[`${b}-submenu-arrow`]:{display:"none"}}}},oe=C=>{let{componentCls:b,menuArrowOffset:K,calc:ee}=C;return{[`${b}-rtl`]:{direction:"rtl"},[`${b}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${b}-rtl${b}-vertical, + ${b}-submenu-rtl ${b}-vertical`]:{[`${b}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,de.unit)(ee(K).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,de.unit)(K)})`}}}}};const he=C=>Object.assign({},(0,Fe.oN)(C));var me=(C,b)=>{const{componentCls:K,itemColor:ee,itemSelectedColor:Ee,subMenuItemSelectedColor:le,groupTitleColor:ue,itemBg:Qe,subMenuItemBg:ke,itemSelectedBg:ie,activeBarHeight:X,activeBarWidth:tt,activeBarBorderWidth:Te,motionDurationSlow:Et,motionEaseInOut:at,motionEaseOut:Ge,itemPaddingInline:Ut,motionDurationMid:St,itemHoverColor:Ie,lineType:$e,colorSplit:ut,itemDisabledColor:Qt,dangerItemColor:Ae,dangerItemHoverColor:Oe,dangerItemSelectedColor:We,dangerItemActiveBg:vt,dangerItemSelectedBg:Rt,popupBg:en,itemHoverBg:En,itemActiveBg:xn,menuSubMenuBg:ln,horizontalItemSelectedColor:tn,horizontalItemSelectedBg:Yt,horizontalItemBorderRadius:cn,horizontalItemHoverBg:yn}=C;return{[`${K}-${b}, ${K}-${b} > ${K}`]:{color:ee,background:Qe,[`&${K}-root:focus-visible`]:Object.assign({},he(C)),[`${K}-item`]:{"&-group-title, &-extra":{color:ue}},[`${K}-submenu-selected > ${K}-submenu-title`]:{color:le},[`${K}-item, ${K}-submenu-title`]:{color:ee,[`&:not(${K}-item-disabled):focus-visible`]:Object.assign({},he(C))},[`${K}-item-disabled, ${K}-submenu-disabled`]:{color:`${Qt} !important`},[`${K}-item:not(${K}-item-selected):not(${K}-submenu-selected)`]:{[`&:hover, > ${K}-submenu-title:hover`]:{color:Ie}},[`&:not(${K}-horizontal)`]:{[`${K}-item:not(${K}-item-selected)`]:{"&:hover":{backgroundColor:En},"&:active":{backgroundColor:xn}},[`${K}-submenu-title`]:{"&:hover":{backgroundColor:En},"&:active":{backgroundColor:xn}}},[`${K}-item-danger`]:{color:Ae,[`&${K}-item:hover`]:{[`&:not(${K}-item-selected):not(${K}-submenu-selected)`]:{color:Oe}},[`&${K}-item:active`]:{background:vt}},[`${K}-item a`]:{"&, &:hover":{color:"inherit"}},[`${K}-item-selected`]:{color:Ee,[`&${K}-item-danger`]:{color:We},"a, a:hover":{color:"inherit"}},[`& ${K}-item-selected`]:{backgroundColor:ie,[`&${K}-item-danger`]:{backgroundColor:Rt}},[`&${K}-submenu > ${K}`]:{backgroundColor:ln},[`&${K}-popup > ${K}`]:{backgroundColor:en},[`&${K}-submenu-popup > ${K}`]:{backgroundColor:en},[`&${K}-horizontal`]:Object.assign(Object.assign({},b==="dark"?{borderBottom:0}:{}),{[`> ${K}-item, > ${K}-submenu`]:{top:Te,marginTop:C.calc(Te).mul(-1).equal(),marginBottom:0,borderRadius:cn,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${(0,de.unit)(X)} solid transparent`,transition:`border-color ${Et} ${at}`,content:'""'},"&:hover, &-active, &-open":{background:yn,"&::after":{borderBottomWidth:X,borderBottomColor:tn}},"&-selected":{color:tn,backgroundColor:Yt,"&:hover":{backgroundColor:Yt},"&::after":{borderBottomWidth:X,borderBottomColor:tn}}}}),[`&${K}-root`]:{[`&${K}-inline, &${K}-vertical`]:{borderInlineEnd:`${(0,de.unit)(Te)} ${$e} ${ut}`}},[`&${K}-inline`]:{[`${K}-sub${K}-inline`]:{background:ke},[`${K}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,de.unit)(tt)} solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${St} ${Ge}`,`opacity ${St} ${Ge}`].join(","),content:'""'},[`&${K}-item-danger`]:{"&::after":{borderInlineEndColor:We}}},[`${K}-selected, ${K}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${St} ${at}`,`opacity ${St} ${at}`].join(",")}}}}}};const ae=C=>{const{componentCls:b,itemHeight:K,itemMarginInline:ee,padding:Ee,menuArrowSize:le,marginXS:ue,itemMarginBlock:Qe,itemWidth:ke,itemPaddingInline:ie}=C,X=C.calc(le).add(Ee).add(ue).equal();return{[`${b}-item`]:{position:"relative",overflow:"hidden"},[`${b}-item, ${b}-submenu-title`]:{height:K,lineHeight:(0,de.unit)(K),paddingInline:ie,overflow:"hidden",textOverflow:"ellipsis",marginInline:ee,marginBlock:Qe,width:ke},[`> ${b}-item, > ${b}-submenu > ${b}-submenu-title`]:{height:K,lineHeight:(0,de.unit)(K)},[`${b}-item-group-list ${b}-submenu-title, - ${b}-submenu-title`]:{paddingInlineEnd:$}}};var nt=C=>{const{componentCls:b,iconCls:K,itemHeight:ee,colorTextLightSolid:Ee,dropdownWidth:le,controlHeightLG:ce,motionEaseOut:Qe,paddingXL:He,itemMarginInline:oe,fontSizeLG:$,motionDurationFast:et,motionDurationSlow:Te,paddingXS:Et,boxShadowSecondary:at,collapsedWidth:Ge,collapsedIconSize:Ut}=C,St={height:ee,lineHeight:(0,de.unit)(ee),listStylePosition:"inside",listStyleType:"disc"};return[{[b]:{"&-inline, &-vertical":Object.assign({[`&${b}-root`]:{boxShadow:"none"}},ae(C))},[`${b}-submenu-popup`]:{[`${b}-vertical`]:Object.assign(Object.assign({},ae(C)),{boxShadow:at})}},{[`${b}-submenu-popup ${b}-vertical${b}-sub`]:{minWidth:le,maxHeight:`calc(100vh - ${(0,de.unit)(C.calc(ce).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${b}-inline`]:{width:"100%",[`&${b}-root`]:{[`${b}-item, ${b}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Te}`,`background ${Te}`,`padding ${et} ${Qe}`].join(","),[`> ${b}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${b}-sub${b}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${b}-submenu > ${b}-submenu-title`]:St,[`& ${b}-item-group-title`]:{paddingInlineStart:He}},[`${b}-item`]:St}},{[`${b}-inline-collapsed`]:{width:Ge,[`&${b}-root`]:{[`${b}-item, ${b}-submenu ${b}-submenu-title`]:{[`> ${b}-inline-collapsed-noicon`]:{fontSize:$,textAlign:"center"}}},[`> ${b}-item, + ${b}-submenu-title`]:{paddingInlineEnd:X}}};var Je=C=>{const{componentCls:b,iconCls:K,itemHeight:ee,colorTextLightSolid:Ee,dropdownWidth:le,controlHeightLG:ue,motionEaseOut:Qe,paddingXL:ke,itemMarginInline:ie,fontSizeLG:X,motionDurationFast:tt,motionDurationSlow:Te,paddingXS:Et,boxShadowSecondary:at,collapsedWidth:Ge,collapsedIconSize:Ut}=C,St={height:ee,lineHeight:(0,de.unit)(ee),listStylePosition:"inside",listStyleType:"disc"};return[{[b]:{"&-inline, &-vertical":Object.assign({[`&${b}-root`]:{boxShadow:"none"}},ae(C))},[`${b}-submenu-popup`]:{[`${b}-vertical`]:Object.assign(Object.assign({},ae(C)),{boxShadow:at})}},{[`${b}-submenu-popup ${b}-vertical${b}-sub`]:{minWidth:le,maxHeight:`calc(100vh - ${(0,de.unit)(C.calc(ue).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${b}-inline`]:{width:"100%",[`&${b}-root`]:{[`${b}-item, ${b}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Te}`,`background ${Te}`,`padding ${tt} ${Qe}`].join(","),[`> ${b}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${b}-sub${b}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${b}-submenu > ${b}-submenu-title`]:St,[`& ${b}-item-group-title`]:{paddingInlineStart:ke}},[`${b}-item`]:St}},{[`${b}-inline-collapsed`]:{width:Ge,[`&${b}-root`]:{[`${b}-item, ${b}-submenu ${b}-submenu-title`]:{[`> ${b}-inline-collapsed-noicon`]:{fontSize:X,textAlign:"center"}}},[`> ${b}-item, > ${b}-item-group > ${b}-item-group-list > ${b}-item, > ${b}-item-group > ${b}-item-group-list > ${b}-submenu > ${b}-submenu-title, - > ${b}-submenu > ${b}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,de.unit)(C.calc(Ut).div(2).equal())} - ${(0,de.unit)(oe)})`,textOverflow:"clip",[` + > ${b}-submenu > ${b}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,de.unit)(C.calc(Ut).div(2).equal())} - ${(0,de.unit)(ie)})`,textOverflow:"clip",[` ${b}-submenu-arrow, ${b}-submenu-expand-icon - `]:{opacity:0},[`${b}-item-icon, ${K}`]:{margin:0,fontSize:Ut,lineHeight:(0,de.unit)(ee),"+ span":{display:"inline-block",opacity:0}}},[`${b}-item-icon, ${K}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${b}-item-icon, ${K}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${b}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Et})}}]};const vt=C=>{const{componentCls:b,motionDurationSlow:K,motionDurationMid:ee,motionEaseInOut:Ee,motionEaseOut:le,iconCls:ce,iconSize:Qe,iconMarginInlineEnd:He}=C;return{[`${b}-item, ${b}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${K}`,`background ${K}`,`padding calc(${K} + 0.1s) ${Ee}`].join(","),[`${b}-item-icon, ${ce}`]:{minWidth:Qe,fontSize:Qe,transition:[`font-size ${ee} ${le}`,`margin ${K} ${Ee}`,`color ${K}`].join(","),"+ span":{marginInlineStart:He,opacity:1,transition:[`opacity ${K} ${Ee}`,`margin ${K}`,`color ${K}`].join(",")}},[`${b}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${b}-item-only-child`]:{[`> ${ce}, > ${b}-item-icon`]:{marginInlineEnd:0}}},[`${b}-item-disabled, ${b}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${b}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ve=C=>{const{componentCls:b,motionDurationSlow:K,motionEaseInOut:ee,borderRadius:Ee,menuArrowSize:le,menuArrowOffset:ce}=C;return{[`${b}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:C.margin,width:le,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${K} ${ee}, opacity ${K}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:C.calc(le).mul(.6).equal(),height:C.calc(le).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${K} ${ee}`,`transform ${K} ${ee}`,`top ${K} ${ee}`,`color ${K} ${ee}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,de.unit)(C.calc(ce).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,de.unit)(ce)})`}}}}},Nt=C=>{const{antCls:b,componentCls:K,fontSize:ee,motionDurationSlow:Ee,motionDurationMid:le,motionEaseInOut:ce,paddingXS:Qe,padding:He,colorSplit:oe,lineWidth:$,zIndexPopup:et,borderRadiusLG:Te,subMenuItemBorderRadius:Et,menuArrowSize:at,menuArrowOffset:Ge,lineType:Ut,groupTitleLineHeight:St,groupTitleFontSize:Ie}=C;return[{"":{[K]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${K}-submenu-hidden`]:{display:"none"}},{[K]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(C)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ee,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${K}-item`]:{flex:"none"}},[`${K}-item, ${K}-submenu, ${K}-submenu-title`]:{borderRadius:C.itemBorderRadius},[`${K}-item-group-title`]:{padding:`${(0,de.unit)(Qe)} ${(0,de.unit)(He)}`,fontSize:Ie,lineHeight:St,transition:`all ${Ee}`},[`&-horizontal ${K}-submenu`]:{transition:[`border-color ${Ee} ${ce}`,`background ${Ee} ${ce}`].join(",")},[`${K}-submenu, ${K}-submenu-inline`]:{transition:[`border-color ${Ee} ${ce}`,`background ${Ee} ${ce}`,`padding ${le} ${ce}`].join(",")},[`${K}-submenu ${K}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${ce}`,`padding ${Ee} ${ce}`].join(",")},[`${K}-title-content`]:{transition:`color ${Ee}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${b}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${K}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:C.padding}},[`${K}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${K}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:oe,borderStyle:Ut,borderWidth:0,borderTopWidth:$,marginBlock:$,padding:0,"&-dashed":{borderStyle:"dashed"}}}),vt(C)),{[`${K}-item-group`]:{[`${K}-item-group-list`]:{margin:0,padding:0,[`${K}-item, ${K}-submenu-title`]:{paddingInline:`${(0,de.unit)(C.calc(ee).mul(2).equal())} ${(0,de.unit)(He)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:et,borderRadius:Te,boxShadow:"none",transformOrigin:"0 0",[`&${K}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${K}`]:Object.assign(Object.assign(Object.assign({borderRadius:Te},vt(C)),Ve(C)),{[`${K}-item, ${K}-submenu > ${K}-submenu-title`]:{borderRadius:Et},[`${K}-submenu-title::after`]:{transition:`transform ${Ee} ${ce}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:C.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:C.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:C.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:C.paddingXS}}}),Ve(C)),{[`&-inline-collapsed ${K}-submenu-arrow, - &-inline ${K}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,de.unit)(Ge)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,de.unit)(C.calc(Ge).mul(-1).equal())})`}},[`${K}-submenu-open${K}-submenu-inline > ${K}-submenu-title > ${K}-submenu-arrow`]:{transform:`translateY(${(0,de.unit)(C.calc(at).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,de.unit)(C.calc(Ge).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,de.unit)(Ge)})`}}})},{[`${b}-layout-header`]:{[K]:{lineHeight:"inherit"}}}]},yt=C=>{var b,K,ee;const{colorPrimary:Ee,colorError:le,colorTextDisabled:ce,colorErrorBg:Qe,colorText:He,colorTextDescription:oe,colorBgContainer:$,colorFillAlter:et,colorFillContent:Te,lineWidth:Et,lineWidthBold:at,controlItemBgActive:Ge,colorBgTextHover:Ut,controlHeightLG:St,lineHeight:Ie,colorBgElevated:$e,marginXXS:ut,padding:Qt,fontSize:se,controlHeightSM:Oe,fontSizeLG:We,colorTextLightSolid:mt,colorErrorHover:Rt}=C,en=(b=C.activeBarWidth)!==null&&b!==void 0?b:0,En=(K=C.activeBarBorderWidth)!==null&&K!==void 0?K:Et,xn=(ee=C.itemMarginInline)!==null&&ee!==void 0?ee:C.marginXXS,ln=new ue.FastColor(mt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:C.zIndexPopupBase+50,radiusItem:C.borderRadiusLG,itemBorderRadius:C.borderRadiusLG,radiusSubMenuItem:C.borderRadiusSM,subMenuItemBorderRadius:C.borderRadiusSM,colorItemText:He,itemColor:He,colorItemTextHover:He,itemHoverColor:He,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:oe,groupTitleColor:oe,colorItemTextSelected:Ee,itemSelectedColor:Ee,subMenuItemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:$,itemBg:$,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:Te,itemActiveBg:Ge,colorSubItemBg:et,subMenuItemBg:et,colorItemBgSelected:Ge,itemSelectedBg:Ge,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:en,colorActiveBarHeight:at,activeBarHeight:at,colorActiveBarBorderSize:Et,activeBarBorderWidth:En,colorItemTextDisabled:ce,itemDisabledColor:ce,colorDangerItemText:le,dangerItemColor:le,colorDangerItemTextHover:le,dangerItemHoverColor:le,colorDangerItemTextSelected:le,dangerItemSelectedColor:le,colorDangerItemBgActive:Qe,dangerItemActiveBg:Qe,colorDangerItemBgSelected:Qe,dangerItemSelectedBg:Qe,itemMarginInline:xn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:St,groupTitleLineHeight:Ie,collapsedWidth:St*2,popupBg:$e,itemMarginBlock:ut,itemPaddingInline:Qt,horizontalLineHeight:`${St*1.15}px`,iconSize:se,iconMarginInlineEnd:Oe-se,collapsedIconSize:We,groupTitleFontSize:se,darkItemDisabledColor:new ue.FastColor(mt).setA(.25).toRgbString(),darkItemColor:ln,darkDangerItemColor:le,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:mt,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:le,darkItemHoverBg:"transparent",darkGroupTitleColor:ln,darkItemHoverColor:mt,darkDangerItemHoverColor:Rt,darkDangerItemSelectedColor:mt,darkDangerItemActiveBg:le,itemWidth:en?`calc(100% + ${En}px)`:`calc(100% - ${xn*2}px)`}};var zt=function(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,J.I$)("Menu",Ee=>{const{colorBgElevated:le,controlHeightLG:ce,fontSize:Qe,darkItemColor:He,darkDangerItemColor:oe,darkItemBg:$,darkSubMenuItemBg:et,darkItemSelectedColor:Te,darkItemSelectedBg:Et,darkDangerItemSelectedBg:at,darkItemHoverBg:Ge,darkGroupTitleColor:Ut,darkItemHoverColor:St,darkItemDisabledColor:Ie,darkDangerItemHoverColor:$e,darkDangerItemSelectedColor:ut,darkDangerItemActiveBg:Qt,popupBg:se,darkPopupBg:Oe}=Ee,We=Ee.calc(Qe).div(7).mul(5).equal(),mt=(0,ye.mergeToken)(Ee,{menuArrowSize:We,menuHorizontalHeight:Ee.calc(ce).mul(1.15).equal(),menuArrowOffset:Ee.calc(We).mul(.25).equal(),menuSubMenuBg:le,calc:Ee.calc,popupBg:se}),Rt=(0,ye.mergeToken)(mt,{itemColor:He,itemHoverColor:St,groupTitleColor:Ut,itemSelectedColor:Te,subMenuItemSelectedColor:Te,itemBg:$,popupBg:Oe,subMenuItemBg:et,itemActiveBg:"transparent",itemSelectedBg:Et,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ge,itemDisabledColor:Ie,dangerItemColor:oe,dangerItemHoverColor:$e,dangerItemSelectedColor:ut,dangerItemActiveBg:Qt,dangerItemSelectedBg:at,menuSubMenuBg:et,horizontalItemSelectedColor:Te,horizontalItemSelectedBg:Et});return[Nt(mt),j(mt),nt(mt),ge(mt,"light"),ge(Rt,"dark"),ie(mt),(0,me.Z)(mt),(0,ve.oN)(mt,"slide-up"),(0,ve.oN)(mt,"slide-down"),(0,pe._y)(mt,"zoom-big")]},yt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:K,unitless:{groupTitleLineHeight:!0}})(C,b)},je=g(75030),ze=C=>{var b;const{popupClassName:K,icon:ee,title:Ee,theme:le}=C,ce=s.useContext(O),{prefixCls:Qe,inlineCollapsed:He,theme:oe}=ce,$=(0,Se.Xl)();let et;if(!ee)et=He&&!$.length&&Ee&&typeof Ee=="string"?s.createElement("div",{className:`${Qe}-inline-collapsed-noicon`},Ee.charAt(0)):s.createElement("span",{className:`${Qe}-title-content`},Ee);else{const at=s.isValidElement(Ee)&&Ee.type==="span";et=s.createElement(s.Fragment,null,(0,i.Tm)(ee,{className:G()(s.isValidElement(ee)?(b=ee.props)===null||b===void 0?void 0:b.className:"",`${Qe}-item-icon`)}),at?Ee:s.createElement("span",{className:`${Qe}-title-content`},Ee))}const Te=s.useMemo(()=>Object.assign(Object.assign({},ce),{firstLevel:!1}),[ce]),[Et]=(0,je.Cn)("Menu");return s.createElement(O.Provider,{value:Te},s.createElement(Se.Wd,Object.assign({},(0,v.Z)(C,["icon"]),{title:et,popupClassName:G()(Qe,K,`${Qe}-${le||oe}`),popupStyle:Object.assign({zIndex:Et},C.popupStyle)})))},Pt=function(C,b){var K={};for(var ee in C)Object.prototype.hasOwnProperty.call(C,ee)&&b.indexOf(ee)<0&&(K[ee]=C[ee]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ee=Object.getOwnPropertySymbols(C);Ee{var K;const ee=s.useContext(k.Z),Ee=ee||{},{getPrefixCls:le,getPopupContainer:ce,direction:Qe,menu:He}=s.useContext(N.E_),oe=le(),{prefixCls:$,className:et,style:Te,theme:Et="light",expandIcon:at,_internalDisableMenuItemTitleTooltip:Ge,inlineCollapsed:Ut,siderCollapsed:St,rootClassName:Ie,mode:$e,selectable:ut,onClick:Qt,overflowedIndicatorPopupClassName:se}=C,Oe=Pt(C,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),We=(0,v.Z)(Oe,["collapsedWidth"]);(K=Ee.validator)===null||K===void 0||K.call(Ee,{mode:$e});const mt=(0,Z.Z)(function(){var er;Qt==null||Qt.apply(void 0,arguments),(er=Ee.onClick)===null||er===void 0||er.call(Ee)}),Rt=Ee.mode||$e,en=ut!=null?ut:Ee.selectable,En=Ut!=null?Ut:St,xn={horizontal:{motionName:`${oe}-slide-up`},inline:(0,L.Z)(oe),other:{motionName:`${oe}-zoom-big`}},ln=le("menu",$||Ee.prefixCls),tn=(0,B.Z)(ln),[Yt,cn,yn]=zt(ln,tn,!ee),In=G()(`${ln}-${Et}`,He==null?void 0:He.className,et),Kn=s.useMemo(()=>{var er,xr;if(typeof at=="function"||ct(at))return at||null;if(typeof Ee.expandIcon=="function"||ct(Ee.expandIcon))return Ee.expandIcon||null;if(typeof(He==null?void 0:He.expandIcon)=="function"||ct(He==null?void 0:He.expandIcon))return(He==null?void 0:He.expandIcon)||null;const Lr=(er=at!=null?at:Ee==null?void 0:Ee.expandIcon)!==null&&er!==void 0?er:He==null?void 0:He.expandIcon;return(0,i.Tm)(Lr,{className:G()(`${ln}-submenu-expand-icon`,s.isValidElement(Lr)?(xr=Lr.props)===null||xr===void 0?void 0:xr.className:void 0)})},[at,Ee==null?void 0:Ee.expandIcon,He==null?void 0:He.expandIcon,ln]),qn=s.useMemo(()=>({prefixCls:ln,inlineCollapsed:En||!1,direction:Qe,firstLevel:!0,theme:Et,mode:Rt,disableMenuItemTitleTooltip:Ge}),[ln,En,Qe,Ge,Et]);return Yt(s.createElement(k.Z.Provider,{value:null},s.createElement(O.Provider,{value:qn},s.createElement(Se.ZP,Object.assign({getPopupContainer:ce,overflowedIndicator:s.createElement(Be.Z,null),overflowedIndicatorPopupClassName:G()(ln,`${ln}-${Et}`,se),mode:Rt,selectable:en,onClick:mt},We,{inlineCollapsed:En,style:Object.assign(Object.assign({},He==null?void 0:He.style),Te),className:In,prefixCls:ln,direction:Qe,defaultMotions:xn,expandIcon:Kn,ref:b,rootClassName:G()(Ie,cn,Ee.rootClassName,yn,tn),_internalComponents:x})))))});const A=(0,s.forwardRef)((C,b)=>{const K=(0,s.useRef)(null),ee=s.useContext(M.D);return(0,s.useImperativeHandle)(b,()=>({menu:K.current,focus:Ee=>{var le;(le=K.current)===null||le===void 0||le.focus(Ee)}})),s.createElement(P,Object.assign({ref:K},C,ee))});A.Item=H,A.SubMenu=ze,A.Divider=U,A.ItemGroup=Se.BW;var h=A},31709:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return He}});var s=g(59301),Se=g(54476),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Be=M,te=g(7657),G=function($,et){return s.createElement(te.Z,(0,Se.Z)({},$,{ref:et,icon:Be}))},Z=s.forwardRef(G),v=Z,L=g(49198),i=g(33853),N=g(38819),B=g(92310),D=g.n(B),O=g(20068),T=g(76190),E=g(33885),U=g(42978),F=g(18929),W=g(10228),re=g(26112),H=g(48736),k=g(17119),de=[10,20,50,100],ue=function($){var et=$.pageSizeOptions,Te=et===void 0?de:et,Et=$.locale,at=$.changeSize,Ge=$.pageSize,Ut=$.goButton,St=$.quickGo,Ie=$.rootPrefixCls,$e=$.disabled,ut=$.buildOptionText,Qt=$.showSizeChanger,se=$.sizeChangerRender,Oe=s.useState(""),We=(0,U.Z)(Oe,2),mt=We[0],Rt=We[1],en=function(){return!mt||Number.isNaN(mt)?void 0:Number(mt)},En=typeof ut=="function"?ut:function(qn){return"".concat(qn," ").concat(Et.items_per_page)},xn=function(er){Rt(er.target.value)},ln=function(er){Ut||mt===""||(Rt(""),!(er.relatedTarget&&(er.relatedTarget.className.indexOf("".concat(Ie,"-item-link"))>=0||er.relatedTarget.className.indexOf("".concat(Ie,"-item"))>=0))&&(St==null||St(en())))},tn=function(er){mt!==""&&(er.keyCode===W.Z.ENTER||er.type==="click")&&(Rt(""),St==null||St(en()))},Yt=function(){return Te.some(function(er){return er.toString()===Ge.toString()})?Te:Te.concat([Ge]).sort(function(er,xr){var Lr=Number.isNaN(Number(er))?0:Number(er),fr=Number.isNaN(Number(xr))?0:Number(xr);return Lr-fr})},cn="".concat(Ie,"-options");if(!Qt&&!St)return null;var yn=null,In=null,Kn=null;return Qt&&se&&(yn=se({disabled:$e,size:Ge,onSizeChange:function(er){at==null||at(Number(er))},"aria-label":Et.page_size,className:"".concat(cn,"-size-changer"),options:Yt().map(function(qn){return{label:En(qn),value:qn}})})),St&&(Ut&&(Kn=typeof Ut=="boolean"?s.createElement("button",{type:"button",onClick:tn,onKeyUp:tn,disabled:$e,className:"".concat(cn,"-quick-jumper-button")},Et.jump_to_confirm):s.createElement("span",{onClick:tn,onKeyUp:tn},Ut)),In=s.createElement("div",{className:"".concat(cn,"-quick-jumper")},Et.jump_to,s.createElement("input",{disabled:$e,type:"text",value:mt,onChange:xn,onKeyUp:tn,onBlur:ln,"aria-label":Et.page}),Et.page,Kn)),s.createElement("li",{className:cn},yn,In)},Fe=ue,me=function($){var et=$.rootPrefixCls,Te=$.page,Et=$.active,at=$.className,Ge=$.showTitle,Ut=$.onClick,St=$.onKeyPress,Ie=$.itemRender,$e="".concat(et,"-item"),ut=D()($e,"".concat($e,"-").concat(Te),(0,O.Z)((0,O.Z)({},"".concat($e,"-active"),Et),"".concat($e,"-disabled"),!Te),at),Qt=function(){Ut(Te)},se=function(mt){St(mt,Ut,Te)},Oe=Ie(Te,"page",s.createElement("a",{rel:"nofollow"},Te));return Oe?s.createElement("li",{title:Ge?String(Te):null,className:ut,onClick:Qt,onKeyDown:se,tabIndex:0},Oe):null},ve=me,pe=function($,et,Te){return Te};function J(){}function ye(oe){var $=Number(oe);return typeof $=="number"&&!Number.isNaN($)&&isFinite($)&&Math.floor($)===$}function p(oe,$,et){var Te=typeof oe=="undefined"?$:oe;return Math.floor((et-1)/Te)+1}var j=function($){var et=$.prefixCls,Te=et===void 0?"rc-pagination":et,Et=$.selectPrefixCls,at=Et===void 0?"rc-select":Et,Ge=$.className,Ut=$.current,St=$.defaultCurrent,Ie=St===void 0?1:St,$e=$.total,ut=$e===void 0?0:$e,Qt=$.pageSize,se=$.defaultPageSize,Oe=se===void 0?10:se,We=$.onChange,mt=We===void 0?J:We,Rt=$.hideOnSinglePage,en=$.align,En=$.showPrevNextJumpers,xn=En===void 0?!0:En,ln=$.showQuickJumper,tn=$.showLessItems,Yt=$.showTitle,cn=Yt===void 0?!0:Yt,yn=$.onShowSizeChange,In=yn===void 0?J:yn,Kn=$.locale,qn=Kn===void 0?k.Z:Kn,er=$.style,xr=$.totalBoundaryShowSizeChanger,Lr=xr===void 0?50:xr,fr=$.disabled,Jn=$.simple,zr=$.showTotal,pr=$.showSizeChanger,ao=pr===void 0?ut>Lr:pr,mo=$.sizeChangerRender,Dn=$.pageSizeOptions,Cn=$.itemRender,br=Cn===void 0?pe:Cn,Or=$.jumpPrevIcon,wt=$.jumpNextIcon,dt=$.prevIcon,Sn=$.nextIcon,Re=s.useRef(null),lt=(0,F.Z)(10,{value:Qt,defaultValue:Oe}),Bt=(0,U.Z)(lt,2),qt=Bt[0],bn=Bt[1],zn=(0,F.Z)(1,{value:Ut,defaultValue:Ie,postState:function(Zo){return Math.max(1,Math.min(Zo,p(void 0,qt,ut)))}}),Yn=(0,U.Z)(zn,2),hn=Yn[0],Mn=Yn[1],sr=s.useState(hn),Wn=(0,U.Z)(sr,2),Sr=Wn[0],hr=Wn[1];(0,s.useEffect)(function(){hr(hn)},[hn]);var Fr=mt!==J,Ko="current"in $,$i=Math.max(1,hn-(tn?3:5)),wi=Math.min(p(void 0,qt,ut),hn+(tn?3:5));function Ro(Co,Zo){var pa=Co||s.createElement("button",{type:"button","aria-label":Zo,className:"".concat(Te,"-item-link")});return typeof Co=="function"&&(pa=s.createElement(Co,(0,E.Z)({},$))),pa}function Fi(Co){var Zo=Co.target.value,pa=p(void 0,qt,ut),ja;return Zo===""?ja=Zo:Number.isNaN(Number(Zo))?ja=Sr:Zo>=pa?ja=pa:ja=Number(Zo),ja}function Lo(Co){return ye(Co)&&Co!==hn&&ye(ut)&&ut>0}var _i=ut>qt?ln:!1;function Xi(Co){(Co.keyCode===W.Z.UP||Co.keyCode===W.Z.DOWN)&&Co.preventDefault()}function zo(Co){var Zo=Fi(Co);switch(Zo!==Sr&&hr(Zo),Co.keyCode){case W.Z.ENTER:_r(Zo);break;case W.Z.UP:_r(Zo-1);break;case W.Z.DOWN:_r(Zo+1);break;default:break}}function Ii(Co){_r(Fi(Co))}function Oi(Co){var Zo=p(Co,qt,ut),pa=hn>Zo&&Zo!==0?Zo:hn;bn(Co),hr(pa),In==null||In(hn,Co),Mn(pa),mt==null||mt(pa,Co)}function _r(Co){if(Lo(Co)&&!fr){var Zo=p(void 0,qt,ut),pa=Co;return Co>Zo?pa=Zo:Co<1&&(pa=1),pa!==Sr&&hr(pa),Mn(pa),mt==null||mt(pa,qt),pa}return hn}var lo=hn>1,oi=hn2?pa-2:0),Es=2;Esut?ut:hn*qt])),sa=null,Vr=p(void 0,qt,ut);if(Rt&&ut<=qt)return null;var Qn=[],Xn={rootPrefixCls:Te,onClick:_r,onKeyPress:ri,showTitle:cn,itemRender:br,page:-1},Gn=hn-1>0?hn-1:0,_n=hn+1=fi*2&&hn!==3&&(Qn[0]=s.cloneElement(Qn[0],{className:D()("".concat(Te,"-item-after-jump-prev"),Qn[0].props.className)}),Qn.unshift(fa)),Vr-hn>=fi*2&&hn!==Vr-2){var ha=Qn[Qn.length-1];Qn[Qn.length-1]=s.cloneElement(ha,{className:D()("".concat(Te,"-item-before-jump-next"),ha.props.className)}),Qn.push(sa)}FA!==1&&Qn.unshift(s.createElement(ve,(0,Se.Z)({},Xn,{key:1,page:1}))),uA!==Vr&&Qn.push(s.createElement(ve,(0,Se.Z)({},Xn,{key:Vr,page:Vr})))}var pi=wa(Gn);if(pi){var $a=!lo||!Vr;pi=s.createElement("li",{title:cn?qn.prev_page:null,onClick:_o,tabIndex:$a?null:0,onKeyDown:di,className:D()("".concat(Te,"-prev"),(0,O.Z)({},"".concat(Te,"-disabled"),$a)),"aria-disabled":$a},pi)}var PA=Aa(_n);if(PA){var cA,yA;Jn?(cA=!oi,yA=lo?0:null):(cA=!oi||!Vr,yA=cA?null:0),PA=s.createElement("li",{title:cn?qn.next_page:null,onClick:ea,tabIndex:yA,onKeyDown:Xo,className:D()("".concat(Te,"-next"),(0,O.Z)({},"".concat(Te,"-disabled"),cA)),"aria-disabled":cA},PA)}var TA=D()(Te,Ge,(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},"".concat(Te,"-start"),en==="start"),"".concat(Te,"-center"),en==="center"),"".concat(Te,"-end"),en==="end"),"".concat(Te,"-simple"),Jn),"".concat(Te,"-disabled"),fr));return s.createElement("ul",(0,Se.Z)({className:TA,style:er,ref:Re},vA),sA,pi,Jn?qo:Qn,PA,s.createElement(Fe,{locale:qn,rootPrefixCls:Te,disabled:fr,selectPrefixCls:at,changeSize:Oi,pageSize:qt,pageSizeOptions:Dn,quickGo:_i?_r:null,goButton:Ao,showSizeChanger:ao,sizeChangerRender:mo}))},Xe=j,ie=g(61852),he=g(48755),Ce=g(31756),ge=g(13783),ae=g(9017),Ae=g(82326),nt=g(57700),vt=g(36237),Ve=g(53075),Nt=g(64910),yt=g(39082),zt=g(63356),je=g(51636),It=g(16931);const ze=oe=>{const{componentCls:$}=oe;return{[`${$}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${$}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${$}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed"}}},[`&${$}-disabled`]:{cursor:"not-allowed",[`${$}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:oe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:oe.colorBorder,backgroundColor:oe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:oe.itemActiveBgDisabled},a:{color:oe.itemActiveColorDisabled}}},[`${$}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${$}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${$}-simple-pager`]:{color:oe.colorTextDisabled},[`${$}-jump-prev, ${$}-jump-next`]:{[`${$}-item-link-icon`]:{opacity:0},[`${$}-item-ellipsis`]:{opacity:1}}},[`&${$}-simple`]:{[`${$}-prev, ${$}-next`]:{[`&${$}-disabled ${$}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pt=oe=>{const{componentCls:$}=oe;return{[`&${$}-mini ${$}-total-text, &${$}-mini ${$}-simple-pager`]:{height:oe.itemSizeSM,lineHeight:(0,vt.unit)(oe.itemSizeSM)},[`&${$}-mini ${$}-item`]:{minWidth:oe.itemSizeSM,height:oe.itemSizeSM,margin:0,lineHeight:(0,vt.unit)(oe.calc(oe.itemSizeSM).sub(2).equal())},[`&${$}-mini ${$}-prev, &${$}-mini ${$}-next`]:{minWidth:oe.itemSizeSM,height:oe.itemSizeSM,margin:0,lineHeight:(0,vt.unit)(oe.itemSizeSM)},[`&${$}-mini:not(${$}-disabled)`]:{[`${$}-prev, ${$}-next`]:{[`&:hover ${$}-item-link`]:{backgroundColor:oe.colorBgTextHover},[`&:active ${$}-item-link`]:{backgroundColor:oe.colorBgTextActive},[`&${$}-disabled:hover ${$}-item-link`]:{backgroundColor:"transparent"}}},[` - &${$}-mini ${$}-prev ${$}-item-link, - &${$}-mini ${$}-next ${$}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:oe.itemSizeSM,lineHeight:(0,vt.unit)(oe.itemSizeSM)}},[`&${$}-mini ${$}-jump-prev, &${$}-mini ${$}-jump-next`]:{height:oe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,vt.unit)(oe.itemSizeSM)},[`&${$}-mini ${$}-options`]:{marginInlineStart:oe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:oe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:oe.itemSizeSM,lineHeight:(0,vt.unit)(oe.itemSizeSM),input:Object.assign(Object.assign({},(0,Ve.x0)(oe)),{width:oe.paginationMiniQuickJumperInputWidth,height:oe.controlHeightSM})}}}},ct=oe=>{const{componentCls:$}=oe;return{[` - &${$}-simple ${$}-prev, - &${$}-simple ${$}-next - `]:{height:oe.itemSizeSM,lineHeight:(0,vt.unit)(oe.itemSizeSM),verticalAlign:"top",[`${$}-item-link`]:{height:oe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:oe.colorBgTextHover},"&:active":{backgroundColor:oe.colorBgTextActive},"&::after":{height:oe.itemSizeSM,lineHeight:(0,vt.unit)(oe.itemSizeSM)}}},[`&${$}-simple ${$}-simple-pager`]:{display:"inline-block",height:oe.itemSizeSM,marginInlineEnd:oe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,vt.unit)(oe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:oe.itemInputBg,border:`${(0,vt.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorBorder}`,borderRadius:oe.borderRadius,outline:"none",transition:`border-color ${oe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:oe.colorPrimary},"&:focus":{borderColor:oe.colorPrimaryHover,boxShadow:`${(0,vt.unit)(oe.inputOutlineOffset)} 0 ${(0,vt.unit)(oe.controlOutlineWidth)} ${oe.controlOutline}`},"&[disabled]":{color:oe.colorTextDisabled,backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,cursor:"not-allowed"}}}}},x=oe=>{const{componentCls:$}=oe;return{[`${$}-jump-prev, ${$}-jump-next`]:{outline:0,[`${$}-item-container`]:{position:"relative",[`${$}-item-link-icon`]:{color:oe.colorPrimary,fontSize:oe.fontSizeSM,opacity:0,transition:`all ${oe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${$}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:oe.colorTextDisabled,letterSpacing:oe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:oe.paginationEllipsisTextIndent,opacity:1,transition:`all ${oe.motionDurationMid}`}},"&:hover":{[`${$}-item-link-icon`]:{opacity:1},[`${$}-item-ellipsis`]:{opacity:0}}},[` - ${$}-prev, - ${$}-jump-prev, - ${$}-jump-next - `]:{marginInlineEnd:oe.marginXS},[` - ${$}-prev, - ${$}-next, - ${$}-jump-prev, - ${$}-jump-next - `]:{display:"inline-block",minWidth:oe.itemSize,height:oe.itemSize,color:oe.colorText,fontFamily:oe.fontFamily,lineHeight:(0,vt.unit)(oe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:oe.borderRadius,cursor:"pointer",transition:`all ${oe.motionDurationMid}`},[`${$}-prev, ${$}-next`]:{outline:0,button:{color:oe.colorText,cursor:"pointer",userSelect:"none"},[`${$}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:oe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,vt.unit)(oe.lineWidth)} ${oe.lineType} transparent`,borderRadius:oe.borderRadius,outline:"none",transition:`all ${oe.motionDurationMid}`},[`&:hover ${$}-item-link`]:{backgroundColor:oe.colorBgTextHover},[`&:active ${$}-item-link`]:{backgroundColor:oe.colorBgTextActive},[`&${$}-disabled:hover`]:{[`${$}-item-link`]:{backgroundColor:"transparent"}}},[`${$}-slash`]:{marginInlineEnd:oe.paginationSlashMarginInlineEnd,marginInlineStart:oe.paginationSlashMarginInlineStart},[`${$}-options`]:{display:"inline-block",marginInlineStart:oe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:oe.controlHeight,marginInlineStart:oe.marginXS,lineHeight:(0,vt.unit)(oe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ve.ik)(oe)),(0,yt.$U)(oe,{borderColor:oe.colorBorder,hoverBorderColor:oe.colorPrimaryHover,activeBorderColor:oe.colorPrimary,activeShadow:oe.activeShadow})),{"&[disabled]":Object.assign({},(0,yt.Xy)(oe)),width:oe.calc(oe.controlHeightLG).mul(1.25).equal(),height:oe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:oe.marginXS,marginInlineEnd:oe.marginXS})}}}},ke=oe=>{const{componentCls:$}=oe;return{[`${$}-item`]:{display:"inline-block",minWidth:oe.itemSize,height:oe.itemSize,marginInlineEnd:oe.marginXS,fontFamily:oe.fontFamily,lineHeight:(0,vt.unit)(oe.calc(oe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:oe.itemBg,border:`${(0,vt.unit)(oe.lineWidth)} ${oe.lineType} transparent`,borderRadius:oe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,vt.unit)(oe.paginationItemPaddingInline)}`,color:oe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${$}-item-active)`]:{"&:hover":{transition:`all ${oe.motionDurationMid}`,backgroundColor:oe.colorBgTextHover},"&:active":{backgroundColor:oe.colorBgTextActive}},"&-active":{fontWeight:oe.fontWeightStrong,backgroundColor:oe.itemActiveBg,borderColor:oe.colorPrimary,a:{color:oe.colorPrimary},"&:hover":{borderColor:oe.colorPrimaryHover},"&:hover a":{color:oe.colorPrimaryHover}}}}},P=oe=>{const{componentCls:$}=oe;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(oe)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${$}-total-text`]:{display:"inline-block",height:oe.itemSize,marginInlineEnd:oe.marginXS,lineHeight:(0,vt.unit)(oe.calc(oe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ke(oe)),x(oe)),ct(oe)),Pt(oe)),ze(oe)),{[`@media only screen and (max-width: ${oe.screenLG}px)`]:{[`${$}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${oe.screenSM}px)`]:{[`${$}-options`]:{display:"none"}}}),[`&${oe.componentCls}-rtl`]:{direction:"rtl"}}},A=oe=>{const{componentCls:$}=oe;return{[`${$}:not(${$}-disabled)`]:{[`${$}-item`]:Object.assign({},(0,zt.Qy)(oe)),[`${$}-jump-prev, ${$}-jump-next`]:{"&:focus-visible":Object.assign({[`${$}-item-link-icon`]:{opacity:1},[`${$}-item-ellipsis`]:{opacity:0}},(0,zt.oN)(oe))},[`${$}-prev, ${$}-next`]:{[`&:focus-visible ${$}-item-link`]:Object.assign({},(0,zt.oN)(oe))}}}},h=oe=>Object.assign({itemBg:oe.colorBgContainer,itemSize:oe.controlHeight,itemSizeSM:oe.controlHeightSM,itemActiveBg:oe.colorBgContainer,itemLinkBg:oe.colorBgContainer,itemActiveColorDisabled:oe.colorTextDisabled,itemActiveBgDisabled:oe.controlItemBgActiveDisabled,itemInputBg:oe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Nt.T)(oe)),C=oe=>(0,je.mergeToken)(oe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:oe.calc(oe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:oe.calc(oe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:oe.calc(oe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:oe.calc(oe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:oe.marginSM,paginationSlashMarginInlineEnd:oe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Nt.e)(oe));var b=(0,It.I$)("Pagination",oe=>{const $=C(oe);return[P($),A($)]},h);const K=oe=>{const{componentCls:$}=oe;return{[`${$}${$}-bordered${$}-disabled:not(${$}-mini)`]:{"&, &:hover":{[`${$}-item-link`]:{borderColor:oe.colorBorder}},"&:focus-visible":{[`${$}-item-link`]:{borderColor:oe.colorBorder}},[`${$}-item, ${$}-item-link`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,[`&:hover:not(${$}-item-active)`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,a:{color:oe.colorTextDisabled}},[`&${$}-item-active`]:{backgroundColor:oe.itemActiveBgDisabled}},[`${$}-prev, ${$}-next`]:{"&:hover button":{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,color:oe.colorTextDisabled},[`${$}-item-link`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder}}},[`${$}${$}-bordered:not(${$}-mini)`]:{[`${$}-prev, ${$}-next`]:{"&:hover button":{borderColor:oe.colorPrimaryHover,backgroundColor:oe.itemBg},[`${$}-item-link`]:{backgroundColor:oe.itemLinkBg,borderColor:oe.colorBorder},[`&:hover ${$}-item-link`]:{borderColor:oe.colorPrimary,backgroundColor:oe.itemBg,color:oe.colorPrimary},[`&${$}-disabled`]:{[`${$}-item-link`]:{borderColor:oe.colorBorder,color:oe.colorTextDisabled}}},[`${$}-item`]:{backgroundColor:oe.itemBg,border:`${(0,vt.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorBorder}`,[`&:hover:not(${$}-item-active)`]:{borderColor:oe.colorPrimary,backgroundColor:oe.itemBg,a:{color:oe.colorPrimary}},"&-active":{borderColor:oe.colorPrimary}}}}};var ee=(0,It.bk)(["Pagination","bordered"],oe=>{const $=C(oe);return[K($)]},h);function Ee(oe){return(0,s.useMemo)(()=>typeof oe=="boolean"?[oe,{}]:oe&&typeof oe=="object"?[!0,oe]:[void 0,void 0],[oe])}var le=function(oe,$){var et={};for(var Te in oe)Object.prototype.hasOwnProperty.call(oe,Te)&&$.indexOf(Te)<0&&(et[Te]=oe[Te]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Te=Object.getOwnPropertySymbols(oe);Et{const{align:$,prefixCls:et,selectPrefixCls:Te,className:Et,rootClassName:at,style:Ge,size:Ut,locale:St,responsive:Ie,showSizeChanger:$e,selectComponentClass:ut,pageSizeOptions:Qt}=oe,se=le(oe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Oe}=(0,ge.Z)(Ie),[,We]=(0,nt.ZP)(),{getPrefixCls:mt,direction:Rt,showSizeChanger:en,className:En,style:xn}=(0,he.dj)("pagination"),ln=mt("pagination",et),[tn,Yt,cn]=b(ln),yn=(0,Ce.Z)(Ut),In=yn==="small"||!!(Oe&&!yn&&Ie),[Kn]=(0,ae.Z)("Pagination",ie.Z),qn=Object.assign(Object.assign({},Kn),St),[er,xr]=Ee($e),[Lr,fr]=Ee(en),Jn=er!=null?er:Lr,zr=xr!=null?xr:fr,pr=ut||Ae.default,ao=s.useMemo(()=>Qt?Qt.map(wt=>Number(wt)):void 0,[Qt]),mo=wt=>{var dt;const{disabled:Sn,size:Re,onSizeChange:lt,"aria-label":Bt,className:qt,options:bn}=wt,{className:zn,onChange:Yn}=zr||{},hn=(dt=bn.find(Mn=>String(Mn.value)===String(Re)))===null||dt===void 0?void 0:dt.value;return s.createElement(pr,Object.assign({disabled:Sn,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Mn=>Mn.parentNode,"aria-label":Bt,options:bn},zr,{value:hn,onChange:(Mn,sr)=>{lt==null||lt(Mn),Yn==null||Yn(Mn,sr)},size:In?"small":"middle",className:D()(qt,zn)}))},Dn=s.useMemo(()=>{const wt=s.createElement("span",{className:`${ln}-item-ellipsis`},"\u2022\u2022\u2022"),dt=s.createElement("button",{className:`${ln}-item-link`,type:"button",tabIndex:-1},Rt==="rtl"?s.createElement(N.Z,null):s.createElement(i.Z,null)),Sn=s.createElement("button",{className:`${ln}-item-link`,type:"button",tabIndex:-1},Rt==="rtl"?s.createElement(i.Z,null):s.createElement(N.Z,null)),Re=s.createElement("a",{className:`${ln}-item-link`},s.createElement("div",{className:`${ln}-item-container`},Rt==="rtl"?s.createElement(L.Z,{className:`${ln}-item-link-icon`}):s.createElement(v,{className:`${ln}-item-link-icon`}),wt)),lt=s.createElement("a",{className:`${ln}-item-link`},s.createElement("div",{className:`${ln}-item-container`},Rt==="rtl"?s.createElement(v,{className:`${ln}-item-link-icon`}):s.createElement(L.Z,{className:`${ln}-item-link-icon`}),wt));return{prevIcon:dt,nextIcon:Sn,jumpPrevIcon:Re,jumpNextIcon:lt}},[Rt,ln]),Cn=mt("select",Te),br=D()({[`${ln}-${$}`]:!!$,[`${ln}-mini`]:In,[`${ln}-rtl`]:Rt==="rtl",[`${ln}-bordered`]:We.wireframe},En,Et,at,Yt,cn),Or=Object.assign(Object.assign({},xn),Ge);return tn(s.createElement(s.Fragment,null,We.wireframe&&s.createElement(ee,{prefixCls:ln}),s.createElement(Xe,Object.assign({},Dn,se,{style:Or,prefixCls:ln,selectPrefixCls:Cn,className:br,locale:qn,pageSizeOptions:ao,showSizeChanger:Jn,sizeChangerRender:mo}))))},He=Qe},89787:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return St}});var s=g(59301),Se=g(17835),M=g(29679),Be=g(40001),te=g(19248),G=g(99267),Z=g(92310),v=g.n(Z),L=g(2738),i=g(48755),N=g(54476),B=g(33885),D=g(75931),O={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},T=function(){var $e=(0,s.useRef)([]),ut=(0,s.useRef)(null);return(0,s.useEffect)(function(){var Qt=Date.now(),se=!1;$e.current.forEach(function(Oe){if(Oe){se=!0;var We=Oe.style;We.transitionDuration=".3s, .3s, .3s, .06s",ut.current&&Qt-ut.current<100&&(We.transitionDuration="0s, 0s")}}),se&&(ut.current=Date.now())}),$e.current},E=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],U=function($e){var ut=(0,B.Z)((0,B.Z)({},O),$e),Qt=ut.className,se=ut.percent,Oe=ut.prefixCls,We=ut.strokeColor,mt=ut.strokeLinecap,Rt=ut.strokeWidth,en=ut.style,En=ut.trailColor,xn=ut.trailWidth,ln=ut.transition,tn=(0,D.Z)(ut,E);delete tn.gapPosition;var Yt=Array.isArray(se)?se:[se],cn=Array.isArray(We)?We:[We],yn=T(),In=Rt/2,Kn=100-Rt/2,qn="M ".concat(mt==="round"?In:0,",").concat(In,` - L `).concat(mt==="round"?Kn:100,",").concat(In),er="0 0 100 ".concat(Rt),xr=0;return s.createElement("svg",(0,N.Z)({className:v()("".concat(Oe,"-line"),Qt),viewBox:er,preserveAspectRatio:"none",style:en},tn),s.createElement("path",{className:"".concat(Oe,"-line-trail"),d:qn,strokeLinecap:mt,stroke:En,strokeWidth:xn||Rt,fillOpacity:"0"}),Yt.map(function(Lr,fr){var Jn=1;switch(mt){case"round":Jn=1-Rt/100;break;case"square":Jn=1-Rt/2/100;break;default:Jn=1;break}var zr={strokeDasharray:"".concat(Lr*Jn,"px, 100px"),strokeDashoffset:"-".concat(xr,"px"),transition:ln||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},pr=cn[fr]||cn[cn.length-1];return xr+=Lr,s.createElement("path",{key:fr,className:"".concat(Oe,"-line-path"),d:qn,strokeLinecap:mt,stroke:pr,strokeWidth:Rt,fillOpacity:"0",ref:function(mo){yn[fr]=mo},style:zr})}))},F=U,W=g(76190),re=g(42978),H=g(47273),k=0,de=(0,H.Z)();function ue(){var Ie;return de?(Ie=k,k+=1):Ie="TEST_OR_SSR",Ie}var Fe=function(Ie){var $e=s.useState(),ut=(0,re.Z)($e,2),Qt=ut[0],se=ut[1];return s.useEffect(function(){se("rc_progress_".concat(ue()))},[]),Ie||Qt},me=function($e){var ut=$e.bg,Qt=$e.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:ut}},Qt)};function ve(Ie,$e){return Object.keys(Ie).map(function(ut){var Qt=parseFloat(ut),se="".concat(Math.floor(Qt*$e),"%");return"".concat(Ie[ut]," ").concat(se)})}var pe=s.forwardRef(function(Ie,$e){var ut=Ie.prefixCls,Qt=Ie.color,se=Ie.gradientId,Oe=Ie.radius,We=Ie.style,mt=Ie.ptg,Rt=Ie.strokeLinecap,en=Ie.strokeWidth,En=Ie.size,xn=Ie.gapDegree,ln=Qt&&(0,W.Z)(Qt)==="object",tn=ln?"#FFF":void 0,Yt=En/2,cn=s.createElement("circle",{className:"".concat(ut,"-circle-path"),r:Oe,cx:Yt,cy:Yt,stroke:tn,strokeLinecap:Rt,strokeWidth:en,opacity:mt===0?0:1,style:We,ref:$e});if(!ln)return cn;var yn="".concat(se,"-conic"),In=xn?"".concat(180+xn/2,"deg"):"0deg",Kn=ve(Qt,(360-xn)/360),qn=ve(Qt,1),er="conic-gradient(from ".concat(In,", ").concat(Kn.join(", "),")"),xr="linear-gradient(to ".concat(xn?"bottom":"top",", ").concat(qn.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:yn},cn),s.createElement("foreignObject",{x:0,y:0,width:En,height:En,mask:"url(#".concat(yn,")")},s.createElement(me,{bg:xr},s.createElement(me,{bg:er}))))}),J=pe,ye=100,p=function($e,ut,Qt,se,Oe,We,mt,Rt,en,En){var xn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ln=Qt/100*360*((360-We)/360),tn=We===0?0:{bottom:0,top:180,left:90,right:-90}[mt],Yt=(100-se)/100*ut;en==="round"&&se!==100&&(Yt+=En/2,Yt>=ut&&(Yt=ut-.01));var cn=ye/2;return{stroke:typeof Rt=="string"?Rt:void 0,strokeDasharray:"".concat(ut,"px ").concat($e),strokeDashoffset:Yt+xn,transform:"rotate(".concat(Oe+ln+tn,"deg)"),transformOrigin:"".concat(cn,"px ").concat(cn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},j=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Xe(Ie){var $e=Ie!=null?Ie:[];return Array.isArray($e)?$e:[$e]}var ie=function($e){var ut=(0,B.Z)((0,B.Z)({},O),$e),Qt=ut.id,se=ut.prefixCls,Oe=ut.steps,We=ut.strokeWidth,mt=ut.trailWidth,Rt=ut.gapDegree,en=Rt===void 0?0:Rt,En=ut.gapPosition,xn=ut.trailColor,ln=ut.strokeLinecap,tn=ut.style,Yt=ut.className,cn=ut.strokeColor,yn=ut.percent,In=(0,D.Z)(ut,j),Kn=ye/2,qn=Fe(Qt),er="".concat(qn,"-gradient"),xr=Kn-We/2,Lr=Math.PI*2*xr,fr=en>0?90+en/2:-90,Jn=Lr*((360-en)/360),zr=(0,W.Z)(Oe)==="object"?Oe:{count:Oe,gap:2},pr=zr.count,ao=zr.gap,mo=Xe(yn),Dn=Xe(cn),Cn=Dn.find(function(lt){return lt&&(0,W.Z)(lt)==="object"}),br=Cn&&(0,W.Z)(Cn)==="object",Or=br?"butt":ln,wt=p(Lr,Jn,0,100,fr,en,En,xn,Or,We),dt=T(),Sn=function(){var Bt=0;return mo.map(function(qt,bn){var zn=Dn[bn]||Dn[Dn.length-1],Yn=p(Lr,Jn,Bt,qt,fr,en,En,zn,Or,We);return Bt+=qt,s.createElement(J,{key:bn,color:zn,ptg:qt,radius:xr,prefixCls:se,gradientId:er,style:Yn,strokeLinecap:Or,strokeWidth:We,gapDegree:en,ref:function(Mn){dt[bn]=Mn},size:ye})}).reverse()},Re=function(){var Bt=Math.round(pr*(mo[0]/100)),qt=100/pr,bn=0;return new Array(pr).fill(null).map(function(zn,Yn){var hn=Yn<=Bt-1?Dn[0]:xn,Mn=hn&&(0,W.Z)(hn)==="object"?"url(#".concat(er,")"):void 0,sr=p(Lr,Jn,bn,qt,fr,en,En,hn,"butt",We,ao);return bn+=(Jn-sr.strokeDashoffset+ao)*100/Jn,s.createElement("circle",{key:Yn,className:"".concat(se,"-circle-path"),r:xr,cx:Kn,cy:Kn,stroke:Mn,strokeWidth:We,opacity:1,style:sr,ref:function(Sr){dt[Yn]=Sr}})})};return s.createElement("svg",(0,N.Z)({className:v()("".concat(se,"-circle"),Yt),viewBox:"0 0 ".concat(ye," ").concat(ye),style:tn,id:Qt,role:"presentation"},In),!pr&&s.createElement("circle",{className:"".concat(se,"-circle-trail"),r:xr,cx:Kn,cy:Kn,stroke:xn,strokeLinecap:Or,strokeWidth:mt||We,style:wt}),pr?Re():Sn())},he=ie,Ce={Line:F,Circle:he},ge=g(25399),ae=g(68361);function Ae(Ie){return!Ie||Ie<0?0:Ie>100?100:Ie}function nt(Ie){let{success:$e,successPercent:ut}=Ie,Qt=ut;return $e&&"progress"in $e&&(Qt=$e.progress),$e&&"percent"in $e&&(Qt=$e.percent),Qt}const vt=Ie=>{let{percent:$e,success:ut,successPercent:Qt}=Ie;const se=Ae(nt({success:ut,successPercent:Qt}));return[se,Ae(Ae($e)-se)]},Ve=Ie=>{let{success:$e={},strokeColor:ut}=Ie;const{strokeColor:Qt}=$e;return[Qt||ae.presetPrimaryColors.green,ut||null]},Nt=(Ie,$e,ut)=>{var Qt,se,Oe,We;let mt=-1,Rt=-1;if($e==="step"){const en=ut.steps,En=ut.strokeWidth;typeof Ie=="string"||typeof Ie=="undefined"?(mt=Ie==="small"?2:14,Rt=En!=null?En:8):typeof Ie=="number"?[mt,Rt]=[Ie,Ie]:[mt=14,Rt=8]=Array.isArray(Ie)?Ie:[Ie.width,Ie.height],mt*=en}else if($e==="line"){const en=ut==null?void 0:ut.strokeWidth;typeof Ie=="string"||typeof Ie=="undefined"?Rt=en||(Ie==="small"?6:8):typeof Ie=="number"?[mt,Rt]=[Ie,Ie]:[mt=-1,Rt=8]=Array.isArray(Ie)?Ie:[Ie.width,Ie.height]}else($e==="circle"||$e==="dashboard")&&(typeof Ie=="string"||typeof Ie=="undefined"?[mt,Rt]=Ie==="small"?[60,60]:[120,120]:typeof Ie=="number"?[mt,Rt]=[Ie,Ie]:Array.isArray(Ie)&&(mt=(se=(Qt=Ie[0])!==null&&Qt!==void 0?Qt:Ie[1])!==null&&se!==void 0?se:120,Rt=(We=(Oe=Ie[0])!==null&&Oe!==void 0?Oe:Ie[1])!==null&&We!==void 0?We:120));return[mt,Rt]},yt=3,zt=Ie=>yt/Ie*100;var It=Ie=>{const{prefixCls:$e,trailColor:ut=null,strokeLinecap:Qt="round",gapPosition:se,gapDegree:Oe,width:We=120,type:mt,children:Rt,success:en,size:En=We,steps:xn}=Ie,[ln,tn]=Nt(En,"circle");let{strokeWidth:Yt}=Ie;Yt===void 0&&(Yt=Math.max(zt(ln),6));const cn={width:ln,height:tn,fontSize:ln*.15+6},yn=s.useMemo(()=>{if(Oe||Oe===0)return Oe;if(mt==="dashboard")return 75},[Oe,mt]),In=vt(Ie),Kn=se||mt==="dashboard"&&"bottom"||void 0,qn=Object.prototype.toString.call(Ie.strokeColor)==="[object Object]",er=Ve({success:en,strokeColor:Ie.strokeColor}),xr=v()(`${$e}-inner`,{[`${$e}-circle-gradient`]:qn}),Lr=s.createElement(he,{steps:xn,percent:xn?In[1]:In,strokeWidth:Yt,trailWidth:Yt,strokeColor:xn?er[1]:er,strokeLinecap:Qt,trailColor:ut,prefixCls:$e,gapDegree:yn,gapPosition:Kn}),fr=ln<=20,Jn=s.createElement("div",{className:xr,style:cn},Lr,!fr&&Rt);return fr?s.createElement(ge.Z,{title:Rt},Jn):Jn},ze=g(36237),Pt=g(63356),ct=g(16931),x=g(51636);const ke="--progress-line-stroke-color",P="--progress-percent",A=Ie=>{const $e=Ie?"100%":"-100%";return new ze.Keyframes(`antProgress${Ie?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},h=Ie=>{const{componentCls:$e,iconCls:ut}=Ie;return{[$e]:Object.assign(Object.assign({},(0,Pt.Wf)(Ie)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ie.fontSize},[`${$e}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${$e}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ie.remainingColor,borderRadius:Ie.lineBorderRadius},[`${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:Ie.defaultColor}},[`${$e}-success-bg, ${$e}-bg`]:{position:"relative",background:Ie.defaultColor,borderRadius:Ie.lineBorderRadius,transition:`all ${Ie.motionDurationSlow} ${Ie.motionEaseInOutCirc}`},[`${$e}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${$e}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ie.marginXXS}},[`${$e}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ke})`]},height:"100%",width:`calc(1 / var(${P}) * 100%)`,display:"block"},[`&${$e}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${$e}-text-inner`]:{color:Ie.colorWhite,[`&${$e}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${$e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ie.colorSuccess},[`${$e}-text`]:{display:"inline-block",marginInlineStart:Ie.marginXS,color:Ie.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ut]:{fontSize:Ie.fontSize},[`&${$e}-text-outer`]:{width:"max-content"},[`&${$e}-text-outer${$e}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ie.marginXS}},[`${$e}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ze.unit)(Ie.paddingXXS)}`,[`&${$e}-text-start`]:{justifyContent:"start"},[`&${$e}-text-end`]:{justifyContent:"end"}},[`&${$e}-status-active`]:{[`${$e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ie.colorBgContainer,borderRadius:Ie.lineBorderRadius,opacity:0,animationName:A(),animationDuration:Ie.progressActiveMotionDuration,animationTimingFunction:Ie.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${$e}-rtl${$e}-status-active`]:{[`${$e}-bg::before`]:{animationName:A(!0)}},[`&${$e}-status-exception`]:{[`${$e}-bg`]:{backgroundColor:Ie.colorError},[`${$e}-text`]:{color:Ie.colorError}},[`&${$e}-status-exception ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:Ie.colorError}},[`&${$e}-status-success`]:{[`${$e}-bg`]:{backgroundColor:Ie.colorSuccess},[`${$e}-text`]:{color:Ie.colorSuccess}},[`&${$e}-status-success ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:Ie.colorSuccess}}})}},C=Ie=>{const{componentCls:$e,iconCls:ut}=Ie;return{[$e]:{[`${$e}-circle-trail`]:{stroke:Ie.remainingColor},[`&${$e}-circle ${$e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${$e}-circle ${$e}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ie.circleTextColor,fontSize:Ie.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ut]:{fontSize:Ie.circleIconFontSize}},[`${$e}-circle&-status-exception`]:{[`${$e}-text`]:{color:Ie.colorError}},[`${$e}-circle&-status-success`]:{[`${$e}-text`]:{color:Ie.colorSuccess}}},[`${$e}-inline-circle`]:{lineHeight:1,[`${$e}-inner`]:{verticalAlign:"bottom"}}}},b=Ie=>{const{componentCls:$e}=Ie;return{[$e]:{[`${$e}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ie.progressStepMinWidth,marginInlineEnd:Ie.progressStepMarginInlineEnd,backgroundColor:Ie.remainingColor,transition:`all ${Ie.motionDurationSlow}`,"&-active":{backgroundColor:Ie.defaultColor}}}}}},K=Ie=>{const{componentCls:$e,iconCls:ut}=Ie;return{[$e]:{[`${$e}-small&-line, ${$e}-small&-line ${$e}-text ${ut}`]:{fontSize:Ie.fontSizeSM}}}},ee=Ie=>({circleTextColor:Ie.colorText,defaultColor:Ie.colorInfo,remainingColor:Ie.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ie.fontSize/Ie.fontSizeSM}em`});var Ee=(0,ct.I$)("Progress",Ie=>{const $e=Ie.calc(Ie.marginXXS).div(2).equal(),ut=(0,x.mergeToken)(Ie,{progressStepMarginInlineEnd:$e,progressStepMinWidth:$e,progressActiveMotionDuration:"2.4s"});return[h(ut),C(ut),b(ut),K(ut)]},ee),le=function(Ie,$e){var ut={};for(var Qt in Ie)Object.prototype.hasOwnProperty.call(Ie,Qt)&&$e.indexOf(Qt)<0&&(ut[Qt]=Ie[Qt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Qt=Object.getOwnPropertySymbols(Ie);se{let $e=[];return Object.keys(Ie).forEach(ut=>{const Qt=parseFloat(ut.replace(/%/g,""));Number.isNaN(Qt)||$e.push({key:Qt,value:Ie[ut]})}),$e=$e.sort((ut,Qt)=>ut.key-Qt.key),$e.map(ut=>{let{key:Qt,value:se}=ut;return`${se} ${Qt}%`}).join(", ")},Qe=(Ie,$e)=>{const{from:ut=ae.presetPrimaryColors.blue,to:Qt=ae.presetPrimaryColors.blue,direction:se=$e==="rtl"?"to left":"to right"}=Ie,Oe=le(Ie,["from","to","direction"]);if(Object.keys(Oe).length!==0){const mt=ce(Oe),Rt=`linear-gradient(${se}, ${mt})`;return{background:Rt,[ke]:Rt}}const We=`linear-gradient(${se}, ${ut}, ${Qt})`;return{background:We,[ke]:We}};var oe=Ie=>{const{prefixCls:$e,direction:ut,percent:Qt,size:se,strokeWidth:Oe,strokeColor:We,strokeLinecap:mt="round",children:Rt,trailColor:en=null,percentPosition:En,success:xn}=Ie,{align:ln,type:tn}=En,Yt=We&&typeof We!="string"?Qe(We,ut):{[ke]:We,background:We},cn=mt==="square"||mt==="butt"?0:void 0,yn=se!=null?se:[-1,Oe||(se==="small"?6:8)],[In,Kn]=Nt(yn,"line",{strokeWidth:Oe}),qn={backgroundColor:en||void 0,borderRadius:cn},er=Object.assign(Object.assign({width:`${Ae(Qt)}%`,height:Kn,borderRadius:cn},Yt),{[P]:Ae(Qt)/100}),xr=nt(Ie),Lr={width:`${Ae(xr)}%`,height:Kn,borderRadius:cn,backgroundColor:xn==null?void 0:xn.strokeColor},fr={width:In<0?"100%":In},Jn=s.createElement("div",{className:`${$e}-inner`,style:qn},s.createElement("div",{className:v()(`${$e}-bg`,`${$e}-bg-${tn}`),style:er},tn==="inner"&&Rt),xr!==void 0&&s.createElement("div",{className:`${$e}-success-bg`,style:Lr})),zr=tn==="outer"&&ln==="start",pr=tn==="outer"&&ln==="end";return tn==="outer"&&ln==="center"?s.createElement("div",{className:`${$e}-layout-bottom`},Jn,Rt):s.createElement("div",{className:`${$e}-outer`,style:fr},zr&&Rt,Jn,pr&&Rt)},et=Ie=>{const{size:$e,steps:ut,rounding:Qt=Math.round,percent:se=0,strokeWidth:Oe=8,strokeColor:We,trailColor:mt=null,prefixCls:Rt,children:en}=Ie,En=Qt(ut*(se/100)),xn=$e==="small"?2:14,ln=$e!=null?$e:[xn,Oe],[tn,Yt]=Nt(ln,"step",{steps:ut,strokeWidth:Oe}),cn=tn/ut,yn=Array.from({length:ut});for(let In=0;In{const{prefixCls:ut,className:Qt,rootClassName:se,steps:Oe,strokeColor:We,percent:mt=0,size:Rt="default",showInfo:en=!0,type:En="line",status:xn,format:ln,style:tn,percentPosition:Yt={}}=Ie,cn=Te(Ie,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:yn="end",type:In="outer"}=Yt,Kn=Array.isArray(We)?We[0]:We,qn=typeof We=="string"||Array.isArray(We)?We:void 0,er=s.useMemo(()=>{if(Kn){const Sn=typeof Kn=="string"?Kn:Object.values(Kn)[0];return new Se.FastColor(Sn).isLight()}return!1},[We]),xr=s.useMemo(()=>{var Sn,Re;const lt=nt(Ie);return parseInt(lt!==void 0?(Sn=lt!=null?lt:0)===null||Sn===void 0?void 0:Sn.toString():(Re=mt!=null?mt:0)===null||Re===void 0?void 0:Re.toString(),10)},[mt,Ie.success,Ie.successPercent]),Lr=s.useMemo(()=>!at.includes(xn)&&xr>=100?"success":xn||"normal",[xn,xr]),{getPrefixCls:fr,direction:Jn,progress:zr}=s.useContext(i.E_),pr=fr("progress",ut),[ao,mo,Dn]=Ee(pr),Cn=En==="line",br=Cn&&!Oe,Or=s.useMemo(()=>{if(!en)return null;const Sn=nt(Ie);let Re;const lt=ln||(qt=>`${qt}%`),Bt=Cn&&er&&In==="inner";return In==="inner"||ln||Lr!=="exception"&&Lr!=="success"?Re=lt(Ae(mt),Ae(Sn)):Lr==="exception"?Re=Cn?s.createElement(te.Z,null):s.createElement(G.Z,null):Lr==="success"&&(Re=Cn?s.createElement(M.Z,null):s.createElement(Be.Z,null)),s.createElement("span",{className:v()(`${pr}-text`,{[`${pr}-text-bright`]:Bt,[`${pr}-text-${yn}`]:br,[`${pr}-text-${In}`]:br}),title:typeof Re=="string"?Re:void 0},Re)},[en,mt,xr,Lr,En,pr,ln]);let wt;En==="line"?wt=Oe?s.createElement(et,Object.assign({},Ie,{strokeColor:qn,prefixCls:pr,steps:typeof Oe=="object"?Oe.count:Oe}),Or):s.createElement(oe,Object.assign({},Ie,{strokeColor:Kn,prefixCls:pr,direction:Jn,percentPosition:{align:yn,type:In}}),Or):(En==="circle"||En==="dashboard")&&(wt=s.createElement(It,Object.assign({},Ie,{strokeColor:Kn,prefixCls:pr,progressStatus:Lr}),Or));const dt=v()(pr,`${pr}-status-${Lr}`,{[`${pr}-${En==="dashboard"&&"circle"||En}`]:En!=="line",[`${pr}-inline-circle`]:En==="circle"&&Nt(Rt,"circle")[0]<=20,[`${pr}-line`]:br,[`${pr}-line-align-${yn}`]:br,[`${pr}-line-position-${In}`]:br,[`${pr}-steps`]:Oe,[`${pr}-show-info`]:en,[`${pr}-${Rt}`]:typeof Rt=="string",[`${pr}-rtl`]:Jn==="rtl"},zr==null?void 0:zr.className,Qt,se,mo,Dn);return ao(s.createElement("div",Object.assign({ref:$e,style:Object.assign(Object.assign({},zr==null?void 0:zr.style),tn),className:dt,role:"progressbar","aria-valuenow":xr,"aria-valuemin":0,"aria-valuemax":100},(0,L.Z)(cn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),wt))}),St=Ut},82326:function(nr,Zt,g){"use strict";var s=g(59301),Se=g(92310),M=g.n(Se),Be=g(37463),te=g(2738),G=g(75030),Z=g(86641),v=g(45915),L=g(82855),i=g(48755),N=g(38406),B=g(2171),D=g(83397),O=g(31756),T=g(56553),E=g(24971),U=g(70045),F=g(57700),W=g(1722),re=g(90376),H=g(68525),k=g(90005),de=function(pe,J){var ye={};for(var p in pe)Object.prototype.hasOwnProperty.call(pe,p)&&J.indexOf(p)<0&&(ye[p]=pe[p]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,p=Object.getOwnPropertySymbols(pe);j{var ye;const{prefixCls:p,bordered:j,className:Xe,rootClassName:ie,getPopupContainer:he,popupClassName:Ce,dropdownClassName:ge,listHeight:ae=256,placement:Ae,listItemHeight:nt,size:vt,disabled:Ve,notFoundContent:Nt,status:yt,builtinPlacements:zt,dropdownMatchSelectWidth:je,popupMatchSelectWidth:It,direction:ze,style:Pt,allowClear:ct,variant:x,dropdownStyle:ke,transitionName:P,tagRender:A,maxCount:h,prefix:C}=pe,b=de(pe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:K,getPrefixCls:ee,renderEmpty:Ee,direction:le,virtual:ce,popupMatchSelectWidth:Qe,popupOverflow:He}=s.useContext(i.E_),oe=(0,i.dj)("select"),[,$]=(0,F.ZP)(),et=nt!=null?nt:$==null?void 0:$.controlHeight,Te=ee("select",p),Et=ee(),at=ze!=null?ze:le,{compactSize:Ge,compactItemClassnames:Ut}=(0,U.ri)(Te,at),[St,Ie]=(0,E.Z)("select",x,j),$e=(0,D.Z)(Te),[ut,Qt,se]=(0,re.Z)(Te,$e),Oe=s.useMemo(()=>{const{mode:mo}=pe;if(mo!=="combobox")return mo===ue?"combobox":mo},[pe.mode]),We=Oe==="multiple"||Oe==="tags",mt=(0,k.Z)(pe.suffixIcon,pe.showArrow),Rt=(ye=It!=null?It:je)!==null&&ye!==void 0?ye:Qe,{status:en,hasFeedback:En,isFormItemInput:xn,feedbackIcon:ln}=s.useContext(T.aM),tn=(0,L.F)(en,yt);let Yt;Nt!==void 0?Yt=Nt:Oe==="combobox"?Yt=null:Yt=(Ee==null?void 0:Ee("Select"))||s.createElement(N.Z,{componentName:"Select"});const{suffixIcon:cn,itemIcon:yn,removeIcon:In,clearIcon:Kn}=(0,H.Z)(Object.assign(Object.assign({},b),{multiple:We,hasFeedback:En,feedbackIcon:ln,showSuffixIcon:mt,prefixCls:Te,componentName:"Select"})),qn=ct===!0?{clearIcon:Kn}:ct,er=(0,te.Z)(b,["suffixIcon","itemIcon"]),xr=M()(Ce||ge,{[`${Te}-dropdown-${at}`]:at==="rtl"},ie,se,$e,Qt),Lr=(0,O.Z)(mo=>{var Dn;return(Dn=vt!=null?vt:Ge)!==null&&Dn!==void 0?Dn:mo}),fr=s.useContext(B.Z),Jn=Ve!=null?Ve:fr,zr=M()({[`${Te}-lg`]:Lr==="large",[`${Te}-sm`]:Lr==="small",[`${Te}-rtl`]:at==="rtl",[`${Te}-${St}`]:Ie,[`${Te}-in-form-item`]:xn},(0,L.Z)(Te,tn,En),Ut,oe.className,Xe,ie,se,$e,Qt),pr=s.useMemo(()=>Ae!==void 0?Ae:at==="rtl"?"bottomRight":"bottomLeft",[Ae,at]),[ao]=(0,G.Cn)("SelectLike",ke==null?void 0:ke.zIndex);return ut(s.createElement(Be.ZP,Object.assign({ref:J,virtual:ce,showSearch:oe.showSearch},er,{style:Object.assign(Object.assign({},oe.style),Pt),dropdownMatchSelectWidth:Rt,transitionName:(0,Z.m)(Et,"slide-up",P),builtinPlacements:(0,W.Z)(zt,He),listHeight:ae,listItemHeight:et,mode:Oe,prefixCls:Te,placement:pr,direction:at,prefix:C,suffixIcon:cn,menuItemSelectedIcon:yn,removeIcon:In,allowClear:qn,notFoundContent:Yt,className:zr,getPopupContainer:he||K,dropdownClassName:xr,disabled:Jn,dropdownStyle:Object.assign(Object.assign({},ke),{zIndex:ao}),maxCount:We?h:void 0,tagRender:We?A:void 0})))},me=s.forwardRef(Fe),ve=(0,v.Z)(me,"dropdownAlign");me.SECRET_COMBOBOX_MODE_DO_NOT_USE=ue,me.Option=Be.Wx,me.OptGroup=Be.Xo,me._InternalPanelDoNotUseOrYouWillBeFired=ve,Zt.default=me},1722:function(nr,Zt){"use strict";const g=Se=>{const Be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Se==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Be),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Be),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Be),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Be),{points:["br","tr"],offset:[0,-4]})}};function s(Se,M){return Se||g(M)}Zt.Z=s},90376:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return p}});var s=g(63356),Se=g(56119),M=g(16931),Be=g(51636),te=g(46e3),G=g(93873);const Z=j=>{const{optionHeight:Xe,optionFontSize:ie,optionLineHeight:he,optionPadding:Ce}=j;return{position:"relative",display:"block",minHeight:Xe,padding:Ce,color:j.colorText,fontWeight:"normal",fontSize:ie,lineHeight:he,boxSizing:"border-box"}};var L=j=>{const{antCls:Xe,componentCls:ie}=j,he=`${ie}-item`,Ce=`&${Xe}-slide-up-enter${Xe}-slide-up-enter-active`,ge=`&${Xe}-slide-up-appear${Xe}-slide-up-appear-active`,ae=`&${Xe}-slide-up-leave${Xe}-slide-up-leave-active`,Ae=`${ie}-dropdown-placement-`,nt=`${he}-option-selected`;return[{[`${ie}-dropdown`]:Object.assign(Object.assign({},(0,s.Wf)(j)),{position:"absolute",top:-9999,zIndex:j.zIndexPopup,boxSizing:"border-box",padding:j.paddingXXS,overflow:"hidden",fontSize:j.fontSize,fontVariant:"initial",backgroundColor:j.colorBgElevated,borderRadius:j.borderRadiusLG,outline:"none",boxShadow:j.boxShadowSecondary,[` - ${Ce}${Ae}bottomLeft, - ${ge}${Ae}bottomLeft + `]:{opacity:0},[`${b}-item-icon, ${K}`]:{margin:0,fontSize:Ut,lineHeight:(0,de.unit)(ee),"+ span":{display:"inline-block",opacity:0}}},[`${b}-item-icon, ${K}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${b}-item-icon, ${K}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${b}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:Et})}}]};const mt=C=>{const{componentCls:b,motionDurationSlow:K,motionDurationMid:ee,motionEaseInOut:Ee,motionEaseOut:le,iconCls:ue,iconSize:Qe,iconMarginInlineEnd:ke}=C;return{[`${b}-item, ${b}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${K}`,`background ${K}`,`padding calc(${K} + 0.1s) ${Ee}`].join(","),[`${b}-item-icon, ${ue}`]:{minWidth:Qe,fontSize:Qe,transition:[`font-size ${ee} ${le}`,`margin ${K} ${Ee}`,`color ${K}`].join(","),"+ span":{marginInlineStart:ke,opacity:1,transition:[`opacity ${K} ${Ee}`,`margin ${K}`,`color ${K}`].join(",")}},[`${b}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${b}-item-only-child`]:{[`> ${ue}, > ${b}-item-icon`]:{marginInlineEnd:0}}},[`${b}-item-disabled, ${b}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${b}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Me=C=>{const{componentCls:b,motionDurationSlow:K,motionEaseInOut:ee,borderRadius:Ee,menuArrowSize:le,menuArrowOffset:ue}=C;return{[`${b}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:C.margin,width:le,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${K} ${ee}, opacity ${K}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:C.calc(le).mul(.6).equal(),height:C.calc(le).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${K} ${ee}`,`transform ${K} ${ee}`,`top ${K} ${ee}`,`color ${K} ${ee}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,de.unit)(C.calc(ue).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,de.unit)(ue)})`}}}}},Nt=C=>{const{antCls:b,componentCls:K,fontSize:ee,motionDurationSlow:Ee,motionDurationMid:le,motionEaseInOut:ue,paddingXS:Qe,padding:ke,colorSplit:ie,lineWidth:X,zIndexPopup:tt,borderRadiusLG:Te,subMenuItemBorderRadius:Et,menuArrowSize:at,menuArrowOffset:Ge,lineType:Ut,groupTitleLineHeight:St,groupTitleFontSize:Ie}=C;return[{"":{[K]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${K}-submenu-hidden`]:{display:"none"}},{[K]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(C)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ee,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${K}-item`]:{flex:"none"}},[`${K}-item, ${K}-submenu, ${K}-submenu-title`]:{borderRadius:C.itemBorderRadius},[`${K}-item-group-title`]:{padding:`${(0,de.unit)(Qe)} ${(0,de.unit)(ke)}`,fontSize:Ie,lineHeight:St,transition:`all ${Ee}`},[`&-horizontal ${K}-submenu`]:{transition:[`border-color ${Ee} ${ue}`,`background ${Ee} ${ue}`].join(",")},[`${K}-submenu, ${K}-submenu-inline`]:{transition:[`border-color ${Ee} ${ue}`,`background ${Ee} ${ue}`,`padding ${le} ${ue}`].join(",")},[`${K}-submenu ${K}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${ue}`,`padding ${Ee} ${ue}`].join(",")},[`${K}-title-content`]:{transition:`color ${Ee}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${b}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${K}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:C.padding}},[`${K}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${K}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ie,borderStyle:Ut,borderWidth:0,borderTopWidth:X,marginBlock:X,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mt(C)),{[`${K}-item-group`]:{[`${K}-item-group-list`]:{margin:0,padding:0,[`${K}-item, ${K}-submenu-title`]:{paddingInline:`${(0,de.unit)(C.calc(ee).mul(2).equal())} ${(0,de.unit)(ke)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:tt,borderRadius:Te,boxShadow:"none",transformOrigin:"0 0",[`&${K}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${K}`]:Object.assign(Object.assign(Object.assign({borderRadius:Te},mt(C)),Me(C)),{[`${K}-item, ${K}-submenu > ${K}-submenu-title`]:{borderRadius:Et},[`${K}-submenu-title::after`]:{transition:`transform ${Ee} ${ue}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:C.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:C.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:C.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:C.paddingXS}}}),Me(C)),{[`&-inline-collapsed ${K}-submenu-arrow, + &-inline ${K}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,de.unit)(Ge)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,de.unit)(C.calc(Ge).mul(-1).equal())})`}},[`${K}-submenu-open${K}-submenu-inline > ${K}-submenu-title > ${K}-submenu-arrow`]:{transform:`translateY(${(0,de.unit)(C.calc(at).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,de.unit)(C.calc(Ge).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,de.unit)(Ge)})`}}})},{[`${b}-layout-header`]:{[K]:{lineHeight:"inherit"}}}]},yt=C=>{var b,K,ee;const{colorPrimary:Ee,colorError:le,colorTextDisabled:ue,colorErrorBg:Qe,colorText:ke,colorTextDescription:ie,colorBgContainer:X,colorFillAlter:tt,colorFillContent:Te,lineWidth:Et,lineWidthBold:at,controlItemBgActive:Ge,colorBgTextHover:Ut,controlHeightLG:St,lineHeight:Ie,colorBgElevated:$e,marginXXS:ut,padding:Qt,fontSize:Ae,controlHeightSM:Oe,fontSizeLG:We,colorTextLightSolid:vt,colorErrorHover:Rt}=C,en=(b=C.activeBarWidth)!==null&&b!==void 0?b:0,En=(K=C.activeBarBorderWidth)!==null&&K!==void 0?K:Et,xn=(ee=C.itemMarginInline)!==null&&ee!==void 0?ee:C.marginXXS,ln=new ce.FastColor(vt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:C.zIndexPopupBase+50,radiusItem:C.borderRadiusLG,itemBorderRadius:C.borderRadiusLG,radiusSubMenuItem:C.borderRadiusSM,subMenuItemBorderRadius:C.borderRadiusSM,colorItemText:ke,itemColor:ke,colorItemTextHover:ke,itemHoverColor:ke,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:ie,groupTitleColor:ie,colorItemTextSelected:Ee,itemSelectedColor:Ee,subMenuItemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:X,itemBg:X,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:Te,itemActiveBg:Ge,colorSubItemBg:tt,subMenuItemBg:tt,colorItemBgSelected:Ge,itemSelectedBg:Ge,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:en,colorActiveBarHeight:at,activeBarHeight:at,colorActiveBarBorderSize:Et,activeBarBorderWidth:En,colorItemTextDisabled:ue,itemDisabledColor:ue,colorDangerItemText:le,dangerItemColor:le,colorDangerItemTextHover:le,dangerItemHoverColor:le,colorDangerItemTextSelected:le,dangerItemSelectedColor:le,colorDangerItemBgActive:Qe,dangerItemActiveBg:Qe,colorDangerItemBgSelected:Qe,dangerItemSelectedBg:Qe,itemMarginInline:xn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:St,groupTitleLineHeight:Ie,collapsedWidth:St*2,popupBg:$e,itemMarginBlock:ut,itemPaddingInline:Qt,horizontalLineHeight:`${St*1.15}px`,iconSize:Ae,iconMarginInlineEnd:Oe-Ae,collapsedIconSize:We,groupTitleFontSize:Ae,darkItemDisabledColor:new ce.FastColor(vt).setA(.25).toRgbString(),darkItemColor:ln,darkDangerItemColor:le,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:vt,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:le,darkItemHoverBg:"transparent",darkGroupTitleColor:ln,darkItemHoverColor:vt,darkDangerItemHoverColor:Rt,darkDangerItemSelectedColor:vt,darkDangerItemActiveBg:le,itemWidth:en?`calc(100% + ${En}px)`:`calc(100% - ${xn*2}px)`}};var zt=function(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,G.I$)("Menu",Ee=>{const{colorBgElevated:le,controlHeightLG:ue,fontSize:Qe,darkItemColor:ke,darkDangerItemColor:ie,darkItemBg:X,darkSubMenuItemBg:tt,darkItemSelectedColor:Te,darkItemSelectedBg:Et,darkDangerItemSelectedBg:at,darkItemHoverBg:Ge,darkGroupTitleColor:Ut,darkItemHoverColor:St,darkItemDisabledColor:Ie,darkDangerItemHoverColor:$e,darkDangerItemSelectedColor:ut,darkDangerItemActiveBg:Qt,popupBg:Ae,darkPopupBg:Oe}=Ee,We=Ee.calc(Qe).div(7).mul(5).equal(),vt=(0,ge.mergeToken)(Ee,{menuArrowSize:We,menuHorizontalHeight:Ee.calc(ue).mul(1.15).equal(),menuArrowOffset:Ee.calc(We).mul(.25).equal(),menuSubMenuBg:le,calc:Ee.calc,popupBg:Ae}),Rt=(0,ge.mergeToken)(vt,{itemColor:ke,itemHoverColor:St,groupTitleColor:Ut,itemSelectedColor:Te,subMenuItemSelectedColor:Te,itemBg:X,popupBg:Oe,subMenuItemBg:tt,itemActiveBg:"transparent",itemSelectedBg:Et,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ge,itemDisabledColor:Ie,dangerItemColor:ie,dangerItemHoverColor:$e,dangerItemSelectedColor:ut,dangerItemActiveBg:Qt,dangerItemSelectedBg:at,menuSubMenuBg:tt,horizontalItemSelectedColor:Te,horizontalItemSelectedBg:Et});return[Nt(vt),j(vt),Je(vt),me(vt,"light"),me(Rt,"dark"),oe(vt),(0,ve.Z)(vt),(0,pe.oN)(vt,"slide-up"),(0,pe.oN)(vt,"slide-down"),(0,Ce._y)(vt,"zoom-big")]},yt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:K,unitless:{groupTitleLineHeight:!0}})(C,b)},je=p(75030),Ze=C=>{var b;const{popupClassName:K,icon:ee,title:Ee,theme:le}=C,ue=s.useContext(O),{prefixCls:Qe,inlineCollapsed:ke,theme:ie}=ue,X=(0,Se.Xl)();let tt;if(!ee)tt=ke&&!X.length&&Ee&&typeof Ee=="string"?s.createElement("div",{className:`${Qe}-inline-collapsed-noicon`},Ee.charAt(0)):s.createElement("span",{className:`${Qe}-title-content`},Ee);else{const at=s.isValidElement(Ee)&&Ee.type==="span";tt=s.createElement(s.Fragment,null,(0,i.Tm)(ee,{className:$()(s.isValidElement(ee)?(b=ee.props)===null||b===void 0?void 0:b.className:"",`${Qe}-item-icon`)}),at?Ee:s.createElement("span",{className:`${Qe}-title-content`},Ee))}const Te=s.useMemo(()=>Object.assign(Object.assign({},ue),{firstLevel:!1}),[ue]),[Et]=(0,je.Cn)("Menu");return s.createElement(O.Provider,{value:Te},s.createElement(Se.Wd,Object.assign({},(0,v.Z)(C,["icon"]),{title:tt,popupClassName:$()(Qe,K,`${Qe}-${le||ie}`),popupStyle:Object.assign({zIndex:Et},C.popupStyle)})))},Pt=function(C,b){var K={};for(var ee in C)Object.prototype.hasOwnProperty.call(C,ee)&&b.indexOf(ee)<0&&(K[ee]=C[ee]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,ee=Object.getOwnPropertySymbols(C);Ee{var K;const ee=s.useContext(H.Z),Ee=ee||{},{getPrefixCls:le,getPopupContainer:ue,direction:Qe,menu:ke}=s.useContext(L.E_),ie=le(),{prefixCls:X,className:tt,style:Te,theme:Et="light",expandIcon:at,_internalDisableMenuItemTitleTooltip:Ge,inlineCollapsed:Ut,siderCollapsed:St,rootClassName:Ie,mode:$e,selectable:ut,onClick:Qt,overflowedIndicatorPopupClassName:Ae}=C,Oe=Pt(C,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),We=(0,v.Z)(Oe,["collapsedWidth"]);(K=Ee.validator)===null||K===void 0||K.call(Ee,{mode:$e});const vt=(0,Z.Z)(function(){var er;Qt==null||Qt.apply(void 0,arguments),(er=Ee.onClick)===null||er===void 0||er.call(Ee)}),Rt=Ee.mode||$e,en=ut!=null?ut:Ee.selectable,En=Ut!=null?Ut:St,xn={horizontal:{motionName:`${ie}-slide-up`},inline:(0,N.Z)(ie),other:{motionName:`${ie}-zoom-big`}},ln=le("menu",X||Ee.prefixCls),tn=(0,B.Z)(ln),[Yt,cn,yn]=zt(ln,tn,!ee),In=$()(`${ln}-${Et}`,ke==null?void 0:ke.className,tt),Kn=s.useMemo(()=>{var er,xr;if(typeof at=="function"||ct(at))return at||null;if(typeof Ee.expandIcon=="function"||ct(Ee.expandIcon))return Ee.expandIcon||null;if(typeof(ke==null?void 0:ke.expandIcon)=="function"||ct(ke==null?void 0:ke.expandIcon))return(ke==null?void 0:ke.expandIcon)||null;const Lr=(er=at!=null?at:Ee==null?void 0:Ee.expandIcon)!==null&&er!==void 0?er:ke==null?void 0:ke.expandIcon;return(0,i.Tm)(Lr,{className:$()(`${ln}-submenu-expand-icon`,s.isValidElement(Lr)?(xr=Lr.props)===null||xr===void 0?void 0:xr.className:void 0)})},[at,Ee==null?void 0:Ee.expandIcon,ke==null?void 0:ke.expandIcon,ln]),qn=s.useMemo(()=>({prefixCls:ln,inlineCollapsed:En||!1,direction:Qe,firstLevel:!0,theme:Et,mode:Rt,disableMenuItemTitleTooltip:Ge}),[ln,En,Qe,Ge,Et]);return Yt(s.createElement(H.Z.Provider,{value:null},s.createElement(O.Provider,{value:qn},s.createElement(Se.ZP,Object.assign({getPopupContainer:ue,overflowedIndicator:s.createElement(we.Z,null),overflowedIndicatorPopupClassName:$()(ln,`${ln}-${Et}`,Ae),mode:Rt,selectable:en,onClick:vt},We,{inlineCollapsed:En,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Te),className:In,prefixCls:ln,direction:Qe,defaultMotions:xn,expandIcon:Kn,ref:b,rootClassName:$()(Ie,cn,Ee.rootClassName,yn,tn),_internalComponents:x})))))});const A=(0,s.forwardRef)((C,b)=>{const K=(0,s.useRef)(null),ee=s.useContext(M.D);return(0,s.useImperativeHandle)(b,()=>({menu:K.current,focus:Ee=>{var le;(le=K.current)===null||le===void 0||le.focus(Ee)}})),s.createElement(P,Object.assign({ref:K},C,ee))});A.Item=k,A.SubMenu=Ze,A.Divider=I,A.ItemGroup=Se.BW;var h=A},31709:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return ke}});var s=p(59301),Se=p(54476),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},we=M,te=p(7657),$=function(X,tt){return s.createElement(te.Z,(0,Se.Z)({},X,{ref:tt,icon:we}))},Z=s.forwardRef($),v=Z,N=p(49198),i=p(33853),L=p(38819),B=p(92310),D=p.n(B),O=p(20068),T=p(76190),E=p(33885),I=p(42978),U=p(18929),W=p(10228),re=p(26112),k=p(48736),H=p(17119),de=[10,20,50,100],ce=function(X){var tt=X.pageSizeOptions,Te=tt===void 0?de:tt,Et=X.locale,at=X.changeSize,Ge=X.pageSize,Ut=X.goButton,St=X.quickGo,Ie=X.rootPrefixCls,$e=X.disabled,ut=X.buildOptionText,Qt=X.showSizeChanger,Ae=X.sizeChangerRender,Oe=s.useState(""),We=(0,I.Z)(Oe,2),vt=We[0],Rt=We[1],en=function(){return!vt||Number.isNaN(vt)?void 0:Number(vt)},En=typeof ut=="function"?ut:function(qn){return"".concat(qn," ").concat(Et.items_per_page)},xn=function(er){Rt(er.target.value)},ln=function(er){Ut||vt===""||(Rt(""),!(er.relatedTarget&&(er.relatedTarget.className.indexOf("".concat(Ie,"-item-link"))>=0||er.relatedTarget.className.indexOf("".concat(Ie,"-item"))>=0))&&(St==null||St(en())))},tn=function(er){vt!==""&&(er.keyCode===W.Z.ENTER||er.type==="click")&&(Rt(""),St==null||St(en()))},Yt=function(){return Te.some(function(er){return er.toString()===Ge.toString()})?Te:Te.concat([Ge]).sort(function(er,xr){var Lr=Number.isNaN(Number(er))?0:Number(er),fr=Number.isNaN(Number(xr))?0:Number(xr);return Lr-fr})},cn="".concat(Ie,"-options");if(!Qt&&!St)return null;var yn=null,In=null,Kn=null;return Qt&&Ae&&(yn=Ae({disabled:$e,size:Ge,onSizeChange:function(er){at==null||at(Number(er))},"aria-label":Et.page_size,className:"".concat(cn,"-size-changer"),options:Yt().map(function(qn){return{label:En(qn),value:qn}})})),St&&(Ut&&(Kn=typeof Ut=="boolean"?s.createElement("button",{type:"button",onClick:tn,onKeyUp:tn,disabled:$e,className:"".concat(cn,"-quick-jumper-button")},Et.jump_to_confirm):s.createElement("span",{onClick:tn,onKeyUp:tn},Ut)),In=s.createElement("div",{className:"".concat(cn,"-quick-jumper")},Et.jump_to,s.createElement("input",{disabled:$e,type:"text",value:vt,onChange:xn,onKeyUp:tn,onBlur:ln,"aria-label":Et.page}),Et.page,Kn)),s.createElement("li",{className:cn},yn,In)},Fe=ce,ve=function(X){var tt=X.rootPrefixCls,Te=X.page,Et=X.active,at=X.className,Ge=X.showTitle,Ut=X.onClick,St=X.onKeyPress,Ie=X.itemRender,$e="".concat(tt,"-item"),ut=D()($e,"".concat($e,"-").concat(Te),(0,O.Z)((0,O.Z)({},"".concat($e,"-active"),Et),"".concat($e,"-disabled"),!Te),at),Qt=function(){Ut(Te)},Ae=function(vt){St(vt,Ut,Te)},Oe=Ie(Te,"page",s.createElement("a",{rel:"nofollow"},Te));return Oe?s.createElement("li",{title:Ge?String(Te):null,className:ut,onClick:Qt,onKeyDown:Ae,tabIndex:0},Oe):null},pe=ve,Ce=function(X,tt,Te){return Te};function G(){}function ge(ie){var X=Number(ie);return typeof X=="number"&&!Number.isNaN(X)&&isFinite(X)&&Math.floor(X)===X}function g(ie,X,tt){var Te=typeof ie=="undefined"?X:ie;return Math.floor((tt-1)/Te)+1}var j=function(X){var tt=X.prefixCls,Te=tt===void 0?"rc-pagination":tt,Et=X.selectPrefixCls,at=Et===void 0?"rc-select":Et,Ge=X.className,Ut=X.current,St=X.defaultCurrent,Ie=St===void 0?1:St,$e=X.total,ut=$e===void 0?0:$e,Qt=X.pageSize,Ae=X.defaultPageSize,Oe=Ae===void 0?10:Ae,We=X.onChange,vt=We===void 0?G:We,Rt=X.hideOnSinglePage,en=X.align,En=X.showPrevNextJumpers,xn=En===void 0?!0:En,ln=X.showQuickJumper,tn=X.showLessItems,Yt=X.showTitle,cn=Yt===void 0?!0:Yt,yn=X.onShowSizeChange,In=yn===void 0?G:yn,Kn=X.locale,qn=Kn===void 0?H.Z:Kn,er=X.style,xr=X.totalBoundaryShowSizeChanger,Lr=xr===void 0?50:xr,fr=X.disabled,Jn=X.simple,zr=X.showTotal,pr=X.showSizeChanger,ao=pr===void 0?ut>Lr:pr,mo=X.sizeChangerRender,Dn=X.pageSizeOptions,Cn=X.itemRender,br=Cn===void 0?Ce:Cn,Or=X.jumpPrevIcon,wt=X.jumpNextIcon,dt=X.prevIcon,Sn=X.nextIcon,Re=s.useRef(null),lt=(0,U.Z)(10,{value:Qt,defaultValue:Oe}),Bt=(0,I.Z)(lt,2),qt=Bt[0],bn=Bt[1],zn=(0,U.Z)(1,{value:Ut,defaultValue:Ie,postState:function(Zo){return Math.max(1,Math.min(Zo,g(void 0,qt,ut)))}}),Yn=(0,I.Z)(zn,2),hn=Yn[0],Mn=Yn[1],sr=s.useState(hn),Wn=(0,I.Z)(sr,2),Sr=Wn[0],hr=Wn[1];(0,s.useEffect)(function(){hr(hn)},[hn]);var Fr=vt!==G,Ko="current"in X,$i=Math.max(1,hn-(tn?3:5)),wi=Math.min(g(void 0,qt,ut),hn+(tn?3:5));function Ro(Co,Zo){var pa=Co||s.createElement("button",{type:"button","aria-label":Zo,className:"".concat(Te,"-item-link")});return typeof Co=="function"&&(pa=s.createElement(Co,(0,E.Z)({},X))),pa}function Fi(Co){var Zo=Co.target.value,pa=g(void 0,qt,ut),ja;return Zo===""?ja=Zo:Number.isNaN(Number(Zo))?ja=Sr:Zo>=pa?ja=pa:ja=Number(Zo),ja}function Lo(Co){return ge(Co)&&Co!==hn&&ge(ut)&&ut>0}var _i=ut>qt?ln:!1;function Xi(Co){(Co.keyCode===W.Z.UP||Co.keyCode===W.Z.DOWN)&&Co.preventDefault()}function zo(Co){var Zo=Fi(Co);switch(Zo!==Sr&&hr(Zo),Co.keyCode){case W.Z.ENTER:_r(Zo);break;case W.Z.UP:_r(Zo-1);break;case W.Z.DOWN:_r(Zo+1);break;default:break}}function Ii(Co){_r(Fi(Co))}function Oi(Co){var Zo=g(Co,qt,ut),pa=hn>Zo&&Zo!==0?Zo:hn;bn(Co),hr(pa),In==null||In(hn,Co),Mn(pa),vt==null||vt(pa,Co)}function _r(Co){if(Lo(Co)&&!fr){var Zo=g(void 0,qt,ut),pa=Co;return Co>Zo?pa=Zo:Co<1&&(pa=1),pa!==Sr&&hr(pa),Mn(pa),vt==null||vt(pa,qt),pa}return hn}var lo=hn>1,oi=hn2?pa-2:0),Es=2;Esut?ut:hn*qt])),sa=null,Vr=g(void 0,qt,ut);if(Rt&&ut<=qt)return null;var Qn=[],Xn={rootPrefixCls:Te,onClick:_r,onKeyPress:ri,showTitle:cn,itemRender:br,page:-1},Gn=hn-1>0?hn-1:0,_n=hn+1=fi*2&&hn!==3&&(Qn[0]=s.cloneElement(Qn[0],{className:D()("".concat(Te,"-item-after-jump-prev"),Qn[0].props.className)}),Qn.unshift(fa)),Vr-hn>=fi*2&&hn!==Vr-2){var ha=Qn[Qn.length-1];Qn[Qn.length-1]=s.cloneElement(ha,{className:D()("".concat(Te,"-item-before-jump-next"),ha.props.className)}),Qn.push(sa)}FA!==1&&Qn.unshift(s.createElement(pe,(0,Se.Z)({},Xn,{key:1,page:1}))),uA!==Vr&&Qn.push(s.createElement(pe,(0,Se.Z)({},Xn,{key:Vr,page:Vr})))}var pi=wa(Gn);if(pi){var $a=!lo||!Vr;pi=s.createElement("li",{title:cn?qn.prev_page:null,onClick:_o,tabIndex:$a?null:0,onKeyDown:di,className:D()("".concat(Te,"-prev"),(0,O.Z)({},"".concat(Te,"-disabled"),$a)),"aria-disabled":$a},pi)}var PA=Aa(_n);if(PA){var cA,yA;Jn?(cA=!oi,yA=lo?0:null):(cA=!oi||!Vr,yA=cA?null:0),PA=s.createElement("li",{title:cn?qn.next_page:null,onClick:ea,tabIndex:yA,onKeyDown:Xo,className:D()("".concat(Te,"-next"),(0,O.Z)({},"".concat(Te,"-disabled"),cA)),"aria-disabled":cA},PA)}var TA=D()(Te,Ge,(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},"".concat(Te,"-start"),en==="start"),"".concat(Te,"-center"),en==="center"),"".concat(Te,"-end"),en==="end"),"".concat(Te,"-simple"),Jn),"".concat(Te,"-disabled"),fr));return s.createElement("ul",(0,Se.Z)({className:TA,style:er,ref:Re},vA),sA,pi,Jn?qo:Qn,PA,s.createElement(Fe,{locale:qn,rootPrefixCls:Te,disabled:fr,selectPrefixCls:at,changeSize:Oi,pageSize:qt,pageSizeOptions:Dn,quickGo:_i?_r:null,goButton:Ao,showSizeChanger:ao,sizeChangerRender:mo}))},Ye=j,oe=p(61852),he=p(48755),be=p(31756),me=p(13783),ae=p(9017),se=p(82326),Je=p(57700),mt=p(36237),Me=p(53075),Nt=p(64910),yt=p(39082),zt=p(63356),je=p(51636),It=p(16931);const Ze=ie=>{const{componentCls:X}=ie;return{[`${X}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${X}-item-link`]:{color:ie.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${X}-item-link`]:{color:ie.colorTextDisabled,cursor:"not-allowed"}}},[`&${X}-disabled`]:{cursor:"not-allowed",[`${X}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ie.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ie.colorBorder,backgroundColor:ie.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ie.itemActiveBgDisabled},a:{color:ie.itemActiveColorDisabled}}},[`${X}-item-link`]:{color:ie.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${X}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${X}-simple-pager`]:{color:ie.colorTextDisabled},[`${X}-jump-prev, ${X}-jump-next`]:{[`${X}-item-link-icon`]:{opacity:0},[`${X}-item-ellipsis`]:{opacity:1}}},[`&${X}-simple`]:{[`${X}-prev, ${X}-next`]:{[`&${X}-disabled ${X}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pt=ie=>{const{componentCls:X}=ie;return{[`&${X}-mini ${X}-total-text, &${X}-mini ${X}-simple-pager`]:{height:ie.itemSizeSM,lineHeight:(0,mt.unit)(ie.itemSizeSM)},[`&${X}-mini ${X}-item`]:{minWidth:ie.itemSizeSM,height:ie.itemSizeSM,margin:0,lineHeight:(0,mt.unit)(ie.calc(ie.itemSizeSM).sub(2).equal())},[`&${X}-mini ${X}-prev, &${X}-mini ${X}-next`]:{minWidth:ie.itemSizeSM,height:ie.itemSizeSM,margin:0,lineHeight:(0,mt.unit)(ie.itemSizeSM)},[`&${X}-mini:not(${X}-disabled)`]:{[`${X}-prev, ${X}-next`]:{[`&:hover ${X}-item-link`]:{backgroundColor:ie.colorBgTextHover},[`&:active ${X}-item-link`]:{backgroundColor:ie.colorBgTextActive},[`&${X}-disabled:hover ${X}-item-link`]:{backgroundColor:"transparent"}}},[` + &${X}-mini ${X}-prev ${X}-item-link, + &${X}-mini ${X}-next ${X}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ie.itemSizeSM,lineHeight:(0,mt.unit)(ie.itemSizeSM)}},[`&${X}-mini ${X}-jump-prev, &${X}-mini ${X}-jump-next`]:{height:ie.itemSizeSM,marginInlineEnd:0,lineHeight:(0,mt.unit)(ie.itemSizeSM)},[`&${X}-mini ${X}-options`]:{marginInlineStart:ie.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ie.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ie.itemSizeSM,lineHeight:(0,mt.unit)(ie.itemSizeSM),input:Object.assign(Object.assign({},(0,Me.x0)(ie)),{width:ie.paginationMiniQuickJumperInputWidth,height:ie.controlHeightSM})}}}},ct=ie=>{const{componentCls:X}=ie;return{[` + &${X}-simple ${X}-prev, + &${X}-simple ${X}-next + `]:{height:ie.itemSizeSM,lineHeight:(0,mt.unit)(ie.itemSizeSM),verticalAlign:"top",[`${X}-item-link`]:{height:ie.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ie.colorBgTextHover},"&:active":{backgroundColor:ie.colorBgTextActive},"&::after":{height:ie.itemSizeSM,lineHeight:(0,mt.unit)(ie.itemSizeSM)}}},[`&${X}-simple ${X}-simple-pager`]:{display:"inline-block",height:ie.itemSizeSM,marginInlineEnd:ie.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,mt.unit)(ie.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:ie.itemInputBg,border:`${(0,mt.unit)(ie.lineWidth)} ${ie.lineType} ${ie.colorBorder}`,borderRadius:ie.borderRadius,outline:"none",transition:`border-color ${ie.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ie.colorPrimary},"&:focus":{borderColor:ie.colorPrimaryHover,boxShadow:`${(0,mt.unit)(ie.inputOutlineOffset)} 0 ${(0,mt.unit)(ie.controlOutlineWidth)} ${ie.controlOutline}`},"&[disabled]":{color:ie.colorTextDisabled,backgroundColor:ie.colorBgContainerDisabled,borderColor:ie.colorBorder,cursor:"not-allowed"}}}}},x=ie=>{const{componentCls:X}=ie;return{[`${X}-jump-prev, ${X}-jump-next`]:{outline:0,[`${X}-item-container`]:{position:"relative",[`${X}-item-link-icon`]:{color:ie.colorPrimary,fontSize:ie.fontSizeSM,opacity:0,transition:`all ${ie.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${X}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ie.colorTextDisabled,letterSpacing:ie.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ie.paginationEllipsisTextIndent,opacity:1,transition:`all ${ie.motionDurationMid}`}},"&:hover":{[`${X}-item-link-icon`]:{opacity:1},[`${X}-item-ellipsis`]:{opacity:0}}},[` + ${X}-prev, + ${X}-jump-prev, + ${X}-jump-next + `]:{marginInlineEnd:ie.marginXS},[` + ${X}-prev, + ${X}-next, + ${X}-jump-prev, + ${X}-jump-next + `]:{display:"inline-block",minWidth:ie.itemSize,height:ie.itemSize,color:ie.colorText,fontFamily:ie.fontFamily,lineHeight:(0,mt.unit)(ie.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ie.borderRadius,cursor:"pointer",transition:`all ${ie.motionDurationMid}`},[`${X}-prev, ${X}-next`]:{outline:0,button:{color:ie.colorText,cursor:"pointer",userSelect:"none"},[`${X}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ie.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,mt.unit)(ie.lineWidth)} ${ie.lineType} transparent`,borderRadius:ie.borderRadius,outline:"none",transition:`all ${ie.motionDurationMid}`},[`&:hover ${X}-item-link`]:{backgroundColor:ie.colorBgTextHover},[`&:active ${X}-item-link`]:{backgroundColor:ie.colorBgTextActive},[`&${X}-disabled:hover`]:{[`${X}-item-link`]:{backgroundColor:"transparent"}}},[`${X}-slash`]:{marginInlineEnd:ie.paginationSlashMarginInlineEnd,marginInlineStart:ie.paginationSlashMarginInlineStart},[`${X}-options`]:{display:"inline-block",marginInlineStart:ie.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ie.controlHeight,marginInlineStart:ie.marginXS,lineHeight:(0,mt.unit)(ie.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Me.ik)(ie)),(0,yt.$U)(ie,{borderColor:ie.colorBorder,hoverBorderColor:ie.colorPrimaryHover,activeBorderColor:ie.colorPrimary,activeShadow:ie.activeShadow})),{"&[disabled]":Object.assign({},(0,yt.Xy)(ie)),width:ie.calc(ie.controlHeightLG).mul(1.25).equal(),height:ie.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ie.marginXS,marginInlineEnd:ie.marginXS})}}}},Ke=ie=>{const{componentCls:X}=ie;return{[`${X}-item`]:{display:"inline-block",minWidth:ie.itemSize,height:ie.itemSize,marginInlineEnd:ie.marginXS,fontFamily:ie.fontFamily,lineHeight:(0,mt.unit)(ie.calc(ie.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:ie.itemBg,border:`${(0,mt.unit)(ie.lineWidth)} ${ie.lineType} transparent`,borderRadius:ie.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,mt.unit)(ie.paginationItemPaddingInline)}`,color:ie.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${X}-item-active)`]:{"&:hover":{transition:`all ${ie.motionDurationMid}`,backgroundColor:ie.colorBgTextHover},"&:active":{backgroundColor:ie.colorBgTextActive}},"&-active":{fontWeight:ie.fontWeightStrong,backgroundColor:ie.itemActiveBg,borderColor:ie.colorPrimary,a:{color:ie.colorPrimary},"&:hover":{borderColor:ie.colorPrimaryHover},"&:hover a":{color:ie.colorPrimaryHover}}}}},P=ie=>{const{componentCls:X}=ie;return{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(ie)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${X}-total-text`]:{display:"inline-block",height:ie.itemSize,marginInlineEnd:ie.marginXS,lineHeight:(0,mt.unit)(ie.calc(ie.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Ke(ie)),x(ie)),ct(ie)),Pt(ie)),Ze(ie)),{[`@media only screen and (max-width: ${ie.screenLG}px)`]:{[`${X}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ie.screenSM}px)`]:{[`${X}-options`]:{display:"none"}}}),[`&${ie.componentCls}-rtl`]:{direction:"rtl"}}},A=ie=>{const{componentCls:X}=ie;return{[`${X}:not(${X}-disabled)`]:{[`${X}-item`]:Object.assign({},(0,zt.Qy)(ie)),[`${X}-jump-prev, ${X}-jump-next`]:{"&:focus-visible":Object.assign({[`${X}-item-link-icon`]:{opacity:1},[`${X}-item-ellipsis`]:{opacity:0}},(0,zt.oN)(ie))},[`${X}-prev, ${X}-next`]:{[`&:focus-visible ${X}-item-link`]:Object.assign({},(0,zt.oN)(ie))}}}},h=ie=>Object.assign({itemBg:ie.colorBgContainer,itemSize:ie.controlHeight,itemSizeSM:ie.controlHeightSM,itemActiveBg:ie.colorBgContainer,itemLinkBg:ie.colorBgContainer,itemActiveColorDisabled:ie.colorTextDisabled,itemActiveBgDisabled:ie.controlItemBgActiveDisabled,itemInputBg:ie.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Nt.T)(ie)),C=ie=>(0,je.mergeToken)(ie,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ie.calc(ie.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:ie.calc(ie.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:ie.calc(ie.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:ie.calc(ie.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:ie.marginSM,paginationSlashMarginInlineEnd:ie.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Nt.e)(ie));var b=(0,It.I$)("Pagination",ie=>{const X=C(ie);return[P(X),A(X)]},h);const K=ie=>{const{componentCls:X}=ie;return{[`${X}${X}-bordered${X}-disabled:not(${X}-mini)`]:{"&, &:hover":{[`${X}-item-link`]:{borderColor:ie.colorBorder}},"&:focus-visible":{[`${X}-item-link`]:{borderColor:ie.colorBorder}},[`${X}-item, ${X}-item-link`]:{backgroundColor:ie.colorBgContainerDisabled,borderColor:ie.colorBorder,[`&:hover:not(${X}-item-active)`]:{backgroundColor:ie.colorBgContainerDisabled,borderColor:ie.colorBorder,a:{color:ie.colorTextDisabled}},[`&${X}-item-active`]:{backgroundColor:ie.itemActiveBgDisabled}},[`${X}-prev, ${X}-next`]:{"&:hover button":{backgroundColor:ie.colorBgContainerDisabled,borderColor:ie.colorBorder,color:ie.colorTextDisabled},[`${X}-item-link`]:{backgroundColor:ie.colorBgContainerDisabled,borderColor:ie.colorBorder}}},[`${X}${X}-bordered:not(${X}-mini)`]:{[`${X}-prev, ${X}-next`]:{"&:hover button":{borderColor:ie.colorPrimaryHover,backgroundColor:ie.itemBg},[`${X}-item-link`]:{backgroundColor:ie.itemLinkBg,borderColor:ie.colorBorder},[`&:hover ${X}-item-link`]:{borderColor:ie.colorPrimary,backgroundColor:ie.itemBg,color:ie.colorPrimary},[`&${X}-disabled`]:{[`${X}-item-link`]:{borderColor:ie.colorBorder,color:ie.colorTextDisabled}}},[`${X}-item`]:{backgroundColor:ie.itemBg,border:`${(0,mt.unit)(ie.lineWidth)} ${ie.lineType} ${ie.colorBorder}`,[`&:hover:not(${X}-item-active)`]:{borderColor:ie.colorPrimary,backgroundColor:ie.itemBg,a:{color:ie.colorPrimary}},"&-active":{borderColor:ie.colorPrimary}}}}};var ee=(0,It.bk)(["Pagination","bordered"],ie=>{const X=C(ie);return[K(X)]},h);function Ee(ie){return(0,s.useMemo)(()=>typeof ie=="boolean"?[ie,{}]:ie&&typeof ie=="object"?[!0,ie]:[void 0,void 0],[ie])}var le=function(ie,X){var tt={};for(var Te in ie)Object.prototype.hasOwnProperty.call(ie,Te)&&X.indexOf(Te)<0&&(tt[Te]=ie[Te]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Te=Object.getOwnPropertySymbols(ie);Et{const{align:X,prefixCls:tt,selectPrefixCls:Te,className:Et,rootClassName:at,style:Ge,size:Ut,locale:St,responsive:Ie,showSizeChanger:$e,selectComponentClass:ut,pageSizeOptions:Qt}=ie,Ae=le(ie,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Oe}=(0,me.Z)(Ie),[,We]=(0,Je.ZP)(),{getPrefixCls:vt,direction:Rt,showSizeChanger:en,className:En,style:xn}=(0,he.dj)("pagination"),ln=vt("pagination",tt),[tn,Yt,cn]=b(ln),yn=(0,be.Z)(Ut),In=yn==="small"||!!(Oe&&!yn&&Ie),[Kn]=(0,ae.Z)("Pagination",oe.Z),qn=Object.assign(Object.assign({},Kn),St),[er,xr]=Ee($e),[Lr,fr]=Ee(en),Jn=er!=null?er:Lr,zr=xr!=null?xr:fr,pr=ut||se.default,ao=s.useMemo(()=>Qt?Qt.map(wt=>Number(wt)):void 0,[Qt]),mo=wt=>{var dt;const{disabled:Sn,size:Re,onSizeChange:lt,"aria-label":Bt,className:qt,options:bn}=wt,{className:zn,onChange:Yn}=zr||{},hn=(dt=bn.find(Mn=>String(Mn.value)===String(Re)))===null||dt===void 0?void 0:dt.value;return s.createElement(pr,Object.assign({disabled:Sn,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Mn=>Mn.parentNode,"aria-label":Bt,options:bn},zr,{value:hn,onChange:(Mn,sr)=>{lt==null||lt(Mn),Yn==null||Yn(Mn,sr)},size:In?"small":"middle",className:D()(qt,zn)}))},Dn=s.useMemo(()=>{const wt=s.createElement("span",{className:`${ln}-item-ellipsis`},"\u2022\u2022\u2022"),dt=s.createElement("button",{className:`${ln}-item-link`,type:"button",tabIndex:-1},Rt==="rtl"?s.createElement(L.Z,null):s.createElement(i.Z,null)),Sn=s.createElement("button",{className:`${ln}-item-link`,type:"button",tabIndex:-1},Rt==="rtl"?s.createElement(i.Z,null):s.createElement(L.Z,null)),Re=s.createElement("a",{className:`${ln}-item-link`},s.createElement("div",{className:`${ln}-item-container`},Rt==="rtl"?s.createElement(N.Z,{className:`${ln}-item-link-icon`}):s.createElement(v,{className:`${ln}-item-link-icon`}),wt)),lt=s.createElement("a",{className:`${ln}-item-link`},s.createElement("div",{className:`${ln}-item-container`},Rt==="rtl"?s.createElement(v,{className:`${ln}-item-link-icon`}):s.createElement(N.Z,{className:`${ln}-item-link-icon`}),wt));return{prevIcon:dt,nextIcon:Sn,jumpPrevIcon:Re,jumpNextIcon:lt}},[Rt,ln]),Cn=vt("select",Te),br=D()({[`${ln}-${X}`]:!!X,[`${ln}-mini`]:In,[`${ln}-rtl`]:Rt==="rtl",[`${ln}-bordered`]:We.wireframe},En,Et,at,Yt,cn),Or=Object.assign(Object.assign({},xn),Ge);return tn(s.createElement(s.Fragment,null,We.wireframe&&s.createElement(ee,{prefixCls:ln}),s.createElement(Ye,Object.assign({},Dn,Ae,{style:Or,prefixCls:ln,selectPrefixCls:Cn,className:br,locale:qn,pageSizeOptions:ao,showSizeChanger:Jn,sizeChangerRender:mo}))))},ke=Qe},89787:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return St}});var s=p(59301),Se=p(17835),M=p(29679),we=p(40001),te=p(19248),$=p(99267),Z=p(92310),v=p.n(Z),N=p(2738),i=p(48755),L=p(54476),B=p(33885),D=p(75931),O={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},T=function(){var $e=(0,s.useRef)([]),ut=(0,s.useRef)(null);return(0,s.useEffect)(function(){var Qt=Date.now(),Ae=!1;$e.current.forEach(function(Oe){if(Oe){Ae=!0;var We=Oe.style;We.transitionDuration=".3s, .3s, .3s, .06s",ut.current&&Qt-ut.current<100&&(We.transitionDuration="0s, 0s")}}),Ae&&(ut.current=Date.now())}),$e.current},E=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],I=function($e){var ut=(0,B.Z)((0,B.Z)({},O),$e),Qt=ut.className,Ae=ut.percent,Oe=ut.prefixCls,We=ut.strokeColor,vt=ut.strokeLinecap,Rt=ut.strokeWidth,en=ut.style,En=ut.trailColor,xn=ut.trailWidth,ln=ut.transition,tn=(0,D.Z)(ut,E);delete tn.gapPosition;var Yt=Array.isArray(Ae)?Ae:[Ae],cn=Array.isArray(We)?We:[We],yn=T(),In=Rt/2,Kn=100-Rt/2,qn="M ".concat(vt==="round"?In:0,",").concat(In,` + L `).concat(vt==="round"?Kn:100,",").concat(In),er="0 0 100 ".concat(Rt),xr=0;return s.createElement("svg",(0,L.Z)({className:v()("".concat(Oe,"-line"),Qt),viewBox:er,preserveAspectRatio:"none",style:en},tn),s.createElement("path",{className:"".concat(Oe,"-line-trail"),d:qn,strokeLinecap:vt,stroke:En,strokeWidth:xn||Rt,fillOpacity:"0"}),Yt.map(function(Lr,fr){var Jn=1;switch(vt){case"round":Jn=1-Rt/100;break;case"square":Jn=1-Rt/2/100;break;default:Jn=1;break}var zr={strokeDasharray:"".concat(Lr*Jn,"px, 100px"),strokeDashoffset:"-".concat(xr,"px"),transition:ln||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},pr=cn[fr]||cn[cn.length-1];return xr+=Lr,s.createElement("path",{key:fr,className:"".concat(Oe,"-line-path"),d:qn,strokeLinecap:vt,stroke:pr,strokeWidth:Rt,fillOpacity:"0",ref:function(mo){yn[fr]=mo},style:zr})}))},U=I,W=p(76190),re=p(42978),k=p(47273),H=0,de=(0,k.Z)();function ce(){var Ie;return de?(Ie=H,H+=1):Ie="TEST_OR_SSR",Ie}var Fe=function(Ie){var $e=s.useState(),ut=(0,re.Z)($e,2),Qt=ut[0],Ae=ut[1];return s.useEffect(function(){Ae("rc_progress_".concat(ce()))},[]),Ie||Qt},ve=function($e){var ut=$e.bg,Qt=$e.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:ut}},Qt)};function pe(Ie,$e){return Object.keys(Ie).map(function(ut){var Qt=parseFloat(ut),Ae="".concat(Math.floor(Qt*$e),"%");return"".concat(Ie[ut]," ").concat(Ae)})}var Ce=s.forwardRef(function(Ie,$e){var ut=Ie.prefixCls,Qt=Ie.color,Ae=Ie.gradientId,Oe=Ie.radius,We=Ie.style,vt=Ie.ptg,Rt=Ie.strokeLinecap,en=Ie.strokeWidth,En=Ie.size,xn=Ie.gapDegree,ln=Qt&&(0,W.Z)(Qt)==="object",tn=ln?"#FFF":void 0,Yt=En/2,cn=s.createElement("circle",{className:"".concat(ut,"-circle-path"),r:Oe,cx:Yt,cy:Yt,stroke:tn,strokeLinecap:Rt,strokeWidth:en,opacity:vt===0?0:1,style:We,ref:$e});if(!ln)return cn;var yn="".concat(Ae,"-conic"),In=xn?"".concat(180+xn/2,"deg"):"0deg",Kn=pe(Qt,(360-xn)/360),qn=pe(Qt,1),er="conic-gradient(from ".concat(In,", ").concat(Kn.join(", "),")"),xr="linear-gradient(to ".concat(xn?"bottom":"top",", ").concat(qn.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:yn},cn),s.createElement("foreignObject",{x:0,y:0,width:En,height:En,mask:"url(#".concat(yn,")")},s.createElement(ve,{bg:xr},s.createElement(ve,{bg:er}))))}),G=Ce,ge=100,g=function($e,ut,Qt,Ae,Oe,We,vt,Rt,en,En){var xn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ln=Qt/100*360*((360-We)/360),tn=We===0?0:{bottom:0,top:180,left:90,right:-90}[vt],Yt=(100-Ae)/100*ut;en==="round"&&Ae!==100&&(Yt+=En/2,Yt>=ut&&(Yt=ut-.01));var cn=ge/2;return{stroke:typeof Rt=="string"?Rt:void 0,strokeDasharray:"".concat(ut,"px ").concat($e),strokeDashoffset:Yt+xn,transform:"rotate(".concat(Oe+ln+tn,"deg)"),transformOrigin:"".concat(cn,"px ").concat(cn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},j=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ye(Ie){var $e=Ie!=null?Ie:[];return Array.isArray($e)?$e:[$e]}var oe=function($e){var ut=(0,B.Z)((0,B.Z)({},O),$e),Qt=ut.id,Ae=ut.prefixCls,Oe=ut.steps,We=ut.strokeWidth,vt=ut.trailWidth,Rt=ut.gapDegree,en=Rt===void 0?0:Rt,En=ut.gapPosition,xn=ut.trailColor,ln=ut.strokeLinecap,tn=ut.style,Yt=ut.className,cn=ut.strokeColor,yn=ut.percent,In=(0,D.Z)(ut,j),Kn=ge/2,qn=Fe(Qt),er="".concat(qn,"-gradient"),xr=Kn-We/2,Lr=Math.PI*2*xr,fr=en>0?90+en/2:-90,Jn=Lr*((360-en)/360),zr=(0,W.Z)(Oe)==="object"?Oe:{count:Oe,gap:2},pr=zr.count,ao=zr.gap,mo=Ye(yn),Dn=Ye(cn),Cn=Dn.find(function(lt){return lt&&(0,W.Z)(lt)==="object"}),br=Cn&&(0,W.Z)(Cn)==="object",Or=br?"butt":ln,wt=g(Lr,Jn,0,100,fr,en,En,xn,Or,We),dt=T(),Sn=function(){var Bt=0;return mo.map(function(qt,bn){var zn=Dn[bn]||Dn[Dn.length-1],Yn=g(Lr,Jn,Bt,qt,fr,en,En,zn,Or,We);return Bt+=qt,s.createElement(G,{key:bn,color:zn,ptg:qt,radius:xr,prefixCls:Ae,gradientId:er,style:Yn,strokeLinecap:Or,strokeWidth:We,gapDegree:en,ref:function(Mn){dt[bn]=Mn},size:ge})}).reverse()},Re=function(){var Bt=Math.round(pr*(mo[0]/100)),qt=100/pr,bn=0;return new Array(pr).fill(null).map(function(zn,Yn){var hn=Yn<=Bt-1?Dn[0]:xn,Mn=hn&&(0,W.Z)(hn)==="object"?"url(#".concat(er,")"):void 0,sr=g(Lr,Jn,bn,qt,fr,en,En,hn,"butt",We,ao);return bn+=(Jn-sr.strokeDashoffset+ao)*100/Jn,s.createElement("circle",{key:Yn,className:"".concat(Ae,"-circle-path"),r:xr,cx:Kn,cy:Kn,stroke:Mn,strokeWidth:We,opacity:1,style:sr,ref:function(Sr){dt[Yn]=Sr}})})};return s.createElement("svg",(0,L.Z)({className:v()("".concat(Ae,"-circle"),Yt),viewBox:"0 0 ".concat(ge," ").concat(ge),style:tn,id:Qt,role:"presentation"},In),!pr&&s.createElement("circle",{className:"".concat(Ae,"-circle-trail"),r:xr,cx:Kn,cy:Kn,stroke:xn,strokeLinecap:Or,strokeWidth:vt||We,style:wt}),pr?Re():Sn())},he=oe,be={Line:U,Circle:he},me=p(25399),ae=p(68361);function se(Ie){return!Ie||Ie<0?0:Ie>100?100:Ie}function Je(Ie){let{success:$e,successPercent:ut}=Ie,Qt=ut;return $e&&"progress"in $e&&(Qt=$e.progress),$e&&"percent"in $e&&(Qt=$e.percent),Qt}const mt=Ie=>{let{percent:$e,success:ut,successPercent:Qt}=Ie;const Ae=se(Je({success:ut,successPercent:Qt}));return[Ae,se(se($e)-Ae)]},Me=Ie=>{let{success:$e={},strokeColor:ut}=Ie;const{strokeColor:Qt}=$e;return[Qt||ae.presetPrimaryColors.green,ut||null]},Nt=(Ie,$e,ut)=>{var Qt,Ae,Oe,We;let vt=-1,Rt=-1;if($e==="step"){const en=ut.steps,En=ut.strokeWidth;typeof Ie=="string"||typeof Ie=="undefined"?(vt=Ie==="small"?2:14,Rt=En!=null?En:8):typeof Ie=="number"?[vt,Rt]=[Ie,Ie]:[vt=14,Rt=8]=Array.isArray(Ie)?Ie:[Ie.width,Ie.height],vt*=en}else if($e==="line"){const en=ut==null?void 0:ut.strokeWidth;typeof Ie=="string"||typeof Ie=="undefined"?Rt=en||(Ie==="small"?6:8):typeof Ie=="number"?[vt,Rt]=[Ie,Ie]:[vt=-1,Rt=8]=Array.isArray(Ie)?Ie:[Ie.width,Ie.height]}else($e==="circle"||$e==="dashboard")&&(typeof Ie=="string"||typeof Ie=="undefined"?[vt,Rt]=Ie==="small"?[60,60]:[120,120]:typeof Ie=="number"?[vt,Rt]=[Ie,Ie]:Array.isArray(Ie)&&(vt=(Ae=(Qt=Ie[0])!==null&&Qt!==void 0?Qt:Ie[1])!==null&&Ae!==void 0?Ae:120,Rt=(We=(Oe=Ie[0])!==null&&Oe!==void 0?Oe:Ie[1])!==null&&We!==void 0?We:120));return[vt,Rt]},yt=3,zt=Ie=>yt/Ie*100;var It=Ie=>{const{prefixCls:$e,trailColor:ut=null,strokeLinecap:Qt="round",gapPosition:Ae,gapDegree:Oe,width:We=120,type:vt,children:Rt,success:en,size:En=We,steps:xn}=Ie,[ln,tn]=Nt(En,"circle");let{strokeWidth:Yt}=Ie;Yt===void 0&&(Yt=Math.max(zt(ln),6));const cn={width:ln,height:tn,fontSize:ln*.15+6},yn=s.useMemo(()=>{if(Oe||Oe===0)return Oe;if(vt==="dashboard")return 75},[Oe,vt]),In=mt(Ie),Kn=Ae||vt==="dashboard"&&"bottom"||void 0,qn=Object.prototype.toString.call(Ie.strokeColor)==="[object Object]",er=Me({success:en,strokeColor:Ie.strokeColor}),xr=v()(`${$e}-inner`,{[`${$e}-circle-gradient`]:qn}),Lr=s.createElement(he,{steps:xn,percent:xn?In[1]:In,strokeWidth:Yt,trailWidth:Yt,strokeColor:xn?er[1]:er,strokeLinecap:Qt,trailColor:ut,prefixCls:$e,gapDegree:yn,gapPosition:Kn}),fr=ln<=20,Jn=s.createElement("div",{className:xr,style:cn},Lr,!fr&&Rt);return fr?s.createElement(me.Z,{title:Rt},Jn):Jn},Ze=p(36237),Pt=p(63356),ct=p(16931),x=p(51636);const Ke="--progress-line-stroke-color",P="--progress-percent",A=Ie=>{const $e=Ie?"100%":"-100%";return new Ze.Keyframes(`antProgress${Ie?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},h=Ie=>{const{componentCls:$e,iconCls:ut}=Ie;return{[$e]:Object.assign(Object.assign({},(0,Pt.Wf)(Ie)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ie.fontSize},[`${$e}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${$e}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ie.remainingColor,borderRadius:Ie.lineBorderRadius},[`${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:Ie.defaultColor}},[`${$e}-success-bg, ${$e}-bg`]:{position:"relative",background:Ie.defaultColor,borderRadius:Ie.lineBorderRadius,transition:`all ${Ie.motionDurationSlow} ${Ie.motionEaseInOutCirc}`},[`${$e}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${$e}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ie.marginXXS}},[`${$e}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Ke})`]},height:"100%",width:`calc(1 / var(${P}) * 100%)`,display:"block"},[`&${$e}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${$e}-text-inner`]:{color:Ie.colorWhite,[`&${$e}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${$e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ie.colorSuccess},[`${$e}-text`]:{display:"inline-block",marginInlineStart:Ie.marginXS,color:Ie.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ut]:{fontSize:Ie.fontSize},[`&${$e}-text-outer`]:{width:"max-content"},[`&${$e}-text-outer${$e}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ie.marginXS}},[`${$e}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ze.unit)(Ie.paddingXXS)}`,[`&${$e}-text-start`]:{justifyContent:"start"},[`&${$e}-text-end`]:{justifyContent:"end"}},[`&${$e}-status-active`]:{[`${$e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ie.colorBgContainer,borderRadius:Ie.lineBorderRadius,opacity:0,animationName:A(),animationDuration:Ie.progressActiveMotionDuration,animationTimingFunction:Ie.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${$e}-rtl${$e}-status-active`]:{[`${$e}-bg::before`]:{animationName:A(!0)}},[`&${$e}-status-exception`]:{[`${$e}-bg`]:{backgroundColor:Ie.colorError},[`${$e}-text`]:{color:Ie.colorError}},[`&${$e}-status-exception ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:Ie.colorError}},[`&${$e}-status-success`]:{[`${$e}-bg`]:{backgroundColor:Ie.colorSuccess},[`${$e}-text`]:{color:Ie.colorSuccess}},[`&${$e}-status-success ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:Ie.colorSuccess}}})}},C=Ie=>{const{componentCls:$e,iconCls:ut}=Ie;return{[$e]:{[`${$e}-circle-trail`]:{stroke:Ie.remainingColor},[`&${$e}-circle ${$e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${$e}-circle ${$e}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ie.circleTextColor,fontSize:Ie.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ut]:{fontSize:Ie.circleIconFontSize}},[`${$e}-circle&-status-exception`]:{[`${$e}-text`]:{color:Ie.colorError}},[`${$e}-circle&-status-success`]:{[`${$e}-text`]:{color:Ie.colorSuccess}}},[`${$e}-inline-circle`]:{lineHeight:1,[`${$e}-inner`]:{verticalAlign:"bottom"}}}},b=Ie=>{const{componentCls:$e}=Ie;return{[$e]:{[`${$e}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ie.progressStepMinWidth,marginInlineEnd:Ie.progressStepMarginInlineEnd,backgroundColor:Ie.remainingColor,transition:`all ${Ie.motionDurationSlow}`,"&-active":{backgroundColor:Ie.defaultColor}}}}}},K=Ie=>{const{componentCls:$e,iconCls:ut}=Ie;return{[$e]:{[`${$e}-small&-line, ${$e}-small&-line ${$e}-text ${ut}`]:{fontSize:Ie.fontSizeSM}}}},ee=Ie=>({circleTextColor:Ie.colorText,defaultColor:Ie.colorInfo,remainingColor:Ie.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ie.fontSize/Ie.fontSizeSM}em`});var Ee=(0,ct.I$)("Progress",Ie=>{const $e=Ie.calc(Ie.marginXXS).div(2).equal(),ut=(0,x.mergeToken)(Ie,{progressStepMarginInlineEnd:$e,progressStepMinWidth:$e,progressActiveMotionDuration:"2.4s"});return[h(ut),C(ut),b(ut),K(ut)]},ee),le=function(Ie,$e){var ut={};for(var Qt in Ie)Object.prototype.hasOwnProperty.call(Ie,Qt)&&$e.indexOf(Qt)<0&&(ut[Qt]=Ie[Qt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Qt=Object.getOwnPropertySymbols(Ie);Ae{let $e=[];return Object.keys(Ie).forEach(ut=>{const Qt=parseFloat(ut.replace(/%/g,""));Number.isNaN(Qt)||$e.push({key:Qt,value:Ie[ut]})}),$e=$e.sort((ut,Qt)=>ut.key-Qt.key),$e.map(ut=>{let{key:Qt,value:Ae}=ut;return`${Ae} ${Qt}%`}).join(", ")},Qe=(Ie,$e)=>{const{from:ut=ae.presetPrimaryColors.blue,to:Qt=ae.presetPrimaryColors.blue,direction:Ae=$e==="rtl"?"to left":"to right"}=Ie,Oe=le(Ie,["from","to","direction"]);if(Object.keys(Oe).length!==0){const vt=ue(Oe),Rt=`linear-gradient(${Ae}, ${vt})`;return{background:Rt,[Ke]:Rt}}const We=`linear-gradient(${Ae}, ${ut}, ${Qt})`;return{background:We,[Ke]:We}};var ie=Ie=>{const{prefixCls:$e,direction:ut,percent:Qt,size:Ae,strokeWidth:Oe,strokeColor:We,strokeLinecap:vt="round",children:Rt,trailColor:en=null,percentPosition:En,success:xn}=Ie,{align:ln,type:tn}=En,Yt=We&&typeof We!="string"?Qe(We,ut):{[Ke]:We,background:We},cn=vt==="square"||vt==="butt"?0:void 0,yn=Ae!=null?Ae:[-1,Oe||(Ae==="small"?6:8)],[In,Kn]=Nt(yn,"line",{strokeWidth:Oe}),qn={backgroundColor:en||void 0,borderRadius:cn},er=Object.assign(Object.assign({width:`${se(Qt)}%`,height:Kn,borderRadius:cn},Yt),{[P]:se(Qt)/100}),xr=Je(Ie),Lr={width:`${se(xr)}%`,height:Kn,borderRadius:cn,backgroundColor:xn==null?void 0:xn.strokeColor},fr={width:In<0?"100%":In},Jn=s.createElement("div",{className:`${$e}-inner`,style:qn},s.createElement("div",{className:v()(`${$e}-bg`,`${$e}-bg-${tn}`),style:er},tn==="inner"&&Rt),xr!==void 0&&s.createElement("div",{className:`${$e}-success-bg`,style:Lr})),zr=tn==="outer"&&ln==="start",pr=tn==="outer"&&ln==="end";return tn==="outer"&&ln==="center"?s.createElement("div",{className:`${$e}-layout-bottom`},Jn,Rt):s.createElement("div",{className:`${$e}-outer`,style:fr},zr&&Rt,Jn,pr&&Rt)},tt=Ie=>{const{size:$e,steps:ut,rounding:Qt=Math.round,percent:Ae=0,strokeWidth:Oe=8,strokeColor:We,trailColor:vt=null,prefixCls:Rt,children:en}=Ie,En=Qt(ut*(Ae/100)),xn=$e==="small"?2:14,ln=$e!=null?$e:[xn,Oe],[tn,Yt]=Nt(ln,"step",{steps:ut,strokeWidth:Oe}),cn=tn/ut,yn=Array.from({length:ut});for(let In=0;In{const{prefixCls:ut,className:Qt,rootClassName:Ae,steps:Oe,strokeColor:We,percent:vt=0,size:Rt="default",showInfo:en=!0,type:En="line",status:xn,format:ln,style:tn,percentPosition:Yt={}}=Ie,cn=Te(Ie,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:yn="end",type:In="outer"}=Yt,Kn=Array.isArray(We)?We[0]:We,qn=typeof We=="string"||Array.isArray(We)?We:void 0,er=s.useMemo(()=>{if(Kn){const Sn=typeof Kn=="string"?Kn:Object.values(Kn)[0];return new Se.FastColor(Sn).isLight()}return!1},[We]),xr=s.useMemo(()=>{var Sn,Re;const lt=Je(Ie);return parseInt(lt!==void 0?(Sn=lt!=null?lt:0)===null||Sn===void 0?void 0:Sn.toString():(Re=vt!=null?vt:0)===null||Re===void 0?void 0:Re.toString(),10)},[vt,Ie.success,Ie.successPercent]),Lr=s.useMemo(()=>!at.includes(xn)&&xr>=100?"success":xn||"normal",[xn,xr]),{getPrefixCls:fr,direction:Jn,progress:zr}=s.useContext(i.E_),pr=fr("progress",ut),[ao,mo,Dn]=Ee(pr),Cn=En==="line",br=Cn&&!Oe,Or=s.useMemo(()=>{if(!en)return null;const Sn=Je(Ie);let Re;const lt=ln||(qt=>`${qt}%`),Bt=Cn&&er&&In==="inner";return In==="inner"||ln||Lr!=="exception"&&Lr!=="success"?Re=lt(se(vt),se(Sn)):Lr==="exception"?Re=Cn?s.createElement(te.Z,null):s.createElement($.Z,null):Lr==="success"&&(Re=Cn?s.createElement(M.Z,null):s.createElement(we.Z,null)),s.createElement("span",{className:v()(`${pr}-text`,{[`${pr}-text-bright`]:Bt,[`${pr}-text-${yn}`]:br,[`${pr}-text-${In}`]:br}),title:typeof Re=="string"?Re:void 0},Re)},[en,vt,xr,Lr,En,pr,ln]);let wt;En==="line"?wt=Oe?s.createElement(tt,Object.assign({},Ie,{strokeColor:qn,prefixCls:pr,steps:typeof Oe=="object"?Oe.count:Oe}),Or):s.createElement(ie,Object.assign({},Ie,{strokeColor:Kn,prefixCls:pr,direction:Jn,percentPosition:{align:yn,type:In}}),Or):(En==="circle"||En==="dashboard")&&(wt=s.createElement(It,Object.assign({},Ie,{strokeColor:Kn,prefixCls:pr,progressStatus:Lr}),Or));const dt=v()(pr,`${pr}-status-${Lr}`,{[`${pr}-${En==="dashboard"&&"circle"||En}`]:En!=="line",[`${pr}-inline-circle`]:En==="circle"&&Nt(Rt,"circle")[0]<=20,[`${pr}-line`]:br,[`${pr}-line-align-${yn}`]:br,[`${pr}-line-position-${In}`]:br,[`${pr}-steps`]:Oe,[`${pr}-show-info`]:en,[`${pr}-${Rt}`]:typeof Rt=="string",[`${pr}-rtl`]:Jn==="rtl"},zr==null?void 0:zr.className,Qt,Ae,mo,Dn);return ao(s.createElement("div",Object.assign({ref:$e,style:Object.assign(Object.assign({},zr==null?void 0:zr.style),tn),className:dt,role:"progressbar","aria-valuenow":xr,"aria-valuemin":0,"aria-valuemax":100},(0,N.Z)(cn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),wt))}),St=Ut},82326:function(nr,Zt,p){"use strict";var s=p(59301),Se=p(92310),M=p.n(Se),we=p(37463),te=p(2738),$=p(75030),Z=p(86641),v=p(45915),N=p(82855),i=p(48755),L=p(38406),B=p(2171),D=p(83397),O=p(31756),T=p(56553),E=p(24971),I=p(70045),U=p(57700),W=p(1722),re=p(90376),k=p(68525),H=p(90005),de=function(Ce,G){var ge={};for(var g in Ce)Object.prototype.hasOwnProperty.call(Ce,g)&&G.indexOf(g)<0&&(ge[g]=Ce[g]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,g=Object.getOwnPropertySymbols(Ce);j{var ge;const{prefixCls:g,bordered:j,className:Ye,rootClassName:oe,getPopupContainer:he,popupClassName:be,dropdownClassName:me,listHeight:ae=256,placement:se,listItemHeight:Je,size:mt,disabled:Me,notFoundContent:Nt,status:yt,builtinPlacements:zt,dropdownMatchSelectWidth:je,popupMatchSelectWidth:It,direction:Ze,style:Pt,allowClear:ct,variant:x,dropdownStyle:Ke,transitionName:P,tagRender:A,maxCount:h,prefix:C}=Ce,b=de(Ce,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:K,getPrefixCls:ee,renderEmpty:Ee,direction:le,virtual:ue,popupMatchSelectWidth:Qe,popupOverflow:ke}=s.useContext(i.E_),ie=(0,i.dj)("select"),[,X]=(0,U.ZP)(),tt=Je!=null?Je:X==null?void 0:X.controlHeight,Te=ee("select",g),Et=ee(),at=Ze!=null?Ze:le,{compactSize:Ge,compactItemClassnames:Ut}=(0,I.ri)(Te,at),[St,Ie]=(0,E.Z)("select",x,j),$e=(0,D.Z)(Te),[ut,Qt,Ae]=(0,re.Z)(Te,$e),Oe=s.useMemo(()=>{const{mode:mo}=Ce;if(mo!=="combobox")return mo===ce?"combobox":mo},[Ce.mode]),We=Oe==="multiple"||Oe==="tags",vt=(0,H.Z)(Ce.suffixIcon,Ce.showArrow),Rt=(ge=It!=null?It:je)!==null&&ge!==void 0?ge:Qe,{status:en,hasFeedback:En,isFormItemInput:xn,feedbackIcon:ln}=s.useContext(T.aM),tn=(0,N.F)(en,yt);let Yt;Nt!==void 0?Yt=Nt:Oe==="combobox"?Yt=null:Yt=(Ee==null?void 0:Ee("Select"))||s.createElement(L.Z,{componentName:"Select"});const{suffixIcon:cn,itemIcon:yn,removeIcon:In,clearIcon:Kn}=(0,k.Z)(Object.assign(Object.assign({},b),{multiple:We,hasFeedback:En,feedbackIcon:ln,showSuffixIcon:vt,prefixCls:Te,componentName:"Select"})),qn=ct===!0?{clearIcon:Kn}:ct,er=(0,te.Z)(b,["suffixIcon","itemIcon"]),xr=M()(be||me,{[`${Te}-dropdown-${at}`]:at==="rtl"},oe,Ae,$e,Qt),Lr=(0,O.Z)(mo=>{var Dn;return(Dn=mt!=null?mt:Ge)!==null&&Dn!==void 0?Dn:mo}),fr=s.useContext(B.Z),Jn=Me!=null?Me:fr,zr=M()({[`${Te}-lg`]:Lr==="large",[`${Te}-sm`]:Lr==="small",[`${Te}-rtl`]:at==="rtl",[`${Te}-${St}`]:Ie,[`${Te}-in-form-item`]:xn},(0,N.Z)(Te,tn,En),Ut,ie.className,Ye,oe,Ae,$e,Qt),pr=s.useMemo(()=>se!==void 0?se:at==="rtl"?"bottomRight":"bottomLeft",[se,at]),[ao]=(0,$.Cn)("SelectLike",Ke==null?void 0:Ke.zIndex);return ut(s.createElement(we.ZP,Object.assign({ref:G,virtual:ue,showSearch:ie.showSearch},er,{style:Object.assign(Object.assign({},ie.style),Pt),dropdownMatchSelectWidth:Rt,transitionName:(0,Z.m)(Et,"slide-up",P),builtinPlacements:(0,W.Z)(zt,ke),listHeight:ae,listItemHeight:tt,mode:Oe,prefixCls:Te,placement:pr,direction:at,prefix:C,suffixIcon:cn,menuItemSelectedIcon:yn,removeIcon:In,allowClear:qn,notFoundContent:Yt,className:zr,getPopupContainer:he||K,dropdownClassName:xr,disabled:Jn,dropdownStyle:Object.assign(Object.assign({},Ke),{zIndex:ao}),maxCount:We?h:void 0,tagRender:We?A:void 0})))},ve=s.forwardRef(Fe),pe=(0,v.Z)(ve,"dropdownAlign");ve.SECRET_COMBOBOX_MODE_DO_NOT_USE=ce,ve.Option=we.Wx,ve.OptGroup=we.Xo,ve._InternalPanelDoNotUseOrYouWillBeFired=pe,Zt.default=ve},1722:function(nr,Zt){"use strict";const p=Se=>{const we={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Se==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},we),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},we),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},we),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},we),{points:["br","tr"],offset:[0,-4]})}};function s(Se,M){return Se||p(M)}Zt.Z=s},90376:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return g}});var s=p(63356),Se=p(56119),M=p(16931),we=p(51636),te=p(46e3),$=p(93873);const Z=j=>{const{optionHeight:Ye,optionFontSize:oe,optionLineHeight:he,optionPadding:be}=j;return{position:"relative",display:"block",minHeight:Ye,padding:be,color:j.colorText,fontWeight:"normal",fontSize:oe,lineHeight:he,boxSizing:"border-box"}};var N=j=>{const{antCls:Ye,componentCls:oe}=j,he=`${oe}-item`,be=`&${Ye}-slide-up-enter${Ye}-slide-up-enter-active`,me=`&${Ye}-slide-up-appear${Ye}-slide-up-appear-active`,ae=`&${Ye}-slide-up-leave${Ye}-slide-up-leave-active`,se=`${oe}-dropdown-placement-`,Je=`${he}-option-selected`;return[{[`${oe}-dropdown`]:Object.assign(Object.assign({},(0,s.Wf)(j)),{position:"absolute",top:-9999,zIndex:j.zIndexPopup,boxSizing:"border-box",padding:j.paddingXXS,overflow:"hidden",fontSize:j.fontSize,fontVariant:"initial",backgroundColor:j.colorBgElevated,borderRadius:j.borderRadiusLG,outline:"none",boxShadow:j.boxShadowSecondary,[` + ${be}${se}bottomLeft, + ${me}${se}bottomLeft `]:{animationName:te.fJ},[` - ${Ce}${Ae}topLeft, - ${ge}${Ae}topLeft, - ${Ce}${Ae}topRight, - ${ge}${Ae}topRight - `]:{animationName:te.Qt},[`${ae}${Ae}bottomLeft`]:{animationName:te.Uw},[` - ${ae}${Ae}topLeft, - ${ae}${Ae}topRight - `]:{animationName:te.ly},"&-hidden":{display:"none"},[he]:Object.assign(Object.assign({},Z(j)),{cursor:"pointer",transition:`background ${j.motionDurationSlow} ease`,borderRadius:j.borderRadiusSM,"&-group":{color:j.colorTextDescription,fontSize:j.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},s.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${he}-option-disabled)`]:{backgroundColor:j.optionActiveBg},[`&-selected:not(${he}-option-disabled)`]:{color:j.optionSelectedColor,fontWeight:j.optionSelectedFontWeight,backgroundColor:j.optionSelectedBg,[`${he}-option-state`]:{color:j.colorPrimary}},"&-disabled":{[`&${he}-option-selected`]:{backgroundColor:j.colorBgContainerDisabled},color:j.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:j.calc(j.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Z(j)),{color:j.colorTextDisabled})}),[`${nt}:has(+ ${nt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${nt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,te.oN)(j,"slide-up"),(0,te.oN)(j,"slide-down"),(0,G.Fm)(j,"move-up"),(0,G.Fm)(j,"move-down")]},i=g(26743),N=g(36237);function B(j,Xe){const{componentCls:ie,inputPaddingHorizontalBase:he,borderRadius:Ce}=j,ge=j.calc(j.controlHeight).sub(j.calc(j.lineWidth).mul(2)).equal(),ae=Xe?`${ie}-${Xe}`:"";return{[`${ie}-single${ae}`]:{fontSize:j.fontSize,height:j.controlHeight,[`${ie}-selector`]:Object.assign(Object.assign({},(0,s.Wf)(j,!0)),{display:"flex",borderRadius:Ce,flex:"1 1 auto",[`${ie}-selection-wrap:after`]:{lineHeight:(0,N.unit)(ge)},[`${ie}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${ie}-selection-item, - ${ie}-selection-placeholder - `]:{display:"block",padding:0,lineHeight:(0,N.unit)(ge),transition:`all ${j.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ie}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ie}-selection-item:empty:after`,`${ie}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${ie}-show-arrow ${ie}-selection-item, - &${ie}-show-arrow ${ie}-selection-search, - &${ie}-show-arrow ${ie}-selection-placeholder - `]:{paddingInlineEnd:j.showArrowPaddingInlineEnd},[`&${ie}-open ${ie}-selection-item`]:{color:j.colorTextPlaceholder},[`&:not(${ie}-customize-input)`]:{[`${ie}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,N.unit)(he)}`,[`${ie}-selection-search-input`]:{height:ge,fontSize:j.fontSize},"&:after":{lineHeight:(0,N.unit)(ge)}}},[`&${ie}-customize-input`]:{[`${ie}-selector`]:{"&:after":{display:"none"},[`${ie}-selection-search`]:{position:"static",width:"100%"},[`${ie}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,N.unit)(he)}`,"&:after":{display:"none"}}}}}}}function D(j){const{componentCls:Xe}=j,ie=j.calc(j.controlPaddingHorizontalSM).sub(j.lineWidth).equal();return[B(j),B((0,Be.mergeToken)(j,{controlHeight:j.controlHeightSM,borderRadius:j.borderRadiusSM}),"sm"),{[`${Xe}-single${Xe}-sm`]:{[`&:not(${Xe}-customize-input)`]:{[`${Xe}-selector`]:{padding:`0 ${(0,N.unit)(ie)}`},[`&${Xe}-show-arrow ${Xe}-selection-search`]:{insetInlineEnd:j.calc(ie).add(j.calc(j.fontSize).mul(1.5)).equal()},[` - &${Xe}-show-arrow ${Xe}-selection-item, - &${Xe}-show-arrow ${Xe}-selection-placeholder - `]:{paddingInlineEnd:j.calc(j.fontSize).mul(1.5).equal()}}}},B((0,Be.mergeToken)(j,{controlHeight:j.singleItemHeightLG,fontSize:j.fontSizeLG,borderRadius:j.borderRadiusLG}),"lg")]}const O=j=>{const{fontSize:Xe,lineHeight:ie,lineWidth:he,controlHeight:Ce,controlHeightSM:ge,controlHeightLG:ae,paddingXXS:Ae,controlPaddingHorizontal:nt,zIndexPopupBase:vt,colorText:Ve,fontWeightStrong:Nt,controlItemBgActive:yt,controlItemBgHover:zt,colorBgContainer:je,colorFillSecondary:It,colorBgContainerDisabled:ze,colorTextDisabled:Pt,colorPrimaryHover:ct,colorPrimary:x,controlOutline:ke}=j,P=Ae*2,A=he*2,h=Math.min(Ce-P,Ce-A),C=Math.min(ge-P,ge-A),b=Math.min(ae-P,ae-A);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ae/2),zIndexPopup:vt+50,optionSelectedColor:Ve,optionSelectedFontWeight:Nt,optionSelectedBg:yt,optionActiveBg:zt,optionPadding:`${(Ce-Xe*ie)/2}px ${nt}px`,optionFontSize:Xe,optionLineHeight:ie,optionHeight:Ce,selectorBg:je,clearBg:je,singleItemHeightLG:ae,multipleItemBg:It,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightSM:C,multipleItemHeightLG:b,multipleSelectorBgDisabled:ze,multipleItemColorDisabled:Pt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(j.fontSize*1.25),hoverBorderColor:ct,activeBorderColor:x,activeOutlineColor:ke,selectAffixPadding:Ae}},T=(j,Xe)=>{const{componentCls:ie,antCls:he,controlOutlineWidth:Ce}=j;return{[`&:not(${ie}-customize-input) ${ie}-selector`]:{border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} ${Xe.borderColor}`,background:j.selectorBg},[`&:not(${ie}-disabled):not(${ie}-customize-input):not(${he}-pagination-size-changer)`]:{[`&:hover ${ie}-selector`]:{borderColor:Xe.hoverBorderHover},[`${ie}-focused& ${ie}-selector`]:{borderColor:Xe.activeBorderColor,boxShadow:`0 0 0 ${(0,N.unit)(Ce)} ${Xe.activeOutlineColor}`,outline:0},[`${ie}-prefix`]:{color:Xe.color}}}},E=(j,Xe)=>({[`&${j.componentCls}-status-${Xe.status}`]:Object.assign({},T(j,Xe))}),U=j=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},T(j,{borderColor:j.colorBorder,hoverBorderHover:j.hoverBorderColor,activeBorderColor:j.activeBorderColor,activeOutlineColor:j.activeOutlineColor,color:j.colorText})),E(j,{status:"error",borderColor:j.colorError,hoverBorderHover:j.colorErrorHover,activeBorderColor:j.colorError,activeOutlineColor:j.colorErrorOutline,color:j.colorError})),E(j,{status:"warning",borderColor:j.colorWarning,hoverBorderHover:j.colorWarningHover,activeBorderColor:j.colorWarning,activeOutlineColor:j.colorWarningOutline,color:j.colorWarning})),{[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{background:j.colorBgContainerDisabled,color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.multipleItemBg,border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} ${j.multipleItemBorderColor}`}})}),F=(j,Xe)=>{const{componentCls:ie,antCls:he}=j;return{[`&:not(${ie}-customize-input) ${ie}-selector`]:{background:Xe.bg,border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} transparent`,color:Xe.color},[`&:not(${ie}-disabled):not(${ie}-customize-input):not(${he}-pagination-size-changer)`]:{[`&:hover ${ie}-selector`]:{background:Xe.hoverBg},[`${ie}-focused& ${ie}-selector`]:{background:j.selectorBg,borderColor:Xe.activeBorderColor,outline:0}}}},W=(j,Xe)=>({[`&${j.componentCls}-status-${Xe.status}`]:Object.assign({},F(j,Xe))}),re=j=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},F(j,{bg:j.colorFillTertiary,hoverBg:j.colorFillSecondary,activeBorderColor:j.activeBorderColor,color:j.colorText})),W(j,{status:"error",bg:j.colorErrorBg,hoverBg:j.colorErrorBgHover,activeBorderColor:j.colorError,color:j.colorError})),W(j,{status:"warning",bg:j.colorWarningBg,hoverBg:j.colorWarningBgHover,activeBorderColor:j.colorWarning,color:j.colorWarning})),{[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{borderColor:j.colorBorder,background:j.colorBgContainerDisabled,color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.colorBgContainer,border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} ${j.colorSplit}`}})}),H=j=>({"&-borderless":{[`${j.componentCls}-selector`]:{background:"transparent",border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} transparent`},[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.multipleItemBg,border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} ${j.multipleItemBorderColor}`},[`&${j.componentCls}-status-error`]:{[`${j.componentCls}-prefix, ${j.componentCls}-selection-item`]:{color:j.colorError}},[`&${j.componentCls}-status-warning`]:{[`${j.componentCls}-prefix, ${j.componentCls}-selection-item`]:{color:j.colorWarning}}}}),k=(j,Xe)=>{const{componentCls:ie,antCls:he}=j;return{[`&:not(${ie}-customize-input) ${ie}-selector`]:{borderWidth:`0 0 ${(0,N.unit)(j.lineWidth)} 0`,borderStyle:`none none ${j.lineType} none`,borderColor:Xe.borderColor,background:j.selectorBg,borderRadius:0},[`&:not(${ie}-disabled):not(${ie}-customize-input):not(${he}-pagination-size-changer)`]:{[`&:hover ${ie}-selector`]:{borderColor:Xe.hoverBorderHover},[`${ie}-focused& ${ie}-selector`]:{borderColor:Xe.activeBorderColor,outline:0},[`${ie}-prefix`]:{color:Xe.color}}}},de=(j,Xe)=>({[`&${j.componentCls}-status-${Xe.status}`]:Object.assign({},k(j,Xe))}),ue=j=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},k(j,{borderColor:j.colorBorder,hoverBorderHover:j.hoverBorderColor,activeBorderColor:j.activeBorderColor,activeOutlineColor:j.activeOutlineColor,color:j.colorText})),de(j,{status:"error",borderColor:j.colorError,hoverBorderHover:j.colorErrorHover,activeBorderColor:j.colorError,activeOutlineColor:j.colorErrorOutline,color:j.colorError})),de(j,{status:"warning",borderColor:j.colorWarning,hoverBorderHover:j.colorWarningHover,activeBorderColor:j.colorWarning,activeOutlineColor:j.colorWarningOutline,color:j.colorWarning})),{[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.multipleItemBg,border:`${(0,N.unit)(j.lineWidth)} ${j.lineType} ${j.multipleItemBorderColor}`}})});var me=j=>({[j.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},U(j)),re(j)),H(j)),ue(j))});const ve=j=>{const{componentCls:Xe}=j;return{position:"relative",transition:`all ${j.motionDurationMid} ${j.motionEaseInOut}`,input:{cursor:"pointer"},[`${Xe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Xe}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},pe=j=>{const{componentCls:Xe}=j;return{[`${Xe}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},J=j=>{const{antCls:Xe,componentCls:ie,inputPaddingHorizontalBase:he,iconCls:Ce}=j;return{[ie]:Object.assign(Object.assign({},(0,s.Wf)(j)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ie}-customize-input) ${ie}-selector`]:Object.assign(Object.assign({},ve(j)),pe(j)),[`${ie}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},s.vS),{[`> ${Xe}-typography`]:{display:"inline"}}),[`${ie}-selection-placeholder`]:Object.assign(Object.assign({},s.vS),{flex:1,color:j.colorTextPlaceholder,pointerEvents:"none"}),[`${ie}-arrow`]:Object.assign(Object.assign({},(0,s.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:j.fontSizeIcon,marginTop:j.calc(j.fontSizeIcon).mul(-1).div(2).equal(),color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${j.motionDurationSlow} ease`,[Ce]:{verticalAlign:"top",transition:`transform ${j.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ie}-suffix)`]:{pointerEvents:"auto"}},[`${ie}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ie}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ie}-prefix`]:{flex:"none",marginInlineEnd:j.selectAffixPadding},[`${ie}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:j.fontSizeIcon,height:j.fontSizeIcon,marginTop:j.calc(j.fontSizeIcon).mul(-1).div(2).equal(),color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${j.motionDurationMid} ease, opacity ${j.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:j.colorTextTertiary}},[`&:hover ${ie}-clear`]:{opacity:1,background:j.colorBgBase,borderRadius:"50%"}}),[`${ie}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ie}-has-feedback`]:{[`${ie}-clear`]:{insetInlineEnd:j.calc(he).add(j.fontSize).add(j.paddingXS).equal()}}}}}},ye=j=>{const{componentCls:Xe}=j;return[{[Xe]:{[`&${Xe}-in-form-item`]:{width:"100%"}}},J(j),D(j),(0,i.ZP)(j),L(j),{[`${Xe}-rtl`]:{direction:"rtl"}},(0,Se.c)(j,{borderElCls:`${Xe}-selector`,focusElCls:`${Xe}-focused`})]};var p=(0,M.I$)("Select",(j,Xe)=>{let{rootPrefixCls:ie}=Xe;const he=(0,Be.mergeToken)(j,{rootPrefixCls:ie,inputPaddingHorizontalBase:j.calc(j.paddingSM).sub(1).equal(),multipleSelectItemHeight:j.multipleItemHeight,selectHeight:j.controlHeight});return[ye(he),me(he)]},O,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(nr,Zt,g){"use strict";g.d(Zt,{_z:function(){return G},gp:function(){return Be}});var s=g(36237),Se=g(63356),M=g(51636);const Be=i=>{const{multipleSelectItemHeight:N,paddingXXS:B,lineWidth:D,INTERNAL_FIXED_ITEM_MARGIN:O}=i,T=i.max(i.calc(B).sub(D).equal(),0),E=i.max(i.calc(T).sub(O).equal(),0);return{basePadding:T,containerPadding:E,itemHeight:(0,s.unit)(N),itemLineHeight:(0,s.unit)(i.calc(N).sub(i.calc(i.lineWidth).mul(2)).equal())}},te=i=>{const{multipleSelectItemHeight:N,selectHeight:B,lineWidth:D}=i;return i.calc(B).sub(N).div(2).sub(D).equal()},G=i=>{const{componentCls:N,iconCls:B,borderRadiusSM:D,motionDurationSlow:O,paddingXS:T,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:U,colorIcon:F,colorIconHover:W,INTERNAL_FIXED_ITEM_MARGIN:re}=i;return{[`${N}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${N}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:re,borderRadius:D,cursor:"default",transition:`font-size ${O}, line-height ${O}, height ${O}`,marginInlineEnd:i.calc(re).mul(2).equal(),paddingInlineStart:T,paddingInlineEnd:i.calc(T).div(2).equal(),[`${N}-disabled&`]:{color:E,borderColor:U,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:i.calc(T).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Se.Ro)()),{display:"inline-flex",alignItems:"center",color:F,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${B}`]:{verticalAlign:"-0.2em"},"&:hover":{color:W}})}}}},Z=(i,N)=>{const{componentCls:B,INTERNAL_FIXED_ITEM_MARGIN:D}=i,O=`${B}-selection-overflow`,T=i.multipleSelectItemHeight,E=te(i),U=N?`${B}-${N}`:"",F=Be(i);return{[`${B}-multiple${U}`]:Object.assign(Object.assign({},G(i)),{[`${B}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:F.basePadding,paddingBlock:F.containerPadding,borderRadius:i.borderRadius,[`${B}-disabled&`]:{background:i.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,s.unit)(D)} 0`,lineHeight:(0,s.unit)(T),visibility:"hidden",content:'"\\a0"'}},[`${B}-selection-item`]:{height:F.itemHeight,lineHeight:(0,s.unit)(F.itemLineHeight)},[`${B}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,s.unit)(T),marginBlock:D}},[`${B}-prefix`]:{marginInlineStart:i.calc(i.inputPaddingHorizontalBase).sub(F.basePadding).equal()},[`${O}-item + ${O}-item, + ${be}${se}topLeft, + ${me}${se}topLeft, + ${be}${se}topRight, + ${me}${se}topRight + `]:{animationName:te.Qt},[`${ae}${se}bottomLeft`]:{animationName:te.Uw},[` + ${ae}${se}topLeft, + ${ae}${se}topRight + `]:{animationName:te.ly},"&-hidden":{display:"none"},[he]:Object.assign(Object.assign({},Z(j)),{cursor:"pointer",transition:`background ${j.motionDurationSlow} ease`,borderRadius:j.borderRadiusSM,"&-group":{color:j.colorTextDescription,fontSize:j.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},s.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${he}-option-disabled)`]:{backgroundColor:j.optionActiveBg},[`&-selected:not(${he}-option-disabled)`]:{color:j.optionSelectedColor,fontWeight:j.optionSelectedFontWeight,backgroundColor:j.optionSelectedBg,[`${he}-option-state`]:{color:j.colorPrimary}},"&-disabled":{[`&${he}-option-selected`]:{backgroundColor:j.colorBgContainerDisabled},color:j.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:j.calc(j.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Z(j)),{color:j.colorTextDisabled})}),[`${Je}:has(+ ${Je})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Je}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,te.oN)(j,"slide-up"),(0,te.oN)(j,"slide-down"),(0,$.Fm)(j,"move-up"),(0,$.Fm)(j,"move-down")]},i=p(26743),L=p(36237);function B(j,Ye){const{componentCls:oe,inputPaddingHorizontalBase:he,borderRadius:be}=j,me=j.calc(j.controlHeight).sub(j.calc(j.lineWidth).mul(2)).equal(),ae=Ye?`${oe}-${Ye}`:"";return{[`${oe}-single${ae}`]:{fontSize:j.fontSize,height:j.controlHeight,[`${oe}-selector`]:Object.assign(Object.assign({},(0,s.Wf)(j,!0)),{display:"flex",borderRadius:be,flex:"1 1 auto",[`${oe}-selection-wrap:after`]:{lineHeight:(0,L.unit)(me)},[`${oe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${oe}-selection-item, + ${oe}-selection-placeholder + `]:{display:"block",padding:0,lineHeight:(0,L.unit)(me),transition:`all ${j.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${oe}-selection-item:empty:after`,`${oe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${oe}-show-arrow ${oe}-selection-item, + &${oe}-show-arrow ${oe}-selection-search, + &${oe}-show-arrow ${oe}-selection-placeholder + `]:{paddingInlineEnd:j.showArrowPaddingInlineEnd},[`&${oe}-open ${oe}-selection-item`]:{color:j.colorTextPlaceholder},[`&:not(${oe}-customize-input)`]:{[`${oe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,L.unit)(he)}`,[`${oe}-selection-search-input`]:{height:me,fontSize:j.fontSize},"&:after":{lineHeight:(0,L.unit)(me)}}},[`&${oe}-customize-input`]:{[`${oe}-selector`]:{"&:after":{display:"none"},[`${oe}-selection-search`]:{position:"static",width:"100%"},[`${oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,L.unit)(he)}`,"&:after":{display:"none"}}}}}}}function D(j){const{componentCls:Ye}=j,oe=j.calc(j.controlPaddingHorizontalSM).sub(j.lineWidth).equal();return[B(j),B((0,we.mergeToken)(j,{controlHeight:j.controlHeightSM,borderRadius:j.borderRadiusSM}),"sm"),{[`${Ye}-single${Ye}-sm`]:{[`&:not(${Ye}-customize-input)`]:{[`${Ye}-selector`]:{padding:`0 ${(0,L.unit)(oe)}`},[`&${Ye}-show-arrow ${Ye}-selection-search`]:{insetInlineEnd:j.calc(oe).add(j.calc(j.fontSize).mul(1.5)).equal()},[` + &${Ye}-show-arrow ${Ye}-selection-item, + &${Ye}-show-arrow ${Ye}-selection-placeholder + `]:{paddingInlineEnd:j.calc(j.fontSize).mul(1.5).equal()}}}},B((0,we.mergeToken)(j,{controlHeight:j.singleItemHeightLG,fontSize:j.fontSizeLG,borderRadius:j.borderRadiusLG}),"lg")]}const O=j=>{const{fontSize:Ye,lineHeight:oe,lineWidth:he,controlHeight:be,controlHeightSM:me,controlHeightLG:ae,paddingXXS:se,controlPaddingHorizontal:Je,zIndexPopupBase:mt,colorText:Me,fontWeightStrong:Nt,controlItemBgActive:yt,controlItemBgHover:zt,colorBgContainer:je,colorFillSecondary:It,colorBgContainerDisabled:Ze,colorTextDisabled:Pt,colorPrimaryHover:ct,colorPrimary:x,controlOutline:Ke}=j,P=se*2,A=he*2,h=Math.min(be-P,be-A),C=Math.min(me-P,me-A),b=Math.min(ae-P,ae-A);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(se/2),zIndexPopup:mt+50,optionSelectedColor:Me,optionSelectedFontWeight:Nt,optionSelectedBg:yt,optionActiveBg:zt,optionPadding:`${(be-Ye*oe)/2}px ${Je}px`,optionFontSize:Ye,optionLineHeight:oe,optionHeight:be,selectorBg:je,clearBg:je,singleItemHeightLG:ae,multipleItemBg:It,multipleItemBorderColor:"transparent",multipleItemHeight:h,multipleItemHeightSM:C,multipleItemHeightLG:b,multipleSelectorBgDisabled:Ze,multipleItemColorDisabled:Pt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(j.fontSize*1.25),hoverBorderColor:ct,activeBorderColor:x,activeOutlineColor:Ke,selectAffixPadding:se}},T=(j,Ye)=>{const{componentCls:oe,antCls:he,controlOutlineWidth:be}=j;return{[`&:not(${oe}-customize-input) ${oe}-selector`]:{border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} ${Ye.borderColor}`,background:j.selectorBg},[`&:not(${oe}-disabled):not(${oe}-customize-input):not(${he}-pagination-size-changer)`]:{[`&:hover ${oe}-selector`]:{borderColor:Ye.hoverBorderHover},[`${oe}-focused& ${oe}-selector`]:{borderColor:Ye.activeBorderColor,boxShadow:`0 0 0 ${(0,L.unit)(be)} ${Ye.activeOutlineColor}`,outline:0},[`${oe}-prefix`]:{color:Ye.color}}}},E=(j,Ye)=>({[`&${j.componentCls}-status-${Ye.status}`]:Object.assign({},T(j,Ye))}),I=j=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},T(j,{borderColor:j.colorBorder,hoverBorderHover:j.hoverBorderColor,activeBorderColor:j.activeBorderColor,activeOutlineColor:j.activeOutlineColor,color:j.colorText})),E(j,{status:"error",borderColor:j.colorError,hoverBorderHover:j.colorErrorHover,activeBorderColor:j.colorError,activeOutlineColor:j.colorErrorOutline,color:j.colorError})),E(j,{status:"warning",borderColor:j.colorWarning,hoverBorderHover:j.colorWarningHover,activeBorderColor:j.colorWarning,activeOutlineColor:j.colorWarningOutline,color:j.colorWarning})),{[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{background:j.colorBgContainerDisabled,color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.multipleItemBg,border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} ${j.multipleItemBorderColor}`}})}),U=(j,Ye)=>{const{componentCls:oe,antCls:he}=j;return{[`&:not(${oe}-customize-input) ${oe}-selector`]:{background:Ye.bg,border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} transparent`,color:Ye.color},[`&:not(${oe}-disabled):not(${oe}-customize-input):not(${he}-pagination-size-changer)`]:{[`&:hover ${oe}-selector`]:{background:Ye.hoverBg},[`${oe}-focused& ${oe}-selector`]:{background:j.selectorBg,borderColor:Ye.activeBorderColor,outline:0}}}},W=(j,Ye)=>({[`&${j.componentCls}-status-${Ye.status}`]:Object.assign({},U(j,Ye))}),re=j=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},U(j,{bg:j.colorFillTertiary,hoverBg:j.colorFillSecondary,activeBorderColor:j.activeBorderColor,color:j.colorText})),W(j,{status:"error",bg:j.colorErrorBg,hoverBg:j.colorErrorBgHover,activeBorderColor:j.colorError,color:j.colorError})),W(j,{status:"warning",bg:j.colorWarningBg,hoverBg:j.colorWarningBgHover,activeBorderColor:j.colorWarning,color:j.colorWarning})),{[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{borderColor:j.colorBorder,background:j.colorBgContainerDisabled,color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.colorBgContainer,border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} ${j.colorSplit}`}})}),k=j=>({"&-borderless":{[`${j.componentCls}-selector`]:{background:"transparent",border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} transparent`},[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.multipleItemBg,border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} ${j.multipleItemBorderColor}`},[`&${j.componentCls}-status-error`]:{[`${j.componentCls}-prefix, ${j.componentCls}-selection-item`]:{color:j.colorError}},[`&${j.componentCls}-status-warning`]:{[`${j.componentCls}-prefix, ${j.componentCls}-selection-item`]:{color:j.colorWarning}}}}),H=(j,Ye)=>{const{componentCls:oe,antCls:he}=j;return{[`&:not(${oe}-customize-input) ${oe}-selector`]:{borderWidth:`0 0 ${(0,L.unit)(j.lineWidth)} 0`,borderStyle:`none none ${j.lineType} none`,borderColor:Ye.borderColor,background:j.selectorBg,borderRadius:0},[`&:not(${oe}-disabled):not(${oe}-customize-input):not(${he}-pagination-size-changer)`]:{[`&:hover ${oe}-selector`]:{borderColor:Ye.hoverBorderHover},[`${oe}-focused& ${oe}-selector`]:{borderColor:Ye.activeBorderColor,outline:0},[`${oe}-prefix`]:{color:Ye.color}}}},de=(j,Ye)=>({[`&${j.componentCls}-status-${Ye.status}`]:Object.assign({},H(j,Ye))}),ce=j=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},H(j,{borderColor:j.colorBorder,hoverBorderHover:j.hoverBorderColor,activeBorderColor:j.activeBorderColor,activeOutlineColor:j.activeOutlineColor,color:j.colorText})),de(j,{status:"error",borderColor:j.colorError,hoverBorderHover:j.colorErrorHover,activeBorderColor:j.colorError,activeOutlineColor:j.colorErrorOutline,color:j.colorError})),de(j,{status:"warning",borderColor:j.colorWarning,hoverBorderHover:j.colorWarningHover,activeBorderColor:j.colorWarning,activeOutlineColor:j.colorWarningOutline,color:j.colorWarning})),{[`&${j.componentCls}-disabled`]:{[`&:not(${j.componentCls}-customize-input) ${j.componentCls}-selector`]:{color:j.colorTextDisabled}},[`&${j.componentCls}-multiple ${j.componentCls}-selection-item`]:{background:j.multipleItemBg,border:`${(0,L.unit)(j.lineWidth)} ${j.lineType} ${j.multipleItemBorderColor}`}})});var ve=j=>({[j.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},I(j)),re(j)),k(j)),ce(j))});const pe=j=>{const{componentCls:Ye}=j;return{position:"relative",transition:`all ${j.motionDurationMid} ${j.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ye}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ye}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ce=j=>{const{componentCls:Ye}=j;return{[`${Ye}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},G=j=>{const{antCls:Ye,componentCls:oe,inputPaddingHorizontalBase:he,iconCls:be}=j;return{[oe]:Object.assign(Object.assign({},(0,s.Wf)(j)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${oe}-customize-input) ${oe}-selector`]:Object.assign(Object.assign({},pe(j)),Ce(j)),[`${oe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},s.vS),{[`> ${Ye}-typography`]:{display:"inline"}}),[`${oe}-selection-placeholder`]:Object.assign(Object.assign({},s.vS),{flex:1,color:j.colorTextPlaceholder,pointerEvents:"none"}),[`${oe}-arrow`]:Object.assign(Object.assign({},(0,s.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:j.fontSizeIcon,marginTop:j.calc(j.fontSizeIcon).mul(-1).div(2).equal(),color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${j.motionDurationSlow} ease`,[be]:{verticalAlign:"top",transition:`transform ${j.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${oe}-suffix)`]:{pointerEvents:"auto"}},[`${oe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${oe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${oe}-prefix`]:{flex:"none",marginInlineEnd:j.selectAffixPadding},[`${oe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:j.fontSizeIcon,height:j.fontSizeIcon,marginTop:j.calc(j.fontSizeIcon).mul(-1).div(2).equal(),color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${j.motionDurationMid} ease, opacity ${j.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:j.colorTextTertiary}},[`&:hover ${oe}-clear`]:{opacity:1,background:j.colorBgBase,borderRadius:"50%"}}),[`${oe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${oe}-has-feedback`]:{[`${oe}-clear`]:{insetInlineEnd:j.calc(he).add(j.fontSize).add(j.paddingXS).equal()}}}}}},ge=j=>{const{componentCls:Ye}=j;return[{[Ye]:{[`&${Ye}-in-form-item`]:{width:"100%"}}},G(j),D(j),(0,i.ZP)(j),N(j),{[`${Ye}-rtl`]:{direction:"rtl"}},(0,Se.c)(j,{borderElCls:`${Ye}-selector`,focusElCls:`${Ye}-focused`})]};var g=(0,M.I$)("Select",(j,Ye)=>{let{rootPrefixCls:oe}=Ye;const he=(0,we.mergeToken)(j,{rootPrefixCls:oe,inputPaddingHorizontalBase:j.calc(j.paddingSM).sub(1).equal(),multipleSelectItemHeight:j.multipleItemHeight,selectHeight:j.controlHeight});return[ge(he),ve(he)]},O,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(nr,Zt,p){"use strict";p.d(Zt,{_z:function(){return $},gp:function(){return we}});var s=p(36237),Se=p(63356),M=p(51636);const we=i=>{const{multipleSelectItemHeight:L,paddingXXS:B,lineWidth:D,INTERNAL_FIXED_ITEM_MARGIN:O}=i,T=i.max(i.calc(B).sub(D).equal(),0),E=i.max(i.calc(T).sub(O).equal(),0);return{basePadding:T,containerPadding:E,itemHeight:(0,s.unit)(L),itemLineHeight:(0,s.unit)(i.calc(L).sub(i.calc(i.lineWidth).mul(2)).equal())}},te=i=>{const{multipleSelectItemHeight:L,selectHeight:B,lineWidth:D}=i;return i.calc(B).sub(L).div(2).sub(D).equal()},$=i=>{const{componentCls:L,iconCls:B,borderRadiusSM:D,motionDurationSlow:O,paddingXS:T,multipleItemColorDisabled:E,multipleItemBorderColorDisabled:I,colorIcon:U,colorIconHover:W,INTERNAL_FIXED_ITEM_MARGIN:re}=i;return{[`${L}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${L}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:re,borderRadius:D,cursor:"default",transition:`font-size ${O}, line-height ${O}, height ${O}`,marginInlineEnd:i.calc(re).mul(2).equal(),paddingInlineStart:T,paddingInlineEnd:i.calc(T).div(2).equal(),[`${L}-disabled&`]:{color:E,borderColor:I,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:i.calc(T).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Se.Ro)()),{display:"inline-flex",alignItems:"center",color:U,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${B}`]:{verticalAlign:"-0.2em"},"&:hover":{color:W}})}}}},Z=(i,L)=>{const{componentCls:B,INTERNAL_FIXED_ITEM_MARGIN:D}=i,O=`${B}-selection-overflow`,T=i.multipleSelectItemHeight,E=te(i),I=L?`${B}-${L}`:"",U=we(i);return{[`${B}-multiple${I}`]:Object.assign(Object.assign({},$(i)),{[`${B}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:U.basePadding,paddingBlock:U.containerPadding,borderRadius:i.borderRadius,[`${B}-disabled&`]:{background:i.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,s.unit)(D)} 0`,lineHeight:(0,s.unit)(T),visibility:"hidden",content:'"\\a0"'}},[`${B}-selection-item`]:{height:U.itemHeight,lineHeight:(0,s.unit)(U.itemLineHeight)},[`${B}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,s.unit)(T),marginBlock:D}},[`${B}-prefix`]:{marginInlineStart:i.calc(i.inputPaddingHorizontalBase).sub(U.basePadding).equal()},[`${O}-item + ${O}-item, ${B}-prefix + ${B}-selection-wrap - `]:{[`${B}-selection-search`]:{marginInlineStart:0},[`${B}-selection-placeholder`]:{insetInlineStart:0}},[`${O}-item-suffix`]:{minHeight:F.itemHeight,marginBlock:D},[`${B}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:i.calc(i.inputPaddingHorizontalBase).sub(E).equal(),"\n &-input,\n &-mirror\n ":{height:T,fontFamily:i.fontFamily,lineHeight:(0,s.unit)(T),transition:`all ${i.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${B}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:i.calc(i.inputPaddingHorizontalBase).sub(F.basePadding).equal(),insetInlineEnd:i.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${i.motionDurationSlow}`}})}};function v(i,N){const{componentCls:B}=i,D=N?`${B}-${N}`:"",O={[`${B}-multiple${D}`]:{fontSize:i.fontSize,[`${B}-selector`]:{[`${B}-show-search&`]:{cursor:"text"}},[` + `]:{[`${B}-selection-search`]:{marginInlineStart:0},[`${B}-selection-placeholder`]:{insetInlineStart:0}},[`${O}-item-suffix`]:{minHeight:U.itemHeight,marginBlock:D},[`${B}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:i.calc(i.inputPaddingHorizontalBase).sub(E).equal(),"\n &-input,\n &-mirror\n ":{height:T,fontFamily:i.fontFamily,lineHeight:(0,s.unit)(T),transition:`all ${i.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${B}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:i.calc(i.inputPaddingHorizontalBase).sub(U.basePadding).equal(),insetInlineEnd:i.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${i.motionDurationSlow}`}})}};function v(i,L){const{componentCls:B}=i,D=L?`${B}-${L}`:"",O={[`${B}-multiple${D}`]:{fontSize:i.fontSize,[`${B}-selector`]:{[`${B}-show-search&`]:{cursor:"text"}},[` &${B}-show-arrow ${B}-selector, &${B}-allow-clear ${B}-selector - `]:{paddingInlineEnd:i.calc(i.fontSizeIcon).add(i.controlPaddingHorizontal).equal()}}};return[Z(i,N),O]}const L=i=>{const{componentCls:N}=i,B=(0,M.mergeToken)(i,{selectHeight:i.controlHeightSM,multipleSelectItemHeight:i.multipleItemHeightSM,borderRadius:i.borderRadiusSM,borderRadiusSM:i.borderRadiusXS}),D=(0,M.mergeToken)(i,{fontSize:i.fontSizeLG,selectHeight:i.controlHeightLG,multipleSelectItemHeight:i.multipleItemHeightLG,borderRadius:i.borderRadiusLG,borderRadiusSM:i.borderRadius});return[v(i),v(B,"sm"),{[`${N}-multiple${N}-sm`]:{[`${N}-selection-placeholder`]:{insetInline:i.calc(i.controlPaddingHorizontalSM).sub(i.lineWidth).equal()},[`${N}-selection-search`]:{marginInlineStart:2}}},v(D,"lg")]};Zt.ZP=L},68525:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return v}});var s=g(59301),Se=g(40001),M=g(19248),Be=g(99267),te=g(84105),G=g(58617),Z=g(47472);function v(L){let{suffixIcon:i,clearIcon:N,menuItemSelectedIcon:B,removeIcon:D,loading:O,multiple:T,hasFeedback:E,prefixCls:U,showSuffixIcon:F,feedbackIcon:W,showArrow:re,componentName:H}=L;const k=N!=null?N:s.createElement(M.Z,null),de=ve=>i===null&&!E&&!re?null:s.createElement(s.Fragment,null,F!==!1&&ve,E&&W);let ue=null;if(i!==void 0)ue=de(i);else if(O)ue=de(s.createElement(G.Z,{spin:!0}));else{const ve=`${U}-suffix`;ue=pe=>{let{open:J,showSearch:ye}=pe;return de(J&&ye?s.createElement(Z.Z,{className:ve}):s.createElement(te.Z,{className:ve}))}}let Fe=null;B!==void 0?Fe=B:T?Fe=s.createElement(Se.Z,null):Fe=null;let me=null;return D!==void 0?me=D:me=s.createElement(Be.Z,null),{clearIcon:k,suffixIcon:ue,itemIcon:Fe,removeIcon:me}}},90005:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return s}});function s(Se,M){return M!==void 0?M:Se!==null}},70858:function(nr,Zt,g){"use strict";g.d(Zt,{default:function(){return mh}});var s=g(59301),Se={},M="rc-table-internal-hook",Be=g(42978),te=g(6089),G=g(34280),Z=g(13697),v=g(4676);function L(Y){var X=s.createContext(void 0),xe=function(rt){var pt=rt.value,Dt=rt.children,Ft=s.useRef(pt);Ft.current=pt;var Vt=s.useState(function(){return{getValue:function(){return Ft.current},listeners:new Set}}),kt=(0,Be.Z)(Vt,1),wn=kt[0];return(0,G.Z)(function(){(0,v.unstable_batchedUpdates)(function(){wn.listeners.forEach(function(rn){rn(pt)})})},[pt]),s.createElement(X.Provider,{value:wn},Dt)};return{Context:X,Provider:xe,defaultValue:Y}}function i(Y,X){var xe=(0,te.Z)(typeof X=="function"?X:function(rn){if(X===void 0)return rn;if(!Array.isArray(X))return rn[X];var on={};return X.forEach(function(nn){on[nn]=rn[nn]}),on}),Ke=s.useContext(Y==null?void 0:Y.Context),rt=Ke||{},pt=rt.listeners,Dt=rt.getValue,Ft=s.useRef();Ft.current=xe(Ke?Dt():Y==null?void 0:Y.defaultValue);var Vt=s.useState({}),kt=(0,Be.Z)(Vt,2),wn=kt[1];return(0,G.Z)(function(){if(!Ke)return;function rn(on){var nn=xe(on);(0,Z.Z)(Ft.current,nn,!0)||wn({})}return pt.add(rn),function(){pt.delete(rn)}},[Ke]),Ft.current}var N=g(54476),B=g(8654);function D(){var Y=s.createContext(null);function X(){return s.useContext(Y)}function xe(rt,pt){var Dt=(0,B.Yr)(rt),Ft=function(kt,wn){var rn=Dt?{ref:wn}:{},on=s.useRef(0),nn=s.useRef(kt),dn=X();return dn!==null?s.createElement(rt,(0,N.Z)({},kt,rn)):((!pt||pt(nn.current,kt))&&(on.current+=1),nn.current=kt,s.createElement(Y.Provider,{value:on.current},s.createElement(rt,(0,N.Z)({},kt,rn))))};return Dt?s.forwardRef(Ft):Ft}function Ke(rt,pt){var Dt=(0,B.Yr)(rt),Ft=function(kt,wn){var rn=Dt?{ref:wn}:{};return X(),s.createElement(rt,(0,N.Z)({},kt,rn))};return Dt?s.memo(s.forwardRef(Ft),pt):s.memo(Ft,pt)}return{makeImmutable:xe,responseImmutable:Ke,useImmutableMark:X}}var O=D(),T=O.makeImmutable,E=O.responseImmutable,U=O.useImmutableMark,F=D(),W=F.makeImmutable,re=F.responseImmutable,H=F.useImmutableMark,k=L(),de=k;function ue(Y,X){var xe=React.useRef(0);xe.current+=1;var Ke=React.useRef(Y),rt=[];Object.keys(Y||{}).map(function(Dt){var Ft;(Y==null?void 0:Y[Dt])!==((Ft=Ke.current)===null||Ft===void 0?void 0:Ft[Dt])&&rt.push(Dt)}),Ke.current=Y;var pt=React.useRef([]);return rt.length&&(pt.current=rt),React.useDebugValue(xe.current),React.useDebugValue(pt.current.join(", ")),X&&console.log("".concat(X,":"),xe.current,pt.current),xe.current}var Fe=null,me=null,ve=g(76190),pe=g(33885),J=g(20068),ye=g(92310),p=g.n(ye),j=g(80547),Xe=g(97938),ie=g(48736),he=s.createContext({renderWithProps:!1}),Ce=he,ge="RC_TABLE_KEY";function ae(Y){return Y==null?[]:Array.isArray(Y)?Y:[Y]}function Ae(Y){var X=[],xe={};return Y.forEach(function(Ke){for(var rt=Ke||{},pt=rt.key,Dt=rt.dataIndex,Ft=pt||ae(Dt).join("-")||ge;xe[Ft];)Ft="".concat(Ft,"_next");xe[Ft]=!0,X.push(Ft)}),X}function nt(Y){return Y!=null}function vt(Y){return typeof Y=="number"&&!Number.isNaN(Y)}function Ve(Y){return Y&&(0,ve.Z)(Y)==="object"&&!Array.isArray(Y)&&!s.isValidElement(Y)}function Nt(Y,X,xe,Ke,rt,pt){var Dt=s.useContext(Ce),Ft=H(),Vt=(0,j.Z)(function(){if(nt(Ke))return[Ke];var kt=X==null||X===""?[]:Array.isArray(X)?X:[X],wn=(0,Xe.Z)(Y,kt),rn=wn,on=void 0;if(rt){var nn=rt(wn,Y,xe);Ve(nn)?(rn=nn.children,on=nn.props,Dt.renderWithProps=!0):rn=nn}return[rn,on]},[Ft,Y,Ke,X,rt,xe],function(kt,wn){if(pt){var rn=(0,Be.Z)(kt,2),on=rn[1],nn=(0,Be.Z)(wn,2),dn=nn[1];return pt(dn,on)}return Dt.renderWithProps?!0:!(0,Z.Z)(kt,wn,!0)});return Vt}function yt(Y,X,xe,Ke){var rt=Y+X-1;return Y<=Ke&&rt>=xe}function zt(Y,X){return i(de,function(xe){var Ke=yt(Y,X||1,xe.hoverStartRow,xe.hoverEndRow);return[Ke,xe.onHover]})}var je=g(70425),It=function(X){var xe=X.ellipsis,Ke=X.rowType,rt=X.children,pt,Dt=xe===!0?{showTitle:!0}:xe;return Dt&&(Dt.showTitle||Ke==="header")&&(typeof rt=="string"||typeof rt=="number"?pt=rt.toString():s.isValidElement(rt)&&typeof rt.props.children=="string"&&(pt=rt.props.children)),pt};function ze(Y){var X,xe,Ke,rt,pt,Dt,Ft,Vt,kt=Y.component,wn=Y.children,rn=Y.ellipsis,on=Y.scope,nn=Y.prefixCls,dn=Y.className,rr=Y.align,Pn=Y.record,Ar=Y.render,lr=Y.dataIndex,tr=Y.renderIndex,vr=Y.shouldCellUpdate,Cr=Y.index,Rr=Y.rowType,Dr=Y.colSpan,Eo=Y.rowSpan,no=Y.fixLeft,so=Y.fixRight,Mr=Y.firstFixLeft,Pr=Y.lastFixLeft,Tr=Y.firstFixRight,Er=Y.lastFixRight,mr=Y.appendNode,Nr=Y.additionalProps,Hr=Nr===void 0?{}:Nr,Yr=Y.isSticky,Br="".concat(nn,"-cell"),Vo=i(de,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Wo=Vo.supportSticky,Ma=Vo.allColumnsFixedLeft,Sa=Vo.rowHoverable,la=Nt(Pn,lr,tr,wn,Ar,vr),ur=(0,Be.Z)(la,2),QA=ur[0],ii=ur[1],ai={},ua=typeof no=="number"&&Wo,BA=typeof so=="number"&&Wo;ua&&(ai.position="sticky",ai.left=no),BA&&(ai.position="sticky",ai.right=so);var Jr=(X=(xe=(Ke=ii==null?void 0:ii.colSpan)!==null&&Ke!==void 0?Ke:Hr.colSpan)!==null&&xe!==void 0?xe:Dr)!==null&&X!==void 0?X:1,uo=(rt=(pt=(Dt=ii==null?void 0:ii.rowSpan)!==null&&Dt!==void 0?Dt:Hr.rowSpan)!==null&&pt!==void 0?pt:Eo)!==null&&rt!==void 0?rt:1,kr=zt(Cr,uo),ro=(0,Be.Z)(kr,2),bi=ro[0],Ui=ro[1],Ji=(0,je.zX)(function(Fa){var qi;Pn&&Ui(Cr,Cr+uo-1),Hr==null||(qi=Hr.onMouseEnter)===null||qi===void 0||qi.call(Hr,Fa)}),Zi=(0,je.zX)(function(Fa){var qi;Pn&&Ui(-1,-1),Hr==null||(qi=Hr.onMouseLeave)===null||qi===void 0||qi.call(Hr,Fa)});if(Jr===0||uo===0)return null;var Da=(Ft=Hr.title)!==null&&Ft!==void 0?Ft:It({rowType:Rr,ellipsis:rn,children:QA}),jA=p()(Br,dn,(Vt={},(0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)(Vt,"".concat(Br,"-fix-left"),ua&&Wo),"".concat(Br,"-fix-left-first"),Mr&&Wo),"".concat(Br,"-fix-left-last"),Pr&&Wo),"".concat(Br,"-fix-left-all"),Pr&&Ma&&Wo),"".concat(Br,"-fix-right"),BA&&Wo),"".concat(Br,"-fix-right-first"),Tr&&Wo),"".concat(Br,"-fix-right-last"),Er&&Wo),"".concat(Br,"-ellipsis"),rn),"".concat(Br,"-with-append"),mr),"".concat(Br,"-fix-sticky"),(ua||BA)&&Yr&&Wo),(0,J.Z)(Vt,"".concat(Br,"-row-hover"),!ii&&bi)),Hr.className,ii==null?void 0:ii.className),to={};rr&&(to.textAlign=rr);var Wr=(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},ii==null?void 0:ii.style),ai),to),Hr.style),Ci=QA;return(0,ve.Z)(Ci)==="object"&&!Array.isArray(Ci)&&!s.isValidElement(Ci)&&(Ci=null),rn&&(Pr||Tr)&&(Ci=s.createElement("span",{className:"".concat(Br,"-content")},Ci)),s.createElement(kt,(0,N.Z)({},ii,Hr,{className:jA,style:Wr,title:Da,scope:on,onMouseEnter:Sa?Ji:void 0,onMouseLeave:Sa?Zi:void 0,colSpan:Jr!==1?Jr:null,rowSpan:uo!==1?uo:null}),mr,Ci)}var Pt=s.memo(ze);function ct(Y,X,xe,Ke,rt){var pt=xe[Y]||{},Dt=xe[X]||{},Ft,Vt;pt.fixed==="left"?Ft=Ke.left[rt==="rtl"?X:Y]:Dt.fixed==="right"&&(Vt=Ke.right[rt==="rtl"?Y:X]);var kt=!1,wn=!1,rn=!1,on=!1,nn=xe[X+1],dn=xe[Y-1],rr=nn&&!nn.fixed||dn&&!dn.fixed||xe.every(function(vr){return vr.fixed==="left"});if(rt==="rtl"){if(Ft!==void 0){var Pn=dn&&dn.fixed==="left";on=!Pn&&rr}else if(Vt!==void 0){var Ar=nn&&nn.fixed==="right";rn=!Ar&&rr}}else if(Ft!==void 0){var lr=nn&&nn.fixed==="left";kt=!lr&&rr}else if(Vt!==void 0){var tr=dn&&dn.fixed==="right";wn=!tr&&rr}return{fixLeft:Ft,fixRight:Vt,lastFixLeft:kt,firstFixRight:wn,lastFixRight:rn,firstFixLeft:on,isSticky:Ke.isSticky}}var x=s.createContext({}),ke=x;function P(Y){var X=Y.className,xe=Y.index,Ke=Y.children,rt=Y.colSpan,pt=rt===void 0?1:rt,Dt=Y.rowSpan,Ft=Y.align,Vt=i(de,["prefixCls","direction"]),kt=Vt.prefixCls,wn=Vt.direction,rn=s.useContext(ke),on=rn.scrollColumnIndex,nn=rn.stickyOffsets,dn=rn.flattenColumns,rr=xe+pt-1,Pn=rr+1===on?pt+1:pt,Ar=ct(xe,xe+Pn-1,dn,nn,wn);return s.createElement(Pt,(0,N.Z)({className:X,index:xe,component:"td",prefixCls:kt,record:null,dataIndex:null,align:Ft,colSpan:Pn,rowSpan:Dt,render:function(){return Ke}},Ar))}var A=g(75931),h=["children"];function C(Y){var X=Y.children,xe=(0,A.Z)(Y,h);return s.createElement("tr",xe,X)}function b(Y){var X=Y.children;return X}b.Row=C,b.Cell=P;var K=b;function ee(Y){var X=Y.children,xe=Y.stickyOffsets,Ke=Y.flattenColumns,rt=i(de,"prefixCls"),pt=Ke.length-1,Dt=Ke[pt],Ft=s.useMemo(function(){return{stickyOffsets:xe,flattenColumns:Ke,scrollColumnIndex:Dt!=null&&Dt.scrollbar?pt:null}},[Dt,Ke,pt,xe]);return s.createElement(ke.Provider,{value:Ft},s.createElement("tfoot",{className:"".concat(rt,"-summary")},X))}var Ee=re(ee),le=K,ce=g(29301),Qe=g(24514),He=g(75152),oe=g(26112);function $(Y,X,xe,Ke,rt,pt,Dt){Y.push({record:X,indent:xe,index:Dt});var Ft=pt(X),Vt=rt==null?void 0:rt.has(Ft);if(X&&Array.isArray(X[Ke])&&Vt)for(var kt=0;kt1?Mr-1:0),Tr=1;Tr=1)),style:(0,pe.Z)((0,pe.Z)({},xe),Ar==null?void 0:Ar.style)}),dn.map(function(no,so){var Mr=no.render,Pr=no.dataIndex,Tr=no.className,Er=Ie(on,no,so,Vt,rt),mr=Er.key,Nr=Er.fixedInfo,Hr=Er.appendCellNode,Yr=Er.additionalCellProps;return s.createElement(Pt,(0,N.Z)({className:Tr,ellipsis:no.ellipsis,align:no.align,scope:no.rowScope,component:no.rowScope?rn:wn,prefixCls:nn,key:mr,record:Ke,index:rt,renderIndex:pt,dataIndex:Pr,render:Mr,shouldCellUpdate:no.shouldCellUpdate},Nr,{appendNode:Hr,additionalProps:Yr}))})),Dr;if(tr&&(vr.current||lr)){var Eo=Pn(Ke,rt,Vt+1,lr);Dr=s.createElement(at,{expanded:lr,className:p()("".concat(nn,"-expanded-row"),"".concat(nn,"-expanded-row-level-").concat(Vt+1),Cr),prefixCls:nn,component:kt,cellComponent:wn,colSpan:dn.length,isEmpty:!1},Eo)}return s.createElement(s.Fragment,null,Rr,Dr)}var ut=re($e);function Qt(Y){var X=Y.columnKey,xe=Y.onColumnResize,Ke=s.useRef();return(0,G.Z)(function(){Ke.current&&xe(X,Ke.current.offsetWidth)},[]),s.createElement(ce.Z,{data:X},s.createElement("td",{ref:Ke,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var se=g(29194);function Oe(Y){var X=Y.prefixCls,xe=Y.columnsKey,Ke=Y.onColumnResize,rt=s.useRef(null);return s.createElement("tr",{"aria-hidden":"true",className:"".concat(X,"-measure-row"),style:{height:0,fontSize:0},ref:rt},s.createElement(ce.Z.Collection,{onBatchResize:function(Dt){(0,se.Z)(rt.current)&&Dt.forEach(function(Ft){var Vt=Ft.data,kt=Ft.size;Ke(Vt,kt.offsetWidth)})}},xe.map(function(pt){return s.createElement(Qt,{key:pt,columnKey:pt,onColumnResize:Ke})})))}function We(Y){var X=Y.data,xe=Y.measureColumnWidth,Ke=i(de,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),rt=Ke.prefixCls,pt=Ke.getComponent,Dt=Ke.onColumnResize,Ft=Ke.flattenColumns,Vt=Ke.getRowKey,kt=Ke.expandedKeys,wn=Ke.childrenColumnName,rn=Ke.emptyNode,on=et(X,wn,kt,Vt),nn=s.useRef({renderWithProps:!1}),dn=pt(["body","wrapper"],"tbody"),rr=pt(["body","row"],"tr"),Pn=pt(["body","cell"],"td"),Ar=pt(["body","cell"],"th"),lr;X.length?lr=on.map(function(vr,Cr){var Rr=vr.record,Dr=vr.indent,Eo=vr.index,no=Vt(Rr,Cr);return s.createElement(ut,{key:no,rowKey:no,record:Rr,index:Cr,renderIndex:Eo,rowComponent:rr,cellComponent:Pn,scopeCellComponent:Ar,indent:Dr})}):lr=s.createElement(at,{expanded:!0,className:"".concat(rt,"-placeholder"),prefixCls:rt,component:rr,cellComponent:Pn,colSpan:Ft.length,isEmpty:!0},rn);var tr=Ae(Ft);return s.createElement(Ce.Provider,{value:nn.current},s.createElement(dn,{className:"".concat(rt,"-tbody")},xe&&s.createElement(Oe,{prefixCls:rt,columnsKey:tr,onColumnResize:Dt}),lr))}var mt=re(We),Rt=["expandable"],en="RC_TABLE_INTERNAL_COL_DEFINE";function En(Y){var X=Y.expandable,xe=(0,A.Z)(Y,Rt),Ke;return"expandable"in Y?Ke=(0,pe.Z)((0,pe.Z)({},xe),X):Ke=xe,Ke.showExpandColumn===!1&&(Ke.expandIconColumnIndex=-1),Ke}var xn=["columnType"];function ln(Y){for(var X=Y.colWidths,xe=Y.columns,Ke=Y.columCount,rt=i(de,["tableLayout"]),pt=rt.tableLayout,Dt=[],Ft=Ke||xe.length,Vt=!1,kt=Ft-1;kt>=0;kt-=1){var wn=X[kt],rn=xe&&xe[kt],on=void 0,nn=void 0;if(rn&&(on=rn[en],pt==="auto"&&(nn=rn.minWidth)),wn||nn||on||Vt){var dn=on||{},rr=dn.columnType,Pn=(0,A.Z)(dn,xn);Dt.unshift(s.createElement("col",(0,N.Z)({key:kt,style:{width:wn,minWidth:nn}},Pn))),Vt=!0}}return s.createElement("colgroup",null,Dt)}var tn=ln,Yt=g(94480),cn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function yn(Y,X){return(0,s.useMemo)(function(){for(var xe=[],Ke=0;Ke1?"colgroup":"col":null,ellipsis:Pn.ellipsis,align:Pn.align,component:Dt,prefixCls:wn,key:nn[rr]},Ar,{additionalProps:lr,rowType:"header"}))}))},er=qn;function xr(Y){var X=[];function xe(Dt,Ft){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;X[Vt]=X[Vt]||[];var kt=Ft,wn=Dt.filter(Boolean).map(function(rn){var on={key:rn.key,className:rn.className||"",children:rn.title,column:rn,colStart:kt},nn=1,dn=rn.children;return dn&&dn.length>0&&(nn=xe(dn,kt,Vt+1).reduce(function(rr,Pn){return rr+Pn},0),on.hasSubColumns=!0),"colSpan"in rn&&(nn=rn.colSpan),"rowSpan"in rn&&(on.rowSpan=rn.rowSpan),on.colSpan=nn,on.colEnd=on.colStart+nn-1,X[Vt].push(on),kt+=nn,nn});return wn}xe(Y,0);for(var Ke=X.length,rt=function(Ft){X[Ft].forEach(function(Vt){!("rowSpan"in Vt)&&!Vt.hasSubColumns&&(Vt.rowSpan=Ke-Ft)})},pt=0;pt1&&arguments[1]!==void 0?arguments[1]:"";return typeof X=="number"?X:X.endsWith("%")?Y*parseFloat(X)/100:null}function pr(Y,X,xe){return s.useMemo(function(){if(X&&X>0){var Ke=0,rt=0;Y.forEach(function(on){var nn=zr(X,on.width);nn?Ke+=nn:rt+=1});var pt=Math.max(X,xe),Dt=Math.max(pt-Ke,rt),Ft=rt,Vt=Dt/rt,kt=0,wn=Y.map(function(on){var nn=(0,pe.Z)({},on),dn=zr(X,nn.width);if(dn)nn.width=dn;else{var rr=Math.floor(Vt);nn.width=Ft===1?Dt:rr,Dt-=rr,Ft-=1}return kt+=nn.width,nn});if(kt0?(0,pe.Z)((0,pe.Z)({},X),{},{children:Cn(xe)}):X})}function br(Y){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Y.filter(function(xe){return xe&&(0,ve.Z)(xe)==="object"}).reduce(function(xe,Ke,rt){var pt=Ke.fixed,Dt=pt===!0?"left":pt,Ft="".concat(X,"-").concat(rt),Vt=Ke.children;return Vt&&Vt.length>0?[].concat((0,Yt.Z)(xe),(0,Yt.Z)(br(Vt,Ft).map(function(kt){return(0,pe.Z)({fixed:Dt},kt)}))):[].concat((0,Yt.Z)(xe),[(0,pe.Z)((0,pe.Z)({key:Ft},Ke),{},{fixed:Dt})])},[])}function Or(Y){return Y.map(function(X){var xe=X.fixed,Ke=(0,A.Z)(X,mo),rt=xe;return xe==="left"?rt="right":xe==="right"&&(rt="left"),(0,pe.Z)({fixed:rt},Ke)})}function wt(Y,X){var xe=Y.prefixCls,Ke=Y.columns,rt=Y.children,pt=Y.expandable,Dt=Y.expandedKeys,Ft=Y.columnTitle,Vt=Y.getRowKey,kt=Y.onTriggerExpand,wn=Y.expandIcon,rn=Y.rowExpandable,on=Y.expandIconColumnIndex,nn=Y.direction,dn=Y.expandRowByClick,rr=Y.columnWidth,Pn=Y.fixed,Ar=Y.scrollWidth,lr=Y.clientWidth,tr=s.useMemo(function(){var Pr=Ke||Dn(rt)||[];return Cn(Pr.slice())},[Ke,rt]),vr=s.useMemo(function(){if(pt){var Pr=tr.slice();if(!Pr.includes(Se)){var Tr=on||0;Tr>=0&&(Tr||Pn==="left"||!Pn)&&Pr.splice(Tr,0,Se),Pn==="right"&&Pr.splice(tr.length,0,Se)}var Er=Pr.indexOf(Se);Pr=Pr.filter(function(Yr,Br){return Yr!==Se||Br===Er});var mr=tr[Er],Nr;Pn?Nr=Pn:Nr=mr?mr.fixed:null;var Hr=(0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)((0,J.Z)({},en,{className:"".concat(xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Ft),"fixed",Nr),"className","".concat(xe,"-row-expand-icon-cell")),"width",rr),"render",function(Br,Vo,Wo){var Ma=Vt(Vo,Wo),Sa=Dt.has(Ma),la=rn?rn(Vo):!0,ur=wn({prefixCls:xe,expanded:Sa,expandable:la,record:Vo,onExpand:kt});return dn?s.createElement("span",{onClick:function(ii){return ii.stopPropagation()}},ur):ur});return Pr.map(function(Yr){return Yr===Se?Hr:Yr})}return tr.filter(function(Yr){return Yr!==Se})},[pt,tr,Vt,Dt,wn,nn]),Cr=s.useMemo(function(){var Pr=vr;return X&&(Pr=X(Pr)),Pr.length||(Pr=[{render:function(){return null}}]),Pr},[X,vr,nn]),Rr=s.useMemo(function(){return nn==="rtl"?Or(br(Cr)):br(Cr)},[Cr,nn,Ar]),Dr=s.useMemo(function(){for(var Pr=-1,Tr=Rr.length-1;Tr>=0;Tr-=1){var Er=Rr[Tr].fixed;if(Er==="left"||Er===!0){Pr=Tr;break}}if(Pr>=0)for(var mr=0;mr<=Pr;mr+=1){var Nr=Rr[mr].fixed;if(Nr!=="left"&&Nr!==!0)return!0}var Hr=Rr.findIndex(function(Vo){var Wo=Vo.fixed;return Wo==="right"});if(Hr>=0)for(var Yr=Hr;Yr=Hr-Ft?lr(function(Yr){return(0,pe.Z)((0,pe.Z)({},Yr),{},{isHiddenScrollBar:!0})}):lr(function(Yr){return(0,pe.Z)((0,pe.Z)({},Yr),{},{isHiddenScrollBar:!1})})}})},Tr=function(mr){lr(function(Nr){return(0,pe.Z)((0,pe.Z)({},Nr),{},{scrollLeft:mr/rn*on||0})})};return s.useImperativeHandle(xe,function(){return{setScrollLeft:Tr,checkScrollBarVisible:Pr}}),s.useEffect(function(){var Er=(0,Sr.Z)(document.body,"mouseup",no,!1),mr=(0,Sr.Z)(document.body,"mousemove",Mr,!1);return Pr(),function(){Er.remove(),mr.remove()}},[nn,Rr]),s.useEffect(function(){if(pt.current){for(var Er=[],mr=(0,Fr.bn)(pt.current);mr;)Er.push(mr),mr=mr.parentElement;return Er.forEach(function(Nr){return Nr.addEventListener("scroll",Pr,!1)}),window.addEventListener("resize",Pr,!1),window.addEventListener("scroll",Pr,!1),Vt.addEventListener("scroll",Pr,!1),function(){Er.forEach(function(Nr){return Nr.removeEventListener("scroll",Pr)}),window.removeEventListener("resize",Pr),window.removeEventListener("scroll",Pr),Vt.removeEventListener("scroll",Pr)}}},[Vt]),s.useEffect(function(){Ar.isHiddenScrollBar||lr(function(Er){var mr=pt.current;return mr?(0,pe.Z)((0,pe.Z)({},Er),{},{scrollLeft:mr.scrollLeft/mr.scrollWidth*mr.clientWidth}):Er})},[Ar.isHiddenScrollBar]),rn<=on||!nn||Ar.isHiddenScrollBar?null:s.createElement("div",{style:{height:(0,He.Z)(),width:on,bottom:Ft},className:"".concat(wn,"-sticky-scroll")},s.createElement("div",{onMouseDown:so,ref:dn,className:p()("".concat(wn,"-sticky-scroll-bar"),(0,J.Z)({},"".concat(wn,"-sticky-scroll-bar-active"),Rr)),style:{width:"".concat(nn,"px"),transform:"translate3d(".concat(Ar.scrollLeft,"px, 0, 0)")}}))},wi=s.forwardRef($i);function Ro(Y){return null}var Fi=Ro;function Lo(Y){return null}var _i=Lo,Xi="rc-table",zo=[],Ii={};function Oi(){return"No Data"}function _r(Y,X){var xe=(0,pe.Z)({rowKey:"key",prefixCls:Xi,emptyText:Oi},Y),Ke=xe.prefixCls,rt=xe.className,pt=xe.rowClassName,Dt=xe.style,Ft=xe.data,Vt=xe.rowKey,kt=xe.scroll,wn=xe.tableLayout,rn=xe.direction,on=xe.title,nn=xe.footer,dn=xe.summary,rr=xe.caption,Pn=xe.id,Ar=xe.showHeader,lr=xe.components,tr=xe.emptyText,vr=xe.onRow,Cr=xe.onHeaderRow,Rr=xe.onScroll,Dr=xe.internalHooks,Eo=xe.transformColumns,no=xe.internalRefs,so=xe.tailor,Mr=xe.getContainerWidth,Pr=xe.sticky,Tr=xe.rowHoverable,Er=Tr===void 0?!0:Tr,mr=Ft||zo,Nr=!!mr.length,Hr=Dr===M,Yr=s.useCallback(function(ui,Ei){return(0,Xe.Z)(lr,ui)||Ei},[lr]),Br=s.useMemo(function(){return typeof Vt=="function"?Vt:function(ui){var Ei=ui&&ui[Vt];return Ei}},[Vt]),Vo=Yr(["body"]),Wo=qt(),Ma=(0,Be.Z)(Wo,3),Sa=Ma[0],la=Ma[1],ur=Ma[2],QA=Sn(xe,mr,Br),ii=(0,Be.Z)(QA,6),ai=ii[0],ua=ii[1],BA=ii[2],Jr=ii[3],uo=ii[4],kr=ii[5],ro=kt==null?void 0:kt.x,bi=s.useState(0),Ui=(0,Be.Z)(bi,2),Ji=Ui[0],Zi=Ui[1],Da=dt((0,pe.Z)((0,pe.Z)((0,pe.Z)({},xe),ai),{},{expandable:!!ai.expandedRowRender,columnTitle:ai.columnTitle,expandedKeys:BA,getRowKey:Br,onTriggerExpand:kr,expandIcon:Jr,expandIconColumnIndex:ai.expandIconColumnIndex,direction:rn,scrollWidth:Hr&&so&&typeof ro=="number"?ro:null,clientWidth:Ji}),Hr?Eo:null),jA=(0,Be.Z)(Da,4),to=jA[0],Wr=jA[1],Ci=jA[2],Fa=jA[3],qi=Ci!=null?Ci:ro,MA=s.useMemo(function(){return{columns:to,flattenColumns:Wr}},[to,Wr]),Ha=s.useRef(),Ws=s.useRef(),Ia=s.useRef(),ji=s.useRef();s.useImperativeHandle(X,function(){return{nativeElement:Ha.current,scrollTo:function(Ei){var gA;if(Ia.current instanceof HTMLElement){var es=Ei.index,ZA=Ei.top,fu=Ei.key;if(vt(ZA)){var hu;(hu=Ia.current)===null||hu===void 0||hu.scrollTo({top:ZA})}else{var pu,ku=fu!=null?fu:Br(mr[es]);(pu=Ia.current.querySelector('[data-row-key="'.concat(ku,'"]')))===null||pu===void 0||pu.scrollIntoView()}}else(gA=Ia.current)!==null&&gA!==void 0&&gA.scrollTo&&Ia.current.scrollTo(Ei)}}});var ga=s.useRef(),ma=s.useState(!1),hA=(0,Be.Z)(ma,2),oA=hA[0],Pi=hA[1],ka=s.useState(!1),Vi=(0,Be.Z)(ka,2),Ua=Vi[0],Wa=Vi[1],HA=s.useState(new Map),Gs=(0,Be.Z)(HA,2),lu=Gs[0],Na=Gs[1],Ru=Ae(Wr),$A=Ru.map(function(ui){return lu.get(ui)}),XA=s.useMemo(function(){return $A},[$A.join("_")]),kA=Mn(XA,Wr,rn),YA=kt&&nt(kt.y),JA=kt&&nt(qi)||!!ai.fixed,xs=JA&&Wr.some(function(ui){var Ei=ui.fixed;return Ei}),vl=s.useRef(),Ts=Yn(Pr,Ke),$s=Ts.isSticky,qc=Ts.offsetHeader,ed=Ts.offsetSummary,Li=Ts.offsetScroll,uu=Ts.stickyClassName,td=Ts.container,Po=s.useMemo(function(){return dn==null?void 0:dn(mr)},[dn,mr]),Wi=(YA||$s)&&s.isValidElement(Po)&&Po.type===K&&Po.props.fixed,pA,bA,As;YA&&(bA={overflowY:Nr?"scroll":"auto",maxHeight:kt.y}),JA&&(pA={overflowX:"auto"},YA||(bA={overflowY:"hidden"}),As={width:qi===!0?"auto":qi,minWidth:"100%"});var Xs=s.useCallback(function(ui,Ei){Na(function(gA){if(gA.get(ui)!==Ei){var es=new Map(gA);return es.set(ui,Ei),es}return gA})},[]),qA=Bt(null),KA=(0,Be.Z)(qA,2),jd=KA[0],Md=KA[1];function cu(ui,Ei){Ei&&(typeof Ei=="function"?Ei(ui):Ei.scrollLeft!==ui&&(Ei.scrollLeft=ui,Ei.scrollLeft!==ui&&setTimeout(function(){Ei.scrollLeft=ui},0)))}var du=(0,te.Z)(function(ui){var Ei=ui.currentTarget,gA=ui.scrollLeft,es=rn==="rtl",ZA=typeof gA=="number"?gA:Ei.scrollLeft,fu=Ei||Ii;if(!Md()||Md()===fu){var hu;jd(fu),cu(ZA,Ws.current),cu(ZA,Ia.current),cu(ZA,ga.current),cu(ZA,(hu=vl.current)===null||hu===void 0?void 0:hu.setScrollLeft)}var pu=Ei||Ws.current;if(pu){var ku=Hr&&so&&typeof qi=="number"?qi:pu.scrollWidth,zl=pu.clientWidth;if(ku===zl){Pi(!1),Wa(!1);return}es?(Pi(-ZA0)):(Pi(ZA>0),Wa(ZA1?Pn-Er:0,Nr=(0,pe.Z)((0,pe.Z)((0,pe.Z)({},Eo),kt),{},{flex:"0 0 ".concat(Er,"px"),width:"".concat(Er,"px"),marginRight:mr,pointerEvents:"auto"}),Hr=s.useMemo(function(){return rn?Pr<=1:so===0||Pr===0||Pr>1},[Pr,so,rn]);Hr?Nr.visibility="hidden":rn&&(Nr.height=on==null?void 0:on(Pr));var Yr=Hr?function(){return null}:nn,Br={};return(Pr===0||so===0)&&(Br.rowSpan=1,Br.colSpan=1),s.createElement(Pt,(0,N.Z)({className:p()(rr,wn),ellipsis:xe.ellipsis,align:xe.align,scope:xe.rowScope,component:Dt,prefixCls:X.prefixCls,key:vr,record:Vt,index:pt,renderIndex:Ft,dataIndex:dn,render:Yr,shouldCellUpdate:xe.shouldCellUpdate},Cr,{appendNode:Rr,additionalProps:(0,pe.Z)((0,pe.Z)({},Dr),{},{style:Nr},Br)}))}var aa=Xo,Ga=["data","index","className","rowKey","style","extra","getHeight"],wa=s.forwardRef(function(Y,X){var xe=Y.data,Ke=Y.index,rt=Y.className,pt=Y.rowKey,Dt=Y.style,Ft=Y.extra,Vt=Y.getHeight,kt=(0,A.Z)(Y,Ga),wn=xe.record,rn=xe.indent,on=xe.index,nn=i(de,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),dn=nn.scrollX,rr=nn.flattenColumns,Pn=nn.prefixCls,Ar=nn.fixColumn,lr=nn.componentWidth,tr=i(ki,["getComponent"]),vr=tr.getComponent,Cr=Te(wn,pt,Ke,rn),Rr=vr(["body","row"],"div"),Dr=vr(["body","cell"],"div"),Eo=Cr.rowSupportExpand,no=Cr.expanded,so=Cr.rowProps,Mr=Cr.expandedRowRender,Pr=Cr.expandedRowClassName,Tr;if(Eo&&no){var Er=Mr(wn,Ke,rn+1,no),mr=St(Pr,wn,Ke,rn),Nr={};Ar&&(Nr={style:(0,J.Z)({},"--virtual-width","".concat(lr,"px"))});var Hr="".concat(Pn,"-expanded-row-cell");Tr=s.createElement(Rr,{className:p()("".concat(Pn,"-expanded-row"),"".concat(Pn,"-expanded-row-level-").concat(rn+1),mr)},s.createElement(Pt,{component:Dr,prefixCls:Pn,className:p()(Hr,(0,J.Z)({},"".concat(Hr,"-fixed"),Ar)),additionalProps:Nr},Er))}var Yr=(0,pe.Z)((0,pe.Z)({},Dt),{},{width:dn});Ft&&(Yr.position="absolute",Yr.pointerEvents="none");var Br=s.createElement(Rr,(0,N.Z)({},so,kt,{"data-row-key":pt,ref:Eo?null:X,className:p()(rt,"".concat(Pn,"-row"),so==null?void 0:so.className,(0,J.Z)({},"".concat(Pn,"-row-extra"),Ft)),style:(0,pe.Z)((0,pe.Z)({},Yr),so==null?void 0:so.style)}),rr.map(function(Vo,Wo){return s.createElement(aa,{key:Wo,component:Dr,rowInfo:Cr,column:Vo,colIndex:Wo,indent:rn,index:Ke,renderIndex:on,record:wn,inverse:Ft,getHeight:Vt})}));return Eo?s.createElement("div",{ref:X},Br,Tr):Br}),Aa=re(wa),Yi=Aa,fa=s.forwardRef(function(Y,X){var xe=Y.data,Ke=Y.onScroll,rt=i(de,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),pt=rt.flattenColumns,Dt=rt.onColumnResize,Ft=rt.getRowKey,Vt=rt.expandedKeys,kt=rt.prefixCls,wn=rt.childrenColumnName,rn=rt.scrollX,on=rt.direction,nn=i(ki),dn=nn.sticky,rr=nn.scrollY,Pn=nn.listItemHeight,Ar=nn.getComponent,lr=nn.onScroll,tr=s.useRef(),vr=et(xe,wn,Vt,Ft),Cr=s.useMemo(function(){var Tr=0;return pt.map(function(Er){var mr=Er.width,Nr=Er.key;return Tr+=mr,[Nr,mr,Tr]})},[pt]),Rr=s.useMemo(function(){return Cr.map(function(Tr){return Tr[2]})},[Cr]);s.useEffect(function(){Cr.forEach(function(Tr){var Er=(0,Be.Z)(Tr,2),mr=Er[0],Nr=Er[1];Dt(mr,Nr)})},[Cr]),s.useImperativeHandle(X,function(){var Tr,Er={scrollTo:function(Nr){var Hr;(Hr=tr.current)===null||Hr===void 0||Hr.scrollTo(Nr)},nativeElement:(Tr=tr.current)===null||Tr===void 0?void 0:Tr.nativeElement};return Object.defineProperty(Er,"scrollLeft",{get:function(){var Nr;return((Nr=tr.current)===null||Nr===void 0?void 0:Nr.getScrollInfo().x)||0},set:function(Nr){var Hr;(Hr=tr.current)===null||Hr===void 0||Hr.scrollTo({left:Nr})}}),Er});var Dr=function(Er,mr){var Nr,Hr=(Nr=vr[mr])===null||Nr===void 0?void 0:Nr.record,Yr=Er.onCell;if(Yr){var Br,Vo=Yr(Hr,mr);return(Br=Vo==null?void 0:Vo.rowSpan)!==null&&Br!==void 0?Br:1}return 1},Eo=function(Er){var mr=Er.start,Nr=Er.end,Hr=Er.getSize,Yr=Er.offsetY;if(Nr<0)return null;for(var Br=pt.filter(function(Jr){return Dr(Jr,mr)===0}),Vo=mr,Wo=function(uo){if(Br=Br.filter(function(kr){return Dr(kr,uo)===0}),!Br.length)return Vo=uo,1},Ma=mr;Ma>=0&&!Wo(Ma);Ma-=1);for(var Sa=pt.filter(function(Jr){return Dr(Jr,Nr)!==1}),la=Nr,ur=function(uo){if(Sa=Sa.filter(function(kr){return Dr(kr,uo)!==1}),!Sa.length)return la=Math.max(uo-1,Nr),1},QA=Nr;QA1})&&ii.push(uo)},ua=Vo;ua<=la;ua+=1)ai(ua);var BA=ii.map(function(Jr){var uo=vr[Jr],kr=Ft(uo.record,Jr),ro=function(Ji){var Zi=Jr+Ji-1,Da=Ft(vr[Zi].record,Zi),jA=Hr(kr,Da);return jA.bottom-jA.top},bi=Hr(kr);return s.createElement(Yi,{key:Jr,data:uo,rowKey:kr,index:Jr,style:{top:-Yr+bi.top},extra:!0,getHeight:ro})});return BA},no=s.useMemo(function(){return{columnsOffset:Rr}},[Rr]),so="".concat(kt,"-tbody"),Mr=Ar(["body","wrapper"]),Pr={};return dn&&(Pr.position="sticky",Pr.bottom=0,(0,ve.Z)(dn)==="object"&&dn.offsetScroll&&(Pr.bottom=dn.offsetScroll)),s.createElement(ri.Provider,{value:no},s.createElement(ya.Z,{fullHeight:!1,ref:tr,prefixCls:"".concat(so,"-virtual"),styles:{horizontalScrollBar:Pr},className:so,height:rr,itemHeight:Pn||24,data:vr,itemKey:function(Er){return Ft(Er.record)},component:Mr,scrollWidth:rn,direction:on,onVirtualScroll:function(Er){var mr,Nr=Er.x;Ke({currentTarget:(mr=tr.current)===null||mr===void 0?void 0:mr.nativeElement,scrollLeft:Nr})},onScroll:lr,extraRender:Eo},function(Tr,Er,mr){var Nr=Ft(Tr.record,Er);return s.createElement(Yi,{data:Tr,rowKey:Nr,index:Er,style:mr.style})}))}),vA=re(fa),sA=vA,sa=function(X,xe){var Ke=xe.ref,rt=xe.onScroll;return s.createElement(sA,{ref:Ke,data:X,onScroll:rt})};function Vr(Y,X){var xe=Y.data,Ke=Y.columns,rt=Y.scroll,pt=Y.sticky,Dt=Y.prefixCls,Ft=Dt===void 0?Xi:Dt,Vt=Y.className,kt=Y.listItemHeight,wn=Y.components,rn=Y.onScroll,on=rt||{},nn=on.x,dn=on.y;typeof nn!="number"&&(nn=1),typeof dn!="number"&&(dn=500);var rr=(0,je.zX)(function(lr,tr){return(0,Xe.Z)(wn,lr)||tr}),Pn=(0,je.zX)(rn),Ar=s.useMemo(function(){return{sticky:pt,scrollY:dn,listItemHeight:kt,getComponent:rr,onScroll:Pn}},[pt,dn,kt,rr,Pn]);return s.createElement(ki.Provider,{value:Ar},s.createElement(ea,(0,N.Z)({},Y,{className:p()(Vt,"".concat(Ft,"-virtual")),scroll:(0,pe.Z)((0,pe.Z)({},rt),{},{x:nn}),components:(0,pe.Z)((0,pe.Z)({},wn),{},{body:xe!=null&&xe.length?sa:void 0}),columns:Ke,internalHooks:M,tailor:!0,ref:X})))}var Qn=s.forwardRef(Vr);function Xn(Y){return W(Qn,Y)}var Gn=Xn(),_n=null,jr=Y=>null,qo=Y=>null,fi=g(84105),_a=g(82661),lA=g(34643),ds=g(34061),Ba=g(18929);function Cs(Y){const[X,xe]=(0,s.useState)(null);return[(0,s.useCallback)((pt,Dt,Ft)=>{const Vt=X!=null?X:pt,kt=Math.min(Vt||0,pt),wn=Math.max(Vt||0,pt),rn=Dt.slice(kt,wn+1).map(dn=>Y(dn)),on=rn.some(dn=>!Ft.has(dn)),nn=[];return rn.forEach(dn=>{on?(Ft.has(dn)||nn.push(dn),Ft.add(dn)):(Ft.delete(dn),nn.push(dn))}),xe(on?wn:null),nn},[X]),pt=>{xe(pt)}]}var FA=g(32383),uA=g(62673),ta=g(75727),ha=g(47889);const pi={},$a="SELECT_ALL",PA="SELECT_INVERT",cA="SELECT_NONE",yA=[],TA=(Y,X)=>{let xe=[];return(X||[]).forEach(Ke=>{xe.push(Ke),Ke&&typeof Ke=="object"&&Y in Ke&&(xe=[].concat((0,Yt.Z)(xe),(0,Yt.Z)(TA(Y,Ke[Y]))))}),xe};var Zo=(Y,X)=>{const{preserveSelectedRowKeys:xe,selectedRowKeys:Ke,defaultSelectedRowKeys:rt,getCheckboxProps:pt,onChange:Dt,onSelect:Ft,onSelectAll:Vt,onSelectInvert:kt,onSelectNone:wn,onSelectMultiple:rn,columnWidth:on,type:nn,selections:dn,fixed:rr,renderCell:Pn,hideSelectAll:Ar,checkStrictly:lr=!0}=X||{},{prefixCls:tr,data:vr,pageData:Cr,getRecordByKey:Rr,getRowKey:Dr,expandType:Eo,childrenColumnName:no,locale:so,getPopupContainer:Mr}=Y,Pr=(0,FA.ln)("Table"),[Tr,Er]=Cs(Jr=>Jr),[mr,Nr]=(0,Ba.Z)(Ke||rt||yA,{value:Ke}),Hr=s.useRef(new Map),Yr=(0,s.useCallback)(Jr=>{if(xe){const uo=new Map;Jr.forEach(kr=>{let ro=Rr(kr);!ro&&Hr.current.has(kr)&&(ro=Hr.current.get(kr)),uo.set(kr,ro)}),Hr.current=uo}},[Rr,xe]);s.useEffect(()=>{Yr(mr)},[mr]);const Br=(0,s.useMemo)(()=>TA(no,Cr),[no,Cr]),{keyEntities:Vo}=(0,s.useMemo)(()=>{if(lr)return{keyEntities:null};let Jr=vr;if(xe){const uo=new Set(Br.map((ro,bi)=>Dr(ro,bi))),kr=Array.from(Hr.current).reduce((ro,bi)=>{let[Ui,Ji]=bi;return uo.has(Ui)?ro:ro.concat(Ji)},[]);Jr=[].concat((0,Yt.Z)(Jr),(0,Yt.Z)(kr))}return(0,ds.I8)(Jr,{externalGetKey:Dr,childrenPropName:no})},[vr,Dr,lr,no,xe,Br]),Wo=(0,s.useMemo)(()=>{const Jr=new Map;return Br.forEach((uo,kr)=>{const ro=Dr(uo,kr),bi=(pt?pt(uo):null)||{};Jr.set(ro,bi)}),Jr},[Br,Dr,pt]),Ma=(0,s.useCallback)(Jr=>{const uo=Dr(Jr);let kr;return Wo.has(uo)?kr=Wo.get(Dr(Jr)):kr=pt?pt(Jr):void 0,!!(kr!=null&&kr.disabled)},[Wo,Dr]),[Sa,la]=(0,s.useMemo)(()=>{if(lr)return[mr||[],[]];const{checkedKeys:Jr,halfCheckedKeys:uo}=(0,lA.S)(mr,!0,Vo,Ma);return[Jr||[],uo]},[mr,lr,Vo,Ma]),ur=(0,s.useMemo)(()=>{const Jr=nn==="radio"?Sa.slice(0,1):Sa;return new Set(Jr)},[Sa,nn]),QA=(0,s.useMemo)(()=>nn==="radio"?new Set:new Set(la),[la,nn]);s.useEffect(()=>{X||Nr(yA)},[!!X]);const ii=(0,s.useCallback)((Jr,uo)=>{let kr,ro;Yr(Jr),xe?(kr=Jr,ro=Jr.map(bi=>Hr.current.get(bi))):(kr=[],ro=[],Jr.forEach(bi=>{const Ui=Rr(bi);Ui!==void 0&&(kr.push(bi),ro.push(Ui))})),Nr(kr),Dt==null||Dt(kr,ro,{type:uo})},[Nr,Rr,Dt,xe]),ai=(0,s.useCallback)((Jr,uo,kr,ro)=>{if(Ft){const bi=kr.map(Ui=>Rr(Ui));Ft(Rr(Jr),uo,bi,ro)}ii(kr,"single")},[Ft,Rr,ii]),ua=(0,s.useMemo)(()=>!dn||Ar?null:(dn===!0?[$a,PA,cA]:dn).map(uo=>uo===$a?{key:"all",text:so.selectionAll,onSelect(){ii(vr.map((kr,ro)=>Dr(kr,ro)).filter(kr=>{const ro=Wo.get(kr);return!(ro!=null&&ro.disabled)||ur.has(kr)}),"all")}}:uo===PA?{key:"invert",text:so.selectInvert,onSelect(){const kr=new Set(ur);Cr.forEach((bi,Ui)=>{const Ji=Dr(bi,Ui),Zi=Wo.get(Ji);Zi!=null&&Zi.disabled||(kr.has(Ji)?kr.delete(Ji):kr.add(Ji))});const ro=Array.from(kr);kt&&(Pr.deprecated(!1,"onSelectInvert","onChange"),kt(ro)),ii(ro,"invert")}}:uo===cA?{key:"none",text:so.selectNone,onSelect(){wn==null||wn(),ii(Array.from(ur).filter(kr=>{const ro=Wo.get(kr);return ro==null?void 0:ro.disabled}),"none")}}:uo).map(uo=>Object.assign(Object.assign({},uo),{onSelect:function(){for(var kr,ro,bi=arguments.length,Ui=new Array(bi),Ji=0;Ji{var uo;if(!X)return Jr.filter(ji=>ji!==pi);let kr=(0,Yt.Z)(Jr);const ro=new Set(ur),bi=Br.map(Dr).filter(ji=>!Wo.get(ji).disabled),Ui=bi.every(ji=>ro.has(ji)),Ji=bi.some(ji=>ro.has(ji)),Zi=()=>{const ji=[];Ui?bi.forEach(ma=>{ro.delete(ma),ji.push(ma)}):bi.forEach(ma=>{ro.has(ma)||(ro.add(ma),ji.push(ma))});const ga=Array.from(ro);Vt==null||Vt(!Ui,ga.map(ma=>Rr(ma)),ji.map(ma=>Rr(ma))),ii(ga,"all"),Er(null)};let Da,jA;if(nn!=="radio"){let ji;if(ua){const Pi={getPopupContainer:Mr,items:ua.map((ka,Vi)=>{const{key:Ua,text:Wa,onSelect:HA}=ka;return{key:Ua!=null?Ua:Vi,onClick:()=>{HA==null||HA(bi)},label:Wa}})};ji=s.createElement("div",{className:`${tr}-selection-extra`},s.createElement(ta.Z,{menu:Pi,getPopupContainer:Mr},s.createElement("span",null,s.createElement(fi.Z,null))))}const ga=Br.map((Pi,ka)=>{const Vi=Dr(Pi,ka),Ua=Wo.get(Vi)||{};return Object.assign({checked:ro.has(Vi)},Ua)}).filter(Pi=>{let{disabled:ka}=Pi;return ka}),ma=!!ga.length&&ga.length===Br.length,hA=ma&&ga.every(Pi=>{let{checked:ka}=Pi;return ka}),oA=ma&&ga.some(Pi=>{let{checked:ka}=Pi;return ka});jA=s.createElement(uA.default,{checked:ma?hA:!!Br.length&&Ui,indeterminate:ma?!hA&&oA:!Ui&&Ji,onChange:Zi,disabled:Br.length===0||ma,"aria-label":ji?"Custom selection":"Select all",skipGroup:!0}),Da=!Ar&&s.createElement("div",{className:`${tr}-selection`},jA,ji)}let to;nn==="radio"?to=(ji,ga,ma)=>{const hA=Dr(ga,ma),oA=ro.has(hA),Pi=Wo.get(hA);return{node:s.createElement(ha.ZP,Object.assign({},Pi,{checked:oA,onClick:ka=>{var Vi;ka.stopPropagation(),(Vi=Pi==null?void 0:Pi.onClick)===null||Vi===void 0||Vi.call(Pi,ka)},onChange:ka=>{var Vi;ro.has(hA)||ai(hA,!0,[hA],ka.nativeEvent),(Vi=Pi==null?void 0:Pi.onChange)===null||Vi===void 0||Vi.call(Pi,ka)}})),checked:oA}}:to=(ji,ga,ma)=>{var hA;const oA=Dr(ga,ma),Pi=ro.has(oA),ka=QA.has(oA),Vi=Wo.get(oA);let Ua;return Eo==="nest"?Ua=ka:Ua=(hA=Vi==null?void 0:Vi.indeterminate)!==null&&hA!==void 0?hA:ka,{node:s.createElement(uA.default,Object.assign({},Vi,{indeterminate:Ua,checked:Pi,skipGroup:!0,onClick:Wa=>{var HA;Wa.stopPropagation(),(HA=Vi==null?void 0:Vi.onClick)===null||HA===void 0||HA.call(Vi,Wa)},onChange:Wa=>{var HA;const{nativeEvent:Gs}=Wa,{shiftKey:lu}=Gs,Na=bi.findIndex($A=>$A===oA),Ru=Sa.some($A=>bi.includes($A));if(lu&&lr&&Ru){const $A=Tr(Na,bi,ro),XA=Array.from(ro);rn==null||rn(!Pi,XA.map(kA=>Rr(kA)),$A.map(kA=>Rr(kA))),ii(XA,"multiple")}else{const $A=Sa;if(lr){const XA=Pi?(0,_a._5)($A,oA):(0,_a.L0)($A,oA);ai(oA,!Pi,XA,Gs)}else{const XA=(0,lA.S)([].concat((0,Yt.Z)($A),[oA]),!0,Vo,Ma),{checkedKeys:kA,halfCheckedKeys:YA}=XA;let JA=kA;if(Pi){const xs=new Set(kA);xs.delete(oA),JA=(0,lA.S)(Array.from(xs),{checked:!1,halfCheckedKeys:YA},Vo,Ma).checkedKeys}ai(oA,!Pi,JA,Gs)}}Er(Pi?null:Na),(HA=Vi==null?void 0:Vi.onChange)===null||HA===void 0||HA.call(Vi,Wa)}})),checked:Pi}};const Wr=(ji,ga,ma)=>{const{node:hA,checked:oA}=to(ji,ga,ma);return Pn?Pn(oA,ga,ma,hA):hA};if(!kr.includes(pi))if(kr.findIndex(ji=>{var ga;return((ga=ji[en])===null||ga===void 0?void 0:ga.columnType)==="EXPAND_COLUMN"})===0){const[ji,...ga]=kr;kr=[ji,pi].concat((0,Yt.Z)(ga))}else kr=[pi].concat((0,Yt.Z)(kr));const Ci=kr.indexOf(pi);kr=kr.filter((ji,ga)=>ji!==pi||ga===Ci);const Fa=kr[Ci-1],qi=kr[Ci+1];let MA=rr;MA===void 0&&((qi==null?void 0:qi.fixed)!==void 0?MA=qi.fixed:(Fa==null?void 0:Fa.fixed)!==void 0&&(MA=Fa.fixed)),MA&&Fa&&((uo=Fa[en])===null||uo===void 0?void 0:uo.columnType)==="EXPAND_COLUMN"&&Fa.fixed===void 0&&(Fa.fixed=MA);const Ha=p()(`${tr}-selection-col`,{[`${tr}-selection-col-with-dropdown`]:dn&&nn==="checkbox"}),Ws=()=>X!=null&&X.columnTitle?typeof X.columnTitle=="function"?X.columnTitle(jA):X.columnTitle:Da,Ia={fixed:MA,width:on,className:`${tr}-selection-column`,title:Ws(),render:Wr,onCell:X.onCell,[en]:{className:Ha}};return kr.map(ji=>ji===pi?Ia:ji)},[Dr,Br,X,Sa,ur,QA,on,ua,Eo,Wo,rn,ai,Ma]),ur]},pa=g(2738);function ja(Y,X){return Y._antProxy=Y._antProxy||{},Object.keys(X).forEach(xe=>{if(!(xe in Y._antProxy)){const Ke=Y[xe];Y._antProxy[xe]=Ke,Y[xe]=X[xe]}}),Y}function Es(Y,X){return(0,s.useImperativeHandle)(Y,()=>{const xe=X(),{nativeElement:Ke}=xe;return typeof Proxy!="undefined"?new Proxy(Ke,{get(rt,pt){return xe[pt]?xe[pt]:Reflect.get(rt,pt)}}):ja(Ke,xe)})}var IA=g(83010),as=g(48755),Qu=g(38406),El=g(83397),Ou=g(31756),ul=g(13783),ru=g(85981),Ml=g(31709),eA=g(29787),ou=g(57700);function cl(Y){return X=>{const{prefixCls:xe,onExpand:Ke,record:rt,expanded:pt,expandable:Dt}=X,Ft=`${xe}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:Vt=>{Ke(rt,Vt),Vt.stopPropagation()},className:p()(Ft,{[`${Ft}-spaced`]:!Dt,[`${Ft}-expanded`]:Dt&&pt,[`${Ft}-collapsed`]:Dt&&!pt}),"aria-label":pt?Y.collapse:Y.expand,"aria-expanded":pt})}}var bo=cl;function Oo(Y){return(xe,Ke)=>{const rt=xe.querySelector(`.${Y}-container`);let pt=Ke;if(rt){const Dt=getComputedStyle(rt),Ft=parseInt(Dt.borderLeftWidth,10),Vt=parseInt(Dt.borderRightWidth,10);pt=Ke-Ft-Vt}return pt}}const co=(Y,X)=>"key"in Y&&Y.key!==void 0&&Y.key!==null?Y.key:Y.dataIndex?Array.isArray(Y.dataIndex)?Y.dataIndex.join("."):Y.dataIndex:X;function vo(Y,X){return X?`${X}-${Y}`:`${Y}`}const hi=(Y,X)=>typeof Y=="function"?Y(X):Y,na=(Y,X)=>{const xe=hi(Y,X);return Object.prototype.toString.call(xe)==="[object Object]"?"":xe};var Bi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ns=Bi,zs=g(7657),dA=function(X,xe){return s.createElement(zs.Z,(0,N.Z)({},X,{ref:xe,icon:Ns}))},fs=s.forwardRef(dA),RA=fs,Du=g(9981),tl=g(40192);function Oa(Y){const X=s.useRef(Y),xe=(0,tl.Z)();return[()=>X.current,Ke=>{X.current=Ke,xe()}]}var Qs=g(7939),tA=g(584),sc=g(93041),dl=g(78857),nl=g(18287),ra=g(47472),kc=g(49397),Kc=Y=>{const{value:X,filterSearch:xe,tablePrefixCls:Ke,locale:rt,onChange:pt}=Y;return xe?s.createElement("div",{className:`${Ke}-filter-dropdown-search`},s.createElement(kc.Z,{prefix:s.createElement(ra.Z,null),placeholder:rt.filterSearchPlaceholder,onChange:pt,value:X,htmlSize:1,className:`${Ke}-filter-dropdown-search-input`})):null},nA=g(10228);const Os=Y=>{const{keyCode:X}=Y;X===nA.Z.ENTER&&Y.stopPropagation()};var lc=s.forwardRef((Y,X)=>s.createElement("div",{className:Y.className,onClick:xe=>xe.stopPropagation(),onKeyDown:Os,ref:X},Y.children));function rA(Y){let X=[];return(Y||[]).forEach(xe=>{let{value:Ke,children:rt}=xe;X.push(Ke),rt&&(X=[].concat((0,Yt.Z)(X),(0,Yt.Z)(rA(rt))))}),X}function fl(Y){return Y.some(X=>{let{children:xe}=X;return xe})}function UA(Y,X){return typeof X=="string"||typeof X=="number"?X==null?void 0:X.toString().toLowerCase().includes(Y.trim().toLowerCase()):!1}function fA(Y){let{filters:X,prefixCls:xe,filteredKeys:Ke,filterMultiple:rt,searchValue:pt,filterSearch:Dt}=Y;return X.map((Ft,Vt)=>{const kt=String(Ft.value);if(Ft.children)return{key:kt||Vt,label:Ft.text,popupClassName:`${xe}-dropdown-submenu`,children:fA({filters:Ft.children,prefixCls:xe,filteredKeys:Ke,filterMultiple:rt,searchValue:pt,filterSearch:Dt})};const wn=rt?uA.default:ha.ZP,rn={key:Ft.value!==void 0?kt:Vt,label:s.createElement(s.Fragment,null,s.createElement(wn,{checked:Ke.includes(kt)}),s.createElement("span",null,Ft.text))};return pt.trim()?typeof Dt=="function"?Dt(pt,Ft)?rn:null:UA(pt,Ft.text)?rn:null:rn})}function LA(Y){return Y||[]}var zc=Y=>{var X,xe,Ke,rt;const{tablePrefixCls:pt,prefixCls:Dt,column:Ft,dropdownPrefixCls:Vt,columnKey:kt,filterOnClose:wn,filterMultiple:rn,filterMode:on="menu",filterSearch:nn=!1,filterState:dn,triggerFilter:rr,locale:Pn,children:Ar,getPopupContainer:lr,rootClassName:tr}=Y,{filterResetToDefaultFilteredValue:vr,defaultFilteredValue:Cr,filterDropdownProps:Rr={},filterDropdownOpen:Dr,filterDropdownVisible:Eo,onFilterDropdownVisibleChange:no,onFilterDropdownOpenChange:so}=Ft,[Mr,Pr]=s.useState(!1),Tr=!!(dn&&(!((X=dn.filteredKeys)===null||X===void 0)&&X.length||dn.forceFiltered)),Er=to=>{var Wr;Pr(to),(Wr=Rr.onOpenChange)===null||Wr===void 0||Wr.call(Rr,to),so==null||so(to),no==null||no(to)},mr=(rt=(Ke=(xe=Rr.open)!==null&&xe!==void 0?xe:Dr)!==null&&Ke!==void 0?Ke:Eo)!==null&&rt!==void 0?rt:Mr,Nr=dn==null?void 0:dn.filteredKeys,[Hr,Yr]=Oa(LA(Nr)),Br=to=>{let{selectedKeys:Wr}=to;Yr(Wr)},Vo=(to,Wr)=>{let{node:Ci,checked:Fa}=Wr;Br(rn?{selectedKeys:to}:{selectedKeys:Fa&&Ci.key?[Ci.key]:[]})};s.useEffect(()=>{Mr&&Br({selectedKeys:LA(Nr)})},[Nr]);const[Wo,Ma]=s.useState([]),Sa=to=>{Ma(to)},[la,ur]=s.useState(""),QA=to=>{const{value:Wr}=to.target;ur(Wr)};s.useEffect(()=>{Mr||ur("")},[Mr]);const ii=to=>{const Wr=to!=null&&to.length?to:null;if(Wr===null&&(!dn||!dn.filteredKeys)||(0,Z.Z)(Wr,dn==null?void 0:dn.filteredKeys,!0))return null;rr({column:Ft,key:kt,filteredKeys:Wr})},ai=()=>{Er(!1),ii(Hr())},ua=function(){let{confirm:to,closeDropdown:Wr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};to&&ii([]),Wr&&Er(!1),ur(""),Yr(vr?(Cr||[]).map(Ci=>String(Ci)):[])},BA=function(){let{closeDropdown:to}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};to&&Er(!1),ii(Hr())},Jr=(to,Wr)=>{Wr.source==="trigger"&&(to&&Nr!==void 0&&Yr(LA(Nr)),Er(to),!to&&!Ft.filterDropdown&&wn&&ai())},uo=p()({[`${Vt}-menu-without-submenu`]:!fl(Ft.filters||[])}),kr=to=>{if(to.target.checked){const Wr=rA(Ft==null?void 0:Ft.filters).map(Ci=>String(Ci));Yr(Wr)}else Yr([])},ro=to=>{let{filters:Wr}=to;return(Wr||[]).map((Ci,Fa)=>{const qi=String(Ci.value),MA={title:Ci.text,key:Ci.value!==void 0?qi:String(Fa)};return Ci.children&&(MA.children=ro({filters:Ci.children})),MA})},bi=to=>{var Wr;return Object.assign(Object.assign({},to),{text:to.title,value:to.key,children:((Wr=to.children)===null||Wr===void 0?void 0:Wr.map(Ci=>bi(Ci)))||[]})};let Ui;const{direction:Ji,renderEmpty:Zi}=s.useContext(as.E_);if(typeof Ft.filterDropdown=="function")Ui=Ft.filterDropdown({prefixCls:`${Vt}-custom`,setSelectedKeys:to=>Br({selectedKeys:to}),selectedKeys:Hr(),confirm:BA,clearFilters:ua,filters:Ft.filters,visible:mr,close:()=>{Er(!1)}});else if(Ft.filterDropdown)Ui=Ft.filterDropdown;else{const to=Hr()||[],Wr=()=>{var Fa,qi;const MA=(Fa=Zi==null?void 0:Zi("Table.filter"))!==null&&Fa!==void 0?Fa:s.createElement(tA.Z,{image:tA.Z.PRESENTED_IMAGE_SIMPLE,description:Pn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Ft.filters||[]).length===0)return MA;if(on==="tree")return s.createElement(s.Fragment,null,s.createElement(Kc,{filterSearch:nn,value:la,onChange:QA,tablePrefixCls:pt,locale:Pn}),s.createElement("div",{className:`${pt}-filter-dropdown-tree`},rn?s.createElement(uA.default,{checked:to.length===rA(Ft.filters).length,indeterminate:to.length>0&&to.lengthtypeof nn=="function"?nn(la,bi(Ia)):UA(la,Ia.title):void 0})));const Ha=fA({filters:Ft.filters||[],filterSearch:nn,prefixCls:Dt,filteredKeys:Hr(),filterMultiple:rn,searchValue:la}),Ws=Ha.every(Ia=>Ia===null);return s.createElement(s.Fragment,null,s.createElement(Kc,{filterSearch:nn,value:la,onChange:QA,tablePrefixCls:pt,locale:Pn}),Ws?MA:s.createElement(sc.default,{selectable:!0,multiple:rn,prefixCls:`${Vt}-menu`,className:uo,onSelect:Br,onDeselect:Br,selectedKeys:to,getPopupContainer:lr,openKeys:Wo,onOpenChange:Sa,items:Ha}))},Ci=()=>vr?(0,Z.Z)((Cr||[]).map(Fa=>String(Fa)),to,!0):to.length===0;Ui=s.createElement(s.Fragment,null,Wr(),s.createElement("div",{className:`${Dt}-dropdown-btns`},s.createElement(Qs.ZP,{type:"link",size:"small",disabled:Ci(),onClick:()=>ua()},Pn.filterReset),s.createElement(Qs.ZP,{type:"primary",size:"small",onClick:ai},Pn.filterConfirm)))}Ft.filterDropdown&&(Ui=s.createElement(dl.J,{selectable:void 0},Ui)),Ui=s.createElement(lc,{className:`${Dt}-dropdown`},Ui);const Da=()=>{let to;return typeof Ft.filterIcon=="function"?to=Ft.filterIcon(Tr):Ft.filterIcon?to=Ft.filterIcon:to=s.createElement(RA,null),s.createElement("span",{role:"button",tabIndex:-1,className:p()(`${Dt}-trigger`,{active:Tr}),onClick:Wr=>{Wr.stopPropagation()}},to)},jA=(0,Du.Z)({trigger:["click"],placement:Ji==="rtl"?"bottomLeft":"bottomRight",children:Da(),getPopupContainer:lr},Object.assign(Object.assign({},Rr),{rootClassName:p()(tr,Rr.rootClassName),open:mr,onOpenChange:Jr,dropdownRender:()=>typeof(Rr==null?void 0:Rr.dropdownRender)=="function"?Rr.dropdownRender(Ui):Ui}));return s.createElement("div",{className:`${Dt}-column`},s.createElement("span",{className:`${pt}-column-title`},Ar),s.createElement(ta.Z,Object.assign({},jA)))};const NA=(Y,X,xe)=>{let Ke=[];return(Y||[]).forEach((rt,pt)=>{var Dt;const Ft=vo(pt,xe);if(rt.filters||"filterDropdown"in rt||"onFilter"in rt)if("filteredValue"in rt){let Vt=rt.filteredValue;"filterDropdown"in rt||(Vt=(Dt=Vt==null?void 0:Vt.map(String))!==null&&Dt!==void 0?Dt:Vt),Ke.push({column:rt,key:co(rt,Ft),filteredKeys:Vt,forceFiltered:rt.filtered})}else Ke.push({column:rt,key:co(rt,Ft),filteredKeys:X&&rt.defaultFilteredValue?rt.defaultFilteredValue:void 0,forceFiltered:rt.filtered});"children"in rt&&(Ke=[].concat((0,Yt.Z)(Ke),(0,Yt.Z)(NA(rt.children,X,Ft))))}),Ke};function Hl(Y,X,xe,Ke,rt,pt,Dt,Ft,Vt){return xe.map((kt,wn)=>{const rn=vo(wn,Ft),{filterOnClose:on=!0,filterMultiple:nn=!0,filterMode:dn,filterSearch:rr}=kt;let Pn=kt;if(Pn.filters||Pn.filterDropdown){const Ar=co(Pn,rn),lr=Ke.find(tr=>{let{key:vr}=tr;return Ar===vr});Pn=Object.assign(Object.assign({},Pn),{title:tr=>s.createElement(zc,{tablePrefixCls:Y,prefixCls:`${Y}-filter`,dropdownPrefixCls:X,column:Pn,columnKey:Ar,filterState:lr,filterOnClose:on,filterMultiple:nn,filterMode:dn,filterSearch:rr,triggerFilter:pt,locale:rt,getPopupContainer:Dt,rootClassName:Vt},hi(kt.title,tr))})}return"children"in Pn&&(Pn=Object.assign(Object.assign({},Pn),{children:Hl(Y,X,Pn.children,Ke,rt,pt,Dt,rn,Vt)})),Pn})}const Io=Y=>{const X={};return Y.forEach(xe=>{let{key:Ke,filteredKeys:rt,column:pt}=xe;const Dt=Ke,{filters:Ft,filterDropdown:Vt}=pt;if(Vt)X[Dt]=rt||null;else if(Array.isArray(rt)){const kt=rA(Ft);X[Dt]=kt.filter(wn=>rt.includes(String(wn)))}else X[Dt]=null}),X},Do=(Y,X,xe)=>X.reduce((rt,pt)=>{const{column:{onFilter:Dt,filters:Ft},filteredKeys:Vt}=pt;return Dt&&Vt&&Vt.length?rt.map(kt=>Object.assign({},kt)).filter(kt=>Vt.some(wn=>{const rn=rA(Ft),on=rn.findIndex(dn=>String(dn)===String(wn)),nn=on!==-1?rn[on]:wn;return kt[xe]&&(kt[xe]=Do(kt[xe],X,xe)),Dt(nn,kt)})):rt},Y),Ki=Y=>Y.flatMap(X=>"children"in X?[X].concat((0,Yt.Z)(Ki(X.children||[]))):[X]);var Xa=Y=>{const{prefixCls:X,dropdownPrefixCls:xe,mergedColumns:Ke,onFilterChange:rt,getPopupContainer:pt,locale:Dt,rootClassName:Ft}=Y,Vt=(0,FA.ln)("Table"),kt=s.useMemo(()=>Ki(Ke||[]),[Ke]),[wn,rn]=s.useState(()=>NA(kt,!0)),on=s.useMemo(()=>{const Pn=NA(kt,!1);if(Pn.length===0)return Pn;let Ar=!0,lr=!0;if(Pn.forEach(tr=>{let{filteredKeys:vr}=tr;vr!==void 0?Ar=!1:lr=!1}),Ar){const tr=(kt||[]).map((vr,Cr)=>co(vr,vo(Cr)));return wn.filter(vr=>{let{key:Cr}=vr;return tr.includes(Cr)}).map(vr=>{const Cr=kt[tr.findIndex(Rr=>Rr===vr.key)];return Object.assign(Object.assign({},vr),{column:Object.assign(Object.assign({},vr.column),Cr),forceFiltered:Cr.filtered})})}return Pn},[kt,wn]),nn=s.useMemo(()=>Io(on),[on]),dn=Pn=>{const Ar=on.filter(lr=>{let{key:tr}=lr;return tr!==Pn.key});Ar.push(Pn),rn(Ar),rt(Io(Ar),Ar)};return[Pn=>Hl(X,xe,Pn,on,Dt,dn,pt,void 0,Ft),on,nn]},Zs=(Y,X,xe)=>{const Ke=s.useRef({});function rt(pt){var Dt;if(!Ke.current||Ke.current.data!==Y||Ke.current.childrenColumnName!==X||Ke.current.getRowKey!==xe){let Vt=function(kt){kt.forEach((wn,rn)=>{const on=xe(wn,rn);Ft.set(on,wn),wn&&typeof wn=="object"&&X in wn&&Vt(wn[X]||[])})};const Ft=new Map;Vt(Y),Ke.current={data:Y,childrenColumnName:X,kvMap:Ft,getRowKey:xe}}return(Dt=Ke.current.kvMap)===null||Dt===void 0?void 0:Dt.get(pt)}return[rt]},ps=function(Y,X){var xe={};for(var Ke in Y)Object.prototype.hasOwnProperty.call(Y,Ke)&&X.indexOf(Ke)<0&&(xe[Ke]=Y[Ke]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ke=Object.getOwnPropertySymbols(Y);rt{const pt=Y[rt];typeof pt!="function"&&(xe[rt]=pt)}),xe}function pl(Y,X,xe){const Ke=xe&&typeof xe=="object"?xe:{},{total:rt=0}=Ke,pt=ps(Ke,["total"]),[Dt,Ft]=(0,s.useState)(()=>({current:"defaultCurrent"in pt?pt.defaultCurrent:1,pageSize:"defaultPageSize"in pt?pt.defaultPageSize:hl})),Vt=(0,Du.Z)(Dt,pt,{total:rt>0?rt:Y}),kt=Math.ceil((rt||Y)/Vt.pageSize);Vt.current>kt&&(Vt.current=kt||1);const wn=(on,nn)=>{Ft({current:on!=null?on:1,pageSize:nn||Vt.pageSize})},rn=(on,nn)=>{var dn;xe&&((dn=xe.onChange)===null||dn===void 0||dn.call(xe,on,nn)),wn(on,nn),X(on,nn||(Vt==null?void 0:Vt.pageSize))};return xe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Vt),{onChange:rn}),wn]}var Pu=pl,Sl=g(89489),Zc=g(59477),wf=g(25399);const uc="ascend",Ld="descend",Vc=Y=>typeof Y.sorter=="object"&&typeof Y.sorter.multiple=="number"?Y.sorter.multiple:!1,cc=Y=>typeof Y=="function"?Y:Y&&typeof Y=="object"&&Y.compare?Y.compare:!1,Bf=(Y,X)=>X?Y[Y.indexOf(X)+1]:Y[0],Wc=(Y,X,xe)=>{let Ke=[];const rt=(pt,Dt)=>{Ke.push({column:pt,key:co(pt,Dt),multiplePriority:Vc(pt),sortOrder:pt.sortOrder})};return(Y||[]).forEach((pt,Dt)=>{const Ft=vo(Dt,xe);pt.children?("sortOrder"in pt&&rt(pt,Ft),Ke=[].concat((0,Yt.Z)(Ke),(0,Yt.Z)(Wc(pt.children,X,Ft)))):pt.sorter&&("sortOrder"in pt?rt(pt,Ft):X&&pt.defaultSortOrder&&Ke.push({column:pt,key:co(pt,Ft),multiplePriority:Vc(pt),sortOrder:pt.defaultSortOrder}))}),Ke},Nd=(Y,X,xe,Ke,rt,pt,Dt,Ft)=>(X||[]).map((kt,wn)=>{const rn=vo(wn,Ft);let on=kt;if(on.sorter){const nn=on.sortDirections||rt,dn=on.showSorterTooltip===void 0?Dt:on.showSorterTooltip,rr=co(on,rn),Pn=xe.find(no=>{let{key:so}=no;return so===rr}),Ar=Pn?Pn.sortOrder:null,lr=Bf(nn,Ar);let tr;if(kt.sortIcon)tr=kt.sortIcon({sortOrder:Ar});else{const no=nn.includes(uc)&&s.createElement(Zc.Z,{className:p()(`${Y}-column-sorter-up`,{active:Ar===uc})}),so=nn.includes(Ld)&&s.createElement(Sl.Z,{className:p()(`${Y}-column-sorter-down`,{active:Ar===Ld})});tr=s.createElement("span",{className:p()(`${Y}-column-sorter`,{[`${Y}-column-sorter-full`]:!!(no&&so)})},s.createElement("span",{className:`${Y}-column-sorter-inner`,"aria-hidden":"true"},no,so))}const{cancelSort:vr,triggerAsc:Cr,triggerDesc:Rr}=pt||{};let Dr=vr;lr===Ld?Dr=Rr:lr===uc&&(Dr=Cr);const Eo=typeof dn=="object"?Object.assign({title:Dr},dn):{title:Dr};on=Object.assign(Object.assign({},on),{className:p()(on.className,{[`${Y}-column-sort`]:Ar}),title:no=>{const so=`${Y}-column-sorters`,Mr=s.createElement("span",{className:`${Y}-column-title`},hi(kt.title,no)),Pr=s.createElement("div",{className:so},Mr,tr);return dn?typeof dn!="boolean"&&(dn==null?void 0:dn.target)==="sorter-icon"?s.createElement("div",{className:`${so} ${Y}-column-sorters-tooltip-target-sorter`},Mr,s.createElement(wf.Z,Object.assign({},Eo),tr)):s.createElement(wf.Z,Object.assign({},Eo),Pr):Pr},onHeaderCell:no=>{var so;const Mr=((so=kt.onHeaderCell)===null||so===void 0?void 0:so.call(kt,no))||{},Pr=Mr.onClick,Tr=Mr.onKeyDown;Mr.onClick=Nr=>{Ke({column:kt,key:rr,sortOrder:lr,multiplePriority:Vc(kt)}),Pr==null||Pr(Nr)},Mr.onKeyDown=Nr=>{Nr.keyCode===nA.Z.ENTER&&(Ke({column:kt,key:rr,sortOrder:lr,multiplePriority:Vc(kt)}),Tr==null||Tr(Nr))};const Er=na(kt.title,{}),mr=Er==null?void 0:Er.toString();return Ar&&(Mr["aria-sort"]=Ar==="ascend"?"ascending":"descending"),Mr["aria-label"]=mr||"",Mr.className=p()(Mr.className,`${Y}-column-has-sorters`),Mr.tabIndex=0,kt.ellipsis&&(Mr.title=(Er!=null?Er:"").toString()),Mr}})}return"children"in on&&(on=Object.assign(Object.assign({},on),{children:Nd(Y,on.children,xe,Ke,rt,pt,Dt,rn)})),on}),Qd=Y=>{const{column:X,sortOrder:xe}=Y;return{column:X,order:xe,field:X.dataIndex,columnKey:X.key}},Di=Y=>{const X=Y.filter(xe=>{let{sortOrder:Ke}=xe;return Ke}).map(Qd);if(X.length===0&&Y.length){const xe=Y.length-1;return Object.assign(Object.assign({},Qd(Y[xe])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return X.length<=1?X[0]||{}:X},Ds=(Y,X,xe)=>{const Ke=X.slice().sort((Dt,Ft)=>Ft.multiplePriority-Dt.multiplePriority),rt=Y.slice(),pt=Ke.filter(Dt=>{let{column:{sorter:Ft},sortOrder:Vt}=Dt;return cc(Ft)&&Vt});return pt.length?rt.sort((Dt,Ft)=>{for(let Vt=0;Vt{const Ft=Dt[xe];return Ft?Object.assign(Object.assign({},Dt),{[xe]:Ds(Ft,X,xe)}):Dt}):rt};var rh=Y=>{const{prefixCls:X,mergedColumns:xe,sortDirections:Ke,tableLocale:rt,showSorterTooltip:pt,onSorterChange:Dt}=Y,[Ft,Vt]=s.useState(Wc(xe,!0)),kt=(rr,Pn)=>{const Ar=[];return rr.forEach((lr,tr)=>{const vr=vo(tr,Pn);if(Ar.push(co(lr,vr)),Array.isArray(lr.children)){const Cr=kt(lr.children,vr);Ar.push.apply(Ar,(0,Yt.Z)(Cr))}}),Ar},wn=s.useMemo(()=>{let rr=!0;const Pn=Wc(xe,!1);if(!Pn.length){const vr=kt(xe);return Ft.filter(Cr=>{let{key:Rr}=Cr;return vr.includes(Rr)})}const Ar=[];function lr(vr){rr?Ar.push(vr):Ar.push(Object.assign(Object.assign({},vr),{sortOrder:null}))}let tr=null;return Pn.forEach(vr=>{tr===null?(lr(vr),vr.sortOrder&&(vr.multiplePriority===!1?rr=!1:tr=!0)):(tr&&vr.multiplePriority!==!1||(rr=!1),lr(vr))}),Ar},[xe,Ft]),rn=s.useMemo(()=>{var rr,Pn;const Ar=wn.map(lr=>{let{column:tr,sortOrder:vr}=lr;return{column:tr,order:vr}});return{sortColumns:Ar,sortColumn:(rr=Ar[0])===null||rr===void 0?void 0:rr.column,sortOrder:(Pn=Ar[0])===null||Pn===void 0?void 0:Pn.order}},[wn]),on=rr=>{let Pn;rr.multiplePriority===!1||!wn.length||wn[0].multiplePriority===!1?Pn=[rr]:Pn=[].concat((0,Yt.Z)(wn.filter(Ar=>{let{key:lr}=Ar;return lr!==rr.key})),[rr]),Vt(Pn),Dt(Di(Pn),Pn)};return[rr=>Nd(X,rr,wn,on,Ke,rt,pt),wn,rn,()=>Di(wn)]};const Il=(Y,X)=>Y.map(Ke=>{const rt=Object.assign({},Ke);return rt.title=hi(Ke.title,X),"children"in rt&&(rt.children=Il(rt.children,X)),rt});var Gc=Y=>[s.useCallback(xe=>Il(xe,Y),[Y])],Od=oi((Y,X)=>{const{_renderTimes:xe}=Y,{_renderTimes:Ke}=X;return xe!==Ke}),iu=Xn((Y,X)=>{const{_renderTimes:xe}=Y,{_renderTimes:Ke}=X;return xe!==Ke}),ho=g(36237),Va=g(17835),gl=g(63356),au=g(16931),Ul=g(51636),Au=Y=>{const{componentCls:X,lineWidth:xe,lineType:Ke,tableBorderColor:rt,tableHeaderBg:pt,tablePaddingVertical:Dt,tablePaddingHorizontal:Ft,calc:Vt}=Y,kt=`${(0,ho.unit)(xe)} ${Ke} ${rt}`,wn=(rn,on,nn)=>({[`&${X}-${rn}`]:{[`> ${X}-container`]:{[`> ${X}-content, > ${X}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${X}-expanded-row-fixed`]:{margin:`${(0,ho.unit)(Vt(on).mul(-1).equal())} - ${(0,ho.unit)(Vt(Vt(nn).add(xe)).mul(-1).equal())}`}}}}}});return{[`${X}-wrapper`]:{[`${X}${X}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${X}-title`]:{border:kt,borderBottom:0},[`> ${X}-container`]:{borderInlineStart:kt,borderTop:kt,[` - > ${X}-content, - > ${X}-header, - > ${X}-body, - > ${X}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:kt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:kt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${X}-cell-fix-right-first::after`]:{borderInlineEnd:kt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${X}-expanded-row-fixed`]:{margin:`${(0,ho.unit)(Vt(Dt).mul(-1).equal())} ${(0,ho.unit)(Vt(Vt(Ft).add(xe)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:xe,bottom:0,borderInlineEnd:kt,content:'""'}}}}}},[`&${X}-scroll-horizontal`]:{[`> ${X}-container > ${X}-body`]:{"> table > tbody":{[` - > tr${X}-expanded-row, - > tr${X}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},wn("middle",Y.tablePaddingVerticalMiddle,Y.tablePaddingHorizontalMiddle)),wn("small",Y.tablePaddingVerticalSmall,Y.tablePaddingHorizontalSmall)),{[`> ${X}-footer`]:{border:kt,borderTop:0}}),[`${X}-cell`]:{[`${X}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ho.unit)(xe)} 0 ${(0,ho.unit)(xe)} ${pt}`}},[`${X}-bordered ${X}-cell-scrollbar`]:{borderInlineEnd:kt}}}},kl=Y=>{const{componentCls:X}=Y;return{[`${X}-wrapper`]:{[`${X}-cell-ellipsis`]:Object.assign(Object.assign({},gl.vS),{wordBreak:"keep-all",[` - &${X}-cell-fix-left-last, - &${X}-cell-fix-right-first - `]:{overflow:"visible",[`${X}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${X}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},p0=Y=>{const{componentCls:X}=Y;return{[`${X}-wrapper`]:{[`${X}-tbody > tr${X}-placeholder`]:{textAlign:"center",color:Y.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Y.colorBgContainer}}}}},Ps=Y=>{const{componentCls:X,antCls:xe,motionDurationSlow:Ke,lineWidth:rt,paddingXS:pt,lineType:Dt,tableBorderColor:Ft,tableExpandIconBg:Vt,tableExpandColumnWidth:kt,borderRadius:wn,tablePaddingVertical:rn,tablePaddingHorizontal:on,tableExpandedRowBg:nn,paddingXXS:dn,expandIconMarginTop:rr,expandIconSize:Pn,expandIconHalfInner:Ar,expandIconScale:lr,calc:tr}=Y,vr=`${(0,ho.unit)(rt)} ${Dt} ${Ft}`,Cr=tr(dn).sub(rt).equal();return{[`${X}-wrapper`]:{[`${X}-expand-icon-col`]:{width:kt},[`${X}-row-expand-icon-cell`]:{textAlign:"center",[`${X}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${X}-row-indent`]:{height:1,float:"left"},[`${X}-row-expand-icon`]:Object.assign(Object.assign({},(0,gl.Nd)(Y)),{position:"relative",float:"left",width:Pn,height:Pn,color:"inherit",lineHeight:(0,ho.unit)(Pn),background:Vt,border:vr,borderRadius:wn,transform:`scale(${lr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ke} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:Cr,insetInlineStart:Cr,height:rt},"&::after":{top:Cr,bottom:Cr,insetInlineStart:Ar,width:rt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${X}-row-indent + ${X}-row-expand-icon`]:{marginTop:rr,marginInlineEnd:pt},[`tr${X}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:nn}},[`${xe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${X}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ho.unit)(tr(rn).mul(-1).equal())} ${(0,ho.unit)(tr(on).mul(-1).equal())}`,padding:`${(0,ho.unit)(rn)} ${(0,ho.unit)(on)}`}}}},zi=Y=>{const{componentCls:X,antCls:xe,iconCls:Ke,tableFilterDropdownWidth:rt,tableFilterDropdownSearchWidth:pt,paddingXXS:Dt,paddingXS:Ft,colorText:Vt,lineWidth:kt,lineType:wn,tableBorderColor:rn,headerIconColor:on,fontSizeSM:nn,tablePaddingHorizontal:dn,borderRadius:rr,motionDurationSlow:Pn,colorTextDescription:Ar,colorPrimary:lr,tableHeaderFilterActiveBg:tr,colorTextDisabled:vr,tableFilterDropdownBg:Cr,tableFilterDropdownHeight:Rr,controlItemBgHover:Dr,controlItemBgActive:Eo,boxShadowSecondary:no,filterDropdownMenuBg:so,calc:Mr}=Y,Pr=`${xe}-dropdown`,Tr=`${X}-filter-dropdown`,Er=`${xe}-tree`,mr=`${(0,ho.unit)(kt)} ${wn} ${rn}`;return[{[`${X}-wrapper`]:{[`${X}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${X}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Mr(Dt).mul(-1).equal(),marginInline:`${(0,ho.unit)(Dt)} ${(0,ho.unit)(Mr(dn).div(2).mul(-1).equal())}`,padding:`0 ${(0,ho.unit)(Dt)}`,color:on,fontSize:nn,borderRadius:rr,cursor:"pointer",transition:`all ${Pn}`,"&:hover":{color:Ar,background:tr},"&.active":{color:lr}}}},{[`${xe}-dropdown`]:{[Tr]:Object.assign(Object.assign({},(0,gl.Wf)(Y)),{minWidth:rt,backgroundColor:Cr,borderRadius:rr,boxShadow:no,overflow:"hidden",[`${Pr}-menu`]:{maxHeight:Rr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:so,"&:empty::after":{display:"block",padding:`${(0,ho.unit)(Ft)} 0`,color:vr,fontSize:nn,textAlign:"center",content:'"Not Found"'}},[`${Tr}-tree`]:{paddingBlock:`${(0,ho.unit)(Ft)} 0`,paddingInline:Ft,[Er]:{padding:0},[`${Er}-treenode ${Er}-node-content-wrapper:hover`]:{backgroundColor:Dr},[`${Er}-treenode-checkbox-checked ${Er}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Eo}}},[`${Tr}-search`]:{padding:Ft,borderBottom:mr,"&-input":{input:{minWidth:pt},[Ke]:{color:vr}}},[`${Tr}-checkall`]:{width:"100%",marginBottom:Dt,marginInlineStart:Dt},[`${Tr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ho.unit)(Mr(Ft).sub(kt).equal())} ${(0,ho.unit)(Ft)}`,overflow:"hidden",borderTop:mr}})}},{[`${xe}-dropdown ${Tr}, ${Tr}-submenu`]:{[`${xe}-checkbox-wrapper + span`]:{paddingInlineStart:Ft,color:Vt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Pd=Y=>{const{componentCls:X,lineWidth:xe,colorSplit:Ke,motionDurationSlow:rt,zIndexTableFixed:pt,tableBg:Dt,zIndexTableSticky:Ft,calc:Vt}=Y,kt=Ke;return{[`${X}-wrapper`]:{[` - ${X}-cell-fix-left, - ${X}-cell-fix-right + `]:{paddingInlineEnd:i.calc(i.fontSizeIcon).add(i.controlPaddingHorizontal).equal()}}};return[Z(i,L),O]}const N=i=>{const{componentCls:L}=i,B=(0,M.mergeToken)(i,{selectHeight:i.controlHeightSM,multipleSelectItemHeight:i.multipleItemHeightSM,borderRadius:i.borderRadiusSM,borderRadiusSM:i.borderRadiusXS}),D=(0,M.mergeToken)(i,{fontSize:i.fontSizeLG,selectHeight:i.controlHeightLG,multipleSelectItemHeight:i.multipleItemHeightLG,borderRadius:i.borderRadiusLG,borderRadiusSM:i.borderRadius});return[v(i),v(B,"sm"),{[`${L}-multiple${L}-sm`]:{[`${L}-selection-placeholder`]:{insetInline:i.calc(i.controlPaddingHorizontalSM).sub(i.lineWidth).equal()},[`${L}-selection-search`]:{marginInlineStart:2}}},v(D,"lg")]};Zt.ZP=N},68525:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return v}});var s=p(59301),Se=p(40001),M=p(19248),we=p(99267),te=p(84105),$=p(58617),Z=p(47472);function v(N){let{suffixIcon:i,clearIcon:L,menuItemSelectedIcon:B,removeIcon:D,loading:O,multiple:T,hasFeedback:E,prefixCls:I,showSuffixIcon:U,feedbackIcon:W,showArrow:re,componentName:k}=N;const H=L!=null?L:s.createElement(M.Z,null),de=pe=>i===null&&!E&&!re?null:s.createElement(s.Fragment,null,U!==!1&&pe,E&&W);let ce=null;if(i!==void 0)ce=de(i);else if(O)ce=de(s.createElement($.Z,{spin:!0}));else{const pe=`${I}-suffix`;ce=Ce=>{let{open:G,showSearch:ge}=Ce;return de(G&&ge?s.createElement(Z.Z,{className:pe}):s.createElement(te.Z,{className:pe}))}}let Fe=null;B!==void 0?Fe=B:T?Fe=s.createElement(Se.Z,null):Fe=null;let ve=null;return D!==void 0?ve=D:ve=s.createElement(we.Z,null),{clearIcon:H,suffixIcon:ce,itemIcon:Fe,removeIcon:ve}}},90005:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return s}});function s(Se,M){return M!==void 0?M:Se!==null}},70858:function(nr,Zt,p){"use strict";p.d(Zt,{default:function(){return mh}});var s=p(59301),Se={},M="rc-table-internal-hook",we=p(42978),te=p(6089),$=p(34280),Z=p(13697),v=p(4676);function N(J){var Y=s.createContext(void 0),xe=function(rt){var pt=rt.value,Dt=rt.children,Ft=s.useRef(pt);Ft.current=pt;var Vt=s.useState(function(){return{getValue:function(){return Ft.current},listeners:new Set}}),kt=(0,we.Z)(Vt,1),wn=kt[0];return(0,$.Z)(function(){(0,v.unstable_batchedUpdates)(function(){wn.listeners.forEach(function(rn){rn(pt)})})},[pt]),s.createElement(Y.Provider,{value:wn},Dt)};return{Context:Y,Provider:xe,defaultValue:J}}function i(J,Y){var xe=(0,te.Z)(typeof Y=="function"?Y:function(rn){if(Y===void 0)return rn;if(!Array.isArray(Y))return rn[Y];var on={};return Y.forEach(function(nn){on[nn]=rn[nn]}),on}),ze=s.useContext(J==null?void 0:J.Context),rt=ze||{},pt=rt.listeners,Dt=rt.getValue,Ft=s.useRef();Ft.current=xe(ze?Dt():J==null?void 0:J.defaultValue);var Vt=s.useState({}),kt=(0,we.Z)(Vt,2),wn=kt[1];return(0,$.Z)(function(){if(!ze)return;function rn(on){var nn=xe(on);(0,Z.Z)(Ft.current,nn,!0)||wn({})}return pt.add(rn),function(){pt.delete(rn)}},[ze]),Ft.current}var L=p(54476),B=p(8654);function D(){var J=s.createContext(null);function Y(){return s.useContext(J)}function xe(rt,pt){var Dt=(0,B.Yr)(rt),Ft=function(kt,wn){var rn=Dt?{ref:wn}:{},on=s.useRef(0),nn=s.useRef(kt),dn=Y();return dn!==null?s.createElement(rt,(0,L.Z)({},kt,rn)):((!pt||pt(nn.current,kt))&&(on.current+=1),nn.current=kt,s.createElement(J.Provider,{value:on.current},s.createElement(rt,(0,L.Z)({},kt,rn))))};return Dt?s.forwardRef(Ft):Ft}function ze(rt,pt){var Dt=(0,B.Yr)(rt),Ft=function(kt,wn){var rn=Dt?{ref:wn}:{};return Y(),s.createElement(rt,(0,L.Z)({},kt,rn))};return Dt?s.memo(s.forwardRef(Ft),pt):s.memo(Ft,pt)}return{makeImmutable:xe,responseImmutable:ze,useImmutableMark:Y}}var O=D(),T=O.makeImmutable,E=O.responseImmutable,I=O.useImmutableMark,U=D(),W=U.makeImmutable,re=U.responseImmutable,k=U.useImmutableMark,H=N(),de=H;function ce(J,Y){var xe=React.useRef(0);xe.current+=1;var ze=React.useRef(J),rt=[];Object.keys(J||{}).map(function(Dt){var Ft;(J==null?void 0:J[Dt])!==((Ft=ze.current)===null||Ft===void 0?void 0:Ft[Dt])&&rt.push(Dt)}),ze.current=J;var pt=React.useRef([]);return rt.length&&(pt.current=rt),React.useDebugValue(xe.current),React.useDebugValue(pt.current.join(", ")),Y&&console.log("".concat(Y,":"),xe.current,pt.current),xe.current}var Fe=null,ve=null,pe=p(76190),Ce=p(33885),G=p(20068),ge=p(92310),g=p.n(ge),j=p(80547),Ye=p(97938),oe=p(48736),he=s.createContext({renderWithProps:!1}),be=he,me="RC_TABLE_KEY";function ae(J){return J==null?[]:Array.isArray(J)?J:[J]}function se(J){var Y=[],xe={};return J.forEach(function(ze){for(var rt=ze||{},pt=rt.key,Dt=rt.dataIndex,Ft=pt||ae(Dt).join("-")||me;xe[Ft];)Ft="".concat(Ft,"_next");xe[Ft]=!0,Y.push(Ft)}),Y}function Je(J){return J!=null}function mt(J){return typeof J=="number"&&!Number.isNaN(J)}function Me(J){return J&&(0,pe.Z)(J)==="object"&&!Array.isArray(J)&&!s.isValidElement(J)}function Nt(J,Y,xe,ze,rt,pt){var Dt=s.useContext(be),Ft=k(),Vt=(0,j.Z)(function(){if(Je(ze))return[ze];var kt=Y==null||Y===""?[]:Array.isArray(Y)?Y:[Y],wn=(0,Ye.Z)(J,kt),rn=wn,on=void 0;if(rt){var nn=rt(wn,J,xe);Me(nn)?(rn=nn.children,on=nn.props,Dt.renderWithProps=!0):rn=nn}return[rn,on]},[Ft,J,ze,Y,rt,xe],function(kt,wn){if(pt){var rn=(0,we.Z)(kt,2),on=rn[1],nn=(0,we.Z)(wn,2),dn=nn[1];return pt(dn,on)}return Dt.renderWithProps?!0:!(0,Z.Z)(kt,wn,!0)});return Vt}function yt(J,Y,xe,ze){var rt=J+Y-1;return J<=ze&&rt>=xe}function zt(J,Y){return i(de,function(xe){var ze=yt(J,Y||1,xe.hoverStartRow,xe.hoverEndRow);return[ze,xe.onHover]})}var je=p(70425),It=function(Y){var xe=Y.ellipsis,ze=Y.rowType,rt=Y.children,pt,Dt=xe===!0?{showTitle:!0}:xe;return Dt&&(Dt.showTitle||ze==="header")&&(typeof rt=="string"||typeof rt=="number"?pt=rt.toString():s.isValidElement(rt)&&typeof rt.props.children=="string"&&(pt=rt.props.children)),pt};function Ze(J){var Y,xe,ze,rt,pt,Dt,Ft,Vt,kt=J.component,wn=J.children,rn=J.ellipsis,on=J.scope,nn=J.prefixCls,dn=J.className,rr=J.align,Pn=J.record,Ar=J.render,lr=J.dataIndex,tr=J.renderIndex,vr=J.shouldCellUpdate,Cr=J.index,Rr=J.rowType,Dr=J.colSpan,Eo=J.rowSpan,no=J.fixLeft,so=J.fixRight,Mr=J.firstFixLeft,Pr=J.lastFixLeft,Tr=J.firstFixRight,Er=J.lastFixRight,mr=J.appendNode,Nr=J.additionalProps,Hr=Nr===void 0?{}:Nr,Yr=J.isSticky,Br="".concat(nn,"-cell"),Vo=i(de,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Wo=Vo.supportSticky,Ma=Vo.allColumnsFixedLeft,Sa=Vo.rowHoverable,la=Nt(Pn,lr,tr,wn,Ar,vr),ur=(0,we.Z)(la,2),QA=ur[0],ii=ur[1],ai={},ua=typeof no=="number"&&Wo,BA=typeof so=="number"&&Wo;ua&&(ai.position="sticky",ai.left=no),BA&&(ai.position="sticky",ai.right=so);var Jr=(Y=(xe=(ze=ii==null?void 0:ii.colSpan)!==null&&ze!==void 0?ze:Hr.colSpan)!==null&&xe!==void 0?xe:Dr)!==null&&Y!==void 0?Y:1,uo=(rt=(pt=(Dt=ii==null?void 0:ii.rowSpan)!==null&&Dt!==void 0?Dt:Hr.rowSpan)!==null&&pt!==void 0?pt:Eo)!==null&&rt!==void 0?rt:1,kr=zt(Cr,uo),ro=(0,we.Z)(kr,2),bi=ro[0],Ui=ro[1],Ji=(0,je.zX)(function(Fa){var qi;Pn&&Ui(Cr,Cr+uo-1),Hr==null||(qi=Hr.onMouseEnter)===null||qi===void 0||qi.call(Hr,Fa)}),Zi=(0,je.zX)(function(Fa){var qi;Pn&&Ui(-1,-1),Hr==null||(qi=Hr.onMouseLeave)===null||qi===void 0||qi.call(Hr,Fa)});if(Jr===0||uo===0)return null;var Da=(Ft=Hr.title)!==null&&Ft!==void 0?Ft:It({rowType:Rr,ellipsis:rn,children:QA}),jA=g()(Br,dn,(Vt={},(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)(Vt,"".concat(Br,"-fix-left"),ua&&Wo),"".concat(Br,"-fix-left-first"),Mr&&Wo),"".concat(Br,"-fix-left-last"),Pr&&Wo),"".concat(Br,"-fix-left-all"),Pr&&Ma&&Wo),"".concat(Br,"-fix-right"),BA&&Wo),"".concat(Br,"-fix-right-first"),Tr&&Wo),"".concat(Br,"-fix-right-last"),Er&&Wo),"".concat(Br,"-ellipsis"),rn),"".concat(Br,"-with-append"),mr),"".concat(Br,"-fix-sticky"),(ua||BA)&&Yr&&Wo),(0,G.Z)(Vt,"".concat(Br,"-row-hover"),!ii&&bi)),Hr.className,ii==null?void 0:ii.className),to={};rr&&(to.textAlign=rr);var Wr=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},ii==null?void 0:ii.style),ai),to),Hr.style),Ci=QA;return(0,pe.Z)(Ci)==="object"&&!Array.isArray(Ci)&&!s.isValidElement(Ci)&&(Ci=null),rn&&(Pr||Tr)&&(Ci=s.createElement("span",{className:"".concat(Br,"-content")},Ci)),s.createElement(kt,(0,L.Z)({},ii,Hr,{className:jA,style:Wr,title:Da,scope:on,onMouseEnter:Sa?Ji:void 0,onMouseLeave:Sa?Zi:void 0,colSpan:Jr!==1?Jr:null,rowSpan:uo!==1?uo:null}),mr,Ci)}var Pt=s.memo(Ze);function ct(J,Y,xe,ze,rt){var pt=xe[J]||{},Dt=xe[Y]||{},Ft,Vt;pt.fixed==="left"?Ft=ze.left[rt==="rtl"?Y:J]:Dt.fixed==="right"&&(Vt=ze.right[rt==="rtl"?J:Y]);var kt=!1,wn=!1,rn=!1,on=!1,nn=xe[Y+1],dn=xe[J-1],rr=nn&&!nn.fixed||dn&&!dn.fixed||xe.every(function(vr){return vr.fixed==="left"});if(rt==="rtl"){if(Ft!==void 0){var Pn=dn&&dn.fixed==="left";on=!Pn&&rr}else if(Vt!==void 0){var Ar=nn&&nn.fixed==="right";rn=!Ar&&rr}}else if(Ft!==void 0){var lr=nn&&nn.fixed==="left";kt=!lr&&rr}else if(Vt!==void 0){var tr=dn&&dn.fixed==="right";wn=!tr&&rr}return{fixLeft:Ft,fixRight:Vt,lastFixLeft:kt,firstFixRight:wn,lastFixRight:rn,firstFixLeft:on,isSticky:ze.isSticky}}var x=s.createContext({}),Ke=x;function P(J){var Y=J.className,xe=J.index,ze=J.children,rt=J.colSpan,pt=rt===void 0?1:rt,Dt=J.rowSpan,Ft=J.align,Vt=i(de,["prefixCls","direction"]),kt=Vt.prefixCls,wn=Vt.direction,rn=s.useContext(Ke),on=rn.scrollColumnIndex,nn=rn.stickyOffsets,dn=rn.flattenColumns,rr=xe+pt-1,Pn=rr+1===on?pt+1:pt,Ar=ct(xe,xe+Pn-1,dn,nn,wn);return s.createElement(Pt,(0,L.Z)({className:Y,index:xe,component:"td",prefixCls:kt,record:null,dataIndex:null,align:Ft,colSpan:Pn,rowSpan:Dt,render:function(){return ze}},Ar))}var A=p(75931),h=["children"];function C(J){var Y=J.children,xe=(0,A.Z)(J,h);return s.createElement("tr",xe,Y)}function b(J){var Y=J.children;return Y}b.Row=C,b.Cell=P;var K=b;function ee(J){var Y=J.children,xe=J.stickyOffsets,ze=J.flattenColumns,rt=i(de,"prefixCls"),pt=ze.length-1,Dt=ze[pt],Ft=s.useMemo(function(){return{stickyOffsets:xe,flattenColumns:ze,scrollColumnIndex:Dt!=null&&Dt.scrollbar?pt:null}},[Dt,ze,pt,xe]);return s.createElement(Ke.Provider,{value:Ft},s.createElement("tfoot",{className:"".concat(rt,"-summary")},Y))}var Ee=re(ee),le=K,ue=p(29301),Qe=p(24514),ke=p(75152),ie=p(26112);function X(J,Y,xe,ze,rt,pt,Dt){J.push({record:Y,indent:xe,index:Dt});var Ft=pt(Y),Vt=rt==null?void 0:rt.has(Ft);if(Y&&Array.isArray(Y[ze])&&Vt)for(var kt=0;kt1?Mr-1:0),Tr=1;Tr=1)),style:(0,Ce.Z)((0,Ce.Z)({},xe),Ar==null?void 0:Ar.style)}),dn.map(function(no,so){var Mr=no.render,Pr=no.dataIndex,Tr=no.className,Er=Ie(on,no,so,Vt,rt),mr=Er.key,Nr=Er.fixedInfo,Hr=Er.appendCellNode,Yr=Er.additionalCellProps;return s.createElement(Pt,(0,L.Z)({className:Tr,ellipsis:no.ellipsis,align:no.align,scope:no.rowScope,component:no.rowScope?rn:wn,prefixCls:nn,key:mr,record:ze,index:rt,renderIndex:pt,dataIndex:Pr,render:Mr,shouldCellUpdate:no.shouldCellUpdate},Nr,{appendNode:Hr,additionalProps:Yr}))})),Dr;if(tr&&(vr.current||lr)){var Eo=Pn(ze,rt,Vt+1,lr);Dr=s.createElement(at,{expanded:lr,className:g()("".concat(nn,"-expanded-row"),"".concat(nn,"-expanded-row-level-").concat(Vt+1),Cr),prefixCls:nn,component:kt,cellComponent:wn,colSpan:dn.length,isEmpty:!1},Eo)}return s.createElement(s.Fragment,null,Rr,Dr)}var ut=re($e);function Qt(J){var Y=J.columnKey,xe=J.onColumnResize,ze=s.useRef();return(0,$.Z)(function(){ze.current&&xe(Y,ze.current.offsetWidth)},[]),s.createElement(ue.Z,{data:Y},s.createElement("td",{ref:ze,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ae=p(29194);function Oe(J){var Y=J.prefixCls,xe=J.columnsKey,ze=J.onColumnResize,rt=s.useRef(null);return s.createElement("tr",{"aria-hidden":"true",className:"".concat(Y,"-measure-row"),style:{height:0,fontSize:0},ref:rt},s.createElement(ue.Z.Collection,{onBatchResize:function(Dt){(0,Ae.Z)(rt.current)&&Dt.forEach(function(Ft){var Vt=Ft.data,kt=Ft.size;ze(Vt,kt.offsetWidth)})}},xe.map(function(pt){return s.createElement(Qt,{key:pt,columnKey:pt,onColumnResize:ze})})))}function We(J){var Y=J.data,xe=J.measureColumnWidth,ze=i(de,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),rt=ze.prefixCls,pt=ze.getComponent,Dt=ze.onColumnResize,Ft=ze.flattenColumns,Vt=ze.getRowKey,kt=ze.expandedKeys,wn=ze.childrenColumnName,rn=ze.emptyNode,on=tt(Y,wn,kt,Vt),nn=s.useRef({renderWithProps:!1}),dn=pt(["body","wrapper"],"tbody"),rr=pt(["body","row"],"tr"),Pn=pt(["body","cell"],"td"),Ar=pt(["body","cell"],"th"),lr;Y.length?lr=on.map(function(vr,Cr){var Rr=vr.record,Dr=vr.indent,Eo=vr.index,no=Vt(Rr,Cr);return s.createElement(ut,{key:no,rowKey:no,record:Rr,index:Cr,renderIndex:Eo,rowComponent:rr,cellComponent:Pn,scopeCellComponent:Ar,indent:Dr})}):lr=s.createElement(at,{expanded:!0,className:"".concat(rt,"-placeholder"),prefixCls:rt,component:rr,cellComponent:Pn,colSpan:Ft.length,isEmpty:!0},rn);var tr=se(Ft);return s.createElement(be.Provider,{value:nn.current},s.createElement(dn,{className:"".concat(rt,"-tbody")},xe&&s.createElement(Oe,{prefixCls:rt,columnsKey:tr,onColumnResize:Dt}),lr))}var vt=re(We),Rt=["expandable"],en="RC_TABLE_INTERNAL_COL_DEFINE";function En(J){var Y=J.expandable,xe=(0,A.Z)(J,Rt),ze;return"expandable"in J?ze=(0,Ce.Z)((0,Ce.Z)({},xe),Y):ze=xe,ze.showExpandColumn===!1&&(ze.expandIconColumnIndex=-1),ze}var xn=["columnType"];function ln(J){for(var Y=J.colWidths,xe=J.columns,ze=J.columCount,rt=i(de,["tableLayout"]),pt=rt.tableLayout,Dt=[],Ft=ze||xe.length,Vt=!1,kt=Ft-1;kt>=0;kt-=1){var wn=Y[kt],rn=xe&&xe[kt],on=void 0,nn=void 0;if(rn&&(on=rn[en],pt==="auto"&&(nn=rn.minWidth)),wn||nn||on||Vt){var dn=on||{},rr=dn.columnType,Pn=(0,A.Z)(dn,xn);Dt.unshift(s.createElement("col",(0,L.Z)({key:kt,style:{width:wn,minWidth:nn}},Pn))),Vt=!0}}return s.createElement("colgroup",null,Dt)}var tn=ln,Yt=p(94480),cn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function yn(J,Y){return(0,s.useMemo)(function(){for(var xe=[],ze=0;ze1?"colgroup":"col":null,ellipsis:Pn.ellipsis,align:Pn.align,component:Dt,prefixCls:wn,key:nn[rr]},Ar,{additionalProps:lr,rowType:"header"}))}))},er=qn;function xr(J){var Y=[];function xe(Dt,Ft){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Y[Vt]=Y[Vt]||[];var kt=Ft,wn=Dt.filter(Boolean).map(function(rn){var on={key:rn.key,className:rn.className||"",children:rn.title,column:rn,colStart:kt},nn=1,dn=rn.children;return dn&&dn.length>0&&(nn=xe(dn,kt,Vt+1).reduce(function(rr,Pn){return rr+Pn},0),on.hasSubColumns=!0),"colSpan"in rn&&(nn=rn.colSpan),"rowSpan"in rn&&(on.rowSpan=rn.rowSpan),on.colSpan=nn,on.colEnd=on.colStart+nn-1,Y[Vt].push(on),kt+=nn,nn});return wn}xe(J,0);for(var ze=Y.length,rt=function(Ft){Y[Ft].forEach(function(Vt){!("rowSpan"in Vt)&&!Vt.hasSubColumns&&(Vt.rowSpan=ze-Ft)})},pt=0;pt1&&arguments[1]!==void 0?arguments[1]:"";return typeof Y=="number"?Y:Y.endsWith("%")?J*parseFloat(Y)/100:null}function pr(J,Y,xe){return s.useMemo(function(){if(Y&&Y>0){var ze=0,rt=0;J.forEach(function(on){var nn=zr(Y,on.width);nn?ze+=nn:rt+=1});var pt=Math.max(Y,xe),Dt=Math.max(pt-ze,rt),Ft=rt,Vt=Dt/rt,kt=0,wn=J.map(function(on){var nn=(0,Ce.Z)({},on),dn=zr(Y,nn.width);if(dn)nn.width=dn;else{var rr=Math.floor(Vt);nn.width=Ft===1?Dt:rr,Dt-=rr,Ft-=1}return kt+=nn.width,nn});if(kt0?(0,Ce.Z)((0,Ce.Z)({},Y),{},{children:Cn(xe)}):Y})}function br(J){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return J.filter(function(xe){return xe&&(0,pe.Z)(xe)==="object"}).reduce(function(xe,ze,rt){var pt=ze.fixed,Dt=pt===!0?"left":pt,Ft="".concat(Y,"-").concat(rt),Vt=ze.children;return Vt&&Vt.length>0?[].concat((0,Yt.Z)(xe),(0,Yt.Z)(br(Vt,Ft).map(function(kt){return(0,Ce.Z)({fixed:Dt},kt)}))):[].concat((0,Yt.Z)(xe),[(0,Ce.Z)((0,Ce.Z)({key:Ft},ze),{},{fixed:Dt})])},[])}function Or(J){return J.map(function(Y){var xe=Y.fixed,ze=(0,A.Z)(Y,mo),rt=xe;return xe==="left"?rt="right":xe==="right"&&(rt="left"),(0,Ce.Z)({fixed:rt},ze)})}function wt(J,Y){var xe=J.prefixCls,ze=J.columns,rt=J.children,pt=J.expandable,Dt=J.expandedKeys,Ft=J.columnTitle,Vt=J.getRowKey,kt=J.onTriggerExpand,wn=J.expandIcon,rn=J.rowExpandable,on=J.expandIconColumnIndex,nn=J.direction,dn=J.expandRowByClick,rr=J.columnWidth,Pn=J.fixed,Ar=J.scrollWidth,lr=J.clientWidth,tr=s.useMemo(function(){var Pr=ze||Dn(rt)||[];return Cn(Pr.slice())},[ze,rt]),vr=s.useMemo(function(){if(pt){var Pr=tr.slice();if(!Pr.includes(Se)){var Tr=on||0;Tr>=0&&(Tr||Pn==="left"||!Pn)&&Pr.splice(Tr,0,Se),Pn==="right"&&Pr.splice(tr.length,0,Se)}var Er=Pr.indexOf(Se);Pr=Pr.filter(function(Yr,Br){return Yr!==Se||Br===Er});var mr=tr[Er],Nr;Pn?Nr=Pn:Nr=mr?mr.fixed:null;var Hr=(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},en,{className:"".concat(xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Ft),"fixed",Nr),"className","".concat(xe,"-row-expand-icon-cell")),"width",rr),"render",function(Br,Vo,Wo){var Ma=Vt(Vo,Wo),Sa=Dt.has(Ma),la=rn?rn(Vo):!0,ur=wn({prefixCls:xe,expanded:Sa,expandable:la,record:Vo,onExpand:kt});return dn?s.createElement("span",{onClick:function(ii){return ii.stopPropagation()}},ur):ur});return Pr.map(function(Yr){return Yr===Se?Hr:Yr})}return tr.filter(function(Yr){return Yr!==Se})},[pt,tr,Vt,Dt,wn,nn]),Cr=s.useMemo(function(){var Pr=vr;return Y&&(Pr=Y(Pr)),Pr.length||(Pr=[{render:function(){return null}}]),Pr},[Y,vr,nn]),Rr=s.useMemo(function(){return nn==="rtl"?Or(br(Cr)):br(Cr)},[Cr,nn,Ar]),Dr=s.useMemo(function(){for(var Pr=-1,Tr=Rr.length-1;Tr>=0;Tr-=1){var Er=Rr[Tr].fixed;if(Er==="left"||Er===!0){Pr=Tr;break}}if(Pr>=0)for(var mr=0;mr<=Pr;mr+=1){var Nr=Rr[mr].fixed;if(Nr!=="left"&&Nr!==!0)return!0}var Hr=Rr.findIndex(function(Vo){var Wo=Vo.fixed;return Wo==="right"});if(Hr>=0)for(var Yr=Hr;Yr=Hr-Ft?lr(function(Yr){return(0,Ce.Z)((0,Ce.Z)({},Yr),{},{isHiddenScrollBar:!0})}):lr(function(Yr){return(0,Ce.Z)((0,Ce.Z)({},Yr),{},{isHiddenScrollBar:!1})})}})},Tr=function(mr){lr(function(Nr){return(0,Ce.Z)((0,Ce.Z)({},Nr),{},{scrollLeft:mr/rn*on||0})})};return s.useImperativeHandle(xe,function(){return{setScrollLeft:Tr,checkScrollBarVisible:Pr}}),s.useEffect(function(){var Er=(0,Sr.Z)(document.body,"mouseup",no,!1),mr=(0,Sr.Z)(document.body,"mousemove",Mr,!1);return Pr(),function(){Er.remove(),mr.remove()}},[nn,Rr]),s.useEffect(function(){if(pt.current){for(var Er=[],mr=(0,Fr.bn)(pt.current);mr;)Er.push(mr),mr=mr.parentElement;return Er.forEach(function(Nr){return Nr.addEventListener("scroll",Pr,!1)}),window.addEventListener("resize",Pr,!1),window.addEventListener("scroll",Pr,!1),Vt.addEventListener("scroll",Pr,!1),function(){Er.forEach(function(Nr){return Nr.removeEventListener("scroll",Pr)}),window.removeEventListener("resize",Pr),window.removeEventListener("scroll",Pr),Vt.removeEventListener("scroll",Pr)}}},[Vt]),s.useEffect(function(){Ar.isHiddenScrollBar||lr(function(Er){var mr=pt.current;return mr?(0,Ce.Z)((0,Ce.Z)({},Er),{},{scrollLeft:mr.scrollLeft/mr.scrollWidth*mr.clientWidth}):Er})},[Ar.isHiddenScrollBar]),rn<=on||!nn||Ar.isHiddenScrollBar?null:s.createElement("div",{style:{height:(0,ke.Z)(),width:on,bottom:Ft},className:"".concat(wn,"-sticky-scroll")},s.createElement("div",{onMouseDown:so,ref:dn,className:g()("".concat(wn,"-sticky-scroll-bar"),(0,G.Z)({},"".concat(wn,"-sticky-scroll-bar-active"),Rr)),style:{width:"".concat(nn,"px"),transform:"translate3d(".concat(Ar.scrollLeft,"px, 0, 0)")}}))},wi=s.forwardRef($i);function Ro(J){return null}var Fi=Ro;function Lo(J){return null}var _i=Lo,Xi="rc-table",zo=[],Ii={};function Oi(){return"No Data"}function _r(J,Y){var xe=(0,Ce.Z)({rowKey:"key",prefixCls:Xi,emptyText:Oi},J),ze=xe.prefixCls,rt=xe.className,pt=xe.rowClassName,Dt=xe.style,Ft=xe.data,Vt=xe.rowKey,kt=xe.scroll,wn=xe.tableLayout,rn=xe.direction,on=xe.title,nn=xe.footer,dn=xe.summary,rr=xe.caption,Pn=xe.id,Ar=xe.showHeader,lr=xe.components,tr=xe.emptyText,vr=xe.onRow,Cr=xe.onHeaderRow,Rr=xe.onScroll,Dr=xe.internalHooks,Eo=xe.transformColumns,no=xe.internalRefs,so=xe.tailor,Mr=xe.getContainerWidth,Pr=xe.sticky,Tr=xe.rowHoverable,Er=Tr===void 0?!0:Tr,mr=Ft||zo,Nr=!!mr.length,Hr=Dr===M,Yr=s.useCallback(function(ui,Ei){return(0,Ye.Z)(lr,ui)||Ei},[lr]),Br=s.useMemo(function(){return typeof Vt=="function"?Vt:function(ui){var Ei=ui&&ui[Vt];return Ei}},[Vt]),Vo=Yr(["body"]),Wo=qt(),Ma=(0,we.Z)(Wo,3),Sa=Ma[0],la=Ma[1],ur=Ma[2],QA=Sn(xe,mr,Br),ii=(0,we.Z)(QA,6),ai=ii[0],ua=ii[1],BA=ii[2],Jr=ii[3],uo=ii[4],kr=ii[5],ro=kt==null?void 0:kt.x,bi=s.useState(0),Ui=(0,we.Z)(bi,2),Ji=Ui[0],Zi=Ui[1],Da=dt((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},xe),ai),{},{expandable:!!ai.expandedRowRender,columnTitle:ai.columnTitle,expandedKeys:BA,getRowKey:Br,onTriggerExpand:kr,expandIcon:Jr,expandIconColumnIndex:ai.expandIconColumnIndex,direction:rn,scrollWidth:Hr&&so&&typeof ro=="number"?ro:null,clientWidth:Ji}),Hr?Eo:null),jA=(0,we.Z)(Da,4),to=jA[0],Wr=jA[1],Ci=jA[2],Fa=jA[3],qi=Ci!=null?Ci:ro,MA=s.useMemo(function(){return{columns:to,flattenColumns:Wr}},[to,Wr]),Ha=s.useRef(),Ws=s.useRef(),Ia=s.useRef(),ji=s.useRef();s.useImperativeHandle(Y,function(){return{nativeElement:Ha.current,scrollTo:function(Ei){var gA;if(Ia.current instanceof HTMLElement){var es=Ei.index,ZA=Ei.top,fu=Ei.key;if(mt(ZA)){var hu;(hu=Ia.current)===null||hu===void 0||hu.scrollTo({top:ZA})}else{var pu,ku=fu!=null?fu:Br(mr[es]);(pu=Ia.current.querySelector('[data-row-key="'.concat(ku,'"]')))===null||pu===void 0||pu.scrollIntoView()}}else(gA=Ia.current)!==null&&gA!==void 0&&gA.scrollTo&&Ia.current.scrollTo(Ei)}}});var ga=s.useRef(),ma=s.useState(!1),hA=(0,we.Z)(ma,2),oA=hA[0],Pi=hA[1],ka=s.useState(!1),Vi=(0,we.Z)(ka,2),Ua=Vi[0],Wa=Vi[1],HA=s.useState(new Map),Gs=(0,we.Z)(HA,2),lu=Gs[0],Na=Gs[1],Ru=se(Wr),$A=Ru.map(function(ui){return lu.get(ui)}),XA=s.useMemo(function(){return $A},[$A.join("_")]),kA=Mn(XA,Wr,rn),YA=kt&&Je(kt.y),JA=kt&&Je(qi)||!!ai.fixed,xs=JA&&Wr.some(function(ui){var Ei=ui.fixed;return Ei}),vl=s.useRef(),Ts=Yn(Pr,ze),$s=Ts.isSticky,qc=Ts.offsetHeader,ed=Ts.offsetSummary,Li=Ts.offsetScroll,uu=Ts.stickyClassName,td=Ts.container,Po=s.useMemo(function(){return dn==null?void 0:dn(mr)},[dn,mr]),Wi=(YA||$s)&&s.isValidElement(Po)&&Po.type===K&&Po.props.fixed,pA,bA,As;YA&&(bA={overflowY:Nr?"scroll":"auto",maxHeight:kt.y}),JA&&(pA={overflowX:"auto"},YA||(bA={overflowY:"hidden"}),As={width:qi===!0?"auto":qi,minWidth:"100%"});var Xs=s.useCallback(function(ui,Ei){Na(function(gA){if(gA.get(ui)!==Ei){var es=new Map(gA);return es.set(ui,Ei),es}return gA})},[]),qA=Bt(null),KA=(0,we.Z)(qA,2),jd=KA[0],Md=KA[1];function cu(ui,Ei){Ei&&(typeof Ei=="function"?Ei(ui):Ei.scrollLeft!==ui&&(Ei.scrollLeft=ui,Ei.scrollLeft!==ui&&setTimeout(function(){Ei.scrollLeft=ui},0)))}var du=(0,te.Z)(function(ui){var Ei=ui.currentTarget,gA=ui.scrollLeft,es=rn==="rtl",ZA=typeof gA=="number"?gA:Ei.scrollLeft,fu=Ei||Ii;if(!Md()||Md()===fu){var hu;jd(fu),cu(ZA,Ws.current),cu(ZA,Ia.current),cu(ZA,ga.current),cu(ZA,(hu=vl.current)===null||hu===void 0?void 0:hu.setScrollLeft)}var pu=Ei||Ws.current;if(pu){var ku=Hr&&so&&typeof qi=="number"?qi:pu.scrollWidth,zl=pu.clientWidth;if(ku===zl){Pi(!1),Wa(!1);return}es?(Pi(-ZA0)):(Pi(ZA>0),Wa(ZA1?Pn-Er:0,Nr=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},Eo),kt),{},{flex:"0 0 ".concat(Er,"px"),width:"".concat(Er,"px"),marginRight:mr,pointerEvents:"auto"}),Hr=s.useMemo(function(){return rn?Pr<=1:so===0||Pr===0||Pr>1},[Pr,so,rn]);Hr?Nr.visibility="hidden":rn&&(Nr.height=on==null?void 0:on(Pr));var Yr=Hr?function(){return null}:nn,Br={};return(Pr===0||so===0)&&(Br.rowSpan=1,Br.colSpan=1),s.createElement(Pt,(0,L.Z)({className:g()(rr,wn),ellipsis:xe.ellipsis,align:xe.align,scope:xe.rowScope,component:Dt,prefixCls:Y.prefixCls,key:vr,record:Vt,index:pt,renderIndex:Ft,dataIndex:dn,render:Yr,shouldCellUpdate:xe.shouldCellUpdate},Cr,{appendNode:Rr,additionalProps:(0,Ce.Z)((0,Ce.Z)({},Dr),{},{style:Nr},Br)}))}var aa=Xo,Ga=["data","index","className","rowKey","style","extra","getHeight"],wa=s.forwardRef(function(J,Y){var xe=J.data,ze=J.index,rt=J.className,pt=J.rowKey,Dt=J.style,Ft=J.extra,Vt=J.getHeight,kt=(0,A.Z)(J,Ga),wn=xe.record,rn=xe.indent,on=xe.index,nn=i(de,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),dn=nn.scrollX,rr=nn.flattenColumns,Pn=nn.prefixCls,Ar=nn.fixColumn,lr=nn.componentWidth,tr=i(ki,["getComponent"]),vr=tr.getComponent,Cr=Te(wn,pt,ze,rn),Rr=vr(["body","row"],"div"),Dr=vr(["body","cell"],"div"),Eo=Cr.rowSupportExpand,no=Cr.expanded,so=Cr.rowProps,Mr=Cr.expandedRowRender,Pr=Cr.expandedRowClassName,Tr;if(Eo&&no){var Er=Mr(wn,ze,rn+1,no),mr=St(Pr,wn,ze,rn),Nr={};Ar&&(Nr={style:(0,G.Z)({},"--virtual-width","".concat(lr,"px"))});var Hr="".concat(Pn,"-expanded-row-cell");Tr=s.createElement(Rr,{className:g()("".concat(Pn,"-expanded-row"),"".concat(Pn,"-expanded-row-level-").concat(rn+1),mr)},s.createElement(Pt,{component:Dr,prefixCls:Pn,className:g()(Hr,(0,G.Z)({},"".concat(Hr,"-fixed"),Ar)),additionalProps:Nr},Er))}var Yr=(0,Ce.Z)((0,Ce.Z)({},Dt),{},{width:dn});Ft&&(Yr.position="absolute",Yr.pointerEvents="none");var Br=s.createElement(Rr,(0,L.Z)({},so,kt,{"data-row-key":pt,ref:Eo?null:Y,className:g()(rt,"".concat(Pn,"-row"),so==null?void 0:so.className,(0,G.Z)({},"".concat(Pn,"-row-extra"),Ft)),style:(0,Ce.Z)((0,Ce.Z)({},Yr),so==null?void 0:so.style)}),rr.map(function(Vo,Wo){return s.createElement(aa,{key:Wo,component:Dr,rowInfo:Cr,column:Vo,colIndex:Wo,indent:rn,index:ze,renderIndex:on,record:wn,inverse:Ft,getHeight:Vt})}));return Eo?s.createElement("div",{ref:Y},Br,Tr):Br}),Aa=re(wa),Yi=Aa,fa=s.forwardRef(function(J,Y){var xe=J.data,ze=J.onScroll,rt=i(de,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),pt=rt.flattenColumns,Dt=rt.onColumnResize,Ft=rt.getRowKey,Vt=rt.expandedKeys,kt=rt.prefixCls,wn=rt.childrenColumnName,rn=rt.scrollX,on=rt.direction,nn=i(ki),dn=nn.sticky,rr=nn.scrollY,Pn=nn.listItemHeight,Ar=nn.getComponent,lr=nn.onScroll,tr=s.useRef(),vr=tt(xe,wn,Vt,Ft),Cr=s.useMemo(function(){var Tr=0;return pt.map(function(Er){var mr=Er.width,Nr=Er.key;return Tr+=mr,[Nr,mr,Tr]})},[pt]),Rr=s.useMemo(function(){return Cr.map(function(Tr){return Tr[2]})},[Cr]);s.useEffect(function(){Cr.forEach(function(Tr){var Er=(0,we.Z)(Tr,2),mr=Er[0],Nr=Er[1];Dt(mr,Nr)})},[Cr]),s.useImperativeHandle(Y,function(){var Tr,Er={scrollTo:function(Nr){var Hr;(Hr=tr.current)===null||Hr===void 0||Hr.scrollTo(Nr)},nativeElement:(Tr=tr.current)===null||Tr===void 0?void 0:Tr.nativeElement};return Object.defineProperty(Er,"scrollLeft",{get:function(){var Nr;return((Nr=tr.current)===null||Nr===void 0?void 0:Nr.getScrollInfo().x)||0},set:function(Nr){var Hr;(Hr=tr.current)===null||Hr===void 0||Hr.scrollTo({left:Nr})}}),Er});var Dr=function(Er,mr){var Nr,Hr=(Nr=vr[mr])===null||Nr===void 0?void 0:Nr.record,Yr=Er.onCell;if(Yr){var Br,Vo=Yr(Hr,mr);return(Br=Vo==null?void 0:Vo.rowSpan)!==null&&Br!==void 0?Br:1}return 1},Eo=function(Er){var mr=Er.start,Nr=Er.end,Hr=Er.getSize,Yr=Er.offsetY;if(Nr<0)return null;for(var Br=pt.filter(function(Jr){return Dr(Jr,mr)===0}),Vo=mr,Wo=function(uo){if(Br=Br.filter(function(kr){return Dr(kr,uo)===0}),!Br.length)return Vo=uo,1},Ma=mr;Ma>=0&&!Wo(Ma);Ma-=1);for(var Sa=pt.filter(function(Jr){return Dr(Jr,Nr)!==1}),la=Nr,ur=function(uo){if(Sa=Sa.filter(function(kr){return Dr(kr,uo)!==1}),!Sa.length)return la=Math.max(uo-1,Nr),1},QA=Nr;QA1})&&ii.push(uo)},ua=Vo;ua<=la;ua+=1)ai(ua);var BA=ii.map(function(Jr){var uo=vr[Jr],kr=Ft(uo.record,Jr),ro=function(Ji){var Zi=Jr+Ji-1,Da=Ft(vr[Zi].record,Zi),jA=Hr(kr,Da);return jA.bottom-jA.top},bi=Hr(kr);return s.createElement(Yi,{key:Jr,data:uo,rowKey:kr,index:Jr,style:{top:-Yr+bi.top},extra:!0,getHeight:ro})});return BA},no=s.useMemo(function(){return{columnsOffset:Rr}},[Rr]),so="".concat(kt,"-tbody"),Mr=Ar(["body","wrapper"]),Pr={};return dn&&(Pr.position="sticky",Pr.bottom=0,(0,pe.Z)(dn)==="object"&&dn.offsetScroll&&(Pr.bottom=dn.offsetScroll)),s.createElement(ri.Provider,{value:no},s.createElement(ya.Z,{fullHeight:!1,ref:tr,prefixCls:"".concat(so,"-virtual"),styles:{horizontalScrollBar:Pr},className:so,height:rr,itemHeight:Pn||24,data:vr,itemKey:function(Er){return Ft(Er.record)},component:Mr,scrollWidth:rn,direction:on,onVirtualScroll:function(Er){var mr,Nr=Er.x;ze({currentTarget:(mr=tr.current)===null||mr===void 0?void 0:mr.nativeElement,scrollLeft:Nr})},onScroll:lr,extraRender:Eo},function(Tr,Er,mr){var Nr=Ft(Tr.record,Er);return s.createElement(Yi,{data:Tr,rowKey:Nr,index:Er,style:mr.style})}))}),vA=re(fa),sA=vA,sa=function(Y,xe){var ze=xe.ref,rt=xe.onScroll;return s.createElement(sA,{ref:ze,data:Y,onScroll:rt})};function Vr(J,Y){var xe=J.data,ze=J.columns,rt=J.scroll,pt=J.sticky,Dt=J.prefixCls,Ft=Dt===void 0?Xi:Dt,Vt=J.className,kt=J.listItemHeight,wn=J.components,rn=J.onScroll,on=rt||{},nn=on.x,dn=on.y;typeof nn!="number"&&(nn=1),typeof dn!="number"&&(dn=500);var rr=(0,je.zX)(function(lr,tr){return(0,Ye.Z)(wn,lr)||tr}),Pn=(0,je.zX)(rn),Ar=s.useMemo(function(){return{sticky:pt,scrollY:dn,listItemHeight:kt,getComponent:rr,onScroll:Pn}},[pt,dn,kt,rr,Pn]);return s.createElement(ki.Provider,{value:Ar},s.createElement(ea,(0,L.Z)({},J,{className:g()(Vt,"".concat(Ft,"-virtual")),scroll:(0,Ce.Z)((0,Ce.Z)({},rt),{},{x:nn}),components:(0,Ce.Z)((0,Ce.Z)({},wn),{},{body:xe!=null&&xe.length?sa:void 0}),columns:ze,internalHooks:M,tailor:!0,ref:Y})))}var Qn=s.forwardRef(Vr);function Xn(J){return W(Qn,J)}var Gn=Xn(),_n=null,jr=J=>null,qo=J=>null,fi=p(84105),_a=p(82661),lA=p(34643),ds=p(34061),Ba=p(18929);function Cs(J){const[Y,xe]=(0,s.useState)(null);return[(0,s.useCallback)((pt,Dt,Ft)=>{const Vt=Y!=null?Y:pt,kt=Math.min(Vt||0,pt),wn=Math.max(Vt||0,pt),rn=Dt.slice(kt,wn+1).map(dn=>J(dn)),on=rn.some(dn=>!Ft.has(dn)),nn=[];return rn.forEach(dn=>{on?(Ft.has(dn)||nn.push(dn),Ft.add(dn)):(Ft.delete(dn),nn.push(dn))}),xe(on?wn:null),nn},[Y]),pt=>{xe(pt)}]}var FA=p(32383),uA=p(62673),ta=p(75727),ha=p(47889);const pi={},$a="SELECT_ALL",PA="SELECT_INVERT",cA="SELECT_NONE",yA=[],TA=(J,Y)=>{let xe=[];return(Y||[]).forEach(ze=>{xe.push(ze),ze&&typeof ze=="object"&&J in ze&&(xe=[].concat((0,Yt.Z)(xe),(0,Yt.Z)(TA(J,ze[J]))))}),xe};var Zo=(J,Y)=>{const{preserveSelectedRowKeys:xe,selectedRowKeys:ze,defaultSelectedRowKeys:rt,getCheckboxProps:pt,onChange:Dt,onSelect:Ft,onSelectAll:Vt,onSelectInvert:kt,onSelectNone:wn,onSelectMultiple:rn,columnWidth:on,type:nn,selections:dn,fixed:rr,renderCell:Pn,hideSelectAll:Ar,checkStrictly:lr=!0}=Y||{},{prefixCls:tr,data:vr,pageData:Cr,getRecordByKey:Rr,getRowKey:Dr,expandType:Eo,childrenColumnName:no,locale:so,getPopupContainer:Mr}=J,Pr=(0,FA.ln)("Table"),[Tr,Er]=Cs(Jr=>Jr),[mr,Nr]=(0,Ba.Z)(ze||rt||yA,{value:ze}),Hr=s.useRef(new Map),Yr=(0,s.useCallback)(Jr=>{if(xe){const uo=new Map;Jr.forEach(kr=>{let ro=Rr(kr);!ro&&Hr.current.has(kr)&&(ro=Hr.current.get(kr)),uo.set(kr,ro)}),Hr.current=uo}},[Rr,xe]);s.useEffect(()=>{Yr(mr)},[mr]);const Br=(0,s.useMemo)(()=>TA(no,Cr),[no,Cr]),{keyEntities:Vo}=(0,s.useMemo)(()=>{if(lr)return{keyEntities:null};let Jr=vr;if(xe){const uo=new Set(Br.map((ro,bi)=>Dr(ro,bi))),kr=Array.from(Hr.current).reduce((ro,bi)=>{let[Ui,Ji]=bi;return uo.has(Ui)?ro:ro.concat(Ji)},[]);Jr=[].concat((0,Yt.Z)(Jr),(0,Yt.Z)(kr))}return(0,ds.I8)(Jr,{externalGetKey:Dr,childrenPropName:no})},[vr,Dr,lr,no,xe,Br]),Wo=(0,s.useMemo)(()=>{const Jr=new Map;return Br.forEach((uo,kr)=>{const ro=Dr(uo,kr),bi=(pt?pt(uo):null)||{};Jr.set(ro,bi)}),Jr},[Br,Dr,pt]),Ma=(0,s.useCallback)(Jr=>{const uo=Dr(Jr);let kr;return Wo.has(uo)?kr=Wo.get(Dr(Jr)):kr=pt?pt(Jr):void 0,!!(kr!=null&&kr.disabled)},[Wo,Dr]),[Sa,la]=(0,s.useMemo)(()=>{if(lr)return[mr||[],[]];const{checkedKeys:Jr,halfCheckedKeys:uo}=(0,lA.S)(mr,!0,Vo,Ma);return[Jr||[],uo]},[mr,lr,Vo,Ma]),ur=(0,s.useMemo)(()=>{const Jr=nn==="radio"?Sa.slice(0,1):Sa;return new Set(Jr)},[Sa,nn]),QA=(0,s.useMemo)(()=>nn==="radio"?new Set:new Set(la),[la,nn]);s.useEffect(()=>{Y||Nr(yA)},[!!Y]);const ii=(0,s.useCallback)((Jr,uo)=>{let kr,ro;Yr(Jr),xe?(kr=Jr,ro=Jr.map(bi=>Hr.current.get(bi))):(kr=[],ro=[],Jr.forEach(bi=>{const Ui=Rr(bi);Ui!==void 0&&(kr.push(bi),ro.push(Ui))})),Nr(kr),Dt==null||Dt(kr,ro,{type:uo})},[Nr,Rr,Dt,xe]),ai=(0,s.useCallback)((Jr,uo,kr,ro)=>{if(Ft){const bi=kr.map(Ui=>Rr(Ui));Ft(Rr(Jr),uo,bi,ro)}ii(kr,"single")},[Ft,Rr,ii]),ua=(0,s.useMemo)(()=>!dn||Ar?null:(dn===!0?[$a,PA,cA]:dn).map(uo=>uo===$a?{key:"all",text:so.selectionAll,onSelect(){ii(vr.map((kr,ro)=>Dr(kr,ro)).filter(kr=>{const ro=Wo.get(kr);return!(ro!=null&&ro.disabled)||ur.has(kr)}),"all")}}:uo===PA?{key:"invert",text:so.selectInvert,onSelect(){const kr=new Set(ur);Cr.forEach((bi,Ui)=>{const Ji=Dr(bi,Ui),Zi=Wo.get(Ji);Zi!=null&&Zi.disabled||(kr.has(Ji)?kr.delete(Ji):kr.add(Ji))});const ro=Array.from(kr);kt&&(Pr.deprecated(!1,"onSelectInvert","onChange"),kt(ro)),ii(ro,"invert")}}:uo===cA?{key:"none",text:so.selectNone,onSelect(){wn==null||wn(),ii(Array.from(ur).filter(kr=>{const ro=Wo.get(kr);return ro==null?void 0:ro.disabled}),"none")}}:uo).map(uo=>Object.assign(Object.assign({},uo),{onSelect:function(){for(var kr,ro,bi=arguments.length,Ui=new Array(bi),Ji=0;Ji{var uo;if(!Y)return Jr.filter(ji=>ji!==pi);let kr=(0,Yt.Z)(Jr);const ro=new Set(ur),bi=Br.map(Dr).filter(ji=>!Wo.get(ji).disabled),Ui=bi.every(ji=>ro.has(ji)),Ji=bi.some(ji=>ro.has(ji)),Zi=()=>{const ji=[];Ui?bi.forEach(ma=>{ro.delete(ma),ji.push(ma)}):bi.forEach(ma=>{ro.has(ma)||(ro.add(ma),ji.push(ma))});const ga=Array.from(ro);Vt==null||Vt(!Ui,ga.map(ma=>Rr(ma)),ji.map(ma=>Rr(ma))),ii(ga,"all"),Er(null)};let Da,jA;if(nn!=="radio"){let ji;if(ua){const Pi={getPopupContainer:Mr,items:ua.map((ka,Vi)=>{const{key:Ua,text:Wa,onSelect:HA}=ka;return{key:Ua!=null?Ua:Vi,onClick:()=>{HA==null||HA(bi)},label:Wa}})};ji=s.createElement("div",{className:`${tr}-selection-extra`},s.createElement(ta.Z,{menu:Pi,getPopupContainer:Mr},s.createElement("span",null,s.createElement(fi.Z,null))))}const ga=Br.map((Pi,ka)=>{const Vi=Dr(Pi,ka),Ua=Wo.get(Vi)||{};return Object.assign({checked:ro.has(Vi)},Ua)}).filter(Pi=>{let{disabled:ka}=Pi;return ka}),ma=!!ga.length&&ga.length===Br.length,hA=ma&&ga.every(Pi=>{let{checked:ka}=Pi;return ka}),oA=ma&&ga.some(Pi=>{let{checked:ka}=Pi;return ka});jA=s.createElement(uA.default,{checked:ma?hA:!!Br.length&&Ui,indeterminate:ma?!hA&&oA:!Ui&&Ji,onChange:Zi,disabled:Br.length===0||ma,"aria-label":ji?"Custom selection":"Select all",skipGroup:!0}),Da=!Ar&&s.createElement("div",{className:`${tr}-selection`},jA,ji)}let to;nn==="radio"?to=(ji,ga,ma)=>{const hA=Dr(ga,ma),oA=ro.has(hA),Pi=Wo.get(hA);return{node:s.createElement(ha.ZP,Object.assign({},Pi,{checked:oA,onClick:ka=>{var Vi;ka.stopPropagation(),(Vi=Pi==null?void 0:Pi.onClick)===null||Vi===void 0||Vi.call(Pi,ka)},onChange:ka=>{var Vi;ro.has(hA)||ai(hA,!0,[hA],ka.nativeEvent),(Vi=Pi==null?void 0:Pi.onChange)===null||Vi===void 0||Vi.call(Pi,ka)}})),checked:oA}}:to=(ji,ga,ma)=>{var hA;const oA=Dr(ga,ma),Pi=ro.has(oA),ka=QA.has(oA),Vi=Wo.get(oA);let Ua;return Eo==="nest"?Ua=ka:Ua=(hA=Vi==null?void 0:Vi.indeterminate)!==null&&hA!==void 0?hA:ka,{node:s.createElement(uA.default,Object.assign({},Vi,{indeterminate:Ua,checked:Pi,skipGroup:!0,onClick:Wa=>{var HA;Wa.stopPropagation(),(HA=Vi==null?void 0:Vi.onClick)===null||HA===void 0||HA.call(Vi,Wa)},onChange:Wa=>{var HA;const{nativeEvent:Gs}=Wa,{shiftKey:lu}=Gs,Na=bi.findIndex($A=>$A===oA),Ru=Sa.some($A=>bi.includes($A));if(lu&&lr&&Ru){const $A=Tr(Na,bi,ro),XA=Array.from(ro);rn==null||rn(!Pi,XA.map(kA=>Rr(kA)),$A.map(kA=>Rr(kA))),ii(XA,"multiple")}else{const $A=Sa;if(lr){const XA=Pi?(0,_a._5)($A,oA):(0,_a.L0)($A,oA);ai(oA,!Pi,XA,Gs)}else{const XA=(0,lA.S)([].concat((0,Yt.Z)($A),[oA]),!0,Vo,Ma),{checkedKeys:kA,halfCheckedKeys:YA}=XA;let JA=kA;if(Pi){const xs=new Set(kA);xs.delete(oA),JA=(0,lA.S)(Array.from(xs),{checked:!1,halfCheckedKeys:YA},Vo,Ma).checkedKeys}ai(oA,!Pi,JA,Gs)}}Er(Pi?null:Na),(HA=Vi==null?void 0:Vi.onChange)===null||HA===void 0||HA.call(Vi,Wa)}})),checked:Pi}};const Wr=(ji,ga,ma)=>{const{node:hA,checked:oA}=to(ji,ga,ma);return Pn?Pn(oA,ga,ma,hA):hA};if(!kr.includes(pi))if(kr.findIndex(ji=>{var ga;return((ga=ji[en])===null||ga===void 0?void 0:ga.columnType)==="EXPAND_COLUMN"})===0){const[ji,...ga]=kr;kr=[ji,pi].concat((0,Yt.Z)(ga))}else kr=[pi].concat((0,Yt.Z)(kr));const Ci=kr.indexOf(pi);kr=kr.filter((ji,ga)=>ji!==pi||ga===Ci);const Fa=kr[Ci-1],qi=kr[Ci+1];let MA=rr;MA===void 0&&((qi==null?void 0:qi.fixed)!==void 0?MA=qi.fixed:(Fa==null?void 0:Fa.fixed)!==void 0&&(MA=Fa.fixed)),MA&&Fa&&((uo=Fa[en])===null||uo===void 0?void 0:uo.columnType)==="EXPAND_COLUMN"&&Fa.fixed===void 0&&(Fa.fixed=MA);const Ha=g()(`${tr}-selection-col`,{[`${tr}-selection-col-with-dropdown`]:dn&&nn==="checkbox"}),Ws=()=>Y!=null&&Y.columnTitle?typeof Y.columnTitle=="function"?Y.columnTitle(jA):Y.columnTitle:Da,Ia={fixed:MA,width:on,className:`${tr}-selection-column`,title:Ws(),render:Wr,onCell:Y.onCell,[en]:{className:Ha}};return kr.map(ji=>ji===pi?Ia:ji)},[Dr,Br,Y,Sa,ur,QA,on,ua,Eo,Wo,rn,ai,Ma]),ur]},pa=p(2738);function ja(J,Y){return J._antProxy=J._antProxy||{},Object.keys(Y).forEach(xe=>{if(!(xe in J._antProxy)){const ze=J[xe];J._antProxy[xe]=ze,J[xe]=Y[xe]}}),J}function Es(J,Y){return(0,s.useImperativeHandle)(J,()=>{const xe=Y(),{nativeElement:ze}=xe;return typeof Proxy!="undefined"?new Proxy(ze,{get(rt,pt){return xe[pt]?xe[pt]:Reflect.get(rt,pt)}}):ja(ze,xe)})}var IA=p(83010),as=p(48755),Qu=p(38406),El=p(83397),Ou=p(31756),ul=p(13783),ru=p(85981),Ml=p(31709),eA=p(29787),ou=p(57700);function cl(J){return Y=>{const{prefixCls:xe,onExpand:ze,record:rt,expanded:pt,expandable:Dt}=Y,Ft=`${xe}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:Vt=>{ze(rt,Vt),Vt.stopPropagation()},className:g()(Ft,{[`${Ft}-spaced`]:!Dt,[`${Ft}-expanded`]:Dt&&pt,[`${Ft}-collapsed`]:Dt&&!pt}),"aria-label":pt?J.collapse:J.expand,"aria-expanded":pt})}}var bo=cl;function Oo(J){return(xe,ze)=>{const rt=xe.querySelector(`.${J}-container`);let pt=ze;if(rt){const Dt=getComputedStyle(rt),Ft=parseInt(Dt.borderLeftWidth,10),Vt=parseInt(Dt.borderRightWidth,10);pt=ze-Ft-Vt}return pt}}const co=(J,Y)=>"key"in J&&J.key!==void 0&&J.key!==null?J.key:J.dataIndex?Array.isArray(J.dataIndex)?J.dataIndex.join("."):J.dataIndex:Y;function vo(J,Y){return Y?`${Y}-${J}`:`${J}`}const hi=(J,Y)=>typeof J=="function"?J(Y):J,na=(J,Y)=>{const xe=hi(J,Y);return Object.prototype.toString.call(xe)==="[object Object]"?"":xe};var Bi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ns=Bi,zs=p(7657),dA=function(Y,xe){return s.createElement(zs.Z,(0,L.Z)({},Y,{ref:xe,icon:Ns}))},fs=s.forwardRef(dA),RA=fs,Du=p(9981),tl=p(40192);function Oa(J){const Y=s.useRef(J),xe=(0,tl.Z)();return[()=>Y.current,ze=>{Y.current=ze,xe()}]}var Qs=p(7939),tA=p(584),sc=p(93041),dl=p(78857),nl=p(18287),ra=p(47472),kc=p(49397),Kc=J=>{const{value:Y,filterSearch:xe,tablePrefixCls:ze,locale:rt,onChange:pt}=J;return xe?s.createElement("div",{className:`${ze}-filter-dropdown-search`},s.createElement(kc.Z,{prefix:s.createElement(ra.Z,null),placeholder:rt.filterSearchPlaceholder,onChange:pt,value:Y,htmlSize:1,className:`${ze}-filter-dropdown-search-input`})):null},nA=p(10228);const Os=J=>{const{keyCode:Y}=J;Y===nA.Z.ENTER&&J.stopPropagation()};var lc=s.forwardRef((J,Y)=>s.createElement("div",{className:J.className,onClick:xe=>xe.stopPropagation(),onKeyDown:Os,ref:Y},J.children));function rA(J){let Y=[];return(J||[]).forEach(xe=>{let{value:ze,children:rt}=xe;Y.push(ze),rt&&(Y=[].concat((0,Yt.Z)(Y),(0,Yt.Z)(rA(rt))))}),Y}function fl(J){return J.some(Y=>{let{children:xe}=Y;return xe})}function UA(J,Y){return typeof Y=="string"||typeof Y=="number"?Y==null?void 0:Y.toString().toLowerCase().includes(J.trim().toLowerCase()):!1}function fA(J){let{filters:Y,prefixCls:xe,filteredKeys:ze,filterMultiple:rt,searchValue:pt,filterSearch:Dt}=J;return Y.map((Ft,Vt)=>{const kt=String(Ft.value);if(Ft.children)return{key:kt||Vt,label:Ft.text,popupClassName:`${xe}-dropdown-submenu`,children:fA({filters:Ft.children,prefixCls:xe,filteredKeys:ze,filterMultiple:rt,searchValue:pt,filterSearch:Dt})};const wn=rt?uA.default:ha.ZP,rn={key:Ft.value!==void 0?kt:Vt,label:s.createElement(s.Fragment,null,s.createElement(wn,{checked:ze.includes(kt)}),s.createElement("span",null,Ft.text))};return pt.trim()?typeof Dt=="function"?Dt(pt,Ft)?rn:null:UA(pt,Ft.text)?rn:null:rn})}function LA(J){return J||[]}var zc=J=>{var Y,xe,ze,rt;const{tablePrefixCls:pt,prefixCls:Dt,column:Ft,dropdownPrefixCls:Vt,columnKey:kt,filterOnClose:wn,filterMultiple:rn,filterMode:on="menu",filterSearch:nn=!1,filterState:dn,triggerFilter:rr,locale:Pn,children:Ar,getPopupContainer:lr,rootClassName:tr}=J,{filterResetToDefaultFilteredValue:vr,defaultFilteredValue:Cr,filterDropdownProps:Rr={},filterDropdownOpen:Dr,filterDropdownVisible:Eo,onFilterDropdownVisibleChange:no,onFilterDropdownOpenChange:so}=Ft,[Mr,Pr]=s.useState(!1),Tr=!!(dn&&(!((Y=dn.filteredKeys)===null||Y===void 0)&&Y.length||dn.forceFiltered)),Er=to=>{var Wr;Pr(to),(Wr=Rr.onOpenChange)===null||Wr===void 0||Wr.call(Rr,to),so==null||so(to),no==null||no(to)},mr=(rt=(ze=(xe=Rr.open)!==null&&xe!==void 0?xe:Dr)!==null&&ze!==void 0?ze:Eo)!==null&&rt!==void 0?rt:Mr,Nr=dn==null?void 0:dn.filteredKeys,[Hr,Yr]=Oa(LA(Nr)),Br=to=>{let{selectedKeys:Wr}=to;Yr(Wr)},Vo=(to,Wr)=>{let{node:Ci,checked:Fa}=Wr;Br(rn?{selectedKeys:to}:{selectedKeys:Fa&&Ci.key?[Ci.key]:[]})};s.useEffect(()=>{Mr&&Br({selectedKeys:LA(Nr)})},[Nr]);const[Wo,Ma]=s.useState([]),Sa=to=>{Ma(to)},[la,ur]=s.useState(""),QA=to=>{const{value:Wr}=to.target;ur(Wr)};s.useEffect(()=>{Mr||ur("")},[Mr]);const ii=to=>{const Wr=to!=null&&to.length?to:null;if(Wr===null&&(!dn||!dn.filteredKeys)||(0,Z.Z)(Wr,dn==null?void 0:dn.filteredKeys,!0))return null;rr({column:Ft,key:kt,filteredKeys:Wr})},ai=()=>{Er(!1),ii(Hr())},ua=function(){let{confirm:to,closeDropdown:Wr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};to&&ii([]),Wr&&Er(!1),ur(""),Yr(vr?(Cr||[]).map(Ci=>String(Ci)):[])},BA=function(){let{closeDropdown:to}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};to&&Er(!1),ii(Hr())},Jr=(to,Wr)=>{Wr.source==="trigger"&&(to&&Nr!==void 0&&Yr(LA(Nr)),Er(to),!to&&!Ft.filterDropdown&&wn&&ai())},uo=g()({[`${Vt}-menu-without-submenu`]:!fl(Ft.filters||[])}),kr=to=>{if(to.target.checked){const Wr=rA(Ft==null?void 0:Ft.filters).map(Ci=>String(Ci));Yr(Wr)}else Yr([])},ro=to=>{let{filters:Wr}=to;return(Wr||[]).map((Ci,Fa)=>{const qi=String(Ci.value),MA={title:Ci.text,key:Ci.value!==void 0?qi:String(Fa)};return Ci.children&&(MA.children=ro({filters:Ci.children})),MA})},bi=to=>{var Wr;return Object.assign(Object.assign({},to),{text:to.title,value:to.key,children:((Wr=to.children)===null||Wr===void 0?void 0:Wr.map(Ci=>bi(Ci)))||[]})};let Ui;const{direction:Ji,renderEmpty:Zi}=s.useContext(as.E_);if(typeof Ft.filterDropdown=="function")Ui=Ft.filterDropdown({prefixCls:`${Vt}-custom`,setSelectedKeys:to=>Br({selectedKeys:to}),selectedKeys:Hr(),confirm:BA,clearFilters:ua,filters:Ft.filters,visible:mr,close:()=>{Er(!1)}});else if(Ft.filterDropdown)Ui=Ft.filterDropdown;else{const to=Hr()||[],Wr=()=>{var Fa,qi;const MA=(Fa=Zi==null?void 0:Zi("Table.filter"))!==null&&Fa!==void 0?Fa:s.createElement(tA.Z,{image:tA.Z.PRESENTED_IMAGE_SIMPLE,description:Pn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Ft.filters||[]).length===0)return MA;if(on==="tree")return s.createElement(s.Fragment,null,s.createElement(Kc,{filterSearch:nn,value:la,onChange:QA,tablePrefixCls:pt,locale:Pn}),s.createElement("div",{className:`${pt}-filter-dropdown-tree`},rn?s.createElement(uA.default,{checked:to.length===rA(Ft.filters).length,indeterminate:to.length>0&&to.lengthtypeof nn=="function"?nn(la,bi(Ia)):UA(la,Ia.title):void 0})));const Ha=fA({filters:Ft.filters||[],filterSearch:nn,prefixCls:Dt,filteredKeys:Hr(),filterMultiple:rn,searchValue:la}),Ws=Ha.every(Ia=>Ia===null);return s.createElement(s.Fragment,null,s.createElement(Kc,{filterSearch:nn,value:la,onChange:QA,tablePrefixCls:pt,locale:Pn}),Ws?MA:s.createElement(sc.default,{selectable:!0,multiple:rn,prefixCls:`${Vt}-menu`,className:uo,onSelect:Br,onDeselect:Br,selectedKeys:to,getPopupContainer:lr,openKeys:Wo,onOpenChange:Sa,items:Ha}))},Ci=()=>vr?(0,Z.Z)((Cr||[]).map(Fa=>String(Fa)),to,!0):to.length===0;Ui=s.createElement(s.Fragment,null,Wr(),s.createElement("div",{className:`${Dt}-dropdown-btns`},s.createElement(Qs.ZP,{type:"link",size:"small",disabled:Ci(),onClick:()=>ua()},Pn.filterReset),s.createElement(Qs.ZP,{type:"primary",size:"small",onClick:ai},Pn.filterConfirm)))}Ft.filterDropdown&&(Ui=s.createElement(dl.J,{selectable:void 0},Ui)),Ui=s.createElement(lc,{className:`${Dt}-dropdown`},Ui);const Da=()=>{let to;return typeof Ft.filterIcon=="function"?to=Ft.filterIcon(Tr):Ft.filterIcon?to=Ft.filterIcon:to=s.createElement(RA,null),s.createElement("span",{role:"button",tabIndex:-1,className:g()(`${Dt}-trigger`,{active:Tr}),onClick:Wr=>{Wr.stopPropagation()}},to)},jA=(0,Du.Z)({trigger:["click"],placement:Ji==="rtl"?"bottomLeft":"bottomRight",children:Da(),getPopupContainer:lr},Object.assign(Object.assign({},Rr),{rootClassName:g()(tr,Rr.rootClassName),open:mr,onOpenChange:Jr,dropdownRender:()=>typeof(Rr==null?void 0:Rr.dropdownRender)=="function"?Rr.dropdownRender(Ui):Ui}));return s.createElement("div",{className:`${Dt}-column`},s.createElement("span",{className:`${pt}-column-title`},Ar),s.createElement(ta.Z,Object.assign({},jA)))};const NA=(J,Y,xe)=>{let ze=[];return(J||[]).forEach((rt,pt)=>{var Dt;const Ft=vo(pt,xe);if(rt.filters||"filterDropdown"in rt||"onFilter"in rt)if("filteredValue"in rt){let Vt=rt.filteredValue;"filterDropdown"in rt||(Vt=(Dt=Vt==null?void 0:Vt.map(String))!==null&&Dt!==void 0?Dt:Vt),ze.push({column:rt,key:co(rt,Ft),filteredKeys:Vt,forceFiltered:rt.filtered})}else ze.push({column:rt,key:co(rt,Ft),filteredKeys:Y&&rt.defaultFilteredValue?rt.defaultFilteredValue:void 0,forceFiltered:rt.filtered});"children"in rt&&(ze=[].concat((0,Yt.Z)(ze),(0,Yt.Z)(NA(rt.children,Y,Ft))))}),ze};function Hl(J,Y,xe,ze,rt,pt,Dt,Ft,Vt){return xe.map((kt,wn)=>{const rn=vo(wn,Ft),{filterOnClose:on=!0,filterMultiple:nn=!0,filterMode:dn,filterSearch:rr}=kt;let Pn=kt;if(Pn.filters||Pn.filterDropdown){const Ar=co(Pn,rn),lr=ze.find(tr=>{let{key:vr}=tr;return Ar===vr});Pn=Object.assign(Object.assign({},Pn),{title:tr=>s.createElement(zc,{tablePrefixCls:J,prefixCls:`${J}-filter`,dropdownPrefixCls:Y,column:Pn,columnKey:Ar,filterState:lr,filterOnClose:on,filterMultiple:nn,filterMode:dn,filterSearch:rr,triggerFilter:pt,locale:rt,getPopupContainer:Dt,rootClassName:Vt},hi(kt.title,tr))})}return"children"in Pn&&(Pn=Object.assign(Object.assign({},Pn),{children:Hl(J,Y,Pn.children,ze,rt,pt,Dt,rn,Vt)})),Pn})}const Io=J=>{const Y={};return J.forEach(xe=>{let{key:ze,filteredKeys:rt,column:pt}=xe;const Dt=ze,{filters:Ft,filterDropdown:Vt}=pt;if(Vt)Y[Dt]=rt||null;else if(Array.isArray(rt)){const kt=rA(Ft);Y[Dt]=kt.filter(wn=>rt.includes(String(wn)))}else Y[Dt]=null}),Y},Do=(J,Y,xe)=>Y.reduce((rt,pt)=>{const{column:{onFilter:Dt,filters:Ft},filteredKeys:Vt}=pt;return Dt&&Vt&&Vt.length?rt.map(kt=>Object.assign({},kt)).filter(kt=>Vt.some(wn=>{const rn=rA(Ft),on=rn.findIndex(dn=>String(dn)===String(wn)),nn=on!==-1?rn[on]:wn;return kt[xe]&&(kt[xe]=Do(kt[xe],Y,xe)),Dt(nn,kt)})):rt},J),Ki=J=>J.flatMap(Y=>"children"in Y?[Y].concat((0,Yt.Z)(Ki(Y.children||[]))):[Y]);var Xa=J=>{const{prefixCls:Y,dropdownPrefixCls:xe,mergedColumns:ze,onFilterChange:rt,getPopupContainer:pt,locale:Dt,rootClassName:Ft}=J,Vt=(0,FA.ln)("Table"),kt=s.useMemo(()=>Ki(ze||[]),[ze]),[wn,rn]=s.useState(()=>NA(kt,!0)),on=s.useMemo(()=>{const Pn=NA(kt,!1);if(Pn.length===0)return Pn;let Ar=!0,lr=!0;if(Pn.forEach(tr=>{let{filteredKeys:vr}=tr;vr!==void 0?Ar=!1:lr=!1}),Ar){const tr=(kt||[]).map((vr,Cr)=>co(vr,vo(Cr)));return wn.filter(vr=>{let{key:Cr}=vr;return tr.includes(Cr)}).map(vr=>{const Cr=kt[tr.findIndex(Rr=>Rr===vr.key)];return Object.assign(Object.assign({},vr),{column:Object.assign(Object.assign({},vr.column),Cr),forceFiltered:Cr.filtered})})}return Pn},[kt,wn]),nn=s.useMemo(()=>Io(on),[on]),dn=Pn=>{const Ar=on.filter(lr=>{let{key:tr}=lr;return tr!==Pn.key});Ar.push(Pn),rn(Ar),rt(Io(Ar),Ar)};return[Pn=>Hl(Y,xe,Pn,on,Dt,dn,pt,void 0,Ft),on,nn]},Zs=(J,Y,xe)=>{const ze=s.useRef({});function rt(pt){var Dt;if(!ze.current||ze.current.data!==J||ze.current.childrenColumnName!==Y||ze.current.getRowKey!==xe){let Vt=function(kt){kt.forEach((wn,rn)=>{const on=xe(wn,rn);Ft.set(on,wn),wn&&typeof wn=="object"&&Y in wn&&Vt(wn[Y]||[])})};const Ft=new Map;Vt(J),ze.current={data:J,childrenColumnName:Y,kvMap:Ft,getRowKey:xe}}return(Dt=ze.current.kvMap)===null||Dt===void 0?void 0:Dt.get(pt)}return[rt]},ps=function(J,Y){var xe={};for(var ze in J)Object.prototype.hasOwnProperty.call(J,ze)&&Y.indexOf(ze)<0&&(xe[ze]=J[ze]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ze=Object.getOwnPropertySymbols(J);rt{const pt=J[rt];typeof pt!="function"&&(xe[rt]=pt)}),xe}function pl(J,Y,xe){const ze=xe&&typeof xe=="object"?xe:{},{total:rt=0}=ze,pt=ps(ze,["total"]),[Dt,Ft]=(0,s.useState)(()=>({current:"defaultCurrent"in pt?pt.defaultCurrent:1,pageSize:"defaultPageSize"in pt?pt.defaultPageSize:hl})),Vt=(0,Du.Z)(Dt,pt,{total:rt>0?rt:J}),kt=Math.ceil((rt||J)/Vt.pageSize);Vt.current>kt&&(Vt.current=kt||1);const wn=(on,nn)=>{Ft({current:on!=null?on:1,pageSize:nn||Vt.pageSize})},rn=(on,nn)=>{var dn;xe&&((dn=xe.onChange)===null||dn===void 0||dn.call(xe,on,nn)),wn(on,nn),Y(on,nn||(Vt==null?void 0:Vt.pageSize))};return xe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Vt),{onChange:rn}),wn]}var Pu=pl,Sl=p(89489),Zc=p(59477),wf=p(25399);const uc="ascend",Ld="descend",Vc=J=>typeof J.sorter=="object"&&typeof J.sorter.multiple=="number"?J.sorter.multiple:!1,cc=J=>typeof J=="function"?J:J&&typeof J=="object"&&J.compare?J.compare:!1,Bf=(J,Y)=>Y?J[J.indexOf(Y)+1]:J[0],Wc=(J,Y,xe)=>{let ze=[];const rt=(pt,Dt)=>{ze.push({column:pt,key:co(pt,Dt),multiplePriority:Vc(pt),sortOrder:pt.sortOrder})};return(J||[]).forEach((pt,Dt)=>{const Ft=vo(Dt,xe);pt.children?("sortOrder"in pt&&rt(pt,Ft),ze=[].concat((0,Yt.Z)(ze),(0,Yt.Z)(Wc(pt.children,Y,Ft)))):pt.sorter&&("sortOrder"in pt?rt(pt,Ft):Y&&pt.defaultSortOrder&&ze.push({column:pt,key:co(pt,Ft),multiplePriority:Vc(pt),sortOrder:pt.defaultSortOrder}))}),ze},Nd=(J,Y,xe,ze,rt,pt,Dt,Ft)=>(Y||[]).map((kt,wn)=>{const rn=vo(wn,Ft);let on=kt;if(on.sorter){const nn=on.sortDirections||rt,dn=on.showSorterTooltip===void 0?Dt:on.showSorterTooltip,rr=co(on,rn),Pn=xe.find(no=>{let{key:so}=no;return so===rr}),Ar=Pn?Pn.sortOrder:null,lr=Bf(nn,Ar);let tr;if(kt.sortIcon)tr=kt.sortIcon({sortOrder:Ar});else{const no=nn.includes(uc)&&s.createElement(Zc.Z,{className:g()(`${J}-column-sorter-up`,{active:Ar===uc})}),so=nn.includes(Ld)&&s.createElement(Sl.Z,{className:g()(`${J}-column-sorter-down`,{active:Ar===Ld})});tr=s.createElement("span",{className:g()(`${J}-column-sorter`,{[`${J}-column-sorter-full`]:!!(no&&so)})},s.createElement("span",{className:`${J}-column-sorter-inner`,"aria-hidden":"true"},no,so))}const{cancelSort:vr,triggerAsc:Cr,triggerDesc:Rr}=pt||{};let Dr=vr;lr===Ld?Dr=Rr:lr===uc&&(Dr=Cr);const Eo=typeof dn=="object"?Object.assign({title:Dr},dn):{title:Dr};on=Object.assign(Object.assign({},on),{className:g()(on.className,{[`${J}-column-sort`]:Ar}),title:no=>{const so=`${J}-column-sorters`,Mr=s.createElement("span",{className:`${J}-column-title`},hi(kt.title,no)),Pr=s.createElement("div",{className:so},Mr,tr);return dn?typeof dn!="boolean"&&(dn==null?void 0:dn.target)==="sorter-icon"?s.createElement("div",{className:`${so} ${J}-column-sorters-tooltip-target-sorter`},Mr,s.createElement(wf.Z,Object.assign({},Eo),tr)):s.createElement(wf.Z,Object.assign({},Eo),Pr):Pr},onHeaderCell:no=>{var so;const Mr=((so=kt.onHeaderCell)===null||so===void 0?void 0:so.call(kt,no))||{},Pr=Mr.onClick,Tr=Mr.onKeyDown;Mr.onClick=Nr=>{ze({column:kt,key:rr,sortOrder:lr,multiplePriority:Vc(kt)}),Pr==null||Pr(Nr)},Mr.onKeyDown=Nr=>{Nr.keyCode===nA.Z.ENTER&&(ze({column:kt,key:rr,sortOrder:lr,multiplePriority:Vc(kt)}),Tr==null||Tr(Nr))};const Er=na(kt.title,{}),mr=Er==null?void 0:Er.toString();return Ar&&(Mr["aria-sort"]=Ar==="ascend"?"ascending":"descending"),Mr["aria-label"]=mr||"",Mr.className=g()(Mr.className,`${J}-column-has-sorters`),Mr.tabIndex=0,kt.ellipsis&&(Mr.title=(Er!=null?Er:"").toString()),Mr}})}return"children"in on&&(on=Object.assign(Object.assign({},on),{children:Nd(J,on.children,xe,ze,rt,pt,Dt,rn)})),on}),Qd=J=>{const{column:Y,sortOrder:xe}=J;return{column:Y,order:xe,field:Y.dataIndex,columnKey:Y.key}},Di=J=>{const Y=J.filter(xe=>{let{sortOrder:ze}=xe;return ze}).map(Qd);if(Y.length===0&&J.length){const xe=J.length-1;return Object.assign(Object.assign({},Qd(J[xe])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Y.length<=1?Y[0]||{}:Y},Ds=(J,Y,xe)=>{const ze=Y.slice().sort((Dt,Ft)=>Ft.multiplePriority-Dt.multiplePriority),rt=J.slice(),pt=ze.filter(Dt=>{let{column:{sorter:Ft},sortOrder:Vt}=Dt;return cc(Ft)&&Vt});return pt.length?rt.sort((Dt,Ft)=>{for(let Vt=0;Vt{const Ft=Dt[xe];return Ft?Object.assign(Object.assign({},Dt),{[xe]:Ds(Ft,Y,xe)}):Dt}):rt};var rh=J=>{const{prefixCls:Y,mergedColumns:xe,sortDirections:ze,tableLocale:rt,showSorterTooltip:pt,onSorterChange:Dt}=J,[Ft,Vt]=s.useState(Wc(xe,!0)),kt=(rr,Pn)=>{const Ar=[];return rr.forEach((lr,tr)=>{const vr=vo(tr,Pn);if(Ar.push(co(lr,vr)),Array.isArray(lr.children)){const Cr=kt(lr.children,vr);Ar.push.apply(Ar,(0,Yt.Z)(Cr))}}),Ar},wn=s.useMemo(()=>{let rr=!0;const Pn=Wc(xe,!1);if(!Pn.length){const vr=kt(xe);return Ft.filter(Cr=>{let{key:Rr}=Cr;return vr.includes(Rr)})}const Ar=[];function lr(vr){rr?Ar.push(vr):Ar.push(Object.assign(Object.assign({},vr),{sortOrder:null}))}let tr=null;return Pn.forEach(vr=>{tr===null?(lr(vr),vr.sortOrder&&(vr.multiplePriority===!1?rr=!1:tr=!0)):(tr&&vr.multiplePriority!==!1||(rr=!1),lr(vr))}),Ar},[xe,Ft]),rn=s.useMemo(()=>{var rr,Pn;const Ar=wn.map(lr=>{let{column:tr,sortOrder:vr}=lr;return{column:tr,order:vr}});return{sortColumns:Ar,sortColumn:(rr=Ar[0])===null||rr===void 0?void 0:rr.column,sortOrder:(Pn=Ar[0])===null||Pn===void 0?void 0:Pn.order}},[wn]),on=rr=>{let Pn;rr.multiplePriority===!1||!wn.length||wn[0].multiplePriority===!1?Pn=[rr]:Pn=[].concat((0,Yt.Z)(wn.filter(Ar=>{let{key:lr}=Ar;return lr!==rr.key})),[rr]),Vt(Pn),Dt(Di(Pn),Pn)};return[rr=>Nd(Y,rr,wn,on,ze,rt,pt),wn,rn,()=>Di(wn)]};const Il=(J,Y)=>J.map(ze=>{const rt=Object.assign({},ze);return rt.title=hi(ze.title,Y),"children"in rt&&(rt.children=Il(rt.children,Y)),rt});var Gc=J=>[s.useCallback(xe=>Il(xe,J),[J])],Od=oi((J,Y)=>{const{_renderTimes:xe}=J,{_renderTimes:ze}=Y;return xe!==ze}),iu=Xn((J,Y)=>{const{_renderTimes:xe}=J,{_renderTimes:ze}=Y;return xe!==ze}),ho=p(36237),Va=p(17835),gl=p(63356),au=p(16931),Ul=p(51636),Au=J=>{const{componentCls:Y,lineWidth:xe,lineType:ze,tableBorderColor:rt,tableHeaderBg:pt,tablePaddingVertical:Dt,tablePaddingHorizontal:Ft,calc:Vt}=J,kt=`${(0,ho.unit)(xe)} ${ze} ${rt}`,wn=(rn,on,nn)=>({[`&${Y}-${rn}`]:{[`> ${Y}-container`]:{[`> ${Y}-content, > ${Y}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Y}-expanded-row-fixed`]:{margin:`${(0,ho.unit)(Vt(on).mul(-1).equal())} + ${(0,ho.unit)(Vt(Vt(nn).add(xe)).mul(-1).equal())}`}}}}}});return{[`${Y}-wrapper`]:{[`${Y}${Y}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Y}-title`]:{border:kt,borderBottom:0},[`> ${Y}-container`]:{borderInlineStart:kt,borderTop:kt,[` + > ${Y}-content, + > ${Y}-header, + > ${Y}-body, + > ${Y}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:kt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:kt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Y}-cell-fix-right-first::after`]:{borderInlineEnd:kt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Y}-expanded-row-fixed`]:{margin:`${(0,ho.unit)(Vt(Dt).mul(-1).equal())} ${(0,ho.unit)(Vt(Vt(Ft).add(xe)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:xe,bottom:0,borderInlineEnd:kt,content:'""'}}}}}},[`&${Y}-scroll-horizontal`]:{[`> ${Y}-container > ${Y}-body`]:{"> table > tbody":{[` + > tr${Y}-expanded-row, + > tr${Y}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},wn("middle",J.tablePaddingVerticalMiddle,J.tablePaddingHorizontalMiddle)),wn("small",J.tablePaddingVerticalSmall,J.tablePaddingHorizontalSmall)),{[`> ${Y}-footer`]:{border:kt,borderTop:0}}),[`${Y}-cell`]:{[`${Y}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ho.unit)(xe)} 0 ${(0,ho.unit)(xe)} ${pt}`}},[`${Y}-bordered ${Y}-cell-scrollbar`]:{borderInlineEnd:kt}}}},kl=J=>{const{componentCls:Y}=J;return{[`${Y}-wrapper`]:{[`${Y}-cell-ellipsis`]:Object.assign(Object.assign({},gl.vS),{wordBreak:"keep-all",[` + &${Y}-cell-fix-left-last, + &${Y}-cell-fix-right-first + `]:{overflow:"visible",[`${Y}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Y}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},p0=J=>{const{componentCls:Y}=J;return{[`${Y}-wrapper`]:{[`${Y}-tbody > tr${Y}-placeholder`]:{textAlign:"center",color:J.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:J.colorBgContainer}}}}},Ps=J=>{const{componentCls:Y,antCls:xe,motionDurationSlow:ze,lineWidth:rt,paddingXS:pt,lineType:Dt,tableBorderColor:Ft,tableExpandIconBg:Vt,tableExpandColumnWidth:kt,borderRadius:wn,tablePaddingVertical:rn,tablePaddingHorizontal:on,tableExpandedRowBg:nn,paddingXXS:dn,expandIconMarginTop:rr,expandIconSize:Pn,expandIconHalfInner:Ar,expandIconScale:lr,calc:tr}=J,vr=`${(0,ho.unit)(rt)} ${Dt} ${Ft}`,Cr=tr(dn).sub(rt).equal();return{[`${Y}-wrapper`]:{[`${Y}-expand-icon-col`]:{width:kt},[`${Y}-row-expand-icon-cell`]:{textAlign:"center",[`${Y}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Y}-row-indent`]:{height:1,float:"left"},[`${Y}-row-expand-icon`]:Object.assign(Object.assign({},(0,gl.Nd)(J)),{position:"relative",float:"left",width:Pn,height:Pn,color:"inherit",lineHeight:(0,ho.unit)(Pn),background:Vt,border:vr,borderRadius:wn,transform:`scale(${lr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${ze} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:Cr,insetInlineStart:Cr,height:rt},"&::after":{top:Cr,bottom:Cr,insetInlineStart:Ar,width:rt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Y}-row-indent + ${Y}-row-expand-icon`]:{marginTop:rr,marginInlineEnd:pt},[`tr${Y}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:nn}},[`${xe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Y}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ho.unit)(tr(rn).mul(-1).equal())} ${(0,ho.unit)(tr(on).mul(-1).equal())}`,padding:`${(0,ho.unit)(rn)} ${(0,ho.unit)(on)}`}}}},zi=J=>{const{componentCls:Y,antCls:xe,iconCls:ze,tableFilterDropdownWidth:rt,tableFilterDropdownSearchWidth:pt,paddingXXS:Dt,paddingXS:Ft,colorText:Vt,lineWidth:kt,lineType:wn,tableBorderColor:rn,headerIconColor:on,fontSizeSM:nn,tablePaddingHorizontal:dn,borderRadius:rr,motionDurationSlow:Pn,colorTextDescription:Ar,colorPrimary:lr,tableHeaderFilterActiveBg:tr,colorTextDisabled:vr,tableFilterDropdownBg:Cr,tableFilterDropdownHeight:Rr,controlItemBgHover:Dr,controlItemBgActive:Eo,boxShadowSecondary:no,filterDropdownMenuBg:so,calc:Mr}=J,Pr=`${xe}-dropdown`,Tr=`${Y}-filter-dropdown`,Er=`${xe}-tree`,mr=`${(0,ho.unit)(kt)} ${wn} ${rn}`;return[{[`${Y}-wrapper`]:{[`${Y}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Y}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Mr(Dt).mul(-1).equal(),marginInline:`${(0,ho.unit)(Dt)} ${(0,ho.unit)(Mr(dn).div(2).mul(-1).equal())}`,padding:`0 ${(0,ho.unit)(Dt)}`,color:on,fontSize:nn,borderRadius:rr,cursor:"pointer",transition:`all ${Pn}`,"&:hover":{color:Ar,background:tr},"&.active":{color:lr}}}},{[`${xe}-dropdown`]:{[Tr]:Object.assign(Object.assign({},(0,gl.Wf)(J)),{minWidth:rt,backgroundColor:Cr,borderRadius:rr,boxShadow:no,overflow:"hidden",[`${Pr}-menu`]:{maxHeight:Rr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:so,"&:empty::after":{display:"block",padding:`${(0,ho.unit)(Ft)} 0`,color:vr,fontSize:nn,textAlign:"center",content:'"Not Found"'}},[`${Tr}-tree`]:{paddingBlock:`${(0,ho.unit)(Ft)} 0`,paddingInline:Ft,[Er]:{padding:0},[`${Er}-treenode ${Er}-node-content-wrapper:hover`]:{backgroundColor:Dr},[`${Er}-treenode-checkbox-checked ${Er}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Eo}}},[`${Tr}-search`]:{padding:Ft,borderBottom:mr,"&-input":{input:{minWidth:pt},[ze]:{color:vr}}},[`${Tr}-checkall`]:{width:"100%",marginBottom:Dt,marginInlineStart:Dt},[`${Tr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ho.unit)(Mr(Ft).sub(kt).equal())} ${(0,ho.unit)(Ft)}`,overflow:"hidden",borderTop:mr}})}},{[`${xe}-dropdown ${Tr}, ${Tr}-submenu`]:{[`${xe}-checkbox-wrapper + span`]:{paddingInlineStart:Ft,color:Vt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Pd=J=>{const{componentCls:Y,lineWidth:xe,colorSplit:ze,motionDurationSlow:rt,zIndexTableFixed:pt,tableBg:Dt,zIndexTableSticky:Ft,calc:Vt}=J,kt=ze;return{[`${Y}-wrapper`]:{[` + ${Y}-cell-fix-left, + ${Y}-cell-fix-right `]:{position:"sticky !important",zIndex:pt,background:Dt},[` - ${X}-cell-fix-left-first::after, - ${X}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Vt(xe).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${rt}`,content:'""',pointerEvents:"none"},[`${X}-cell-fix-left-all::after`]:{display:"none"},[` - ${X}-cell-fix-right-first::after, - ${X}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:Vt(xe).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${rt}`,content:'""',pointerEvents:"none"},[`${X}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Vt(Ft).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${rt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${X}-ping-left`]:{[`&:not(${X}-has-fix-left) ${X}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${kt}`},[` - ${X}-cell-fix-left-first::after, - ${X}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${kt}`},[`${X}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${X}-ping-right`]:{[`&:not(${X}-has-fix-right) ${X}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${kt}`},[` - ${X}-cell-fix-right-first::after, - ${X}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${kt}`}},[`${X}-fixed-column-gapped`]:{[` - ${X}-cell-fix-left-first::after, - ${X}-cell-fix-left-last::after, - ${X}-cell-fix-right-first::after, - ${X}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},Tu=Y=>{const{componentCls:X,antCls:xe,margin:Ke}=Y;return{[`${X}-wrapper`]:{[`${X}-pagination${xe}-pagination`]:{margin:`${(0,ho.unit)(Ke)} 0`},[`${X}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Y.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Td=Y=>{const{componentCls:X,tableRadius:xe}=Y;return{[`${X}-wrapper`]:{[X]:{[`${X}-title, ${X}-header`]:{borderRadius:`${(0,ho.unit)(xe)} ${(0,ho.unit)(xe)} 0 0`},[`${X}-title + ${X}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${X}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:xe,borderStartEndRadius:xe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:xe},"> *:last-child":{borderStartEndRadius:xe}}},"&-footer":{borderRadius:`0 0 ${(0,ho.unit)(xe)} ${(0,ho.unit)(xe)}`}}}}},ah=Y=>{const{componentCls:X}=Y;return{[`${X}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${X}-pagination-left`]:{justifyContent:"flex-end"},[`${X}-pagination-right`]:{justifyContent:"flex-start"},[`${X}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${X}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${X}-row-indent`]:{float:"right"}}}}},ml=Y=>{const{componentCls:X,antCls:xe,iconCls:Ke,fontSizeIcon:rt,padding:pt,paddingXS:Dt,headerIconColor:Ft,headerIconHoverColor:Vt,tableSelectionColumnWidth:kt,tableSelectedRowBg:wn,tableSelectedRowHoverBg:rn,tableRowHoverBg:on,tablePaddingHorizontal:nn,calc:dn}=Y;return{[`${X}-wrapper`]:{[`${X}-selection-col`]:{width:kt,[`&${X}-selection-col-with-dropdown`]:{width:dn(kt).add(rt).add(dn(pt).div(4)).equal()}},[`${X}-bordered ${X}-selection-col`]:{width:dn(kt).add(dn(Dt).mul(2)).equal(),[`&${X}-selection-col-with-dropdown`]:{width:dn(kt).add(rt).add(dn(pt).div(4)).add(dn(Dt).mul(2)).equal()}},[` - table tr th${X}-selection-column, - table tr td${X}-selection-column, - ${X}-selection-column - `]:{paddingInlineEnd:Y.paddingXS,paddingInlineStart:Y.paddingXS,textAlign:"center",[`${xe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${X}-selection-column${X}-cell-fix-left`]:{zIndex:dn(Y.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${X}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${X}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${X}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Y.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ho.unit)(dn(nn).div(4).equal()),[Ke]:{color:Ft,fontSize:rt,verticalAlign:"baseline","&:hover":{color:Vt}}},[`${X}-tbody`]:{[`${X}-row`]:{[`&${X}-row-selected`]:{[`> ${X}-cell`]:{background:wn,"&-row-hover":{background:rn}}},[`> ${X}-cell-row-hover`]:{background:on}}}}}},Ah=Y=>{const{componentCls:X,tableExpandColumnWidth:xe,calc:Ke}=Y,rt=(pt,Dt,Ft,Vt)=>({[`${X}${X}-${pt}`]:{fontSize:Vt,[` - ${X}-title, - ${X}-footer, - ${X}-cell, - ${X}-thead > tr > th, - ${X}-tbody > tr > th, - ${X}-tbody > tr > td, + ${Y}-cell-fix-left-first::after, + ${Y}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Vt(xe).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${rt}`,content:'""',pointerEvents:"none"},[`${Y}-cell-fix-left-all::after`]:{display:"none"},[` + ${Y}-cell-fix-right-first::after, + ${Y}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:Vt(xe).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${rt}`,content:'""',pointerEvents:"none"},[`${Y}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Vt(Ft).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${rt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Y}-ping-left`]:{[`&:not(${Y}-has-fix-left) ${Y}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${kt}`},[` + ${Y}-cell-fix-left-first::after, + ${Y}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${kt}`},[`${Y}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Y}-ping-right`]:{[`&:not(${Y}-has-fix-right) ${Y}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${kt}`},[` + ${Y}-cell-fix-right-first::after, + ${Y}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${kt}`}},[`${Y}-fixed-column-gapped`]:{[` + ${Y}-cell-fix-left-first::after, + ${Y}-cell-fix-left-last::after, + ${Y}-cell-fix-right-first::after, + ${Y}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},Tu=J=>{const{componentCls:Y,antCls:xe,margin:ze}=J;return{[`${Y}-wrapper`]:{[`${Y}-pagination${xe}-pagination`]:{margin:`${(0,ho.unit)(ze)} 0`},[`${Y}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:J.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Td=J=>{const{componentCls:Y,tableRadius:xe}=J;return{[`${Y}-wrapper`]:{[Y]:{[`${Y}-title, ${Y}-header`]:{borderRadius:`${(0,ho.unit)(xe)} ${(0,ho.unit)(xe)} 0 0`},[`${Y}-title + ${Y}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Y}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:xe,borderStartEndRadius:xe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:xe},"> *:last-child":{borderStartEndRadius:xe}}},"&-footer":{borderRadius:`0 0 ${(0,ho.unit)(xe)} ${(0,ho.unit)(xe)}`}}}}},ah=J=>{const{componentCls:Y}=J;return{[`${Y}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Y}-pagination-left`]:{justifyContent:"flex-end"},[`${Y}-pagination-right`]:{justifyContent:"flex-start"},[`${Y}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Y}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Y}-row-indent`]:{float:"right"}}}}},ml=J=>{const{componentCls:Y,antCls:xe,iconCls:ze,fontSizeIcon:rt,padding:pt,paddingXS:Dt,headerIconColor:Ft,headerIconHoverColor:Vt,tableSelectionColumnWidth:kt,tableSelectedRowBg:wn,tableSelectedRowHoverBg:rn,tableRowHoverBg:on,tablePaddingHorizontal:nn,calc:dn}=J;return{[`${Y}-wrapper`]:{[`${Y}-selection-col`]:{width:kt,[`&${Y}-selection-col-with-dropdown`]:{width:dn(kt).add(rt).add(dn(pt).div(4)).equal()}},[`${Y}-bordered ${Y}-selection-col`]:{width:dn(kt).add(dn(Dt).mul(2)).equal(),[`&${Y}-selection-col-with-dropdown`]:{width:dn(kt).add(rt).add(dn(pt).div(4)).add(dn(Dt).mul(2)).equal()}},[` + table tr th${Y}-selection-column, + table tr td${Y}-selection-column, + ${Y}-selection-column + `]:{paddingInlineEnd:J.paddingXS,paddingInlineStart:J.paddingXS,textAlign:"center",[`${xe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Y}-selection-column${Y}-cell-fix-left`]:{zIndex:dn(J.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${Y}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Y}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Y}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${J.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ho.unit)(dn(nn).div(4).equal()),[ze]:{color:Ft,fontSize:rt,verticalAlign:"baseline","&:hover":{color:Vt}}},[`${Y}-tbody`]:{[`${Y}-row`]:{[`&${Y}-row-selected`]:{[`> ${Y}-cell`]:{background:wn,"&-row-hover":{background:rn}}},[`> ${Y}-cell-row-hover`]:{background:on}}}}}},Ah=J=>{const{componentCls:Y,tableExpandColumnWidth:xe,calc:ze}=J,rt=(pt,Dt,Ft,Vt)=>({[`${Y}${Y}-${pt}`]:{fontSize:Vt,[` + ${Y}-title, + ${Y}-footer, + ${Y}-cell, + ${Y}-thead > tr > th, + ${Y}-tbody > tr > th, + ${Y}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${(0,ho.unit)(Dt)} ${(0,ho.unit)(Ft)}`},[`${X}-filter-trigger`]:{marginInlineEnd:(0,ho.unit)(Ke(Ft).div(2).mul(-1).equal())},[`${X}-expanded-row-fixed`]:{margin:`${(0,ho.unit)(Ke(Dt).mul(-1).equal())} ${(0,ho.unit)(Ke(Ft).mul(-1).equal())}`},[`${X}-tbody`]:{[`${X}-wrapper:only-child ${X}`]:{marginBlock:(0,ho.unit)(Ke(Dt).mul(-1).equal()),marginInline:`${(0,ho.unit)(Ke(xe).sub(Ft).equal())} ${(0,ho.unit)(Ke(Ft).mul(-1).equal())}`}},[`${X}-selection-extra`]:{paddingInlineStart:(0,ho.unit)(Ke(Ft).div(4).equal())}}});return{[`${X}-wrapper`]:Object.assign(Object.assign({},rt("middle",Y.tablePaddingVerticalMiddle,Y.tablePaddingHorizontalMiddle,Y.tableFontSizeMiddle)),rt("small",Y.tablePaddingVerticalSmall,Y.tablePaddingHorizontalSmall,Y.tableFontSizeSmall))}},fc=Y=>{const{componentCls:X,marginXXS:xe,fontSizeIcon:Ke,headerIconColor:rt,headerIconHoverColor:pt}=Y;return{[`${X}-wrapper`]:{[`${X}-thead th${X}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Y.motionDurationSlow}, left 0s`,"&:hover":{background:Y.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Y.colorPrimary},[` - &${X}-cell-fix-left:hover, - &${X}-cell-fix-right:hover - `]:{background:Y.tableFixedHeaderSortActiveBg}},[`${X}-thead th${X}-column-sort`]:{background:Y.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${X}-column-sort`]:{background:Y.tableBodySortBg},[`${X}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${X}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${X}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${X}-column-sorter`]:{marginInlineStart:xe,color:rt,fontSize:0,transition:`color ${Y.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ke,"&.active":{color:Y.colorPrimary}},[`${X}-column-sorter-up + ${X}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${X}-column-sorters:hover ${X}-column-sorter`]:{color:pt}}}},hc=Y=>{const{componentCls:X,opacityLoading:xe,tableScrollThumbBg:Ke,tableScrollThumbBgHover:rt,tableScrollThumbSize:pt,tableScrollBg:Dt,zIndexTableSticky:Ft,stickyScrollBarBorderRadius:Vt,lineWidth:kt,lineType:wn,tableBorderColor:rn}=Y,on=`${(0,ho.unit)(kt)} ${wn} ${rn}`;return{[`${X}-wrapper`]:{[`${X}-sticky`]:{"&-holder":{position:"sticky",zIndex:Ft,background:Y.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ho.unit)(pt)} !important`,zIndex:Ft,display:"flex",alignItems:"center",background:Dt,borderTop:on,opacity:xe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:pt,backgroundColor:Ke,borderRadius:Vt,transition:`all ${Y.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:rt}}}}}}},Rd=Y=>{const{componentCls:X,lineWidth:xe,tableBorderColor:Ke,calc:rt}=Y,pt=`${(0,ho.unit)(xe)} ${Y.lineType} ${Ke}`;return{[`${X}-wrapper`]:{[`${X}-summary`]:{position:"relative",zIndex:Y.zIndexTableFixed,background:Y.tableBg,"> tr":{"> th, > td":{borderBottom:pt}}},[`div${X}-summary`]:{boxShadow:`0 ${(0,ho.unit)(rt(xe).mul(-1).equal())} 0 ${Ke}`}}}},uh=Y=>{const{componentCls:X,motionDurationMid:xe,lineWidth:Ke,lineType:rt,tableBorderColor:pt,calc:Dt}=Y,Ft=`${(0,ho.unit)(Ke)} ${rt} ${pt}`,Vt=`${X}-expanded-row-cell`;return{[`${X}-wrapper`]:{[`${X}-tbody-virtual`]:{[`${X}-tbody-virtual-holder-inner`]:{[` - & > ${X}-row, - & > div:not(${X}-row) > ${X}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${X}-cell`]:{borderBottom:Ft,transition:`background ${xe}`},[`${X}-expanded-row`]:{[`${Vt}${Vt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ho.unit)(Ke)})`,borderInlineEnd:"none"}}},[`${X}-bordered`]:{[`${X}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ft,position:"absolute"},[`${X}-cell`]:{borderInlineEnd:Ft,[`&${X}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Dt(Ke).mul(-1).equal(),borderInlineStart:Ft}}},[`&${X}-virtual`]:{[`${X}-placeholder ${X}-cell`]:{borderInlineEnd:Ft,borderBottom:Ft}}}}}};const ch=Y=>{const{componentCls:X,fontWeightStrong:xe,tablePaddingVertical:Ke,tablePaddingHorizontal:rt,tableExpandColumnWidth:pt,lineWidth:Dt,lineType:Ft,tableBorderColor:Vt,tableFontSize:kt,tableBg:wn,tableRadius:rn,tableHeaderTextColor:on,motionDurationMid:nn,tableHeaderBg:dn,tableHeaderCellSplitColor:rr,tableFooterTextColor:Pn,tableFooterBg:Ar,calc:lr}=Y,tr=`${(0,ho.unit)(Dt)} ${Ft} ${Vt}`;return{[`${X}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,gl.dF)()),{[X]:Object.assign(Object.assign({},(0,gl.Wf)(Y)),{fontSize:kt,background:wn,borderRadius:`${(0,ho.unit)(rn)} ${(0,ho.unit)(rn)} 0 0`,scrollbarColor:`${Y.tableScrollThumbBg} ${Y.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ho.unit)(rn)} ${(0,ho.unit)(rn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${X}-cell, - ${X}-thead > tr > th, - ${X}-tbody > tr > th, - ${X}-tbody > tr > td, + `]:{padding:`${(0,ho.unit)(Dt)} ${(0,ho.unit)(Ft)}`},[`${Y}-filter-trigger`]:{marginInlineEnd:(0,ho.unit)(ze(Ft).div(2).mul(-1).equal())},[`${Y}-expanded-row-fixed`]:{margin:`${(0,ho.unit)(ze(Dt).mul(-1).equal())} ${(0,ho.unit)(ze(Ft).mul(-1).equal())}`},[`${Y}-tbody`]:{[`${Y}-wrapper:only-child ${Y}`]:{marginBlock:(0,ho.unit)(ze(Dt).mul(-1).equal()),marginInline:`${(0,ho.unit)(ze(xe).sub(Ft).equal())} ${(0,ho.unit)(ze(Ft).mul(-1).equal())}`}},[`${Y}-selection-extra`]:{paddingInlineStart:(0,ho.unit)(ze(Ft).div(4).equal())}}});return{[`${Y}-wrapper`]:Object.assign(Object.assign({},rt("middle",J.tablePaddingVerticalMiddle,J.tablePaddingHorizontalMiddle,J.tableFontSizeMiddle)),rt("small",J.tablePaddingVerticalSmall,J.tablePaddingHorizontalSmall,J.tableFontSizeSmall))}},fc=J=>{const{componentCls:Y,marginXXS:xe,fontSizeIcon:ze,headerIconColor:rt,headerIconHoverColor:pt}=J;return{[`${Y}-wrapper`]:{[`${Y}-thead th${Y}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${J.motionDurationSlow}, left 0s`,"&:hover":{background:J.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:J.colorPrimary},[` + &${Y}-cell-fix-left:hover, + &${Y}-cell-fix-right:hover + `]:{background:J.tableFixedHeaderSortActiveBg}},[`${Y}-thead th${Y}-column-sort`]:{background:J.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Y}-column-sort`]:{background:J.tableBodySortBg},[`${Y}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Y}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Y}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Y}-column-sorter`]:{marginInlineStart:xe,color:rt,fontSize:0,transition:`color ${J.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ze,"&.active":{color:J.colorPrimary}},[`${Y}-column-sorter-up + ${Y}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Y}-column-sorters:hover ${Y}-column-sorter`]:{color:pt}}}},hc=J=>{const{componentCls:Y,opacityLoading:xe,tableScrollThumbBg:ze,tableScrollThumbBgHover:rt,tableScrollThumbSize:pt,tableScrollBg:Dt,zIndexTableSticky:Ft,stickyScrollBarBorderRadius:Vt,lineWidth:kt,lineType:wn,tableBorderColor:rn}=J,on=`${(0,ho.unit)(kt)} ${wn} ${rn}`;return{[`${Y}-wrapper`]:{[`${Y}-sticky`]:{"&-holder":{position:"sticky",zIndex:Ft,background:J.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ho.unit)(pt)} !important`,zIndex:Ft,display:"flex",alignItems:"center",background:Dt,borderTop:on,opacity:xe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:pt,backgroundColor:ze,borderRadius:Vt,transition:`all ${J.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:rt}}}}}}},Rd=J=>{const{componentCls:Y,lineWidth:xe,tableBorderColor:ze,calc:rt}=J,pt=`${(0,ho.unit)(xe)} ${J.lineType} ${ze}`;return{[`${Y}-wrapper`]:{[`${Y}-summary`]:{position:"relative",zIndex:J.zIndexTableFixed,background:J.tableBg,"> tr":{"> th, > td":{borderBottom:pt}}},[`div${Y}-summary`]:{boxShadow:`0 ${(0,ho.unit)(rt(xe).mul(-1).equal())} 0 ${ze}`}}}},uh=J=>{const{componentCls:Y,motionDurationMid:xe,lineWidth:ze,lineType:rt,tableBorderColor:pt,calc:Dt}=J,Ft=`${(0,ho.unit)(ze)} ${rt} ${pt}`,Vt=`${Y}-expanded-row-cell`;return{[`${Y}-wrapper`]:{[`${Y}-tbody-virtual`]:{[`${Y}-tbody-virtual-holder-inner`]:{[` + & > ${Y}-row, + & > div:not(${Y}-row) > ${Y}-row + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Y}-cell`]:{borderBottom:Ft,transition:`background ${xe}`},[`${Y}-expanded-row`]:{[`${Vt}${Vt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ho.unit)(ze)})`,borderInlineEnd:"none"}}},[`${Y}-bordered`]:{[`${Y}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ft,position:"absolute"},[`${Y}-cell`]:{borderInlineEnd:Ft,[`&${Y}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Dt(ze).mul(-1).equal(),borderInlineStart:Ft}}},[`&${Y}-virtual`]:{[`${Y}-placeholder ${Y}-cell`]:{borderInlineEnd:Ft,borderBottom:Ft}}}}}};const ch=J=>{const{componentCls:Y,fontWeightStrong:xe,tablePaddingVertical:ze,tablePaddingHorizontal:rt,tableExpandColumnWidth:pt,lineWidth:Dt,lineType:Ft,tableBorderColor:Vt,tableFontSize:kt,tableBg:wn,tableRadius:rn,tableHeaderTextColor:on,motionDurationMid:nn,tableHeaderBg:dn,tableHeaderCellSplitColor:rr,tableFooterTextColor:Pn,tableFooterBg:Ar,calc:lr}=J,tr=`${(0,ho.unit)(Dt)} ${Ft} ${Vt}`;return{[`${Y}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,gl.dF)()),{[Y]:Object.assign(Object.assign({},(0,gl.Wf)(J)),{fontSize:kt,background:wn,borderRadius:`${(0,ho.unit)(rn)} ${(0,ho.unit)(rn)} 0 0`,scrollbarColor:`${J.tableScrollThumbBg} ${J.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ho.unit)(rn)} ${(0,ho.unit)(rn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${Y}-cell, + ${Y}-thead > tr > th, + ${Y}-tbody > tr > th, + ${Y}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{position:"relative",padding:`${(0,ho.unit)(Ke)} ${(0,ho.unit)(rt)}`,overflowWrap:"break-word"},[`${X}-title`]:{padding:`${(0,ho.unit)(Ke)} ${(0,ho.unit)(rt)}`},[`${X}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:on,fontWeight:xe,textAlign:"start",background:dn,borderBottom:tr,transition:`background ${nn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${X}-selection-column):not(${X}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:rr,transform:"translateY(-50%)",transition:`background-color ${nn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${X}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${nn}, border-color ${nn}`,borderBottom:tr,[` - > ${X}-wrapper:only-child, - > ${X}-expanded-row-fixed > ${X}-wrapper:only-child - `]:{[X]:{marginBlock:(0,ho.unit)(lr(Ke).mul(-1).equal()),marginInline:`${(0,ho.unit)(lr(pt).sub(rt).equal())} - ${(0,ho.unit)(lr(rt).mul(-1).equal())}`,[`${X}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:on,fontWeight:xe,textAlign:"start",background:dn,borderBottom:tr,transition:`background ${nn} ease`}}},[`${X}-footer`]:{padding:`${(0,ho.unit)(Ke)} ${(0,ho.unit)(rt)}`,color:Pn,background:Ar}})}},_d=Y=>{const{colorFillAlter:X,colorBgContainer:xe,colorTextHeading:Ke,colorFillSecondary:rt,colorFillContent:pt,controlItemBgActive:Dt,controlItemBgActiveHover:Ft,padding:Vt,paddingSM:kt,paddingXS:wn,colorBorderSecondary:rn,borderRadiusLG:on,controlHeight:nn,colorTextPlaceholder:dn,fontSize:rr,fontSizeSM:Pn,lineHeight:Ar,lineWidth:lr,colorIcon:tr,colorIconHover:vr,opacityLoading:Cr,controlInteractiveSize:Rr}=Y,Dr=new Va.FastColor(rt).onBackground(xe).toHexString(),Eo=new Va.FastColor(pt).onBackground(xe).toHexString(),no=new Va.FastColor(X).onBackground(xe).toHexString(),so=new Va.FastColor(tr),Mr=new Va.FastColor(vr),Pr=Rr/2-lr,Tr=Pr*2+lr*3;return{headerBg:no,headerColor:Ke,headerSortActiveBg:Dr,headerSortHoverBg:Eo,bodySortBg:no,rowHoverBg:no,rowSelectedBg:Dt,rowSelectedHoverBg:Ft,rowExpandedBg:X,cellPaddingBlock:Vt,cellPaddingInline:Vt,cellPaddingBlockMD:kt,cellPaddingInlineMD:wn,cellPaddingBlockSM:wn,cellPaddingInlineSM:wn,borderColor:rn,headerBorderRadius:on,footerBg:no,footerColor:Ke,cellFontSize:rr,cellFontSizeMD:rr,cellFontSizeSM:rr,headerSplitColor:rn,fixedHeaderSortActiveBg:Dr,headerFilterHoverBg:pt,filterDropdownMenuBg:xe,filterDropdownBg:xe,expandIconBg:xe,selectionColumnWidth:nn,stickyScrollBarBg:dn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(rr*Ar-lr*3)/2-Math.ceil((Pn*1.4-lr*3)/2),headerIconColor:so.clone().setA(so.a*Cr).toRgbString(),headerIconHoverColor:Mr.clone().setA(Mr.a*Cr).toRgbString(),expandIconHalfInner:Pr,expandIconSize:Tr,expandIconScale:Rr/Tr}},pc=2;var dh=(0,au.I$)("Table",Y=>{const{colorTextHeading:X,colorSplit:xe,colorBgContainer:Ke,controlInteractiveSize:rt,headerBg:pt,headerColor:Dt,headerSortActiveBg:Ft,headerSortHoverBg:Vt,bodySortBg:kt,rowHoverBg:wn,rowSelectedBg:rn,rowSelectedHoverBg:on,rowExpandedBg:nn,cellPaddingBlock:dn,cellPaddingInline:rr,cellPaddingBlockMD:Pn,cellPaddingInlineMD:Ar,cellPaddingBlockSM:lr,cellPaddingInlineSM:tr,borderColor:vr,footerBg:Cr,footerColor:Rr,headerBorderRadius:Dr,cellFontSize:Eo,cellFontSizeMD:no,cellFontSizeSM:so,headerSplitColor:Mr,fixedHeaderSortActiveBg:Pr,headerFilterHoverBg:Tr,filterDropdownBg:Er,expandIconBg:mr,selectionColumnWidth:Nr,stickyScrollBarBg:Hr,calc:Yr}=Y,Br=(0,Ul.mergeToken)(Y,{tableFontSize:Eo,tableBg:Ke,tableRadius:Dr,tablePaddingVertical:dn,tablePaddingHorizontal:rr,tablePaddingVerticalMiddle:Pn,tablePaddingHorizontalMiddle:Ar,tablePaddingVerticalSmall:lr,tablePaddingHorizontalSmall:tr,tableBorderColor:vr,tableHeaderTextColor:Dt,tableHeaderBg:pt,tableFooterTextColor:Rr,tableFooterBg:Cr,tableHeaderCellSplitColor:Mr,tableHeaderSortBg:Ft,tableHeaderSortHoverBg:Vt,tableBodySortBg:kt,tableFixedHeaderSortActiveBg:Pr,tableHeaderFilterActiveBg:Tr,tableFilterDropdownBg:Er,tableRowHoverBg:wn,tableSelectedRowBg:rn,tableSelectedRowHoverBg:on,zIndexTableFixed:pc,zIndexTableSticky:Yr(pc).add(1).equal({unit:!1}),tableFontSizeMiddle:no,tableFontSizeSmall:so,tableSelectionColumnWidth:Nr,tableExpandIconBg:mr,tableExpandColumnWidth:Yr(rt).add(Yr(Y.padding).mul(2)).equal(),tableExpandedRowBg:nn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Hr,tableScrollThumbBgHover:X,tableScrollBg:xe});return[ch(Br),Tu(Br),Rd(Br),fc(Br),zi(Br),Au(Br),Td(Br),Ps(Br),Rd(Br),p0(Br),ml(Br),Pd(Br),hc(Br),kl(Br),Ah(Br),ah(Br),uh(Br)]},_d,{unitless:{expandIconScale:!0}});const fh=[],hh=(Y,X)=>{var xe,Ke;const{prefixCls:rt,className:pt,rootClassName:Dt,style:Ft,size:Vt,bordered:kt,dropdownPrefixCls:wn,dataSource:rn,pagination:on,rowSelection:nn,rowKey:dn="key",rowClassName:rr,columns:Pn,children:Ar,childrenColumnName:lr,onChange:tr,getPopupContainer:vr,loading:Cr,expandIcon:Rr,expandable:Dr,expandedRowRender:Eo,expandIconColumnIndex:no,indentSize:so,scroll:Mr,sortDirections:Pr,locale:Tr,showSorterTooltip:Er={target:"full-header"},virtual:mr}=Y,Nr=(0,FA.ln)("Table"),Hr=s.useMemo(()=>Pn||Dn(Ar),[Pn,Ar]),Yr=s.useMemo(()=>Hr.some(Po=>Po.responsive),[Hr]),Br=(0,ul.Z)(Yr),Vo=s.useMemo(()=>{const Po=new Set(Object.keys(Br).filter(Wi=>Br[Wi]));return Hr.filter(Wi=>!Wi.responsive||Wi.responsive.some(pA=>Po.has(pA)))},[Hr,Br]),Wo=(0,pa.Z)(Y,["className","style","columns"]),{locale:Ma=ru.Z,direction:Sa,table:la,renderEmpty:ur,getPrefixCls:QA,getPopupContainer:ii}=s.useContext(as.E_),ai=(0,Ou.Z)(Vt),ua=Object.assign(Object.assign({},Ma.Table),Tr),BA=rn||fh,Jr=QA("table",rt),uo=QA("dropdown",wn),[,kr]=(0,ou.ZP)(),ro=(0,El.Z)(Jr),[bi,Ui,Ji]=dh(Jr,ro),Zi=Object.assign(Object.assign({childrenColumnName:lr,expandIconColumnIndex:no},Dr),{expandIcon:(xe=Dr==null?void 0:Dr.expandIcon)!==null&&xe!==void 0?xe:(Ke=la==null?void 0:la.expandable)===null||Ke===void 0?void 0:Ke.expandIcon}),{childrenColumnName:Da="children"}=Zi,jA=s.useMemo(()=>BA.some(Po=>Po==null?void 0:Po[Da])?"nest":Eo||Dr!=null&&Dr.expandedRowRender?"row":null,[BA]),to={body:s.useRef(null)},Wr=Oo(Jr),Ci=s.useRef(null),Fa=s.useRef(null);Es(X,()=>Object.assign(Object.assign({},Fa.current),{nativeElement:Ci.current}));const qi=s.useMemo(()=>typeof dn=="function"?dn:Po=>Po==null?void 0:Po[dn],[dn]),[MA]=Zs(BA,Da,qi),Ha={},Ws=function(Po,Wi){let pA=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bA,As,Xs,qA;const KA=Object.assign(Object.assign({},Ha),Po);pA&&((bA=Ha.resetPagination)===null||bA===void 0||bA.call(Ha),!((As=KA.pagination)===null||As===void 0)&&As.current&&(KA.pagination.current=1),on&&((Xs=on.onChange)===null||Xs===void 0||Xs.call(on,1,(qA=KA.pagination)===null||qA===void 0?void 0:qA.pageSize))),Mr&&Mr.scrollToFirstRowOnChange!==!1&&to.body.current&&(0,IA.Z)(0,{getContainer:()=>to.body.current}),tr==null||tr(KA.pagination,KA.filters,KA.sorter,{currentDataSource:Do(Ds(BA,KA.sorterStates,Da),KA.filterStates,Da),action:Wi})},Ia=(Po,Wi)=>{Ws({sorter:Po,sorterStates:Wi},"sort",!1)},[ji,ga,ma,hA]=rh({prefixCls:Jr,mergedColumns:Vo,onSorterChange:Ia,sortDirections:Pr||["ascend","descend"],tableLocale:ua,showSorterTooltip:Er}),oA=s.useMemo(()=>Ds(BA,ga,Da),[BA,ga]);Ha.sorter=hA(),Ha.sorterStates=ga;const Pi=(Po,Wi)=>{Ws({filters:Po,filterStates:Wi},"filter",!0)},[ka,Vi,Ua]=Xa({prefixCls:Jr,locale:ua,dropdownPrefixCls:uo,mergedColumns:Vo,onFilterChange:Pi,getPopupContainer:vr||ii,rootClassName:p()(Dt,ro)}),Wa=Do(oA,Vi,Da);Ha.filters=Ua,Ha.filterStates=Vi;const HA=s.useMemo(()=>{const Po={};return Object.keys(Ua).forEach(Wi=>{Ua[Wi]!==null&&(Po[Wi]=Ua[Wi])}),Object.assign(Object.assign({},ma),{filters:Po})},[ma,Ua]),[Gs]=Gc(HA),lu=(Po,Wi)=>{Ws({pagination:Object.assign(Object.assign({},Ha.pagination),{current:Po,pageSize:Wi})},"paginate")},[Na,Ru]=Pu(Wa.length,lu,on);Ha.pagination=on===!1?{}:_A(Na,on),Ha.resetPagination=Ru;const $A=s.useMemo(()=>{if(on===!1||!Na.pageSize)return Wa;const{current:Po=1,total:Wi,pageSize:pA=hl}=Na;return Wa.lengthpA?Wa.slice((Po-1)*pA,Po*pA):Wa:Wa.slice((Po-1)*pA,Po*pA)},[!!on,Wa,Na==null?void 0:Na.current,Na==null?void 0:Na.pageSize,Na==null?void 0:Na.total]),[XA,kA]=Zo({prefixCls:Jr,data:Wa,pageData:$A,getRowKey:qi,getRecordByKey:MA,expandType:jA,childrenColumnName:Da,locale:ua,getPopupContainer:vr||ii},nn),YA=(Po,Wi,pA)=>{let bA;return typeof rr=="function"?bA=p()(rr(Po,Wi,pA)):bA=p()(rr),p()({[`${Jr}-row-selected`]:kA.has(qi(Po,Wi))},bA)};Zi.__PARENT_RENDER_ICON__=Zi.expandIcon,Zi.expandIcon=Zi.expandIcon||Rr||bo(ua),jA==="nest"&&Zi.expandIconColumnIndex===void 0?Zi.expandIconColumnIndex=nn?1:0:Zi.expandIconColumnIndex>0&&nn&&(Zi.expandIconColumnIndex-=1),typeof Zi.indentSize!="number"&&(Zi.indentSize=typeof so=="number"?so:15);const JA=s.useCallback(Po=>Gs(XA(ka(ji(Po)))),[ji,ka,XA]);let xs,vl;if(on!==!1&&(Na!=null&&Na.total)){let Po;Na.size?Po=Na.size:Po=ai==="small"||ai==="middle"?"small":void 0;const Wi=As=>s.createElement(Ml.Z,Object.assign({},Na,{className:p()(`${Jr}-pagination ${Jr}-pagination-${As}`,Na.className),size:Po})),pA=Sa==="rtl"?"left":"right",{position:bA}=Na;if(bA!==null&&Array.isArray(bA)){const As=bA.find(KA=>KA.includes("top")),Xs=bA.find(KA=>KA.includes("bottom")),qA=bA.every(KA=>`${KA}`=="none");!As&&!Xs&&!qA&&(vl=Wi(pA)),As&&(xs=Wi(As.toLowerCase().replace("top",""))),Xs&&(vl=Wi(Xs.toLowerCase().replace("bottom","")))}else vl=Wi(pA)}let Ts;typeof Cr=="boolean"?Ts={spinning:Cr}:typeof Cr=="object"&&(Ts=Object.assign({spinning:!0},Cr));const $s=p()(Ji,ro,`${Jr}-wrapper`,la==null?void 0:la.className,{[`${Jr}-wrapper-rtl`]:Sa==="rtl"},pt,Dt,Ui),qc=Object.assign(Object.assign({},la==null?void 0:la.style),Ft),ed=typeof(Tr==null?void 0:Tr.emptyText)!="undefined"?Tr.emptyText:(ur==null?void 0:ur("Table"))||s.createElement(Qu.Z,{componentName:"Table"}),Li=mr?iu:Od,uu={},td=s.useMemo(()=>{const{fontSize:Po,lineHeight:Wi,lineWidth:pA,padding:bA,paddingXS:As,paddingSM:Xs}=kr,qA=Math.floor(Po*Wi);switch(ai){case"middle":return Xs*2+qA+pA;case"small":return As*2+qA+pA;default:return bA*2+qA+pA}},[kr,ai]);return mr&&(uu.listItemHeight=td),bi(s.createElement("div",{ref:Ci,className:$s,style:qc},s.createElement(eA.Z,Object.assign({spinning:!1},Ts),xs,s.createElement(Li,Object.assign({},uu,Wo,{ref:Fa,columns:Vo,direction:Sa,expandable:Zi,prefixCls:Jr,className:p()({[`${Jr}-middle`]:ai==="middle",[`${Jr}-small`]:ai==="small",[`${Jr}-bordered`]:kt,[`${Jr}-empty`]:BA.length===0},Ji,ro,Ui),data:$A,rowKey:qi,rowClassName:YA,emptyText:ed,internalHooks:M,internalRefs:to,transformColumns:JA,getContainerWidth:Wr})),vl)))};var ph=s.forwardRef(hh);const gh=(Y,X)=>{const xe=s.useRef(0);return xe.current+=1,s.createElement(ph,Object.assign({},Y,{ref:X,_renderTimes:xe.current}))},Ll=s.forwardRef(gh);Ll.SELECTION_COLUMN=pi,Ll.EXPAND_COLUMN=Se,Ll.SELECTION_ALL=$a,Ll.SELECTION_INVERT=PA,Ll.SELECTION_NONE=cA,Ll.Column=jr,Ll.ColumnGroup=qo,Ll.Summary=le;var Jc=Ll,mh=Jc},18287:function(nr,Zt,g){"use strict";g.d(Zt,{default:function(){return vt}});var s=g(3741),Se=g(94480),M=g(59301),Be=g(52671),te=g(8657),G=g(54476),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},v=Z,L=g(7657),i=function(Nt,yt){return M.createElement(L.Z,(0,G.Z)({},Nt,{ref:yt,icon:v}))},N=M.forwardRef(i),B=N,D=g(92310),O=g.n(D),T=g(82661),E=g(34061),U=g(48755),F=g(56082),W=g(86641),re=g(57700),H=g(12425);const k=4;function de(Ve){const{dropPosition:Nt,dropLevelOffset:yt,prefixCls:zt,indent:je,direction:It="ltr"}=Ve,ze=It==="ltr"?"left":"right",Pt=It==="ltr"?"right":"left",ct={[ze]:-yt*je+k,[Pt]:0};switch(Nt){case-1:ct.top=-3;break;case 1:ct.bottom=-3;break;default:ct.bottom=-3,ct[ze]=je+k;break}return M.createElement("div",{style:ct,className:`${zt}-drop-indicator`})}var ue=de,Fe=g(85278),ve=M.forwardRef((Ve,Nt)=>{var yt;const{getPrefixCls:zt,direction:je,virtual:It,tree:ze}=M.useContext(U.E_),{prefixCls:Pt,className:ct,showIcon:x=!1,showLine:ke,switcherIcon:P,switcherLoadingIcon:A,blockNode:h=!1,children:C,checkable:b=!1,selectable:K=!0,draggable:ee,motion:Ee,style:le}=Ve,ce=zt("tree",Pt),Qe=zt(),He=Ee!=null?Ee:Object.assign(Object.assign({},(0,W.Z)(Qe)),{motionAppear:!1}),oe=Object.assign(Object.assign({},Ve),{checkable:b,selectable:K,showIcon:x,motion:He,blockNode:h,showLine:!!ke,dropIndicatorRender:ue}),[$,et,Te]=(0,H.ZP)(ce),[,Et]=(0,re.ZP)(),at=Et.paddingXS/2+(((yt=Et.Tree)===null||yt===void 0?void 0:yt.titleHeight)||Et.controlHeightSM),Ge=M.useMemo(()=>{if(!ee)return!1;let St={};switch(typeof ee){case"function":St.nodeDraggable=ee;break;case"object":St=Object.assign({},ee);break;default:break}return St.icon!==!1&&(St.icon=St.icon||M.createElement(F.Z,null)),St},[ee]),Ut=St=>M.createElement(Fe.Z,{prefixCls:ce,switcherIcon:P,switcherLoadingIcon:A,treeNodeProps:St,showLine:ke});return $(M.createElement(s.ZP,Object.assign({itemHeight:at,ref:Nt,virtual:It},oe,{style:Object.assign(Object.assign({},ze==null?void 0:ze.style),le),prefixCls:ce,className:O()({[`${ce}-icon-hide`]:!x,[`${ce}-block-node`]:h,[`${ce}-unselectable`]:!K,[`${ce}-rtl`]:je==="rtl"},ze==null?void 0:ze.className,ct,et,Te),direction:je,checkable:b&&M.createElement("span",{className:`${ce}-checkbox-inner`}),selectable:K,switcherIcon:Ut,draggable:Ge}),C))});const pe=0,J=1,ye=2;function p(Ve,Nt,yt){const{key:zt,children:je}=yt;function It(ze){const Pt=ze[zt],ct=ze[je];Nt(Pt,ze)!==!1&&p(ct||[],Nt,yt)}Ve.forEach(It)}function j(Ve){let{treeData:Nt,expandedKeys:yt,startKey:zt,endKey:je,fieldNames:It}=Ve;const ze=[];let Pt=pe;if(zt&&zt===je)return[zt];if(!zt||!je)return[];function ct(x){return x===zt||x===je}return p(Nt,x=>{if(Pt===ye)return!1;if(ct(x)){if(ze.push(x),Pt===pe)Pt=J;else if(Pt===J)return Pt=ye,!1}else Pt===J&&ze.push(x);return yt.includes(x)},(0,E.w$)(It)),ze}function Xe(Ve,Nt,yt){const zt=(0,Se.Z)(Nt),je=[];return p(Ve,(It,ze)=>{const Pt=zt.indexOf(It);return Pt!==-1&&(je.push(ze),zt.splice(Pt,1)),!!zt.length},(0,E.w$)(yt)),je}var ie=function(Ve,Nt){var yt={};for(var zt in Ve)Object.prototype.hasOwnProperty.call(Ve,zt)&&Nt.indexOf(zt)<0&&(yt[zt]=Ve[zt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,zt=Object.getOwnPropertySymbols(Ve);je{var{defaultExpandAll:yt,defaultExpandParent:zt,defaultExpandedKeys:je}=Ve,It=ie(Ve,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ze=M.useRef(null),Pt=M.useRef(null),ct=()=>{const{keyEntities:$}=(0,E.I8)(Ce(It));let et;return yt?et=Object.keys($):zt?et=(0,T.r7)(It.expandedKeys||je||[],$):et=It.expandedKeys||je||[],et},[x,ke]=M.useState(It.selectedKeys||It.defaultSelectedKeys||[]),[P,A]=M.useState(()=>ct());M.useEffect(()=>{"selectedKeys"in It&&ke(It.selectedKeys)},[It.selectedKeys]),M.useEffect(()=>{"expandedKeys"in It&&A(It.expandedKeys)},[It.expandedKeys]);const h=($,et)=>{var Te;return"expandedKeys"in It||A($),(Te=It.onExpand)===null||Te===void 0?void 0:Te.call(It,$,et)},C=($,et)=>{var Te;const{multiple:Et,fieldNames:at}=It,{node:Ge,nativeEvent:Ut}=et,{key:St=""}=Ge,Ie=Ce(It),$e=Object.assign(Object.assign({},et),{selected:!0}),ut=(Ut==null?void 0:Ut.ctrlKey)||(Ut==null?void 0:Ut.metaKey),Qt=Ut==null?void 0:Ut.shiftKey;let se;Et&&ut?(se=$,ze.current=St,Pt.current=se,$e.selectedNodes=Xe(Ie,se,at)):Et&&Qt?(se=Array.from(new Set([].concat((0,Se.Z)(Pt.current||[]),(0,Se.Z)(j({treeData:Ie,expandedKeys:P,startKey:St,endKey:ze.current,fieldNames:at}))))),$e.selectedNodes=Xe(Ie,se,at)):(se=[St],ze.current=St,Pt.current=se,$e.selectedNodes=Xe(Ie,se,at)),(Te=It.onSelect)===null||Te===void 0||Te.call(It,se,$e),"selectedKeys"in It||ke(se)},{getPrefixCls:b,direction:K}=M.useContext(U.E_),{prefixCls:ee,className:Ee,showIcon:le=!0,expandAction:ce="click"}=It,Qe=ie(It,["prefixCls","className","showIcon","expandAction"]),He=b("tree",ee),oe=O()(`${He}-directory`,{[`${He}-directory-rtl`]:K==="rtl"},Ee);return M.createElement(ve,Object.assign({icon:he,ref:Nt,blockNode:!0},Qe,{showIcon:le,expandAction:ce,prefixCls:He,className:oe,expandedKeys:P,selectedKeys:x,onSelect:C,onExpand:h}))};var Ae=M.forwardRef(ge);const nt=ve;nt.DirectoryTree=Ae,nt.TreeNode=s.OF;var vt=nt},12425:function(nr,Zt,g){"use strict";g.d(Zt,{ZP:function(){return T},Yk:function(){return B},TM:function(){return D}});var s=g(36237),Se=g(36170),M=g(63356),Be=g(34961),te=g(51636),G=g(16931);const Z=E=>{let{treeCls:U,treeNodeCls:F,directoryNodeSelectedBg:W,directoryNodeSelectedColor:re,motionDurationMid:H,borderRadius:k,controlItemBgHover:de}=E;return{[`${U}${U}-directory ${F}`]:{[`${U}-node-content-wrapper`]:{position:"static",[`> *:not(${U}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${H}`,content:'""',borderRadius:k},"&:hover:before":{background:de}},[`${U}-switcher, ${U}-checkbox, ${U}-draggable-icon`]:{zIndex:1},"&-selected":{[`${U}-switcher, ${U}-draggable-icon`]:{color:re},[`${U}-node-content-wrapper`]:{color:re,background:"transparent","&:before, &:hover:before":{background:W}}}}}},v=new s.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),L=(E,U)=>({[`.${E}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${U.motionDurationSlow}`}}}),i=(E,U)=>({[`.${E}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:U.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,s.unit)(U.lineWidthBold)} solid ${U.colorPrimary}`,borderRadius:"50%",content:'""'}}}),N=(E,U)=>{const{treeCls:F,treeNodeCls:W,treeNodePadding:re,titleHeight:H,indentSize:k,nodeSelectedBg:de,nodeHoverBg:ue,colorTextQuaternary:Fe,controlItemBgActiveDisabled:me}=U;return{[F]:Object.assign(Object.assign({},(0,M.Wf)(U)),{background:U.colorBgContainer,borderRadius:U.borderRadius,transition:`background-color ${U.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${F}-rtl ${F}-switcher_close ${F}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${F}-active-focused)`]:Object.assign({},(0,M.oN)(U)),[`${F}-list-holder-inner`]:{alignItems:"flex-start"},[`&${F}-block-node`]:{[`${F}-list-holder-inner`]:{alignItems:"stretch",[`${F}-node-content-wrapper`]:{flex:"auto"},[`${W}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${U.colorPrimary}`,opacity:0,animationName:v,animationDuration:U.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:U.borderRadius}}},[W]:{display:"flex",alignItems:"flex-start",marginBottom:re,lineHeight:(0,s.unit)(H),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:re},[`&-disabled ${F}-node-content-wrapper`]:{color:U.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${F}-checkbox-disabled + ${F}-node-selected,&${W}-disabled${W}-selected ${F}-node-content-wrapper`]:{backgroundColor:me},[`${F}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${W}-disabled)`]:{[`${F}-node-content-wrapper`]:{"&:hover":{color:U.nodeHoverColor}}},[`&-active ${F}-node-content-wrapper`]:{background:U.controlItemBgHover},[`&:not(${W}-disabled).filter-node ${F}-title`]:{color:U.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${F}-draggable-icon`]:{flexShrink:0,width:H,textAlign:"center",visibility:"visible",color:Fe},[`&${W}-disabled ${F}-draggable-icon`]:{visibility:"hidden"}}},[`${F}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:k}},[`${F}-draggable-icon`]:{visibility:"hidden"},[`${F}-switcher, ${F}-checkbox`]:{marginInlineEnd:U.calc(U.calc(H).sub(U.controlInteractiveSize)).div(2).equal()},[`${F}-switcher`]:Object.assign(Object.assign({},L(E,U)),{position:"relative",flex:"none",alignSelf:"stretch",width:H,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${U.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:H,height:H,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:U.borderRadius,transition:`all ${U.motionDurationSlow}`},[`&:not(${F}-switcher-noop):hover:before`]:{backgroundColor:U.colorBgTextHover},[`&_close ${F}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:U.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:U.calc(H).div(2).equal(),bottom:U.calc(re).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${U.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:U.calc(U.calc(H).div(2).equal()).mul(.8).equal(),height:U.calc(H).div(2).equal(),borderBottom:`1px solid ${U.colorBorder}`,content:'""'}}}),[`${F}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:H,paddingBlock:0,paddingInline:U.paddingXS,background:"transparent",borderRadius:U.borderRadius,cursor:"pointer",transition:`all ${U.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},i(E,U)),{"&:hover":{backgroundColor:ue},[`&${F}-node-selected`]:{color:U.nodeSelectedColor,backgroundColor:de},[`${F}-iconEle`]:{display:"inline-block",width:H,height:H,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${F}-unselectable ${F}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${W}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${U.colorPrimary}`},"&-show-line":{[`${F}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:U.calc(H).div(2).equal(),bottom:U.calc(re).mul(-1).equal(),borderInlineEnd:`1px solid ${U.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${F}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${W}-leaf-last ${F}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,s.unit)(U.calc(H).div(2).equal())} !important`}})}},B=function(E,U){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const W=`.${E}`,re=`${W}-treenode`,H=U.calc(U.paddingXS).div(2).equal(),k=(0,te.mergeToken)(U,{treeCls:W,treeNodeCls:re,treeNodePadding:H});return[N(E,k),F&&Z(k)].filter(Boolean)},D=E=>{const{controlHeightSM:U,controlItemBgHover:F,controlItemBgActive:W}=E,re=U;return{titleHeight:re,indentSize:re,nodeHoverBg:F,nodeHoverColor:E.colorText,nodeSelectedBg:W,nodeSelectedColor:E.colorText}},O=E=>{const{colorTextLightSolid:U,colorPrimary:F}=E;return Object.assign(Object.assign({},D(E)),{directoryNodeSelectedColor:U,directoryNodeSelectedBg:F})};var T=(0,G.I$)("Tree",(E,U)=>{let{prefixCls:F}=U;return[{[E.componentCls]:(0,Se.C2)(`${F}-checkbox`,E)},B(F,E),(0,Be.Z)(E)]},O)},85278:function(nr,Zt,g){"use strict";g.d(Zt,{Z:function(){return U}});var s=g(59301),Se=g(54476),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Be=M,te=g(7657),G=function(W,re){return s.createElement(te.Z,(0,Se.Z)({},W,{ref:re,icon:Be}))},Z=s.forwardRef(G),v=Z,L=g(52671),i=g(58617),N=g(15075),B=g(43531),D=g(92310),O=g.n(D),T=g(22703),U=F=>{const{prefixCls:W,switcherIcon:re,treeNodeProps:H,showLine:k,switcherLoadingIcon:de}=F,{isLeaf:ue,expanded:Fe,loading:me}=H;if(me)return s.isValidElement(de)?de:s.createElement(i.Z,{className:`${W}-switcher-loading-icon`});let ve;if(k&&typeof k=="object"&&(ve=k.showLeafIcon),ue){if(!k)return null;if(typeof ve!="boolean"&&ve){const ye=typeof ve=="function"?ve(H):ve,p=`${W}-switcher-line-custom-icon`;return s.isValidElement(ye)?(0,T.Tm)(ye,{className:O()(ye.props.className||"",p)}):ye}return ve?s.createElement(L.Z,{className:`${W}-switcher-line-icon`}):s.createElement("span",{className:`${W}-switcher-leaf-line`})}const pe=`${W}-switcher-icon`,J=typeof re=="function"?re(H):re;return s.isValidElement(J)?(0,T.Tm)(J,{className:O()(J.props.className||"",pe)}):J!==void 0?J:k?Fe?s.createElement(N.Z,{className:`${W}-switcher-line-icon`}):s.createElement(B.Z,{className:`${W}-switcher-line-icon`}):s.createElement(v,{className:pe})}},86251:function(nr,Zt){"use strict";Zt.byteLength=Z,Zt.toByteArray=L,Zt.fromByteArray=B;for(var g=[],s=[],Se=typeof Uint8Array!="undefined"?Uint8Array:Array,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Be=0,te=M.length;Be0)throw new Error("Invalid string. Length must be a multiple of 4");var T=D.indexOf("=");T===-1&&(T=O);var E=T===O?0:4-T%4;return[T,E]}function Z(D){var O=G(D),T=O[0],E=O[1];return(T+E)*3/4-E}function v(D,O,T){return(O+T)*3/4-T}function L(D){var O,T=G(D),E=T[0],U=T[1],F=new Se(v(D,E,U)),W=0,re=U>0?E-4:E,H;for(H=0;H>16&255,F[W++]=O>>8&255,F[W++]=O&255;return U===2&&(O=s[D.charCodeAt(H)]<<2|s[D.charCodeAt(H+1)]>>4,F[W++]=O&255),U===1&&(O=s[D.charCodeAt(H)]<<10|s[D.charCodeAt(H+1)]<<4|s[D.charCodeAt(H+2)]>>2,F[W++]=O>>8&255,F[W++]=O&255),F}function i(D){return g[D>>18&63]+g[D>>12&63]+g[D>>6&63]+g[D&63]}function N(D,O,T){for(var E,U=[],F=O;Fre?re:W+F));return E===1?(O=D[T-1],U.push(g[O>>2]+g[O<<4&63]+"==")):E===2&&(O=(D[T-2]<<8)+D[T-1],U.push(g[O>>10]+g[O>>4&63]+g[O<<2&63]+"=")),U.join("")}},19208:function(nr,Zt,g){"use strict";var s;var Se=g(86251),M=g(67467),Be=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zt.lW=v,s=W,Zt.h2=50;var te=2147483647;s=te,v.TYPED_ARRAY_SUPPORT=G(),!v.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function G(){try{var P=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf(P,A),P.foo()===42}catch(h){return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function Z(P){if(P>te)throw new RangeError('The value "'+P+'" is invalid for option "size"');var A=new Uint8Array(P);return Object.setPrototypeOf(A,v.prototype),A}function v(P,A,h){if(typeof P=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(P)}return L(P,A,h)}v.poolSize=8192;function L(P,A,h){if(typeof P=="string")return D(P,A);if(ArrayBuffer.isView(P))return T(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(ct(P,ArrayBuffer)||P&&ct(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ct(P,SharedArrayBuffer)||P&&ct(P.buffer,SharedArrayBuffer)))return E(P,A,h);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=P.valueOf&&P.valueOf();if(C!=null&&C!==P)return v.from(C,A,h);var b=U(P);if(b)return b;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return v.from(P[Symbol.toPrimitive]("string"),A,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}v.from=function(P,A,h){return L(P,A,h)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function i(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function N(P,A,h){return i(P),P<=0?Z(P):A!==void 0?typeof h=="string"?Z(P).fill(A,h):Z(P).fill(A):Z(P)}v.alloc=function(P,A,h){return N(P,A,h)};function B(P){return i(P),Z(P<0?0:F(P)|0)}v.allocUnsafe=function(P){return B(P)},v.allocUnsafeSlow=function(P){return B(P)};function D(P,A){if((typeof A!="string"||A==="")&&(A="utf8"),!v.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var h=re(P,A)|0,C=Z(h),b=C.write(P,A);return b!==h&&(C=C.slice(0,b)),C}function O(P){for(var A=P.length<0?0:F(P.length)|0,h=Z(A),C=0;C=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return P|0}function W(P){return+P!=P&&(P=0),v.alloc(+P)}v.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==v.prototype},v.compare=function(A,h){if(ct(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),ct(h,Uint8Array)&&(h=v.from(h,h.offset,h.byteLength)),!v.isBuffer(A)||!v.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===h)return 0;for(var C=A.length,b=h.length,K=0,ee=Math.min(C,b);Kb.length?v.from(ee).copy(b,K):Uint8Array.prototype.set.call(b,ee,K);else if(v.isBuffer(ee))ee.copy(b,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return b};function re(P,A){if(v.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||ct(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);var h=P.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&h===0)return 0;for(var b=!1;;)switch(A){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return zt(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return ze(P).length;default:if(b)return C?-1:zt(P).length;A=(""+A).toLowerCase(),b=!0}}v.byteLength=re;function H(P,A,h){var C=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,A>>>=0,h<=A))return"";for(P||(P="utf8");;)switch(P){case"hex":return Ce(this,A,h);case"utf8":case"utf-8":return p(this,A,h);case"ascii":return ie(this,A,h);case"latin1":case"binary":return he(this,A,h);case"base64":return ye(this,A,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,A,h);default:if(C)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),C=!0}}v.prototype._isBuffer=!0;function k(P,A,h){var C=P[A];P[A]=P[h],P[h]=C}v.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;hh&&(A+=" ... "),""},Be&&(v.prototype[Be]=v.prototype.inspect),v.prototype.compare=function(A,h,C,b,K){if(ct(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),!v.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(h===void 0&&(h=0),C===void 0&&(C=A?A.length:0),b===void 0&&(b=0),K===void 0&&(K=this.length),h<0||C>A.length||b<0||K>this.length)throw new RangeError("out of range index");if(b>=K&&h>=C)return 0;if(b>=K)return-1;if(h>=C)return 1;if(h>>>=0,C>>>=0,b>>>=0,K>>>=0,this===A)return 0;for(var ee=K-b,Ee=C-h,le=Math.min(ee,Ee),ce=this.slice(b,K),Qe=A.slice(h,C),He=0;He2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,x(h)&&(h=b?0:P.length-1),h<0&&(h=P.length+h),h>=P.length){if(b)return-1;h=P.length-1}else if(h<0)if(b)h=0;else return-1;if(typeof A=="string"&&(A=v.from(A,C)),v.isBuffer(A))return A.length===0?-1:ue(P,A,h,C,b);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(P,A,h):Uint8Array.prototype.lastIndexOf.call(P,A,h):ue(P,[A],h,C,b);throw new TypeError("val must be string, number or Buffer")}function ue(P,A,h,C,b){var K=1,ee=P.length,Ee=A.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(P.length<2||A.length<2)return-1;K=2,ee/=2,Ee/=2,h/=2}function le($,et){return K===1?$[et]:$.readUInt16BE(et*K)}var ce;if(b){var Qe=-1;for(ce=h;ceee&&(h=ee-Ee),ce=h;ce>=0;ce--){for(var He=!0,oe=0;oeb&&(C=b)):C=b;var K=A.length;C>K/2&&(C=K/2);for(var ee=0;ee>>0,isFinite(C)?(C=C>>>0,b===void 0&&(b="utf8")):(b=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-h;if((C===void 0||C>K)&&(C=K),A.length>0&&(C<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var ee=!1;;)switch(b){case"hex":return Fe(this,A,h,C);case"utf8":case"utf-8":return me(this,A,h,C);case"ascii":case"latin1":case"binary":return ve(this,A,h,C);case"base64":return pe(this,A,h,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,A,h,C);default:if(ee)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),ee=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ye(P,A,h){return A===0&&h===P.length?Se.fromByteArray(P):Se.fromByteArray(P.slice(A,h))}function p(P,A,h){h=Math.min(P.length,h);for(var C=[],b=A;b239?4:K>223?3:K>191?2:1;if(b+Ee<=h){var le,ce,Qe,He;switch(Ee){case 1:K<128&&(ee=K);break;case 2:le=P[b+1],(le&192)===128&&(He=(K&31)<<6|le&63,He>127&&(ee=He));break;case 3:le=P[b+1],ce=P[b+2],(le&192)===128&&(ce&192)===128&&(He=(K&15)<<12|(le&63)<<6|ce&63,He>2047&&(He<55296||He>57343)&&(ee=He));break;case 4:le=P[b+1],ce=P[b+2],Qe=P[b+3],(le&192)===128&&(ce&192)===128&&(Qe&192)===128&&(He=(K&15)<<18|(le&63)<<12|(ce&63)<<6|Qe&63,He>65535&&He<1114112&&(ee=He))}}ee===null?(ee=65533,Ee=1):ee>65535&&(ee-=65536,C.push(ee>>>10&1023|55296),ee=56320|ee&1023),C.push(ee),b+=Ee}return Xe(C)}var j=4096;function Xe(P){var A=P.length;if(A<=j)return String.fromCharCode.apply(String,P);for(var h="",C=0;CC)&&(h=C);for(var b="",K=A;KC&&(A=C),h<0?(h+=C,h<0&&(h=0)):h>C&&(h=C),hh)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(A,h,C){A=A>>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=this[A],K=1,ee=0;++ee>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=this[A+--h],K=1;h>0&&(K*=256);)b+=this[A+--h]*K;return b},v.prototype.readUint8=v.prototype.readUInt8=function(A,h){return A=A>>>0,h||ae(A,1,this.length),this[A]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(A,h){return A=A>>>0,h||ae(A,2,this.length),this[A]|this[A+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(A,h){return A=A>>>0,h||ae(A,2,this.length),this[A]<<8|this[A+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},v.prototype.readIntLE=function(A,h,C){A=A>>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=this[A],K=1,ee=0;++ee=K&&(b-=Math.pow(2,8*h)),b},v.prototype.readIntBE=function(A,h,C){A=A>>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=h,K=1,ee=this[A+--b];b>0&&(K*=256);)ee+=this[A+--b]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*h)),ee},v.prototype.readInt8=function(A,h){return A=A>>>0,h||ae(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},v.prototype.readInt16LE=function(A,h){A=A>>>0,h||ae(A,2,this.length);var C=this[A]|this[A+1]<<8;return C&32768?C|4294901760:C},v.prototype.readInt16BE=function(A,h){A=A>>>0,h||ae(A,2,this.length);var C=this[A+1]|this[A]<<8;return C&32768?C|4294901760:C},v.prototype.readInt32LE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},v.prototype.readInt32BE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},v.prototype.readFloatLE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),M.read(this,A,!0,23,4)},v.prototype.readFloatBE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),M.read(this,A,!1,23,4)},v.prototype.readDoubleLE=function(A,h){return A=A>>>0,h||ae(A,8,this.length),M.read(this,A,!0,52,8)},v.prototype.readDoubleBE=function(A,h){return A=A>>>0,h||ae(A,8,this.length),M.read(this,A,!1,52,8)};function Ae(P,A,h,C,b,K){if(!v.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>b||AP.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(A,h,C,b){if(A=+A,h=h>>>0,C=C>>>0,!b){var K=Math.pow(2,8*C)-1;Ae(this,A,h,C,K,0)}var ee=1,Ee=0;for(this[h]=A&255;++Ee>>0,C=C>>>0,!b){var K=Math.pow(2,8*C)-1;Ae(this,A,h,C,K,0)}var ee=C-1,Ee=1;for(this[h+ee]=A&255;--ee>=0&&(Ee*=256);)this[h+ee]=A/Ee&255;return h+C},v.prototype.writeUint8=v.prototype.writeUInt8=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,1,255,0),this[h]=A&255,h+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,2,65535,0),this[h]=A&255,this[h+1]=A>>>8,h+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,2,65535,0),this[h]=A>>>8,this[h+1]=A&255,h+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,4,4294967295,0),this[h+3]=A>>>24,this[h+2]=A>>>16,this[h+1]=A>>>8,this[h]=A&255,h+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,4,4294967295,0),this[h]=A>>>24,this[h+1]=A>>>16,this[h+2]=A>>>8,this[h+3]=A&255,h+4},v.prototype.writeIntLE=function(A,h,C,b){if(A=+A,h=h>>>0,!b){var K=Math.pow(2,8*C-1);Ae(this,A,h,C,K-1,-K)}var ee=0,Ee=1,le=0;for(this[h]=A&255;++ee>0)-le&255;return h+C},v.prototype.writeIntBE=function(A,h,C,b){if(A=+A,h=h>>>0,!b){var K=Math.pow(2,8*C-1);Ae(this,A,h,C,K-1,-K)}var ee=C-1,Ee=1,le=0;for(this[h+ee]=A&255;--ee>=0&&(Ee*=256);)A<0&&le===0&&this[h+ee+1]!==0&&(le=1),this[h+ee]=(A/Ee>>0)-le&255;return h+C},v.prototype.writeInt8=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,1,127,-128),A<0&&(A=255+A+1),this[h]=A&255,h+1},v.prototype.writeInt16LE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,2,32767,-32768),this[h]=A&255,this[h+1]=A>>>8,h+2},v.prototype.writeInt16BE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,2,32767,-32768),this[h]=A>>>8,this[h+1]=A&255,h+2},v.prototype.writeInt32LE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,4,2147483647,-2147483648),this[h]=A&255,this[h+1]=A>>>8,this[h+2]=A>>>16,this[h+3]=A>>>24,h+4},v.prototype.writeInt32BE=function(A,h,C){return A=+A,h=h>>>0,C||Ae(this,A,h,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[h]=A>>>24,this[h+1]=A>>>16,this[h+2]=A>>>8,this[h+3]=A&255,h+4};function nt(P,A,h,C,b,K){if(h+C>P.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function vt(P,A,h,C,b){return A=+A,h=h>>>0,b||nt(P,A,h,4,34028234663852886e22,-34028234663852886e22),M.write(P,A,h,C,23,4),h+4}v.prototype.writeFloatLE=function(A,h,C){return vt(this,A,h,!0,C)},v.prototype.writeFloatBE=function(A,h,C){return vt(this,A,h,!1,C)};function Ve(P,A,h,C,b){return A=+A,h=h>>>0,b||nt(P,A,h,8,17976931348623157e292,-17976931348623157e292),M.write(P,A,h,C,52,8),h+8}v.prototype.writeDoubleLE=function(A,h,C){return Ve(this,A,h,!0,C)},v.prototype.writeDoubleBE=function(A,h,C){return Ve(this,A,h,!1,C)},v.prototype.copy=function(A,h,C,b){if(!v.isBuffer(A))throw new TypeError("argument should be a Buffer");if(C||(C=0),!b&&b!==0&&(b=this.length),h>=A.length&&(h=A.length),h||(h=0),b>0&&b=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),A.length-h>>0,C=C===void 0?this.length:C>>>0,A||(A=0);var ee;if(typeof A=="number")for(ee=h;ee55295&&h<57344){if(!b){if(h>56319){(A-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===C){(A-=3)>-1&&K.push(239,191,189);continue}b=h;continue}if(h<56320){(A-=3)>-1&&K.push(239,191,189),b=h;continue}h=(b-55296<<10|h-56320)+65536}else b&&(A-=3)>-1&&K.push(239,191,189);if(b=null,h<128){if((A-=1)<0)break;K.push(h)}else if(h<2048){if((A-=2)<0)break;K.push(h>>6|192,h&63|128)}else if(h<65536){if((A-=3)<0)break;K.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((A-=4)<0)break;K.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return K}function je(P){for(var A=[],h=0;h>8,b=h%256,K.push(b),K.push(C);return K}function ze(P){return Se.toByteArray(yt(P))}function Pt(P,A,h,C){for(var b=0;b=A.length||b>=P.length);++b)A[b+h]=P[b];return b}function ct(P,A){return P instanceof A||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===A.name}function x(P){return P!==P}var ke=function(){for(var P="0123456789abcdef",A=new Array(256),h=0;h<16;++h)for(var C=h*16,b=0;b<16;++b)A[C+b]=P[h]+P[b];return A}()},64270:function(nr){(function(Zt,g){nr.exports=g()})(this,function(){"use strict";var Zt=function(c,a){return Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var R in d)Object.prototype.hasOwnProperty.call(d,R)&&(f[R]=d[R])},Zt(c,a)};function g(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Zt(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}var s=function(){return s=Object.assign||function(a){for(var f,d=1,R=arguments.length;d0&&ne[ne.length-1])&&(Kt[0]===6||Kt[0]===2)){f=0;continue}if(Kt[0]===3&&(!ne||Kt[1]>ne[0]&&Kt[1]=55296&&R<=56319&&f>10)+55296,Ue%1024+56320)),(R+1===f||d.length>16384)&&(ne+=String.fromCharCode.apply(String,d),d.length=0)}return ne},i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),B=0;B>4,$t[R++]=(Ue&15)<<4|tt>>2,$t[R++]=(tt&3)<<6|qe&63;return Kt},U=function(c){for(var a=c.length,f=[],d=0;d>W,ue=1<>W,ve=de+me,pe=ve,J=32,ye=pe+J,p=65536>>re,j=1<=0){if(a<55296||a>56319&&a<=65535)return f=this.index[a>>W],f=(f<>W)],f=(f<>re),f=this.index[f],f+=a>>W&Xe,f=this.index[f],f=(f<Ve?(R.push(!0),tt-=Ve):R.push(!1),["normal","auto","loose"].indexOf(a)!==-1&&[8208,8211,12316,12448].indexOf(ne)!==-1)return d.push(Ue),f.push(b);if(tt===je||tt===ke){if(Ue===0)return d.push(Ue),f.push(Ge);var qe=f[Ue-1];return er.indexOf(qe)===-1?(d.push(d[Ue-1]),f.push(qe)):(d.push(Ue),f.push(Ge))}if(d.push(Ue),tt===Ut)return f.push(a==="strict"?ce:se);if(tt===en||tt===at)return f.push(Ge);if(tt===En)return ne>=131072&&ne<=196605||ne>=196608&&ne<=262141?f.push(se):f.push(Ge);f.push(tt)}),[d,f,R]},Jn=function(c,a,f,d){var R=d[f];if(Array.isArray(c)?c.indexOf(R)!==-1:c===R)for(var ne=f;ne<=d.length;){ne++;var Ue=d[ne];if(Ue===a)return!0;if(Ue!==x)break}if(R===x)for(var ne=f;ne>0;){ne--;var tt=d[ne];if(Array.isArray(c)?c.indexOf(tt)!==-1:c===tt)for(var qe=f;qe<=d.length;){qe++;var Ue=d[qe];if(Ue===a)return!0;if(Ue!==x)break}if(tt!==x)break}return!1},zr=function(c,a){for(var f=c;f>=0;){var d=a[f];if(d===x)f--;else return d}return 0},pr=function(c,a,f,d,R){if(f[d]===0)return tn;var ne=d-1;if(Array.isArray(R)&&R[ne]===!0)return tn;var Ue=ne-1,tt=ne+1,qe=a[ne],Kt=Ue>=0?a[Ue]:0,$t=a[tt];if(qe===yt&&$t===zt)return tn;if(In.indexOf(qe)!==-1)return ln;if(In.indexOf($t)!==-1||Kn.indexOf($t)!==-1)return tn;if(zr(ne,a)===Pt)return Yt;if(cn.get(c[ne])===ke||(qe===St||qe===Ie)&&cn.get(c[tt])===ke||qe===ze||$t===ze||qe===ct||[x,A,C].indexOf(qe)===-1&&$t===ct||[K,ee,Ee,oe,Et].indexOf($t)!==-1||zr(ne,a)===Qe||Jn(He,Qe,ne,a)||Jn([K,ee],ce,ne,a)||Jn(P,P,ne,a))return tn;if(qe===x)return Yt;if(qe===He||$t===He)return tn;if($t===b||qe===b)return Yt;if([A,C,ce].indexOf($t)!==-1||qe===h||Kt===Qt&&Lr.indexOf(qe)!==-1||qe===Et&&$t===Qt||$t===le||yn.indexOf($t)!==-1&&qe===$||yn.indexOf(qe)!==-1&&$t===$||qe===Te&&[se,St,Ie].indexOf($t)!==-1||[se,St,Ie].indexOf(qe)!==-1&&$t===et||yn.indexOf(qe)!==-1&&qn.indexOf($t)!==-1||qn.indexOf(qe)!==-1&&yn.indexOf($t)!==-1||[Te,et].indexOf(qe)!==-1&&($t===$||[Qe,C].indexOf($t)!==-1&&a[tt+1]===$)||[Qe,C].indexOf(qe)!==-1&&$t===$||qe===$&&[$,Et,oe].indexOf($t)!==-1)return tn;if([$,Et,oe,K,ee].indexOf($t)!==-1)for(var an=ne;an>=0;){var Rn=a[an];if(Rn===$)return tn;if([Et,oe].indexOf(Rn)!==-1)an--;else break}if([Te,et].indexOf($t)!==-1)for(var an=[K,ee].indexOf(qe)!==-1?Ue:ne;an>=0;){var Rn=a[an];if(Rn===$)return tn;if([Et,oe].indexOf(Rn)!==-1)an--;else break}if(Oe===qe&&[Oe,We,$e,ut].indexOf($t)!==-1||[We,$e].indexOf(qe)!==-1&&[We,mt].indexOf($t)!==-1||[mt,ut].indexOf(qe)!==-1&&$t===mt||xr.indexOf(qe)!==-1&&[le,et].indexOf($t)!==-1||xr.indexOf($t)!==-1&&qe===Te||yn.indexOf(qe)!==-1&&yn.indexOf($t)!==-1||qe===oe&&yn.indexOf($t)!==-1||yn.concat($).indexOf(qe)!==-1&&$t===Qe&&xn.indexOf(c[tt])===-1||yn.concat($).indexOf($t)!==-1&&qe===ee)return tn;if(qe===Rt&&$t===Rt){for(var eo=f[ne],cr=1;eo>0&&(eo--,a[eo]===Rt);)cr++;if(cr%2!==0)return tn}return qe===St&&$t===Ie?tn:Yt},ao=function(c,a){a||(a={lineBreak:"normal",wordBreak:"normal"});var f=fr(c,a.lineBreak),d=f[0],R=f[1],ne=f[2];(a.wordBreak==="break-all"||a.wordBreak==="break-word")&&(R=R.map(function(tt){return[$,Ge,en].indexOf(tt)!==-1?se:tt}));var Ue=a.wordBreak==="keep-all"?ne.map(function(tt,qe){return tt&&c[qe]>=19968&&c[qe]<=40959}):void 0;return[d,R,Ue]},mo=function(){function c(a,f,d,R){this.codePoints=a,this.required=f===ln,this.start=d,this.end=R}return c.prototype.slice=function(){return L.apply(void 0,this.codePoints.slice(this.start,this.end))},c}(),Dn=function(c,a){var f=v(c),d=ao(f,a),R=d[0],ne=d[1],Ue=d[2],tt=f.length,qe=0,Kt=0;return{next:function(){if(Kt>=tt)return{done:!0,value:null};for(var $t=tn;Kt=fa&&c<=57},qo=function(c){return c>=55296&&c<=57343},fi=function(c){return Ao(c)||c>=Xn&&c<=_n||c>=vA&&c<=sa},_a=function(c){return c>=vA&&c<=Qn},lA=function(c){return c>=Xn&&c<=jr},ds=function(c){return _a(c)||lA(c)},Ba=function(c){return c>=_r},Cs=function(c){return c===dt||c===lt||c===Bt},FA=function(c){return ds(c)||Ba(c)||c===Sr},uA=function(c){return FA(c)||Ao(c)||c===hr},ta=function(c){return c>=di&&c<=Xo||c===aa||c>=Ga&&c<=wa||c===Aa},ha=function(c,a){return c!==Re?!1:a!==dt},pi=function(c,a,f){return c===hr?FA(a)||ha(a,f):FA(c)?!0:!!(c===Re&&ha(c,a))},$a=function(c,a,f){return c===_o||c===hr?Ao(a)?!0:a===ri&&Ao(f):Ao(c===ri?a:c)},PA=function(c){var a=0,f=1;(c[a]===_o||c[a]===hr)&&(c[a]===hr&&(f=-1),a++);for(var d=[];Ao(c[a]);)d.push(c[a++]);var R=d.length?parseInt(L.apply(void 0,d),10):0;c[a]===ri&&a++;for(var ne=[];Ao(c[a]);)ne.push(c[a++]);var Ue=ne.length,tt=Ue?parseInt(L.apply(void 0,ne),10):0;(c[a]===Gn||c[a]===sA)&&a++;var qe=1;(c[a]===_o||c[a]===hr)&&(c[a]===hr&&(qe=-1),a++);for(var Kt=[];Ao(c[a]);)Kt.push(c[a++]);var $t=Kt.length?parseInt(L.apply(void 0,Kt),10):0;return f*(R+tt*Math.pow(10,-Ue))*Math.pow(10,qe*$t)},cA={type:2},yA={type:3},TA={type:4},Co={type:13},Zo={type:8},pa={type:21},ja={type:9},Es={type:10},IA={type:11},as={type:12},Qu={type:14},El={type:23},Ou={type:1},ul={type:25},ru={type:24},Ml={type:26},eA={type:27},ou={type:28},cl={type:29},bo={type:31},Oo={type:32},co=function(){function c(){this._value=[]}return c.prototype.write=function(a){this._value=this._value.concat(v(a))},c.prototype.read=function(){for(var a=[],f=this.consumeToken();f!==Oo;)a.push(f),f=this.consumeToken();return a},c.prototype.consumeToken=function(){var a=this.consumeCodePoint();switch(a){case qt:return this.consumeStringToken(qt);case zn:var f=this.peekCodePoint(0),d=this.peekCodePoint(1),R=this.peekCodePoint(2);if(uA(f)||ha(d,R)){var ne=pi(f,d,R)?br:Cn,Ue=this.consumeName();return{type:5,value:Ue,flags:ne}}break;case Yn:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Co;break;case Mn:return this.consumeStringToken(Mn);case sr:return cA;case Wn:return yA;case oi:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Qu;break;case _o:if($a(a,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(a),this.consumeNumericToken();break;case ea:return TA;case hr:var tt=a,qe=this.peekCodePoint(0),Kt=this.peekCodePoint(1);if($a(tt,qe,Kt))return this.reconsumeCodePoint(a),this.consumeNumericToken();if(pi(tt,qe,Kt))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();if(qe===hr&&Kt===$i)return this.consumeCodePoint(),this.consumeCodePoint(),ru;break;case ri:if($a(a,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(a),this.consumeNumericToken();break;case Sn:if(this.peekCodePoint(0)===oi)for(this.consumeCodePoint();;){var $t=this.consumeCodePoint();if($t===oi&&($t=this.consumeCodePoint(),$t===Sn))return this.consumeToken();if($t===Yi)return this.consumeToken()}break;case ya:return Ml;case ki:return eA;case Ko:if(this.peekCodePoint(0)===Fr&&this.peekCodePoint(1)===hr&&this.peekCodePoint(2)===hr)return this.consumeCodePoint(),this.consumeCodePoint(),ul;break;case wi:var an=this.peekCodePoint(0),Rn=this.peekCodePoint(1),eo=this.peekCodePoint(2);if(pi(an,Rn,eo)){var Ue=this.consumeName();return{type:7,value:Ue}}break;case Ro:return ou;case Re:if(ha(a,this.peekCodePoint(0)))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();break;case Fi:return cl;case Lo:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Zo;break;case _i:return IA;case zo:return as;case Vr:case gr:var cr=this.peekCodePoint(0),Qr=this.peekCodePoint(1);return cr===_o&&(fi(Qr)||Qr===Xi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(a),this.consumeIdentLikeToken();case Ii:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),ja;if(this.peekCodePoint(0)===Ii)return this.consumeCodePoint(),pa;break;case Oi:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Es;break;case Yi:return Oo}return Cs(a)?(this.consumeWhiteSpace(),bo):Ao(a)?(this.reconsumeCodePoint(a),this.consumeNumericToken()):FA(a)?(this.reconsumeCodePoint(a),this.consumeIdentLikeToken()):{type:6,value:L(a)}},c.prototype.consumeCodePoint=function(){var a=this._value.shift();return typeof a=="undefined"?-1:a},c.prototype.reconsumeCodePoint=function(a){this._value.unshift(a)},c.prototype.peekCodePoint=function(a){return a>=this._value.length?-1:this._value[a]},c.prototype.consumeUnicodeRangeToken=function(){for(var a=[],f=this.consumeCodePoint();fi(f)&&a.length<6;)a.push(f),f=this.consumeCodePoint();for(var d=!1;f===Xi&&a.length<6;)a.push(f),f=this.consumeCodePoint(),d=!0;if(d){var R=parseInt(L.apply(void 0,a.map(function(qe){return qe===Xi?fa:qe})),16),ne=parseInt(L.apply(void 0,a.map(function(qe){return qe===Xi?_n:qe})),16);return{type:30,start:R,end:ne}}var Ue=parseInt(L.apply(void 0,a),16);if(this.peekCodePoint(0)===hr&&fi(this.peekCodePoint(1))){this.consumeCodePoint(),f=this.consumeCodePoint();for(var tt=[];fi(f)&&tt.length<6;)tt.push(f),f=this.consumeCodePoint();var ne=parseInt(L.apply(void 0,tt),16);return{type:30,start:Ue,end:ne}}else return{type:30,start:Ue,end:Ue}},c.prototype.consumeIdentLikeToken=function(){var a=this.consumeName();return a.toLowerCase()==="url"&&this.peekCodePoint(0)===sr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sr?(this.consumeCodePoint(),{type:19,value:a}):{type:20,value:a}},c.prototype.consumeUrlToken=function(){var a=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yi)return{type:22,value:""};var f=this.peekCodePoint(0);if(f===Mn||f===qt){var d=this.consumeStringToken(this.consumeCodePoint());return d.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yi||this.peekCodePoint(0)===Wn)?(this.consumeCodePoint(),{type:22,value:d.value}):(this.consumeBadUrlRemnants(),El)}for(;;){var R=this.consumeCodePoint();if(R===Yi||R===Wn)return{type:22,value:L.apply(void 0,a)};if(Cs(R))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Yi||this.peekCodePoint(0)===Wn?(this.consumeCodePoint(),{type:22,value:L.apply(void 0,a)}):(this.consumeBadUrlRemnants(),El);if(R===qt||R===Mn||R===sr||ta(R))return this.consumeBadUrlRemnants(),El;if(R===Re)if(ha(R,this.peekCodePoint(0)))a.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),El;else a.push(R)}},c.prototype.consumeWhiteSpace=function(){for(;Cs(this.peekCodePoint(0));)this.consumeCodePoint()},c.prototype.consumeBadUrlRemnants=function(){for(;;){var a=this.consumeCodePoint();if(a===Wn||a===Yi)return;ha(a,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},c.prototype.consumeStringSlice=function(a){for(var f=5e4,d="";a>0;){var R=Math.min(f,a);d+=L.apply(void 0,this._value.splice(0,R)),a-=R}return this._value.shift(),d},c.prototype.consumeStringToken=function(a){var f="",d=0;do{var R=this._value[d];if(R===Yi||R===void 0||R===a)return f+=this.consumeStringSlice(d),{type:0,value:f};if(R===dt)return this._value.splice(0,d),Ou;if(R===Re){var ne=this._value[d+1];ne!==Yi&&ne!==void 0&&(ne===dt?(f+=this.consumeStringSlice(d),d=-1,this._value.shift()):ha(R,ne)&&(f+=this.consumeStringSlice(d),f+=L(this.consumeEscapedCodePoint()),d=-1))}d++}while(!0)},c.prototype.consumeNumber=function(){var a=[],f=Or,d=this.peekCodePoint(0);for((d===_o||d===hr)&&a.push(this.consumeCodePoint());Ao(this.peekCodePoint(0));)a.push(this.consumeCodePoint());d=this.peekCodePoint(0);var R=this.peekCodePoint(1);if(d===ri&&Ao(R))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),f=wt;Ao(this.peekCodePoint(0));)a.push(this.consumeCodePoint());d=this.peekCodePoint(0),R=this.peekCodePoint(1);var ne=this.peekCodePoint(2);if((d===Gn||d===sA)&&((R===_o||R===hr)&&Ao(ne)||Ao(R)))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),f=wt;Ao(this.peekCodePoint(0));)a.push(this.consumeCodePoint());return[PA(a),f]},c.prototype.consumeNumericToken=function(){var a=this.consumeNumber(),f=a[0],d=a[1],R=this.peekCodePoint(0),ne=this.peekCodePoint(1),Ue=this.peekCodePoint(2);if(pi(R,ne,Ue)){var tt=this.consumeName();return{type:15,number:f,flags:d,unit:tt}}return R===hn?(this.consumeCodePoint(),{type:16,number:f,flags:d}):{type:17,number:f,flags:d}},c.prototype.consumeEscapedCodePoint=function(){var a=this.consumeCodePoint();if(fi(a)){for(var f=L(a);fi(this.peekCodePoint(0))&&f.length<6;)f+=L(this.consumeCodePoint());Cs(this.peekCodePoint(0))&&this.consumeCodePoint();var d=parseInt(f,16);return d===0||qo(d)||d>1114111?lo:d}return a===Yi?lo:a},c.prototype.consumeName=function(){for(var a="";;){var f=this.consumeCodePoint();if(uA(f))a+=L(f);else if(ha(f,this.peekCodePoint(0)))a+=L(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(f),a}},c}(),vo=function(){function c(a){this._tokens=a}return c.create=function(a){var f=new co;return f.write(a),new c(f.read())},c.parseValue=function(a){return c.create(a).parseComponentValue()},c.parseValues=function(a){return c.create(a).parseComponentValues()},c.prototype.parseComponentValue=function(){for(var a=this.consumeToken();a.type===31;)a=this.consumeToken();if(a.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(a);var f=this.consumeComponentValue();do a=this.consumeToken();while(a.type===31);if(a.type===32)return f;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},c.prototype.parseComponentValues=function(){for(var a=[];;){var f=this.consumeComponentValue();if(f.type===32)return a;a.push(f),a.push()}},c.prototype.consumeComponentValue=function(){var a=this.consumeToken();switch(a.type){case 11:case 28:case 2:return this.consumeSimpleBlock(a.type);case 19:return this.consumeFunction(a)}return a},c.prototype.consumeSimpleBlock=function(a){for(var f={type:a,values:[]},d=this.consumeToken();;){if(d.type===32||Du(d,a))return f;this.reconsumeToken(d),f.values.push(this.consumeComponentValue()),d=this.consumeToken()}},c.prototype.consumeFunction=function(a){for(var f={name:a.value,values:[],type:18};;){var d=this.consumeToken();if(d.type===32||d.type===3)return f;this.reconsumeToken(d),f.values.push(this.consumeComponentValue())}},c.prototype.consumeToken=function(){var a=this._tokens.shift();return typeof a=="undefined"?Oo:a},c.prototype.reconsumeToken=function(a){this._tokens.unshift(a)},c}(),hi=function(c){return c.type===15},na=function(c){return c.type===17},Bi=function(c){return c.type===20},Ns=function(c){return c.type===0},zs=function(c,a){return Bi(c)&&c.value===a},dA=function(c){return c.type!==31},fs=function(c){return c.type!==31&&c.type!==4},RA=function(c){var a=[],f=[];return c.forEach(function(d){if(d.type===4){if(f.length===0)throw new Error("Error parsing function args, zero tokens for arg");a.push(f),f=[];return}d.type!==31&&f.push(d)}),f.length&&a.push(f),a},Du=function(c,a){return a===11&&c.type===12||a===28&&c.type===29?!0:a===2&&c.type===3},tl=function(c){return c.type===17||c.type===15},Oa=function(c){return c.type===16||tl(c)},Qs=function(c){return c.length>1?[c[0],c[1]]:[c[0]]},tA={type:17,number:0,flags:Or},sc={type:16,number:50,flags:Or},dl={type:16,number:100,flags:Or},nl=function(c,a,f){var d=c[0],R=c[1];return[ra(d,a),ra(typeof R!="undefined"?R:d,f)]},ra=function(c,a){if(c.type===16)return c.number/100*a;if(hi(c))switch(c.unit){case"rem":case"em":return 16*c.number;case"px":default:return c.number}return c.number},kc="deg",Id="grad",Kc="rad",nA="turn",Os={name:"angle",parse:function(c,a){if(a.type===15)switch(a.unit){case kc:return Math.PI*a.number/180;case Id:return Math.PI/200*a.number;case Kc:return a.number;case nA:return Math.PI*2*a.number}throw new Error("Unsupported angle type")}},xl=function(c){return c.type===15&&(c.unit===kc||c.unit===Id||c.unit===Kc||c.unit===nA)},lc=function(c){var a=c.filter(Bi).map(function(f){return f.value}).join(" ");switch(a){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tA,tA];case"to top":case"bottom":return rA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tA,dl];case"to right":case"left":return rA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[dl,dl];case"to bottom":case"top":return rA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[dl,tA];case"to left":case"right":return rA(270)}return 0},rA=function(c){return Math.PI*c/180},fl={name:"color",parse:function(c,a){if(a.type===18){var f=Io[a.name];if(typeof f=="undefined")throw new Error('Attempting to parse an unsupported color function "'+a.name+'"');return f(c,a.values)}if(a.type===5){if(a.value.length===3){var d=a.value.substring(0,1),R=a.value.substring(1,2),ne=a.value.substring(2,3);return LA(parseInt(d+d,16),parseInt(R+R,16),parseInt(ne+ne,16),1)}if(a.value.length===4){var d=a.value.substring(0,1),R=a.value.substring(1,2),ne=a.value.substring(2,3),Ue=a.value.substring(3,4);return LA(parseInt(d+d,16),parseInt(R+R,16),parseInt(ne+ne,16),parseInt(Ue+Ue,16)/255)}if(a.value.length===6){var d=a.value.substring(0,2),R=a.value.substring(2,4),ne=a.value.substring(4,6);return LA(parseInt(d,16),parseInt(R,16),parseInt(ne,16),1)}if(a.value.length===8){var d=a.value.substring(0,2),R=a.value.substring(2,4),ne=a.value.substring(4,6),Ue=a.value.substring(6,8);return LA(parseInt(d,16),parseInt(R,16),parseInt(ne,16),parseInt(Ue,16)/255)}}if(a.type===20){var tt=Ki[a.value.toUpperCase()];if(typeof tt!="undefined")return tt}return Ki.TRANSPARENT}},UA=function(c){return(255&c)===0},fA=function(c){var a=255&c,f=255&c>>8,d=255&c>>16,R=255&c>>24;return a<255?"rgba("+R+","+d+","+f+","+a/255+")":"rgb("+R+","+d+","+f+")"},LA=function(c,a,f,d){return(c<<24|a<<16|f<<8|Math.round(d*255)<<0)>>>0},Ud=function(c,a){if(c.type===17)return c.number;if(c.type===16){var f=a===3?1:255;return a===3?c.number/100*f:Math.round(c.number/100*f)}return 0},zc=function(c,a){var f=a.filter(fs);if(f.length===3){var d=f.map(Ud),R=d[0],ne=d[1],Ue=d[2];return LA(R,ne,Ue,1)}if(f.length===4){var tt=f.map(Ud),R=tt[0],ne=tt[1],Ue=tt[2],qe=tt[3];return LA(R,ne,Ue,qe)}return 0};function NA(c,a,f){return f<0&&(f+=1),f>=1&&(f-=1),f<1/6?(a-c)*f*6+c:f<1/2?a:f<2/3?(a-c)*6*(2/3-f)+c:c}var Hl=function(c,a){var f=a.filter(fs),d=f[0],R=f[1],ne=f[2],Ue=f[3],tt=(d.type===17?rA(d.number):Os.parse(c,d))/(Math.PI*2),qe=Oa(R)?R.number/100:0,Kt=Oa(ne)?ne.number/100:0,$t=typeof Ue!="undefined"&&Oa(Ue)?ra(Ue,1):1;if(qe===0)return LA(Kt*255,Kt*255,Kt*255,1);var an=Kt<=.5?Kt*(qe+1):Kt+qe-Kt*qe,Rn=Kt*2-an,eo=NA(Rn,an,tt+1/3),cr=NA(Rn,an,tt),Qr=NA(Rn,an,tt-1/3);return LA(eo*255,cr*255,Qr*255,$t)},Io={hsl:Hl,hsla:Hl,rgb:zc,rgba:zc},Do=function(c,a){return fl.parse(c,vo.create(a).parseComponentValue())},Ki={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hs={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(c,a){return a.map(function(f){if(Bi(f))switch(f.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xa={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wA=function(c,a){var f=fl.parse(c,a[0]),d=a[1];return d&&Oa(d)?{color:f,stop:d}:{color:f,stop:null}},Zs=function(c,a){var f=c[0],d=c[c.length-1];f.stop===null&&(f.stop=tA),d.stop===null&&(d.stop=dl);for(var R=[],ne=0,Ue=0;Uene?R.push(qe):R.push(ne),ne=qe}else R.push(null)}for(var Kt=null,Ue=0;UeUe.optimumDistance)?{optimumCorner:tt,optimumDistance:$t}:Ue},{optimumDistance:R?1/0:-1/0,optimumCorner:null}).optimumCorner},Pu=function(c,a,f,d,R){var ne=0,Ue=0;switch(c.size){case 0:c.shape===0?ne=Ue=Math.min(Math.abs(a),Math.abs(a-d),Math.abs(f),Math.abs(f-R)):c.shape===1&&(ne=Math.min(Math.abs(a),Math.abs(a-d)),Ue=Math.min(Math.abs(f),Math.abs(f-R)));break;case 2:if(c.shape===0)ne=Ue=Math.min(_A(a,f),_A(a,f-R),_A(a-d,f),_A(a-d,f-R));else if(c.shape===1){var tt=Math.min(Math.abs(f),Math.abs(f-R))/Math.min(Math.abs(a),Math.abs(a-d)),qe=pl(d,R,a,f,!0),Kt=qe[0],$t=qe[1];ne=_A(Kt-a,($t-f)/tt),Ue=tt*ne}break;case 1:c.shape===0?ne=Ue=Math.max(Math.abs(a),Math.abs(a-d),Math.abs(f),Math.abs(f-R)):c.shape===1&&(ne=Math.max(Math.abs(a),Math.abs(a-d)),Ue=Math.max(Math.abs(f),Math.abs(f-R)));break;case 3:if(c.shape===0)ne=Ue=Math.max(_A(a,f),_A(a,f-R),_A(a-d,f),_A(a-d,f-R));else if(c.shape===1){var tt=Math.max(Math.abs(f),Math.abs(f-R))/Math.max(Math.abs(a),Math.abs(a-d)),an=pl(d,R,a,f,!1),Kt=an[0],$t=an[1];ne=_A(Kt-a,($t-f)/tt),Ue=tt*ne}break}return Array.isArray(c.size)&&(ne=ra(c.size[0],d),Ue=c.size.length===2?ra(c.size[1],R):ne),[ne,Ue]},Sl=function(c,a){var f=rA(180),d=[];return RA(a).forEach(function(R,ne){if(ne===0){var Ue=R[0];if(Ue.type===20&&Ue.value==="to"){f=lc(R);return}else if(xl(Ue)){f=Os.parse(c,Ue);return}}var tt=wA(c,R);d.push(tt)}),{angle:f,stops:d,type:1}},Zc=function(c,a){var f=rA(180),d=[];return RA(a).forEach(function(R,ne){if(ne===0){var Ue=R[0];if(Ue.type===20&&["top","left","right","bottom"].indexOf(Ue.value)!==-1){f=lc(R);return}else if(xl(Ue)){f=(Os.parse(c,Ue)+rA(270))%rA(360);return}}var tt=wA(c,R);d.push(tt)}),{angle:f,stops:d,type:1}},wf=function(c,a){var f=rA(180),d=[],R=1,ne=0,Ue=3,tt=[];return RA(a).forEach(function(qe,Kt){var $t=qe[0];if(Kt===0){if(Bi($t)&&$t.value==="linear"){R=1;return}else if(Bi($t)&&$t.value==="radial"){R=2;return}}if($t.type===18){if($t.name==="from"){var an=fl.parse(c,$t.values[0]);d.push({stop:tA,color:an})}else if($t.name==="to"){var an=fl.parse(c,$t.values[0]);d.push({stop:dl,color:an})}else if($t.name==="color-stop"){var Rn=$t.values.filter(fs);if(Rn.length===2){var an=fl.parse(c,Rn[1]),eo=Rn[0];na(eo)&&d.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:an})}}}}),R===1?{angle:(f+rA(180))%rA(360),stops:d,type:R}:{size:Ue,shape:ne,stops:d,position:tt,type:R}},uc="closest-side",Ld="farthest-side",Vc="closest-corner",cc="farthest-corner",Bf="circle",Wc="ellipse",Nd="cover",Qd="contain",Di=function(c,a){var f=0,d=3,R=[],ne=[];return RA(a).forEach(function(Ue,tt){var qe=!0;if(tt===0){var Kt=!1;qe=Ue.reduce(function(an,Rn){if(Kt)if(Bi(Rn))switch(Rn.value){case"center":return ne.push(sc),an;case"top":case"left":return ne.push(tA),an;case"right":case"bottom":return ne.push(dl),an}else(Oa(Rn)||tl(Rn))&&ne.push(Rn);else if(Bi(Rn))switch(Rn.value){case Bf:return f=0,!1;case Wc:return f=1,!1;case"at":return Kt=!0,!1;case uc:return d=0,!1;case Nd:case Ld:return d=1,!1;case Qd:case Vc:return d=2,!1;case cc:return d=3,!1}else if(tl(Rn)||Oa(Rn))return Array.isArray(d)||(d=[]),d.push(Rn),!1;return an},qe)}if(qe){var $t=wA(c,Ue);R.push($t)}}),{size:d,shape:f,stops:R,position:ne,type:2}},Ds=function(c,a){var f=0,d=3,R=[],ne=[];return RA(a).forEach(function(Ue,tt){var qe=!0;if(tt===0?qe=Ue.reduce(function($t,an){if(Bi(an))switch(an.value){case"center":return ne.push(sc),!1;case"top":case"left":return ne.push(tA),!1;case"right":case"bottom":return ne.push(dl),!1}else if(Oa(an)||tl(an))return ne.push(an),!1;return $t},qe):tt===1&&(qe=Ue.reduce(function($t,an){if(Bi(an))switch(an.value){case Bf:return f=0,!1;case Wc:return f=1,!1;case Qd:case uc:return d=0,!1;case Ld:return d=1,!1;case Vc:return d=2,!1;case Nd:case cc:return d=3,!1}else if(tl(an)||Oa(an))return Array.isArray(d)||(d=[]),d.push(an),!1;return $t},qe)),qe){var Kt=wA(c,Ue);R.push(Kt)}}),{size:d,shape:f,stops:R,position:ne,type:2}},Fl=function(c){return c.type===1},rh=function(c){return c.type===2},Il={name:"image",parse:function(c,a){if(a.type===22){var f={url:a.value,type:0};return c.cache.addImage(a.value),f}if(a.type===18){var d=Gc[a.name];if(typeof d=="undefined")throw new Error('Attempting to parse an unsupported image function "'+a.name+'"');return d(c,a.values)}throw new Error("Unsupported image type "+a.type)}};function bf(c){return!(c.type===20&&c.value==="none")&&(c.type!==18||!!Gc[c.name])}var Gc={"linear-gradient":Sl,"-moz-linear-gradient":Zc,"-ms-linear-gradient":Zc,"-o-linear-gradient":Zc,"-webkit-linear-gradient":Zc,"radial-gradient":Di,"-moz-radial-gradient":Ds,"-ms-radial-gradient":Ds,"-o-radial-gradient":Ds,"-webkit-radial-gradient":Ds,"-webkit-gradient":wf},Cf={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(c,a){if(a.length===0)return[];var f=a[0];return f.type===20&&f.value==="none"?[]:a.filter(function(d){return fs(d)&&bf(d)}).map(function(d){return Il.parse(c,d)})}},Od={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(c,a){return a.map(function(f){if(Bi(f))switch(f.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ef={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(c,a){return RA(a).map(function(f){return f.filter(Oa)}).map(Qs)}},iu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(c,a){return RA(a).map(function(f){return f.filter(Bi).map(function(d){return d.value}).join(" ")}).map(ho)}},ho=function(c){switch(c){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Va;(function(c){c.AUTO="auto",c.CONTAIN="contain",c.COVER="cover"})(Va||(Va={}));var gl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(c,a){return RA(a).map(function(f){return f.filter(au)})}},au=function(c){return Bi(c)||Oa(c)},Ul=function(c){return{name:"border-"+c+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},h0=Ul("top"),Au=Ul("right"),oh=Ul("bottom"),kl=Ul("left"),Dd=function(c){return{name:"border-radius-"+c,initialValue:"0 0",prefix:!1,type:1,parse:function(a,f){return Qs(f.filter(Oa))}}},p0=Dd("top-left"),su=Dd("top-right"),Ps=Dd("bottom-right"),Vs=Dd("bottom-left"),zi=function(c){return{name:"border-"+c+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(a,f){switch(f){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},$c=zi("top"),Pd=zi("right"),ih=zi("bottom"),Tu=zi("left"),Xc=function(c){return{name:"border-"+c+"-width",initialValue:"0",type:0,prefix:!1,parse:function(a,f){return hi(f)?f.number:0}}},Td=Xc("top"),dc=Xc("right"),ah=Xc("bottom"),g0=Xc("left"),ml={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Yc={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(c,a){switch(a){case"rtl":return 1;case"ltr":default:return 0}}},Ah={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(c,a){return a.filter(Bi).reduce(function(f,d){return f|m0(d.value)},0)}},m0=function(c){switch(c){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},fc={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(c,a){switch(a){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},sh={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(c,a){return a.type===20&&a.value==="normal"?0:a.type===17||a.type===15?a.number:0}},hc;(function(c){c.NORMAL="normal",c.STRICT="strict"})(hc||(hc={}));var v0={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(c,a){switch(a){case"strict":return hc.STRICT;case"normal":default:return hc.NORMAL}}},Rd={name:"line-height",initialValue:"normal",prefix:!1,type:4},lh=function(c,a){return Bi(c)&&c.value==="normal"?1.2*a:c.type===17?a*c.number:Oa(c)?ra(c,a):a},uh={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(c,a){return a.type===20&&a.value==="none"?null:Il.parse(c,a)}},ch={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(c,a){switch(a){case"inside":return 0;case"outside":default:return 1}}},_d={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(c,a){switch(a){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},pc=function(c){return{name:"margin-"+c,initialValue:"0",prefix:!1,type:4}},dh=pc("top"),fh=pc("right"),hh=pc("bottom"),ph=pc("left"),gh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(c,a){return a.filter(Bi).map(function(f){switch(f.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ll={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(c,a){switch(a){case"break-word":return"break-word";case"normal":default:return"normal"}}},Jc=function(c){return{name:"padding-"+c,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mh=Jc("top"),Y=Jc("right"),X=Jc("bottom"),xe=Jc("left"),Ke={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(c,a){switch(a){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},rt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(c,a){switch(a){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},pt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(c,a){return a.length===1&&zs(a[0],"none")?[]:RA(a).map(function(f){for(var d={color:Ki.TRANSPARENT,offsetX:tA,offsetY:tA,blur:tA},R=0,ne=0;ne1?1:0],this.overflowWrap=ur(a,Ll,f.overflowWrap),this.paddingTop=ur(a,mh,f.paddingTop),this.paddingRight=ur(a,Y,f.paddingRight),this.paddingBottom=ur(a,X,f.paddingBottom),this.paddingLeft=ur(a,xe,f.paddingLeft),this.paintOrder=ur(a,Br,f.paintOrder),this.position=ur(a,rt,f.position),this.textAlign=ur(a,Ke,f.textAlign),this.textDecorationColor=ur(a,vr,(d=f.textDecorationColor)!==null&&d!==void 0?d:f.color),this.textDecorationLine=ur(a,Cr,(R=f.textDecorationLine)!==null&&R!==void 0?R:f.textDecoration),this.textShadow=ur(a,pt,f.textShadow),this.textTransform=ur(a,Dt,f.textTransform),this.transform=ur(a,Ft,f.transform),this.transformOrigin=ur(a,nn,f.transformOrigin),this.visibility=ur(a,dn,f.visibility),this.webkitTextStrokeColor=ur(a,Vo,f.webkitTextStrokeColor),this.webkitTextStrokeWidth=ur(a,Wo,f.webkitTextStrokeWidth),this.wordBreak=ur(a,Pn,f.wordBreak),this.zIndex=ur(a,Ar,f.zIndex)}return c.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},c.prototype.isTransparent=function(){return UA(this.backgroundColor)},c.prototype.isTransformed=function(){return this.transform!==null},c.prototype.isPositioned=function(){return this.position!==0},c.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},c.prototype.isFloating=function(){return this.float!==0},c.prototype.isInlineLevel=function(){return Mr(this.display,4)||Mr(this.display,33554432)||Mr(this.display,268435456)||Mr(this.display,536870912)||Mr(this.display,67108864)||Mr(this.display,134217728)},c}(),Sa=function(){function c(a,f){this.content=ur(a,Pr,f.content),this.quotes=ur(a,Nr,f.quotes)}return c}(),la=function(){function c(a,f){this.counterIncrement=ur(a,Tr,f.counterIncrement),this.counterReset=ur(a,Er,f.counterReset)}return c}(),ur=function(c,a,f){var d=new co,R=f!==null&&typeof f!="undefined"?f.toString():a.initialValue;d.write(R);var ne=new vo(d.read());switch(a.type){case 2:var Ue=ne.parseComponentValue();return a.parse(c,Bi(Ue)?Ue.value:a.initialValue);case 0:return a.parse(c,ne.parseComponentValue());case 1:return a.parse(c,ne.parseComponentValues());case 4:return ne.parseComponentValue();case 3:switch(a.format){case"angle":return Os.parse(c,ne.parseComponentValue());case"color":return fl.parse(c,ne.parseComponentValue());case"image":return Il.parse(c,ne.parseComponentValue());case"length":var tt=ne.parseComponentValue();return tl(tt)?tt:tA;case"length-percentage":var qe=ne.parseComponentValue();return Oa(qe)?qe:tA;case"time":return lr.parse(c,ne.parseComponentValue())}break}},QA="data-html2canvas-debug",ii=function(c){var a=c.getAttribute(QA);switch(a){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ai=function(c,a){var f=ii(c);return f===1||a===f},ua=function(){function c(a,f){if(this.context=a,this.textNodes=[],this.elements=[],this.flags=0,ai(f,3))debugger;this.styles=new Ma(a,window.getComputedStyle(f,null)),bh(f)&&(this.styles.animationDuration.some(function(d){return d>0})&&(f.style.animationDuration="0s"),this.styles.transform!==null&&(f.style.transform="none")),this.bounds=G(this.context,f),ai(f,4)&&(this.flags|=16)}return c}(),BA="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOA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AAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAg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AOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),kr=0;kr>4,$t[R++]=(Ue&15)<<4|tt>>2,$t[R++]=(tt&3)<<6|qe&63;return Kt},bi=function(c){for(var a=c.length,f=[],d=0;d>Ji,Wr=1<>Ji,qi=to+Fa,MA=qi,Ha=32,Ws=MA+Ha,Ia=65536>>Zi,ji=1<=0){if(a<55296||a>56319&&a<=65535)return f=this.index[a>>Ji],f=(f<>Ji)],f=(f<>Zi),f=this.index[f],f+=a>>Ji&ga,f=this.index[f],f=(f<=55296&&R<=56319&&f>10)+55296,Ue%1024+56320)),(R+1===f||d.length>16384)&&(ne+=String.fromCharCode.apply(String,d),d.length=0)}return ne},ed=oA(BA),Li="\xD7",uu="\xF7",td=function(c){return ed.get(c)},Po=function(c,a,f){var d=f-2,R=a[d],ne=a[f-1],Ue=a[f];if(ne===HA&&Ue===Gs)return Li;if(ne===HA||ne===Gs||ne===lu||Ue===HA||Ue===Gs||Ue===lu)return uu;if(ne===$A&&[$A,XA,YA,JA].indexOf(Ue)!==-1||(ne===YA||ne===XA)&&(Ue===XA||Ue===kA)||(ne===JA||ne===kA)&&Ue===kA||Ue===xs||Ue===Na||Ue===Ru||ne===Wa)return Li;if(ne===xs&&Ue===vl){for(;R===Na;)R=a[--d];if(R===vl)return Li}if(ne===Ts&&Ue===Ts){for(var tt=0;R===Ts;)tt++,R=a[--d];if(tt%2===0)return Li}return uu},Wi=function(c){var a=$s(c),f=a.length,d=0,R=0,ne=a.map(td);return{next:function(){if(d>=f)return{done:!0,value:null};for(var Ue=Li;dUe.x||$t.y>Ue.y;return Ue=$t,Kt===0?!0:an});return c.body.removeChild(a),tt},Xs=function(){return typeof new Image().crossOrigin!="undefined"},qA=function(){return typeof new XMLHttpRequest().responseType=="string"},KA=function(c){var a=new Image,f=c.createElement("canvas"),d=f.getContext("2d");if(!d)return!1;a.src="data:image/svg+xml,";try{d.drawImage(a,0,0),f.toDataURL()}catch(R){return!1}return!0},jd=function(c){return c[0]===0&&c[1]===255&&c[2]===0&&c[3]===255},Md=function(c){var a=c.createElement("canvas"),f=100;a.width=f,a.height=f;var d=a.getContext("2d");if(!d)return Promise.reject(!1);d.fillStyle="rgb(0, 255, 0)",d.fillRect(0,0,f,f);var R=new Image,ne=a.toDataURL();R.src=ne;var Ue=cu(f,f,0,0,R);return d.fillStyle="red",d.fillRect(0,0,f,f),du(Ue).then(function(tt){d.drawImage(tt,0,0);var qe=d.getImageData(0,0,f,f).data;d.fillStyle="red",d.fillRect(0,0,f,f);var Kt=c.createElement("div");return Kt.style.backgroundImage="url("+ne+")",Kt.style.height=f+"px",jd(qe)?du(cu(f,f,0,0,Kt)):Promise.reject(!1)}).then(function(tt){return d.drawImage(tt,0,0),jd(d.getImageData(0,0,f,f).data)}).catch(function(){return!1})},cu=function(c,a,f,d,R){var ne="http://www.w3.org/2000/svg",Ue=document.createElementNS(ne,"svg"),tt=document.createElementNS(ne,"foreignObject");return Ue.setAttributeNS(null,"width",c.toString()),Ue.setAttributeNS(null,"height",a.toString()),tt.setAttributeNS(null,"width","100%"),tt.setAttributeNS(null,"height","100%"),tt.setAttributeNS(null,"x",f.toString()),tt.setAttributeNS(null,"y",d.toString()),tt.setAttributeNS(null,"externalResourcesRequired","true"),Ue.appendChild(tt),tt.appendChild(R),Ue},du=function(c){return new Promise(function(a,f){var d=new Image;d.onload=function(){return a(d)},d.onerror=f,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(c))})},zA={get SUPPORT_RANGE_BOUNDS(){var c=bA(document);return Object.defineProperty(zA,"SUPPORT_RANGE_BOUNDS",{value:c}),c},get SUPPORT_WORD_BREAKING(){var c=zA.SUPPORT_RANGE_BOUNDS&&As(document);return Object.defineProperty(zA,"SUPPORT_WORD_BREAKING",{value:c}),c},get SUPPORT_SVG_DRAWING(){var c=KA(document);return Object.defineProperty(zA,"SUPPORT_SVG_DRAWING",{value:c}),c},get SUPPORT_FOREIGNOBJECT_DRAWING(){var c=typeof Array.from=="function"&&typeof window.fetch=="function"?Md(document):Promise.resolve(!1);return Object.defineProperty(zA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:c}),c},get SUPPORT_CORS_IMAGES(){var c=Xs();return Object.defineProperty(zA,"SUPPORT_CORS_IMAGES",{value:c}),c},get SUPPORT_RESPONSE_TYPE(){var c=qA();return Object.defineProperty(zA,"SUPPORT_RESPONSE_TYPE",{value:c}),c},get SUPPORT_CORS_XHR(){var c="withCredentials"in new XMLHttpRequest;return Object.defineProperty(zA,"SUPPORT_CORS_XHR",{value:c}),c},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var c=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(zA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:c}),c}},Kl=function(){function c(a,f){this.text=a,this.bounds=f}return c}(),Hd=function(c,a,f,d){var R=Sf(a,f),ne=[],Ue=0;return R.forEach(function(tt){if(f.textDecorationLine.length||tt.trim().length>0)if(zA.SUPPORT_RANGE_BOUNDS){var qe=kd(d,Ue,tt.length).getClientRects();if(qe.length>1){var Kt=nd(tt),$t=0;Kt.forEach(function(Rn){ne.push(new Kl(Rn,te.fromDOMRectList(c,kd(d,$t+Ue,Rn.length).getClientRects()))),$t+=Rn.length})}else ne.push(new Kl(tt,te.fromDOMRectList(c,qe)))}else{var an=d.splitText(tt.length);ne.push(new Kl(tt,xf(c,d))),d=an}else zA.SUPPORT_RANGE_BOUNDS||(d=d.splitText(tt.length));Ue+=tt.length}),ne},xf=function(c,a){var f=a.ownerDocument;if(f){var d=f.createElement("html2canvaswrapper");d.appendChild(a.cloneNode(!0));var R=a.parentNode;if(R){R.replaceChild(d,a);var ne=G(c,d);return d.firstChild&&R.replaceChild(d.firstChild,d),ne}}return te.EMPTY},kd=function(c,a,f){var d=c.ownerDocument;if(!d)throw new Error("Node has no owner document");var R=d.createRange();return R.setStart(c,a),R.setEnd(c,a+f),R},nd=function(c){if(zA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var a=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(a.segment(c)).map(function(f){return f.segment})}return pA(c)},rd=function(c,a){if(zA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var f=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(f.segment(c)).map(function(d){return d.segment})}return Ff(c,a)},Sf=function(c,a){return a.letterSpacing!==0?nd(c):rd(c,a)},vh=[32,160,4961,65792,65793,4153,4241],Ff=function(c,a){for(var f=Dn(c,{lineBreak:a.lineBreak,wordBreak:a.overflowWrap==="break-word"?"break-word":a.wordBreak}),d=[],R,ne=function(){if(R.value){var Ue=R.value.slice(),tt=v(Ue),qe="";tt.forEach(function(Kt){vh.indexOf(Kt)===-1?qe+=L(Kt):(qe.length&&d.push(qe),d.push(L(Kt)),qe="")}),qe.length&&d.push(qe)}};!(R=f.next()).done;)ne();return d},If=function(){function c(a,f,d){this.text=yh(f.data,d.textTransform),this.textBounds=Hd(a,this.text,d,f)}return c}(),yh=function(c,a){switch(a){case 1:return c.toLowerCase();case 3:return c.replace(wh,Bh);case 2:return c.toUpperCase();default:return c}},wh=/(^|\s|:|-|\(|\))([a-z])/g,Bh=function(c,a,f){return c.length>0?a+f.toUpperCase():c},Kd=function(c){g(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.src=d.currentSrc||d.src,R.intrinsicWidth=d.naturalWidth,R.intrinsicHeight=d.naturalHeight,R.context.cache.addImage(R.src),R}return a}(ua),gc=function(c){g(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.canvas=d,R.intrinsicWidth=d.width,R.intrinsicHeight=d.height,R}return a}(ua),od=function(c){g(a,c);function a(f,d){var R=c.call(this,f,d)||this,ne=new XMLSerializer,Ue=G(f,d);return d.setAttribute("width",Ue.width+"px"),d.setAttribute("height",Ue.height+"px"),R.svg="data:image/svg+xml,"+encodeURIComponent(ne.serializeToString(d)),R.intrinsicWidth=d.width.baseVal.value,R.intrinsicHeight=d.height.baseVal.value,R.context.cache.addImage(R.svg),R}return a}(ua),id=function(c){g(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.value=d.value,R}return a}(ua),ad=function(c){g(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.start=d.start,R.reversed=typeof d.reversed=="boolean"&&d.reversed===!0,R}return a}(ua),yl=[{type:15,flags:0,unit:"px",number:3}],Uf=[{type:16,flags:0,number:50}],Lf=function(c){return c.width>c.height?new te(c.left+(c.width-c.height)/2,c.top,c.height,c.height):c.width0)f.textNodes.push(new If(c,R,f.styles));else if(zl(R))if(E0(R)&&R.assignedNodes)R.assignedNodes().forEach(function(tt){return es(c,tt,f,d)});else{var Ue=ZA(c,R);Ue.styles.isVisible()&&(hu(R,Ue,d)?Ue.flags|=4:pu(Ue.styles)&&(Ue.flags|=2),gA.indexOf(R.tagName)!==-1&&(Ue.flags|=8),f.elements.push(Ue),R.slot,R.shadowRoot?es(c,R.shadowRoot,Ue,d):!zd(R)&&!y0(R)&&!Df(R)&&es(c,R,Ue,d))}},ZA=function(c,a){return Eh(a)?new Kd(c,a):w0(a)?new gc(c,a):y0(a)?new od(c,a):Fp(a)?new id(c,a):Ip(a)?new ad(c,a):Up(a)?new Hu(c,a):Df(a)?new Qf(c,a):zd(a)?new ui(c,a):b0(a)?new Ei(c,a):new ua(c,a)},fu=function(c,a){var f=ZA(c,a);return f.flags|=4,es(c,a,f,f),f},hu=function(c,a,f){return a.styles.isPositionedWithZIndex()||a.styles.opacity<1||a.styles.isTransformed()||Ch(c)&&f.styles.isTransparent()},pu=function(c){return c.isPositioned()||c.isFloating()},ku=function(c){return c.nodeType===Node.TEXT_NODE},zl=function(c){return c.nodeType===Node.ELEMENT_NODE},bh=function(c){return zl(c)&&typeof c.style!="undefined"&&!Of(c)},Of=function(c){return typeof c.className=="object"},Fp=function(c){return c.tagName==="LI"},Ip=function(c){return c.tagName==="OL"},Up=function(c){return c.tagName==="INPUT"},Lp=function(c){return c.tagName==="HTML"},y0=function(c){return c.tagName==="svg"},Ch=function(c){return c.tagName==="BODY"},w0=function(c){return c.tagName==="CANVAS"},B0=function(c){return c.tagName==="VIDEO"},Eh=function(c){return c.tagName==="IMG"},b0=function(c){return c.tagName==="IFRAME"},C0=function(c){return c.tagName==="STYLE"},xh=function(c){return c.tagName==="SCRIPT"},zd=function(c){return c.tagName==="TEXTAREA"},Df=function(c){return c.tagName==="SELECT"},E0=function(c){return c.tagName==="SLOT"},x0=function(c){return c.tagName.indexOf("-")>0},Ig=function(){function c(){this.counters={}}return c.prototype.getCounterValue=function(a){var f=this.counters[a];return f&&f.length?f[f.length-1]:1},c.prototype.getCounterValues=function(a){var f=this.counters[a];return f||[]},c.prototype.pop=function(a){var f=this;a.forEach(function(d){return f.counters[d].pop()})},c.prototype.parse=function(a){var f=this,d=a.counterIncrement,R=a.counterReset,ne=!0;d!==null&&d.forEach(function(tt){var qe=f.counters[tt.counter];qe&&tt.increment!==0&&(ne=!1,qe.length||qe.push(1),qe[Math.max(0,qe.length-1)]+=tt.increment)});var Ue=[];return ne&&R.forEach(function(tt){var qe=f.counters[tt.counter];Ue.push(tt.counter),qe||(qe=f.counters[tt.counter]=[]),qe.push(tt.reset)}),Ue},c}(),Sh={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Fh={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Np={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},S0={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},vc=function(c,a,f,d,R,ne){return cf?Vd(c,R,ne.length>0):d.integers.reduce(function(Ue,tt,qe){for(;c>=tt;)c-=tt,Ue+=d.values[qe];return Ue},"")+ne},Qp=function(c,a,f,d){var R="";do f||c--,R=d(c)+R,c/=a;while(c*a>=a);return R},CA=function(c,a,f,d,R){var ne=f-a+1;return(c<0?"-":"")+(Qp(Math.abs(c),ne,d,function(Ue){return L(Math.floor(Ue%ne)+a)})+R)},Ku=function(c,a,f){f===void 0&&(f=". ");var d=a.length;return Qp(Math.abs(c),d,!1,function(R){return a[Math.floor(R%d)]})+f},yc=1,gu=2,mu=4,Zd=8,vu=function(c,a,f,d,R,ne){if(c<-9999||c>9999)return Vd(c,4,R.length>0);var Ue=Math.abs(c),tt=R;if(Ue===0)return a[0]+tt;for(var qe=0;Ue>0&&qe<=4;qe++){var Kt=Ue%10;Kt===0&&Mr(ne,yc)&&tt!==""?tt=a[Kt]+tt:Kt>1||Kt===1&&qe===0||Kt===1&&qe===1&&Mr(ne,gu)||Kt===1&&qe===1&&Mr(ne,mu)&&c>100||Kt===1&&qe>1&&Mr(ne,Zd)?tt=a[Kt]+(qe>0?f[qe-1]:"")+tt:Kt===1&&qe>0&&(tt=f[qe-1]+tt),Ue=Math.floor(Ue/10)}return(c<0?d:"")+tt},F0="\u5341\u767E\u5343\u842C",Op="\u62FE\u4F70\u4EDF\u842C",I0="\u30DE\u30A4\u30CA\u30B9",Ih="\uB9C8\uC774\uB108\uC2A4",Vd=function(c,a,f){var d=f?". ":"",R=f?"\u3001":"",ne=f?", ":"",Ue=f?" ":"";switch(a){case 0:return"\u2022"+Ue;case 1:return"\u25E6"+Ue;case 2:return"\u25FE"+Ue;case 5:var tt=CA(c,48,57,!0,d);return tt.length<4?"0"+tt:tt;case 4:return Ku(c,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",R);case 6:return vc(c,1,3999,Sh,3,d).toLowerCase();case 7:return vc(c,1,3999,Sh,3,d);case 8:return CA(c,945,969,!1,d);case 9:return CA(c,97,122,!1,d);case 10:return CA(c,65,90,!1,d);case 11:return CA(c,1632,1641,!0,d);case 12:case 49:return vc(c,1,9999,Fh,3,d);case 35:return vc(c,1,9999,Fh,3,d).toLowerCase();case 13:return CA(c,2534,2543,!0,d);case 14:case 30:return CA(c,6112,6121,!0,d);case 15:return Ku(c,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",R);case 16:return Ku(c,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",R);case 17:case 48:return vu(c,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",F0,"\u8CA0",R,gu|mu|Zd);case 47:return vu(c,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Op,"\u8CA0",R,yc|gu|mu|Zd);case 42:return vu(c,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",F0,"\u8D1F",R,gu|mu|Zd);case 41:return vu(c,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Op,"\u8D1F",R,yc|gu|mu|Zd);case 26:return vu(c,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",I0,R,0);case 25:return vu(c,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",I0,R,yc|gu|mu);case 31:return vu(c,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ih,ne,yc|gu|mu);case 33:return vu(c,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ih,ne,0);case 32:return vu(c,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ih,ne,yc|gu|mu);case 18:return CA(c,2406,2415,!0,d);case 20:return vc(c,1,19999,S0,3,d);case 21:return CA(c,2790,2799,!0,d);case 22:return CA(c,2662,2671,!0,d);case 22:return vc(c,1,10999,Np,3,d);case 23:return Ku(c,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Ku(c,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return CA(c,3302,3311,!0,d);case 28:return Ku(c,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",R);case 29:return Ku(c,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",R);case 34:return CA(c,3792,3801,!0,d);case 37:return CA(c,6160,6169,!0,d);case 38:return CA(c,4160,4169,!0,d);case 39:return CA(c,2918,2927,!0,d);case 40:return CA(c,1776,1785,!0,d);case 43:return CA(c,3046,3055,!0,d);case 44:return CA(c,3174,3183,!0,d);case 45:return CA(c,3664,3673,!0,d);case 46:return CA(c,3872,3881,!0,d);case 3:default:return CA(c,48,57,!0,d)}},U0="data-html2canvas-ignore",Dp=function(){function c(a,f,d){if(this.context=a,this.options=d,this.scrolledElements=[],this.referenceElement=f,this.counters=new Ig,this.quoteDepth=0,!f.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(f.ownerDocument.documentElement,!1)}return c.prototype.toIFrame=function(a,f){var d=this,R=Pp(a,f);if(!R.contentWindow)return Promise.reject("Unable to find iframe window");var ne=a.defaultView.pageXOffset,Ue=a.defaultView.pageYOffset,tt=R.contentWindow,qe=tt.document,Kt=Gd(R).then(function(){return Se(d,void 0,void 0,function(){var $t,an;return M(this,function(Rn){switch(Rn.label){case 0:return this.scrolledElements.forEach(Q0),tt&&(tt.scrollTo(f.left,f.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(tt.scrollY!==f.top||tt.scrollX!==f.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(tt.scrollX-f.left,tt.scrollY-f.top,0,0))),$t=this.options.onclone,an=this.clonedReferenceElement,typeof an=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:qe.fonts&&qe.fonts.ready?[4,qe.fonts.ready]:[3,2];case 1:Rn.sent(),Rn.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Tp(qe)]:[3,4];case 3:Rn.sent(),Rn.label=4;case 4:return typeof $t=="function"?[2,Promise.resolve().then(function(){return $t(qe,an)}).then(function(){return R})]:[2,R]}})})});return qe.open(),qe.write(Rp(document.doctype)+""),N0(this.referenceElement.ownerDocument,ne,Ue),qe.replaceChild(qe.adoptNode(this.documentElement),qe.documentElement),qe.close(),Kt},c.prototype.createElementClone=function(a){if(ai(a,2))debugger;if(w0(a))return this.createCanvasClone(a);if(B0(a))return this.createVideoClone(a);if(C0(a))return this.createStyleClone(a);var f=a.cloneNode(!1);return Eh(f)&&(Eh(a)&&a.currentSrc&&a.currentSrc!==a.src&&(f.src=a.currentSrc,f.srcset=""),f.loading==="lazy"&&(f.loading="eager")),x0(f)?this.createCustomElementClone(f):f},c.prototype.createCustomElementClone=function(a){var f=document.createElement("html2canvascustomelement");return Pf(a.style,f),f},c.prototype.createStyleClone=function(a){try{var f=a.sheet;if(f&&f.cssRules){var d=[].slice.call(f.cssRules,0).reduce(function(ne,Ue){return Ue&&typeof Ue.cssText=="string"?ne+Ue.cssText:ne},""),R=a.cloneNode(!1);return R.textContent=d,R}}catch(ne){if(this.context.logger.error("Unable to access cssRules property",ne),ne.name!=="SecurityError")throw ne}return a.cloneNode(!1)},c.prototype.createCanvasClone=function(a){var f;if(this.options.inlineImages&&a.ownerDocument){var d=a.ownerDocument.createElement("img");try{return d.src=a.toDataURL(),d}catch(Kt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",a)}}var R=a.cloneNode(!1);try{R.width=a.width,R.height=a.height;var ne=a.getContext("2d"),Ue=R.getContext("2d");if(Ue)if(!this.options.allowTaint&&ne)Ue.putImageData(ne.getImageData(0,0,a.width,a.height),0,0);else{var tt=(f=a.getContext("webgl2"))!==null&&f!==void 0?f:a.getContext("webgl");if(tt){var qe=tt.getContextAttributes();(qe==null?void 0:qe.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",a)}Ue.drawImage(a,0,0)}return R}catch(Kt){this.context.logger.info("Unable to clone canvas as it is tainted",a)}return R},c.prototype.createVideoClone=function(a){var f=a.ownerDocument.createElement("canvas");f.width=a.offsetWidth,f.height=a.offsetHeight;var d=f.getContext("2d");try{return d&&(d.drawImage(a,0,0,f.width,f.height),this.options.allowTaint||d.getImageData(0,0,f.width,f.height)),f}catch(ne){this.context.logger.info("Unable to clone video as it is tainted",a)}var R=a.ownerDocument.createElement("canvas");return R.width=a.offsetWidth,R.height=a.offsetHeight,R},c.prototype.appendChildNode=function(a,f,d){(!zl(f)||!xh(f)&&!f.hasAttribute(U0)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(f)))&&(!this.options.copyStyles||!zl(f)||!C0(f))&&a.appendChild(this.cloneNode(f,d))},c.prototype.cloneChildNodes=function(a,f,d){for(var R=this,ne=a.shadowRoot?a.shadowRoot.firstChild:a.firstChild;ne;ne=ne.nextSibling)if(zl(ne)&&E0(ne)&&typeof ne.assignedNodes=="function"){var Ue=ne.assignedNodes();Ue.length&&Ue.forEach(function(tt){return R.appendChildNode(f,tt,d)})}else this.appendChildNode(f,ne,d)},c.prototype.cloneNode=function(a,f){if(ku(a))return document.createTextNode(a.data);if(!a.ownerDocument)return a.cloneNode(!1);var d=a.ownerDocument.defaultView;if(d&&zl(a)&&(bh(a)||Of(a))){var R=this.createElementClone(a);R.style.transitionProperty="none";var ne=d.getComputedStyle(a),Ue=d.getComputedStyle(a,":before"),tt=d.getComputedStyle(a,":after");this.referenceElement===a&&bh(R)&&(this.clonedReferenceElement=R),Ch(R)&&Lg(R);var qe=this.counters.parse(new la(this.context,ne)),Kt=this.resolvePseudoContent(a,R,Ue,Wd.BEFORE);x0(a)&&(f=!0),B0(a)||this.cloneChildNodes(a,R,f),Kt&&R.insertBefore(Kt,R.firstChild);var $t=this.resolvePseudoContent(a,R,tt,Wd.AFTER);return $t&&R.appendChild($t),this.counters.pop(qe),(ne&&(this.options.copyStyles||Of(a))&&!b0(a)||f)&&Pf(ne,R),(a.scrollTop!==0||a.scrollLeft!==0)&&this.scrolledElements.push([R,a.scrollLeft,a.scrollTop]),(zd(a)||Df(a))&&(zd(R)||Df(R))&&(R.value=a.value),R}return a.cloneNode(!1)},c.prototype.resolvePseudoContent=function(a,f,d,R){var ne=this;if(d){var Ue=d.content,tt=f.ownerDocument;if(!(!tt||!Ue||Ue==="none"||Ue==="-moz-alt-content"||d.display==="none")){this.counters.parse(new la(this.context,d));var qe=new Sa(this.context,d),Kt=tt.createElement("html2canvaspseudoelement");Pf(d,Kt),qe.content.forEach(function(an){if(an.type===0)Kt.appendChild(tt.createTextNode(an.value));else if(an.type===22){var Rn=tt.createElement("img");Rn.src=an.value,Rn.style.opacity="1",Kt.appendChild(Rn)}else if(an.type===18){if(an.name==="attr"){var eo=an.values.filter(Bi);eo.length&&Kt.appendChild(tt.createTextNode(a.getAttribute(eo[0].value)||""))}else if(an.name==="counter"){var cr=an.values.filter(fs),Qr=cr[0],ti=cr[1];if(Qr&&Bi(Qr)){var io=ne.counters.getCounterValue(Qr.value),oo=ti&&Bi(ti)?_d.parse(ne.context,ti.value):3;Kt.appendChild(tt.createTextNode(Vd(io,oo,!1)))}}else if(an.name==="counters"){var Mo=an.values.filter(fs),Qr=Mo[0],si=Mo[1],ti=Mo[2];if(Qr&&Bi(Qr)){var No=ne.counters.getCounterValues(Qr.value),Zr=ti&&Bi(ti)?_d.parse(ne.context,ti.value):3,Ti=si&&si.type===0?si.value:"",gi=No.map(function(Js){return Vd(Js,Zr,!1)}).join(Ti);Kt.appendChild(tt.createTextNode(gi))}}}else if(an.type===20)switch(an.value){case"open-quote":Kt.appendChild(tt.createTextNode(Hr(qe.quotes,ne.quoteDepth++,!0)));break;case"close-quote":Kt.appendChild(tt.createTextNode(Hr(qe.quotes,--ne.quoteDepth,!1)));break;default:Kt.appendChild(tt.createTextNode(an.value))}}),Kt.className=Uh+" "+Tf;var $t=R===Wd.BEFORE?" "+Uh:" "+Tf;return Of(f)?f.className.baseValue+=$t:f.className+=$t,Kt}}},c.destroy=function(a){return a.parentNode?(a.parentNode.removeChild(a),!0):!1},c}(),Wd;(function(c){c[c.BEFORE=0]="BEFORE",c[c.AFTER=1]="AFTER"})(Wd||(Wd={}));var Pp=function(c,a){var f=c.createElement("iframe");return f.className="html2canvas-container",f.style.visibility="hidden",f.style.position="fixed",f.style.left="-10000px",f.style.top="0px",f.style.border="0",f.width=a.width.toString(),f.height=a.height.toString(),f.scrolling="no",f.setAttribute(U0,"true"),c.body.appendChild(f),f},L0=function(c){return new Promise(function(a){if(c.complete){a();return}if(!c.src){a();return}c.onload=a,c.onerror=a})},Tp=function(c){return Promise.all([].slice.call(c.images,0).map(L0))},Gd=function(c){return new Promise(function(a,f){var d=c.contentWindow;if(!d)return f("No window assigned for iframe");var R=d.document;d.onload=c.onload=function(){d.onload=c.onload=null;var ne=setInterval(function(){R.body.childNodes.length>0&&R.readyState==="complete"&&(clearInterval(ne),a(c))},50)}})},Ug=["all","d","content"],Pf=function(c,a){for(var f=c.length-1;f>=0;f--){var d=c.item(f);Ug.indexOf(d)===-1&&a.style.setProperty(d,c.getPropertyValue(d))}return a},Rp=function(c){var a="";return c&&(a+=""),a},N0=function(c,a,f){c&&c.defaultView&&(a!==c.defaultView.pageXOffset||f!==c.defaultView.pageYOffset)&&c.defaultView.scrollTo(a,f)},Q0=function(c){var a=c[0],f=c[1],d=c[2];a.scrollLeft=f,a.scrollTop=d},O0=":before",D0=":after",Uh="___html2canvas___pseudoelement_before",Tf="___html2canvas___pseudoelement_after",P0=`{ + `]:{position:"relative",padding:`${(0,ho.unit)(ze)} ${(0,ho.unit)(rt)}`,overflowWrap:"break-word"},[`${Y}-title`]:{padding:`${(0,ho.unit)(ze)} ${(0,ho.unit)(rt)}`},[`${Y}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:on,fontWeight:xe,textAlign:"start",background:dn,borderBottom:tr,transition:`background ${nn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Y}-selection-column):not(${Y}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:rr,transform:"translateY(-50%)",transition:`background-color ${nn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Y}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${nn}, border-color ${nn}`,borderBottom:tr,[` + > ${Y}-wrapper:only-child, + > ${Y}-expanded-row-fixed > ${Y}-wrapper:only-child + `]:{[Y]:{marginBlock:(0,ho.unit)(lr(ze).mul(-1).equal()),marginInline:`${(0,ho.unit)(lr(pt).sub(rt).equal())} + ${(0,ho.unit)(lr(rt).mul(-1).equal())}`,[`${Y}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:on,fontWeight:xe,textAlign:"start",background:dn,borderBottom:tr,transition:`background ${nn} ease`}}},[`${Y}-footer`]:{padding:`${(0,ho.unit)(ze)} ${(0,ho.unit)(rt)}`,color:Pn,background:Ar}})}},_d=J=>{const{colorFillAlter:Y,colorBgContainer:xe,colorTextHeading:ze,colorFillSecondary:rt,colorFillContent:pt,controlItemBgActive:Dt,controlItemBgActiveHover:Ft,padding:Vt,paddingSM:kt,paddingXS:wn,colorBorderSecondary:rn,borderRadiusLG:on,controlHeight:nn,colorTextPlaceholder:dn,fontSize:rr,fontSizeSM:Pn,lineHeight:Ar,lineWidth:lr,colorIcon:tr,colorIconHover:vr,opacityLoading:Cr,controlInteractiveSize:Rr}=J,Dr=new Va.FastColor(rt).onBackground(xe).toHexString(),Eo=new Va.FastColor(pt).onBackground(xe).toHexString(),no=new Va.FastColor(Y).onBackground(xe).toHexString(),so=new Va.FastColor(tr),Mr=new Va.FastColor(vr),Pr=Rr/2-lr,Tr=Pr*2+lr*3;return{headerBg:no,headerColor:ze,headerSortActiveBg:Dr,headerSortHoverBg:Eo,bodySortBg:no,rowHoverBg:no,rowSelectedBg:Dt,rowSelectedHoverBg:Ft,rowExpandedBg:Y,cellPaddingBlock:Vt,cellPaddingInline:Vt,cellPaddingBlockMD:kt,cellPaddingInlineMD:wn,cellPaddingBlockSM:wn,cellPaddingInlineSM:wn,borderColor:rn,headerBorderRadius:on,footerBg:no,footerColor:ze,cellFontSize:rr,cellFontSizeMD:rr,cellFontSizeSM:rr,headerSplitColor:rn,fixedHeaderSortActiveBg:Dr,headerFilterHoverBg:pt,filterDropdownMenuBg:xe,filterDropdownBg:xe,expandIconBg:xe,selectionColumnWidth:nn,stickyScrollBarBg:dn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(rr*Ar-lr*3)/2-Math.ceil((Pn*1.4-lr*3)/2),headerIconColor:so.clone().setA(so.a*Cr).toRgbString(),headerIconHoverColor:Mr.clone().setA(Mr.a*Cr).toRgbString(),expandIconHalfInner:Pr,expandIconSize:Tr,expandIconScale:Rr/Tr}},pc=2;var dh=(0,au.I$)("Table",J=>{const{colorTextHeading:Y,colorSplit:xe,colorBgContainer:ze,controlInteractiveSize:rt,headerBg:pt,headerColor:Dt,headerSortActiveBg:Ft,headerSortHoverBg:Vt,bodySortBg:kt,rowHoverBg:wn,rowSelectedBg:rn,rowSelectedHoverBg:on,rowExpandedBg:nn,cellPaddingBlock:dn,cellPaddingInline:rr,cellPaddingBlockMD:Pn,cellPaddingInlineMD:Ar,cellPaddingBlockSM:lr,cellPaddingInlineSM:tr,borderColor:vr,footerBg:Cr,footerColor:Rr,headerBorderRadius:Dr,cellFontSize:Eo,cellFontSizeMD:no,cellFontSizeSM:so,headerSplitColor:Mr,fixedHeaderSortActiveBg:Pr,headerFilterHoverBg:Tr,filterDropdownBg:Er,expandIconBg:mr,selectionColumnWidth:Nr,stickyScrollBarBg:Hr,calc:Yr}=J,Br=(0,Ul.mergeToken)(J,{tableFontSize:Eo,tableBg:ze,tableRadius:Dr,tablePaddingVertical:dn,tablePaddingHorizontal:rr,tablePaddingVerticalMiddle:Pn,tablePaddingHorizontalMiddle:Ar,tablePaddingVerticalSmall:lr,tablePaddingHorizontalSmall:tr,tableBorderColor:vr,tableHeaderTextColor:Dt,tableHeaderBg:pt,tableFooterTextColor:Rr,tableFooterBg:Cr,tableHeaderCellSplitColor:Mr,tableHeaderSortBg:Ft,tableHeaderSortHoverBg:Vt,tableBodySortBg:kt,tableFixedHeaderSortActiveBg:Pr,tableHeaderFilterActiveBg:Tr,tableFilterDropdownBg:Er,tableRowHoverBg:wn,tableSelectedRowBg:rn,tableSelectedRowHoverBg:on,zIndexTableFixed:pc,zIndexTableSticky:Yr(pc).add(1).equal({unit:!1}),tableFontSizeMiddle:no,tableFontSizeSmall:so,tableSelectionColumnWidth:Nr,tableExpandIconBg:mr,tableExpandColumnWidth:Yr(rt).add(Yr(J.padding).mul(2)).equal(),tableExpandedRowBg:nn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Hr,tableScrollThumbBgHover:Y,tableScrollBg:xe});return[ch(Br),Tu(Br),Rd(Br),fc(Br),zi(Br),Au(Br),Td(Br),Ps(Br),Rd(Br),p0(Br),ml(Br),Pd(Br),hc(Br),kl(Br),Ah(Br),ah(Br),uh(Br)]},_d,{unitless:{expandIconScale:!0}});const fh=[],hh=(J,Y)=>{var xe,ze;const{prefixCls:rt,className:pt,rootClassName:Dt,style:Ft,size:Vt,bordered:kt,dropdownPrefixCls:wn,dataSource:rn,pagination:on,rowSelection:nn,rowKey:dn="key",rowClassName:rr,columns:Pn,children:Ar,childrenColumnName:lr,onChange:tr,getPopupContainer:vr,loading:Cr,expandIcon:Rr,expandable:Dr,expandedRowRender:Eo,expandIconColumnIndex:no,indentSize:so,scroll:Mr,sortDirections:Pr,locale:Tr,showSorterTooltip:Er={target:"full-header"},virtual:mr}=J,Nr=(0,FA.ln)("Table"),Hr=s.useMemo(()=>Pn||Dn(Ar),[Pn,Ar]),Yr=s.useMemo(()=>Hr.some(Po=>Po.responsive),[Hr]),Br=(0,ul.Z)(Yr),Vo=s.useMemo(()=>{const Po=new Set(Object.keys(Br).filter(Wi=>Br[Wi]));return Hr.filter(Wi=>!Wi.responsive||Wi.responsive.some(pA=>Po.has(pA)))},[Hr,Br]),Wo=(0,pa.Z)(J,["className","style","columns"]),{locale:Ma=ru.Z,direction:Sa,table:la,renderEmpty:ur,getPrefixCls:QA,getPopupContainer:ii}=s.useContext(as.E_),ai=(0,Ou.Z)(Vt),ua=Object.assign(Object.assign({},Ma.Table),Tr),BA=rn||fh,Jr=QA("table",rt),uo=QA("dropdown",wn),[,kr]=(0,ou.ZP)(),ro=(0,El.Z)(Jr),[bi,Ui,Ji]=dh(Jr,ro),Zi=Object.assign(Object.assign({childrenColumnName:lr,expandIconColumnIndex:no},Dr),{expandIcon:(xe=Dr==null?void 0:Dr.expandIcon)!==null&&xe!==void 0?xe:(ze=la==null?void 0:la.expandable)===null||ze===void 0?void 0:ze.expandIcon}),{childrenColumnName:Da="children"}=Zi,jA=s.useMemo(()=>BA.some(Po=>Po==null?void 0:Po[Da])?"nest":Eo||Dr!=null&&Dr.expandedRowRender?"row":null,[BA]),to={body:s.useRef(null)},Wr=Oo(Jr),Ci=s.useRef(null),Fa=s.useRef(null);Es(Y,()=>Object.assign(Object.assign({},Fa.current),{nativeElement:Ci.current}));const qi=s.useMemo(()=>typeof dn=="function"?dn:Po=>Po==null?void 0:Po[dn],[dn]),[MA]=Zs(BA,Da,qi),Ha={},Ws=function(Po,Wi){let pA=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var bA,As,Xs,qA;const KA=Object.assign(Object.assign({},Ha),Po);pA&&((bA=Ha.resetPagination)===null||bA===void 0||bA.call(Ha),!((As=KA.pagination)===null||As===void 0)&&As.current&&(KA.pagination.current=1),on&&((Xs=on.onChange)===null||Xs===void 0||Xs.call(on,1,(qA=KA.pagination)===null||qA===void 0?void 0:qA.pageSize))),Mr&&Mr.scrollToFirstRowOnChange!==!1&&to.body.current&&(0,IA.Z)(0,{getContainer:()=>to.body.current}),tr==null||tr(KA.pagination,KA.filters,KA.sorter,{currentDataSource:Do(Ds(BA,KA.sorterStates,Da),KA.filterStates,Da),action:Wi})},Ia=(Po,Wi)=>{Ws({sorter:Po,sorterStates:Wi},"sort",!1)},[ji,ga,ma,hA]=rh({prefixCls:Jr,mergedColumns:Vo,onSorterChange:Ia,sortDirections:Pr||["ascend","descend"],tableLocale:ua,showSorterTooltip:Er}),oA=s.useMemo(()=>Ds(BA,ga,Da),[BA,ga]);Ha.sorter=hA(),Ha.sorterStates=ga;const Pi=(Po,Wi)=>{Ws({filters:Po,filterStates:Wi},"filter",!0)},[ka,Vi,Ua]=Xa({prefixCls:Jr,locale:ua,dropdownPrefixCls:uo,mergedColumns:Vo,onFilterChange:Pi,getPopupContainer:vr||ii,rootClassName:g()(Dt,ro)}),Wa=Do(oA,Vi,Da);Ha.filters=Ua,Ha.filterStates=Vi;const HA=s.useMemo(()=>{const Po={};return Object.keys(Ua).forEach(Wi=>{Ua[Wi]!==null&&(Po[Wi]=Ua[Wi])}),Object.assign(Object.assign({},ma),{filters:Po})},[ma,Ua]),[Gs]=Gc(HA),lu=(Po,Wi)=>{Ws({pagination:Object.assign(Object.assign({},Ha.pagination),{current:Po,pageSize:Wi})},"paginate")},[Na,Ru]=Pu(Wa.length,lu,on);Ha.pagination=on===!1?{}:_A(Na,on),Ha.resetPagination=Ru;const $A=s.useMemo(()=>{if(on===!1||!Na.pageSize)return Wa;const{current:Po=1,total:Wi,pageSize:pA=hl}=Na;return Wa.lengthpA?Wa.slice((Po-1)*pA,Po*pA):Wa:Wa.slice((Po-1)*pA,Po*pA)},[!!on,Wa,Na==null?void 0:Na.current,Na==null?void 0:Na.pageSize,Na==null?void 0:Na.total]),[XA,kA]=Zo({prefixCls:Jr,data:Wa,pageData:$A,getRowKey:qi,getRecordByKey:MA,expandType:jA,childrenColumnName:Da,locale:ua,getPopupContainer:vr||ii},nn),YA=(Po,Wi,pA)=>{let bA;return typeof rr=="function"?bA=g()(rr(Po,Wi,pA)):bA=g()(rr),g()({[`${Jr}-row-selected`]:kA.has(qi(Po,Wi))},bA)};Zi.__PARENT_RENDER_ICON__=Zi.expandIcon,Zi.expandIcon=Zi.expandIcon||Rr||bo(ua),jA==="nest"&&Zi.expandIconColumnIndex===void 0?Zi.expandIconColumnIndex=nn?1:0:Zi.expandIconColumnIndex>0&&nn&&(Zi.expandIconColumnIndex-=1),typeof Zi.indentSize!="number"&&(Zi.indentSize=typeof so=="number"?so:15);const JA=s.useCallback(Po=>Gs(XA(ka(ji(Po)))),[ji,ka,XA]);let xs,vl;if(on!==!1&&(Na!=null&&Na.total)){let Po;Na.size?Po=Na.size:Po=ai==="small"||ai==="middle"?"small":void 0;const Wi=As=>s.createElement(Ml.Z,Object.assign({},Na,{className:g()(`${Jr}-pagination ${Jr}-pagination-${As}`,Na.className),size:Po})),pA=Sa==="rtl"?"left":"right",{position:bA}=Na;if(bA!==null&&Array.isArray(bA)){const As=bA.find(KA=>KA.includes("top")),Xs=bA.find(KA=>KA.includes("bottom")),qA=bA.every(KA=>`${KA}`=="none");!As&&!Xs&&!qA&&(vl=Wi(pA)),As&&(xs=Wi(As.toLowerCase().replace("top",""))),Xs&&(vl=Wi(Xs.toLowerCase().replace("bottom","")))}else vl=Wi(pA)}let Ts;typeof Cr=="boolean"?Ts={spinning:Cr}:typeof Cr=="object"&&(Ts=Object.assign({spinning:!0},Cr));const $s=g()(Ji,ro,`${Jr}-wrapper`,la==null?void 0:la.className,{[`${Jr}-wrapper-rtl`]:Sa==="rtl"},pt,Dt,Ui),qc=Object.assign(Object.assign({},la==null?void 0:la.style),Ft),ed=typeof(Tr==null?void 0:Tr.emptyText)!="undefined"?Tr.emptyText:(ur==null?void 0:ur("Table"))||s.createElement(Qu.Z,{componentName:"Table"}),Li=mr?iu:Od,uu={},td=s.useMemo(()=>{const{fontSize:Po,lineHeight:Wi,lineWidth:pA,padding:bA,paddingXS:As,paddingSM:Xs}=kr,qA=Math.floor(Po*Wi);switch(ai){case"middle":return Xs*2+qA+pA;case"small":return As*2+qA+pA;default:return bA*2+qA+pA}},[kr,ai]);return mr&&(uu.listItemHeight=td),bi(s.createElement("div",{ref:Ci,className:$s,style:qc},s.createElement(eA.Z,Object.assign({spinning:!1},Ts),xs,s.createElement(Li,Object.assign({},uu,Wo,{ref:Fa,columns:Vo,direction:Sa,expandable:Zi,prefixCls:Jr,className:g()({[`${Jr}-middle`]:ai==="middle",[`${Jr}-small`]:ai==="small",[`${Jr}-bordered`]:kt,[`${Jr}-empty`]:BA.length===0},Ji,ro,Ui),data:$A,rowKey:qi,rowClassName:YA,emptyText:ed,internalHooks:M,internalRefs:to,transformColumns:JA,getContainerWidth:Wr})),vl)))};var ph=s.forwardRef(hh);const gh=(J,Y)=>{const xe=s.useRef(0);return xe.current+=1,s.createElement(ph,Object.assign({},J,{ref:Y,_renderTimes:xe.current}))},Ll=s.forwardRef(gh);Ll.SELECTION_COLUMN=pi,Ll.EXPAND_COLUMN=Se,Ll.SELECTION_ALL=$a,Ll.SELECTION_INVERT=PA,Ll.SELECTION_NONE=cA,Ll.Column=jr,Ll.ColumnGroup=qo,Ll.Summary=le;var Jc=Ll,mh=Jc},18287:function(nr,Zt,p){"use strict";p.d(Zt,{default:function(){return mt}});var s=p(3741),Se=p(94480),M=p(59301),we=p(52671),te=p(8657),$=p(54476),Z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},v=Z,N=p(7657),i=function(Nt,yt){return M.createElement(N.Z,(0,$.Z)({},Nt,{ref:yt,icon:v}))},L=M.forwardRef(i),B=L,D=p(92310),O=p.n(D),T=p(82661),E=p(34061),I=p(48755),U=p(56082),W=p(86641),re=p(57700),k=p(12425);const H=4;function de(Me){const{dropPosition:Nt,dropLevelOffset:yt,prefixCls:zt,indent:je,direction:It="ltr"}=Me,Ze=It==="ltr"?"left":"right",Pt=It==="ltr"?"right":"left",ct={[Ze]:-yt*je+H,[Pt]:0};switch(Nt){case-1:ct.top=-3;break;case 1:ct.bottom=-3;break;default:ct.bottom=-3,ct[Ze]=je+H;break}return M.createElement("div",{style:ct,className:`${zt}-drop-indicator`})}var ce=de,Fe=p(85278),pe=M.forwardRef((Me,Nt)=>{var yt;const{getPrefixCls:zt,direction:je,virtual:It,tree:Ze}=M.useContext(I.E_),{prefixCls:Pt,className:ct,showIcon:x=!1,showLine:Ke,switcherIcon:P,switcherLoadingIcon:A,blockNode:h=!1,children:C,checkable:b=!1,selectable:K=!0,draggable:ee,motion:Ee,style:le}=Me,ue=zt("tree",Pt),Qe=zt(),ke=Ee!=null?Ee:Object.assign(Object.assign({},(0,W.Z)(Qe)),{motionAppear:!1}),ie=Object.assign(Object.assign({},Me),{checkable:b,selectable:K,showIcon:x,motion:ke,blockNode:h,showLine:!!Ke,dropIndicatorRender:ce}),[X,tt,Te]=(0,k.ZP)(ue),[,Et]=(0,re.ZP)(),at=Et.paddingXS/2+(((yt=Et.Tree)===null||yt===void 0?void 0:yt.titleHeight)||Et.controlHeightSM),Ge=M.useMemo(()=>{if(!ee)return!1;let St={};switch(typeof ee){case"function":St.nodeDraggable=ee;break;case"object":St=Object.assign({},ee);break;default:break}return St.icon!==!1&&(St.icon=St.icon||M.createElement(U.Z,null)),St},[ee]),Ut=St=>M.createElement(Fe.Z,{prefixCls:ue,switcherIcon:P,switcherLoadingIcon:A,treeNodeProps:St,showLine:Ke});return X(M.createElement(s.ZP,Object.assign({itemHeight:at,ref:Nt,virtual:It},ie,{style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),le),prefixCls:ue,className:O()({[`${ue}-icon-hide`]:!x,[`${ue}-block-node`]:h,[`${ue}-unselectable`]:!K,[`${ue}-rtl`]:je==="rtl"},Ze==null?void 0:Ze.className,ct,tt,Te),direction:je,checkable:b&&M.createElement("span",{className:`${ue}-checkbox-inner`}),selectable:K,switcherIcon:Ut,draggable:Ge}),C))});const Ce=0,G=1,ge=2;function g(Me,Nt,yt){const{key:zt,children:je}=yt;function It(Ze){const Pt=Ze[zt],ct=Ze[je];Nt(Pt,Ze)!==!1&&g(ct||[],Nt,yt)}Me.forEach(It)}function j(Me){let{treeData:Nt,expandedKeys:yt,startKey:zt,endKey:je,fieldNames:It}=Me;const Ze=[];let Pt=Ce;if(zt&&zt===je)return[zt];if(!zt||!je)return[];function ct(x){return x===zt||x===je}return g(Nt,x=>{if(Pt===ge)return!1;if(ct(x)){if(Ze.push(x),Pt===Ce)Pt=G;else if(Pt===G)return Pt=ge,!1}else Pt===G&&Ze.push(x);return yt.includes(x)},(0,E.w$)(It)),Ze}function Ye(Me,Nt,yt){const zt=(0,Se.Z)(Nt),je=[];return g(Me,(It,Ze)=>{const Pt=zt.indexOf(It);return Pt!==-1&&(je.push(Ze),zt.splice(Pt,1)),!!zt.length},(0,E.w$)(yt)),je}var oe=function(Me,Nt){var yt={};for(var zt in Me)Object.prototype.hasOwnProperty.call(Me,zt)&&Nt.indexOf(zt)<0&&(yt[zt]=Me[zt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,zt=Object.getOwnPropertySymbols(Me);je{var{defaultExpandAll:yt,defaultExpandParent:zt,defaultExpandedKeys:je}=Me,It=oe(Me,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ze=M.useRef(null),Pt=M.useRef(null),ct=()=>{const{keyEntities:X}=(0,E.I8)(be(It));let tt;return yt?tt=Object.keys(X):zt?tt=(0,T.r7)(It.expandedKeys||je||[],X):tt=It.expandedKeys||je||[],tt},[x,Ke]=M.useState(It.selectedKeys||It.defaultSelectedKeys||[]),[P,A]=M.useState(()=>ct());M.useEffect(()=>{"selectedKeys"in It&&Ke(It.selectedKeys)},[It.selectedKeys]),M.useEffect(()=>{"expandedKeys"in It&&A(It.expandedKeys)},[It.expandedKeys]);const h=(X,tt)=>{var Te;return"expandedKeys"in It||A(X),(Te=It.onExpand)===null||Te===void 0?void 0:Te.call(It,X,tt)},C=(X,tt)=>{var Te;const{multiple:Et,fieldNames:at}=It,{node:Ge,nativeEvent:Ut}=tt,{key:St=""}=Ge,Ie=be(It),$e=Object.assign(Object.assign({},tt),{selected:!0}),ut=(Ut==null?void 0:Ut.ctrlKey)||(Ut==null?void 0:Ut.metaKey),Qt=Ut==null?void 0:Ut.shiftKey;let Ae;Et&&ut?(Ae=X,Ze.current=St,Pt.current=Ae,$e.selectedNodes=Ye(Ie,Ae,at)):Et&&Qt?(Ae=Array.from(new Set([].concat((0,Se.Z)(Pt.current||[]),(0,Se.Z)(j({treeData:Ie,expandedKeys:P,startKey:St,endKey:Ze.current,fieldNames:at}))))),$e.selectedNodes=Ye(Ie,Ae,at)):(Ae=[St],Ze.current=St,Pt.current=Ae,$e.selectedNodes=Ye(Ie,Ae,at)),(Te=It.onSelect)===null||Te===void 0||Te.call(It,Ae,$e),"selectedKeys"in It||Ke(Ae)},{getPrefixCls:b,direction:K}=M.useContext(I.E_),{prefixCls:ee,className:Ee,showIcon:le=!0,expandAction:ue="click"}=It,Qe=oe(It,["prefixCls","className","showIcon","expandAction"]),ke=b("tree",ee),ie=O()(`${ke}-directory`,{[`${ke}-directory-rtl`]:K==="rtl"},Ee);return M.createElement(pe,Object.assign({icon:he,ref:Nt,blockNode:!0},Qe,{showIcon:le,expandAction:ue,prefixCls:ke,className:ie,expandedKeys:P,selectedKeys:x,onSelect:C,onExpand:h}))};var se=M.forwardRef(me);const Je=pe;Je.DirectoryTree=se,Je.TreeNode=s.OF;var mt=Je},12425:function(nr,Zt,p){"use strict";p.d(Zt,{ZP:function(){return T},Yk:function(){return B},TM:function(){return D}});var s=p(36237),Se=p(36170),M=p(63356),we=p(34961),te=p(51636),$=p(16931);const Z=E=>{let{treeCls:I,treeNodeCls:U,directoryNodeSelectedBg:W,directoryNodeSelectedColor:re,motionDurationMid:k,borderRadius:H,controlItemBgHover:de}=E;return{[`${I}${I}-directory ${U}`]:{[`${I}-node-content-wrapper`]:{position:"static",[`> *:not(${I}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${k}`,content:'""',borderRadius:H},"&:hover:before":{background:de}},[`${I}-switcher, ${I}-checkbox, ${I}-draggable-icon`]:{zIndex:1},"&-selected":{[`${I}-switcher, ${I}-draggable-icon`]:{color:re},[`${I}-node-content-wrapper`]:{color:re,background:"transparent","&:before, &:hover:before":{background:W}}}}}},v=new s.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),N=(E,I)=>({[`.${E}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${I.motionDurationSlow}`}}}),i=(E,I)=>({[`.${E}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:I.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,s.unit)(I.lineWidthBold)} solid ${I.colorPrimary}`,borderRadius:"50%",content:'""'}}}),L=(E,I)=>{const{treeCls:U,treeNodeCls:W,treeNodePadding:re,titleHeight:k,indentSize:H,nodeSelectedBg:de,nodeHoverBg:ce,colorTextQuaternary:Fe,controlItemBgActiveDisabled:ve}=I;return{[U]:Object.assign(Object.assign({},(0,M.Wf)(I)),{background:I.colorBgContainer,borderRadius:I.borderRadius,transition:`background-color ${I.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${U}-rtl ${U}-switcher_close ${U}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${U}-active-focused)`]:Object.assign({},(0,M.oN)(I)),[`${U}-list-holder-inner`]:{alignItems:"flex-start"},[`&${U}-block-node`]:{[`${U}-list-holder-inner`]:{alignItems:"stretch",[`${U}-node-content-wrapper`]:{flex:"auto"},[`${W}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${I.colorPrimary}`,opacity:0,animationName:v,animationDuration:I.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:I.borderRadius}}},[W]:{display:"flex",alignItems:"flex-start",marginBottom:re,lineHeight:(0,s.unit)(k),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:re},[`&-disabled ${U}-node-content-wrapper`]:{color:I.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${U}-checkbox-disabled + ${U}-node-selected,&${W}-disabled${W}-selected ${U}-node-content-wrapper`]:{backgroundColor:ve},[`${U}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${W}-disabled)`]:{[`${U}-node-content-wrapper`]:{"&:hover":{color:I.nodeHoverColor}}},[`&-active ${U}-node-content-wrapper`]:{background:I.controlItemBgHover},[`&:not(${W}-disabled).filter-node ${U}-title`]:{color:I.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${U}-draggable-icon`]:{flexShrink:0,width:k,textAlign:"center",visibility:"visible",color:Fe},[`&${W}-disabled ${U}-draggable-icon`]:{visibility:"hidden"}}},[`${U}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:H}},[`${U}-draggable-icon`]:{visibility:"hidden"},[`${U}-switcher, ${U}-checkbox`]:{marginInlineEnd:I.calc(I.calc(k).sub(I.controlInteractiveSize)).div(2).equal()},[`${U}-switcher`]:Object.assign(Object.assign({},N(E,I)),{position:"relative",flex:"none",alignSelf:"stretch",width:k,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${I.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:k,height:k,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:I.borderRadius,transition:`all ${I.motionDurationSlow}`},[`&:not(${U}-switcher-noop):hover:before`]:{backgroundColor:I.colorBgTextHover},[`&_close ${U}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:I.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:I.calc(k).div(2).equal(),bottom:I.calc(re).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:I.calc(I.calc(k).div(2).equal()).mul(.8).equal(),height:I.calc(k).div(2).equal(),borderBottom:`1px solid ${I.colorBorder}`,content:'""'}}}),[`${U}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:k,paddingBlock:0,paddingInline:I.paddingXS,background:"transparent",borderRadius:I.borderRadius,cursor:"pointer",transition:`all ${I.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},i(E,I)),{"&:hover":{backgroundColor:ce},[`&${U}-node-selected`]:{color:I.nodeSelectedColor,backgroundColor:de},[`${U}-iconEle`]:{display:"inline-block",width:k,height:k,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${U}-unselectable ${U}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${W}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${I.colorPrimary}`},"&-show-line":{[`${U}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:I.calc(k).div(2).equal(),bottom:I.calc(re).mul(-1).equal(),borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${U}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${W}-leaf-last ${U}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,s.unit)(I.calc(k).div(2).equal())} !important`}})}},B=function(E,I){let U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const W=`.${E}`,re=`${W}-treenode`,k=I.calc(I.paddingXS).div(2).equal(),H=(0,te.mergeToken)(I,{treeCls:W,treeNodeCls:re,treeNodePadding:k});return[L(E,H),U&&Z(H)].filter(Boolean)},D=E=>{const{controlHeightSM:I,controlItemBgHover:U,controlItemBgActive:W}=E,re=I;return{titleHeight:re,indentSize:re,nodeHoverBg:U,nodeHoverColor:E.colorText,nodeSelectedBg:W,nodeSelectedColor:E.colorText}},O=E=>{const{colorTextLightSolid:I,colorPrimary:U}=E;return Object.assign(Object.assign({},D(E)),{directoryNodeSelectedColor:I,directoryNodeSelectedBg:U})};var T=(0,$.I$)("Tree",(E,I)=>{let{prefixCls:U}=I;return[{[E.componentCls]:(0,Se.C2)(`${U}-checkbox`,E)},B(U,E),(0,we.Z)(E)]},O)},85278:function(nr,Zt,p){"use strict";p.d(Zt,{Z:function(){return I}});var s=p(59301),Se=p(54476),M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},we=M,te=p(7657),$=function(W,re){return s.createElement(te.Z,(0,Se.Z)({},W,{ref:re,icon:we}))},Z=s.forwardRef($),v=Z,N=p(52671),i=p(58617),L=p(15075),B=p(43531),D=p(92310),O=p.n(D),T=p(22703),I=U=>{const{prefixCls:W,switcherIcon:re,treeNodeProps:k,showLine:H,switcherLoadingIcon:de}=U,{isLeaf:ce,expanded:Fe,loading:ve}=k;if(ve)return s.isValidElement(de)?de:s.createElement(i.Z,{className:`${W}-switcher-loading-icon`});let pe;if(H&&typeof H=="object"&&(pe=H.showLeafIcon),ce){if(!H)return null;if(typeof pe!="boolean"&&pe){const ge=typeof pe=="function"?pe(k):pe,g=`${W}-switcher-line-custom-icon`;return s.isValidElement(ge)?(0,T.Tm)(ge,{className:O()(ge.props.className||"",g)}):ge}return pe?s.createElement(N.Z,{className:`${W}-switcher-line-icon`}):s.createElement("span",{className:`${W}-switcher-leaf-line`})}const Ce=`${W}-switcher-icon`,G=typeof re=="function"?re(k):re;return s.isValidElement(G)?(0,T.Tm)(G,{className:O()(G.props.className||"",Ce)}):G!==void 0?G:H?Fe?s.createElement(L.Z,{className:`${W}-switcher-line-icon`}):s.createElement(B.Z,{className:`${W}-switcher-line-icon`}):s.createElement(v,{className:Ce})}},86251:function(nr,Zt){"use strict";Zt.byteLength=Z,Zt.toByteArray=N,Zt.fromByteArray=B;for(var p=[],s=[],Se=typeof Uint8Array!="undefined"?Uint8Array:Array,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",we=0,te=M.length;we0)throw new Error("Invalid string. Length must be a multiple of 4");var T=D.indexOf("=");T===-1&&(T=O);var E=T===O?0:4-T%4;return[T,E]}function Z(D){var O=$(D),T=O[0],E=O[1];return(T+E)*3/4-E}function v(D,O,T){return(O+T)*3/4-T}function N(D){var O,T=$(D),E=T[0],I=T[1],U=new Se(v(D,E,I)),W=0,re=I>0?E-4:E,k;for(k=0;k>16&255,U[W++]=O>>8&255,U[W++]=O&255;return I===2&&(O=s[D.charCodeAt(k)]<<2|s[D.charCodeAt(k+1)]>>4,U[W++]=O&255),I===1&&(O=s[D.charCodeAt(k)]<<10|s[D.charCodeAt(k+1)]<<4|s[D.charCodeAt(k+2)]>>2,U[W++]=O>>8&255,U[W++]=O&255),U}function i(D){return p[D>>18&63]+p[D>>12&63]+p[D>>6&63]+p[D&63]}function L(D,O,T){for(var E,I=[],U=O;Ure?re:W+U));return E===1?(O=D[T-1],I.push(p[O>>2]+p[O<<4&63]+"==")):E===2&&(O=(D[T-2]<<8)+D[T-1],I.push(p[O>>10]+p[O>>4&63]+p[O<<2&63]+"=")),I.join("")}},19208:function(nr,Zt,p){"use strict";var s;var Se=p(86251),M=p(67467),we=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zt.lW=v,s=W,Zt.h2=50;var te=2147483647;s=te,v.TYPED_ARRAY_SUPPORT=$(),!v.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function $(){try{var P=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf(P,A),P.foo()===42}catch(h){return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function Z(P){if(P>te)throw new RangeError('The value "'+P+'" is invalid for option "size"');var A=new Uint8Array(P);return Object.setPrototypeOf(A,v.prototype),A}function v(P,A,h){if(typeof P=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(P)}return N(P,A,h)}v.poolSize=8192;function N(P,A,h){if(typeof P=="string")return D(P,A);if(ArrayBuffer.isView(P))return T(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(ct(P,ArrayBuffer)||P&&ct(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ct(P,SharedArrayBuffer)||P&&ct(P.buffer,SharedArrayBuffer)))return E(P,A,h);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=P.valueOf&&P.valueOf();if(C!=null&&C!==P)return v.from(C,A,h);var b=I(P);if(b)return b;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return v.from(P[Symbol.toPrimitive]("string"),A,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}v.from=function(P,A,h){return N(P,A,h)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function i(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function L(P,A,h){return i(P),P<=0?Z(P):A!==void 0?typeof h=="string"?Z(P).fill(A,h):Z(P).fill(A):Z(P)}v.alloc=function(P,A,h){return L(P,A,h)};function B(P){return i(P),Z(P<0?0:U(P)|0)}v.allocUnsafe=function(P){return B(P)},v.allocUnsafeSlow=function(P){return B(P)};function D(P,A){if((typeof A!="string"||A==="")&&(A="utf8"),!v.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var h=re(P,A)|0,C=Z(h),b=C.write(P,A);return b!==h&&(C=C.slice(0,b)),C}function O(P){for(var A=P.length<0?0:U(P.length)|0,h=Z(A),C=0;C=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return P|0}function W(P){return+P!=P&&(P=0),v.alloc(+P)}v.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==v.prototype},v.compare=function(A,h){if(ct(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),ct(h,Uint8Array)&&(h=v.from(h,h.offset,h.byteLength)),!v.isBuffer(A)||!v.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===h)return 0;for(var C=A.length,b=h.length,K=0,ee=Math.min(C,b);Kb.length?v.from(ee).copy(b,K):Uint8Array.prototype.set.call(b,ee,K);else if(v.isBuffer(ee))ee.copy(b,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return b};function re(P,A){if(v.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||ct(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);var h=P.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&h===0)return 0;for(var b=!1;;)switch(A){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return zt(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Ze(P).length;default:if(b)return C?-1:zt(P).length;A=(""+A).toLowerCase(),b=!0}}v.byteLength=re;function k(P,A,h){var C=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,A>>>=0,h<=A))return"";for(P||(P="utf8");;)switch(P){case"hex":return be(this,A,h);case"utf8":case"utf-8":return g(this,A,h);case"ascii":return oe(this,A,h);case"latin1":case"binary":return he(this,A,h);case"base64":return ge(this,A,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,h);default:if(C)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),C=!0}}v.prototype._isBuffer=!0;function H(P,A,h){var C=P[A];P[A]=P[h],P[h]=C}v.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;hh&&(A+=" ... "),""},we&&(v.prototype[we]=v.prototype.inspect),v.prototype.compare=function(A,h,C,b,K){if(ct(A,Uint8Array)&&(A=v.from(A,A.offset,A.byteLength)),!v.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(h===void 0&&(h=0),C===void 0&&(C=A?A.length:0),b===void 0&&(b=0),K===void 0&&(K=this.length),h<0||C>A.length||b<0||K>this.length)throw new RangeError("out of range index");if(b>=K&&h>=C)return 0;if(b>=K)return-1;if(h>=C)return 1;if(h>>>=0,C>>>=0,b>>>=0,K>>>=0,this===A)return 0;for(var ee=K-b,Ee=C-h,le=Math.min(ee,Ee),ue=this.slice(b,K),Qe=A.slice(h,C),ke=0;ke2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,x(h)&&(h=b?0:P.length-1),h<0&&(h=P.length+h),h>=P.length){if(b)return-1;h=P.length-1}else if(h<0)if(b)h=0;else return-1;if(typeof A=="string"&&(A=v.from(A,C)),v.isBuffer(A))return A.length===0?-1:ce(P,A,h,C,b);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(P,A,h):Uint8Array.prototype.lastIndexOf.call(P,A,h):ce(P,[A],h,C,b);throw new TypeError("val must be string, number or Buffer")}function ce(P,A,h,C,b){var K=1,ee=P.length,Ee=A.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(P.length<2||A.length<2)return-1;K=2,ee/=2,Ee/=2,h/=2}function le(X,tt){return K===1?X[tt]:X.readUInt16BE(tt*K)}var ue;if(b){var Qe=-1;for(ue=h;ueee&&(h=ee-Ee),ue=h;ue>=0;ue--){for(var ke=!0,ie=0;ieb&&(C=b)):C=b;var K=A.length;C>K/2&&(C=K/2);for(var ee=0;ee>>0,isFinite(C)?(C=C>>>0,b===void 0&&(b="utf8")):(b=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-h;if((C===void 0||C>K)&&(C=K),A.length>0&&(C<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");for(var ee=!1;;)switch(b){case"hex":return Fe(this,A,h,C);case"utf8":case"utf-8":return ve(this,A,h,C);case"ascii":case"latin1":case"binary":return pe(this,A,h,C);case"base64":return Ce(this,A,h,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,h,C);default:if(ee)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),ee=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ge(P,A,h){return A===0&&h===P.length?Se.fromByteArray(P):Se.fromByteArray(P.slice(A,h))}function g(P,A,h){h=Math.min(P.length,h);for(var C=[],b=A;b239?4:K>223?3:K>191?2:1;if(b+Ee<=h){var le,ue,Qe,ke;switch(Ee){case 1:K<128&&(ee=K);break;case 2:le=P[b+1],(le&192)===128&&(ke=(K&31)<<6|le&63,ke>127&&(ee=ke));break;case 3:le=P[b+1],ue=P[b+2],(le&192)===128&&(ue&192)===128&&(ke=(K&15)<<12|(le&63)<<6|ue&63,ke>2047&&(ke<55296||ke>57343)&&(ee=ke));break;case 4:le=P[b+1],ue=P[b+2],Qe=P[b+3],(le&192)===128&&(ue&192)===128&&(Qe&192)===128&&(ke=(K&15)<<18|(le&63)<<12|(ue&63)<<6|Qe&63,ke>65535&&ke<1114112&&(ee=ke))}}ee===null?(ee=65533,Ee=1):ee>65535&&(ee-=65536,C.push(ee>>>10&1023|55296),ee=56320|ee&1023),C.push(ee),b+=Ee}return Ye(C)}var j=4096;function Ye(P){var A=P.length;if(A<=j)return String.fromCharCode.apply(String,P);for(var h="",C=0;CC)&&(h=C);for(var b="",K=A;KC&&(A=C),h<0?(h+=C,h<0&&(h=0)):h>C&&(h=C),hh)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(A,h,C){A=A>>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=this[A],K=1,ee=0;++ee>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=this[A+--h],K=1;h>0&&(K*=256);)b+=this[A+--h]*K;return b},v.prototype.readUint8=v.prototype.readUInt8=function(A,h){return A=A>>>0,h||ae(A,1,this.length),this[A]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(A,h){return A=A>>>0,h||ae(A,2,this.length),this[A]|this[A+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(A,h){return A=A>>>0,h||ae(A,2,this.length),this[A]<<8|this[A+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},v.prototype.readIntLE=function(A,h,C){A=A>>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=this[A],K=1,ee=0;++ee=K&&(b-=Math.pow(2,8*h)),b},v.prototype.readIntBE=function(A,h,C){A=A>>>0,h=h>>>0,C||ae(A,h,this.length);for(var b=h,K=1,ee=this[A+--b];b>0&&(K*=256);)ee+=this[A+--b]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*h)),ee},v.prototype.readInt8=function(A,h){return A=A>>>0,h||ae(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},v.prototype.readInt16LE=function(A,h){A=A>>>0,h||ae(A,2,this.length);var C=this[A]|this[A+1]<<8;return C&32768?C|4294901760:C},v.prototype.readInt16BE=function(A,h){A=A>>>0,h||ae(A,2,this.length);var C=this[A+1]|this[A]<<8;return C&32768?C|4294901760:C},v.prototype.readInt32LE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},v.prototype.readInt32BE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},v.prototype.readFloatLE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),M.read(this,A,!0,23,4)},v.prototype.readFloatBE=function(A,h){return A=A>>>0,h||ae(A,4,this.length),M.read(this,A,!1,23,4)},v.prototype.readDoubleLE=function(A,h){return A=A>>>0,h||ae(A,8,this.length),M.read(this,A,!0,52,8)},v.prototype.readDoubleBE=function(A,h){return A=A>>>0,h||ae(A,8,this.length),M.read(this,A,!1,52,8)};function se(P,A,h,C,b,K){if(!v.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>b||AP.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(A,h,C,b){if(A=+A,h=h>>>0,C=C>>>0,!b){var K=Math.pow(2,8*C)-1;se(this,A,h,C,K,0)}var ee=1,Ee=0;for(this[h]=A&255;++Ee>>0,C=C>>>0,!b){var K=Math.pow(2,8*C)-1;se(this,A,h,C,K,0)}var ee=C-1,Ee=1;for(this[h+ee]=A&255;--ee>=0&&(Ee*=256);)this[h+ee]=A/Ee&255;return h+C},v.prototype.writeUint8=v.prototype.writeUInt8=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,1,255,0),this[h]=A&255,h+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,2,65535,0),this[h]=A&255,this[h+1]=A>>>8,h+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,2,65535,0),this[h]=A>>>8,this[h+1]=A&255,h+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,4,4294967295,0),this[h+3]=A>>>24,this[h+2]=A>>>16,this[h+1]=A>>>8,this[h]=A&255,h+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,4,4294967295,0),this[h]=A>>>24,this[h+1]=A>>>16,this[h+2]=A>>>8,this[h+3]=A&255,h+4},v.prototype.writeIntLE=function(A,h,C,b){if(A=+A,h=h>>>0,!b){var K=Math.pow(2,8*C-1);se(this,A,h,C,K-1,-K)}var ee=0,Ee=1,le=0;for(this[h]=A&255;++ee>0)-le&255;return h+C},v.prototype.writeIntBE=function(A,h,C,b){if(A=+A,h=h>>>0,!b){var K=Math.pow(2,8*C-1);se(this,A,h,C,K-1,-K)}var ee=C-1,Ee=1,le=0;for(this[h+ee]=A&255;--ee>=0&&(Ee*=256);)A<0&&le===0&&this[h+ee+1]!==0&&(le=1),this[h+ee]=(A/Ee>>0)-le&255;return h+C},v.prototype.writeInt8=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,1,127,-128),A<0&&(A=255+A+1),this[h]=A&255,h+1},v.prototype.writeInt16LE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,2,32767,-32768),this[h]=A&255,this[h+1]=A>>>8,h+2},v.prototype.writeInt16BE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,2,32767,-32768),this[h]=A>>>8,this[h+1]=A&255,h+2},v.prototype.writeInt32LE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,4,2147483647,-2147483648),this[h]=A&255,this[h+1]=A>>>8,this[h+2]=A>>>16,this[h+3]=A>>>24,h+4},v.prototype.writeInt32BE=function(A,h,C){return A=+A,h=h>>>0,C||se(this,A,h,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[h]=A>>>24,this[h+1]=A>>>16,this[h+2]=A>>>8,this[h+3]=A&255,h+4};function Je(P,A,h,C,b,K){if(h+C>P.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function mt(P,A,h,C,b){return A=+A,h=h>>>0,b||Je(P,A,h,4,34028234663852886e22,-34028234663852886e22),M.write(P,A,h,C,23,4),h+4}v.prototype.writeFloatLE=function(A,h,C){return mt(this,A,h,!0,C)},v.prototype.writeFloatBE=function(A,h,C){return mt(this,A,h,!1,C)};function Me(P,A,h,C,b){return A=+A,h=h>>>0,b||Je(P,A,h,8,17976931348623157e292,-17976931348623157e292),M.write(P,A,h,C,52,8),h+8}v.prototype.writeDoubleLE=function(A,h,C){return Me(this,A,h,!0,C)},v.prototype.writeDoubleBE=function(A,h,C){return Me(this,A,h,!1,C)},v.prototype.copy=function(A,h,C,b){if(!v.isBuffer(A))throw new TypeError("argument should be a Buffer");if(C||(C=0),!b&&b!==0&&(b=this.length),h>=A.length&&(h=A.length),h||(h=0),b>0&&b=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),A.length-h>>0,C=C===void 0?this.length:C>>>0,A||(A=0);var ee;if(typeof A=="number")for(ee=h;ee55295&&h<57344){if(!b){if(h>56319){(A-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===C){(A-=3)>-1&&K.push(239,191,189);continue}b=h;continue}if(h<56320){(A-=3)>-1&&K.push(239,191,189),b=h;continue}h=(b-55296<<10|h-56320)+65536}else b&&(A-=3)>-1&&K.push(239,191,189);if(b=null,h<128){if((A-=1)<0)break;K.push(h)}else if(h<2048){if((A-=2)<0)break;K.push(h>>6|192,h&63|128)}else if(h<65536){if((A-=3)<0)break;K.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((A-=4)<0)break;K.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return K}function je(P){for(var A=[],h=0;h>8,b=h%256,K.push(b),K.push(C);return K}function Ze(P){return Se.toByteArray(yt(P))}function Pt(P,A,h,C){for(var b=0;b=A.length||b>=P.length);++b)A[b+h]=P[b];return b}function ct(P,A){return P instanceof A||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===A.name}function x(P){return P!==P}var Ke=function(){for(var P="0123456789abcdef",A=new Array(256),h=0;h<16;++h)for(var C=h*16,b=0;b<16;++b)A[C+b]=P[h]+P[b];return A}()},64270:function(nr){(function(Zt,p){nr.exports=p()})(this,function(){"use strict";var Zt=function(c,a){return Zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var R in d)Object.prototype.hasOwnProperty.call(d,R)&&(f[R]=d[R])},Zt(c,a)};function p(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Zt(c,a);function f(){this.constructor=c}c.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}var s=function(){return s=Object.assign||function(a){for(var f,d=1,R=arguments.length;d0&&ne[ne.length-1])&&(Kt[0]===6||Kt[0]===2)){f=0;continue}if(Kt[0]===3&&(!ne||Kt[1]>ne[0]&&Kt[1]=55296&&R<=56319&&f>10)+55296,Ue%1024+56320)),(R+1===f||d.length>16384)&&(ne+=String.fromCharCode.apply(String,d),d.length=0)}return ne},i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),B=0;B>4,$t[R++]=(Ue&15)<<4|nt>>2,$t[R++]=(nt&3)<<6|et&63;return Kt},I=function(c){for(var a=c.length,f=[],d=0;d>W,ce=1<>W,pe=de+ve,Ce=pe,G=32,ge=Ce+G,g=65536>>re,j=1<=0){if(a<55296||a>56319&&a<=65535)return f=this.index[a>>W],f=(f<>W)],f=(f<>re),f=this.index[f],f+=a>>W&Ye,f=this.index[f],f=(f<Me?(R.push(!0),nt-=Me):R.push(!1),["normal","auto","loose"].indexOf(a)!==-1&&[8208,8211,12316,12448].indexOf(ne)!==-1)return d.push(Ue),f.push(b);if(nt===je||nt===Ke){if(Ue===0)return d.push(Ue),f.push(Ge);var et=f[Ue-1];return er.indexOf(et)===-1?(d.push(d[Ue-1]),f.push(et)):(d.push(Ue),f.push(Ge))}if(d.push(Ue),nt===Ut)return f.push(a==="strict"?ue:Ae);if(nt===en||nt===at)return f.push(Ge);if(nt===En)return ne>=131072&&ne<=196605||ne>=196608&&ne<=262141?f.push(Ae):f.push(Ge);f.push(nt)}),[d,f,R]},Jn=function(c,a,f,d){var R=d[f];if(Array.isArray(c)?c.indexOf(R)!==-1:c===R)for(var ne=f;ne<=d.length;){ne++;var Ue=d[ne];if(Ue===a)return!0;if(Ue!==x)break}if(R===x)for(var ne=f;ne>0;){ne--;var nt=d[ne];if(Array.isArray(c)?c.indexOf(nt)!==-1:c===nt)for(var et=f;et<=d.length;){et++;var Ue=d[et];if(Ue===a)return!0;if(Ue!==x)break}if(nt!==x)break}return!1},zr=function(c,a){for(var f=c;f>=0;){var d=a[f];if(d===x)f--;else return d}return 0},pr=function(c,a,f,d,R){if(f[d]===0)return tn;var ne=d-1;if(Array.isArray(R)&&R[ne]===!0)return tn;var Ue=ne-1,nt=ne+1,et=a[ne],Kt=Ue>=0?a[Ue]:0,$t=a[nt];if(et===yt&&$t===zt)return tn;if(In.indexOf(et)!==-1)return ln;if(In.indexOf($t)!==-1||Kn.indexOf($t)!==-1)return tn;if(zr(ne,a)===Pt)return Yt;if(cn.get(c[ne])===Ke||(et===St||et===Ie)&&cn.get(c[nt])===Ke||et===Ze||$t===Ze||et===ct||[x,A,C].indexOf(et)===-1&&$t===ct||[K,ee,Ee,ie,Et].indexOf($t)!==-1||zr(ne,a)===Qe||Jn(ke,Qe,ne,a)||Jn([K,ee],ue,ne,a)||Jn(P,P,ne,a))return tn;if(et===x)return Yt;if(et===ke||$t===ke)return tn;if($t===b||et===b)return Yt;if([A,C,ue].indexOf($t)!==-1||et===h||Kt===Qt&&Lr.indexOf(et)!==-1||et===Et&&$t===Qt||$t===le||yn.indexOf($t)!==-1&&et===X||yn.indexOf(et)!==-1&&$t===X||et===Te&&[Ae,St,Ie].indexOf($t)!==-1||[Ae,St,Ie].indexOf(et)!==-1&&$t===tt||yn.indexOf(et)!==-1&&qn.indexOf($t)!==-1||qn.indexOf(et)!==-1&&yn.indexOf($t)!==-1||[Te,tt].indexOf(et)!==-1&&($t===X||[Qe,C].indexOf($t)!==-1&&a[nt+1]===X)||[Qe,C].indexOf(et)!==-1&&$t===X||et===X&&[X,Et,ie].indexOf($t)!==-1)return tn;if([X,Et,ie,K,ee].indexOf($t)!==-1)for(var an=ne;an>=0;){var Rn=a[an];if(Rn===X)return tn;if([Et,ie].indexOf(Rn)!==-1)an--;else break}if([Te,tt].indexOf($t)!==-1)for(var an=[K,ee].indexOf(et)!==-1?Ue:ne;an>=0;){var Rn=a[an];if(Rn===X)return tn;if([Et,ie].indexOf(Rn)!==-1)an--;else break}if(Oe===et&&[Oe,We,$e,ut].indexOf($t)!==-1||[We,$e].indexOf(et)!==-1&&[We,vt].indexOf($t)!==-1||[vt,ut].indexOf(et)!==-1&&$t===vt||xr.indexOf(et)!==-1&&[le,tt].indexOf($t)!==-1||xr.indexOf($t)!==-1&&et===Te||yn.indexOf(et)!==-1&&yn.indexOf($t)!==-1||et===ie&&yn.indexOf($t)!==-1||yn.concat(X).indexOf(et)!==-1&&$t===Qe&&xn.indexOf(c[nt])===-1||yn.concat(X).indexOf($t)!==-1&&et===ee)return tn;if(et===Rt&&$t===Rt){for(var eo=f[ne],cr=1;eo>0&&(eo--,a[eo]===Rt);)cr++;if(cr%2!==0)return tn}return et===St&&$t===Ie?tn:Yt},ao=function(c,a){a||(a={lineBreak:"normal",wordBreak:"normal"});var f=fr(c,a.lineBreak),d=f[0],R=f[1],ne=f[2];(a.wordBreak==="break-all"||a.wordBreak==="break-word")&&(R=R.map(function(nt){return[X,Ge,en].indexOf(nt)!==-1?Ae:nt}));var Ue=a.wordBreak==="keep-all"?ne.map(function(nt,et){return nt&&c[et]>=19968&&c[et]<=40959}):void 0;return[d,R,Ue]},mo=function(){function c(a,f,d,R){this.codePoints=a,this.required=f===ln,this.start=d,this.end=R}return c.prototype.slice=function(){return N.apply(void 0,this.codePoints.slice(this.start,this.end))},c}(),Dn=function(c,a){var f=v(c),d=ao(f,a),R=d[0],ne=d[1],Ue=d[2],nt=f.length,et=0,Kt=0;return{next:function(){if(Kt>=nt)return{done:!0,value:null};for(var $t=tn;Kt=fa&&c<=57},qo=function(c){return c>=55296&&c<=57343},fi=function(c){return Ao(c)||c>=Xn&&c<=_n||c>=vA&&c<=sa},_a=function(c){return c>=vA&&c<=Qn},lA=function(c){return c>=Xn&&c<=jr},ds=function(c){return _a(c)||lA(c)},Ba=function(c){return c>=_r},Cs=function(c){return c===dt||c===lt||c===Bt},FA=function(c){return ds(c)||Ba(c)||c===Sr},uA=function(c){return FA(c)||Ao(c)||c===hr},ta=function(c){return c>=di&&c<=Xo||c===aa||c>=Ga&&c<=wa||c===Aa},ha=function(c,a){return c!==Re?!1:a!==dt},pi=function(c,a,f){return c===hr?FA(a)||ha(a,f):FA(c)?!0:!!(c===Re&&ha(c,a))},$a=function(c,a,f){return c===_o||c===hr?Ao(a)?!0:a===ri&&Ao(f):Ao(c===ri?a:c)},PA=function(c){var a=0,f=1;(c[a]===_o||c[a]===hr)&&(c[a]===hr&&(f=-1),a++);for(var d=[];Ao(c[a]);)d.push(c[a++]);var R=d.length?parseInt(N.apply(void 0,d),10):0;c[a]===ri&&a++;for(var ne=[];Ao(c[a]);)ne.push(c[a++]);var Ue=ne.length,nt=Ue?parseInt(N.apply(void 0,ne),10):0;(c[a]===Gn||c[a]===sA)&&a++;var et=1;(c[a]===_o||c[a]===hr)&&(c[a]===hr&&(et=-1),a++);for(var Kt=[];Ao(c[a]);)Kt.push(c[a++]);var $t=Kt.length?parseInt(N.apply(void 0,Kt),10):0;return f*(R+nt*Math.pow(10,-Ue))*Math.pow(10,et*$t)},cA={type:2},yA={type:3},TA={type:4},Co={type:13},Zo={type:8},pa={type:21},ja={type:9},Es={type:10},IA={type:11},as={type:12},Qu={type:14},El={type:23},Ou={type:1},ul={type:25},ru={type:24},Ml={type:26},eA={type:27},ou={type:28},cl={type:29},bo={type:31},Oo={type:32},co=function(){function c(){this._value=[]}return c.prototype.write=function(a){this._value=this._value.concat(v(a))},c.prototype.read=function(){for(var a=[],f=this.consumeToken();f!==Oo;)a.push(f),f=this.consumeToken();return a},c.prototype.consumeToken=function(){var a=this.consumeCodePoint();switch(a){case qt:return this.consumeStringToken(qt);case zn:var f=this.peekCodePoint(0),d=this.peekCodePoint(1),R=this.peekCodePoint(2);if(uA(f)||ha(d,R)){var ne=pi(f,d,R)?br:Cn,Ue=this.consumeName();return{type:5,value:Ue,flags:ne}}break;case Yn:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Co;break;case Mn:return this.consumeStringToken(Mn);case sr:return cA;case Wn:return yA;case oi:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Qu;break;case _o:if($a(a,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(a),this.consumeNumericToken();break;case ea:return TA;case hr:var nt=a,et=this.peekCodePoint(0),Kt=this.peekCodePoint(1);if($a(nt,et,Kt))return this.reconsumeCodePoint(a),this.consumeNumericToken();if(pi(nt,et,Kt))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();if(et===hr&&Kt===$i)return this.consumeCodePoint(),this.consumeCodePoint(),ru;break;case ri:if($a(a,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(a),this.consumeNumericToken();break;case Sn:if(this.peekCodePoint(0)===oi)for(this.consumeCodePoint();;){var $t=this.consumeCodePoint();if($t===oi&&($t=this.consumeCodePoint(),$t===Sn))return this.consumeToken();if($t===Yi)return this.consumeToken()}break;case ya:return Ml;case ki:return eA;case Ko:if(this.peekCodePoint(0)===Fr&&this.peekCodePoint(1)===hr&&this.peekCodePoint(2)===hr)return this.consumeCodePoint(),this.consumeCodePoint(),ul;break;case wi:var an=this.peekCodePoint(0),Rn=this.peekCodePoint(1),eo=this.peekCodePoint(2);if(pi(an,Rn,eo)){var Ue=this.consumeName();return{type:7,value:Ue}}break;case Ro:return ou;case Re:if(ha(a,this.peekCodePoint(0)))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();break;case Fi:return cl;case Lo:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Zo;break;case _i:return IA;case zo:return as;case Vr:case gr:var cr=this.peekCodePoint(0),Qr=this.peekCodePoint(1);return cr===_o&&(fi(Qr)||Qr===Xi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(a),this.consumeIdentLikeToken();case Ii:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),ja;if(this.peekCodePoint(0)===Ii)return this.consumeCodePoint(),pa;break;case Oi:if(this.peekCodePoint(0)===bn)return this.consumeCodePoint(),Es;break;case Yi:return Oo}return Cs(a)?(this.consumeWhiteSpace(),bo):Ao(a)?(this.reconsumeCodePoint(a),this.consumeNumericToken()):FA(a)?(this.reconsumeCodePoint(a),this.consumeIdentLikeToken()):{type:6,value:N(a)}},c.prototype.consumeCodePoint=function(){var a=this._value.shift();return typeof a=="undefined"?-1:a},c.prototype.reconsumeCodePoint=function(a){this._value.unshift(a)},c.prototype.peekCodePoint=function(a){return a>=this._value.length?-1:this._value[a]},c.prototype.consumeUnicodeRangeToken=function(){for(var a=[],f=this.consumeCodePoint();fi(f)&&a.length<6;)a.push(f),f=this.consumeCodePoint();for(var d=!1;f===Xi&&a.length<6;)a.push(f),f=this.consumeCodePoint(),d=!0;if(d){var R=parseInt(N.apply(void 0,a.map(function(et){return et===Xi?fa:et})),16),ne=parseInt(N.apply(void 0,a.map(function(et){return et===Xi?_n:et})),16);return{type:30,start:R,end:ne}}var Ue=parseInt(N.apply(void 0,a),16);if(this.peekCodePoint(0)===hr&&fi(this.peekCodePoint(1))){this.consumeCodePoint(),f=this.consumeCodePoint();for(var nt=[];fi(f)&&nt.length<6;)nt.push(f),f=this.consumeCodePoint();var ne=parseInt(N.apply(void 0,nt),16);return{type:30,start:Ue,end:ne}}else return{type:30,start:Ue,end:Ue}},c.prototype.consumeIdentLikeToken=function(){var a=this.consumeName();return a.toLowerCase()==="url"&&this.peekCodePoint(0)===sr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sr?(this.consumeCodePoint(),{type:19,value:a}):{type:20,value:a}},c.prototype.consumeUrlToken=function(){var a=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yi)return{type:22,value:""};var f=this.peekCodePoint(0);if(f===Mn||f===qt){var d=this.consumeStringToken(this.consumeCodePoint());return d.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yi||this.peekCodePoint(0)===Wn)?(this.consumeCodePoint(),{type:22,value:d.value}):(this.consumeBadUrlRemnants(),El)}for(;;){var R=this.consumeCodePoint();if(R===Yi||R===Wn)return{type:22,value:N.apply(void 0,a)};if(Cs(R))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Yi||this.peekCodePoint(0)===Wn?(this.consumeCodePoint(),{type:22,value:N.apply(void 0,a)}):(this.consumeBadUrlRemnants(),El);if(R===qt||R===Mn||R===sr||ta(R))return this.consumeBadUrlRemnants(),El;if(R===Re)if(ha(R,this.peekCodePoint(0)))a.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),El;else a.push(R)}},c.prototype.consumeWhiteSpace=function(){for(;Cs(this.peekCodePoint(0));)this.consumeCodePoint()},c.prototype.consumeBadUrlRemnants=function(){for(;;){var a=this.consumeCodePoint();if(a===Wn||a===Yi)return;ha(a,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},c.prototype.consumeStringSlice=function(a){for(var f=5e4,d="";a>0;){var R=Math.min(f,a);d+=N.apply(void 0,this._value.splice(0,R)),a-=R}return this._value.shift(),d},c.prototype.consumeStringToken=function(a){var f="",d=0;do{var R=this._value[d];if(R===Yi||R===void 0||R===a)return f+=this.consumeStringSlice(d),{type:0,value:f};if(R===dt)return this._value.splice(0,d),Ou;if(R===Re){var ne=this._value[d+1];ne!==Yi&&ne!==void 0&&(ne===dt?(f+=this.consumeStringSlice(d),d=-1,this._value.shift()):ha(R,ne)&&(f+=this.consumeStringSlice(d),f+=N(this.consumeEscapedCodePoint()),d=-1))}d++}while(!0)},c.prototype.consumeNumber=function(){var a=[],f=Or,d=this.peekCodePoint(0);for((d===_o||d===hr)&&a.push(this.consumeCodePoint());Ao(this.peekCodePoint(0));)a.push(this.consumeCodePoint());d=this.peekCodePoint(0);var R=this.peekCodePoint(1);if(d===ri&&Ao(R))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),f=wt;Ao(this.peekCodePoint(0));)a.push(this.consumeCodePoint());d=this.peekCodePoint(0),R=this.peekCodePoint(1);var ne=this.peekCodePoint(2);if((d===Gn||d===sA)&&((R===_o||R===hr)&&Ao(ne)||Ao(R)))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),f=wt;Ao(this.peekCodePoint(0));)a.push(this.consumeCodePoint());return[PA(a),f]},c.prototype.consumeNumericToken=function(){var a=this.consumeNumber(),f=a[0],d=a[1],R=this.peekCodePoint(0),ne=this.peekCodePoint(1),Ue=this.peekCodePoint(2);if(pi(R,ne,Ue)){var nt=this.consumeName();return{type:15,number:f,flags:d,unit:nt}}return R===hn?(this.consumeCodePoint(),{type:16,number:f,flags:d}):{type:17,number:f,flags:d}},c.prototype.consumeEscapedCodePoint=function(){var a=this.consumeCodePoint();if(fi(a)){for(var f=N(a);fi(this.peekCodePoint(0))&&f.length<6;)f+=N(this.consumeCodePoint());Cs(this.peekCodePoint(0))&&this.consumeCodePoint();var d=parseInt(f,16);return d===0||qo(d)||d>1114111?lo:d}return a===Yi?lo:a},c.prototype.consumeName=function(){for(var a="";;){var f=this.consumeCodePoint();if(uA(f))a+=N(f);else if(ha(f,this.peekCodePoint(0)))a+=N(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(f),a}},c}(),vo=function(){function c(a){this._tokens=a}return c.create=function(a){var f=new co;return f.write(a),new c(f.read())},c.parseValue=function(a){return c.create(a).parseComponentValue()},c.parseValues=function(a){return c.create(a).parseComponentValues()},c.prototype.parseComponentValue=function(){for(var a=this.consumeToken();a.type===31;)a=this.consumeToken();if(a.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(a);var f=this.consumeComponentValue();do a=this.consumeToken();while(a.type===31);if(a.type===32)return f;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},c.prototype.parseComponentValues=function(){for(var a=[];;){var f=this.consumeComponentValue();if(f.type===32)return a;a.push(f),a.push()}},c.prototype.consumeComponentValue=function(){var a=this.consumeToken();switch(a.type){case 11:case 28:case 2:return this.consumeSimpleBlock(a.type);case 19:return this.consumeFunction(a)}return a},c.prototype.consumeSimpleBlock=function(a){for(var f={type:a,values:[]},d=this.consumeToken();;){if(d.type===32||Du(d,a))return f;this.reconsumeToken(d),f.values.push(this.consumeComponentValue()),d=this.consumeToken()}},c.prototype.consumeFunction=function(a){for(var f={name:a.value,values:[],type:18};;){var d=this.consumeToken();if(d.type===32||d.type===3)return f;this.reconsumeToken(d),f.values.push(this.consumeComponentValue())}},c.prototype.consumeToken=function(){var a=this._tokens.shift();return typeof a=="undefined"?Oo:a},c.prototype.reconsumeToken=function(a){this._tokens.unshift(a)},c}(),hi=function(c){return c.type===15},na=function(c){return c.type===17},Bi=function(c){return c.type===20},Ns=function(c){return c.type===0},zs=function(c,a){return Bi(c)&&c.value===a},dA=function(c){return c.type!==31},fs=function(c){return c.type!==31&&c.type!==4},RA=function(c){var a=[],f=[];return c.forEach(function(d){if(d.type===4){if(f.length===0)throw new Error("Error parsing function args, zero tokens for arg");a.push(f),f=[];return}d.type!==31&&f.push(d)}),f.length&&a.push(f),a},Du=function(c,a){return a===11&&c.type===12||a===28&&c.type===29?!0:a===2&&c.type===3},tl=function(c){return c.type===17||c.type===15},Oa=function(c){return c.type===16||tl(c)},Qs=function(c){return c.length>1?[c[0],c[1]]:[c[0]]},tA={type:17,number:0,flags:Or},sc={type:16,number:50,flags:Or},dl={type:16,number:100,flags:Or},nl=function(c,a,f){var d=c[0],R=c[1];return[ra(d,a),ra(typeof R!="undefined"?R:d,f)]},ra=function(c,a){if(c.type===16)return c.number/100*a;if(hi(c))switch(c.unit){case"rem":case"em":return 16*c.number;case"px":default:return c.number}return c.number},kc="deg",Id="grad",Kc="rad",nA="turn",Os={name:"angle",parse:function(c,a){if(a.type===15)switch(a.unit){case kc:return Math.PI*a.number/180;case Id:return Math.PI/200*a.number;case Kc:return a.number;case nA:return Math.PI*2*a.number}throw new Error("Unsupported angle type")}},xl=function(c){return c.type===15&&(c.unit===kc||c.unit===Id||c.unit===Kc||c.unit===nA)},lc=function(c){var a=c.filter(Bi).map(function(f){return f.value}).join(" ");switch(a){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tA,tA];case"to top":case"bottom":return rA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tA,dl];case"to right":case"left":return rA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[dl,dl];case"to bottom":case"top":return rA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[dl,tA];case"to left":case"right":return rA(270)}return 0},rA=function(c){return Math.PI*c/180},fl={name:"color",parse:function(c,a){if(a.type===18){var f=Io[a.name];if(typeof f=="undefined")throw new Error('Attempting to parse an unsupported color function "'+a.name+'"');return f(c,a.values)}if(a.type===5){if(a.value.length===3){var d=a.value.substring(0,1),R=a.value.substring(1,2),ne=a.value.substring(2,3);return LA(parseInt(d+d,16),parseInt(R+R,16),parseInt(ne+ne,16),1)}if(a.value.length===4){var d=a.value.substring(0,1),R=a.value.substring(1,2),ne=a.value.substring(2,3),Ue=a.value.substring(3,4);return LA(parseInt(d+d,16),parseInt(R+R,16),parseInt(ne+ne,16),parseInt(Ue+Ue,16)/255)}if(a.value.length===6){var d=a.value.substring(0,2),R=a.value.substring(2,4),ne=a.value.substring(4,6);return LA(parseInt(d,16),parseInt(R,16),parseInt(ne,16),1)}if(a.value.length===8){var d=a.value.substring(0,2),R=a.value.substring(2,4),ne=a.value.substring(4,6),Ue=a.value.substring(6,8);return LA(parseInt(d,16),parseInt(R,16),parseInt(ne,16),parseInt(Ue,16)/255)}}if(a.type===20){var nt=Ki[a.value.toUpperCase()];if(typeof nt!="undefined")return nt}return Ki.TRANSPARENT}},UA=function(c){return(255&c)===0},fA=function(c){var a=255&c,f=255&c>>8,d=255&c>>16,R=255&c>>24;return a<255?"rgba("+R+","+d+","+f+","+a/255+")":"rgb("+R+","+d+","+f+")"},LA=function(c,a,f,d){return(c<<24|a<<16|f<<8|Math.round(d*255)<<0)>>>0},Ud=function(c,a){if(c.type===17)return c.number;if(c.type===16){var f=a===3?1:255;return a===3?c.number/100*f:Math.round(c.number/100*f)}return 0},zc=function(c,a){var f=a.filter(fs);if(f.length===3){var d=f.map(Ud),R=d[0],ne=d[1],Ue=d[2];return LA(R,ne,Ue,1)}if(f.length===4){var nt=f.map(Ud),R=nt[0],ne=nt[1],Ue=nt[2],et=nt[3];return LA(R,ne,Ue,et)}return 0};function NA(c,a,f){return f<0&&(f+=1),f>=1&&(f-=1),f<1/6?(a-c)*f*6+c:f<1/2?a:f<2/3?(a-c)*6*(2/3-f)+c:c}var Hl=function(c,a){var f=a.filter(fs),d=f[0],R=f[1],ne=f[2],Ue=f[3],nt=(d.type===17?rA(d.number):Os.parse(c,d))/(Math.PI*2),et=Oa(R)?R.number/100:0,Kt=Oa(ne)?ne.number/100:0,$t=typeof Ue!="undefined"&&Oa(Ue)?ra(Ue,1):1;if(et===0)return LA(Kt*255,Kt*255,Kt*255,1);var an=Kt<=.5?Kt*(et+1):Kt+et-Kt*et,Rn=Kt*2-an,eo=NA(Rn,an,nt+1/3),cr=NA(Rn,an,nt),Qr=NA(Rn,an,nt-1/3);return LA(eo*255,cr*255,Qr*255,$t)},Io={hsl:Hl,hsla:Hl,rgb:zc,rgba:zc},Do=function(c,a){return fl.parse(c,vo.create(a).parseComponentValue())},Ki={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hs={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(c,a){return a.map(function(f){if(Bi(f))switch(f.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Xa={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wA=function(c,a){var f=fl.parse(c,a[0]),d=a[1];return d&&Oa(d)?{color:f,stop:d}:{color:f,stop:null}},Zs=function(c,a){var f=c[0],d=c[c.length-1];f.stop===null&&(f.stop=tA),d.stop===null&&(d.stop=dl);for(var R=[],ne=0,Ue=0;Uene?R.push(et):R.push(ne),ne=et}else R.push(null)}for(var Kt=null,Ue=0;UeUe.optimumDistance)?{optimumCorner:nt,optimumDistance:$t}:Ue},{optimumDistance:R?1/0:-1/0,optimumCorner:null}).optimumCorner},Pu=function(c,a,f,d,R){var ne=0,Ue=0;switch(c.size){case 0:c.shape===0?ne=Ue=Math.min(Math.abs(a),Math.abs(a-d),Math.abs(f),Math.abs(f-R)):c.shape===1&&(ne=Math.min(Math.abs(a),Math.abs(a-d)),Ue=Math.min(Math.abs(f),Math.abs(f-R)));break;case 2:if(c.shape===0)ne=Ue=Math.min(_A(a,f),_A(a,f-R),_A(a-d,f),_A(a-d,f-R));else if(c.shape===1){var nt=Math.min(Math.abs(f),Math.abs(f-R))/Math.min(Math.abs(a),Math.abs(a-d)),et=pl(d,R,a,f,!0),Kt=et[0],$t=et[1];ne=_A(Kt-a,($t-f)/nt),Ue=nt*ne}break;case 1:c.shape===0?ne=Ue=Math.max(Math.abs(a),Math.abs(a-d),Math.abs(f),Math.abs(f-R)):c.shape===1&&(ne=Math.max(Math.abs(a),Math.abs(a-d)),Ue=Math.max(Math.abs(f),Math.abs(f-R)));break;case 3:if(c.shape===0)ne=Ue=Math.max(_A(a,f),_A(a,f-R),_A(a-d,f),_A(a-d,f-R));else if(c.shape===1){var nt=Math.max(Math.abs(f),Math.abs(f-R))/Math.max(Math.abs(a),Math.abs(a-d)),an=pl(d,R,a,f,!1),Kt=an[0],$t=an[1];ne=_A(Kt-a,($t-f)/nt),Ue=nt*ne}break}return Array.isArray(c.size)&&(ne=ra(c.size[0],d),Ue=c.size.length===2?ra(c.size[1],R):ne),[ne,Ue]},Sl=function(c,a){var f=rA(180),d=[];return RA(a).forEach(function(R,ne){if(ne===0){var Ue=R[0];if(Ue.type===20&&Ue.value==="to"){f=lc(R);return}else if(xl(Ue)){f=Os.parse(c,Ue);return}}var nt=wA(c,R);d.push(nt)}),{angle:f,stops:d,type:1}},Zc=function(c,a){var f=rA(180),d=[];return RA(a).forEach(function(R,ne){if(ne===0){var Ue=R[0];if(Ue.type===20&&["top","left","right","bottom"].indexOf(Ue.value)!==-1){f=lc(R);return}else if(xl(Ue)){f=(Os.parse(c,Ue)+rA(270))%rA(360);return}}var nt=wA(c,R);d.push(nt)}),{angle:f,stops:d,type:1}},wf=function(c,a){var f=rA(180),d=[],R=1,ne=0,Ue=3,nt=[];return RA(a).forEach(function(et,Kt){var $t=et[0];if(Kt===0){if(Bi($t)&&$t.value==="linear"){R=1;return}else if(Bi($t)&&$t.value==="radial"){R=2;return}}if($t.type===18){if($t.name==="from"){var an=fl.parse(c,$t.values[0]);d.push({stop:tA,color:an})}else if($t.name==="to"){var an=fl.parse(c,$t.values[0]);d.push({stop:dl,color:an})}else if($t.name==="color-stop"){var Rn=$t.values.filter(fs);if(Rn.length===2){var an=fl.parse(c,Rn[1]),eo=Rn[0];na(eo)&&d.push({stop:{type:16,number:eo.number*100,flags:eo.flags},color:an})}}}}),R===1?{angle:(f+rA(180))%rA(360),stops:d,type:R}:{size:Ue,shape:ne,stops:d,position:nt,type:R}},uc="closest-side",Ld="farthest-side",Vc="closest-corner",cc="farthest-corner",Bf="circle",Wc="ellipse",Nd="cover",Qd="contain",Di=function(c,a){var f=0,d=3,R=[],ne=[];return RA(a).forEach(function(Ue,nt){var et=!0;if(nt===0){var Kt=!1;et=Ue.reduce(function(an,Rn){if(Kt)if(Bi(Rn))switch(Rn.value){case"center":return ne.push(sc),an;case"top":case"left":return ne.push(tA),an;case"right":case"bottom":return ne.push(dl),an}else(Oa(Rn)||tl(Rn))&&ne.push(Rn);else if(Bi(Rn))switch(Rn.value){case Bf:return f=0,!1;case Wc:return f=1,!1;case"at":return Kt=!0,!1;case uc:return d=0,!1;case Nd:case Ld:return d=1,!1;case Qd:case Vc:return d=2,!1;case cc:return d=3,!1}else if(tl(Rn)||Oa(Rn))return Array.isArray(d)||(d=[]),d.push(Rn),!1;return an},et)}if(et){var $t=wA(c,Ue);R.push($t)}}),{size:d,shape:f,stops:R,position:ne,type:2}},Ds=function(c,a){var f=0,d=3,R=[],ne=[];return RA(a).forEach(function(Ue,nt){var et=!0;if(nt===0?et=Ue.reduce(function($t,an){if(Bi(an))switch(an.value){case"center":return ne.push(sc),!1;case"top":case"left":return ne.push(tA),!1;case"right":case"bottom":return ne.push(dl),!1}else if(Oa(an)||tl(an))return ne.push(an),!1;return $t},et):nt===1&&(et=Ue.reduce(function($t,an){if(Bi(an))switch(an.value){case Bf:return f=0,!1;case Wc:return f=1,!1;case Qd:case uc:return d=0,!1;case Ld:return d=1,!1;case Vc:return d=2,!1;case Nd:case cc:return d=3,!1}else if(tl(an)||Oa(an))return Array.isArray(d)||(d=[]),d.push(an),!1;return $t},et)),et){var Kt=wA(c,Ue);R.push(Kt)}}),{size:d,shape:f,stops:R,position:ne,type:2}},Fl=function(c){return c.type===1},rh=function(c){return c.type===2},Il={name:"image",parse:function(c,a){if(a.type===22){var f={url:a.value,type:0};return c.cache.addImage(a.value),f}if(a.type===18){var d=Gc[a.name];if(typeof d=="undefined")throw new Error('Attempting to parse an unsupported image function "'+a.name+'"');return d(c,a.values)}throw new Error("Unsupported image type "+a.type)}};function bf(c){return!(c.type===20&&c.value==="none")&&(c.type!==18||!!Gc[c.name])}var Gc={"linear-gradient":Sl,"-moz-linear-gradient":Zc,"-ms-linear-gradient":Zc,"-o-linear-gradient":Zc,"-webkit-linear-gradient":Zc,"radial-gradient":Di,"-moz-radial-gradient":Ds,"-ms-radial-gradient":Ds,"-o-radial-gradient":Ds,"-webkit-radial-gradient":Ds,"-webkit-gradient":wf},Cf={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(c,a){if(a.length===0)return[];var f=a[0];return f.type===20&&f.value==="none"?[]:a.filter(function(d){return fs(d)&&bf(d)}).map(function(d){return Il.parse(c,d)})}},Od={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(c,a){return a.map(function(f){if(Bi(f))switch(f.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ef={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(c,a){return RA(a).map(function(f){return f.filter(Oa)}).map(Qs)}},iu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(c,a){return RA(a).map(function(f){return f.filter(Bi).map(function(d){return d.value}).join(" ")}).map(ho)}},ho=function(c){switch(c){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Va;(function(c){c.AUTO="auto",c.CONTAIN="contain",c.COVER="cover"})(Va||(Va={}));var gl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(c,a){return RA(a).map(function(f){return f.filter(au)})}},au=function(c){return Bi(c)||Oa(c)},Ul=function(c){return{name:"border-"+c+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},h0=Ul("top"),Au=Ul("right"),oh=Ul("bottom"),kl=Ul("left"),Dd=function(c){return{name:"border-radius-"+c,initialValue:"0 0",prefix:!1,type:1,parse:function(a,f){return Qs(f.filter(Oa))}}},p0=Dd("top-left"),su=Dd("top-right"),Ps=Dd("bottom-right"),Vs=Dd("bottom-left"),zi=function(c){return{name:"border-"+c+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(a,f){switch(f){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},$c=zi("top"),Pd=zi("right"),ih=zi("bottom"),Tu=zi("left"),Xc=function(c){return{name:"border-"+c+"-width",initialValue:"0",type:0,prefix:!1,parse:function(a,f){return hi(f)?f.number:0}}},Td=Xc("top"),dc=Xc("right"),ah=Xc("bottom"),g0=Xc("left"),ml={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Yc={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(c,a){switch(a){case"rtl":return 1;case"ltr":default:return 0}}},Ah={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(c,a){return a.filter(Bi).reduce(function(f,d){return f|m0(d.value)},0)}},m0=function(c){switch(c){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},fc={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(c,a){switch(a){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},sh={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(c,a){return a.type===20&&a.value==="normal"?0:a.type===17||a.type===15?a.number:0}},hc;(function(c){c.NORMAL="normal",c.STRICT="strict"})(hc||(hc={}));var v0={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(c,a){switch(a){case"strict":return hc.STRICT;case"normal":default:return hc.NORMAL}}},Rd={name:"line-height",initialValue:"normal",prefix:!1,type:4},lh=function(c,a){return Bi(c)&&c.value==="normal"?1.2*a:c.type===17?a*c.number:Oa(c)?ra(c,a):a},uh={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(c,a){return a.type===20&&a.value==="none"?null:Il.parse(c,a)}},ch={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(c,a){switch(a){case"inside":return 0;case"outside":default:return 1}}},_d={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(c,a){switch(a){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},pc=function(c){return{name:"margin-"+c,initialValue:"0",prefix:!1,type:4}},dh=pc("top"),fh=pc("right"),hh=pc("bottom"),ph=pc("left"),gh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(c,a){return a.filter(Bi).map(function(f){switch(f.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ll={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(c,a){switch(a){case"break-word":return"break-word";case"normal":default:return"normal"}}},Jc=function(c){return{name:"padding-"+c,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},mh=Jc("top"),J=Jc("right"),Y=Jc("bottom"),xe=Jc("left"),ze={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(c,a){switch(a){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},rt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(c,a){switch(a){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},pt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(c,a){return a.length===1&&zs(a[0],"none")?[]:RA(a).map(function(f){for(var d={color:Ki.TRANSPARENT,offsetX:tA,offsetY:tA,blur:tA},R=0,ne=0;ne1?1:0],this.overflowWrap=ur(a,Ll,f.overflowWrap),this.paddingTop=ur(a,mh,f.paddingTop),this.paddingRight=ur(a,J,f.paddingRight),this.paddingBottom=ur(a,Y,f.paddingBottom),this.paddingLeft=ur(a,xe,f.paddingLeft),this.paintOrder=ur(a,Br,f.paintOrder),this.position=ur(a,rt,f.position),this.textAlign=ur(a,ze,f.textAlign),this.textDecorationColor=ur(a,vr,(d=f.textDecorationColor)!==null&&d!==void 0?d:f.color),this.textDecorationLine=ur(a,Cr,(R=f.textDecorationLine)!==null&&R!==void 0?R:f.textDecoration),this.textShadow=ur(a,pt,f.textShadow),this.textTransform=ur(a,Dt,f.textTransform),this.transform=ur(a,Ft,f.transform),this.transformOrigin=ur(a,nn,f.transformOrigin),this.visibility=ur(a,dn,f.visibility),this.webkitTextStrokeColor=ur(a,Vo,f.webkitTextStrokeColor),this.webkitTextStrokeWidth=ur(a,Wo,f.webkitTextStrokeWidth),this.wordBreak=ur(a,Pn,f.wordBreak),this.zIndex=ur(a,Ar,f.zIndex)}return c.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},c.prototype.isTransparent=function(){return UA(this.backgroundColor)},c.prototype.isTransformed=function(){return this.transform!==null},c.prototype.isPositioned=function(){return this.position!==0},c.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},c.prototype.isFloating=function(){return this.float!==0},c.prototype.isInlineLevel=function(){return Mr(this.display,4)||Mr(this.display,33554432)||Mr(this.display,268435456)||Mr(this.display,536870912)||Mr(this.display,67108864)||Mr(this.display,134217728)},c}(),Sa=function(){function c(a,f){this.content=ur(a,Pr,f.content),this.quotes=ur(a,Nr,f.quotes)}return c}(),la=function(){function c(a,f){this.counterIncrement=ur(a,Tr,f.counterIncrement),this.counterReset=ur(a,Er,f.counterReset)}return c}(),ur=function(c,a,f){var d=new co,R=f!==null&&typeof f!="undefined"?f.toString():a.initialValue;d.write(R);var ne=new vo(d.read());switch(a.type){case 2:var Ue=ne.parseComponentValue();return a.parse(c,Bi(Ue)?Ue.value:a.initialValue);case 0:return a.parse(c,ne.parseComponentValue());case 1:return a.parse(c,ne.parseComponentValues());case 4:return ne.parseComponentValue();case 3:switch(a.format){case"angle":return Os.parse(c,ne.parseComponentValue());case"color":return fl.parse(c,ne.parseComponentValue());case"image":return Il.parse(c,ne.parseComponentValue());case"length":var nt=ne.parseComponentValue();return tl(nt)?nt:tA;case"length-percentage":var et=ne.parseComponentValue();return Oa(et)?et:tA;case"time":return lr.parse(c,ne.parseComponentValue())}break}},QA="data-html2canvas-debug",ii=function(c){var a=c.getAttribute(QA);switch(a){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ai=function(c,a){var f=ii(c);return f===1||a===f},ua=function(){function c(a,f){if(this.context=a,this.textNodes=[],this.elements=[],this.flags=0,ai(f,3))debugger;this.styles=new Ma(a,window.getComputedStyle(f,null)),bh(f)&&(this.styles.animationDuration.some(function(d){return d>0})&&(f.style.animationDuration="0s"),this.styles.transform!==null&&(f.style.transform="none")),this.bounds=$(this.context,f),ai(f,4)&&(this.flags|=16)}return c}(),BA="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFN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AAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGV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IAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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Ha,Ia=65536>>Zi,ji=1<=0){if(a<55296||a>56319&&a<=65535)return f=this.index[a>>Ji],f=(f<>Ji)],f=(f<>Zi),f=this.index[f],f+=a>>Ji&ga,f=this.index[f],f=(f<=55296&&R<=56319&&f>10)+55296,Ue%1024+56320)),(R+1===f||d.length>16384)&&(ne+=String.fromCharCode.apply(String,d),d.length=0)}return ne},ed=oA(BA),Li="\xD7",uu="\xF7",td=function(c){return ed.get(c)},Po=function(c,a,f){var d=f-2,R=a[d],ne=a[f-1],Ue=a[f];if(ne===HA&&Ue===Gs)return Li;if(ne===HA||ne===Gs||ne===lu||Ue===HA||Ue===Gs||Ue===lu)return uu;if(ne===$A&&[$A,XA,YA,JA].indexOf(Ue)!==-1||(ne===YA||ne===XA)&&(Ue===XA||Ue===kA)||(ne===JA||ne===kA)&&Ue===kA||Ue===xs||Ue===Na||Ue===Ru||ne===Wa)return Li;if(ne===xs&&Ue===vl){for(;R===Na;)R=a[--d];if(R===vl)return Li}if(ne===Ts&&Ue===Ts){for(var nt=0;R===Ts;)nt++,R=a[--d];if(nt%2===0)return Li}return uu},Wi=function(c){var a=$s(c),f=a.length,d=0,R=0,ne=a.map(td);return{next:function(){if(d>=f)return{done:!0,value:null};for(var Ue=Li;dUe.x||$t.y>Ue.y;return Ue=$t,Kt===0?!0:an});return c.body.removeChild(a),nt},Xs=function(){return typeof new Image().crossOrigin!="undefined"},qA=function(){return typeof new XMLHttpRequest().responseType=="string"},KA=function(c){var a=new Image,f=c.createElement("canvas"),d=f.getContext("2d");if(!d)return!1;a.src="data:image/svg+xml,";try{d.drawImage(a,0,0),f.toDataURL()}catch(R){return!1}return!0},jd=function(c){return c[0]===0&&c[1]===255&&c[2]===0&&c[3]===255},Md=function(c){var a=c.createElement("canvas"),f=100;a.width=f,a.height=f;var d=a.getContext("2d");if(!d)return Promise.reject(!1);d.fillStyle="rgb(0, 255, 0)",d.fillRect(0,0,f,f);var R=new Image,ne=a.toDataURL();R.src=ne;var Ue=cu(f,f,0,0,R);return d.fillStyle="red",d.fillRect(0,0,f,f),du(Ue).then(function(nt){d.drawImage(nt,0,0);var et=d.getImageData(0,0,f,f).data;d.fillStyle="red",d.fillRect(0,0,f,f);var Kt=c.createElement("div");return Kt.style.backgroundImage="url("+ne+")",Kt.style.height=f+"px",jd(et)?du(cu(f,f,0,0,Kt)):Promise.reject(!1)}).then(function(nt){return d.drawImage(nt,0,0),jd(d.getImageData(0,0,f,f).data)}).catch(function(){return!1})},cu=function(c,a,f,d,R){var ne="http://www.w3.org/2000/svg",Ue=document.createElementNS(ne,"svg"),nt=document.createElementNS(ne,"foreignObject");return Ue.setAttributeNS(null,"width",c.toString()),Ue.setAttributeNS(null,"height",a.toString()),nt.setAttributeNS(null,"width","100%"),nt.setAttributeNS(null,"height","100%"),nt.setAttributeNS(null,"x",f.toString()),nt.setAttributeNS(null,"y",d.toString()),nt.setAttributeNS(null,"externalResourcesRequired","true"),Ue.appendChild(nt),nt.appendChild(R),Ue},du=function(c){return new Promise(function(a,f){var d=new Image;d.onload=function(){return a(d)},d.onerror=f,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(c))})},zA={get SUPPORT_RANGE_BOUNDS(){var c=bA(document);return Object.defineProperty(zA,"SUPPORT_RANGE_BOUNDS",{value:c}),c},get SUPPORT_WORD_BREAKING(){var c=zA.SUPPORT_RANGE_BOUNDS&&As(document);return Object.defineProperty(zA,"SUPPORT_WORD_BREAKING",{value:c}),c},get SUPPORT_SVG_DRAWING(){var c=KA(document);return Object.defineProperty(zA,"SUPPORT_SVG_DRAWING",{value:c}),c},get SUPPORT_FOREIGNOBJECT_DRAWING(){var c=typeof Array.from=="function"&&typeof window.fetch=="function"?Md(document):Promise.resolve(!1);return Object.defineProperty(zA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:c}),c},get SUPPORT_CORS_IMAGES(){var c=Xs();return Object.defineProperty(zA,"SUPPORT_CORS_IMAGES",{value:c}),c},get SUPPORT_RESPONSE_TYPE(){var c=qA();return Object.defineProperty(zA,"SUPPORT_RESPONSE_TYPE",{value:c}),c},get SUPPORT_CORS_XHR(){var c="withCredentials"in new XMLHttpRequest;return Object.defineProperty(zA,"SUPPORT_CORS_XHR",{value:c}),c},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var c=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(zA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:c}),c}},Kl=function(){function c(a,f){this.text=a,this.bounds=f}return c}(),Hd=function(c,a,f,d){var R=Sf(a,f),ne=[],Ue=0;return R.forEach(function(nt){if(f.textDecorationLine.length||nt.trim().length>0)if(zA.SUPPORT_RANGE_BOUNDS){var et=kd(d,Ue,nt.length).getClientRects();if(et.length>1){var Kt=nd(nt),$t=0;Kt.forEach(function(Rn){ne.push(new Kl(Rn,te.fromDOMRectList(c,kd(d,$t+Ue,Rn.length).getClientRects()))),$t+=Rn.length})}else ne.push(new Kl(nt,te.fromDOMRectList(c,et)))}else{var an=d.splitText(nt.length);ne.push(new Kl(nt,xf(c,d))),d=an}else zA.SUPPORT_RANGE_BOUNDS||(d=d.splitText(nt.length));Ue+=nt.length}),ne},xf=function(c,a){var f=a.ownerDocument;if(f){var d=f.createElement("html2canvaswrapper");d.appendChild(a.cloneNode(!0));var R=a.parentNode;if(R){R.replaceChild(d,a);var ne=$(c,d);return d.firstChild&&R.replaceChild(d.firstChild,d),ne}}return te.EMPTY},kd=function(c,a,f){var d=c.ownerDocument;if(!d)throw new Error("Node has no owner document");var R=d.createRange();return R.setStart(c,a),R.setEnd(c,a+f),R},nd=function(c){if(zA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var a=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(a.segment(c)).map(function(f){return f.segment})}return pA(c)},rd=function(c,a){if(zA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var f=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(f.segment(c)).map(function(d){return d.segment})}return Ff(c,a)},Sf=function(c,a){return a.letterSpacing!==0?nd(c):rd(c,a)},vh=[32,160,4961,65792,65793,4153,4241],Ff=function(c,a){for(var f=Dn(c,{lineBreak:a.lineBreak,wordBreak:a.overflowWrap==="break-word"?"break-word":a.wordBreak}),d=[],R,ne=function(){if(R.value){var Ue=R.value.slice(),nt=v(Ue),et="";nt.forEach(function(Kt){vh.indexOf(Kt)===-1?et+=N(Kt):(et.length&&d.push(et),d.push(N(Kt)),et="")}),et.length&&d.push(et)}};!(R=f.next()).done;)ne();return d},If=function(){function c(a,f,d){this.text=yh(f.data,d.textTransform),this.textBounds=Hd(a,this.text,d,f)}return c}(),yh=function(c,a){switch(a){case 1:return c.toLowerCase();case 3:return c.replace(wh,Bh);case 2:return c.toUpperCase();default:return c}},wh=/(^|\s|:|-|\(|\))([a-z])/g,Bh=function(c,a,f){return c.length>0?a+f.toUpperCase():c},Kd=function(c){p(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.src=d.currentSrc||d.src,R.intrinsicWidth=d.naturalWidth,R.intrinsicHeight=d.naturalHeight,R.context.cache.addImage(R.src),R}return a}(ua),gc=function(c){p(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.canvas=d,R.intrinsicWidth=d.width,R.intrinsicHeight=d.height,R}return a}(ua),od=function(c){p(a,c);function a(f,d){var R=c.call(this,f,d)||this,ne=new XMLSerializer,Ue=$(f,d);return d.setAttribute("width",Ue.width+"px"),d.setAttribute("height",Ue.height+"px"),R.svg="data:image/svg+xml,"+encodeURIComponent(ne.serializeToString(d)),R.intrinsicWidth=d.width.baseVal.value,R.intrinsicHeight=d.height.baseVal.value,R.context.cache.addImage(R.svg),R}return a}(ua),id=function(c){p(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.value=d.value,R}return a}(ua),ad=function(c){p(a,c);function a(f,d){var R=c.call(this,f,d)||this;return R.start=d.start,R.reversed=typeof d.reversed=="boolean"&&d.reversed===!0,R}return a}(ua),yl=[{type:15,flags:0,unit:"px",number:3}],Uf=[{type:16,flags:0,number:50}],Lf=function(c){return c.width>c.height?new te(c.left+(c.width-c.height)/2,c.top,c.height,c.height):c.width0)f.textNodes.push(new If(c,R,f.styles));else if(zl(R))if(E0(R)&&R.assignedNodes)R.assignedNodes().forEach(function(nt){return es(c,nt,f,d)});else{var Ue=ZA(c,R);Ue.styles.isVisible()&&(hu(R,Ue,d)?Ue.flags|=4:pu(Ue.styles)&&(Ue.flags|=2),gA.indexOf(R.tagName)!==-1&&(Ue.flags|=8),f.elements.push(Ue),R.slot,R.shadowRoot?es(c,R.shadowRoot,Ue,d):!zd(R)&&!y0(R)&&!Df(R)&&es(c,R,Ue,d))}},ZA=function(c,a){return Eh(a)?new Kd(c,a):w0(a)?new gc(c,a):y0(a)?new od(c,a):Fp(a)?new id(c,a):Ip(a)?new ad(c,a):Up(a)?new Hu(c,a):Df(a)?new Qf(c,a):zd(a)?new ui(c,a):b0(a)?new Ei(c,a):new ua(c,a)},fu=function(c,a){var f=ZA(c,a);return f.flags|=4,es(c,a,f,f),f},hu=function(c,a,f){return a.styles.isPositionedWithZIndex()||a.styles.opacity<1||a.styles.isTransformed()||Ch(c)&&f.styles.isTransparent()},pu=function(c){return c.isPositioned()||c.isFloating()},ku=function(c){return c.nodeType===Node.TEXT_NODE},zl=function(c){return c.nodeType===Node.ELEMENT_NODE},bh=function(c){return zl(c)&&typeof c.style!="undefined"&&!Of(c)},Of=function(c){return typeof c.className=="object"},Fp=function(c){return c.tagName==="LI"},Ip=function(c){return c.tagName==="OL"},Up=function(c){return c.tagName==="INPUT"},Lp=function(c){return c.tagName==="HTML"},y0=function(c){return c.tagName==="svg"},Ch=function(c){return c.tagName==="BODY"},w0=function(c){return c.tagName==="CANVAS"},B0=function(c){return c.tagName==="VIDEO"},Eh=function(c){return c.tagName==="IMG"},b0=function(c){return c.tagName==="IFRAME"},C0=function(c){return c.tagName==="STYLE"},xh=function(c){return c.tagName==="SCRIPT"},zd=function(c){return c.tagName==="TEXTAREA"},Df=function(c){return c.tagName==="SELECT"},E0=function(c){return c.tagName==="SLOT"},x0=function(c){return c.tagName.indexOf("-")>0},Ig=function(){function c(){this.counters={}}return c.prototype.getCounterValue=function(a){var f=this.counters[a];return f&&f.length?f[f.length-1]:1},c.prototype.getCounterValues=function(a){var f=this.counters[a];return f||[]},c.prototype.pop=function(a){var f=this;a.forEach(function(d){return f.counters[d].pop()})},c.prototype.parse=function(a){var f=this,d=a.counterIncrement,R=a.counterReset,ne=!0;d!==null&&d.forEach(function(nt){var et=f.counters[nt.counter];et&&nt.increment!==0&&(ne=!1,et.length||et.push(1),et[Math.max(0,et.length-1)]+=nt.increment)});var Ue=[];return ne&&R.forEach(function(nt){var et=f.counters[nt.counter];Ue.push(nt.counter),et||(et=f.counters[nt.counter]=[]),et.push(nt.reset)}),Ue},c}(),Sh={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Fh={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Np={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},S0={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},vc=function(c,a,f,d,R,ne){return cf?Vd(c,R,ne.length>0):d.integers.reduce(function(Ue,nt,et){for(;c>=nt;)c-=nt,Ue+=d.values[et];return Ue},"")+ne},Qp=function(c,a,f,d){var R="";do f||c--,R=d(c)+R,c/=a;while(c*a>=a);return R},CA=function(c,a,f,d,R){var ne=f-a+1;return(c<0?"-":"")+(Qp(Math.abs(c),ne,d,function(Ue){return N(Math.floor(Ue%ne)+a)})+R)},Ku=function(c,a,f){f===void 0&&(f=". ");var d=a.length;return Qp(Math.abs(c),d,!1,function(R){return a[Math.floor(R%d)]})+f},yc=1,gu=2,mu=4,Zd=8,vu=function(c,a,f,d,R,ne){if(c<-9999||c>9999)return Vd(c,4,R.length>0);var Ue=Math.abs(c),nt=R;if(Ue===0)return a[0]+nt;for(var et=0;Ue>0&&et<=4;et++){var Kt=Ue%10;Kt===0&&Mr(ne,yc)&&nt!==""?nt=a[Kt]+nt:Kt>1||Kt===1&&et===0||Kt===1&&et===1&&Mr(ne,gu)||Kt===1&&et===1&&Mr(ne,mu)&&c>100||Kt===1&&et>1&&Mr(ne,Zd)?nt=a[Kt]+(et>0?f[et-1]:"")+nt:Kt===1&&et>0&&(nt=f[et-1]+nt),Ue=Math.floor(Ue/10)}return(c<0?d:"")+nt},F0="\u5341\u767E\u5343\u842C",Op="\u62FE\u4F70\u4EDF\u842C",I0="\u30DE\u30A4\u30CA\u30B9",Ih="\uB9C8\uC774\uB108\uC2A4",Vd=function(c,a,f){var d=f?". ":"",R=f?"\u3001":"",ne=f?", ":"",Ue=f?" ":"";switch(a){case 0:return"\u2022"+Ue;case 1:return"\u25E6"+Ue;case 2:return"\u25FE"+Ue;case 5:var nt=CA(c,48,57,!0,d);return nt.length<4?"0"+nt:nt;case 4:return Ku(c,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",R);case 6:return vc(c,1,3999,Sh,3,d).toLowerCase();case 7:return vc(c,1,3999,Sh,3,d);case 8:return CA(c,945,969,!1,d);case 9:return CA(c,97,122,!1,d);case 10:return CA(c,65,90,!1,d);case 11:return CA(c,1632,1641,!0,d);case 12:case 49:return vc(c,1,9999,Fh,3,d);case 35:return vc(c,1,9999,Fh,3,d).toLowerCase();case 13:return CA(c,2534,2543,!0,d);case 14:case 30:return CA(c,6112,6121,!0,d);case 15:return Ku(c,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",R);case 16:return Ku(c,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",R);case 17:case 48:return vu(c,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",F0,"\u8CA0",R,gu|mu|Zd);case 47:return vu(c,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Op,"\u8CA0",R,yc|gu|mu|Zd);case 42:return vu(c,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",F0,"\u8D1F",R,gu|mu|Zd);case 41:return vu(c,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Op,"\u8D1F",R,yc|gu|mu|Zd);case 26:return vu(c,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",I0,R,0);case 25:return vu(c,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",I0,R,yc|gu|mu);case 31:return vu(c,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ih,ne,yc|gu|mu);case 33:return vu(c,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ih,ne,0);case 32:return vu(c,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ih,ne,yc|gu|mu);case 18:return CA(c,2406,2415,!0,d);case 20:return vc(c,1,19999,S0,3,d);case 21:return CA(c,2790,2799,!0,d);case 22:return CA(c,2662,2671,!0,d);case 22:return vc(c,1,10999,Np,3,d);case 23:return Ku(c,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Ku(c,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return CA(c,3302,3311,!0,d);case 28:return Ku(c,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",R);case 29:return Ku(c,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",R);case 34:return CA(c,3792,3801,!0,d);case 37:return CA(c,6160,6169,!0,d);case 38:return CA(c,4160,4169,!0,d);case 39:return CA(c,2918,2927,!0,d);case 40:return CA(c,1776,1785,!0,d);case 43:return CA(c,3046,3055,!0,d);case 44:return CA(c,3174,3183,!0,d);case 45:return CA(c,3664,3673,!0,d);case 46:return CA(c,3872,3881,!0,d);case 3:default:return CA(c,48,57,!0,d)}},U0="data-html2canvas-ignore",Dp=function(){function c(a,f,d){if(this.context=a,this.options=d,this.scrolledElements=[],this.referenceElement=f,this.counters=new Ig,this.quoteDepth=0,!f.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(f.ownerDocument.documentElement,!1)}return c.prototype.toIFrame=function(a,f){var d=this,R=Pp(a,f);if(!R.contentWindow)return Promise.reject("Unable to find iframe window");var ne=a.defaultView.pageXOffset,Ue=a.defaultView.pageYOffset,nt=R.contentWindow,et=nt.document,Kt=Gd(R).then(function(){return Se(d,void 0,void 0,function(){var $t,an;return M(this,function(Rn){switch(Rn.label){case 0:return this.scrolledElements.forEach(Q0),nt&&(nt.scrollTo(f.left,f.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(nt.scrollY!==f.top||nt.scrollX!==f.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(nt.scrollX-f.left,nt.scrollY-f.top,0,0))),$t=this.options.onclone,an=this.clonedReferenceElement,typeof an=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:et.fonts&&et.fonts.ready?[4,et.fonts.ready]:[3,2];case 1:Rn.sent(),Rn.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Tp(et)]:[3,4];case 3:Rn.sent(),Rn.label=4;case 4:return typeof $t=="function"?[2,Promise.resolve().then(function(){return $t(et,an)}).then(function(){return R})]:[2,R]}})})});return et.open(),et.write(Rp(document.doctype)+""),N0(this.referenceElement.ownerDocument,ne,Ue),et.replaceChild(et.adoptNode(this.documentElement),et.documentElement),et.close(),Kt},c.prototype.createElementClone=function(a){if(ai(a,2))debugger;if(w0(a))return this.createCanvasClone(a);if(B0(a))return this.createVideoClone(a);if(C0(a))return this.createStyleClone(a);var f=a.cloneNode(!1);return Eh(f)&&(Eh(a)&&a.currentSrc&&a.currentSrc!==a.src&&(f.src=a.currentSrc,f.srcset=""),f.loading==="lazy"&&(f.loading="eager")),x0(f)?this.createCustomElementClone(f):f},c.prototype.createCustomElementClone=function(a){var f=document.createElement("html2canvascustomelement");return Pf(a.style,f),f},c.prototype.createStyleClone=function(a){try{var f=a.sheet;if(f&&f.cssRules){var d=[].slice.call(f.cssRules,0).reduce(function(ne,Ue){return Ue&&typeof Ue.cssText=="string"?ne+Ue.cssText:ne},""),R=a.cloneNode(!1);return R.textContent=d,R}}catch(ne){if(this.context.logger.error("Unable to access cssRules property",ne),ne.name!=="SecurityError")throw ne}return a.cloneNode(!1)},c.prototype.createCanvasClone=function(a){var f;if(this.options.inlineImages&&a.ownerDocument){var d=a.ownerDocument.createElement("img");try{return d.src=a.toDataURL(),d}catch(Kt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",a)}}var R=a.cloneNode(!1);try{R.width=a.width,R.height=a.height;var ne=a.getContext("2d"),Ue=R.getContext("2d");if(Ue)if(!this.options.allowTaint&&ne)Ue.putImageData(ne.getImageData(0,0,a.width,a.height),0,0);else{var nt=(f=a.getContext("webgl2"))!==null&&f!==void 0?f:a.getContext("webgl");if(nt){var et=nt.getContextAttributes();(et==null?void 0:et.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",a)}Ue.drawImage(a,0,0)}return R}catch(Kt){this.context.logger.info("Unable to clone canvas as it is tainted",a)}return R},c.prototype.createVideoClone=function(a){var f=a.ownerDocument.createElement("canvas");f.width=a.offsetWidth,f.height=a.offsetHeight;var d=f.getContext("2d");try{return d&&(d.drawImage(a,0,0,f.width,f.height),this.options.allowTaint||d.getImageData(0,0,f.width,f.height)),f}catch(ne){this.context.logger.info("Unable to clone video as it is tainted",a)}var R=a.ownerDocument.createElement("canvas");return R.width=a.offsetWidth,R.height=a.offsetHeight,R},c.prototype.appendChildNode=function(a,f,d){(!zl(f)||!xh(f)&&!f.hasAttribute(U0)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(f)))&&(!this.options.copyStyles||!zl(f)||!C0(f))&&a.appendChild(this.cloneNode(f,d))},c.prototype.cloneChildNodes=function(a,f,d){for(var R=this,ne=a.shadowRoot?a.shadowRoot.firstChild:a.firstChild;ne;ne=ne.nextSibling)if(zl(ne)&&E0(ne)&&typeof ne.assignedNodes=="function"){var Ue=ne.assignedNodes();Ue.length&&Ue.forEach(function(nt){return R.appendChildNode(f,nt,d)})}else this.appendChildNode(f,ne,d)},c.prototype.cloneNode=function(a,f){if(ku(a))return document.createTextNode(a.data);if(!a.ownerDocument)return a.cloneNode(!1);var d=a.ownerDocument.defaultView;if(d&&zl(a)&&(bh(a)||Of(a))){var R=this.createElementClone(a);R.style.transitionProperty="none";var ne=d.getComputedStyle(a),Ue=d.getComputedStyle(a,":before"),nt=d.getComputedStyle(a,":after");this.referenceElement===a&&bh(R)&&(this.clonedReferenceElement=R),Ch(R)&&Lg(R);var et=this.counters.parse(new la(this.context,ne)),Kt=this.resolvePseudoContent(a,R,Ue,Wd.BEFORE);x0(a)&&(f=!0),B0(a)||this.cloneChildNodes(a,R,f),Kt&&R.insertBefore(Kt,R.firstChild);var $t=this.resolvePseudoContent(a,R,nt,Wd.AFTER);return $t&&R.appendChild($t),this.counters.pop(et),(ne&&(this.options.copyStyles||Of(a))&&!b0(a)||f)&&Pf(ne,R),(a.scrollTop!==0||a.scrollLeft!==0)&&this.scrolledElements.push([R,a.scrollLeft,a.scrollTop]),(zd(a)||Df(a))&&(zd(R)||Df(R))&&(R.value=a.value),R}return a.cloneNode(!1)},c.prototype.resolvePseudoContent=function(a,f,d,R){var ne=this;if(d){var Ue=d.content,nt=f.ownerDocument;if(!(!nt||!Ue||Ue==="none"||Ue==="-moz-alt-content"||d.display==="none")){this.counters.parse(new la(this.context,d));var et=new Sa(this.context,d),Kt=nt.createElement("html2canvaspseudoelement");Pf(d,Kt),et.content.forEach(function(an){if(an.type===0)Kt.appendChild(nt.createTextNode(an.value));else if(an.type===22){var Rn=nt.createElement("img");Rn.src=an.value,Rn.style.opacity="1",Kt.appendChild(Rn)}else if(an.type===18){if(an.name==="attr"){var eo=an.values.filter(Bi);eo.length&&Kt.appendChild(nt.createTextNode(a.getAttribute(eo[0].value)||""))}else if(an.name==="counter"){var cr=an.values.filter(fs),Qr=cr[0],ti=cr[1];if(Qr&&Bi(Qr)){var io=ne.counters.getCounterValue(Qr.value),oo=ti&&Bi(ti)?_d.parse(ne.context,ti.value):3;Kt.appendChild(nt.createTextNode(Vd(io,oo,!1)))}}else if(an.name==="counters"){var Mo=an.values.filter(fs),Qr=Mo[0],si=Mo[1],ti=Mo[2];if(Qr&&Bi(Qr)){var No=ne.counters.getCounterValues(Qr.value),Zr=ti&&Bi(ti)?_d.parse(ne.context,ti.value):3,Ti=si&&si.type===0?si.value:"",gi=No.map(function(Js){return Vd(Js,Zr,!1)}).join(Ti);Kt.appendChild(nt.createTextNode(gi))}}}else if(an.type===20)switch(an.value){case"open-quote":Kt.appendChild(nt.createTextNode(Hr(et.quotes,ne.quoteDepth++,!0)));break;case"close-quote":Kt.appendChild(nt.createTextNode(Hr(et.quotes,--ne.quoteDepth,!1)));break;default:Kt.appendChild(nt.createTextNode(an.value))}}),Kt.className=Uh+" "+Tf;var $t=R===Wd.BEFORE?" "+Uh:" "+Tf;return Of(f)?f.className.baseValue+=$t:f.className+=$t,Kt}}},c.destroy=function(a){return a.parentNode?(a.parentNode.removeChild(a),!0):!1},c}(),Wd;(function(c){c[c.BEFORE=0]="BEFORE",c[c.AFTER=1]="AFTER"})(Wd||(Wd={}));var Pp=function(c,a){var f=c.createElement("iframe");return f.className="html2canvas-container",f.style.visibility="hidden",f.style.position="fixed",f.style.left="-10000px",f.style.top="0px",f.style.border="0",f.width=a.width.toString(),f.height=a.height.toString(),f.scrolling="no",f.setAttribute(U0,"true"),c.body.appendChild(f),f},L0=function(c){return new Promise(function(a){if(c.complete){a();return}if(!c.src){a();return}c.onload=a,c.onerror=a})},Tp=function(c){return Promise.all([].slice.call(c.images,0).map(L0))},Gd=function(c){return new Promise(function(a,f){var d=c.contentWindow;if(!d)return f("No window assigned for iframe");var R=d.document;d.onload=c.onload=function(){d.onload=c.onload=null;var ne=setInterval(function(){R.body.childNodes.length>0&&R.readyState==="complete"&&(clearInterval(ne),a(c))},50)}})},Ug=["all","d","content"],Pf=function(c,a){for(var f=c.length-1;f>=0;f--){var d=c.item(f);Ug.indexOf(d)===-1&&a.style.setProperty(d,c.getPropertyValue(d))}return a},Rp=function(c){var a="";return c&&(a+=""),a},N0=function(c,a,f){c&&c.defaultView&&(a!==c.defaultView.pageXOffset||f!==c.defaultView.pageYOffset)&&c.defaultView.scrollTo(a,f)},Q0=function(c){var a=c[0],f=c[1],d=c[2];a.scrollLeft=f,a.scrollTop=d},O0=":before",D0=":after",Uh="___html2canvas___pseudoelement_before",Tf="___html2canvas___pseudoelement_after",P0=`{ content: "" !important; display: none !important; }`,Lg=function(c){T0(c,"."+Uh+O0+P0+` - .`+Tf+D0+P0)},T0=function(c,a){var f=c.ownerDocument;if(f){var d=f.createElement("style");d.textContent=a,c.appendChild(d)}},R0=function(){function c(){}return c.getOrigin=function(a){var f=c._link;return f?(f.href=a,f.href=f.href,f.protocol+f.hostname+f.port):"about:blank"},c.isSameOrigin=function(a){return c.getOrigin(a)===c._origin},c.setContext=function(a){c._link=a.document.createElement("a"),c._origin=c.getOrigin(a.location.href)},c._origin="about:blank",c}(),rl=function(){function c(a,f){this.context=a,this._options=f,this._cache={}}return c.prototype.addImage=function(a){var f=Promise.resolve();return this.has(a)||(Qh(a)||Rf(a))&&(this._cache[a]=this.loadImage(a)).catch(function(){}),f},c.prototype.match=function(a){return this._cache[a]},c.prototype.loadImage=function(a){return Se(this,void 0,void 0,function(){var f,d,R,ne,Ue=this;return M(this,function(tt){switch(tt.label){case 0:return f=R0.isSameOrigin(a),d=!$d(a)&&this._options.useCORS===!0&&zA.SUPPORT_CORS_IMAGES&&!f,R=!$d(a)&&!f&&!Qh(a)&&typeof this._options.proxy=="string"&&zA.SUPPORT_CORS_XHR&&!d,!f&&this._options.allowTaint===!1&&!$d(a)&&!Qh(a)&&!R&&!d?[2]:(ne=a,R?[4,this.proxy(ne)]:[3,2]);case 1:ne=tt.sent(),tt.label=2;case 2:return this.context.logger.debug("Added image "+a.substring(0,256)),[4,new Promise(function(qe,Kt){var $t=new Image;$t.onload=function(){return qe($t)},$t.onerror=Kt,(_p(ne)||d)&&($t.crossOrigin="anonymous"),$t.src=ne,$t.complete===!0&&setTimeout(function(){return qe($t)},500),Ue._options.imageTimeout>0&&setTimeout(function(){return Kt("Timed out ("+Ue._options.imageTimeout+"ms) loading image")},Ue._options.imageTimeout)})];case 3:return[2,tt.sent()]}})})},c.prototype.has=function(a){return typeof this._cache[a]!="undefined"},c.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},c.prototype.proxy=function(a){var f=this,d=this._options.proxy;if(!d)throw new Error("No proxy defined");var R=a.substring(0,256);return new Promise(function(ne,Ue){var tt=zA.SUPPORT_RESPONSE_TYPE?"blob":"text",qe=new XMLHttpRequest;qe.onload=function(){if(qe.status===200)if(tt==="text")ne(qe.response);else{var an=new FileReader;an.addEventListener("load",function(){return ne(an.result)},!1),an.addEventListener("error",function(Rn){return Ue(Rn)},!1),an.readAsDataURL(qe.response)}else Ue("Failed to proxy resource "+R+" with status code "+qe.status)},qe.onerror=Ue;var Kt=d.indexOf("?")>-1?"&":"?";if(qe.open("GET",""+d+Kt+"url="+encodeURIComponent(a)+"&responseType="+tt),tt!=="text"&&qe instanceof XMLHttpRequest&&(qe.responseType=tt),f._options.imageTimeout){var $t=f._options.imageTimeout;qe.timeout=$t,qe.ontimeout=function(){return Ue("Timed out ("+$t+"ms) proxying "+R)}}qe.send()})},c}(),Lh=/^data:image\/svg\+xml/i,_0=/^data:image\/.*;base64,/i,Nh=/^data:image\/.*/i,Rf=function(c){return zA.SUPPORT_SVG_DRAWING||!jp(c)},$d=function(c){return Nh.test(c)},_p=function(c){return _0.test(c)},Qh=function(c){return c.substr(0,4)==="blob"},jp=function(c){return c.substr(-3).toLowerCase()==="svg"||Lh.test(c)},qr=function(){function c(a,f){this.type=0,this.x=a,this.y=f}return c.prototype.add=function(a,f){return new c(this.x+a,this.y+f)},c}(),wc=function(c,a,f){return new qr(c.x+(a.x-c.x)*f,c.y+(a.y-c.y)*f)},_f=function(){function c(a,f,d,R){this.type=1,this.start=a,this.startControl=f,this.endControl=d,this.end=R}return c.prototype.subdivide=function(a,f){var d=wc(this.start,this.startControl,a),R=wc(this.startControl,this.endControl,a),ne=wc(this.endControl,this.end,a),Ue=wc(d,R,a),tt=wc(R,ne,a),qe=wc(Ue,tt,a);return f?new c(this.start,d,Ue,qe):new c(qe,tt,ne,this.end)},c.prototype.add=function(a,f){return new c(this.start.add(a,f),this.startControl.add(a,f),this.endControl.add(a,f),this.end.add(a,f))},c.prototype.reverse=function(){return new c(this.end,this.endControl,this.startControl,this.start)},c}(),wl=function(c){return c.type===1},Mp=function(){function c(a){var f=a.styles,d=a.bounds,R=nl(f.borderTopLeftRadius,d.width,d.height),ne=R[0],Ue=R[1],tt=nl(f.borderTopRightRadius,d.width,d.height),qe=tt[0],Kt=tt[1],$t=nl(f.borderBottomRightRadius,d.width,d.height),an=$t[0],Rn=$t[1],eo=nl(f.borderBottomLeftRadius,d.width,d.height),cr=eo[0],Qr=eo[1],ti=[];ti.push((ne+qe)/d.width),ti.push((cr+an)/d.width),ti.push((Ue+Qr)/d.height),ti.push((Kt+Rn)/d.height);var io=Math.max.apply(Math,ti);io>1&&(ne/=io,Ue/=io,qe/=io,Kt/=io,an/=io,Rn/=io,cr/=io,Qr/=io);var oo=d.width-qe,Mo=d.height-Rn,si=d.width-an,No=d.height-Qr,Zr=f.borderTopWidth,Ti=f.borderRightWidth,gi=f.borderBottomWidth,Ho=f.borderLeftWidth,Ur=ra(f.paddingTop,a.bounds.width),Js=ra(f.paddingRight,a.bounds.width),il=ra(f.paddingBottom,a.bounds.width),Qa=ra(f.paddingLeft,a.bounds.width);this.topLeftBorderDoubleOuterBox=ne>0||Ue>0?Ya(d.left+Ho/3,d.top+Zr/3,ne-Ho/3,Ue-Zr/3,La.TOP_LEFT):new qr(d.left+Ho/3,d.top+Zr/3),this.topRightBorderDoubleOuterBox=ne>0||Ue>0?Ya(d.left+oo,d.top+Zr/3,qe-Ti/3,Kt-Zr/3,La.TOP_RIGHT):new qr(d.left+d.width-Ti/3,d.top+Zr/3),this.bottomRightBorderDoubleOuterBox=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an-Ti/3,Rn-gi/3,La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti/3,d.top+d.height-gi/3),this.bottomLeftBorderDoubleOuterBox=cr>0||Qr>0?Ya(d.left+Ho/3,d.top+No,cr-Ho/3,Qr-gi/3,La.BOTTOM_LEFT):new qr(d.left+Ho/3,d.top+d.height-gi/3),this.topLeftBorderDoubleInnerBox=ne>0||Ue>0?Ya(d.left+Ho*2/3,d.top+Zr*2/3,ne-Ho*2/3,Ue-Zr*2/3,La.TOP_LEFT):new qr(d.left+Ho*2/3,d.top+Zr*2/3),this.topRightBorderDoubleInnerBox=ne>0||Ue>0?Ya(d.left+oo,d.top+Zr*2/3,qe-Ti*2/3,Kt-Zr*2/3,La.TOP_RIGHT):new qr(d.left+d.width-Ti*2/3,d.top+Zr*2/3),this.bottomRightBorderDoubleInnerBox=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an-Ti*2/3,Rn-gi*2/3,La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti*2/3,d.top+d.height-gi*2/3),this.bottomLeftBorderDoubleInnerBox=cr>0||Qr>0?Ya(d.left+Ho*2/3,d.top+No,cr-Ho*2/3,Qr-gi*2/3,La.BOTTOM_LEFT):new qr(d.left+Ho*2/3,d.top+d.height-gi*2/3),this.topLeftBorderStroke=ne>0||Ue>0?Ya(d.left+Ho/2,d.top+Zr/2,ne-Ho/2,Ue-Zr/2,La.TOP_LEFT):new qr(d.left+Ho/2,d.top+Zr/2),this.topRightBorderStroke=ne>0||Ue>0?Ya(d.left+oo,d.top+Zr/2,qe-Ti/2,Kt-Zr/2,La.TOP_RIGHT):new qr(d.left+d.width-Ti/2,d.top+Zr/2),this.bottomRightBorderStroke=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an-Ti/2,Rn-gi/2,La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti/2,d.top+d.height-gi/2),this.bottomLeftBorderStroke=cr>0||Qr>0?Ya(d.left+Ho/2,d.top+No,cr-Ho/2,Qr-gi/2,La.BOTTOM_LEFT):new qr(d.left+Ho/2,d.top+d.height-gi/2),this.topLeftBorderBox=ne>0||Ue>0?Ya(d.left,d.top,ne,Ue,La.TOP_LEFT):new qr(d.left,d.top),this.topRightBorderBox=qe>0||Kt>0?Ya(d.left+oo,d.top,qe,Kt,La.TOP_RIGHT):new qr(d.left+d.width,d.top),this.bottomRightBorderBox=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an,Rn,La.BOTTOM_RIGHT):new qr(d.left+d.width,d.top+d.height),this.bottomLeftBorderBox=cr>0||Qr>0?Ya(d.left,d.top+No,cr,Qr,La.BOTTOM_LEFT):new qr(d.left,d.top+d.height),this.topLeftPaddingBox=ne>0||Ue>0?Ya(d.left+Ho,d.top+Zr,Math.max(0,ne-Ho),Math.max(0,Ue-Zr),La.TOP_LEFT):new qr(d.left+Ho,d.top+Zr),this.topRightPaddingBox=qe>0||Kt>0?Ya(d.left+Math.min(oo,d.width-Ti),d.top+Zr,oo>d.width+Ti?0:Math.max(0,qe-Ti),Math.max(0,Kt-Zr),La.TOP_RIGHT):new qr(d.left+d.width-Ti,d.top+Zr),this.bottomRightPaddingBox=an>0||Rn>0?Ya(d.left+Math.min(si,d.width-Ho),d.top+Math.min(Mo,d.height-gi),Math.max(0,an-Ti),Math.max(0,Rn-gi),La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti,d.top+d.height-gi),this.bottomLeftPaddingBox=cr>0||Qr>0?Ya(d.left+Ho,d.top+Math.min(No,d.height-gi),Math.max(0,cr-Ho),Math.max(0,Qr-gi),La.BOTTOM_LEFT):new qr(d.left+Ho,d.top+d.height-gi),this.topLeftContentBox=ne>0||Ue>0?Ya(d.left+Ho+Qa,d.top+Zr+Ur,Math.max(0,ne-(Ho+Qa)),Math.max(0,Ue-(Zr+Ur)),La.TOP_LEFT):new qr(d.left+Ho+Qa,d.top+Zr+Ur),this.topRightContentBox=qe>0||Kt>0?Ya(d.left+Math.min(oo,d.width+Ho+Qa),d.top+Zr+Ur,oo>d.width+Ho+Qa?0:qe-Ho+Qa,Kt-(Zr+Ur),La.TOP_RIGHT):new qr(d.left+d.width-(Ti+Js),d.top+Zr+Ur),this.bottomRightContentBox=an>0||Rn>0?Ya(d.left+Math.min(si,d.width-(Ho+Qa)),d.top+Math.min(Mo,d.height+Zr+Ur),Math.max(0,an-(Ti+Js)),Rn-(gi+il),La.BOTTOM_RIGHT):new qr(d.left+d.width-(Ti+Js),d.top+d.height-(gi+il)),this.bottomLeftContentBox=cr>0||Qr>0?Ya(d.left+Ho+Qa,d.top+No,Math.max(0,cr-(Ho+Qa)),Qr-(gi+il),La.BOTTOM_LEFT):new qr(d.left+Ho+Qa,d.top+d.height-(gi+il))}return c}(),La;(function(c){c[c.TOP_LEFT=0]="TOP_LEFT",c[c.TOP_RIGHT=1]="TOP_RIGHT",c[c.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",c[c.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(La||(La={}));var Ya=function(c,a,f,d,R){var ne=4*((Math.sqrt(2)-1)/3),Ue=f*ne,tt=d*ne,qe=c+f,Kt=a+d;switch(R){case La.TOP_LEFT:return new _f(new qr(c,Kt),new qr(c,Kt-tt),new qr(qe-Ue,a),new qr(qe,a));case La.TOP_RIGHT:return new _f(new qr(c,a),new qr(c+Ue,a),new qr(qe,Kt-tt),new qr(qe,Kt));case La.BOTTOM_RIGHT:return new _f(new qr(qe,a),new qr(qe,a+tt),new qr(c+Ue,Kt),new qr(c,Kt));case La.BOTTOM_LEFT:default:return new _f(new qr(qe,Kt),new qr(qe-Ue,Kt),new qr(c,a+tt),new qr(c,a))}},jf=function(c){return[c.topLeftBorderBox,c.topRightBorderBox,c.bottomRightBorderBox,c.bottomLeftBorderBox]},Ng=function(c){return[c.topLeftContentBox,c.topRightContentBox,c.bottomRightContentBox,c.bottomLeftContentBox]},Oh=function(c){return[c.topLeftPaddingBox,c.topRightPaddingBox,c.bottomRightPaddingBox,c.bottomLeftPaddingBox]},ei=function(){function c(a,f,d){this.offsetX=a,this.offsetY=f,this.matrix=d,this.type=0,this.target=6}return c}(),Ad=function(){function c(a,f){this.path=a,this.target=f,this.type=1}return c}(),Ka=function(){function c(a){this.opacity=a,this.type=2,this.target=6}return c}(),Dh=function(c){return c.type===0},Ph=function(c){return c.type===1},Mf=function(c){return c.type===2},zu=function(c,a){return c.length===a.length?c.some(function(f,d){return f===a[d]}):!1},j0=function(c,a,f,d,R){return c.map(function(ne,Ue){switch(Ue){case 0:return ne.add(a,f);case 1:return ne.add(a+d,f);case 2:return ne.add(a+d,f+R);case 3:return ne.add(a,f+R)}return ne})},Xd=function(){function c(a){this.element=a,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return c}(),Th=function(){function c(a,f){if(this.container=a,this.parent=f,this.effects=[],this.curves=new Mp(this.container),this.container.styles.opacity<1&&this.effects.push(new Ka(this.container.styles.opacity)),this.container.styles.transform!==null){var d=this.container.bounds.left+this.container.styles.transformOrigin[0].number,R=this.container.bounds.top+this.container.styles.transformOrigin[1].number,ne=this.container.styles.transform;this.effects.push(new ei(d,R,ne))}if(this.container.styles.overflowX!==0){var Ue=jf(this.curves),tt=Oh(this.curves);zu(Ue,tt)?this.effects.push(new Ad(Ue,6)):(this.effects.push(new Ad(Ue,2)),this.effects.push(new Ad(tt,4)))}}return c.prototype.getEffects=function(a){for(var f=[2,3].indexOf(this.container.styles.position)===-1,d=this.parent,R=this.effects.slice(0);d;){var ne=d.effects.filter(function(qe){return!Ph(qe)});if(f||d.container.styles.position!==0||!d.parent){if(R.unshift.apply(R,ne),f=[2,3].indexOf(d.container.styles.position)===-1,d.container.styles.overflowX!==0){var Ue=jf(d.curves),tt=Oh(d.curves);zu(Ue,tt)||R.unshift(new Ad(tt,6))}}else R.unshift.apply(R,ne);d=d.parent}return R.filter(function(qe){return Mr(qe.target,a)})},c}(),Yd=function(c,a,f,d){c.container.elements.forEach(function(R){var ne=Mr(R.flags,4),Ue=Mr(R.flags,2),tt=new Th(R,c);Mr(R.styles.display,2048)&&d.push(tt);var qe=Mr(R.flags,8)?[]:d;if(ne||Ue){var Kt=ne||R.styles.isPositioned()?f:a,$t=new Xd(tt);if(R.styles.isPositioned()||R.styles.opacity<1||R.styles.isTransformed()){var an=R.styles.zIndex.order;if(an<0){var Rn=0;Kt.negativeZIndex.some(function(cr,Qr){return an>cr.element.container.styles.zIndex.order?(Rn=Qr,!1):Rn>0}),Kt.negativeZIndex.splice(Rn,0,$t)}else if(an>0){var eo=0;Kt.positiveZIndex.some(function(cr,Qr){return an>=cr.element.container.styles.zIndex.order?(eo=Qr+1,!1):eo>0}),Kt.positiveZIndex.splice(eo,0,$t)}else Kt.zeroOrAutoZIndexOrTransformedOrOpacity.push($t)}else R.styles.isFloating()?Kt.nonPositionedFloats.push($t):Kt.nonPositionedInlineLevel.push($t);Yd(tt,$t,ne?$t:f,qe)}else R.styles.isInlineLevel()?a.inlineLevel.push(tt):a.nonInlineLevel.push(tt),Yd(tt,a,f,qe);Mr(R.flags,8)&&Jd(R,qe)})},Jd=function(c,a){for(var f=c instanceof ad?c.start:1,d=c instanceof ad?c.reversed:!1,R=0;R0&&f.intrinsicHeight>0){var ne=kf(f),Ue=Oh(d);this.path(Ue),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(R,0,0,f.intrinsicWidth,f.intrinsicHeight,ne.left,ne.top,ne.width,ne.height),this.ctx.restore()}},a.prototype.renderNodeContent=function(f){return Se(this,void 0,void 0,function(){var d,R,ne,Ue,tt,qe,oo,oo,Kt,$t,an,Rn,si,eo,cr,No,Qr,ti,io,oo,Mo,si,No;return M(this,function(Zr){switch(Zr.label){case 0:this.applyEffects(f.getEffects(4)),d=f.container,R=f.curves,ne=d.styles,Ue=0,tt=d.textNodes,Zr.label=1;case 1:return Ue0&&ss>0&&(gi=ne.ctx.createPattern(No,"repeat"),ne.renderRepeat(Ur,gi,Us,Rs))):rh($t)&&(Ho=Zl(f,d,[null,null,null]),Ur=Ho[0],Js=Ho[1],il=Ho[2],Qa=Ho[3],ss=Ho[4],yu=$t.position.length===0?[sc]:$t.position,Us=ra(yu[0],Qa),Rs=ra(yu[yu.length-1],ss),bc=Pu($t,Us,Rs,Qa,ss),Bl=bc[0],wu=bc[1],Bl>0&&wu>0&&(Cc=ne.ctx.createRadialGradient(Js+Us,il+Rs,0,Js+Us,il+Rs,Bl),Zs($t.stops,Bl*2).forEach(function(Yu){return Cc.addColorStop(Yu.stop,fA(Yu.color))}),ne.path(Ur),ne.ctx.fillStyle=Cc,Bl!==wu?($u=f.bounds.left+.5*f.bounds.width,Wl=f.bounds.top+.5*f.bounds.height,Xu=wu/Bl,Bu=1/Xu,ne.ctx.save(),ne.ctx.translate($u,Wl),ne.ctx.transform(1,0,0,Xu,0,0),ne.ctx.translate(-$u,-Wl),ne.ctx.fillRect(Js,Bu*(il-Wl)+Wl,Qa,ss*Bu),ne.ctx.restore()):ne.ctx.fill())),ud.label=6;case 6:return d--,[2]}})},ne=this,Ue=0,tt=f.styles.backgroundImage.slice(0).reverse(),Kt.label=1;case 1:return Ue0?$t.style!==2?[3,5]:[4,this.renderDashedDottedBorder($t.color,$t.width,tt,f.curves,2)]:[3,11]):[3,13];case 4:return Rn.sent(),[3,11];case 5:return $t.style!==3?[3,7]:[4,this.renderDashedDottedBorder($t.color,$t.width,tt,f.curves,3)];case 6:return Rn.sent(),[3,11];case 7:return $t.style!==4?[3,9]:[4,this.renderDoubleBorder($t.color,$t.width,tt,f.curves)];case 8:return Rn.sent(),[3,11];case 9:return[4,this.renderSolidBorder($t.color,tt,f.curves)];case 10:Rn.sent(),Rn.label=11;case 11:tt++,Rn.label=12;case 12:return qe++,[3,3];case 13:return[2]}})})},a.prototype.renderDashedDottedBorder=function(f,d,R,ne,Ue){return Se(this,void 0,void 0,function(){var tt,qe,Kt,$t,an,Rn,eo,cr,Qr,ti,io,oo,Mo,si,No,Zr,No,Zr;return M(this,function(Ti){return this.ctx.save(),tt=M0(ne,R),qe=gs(ne,R),Ue===2&&(this.path(qe),this.ctx.clip()),wl(qe[0])?(Kt=qe[0].start.x,$t=qe[0].start.y):(Kt=qe[0].x,$t=qe[0].y),wl(qe[1])?(an=qe[1].end.x,Rn=qe[1].end.y):(an=qe[1].x,Rn=qe[1].y),R===0||R===2?eo=Math.abs(Kt-an):eo=Math.abs($t-Rn),this.ctx.beginPath(),Ue===3?this.formatPath(tt):this.formatPath(qe.slice(0,2)),cr=d<3?d*3:d*2,Qr=d<3?d*2:d,Ue===3&&(cr=d,Qr=d),ti=!0,eo<=cr*2?ti=!1:eo<=cr*2+Qr?(io=eo/(2*cr+Qr),cr*=io,Qr*=io):(oo=Math.floor((eo+Qr)/(cr+Qr)),Mo=(eo-oo*cr)/(oo-1),si=(eo-(oo+1)*cr)/oo,Qr=si<=0||Math.abs(Qr-Mo)he){var ge=Ce;Ce=he,he=ge}}else if(pe==="l"||pe==="landscape"){if(pe="l",he>Ce){var ge=Ce;Ce=he,he=ge}}else throw"Invalid orientation: "+pe;var ae={width:Ce,height:he,unit:J,k:ie};return ae},L.default=Fe.jsPDF},"./src/plugin/pagebreaks.js":function(v,L,i){"use strict";i.r(L);var N=i("./node_modules/core-js/modules/es.array.concat.js"),B=i.n(N),D=i("./node_modules/core-js/modules/es.array.slice.js"),O=i.n(D),T=i("./node_modules/core-js/modules/es.array.join.js"),E=i.n(T),U=i("./node_modules/core-js/modules/web.dom-collections.for-each.js"),F=i.n(U),W=i("./node_modules/core-js/modules/es.object.keys.js"),re=i.n(W),H=i("./src/worker.js"),k=i("./src/utils.js"),de={toContainer:H.default.prototype.toContainer};H.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},H.default.prototype.toContainer=function(){return de.toContainer.call(this).then(function(){var me=this.prop.container,ve=this.prop.pageSize.inner.px.height,pe=[].concat(this.opt.pagebreak.mode),J={avoidAll:pe.indexOf("avoid-all")!==-1,css:pe.indexOf("css")!==-1,legacy:pe.indexOf("legacy")!==-1},ye={},p=this;["before","after","avoid"].forEach(function(ie){var he=J.avoidAll&&ie==="avoid";ye[ie]=he?[]:[].concat(p.opt.pagebreak[ie]||[]),ye[ie].length>0&&(ye[ie]=Array.prototype.slice.call(me.querySelectorAll(ye[ie].join(", "))))});var j=me.querySelectorAll(".html2pdf__page-break");j=Array.prototype.slice.call(j);var Xe=me.querySelectorAll("*");Array.prototype.forEach.call(Xe,function(he){var Ce={before:!1,after:J.legacy&&j.indexOf(he)!==-1,avoid:J.avoidAll};if(J.css){var ge=window.getComputedStyle(he),ae=["always","page","left","right"],Ae=["avoid","avoid-page"];Ce={before:Ce.before||ae.indexOf(ge.breakBefore||ge.pageBreakBefore)!==-1,after:Ce.after||ae.indexOf(ge.breakAfter||ge.pageBreakAfter)!==-1,avoid:Ce.avoid||Ae.indexOf(ge.breakInside||ge.pageBreakInside)!==-1}}Object.keys(Ce).forEach(function(zt){Ce[zt]=Ce[zt]||ye[zt].indexOf(he)!==-1});var nt=he.getBoundingClientRect();if(Ce.avoid&&!Ce.before){var vt=Math.floor(nt.top/ve),Ve=Math.floor(nt.bottom/ve),Nt=Math.abs(nt.bottom-nt.top)/ve;Ve!==vt&&Nt<=1&&(Ce.before=!0)}if(Ce.before){var yt=(0,k.createElement)("div",{style:{display:"block",height:ve-nt.top%ve+"px"}});he.parentNode.insertBefore(yt,he)}if(Ce.after){var yt=(0,k.createElement)("div",{style:{display:"block",height:ve-nt.bottom%ve+"px"}});he.parentNode.insertBefore(yt,he.nextSibling)}})})}},"./src/utils.js":function(v,L,i){"use strict";i.r(L),i.d(L,{objType:function(){return pe},createElement:function(){return J},cloneNode:function(){return ye},unitConvert:function(){return p},toPx:function(){return j}});var N=i("./node_modules/core-js/modules/es.number.constructor.js"),B=i.n(N),D=i("./node_modules/core-js/modules/es.symbol.js"),O=i.n(D),T=i("./node_modules/core-js/modules/es.symbol.description.js"),E=i.n(T),U=i("./node_modules/core-js/modules/es.object.to-string.js"),F=i.n(U),W=i("./node_modules/core-js/modules/es.symbol.iterator.js"),re=i.n(W),H=i("./node_modules/core-js/modules/es.array.iterator.js"),k=i.n(H),de=i("./node_modules/core-js/modules/es.string.iterator.js"),ue=i.n(de),Fe=i("./node_modules/core-js/modules/web.dom-collections.iterator.js"),me=i.n(Fe);function ve(Xe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ve=function(he){return typeof he}:ve=function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},ve(Xe)}var pe=function(ie){var he=ve(ie);return he==="undefined"?"undefined":he==="string"||ie instanceof String?"string":he==="number"||ie instanceof Number?"number":he==="function"||ie instanceof Function?"function":ie&&ie.constructor===Array?"array":ie&&ie.nodeType===1?"element":he==="object"?"object":"unknown"},J=function(ie,he){var Ce=document.createElement(ie);if(he.className&&(Ce.className=he.className),he.innerHTML){Ce.innerHTML=he.innerHTML;for(var ge=Ce.getElementsByTagName("script"),ae=ge.length;ae-- >0;null)ge[ae].parentNode.removeChild(ge[ae])}for(var Ae in he.style)Ce.style[Ae]=he.style[Ae];return Ce},ye=function Xe(ie,he){for(var Ce=ie.nodeType===3?document.createTextNode(ie.nodeValue):ie.cloneNode(!1),ge=ie.firstChild;ge;ge=ge.nextSibling)(he===!0||ge.nodeType!==1||ge.nodeName!=="SCRIPT")&&Ce.appendChild(Xe(ge,he));return ie.nodeType===1&&(ie.nodeName==="CANVAS"?(Ce.width=ie.width,Ce.height=ie.height,Ce.getContext("2d").drawImage(ie,0,0)):(ie.nodeName==="TEXTAREA"||ie.nodeName==="SELECT")&&(Ce.value=ie.value),Ce.addEventListener("load",function(){Ce.scrollTop=ie.scrollTop,Ce.scrollLeft=ie.scrollLeft},!0)),Ce},p=function(ie,he){if(pe(ie)==="number")return ie*72/96/he;var Ce={};for(var ge in ie)Ce[ge]=ie[ge]*72/96/he;return Ce},j=function(ie,he){return Math.floor(ie*he/72*96)}},"./src/worker.js":function(v,L,i){"use strict";i.r(L);var N=i("./node_modules/core-js/modules/es.object.assign.js"),B=i.n(N),D=i("./node_modules/core-js/modules/es.array.map.js"),O=i.n(D),T=i("./node_modules/core-js/modules/es.object.keys.js"),E=i.n(T),U=i("./node_modules/core-js/modules/es.array.concat.js"),F=i.n(U),W=i("./node_modules/core-js/modules/es.object.to-string.js"),re=i.n(W),H=i("./node_modules/core-js/modules/es.regexp.to-string.js"),k=i.n(H),de=i("./node_modules/core-js/modules/es.function.name.js"),ue=i.n(de),Fe=i("./node_modules/core-js/modules/web.dom-collections.for-each.js"),me=i.n(Fe),ve=i("jspdf"),pe=i.n(ve),J=i("html2canvas"),ye=i.n(J),p=i("./src/utils.js"),j=i("./node_modules/es6-promise/dist/es6-promise.js"),Xe=i.n(j),ie=Xe().Promise,he=function Ce(ge){var ae=Object.assign(Ce.convert(ie.resolve()),JSON.parse(JSON.stringify(Ce.template))),Ae=Ce.convert(ie.resolve(),ae);return Ae=Ae.setProgress(1,Ce,1,[Ce]),Ae=Ae.set(ge),Ae};he.prototype=Object.create(ie.prototype),he.prototype.constructor=he,he.convert=function(ge,ae){return ge.__proto__=ae||he.prototype,ge},he.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},he.prototype.from=function(ge,ae){function Ae(nt){switch((0,p.objType)(nt)){case"string":return"string";case"element":return nt.nodeName.toLowerCase&&nt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ae=ae||Ae(ge),ae){case"string":return this.set({src:(0,p.createElement)("div",{innerHTML:ge})});case"element":return this.set({src:ge});case"canvas":return this.set({canvas:ge});case"img":return this.set({img:ge});default:return this.error("Unknown source type.")}})},he.prototype.to=function(ge){switch(ge){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},he.prototype.toContainer=function(){var ge=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ge).then(function(){var Ae={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},nt={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ae.opacity=0;var vt=(0,p.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,p.createElement)("div",{className:"html2pdf__overlay",style:Ae}),this.prop.container=(0,p.createElement)("div",{className:"html2pdf__container",style:nt}),this.prop.container.appendChild(vt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},he.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(function(){var Ae=Object.assign({},this.opt.html2canvas);return delete Ae.onrendered,J(this.prop.container,Ae)}).then(function(Ae){var nt=this.opt.html2canvas.onrendered||function(){};nt(Ae),this.prop.canvas=Ae,document.body.removeChild(this.prop.overlay)})},he.prototype.toImg=function(){var ge=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ge).then(function(){var Ae=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ae})},he.prototype.toPdf=function(){var ge=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ge).then(function(){var Ae=this.prop.canvas,nt=this.opt,vt=Ae.height,Ve=Math.floor(Ae.width*this.prop.pageSize.inner.ratio),Nt=Math.ceil(vt/Ve),yt=this.prop.pageSize.inner.height,zt=document.createElement("canvas"),je=zt.getContext("2d");zt.width=Ae.width,zt.height=Ve,this.prop.pdf=this.prop.pdf||new ve.jsPDF(nt.jsPDF);for(var It=0;It1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-indexed-object.js"),B=i("./node_modules/core-js/internals/to-length.js"),D=i("./node_modules/core-js/internals/to-absolute-index.js"),O=function(T){return function(E,U,F){var W=N(E),re=B(W.length),H=D(F,re),k;if(T&&U!=U){for(;re>H;)if(k=W[H++],k!=k)return!0}else for(;re>H;H++)if((T||H in W)&&W[H]===U)return T||H||0;return!T&&-1}};v.exports={includes:O(!0),indexOf:O(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(v,L,i){var N=i("./node_modules/core-js/internals/function-bind-context.js"),B=i("./node_modules/core-js/internals/indexed-object.js"),D=i("./node_modules/core-js/internals/to-object.js"),O=i("./node_modules/core-js/internals/to-length.js"),T=i("./node_modules/core-js/internals/array-species-create.js"),E=[].push,U=function(F){var W=F==1,re=F==2,H=F==3,k=F==4,de=F==6,ue=F==7,Fe=F==5||de;return function(me,ve,pe,J){for(var ye=D(me),p=B(ye),j=N(ve,pe,3),Xe=O(p.length),ie=0,he=J||T,Ce=W?he(me,Xe):re||ue?he(me,0):void 0,ge,ae;Xe>ie;ie++)if((Fe||ie in p)&&(ge=p[ie],ae=j(ge,ie,ye),F))if(W)Ce[ie]=ae;else if(ae)switch(F){case 3:return!0;case 5:return ge;case 6:return ie;case 2:E.call(Ce,ge)}else switch(F){case 4:return!1;case 7:E.call(Ce,ge)}return de?-1:H||k?k:Ce}};v.exports={forEach:U(0),map:U(1),filter:U(2),some:U(3),every:U(4),find:U(5),findIndex:U(6),filterReject:U(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(v,L,i){var N=i("./node_modules/core-js/internals/fails.js"),B=i("./node_modules/core-js/internals/well-known-symbol.js"),D=i("./node_modules/core-js/internals/engine-v8-version.js"),O=B("species");v.exports=function(T){return D>=51||!N(function(){var E=[],U=E.constructor={};return U[O]=function(){return{foo:1}},E[T](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/fails.js");v.exports=function(B,D){var O=[][B];return!!O&&N(function(){O.call(null,D||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(v,L,i){var N=i("./node_modules/core-js/internals/is-object.js"),B=i("./node_modules/core-js/internals/is-array.js"),D=i("./node_modules/core-js/internals/well-known-symbol.js"),O=D("species");v.exports=function(T){var E;return B(T)&&(E=T.constructor,typeof E=="function"&&(E===Array||B(E.prototype))?E=void 0:N(E)&&(E=E[O],E===null&&(E=void 0))),E===void 0?Array:E}},"./node_modules/core-js/internals/array-species-create.js":function(v,L,i){var N=i("./node_modules/core-js/internals/array-species-constructor.js");v.exports=function(B,D){return new(N(B))(D===0?0:D)}},"./node_modules/core-js/internals/classof-raw.js":function(v){var L={}.toString;v.exports=function(i){return L.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-string-tag-support.js"),B=i("./node_modules/core-js/internals/classof-raw.js"),D=i("./node_modules/core-js/internals/well-known-symbol.js"),O=D("toStringTag"),T=B(function(){return arguments}())=="Arguments",E=function(U,F){try{return U[F]}catch(W){}};v.exports=N?B:function(U){var F,W,re;return U===void 0?"Undefined":U===null?"Null":typeof(W=E(F=Object(U),O))=="string"?W:T?B(F):(re=B(F))=="Object"&&typeof F.callee=="function"?"Arguments":re}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(v,L,i){var N=i("./node_modules/core-js/internals/has.js"),B=i("./node_modules/core-js/internals/own-keys.js"),D=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),O=i("./node_modules/core-js/internals/object-define-property.js");v.exports=function(T,E){for(var U=B(E),F=O.f,W=D.f,re=0;re"+F+""}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,B=i("./node_modules/core-js/internals/object-create.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js"),O=i("./node_modules/core-js/internals/set-to-string-tag.js"),T=i("./node_modules/core-js/internals/iterators.js"),E=function(){return this};v.exports=function(U,F,W){var re=F+" Iterator";return U.prototype=B(N,{next:D(1,W)}),O(U,re,!1,!0),T[re]=E,U}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(v,L,i){var N=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/object-define-property.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js");v.exports=N?function(O,T,E){return B.f(O,T,D(1,E))}:function(O,T,E){return O[T]=E,O}},"./node_modules/core-js/internals/create-property-descriptor.js":function(v){v.exports=function(L,i){return{enumerable:!(L&1),configurable:!(L&2),writable:!(L&4),value:i}}},"./node_modules/core-js/internals/create-property.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/to-property-key.js"),B=i("./node_modules/core-js/internals/object-define-property.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js");v.exports=function(O,T,E){var U=N(T);U in O?B.f(O,U,D(0,E)):O[U]=E}},"./node_modules/core-js/internals/define-iterator.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/create-iterator-constructor.js"),D=i("./node_modules/core-js/internals/object-get-prototype-of.js"),O=i("./node_modules/core-js/internals/object-set-prototype-of.js"),T=i("./node_modules/core-js/internals/set-to-string-tag.js"),E=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),U=i("./node_modules/core-js/internals/redefine.js"),F=i("./node_modules/core-js/internals/well-known-symbol.js"),W=i("./node_modules/core-js/internals/is-pure.js"),re=i("./node_modules/core-js/internals/iterators.js"),H=i("./node_modules/core-js/internals/iterators-core.js"),k=H.IteratorPrototype,de=H.BUGGY_SAFARI_ITERATORS,ue=F("iterator"),Fe="keys",me="values",ve="entries",pe=function(){return this};v.exports=function(J,ye,p,j,Xe,ie,he){B(p,ye,j);var Ce=function(je){if(je===Xe&&vt)return vt;if(!de&&je in Ae)return Ae[je];switch(je){case Fe:return function(){return new p(this,je)};case me:return function(){return new p(this,je)};case ve:return function(){return new p(this,je)}}return function(){return new p(this)}},ge=ye+" Iterator",ae=!1,Ae=J.prototype,nt=Ae[ue]||Ae["@@iterator"]||Xe&&Ae[Xe],vt=!de&&nt||Ce(Xe),Ve=ye=="Array"&&Ae.entries||nt,Nt,yt,zt;if(Ve&&(Nt=D(Ve.call(new J)),k!==Object.prototype&&Nt.next&&(!W&&D(Nt)!==k&&(O?O(Nt,k):typeof Nt[ue]!="function"&&E(Nt,ue,pe)),T(Nt,ge,!0,!0),W&&(re[ge]=pe))),Xe==me&&nt&&nt.name!==me&&(ae=!0,vt=function(){return nt.call(this)}),(!W||he)&&Ae[ue]!==vt&&E(Ae,ue,vt),re[ye]=vt,Xe)if(yt={values:Ce(me),keys:ie?vt:Ce(Fe),entries:Ce(ve)},he)for(zt in yt)(de||ae||!(zt in Ae))&&U(Ae,zt,yt[zt]);else N({target:ye,proto:!0,forced:de||ae},yt);return yt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(v,L,i){var N=i("./node_modules/core-js/internals/path.js"),B=i("./node_modules/core-js/internals/has.js"),D=i("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),O=i("./node_modules/core-js/internals/object-define-property.js").f;v.exports=function(T){var E=N.Symbol||(N.Symbol={});B(E,T)||O(E,T,{value:D.f(T)})}},"./node_modules/core-js/internals/descriptors.js":function(v,L,i){var N=i("./node_modules/core-js/internals/fails.js");v.exports=!N(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/is-object.js"),D=N.document,O=B(D)&&B(D.createElement);v.exports=function(T){return O?D.createElement(T):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(v){v.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(v,L,i){var N=i("./node_modules/core-js/internals/get-built-in.js");v.exports=N("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/engine-user-agent.js"),D=N.process,O=N.Deno,T=D&&D.versions||O&&O.version,E=T&&T.v8,U,F;E?(U=E.split("."),F=U[0]<4?1:U[0]+U[1]):B&&(U=B.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=B.match(/Chrome\/(\d+)/),U&&(F=U[1]))),v.exports=F&&+F},"./node_modules/core-js/internals/enum-bug-keys.js":function(v){v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,D=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=i("./node_modules/core-js/internals/redefine.js"),T=i("./node_modules/core-js/internals/set-global.js"),E=i("./node_modules/core-js/internals/copy-constructor-properties.js"),U=i("./node_modules/core-js/internals/is-forced.js");v.exports=function(F,W){var re=F.target,H=F.global,k=F.stat,de,ue,Fe,me,ve,pe;if(H?ue=N:k?ue=N[re]||T(re,{}):ue=(N[re]||{}).prototype,ue)for(Fe in W){if(ve=W[Fe],F.noTargetGet?(pe=B(ue,Fe),me=pe&&pe.value):me=ue[Fe],de=U(H?Fe:re+(k?".":"#")+Fe,F.forced),!de&&me!==void 0){if(typeof ve==typeof me)continue;E(ve,me)}(F.sham||me&&me.sham)&&D(ve,"sham",!0),O(ue,Fe,ve,F)}}},"./node_modules/core-js/internals/fails.js":function(v){v.exports=function(L){try{return!!L()}catch(i){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(v,L,i){var N=i("./node_modules/core-js/internals/a-function.js");v.exports=function(B,D,O){if(N(B),D===void 0)return B;switch(O){case 0:return function(){return B.call(D)};case 1:return function(T){return B.call(D,T)};case 2:return function(T,E){return B.call(D,T,E)};case 3:return function(T,E,U){return B.call(D,T,E,U)}}return function(){return B.apply(D,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=function(D){return typeof D=="function"?D:void 0};v.exports=function(D,O){return arguments.length<2?B(N[D]):N[D]&&N[D][O]}},"./node_modules/core-js/internals/global.js":function(v){var L=function(i){return i&&i.Math==Math&&i};v.exports=L(typeof globalThis=="object"&&globalThis)||L(typeof window=="object"&&window)||L(typeof self=="object"&&self)||L(typeof g.g=="object"&&g.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-object.js"),B={}.hasOwnProperty;v.exports=Object.hasOwn||function(O,T){return B.call(N(O),T)}},"./node_modules/core-js/internals/hidden-keys.js":function(v){v.exports={}},"./node_modules/core-js/internals/html.js":function(v,L,i){var N=i("./node_modules/core-js/internals/get-built-in.js");v.exports=N("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(v,L,i){var N=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/fails.js"),D=i("./node_modules/core-js/internals/document-create-element.js");v.exports=!N&&!B(function(){return Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(v,L,i){var N=i("./node_modules/core-js/internals/fails.js"),B=i("./node_modules/core-js/internals/classof-raw.js"),D="".split;v.exports=N(function(){return!Object("z").propertyIsEnumerable(0)})?function(O){return B(O)=="String"?D.call(O,""):Object(O)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(v,L,i){var N=i("./node_modules/core-js/internals/is-object.js"),B=i("./node_modules/core-js/internals/object-set-prototype-of.js");v.exports=function(D,O,T){var E,U;return B&&typeof(E=O.constructor)=="function"&&E!==T&&N(U=E.prototype)&&U!==T.prototype&&B(D,U),D}},"./node_modules/core-js/internals/inspect-source.js":function(v,L,i){var N=i("./node_modules/core-js/internals/shared-store.js"),B=Function.toString;typeof N.inspectSource!="function"&&(N.inspectSource=function(D){return B.call(D)}),v.exports=N.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(v,L,i){var N=i("./node_modules/core-js/internals/native-weak-map.js"),B=i("./node_modules/core-js/internals/global.js"),D=i("./node_modules/core-js/internals/is-object.js"),O=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=i("./node_modules/core-js/internals/has.js"),E=i("./node_modules/core-js/internals/shared-store.js"),U=i("./node_modules/core-js/internals/shared-key.js"),F=i("./node_modules/core-js/internals/hidden-keys.js"),W="Object already initialized",re=B.WeakMap,H,k,de,ue=function(p){return de(p)?k(p):H(p,{})},Fe=function(p){return function(j){var Xe;if(!D(j)||(Xe=k(j)).type!==p)throw TypeError("Incompatible receiver, "+p+" required");return Xe}};if(N||E.state){var me=E.state||(E.state=new re),ve=me.get,pe=me.has,J=me.set;H=function(p,j){if(pe.call(me,p))throw new TypeError(W);return j.facade=p,J.call(me,p,j),j},k=function(p){return ve.call(me,p)||{}},de=function(p){return pe.call(me,p)}}else{var ye=U("state");F[ye]=!0,H=function(p,j){if(T(p,ye))throw new TypeError(W);return j.facade=p,O(p,ye,j),j},k=function(p){return T(p,ye)?p[ye]:{}},de=function(p){return T(p,ye)}}v.exports={set:H,get:k,has:de,enforce:ue,getterFor:Fe}},"./node_modules/core-js/internals/is-array.js":function(v,L,i){var N=i("./node_modules/core-js/internals/classof-raw.js");v.exports=Array.isArray||function(D){return N(D)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(v,L,i){var N=i("./node_modules/core-js/internals/fails.js"),B=/#|\.prototype\./,D=function(F,W){var re=T[O(F)];return re==U?!0:re==E?!1:typeof W=="function"?N(W):!!W},O=D.normalize=function(F){return String(F).replace(B,".").toLowerCase()},T=D.data={},E=D.NATIVE="N",U=D.POLYFILL="P";v.exports=D},"./node_modules/core-js/internals/is-object.js":function(v){v.exports=function(L){return typeof L=="object"?L!==null:typeof L=="function"}},"./node_modules/core-js/internals/is-pure.js":function(v){v.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(v,L,i){var N=i("./node_modules/core-js/internals/get-built-in.js"),B=i("./node_modules/core-js/internals/use-symbol-as-uid.js");v.exports=B?function(D){return typeof D=="symbol"}:function(D){var O=N("Symbol");return typeof O=="function"&&Object(D)instanceof O}},"./node_modules/core-js/internals/iterators-core.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/fails.js"),B=i("./node_modules/core-js/internals/object-get-prototype-of.js"),D=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=i("./node_modules/core-js/internals/has.js"),T=i("./node_modules/core-js/internals/well-known-symbol.js"),E=i("./node_modules/core-js/internals/is-pure.js"),U=T("iterator"),F=!1,W=function(){return this},re,H,k;[].keys&&(k=[].keys(),"next"in k?(H=B(B(k)),H!==Object.prototype&&(re=H)):F=!0);var de=re==null||N(function(){var ue={};return re[U].call(ue)!==ue});de&&(re={}),(!E||de)&&!O(re,U)&&D(re,U,W),v.exports={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:F}},"./node_modules/core-js/internals/iterators.js":function(v){v.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(v,L,i){var N=i("./node_modules/core-js/internals/engine-v8-version.js"),B=i("./node_modules/core-js/internals/fails.js");v.exports=!!Object.getOwnPropertySymbols&&!B(function(){var D=Symbol();return!String(D)||!(Object(D)instanceof Symbol)||!Symbol.sham&&N&&N<41})},"./node_modules/core-js/internals/native-weak-map.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/inspect-source.js"),D=N.WeakMap;v.exports=typeof D=="function"&&/native code/.test(B(D))},"./node_modules/core-js/internals/object-assign.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/fails.js"),D=i("./node_modules/core-js/internals/object-keys.js"),O=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),T=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),E=i("./node_modules/core-js/internals/to-object.js"),U=i("./node_modules/core-js/internals/indexed-object.js"),F=Object.assign,W=Object.defineProperty;v.exports=!F||B(function(){if(N&&F({b:1},F(W({},"a",{enumerable:!0,get:function(){W(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},H={},k=Symbol(),de="abcdefghijklmnopqrst";return re[k]=7,de.split("").forEach(function(ue){H[ue]=ue}),F({},re)[k]!=7||D(F({},H)).join("")!=de})?function(H,k){for(var de=E(H),ue=arguments.length,Fe=1,me=O.f,ve=T.f;ue>Fe;)for(var pe=U(arguments[Fe++]),J=me?D(pe).concat(me(pe)):D(pe),ye=J.length,p=0,j;ye>p;)j=J[p++],(!N||ve.call(pe,j))&&(de[j]=pe[j]);return de}:F},"./node_modules/core-js/internals/object-create.js":function(v,L,i){var N=i("./node_modules/core-js/internals/an-object.js"),B=i("./node_modules/core-js/internals/object-define-properties.js"),D=i("./node_modules/core-js/internals/enum-bug-keys.js"),O=i("./node_modules/core-js/internals/hidden-keys.js"),T=i("./node_modules/core-js/internals/html.js"),E=i("./node_modules/core-js/internals/document-create-element.js"),U=i("./node_modules/core-js/internals/shared-key.js"),F=">",W="<",re="prototype",H="script",k=U("IE_PROTO"),de=function(){},ue=function(J){return W+H+F+J+W+"/"+H+F},Fe=function(J){J.write(ue("")),J.close();var ye=J.parentWindow.Object;return J=null,ye},me=function(){var J=E("iframe"),ye="java"+H+":",p;if(J.style)return J.style.display="none",T.appendChild(J),J.src=String(ye),p=J.contentWindow.document,p.open(),p.write(ue("document.F=Object")),p.close(),p.F},ve,pe=function(){try{ve=new ActiveXObject("htmlfile")}catch(ye){}pe=document.domain&&ve?Fe(ve):me()||Fe(ve);for(var J=D.length;J--;)delete pe[re][D[J]];return pe()};O[k]=!0,v.exports=Object.create||function(ye,p){var j;return ye!==null?(de[re]=N(ye),j=new de,de[re]=null,j[k]=ye):j=pe(),p===void 0?j:B(j,p)}},"./node_modules/core-js/internals/object-define-properties.js":function(v,L,i){var N=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/object-define-property.js"),D=i("./node_modules/core-js/internals/an-object.js"),O=i("./node_modules/core-js/internals/object-keys.js");v.exports=N?Object.defineProperties:function(E,U){D(E);for(var F=O(U),W=F.length,re=0,H;W>re;)B.f(E,H=F[re++],U[H]);return E}},"./node_modules/core-js/internals/object-define-property.js":function(v,L,i){var N=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/ie8-dom-define.js"),D=i("./node_modules/core-js/internals/an-object.js"),O=i("./node_modules/core-js/internals/to-property-key.js"),T=Object.defineProperty;L.f=N?T:function(U,F,W){if(D(U),F=O(F),D(W),B)try{return T(U,F,W)}catch(re){}if("get"in W||"set"in W)throw TypeError("Accessors not supported");return"value"in W&&(U[F]=W.value),U}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(v,L,i){var N=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js"),O=i("./node_modules/core-js/internals/to-indexed-object.js"),T=i("./node_modules/core-js/internals/to-property-key.js"),E=i("./node_modules/core-js/internals/has.js"),U=i("./node_modules/core-js/internals/ie8-dom-define.js"),F=Object.getOwnPropertyDescriptor;L.f=N?F:function(re,H){if(re=O(re),H=T(H),U)try{return F(re,H)}catch(k){}if(E(re,H))return D(!B.f.call(re,H),re[H])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-indexed-object.js"),B=i("./node_modules/core-js/internals/object-get-own-property-names.js").f,D={}.toString,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(E){try{return B(E)}catch(U){return O.slice()}};v.exports.f=function(U){return O&&D.call(U)=="[object Window]"?T(U):B(N(U))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(v,L,i){var N=i("./node_modules/core-js/internals/object-keys-internal.js"),B=i("./node_modules/core-js/internals/enum-bug-keys.js"),D=B.concat("length","prototype");L.f=Object.getOwnPropertyNames||function(T){return N(T,D)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(v,L){L.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(v,L,i){var N=i("./node_modules/core-js/internals/has.js"),B=i("./node_modules/core-js/internals/to-object.js"),D=i("./node_modules/core-js/internals/shared-key.js"),O=i("./node_modules/core-js/internals/correct-prototype-getter.js"),T=D("IE_PROTO"),E=Object.prototype;v.exports=O?Object.getPrototypeOf:function(U){return U=B(U),N(U,T)?U[T]:typeof U.constructor=="function"&&U instanceof U.constructor?U.constructor.prototype:U instanceof Object?E:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(v,L,i){var N=i("./node_modules/core-js/internals/has.js"),B=i("./node_modules/core-js/internals/to-indexed-object.js"),D=i("./node_modules/core-js/internals/array-includes.js").indexOf,O=i("./node_modules/core-js/internals/hidden-keys.js");v.exports=function(T,E){var U=B(T),F=0,W=[],re;for(re in U)!N(O,re)&&N(U,re)&&W.push(re);for(;E.length>F;)N(U,re=E[F++])&&(~D(W,re)||W.push(re));return W}},"./node_modules/core-js/internals/object-keys.js":function(v,L,i){var N=i("./node_modules/core-js/internals/object-keys-internal.js"),B=i("./node_modules/core-js/internals/enum-bug-keys.js");v.exports=Object.keys||function(O){return N(O,B)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(v,L){"use strict";var i={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,B=N&&!i.call({1:2},1);L.f=B?function(O){var T=N(this,O);return!!T&&T.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(v,L,i){var N=i("./node_modules/core-js/internals/an-object.js"),B=i("./node_modules/core-js/internals/a-possible-prototype.js");v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var D=!1,O={},T;try{T=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,T.call(O,[]),D=O instanceof Array}catch(E){}return function(U,F){return N(U),B(F),D?T.call(U,F):U.__proto__=F,U}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/to-string-tag-support.js"),B=i("./node_modules/core-js/internals/classof.js");v.exports=N?{}.toString:function(){return"[object "+B(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(v,L,i){var N=i("./node_modules/core-js/internals/is-object.js");v.exports=function(B,D){var O,T;if(D==="string"&&typeof(O=B.toString)=="function"&&!N(T=O.call(B))||typeof(O=B.valueOf)=="function"&&!N(T=O.call(B))||D!=="string"&&typeof(O=B.toString)=="function"&&!N(T=O.call(B)))return T;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(v,L,i){var N=i("./node_modules/core-js/internals/get-built-in.js"),B=i("./node_modules/core-js/internals/object-get-own-property-names.js"),D=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),O=i("./node_modules/core-js/internals/an-object.js");v.exports=N("Reflect","ownKeys")||function(E){var U=B.f(O(E)),F=D.f;return F?U.concat(F(E)):U}},"./node_modules/core-js/internals/path.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js");v.exports=N},"./node_modules/core-js/internals/redefine.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),D=i("./node_modules/core-js/internals/has.js"),O=i("./node_modules/core-js/internals/set-global.js"),T=i("./node_modules/core-js/internals/inspect-source.js"),E=i("./node_modules/core-js/internals/internal-state.js"),U=E.get,F=E.enforce,W=String(String).split("String");(v.exports=function(re,H,k,de){var ue=de?!!de.unsafe:!1,Fe=de?!!de.enumerable:!1,me=de?!!de.noTargetGet:!1,ve;if(typeof k=="function"&&(typeof H=="string"&&!D(k,"name")&&B(k,"name",H),ve=F(k),ve.source||(ve.source=W.join(typeof H=="string"?H:""))),re===N){Fe?re[H]=k:O(H,k);return}else ue?!me&&re[H]&&(Fe=!0):delete re[H];Fe?re[H]=k:B(re,H,k)})(Function.prototype,"toString",function(){return typeof this=="function"&&U(this).source||T(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/an-object.js");v.exports=function(){var B=N(this),D="";return B.global&&(D+="g"),B.ignoreCase&&(D+="i"),B.multiline&&(D+="m"),B.dotAll&&(D+="s"),B.unicode&&(D+="u"),B.sticky&&(D+="y"),D}},"./node_modules/core-js/internals/require-object-coercible.js":function(v){v.exports=function(L){if(L==null)throw TypeError("Can't call method on "+L);return L}},"./node_modules/core-js/internals/set-global.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js");v.exports=function(B,D){try{Object.defineProperty(N,B,{value:D,configurable:!0,writable:!0})}catch(O){N[B]=D}return D}},"./node_modules/core-js/internals/set-to-string-tag.js":function(v,L,i){var N=i("./node_modules/core-js/internals/object-define-property.js").f,B=i("./node_modules/core-js/internals/has.js"),D=i("./node_modules/core-js/internals/well-known-symbol.js"),O=D("toStringTag");v.exports=function(T,E,U){T&&!B(T=U?T:T.prototype,O)&&N(T,O,{configurable:!0,value:E})}},"./node_modules/core-js/internals/shared-key.js":function(v,L,i){var N=i("./node_modules/core-js/internals/shared.js"),B=i("./node_modules/core-js/internals/uid.js"),D=N("keys");v.exports=function(O){return D[O]||(D[O]=B(O))}},"./node_modules/core-js/internals/shared-store.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/set-global.js"),D="__core-js_shared__",O=N[D]||B(D,{});v.exports=O},"./node_modules/core-js/internals/shared.js":function(v,L,i){var N=i("./node_modules/core-js/internals/is-pure.js"),B=i("./node_modules/core-js/internals/shared-store.js");(v.exports=function(D,O){return B[D]||(B[D]=O!==void 0?O:{})})("versions",[]).push({version:"3.16.0",mode:N?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(v,L,i){var N=i("./node_modules/core-js/internals/fails.js");v.exports=function(B){return N(function(){var D=""[B]('"');return D!==D.toLowerCase()||D.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-integer.js"),B=i("./node_modules/core-js/internals/to-string.js"),D=i("./node_modules/core-js/internals/require-object-coercible.js"),O=function(T){return function(E,U){var F=B(D(E)),W=N(U),re=F.length,H,k;return W<0||W>=re?T?"":void 0:(H=F.charCodeAt(W),H<55296||H>56319||W+1===re||(k=F.charCodeAt(W+1))<56320||k>57343?T?F.charAt(W):H:T?F.slice(W,W+2):(H-55296<<10)+(k-56320)+65536)}};v.exports={codeAt:O(!1),charAt:O(!0)}},"./node_modules/core-js/internals/string-trim.js":function(v,L,i){var N=i("./node_modules/core-js/internals/require-object-coercible.js"),B=i("./node_modules/core-js/internals/to-string.js"),D=i("./node_modules/core-js/internals/whitespaces.js"),O="["+D+"]",T=RegExp("^"+O+O+"*"),E=RegExp(O+O+"*$"),U=function(F){return function(W){var re=B(N(W));return F&1&&(re=re.replace(T,"")),F&2&&(re=re.replace(E,"")),re}};v.exports={start:U(1),end:U(2),trim:U(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-integer.js"),B=Math.max,D=Math.min;v.exports=function(O,T){var E=N(O);return E<0?B(E+T,0):D(E,T)}},"./node_modules/core-js/internals/to-indexed-object.js":function(v,L,i){var N=i("./node_modules/core-js/internals/indexed-object.js"),B=i("./node_modules/core-js/internals/require-object-coercible.js");v.exports=function(D){return N(B(D))}},"./node_modules/core-js/internals/to-integer.js":function(v){var L=Math.ceil,i=Math.floor;v.exports=function(N){return isNaN(N=+N)?0:(N>0?i:L)(N)}},"./node_modules/core-js/internals/to-length.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-integer.js"),B=Math.min;v.exports=function(D){return D>0?B(N(D),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(v,L,i){var N=i("./node_modules/core-js/internals/require-object-coercible.js");v.exports=function(B){return Object(N(B))}},"./node_modules/core-js/internals/to-primitive.js":function(v,L,i){var N=i("./node_modules/core-js/internals/is-object.js"),B=i("./node_modules/core-js/internals/is-symbol.js"),D=i("./node_modules/core-js/internals/ordinary-to-primitive.js"),O=i("./node_modules/core-js/internals/well-known-symbol.js"),T=O("toPrimitive");v.exports=function(E,U){if(!N(E)||B(E))return E;var F=E[T],W;if(F!==void 0){if(U===void 0&&(U="default"),W=F.call(E,U),!N(W)||B(W))return W;throw TypeError("Can't convert object to primitive value")}return U===void 0&&(U="number"),D(E,U)}},"./node_modules/core-js/internals/to-property-key.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-primitive.js"),B=i("./node_modules/core-js/internals/is-symbol.js");v.exports=function(D){var O=N(D,"string");return B(O)?O:String(O)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(v,L,i){var N=i("./node_modules/core-js/internals/well-known-symbol.js"),B=N("toStringTag"),D={};D[B]="z",v.exports=String(D)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(v,L,i){var N=i("./node_modules/core-js/internals/is-symbol.js");v.exports=function(B){if(N(B))throw TypeError("Cannot convert a Symbol value to a string");return String(B)}},"./node_modules/core-js/internals/uid.js":function(v){var L=0,i=Math.random();v.exports=function(N){return"Symbol("+String(N===void 0?"":N)+")_"+(++L+i).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(v,L,i){var N=i("./node_modules/core-js/internals/native-symbol.js");v.exports=N&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(v,L,i){var N=i("./node_modules/core-js/internals/well-known-symbol.js");L.f=N},"./node_modules/core-js/internals/well-known-symbol.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/shared.js"),D=i("./node_modules/core-js/internals/has.js"),O=i("./node_modules/core-js/internals/uid.js"),T=i("./node_modules/core-js/internals/native-symbol.js"),E=i("./node_modules/core-js/internals/use-symbol-as-uid.js"),U=B("wks"),F=N.Symbol,W=E?F:F&&F.withoutSetter||O;v.exports=function(re){return(!D(U,re)||!(T||typeof U[re]=="string"))&&(T&&D(F,re)?U[re]=F[re]:U[re]=W("Symbol."+re)),U[re]}},"./node_modules/core-js/internals/whitespaces.js":function(v){v.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/fails.js"),D=i("./node_modules/core-js/internals/is-array.js"),O=i("./node_modules/core-js/internals/is-object.js"),T=i("./node_modules/core-js/internals/to-object.js"),E=i("./node_modules/core-js/internals/to-length.js"),U=i("./node_modules/core-js/internals/create-property.js"),F=i("./node_modules/core-js/internals/array-species-create.js"),W=i("./node_modules/core-js/internals/array-method-has-species-support.js"),re=i("./node_modules/core-js/internals/well-known-symbol.js"),H=i("./node_modules/core-js/internals/engine-v8-version.js"),k=re("isConcatSpreadable"),de=9007199254740991,ue="Maximum allowed index exceeded",Fe=H>=51||!B(function(){var J=[];return J[k]=!1,J.concat()[0]!==J}),me=W("concat"),ve=function(J){if(!O(J))return!1;var ye=J[k];return ye!==void 0?!!ye:D(J)},pe=!Fe||!me;N({target:"Array",proto:!0,forced:pe},{concat:function(ye){var p=T(this),j=F(p,0),Xe=0,ie,he,Ce,ge,ae;for(ie=-1,Ce=arguments.length;iede)throw TypeError(ue);for(he=0;he=de)throw TypeError(ue);U(j,Xe++,ae)}return j.length=Xe,j}})},"./node_modules/core-js/modules/es.array.iterator.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/to-indexed-object.js"),B=i("./node_modules/core-js/internals/add-to-unscopables.js"),D=i("./node_modules/core-js/internals/iterators.js"),O=i("./node_modules/core-js/internals/internal-state.js"),T=i("./node_modules/core-js/internals/define-iterator.js"),E="Array Iterator",U=O.set,F=O.getterFor(E);v.exports=T(Array,"Array",function(W,re){U(this,{type:E,target:N(W),index:0,kind:re})},function(){var W=F(this),re=W.target,H=W.kind,k=W.index++;return!re||k>=re.length?(W.target=void 0,{value:void 0,done:!0}):H=="keys"?{value:k,done:!1}:H=="values"?{value:re[k],done:!1}:{value:[k,re[k]],done:!1}},"values"),D.Arguments=D.Array,B("keys"),B("values"),B("entries")},"./node_modules/core-js/modules/es.array.join.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/indexed-object.js"),D=i("./node_modules/core-js/internals/to-indexed-object.js"),O=i("./node_modules/core-js/internals/array-method-is-strict.js"),T=[].join,E=B!=Object,U=O("join",",");N({target:"Array",proto:!0,forced:E||!U},{join:function(W){return T.call(D(this),W===void 0?",":W)}})},"./node_modules/core-js/modules/es.array.map.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/array-iteration.js").map,D=i("./node_modules/core-js/internals/array-method-has-species-support.js"),O=D("map");N({target:"Array",proto:!0,forced:!O},{map:function(E){return B(this,E,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/is-object.js"),D=i("./node_modules/core-js/internals/is-array.js"),O=i("./node_modules/core-js/internals/to-absolute-index.js"),T=i("./node_modules/core-js/internals/to-length.js"),E=i("./node_modules/core-js/internals/to-indexed-object.js"),U=i("./node_modules/core-js/internals/create-property.js"),F=i("./node_modules/core-js/internals/well-known-symbol.js"),W=i("./node_modules/core-js/internals/array-method-has-species-support.js"),re=W("slice"),H=F("species"),k=[].slice,de=Math.max;N({target:"Array",proto:!0,forced:!re},{slice:function(Fe,me){var ve=E(this),pe=T(ve.length),J=O(Fe,pe),ye=O(me===void 0?pe:me,pe),p,j,Xe;if(D(ve)&&(p=ve.constructor,typeof p=="function"&&(p===Array||D(p.prototype))?p=void 0:B(p)&&(p=p[H],p===null&&(p=void 0)),p===Array||p===void 0))return k.call(ve,J,ye);for(j=new(p===void 0?Array:p)(de(ye-J,0)),Xe=0;J2){if(Ce=Fe(Ce),ge=Ce.charCodeAt(0),ge===43||ge===45){if(ae=Ce.charCodeAt(2),ae===88||ae===120)return NaN}else if(ge===48){switch(Ce.charCodeAt(1)){case 66:case 98:Ae=2,nt=49;break;case 79:case 111:Ae=8,nt=55;break;default:return+Ce}for(vt=Ce.slice(2),Ve=vt.length,Nt=0;Ntnt)return NaN;return parseInt(vt,Ae)}}return+Ce};if(D(me,!ve(" 0o1")||!ve("0b1")||ve("+0x1"))){for(var p=function(Ce){var ge=arguments.length<1?0:Ce,ae=this;return ae instanceof p&&(J?re(function(){pe.valueOf.call(ae)}):E(ae)!=me)?U(new ve(ye(ge)),ae,p):ye(ge)},j=N?k(ve):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Xe=0,ie;j.length>Xe;Xe++)T(ve,ie=j[Xe])&&!T(p,ie)&&ue(p,ie,de(ve,ie));p.prototype=pe,pe.constructor=p,O(B,me,p)}},"./node_modules/core-js/modules/es.object.assign.js":function(v,L,i){var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/object-assign.js");N({target:"Object",stat:!0,forced:Object.assign!==B},{assign:B})},"./node_modules/core-js/modules/es.object.keys.js":function(v,L,i){var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/to-object.js"),D=i("./node_modules/core-js/internals/object-keys.js"),O=i("./node_modules/core-js/internals/fails.js"),T=O(function(){D(1)});N({target:"Object",stat:!0,forced:T},{keys:function(U){return D(B(U))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(v,L,i){var N=i("./node_modules/core-js/internals/to-string-tag-support.js"),B=i("./node_modules/core-js/internals/redefine.js"),D=i("./node_modules/core-js/internals/object-to-string.js");N||B(Object.prototype,"toString",D,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/redefine.js"),B=i("./node_modules/core-js/internals/an-object.js"),D=i("./node_modules/core-js/internals/to-string.js"),O=i("./node_modules/core-js/internals/fails.js"),T=i("./node_modules/core-js/internals/regexp-flags.js"),E="toString",U=RegExp.prototype,F=U[E],W=O(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),re=F.name!=E;(W||re)&&N(RegExp.prototype,E,function(){var k=B(this),de=D(k.source),ue=k.flags,Fe=D(ue===void 0&&k instanceof RegExp&&!("flags"in U)?T.call(k):ue);return"/"+de+"/"+Fe},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/string-multibyte.js").charAt,B=i("./node_modules/core-js/internals/to-string.js"),D=i("./node_modules/core-js/internals/internal-state.js"),O=i("./node_modules/core-js/internals/define-iterator.js"),T="String Iterator",E=D.set,U=D.getterFor(T);O(String,"String",function(F){E(this,{type:T,string:B(F),index:0})},function(){var W=U(this),re=W.string,H=W.index,k;return H>=re.length?{value:void 0,done:!0}:(k=N(re,H),W.index+=k.length,{value:k,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/create-html.js"),D=i("./node_modules/core-js/internals/string-html-forced.js");N({target:"String",proto:!0,forced:D("link")},{link:function(T){return B(this,"a","href",T)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/descriptors.js"),D=i("./node_modules/core-js/internals/global.js"),O=i("./node_modules/core-js/internals/has.js"),T=i("./node_modules/core-js/internals/is-object.js"),E=i("./node_modules/core-js/internals/object-define-property.js").f,U=i("./node_modules/core-js/internals/copy-constructor-properties.js"),F=D.Symbol;if(B&&typeof F=="function"&&(!("description"in F.prototype)||F().description!==void 0)){var W={},re=function(){var me=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ve=this instanceof re?new F(me):me===void 0?F():F(me);return me===""&&(W[ve]=!0),ve};U(re,F);var H=re.prototype=F.prototype;H.constructor=re;var k=H.toString,de=String(F("test"))=="Symbol(test)",ue=/^Symbol\((.*)\)[^)]+$/;E(H,"description",{configurable:!0,get:function(){var me=T(this)?this.valueOf():this,ve=k.call(me);if(O(W,me))return"";var pe=de?ve.slice(7,-1):ve.replace(ue,"$1");return pe===""?void 0:pe}}),N({global:!0,forced:!0},{Symbol:re})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(v,L,i){var N=i("./node_modules/core-js/internals/define-well-known-symbol.js");N("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(v,L,i){"use strict";var N=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/global.js"),D=i("./node_modules/core-js/internals/get-built-in.js"),O=i("./node_modules/core-js/internals/is-pure.js"),T=i("./node_modules/core-js/internals/descriptors.js"),E=i("./node_modules/core-js/internals/native-symbol.js"),U=i("./node_modules/core-js/internals/fails.js"),F=i("./node_modules/core-js/internals/has.js"),W=i("./node_modules/core-js/internals/is-array.js"),re=i("./node_modules/core-js/internals/is-object.js"),H=i("./node_modules/core-js/internals/is-symbol.js"),k=i("./node_modules/core-js/internals/an-object.js"),de=i("./node_modules/core-js/internals/to-object.js"),ue=i("./node_modules/core-js/internals/to-indexed-object.js"),Fe=i("./node_modules/core-js/internals/to-property-key.js"),me=i("./node_modules/core-js/internals/to-string.js"),ve=i("./node_modules/core-js/internals/create-property-descriptor.js"),pe=i("./node_modules/core-js/internals/object-create.js"),J=i("./node_modules/core-js/internals/object-keys.js"),ye=i("./node_modules/core-js/internals/object-get-own-property-names.js"),p=i("./node_modules/core-js/internals/object-get-own-property-names-external.js"),j=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Xe=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),ie=i("./node_modules/core-js/internals/object-define-property.js"),he=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),Ce=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),ge=i("./node_modules/core-js/internals/redefine.js"),ae=i("./node_modules/core-js/internals/shared.js"),Ae=i("./node_modules/core-js/internals/shared-key.js"),nt=i("./node_modules/core-js/internals/hidden-keys.js"),vt=i("./node_modules/core-js/internals/uid.js"),Ve=i("./node_modules/core-js/internals/well-known-symbol.js"),Nt=i("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),yt=i("./node_modules/core-js/internals/define-well-known-symbol.js"),zt=i("./node_modules/core-js/internals/set-to-string-tag.js"),je=i("./node_modules/core-js/internals/internal-state.js"),It=i("./node_modules/core-js/internals/array-iteration.js").forEach,ze=Ae("hidden"),Pt="Symbol",ct="prototype",x=Ve("toPrimitive"),ke=je.set,P=je.getterFor(Pt),A=Object[ct],h=B.Symbol,C=D("JSON","stringify"),b=Xe.f,K=ie.f,ee=p.f,Ee=he.f,le=ae("symbols"),ce=ae("op-symbols"),Qe=ae("string-to-symbol-registry"),He=ae("symbol-to-string-registry"),oe=ae("wks"),$=B.QObject,et=!$||!$[ct]||!$[ct].findChild,Te=T&&U(function(){return pe(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(se,Oe,We){var mt=b(A,Oe);mt&&delete A[Oe],K(se,Oe,We),mt&&se!==A&&K(A,Oe,mt)}:K,Et=function(se,Oe){var We=le[se]=pe(h[ct]);return ke(We,{type:Pt,tag:se,description:Oe}),T||(We.description=Oe),We},at=function(Oe,We,mt){Oe===A&&at(ce,We,mt),k(Oe);var Rt=Fe(We);return k(mt),F(le,Rt)?(mt.enumerable?(F(Oe,ze)&&Oe[ze][Rt]&&(Oe[ze][Rt]=!1),mt=pe(mt,{enumerable:ve(0,!1)})):(F(Oe,ze)||K(Oe,ze,ve(1,{})),Oe[ze][Rt]=!0),Te(Oe,Rt,mt)):K(Oe,Rt,mt)},Ge=function(Oe,We){k(Oe);var mt=ue(We),Rt=J(mt).concat(ut(mt));return It(Rt,function(en){(!T||St.call(mt,en))&&at(Oe,en,mt[en])}),Oe},Ut=function(Oe,We){return We===void 0?pe(Oe):Ge(pe(Oe),We)},St=function(Oe){var We=Fe(Oe),mt=Ee.call(this,We);return this===A&&F(le,We)&&!F(ce,We)?!1:mt||!F(this,We)||!F(le,We)||F(this,ze)&&this[ze][We]?mt:!0},Ie=function(Oe,We){var mt=ue(Oe),Rt=Fe(We);if(!(mt===A&&F(le,Rt)&&!F(ce,Rt))){var en=b(mt,Rt);return en&&F(le,Rt)&&!(F(mt,ze)&&mt[ze][Rt])&&(en.enumerable=!0),en}},$e=function(Oe){var We=ee(ue(Oe)),mt=[];return It(We,function(Rt){!F(le,Rt)&&!F(nt,Rt)&&mt.push(Rt)}),mt},ut=function(Oe){var We=Oe===A,mt=ee(We?ce:ue(Oe)),Rt=[];return It(mt,function(en){F(le,en)&&(!We||F(A,en))&&Rt.push(le[en])}),Rt};if(E||(h=function(){if(this instanceof h)throw TypeError("Symbol is not a constructor");var Oe=!arguments.length||arguments[0]===void 0?void 0:me(arguments[0]),We=vt(Oe),mt=function(Rt){this===A&&mt.call(ce,Rt),F(this,ze)&&F(this[ze],We)&&(this[ze][We]=!1),Te(this,We,ve(1,Rt))};return T&&et&&Te(A,We,{configurable:!0,set:mt}),Et(We,Oe)},ge(h[ct],"toString",function(){return P(this).tag}),ge(h,"withoutSetter",function(se){return Et(vt(se),se)}),he.f=St,ie.f=at,Xe.f=Ie,ye.f=p.f=$e,j.f=ut,Nt.f=function(se){return Et(Ve(se),se)},T&&(K(h[ct],"description",{configurable:!0,get:function(){return P(this).description}}),O||ge(A,"propertyIsEnumerable",St,{unsafe:!0}))),N({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:h}),It(J(oe),function(se){yt(se)}),N({target:Pt,stat:!0,forced:!E},{for:function(se){var Oe=me(se);if(F(Qe,Oe))return Qe[Oe];var We=h(Oe);return Qe[Oe]=We,He[We]=Oe,We},keyFor:function(Oe){if(!H(Oe))throw TypeError(Oe+" is not a symbol");if(F(He,Oe))return He[Oe]},useSetter:function(){et=!0},useSimple:function(){et=!1}}),N({target:"Object",stat:!0,forced:!E,sham:!T},{create:Ut,defineProperty:at,defineProperties:Ge,getOwnPropertyDescriptor:Ie}),N({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:$e,getOwnPropertySymbols:ut}),N({target:"Object",stat:!0,forced:U(function(){j.f(1)})},{getOwnPropertySymbols:function(Oe){return j.f(de(Oe))}}),C){var Qt=!E||U(function(){var se=h();return C([se])!="[null]"||C({a:se})!="{}"||C(Object(se))!="{}"});N({target:"JSON",stat:!0,forced:Qt},{stringify:function(Oe,We,mt){for(var Rt=[Oe],en=1,En;arguments.length>en;)Rt.push(arguments[en++]);if(En=We,!(!re(We)&&Oe===void 0||H(Oe)))return W(We)||(We=function(xn,ln){if(typeof En=="function"&&(ln=En.call(this,xn,ln)),!H(ln))return ln}),Rt[1]=We,C.apply(null,Rt)}})}h[ct][x]||Ce(h[ct],x,h[ct].valueOf),zt(h,Pt),nt[ze]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/dom-iterables.js"),D=i("./node_modules/core-js/internals/array-for-each.js"),O=i("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var T in B){var E=N[T],U=E&&E.prototype;if(U&&U.forEach!==D)try{O(U,"forEach",D)}catch(F){U.forEach=D}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(v,L,i){var N=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/dom-iterables.js"),D=i("./node_modules/core-js/modules/es.array.iterator.js"),O=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=i("./node_modules/core-js/internals/well-known-symbol.js"),E=T("iterator"),U=T("toStringTag"),F=D.values;for(var W in B){var re=N[W],H=re&&re.prototype;if(H){if(H[E]!==F)try{O(H,E,F)}catch(de){H[E]=F}if(H[U]||O(H,U,W),B[W]){for(var k in D)if(H[k]!==D[k])try{O(H,k,D[k])}catch(de){H[k]=D[k]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(v){(function(L,i){v.exports=i()})(this,function(){"use strict";function L($){var et=typeof $;return $!==null&&(et==="object"||et==="function")}function i($){return typeof $=="function"}var N=void 0;Array.isArray?N=Array.isArray:N=function($){return Object.prototype.toString.call($)==="[object Array]"};var B=N,D=0,O=void 0,T=void 0,E=function(et,Te){J[D]=et,J[D+1]=Te,D+=2,D===2&&(T?T(ye):j())};function U($){T=$}function F($){E=$}var W=typeof window!="undefined"?window:void 0,re=W||{},H=re.MutationObserver||re.WebKitMutationObserver,k=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",de=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ue(){return function(){return s.nextTick(ye)}}function Fe(){return typeof O!="undefined"?function(){O(ye)}:pe()}function me(){var $=0,et=new H(ye),Te=document.createTextNode("");return et.observe(Te,{characterData:!0}),function(){Te.data=$=++$%2}}function ve(){var $=new MessageChannel;return $.port1.onmessage=ye,function(){return $.port2.postMessage(0)}}function pe(){var $=setTimeout;return function(){return $(ye,1)}}var J=new Array(1e3);function ye(){for(var $=0;$>1,i=-7,N=Se?Be-1:0,B=Se?-1:1,D=g[s+N];for(N+=B,te=D&(1<<-i)-1,D>>=-i,i+=Z;i>0;te=te*256+g[s+N],N+=B,i-=8);for(G=te&(1<<-i)-1,te>>=-i,i+=M;i>0;G=G*256+g[s+N],N+=B,i-=8);if(te===0)te=1-L;else{if(te===v)return G?NaN:(D?-1:1)*(1/0);G=G+Math.pow(2,M),te=te-L}return(D?-1:1)*G*Math.pow(2,te-M)},Zt.write=function(g,s,Se,M,Be,te){var G,Z,v,L=te*8-Be-1,i=(1<>1,B=Be===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=M?0:te-1,O=M?1:-1,T=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(Z=isNaN(s)?1:0,G=i):(G=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-G))<1&&(G--,v*=2),G+N>=1?s+=B/v:s+=B*Math.pow(2,1-N),s*v>=2&&(G++,v/=2),G+N>=i?(Z=0,G=i):G+N>=1?(Z=(s*v-1)*Math.pow(2,Be),G=G+N):(Z=s*Math.pow(2,N-1)*Math.pow(2,Be),G=0));Be>=8;g[Se+D]=Z&255,D+=O,Z/=256,Be-=8);for(G=G<0;g[Se+D]=G&255,D+=O,G/=256,L-=8);g[Se+D-O]|=T*128}},24334:function(nr,Zt,g){var s,Se;(function(M,Be){nr.exports=Be(M)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof g.g!="undefined"?g.g:this,function(M){"use strict";M=M||{};var Be=M.Base64,te="2.6.4",G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=function(p){for(var j={},Xe=0,ie=p.length;Xe>>6)+v(128|j&63):v(224|j>>>12&15)+v(128|j>>>6&63)+v(128|j&63)}else{var j=65536+(p.charCodeAt(0)-55296)*1024+(p.charCodeAt(1)-56320);return v(240|j>>>18&7)+v(128|j>>>12&63)+v(128|j>>>6&63)+v(128|j&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,N=function(p){return p.replace(i,L)},B=function(p){var j=[0,2,1][p.length%3],Xe=p.charCodeAt(0)<<16|(p.length>1?p.charCodeAt(1):0)<<8|(p.length>2?p.charCodeAt(2):0),ie=[G.charAt(Xe>>>18),G.charAt(Xe>>>12&63),j>=2?"=":G.charAt(Xe>>>6&63),j>=1?"=":G.charAt(Xe&63)];return ie.join("")},D=M.btoa&&typeof M.btoa=="function"?function(p){return M.btoa(p)}:function(p){if(p.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return p.replace(/[\s\S]{1,3}/g,B)},O=function(p){return D(N(String(p)))},T=function(p){return p.replace(/[+\/]/g,function(j){return j=="+"?"-":"_"}).replace(/=/g,"")},E=function(p,j){return j?T(O(p)):O(p)},U=function(p){return E(p,!0)},F;M.Uint8Array&&(F=function(p,j){for(var Xe="",ie=0,he=p.length;ie>>18)+G.charAt(Ae>>>12&63)+(typeof ge!="undefined"?G.charAt(Ae>>>6&63):"=")+(typeof ae!="undefined"?G.charAt(Ae&63):"=")}return j?T(Xe):Xe});var W=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,re=function(p){switch(p.length){case 4:var j=(7&p.charCodeAt(0))<<18|(63&p.charCodeAt(1))<<12|(63&p.charCodeAt(2))<<6|63&p.charCodeAt(3),Xe=j-65536;return v((Xe>>>10)+55296)+v((Xe&1023)+56320);case 3:return v((15&p.charCodeAt(0))<<12|(63&p.charCodeAt(1))<<6|63&p.charCodeAt(2));default:return v((31&p.charCodeAt(0))<<6|63&p.charCodeAt(1))}},H=function(p){return p.replace(W,re)},k=function(p){var j=p.length,Xe=j%4,ie=(j>0?Z[p.charAt(0)]<<18:0)|(j>1?Z[p.charAt(1)]<<12:0)|(j>2?Z[p.charAt(2)]<<6:0)|(j>3?Z[p.charAt(3)]:0),he=[v(ie>>>16),v(ie>>>8&255),v(ie&255)];return he.length-=[0,0,2,1][Xe],he.join("")},de=M.atob&&typeof M.atob=="function"?function(p){return M.atob(p)}:function(p){return p.replace(/\S{1,4}/g,k)},ue=function(p){return de(String(p).replace(/[^A-Za-z0-9\+\/]/g,""))},Fe=function(p){return H(de(p))},me=function(p){return String(p).replace(/[-_]/g,function(j){return j=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ve=function(p){return Fe(me(p))},pe;M.Uint8Array&&(pe=function(p){return Uint8Array.from(ue(me(p)),function(j){return j.charCodeAt(0)})});var J=function(){var p=M.Base64;return M.Base64=Be,p};if(M.Base64={VERSION:te,atob:ue,btoa:D,fromBase64:ve,toBase64:E,utob:N,encode:E,encodeURI:U,btou:H,decode:ve,noConflict:J,fromUint8Array:F,toUint8Array:pe},typeof Object.defineProperty=="function"){var ye=function(p){return{value:p,enumerable:!1,writable:!0,configurable:!0}};M.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ye(function(){return ve(this)})),Object.defineProperty(String.prototype,"toBase64",ye(function(p){return E(this,p)})),Object.defineProperty(String.prototype,"toBase64URI",ye(function(){return E(this,!0)}))}}return M.Meteor&&(Base64=M.Base64),nr.exports?nr.exports.Base64=M.Base64:(s=[],Se=function(){return M.Base64}.apply(Zt,s),Se!==void 0&&(nr.exports=Se)),{Base64:M.Base64}})},53307:function(nr,Zt,g){"use strict";g.r(Zt),g.d(Zt,{AcroForm:function(){return il},AcroFormAppearance:function(){return Ur},AcroFormButton:function(){return Mo},AcroFormCheckBox:function(){return Ti},AcroFormChoiceField:function(){return Qr},AcroFormComboBox:function(){return io},AcroFormEditBox:function(){return oo},AcroFormListBox:function(){return ti},AcroFormPasswordField:function(){return Ho},AcroFormPushButton:function(){return si},AcroFormRadioButton:function(){return No},AcroFormTextField:function(){return gi},GState:function(){return ef},ShadingPattern:function(){return Vu},TilingPattern:function(){return Wu},default:function(){return yo},jsPDF:function(){return yo}});var s=g(76190),Se={},M=function(e,n,t,r,o){var l=new Worker(Se[n]||(Se[n]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return l.onmessage=function(w){var y=w.data,S=y.$e$;if(S){var Q=new Error(S[0]);Q.code=S[1],Q.stack=S[2],o(Q,null)}else o(null,y)},l.postMessage(t,r),l},Be=Uint8Array,te=Uint16Array,G=Int32Array,Z=new Be([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),v=new Be([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),L=new Be([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i=function(e,n){for(var t=new te(31),r=0;r<31;++r)t[r]=n+=1<>1|(F&21845)<<1;W=(W&52428)>>2|(W&13107)<<2,W=(W&61680)>>4|(W&3855)<<4,U[F]=((W&65280)>>8|(W&255)<<8)>>1}for(var re=function(e,n,t){for(var r=e.length,o=0,l=new te(n);o>S]=Q}else for(y=new te(r),o=0;o>15-e[o]);return y},H=new Be(288),F=0;F<144;++F)H[F]=8;for(var F=144;F<256;++F)H[F]=9;for(var F=256;F<280;++F)H[F]=7;for(var F=280;F<288;++F)H[F]=8;for(var k=new Be(32),F=0;F<32;++F)k[F]=5;var de=re(H,9,0),ue=null,Fe=re(k,5,0),me=null,ve=function(e){for(var n=e[0],t=1;tn&&(n=e[t]);return n},pe=function(e,n,t){var r=n/8|0;return(e[r]|e[r+1]<<8)>>(n&7)&t},J=function(e,n){var t=n/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(n&7)},ye=function(e){return(e+7)/8|0},p=function(e,n,t){return(n==null||n<0)&&(n=0),(t==null||t>e.length)&&(t=e.length),new Be(e.subarray(n,t))},j={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Xe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ie=function(e,n,t){var r=new Error(n||Xe[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,ie),!t)throw r;return r},he=function(e,n,t,r){var o=e.length,l=r?r.length:0;if(!o||n.f&&!n.l)return t||new Be(0);var w=!t,y=w||n.i!=2,S=n.i;w&&(t=new Be(o*3));var Q=function(wr){var $r=t.length;if(wr>$r){var Gr=new Be(Math.max($r*2,wr));Gr.set(t),t=Gr}},V=n.f||0,fe=n.p||0,Le=n.b||0,z=n.l,ot=n.d,Je=n.m,it=n.n,Me=o*8;do{if(!z){V=pe(e,fe,1);var Mt=pe(e,fe+1,3);if(fe+=3,Mt)if(Mt==1)z=ue,ot=me,Je=9,it=5;else if(Mt==2){var Hn=pe(e,fe,31)+257,Un=pe(e,fe+10,15)+4,Gt=Hn+pe(e,fe+5,31)+1;fe+=14;for(var xt=new Be(Gt),sn=new Be(19),_e=0;_e>4;if(Ot<16)xt[_e++]=Ot;else{var Fn=0,Nn=0;for(Ot==16?(Nn=3+pe(e,fe,3),fe+=2,Fn=xt[_e-1]):Ot==17?(Nn=3+pe(e,fe,7),fe+=3):Ot==18&&(Nn=11+pe(e,fe,127),fe+=7);Nn--;)xt[_e++]=Fn}}var gn=xt.subarray(0,Hn),Tn=xt.subarray(Hn);Je=ve(gn),it=ve(Tn),z=re(gn,Je,1),ot=re(Tn,it,1)}else ie(1);else{var Ot=ye(fe)+4,Ct=e[Ot-4]|e[Ot-3]<<8,vn=Ot+Ct;if(vn>o){S&&ie(0);break}y&&Q(Le+Ct),t.set(e.subarray(Ot,vn),Le),n.b=Le+=Ct,n.p=fe=vn*8,n.f=V;continue}if(fe>Me){S&&ie(0);break}}y&&Q(Le+131072);for(var Ir=(1<>4;if(fe+=Fn&15,fe>Me){S&&ie(0);break}if(Fn||ie(2),bt<256)t[Le++]=bt;else if(bt==256){Pe=fe,z=null;break}else{var Lt=bt-254;if(bt>264){var _e=bt-257,Ht=Z[_e];Lt=pe(e,fe,(1<>4;Jt||ie(3),fe+=Jt&15;var Tn=T[fn];if(fn>3){var Ht=v[fn];Tn+=J(e,fe)&(1<Me){S&&ie(0);break}y&&Q(Le+131072);var Ln=Le+Lt;if(Le>8},ge=function(e,n,t){t<<=n&7;var r=n/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},ae=function(e,n){for(var t=[],r=0;rLe&&(Le=l[r].s);var z=new te(Le+1),ot=Ae(t[V-1],z,0);if(ot>n){var r=0,Je=0,it=ot-n,Me=1<n)Je+=Me-(1<>=it;Je>0;){var Ot=l[r].s;z[Ot]=0&&Je;--r){var Ct=l[r].s;z[Ct]==n&&(--z[Ct],++Je)}ot=n}return{t:new Be(z),l:ot}},Ae=function(e,n,t){return e.s==-1?Math.max(Ae(e.l,n,t+1),Ae(e.r,n,t+1)):n[e.s]=t},nt=function(e){for(var n=e.length;n&&!e[--n];);for(var t=new te(++n),r=0,o=e[0],l=1,w=function(S){t[r++]=S},y=1;y<=n;++y)if(e[y]==o&&y!=n)++l;else{if(!o&&l>2){for(;l>138;l-=138)w(32754);l>2&&(w(l>10?l-11<<5|28690:l-3<<5|12305),l=0)}else if(l>3){for(w(o),--l;l>6;l-=6)w(8304);l>2&&(w(l-3<<5|8208),l=0)}for(;l--;)w(o);l=1,o=e[y]}return{c:t.subarray(0,r),n}},vt=function(e,n){for(var t=0,r=0;r>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var l=0;l4&&!sn[L[At-1]];--At);var jt=Q+5<<3,Tt=vt(o,H)+vt(l,k)+w,Bn=vt(o,Le)+vt(l,Je)+w+14+3*At+vt(Un,sn)+2*Un[16]+3*Un[17]+7*Un[18];if(S>=0&&jt<=Tt&&jt<=Bn)return Ve(n,V,e.subarray(S,S+Q));var Fn,Nn,gn,Tn;if(Ce(n,V,1+(Bn15&&(Ce(n,V,bt[Gt]>>5&127),V+=bt[Gt]>>12)}}else Fn=de,Nn=H,gn=Fe,Tn=k;for(var Gt=0;Gt255){var Lt=Ht>>18&31;ge(n,V,Fn[Lt+257]),V+=Nn[Lt+257],Lt>7&&(Ce(n,V,Ht>>23&31),V+=Z[Lt]);var Jt=Ht&31;ge(n,V,gn[Jt]),V+=Tn[Jt],Jt>3&&(ge(n,V,Ht>>5&8191),V+=v[Jt])}else ge(n,V,Fn[Ht]),V+=Nn[Ht]}return ge(n,V,Fn[256]),V+Nn[256]},yt=new G([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new Be(0),je=function(e,n,t,r,o,l){var w=l.z||e.length,y=new Be(r+w+5*(1+Math.ceil(w/7e3))+o),S=y.subarray(r,y.length-o),Q=l.l,V=(l.r||0)&7;if(n){V&&(S[0]=l.r>>3);for(var fe=yt[n-1],Le=fe>>13,z=fe&8191,ot=(1<7e3||sn>24576)&&(Fn>423||!Q)){V=Nt(e,S,0,Ct,vn,Hn,Gt,sn,At,xt-At,V),sn=Un=Gt=0,At=xt;for(var Nn=0;Nn<286;++Nn)vn[Nn]=0;for(var Nn=0;Nn<30;++Nn)Hn[Nn]=0}var gn=2,Tn=0,Ir=z,or=Tt-Bn&32767;if(Fn>2&&jt==Ot(xt-or))for(var Pe=Math.min(Le,Fn)-1,bt=Math.min(32767,xt),Lt=Math.min(258,Fn);or<=bt&&--Ir&&Tt!=Bn;){if(e[xt+gn]==e[xt+gn-or]){for(var Ht=0;Htgn){if(gn=Ht,Tn=or,Ht>Pe)break;for(var Jt=Math.min(or,Ht-2),fn=0,Nn=0;Nnfn&&(fn=$n,Bn=Ln)}}}Tt=Bn,Bn=Je[Tt],or+=Tt-Bn&32767}if(Tn){Ct[sn++]=268435456|D[gn]<<18|E[Tn];var wr=D[gn]&31,$r=E[Tn]&31;Gt+=Z[wr]+v[$r],++vn[257+wr],++Hn[$r],_e=xt+gn,++Un}else Ct[sn++]=e[xt],++vn[e[xt]]}}for(xt=Math.max(xt,_e);xt=w&&(S[V/8|0]=Q,Gr=w),V=Ve(S,V+1,e.subarray(xt,Gr))}l.i=w}return p(y,0,r+ye(V)+o)},It=null,ze=function(){var e=-1;return{p:function(n){for(var t=e,r=0;r>>8;e=t},d:function(){return~e}}},Pt=function(){var e=1,n=0;return{p:function(t){for(var r=e,o=n,l=t.length|0,w=0;w!=l;){for(var y=Math.min(w+2655,l);w>16),o=(o&65535)+15*(o>>16)}e=r,n=o},d:function(){return e%=65521,n%=65521,(e&255)<<24|(e&65280)<<8|(n&255)<<8|n>>8}}},ct=function(e,n,t,r,o){if(!o&&(o={l:1},n.dictionary)){var l=n.dictionary.subarray(-32768),w=new Be(l.length+e.length);w.set(l),w.set(e,l.length),e=w,o.w=l.length}return je(e,n.level==null?6:n.level,n.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+n.mem,t,r,o)},x=function(e,n){var t={};for(var r in e)t[r]=e[r];for(var r in n)t[r]=n[r];return t},ke=function(e,n,t){for(var r=e(),o=e.toString(),l=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),w=0;w>>0},Et=function(e,n){return Te(e,n)+Te(e,n+4)*4294967296},at=function(e,n,t){for(;t;++n)e[n]=t,t>>>=8},Ge=function(e,n){var t=n.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=n.level<2?4:n.level==9?2:0,e[9]=3,n.mtime!=0&&at(e,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),t){e[3]=8;for(var r=0;r<=t.length;++r)e[r+10]=t.charCodeAt(r)}},Ut=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&ie(6,"invalid gzip data");var n=e[3],t=10;n&4&&(t+=(e[10]|e[11]<<8)+2);for(var r=(n>>3&1)+(n>>4&1);r>0;r-=!e[t++]);return t+(n&2)},St=function(e){var n=e.length;return(e[n-4]|e[n-3]<<8|e[n-2]<<16|e[n-1]<<24)>>>0},Ie=function(e){return 10+(e.filename?e.filename.length+1:0)},$e=function(e,n){var t=n.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(n.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,n.dictionary){var o=Pt();o.p(n.dictionary),at(e,2,o.d())}},ut=function(e,n){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ie(6,"invalid zlib data"),(e[1]>>5&1)==+!n&&ie(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Qt(e,n){return typeof e=="function"&&(n=e,e={}),this.ondata=n,e}var se=null,Oe=null;function We(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),He(e,n,[b],function(r){return ce(mt(r.data[0],r.data[1]))},0,t)}function mt(e,n){return ct(e,n||{},0,0)}var Rt=null,en=null;function En(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),He(e,n,[C],function(r){return ce(xn(r.data[0],Qe(r.data[1])))},1,t)}function xn(e,n){return he(e,{i:2},n&&n.out,n&&n.dictionary)}var ln=null,tn=null;function Yt(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),He(e,n,[b,K,function(){return[cn]}],function(r){return ce(cn(r.data[0],r.data[1]))},2,t)}function cn(e,n){n||(n={});var t=ze(),r=e.length;t.p(e);var o=ct(e,n,Ie(n),8),l=o.length;return Ge(o,n),at(o,l-8,t.d()),at(o,l-4,r),o}var yn=null,In=null;function Kn(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),He(e,n,[C,ee,function(){return[qn]}],function(r){return ce(qn(r.data[0],r.data[1]))},3,t)}function qn(e,n){var t=Ut(e);return t+8>e.length&&ie(6,"invalid gzip data"),he(e.subarray(t,-8),{i:2},n&&n.out||new Be(St(e)),n&&n.dictionary)}var er=null,xr=null;function Lr(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),He(e,n,[b,Ee,function(){return[fr]}],function(r){return ce(fr(r.data[0],r.data[1]))},4,t)}function fr(e,n){n||(n={});var t=Pt();t.p(e);var r=ct(e,n,n.dictionary?6:2,4);return $e(r,n),at(r,r.length-4,t.d()),r}var Jn=null,zr=null;function pr(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),He(e,n,[C,le,function(){return[ao]}],function(r){return ce(ao(r.data[0],Qe(r.data[1])))},5,t)}function ao(e,n){return he(e.subarray(ut(e,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var mo=null,Dn=null;function Cn(e,n,t){return t||(t=n,n={}),typeof t!="function"&&ie(7),e[0]==31&&e[1]==139&&e[2]==8?Kn(e,n,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?En(e,n,t):pr(e,n,t)}function br(e,n){return e[0]==31&&e[1]==139&&e[2]==8?qn(e,n):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?xn(e,n):ao(e,n)}var Or=function(e,n,t,r){for(var o in e){var l=e[o],w=n+o,y=r;Array.isArray(l)&&(y=x(r,l[1]),l=l[0]),l instanceof Be?t[w]=[l,y]:(t[w+="/"]=[new Be(0),y],Or(l,w,t,r))}},wt=typeof TextEncoder!="undefined"&&new TextEncoder,dt=typeof TextDecoder!="undefined"&&new TextDecoder,Sn=0;try{dt.decode(zt,{stream:!0}),Sn=1}catch(e){}var Re=function(e){for(var n="",t=0;;){var r=e[t++],o=(r>127)+(r>223)+(r>239);if(t+o>e.length)return{s:n,r:p(e,t-1)};o?o==3?(r=((r&15)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,n+=String.fromCharCode(55296|r>>10,56320|r&1023)):o&1?n+=String.fromCharCode((r&31)<<6|e[t++]&63):n+=String.fromCharCode((r&15)<<12|(e[t++]&63)<<6|e[t++]&63):n+=String.fromCharCode(r)}},lt=null,Bt=null;function qt(e,n){if(n){for(var t=new Be(e.length),r=0;r>1)),w=0,y=function(V){l[w++]=V},r=0;rl.length){var S=new Be(w+8+(o-r<<1));S.set(l),l=S}var Q=e.charCodeAt(r);Q<128||n?y(Q):Q<2048?(y(192|Q>>6),y(128|Q&63)):Q>55295&&Q<57344?(Q=65536+(Q&1047552)|e.charCodeAt(++r)&1023,y(240|Q>>18),y(128|Q>>12&63),y(128|Q>>6&63),y(128|Q&63)):(y(224|Q>>12),y(128|Q>>6&63),y(128|Q&63))}return p(l,0,w)}function bn(e,n){if(n){for(var t="",r=0;r65535&&ie(9),n+=r+4}return n},Wn=function(e,n,t,r,o,l,w,y){var S=r.length,Q=t.extra,V=y&&y.length,fe=sr(Q);at(e,n,w!=null?33639248:67324752),n+=4,w!=null&&(e[n++]=20,e[n++]=t.os),e[n]=20,n+=2,e[n++]=t.flag<<1|(l<0&&8),e[n++]=o&&8,e[n++]=t.compression&255,e[n++]=t.compression>>8;var Le=new Date(t.mtime==null?Date.now():t.mtime),z=Le.getFullYear()-1980;if((z<0||z>119)&&ie(10),at(e,n,z<<25|Le.getMonth()+1<<21|Le.getDate()<<16|Le.getHours()<<11|Le.getMinutes()<<5|Le.getSeconds()>>1),n+=4,l!=-1&&(at(e,n,t.crc),at(e,n+4,l<0?-l-2:l),at(e,n+8,t.size)),at(e,n+12,S),at(e,n+14,fe),n+=16,w!=null&&(at(e,n,V),at(e,n+6,t.attrs),at(e,n+10,w),n+=14),e.set(r,n),n+=S,fe)for(var ot in Q){var Je=Q[ot],it=Je.length;at(e,n,+ot),at(e,n+2,it),e.set(Je,n+4),n+=4+it}return V&&(e.set(y,n),n+=V),n},Sr=function(e,n,t,r,o){at(e,n,101010256),at(e,n+8,t),at(e,n+10,t),at(e,n+12,r),at(e,n+16,o)},hr=null,Fr=null,Ko=null,$i=null;function wi(e,n,t){t||(t=n,n={}),typeof t!="function"&&ie(7);var r={};Or(e,"",r,n);var o=Object.keys(r),l=o.length,w=0,y=0,S=l,Q=new Array(l),V=[],fe=function(){for(var it=0;it65535&&Tt(ie(11,0,1),null),!jt)Tt(null,Ot);else if(Hn<16e4)try{Tt(null,mt(Ot,Ct))}catch(Bn){Tt(Bn,null)}else V.push(We(Ot,Ct,Tt))},Je=0;Je65535&&ie(11);var Me=V?mt(S,Q):S,Mt=Me.length,Ot=ze();Ot.p(S),r.push(x(Q,{size:S.length,crc:Ot.d(),c:Me,f:fe,m:ot,u:Le!=w.length||ot&&z.length!=Je,o,compression:V})),o+=30+Le+it+Mt,l+=76+2*(Le+it)+(Je||0)+Mt}for(var Ct=new Be(l+22),vn=o,Hn=l-o,Un=0;Un65558)return w(ie(13,0,1),null),o;var S=et(e,y+8);if(S){var Q=S,V=Te(e,y+16),fe=V==4294967295||Q==65535;if(fe){var Le=Te(e,y-12);fe=Te(e,Le)==101075792,fe&&(Q=S=Te(e,Le+32),V=Te(e,Le+48))}for(var z=n&&n.filter,ot=function(it){var Me=hn(e,V,fe),Mt=Me[0],Ot=Me[1],Ct=Me[2],vn=Me[3],Hn=Me[4],Un=Me[5],Gt=Yn(e,Un);V=Hn;var xt=function(_e,At){_e?(o(),w(_e,null)):(At&&(l[vn]=At),--S||w(null,l))};if(!z||z({name:vn,size:Ot,originalSize:Ct,compression:Mt}))if(!Mt)xt(null,p(e,Gt,Gt+Ot));else if(Mt==8){var sn=e.subarray(Gt,Gt+Ot);if(Ct<524288||Ot>.8*Ct)try{xt(null,xn(sn,{out:new Be(Ct)}))}catch(_e){xt(_e,null)}else r.push(En(sn,{size:Ct},xt))}else xt(ie(14,"unknown compression type "+Mt,1),null);else xt(null,null)},Je=0;Je65558)&&ie(13);var o=et(e,r+8);if(!o)return{};var l=Te(e,r+16),w=l==4294967295||o==65535;if(w){var y=Te(e,r-12);w=Te(e,y)==101075792,w&&(o=Te(e,y+32),l=Te(e,y+48))}for(var S=n&&n.filter,Q=0;Q{const e=new Uint8Array(4),n=new Uint32Array(e.buffer);return!((n[0]=1)&e[0])})(),ki={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ri{constructor(n=ea,t={}){xa(this,"buffer");xa(this,"byteLength");xa(this,"byteOffset");xa(this,"length");xa(this,"offset");xa(this,"lastWrittenByte");xa(this,"littleEndian");xa(this,"_data");xa(this,"_mark");xa(this,"_marks");let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);const o=t.offset?t.offset>>>0:0,l=n.byteLength-o;let w=o;(ArrayBuffer.isView(n)||n instanceof ri)&&(n.byteLength!==n.buffer.byteLength&&(w=n.byteOffset+o),n=n.buffer),r?this.lastWrittenByte=l:this.lastWrittenByte=0,this.buffer=n,this.length=l,this.byteLength=l,this.byteOffset=w,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,w,l),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const r=(this.offset+n)*2,o=new Uint8Array(r);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,t){const r=ki[t].BYTES_PER_ELEMENT*n,o=this.byteOffset+this.offset,l=this.buffer.slice(o,o+r);if(this.littleEndian===ya&&t!=="uint8"&&t!=="int8"){const y=new Uint8Array(this.buffer.slice(o,o+r));y.reverse();const S=new ki[t](y.buffer);return this.offset+=r,S.reverse(),S}const w=new ki[t](l);return this.offset+=r,w}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let t="";for(let r=0;rthis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const di=4,Xo=0,aa=1,Ga=2;function wa(e){let n=e.length;for(;--n>=0;)e[n]=0}const Aa=0,Yi=1,fa=2,vA=3,sA=258,sa=29,Vr=256,Qn=Vr+1+sa,Xn=30,Gn=19,_n=2*Qn+1,gr=15,jr=16,Ao=7,qo=256,fi=16,_a=17,lA=18,ds=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Ba=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Cs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),FA=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uA=512,ta=new Array((Qn+2)*2);wa(ta);const ha=new Array(Xn*2);wa(ha);const pi=new Array(uA);wa(pi);const $a=new Array(sA-vA+1);wa($a);const PA=new Array(sa);wa(PA);const cA=new Array(Xn);wa(cA);function yA(e,n,t,r,o){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}let TA,Co,Zo;function pa(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const ja=e=>e<256?pi[e]:pi[256+(e>>>7)],Es=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},IA=(e,n,t)=>{e.bi_valid>jr-t?(e.bi_buf|=n<>jr-e.bi_valid,e.bi_valid+=t-jr):(e.bi_buf|=n<{IA(e,t[n*2],t[n*2+1])},Qu=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},El=e=>{e.bi_valid===16?(Es(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},Ou=(e,n)=>{const t=n.dyn_tree,r=n.max_code,o=n.stat_desc.static_tree,l=n.stat_desc.has_stree,w=n.stat_desc.extra_bits,y=n.stat_desc.extra_base,S=n.stat_desc.max_length;let Q,V,fe,Le,z,ot,Je=0;for(Le=0;Le<=gr;Le++)e.bl_count[Le]=0;for(t[e.heap[e.heap_max]*2+1]=0,Q=e.heap_max+1;Q<_n;Q++)V=e.heap[Q],Le=t[t[V*2+1]*2+1]+1,Le>S&&(Le=S,Je++),t[V*2+1]=Le,!(V>r)&&(e.bl_count[Le]++,z=0,V>=y&&(z=w[V-y]),ot=t[V*2],e.opt_len+=ot*(Le+z),l&&(e.static_len+=ot*(o[V*2+1]+z)));if(Je!==0){do{for(Le=S-1;e.bl_count[Le]===0;)Le--;e.bl_count[Le]--,e.bl_count[Le+1]+=2,e.bl_count[S]--,Je-=2}while(Je>0);for(Le=S;Le!==0;Le--)for(V=e.bl_count[Le];V!==0;)fe=e.heap[--Q],!(fe>r)&&(t[fe*2+1]!==Le&&(e.opt_len+=(Le-t[fe*2+1])*t[fe*2],t[fe*2+1]=Le),V--)}},ul=(e,n,t)=>{const r=new Array(gr+1);let o=0,l,w;for(l=1;l<=gr;l++)o=o+t[l-1]<<1,r[l]=o;for(w=0;w<=n;w++){let y=e[w*2+1];y!==0&&(e[w*2]=Qu(r[y]++,y))}},ru=()=>{let e,n,t,r,o;const l=new Array(gr+1);for(t=0,r=0;r>=7;r{let n;for(n=0;n{e.bi_valid>8?Es(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},ou=(e,n,t,r)=>{const o=n*2,l=t*2;return e[o]{const r=e.heap[t];let o=t<<1;for(;o<=e.heap_len&&(o{let r,o,l=0,w,y;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+l++]&255,r+=(e.pending_buf[e.sym_buf+l++]&255)<<8,o=e.pending_buf[e.sym_buf+l++],r===0?as(e,o,n):(w=$a[o],as(e,w+Vr+1,n),y=ds[w],y!==0&&(o-=PA[w],IA(e,o,y)),r--,w=ja(r),as(e,w,t),y=Ba[w],y!==0&&(r-=cA[w],IA(e,r,y)));while(l{const t=n.dyn_tree,r=n.stat_desc.static_tree,o=n.stat_desc.has_stree,l=n.stat_desc.elems;let w,y,S=-1,Q;for(e.heap_len=0,e.heap_max=_n,w=0;w>1;w>=1;w--)cl(e,t,w);Q=l;do w=e.heap[1],e.heap[1]=e.heap[e.heap_len--],cl(e,t,1),y=e.heap[1],e.heap[--e.heap_max]=w,e.heap[--e.heap_max]=y,t[Q*2]=t[w*2]+t[y*2],e.depth[Q]=(e.depth[w]>=e.depth[y]?e.depth[w]:e.depth[y])+1,t[w*2+1]=t[y*2+1]=Q,e.heap[1]=Q++,cl(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Ou(e,n),ul(t,S,e.bl_count)},co=(e,n,t)=>{let r,o=-1,l,w=n[0*2+1],y=0,S=7,Q=4;for(w===0&&(S=138,Q=3),n[(t+1)*2+1]=65535,r=0;r<=t;r++)l=w,w=n[(r+1)*2+1],!(++y{let r,o=-1,l,w=n[0*2+1],y=0,S=7,Q=4;for(w===0&&(S=138,Q=3),r=0;r<=t;r++)if(l=w,w=n[(r+1)*2+1],!(++y{let n;for(co(e,e.dyn_ltree,e.l_desc.max_code),co(e,e.dyn_dtree,e.d_desc.max_code),Oo(e,e.bl_desc),n=Gn-1;n>=3&&e.bl_tree[FA[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},na=(e,n,t,r)=>{let o;for(IA(e,n-257,5),IA(e,t-1,5),IA(e,r-4,4),o=0;o{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return Xo;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return aa;for(t=32;t{Ns||(ru(),Ns=!0),e.l_desc=new pa(e.dyn_ltree,TA),e.d_desc=new pa(e.dyn_dtree,Co),e.bl_desc=new pa(e.bl_tree,Zo),e.bi_buf=0,e.bi_valid=0,Ml(e)},dA=(e,n,t,r)=>{IA(e,(Aa<<1)+(r?1:0),3),eA(e),Es(e,t),Es(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},fs=e=>{IA(e,Yi<<1,3),as(e,qo,ta),El(e)},RA=(e,n,t,r)=>{let o,l,w=0;e.level>0?(e.strm.data_type===Ga&&(e.strm.data_type=Bi(e)),Oo(e,e.l_desc),Oo(e,e.d_desc),w=hi(e),o=e.opt_len+3+7>>>3,l=e.static_len+3+7>>>3,l<=o&&(o=l)):o=l=t+5,t+4<=o&&n!==-1?dA(e,n,t,r):e.strategy===di||l===o?(IA(e,(Yi<<1)+(r?1:0),3),bo(e,ta,ha)):(IA(e,(fa<<1)+(r?1:0),3),na(e,e.l_desc.max_code+1,e.d_desc.max_code+1,w+1),bo(e,e.dyn_ltree,e.dyn_dtree)),Ml(e),r&&eA(e)},Du=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[($a[t]+Vr+1)*2]++,e.dyn_dtree[ja(n)*2]++),e.sym_next===e.sym_end);var tl=zs,Oa=dA,Qs=RA,tA=Du,sc=fs,dl={_tr_init:tl,_tr_stored_block:Oa,_tr_flush_block:Qs,_tr_tally:tA,_tr_align:sc},ra=(e,n,t,r)=>{let o=e&65535|0,l=e>>>16&65535|0,w=0;for(;t!==0;){w=t>2e3?2e3:t,t-=w;do o=o+n[r++]|0,l=l+o|0;while(--w);o%=65521,l%=65521}return o|l<<16|0};const kc=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Id=new Uint32Array(kc());var nA=(e,n,t,r)=>{const o=Id,l=r+t;e^=-1;for(let w=r;w>>8^o[(e^n[w])&255];return e^-1},Os={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xl={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:lc,_tr_stored_block:rA,_tr_flush_block:fl,_tr_tally:UA,_tr_align:fA}=dl,{Z_NO_FLUSH:LA,Z_PARTIAL_FLUSH:Ud,Z_FULL_FLUSH:zc,Z_FINISH:NA,Z_BLOCK:Hl,Z_OK:Io,Z_STREAM_END:Do,Z_STREAM_ERROR:Ki,Z_DATA_ERROR:hs,Z_BUF_ERROR:Xa,Z_DEFAULT_COMPRESSION:wA,Z_FILTERED:Zs,Z_HUFFMAN_ONLY:ps,Z_RLE:hl,Z_FIXED:_A,Z_DEFAULT_STRATEGY:pl,Z_UNKNOWN:Pu,Z_DEFLATED:Sl}=xl,Zc=9,wf=15,uc=8,cc=256+1+29,Bf=30,Wc=19,Nd=2*cc+1,Qd=15,Di=3,Ds=258,Fl=Ds+Di+1,rh=32,Il=42,bf=57,Gc=69,Cf=73,Od=91,Ef=103,iu=113,ho=666,Va=1,gl=2,au=3,Ul=4,h0=3,Au=(e,n)=>(e.msg=Os[n],n),oh=e=>e*2-(e>4?9:0),kl=e=>{let n=e.length;for(;--n>=0;)e[n]=0},Dd=e=>{let n,t,r,o=e.w_size;n=e.hash_size,r=n;do t=e.head[--r],e.head[r]=t>=o?t-o:0;while(--n);n=o,r=n;do t=e.prev[--r],e.prev[r]=t>=o?t-o:0;while(--n)};let su=(e,n,t)=>(n<{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},Vs=(e,n)=>{fl(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,Ps(e.strm)},zi=(e,n)=>{e.pending_buf[e.pending++]=n},$c=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Pd=(e,n,t,r)=>{let o=e.avail_in;return o>r&&(o=r),o===0?0:(e.avail_in-=o,n.set(e.input.subarray(e.next_in,e.next_in+o),t),e.state.wrap===1?e.adler=ra(e.adler,n,o,t):e.state.wrap===2&&(e.adler=nA(e.adler,n,o,t)),e.next_in+=o,e.total_in+=o,o)},ih=(e,n)=>{let t=e.max_chain_length,r=e.strstart,o,l,w=e.prev_length,y=e.nice_match;const S=e.strstart>e.w_size-Fl?e.strstart-(e.w_size-Fl):0,Q=e.window,V=e.w_mask,fe=e.prev,Le=e.strstart+Ds;let z=Q[r+w-1],ot=Q[r+w];e.prev_length>=e.good_match&&(t>>=2),y>e.lookahead&&(y=e.lookahead);do if(o=n,!(Q[o+w]!==ot||Q[o+w-1]!==z||Q[o]!==Q[r]||Q[++o]!==Q[r+1])){r+=2,o++;do;while(Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&rw){if(e.match_start=n,w=l,l>=y)break;z=Q[r+w-1],ot=Q[r+w]}}while((n=fe[n&V])>S&&--t!==0);return w<=e.lookahead?w:e.lookahead},Tu=e=>{const n=e.w_size;let t,r,o;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-Fl)&&(e.window.set(e.window.subarray(n,n+n-r),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),Dd(e),r+=n),e.strm.avail_in===0)break;if(t=Pd(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=t,e.lookahead+e.insert>=Di)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=su(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=su(e,e.ins_h,e.window[o+Di-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,o,l,w=0,y=e.strm.avail_in;do{if(r=65535,l=e.bi_valid+42>>3,e.strm.avail_outo+e.strm.avail_in&&(r=o+e.strm.avail_in),r>l&&(r=l),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ps(e.strm),o&&(o>r&&(o=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+o),e.strm.next_out),e.strm.next_out+=o,e.strm.avail_out-=o,e.strm.total_out+=o,e.block_start+=o,r-=o),r&&(Pd(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(w===0);return y-=e.strm.avail_in,y&&(y>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=y&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-y,e.strm.next_in),e.strstart),e.strstart+=y,e.insert+=y>e.w_size-e.insert?e.w_size-e.insert:y),e.block_start=e.strstart),e.high_waterl&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,l+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),l>e.strm.avail_in&&(l=e.strm.avail_in),l&&(Pd(e.strm,e.window,e.strstart,l),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.high_water>3,l=e.pending_buf_size-l>65535?65535:e.pending_buf_size-l,t=l>e.w_size?e.w_size:l,o=e.strstart-e.block_start,(o>=t||(o||n===NA)&&n!==LA&&e.strm.avail_in===0&&o<=l)&&(r=o>l?l:o,w=n===NA&&e.strm.avail_in===0&&r===o?1:0,rA(e,e.block_start,r,w),e.block_start+=r,Ps(e.strm)),w?au:Va)},Td=(e,n)=>{let t,r;for(;;){if(e.lookahead=Di&&(e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-Fl&&(e.match_length=ih(e,t)),e.match_length>=Di)if(r=UA(e,e.strstart-e.match_start,e.match_length-Di),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Di){e.match_length--;do e.strstart++,e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=su(e,e.ins_h,e.window[e.strstart+1]);else r=UA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Vs(e,!1),e.strm.avail_out===0))return Va}return e.insert=e.strstart{let t,r,o;for(;;){if(e.lookahead=Di&&(e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Di-1,t!==0&&e.prev_length4096)&&(e.match_length=Di-1)),e.prev_length>=Di&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-Di,r=UA(e,e.strstart-1-e.prev_match,e.prev_length-Di),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=o&&(e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Di-1,e.strstart++,r&&(Vs(e,!1),e.strm.avail_out===0))return Va}else if(e.match_available){if(r=UA(e,0,e.window[e.strstart-1]),r&&Vs(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Va}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=UA(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let t,r,o,l;const w=e.window;for(;;){if(e.lookahead<=Ds){if(Tu(e),e.lookahead<=Ds&&n===LA)return Va;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Di&&e.strstart>0&&(o=e.strstart-1,r=w[o],r===w[++o]&&r===w[++o]&&r===w[++o])){l=e.strstart+Ds;do;while(r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&oe.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Di?(t=UA(e,1,e.match_length-Di),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=UA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Vs(e,!1),e.strm.avail_out===0))return Va}return e.insert=0,n===NA?(Vs(e,!0),e.strm.avail_out===0?au:Ul):e.sym_next&&(Vs(e,!1),e.strm.avail_out===0)?Va:gl},g0=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Tu(e),e.lookahead===0)){if(n===LA)return Va;break}if(e.match_length=0,t=UA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Vs(e,!1),e.strm.avail_out===0))return Va}return e.insert=0,n===NA?(Vs(e,!0),e.strm.avail_out===0?au:Ul):e.sym_next&&(Vs(e,!1),e.strm.avail_out===0)?Va:gl};function ml(e,n,t,r,o){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=r,this.func=o}const Yc=[new ml(0,0,0,0,Xc),new ml(4,4,8,4,Td),new ml(4,5,16,8,Td),new ml(4,6,32,32,Td),new ml(4,4,16,16,dc),new ml(8,16,32,32,dc),new ml(8,16,128,128,dc),new ml(8,32,128,256,dc),new ml(32,128,258,1024,dc),new ml(32,258,258,4096,dc)],Ah=e=>{e.window_size=2*e.w_size,kl(e.head),e.max_lazy_match=Yc[e.level].max_lazy,e.good_match=Yc[e.level].good_length,e.nice_match=Yc[e.level].nice_length,e.max_chain_length=Yc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Di-1,e.match_available=0,e.ins_h=0};function m0(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Sl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Nd*2),this.dyn_dtree=new Uint16Array((2*Bf+1)*2),this.bl_tree=new Uint16Array((2*Wc+1)*2),kl(this.dyn_ltree),kl(this.dyn_dtree),kl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Qd+1),this.heap=new Uint16Array(2*cc+1),kl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*cc+1),kl(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const fc=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Il&&n.status!==bf&&n.status!==Gc&&n.status!==Cf&&n.status!==Od&&n.status!==Ef&&n.status!==iu&&n.status!==ho?1:0},sh=e=>{if(fc(e))return Au(e,Ki);e.total_in=e.total_out=0,e.data_type=Pu;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?bf:n.wrap?Il:iu,e.adler=n.wrap===2?0:1,n.last_flush=-2,lc(n),Io},hc=e=>{const n=sh(e);return n===Io&&Ah(e.state),n},v0=(e,n)=>fc(e)||e.state.wrap!==2?Ki:(e.state.gzhead=n,Io),Rd=(e,n,t,r,o,l)=>{if(!e)return Ki;let w=1;if(n===wA&&(n=6),r<0?(w=0,r=-r):r>15&&(w=2,r-=16),o<1||o>Zc||t!==Sl||r<8||r>15||n<0||n>9||l<0||l>_A||r===8&&w!==1)return Au(e,Ki);r===8&&(r=9);const y=new m0;return e.state=y,y.strm=e,y.status=Il,y.wrap=w,y.gzhead=null,y.w_bits=r,y.w_size=1<Rd(e,n,Sl,wf,uc,pl),uh=(e,n)=>{if(fc(e)||n>Hl||n<0)return e?Au(e,Ki):Ki;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===ho&&n!==NA)return Au(e,e.avail_out===0?Xa:Ki);const r=t.last_flush;if(t.last_flush=n,t.pending!==0){if(Ps(e),e.avail_out===0)return t.last_flush=-1,Io}else if(e.avail_in===0&&oh(n)<=oh(r)&&n!==NA)return Au(e,Xa);if(t.status===ho&&e.avail_in!==0)return Au(e,Xa);if(t.status===Il&&t.wrap===0&&(t.status=iu),t.status===Il){let o=Sl+(t.w_bits-8<<4)<<8,l=-1;if(t.strategy>=ps||t.level<2?l=0:t.level<6?l=1:t.level===6?l=2:l=3,o|=l<<6,t.strstart!==0&&(o|=rh),o+=31-o%31,$c(t,o),t.strstart!==0&&($c(t,e.adler>>>16),$c(t,e.adler&65535)),e.adler=1,t.status=iu,Ps(e),t.pending!==0)return t.last_flush=-1,Io}if(t.status===bf){if(e.adler=0,zi(t,31),zi(t,139),zi(t,8),t.gzhead)zi(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),zi(t,t.gzhead.time&255),zi(t,t.gzhead.time>>8&255),zi(t,t.gzhead.time>>16&255),zi(t,t.gzhead.time>>24&255),zi(t,t.level===9?2:t.strategy>=ps||t.level<2?4:0),zi(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(zi(t,t.gzhead.extra.length&255),zi(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=nA(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Gc;else if(zi(t,0),zi(t,0),zi(t,0),zi(t,0),zi(t,0),zi(t,t.level===9?2:t.strategy>=ps||t.level<2?4:0),zi(t,h0),t.status=iu,Ps(e),t.pending!==0)return t.last_flush=-1,Io}if(t.status===Gc){if(t.gzhead.extra){let o=t.pending,l=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+l>t.pending_buf_size;){let y=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+y),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),t.gzindex+=y,Ps(e),t.pending!==0)return t.last_flush=-1,Io;o=0,l-=y}let w=new Uint8Array(t.gzhead.extra);t.pending_buf.set(w.subarray(t.gzindex,t.gzindex+l),t.pending),t.pending+=l,t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),t.gzindex=0}t.status=Cf}if(t.status===Cf){if(t.gzhead.name){let o=t.pending,l;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),Ps(e),t.pending!==0)return t.last_flush=-1,Io;o=0}t.gzindexo&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),t.gzindex=0}t.status=Od}if(t.status===Od){if(t.gzhead.comment){let o=t.pending,l;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),Ps(e),t.pending!==0)return t.last_flush=-1,Io;o=0}t.gzindexo&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o))}t.status=Ef}if(t.status===Ef){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Ps(e),t.pending!==0))return t.last_flush=-1,Io;zi(t,e.adler&255),zi(t,e.adler>>8&255),e.adler=0}if(t.status=iu,Ps(e),t.pending!==0)return t.last_flush=-1,Io}if(e.avail_in!==0||t.lookahead!==0||n!==LA&&t.status!==ho){let o=t.level===0?Xc(t,n):t.strategy===ps?g0(t,n):t.strategy===hl?ah(t,n):Yc[t.level].func(t,n);if((o===au||o===Ul)&&(t.status=ho),o===Va||o===au)return e.avail_out===0&&(t.last_flush=-1),Io;if(o===gl&&(n===Ud?fA(t):n!==Hl&&(rA(t,0,0,!1),n===zc&&(kl(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Ps(e),e.avail_out===0))return t.last_flush=-1,Io}return n!==NA?Io:t.wrap<=0?Do:(t.wrap===2?(zi(t,e.adler&255),zi(t,e.adler>>8&255),zi(t,e.adler>>16&255),zi(t,e.adler>>24&255),zi(t,e.total_in&255),zi(t,e.total_in>>8&255),zi(t,e.total_in>>16&255),zi(t,e.total_in>>24&255)):($c(t,e.adler>>>16),$c(t,e.adler&65535)),Ps(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Io:Do)},ch=e=>{if(fc(e))return Ki;const n=e.state.status;return e.state=null,n===iu?Au(e,hs):Io},_d=(e,n)=>{let t=n.length;if(fc(e))return Ki;const r=e.state,o=r.wrap;if(o===2||o===1&&r.status!==Il||r.lookahead)return Ki;if(o===1&&(e.adler=ra(e.adler,n,t,0)),r.wrap=0,t>=r.w_size){o===0&&(kl(r.head),r.strstart=0,r.block_start=0,r.insert=0);let S=new Uint8Array(r.w_size);S.set(n.subarray(t-r.w_size,t),0),n=S,t=r.w_size}const l=e.avail_in,w=e.next_in,y=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Tu(r);r.lookahead>=Di;){let S=r.strstart,Q=r.lookahead-(Di-1);do r.ins_h=su(r,r.ins_h,r.window[S+Di-1]),r.prev[S&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=S,S++;while(--Q);r.strstart=S,r.lookahead=Di-1,Tu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Di-1,r.match_available=0,e.next_in=w,e.input=y,e.avail_in=l,r.wrap=o,Io};var pc=lh,dh=Rd,fh=hc,hh=sh,ph=v0,gh=uh,Ll=ch,Jc=_d,mh="pako deflate (from Nodeca project)",Y={deflateInit:pc,deflateInit2:dh,deflateReset:fh,deflateResetKeep:hh,deflateSetHeader:ph,deflate:gh,deflateEnd:Ll,deflateSetDictionary:Jc,deflateInfo:mh};const X=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var xe=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)X(t,r)&&(e[r]=t[r])}}return e},Ke=e=>{let n=0;for(let r=0,o=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Dt[254]=Dt[254]=1;var Ft=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,r,o,l,w=e.length,y=0;for(o=0;o>>6,n[l++]=128|t&63):t<65536?(n[l++]=224|t>>>12,n[l++]=128|t>>>6&63,n[l++]=128|t&63):(n[l++]=240|t>>>18,n[l++]=128|t>>>12&63,n[l++]=128|t>>>6&63,n[l++]=128|t&63);return n};const Vt=(e,n)=>{if(n<65534&&e.subarray&&pt)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let r=0;r{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let r,o;const l=new Array(t*2);for(o=0,r=0;r4){l[o++]=65533,r+=y-1;continue}for(w&=y===2?31:y===3?15:7;y>1&&r1){l[o++]=65533;continue}w<65536?l[o++]=w:(w-=65536,l[o++]=55296|w>>10&1023,l[o++]=56320|w&1023)}return Vt(l,o)},wn=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Dt[e[t]]>n?t:n},rn={string2buf:Ft,buf2string:kt,utf8border:wn};function on(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var nn=on;const dn=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_SYNC_FLUSH:Pn,Z_FULL_FLUSH:Ar,Z_FINISH:lr,Z_OK:tr,Z_STREAM_END:vr,Z_DEFAULT_COMPRESSION:Cr,Z_DEFAULT_STRATEGY:Rr,Z_DEFLATED:Dr}=xl;function Eo(e){this.options=rt.assign({level:Cr,method:Dr,chunkSize:16384,windowBits:15,memLevel:8,strategy:Rr},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nn,this.strm.avail_out=0;let t=Y.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==tr)throw new Error(Os[t]);if(n.header&&Y.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=rn.string2buf(n.dictionary):dn.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,t=Y.deflateSetDictionary(this.strm,r),t!==tr)throw new Error(Os[t]);this._dict_set=!0}}Eo.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize;let o,l;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?lr:rr,typeof e=="string"?t.input=rn.string2buf(e):dn.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),(l===Pn||l===Ar)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(o=Y.deflate(t,l),o===vr)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),o=Y.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===tr;if(t.avail_out===0){this.onData(t.output);continue}if(l>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},Eo.prototype.onData=function(e){this.chunks.push(e)},Eo.prototype.onEnd=function(e){e===tr&&(this.result=rt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function no(e,n){const t=new Eo(n);if(t.push(e,!0),t.err)throw t.msg||Os[t.err];return t.result}function so(e,n){return n=n||{},n.raw=!0,no(e,n)}function Mr(e,n){return n=n||{},n.gzip=!0,no(e,n)}var Pr=Eo,Tr=no,Er=so,mr=Mr,Nr=xl,Hr={Deflate:Pr,deflate:Tr,deflateRaw:Er,gzip:mr,constants:Nr};const Yr=16209,Br=16191;var Vo=function(n,t){let r,o,l,w,y,S,Q,V,fe,Le,z,ot,Je,it,Me,Mt,Ot,Ct,vn,Hn,Un,Gt,xt,sn;const _e=n.state;r=n.next_in,xt=n.input,o=r+(n.avail_in-5),l=n.next_out,sn=n.output,w=l-(t-n.avail_out),y=l+(n.avail_out-257),S=_e.dmax,Q=_e.wsize,V=_e.whave,fe=_e.wnext,Le=_e.window,z=_e.hold,ot=_e.bits,Je=_e.lencode,it=_e.distcode,Me=(1<<_e.lenbits)-1,Mt=(1<<_e.distbits)-1;e:do{ot<15&&(z+=xt[r++]<>>24,z>>>=Ct,ot-=Ct,Ct=Ot>>>16&255,Ct===0)sn[l++]=Ot&65535;else if(Ct&16){vn=Ot&65535,Ct&=15,Ct&&(ot>>=Ct,ot-=Ct),ot<15&&(z+=xt[r++]<>>24,z>>>=Ct,ot-=Ct,Ct=Ot>>>16&255,Ct&16){if(Hn=Ot&65535,Ct&=15,otS){n.msg="invalid distance too far back",_e.mode=Yr;break e}if(z>>>=Ct,ot-=Ct,Ct=l-w,Hn>Ct){if(Ct=Hn-Ct,Ct>V&&_e.sane){n.msg="invalid distance too far back",_e.mode=Yr;break e}if(Un=0,Gt=Le,fe===0){if(Un+=Q-Ct,Ct2;)sn[l++]=Gt[Un++],sn[l++]=Gt[Un++],sn[l++]=Gt[Un++],vn-=3;vn&&(sn[l++]=Gt[Un++],vn>1&&(sn[l++]=Gt[Un++]))}else{Un=l-Hn;do sn[l++]=sn[Un++],sn[l++]=sn[Un++],sn[l++]=sn[Un++],vn-=3;while(vn>2);vn&&(sn[l++]=sn[Un++],vn>1&&(sn[l++]=sn[Un++]))}}else if(Ct&64){n.msg="invalid distance code",_e.mode=Yr;break e}else{Ot=it[(Ot&65535)+(z&(1<>3,r-=vn,ot-=vn<<3,z&=(1<{const S=y.bits;let Q=0,V=0,fe=0,Le=0,z=0,ot=0,Je=0,it=0,Me=0,Mt=0,Ot,Ct,vn,Hn,Un,Gt=null,xt;const sn=new Uint16Array(Wo+1),_e=new Uint16Array(Wo+1);let At=null,jt,Tt,Bn;for(Q=0;Q<=Wo;Q++)sn[Q]=0;for(V=0;V=1&&sn[Le]===0;Le--);if(z>Le&&(z=Le),Le===0)return o[l++]=1<<24|64<<16|0,o[l++]=1<<24|64<<16|0,y.bits=1,0;for(fe=1;fe0&&(e===la||Le!==1))return-1;for(_e[1]=0,Q=1;QMa||e===QA&&Me>Sa)return 1;for(;;){jt=Q-Je,w[V]+1=xt?(Tt=At[w[V]-xt],Bn=Gt[w[V]-xt]):(Tt=96,Bn=0),Ot=1<>Je)+Ct]=jt<<24|Tt<<16|Bn|0;while(Ct!==0);for(Ot=1<>=1;if(Ot!==0?(Mt&=Ot-1,Mt+=Ot):Mt=0,V++,--sn[Q]===0){if(Q===Le)break;Q=n[t+w[V]]}if(Q>z&&(Mt&Hn)!==vn){for(Je===0&&(Je=z),Un+=fe,ot=Q-Je,it=1<Ma||e===QA&&Me>Sa)return 1;vn=Mt&Hn,o[vn]=z<<24|ot<<16|Un-l|0}}return Mt!==0&&(o[Un+Mt]=Q-Je<<24|64<<16|0),y.bits=z,0};const kr=0,ro=1,bi=2,{Z_FINISH:Ui,Z_BLOCK:Ji,Z_TREES:Zi,Z_OK:Da,Z_STREAM_END:jA,Z_NEED_DICT:to,Z_STREAM_ERROR:Wr,Z_DATA_ERROR:Ci,Z_MEM_ERROR:Fa,Z_BUF_ERROR:qi,Z_DEFLATED:MA}=xl,Ha=16180,Ws=16181,Ia=16182,ji=16183,ga=16184,ma=16185,hA=16186,oA=16187,Pi=16188,ka=16189,Vi=16190,Ua=16191,Wa=16192,HA=16193,Gs=16194,lu=16195,Na=16196,Ru=16197,$A=16198,XA=16199,kA=16200,YA=16201,JA=16202,xs=16203,vl=16204,Ts=16205,$s=16206,qc=16207,ed=16208,Li=16209,uu=16210,td=16211,Po=852,Wi=592,bA=15,As=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Xs(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const qA=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.modetd?1:0},KA=e=>{if(qA(e))return Wr;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=Ha,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(Po),n.distcode=n.distdyn=new Int32Array(Wi),n.sane=1,n.back=-1,Da},jd=e=>{if(qA(e))return Wr;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,KA(e)},Md=(e,n)=>{let t;if(qA(e))return Wr;const r=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Wr:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=t,r.wbits=n,jd(e))},cu=(e,n)=>{if(!e)return Wr;const t=new Xs;e.state=t,t.strm=e,t.window=null,t.mode=Ha;const r=Md(e,n);return r!==Da&&(e.state=null),r},du=e=>cu(e,bA);let zA=!0,Kl,Hd;const xf=e=>{if(zA){Kl=new Int32Array(512),Hd=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(uo(ro,e.lens,0,288,Kl,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;uo(bi,e.lens,0,32,Hd,0,e.work,{bits:5}),zA=!1}e.lencode=Kl,e.lenbits=9,e.distcode=Hd,e.distbits=5},kd=(e,n,t,r)=>{let o;const l=e.state;return l.window===null&&(l.wsize=1<=l.wsize?(l.window.set(n.subarray(t-l.wsize,t),0),l.wnext=0,l.whave=l.wsize):(o=l.wsize-l.wnext,o>r&&(o=r),l.window.set(n.subarray(t-r,t-r+o),l.wnext),r-=o,r?(l.window.set(n.subarray(t-r,t),0),l.wnext=r,l.whave=l.wsize):(l.wnext+=o,l.wnext===l.wsize&&(l.wnext=0),l.whave{let t,r,o,l,w,y,S,Q,V,fe,Le,z,ot,Je,it=0,Me,Mt,Ot,Ct,vn,Hn,Un,Gt;const xt=new Uint8Array(4);let sn,_e;const At=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qA(e)||!e.output||!e.input&&e.avail_in!==0)return Wr;t=e.state,t.mode===Ua&&(t.mode=Wa),w=e.next_out,o=e.output,S=e.avail_out,l=e.next_in,r=e.input,y=e.avail_in,Q=t.hold,V=t.bits,fe=y,Le=S,Gt=Da;e:for(;;)switch(t.mode){case Ha:if(t.wrap===0){t.mode=Wa;break}for(;V<16;){if(y===0)break e;y--,Q+=r[l++]<>>8&255,t.check=nA(t.check,xt,2,0),Q=0,V=0,t.mode=Ws;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((Q&255)<<8)+(Q>>8))%31){e.msg="incorrect header check",t.mode=Li;break}if((Q&15)!==MA){e.msg="unknown compression method",t.mode=Li;break}if(Q>>>=4,V-=4,Un=(Q&15)+8,t.wbits===0&&(t.wbits=Un),Un>15||Un>t.wbits){e.msg="invalid window size",t.mode=Li;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(xt[0]=Q&255,xt[1]=Q>>>8&255,t.check=nA(t.check,xt,2,0)),Q=0,V=0,t.mode=Ia;case Ia:for(;V<32;){if(y===0)break e;y--,Q+=r[l++]<>>8&255,xt[2]=Q>>>16&255,xt[3]=Q>>>24&255,t.check=nA(t.check,xt,4,0)),Q=0,V=0,t.mode=ji;case ji:for(;V<16;){if(y===0)break e;y--,Q+=r[l++]<>8),t.flags&512&&t.wrap&4&&(xt[0]=Q&255,xt[1]=Q>>>8&255,t.check=nA(t.check,xt,2,0)),Q=0,V=0,t.mode=ga;case ga:if(t.flags&1024){for(;V<16;){if(y===0)break e;y--,Q+=r[l++]<>>8&255,t.check=nA(t.check,xt,2,0)),Q=0,V=0}else t.head&&(t.head.extra=null);t.mode=ma;case ma:if(t.flags&1024&&(z=t.length,z>y&&(z=y),z&&(t.head&&(Un=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(l,l+z),Un)),t.flags&512&&t.wrap&4&&(t.check=nA(t.check,r,z,l)),y-=z,l+=z,t.length-=z),t.length))break e;t.length=0,t.mode=hA;case hA:if(t.flags&2048){if(y===0)break e;z=0;do Un=r[l+z++],t.head&&Un&&t.length<65536&&(t.head.name+=String.fromCharCode(Un));while(Un&&z>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=Ua;break;case ka:for(;V<32;){if(y===0)break e;y--,Q+=r[l++]<>>=V&7,V-=V&7,t.mode=$s;break}for(;V<3;){if(y===0)break e;y--,Q+=r[l++]<>>=1,V-=1,Q&3){case 0:t.mode=HA;break;case 1:if(xf(t),t.mode=XA,n===Zi){Q>>>=2,V-=2;break e}break;case 2:t.mode=Na;break;case 3:e.msg="invalid block type",t.mode=Li}Q>>>=2,V-=2;break;case HA:for(Q>>>=V&7,V-=V&7;V<32;){if(y===0)break e;y--,Q+=r[l++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=Li;break}if(t.length=Q&65535,Q=0,V=0,t.mode=Gs,n===Zi)break e;case Gs:t.mode=lu;case lu:if(z=t.length,z){if(z>y&&(z=y),z>S&&(z=S),z===0)break e;o.set(r.subarray(l,l+z),w),y-=z,l+=z,S-=z,w+=z,t.length-=z;break}t.mode=Ua;break;case Na:for(;V<14;){if(y===0)break e;y--,Q+=r[l++]<>>=5,V-=5,t.ndist=(Q&31)+1,Q>>>=5,V-=5,t.ncode=(Q&15)+4,Q>>>=4,V-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=Li;break}t.have=0,t.mode=Ru;case Ru:for(;t.have>>=3,V-=3}for(;t.have<19;)t.lens[At[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,sn={bits:t.lenbits},Gt=uo(kr,t.lens,0,19,t.lencode,0,t.work,sn),t.lenbits=sn.bits,Gt){e.msg="invalid code lengths set",t.mode=Li;break}t.have=0,t.mode=$A;case $A:for(;t.have>>24,Mt=it>>>16&255,Ot=it&65535,!(Me<=V);){if(y===0)break e;y--,Q+=r[l++]<>>=Me,V-=Me,t.lens[t.have++]=Ot;else{if(Ot===16){for(_e=Me+2;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=Me,V-=Me,t.have===0){e.msg="invalid bit length repeat",t.mode=Li;break}Un=t.lens[t.have-1],z=3+(Q&3),Q>>>=2,V-=2}else if(Ot===17){for(_e=Me+3;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=Me,V-=Me,Un=0,z=3+(Q&7),Q>>>=3,V-=3}else{for(_e=Me+7;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=Me,V-=Me,Un=0,z=11+(Q&127),Q>>>=7,V-=7}if(t.have+z>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=Li;break}for(;z--;)t.lens[t.have++]=Un}}if(t.mode===Li)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=Li;break}if(t.lenbits=9,sn={bits:t.lenbits},Gt=uo(ro,t.lens,0,t.nlen,t.lencode,0,t.work,sn),t.lenbits=sn.bits,Gt){e.msg="invalid literal/lengths set",t.mode=Li;break}if(t.distbits=6,t.distcode=t.distdyn,sn={bits:t.distbits},Gt=uo(bi,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,sn),t.distbits=sn.bits,Gt){e.msg="invalid distances set",t.mode=Li;break}if(t.mode=XA,n===Zi)break e;case XA:t.mode=kA;case kA:if(y>=6&&S>=258){e.next_out=w,e.avail_out=S,e.next_in=l,e.avail_in=y,t.hold=Q,t.bits=V,Vo(e,Le),w=e.next_out,o=e.output,S=e.avail_out,l=e.next_in,r=e.input,y=e.avail_in,Q=t.hold,V=t.bits,t.mode===Ua&&(t.back=-1);break}for(t.back=0;it=t.lencode[Q&(1<>>24,Mt=it>>>16&255,Ot=it&65535,!(Me<=V);){if(y===0)break e;y--,Q+=r[l++]<>Ct)],Me=it>>>24,Mt=it>>>16&255,Ot=it&65535,!(Ct+Me<=V);){if(y===0)break e;y--,Q+=r[l++]<>>=Ct,V-=Ct,t.back+=Ct}if(Q>>>=Me,V-=Me,t.back+=Me,t.length=Ot,Mt===0){t.mode=Ts;break}if(Mt&32){t.back=-1,t.mode=Ua;break}if(Mt&64){e.msg="invalid literal/length code",t.mode=Li;break}t.extra=Mt&15,t.mode=YA;case YA:if(t.extra){for(_e=t.extra;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=t.extra,V-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=JA;case JA:for(;it=t.distcode[Q&(1<>>24,Mt=it>>>16&255,Ot=it&65535,!(Me<=V);){if(y===0)break e;y--,Q+=r[l++]<>Ct)],Me=it>>>24,Mt=it>>>16&255,Ot=it&65535,!(Ct+Me<=V);){if(y===0)break e;y--,Q+=r[l++]<>>=Ct,V-=Ct,t.back+=Ct}if(Q>>>=Me,V-=Me,t.back+=Me,Mt&64){e.msg="invalid distance code",t.mode=Li;break}t.offset=Ot,t.extra=Mt&15,t.mode=xs;case xs:if(t.extra){for(_e=t.extra;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=t.extra,V-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=Li;break}t.mode=vl;case vl:if(S===0)break e;if(z=Le-S,t.offset>z){if(z=t.offset-z,z>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=Li;break}z>t.wnext?(z-=t.wnext,ot=t.wsize-z):ot=t.wnext-z,z>t.length&&(z=t.length),Je=t.window}else Je=o,ot=w-t.offset,z=t.length;z>S&&(z=S),S-=z,t.length-=z;do o[w++]=Je[ot++];while(--z);t.length===0&&(t.mode=kA);break;case Ts:if(S===0)break e;o[w++]=t.length,S--,t.mode=kA;break;case $s:if(t.wrap){for(;V<32;){if(y===0)break e;y--,Q|=r[l++]<{if(qA(e))return Wr;let n=e.state;return n.window&&(n.window=null),e.state=null,Da},Sf=(e,n)=>{if(qA(e))return Wr;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,Da):Wr},vh=(e,n)=>{const t=n.length;let r,o,l;return qA(e)||(r=e.state,r.wrap!==0&&r.mode!==Vi)?Wr:r.mode===Vi&&(o=1,o=ra(o,n,t,0),o!==r.check)?Ci:(l=kd(e,n,t,t),l?(r.mode=uu,Fa):(r.havedict=1,Da))};var Ff=jd,If=Md,yh=KA,wh=du,Bh=cu,Kd=nd,gc=rd,od=Sf,id=vh,ad="pako inflate (from Nodeca project)",yl={inflateReset:Ff,inflateReset2:If,inflateResetKeep:yh,inflateInit:wh,inflateInit2:Bh,inflate:Kd,inflateEnd:gc,inflateGetHeader:od,inflateSetDictionary:id,inflateInfo:ad};function Uf(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Lf=Uf;const Nf=Object.prototype.toString,{Z_NO_FLUSH:mc,Z_FINISH:_u,Z_OK:ju,Z_STREAM_END:Mu,Z_NEED_DICT:Hu,Z_STREAM_ERROR:Qf,Z_DATA_ERROR:ui,Z_MEM_ERROR:Ei}=xl;function gA(e){this.options=rt.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nn,this.strm.avail_out=0;let t=yl.inflateInit2(this.strm,n.windowBits);if(t!==ju)throw new Error(Os[t]);if(this.header=new Lf,yl.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=rn.string2buf(n.dictionary):Nf.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=yl.inflateSetDictionary(this.strm,n.dictionary),t!==ju)))throw new Error(Os[t])}gA.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let l,w,y;if(this.ended)return!1;for(n===~~n?w=n:w=n===!0?_u:mc,Nf.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),l=yl.inflate(t,w),l===Hu&&o&&(l=yl.inflateSetDictionary(t,o),l===ju?l=yl.inflate(t,w):l===ui&&(l=Hu));t.avail_in>0&&l===Mu&&t.state.wrap>0&&e[t.next_in]!==0;)yl.inflateReset(t),l=yl.inflate(t,w);switch(l){case Qf:case ui:case Hu:case Ei:return this.onEnd(l),this.ended=!0,!1}if(y=t.avail_out,t.next_out&&(t.avail_out===0||l===Mu))if(this.options.to==="string"){let S=rn.utf8border(t.output,t.next_out),Q=t.next_out-S,V=rn.buf2string(t.output,S);t.next_out=Q,t.avail_out=r-Q,Q&&t.output.set(t.output.subarray(S,S+Q),0),this.onData(V)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(l===ju&&y===0)){if(l===Mu)return l=yl.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},gA.prototype.onData=function(e){this.chunks.push(e)},gA.prototype.onEnd=function(e){e===ju&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=rt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function es(e,n){const t=new gA(n);if(t.push(e),t.err)throw t.msg||Os[t.err];return t.result}function ZA(e,n){return n=n||{},n.raw=!0,es(e,n)}var fu=gA,hu=es,pu=ZA,ku=es,zl=xl,bh={Inflate:fu,inflate:hu,inflateRaw:pu,ungzip:ku,constants:zl};const{Deflate:Of,deflate:Fp,deflateRaw:Ip,gzip:Up}=Hr,{Inflate:Lp,inflate:y0,inflateRaw:Ch,ungzip:w0}=bh;var B0=Of,Eh=Fp,b0=Ip,C0=Up,xh=Lp,zd=y0,Df=Ch,E0=w0,x0=xl,Ig={Deflate:B0,deflate:Eh,deflateRaw:b0,gzip:C0,Inflate:xh,inflate:zd,inflateRaw:Df,ungzip:E0,constants:x0};const Sh=[];for(let e=0;e<256;e++){let n=e;for(let t=0;t<8;t++)n&1?n=3988292384^n>>>1:n=n>>>1;Sh[e]=n}const Fh=4294967295;function Np(e,n,t){let r=e;for(let o=0;o>>8;return r}function S0(e,n){return(Np(Fh,e,n)^Fh)>>>0}function vc(e,n,t){const r=e.readUint32(),o=S0(new Uint8Array(e.buffer,e.byteOffset+e.offset-n-4,n),n);if(o!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${o}`)}function Qp(e,n){e.writeUint32(S0(new Uint8Array(e.buffer,e.byteOffset+e.offset-n,n),n))}function CA(e,n,t){for(let r=0;r>1)&255}else{for(;l>1)&255;for(;l>1)&255}}function mu(e,n,t,r,o){let l=0;if(t.length===0){for(;l=t||Hn>=r))for(let Un=0;Un>8&255}const U0=new Uint16Array([255]),Wd=new Uint8Array(U0.buffer)[0]===255,Pp=new Uint8Array(0);function L0(e){const{data:n,width:t,height:r,channels:o,depth:l}=e,w=Math.ceil(l/8)*o,y=Math.ceil(l/8*o*t),S=new Uint8Array(r*y);let Q=Pp,V=0,fe,Le;for(let z=0;z>8&255}const Gd=Uint8Array.of(137,80,78,71,13,10,26,10);function Ug(e){e.writeBytes(Gd)}function Pf(e){if(!Rp(e.readBytes(Gd.length)))throw new Error("wrong PNG signature")}function Rp(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const Uh=/^[\u0000-\u00FF]*$/;function Tf(e){if(!Uh.test(e))throw new Error("invalid latin1 text")}function P0(e,n,t){const r=T0(n);e[r]=R0(n,t-r.length-1)}function Lg(e,n,t){D0(n),Tf(t);const r=n.length+1+t.length;e.writeUint32(r),e.writeChars(N0),e.writeChars(n),e.writeByte(Q0),e.writeChars(t),writeCrc(e,r+4)}function T0(e){for(e.mark();e.readByte()!==Q0;);const n=e.offset;e.reset();const t=O0.decode(e.readBytes(n-e.offset-1));return e.skip(1),D0(t),t}function R0(e,n){return O0.decode(e.readBytes(n))}const rl={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Lh={UNKNOWN:-1,DEFLATE:0},_0={UNKNOWN:-1,ADAPTIVE:0},Nh={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Rf={NONE:0,BACKGROUND:1,PREVIOUS:2},$d={SOURCE:0,OVER:1};class _p extends ri{constructor(t,r={}){super(t);xa(this,"_checkCrc");xa(this,"_inflator");xa(this,"_png");xa(this,"_apng");xa(this,"_end");xa(this,"_hasPalette");xa(this,"_palette");xa(this,"_hasTransparency");xa(this,"_transparency");xa(this,"_compressionMethod");xa(this,"_filterMethod");xa(this,"_interlaceMethod");xa(this,"_colorType");xa(this,"_isAnimated");xa(this,"_numberOfFrames");xa(this,"_numberOfPlays");xa(this,"_frames");xa(this,"_writingDataChunks");const{checkCrc:o=!1}=r;this._checkCrc=o,this._inflator=new xh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Lh.UNKNOWN,this._filterMethod=_0.UNKNOWN,this._interlaceMethod=Nh.UNKNOWN,this._colorType=rl.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Pf(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(Pf(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const o=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case N0:P0(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?vc(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const o=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,r),this.offset=o+t;break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?vc(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=Qh(this.readUint8());const r=this.readUint8();this._colorType=r;let o;switch(r){case rl.GREYSCALE:o=1;break;case rl.TRUECOLOUR:o=3;break;case rl.INDEXED_COLOUR:o=1;break;case rl.GREYSCALE_ALPHA:o=2;break;case rl.TRUECOLOUR_ALPHA:o=4;break;case rl.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==Lh.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const o=[];this._palette=o;for(let l=0;lthis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;rthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r{const S=((w+r.yOffset)*this._png.width+r.xOffset+y)*this._png.channels,Q=(w*r.width+y)*this._png.channels;return{index:S,frameIndex:Q}};switch(r.blendOp){case $d.SOURCE:for(let w=0;wr.at(-1)!==255);this.writeUint32(t.length),this.writeChars("tRNS");for(const r of t)this.writeByte(r.at(-1));writeCrc(this,4+t.length)}encodeIDAT(t){this.writeUint32(t.length),this.writeChars("IDAT"),this.writeBytes(t),writeCrc(this,t.length+4)}encodeData(){const{width:t,height:r,channels:o,depth:l,data:w}=this._png,y=l<=8?Math.ceil(t*l/8)*o:Math.ceil(t*l/8*o/2),S=new IOBuffer().setBigEndian();let Q=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Le=0;Le0)return e;throw new TypeError(`${n} must be a positive integer`)}function _f(e,n){const{channels:t=4,depth:r=8}=e;if(t!==4&&t!==3&&t!==2&&t!==1)throw new RangeError(`unsupported number of channels: ${t}`);const o={channels:t,depth:r,colorType:ColorType.UNKNOWN};switch(t){case 4:o.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:o.colorType=ColorType.TRUECOLOUR;break;case 1:n?o.colorType=ColorType.INDEXED_COLOUR:o.colorType=ColorType.GREYSCALE;break;case 2:o.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return o}function wl(e,n,t,r){for(let o=0;o>8&255),t.writeByte(Ot&255)}}return r}function La(e,n,t,r){for(let o=0;o=200&&n.status<=299}function Mf(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var zu=ei.saveAs||((typeof window=="undefined"?"undefined":(0,s.Z)(window))!=="object"||window!==ei?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(e,n,t){var r=ei.URL||ei.webkitURL,o=document.createElement("a");n=n||e.name||"download",o.download=n,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?Ph(o.href)?Dh(e,n,t):Mf(o,o.target="_blank"):Mf(o)):(o.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(o.href)},4e4),setTimeout(function(){Mf(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,t){if(n=n||e.name||"download",typeof e=="string")if(Ph(e))Dh(e,n,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Mf(r)})}else navigator.msSaveOrOpenBlob(function(o,l){return l===void 0?l={autoBom:!1}:(0,s.Z)(l)!=="object"&&(Ka.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(e,t),n)}:function(e,n,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Dh(e,n,t);var o=e.type==="application/octet-stream",l=/constructor/i.test(ei.HTMLElement)||ei.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||o&&l)&&(typeof FileReader=="undefined"?"undefined":(0,s.Z)(FileReader))==="object"){var y=new FileReader;y.onloadend=function(){var V=y.result;V=w?V:V.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=V:location=V,r=null},y.readAsDataURL(e)}else{var S=ei.URL||ei.webkitURL,Q=S.createObjectURL(e);r?r.location=Q:location.href=Q,r=null,setTimeout(function(){S.revokeObjectURL(Q)},4e4)}});function j0(e){var n;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(y){return[parseInt(y[1]),parseInt(y[2]),parseInt(y[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(y){return[parseInt(y[1],16),parseInt(y[2],16),parseInt(y[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(y){return[parseInt(y[1]+y[1],16),parseInt(y[2]+y[2],16),parseInt(y[3]+y[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var y=this.r.toString(16),S=this.g.toString(16),Q=this.b.toString(16);return y.length==1&&(y="0"+y),S.length==1&&(S="0"+S),Q.length==1&&(Q="0"+Q),"#"+y+S+Q}}var Xd=ei.atob.bind(ei),Th=ei.btoa.bind(ei);function Yd(e,n){var t=e[0],r=e[1],o=e[2],l=e[3];t=Ss(t,r,o,l,n[0],7,-680876936),l=Ss(l,t,r,o,n[1],12,-389564586),o=Ss(o,l,t,r,n[2],17,606105819),r=Ss(r,o,l,t,n[3],22,-1044525330),t=Ss(t,r,o,l,n[4],7,-176418897),l=Ss(l,t,r,o,n[5],12,1200080426),o=Ss(o,l,t,r,n[6],17,-1473231341),r=Ss(r,o,l,t,n[7],22,-45705983),t=Ss(t,r,o,l,n[8],7,1770035416),l=Ss(l,t,r,o,n[9],12,-1958414417),o=Ss(o,l,t,r,n[10],17,-42063),r=Ss(r,o,l,t,n[11],22,-1990404162),t=Ss(t,r,o,l,n[12],7,1804603682),l=Ss(l,t,r,o,n[13],12,-40341101),o=Ss(o,l,t,r,n[14],17,-1502002290),t=gs(t,r=Ss(r,o,l,t,n[15],22,1236535329),o,l,n[1],5,-165796510),l=gs(l,t,r,o,n[6],9,-1069501632),o=gs(o,l,t,r,n[11],14,643717713),r=gs(r,o,l,t,n[0],20,-373897302),t=gs(t,r,o,l,n[5],5,-701558691),l=gs(l,t,r,o,n[10],9,38016083),o=gs(o,l,t,r,n[15],14,-660478335),r=gs(r,o,l,t,n[4],20,-405537848),t=gs(t,r,o,l,n[9],5,568446438),l=gs(l,t,r,o,n[14],9,-1019803690),o=gs(o,l,t,r,n[3],14,-187363961),r=gs(r,o,l,t,n[8],20,1163531501),t=gs(t,r,o,l,n[13],5,-1444681467),l=gs(l,t,r,o,n[2],9,-51403784),o=gs(o,l,t,r,n[7],14,1735328473),t=Fs(t,r=gs(r,o,l,t,n[12],20,-1926607734),o,l,n[5],4,-378558),l=Fs(l,t,r,o,n[8],11,-2022574463),o=Fs(o,l,t,r,n[11],16,1839030562),r=Fs(r,o,l,t,n[14],23,-35309556),t=Fs(t,r,o,l,n[1],4,-1530992060),l=Fs(l,t,r,o,n[4],11,1272893353),o=Fs(o,l,t,r,n[7],16,-155497632),r=Fs(r,o,l,t,n[10],23,-1094730640),t=Fs(t,r,o,l,n[13],4,681279174),l=Fs(l,t,r,o,n[0],11,-358537222),o=Fs(o,l,t,r,n[3],16,-722521979),r=Fs(r,o,l,t,n[6],23,76029189),t=Fs(t,r,o,l,n[9],4,-640364487),l=Fs(l,t,r,o,n[12],11,-421815835),o=Fs(o,l,t,r,n[15],16,530742520),t=Is(t,r=Fs(r,o,l,t,n[2],23,-995338651),o,l,n[0],6,-198630844),l=Is(l,t,r,o,n[7],10,1126891415),o=Is(o,l,t,r,n[14],15,-1416354905),r=Is(r,o,l,t,n[5],21,-57434055),t=Is(t,r,o,l,n[12],6,1700485571),l=Is(l,t,r,o,n[3],10,-1894986606),o=Is(o,l,t,r,n[10],15,-1051523),r=Is(r,o,l,t,n[1],21,-2054922799),t=Is(t,r,o,l,n[8],6,1873313359),l=Is(l,t,r,o,n[15],10,-30611744),o=Is(o,l,t,r,n[6],15,-1560198380),r=Is(r,o,l,t,n[13],21,1309151649),t=Is(t,r,o,l,n[4],6,-145523070),l=Is(l,t,r,o,n[11],10,-1120210379),o=Is(o,l,t,r,n[2],15,718787259),r=Is(r,o,l,t,n[9],21,-343485551),e[0]=Zl(t,e[0]),e[1]=Zl(r,e[1]),e[2]=Zl(o,e[2]),e[3]=Zl(l,e[3])}function Jd(e,n,t,r,o,l){return n=Zl(Zl(n,e),Zl(r,l)),Zl(n<>>32-o,t)}function Ss(e,n,t,r,o,l,w){return Jd(n&t|~n&r,e,n,o,l,w)}function gs(e,n,t,r,o,l,w){return Jd(n&r|t&~r,e,n,o,l,w)}function Fs(e,n,t,r,o,l,w){return Jd(n^t^r,e,n,o,l,w)}function Is(e,n,t,r,o,l,w){return Jd(t^(n|~r),e,n,o,l,w)}function M0(e){var n,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=e.length;n+=64)Yd(r,Hf(e.substring(n-64,n)));e=e.substring(n-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=e.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(Yd(r,o),n=0;n<16;n++)o[n]=0;return o[14]=8*t,Yd(r,o),r}function Hf(e){var n,t=[];for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}var ol="0123456789abcdef".split("");function H0(e){for(var n="",t=0;t<4;t++)n+=ol[e>>8*t+4&15]+ol[e>>8*t&15];return n}function kf(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Rh(e){return M0(e).map(kf).join("")}var Hp=function(e){for(var n=0;n>16)+(n>>16)+(t>>16)<<16|65535&t}return e+n&4294967295}function Zu(e,n){var t,r,o,l;if(e!==t){for(var w=(o=e,l=1+(256/e.length|0),new Array(l+1).join(o)),y=[],S=0;S<256;S++)y[S]=S;var Q=0;for(S=0;S<256;S++){var V=y[S];Q=(Q+V+w.charCodeAt(S))%256,y[S]=y[Q],y[Q]=V}t=e,r=y}else y=r;var fe=n.length,Le=0,z=0,ot="";for(S=0;S\x80/\f\xA9\xFEdSiz";var l=(n+this.padding).substr(0,32),w=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(l,w),this.P=-(1+(255^o)),this.encryptionKey=Rh(l+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Zu(this.encryptionKey,this.padding)}function Nl(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var n="",t=e.length,r=0;r126?"#"+("0"+o.toString(16)).slice(-2):e[r]}return n}function k0(e){if((0,s.Z)(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,r,o){if(o=o||!1,typeof t!="string"||typeof r!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var l=Math.random().toString(35);return n[t][l]=[r,!!o],l},this.unsubscribe=function(t){for(var r in n)if(n[r][t])return delete n[r][t],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(t){if(n.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var l in n[t]){var w=n[t][l];try{w[0].apply(e,r)}catch(y){ei.console&&Ka.error("jsPDF PubSub Error",y.message,y)}w[1]&&o.push(l)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function ef(e){if(!(this instanceof ef))return new ef(e);var n="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&n.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function _h(e,n){this.gState=e,this.matrix=n,this.id="",this.objectNumber=-1}function Vu(e,n,t,r,o){if(!(this instanceof Vu))return new Vu(e,n,t,r,o);this.type=e==="axial"?2:3,this.coords=n,this.colors=t,_h.call(this,r,o)}function Wu(e,n,t,r,o){if(!(this instanceof Wu))return new Wu(e,n,t,r,o);this.boundingBox=e,this.xStep=n,this.yStep=t,this.stream="",this.cloneIndex=0,_h.call(this,r,o)}function yo(e){var n,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],o=arguments[2],l=arguments[3],w=[],y=1,S=16,Q="S",V=null;(0,s.Z)(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,o=e.format||o,l=e.compress||e.compressPdf||l,(V=e.encryption||null)!==null&&(V.userPassword=V.userPassword||"",V.ownerPassword=V.ownerPassword||"",V.userPermissions=V.userPermissions||[]),y=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(n=e.precision),e.floatPrecision!==void 0&&(S=e.floatPrecision),Q=e.defaultPathOperation||"S"),w=e.filters||(l===!0?["FlateEncode"]:w),r=r||"mm",t=(""+(t||"P")).toLowerCase();var fe=e.putOnlyUsedFonts||!1,Le={},z={internal:{},__private__:{}};z.__private__.PubSub=k0;var ot="1.3",Je=z.__private__.getPdfVersion=function(){return ot};z.__private__.setPdfVersion=function(I){ot=I};var it={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};z.__private__.getPageFormats=function(){return it};var Me=z.__private__.getPageFormat=function(I){return it[I]};o=o||"a4";var Mt="compat",Ot="advanced",Ct=Mt;function vn(){this.saveGraphicsState(),st(new Jo(xi,0,0,-xi,0,uf()*xi).toString()+" cm"),this.setFontSize(this.getFontSize()/xi),Q="n",Ct=Ot}function Hn(){this.restoreGraphicsState(),Q="S",Ct=Mt}var Un=z.__private__.combineFontStyleAndFontWeight=function(I,we){if(I=="bold"&&we=="normal"||I=="bold"&&we==400||I=="normal"&&we=="italic"||I=="bold"&&we=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return we&&(I=we==400||we==="normal"?I==="italic"?"italic":"normal":we!=700&&we!=="bold"||I!=="normal"?(we==700?"bold":we)+""+I:"bold"),I};z.advancedAPI=function(I){var we=Ct===Mt;return we&&vn.call(this),typeof I!="function"||(I(this),we&&Hn.call(this)),this},z.compatAPI=function(I){var we=Ct===Ot;return we&&Hn.call(this),typeof I!="function"||(I(this),we&&vn.call(this)),this},z.isAdvancedAPI=function(){return Ct===Ot};var Gt,xt=function(I){if(Ct!==Ot)throw new Error(I+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},sn=z.roundToPrecision=z.__private__.roundToPrecision=function(I,we){var gt=n||we;if(isNaN(I)||isNaN(gt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return I.toFixed(gt).replace(/0+$/,"")};Gt=z.hpf=z.__private__.hpf=typeof S=="number"?function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.hpf");return sn(I,S)}:S==="smart"?function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.hpf");return sn(I,I>-1&&I<1?16:5)}:function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.hpf");return sn(I,16)};var _e=z.f2=z.__private__.f2=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.f2");return sn(I,2)},At=z.__private__.f3=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.f3");return sn(I,3)},jt=z.scale=z.__private__.scale=function(I){if(isNaN(I))throw new Error("Invalid argument passed to jsPDF.scale");return Ct===Mt?I*xi:Ct===Ot?I:void 0},Tt=function(I){return jt(function(we){return Ct===Mt?uf()-we:Ct===Ot?we:void 0}(I))};z.__private__.setPrecision=z.setPrecision=function(I){typeof parseInt(I,10)=="number"&&(n=parseInt(I,10))};var Bn,Fn="00000000000000000000000000000000",Nn=z.__private__.getFileId=function(){return Fn},gn=z.__private__.setFileId=function(I){return Fn=I!==void 0&&/^[a-fA-F0-9]{32}$/.test(I)?I.toUpperCase():Fn.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),V!==null&&(ms=new sd(V.userPermissions,V.userPassword,V.ownerPassword,Fn)),Fn};z.setFileId=function(I){return gn(I),this},z.getFileId=function(){return Nn()};var Tn=z.__private__.convertDateToPDFDate=function(I){var we=I.getTimezoneOffset(),gt=we<0?"+":"-",_t=Math.floor(Math.abs(we/60)),An=Math.abs(we%60),Zn=[gt,Lt(_t),"'",Lt(An),"'"].join("");return["D:",I.getFullYear(),Lt(I.getMonth()+1),Lt(I.getDate()),Lt(I.getHours()),Lt(I.getMinutes()),Lt(I.getSeconds()),Zn].join("")},Ir=z.__private__.convertPDFDateToDate=function(I){var we=parseInt(I.substr(2,4),10),gt=parseInt(I.substr(6,2),10)-1,_t=parseInt(I.substr(8,2),10),An=parseInt(I.substr(10,2),10),Zn=parseInt(I.substr(12,2),10),ir=parseInt(I.substr(14,2),10);return new Date(we,gt,_t,An,Zn,ir,0)},or=z.__private__.setCreationDate=function(I){var we;if(I===void 0&&(I=new Date),I instanceof Date)we=Tn(I);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(I))throw new Error("Invalid argument passed to jsPDF.setCreationDate");we=I}return Bn=we},Pe=z.__private__.getCreationDate=function(I){var we=Bn;return I==="jsDate"&&(we=Ir(Bn)),we};z.setCreationDate=function(I){return or(I),this},z.getCreationDate=function(I){return Pe(I)};var bt,Lt=z.__private__.padd2=function(I){return("0"+parseInt(I)).slice(-2)},Ht=z.__private__.padd2Hex=function(I){return("00"+(I=I.toString())).substr(I.length)},Jt=0,fn=[],Ln=[],On=0,$n=[],wr=[],$r=!1,Gr=Ln;z.__private__.setCustomOutputDestination=function(I){$r=!0,Gr=I};var Qo=function(I){$r||(Gr=I)};z.__private__.resetCustomOutputDestination=function(){$r=!1,Gr=Ln};var st=z.__private__.out=function(I){return I=I.toString(),On+=I.length+1,Gr.push(I),Gr},Xr=z.__private__.write=function(I){return st(arguments.length===1?I.toString():Array.prototype.join.call(arguments," "))},Ri=z.__private__.getArrayBuffer=function(I){for(var we=I.length,gt=new ArrayBuffer(we),_t=new Uint8Array(gt);we--;)_t[we]=I.charCodeAt(we);return gt},Go=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];z.__private__.getStandardFonts=function(){return Go};var dr=e.fontSize||16;z.__private__.setFontSize=z.setFontSize=function(I){return dr=Ct===Ot?I/xi:I,this};var $o,po=z.__private__.getFontSize=z.getFontSize=function(){return Ct===Mt?dr:dr*xi},ko=e.R2L||!1;z.__private__.setR2L=z.setR2L=function(I){return ko=I,this},z.__private__.getR2L=z.getR2L=function(){return ko};var To,Pa=z.__private__.setZoomMode=function(I){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(I))$o=I;else if(isNaN(I)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(I)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+I+'" is not recognized.');$o=I}else $o=parseInt(I,10)};z.__private__.getZoomMode=function(){return $o};var oa,mi=z.__private__.setPageMode=function(I){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(I)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+I+'" is not recognized.');To=I};z.__private__.getPageMode=function(){return To};var ca=z.__private__.setLayoutMode=function(I){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(I)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+I+'" is not recognized.');oa=I};z.__private__.getLayoutMode=function(){return oa},z.__private__.setDisplayMode=z.setDisplayMode=function(I,we,gt){return Pa(I),ca(we),mi(gt),this};var ia={title:"",subject:"",author:"",keywords:"",creator:""};z.__private__.getDocumentProperty=function(I){if(Object.keys(ia).indexOf(I)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ia[I]},z.__private__.getDocumentProperties=function(){return ia},z.__private__.setDocumentProperties=z.setProperties=z.setDocumentProperties=function(I){for(var we in ia)ia.hasOwnProperty(we)&&I[we]&&(ia[we]=I[we]);return this},z.__private__.setDocumentProperty=function(I,we){if(Object.keys(ia).indexOf(I)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ia[I]=we};var xo,xi,Uo,ts,ba,Mi={},Hi={},xA=[],jo={},iA={},ni={},vi={},SA=null,Gi=0,Yo=[],Ta=new k0(z),tf=e.hotfixes||[],qs={},Ec={},qu=[],Jo=function I(we,gt,_t,An,Zn,ir){if(!(this instanceof I))return new I(we,gt,_t,An,Zn,ir);isNaN(we)&&(we=1),isNaN(gt)&&(gt=0),isNaN(_t)&&(_t=0),isNaN(An)&&(An=1),isNaN(Zn)&&(Zn=0),isNaN(ir)&&(ir=0),this._matrix=[we,gt,_t,An,Zn,ir]};Object.defineProperty(Jo.prototype,"sx",{get:function(){return this._matrix[0]},set:function(I){this._matrix[0]=I}}),Object.defineProperty(Jo.prototype,"shy",{get:function(){return this._matrix[1]},set:function(I){this._matrix[1]=I}}),Object.defineProperty(Jo.prototype,"shx",{get:function(){return this._matrix[2]},set:function(I){this._matrix[2]=I}}),Object.defineProperty(Jo.prototype,"sy",{get:function(){return this._matrix[3]},set:function(I){this._matrix[3]=I}}),Object.defineProperty(Jo.prototype,"tx",{get:function(){return this._matrix[4]},set:function(I){this._matrix[4]=I}}),Object.defineProperty(Jo.prototype,"ty",{get:function(){return this._matrix[5]},set:function(I){this._matrix[5]=I}}),Object.defineProperty(Jo.prototype,"a",{get:function(){return this._matrix[0]},set:function(I){this._matrix[0]=I}}),Object.defineProperty(Jo.prototype,"b",{get:function(){return this._matrix[1]},set:function(I){this._matrix[1]=I}}),Object.defineProperty(Jo.prototype,"c",{get:function(){return this._matrix[2]},set:function(I){this._matrix[2]=I}}),Object.defineProperty(Jo.prototype,"d",{get:function(){return this._matrix[3]},set:function(I){this._matrix[3]=I}}),Object.defineProperty(Jo.prototype,"e",{get:function(){return this._matrix[4]},set:function(I){this._matrix[4]=I}}),Object.defineProperty(Jo.prototype,"f",{get:function(){return this._matrix[5]},set:function(I){this._matrix[5]=I}}),Object.defineProperty(Jo.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Jo.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Jo.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Jo.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Jo.prototype.join=function(I){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Gt).join(I)},Jo.prototype.multiply=function(I){var we=I.sx*this.sx+I.shy*this.shx,gt=I.sx*this.shy+I.shy*this.sy,_t=I.shx*this.sx+I.sy*this.shx,An=I.shx*this.shy+I.sy*this.sy,Zn=I.tx*this.sx+I.ty*this.shx+this.tx,ir=I.tx*this.shy+I.ty*this.sy+this.ty;return new Jo(we,gt,_t,An,Zn,ir)},Jo.prototype.decompose=function(){var I=this.sx,we=this.shy,gt=this.shx,_t=this.sy,An=this.tx,Zn=this.ty,ir=Math.sqrt(I*I+we*we),go=(I/=ir)*gt+(we/=ir)*_t;gt-=I*go,_t-=we*go;var So=Math.sqrt(gt*gt+_t*_t);return go/=So,I*(_t/=So)>16&255,_t=So>>8&255,An=255&So}if(_t===void 0||Zn===void 0&>===_t&&_t===An)we=typeof gt=="string"?gt+" "+ir[0]:I.precision===2?_e(gt/255)+" "+ir[0]:At(gt/255)+" "+ir[0];else if(Zn===void 0||(0,s.Z)(Zn)==="object"){if(Zn&&!isNaN(Zn.a)&&Zn.a===0)return["1.","1.","1.",ir[1]].join(" ");we=typeof gt=="string"?[gt,_t,An,ir[1]].join(" "):I.precision===2?[_e(gt/255),_e(_t/255),_e(An/255),ir[1]].join(" "):[At(gt/255),At(_t/255),At(An/255),ir[1]].join(" ")}else we=typeof gt=="string"?[gt,_t,An,Zn,ir[2]].join(" "):I.precision===2?[_e(gt),_e(_t),_e(An),_e(Zn),ir[2]].join(" "):[At(gt),At(_t),At(An),At(Zn),ir[2]].join(" ");return we},Su=z.__private__.getFilters=function(){return w},Xl=z.__private__.putStream=function(I){var we=(I=I||{}).data||"",gt=I.filters||Su(),_t=I.alreadyAppliedFilters||[],An=I.addLength1||!1,Zn=we.length,ir=I.objectId,go=function(vs){return vs};if(V!==null&&ir===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");V!==null&&(go=ms.encryptor(ir,0));var So={};gt===!0&&(gt=["FlateEncode"]);var li=I.additionalKeyValues||[],Si=(So=yo.API.processDataByFilters!==void 0?yo.API.processDataByFilters(we,gt):{data:we,reverseChain:[]}).reverseChain+(Array.isArray(_t)?_t.join(" "):_t.toString());if(So.data.length!==0&&(li.push({key:"Length",value:So.data.length}),An===!0&&li.push({key:"Length1",value:Zn})),Si.length!=0)if(Si.split("/").length-1==1)li.push({key:"Filter",value:Si});else{li.push({key:"Filter",value:"["+Si+"]"});for(var Ca=0;Ca>"),So.data.length!==0&&(st("stream"),st(go(So.data)),st("endstream"))},rf=z.__private__.putPage=function(I){var we=I.number,gt=I.data,_t=I.objId,An=I.contentsObjId;_s(_t,!0),st("<>"),st("endobj");var Zn=gt.join(` + .`+Tf+D0+P0)},T0=function(c,a){var f=c.ownerDocument;if(f){var d=f.createElement("style");d.textContent=a,c.appendChild(d)}},R0=function(){function c(){}return c.getOrigin=function(a){var f=c._link;return f?(f.href=a,f.href=f.href,f.protocol+f.hostname+f.port):"about:blank"},c.isSameOrigin=function(a){return c.getOrigin(a)===c._origin},c.setContext=function(a){c._link=a.document.createElement("a"),c._origin=c.getOrigin(a.location.href)},c._origin="about:blank",c}(),rl=function(){function c(a,f){this.context=a,this._options=f,this._cache={}}return c.prototype.addImage=function(a){var f=Promise.resolve();return this.has(a)||(Qh(a)||Rf(a))&&(this._cache[a]=this.loadImage(a)).catch(function(){}),f},c.prototype.match=function(a){return this._cache[a]},c.prototype.loadImage=function(a){return Se(this,void 0,void 0,function(){var f,d,R,ne,Ue=this;return M(this,function(nt){switch(nt.label){case 0:return f=R0.isSameOrigin(a),d=!$d(a)&&this._options.useCORS===!0&&zA.SUPPORT_CORS_IMAGES&&!f,R=!$d(a)&&!f&&!Qh(a)&&typeof this._options.proxy=="string"&&zA.SUPPORT_CORS_XHR&&!d,!f&&this._options.allowTaint===!1&&!$d(a)&&!Qh(a)&&!R&&!d?[2]:(ne=a,R?[4,this.proxy(ne)]:[3,2]);case 1:ne=nt.sent(),nt.label=2;case 2:return this.context.logger.debug("Added image "+a.substring(0,256)),[4,new Promise(function(et,Kt){var $t=new Image;$t.onload=function(){return et($t)},$t.onerror=Kt,(_p(ne)||d)&&($t.crossOrigin="anonymous"),$t.src=ne,$t.complete===!0&&setTimeout(function(){return et($t)},500),Ue._options.imageTimeout>0&&setTimeout(function(){return Kt("Timed out ("+Ue._options.imageTimeout+"ms) loading image")},Ue._options.imageTimeout)})];case 3:return[2,nt.sent()]}})})},c.prototype.has=function(a){return typeof this._cache[a]!="undefined"},c.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},c.prototype.proxy=function(a){var f=this,d=this._options.proxy;if(!d)throw new Error("No proxy defined");var R=a.substring(0,256);return new Promise(function(ne,Ue){var nt=zA.SUPPORT_RESPONSE_TYPE?"blob":"text",et=new XMLHttpRequest;et.onload=function(){if(et.status===200)if(nt==="text")ne(et.response);else{var an=new FileReader;an.addEventListener("load",function(){return ne(an.result)},!1),an.addEventListener("error",function(Rn){return Ue(Rn)},!1),an.readAsDataURL(et.response)}else Ue("Failed to proxy resource "+R+" with status code "+et.status)},et.onerror=Ue;var Kt=d.indexOf("?")>-1?"&":"?";if(et.open("GET",""+d+Kt+"url="+encodeURIComponent(a)+"&responseType="+nt),nt!=="text"&&et instanceof XMLHttpRequest&&(et.responseType=nt),f._options.imageTimeout){var $t=f._options.imageTimeout;et.timeout=$t,et.ontimeout=function(){return Ue("Timed out ("+$t+"ms) proxying "+R)}}et.send()})},c}(),Lh=/^data:image\/svg\+xml/i,_0=/^data:image\/.*;base64,/i,Nh=/^data:image\/.*/i,Rf=function(c){return zA.SUPPORT_SVG_DRAWING||!jp(c)},$d=function(c){return Nh.test(c)},_p=function(c){return _0.test(c)},Qh=function(c){return c.substr(0,4)==="blob"},jp=function(c){return c.substr(-3).toLowerCase()==="svg"||Lh.test(c)},qr=function(){function c(a,f){this.type=0,this.x=a,this.y=f}return c.prototype.add=function(a,f){return new c(this.x+a,this.y+f)},c}(),wc=function(c,a,f){return new qr(c.x+(a.x-c.x)*f,c.y+(a.y-c.y)*f)},_f=function(){function c(a,f,d,R){this.type=1,this.start=a,this.startControl=f,this.endControl=d,this.end=R}return c.prototype.subdivide=function(a,f){var d=wc(this.start,this.startControl,a),R=wc(this.startControl,this.endControl,a),ne=wc(this.endControl,this.end,a),Ue=wc(d,R,a),nt=wc(R,ne,a),et=wc(Ue,nt,a);return f?new c(this.start,d,Ue,et):new c(et,nt,ne,this.end)},c.prototype.add=function(a,f){return new c(this.start.add(a,f),this.startControl.add(a,f),this.endControl.add(a,f),this.end.add(a,f))},c.prototype.reverse=function(){return new c(this.end,this.endControl,this.startControl,this.start)},c}(),wl=function(c){return c.type===1},Mp=function(){function c(a){var f=a.styles,d=a.bounds,R=nl(f.borderTopLeftRadius,d.width,d.height),ne=R[0],Ue=R[1],nt=nl(f.borderTopRightRadius,d.width,d.height),et=nt[0],Kt=nt[1],$t=nl(f.borderBottomRightRadius,d.width,d.height),an=$t[0],Rn=$t[1],eo=nl(f.borderBottomLeftRadius,d.width,d.height),cr=eo[0],Qr=eo[1],ti=[];ti.push((ne+et)/d.width),ti.push((cr+an)/d.width),ti.push((Ue+Qr)/d.height),ti.push((Kt+Rn)/d.height);var io=Math.max.apply(Math,ti);io>1&&(ne/=io,Ue/=io,et/=io,Kt/=io,an/=io,Rn/=io,cr/=io,Qr/=io);var oo=d.width-et,Mo=d.height-Rn,si=d.width-an,No=d.height-Qr,Zr=f.borderTopWidth,Ti=f.borderRightWidth,gi=f.borderBottomWidth,Ho=f.borderLeftWidth,Ur=ra(f.paddingTop,a.bounds.width),Js=ra(f.paddingRight,a.bounds.width),il=ra(f.paddingBottom,a.bounds.width),Qa=ra(f.paddingLeft,a.bounds.width);this.topLeftBorderDoubleOuterBox=ne>0||Ue>0?Ya(d.left+Ho/3,d.top+Zr/3,ne-Ho/3,Ue-Zr/3,La.TOP_LEFT):new qr(d.left+Ho/3,d.top+Zr/3),this.topRightBorderDoubleOuterBox=ne>0||Ue>0?Ya(d.left+oo,d.top+Zr/3,et-Ti/3,Kt-Zr/3,La.TOP_RIGHT):new qr(d.left+d.width-Ti/3,d.top+Zr/3),this.bottomRightBorderDoubleOuterBox=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an-Ti/3,Rn-gi/3,La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti/3,d.top+d.height-gi/3),this.bottomLeftBorderDoubleOuterBox=cr>0||Qr>0?Ya(d.left+Ho/3,d.top+No,cr-Ho/3,Qr-gi/3,La.BOTTOM_LEFT):new qr(d.left+Ho/3,d.top+d.height-gi/3),this.topLeftBorderDoubleInnerBox=ne>0||Ue>0?Ya(d.left+Ho*2/3,d.top+Zr*2/3,ne-Ho*2/3,Ue-Zr*2/3,La.TOP_LEFT):new qr(d.left+Ho*2/3,d.top+Zr*2/3),this.topRightBorderDoubleInnerBox=ne>0||Ue>0?Ya(d.left+oo,d.top+Zr*2/3,et-Ti*2/3,Kt-Zr*2/3,La.TOP_RIGHT):new qr(d.left+d.width-Ti*2/3,d.top+Zr*2/3),this.bottomRightBorderDoubleInnerBox=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an-Ti*2/3,Rn-gi*2/3,La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti*2/3,d.top+d.height-gi*2/3),this.bottomLeftBorderDoubleInnerBox=cr>0||Qr>0?Ya(d.left+Ho*2/3,d.top+No,cr-Ho*2/3,Qr-gi*2/3,La.BOTTOM_LEFT):new qr(d.left+Ho*2/3,d.top+d.height-gi*2/3),this.topLeftBorderStroke=ne>0||Ue>0?Ya(d.left+Ho/2,d.top+Zr/2,ne-Ho/2,Ue-Zr/2,La.TOP_LEFT):new qr(d.left+Ho/2,d.top+Zr/2),this.topRightBorderStroke=ne>0||Ue>0?Ya(d.left+oo,d.top+Zr/2,et-Ti/2,Kt-Zr/2,La.TOP_RIGHT):new qr(d.left+d.width-Ti/2,d.top+Zr/2),this.bottomRightBorderStroke=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an-Ti/2,Rn-gi/2,La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti/2,d.top+d.height-gi/2),this.bottomLeftBorderStroke=cr>0||Qr>0?Ya(d.left+Ho/2,d.top+No,cr-Ho/2,Qr-gi/2,La.BOTTOM_LEFT):new qr(d.left+Ho/2,d.top+d.height-gi/2),this.topLeftBorderBox=ne>0||Ue>0?Ya(d.left,d.top,ne,Ue,La.TOP_LEFT):new qr(d.left,d.top),this.topRightBorderBox=et>0||Kt>0?Ya(d.left+oo,d.top,et,Kt,La.TOP_RIGHT):new qr(d.left+d.width,d.top),this.bottomRightBorderBox=an>0||Rn>0?Ya(d.left+si,d.top+Mo,an,Rn,La.BOTTOM_RIGHT):new qr(d.left+d.width,d.top+d.height),this.bottomLeftBorderBox=cr>0||Qr>0?Ya(d.left,d.top+No,cr,Qr,La.BOTTOM_LEFT):new qr(d.left,d.top+d.height),this.topLeftPaddingBox=ne>0||Ue>0?Ya(d.left+Ho,d.top+Zr,Math.max(0,ne-Ho),Math.max(0,Ue-Zr),La.TOP_LEFT):new qr(d.left+Ho,d.top+Zr),this.topRightPaddingBox=et>0||Kt>0?Ya(d.left+Math.min(oo,d.width-Ti),d.top+Zr,oo>d.width+Ti?0:Math.max(0,et-Ti),Math.max(0,Kt-Zr),La.TOP_RIGHT):new qr(d.left+d.width-Ti,d.top+Zr),this.bottomRightPaddingBox=an>0||Rn>0?Ya(d.left+Math.min(si,d.width-Ho),d.top+Math.min(Mo,d.height-gi),Math.max(0,an-Ti),Math.max(0,Rn-gi),La.BOTTOM_RIGHT):new qr(d.left+d.width-Ti,d.top+d.height-gi),this.bottomLeftPaddingBox=cr>0||Qr>0?Ya(d.left+Ho,d.top+Math.min(No,d.height-gi),Math.max(0,cr-Ho),Math.max(0,Qr-gi),La.BOTTOM_LEFT):new qr(d.left+Ho,d.top+d.height-gi),this.topLeftContentBox=ne>0||Ue>0?Ya(d.left+Ho+Qa,d.top+Zr+Ur,Math.max(0,ne-(Ho+Qa)),Math.max(0,Ue-(Zr+Ur)),La.TOP_LEFT):new qr(d.left+Ho+Qa,d.top+Zr+Ur),this.topRightContentBox=et>0||Kt>0?Ya(d.left+Math.min(oo,d.width+Ho+Qa),d.top+Zr+Ur,oo>d.width+Ho+Qa?0:et-Ho+Qa,Kt-(Zr+Ur),La.TOP_RIGHT):new qr(d.left+d.width-(Ti+Js),d.top+Zr+Ur),this.bottomRightContentBox=an>0||Rn>0?Ya(d.left+Math.min(si,d.width-(Ho+Qa)),d.top+Math.min(Mo,d.height+Zr+Ur),Math.max(0,an-(Ti+Js)),Rn-(gi+il),La.BOTTOM_RIGHT):new qr(d.left+d.width-(Ti+Js),d.top+d.height-(gi+il)),this.bottomLeftContentBox=cr>0||Qr>0?Ya(d.left+Ho+Qa,d.top+No,Math.max(0,cr-(Ho+Qa)),Qr-(gi+il),La.BOTTOM_LEFT):new qr(d.left+Ho+Qa,d.top+d.height-(gi+il))}return c}(),La;(function(c){c[c.TOP_LEFT=0]="TOP_LEFT",c[c.TOP_RIGHT=1]="TOP_RIGHT",c[c.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",c[c.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(La||(La={}));var Ya=function(c,a,f,d,R){var ne=4*((Math.sqrt(2)-1)/3),Ue=f*ne,nt=d*ne,et=c+f,Kt=a+d;switch(R){case La.TOP_LEFT:return new _f(new qr(c,Kt),new qr(c,Kt-nt),new qr(et-Ue,a),new qr(et,a));case La.TOP_RIGHT:return new _f(new qr(c,a),new qr(c+Ue,a),new qr(et,Kt-nt),new qr(et,Kt));case La.BOTTOM_RIGHT:return new _f(new qr(et,a),new qr(et,a+nt),new qr(c+Ue,Kt),new qr(c,Kt));case La.BOTTOM_LEFT:default:return new _f(new qr(et,Kt),new qr(et-Ue,Kt),new qr(c,a+nt),new qr(c,a))}},jf=function(c){return[c.topLeftBorderBox,c.topRightBorderBox,c.bottomRightBorderBox,c.bottomLeftBorderBox]},Ng=function(c){return[c.topLeftContentBox,c.topRightContentBox,c.bottomRightContentBox,c.bottomLeftContentBox]},Oh=function(c){return[c.topLeftPaddingBox,c.topRightPaddingBox,c.bottomRightPaddingBox,c.bottomLeftPaddingBox]},ei=function(){function c(a,f,d){this.offsetX=a,this.offsetY=f,this.matrix=d,this.type=0,this.target=6}return c}(),Ad=function(){function c(a,f){this.path=a,this.target=f,this.type=1}return c}(),Ka=function(){function c(a){this.opacity=a,this.type=2,this.target=6}return c}(),Dh=function(c){return c.type===0},Ph=function(c){return c.type===1},Mf=function(c){return c.type===2},zu=function(c,a){return c.length===a.length?c.some(function(f,d){return f===a[d]}):!1},j0=function(c,a,f,d,R){return c.map(function(ne,Ue){switch(Ue){case 0:return ne.add(a,f);case 1:return ne.add(a+d,f);case 2:return ne.add(a+d,f+R);case 3:return ne.add(a,f+R)}return ne})},Xd=function(){function c(a){this.element=a,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return c}(),Th=function(){function c(a,f){if(this.container=a,this.parent=f,this.effects=[],this.curves=new Mp(this.container),this.container.styles.opacity<1&&this.effects.push(new Ka(this.container.styles.opacity)),this.container.styles.transform!==null){var d=this.container.bounds.left+this.container.styles.transformOrigin[0].number,R=this.container.bounds.top+this.container.styles.transformOrigin[1].number,ne=this.container.styles.transform;this.effects.push(new ei(d,R,ne))}if(this.container.styles.overflowX!==0){var Ue=jf(this.curves),nt=Oh(this.curves);zu(Ue,nt)?this.effects.push(new Ad(Ue,6)):(this.effects.push(new Ad(Ue,2)),this.effects.push(new Ad(nt,4)))}}return c.prototype.getEffects=function(a){for(var f=[2,3].indexOf(this.container.styles.position)===-1,d=this.parent,R=this.effects.slice(0);d;){var ne=d.effects.filter(function(et){return!Ph(et)});if(f||d.container.styles.position!==0||!d.parent){if(R.unshift.apply(R,ne),f=[2,3].indexOf(d.container.styles.position)===-1,d.container.styles.overflowX!==0){var Ue=jf(d.curves),nt=Oh(d.curves);zu(Ue,nt)||R.unshift(new Ad(nt,6))}}else R.unshift.apply(R,ne);d=d.parent}return R.filter(function(et){return Mr(et.target,a)})},c}(),Yd=function(c,a,f,d){c.container.elements.forEach(function(R){var ne=Mr(R.flags,4),Ue=Mr(R.flags,2),nt=new Th(R,c);Mr(R.styles.display,2048)&&d.push(nt);var et=Mr(R.flags,8)?[]:d;if(ne||Ue){var Kt=ne||R.styles.isPositioned()?f:a,$t=new Xd(nt);if(R.styles.isPositioned()||R.styles.opacity<1||R.styles.isTransformed()){var an=R.styles.zIndex.order;if(an<0){var Rn=0;Kt.negativeZIndex.some(function(cr,Qr){return an>cr.element.container.styles.zIndex.order?(Rn=Qr,!1):Rn>0}),Kt.negativeZIndex.splice(Rn,0,$t)}else if(an>0){var eo=0;Kt.positiveZIndex.some(function(cr,Qr){return an>=cr.element.container.styles.zIndex.order?(eo=Qr+1,!1):eo>0}),Kt.positiveZIndex.splice(eo,0,$t)}else Kt.zeroOrAutoZIndexOrTransformedOrOpacity.push($t)}else R.styles.isFloating()?Kt.nonPositionedFloats.push($t):Kt.nonPositionedInlineLevel.push($t);Yd(nt,$t,ne?$t:f,et)}else R.styles.isInlineLevel()?a.inlineLevel.push(nt):a.nonInlineLevel.push(nt),Yd(nt,a,f,et);Mr(R.flags,8)&&Jd(R,et)})},Jd=function(c,a){for(var f=c instanceof ad?c.start:1,d=c instanceof ad?c.reversed:!1,R=0;R0&&f.intrinsicHeight>0){var ne=kf(f),Ue=Oh(d);this.path(Ue),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(R,0,0,f.intrinsicWidth,f.intrinsicHeight,ne.left,ne.top,ne.width,ne.height),this.ctx.restore()}},a.prototype.renderNodeContent=function(f){return Se(this,void 0,void 0,function(){var d,R,ne,Ue,nt,et,oo,oo,Kt,$t,an,Rn,si,eo,cr,No,Qr,ti,io,oo,Mo,si,No;return M(this,function(Zr){switch(Zr.label){case 0:this.applyEffects(f.getEffects(4)),d=f.container,R=f.curves,ne=d.styles,Ue=0,nt=d.textNodes,Zr.label=1;case 1:return Ue0&&ss>0&&(gi=ne.ctx.createPattern(No,"repeat"),ne.renderRepeat(Ur,gi,Us,Rs))):rh($t)&&(Ho=Zl(f,d,[null,null,null]),Ur=Ho[0],Js=Ho[1],il=Ho[2],Qa=Ho[3],ss=Ho[4],yu=$t.position.length===0?[sc]:$t.position,Us=ra(yu[0],Qa),Rs=ra(yu[yu.length-1],ss),bc=Pu($t,Us,Rs,Qa,ss),Bl=bc[0],wu=bc[1],Bl>0&&wu>0&&(Cc=ne.ctx.createRadialGradient(Js+Us,il+Rs,0,Js+Us,il+Rs,Bl),Zs($t.stops,Bl*2).forEach(function(Yu){return Cc.addColorStop(Yu.stop,fA(Yu.color))}),ne.path(Ur),ne.ctx.fillStyle=Cc,Bl!==wu?($u=f.bounds.left+.5*f.bounds.width,Wl=f.bounds.top+.5*f.bounds.height,Xu=wu/Bl,Bu=1/Xu,ne.ctx.save(),ne.ctx.translate($u,Wl),ne.ctx.transform(1,0,0,Xu,0,0),ne.ctx.translate(-$u,-Wl),ne.ctx.fillRect(Js,Bu*(il-Wl)+Wl,Qa,ss*Bu),ne.ctx.restore()):ne.ctx.fill())),ud.label=6;case 6:return d--,[2]}})},ne=this,Ue=0,nt=f.styles.backgroundImage.slice(0).reverse(),Kt.label=1;case 1:return Ue0?$t.style!==2?[3,5]:[4,this.renderDashedDottedBorder($t.color,$t.width,nt,f.curves,2)]:[3,11]):[3,13];case 4:return Rn.sent(),[3,11];case 5:return $t.style!==3?[3,7]:[4,this.renderDashedDottedBorder($t.color,$t.width,nt,f.curves,3)];case 6:return Rn.sent(),[3,11];case 7:return $t.style!==4?[3,9]:[4,this.renderDoubleBorder($t.color,$t.width,nt,f.curves)];case 8:return Rn.sent(),[3,11];case 9:return[4,this.renderSolidBorder($t.color,nt,f.curves)];case 10:Rn.sent(),Rn.label=11;case 11:nt++,Rn.label=12;case 12:return et++,[3,3];case 13:return[2]}})})},a.prototype.renderDashedDottedBorder=function(f,d,R,ne,Ue){return Se(this,void 0,void 0,function(){var nt,et,Kt,$t,an,Rn,eo,cr,Qr,ti,io,oo,Mo,si,No,Zr,No,Zr;return M(this,function(Ti){return this.ctx.save(),nt=M0(ne,R),et=gs(ne,R),Ue===2&&(this.path(et),this.ctx.clip()),wl(et[0])?(Kt=et[0].start.x,$t=et[0].start.y):(Kt=et[0].x,$t=et[0].y),wl(et[1])?(an=et[1].end.x,Rn=et[1].end.y):(an=et[1].x,Rn=et[1].y),R===0||R===2?eo=Math.abs(Kt-an):eo=Math.abs($t-Rn),this.ctx.beginPath(),Ue===3?this.formatPath(nt):this.formatPath(et.slice(0,2)),cr=d<3?d*3:d*2,Qr=d<3?d*2:d,Ue===3&&(cr=d,Qr=d),ti=!0,eo<=cr*2?ti=!1:eo<=cr*2+Qr?(io=eo/(2*cr+Qr),cr*=io,Qr*=io):(oo=Math.floor((eo+Qr)/(cr+Qr)),Mo=(eo-oo*cr)/(oo-1),si=(eo-(oo+1)*cr)/oo,Qr=si<=0||Math.abs(Qr-Mo)he){var me=be;be=he,he=me}}else if(Ce==="l"||Ce==="landscape"){if(Ce="l",he>be){var me=be;be=he,he=me}}else throw"Invalid orientation: "+Ce;var ae={width:be,height:he,unit:G,k:oe};return ae},N.default=Fe.jsPDF},"./src/plugin/pagebreaks.js":function(v,N,i){"use strict";i.r(N);var L=i("./node_modules/core-js/modules/es.array.concat.js"),B=i.n(L),D=i("./node_modules/core-js/modules/es.array.slice.js"),O=i.n(D),T=i("./node_modules/core-js/modules/es.array.join.js"),E=i.n(T),I=i("./node_modules/core-js/modules/web.dom-collections.for-each.js"),U=i.n(I),W=i("./node_modules/core-js/modules/es.object.keys.js"),re=i.n(W),k=i("./src/worker.js"),H=i("./src/utils.js"),de={toContainer:k.default.prototype.toContainer};k.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},k.default.prototype.toContainer=function(){return de.toContainer.call(this).then(function(){var ve=this.prop.container,pe=this.prop.pageSize.inner.px.height,Ce=[].concat(this.opt.pagebreak.mode),G={avoidAll:Ce.indexOf("avoid-all")!==-1,css:Ce.indexOf("css")!==-1,legacy:Ce.indexOf("legacy")!==-1},ge={},g=this;["before","after","avoid"].forEach(function(oe){var he=G.avoidAll&&oe==="avoid";ge[oe]=he?[]:[].concat(g.opt.pagebreak[oe]||[]),ge[oe].length>0&&(ge[oe]=Array.prototype.slice.call(ve.querySelectorAll(ge[oe].join(", "))))});var j=ve.querySelectorAll(".html2pdf__page-break");j=Array.prototype.slice.call(j);var Ye=ve.querySelectorAll("*");Array.prototype.forEach.call(Ye,function(he){var be={before:!1,after:G.legacy&&j.indexOf(he)!==-1,avoid:G.avoidAll};if(G.css){var me=window.getComputedStyle(he),ae=["always","page","left","right"],se=["avoid","avoid-page"];be={before:be.before||ae.indexOf(me.breakBefore||me.pageBreakBefore)!==-1,after:be.after||ae.indexOf(me.breakAfter||me.pageBreakAfter)!==-1,avoid:be.avoid||se.indexOf(me.breakInside||me.pageBreakInside)!==-1}}Object.keys(be).forEach(function(zt){be[zt]=be[zt]||ge[zt].indexOf(he)!==-1});var Je=he.getBoundingClientRect();if(be.avoid&&!be.before){var mt=Math.floor(Je.top/pe),Me=Math.floor(Je.bottom/pe),Nt=Math.abs(Je.bottom-Je.top)/pe;Me!==mt&&Nt<=1&&(be.before=!0)}if(be.before){var yt=(0,H.createElement)("div",{style:{display:"block",height:pe-Je.top%pe+"px"}});he.parentNode.insertBefore(yt,he)}if(be.after){var yt=(0,H.createElement)("div",{style:{display:"block",height:pe-Je.bottom%pe+"px"}});he.parentNode.insertBefore(yt,he.nextSibling)}})})}},"./src/utils.js":function(v,N,i){"use strict";i.r(N),i.d(N,{objType:function(){return Ce},createElement:function(){return G},cloneNode:function(){return ge},unitConvert:function(){return g},toPx:function(){return j}});var L=i("./node_modules/core-js/modules/es.number.constructor.js"),B=i.n(L),D=i("./node_modules/core-js/modules/es.symbol.js"),O=i.n(D),T=i("./node_modules/core-js/modules/es.symbol.description.js"),E=i.n(T),I=i("./node_modules/core-js/modules/es.object.to-string.js"),U=i.n(I),W=i("./node_modules/core-js/modules/es.symbol.iterator.js"),re=i.n(W),k=i("./node_modules/core-js/modules/es.array.iterator.js"),H=i.n(k),de=i("./node_modules/core-js/modules/es.string.iterator.js"),ce=i.n(de),Fe=i("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ve=i.n(Fe);function pe(Ye){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(he){return typeof he}:pe=function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},pe(Ye)}var Ce=function(oe){var he=pe(oe);return he==="undefined"?"undefined":he==="string"||oe instanceof String?"string":he==="number"||oe instanceof Number?"number":he==="function"||oe instanceof Function?"function":oe&&oe.constructor===Array?"array":oe&&oe.nodeType===1?"element":he==="object"?"object":"unknown"},G=function(oe,he){var be=document.createElement(oe);if(he.className&&(be.className=he.className),he.innerHTML){be.innerHTML=he.innerHTML;for(var me=be.getElementsByTagName("script"),ae=me.length;ae-- >0;null)me[ae].parentNode.removeChild(me[ae])}for(var se in he.style)be.style[se]=he.style[se];return be},ge=function Ye(oe,he){for(var be=oe.nodeType===3?document.createTextNode(oe.nodeValue):oe.cloneNode(!1),me=oe.firstChild;me;me=me.nextSibling)(he===!0||me.nodeType!==1||me.nodeName!=="SCRIPT")&&be.appendChild(Ye(me,he));return oe.nodeType===1&&(oe.nodeName==="CANVAS"?(be.width=oe.width,be.height=oe.height,be.getContext("2d").drawImage(oe,0,0)):(oe.nodeName==="TEXTAREA"||oe.nodeName==="SELECT")&&(be.value=oe.value),be.addEventListener("load",function(){be.scrollTop=oe.scrollTop,be.scrollLeft=oe.scrollLeft},!0)),be},g=function(oe,he){if(Ce(oe)==="number")return oe*72/96/he;var be={};for(var me in oe)be[me]=oe[me]*72/96/he;return be},j=function(oe,he){return Math.floor(oe*he/72*96)}},"./src/worker.js":function(v,N,i){"use strict";i.r(N);var L=i("./node_modules/core-js/modules/es.object.assign.js"),B=i.n(L),D=i("./node_modules/core-js/modules/es.array.map.js"),O=i.n(D),T=i("./node_modules/core-js/modules/es.object.keys.js"),E=i.n(T),I=i("./node_modules/core-js/modules/es.array.concat.js"),U=i.n(I),W=i("./node_modules/core-js/modules/es.object.to-string.js"),re=i.n(W),k=i("./node_modules/core-js/modules/es.regexp.to-string.js"),H=i.n(k),de=i("./node_modules/core-js/modules/es.function.name.js"),ce=i.n(de),Fe=i("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ve=i.n(Fe),pe=i("jspdf"),Ce=i.n(pe),G=i("html2canvas"),ge=i.n(G),g=i("./src/utils.js"),j=i("./node_modules/es6-promise/dist/es6-promise.js"),Ye=i.n(j),oe=Ye().Promise,he=function be(me){var ae=Object.assign(be.convert(oe.resolve()),JSON.parse(JSON.stringify(be.template))),se=be.convert(oe.resolve(),ae);return se=se.setProgress(1,be,1,[be]),se=se.set(me),se};he.prototype=Object.create(oe.prototype),he.prototype.constructor=he,he.convert=function(me,ae){return me.__proto__=ae||he.prototype,me},he.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},he.prototype.from=function(me,ae){function se(Je){switch((0,g.objType)(Je)){case"string":return"string";case"element":return Je.nodeName.toLowerCase&&Je.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ae=ae||se(me),ae){case"string":return this.set({src:(0,g.createElement)("div",{innerHTML:me})});case"element":return this.set({src:me});case"canvas":return this.set({canvas:me});case"img":return this.set({img:me});default:return this.error("Unknown source type.")}})},he.prototype.to=function(me){switch(me){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},he.prototype.toContainer=function(){var me=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(me).then(function(){var se={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Je={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};se.opacity=0;var mt=(0,g.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,g.createElement)("div",{className:"html2pdf__overlay",style:se}),this.prop.container=(0,g.createElement)("div",{className:"html2pdf__container",style:Je}),this.prop.container.appendChild(mt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},he.prototype.toCanvas=function(){var me=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(me).then(function(){var se=Object.assign({},this.opt.html2canvas);return delete se.onrendered,G(this.prop.container,se)}).then(function(se){var Je=this.opt.html2canvas.onrendered||function(){};Je(se),this.prop.canvas=se,document.body.removeChild(this.prop.overlay)})},he.prototype.toImg=function(){var me=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(me).then(function(){var se=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=se})},he.prototype.toPdf=function(){var me=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(me).then(function(){var se=this.prop.canvas,Je=this.opt,mt=se.height,Me=Math.floor(se.width*this.prop.pageSize.inner.ratio),Nt=Math.ceil(mt/Me),yt=this.prop.pageSize.inner.height,zt=document.createElement("canvas"),je=zt.getContext("2d");zt.width=se.width,zt.height=Me,this.prop.pdf=this.prop.pdf||new pe.jsPDF(Je.jsPDF);for(var It=0;It1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-indexed-object.js"),B=i("./node_modules/core-js/internals/to-length.js"),D=i("./node_modules/core-js/internals/to-absolute-index.js"),O=function(T){return function(E,I,U){var W=L(E),re=B(W.length),k=D(U,re),H;if(T&&I!=I){for(;re>k;)if(H=W[k++],H!=H)return!0}else for(;re>k;k++)if((T||k in W)&&W[k]===I)return T||k||0;return!T&&-1}};v.exports={includes:O(!0),indexOf:O(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(v,N,i){var L=i("./node_modules/core-js/internals/function-bind-context.js"),B=i("./node_modules/core-js/internals/indexed-object.js"),D=i("./node_modules/core-js/internals/to-object.js"),O=i("./node_modules/core-js/internals/to-length.js"),T=i("./node_modules/core-js/internals/array-species-create.js"),E=[].push,I=function(U){var W=U==1,re=U==2,k=U==3,H=U==4,de=U==6,ce=U==7,Fe=U==5||de;return function(ve,pe,Ce,G){for(var ge=D(ve),g=B(ge),j=L(pe,Ce,3),Ye=O(g.length),oe=0,he=G||T,be=W?he(ve,Ye):re||ce?he(ve,0):void 0,me,ae;Ye>oe;oe++)if((Fe||oe in g)&&(me=g[oe],ae=j(me,oe,ge),U))if(W)be[oe]=ae;else if(ae)switch(U){case 3:return!0;case 5:return me;case 6:return oe;case 2:E.call(be,me)}else switch(U){case 4:return!1;case 7:E.call(be,me)}return de?-1:k||H?H:be}};v.exports={forEach:I(0),map:I(1),filter:I(2),some:I(3),every:I(4),find:I(5),findIndex:I(6),filterReject:I(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(v,N,i){var L=i("./node_modules/core-js/internals/fails.js"),B=i("./node_modules/core-js/internals/well-known-symbol.js"),D=i("./node_modules/core-js/internals/engine-v8-version.js"),O=B("species");v.exports=function(T){return D>=51||!L(function(){var E=[],I=E.constructor={};return I[O]=function(){return{foo:1}},E[T](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/fails.js");v.exports=function(B,D){var O=[][B];return!!O&&L(function(){O.call(null,D||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(v,N,i){var L=i("./node_modules/core-js/internals/is-object.js"),B=i("./node_modules/core-js/internals/is-array.js"),D=i("./node_modules/core-js/internals/well-known-symbol.js"),O=D("species");v.exports=function(T){var E;return B(T)&&(E=T.constructor,typeof E=="function"&&(E===Array||B(E.prototype))?E=void 0:L(E)&&(E=E[O],E===null&&(E=void 0))),E===void 0?Array:E}},"./node_modules/core-js/internals/array-species-create.js":function(v,N,i){var L=i("./node_modules/core-js/internals/array-species-constructor.js");v.exports=function(B,D){return new(L(B))(D===0?0:D)}},"./node_modules/core-js/internals/classof-raw.js":function(v){var N={}.toString;v.exports=function(i){return N.call(i).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-string-tag-support.js"),B=i("./node_modules/core-js/internals/classof-raw.js"),D=i("./node_modules/core-js/internals/well-known-symbol.js"),O=D("toStringTag"),T=B(function(){return arguments}())=="Arguments",E=function(I,U){try{return I[U]}catch(W){}};v.exports=L?B:function(I){var U,W,re;return I===void 0?"Undefined":I===null?"Null":typeof(W=E(U=Object(I),O))=="string"?W:T?B(U):(re=B(U))=="Object"&&typeof U.callee=="function"?"Arguments":re}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(v,N,i){var L=i("./node_modules/core-js/internals/has.js"),B=i("./node_modules/core-js/internals/own-keys.js"),D=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),O=i("./node_modules/core-js/internals/object-define-property.js");v.exports=function(T,E){for(var I=B(E),U=O.f,W=D.f,re=0;re"+U+""}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,B=i("./node_modules/core-js/internals/object-create.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js"),O=i("./node_modules/core-js/internals/set-to-string-tag.js"),T=i("./node_modules/core-js/internals/iterators.js"),E=function(){return this};v.exports=function(I,U,W){var re=U+" Iterator";return I.prototype=B(L,{next:D(1,W)}),O(I,re,!1,!0),T[re]=E,I}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(v,N,i){var L=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/object-define-property.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js");v.exports=L?function(O,T,E){return B.f(O,T,D(1,E))}:function(O,T,E){return O[T]=E,O}},"./node_modules/core-js/internals/create-property-descriptor.js":function(v){v.exports=function(N,i){return{enumerable:!(N&1),configurable:!(N&2),writable:!(N&4),value:i}}},"./node_modules/core-js/internals/create-property.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/to-property-key.js"),B=i("./node_modules/core-js/internals/object-define-property.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js");v.exports=function(O,T,E){var I=L(T);I in O?B.f(O,I,D(0,E)):O[I]=E}},"./node_modules/core-js/internals/define-iterator.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/create-iterator-constructor.js"),D=i("./node_modules/core-js/internals/object-get-prototype-of.js"),O=i("./node_modules/core-js/internals/object-set-prototype-of.js"),T=i("./node_modules/core-js/internals/set-to-string-tag.js"),E=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),I=i("./node_modules/core-js/internals/redefine.js"),U=i("./node_modules/core-js/internals/well-known-symbol.js"),W=i("./node_modules/core-js/internals/is-pure.js"),re=i("./node_modules/core-js/internals/iterators.js"),k=i("./node_modules/core-js/internals/iterators-core.js"),H=k.IteratorPrototype,de=k.BUGGY_SAFARI_ITERATORS,ce=U("iterator"),Fe="keys",ve="values",pe="entries",Ce=function(){return this};v.exports=function(G,ge,g,j,Ye,oe,he){B(g,ge,j);var be=function(je){if(je===Ye&&mt)return mt;if(!de&&je in se)return se[je];switch(je){case Fe:return function(){return new g(this,je)};case ve:return function(){return new g(this,je)};case pe:return function(){return new g(this,je)}}return function(){return new g(this)}},me=ge+" Iterator",ae=!1,se=G.prototype,Je=se[ce]||se["@@iterator"]||Ye&&se[Ye],mt=!de&&Je||be(Ye),Me=ge=="Array"&&se.entries||Je,Nt,yt,zt;if(Me&&(Nt=D(Me.call(new G)),H!==Object.prototype&&Nt.next&&(!W&&D(Nt)!==H&&(O?O(Nt,H):typeof Nt[ce]!="function"&&E(Nt,ce,Ce)),T(Nt,me,!0,!0),W&&(re[me]=Ce))),Ye==ve&&Je&&Je.name!==ve&&(ae=!0,mt=function(){return Je.call(this)}),(!W||he)&&se[ce]!==mt&&E(se,ce,mt),re[ge]=mt,Ye)if(yt={values:be(ve),keys:oe?mt:be(Fe),entries:be(pe)},he)for(zt in yt)(de||ae||!(zt in se))&&I(se,zt,yt[zt]);else L({target:ge,proto:!0,forced:de||ae},yt);return yt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(v,N,i){var L=i("./node_modules/core-js/internals/path.js"),B=i("./node_modules/core-js/internals/has.js"),D=i("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),O=i("./node_modules/core-js/internals/object-define-property.js").f;v.exports=function(T){var E=L.Symbol||(L.Symbol={});B(E,T)||O(E,T,{value:D.f(T)})}},"./node_modules/core-js/internals/descriptors.js":function(v,N,i){var L=i("./node_modules/core-js/internals/fails.js");v.exports=!L(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/is-object.js"),D=L.document,O=B(D)&&B(D.createElement);v.exports=function(T){return O?D.createElement(T):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(v){v.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(v,N,i){var L=i("./node_modules/core-js/internals/get-built-in.js");v.exports=L("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/engine-user-agent.js"),D=L.process,O=L.Deno,T=D&&D.versions||O&&O.version,E=T&&T.v8,I,U;E?(I=E.split("."),U=I[0]<4?1:I[0]+I[1]):B&&(I=B.match(/Edge\/(\d+)/),(!I||I[1]>=74)&&(I=B.match(/Chrome\/(\d+)/),I&&(U=I[1]))),v.exports=U&&+U},"./node_modules/core-js/internals/enum-bug-keys.js":function(v){v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,D=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=i("./node_modules/core-js/internals/redefine.js"),T=i("./node_modules/core-js/internals/set-global.js"),E=i("./node_modules/core-js/internals/copy-constructor-properties.js"),I=i("./node_modules/core-js/internals/is-forced.js");v.exports=function(U,W){var re=U.target,k=U.global,H=U.stat,de,ce,Fe,ve,pe,Ce;if(k?ce=L:H?ce=L[re]||T(re,{}):ce=(L[re]||{}).prototype,ce)for(Fe in W){if(pe=W[Fe],U.noTargetGet?(Ce=B(ce,Fe),ve=Ce&&Ce.value):ve=ce[Fe],de=I(k?Fe:re+(H?".":"#")+Fe,U.forced),!de&&ve!==void 0){if(typeof pe==typeof ve)continue;E(pe,ve)}(U.sham||ve&&ve.sham)&&D(pe,"sham",!0),O(ce,Fe,pe,U)}}},"./node_modules/core-js/internals/fails.js":function(v){v.exports=function(N){try{return!!N()}catch(i){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(v,N,i){var L=i("./node_modules/core-js/internals/a-function.js");v.exports=function(B,D,O){if(L(B),D===void 0)return B;switch(O){case 0:return function(){return B.call(D)};case 1:return function(T){return B.call(D,T)};case 2:return function(T,E){return B.call(D,T,E)};case 3:return function(T,E,I){return B.call(D,T,E,I)}}return function(){return B.apply(D,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=function(D){return typeof D=="function"?D:void 0};v.exports=function(D,O){return arguments.length<2?B(L[D]):L[D]&&L[D][O]}},"./node_modules/core-js/internals/global.js":function(v){var N=function(i){return i&&i.Math==Math&&i};v.exports=N(typeof globalThis=="object"&&globalThis)||N(typeof window=="object"&&window)||N(typeof self=="object"&&self)||N(typeof p.g=="object"&&p.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-object.js"),B={}.hasOwnProperty;v.exports=Object.hasOwn||function(O,T){return B.call(L(O),T)}},"./node_modules/core-js/internals/hidden-keys.js":function(v){v.exports={}},"./node_modules/core-js/internals/html.js":function(v,N,i){var L=i("./node_modules/core-js/internals/get-built-in.js");v.exports=L("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(v,N,i){var L=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/fails.js"),D=i("./node_modules/core-js/internals/document-create-element.js");v.exports=!L&&!B(function(){return Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(v,N,i){var L=i("./node_modules/core-js/internals/fails.js"),B=i("./node_modules/core-js/internals/classof-raw.js"),D="".split;v.exports=L(function(){return!Object("z").propertyIsEnumerable(0)})?function(O){return B(O)=="String"?D.call(O,""):Object(O)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(v,N,i){var L=i("./node_modules/core-js/internals/is-object.js"),B=i("./node_modules/core-js/internals/object-set-prototype-of.js");v.exports=function(D,O,T){var E,I;return B&&typeof(E=O.constructor)=="function"&&E!==T&&L(I=E.prototype)&&I!==T.prototype&&B(D,I),D}},"./node_modules/core-js/internals/inspect-source.js":function(v,N,i){var L=i("./node_modules/core-js/internals/shared-store.js"),B=Function.toString;typeof L.inspectSource!="function"&&(L.inspectSource=function(D){return B.call(D)}),v.exports=L.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(v,N,i){var L=i("./node_modules/core-js/internals/native-weak-map.js"),B=i("./node_modules/core-js/internals/global.js"),D=i("./node_modules/core-js/internals/is-object.js"),O=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=i("./node_modules/core-js/internals/has.js"),E=i("./node_modules/core-js/internals/shared-store.js"),I=i("./node_modules/core-js/internals/shared-key.js"),U=i("./node_modules/core-js/internals/hidden-keys.js"),W="Object already initialized",re=B.WeakMap,k,H,de,ce=function(g){return de(g)?H(g):k(g,{})},Fe=function(g){return function(j){var Ye;if(!D(j)||(Ye=H(j)).type!==g)throw TypeError("Incompatible receiver, "+g+" required");return Ye}};if(L||E.state){var ve=E.state||(E.state=new re),pe=ve.get,Ce=ve.has,G=ve.set;k=function(g,j){if(Ce.call(ve,g))throw new TypeError(W);return j.facade=g,G.call(ve,g,j),j},H=function(g){return pe.call(ve,g)||{}},de=function(g){return Ce.call(ve,g)}}else{var ge=I("state");U[ge]=!0,k=function(g,j){if(T(g,ge))throw new TypeError(W);return j.facade=g,O(g,ge,j),j},H=function(g){return T(g,ge)?g[ge]:{}},de=function(g){return T(g,ge)}}v.exports={set:k,get:H,has:de,enforce:ce,getterFor:Fe}},"./node_modules/core-js/internals/is-array.js":function(v,N,i){var L=i("./node_modules/core-js/internals/classof-raw.js");v.exports=Array.isArray||function(D){return L(D)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(v,N,i){var L=i("./node_modules/core-js/internals/fails.js"),B=/#|\.prototype\./,D=function(U,W){var re=T[O(U)];return re==I?!0:re==E?!1:typeof W=="function"?L(W):!!W},O=D.normalize=function(U){return String(U).replace(B,".").toLowerCase()},T=D.data={},E=D.NATIVE="N",I=D.POLYFILL="P";v.exports=D},"./node_modules/core-js/internals/is-object.js":function(v){v.exports=function(N){return typeof N=="object"?N!==null:typeof N=="function"}},"./node_modules/core-js/internals/is-pure.js":function(v){v.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(v,N,i){var L=i("./node_modules/core-js/internals/get-built-in.js"),B=i("./node_modules/core-js/internals/use-symbol-as-uid.js");v.exports=B?function(D){return typeof D=="symbol"}:function(D){var O=L("Symbol");return typeof O=="function"&&Object(D)instanceof O}},"./node_modules/core-js/internals/iterators-core.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/fails.js"),B=i("./node_modules/core-js/internals/object-get-prototype-of.js"),D=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=i("./node_modules/core-js/internals/has.js"),T=i("./node_modules/core-js/internals/well-known-symbol.js"),E=i("./node_modules/core-js/internals/is-pure.js"),I=T("iterator"),U=!1,W=function(){return this},re,k,H;[].keys&&(H=[].keys(),"next"in H?(k=B(B(H)),k!==Object.prototype&&(re=k)):U=!0);var de=re==null||L(function(){var ce={};return re[I].call(ce)!==ce});de&&(re={}),(!E||de)&&!O(re,I)&&D(re,I,W),v.exports={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:U}},"./node_modules/core-js/internals/iterators.js":function(v){v.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(v,N,i){var L=i("./node_modules/core-js/internals/engine-v8-version.js"),B=i("./node_modules/core-js/internals/fails.js");v.exports=!!Object.getOwnPropertySymbols&&!B(function(){var D=Symbol();return!String(D)||!(Object(D)instanceof Symbol)||!Symbol.sham&&L&&L<41})},"./node_modules/core-js/internals/native-weak-map.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/inspect-source.js"),D=L.WeakMap;v.exports=typeof D=="function"&&/native code/.test(B(D))},"./node_modules/core-js/internals/object-assign.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/fails.js"),D=i("./node_modules/core-js/internals/object-keys.js"),O=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),T=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),E=i("./node_modules/core-js/internals/to-object.js"),I=i("./node_modules/core-js/internals/indexed-object.js"),U=Object.assign,W=Object.defineProperty;v.exports=!U||B(function(){if(L&&U({b:1},U(W({},"a",{enumerable:!0,get:function(){W(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var re={},k={},H=Symbol(),de="abcdefghijklmnopqrst";return re[H]=7,de.split("").forEach(function(ce){k[ce]=ce}),U({},re)[H]!=7||D(U({},k)).join("")!=de})?function(k,H){for(var de=E(k),ce=arguments.length,Fe=1,ve=O.f,pe=T.f;ce>Fe;)for(var Ce=I(arguments[Fe++]),G=ve?D(Ce).concat(ve(Ce)):D(Ce),ge=G.length,g=0,j;ge>g;)j=G[g++],(!L||pe.call(Ce,j))&&(de[j]=Ce[j]);return de}:U},"./node_modules/core-js/internals/object-create.js":function(v,N,i){var L=i("./node_modules/core-js/internals/an-object.js"),B=i("./node_modules/core-js/internals/object-define-properties.js"),D=i("./node_modules/core-js/internals/enum-bug-keys.js"),O=i("./node_modules/core-js/internals/hidden-keys.js"),T=i("./node_modules/core-js/internals/html.js"),E=i("./node_modules/core-js/internals/document-create-element.js"),I=i("./node_modules/core-js/internals/shared-key.js"),U=">",W="<",re="prototype",k="script",H=I("IE_PROTO"),de=function(){},ce=function(G){return W+k+U+G+W+"/"+k+U},Fe=function(G){G.write(ce("")),G.close();var ge=G.parentWindow.Object;return G=null,ge},ve=function(){var G=E("iframe"),ge="java"+k+":",g;if(G.style)return G.style.display="none",T.appendChild(G),G.src=String(ge),g=G.contentWindow.document,g.open(),g.write(ce("document.F=Object")),g.close(),g.F},pe,Ce=function(){try{pe=new ActiveXObject("htmlfile")}catch(ge){}Ce=document.domain&&pe?Fe(pe):ve()||Fe(pe);for(var G=D.length;G--;)delete Ce[re][D[G]];return Ce()};O[H]=!0,v.exports=Object.create||function(ge,g){var j;return ge!==null?(de[re]=L(ge),j=new de,de[re]=null,j[H]=ge):j=Ce(),g===void 0?j:B(j,g)}},"./node_modules/core-js/internals/object-define-properties.js":function(v,N,i){var L=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/object-define-property.js"),D=i("./node_modules/core-js/internals/an-object.js"),O=i("./node_modules/core-js/internals/object-keys.js");v.exports=L?Object.defineProperties:function(E,I){D(E);for(var U=O(I),W=U.length,re=0,k;W>re;)B.f(E,k=U[re++],I[k]);return E}},"./node_modules/core-js/internals/object-define-property.js":function(v,N,i){var L=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/ie8-dom-define.js"),D=i("./node_modules/core-js/internals/an-object.js"),O=i("./node_modules/core-js/internals/to-property-key.js"),T=Object.defineProperty;N.f=L?T:function(I,U,W){if(D(I),U=O(U),D(W),B)try{return T(I,U,W)}catch(re){}if("get"in W||"set"in W)throw TypeError("Accessors not supported");return"value"in W&&(I[U]=W.value),I}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(v,N,i){var L=i("./node_modules/core-js/internals/descriptors.js"),B=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),D=i("./node_modules/core-js/internals/create-property-descriptor.js"),O=i("./node_modules/core-js/internals/to-indexed-object.js"),T=i("./node_modules/core-js/internals/to-property-key.js"),E=i("./node_modules/core-js/internals/has.js"),I=i("./node_modules/core-js/internals/ie8-dom-define.js"),U=Object.getOwnPropertyDescriptor;N.f=L?U:function(re,k){if(re=O(re),k=T(k),I)try{return U(re,k)}catch(H){}if(E(re,k))return D(!B.f.call(re,k),re[k])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-indexed-object.js"),B=i("./node_modules/core-js/internals/object-get-own-property-names.js").f,D={}.toString,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(E){try{return B(E)}catch(I){return O.slice()}};v.exports.f=function(I){return O&&D.call(I)=="[object Window]"?T(I):B(L(I))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(v,N,i){var L=i("./node_modules/core-js/internals/object-keys-internal.js"),B=i("./node_modules/core-js/internals/enum-bug-keys.js"),D=B.concat("length","prototype");N.f=Object.getOwnPropertyNames||function(T){return L(T,D)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(v,N){N.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(v,N,i){var L=i("./node_modules/core-js/internals/has.js"),B=i("./node_modules/core-js/internals/to-object.js"),D=i("./node_modules/core-js/internals/shared-key.js"),O=i("./node_modules/core-js/internals/correct-prototype-getter.js"),T=D("IE_PROTO"),E=Object.prototype;v.exports=O?Object.getPrototypeOf:function(I){return I=B(I),L(I,T)?I[T]:typeof I.constructor=="function"&&I instanceof I.constructor?I.constructor.prototype:I instanceof Object?E:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(v,N,i){var L=i("./node_modules/core-js/internals/has.js"),B=i("./node_modules/core-js/internals/to-indexed-object.js"),D=i("./node_modules/core-js/internals/array-includes.js").indexOf,O=i("./node_modules/core-js/internals/hidden-keys.js");v.exports=function(T,E){var I=B(T),U=0,W=[],re;for(re in I)!L(O,re)&&L(I,re)&&W.push(re);for(;E.length>U;)L(I,re=E[U++])&&(~D(W,re)||W.push(re));return W}},"./node_modules/core-js/internals/object-keys.js":function(v,N,i){var L=i("./node_modules/core-js/internals/object-keys-internal.js"),B=i("./node_modules/core-js/internals/enum-bug-keys.js");v.exports=Object.keys||function(O){return L(O,B)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(v,N){"use strict";var i={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,B=L&&!i.call({1:2},1);N.f=B?function(O){var T=L(this,O);return!!T&&T.enumerable}:i},"./node_modules/core-js/internals/object-set-prototype-of.js":function(v,N,i){var L=i("./node_modules/core-js/internals/an-object.js"),B=i("./node_modules/core-js/internals/a-possible-prototype.js");v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var D=!1,O={},T;try{T=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,T.call(O,[]),D=O instanceof Array}catch(E){}return function(I,U){return L(I),B(U),D?T.call(I,U):I.__proto__=U,I}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/to-string-tag-support.js"),B=i("./node_modules/core-js/internals/classof.js");v.exports=L?{}.toString:function(){return"[object "+B(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(v,N,i){var L=i("./node_modules/core-js/internals/is-object.js");v.exports=function(B,D){var O,T;if(D==="string"&&typeof(O=B.toString)=="function"&&!L(T=O.call(B))||typeof(O=B.valueOf)=="function"&&!L(T=O.call(B))||D!=="string"&&typeof(O=B.toString)=="function"&&!L(T=O.call(B)))return T;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(v,N,i){var L=i("./node_modules/core-js/internals/get-built-in.js"),B=i("./node_modules/core-js/internals/object-get-own-property-names.js"),D=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),O=i("./node_modules/core-js/internals/an-object.js");v.exports=L("Reflect","ownKeys")||function(E){var I=B.f(O(E)),U=D.f;return U?I.concat(U(E)):I}},"./node_modules/core-js/internals/path.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js");v.exports=L},"./node_modules/core-js/internals/redefine.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),D=i("./node_modules/core-js/internals/has.js"),O=i("./node_modules/core-js/internals/set-global.js"),T=i("./node_modules/core-js/internals/inspect-source.js"),E=i("./node_modules/core-js/internals/internal-state.js"),I=E.get,U=E.enforce,W=String(String).split("String");(v.exports=function(re,k,H,de){var ce=de?!!de.unsafe:!1,Fe=de?!!de.enumerable:!1,ve=de?!!de.noTargetGet:!1,pe;if(typeof H=="function"&&(typeof k=="string"&&!D(H,"name")&&B(H,"name",k),pe=U(H),pe.source||(pe.source=W.join(typeof k=="string"?k:""))),re===L){Fe?re[k]=H:O(k,H);return}else ce?!ve&&re[k]&&(Fe=!0):delete re[k];Fe?re[k]=H:B(re,k,H)})(Function.prototype,"toString",function(){return typeof this=="function"&&I(this).source||T(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/an-object.js");v.exports=function(){var B=L(this),D="";return B.global&&(D+="g"),B.ignoreCase&&(D+="i"),B.multiline&&(D+="m"),B.dotAll&&(D+="s"),B.unicode&&(D+="u"),B.sticky&&(D+="y"),D}},"./node_modules/core-js/internals/require-object-coercible.js":function(v){v.exports=function(N){if(N==null)throw TypeError("Can't call method on "+N);return N}},"./node_modules/core-js/internals/set-global.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js");v.exports=function(B,D){try{Object.defineProperty(L,B,{value:D,configurable:!0,writable:!0})}catch(O){L[B]=D}return D}},"./node_modules/core-js/internals/set-to-string-tag.js":function(v,N,i){var L=i("./node_modules/core-js/internals/object-define-property.js").f,B=i("./node_modules/core-js/internals/has.js"),D=i("./node_modules/core-js/internals/well-known-symbol.js"),O=D("toStringTag");v.exports=function(T,E,I){T&&!B(T=I?T:T.prototype,O)&&L(T,O,{configurable:!0,value:E})}},"./node_modules/core-js/internals/shared-key.js":function(v,N,i){var L=i("./node_modules/core-js/internals/shared.js"),B=i("./node_modules/core-js/internals/uid.js"),D=L("keys");v.exports=function(O){return D[O]||(D[O]=B(O))}},"./node_modules/core-js/internals/shared-store.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/set-global.js"),D="__core-js_shared__",O=L[D]||B(D,{});v.exports=O},"./node_modules/core-js/internals/shared.js":function(v,N,i){var L=i("./node_modules/core-js/internals/is-pure.js"),B=i("./node_modules/core-js/internals/shared-store.js");(v.exports=function(D,O){return B[D]||(B[D]=O!==void 0?O:{})})("versions",[]).push({version:"3.16.0",mode:L?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(v,N,i){var L=i("./node_modules/core-js/internals/fails.js");v.exports=function(B){return L(function(){var D=""[B]('"');return D!==D.toLowerCase()||D.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-integer.js"),B=i("./node_modules/core-js/internals/to-string.js"),D=i("./node_modules/core-js/internals/require-object-coercible.js"),O=function(T){return function(E,I){var U=B(D(E)),W=L(I),re=U.length,k,H;return W<0||W>=re?T?"":void 0:(k=U.charCodeAt(W),k<55296||k>56319||W+1===re||(H=U.charCodeAt(W+1))<56320||H>57343?T?U.charAt(W):k:T?U.slice(W,W+2):(k-55296<<10)+(H-56320)+65536)}};v.exports={codeAt:O(!1),charAt:O(!0)}},"./node_modules/core-js/internals/string-trim.js":function(v,N,i){var L=i("./node_modules/core-js/internals/require-object-coercible.js"),B=i("./node_modules/core-js/internals/to-string.js"),D=i("./node_modules/core-js/internals/whitespaces.js"),O="["+D+"]",T=RegExp("^"+O+O+"*"),E=RegExp(O+O+"*$"),I=function(U){return function(W){var re=B(L(W));return U&1&&(re=re.replace(T,"")),U&2&&(re=re.replace(E,"")),re}};v.exports={start:I(1),end:I(2),trim:I(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-integer.js"),B=Math.max,D=Math.min;v.exports=function(O,T){var E=L(O);return E<0?B(E+T,0):D(E,T)}},"./node_modules/core-js/internals/to-indexed-object.js":function(v,N,i){var L=i("./node_modules/core-js/internals/indexed-object.js"),B=i("./node_modules/core-js/internals/require-object-coercible.js");v.exports=function(D){return L(B(D))}},"./node_modules/core-js/internals/to-integer.js":function(v){var N=Math.ceil,i=Math.floor;v.exports=function(L){return isNaN(L=+L)?0:(L>0?i:N)(L)}},"./node_modules/core-js/internals/to-length.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-integer.js"),B=Math.min;v.exports=function(D){return D>0?B(L(D),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(v,N,i){var L=i("./node_modules/core-js/internals/require-object-coercible.js");v.exports=function(B){return Object(L(B))}},"./node_modules/core-js/internals/to-primitive.js":function(v,N,i){var L=i("./node_modules/core-js/internals/is-object.js"),B=i("./node_modules/core-js/internals/is-symbol.js"),D=i("./node_modules/core-js/internals/ordinary-to-primitive.js"),O=i("./node_modules/core-js/internals/well-known-symbol.js"),T=O("toPrimitive");v.exports=function(E,I){if(!L(E)||B(E))return E;var U=E[T],W;if(U!==void 0){if(I===void 0&&(I="default"),W=U.call(E,I),!L(W)||B(W))return W;throw TypeError("Can't convert object to primitive value")}return I===void 0&&(I="number"),D(E,I)}},"./node_modules/core-js/internals/to-property-key.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-primitive.js"),B=i("./node_modules/core-js/internals/is-symbol.js");v.exports=function(D){var O=L(D,"string");return B(O)?O:String(O)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(v,N,i){var L=i("./node_modules/core-js/internals/well-known-symbol.js"),B=L("toStringTag"),D={};D[B]="z",v.exports=String(D)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(v,N,i){var L=i("./node_modules/core-js/internals/is-symbol.js");v.exports=function(B){if(L(B))throw TypeError("Cannot convert a Symbol value to a string");return String(B)}},"./node_modules/core-js/internals/uid.js":function(v){var N=0,i=Math.random();v.exports=function(L){return"Symbol("+String(L===void 0?"":L)+")_"+(++N+i).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(v,N,i){var L=i("./node_modules/core-js/internals/native-symbol.js");v.exports=L&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(v,N,i){var L=i("./node_modules/core-js/internals/well-known-symbol.js");N.f=L},"./node_modules/core-js/internals/well-known-symbol.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/shared.js"),D=i("./node_modules/core-js/internals/has.js"),O=i("./node_modules/core-js/internals/uid.js"),T=i("./node_modules/core-js/internals/native-symbol.js"),E=i("./node_modules/core-js/internals/use-symbol-as-uid.js"),I=B("wks"),U=L.Symbol,W=E?U:U&&U.withoutSetter||O;v.exports=function(re){return(!D(I,re)||!(T||typeof I[re]=="string"))&&(T&&D(U,re)?I[re]=U[re]:I[re]=W("Symbol."+re)),I[re]}},"./node_modules/core-js/internals/whitespaces.js":function(v){v.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/fails.js"),D=i("./node_modules/core-js/internals/is-array.js"),O=i("./node_modules/core-js/internals/is-object.js"),T=i("./node_modules/core-js/internals/to-object.js"),E=i("./node_modules/core-js/internals/to-length.js"),I=i("./node_modules/core-js/internals/create-property.js"),U=i("./node_modules/core-js/internals/array-species-create.js"),W=i("./node_modules/core-js/internals/array-method-has-species-support.js"),re=i("./node_modules/core-js/internals/well-known-symbol.js"),k=i("./node_modules/core-js/internals/engine-v8-version.js"),H=re("isConcatSpreadable"),de=9007199254740991,ce="Maximum allowed index exceeded",Fe=k>=51||!B(function(){var G=[];return G[H]=!1,G.concat()[0]!==G}),ve=W("concat"),pe=function(G){if(!O(G))return!1;var ge=G[H];return ge!==void 0?!!ge:D(G)},Ce=!Fe||!ve;L({target:"Array",proto:!0,forced:Ce},{concat:function(ge){var g=T(this),j=U(g,0),Ye=0,oe,he,be,me,ae;for(oe=-1,be=arguments.length;oede)throw TypeError(ce);for(he=0;he=de)throw TypeError(ce);I(j,Ye++,ae)}return j.length=Ye,j}})},"./node_modules/core-js/modules/es.array.iterator.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/to-indexed-object.js"),B=i("./node_modules/core-js/internals/add-to-unscopables.js"),D=i("./node_modules/core-js/internals/iterators.js"),O=i("./node_modules/core-js/internals/internal-state.js"),T=i("./node_modules/core-js/internals/define-iterator.js"),E="Array Iterator",I=O.set,U=O.getterFor(E);v.exports=T(Array,"Array",function(W,re){I(this,{type:E,target:L(W),index:0,kind:re})},function(){var W=U(this),re=W.target,k=W.kind,H=W.index++;return!re||H>=re.length?(W.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:H,done:!1}:k=="values"?{value:re[H],done:!1}:{value:[H,re[H]],done:!1}},"values"),D.Arguments=D.Array,B("keys"),B("values"),B("entries")},"./node_modules/core-js/modules/es.array.join.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/indexed-object.js"),D=i("./node_modules/core-js/internals/to-indexed-object.js"),O=i("./node_modules/core-js/internals/array-method-is-strict.js"),T=[].join,E=B!=Object,I=O("join",",");L({target:"Array",proto:!0,forced:E||!I},{join:function(W){return T.call(D(this),W===void 0?",":W)}})},"./node_modules/core-js/modules/es.array.map.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/array-iteration.js").map,D=i("./node_modules/core-js/internals/array-method-has-species-support.js"),O=D("map");L({target:"Array",proto:!0,forced:!O},{map:function(E){return B(this,E,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/is-object.js"),D=i("./node_modules/core-js/internals/is-array.js"),O=i("./node_modules/core-js/internals/to-absolute-index.js"),T=i("./node_modules/core-js/internals/to-length.js"),E=i("./node_modules/core-js/internals/to-indexed-object.js"),I=i("./node_modules/core-js/internals/create-property.js"),U=i("./node_modules/core-js/internals/well-known-symbol.js"),W=i("./node_modules/core-js/internals/array-method-has-species-support.js"),re=W("slice"),k=U("species"),H=[].slice,de=Math.max;L({target:"Array",proto:!0,forced:!re},{slice:function(Fe,ve){var pe=E(this),Ce=T(pe.length),G=O(Fe,Ce),ge=O(ve===void 0?Ce:ve,Ce),g,j,Ye;if(D(pe)&&(g=pe.constructor,typeof g=="function"&&(g===Array||D(g.prototype))?g=void 0:B(g)&&(g=g[k],g===null&&(g=void 0)),g===Array||g===void 0))return H.call(pe,G,ge);for(j=new(g===void 0?Array:g)(de(ge-G,0)),Ye=0;G2){if(be=Fe(be),me=be.charCodeAt(0),me===43||me===45){if(ae=be.charCodeAt(2),ae===88||ae===120)return NaN}else if(me===48){switch(be.charCodeAt(1)){case 66:case 98:se=2,Je=49;break;case 79:case 111:se=8,Je=55;break;default:return+be}for(mt=be.slice(2),Me=mt.length,Nt=0;NtJe)return NaN;return parseInt(mt,se)}}return+be};if(D(ve,!pe(" 0o1")||!pe("0b1")||pe("+0x1"))){for(var g=function(be){var me=arguments.length<1?0:be,ae=this;return ae instanceof g&&(G?re(function(){Ce.valueOf.call(ae)}):E(ae)!=ve)?I(new pe(ge(me)),ae,g):ge(me)},j=L?H(pe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Ye=0,oe;j.length>Ye;Ye++)T(pe,oe=j[Ye])&&!T(g,oe)&&ce(g,oe,de(pe,oe));g.prototype=Ce,Ce.constructor=g,O(B,ve,g)}},"./node_modules/core-js/modules/es.object.assign.js":function(v,N,i){var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/object-assign.js");L({target:"Object",stat:!0,forced:Object.assign!==B},{assign:B})},"./node_modules/core-js/modules/es.object.keys.js":function(v,N,i){var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/to-object.js"),D=i("./node_modules/core-js/internals/object-keys.js"),O=i("./node_modules/core-js/internals/fails.js"),T=O(function(){D(1)});L({target:"Object",stat:!0,forced:T},{keys:function(I){return D(B(I))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(v,N,i){var L=i("./node_modules/core-js/internals/to-string-tag-support.js"),B=i("./node_modules/core-js/internals/redefine.js"),D=i("./node_modules/core-js/internals/object-to-string.js");L||B(Object.prototype,"toString",D,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/redefine.js"),B=i("./node_modules/core-js/internals/an-object.js"),D=i("./node_modules/core-js/internals/to-string.js"),O=i("./node_modules/core-js/internals/fails.js"),T=i("./node_modules/core-js/internals/regexp-flags.js"),E="toString",I=RegExp.prototype,U=I[E],W=O(function(){return U.call({source:"a",flags:"b"})!="/a/b"}),re=U.name!=E;(W||re)&&L(RegExp.prototype,E,function(){var H=B(this),de=D(H.source),ce=H.flags,Fe=D(ce===void 0&&H instanceof RegExp&&!("flags"in I)?T.call(H):ce);return"/"+de+"/"+Fe},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/string-multibyte.js").charAt,B=i("./node_modules/core-js/internals/to-string.js"),D=i("./node_modules/core-js/internals/internal-state.js"),O=i("./node_modules/core-js/internals/define-iterator.js"),T="String Iterator",E=D.set,I=D.getterFor(T);O(String,"String",function(U){E(this,{type:T,string:B(U),index:0})},function(){var W=I(this),re=W.string,k=W.index,H;return k>=re.length?{value:void 0,done:!0}:(H=L(re,k),W.index+=H.length,{value:H,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/create-html.js"),D=i("./node_modules/core-js/internals/string-html-forced.js");L({target:"String",proto:!0,forced:D("link")},{link:function(T){return B(this,"a","href",T)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/descriptors.js"),D=i("./node_modules/core-js/internals/global.js"),O=i("./node_modules/core-js/internals/has.js"),T=i("./node_modules/core-js/internals/is-object.js"),E=i("./node_modules/core-js/internals/object-define-property.js").f,I=i("./node_modules/core-js/internals/copy-constructor-properties.js"),U=D.Symbol;if(B&&typeof U=="function"&&(!("description"in U.prototype)||U().description!==void 0)){var W={},re=function(){var ve=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),pe=this instanceof re?new U(ve):ve===void 0?U():U(ve);return ve===""&&(W[pe]=!0),pe};I(re,U);var k=re.prototype=U.prototype;k.constructor=re;var H=k.toString,de=String(U("test"))=="Symbol(test)",ce=/^Symbol\((.*)\)[^)]+$/;E(k,"description",{configurable:!0,get:function(){var ve=T(this)?this.valueOf():this,pe=H.call(ve);if(O(W,ve))return"";var Ce=de?pe.slice(7,-1):pe.replace(ce,"$1");return Ce===""?void 0:Ce}}),L({global:!0,forced:!0},{Symbol:re})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(v,N,i){var L=i("./node_modules/core-js/internals/define-well-known-symbol.js");L("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(v,N,i){"use strict";var L=i("./node_modules/core-js/internals/export.js"),B=i("./node_modules/core-js/internals/global.js"),D=i("./node_modules/core-js/internals/get-built-in.js"),O=i("./node_modules/core-js/internals/is-pure.js"),T=i("./node_modules/core-js/internals/descriptors.js"),E=i("./node_modules/core-js/internals/native-symbol.js"),I=i("./node_modules/core-js/internals/fails.js"),U=i("./node_modules/core-js/internals/has.js"),W=i("./node_modules/core-js/internals/is-array.js"),re=i("./node_modules/core-js/internals/is-object.js"),k=i("./node_modules/core-js/internals/is-symbol.js"),H=i("./node_modules/core-js/internals/an-object.js"),de=i("./node_modules/core-js/internals/to-object.js"),ce=i("./node_modules/core-js/internals/to-indexed-object.js"),Fe=i("./node_modules/core-js/internals/to-property-key.js"),ve=i("./node_modules/core-js/internals/to-string.js"),pe=i("./node_modules/core-js/internals/create-property-descriptor.js"),Ce=i("./node_modules/core-js/internals/object-create.js"),G=i("./node_modules/core-js/internals/object-keys.js"),ge=i("./node_modules/core-js/internals/object-get-own-property-names.js"),g=i("./node_modules/core-js/internals/object-get-own-property-names-external.js"),j=i("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ye=i("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),oe=i("./node_modules/core-js/internals/object-define-property.js"),he=i("./node_modules/core-js/internals/object-property-is-enumerable.js"),be=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),me=i("./node_modules/core-js/internals/redefine.js"),ae=i("./node_modules/core-js/internals/shared.js"),se=i("./node_modules/core-js/internals/shared-key.js"),Je=i("./node_modules/core-js/internals/hidden-keys.js"),mt=i("./node_modules/core-js/internals/uid.js"),Me=i("./node_modules/core-js/internals/well-known-symbol.js"),Nt=i("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),yt=i("./node_modules/core-js/internals/define-well-known-symbol.js"),zt=i("./node_modules/core-js/internals/set-to-string-tag.js"),je=i("./node_modules/core-js/internals/internal-state.js"),It=i("./node_modules/core-js/internals/array-iteration.js").forEach,Ze=se("hidden"),Pt="Symbol",ct="prototype",x=Me("toPrimitive"),Ke=je.set,P=je.getterFor(Pt),A=Object[ct],h=B.Symbol,C=D("JSON","stringify"),b=Ye.f,K=oe.f,ee=g.f,Ee=he.f,le=ae("symbols"),ue=ae("op-symbols"),Qe=ae("string-to-symbol-registry"),ke=ae("symbol-to-string-registry"),ie=ae("wks"),X=B.QObject,tt=!X||!X[ct]||!X[ct].findChild,Te=T&&I(function(){return Ce(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a!=7})?function(Ae,Oe,We){var vt=b(A,Oe);vt&&delete A[Oe],K(Ae,Oe,We),vt&&Ae!==A&&K(A,Oe,vt)}:K,Et=function(Ae,Oe){var We=le[Ae]=Ce(h[ct]);return Ke(We,{type:Pt,tag:Ae,description:Oe}),T||(We.description=Oe),We},at=function(Oe,We,vt){Oe===A&&at(ue,We,vt),H(Oe);var Rt=Fe(We);return H(vt),U(le,Rt)?(vt.enumerable?(U(Oe,Ze)&&Oe[Ze][Rt]&&(Oe[Ze][Rt]=!1),vt=Ce(vt,{enumerable:pe(0,!1)})):(U(Oe,Ze)||K(Oe,Ze,pe(1,{})),Oe[Ze][Rt]=!0),Te(Oe,Rt,vt)):K(Oe,Rt,vt)},Ge=function(Oe,We){H(Oe);var vt=ce(We),Rt=G(vt).concat(ut(vt));return It(Rt,function(en){(!T||St.call(vt,en))&&at(Oe,en,vt[en])}),Oe},Ut=function(Oe,We){return We===void 0?Ce(Oe):Ge(Ce(Oe),We)},St=function(Oe){var We=Fe(Oe),vt=Ee.call(this,We);return this===A&&U(le,We)&&!U(ue,We)?!1:vt||!U(this,We)||!U(le,We)||U(this,Ze)&&this[Ze][We]?vt:!0},Ie=function(Oe,We){var vt=ce(Oe),Rt=Fe(We);if(!(vt===A&&U(le,Rt)&&!U(ue,Rt))){var en=b(vt,Rt);return en&&U(le,Rt)&&!(U(vt,Ze)&&vt[Ze][Rt])&&(en.enumerable=!0),en}},$e=function(Oe){var We=ee(ce(Oe)),vt=[];return It(We,function(Rt){!U(le,Rt)&&!U(Je,Rt)&&vt.push(Rt)}),vt},ut=function(Oe){var We=Oe===A,vt=ee(We?ue:ce(Oe)),Rt=[];return It(vt,function(en){U(le,en)&&(!We||U(A,en))&&Rt.push(le[en])}),Rt};if(E||(h=function(){if(this instanceof h)throw TypeError("Symbol is not a constructor");var Oe=!arguments.length||arguments[0]===void 0?void 0:ve(arguments[0]),We=mt(Oe),vt=function(Rt){this===A&&vt.call(ue,Rt),U(this,Ze)&&U(this[Ze],We)&&(this[Ze][We]=!1),Te(this,We,pe(1,Rt))};return T&&tt&&Te(A,We,{configurable:!0,set:vt}),Et(We,Oe)},me(h[ct],"toString",function(){return P(this).tag}),me(h,"withoutSetter",function(Ae){return Et(mt(Ae),Ae)}),he.f=St,oe.f=at,Ye.f=Ie,ge.f=g.f=$e,j.f=ut,Nt.f=function(Ae){return Et(Me(Ae),Ae)},T&&(K(h[ct],"description",{configurable:!0,get:function(){return P(this).description}}),O||me(A,"propertyIsEnumerable",St,{unsafe:!0}))),L({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:h}),It(G(ie),function(Ae){yt(Ae)}),L({target:Pt,stat:!0,forced:!E},{for:function(Ae){var Oe=ve(Ae);if(U(Qe,Oe))return Qe[Oe];var We=h(Oe);return Qe[Oe]=We,ke[We]=Oe,We},keyFor:function(Oe){if(!k(Oe))throw TypeError(Oe+" is not a symbol");if(U(ke,Oe))return ke[Oe]},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),L({target:"Object",stat:!0,forced:!E,sham:!T},{create:Ut,defineProperty:at,defineProperties:Ge,getOwnPropertyDescriptor:Ie}),L({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:$e,getOwnPropertySymbols:ut}),L({target:"Object",stat:!0,forced:I(function(){j.f(1)})},{getOwnPropertySymbols:function(Oe){return j.f(de(Oe))}}),C){var Qt=!E||I(function(){var Ae=h();return C([Ae])!="[null]"||C({a:Ae})!="{}"||C(Object(Ae))!="{}"});L({target:"JSON",stat:!0,forced:Qt},{stringify:function(Oe,We,vt){for(var Rt=[Oe],en=1,En;arguments.length>en;)Rt.push(arguments[en++]);if(En=We,!(!re(We)&&Oe===void 0||k(Oe)))return W(We)||(We=function(xn,ln){if(typeof En=="function"&&(ln=En.call(this,xn,ln)),!k(ln))return ln}),Rt[1]=We,C.apply(null,Rt)}})}h[ct][x]||be(h[ct],x,h[ct].valueOf),zt(h,Pt),Je[Ze]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/dom-iterables.js"),D=i("./node_modules/core-js/internals/array-for-each.js"),O=i("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var T in B){var E=L[T],I=E&&E.prototype;if(I&&I.forEach!==D)try{O(I,"forEach",D)}catch(U){I.forEach=D}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(v,N,i){var L=i("./node_modules/core-js/internals/global.js"),B=i("./node_modules/core-js/internals/dom-iterables.js"),D=i("./node_modules/core-js/modules/es.array.iterator.js"),O=i("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=i("./node_modules/core-js/internals/well-known-symbol.js"),E=T("iterator"),I=T("toStringTag"),U=D.values;for(var W in B){var re=L[W],k=re&&re.prototype;if(k){if(k[E]!==U)try{O(k,E,U)}catch(de){k[E]=U}if(k[I]||O(k,I,W),B[W]){for(var H in D)if(k[H]!==D[H])try{O(k,H,D[H])}catch(de){k[H]=D[H]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(v){(function(N,i){v.exports=i()})(this,function(){"use strict";function N(X){var tt=typeof X;return X!==null&&(tt==="object"||tt==="function")}function i(X){return typeof X=="function"}var L=void 0;Array.isArray?L=Array.isArray:L=function(X){return Object.prototype.toString.call(X)==="[object Array]"};var B=L,D=0,O=void 0,T=void 0,E=function(tt,Te){G[D]=tt,G[D+1]=Te,D+=2,D===2&&(T?T(ge):j())};function I(X){T=X}function U(X){E=X}var W=typeof window!="undefined"?window:void 0,re=W||{},k=re.MutationObserver||re.WebKitMutationObserver,H=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",de=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ce(){return function(){return s.nextTick(ge)}}function Fe(){return typeof O!="undefined"?function(){O(ge)}:Ce()}function ve(){var X=0,tt=new k(ge),Te=document.createTextNode("");return tt.observe(Te,{characterData:!0}),function(){Te.data=X=++X%2}}function pe(){var X=new MessageChannel;return X.port1.onmessage=ge,function(){return X.port2.postMessage(0)}}function Ce(){var X=setTimeout;return function(){return X(ge,1)}}var G=new Array(1e3);function ge(){for(var X=0;X>1,i=-7,L=Se?we-1:0,B=Se?-1:1,D=p[s+L];for(L+=B,te=D&(1<<-i)-1,D>>=-i,i+=Z;i>0;te=te*256+p[s+L],L+=B,i-=8);for($=te&(1<<-i)-1,te>>=-i,i+=M;i>0;$=$*256+p[s+L],L+=B,i-=8);if(te===0)te=1-N;else{if(te===v)return $?NaN:(D?-1:1)*(1/0);$=$+Math.pow(2,M),te=te-N}return(D?-1:1)*$*Math.pow(2,te-M)},Zt.write=function(p,s,Se,M,we,te){var $,Z,v,N=te*8-we-1,i=(1<>1,B=we===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=M?0:te-1,O=M?1:-1,T=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(Z=isNaN(s)?1:0,$=i):($=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-$))<1&&($--,v*=2),$+L>=1?s+=B/v:s+=B*Math.pow(2,1-L),s*v>=2&&($++,v/=2),$+L>=i?(Z=0,$=i):$+L>=1?(Z=(s*v-1)*Math.pow(2,we),$=$+L):(Z=s*Math.pow(2,L-1)*Math.pow(2,we),$=0));we>=8;p[Se+D]=Z&255,D+=O,Z/=256,we-=8);for($=$<0;p[Se+D]=$&255,D+=O,$/=256,N-=8);p[Se+D-O]|=T*128}},24334:function(nr,Zt,p){var s,Se;(function(M,we){nr.exports=we(M)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof p.g!="undefined"?p.g:this,function(M){"use strict";M=M||{};var we=M.Base64,te="2.6.4",$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=function(g){for(var j={},Ye=0,oe=g.length;Ye>>6)+v(128|j&63):v(224|j>>>12&15)+v(128|j>>>6&63)+v(128|j&63)}else{var j=65536+(g.charCodeAt(0)-55296)*1024+(g.charCodeAt(1)-56320);return v(240|j>>>18&7)+v(128|j>>>12&63)+v(128|j>>>6&63)+v(128|j&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,L=function(g){return g.replace(i,N)},B=function(g){var j=[0,2,1][g.length%3],Ye=g.charCodeAt(0)<<16|(g.length>1?g.charCodeAt(1):0)<<8|(g.length>2?g.charCodeAt(2):0),oe=[$.charAt(Ye>>>18),$.charAt(Ye>>>12&63),j>=2?"=":$.charAt(Ye>>>6&63),j>=1?"=":$.charAt(Ye&63)];return oe.join("")},D=M.btoa&&typeof M.btoa=="function"?function(g){return M.btoa(g)}:function(g){if(g.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return g.replace(/[\s\S]{1,3}/g,B)},O=function(g){return D(L(String(g)))},T=function(g){return g.replace(/[+\/]/g,function(j){return j=="+"?"-":"_"}).replace(/=/g,"")},E=function(g,j){return j?T(O(g)):O(g)},I=function(g){return E(g,!0)},U;M.Uint8Array&&(U=function(g,j){for(var Ye="",oe=0,he=g.length;oe>>18)+$.charAt(se>>>12&63)+(typeof me!="undefined"?$.charAt(se>>>6&63):"=")+(typeof ae!="undefined"?$.charAt(se&63):"=")}return j?T(Ye):Ye});var W=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,re=function(g){switch(g.length){case 4:var j=(7&g.charCodeAt(0))<<18|(63&g.charCodeAt(1))<<12|(63&g.charCodeAt(2))<<6|63&g.charCodeAt(3),Ye=j-65536;return v((Ye>>>10)+55296)+v((Ye&1023)+56320);case 3:return v((15&g.charCodeAt(0))<<12|(63&g.charCodeAt(1))<<6|63&g.charCodeAt(2));default:return v((31&g.charCodeAt(0))<<6|63&g.charCodeAt(1))}},k=function(g){return g.replace(W,re)},H=function(g){var j=g.length,Ye=j%4,oe=(j>0?Z[g.charAt(0)]<<18:0)|(j>1?Z[g.charAt(1)]<<12:0)|(j>2?Z[g.charAt(2)]<<6:0)|(j>3?Z[g.charAt(3)]:0),he=[v(oe>>>16),v(oe>>>8&255),v(oe&255)];return he.length-=[0,0,2,1][Ye],he.join("")},de=M.atob&&typeof M.atob=="function"?function(g){return M.atob(g)}:function(g){return g.replace(/\S{1,4}/g,H)},ce=function(g){return de(String(g).replace(/[^A-Za-z0-9\+\/]/g,""))},Fe=function(g){return k(de(g))},ve=function(g){return String(g).replace(/[-_]/g,function(j){return j=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},pe=function(g){return Fe(ve(g))},Ce;M.Uint8Array&&(Ce=function(g){return Uint8Array.from(ce(ve(g)),function(j){return j.charCodeAt(0)})});var G=function(){var g=M.Base64;return M.Base64=we,g};if(M.Base64={VERSION:te,atob:ce,btoa:D,fromBase64:pe,toBase64:E,utob:L,encode:E,encodeURI:I,btou:k,decode:pe,noConflict:G,fromUint8Array:U,toUint8Array:Ce},typeof Object.defineProperty=="function"){var ge=function(g){return{value:g,enumerable:!1,writable:!0,configurable:!0}};M.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ge(function(){return pe(this)})),Object.defineProperty(String.prototype,"toBase64",ge(function(g){return E(this,g)})),Object.defineProperty(String.prototype,"toBase64URI",ge(function(){return E(this,!0)}))}}return M.Meteor&&(Base64=M.Base64),nr.exports?nr.exports.Base64=M.Base64:(s=[],Se=function(){return M.Base64}.apply(Zt,s),Se!==void 0&&(nr.exports=Se)),{Base64:M.Base64}})},53307:function(nr,Zt,p){"use strict";p.r(Zt),p.d(Zt,{AcroForm:function(){return il},AcroFormAppearance:function(){return Ur},AcroFormButton:function(){return Mo},AcroFormCheckBox:function(){return Ti},AcroFormChoiceField:function(){return Qr},AcroFormComboBox:function(){return io},AcroFormEditBox:function(){return oo},AcroFormListBox:function(){return ti},AcroFormPasswordField:function(){return Ho},AcroFormPushButton:function(){return si},AcroFormRadioButton:function(){return No},AcroFormTextField:function(){return gi},GState:function(){return ef},ShadingPattern:function(){return Vu},TilingPattern:function(){return Wu},default:function(){return yo},jsPDF:function(){return yo}});var s=p(76190),Se={},M=function(e,n,t,r,o){var l=new Worker(Se[n]||(Se[n]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return l.onmessage=function(w){var y=w.data,S=y.$e$;if(S){var Q=new Error(S[0]);Q.code=S[1],Q.stack=S[2],o(Q,null)}else o(null,y)},l.postMessage(t,r),l},we=Uint8Array,te=Uint16Array,$=Int32Array,Z=new we([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),v=new we([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),N=new we([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i=function(e,n){for(var t=new te(31),r=0;r<31;++r)t[r]=n+=1<>1|(U&21845)<<1;W=(W&52428)>>2|(W&13107)<<2,W=(W&61680)>>4|(W&3855)<<4,I[U]=((W&65280)>>8|(W&255)<<8)>>1}for(var re=function(e,n,t){for(var r=e.length,o=0,l=new te(n);o>S]=Q}else for(y=new te(r),o=0;o>15-e[o]);return y},k=new we(288),U=0;U<144;++U)k[U]=8;for(var U=144;U<256;++U)k[U]=9;for(var U=256;U<280;++U)k[U]=7;for(var U=280;U<288;++U)k[U]=8;for(var H=new we(32),U=0;U<32;++U)H[U]=5;var de=re(k,9,0),ce=null,Fe=re(H,5,0),ve=null,pe=function(e){for(var n=e[0],t=1;tn&&(n=e[t]);return n},Ce=function(e,n,t){var r=n/8|0;return(e[r]|e[r+1]<<8)>>(n&7)&t},G=function(e,n){var t=n/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(n&7)},ge=function(e){return(e+7)/8|0},g=function(e,n,t){return(n==null||n<0)&&(n=0),(t==null||t>e.length)&&(t=e.length),new we(e.subarray(n,t))},j={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Ye=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],oe=function(e,n,t){var r=new Error(n||Ye[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,oe),!t)throw r;return r},he=function(e,n,t,r){var o=e.length,l=r?r.length:0;if(!o||n.f&&!n.l)return t||new we(0);var w=!t,y=w||n.i!=2,S=n.i;w&&(t=new we(o*3));var Q=function(wr){var $r=t.length;if(wr>$r){var Gr=new we(Math.max($r*2,wr));Gr.set(t),t=Gr}},V=n.f||0,fe=n.p||0,Le=n.b||0,z=n.l,ot=n.d,qe=n.m,it=n.n,He=o*8;do{if(!z){V=Ce(e,fe,1);var Mt=Ce(e,fe+1,3);if(fe+=3,Mt)if(Mt==1)z=ce,ot=ve,qe=9,it=5;else if(Mt==2){var Hn=Ce(e,fe,31)+257,Un=Ce(e,fe+10,15)+4,Gt=Hn+Ce(e,fe+5,31)+1;fe+=14;for(var xt=new we(Gt),sn=new we(19),_e=0;_e>4;if(Ot<16)xt[_e++]=Ot;else{var Fn=0,Nn=0;for(Ot==16?(Nn=3+Ce(e,fe,3),fe+=2,Fn=xt[_e-1]):Ot==17?(Nn=3+Ce(e,fe,7),fe+=3):Ot==18&&(Nn=11+Ce(e,fe,127),fe+=7);Nn--;)xt[_e++]=Fn}}var gn=xt.subarray(0,Hn),Tn=xt.subarray(Hn);qe=pe(gn),it=pe(Tn),z=re(gn,qe,1),ot=re(Tn,it,1)}else oe(1);else{var Ot=ge(fe)+4,Ct=e[Ot-4]|e[Ot-3]<<8,vn=Ot+Ct;if(vn>o){S&&oe(0);break}y&&Q(Le+Ct),t.set(e.subarray(Ot,vn),Le),n.b=Le+=Ct,n.p=fe=vn*8,n.f=V;continue}if(fe>He){S&&oe(0);break}}y&&Q(Le+131072);for(var Ir=(1<>4;if(fe+=Fn&15,fe>He){S&&oe(0);break}if(Fn||oe(2),bt<256)t[Le++]=bt;else if(bt==256){Pe=fe,z=null;break}else{var Lt=bt-254;if(bt>264){var _e=bt-257,Ht=Z[_e];Lt=Ce(e,fe,(1<>4;Jt||oe(3),fe+=Jt&15;var Tn=T[fn];if(fn>3){var Ht=v[fn];Tn+=G(e,fe)&(1<He){S&&oe(0);break}y&&Q(Le+131072);var Ln=Le+Lt;if(Le>8},me=function(e,n,t){t<<=n&7;var r=n/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},ae=function(e,n){for(var t=[],r=0;rLe&&(Le=l[r].s);var z=new te(Le+1),ot=se(t[V-1],z,0);if(ot>n){var r=0,qe=0,it=ot-n,He=1<n)qe+=He-(1<>=it;qe>0;){var Ot=l[r].s;z[Ot]=0&&qe;--r){var Ct=l[r].s;z[Ct]==n&&(--z[Ct],++qe)}ot=n}return{t:new we(z),l:ot}},se=function(e,n,t){return e.s==-1?Math.max(se(e.l,n,t+1),se(e.r,n,t+1)):n[e.s]=t},Je=function(e){for(var n=e.length;n&&!e[--n];);for(var t=new te(++n),r=0,o=e[0],l=1,w=function(S){t[r++]=S},y=1;y<=n;++y)if(e[y]==o&&y!=n)++l;else{if(!o&&l>2){for(;l>138;l-=138)w(32754);l>2&&(w(l>10?l-11<<5|28690:l-3<<5|12305),l=0)}else if(l>3){for(w(o),--l;l>6;l-=6)w(8304);l>2&&(w(l-3<<5|8208),l=0)}for(;l--;)w(o);l=1,o=e[y]}return{c:t.subarray(0,r),n}},mt=function(e,n){for(var t=0,r=0;r>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var l=0;l4&&!sn[N[At-1]];--At);var jt=Q+5<<3,Tt=mt(o,k)+mt(l,H)+w,Bn=mt(o,Le)+mt(l,qe)+w+14+3*At+mt(Un,sn)+2*Un[16]+3*Un[17]+7*Un[18];if(S>=0&&jt<=Tt&&jt<=Bn)return Me(n,V,e.subarray(S,S+Q));var Fn,Nn,gn,Tn;if(be(n,V,1+(Bn15&&(be(n,V,bt[Gt]>>5&127),V+=bt[Gt]>>12)}}else Fn=de,Nn=k,gn=Fe,Tn=H;for(var Gt=0;Gt255){var Lt=Ht>>18&31;me(n,V,Fn[Lt+257]),V+=Nn[Lt+257],Lt>7&&(be(n,V,Ht>>23&31),V+=Z[Lt]);var Jt=Ht&31;me(n,V,gn[Jt]),V+=Tn[Jt],Jt>3&&(me(n,V,Ht>>5&8191),V+=v[Jt])}else me(n,V,Fn[Ht]),V+=Nn[Ht]}return me(n,V,Fn[256]),V+Nn[256]},yt=new $([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new we(0),je=function(e,n,t,r,o,l){var w=l.z||e.length,y=new we(r+w+5*(1+Math.ceil(w/7e3))+o),S=y.subarray(r,y.length-o),Q=l.l,V=(l.r||0)&7;if(n){V&&(S[0]=l.r>>3);for(var fe=yt[n-1],Le=fe>>13,z=fe&8191,ot=(1<7e3||sn>24576)&&(Fn>423||!Q)){V=Nt(e,S,0,Ct,vn,Hn,Gt,sn,At,xt-At,V),sn=Un=Gt=0,At=xt;for(var Nn=0;Nn<286;++Nn)vn[Nn]=0;for(var Nn=0;Nn<30;++Nn)Hn[Nn]=0}var gn=2,Tn=0,Ir=z,or=Tt-Bn&32767;if(Fn>2&&jt==Ot(xt-or))for(var Pe=Math.min(Le,Fn)-1,bt=Math.min(32767,xt),Lt=Math.min(258,Fn);or<=bt&&--Ir&&Tt!=Bn;){if(e[xt+gn]==e[xt+gn-or]){for(var Ht=0;Htgn){if(gn=Ht,Tn=or,Ht>Pe)break;for(var Jt=Math.min(or,Ht-2),fn=0,Nn=0;Nnfn&&(fn=$n,Bn=Ln)}}}Tt=Bn,Bn=qe[Tt],or+=Tt-Bn&32767}if(Tn){Ct[sn++]=268435456|D[gn]<<18|E[Tn];var wr=D[gn]&31,$r=E[Tn]&31;Gt+=Z[wr]+v[$r],++vn[257+wr],++Hn[$r],_e=xt+gn,++Un}else Ct[sn++]=e[xt],++vn[e[xt]]}}for(xt=Math.max(xt,_e);xt=w&&(S[V/8|0]=Q,Gr=w),V=Me(S,V+1,e.subarray(xt,Gr))}l.i=w}return g(y,0,r+ge(V)+o)},It=null,Ze=function(){var e=-1;return{p:function(n){for(var t=e,r=0;r>>8;e=t},d:function(){return~e}}},Pt=function(){var e=1,n=0;return{p:function(t){for(var r=e,o=n,l=t.length|0,w=0;w!=l;){for(var y=Math.min(w+2655,l);w>16),o=(o&65535)+15*(o>>16)}e=r,n=o},d:function(){return e%=65521,n%=65521,(e&255)<<24|(e&65280)<<8|(n&255)<<8|n>>8}}},ct=function(e,n,t,r,o){if(!o&&(o={l:1},n.dictionary)){var l=n.dictionary.subarray(-32768),w=new we(l.length+e.length);w.set(l),w.set(e,l.length),e=w,o.w=l.length}return je(e,n.level==null?6:n.level,n.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+n.mem,t,r,o)},x=function(e,n){var t={};for(var r in e)t[r]=e[r];for(var r in n)t[r]=n[r];return t},Ke=function(e,n,t){for(var r=e(),o=e.toString(),l=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),w=0;w>>0},Et=function(e,n){return Te(e,n)+Te(e,n+4)*4294967296},at=function(e,n,t){for(;t;++n)e[n]=t,t>>>=8},Ge=function(e,n){var t=n.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=n.level<2?4:n.level==9?2:0,e[9]=3,n.mtime!=0&&at(e,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),t){e[3]=8;for(var r=0;r<=t.length;++r)e[r+10]=t.charCodeAt(r)}},Ut=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&oe(6,"invalid gzip data");var n=e[3],t=10;n&4&&(t+=(e[10]|e[11]<<8)+2);for(var r=(n>>3&1)+(n>>4&1);r>0;r-=!e[t++]);return t+(n&2)},St=function(e){var n=e.length;return(e[n-4]|e[n-3]<<8|e[n-2]<<16|e[n-1]<<24)>>>0},Ie=function(e){return 10+(e.filename?e.filename.length+1:0)},$e=function(e,n){var t=n.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(n.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,n.dictionary){var o=Pt();o.p(n.dictionary),at(e,2,o.d())}},ut=function(e,n){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&oe(6,"invalid zlib data"),(e[1]>>5&1)==+!n&&oe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Qt(e,n){return typeof e=="function"&&(n=e,e={}),this.ondata=n,e}var Ae=null,Oe=null;function We(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),ke(e,n,[b],function(r){return ue(vt(r.data[0],r.data[1]))},0,t)}function vt(e,n){return ct(e,n||{},0,0)}var Rt=null,en=null;function En(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),ke(e,n,[C],function(r){return ue(xn(r.data[0],Qe(r.data[1])))},1,t)}function xn(e,n){return he(e,{i:2},n&&n.out,n&&n.dictionary)}var ln=null,tn=null;function Yt(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),ke(e,n,[b,K,function(){return[cn]}],function(r){return ue(cn(r.data[0],r.data[1]))},2,t)}function cn(e,n){n||(n={});var t=Ze(),r=e.length;t.p(e);var o=ct(e,n,Ie(n),8),l=o.length;return Ge(o,n),at(o,l-8,t.d()),at(o,l-4,r),o}var yn=null,In=null;function Kn(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),ke(e,n,[C,ee,function(){return[qn]}],function(r){return ue(qn(r.data[0],r.data[1]))},3,t)}function qn(e,n){var t=Ut(e);return t+8>e.length&&oe(6,"invalid gzip data"),he(e.subarray(t,-8),{i:2},n&&n.out||new we(St(e)),n&&n.dictionary)}var er=null,xr=null;function Lr(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),ke(e,n,[b,Ee,function(){return[fr]}],function(r){return ue(fr(r.data[0],r.data[1]))},4,t)}function fr(e,n){n||(n={});var t=Pt();t.p(e);var r=ct(e,n,n.dictionary?6:2,4);return $e(r,n),at(r,r.length-4,t.d()),r}var Jn=null,zr=null;function pr(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),ke(e,n,[C,le,function(){return[ao]}],function(r){return ue(ao(r.data[0],Qe(r.data[1])))},5,t)}function ao(e,n){return he(e.subarray(ut(e,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}var mo=null,Dn=null;function Cn(e,n,t){return t||(t=n,n={}),typeof t!="function"&&oe(7),e[0]==31&&e[1]==139&&e[2]==8?Kn(e,n,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?En(e,n,t):pr(e,n,t)}function br(e,n){return e[0]==31&&e[1]==139&&e[2]==8?qn(e,n):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?xn(e,n):ao(e,n)}var Or=function(e,n,t,r){for(var o in e){var l=e[o],w=n+o,y=r;Array.isArray(l)&&(y=x(r,l[1]),l=l[0]),l instanceof we?t[w]=[l,y]:(t[w+="/"]=[new we(0),y],Or(l,w,t,r))}},wt=typeof TextEncoder!="undefined"&&new TextEncoder,dt=typeof TextDecoder!="undefined"&&new TextDecoder,Sn=0;try{dt.decode(zt,{stream:!0}),Sn=1}catch(e){}var Re=function(e){for(var n="",t=0;;){var r=e[t++],o=(r>127)+(r>223)+(r>239);if(t+o>e.length)return{s:n,r:g(e,t-1)};o?o==3?(r=((r&15)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,n+=String.fromCharCode(55296|r>>10,56320|r&1023)):o&1?n+=String.fromCharCode((r&31)<<6|e[t++]&63):n+=String.fromCharCode((r&15)<<12|(e[t++]&63)<<6|e[t++]&63):n+=String.fromCharCode(r)}},lt=null,Bt=null;function qt(e,n){if(n){for(var t=new we(e.length),r=0;r>1)),w=0,y=function(V){l[w++]=V},r=0;rl.length){var S=new we(w+8+(o-r<<1));S.set(l),l=S}var Q=e.charCodeAt(r);Q<128||n?y(Q):Q<2048?(y(192|Q>>6),y(128|Q&63)):Q>55295&&Q<57344?(Q=65536+(Q&1047552)|e.charCodeAt(++r)&1023,y(240|Q>>18),y(128|Q>>12&63),y(128|Q>>6&63),y(128|Q&63)):(y(224|Q>>12),y(128|Q>>6&63),y(128|Q&63))}return g(l,0,w)}function bn(e,n){if(n){for(var t="",r=0;r65535&&oe(9),n+=r+4}return n},Wn=function(e,n,t,r,o,l,w,y){var S=r.length,Q=t.extra,V=y&&y.length,fe=sr(Q);at(e,n,w!=null?33639248:67324752),n+=4,w!=null&&(e[n++]=20,e[n++]=t.os),e[n]=20,n+=2,e[n++]=t.flag<<1|(l<0&&8),e[n++]=o&&8,e[n++]=t.compression&255,e[n++]=t.compression>>8;var Le=new Date(t.mtime==null?Date.now():t.mtime),z=Le.getFullYear()-1980;if((z<0||z>119)&&oe(10),at(e,n,z<<25|Le.getMonth()+1<<21|Le.getDate()<<16|Le.getHours()<<11|Le.getMinutes()<<5|Le.getSeconds()>>1),n+=4,l!=-1&&(at(e,n,t.crc),at(e,n+4,l<0?-l-2:l),at(e,n+8,t.size)),at(e,n+12,S),at(e,n+14,fe),n+=16,w!=null&&(at(e,n,V),at(e,n+6,t.attrs),at(e,n+10,w),n+=14),e.set(r,n),n+=S,fe)for(var ot in Q){var qe=Q[ot],it=qe.length;at(e,n,+ot),at(e,n+2,it),e.set(qe,n+4),n+=4+it}return V&&(e.set(y,n),n+=V),n},Sr=function(e,n,t,r,o){at(e,n,101010256),at(e,n+8,t),at(e,n+10,t),at(e,n+12,r),at(e,n+16,o)},hr=null,Fr=null,Ko=null,$i=null;function wi(e,n,t){t||(t=n,n={}),typeof t!="function"&&oe(7);var r={};Or(e,"",r,n);var o=Object.keys(r),l=o.length,w=0,y=0,S=l,Q=new Array(l),V=[],fe=function(){for(var it=0;it65535&&Tt(oe(11,0,1),null),!jt)Tt(null,Ot);else if(Hn<16e4)try{Tt(null,vt(Ot,Ct))}catch(Bn){Tt(Bn,null)}else V.push(We(Ot,Ct,Tt))},qe=0;qe65535&&oe(11);var He=V?vt(S,Q):S,Mt=He.length,Ot=Ze();Ot.p(S),r.push(x(Q,{size:S.length,crc:Ot.d(),c:He,f:fe,m:ot,u:Le!=w.length||ot&&z.length!=qe,o,compression:V})),o+=30+Le+it+Mt,l+=76+2*(Le+it)+(qe||0)+Mt}for(var Ct=new we(l+22),vn=o,Hn=l-o,Un=0;Un65558)return w(oe(13,0,1),null),o;var S=tt(e,y+8);if(S){var Q=S,V=Te(e,y+16),fe=V==4294967295||Q==65535;if(fe){var Le=Te(e,y-12);fe=Te(e,Le)==101075792,fe&&(Q=S=Te(e,Le+32),V=Te(e,Le+48))}for(var z=n&&n.filter,ot=function(it){var He=hn(e,V,fe),Mt=He[0],Ot=He[1],Ct=He[2],vn=He[3],Hn=He[4],Un=He[5],Gt=Yn(e,Un);V=Hn;var xt=function(_e,At){_e?(o(),w(_e,null)):(At&&(l[vn]=At),--S||w(null,l))};if(!z||z({name:vn,size:Ot,originalSize:Ct,compression:Mt}))if(!Mt)xt(null,g(e,Gt,Gt+Ot));else if(Mt==8){var sn=e.subarray(Gt,Gt+Ot);if(Ct<524288||Ot>.8*Ct)try{xt(null,xn(sn,{out:new we(Ct)}))}catch(_e){xt(_e,null)}else r.push(En(sn,{size:Ct},xt))}else xt(oe(14,"unknown compression type "+Mt,1),null);else xt(null,null)},qe=0;qe65558)&&oe(13);var o=tt(e,r+8);if(!o)return{};var l=Te(e,r+16),w=l==4294967295||o==65535;if(w){var y=Te(e,r-12);w=Te(e,y)==101075792,w&&(o=Te(e,y+32),l=Te(e,y+48))}for(var S=n&&n.filter,Q=0;Q{const e=new Uint8Array(4),n=new Uint32Array(e.buffer);return!((n[0]=1)&e[0])})(),ki={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ri{constructor(n=ea,t={}){xa(this,"buffer");xa(this,"byteLength");xa(this,"byteOffset");xa(this,"length");xa(this,"offset");xa(this,"lastWrittenByte");xa(this,"littleEndian");xa(this,"_data");xa(this,"_mark");xa(this,"_marks");let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);const o=t.offset?t.offset>>>0:0,l=n.byteLength-o;let w=o;(ArrayBuffer.isView(n)||n instanceof ri)&&(n.byteLength!==n.buffer.byteLength&&(w=n.byteOffset+o),n=n.buffer),r?this.lastWrittenByte=l:this.lastWrittenByte=0,this.buffer=n,this.length=l,this.byteLength=l,this.byteOffset=w,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,w,l),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const r=(this.offset+n)*2,o=new Uint8Array(r);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,t){const r=ki[t].BYTES_PER_ELEMENT*n,o=this.byteOffset+this.offset,l=this.buffer.slice(o,o+r);if(this.littleEndian===ya&&t!=="uint8"&&t!=="int8"){const y=new Uint8Array(this.buffer.slice(o,o+r));y.reverse();const S=new ki[t](y.buffer);return this.offset+=r,S.reverse(),S}const w=new ki[t](l);return this.offset+=r,w}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let t="";for(let r=0;rthis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const di=4,Xo=0,aa=1,Ga=2;function wa(e){let n=e.length;for(;--n>=0;)e[n]=0}const Aa=0,Yi=1,fa=2,vA=3,sA=258,sa=29,Vr=256,Qn=Vr+1+sa,Xn=30,Gn=19,_n=2*Qn+1,gr=15,jr=16,Ao=7,qo=256,fi=16,_a=17,lA=18,ds=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Ba=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Cs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),FA=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uA=512,ta=new Array((Qn+2)*2);wa(ta);const ha=new Array(Xn*2);wa(ha);const pi=new Array(uA);wa(pi);const $a=new Array(sA-vA+1);wa($a);const PA=new Array(sa);wa(PA);const cA=new Array(Xn);wa(cA);function yA(e,n,t,r,o){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}let TA,Co,Zo;function pa(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const ja=e=>e<256?pi[e]:pi[256+(e>>>7)],Es=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},IA=(e,n,t)=>{e.bi_valid>jr-t?(e.bi_buf|=n<>jr-e.bi_valid,e.bi_valid+=t-jr):(e.bi_buf|=n<{IA(e,t[n*2],t[n*2+1])},Qu=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},El=e=>{e.bi_valid===16?(Es(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},Ou=(e,n)=>{const t=n.dyn_tree,r=n.max_code,o=n.stat_desc.static_tree,l=n.stat_desc.has_stree,w=n.stat_desc.extra_bits,y=n.stat_desc.extra_base,S=n.stat_desc.max_length;let Q,V,fe,Le,z,ot,qe=0;for(Le=0;Le<=gr;Le++)e.bl_count[Le]=0;for(t[e.heap[e.heap_max]*2+1]=0,Q=e.heap_max+1;Q<_n;Q++)V=e.heap[Q],Le=t[t[V*2+1]*2+1]+1,Le>S&&(Le=S,qe++),t[V*2+1]=Le,!(V>r)&&(e.bl_count[Le]++,z=0,V>=y&&(z=w[V-y]),ot=t[V*2],e.opt_len+=ot*(Le+z),l&&(e.static_len+=ot*(o[V*2+1]+z)));if(qe!==0){do{for(Le=S-1;e.bl_count[Le]===0;)Le--;e.bl_count[Le]--,e.bl_count[Le+1]+=2,e.bl_count[S]--,qe-=2}while(qe>0);for(Le=S;Le!==0;Le--)for(V=e.bl_count[Le];V!==0;)fe=e.heap[--Q],!(fe>r)&&(t[fe*2+1]!==Le&&(e.opt_len+=(Le-t[fe*2+1])*t[fe*2],t[fe*2+1]=Le),V--)}},ul=(e,n,t)=>{const r=new Array(gr+1);let o=0,l,w;for(l=1;l<=gr;l++)o=o+t[l-1]<<1,r[l]=o;for(w=0;w<=n;w++){let y=e[w*2+1];y!==0&&(e[w*2]=Qu(r[y]++,y))}},ru=()=>{let e,n,t,r,o;const l=new Array(gr+1);for(t=0,r=0;r>=7;r{let n;for(n=0;n{e.bi_valid>8?Es(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},ou=(e,n,t,r)=>{const o=n*2,l=t*2;return e[o]{const r=e.heap[t];let o=t<<1;for(;o<=e.heap_len&&(o{let r,o,l=0,w,y;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+l++]&255,r+=(e.pending_buf[e.sym_buf+l++]&255)<<8,o=e.pending_buf[e.sym_buf+l++],r===0?as(e,o,n):(w=$a[o],as(e,w+Vr+1,n),y=ds[w],y!==0&&(o-=PA[w],IA(e,o,y)),r--,w=ja(r),as(e,w,t),y=Ba[w],y!==0&&(r-=cA[w],IA(e,r,y)));while(l{const t=n.dyn_tree,r=n.stat_desc.static_tree,o=n.stat_desc.has_stree,l=n.stat_desc.elems;let w,y,S=-1,Q;for(e.heap_len=0,e.heap_max=_n,w=0;w>1;w>=1;w--)cl(e,t,w);Q=l;do w=e.heap[1],e.heap[1]=e.heap[e.heap_len--],cl(e,t,1),y=e.heap[1],e.heap[--e.heap_max]=w,e.heap[--e.heap_max]=y,t[Q*2]=t[w*2]+t[y*2],e.depth[Q]=(e.depth[w]>=e.depth[y]?e.depth[w]:e.depth[y])+1,t[w*2+1]=t[y*2+1]=Q,e.heap[1]=Q++,cl(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Ou(e,n),ul(t,S,e.bl_count)},co=(e,n,t)=>{let r,o=-1,l,w=n[0*2+1],y=0,S=7,Q=4;for(w===0&&(S=138,Q=3),n[(t+1)*2+1]=65535,r=0;r<=t;r++)l=w,w=n[(r+1)*2+1],!(++y{let r,o=-1,l,w=n[0*2+1],y=0,S=7,Q=4;for(w===0&&(S=138,Q=3),r=0;r<=t;r++)if(l=w,w=n[(r+1)*2+1],!(++y{let n;for(co(e,e.dyn_ltree,e.l_desc.max_code),co(e,e.dyn_dtree,e.d_desc.max_code),Oo(e,e.bl_desc),n=Gn-1;n>=3&&e.bl_tree[FA[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},na=(e,n,t,r)=>{let o;for(IA(e,n-257,5),IA(e,t-1,5),IA(e,r-4,4),o=0;o{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return Xo;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return aa;for(t=32;t{Ns||(ru(),Ns=!0),e.l_desc=new pa(e.dyn_ltree,TA),e.d_desc=new pa(e.dyn_dtree,Co),e.bl_desc=new pa(e.bl_tree,Zo),e.bi_buf=0,e.bi_valid=0,Ml(e)},dA=(e,n,t,r)=>{IA(e,(Aa<<1)+(r?1:0),3),eA(e),Es(e,t),Es(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},fs=e=>{IA(e,Yi<<1,3),as(e,qo,ta),El(e)},RA=(e,n,t,r)=>{let o,l,w=0;e.level>0?(e.strm.data_type===Ga&&(e.strm.data_type=Bi(e)),Oo(e,e.l_desc),Oo(e,e.d_desc),w=hi(e),o=e.opt_len+3+7>>>3,l=e.static_len+3+7>>>3,l<=o&&(o=l)):o=l=t+5,t+4<=o&&n!==-1?dA(e,n,t,r):e.strategy===di||l===o?(IA(e,(Yi<<1)+(r?1:0),3),bo(e,ta,ha)):(IA(e,(fa<<1)+(r?1:0),3),na(e,e.l_desc.max_code+1,e.d_desc.max_code+1,w+1),bo(e,e.dyn_ltree,e.dyn_dtree)),Ml(e),r&&eA(e)},Du=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[($a[t]+Vr+1)*2]++,e.dyn_dtree[ja(n)*2]++),e.sym_next===e.sym_end);var tl=zs,Oa=dA,Qs=RA,tA=Du,sc=fs,dl={_tr_init:tl,_tr_stored_block:Oa,_tr_flush_block:Qs,_tr_tally:tA,_tr_align:sc},ra=(e,n,t,r)=>{let o=e&65535|0,l=e>>>16&65535|0,w=0;for(;t!==0;){w=t>2e3?2e3:t,t-=w;do o=o+n[r++]|0,l=l+o|0;while(--w);o%=65521,l%=65521}return o|l<<16|0};const kc=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Id=new Uint32Array(kc());var nA=(e,n,t,r)=>{const o=Id,l=r+t;e^=-1;for(let w=r;w>>8^o[(e^n[w])&255];return e^-1},Os={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xl={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:lc,_tr_stored_block:rA,_tr_flush_block:fl,_tr_tally:UA,_tr_align:fA}=dl,{Z_NO_FLUSH:LA,Z_PARTIAL_FLUSH:Ud,Z_FULL_FLUSH:zc,Z_FINISH:NA,Z_BLOCK:Hl,Z_OK:Io,Z_STREAM_END:Do,Z_STREAM_ERROR:Ki,Z_DATA_ERROR:hs,Z_BUF_ERROR:Xa,Z_DEFAULT_COMPRESSION:wA,Z_FILTERED:Zs,Z_HUFFMAN_ONLY:ps,Z_RLE:hl,Z_FIXED:_A,Z_DEFAULT_STRATEGY:pl,Z_UNKNOWN:Pu,Z_DEFLATED:Sl}=xl,Zc=9,wf=15,uc=8,cc=256+1+29,Bf=30,Wc=19,Nd=2*cc+1,Qd=15,Di=3,Ds=258,Fl=Ds+Di+1,rh=32,Il=42,bf=57,Gc=69,Cf=73,Od=91,Ef=103,iu=113,ho=666,Va=1,gl=2,au=3,Ul=4,h0=3,Au=(e,n)=>(e.msg=Os[n],n),oh=e=>e*2-(e>4?9:0),kl=e=>{let n=e.length;for(;--n>=0;)e[n]=0},Dd=e=>{let n,t,r,o=e.w_size;n=e.hash_size,r=n;do t=e.head[--r],e.head[r]=t>=o?t-o:0;while(--n);n=o,r=n;do t=e.prev[--r],e.prev[r]=t>=o?t-o:0;while(--n)};let su=(e,n,t)=>(n<{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},Vs=(e,n)=>{fl(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,Ps(e.strm)},zi=(e,n)=>{e.pending_buf[e.pending++]=n},$c=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Pd=(e,n,t,r)=>{let o=e.avail_in;return o>r&&(o=r),o===0?0:(e.avail_in-=o,n.set(e.input.subarray(e.next_in,e.next_in+o),t),e.state.wrap===1?e.adler=ra(e.adler,n,o,t):e.state.wrap===2&&(e.adler=nA(e.adler,n,o,t)),e.next_in+=o,e.total_in+=o,o)},ih=(e,n)=>{let t=e.max_chain_length,r=e.strstart,o,l,w=e.prev_length,y=e.nice_match;const S=e.strstart>e.w_size-Fl?e.strstart-(e.w_size-Fl):0,Q=e.window,V=e.w_mask,fe=e.prev,Le=e.strstart+Ds;let z=Q[r+w-1],ot=Q[r+w];e.prev_length>=e.good_match&&(t>>=2),y>e.lookahead&&(y=e.lookahead);do if(o=n,!(Q[o+w]!==ot||Q[o+w-1]!==z||Q[o]!==Q[r]||Q[++o]!==Q[r+1])){r+=2,o++;do;while(Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&Q[++r]===Q[++o]&&rw){if(e.match_start=n,w=l,l>=y)break;z=Q[r+w-1],ot=Q[r+w]}}while((n=fe[n&V])>S&&--t!==0);return w<=e.lookahead?w:e.lookahead},Tu=e=>{const n=e.w_size;let t,r,o;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-Fl)&&(e.window.set(e.window.subarray(n,n+n-r),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),Dd(e),r+=n),e.strm.avail_in===0)break;if(t=Pd(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=t,e.lookahead+e.insert>=Di)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=su(e,e.ins_h,e.window[o+1]);e.insert&&(e.ins_h=su(e,e.ins_h,e.window[o+Di-1]),e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,o,l,w=0,y=e.strm.avail_in;do{if(r=65535,l=e.bi_valid+42>>3,e.strm.avail_outo+e.strm.avail_in&&(r=o+e.strm.avail_in),r>l&&(r=l),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ps(e.strm),o&&(o>r&&(o=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+o),e.strm.next_out),e.strm.next_out+=o,e.strm.avail_out-=o,e.strm.total_out+=o,e.block_start+=o,r-=o),r&&(Pd(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(w===0);return y-=e.strm.avail_in,y&&(y>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=y&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-y,e.strm.next_in),e.strstart),e.strstart+=y,e.insert+=y>e.w_size-e.insert?e.w_size-e.insert:y),e.block_start=e.strstart),e.high_waterl&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,l+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),l>e.strm.avail_in&&(l=e.strm.avail_in),l&&(Pd(e.strm,e.window,e.strstart,l),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.high_water>3,l=e.pending_buf_size-l>65535?65535:e.pending_buf_size-l,t=l>e.w_size?e.w_size:l,o=e.strstart-e.block_start,(o>=t||(o||n===NA)&&n!==LA&&e.strm.avail_in===0&&o<=l)&&(r=o>l?l:o,w=n===NA&&e.strm.avail_in===0&&r===o?1:0,rA(e,e.block_start,r,w),e.block_start+=r,Ps(e.strm)),w?au:Va)},Td=(e,n)=>{let t,r;for(;;){if(e.lookahead=Di&&(e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-Fl&&(e.match_length=ih(e,t)),e.match_length>=Di)if(r=UA(e,e.strstart-e.match_start,e.match_length-Di),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Di){e.match_length--;do e.strstart++,e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=su(e,e.ins_h,e.window[e.strstart+1]);else r=UA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Vs(e,!1),e.strm.avail_out===0))return Va}return e.insert=e.strstart{let t,r,o;for(;;){if(e.lookahead=Di&&(e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=Di-1,t!==0&&e.prev_length4096)&&(e.match_length=Di-1)),e.prev_length>=Di&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-Di,r=UA(e,e.strstart-1-e.prev_match,e.prev_length-Di),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=o&&(e.ins_h=su(e,e.ins_h,e.window[e.strstart+Di-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=Di-1,e.strstart++,r&&(Vs(e,!1),e.strm.avail_out===0))return Va}else if(e.match_available){if(r=UA(e,0,e.window[e.strstart-1]),r&&Vs(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Va}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=UA(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let t,r,o,l;const w=e.window;for(;;){if(e.lookahead<=Ds){if(Tu(e),e.lookahead<=Ds&&n===LA)return Va;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Di&&e.strstart>0&&(o=e.strstart-1,r=w[o],r===w[++o]&&r===w[++o]&&r===w[++o])){l=e.strstart+Ds;do;while(r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&r===w[++o]&&oe.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Di?(t=UA(e,1,e.match_length-Di),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=UA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(Vs(e,!1),e.strm.avail_out===0))return Va}return e.insert=0,n===NA?(Vs(e,!0),e.strm.avail_out===0?au:Ul):e.sym_next&&(Vs(e,!1),e.strm.avail_out===0)?Va:gl},g0=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Tu(e),e.lookahead===0)){if(n===LA)return Va;break}if(e.match_length=0,t=UA(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(Vs(e,!1),e.strm.avail_out===0))return Va}return e.insert=0,n===NA?(Vs(e,!0),e.strm.avail_out===0?au:Ul):e.sym_next&&(Vs(e,!1),e.strm.avail_out===0)?Va:gl};function ml(e,n,t,r,o){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=r,this.func=o}const Yc=[new ml(0,0,0,0,Xc),new ml(4,4,8,4,Td),new ml(4,5,16,8,Td),new ml(4,6,32,32,Td),new ml(4,4,16,16,dc),new ml(8,16,32,32,dc),new ml(8,16,128,128,dc),new ml(8,32,128,256,dc),new ml(32,128,258,1024,dc),new ml(32,258,258,4096,dc)],Ah=e=>{e.window_size=2*e.w_size,kl(e.head),e.max_lazy_match=Yc[e.level].max_lazy,e.good_match=Yc[e.level].good_length,e.nice_match=Yc[e.level].nice_length,e.max_chain_length=Yc[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=Di-1,e.match_available=0,e.ins_h=0};function m0(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Sl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Nd*2),this.dyn_dtree=new Uint16Array((2*Bf+1)*2),this.bl_tree=new Uint16Array((2*Wc+1)*2),kl(this.dyn_ltree),kl(this.dyn_dtree),kl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Qd+1),this.heap=new Uint16Array(2*cc+1),kl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*cc+1),kl(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const fc=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Il&&n.status!==bf&&n.status!==Gc&&n.status!==Cf&&n.status!==Od&&n.status!==Ef&&n.status!==iu&&n.status!==ho?1:0},sh=e=>{if(fc(e))return Au(e,Ki);e.total_in=e.total_out=0,e.data_type=Pu;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?bf:n.wrap?Il:iu,e.adler=n.wrap===2?0:1,n.last_flush=-2,lc(n),Io},hc=e=>{const n=sh(e);return n===Io&&Ah(e.state),n},v0=(e,n)=>fc(e)||e.state.wrap!==2?Ki:(e.state.gzhead=n,Io),Rd=(e,n,t,r,o,l)=>{if(!e)return Ki;let w=1;if(n===wA&&(n=6),r<0?(w=0,r=-r):r>15&&(w=2,r-=16),o<1||o>Zc||t!==Sl||r<8||r>15||n<0||n>9||l<0||l>_A||r===8&&w!==1)return Au(e,Ki);r===8&&(r=9);const y=new m0;return e.state=y,y.strm=e,y.status=Il,y.wrap=w,y.gzhead=null,y.w_bits=r,y.w_size=1<Rd(e,n,Sl,wf,uc,pl),uh=(e,n)=>{if(fc(e)||n>Hl||n<0)return e?Au(e,Ki):Ki;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===ho&&n!==NA)return Au(e,e.avail_out===0?Xa:Ki);const r=t.last_flush;if(t.last_flush=n,t.pending!==0){if(Ps(e),e.avail_out===0)return t.last_flush=-1,Io}else if(e.avail_in===0&&oh(n)<=oh(r)&&n!==NA)return Au(e,Xa);if(t.status===ho&&e.avail_in!==0)return Au(e,Xa);if(t.status===Il&&t.wrap===0&&(t.status=iu),t.status===Il){let o=Sl+(t.w_bits-8<<4)<<8,l=-1;if(t.strategy>=ps||t.level<2?l=0:t.level<6?l=1:t.level===6?l=2:l=3,o|=l<<6,t.strstart!==0&&(o|=rh),o+=31-o%31,$c(t,o),t.strstart!==0&&($c(t,e.adler>>>16),$c(t,e.adler&65535)),e.adler=1,t.status=iu,Ps(e),t.pending!==0)return t.last_flush=-1,Io}if(t.status===bf){if(e.adler=0,zi(t,31),zi(t,139),zi(t,8),t.gzhead)zi(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),zi(t,t.gzhead.time&255),zi(t,t.gzhead.time>>8&255),zi(t,t.gzhead.time>>16&255),zi(t,t.gzhead.time>>24&255),zi(t,t.level===9?2:t.strategy>=ps||t.level<2?4:0),zi(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(zi(t,t.gzhead.extra.length&255),zi(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=nA(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Gc;else if(zi(t,0),zi(t,0),zi(t,0),zi(t,0),zi(t,0),zi(t,t.level===9?2:t.strategy>=ps||t.level<2?4:0),zi(t,h0),t.status=iu,Ps(e),t.pending!==0)return t.last_flush=-1,Io}if(t.status===Gc){if(t.gzhead.extra){let o=t.pending,l=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+l>t.pending_buf_size;){let y=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+y),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),t.gzindex+=y,Ps(e),t.pending!==0)return t.last_flush=-1,Io;o=0,l-=y}let w=new Uint8Array(t.gzhead.extra);t.pending_buf.set(w.subarray(t.gzindex,t.gzindex+l),t.pending),t.pending+=l,t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),t.gzindex=0}t.status=Cf}if(t.status===Cf){if(t.gzhead.name){let o=t.pending,l;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),Ps(e),t.pending!==0)return t.last_flush=-1,Io;o=0}t.gzindexo&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),t.gzindex=0}t.status=Od}if(t.status===Od){if(t.gzhead.comment){let o=t.pending,l;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>o&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o)),Ps(e),t.pending!==0)return t.last_flush=-1,Io;o=0}t.gzindexo&&(e.adler=nA(e.adler,t.pending_buf,t.pending-o,o))}t.status=Ef}if(t.status===Ef){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Ps(e),t.pending!==0))return t.last_flush=-1,Io;zi(t,e.adler&255),zi(t,e.adler>>8&255),e.adler=0}if(t.status=iu,Ps(e),t.pending!==0)return t.last_flush=-1,Io}if(e.avail_in!==0||t.lookahead!==0||n!==LA&&t.status!==ho){let o=t.level===0?Xc(t,n):t.strategy===ps?g0(t,n):t.strategy===hl?ah(t,n):Yc[t.level].func(t,n);if((o===au||o===Ul)&&(t.status=ho),o===Va||o===au)return e.avail_out===0&&(t.last_flush=-1),Io;if(o===gl&&(n===Ud?fA(t):n!==Hl&&(rA(t,0,0,!1),n===zc&&(kl(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Ps(e),e.avail_out===0))return t.last_flush=-1,Io}return n!==NA?Io:t.wrap<=0?Do:(t.wrap===2?(zi(t,e.adler&255),zi(t,e.adler>>8&255),zi(t,e.adler>>16&255),zi(t,e.adler>>24&255),zi(t,e.total_in&255),zi(t,e.total_in>>8&255),zi(t,e.total_in>>16&255),zi(t,e.total_in>>24&255)):($c(t,e.adler>>>16),$c(t,e.adler&65535)),Ps(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Io:Do)},ch=e=>{if(fc(e))return Ki;const n=e.state.status;return e.state=null,n===iu?Au(e,hs):Io},_d=(e,n)=>{let t=n.length;if(fc(e))return Ki;const r=e.state,o=r.wrap;if(o===2||o===1&&r.status!==Il||r.lookahead)return Ki;if(o===1&&(e.adler=ra(e.adler,n,t,0)),r.wrap=0,t>=r.w_size){o===0&&(kl(r.head),r.strstart=0,r.block_start=0,r.insert=0);let S=new Uint8Array(r.w_size);S.set(n.subarray(t-r.w_size,t),0),n=S,t=r.w_size}const l=e.avail_in,w=e.next_in,y=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Tu(r);r.lookahead>=Di;){let S=r.strstart,Q=r.lookahead-(Di-1);do r.ins_h=su(r,r.ins_h,r.window[S+Di-1]),r.prev[S&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=S,S++;while(--Q);r.strstart=S,r.lookahead=Di-1,Tu(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Di-1,r.match_available=0,e.next_in=w,e.input=y,e.avail_in=l,r.wrap=o,Io};var pc=lh,dh=Rd,fh=hc,hh=sh,ph=v0,gh=uh,Ll=ch,Jc=_d,mh="pako deflate (from Nodeca project)",J={deflateInit:pc,deflateInit2:dh,deflateReset:fh,deflateResetKeep:hh,deflateSetHeader:ph,deflate:gh,deflateEnd:Ll,deflateSetDictionary:Jc,deflateInfo:mh};const Y=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var xe=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)Y(t,r)&&(e[r]=t[r])}}return e},ze=e=>{let n=0;for(let r=0,o=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Dt[254]=Dt[254]=1;var Ft=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,r,o,l,w=e.length,y=0;for(o=0;o>>6,n[l++]=128|t&63):t<65536?(n[l++]=224|t>>>12,n[l++]=128|t>>>6&63,n[l++]=128|t&63):(n[l++]=240|t>>>18,n[l++]=128|t>>>12&63,n[l++]=128|t>>>6&63,n[l++]=128|t&63);return n};const Vt=(e,n)=>{if(n<65534&&e.subarray&&pt)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let r=0;r{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let r,o;const l=new Array(t*2);for(o=0,r=0;r4){l[o++]=65533,r+=y-1;continue}for(w&=y===2?31:y===3?15:7;y>1&&r1){l[o++]=65533;continue}w<65536?l[o++]=w:(w-=65536,l[o++]=55296|w>>10&1023,l[o++]=56320|w&1023)}return Vt(l,o)},wn=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Dt[e[t]]>n?t:n},rn={string2buf:Ft,buf2string:kt,utf8border:wn};function on(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var nn=on;const dn=Object.prototype.toString,{Z_NO_FLUSH:rr,Z_SYNC_FLUSH:Pn,Z_FULL_FLUSH:Ar,Z_FINISH:lr,Z_OK:tr,Z_STREAM_END:vr,Z_DEFAULT_COMPRESSION:Cr,Z_DEFAULT_STRATEGY:Rr,Z_DEFLATED:Dr}=xl;function Eo(e){this.options=rt.assign({level:Cr,method:Dr,chunkSize:16384,windowBits:15,memLevel:8,strategy:Rr},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nn,this.strm.avail_out=0;let t=J.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==tr)throw new Error(Os[t]);if(n.header&&J.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=rn.string2buf(n.dictionary):dn.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,t=J.deflateSetDictionary(this.strm,r),t!==tr)throw new Error(Os[t]);this._dict_set=!0}}Eo.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize;let o,l;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?lr:rr,typeof e=="string"?t.input=rn.string2buf(e):dn.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),(l===Pn||l===Ar)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(o=J.deflate(t,l),o===vr)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),o=J.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===tr;if(t.avail_out===0){this.onData(t.output);continue}if(l>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0},Eo.prototype.onData=function(e){this.chunks.push(e)},Eo.prototype.onEnd=function(e){e===tr&&(this.result=rt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function no(e,n){const t=new Eo(n);if(t.push(e,!0),t.err)throw t.msg||Os[t.err];return t.result}function so(e,n){return n=n||{},n.raw=!0,no(e,n)}function Mr(e,n){return n=n||{},n.gzip=!0,no(e,n)}var Pr=Eo,Tr=no,Er=so,mr=Mr,Nr=xl,Hr={Deflate:Pr,deflate:Tr,deflateRaw:Er,gzip:mr,constants:Nr};const Yr=16209,Br=16191;var Vo=function(n,t){let r,o,l,w,y,S,Q,V,fe,Le,z,ot,qe,it,He,Mt,Ot,Ct,vn,Hn,Un,Gt,xt,sn;const _e=n.state;r=n.next_in,xt=n.input,o=r+(n.avail_in-5),l=n.next_out,sn=n.output,w=l-(t-n.avail_out),y=l+(n.avail_out-257),S=_e.dmax,Q=_e.wsize,V=_e.whave,fe=_e.wnext,Le=_e.window,z=_e.hold,ot=_e.bits,qe=_e.lencode,it=_e.distcode,He=(1<<_e.lenbits)-1,Mt=(1<<_e.distbits)-1;e:do{ot<15&&(z+=xt[r++]<>>24,z>>>=Ct,ot-=Ct,Ct=Ot>>>16&255,Ct===0)sn[l++]=Ot&65535;else if(Ct&16){vn=Ot&65535,Ct&=15,Ct&&(ot>>=Ct,ot-=Ct),ot<15&&(z+=xt[r++]<>>24,z>>>=Ct,ot-=Ct,Ct=Ot>>>16&255,Ct&16){if(Hn=Ot&65535,Ct&=15,otS){n.msg="invalid distance too far back",_e.mode=Yr;break e}if(z>>>=Ct,ot-=Ct,Ct=l-w,Hn>Ct){if(Ct=Hn-Ct,Ct>V&&_e.sane){n.msg="invalid distance too far back",_e.mode=Yr;break e}if(Un=0,Gt=Le,fe===0){if(Un+=Q-Ct,Ct2;)sn[l++]=Gt[Un++],sn[l++]=Gt[Un++],sn[l++]=Gt[Un++],vn-=3;vn&&(sn[l++]=Gt[Un++],vn>1&&(sn[l++]=Gt[Un++]))}else{Un=l-Hn;do sn[l++]=sn[Un++],sn[l++]=sn[Un++],sn[l++]=sn[Un++],vn-=3;while(vn>2);vn&&(sn[l++]=sn[Un++],vn>1&&(sn[l++]=sn[Un++]))}}else if(Ct&64){n.msg="invalid distance code",_e.mode=Yr;break e}else{Ot=it[(Ot&65535)+(z&(1<>3,r-=vn,ot-=vn<<3,z&=(1<{const S=y.bits;let Q=0,V=0,fe=0,Le=0,z=0,ot=0,qe=0,it=0,He=0,Mt=0,Ot,Ct,vn,Hn,Un,Gt=null,xt;const sn=new Uint16Array(Wo+1),_e=new Uint16Array(Wo+1);let At=null,jt,Tt,Bn;for(Q=0;Q<=Wo;Q++)sn[Q]=0;for(V=0;V=1&&sn[Le]===0;Le--);if(z>Le&&(z=Le),Le===0)return o[l++]=1<<24|64<<16|0,o[l++]=1<<24|64<<16|0,y.bits=1,0;for(fe=1;fe0&&(e===la||Le!==1))return-1;for(_e[1]=0,Q=1;QMa||e===QA&&He>Sa)return 1;for(;;){jt=Q-qe,w[V]+1=xt?(Tt=At[w[V]-xt],Bn=Gt[w[V]-xt]):(Tt=96,Bn=0),Ot=1<>qe)+Ct]=jt<<24|Tt<<16|Bn|0;while(Ct!==0);for(Ot=1<>=1;if(Ot!==0?(Mt&=Ot-1,Mt+=Ot):Mt=0,V++,--sn[Q]===0){if(Q===Le)break;Q=n[t+w[V]]}if(Q>z&&(Mt&Hn)!==vn){for(qe===0&&(qe=z),Un+=fe,ot=Q-qe,it=1<Ma||e===QA&&He>Sa)return 1;vn=Mt&Hn,o[vn]=z<<24|ot<<16|Un-l|0}}return Mt!==0&&(o[Un+Mt]=Q-qe<<24|64<<16|0),y.bits=z,0};const kr=0,ro=1,bi=2,{Z_FINISH:Ui,Z_BLOCK:Ji,Z_TREES:Zi,Z_OK:Da,Z_STREAM_END:jA,Z_NEED_DICT:to,Z_STREAM_ERROR:Wr,Z_DATA_ERROR:Ci,Z_MEM_ERROR:Fa,Z_BUF_ERROR:qi,Z_DEFLATED:MA}=xl,Ha=16180,Ws=16181,Ia=16182,ji=16183,ga=16184,ma=16185,hA=16186,oA=16187,Pi=16188,ka=16189,Vi=16190,Ua=16191,Wa=16192,HA=16193,Gs=16194,lu=16195,Na=16196,Ru=16197,$A=16198,XA=16199,kA=16200,YA=16201,JA=16202,xs=16203,vl=16204,Ts=16205,$s=16206,qc=16207,ed=16208,Li=16209,uu=16210,td=16211,Po=852,Wi=592,bA=15,As=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Xs(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const qA=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.modetd?1:0},KA=e=>{if(qA(e))return Wr;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=Ha,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(Po),n.distcode=n.distdyn=new Int32Array(Wi),n.sane=1,n.back=-1,Da},jd=e=>{if(qA(e))return Wr;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,KA(e)},Md=(e,n)=>{let t;if(qA(e))return Wr;const r=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Wr:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=t,r.wbits=n,jd(e))},cu=(e,n)=>{if(!e)return Wr;const t=new Xs;e.state=t,t.strm=e,t.window=null,t.mode=Ha;const r=Md(e,n);return r!==Da&&(e.state=null),r},du=e=>cu(e,bA);let zA=!0,Kl,Hd;const xf=e=>{if(zA){Kl=new Int32Array(512),Hd=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(uo(ro,e.lens,0,288,Kl,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;uo(bi,e.lens,0,32,Hd,0,e.work,{bits:5}),zA=!1}e.lencode=Kl,e.lenbits=9,e.distcode=Hd,e.distbits=5},kd=(e,n,t,r)=>{let o;const l=e.state;return l.window===null&&(l.wsize=1<=l.wsize?(l.window.set(n.subarray(t-l.wsize,t),0),l.wnext=0,l.whave=l.wsize):(o=l.wsize-l.wnext,o>r&&(o=r),l.window.set(n.subarray(t-r,t-r+o),l.wnext),r-=o,r?(l.window.set(n.subarray(t-r,t),0),l.wnext=r,l.whave=l.wsize):(l.wnext+=o,l.wnext===l.wsize&&(l.wnext=0),l.whave{let t,r,o,l,w,y,S,Q,V,fe,Le,z,ot,qe,it=0,He,Mt,Ot,Ct,vn,Hn,Un,Gt;const xt=new Uint8Array(4);let sn,_e;const At=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(qA(e)||!e.output||!e.input&&e.avail_in!==0)return Wr;t=e.state,t.mode===Ua&&(t.mode=Wa),w=e.next_out,o=e.output,S=e.avail_out,l=e.next_in,r=e.input,y=e.avail_in,Q=t.hold,V=t.bits,fe=y,Le=S,Gt=Da;e:for(;;)switch(t.mode){case Ha:if(t.wrap===0){t.mode=Wa;break}for(;V<16;){if(y===0)break e;y--,Q+=r[l++]<>>8&255,t.check=nA(t.check,xt,2,0),Q=0,V=0,t.mode=Ws;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((Q&255)<<8)+(Q>>8))%31){e.msg="incorrect header check",t.mode=Li;break}if((Q&15)!==MA){e.msg="unknown compression method",t.mode=Li;break}if(Q>>>=4,V-=4,Un=(Q&15)+8,t.wbits===0&&(t.wbits=Un),Un>15||Un>t.wbits){e.msg="invalid window size",t.mode=Li;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(xt[0]=Q&255,xt[1]=Q>>>8&255,t.check=nA(t.check,xt,2,0)),Q=0,V=0,t.mode=Ia;case Ia:for(;V<32;){if(y===0)break e;y--,Q+=r[l++]<>>8&255,xt[2]=Q>>>16&255,xt[3]=Q>>>24&255,t.check=nA(t.check,xt,4,0)),Q=0,V=0,t.mode=ji;case ji:for(;V<16;){if(y===0)break e;y--,Q+=r[l++]<>8),t.flags&512&&t.wrap&4&&(xt[0]=Q&255,xt[1]=Q>>>8&255,t.check=nA(t.check,xt,2,0)),Q=0,V=0,t.mode=ga;case ga:if(t.flags&1024){for(;V<16;){if(y===0)break e;y--,Q+=r[l++]<>>8&255,t.check=nA(t.check,xt,2,0)),Q=0,V=0}else t.head&&(t.head.extra=null);t.mode=ma;case ma:if(t.flags&1024&&(z=t.length,z>y&&(z=y),z&&(t.head&&(Un=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(l,l+z),Un)),t.flags&512&&t.wrap&4&&(t.check=nA(t.check,r,z,l)),y-=z,l+=z,t.length-=z),t.length))break e;t.length=0,t.mode=hA;case hA:if(t.flags&2048){if(y===0)break e;z=0;do Un=r[l+z++],t.head&&Un&&t.length<65536&&(t.head.name+=String.fromCharCode(Un));while(Un&&z>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=Ua;break;case ka:for(;V<32;){if(y===0)break e;y--,Q+=r[l++]<>>=V&7,V-=V&7,t.mode=$s;break}for(;V<3;){if(y===0)break e;y--,Q+=r[l++]<>>=1,V-=1,Q&3){case 0:t.mode=HA;break;case 1:if(xf(t),t.mode=XA,n===Zi){Q>>>=2,V-=2;break e}break;case 2:t.mode=Na;break;case 3:e.msg="invalid block type",t.mode=Li}Q>>>=2,V-=2;break;case HA:for(Q>>>=V&7,V-=V&7;V<32;){if(y===0)break e;y--,Q+=r[l++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=Li;break}if(t.length=Q&65535,Q=0,V=0,t.mode=Gs,n===Zi)break e;case Gs:t.mode=lu;case lu:if(z=t.length,z){if(z>y&&(z=y),z>S&&(z=S),z===0)break e;o.set(r.subarray(l,l+z),w),y-=z,l+=z,S-=z,w+=z,t.length-=z;break}t.mode=Ua;break;case Na:for(;V<14;){if(y===0)break e;y--,Q+=r[l++]<>>=5,V-=5,t.ndist=(Q&31)+1,Q>>>=5,V-=5,t.ncode=(Q&15)+4,Q>>>=4,V-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=Li;break}t.have=0,t.mode=Ru;case Ru:for(;t.have>>=3,V-=3}for(;t.have<19;)t.lens[At[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,sn={bits:t.lenbits},Gt=uo(kr,t.lens,0,19,t.lencode,0,t.work,sn),t.lenbits=sn.bits,Gt){e.msg="invalid code lengths set",t.mode=Li;break}t.have=0,t.mode=$A;case $A:for(;t.have>>24,Mt=it>>>16&255,Ot=it&65535,!(He<=V);){if(y===0)break e;y--,Q+=r[l++]<>>=He,V-=He,t.lens[t.have++]=Ot;else{if(Ot===16){for(_e=He+2;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=He,V-=He,t.have===0){e.msg="invalid bit length repeat",t.mode=Li;break}Un=t.lens[t.have-1],z=3+(Q&3),Q>>>=2,V-=2}else if(Ot===17){for(_e=He+3;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=He,V-=He,Un=0,z=3+(Q&7),Q>>>=3,V-=3}else{for(_e=He+7;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=He,V-=He,Un=0,z=11+(Q&127),Q>>>=7,V-=7}if(t.have+z>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=Li;break}for(;z--;)t.lens[t.have++]=Un}}if(t.mode===Li)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=Li;break}if(t.lenbits=9,sn={bits:t.lenbits},Gt=uo(ro,t.lens,0,t.nlen,t.lencode,0,t.work,sn),t.lenbits=sn.bits,Gt){e.msg="invalid literal/lengths set",t.mode=Li;break}if(t.distbits=6,t.distcode=t.distdyn,sn={bits:t.distbits},Gt=uo(bi,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,sn),t.distbits=sn.bits,Gt){e.msg="invalid distances set",t.mode=Li;break}if(t.mode=XA,n===Zi)break e;case XA:t.mode=kA;case kA:if(y>=6&&S>=258){e.next_out=w,e.avail_out=S,e.next_in=l,e.avail_in=y,t.hold=Q,t.bits=V,Vo(e,Le),w=e.next_out,o=e.output,S=e.avail_out,l=e.next_in,r=e.input,y=e.avail_in,Q=t.hold,V=t.bits,t.mode===Ua&&(t.back=-1);break}for(t.back=0;it=t.lencode[Q&(1<>>24,Mt=it>>>16&255,Ot=it&65535,!(He<=V);){if(y===0)break e;y--,Q+=r[l++]<>Ct)],He=it>>>24,Mt=it>>>16&255,Ot=it&65535,!(Ct+He<=V);){if(y===0)break e;y--,Q+=r[l++]<>>=Ct,V-=Ct,t.back+=Ct}if(Q>>>=He,V-=He,t.back+=He,t.length=Ot,Mt===0){t.mode=Ts;break}if(Mt&32){t.back=-1,t.mode=Ua;break}if(Mt&64){e.msg="invalid literal/length code",t.mode=Li;break}t.extra=Mt&15,t.mode=YA;case YA:if(t.extra){for(_e=t.extra;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=t.extra,V-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=JA;case JA:for(;it=t.distcode[Q&(1<>>24,Mt=it>>>16&255,Ot=it&65535,!(He<=V);){if(y===0)break e;y--,Q+=r[l++]<>Ct)],He=it>>>24,Mt=it>>>16&255,Ot=it&65535,!(Ct+He<=V);){if(y===0)break e;y--,Q+=r[l++]<>>=Ct,V-=Ct,t.back+=Ct}if(Q>>>=He,V-=He,t.back+=He,Mt&64){e.msg="invalid distance code",t.mode=Li;break}t.offset=Ot,t.extra=Mt&15,t.mode=xs;case xs:if(t.extra){for(_e=t.extra;V<_e;){if(y===0)break e;y--,Q+=r[l++]<>>=t.extra,V-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=Li;break}t.mode=vl;case vl:if(S===0)break e;if(z=Le-S,t.offset>z){if(z=t.offset-z,z>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=Li;break}z>t.wnext?(z-=t.wnext,ot=t.wsize-z):ot=t.wnext-z,z>t.length&&(z=t.length),qe=t.window}else qe=o,ot=w-t.offset,z=t.length;z>S&&(z=S),S-=z,t.length-=z;do o[w++]=qe[ot++];while(--z);t.length===0&&(t.mode=kA);break;case Ts:if(S===0)break e;o[w++]=t.length,S--,t.mode=kA;break;case $s:if(t.wrap){for(;V<32;){if(y===0)break e;y--,Q|=r[l++]<{if(qA(e))return Wr;let n=e.state;return n.window&&(n.window=null),e.state=null,Da},Sf=(e,n)=>{if(qA(e))return Wr;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,Da):Wr},vh=(e,n)=>{const t=n.length;let r,o,l;return qA(e)||(r=e.state,r.wrap!==0&&r.mode!==Vi)?Wr:r.mode===Vi&&(o=1,o=ra(o,n,t,0),o!==r.check)?Ci:(l=kd(e,n,t,t),l?(r.mode=uu,Fa):(r.havedict=1,Da))};var Ff=jd,If=Md,yh=KA,wh=du,Bh=cu,Kd=nd,gc=rd,od=Sf,id=vh,ad="pako inflate (from Nodeca project)",yl={inflateReset:Ff,inflateReset2:If,inflateResetKeep:yh,inflateInit:wh,inflateInit2:Bh,inflate:Kd,inflateEnd:gc,inflateGetHeader:od,inflateSetDictionary:id,inflateInfo:ad};function Uf(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Lf=Uf;const Nf=Object.prototype.toString,{Z_NO_FLUSH:mc,Z_FINISH:_u,Z_OK:ju,Z_STREAM_END:Mu,Z_NEED_DICT:Hu,Z_STREAM_ERROR:Qf,Z_DATA_ERROR:ui,Z_MEM_ERROR:Ei}=xl;function gA(e){this.options=rt.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nn,this.strm.avail_out=0;let t=yl.inflateInit2(this.strm,n.windowBits);if(t!==ju)throw new Error(Os[t]);if(this.header=new Lf,yl.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=rn.string2buf(n.dictionary):Nf.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=yl.inflateSetDictionary(this.strm,n.dictionary),t!==ju)))throw new Error(Os[t])}gA.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize,o=this.options.dictionary;let l,w,y;if(this.ended)return!1;for(n===~~n?w=n:w=n===!0?_u:mc,Nf.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),l=yl.inflate(t,w),l===Hu&&o&&(l=yl.inflateSetDictionary(t,o),l===ju?l=yl.inflate(t,w):l===ui&&(l=Hu));t.avail_in>0&&l===Mu&&t.state.wrap>0&&e[t.next_in]!==0;)yl.inflateReset(t),l=yl.inflate(t,w);switch(l){case Qf:case ui:case Hu:case Ei:return this.onEnd(l),this.ended=!0,!1}if(y=t.avail_out,t.next_out&&(t.avail_out===0||l===Mu))if(this.options.to==="string"){let S=rn.utf8border(t.output,t.next_out),Q=t.next_out-S,V=rn.buf2string(t.output,S);t.next_out=Q,t.avail_out=r-Q,Q&&t.output.set(t.output.subarray(S,S+Q),0),this.onData(V)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(l===ju&&y===0)){if(l===Mu)return l=yl.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},gA.prototype.onData=function(e){this.chunks.push(e)},gA.prototype.onEnd=function(e){e===ju&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=rt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function es(e,n){const t=new gA(n);if(t.push(e),t.err)throw t.msg||Os[t.err];return t.result}function ZA(e,n){return n=n||{},n.raw=!0,es(e,n)}var fu=gA,hu=es,pu=ZA,ku=es,zl=xl,bh={Inflate:fu,inflate:hu,inflateRaw:pu,ungzip:ku,constants:zl};const{Deflate:Of,deflate:Fp,deflateRaw:Ip,gzip:Up}=Hr,{Inflate:Lp,inflate:y0,inflateRaw:Ch,ungzip:w0}=bh;var B0=Of,Eh=Fp,b0=Ip,C0=Up,xh=Lp,zd=y0,Df=Ch,E0=w0,x0=xl,Ig={Deflate:B0,deflate:Eh,deflateRaw:b0,gzip:C0,Inflate:xh,inflate:zd,inflateRaw:Df,ungzip:E0,constants:x0};const Sh=[];for(let e=0;e<256;e++){let n=e;for(let t=0;t<8;t++)n&1?n=3988292384^n>>>1:n=n>>>1;Sh[e]=n}const Fh=4294967295;function Np(e,n,t){let r=e;for(let o=0;o>>8;return r}function S0(e,n){return(Np(Fh,e,n)^Fh)>>>0}function vc(e,n,t){const r=e.readUint32(),o=S0(new Uint8Array(e.buffer,e.byteOffset+e.offset-n-4,n),n);if(o!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${o}`)}function Qp(e,n){e.writeUint32(S0(new Uint8Array(e.buffer,e.byteOffset+e.offset-n,n),n))}function CA(e,n,t){for(let r=0;r>1)&255}else{for(;l>1)&255;for(;l>1)&255}}function mu(e,n,t,r,o){let l=0;if(t.length===0){for(;l=t||Hn>=r))for(let Un=0;Un>8&255}const U0=new Uint16Array([255]),Wd=new Uint8Array(U0.buffer)[0]===255,Pp=new Uint8Array(0);function L0(e){const{data:n,width:t,height:r,channels:o,depth:l}=e,w=Math.ceil(l/8)*o,y=Math.ceil(l/8*o*t),S=new Uint8Array(r*y);let Q=Pp,V=0,fe,Le;for(let z=0;z>8&255}const Gd=Uint8Array.of(137,80,78,71,13,10,26,10);function Ug(e){e.writeBytes(Gd)}function Pf(e){if(!Rp(e.readBytes(Gd.length)))throw new Error("wrong PNG signature")}function Rp(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const Uh=/^[\u0000-\u00FF]*$/;function Tf(e){if(!Uh.test(e))throw new Error("invalid latin1 text")}function P0(e,n,t){const r=T0(n);e[r]=R0(n,t-r.length-1)}function Lg(e,n,t){D0(n),Tf(t);const r=n.length+1+t.length;e.writeUint32(r),e.writeChars(N0),e.writeChars(n),e.writeByte(Q0),e.writeChars(t),writeCrc(e,r+4)}function T0(e){for(e.mark();e.readByte()!==Q0;);const n=e.offset;e.reset();const t=O0.decode(e.readBytes(n-e.offset-1));return e.skip(1),D0(t),t}function R0(e,n){return O0.decode(e.readBytes(n))}const rl={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Lh={UNKNOWN:-1,DEFLATE:0},_0={UNKNOWN:-1,ADAPTIVE:0},Nh={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Rf={NONE:0,BACKGROUND:1,PREVIOUS:2},$d={SOURCE:0,OVER:1};class _p extends ri{constructor(t,r={}){super(t);xa(this,"_checkCrc");xa(this,"_inflator");xa(this,"_png");xa(this,"_apng");xa(this,"_end");xa(this,"_hasPalette");xa(this,"_palette");xa(this,"_hasTransparency");xa(this,"_transparency");xa(this,"_compressionMethod");xa(this,"_filterMethod");xa(this,"_interlaceMethod");xa(this,"_colorType");xa(this,"_isAnimated");xa(this,"_numberOfFrames");xa(this,"_numberOfPlays");xa(this,"_frames");xa(this,"_writingDataChunks");const{checkCrc:o=!1}=r;this._checkCrc=o,this._inflator=new xh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Lh.UNKNOWN,this._filterMethod=_0.UNKNOWN,this._interlaceMethod=Nh.UNKNOWN,this._colorType=rl.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Pf(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(Pf(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const o=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case N0:P0(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?vc(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const o=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,r),this.offset=o+t;break}if(this.offset-o!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?vc(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=Qh(this.readUint8());const r=this.readUint8();this._colorType=r;let o;switch(r){case rl.GREYSCALE:o=1;break;case rl.TRUECOLOUR:o=3;break;case rl.INDEXED_COLOUR:o=1;break;case rl.GREYSCALE_ALPHA:o=2;break;case rl.TRUECOLOUR_ALPHA:o=4;break;case rl.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=o,this._compressionMethod=this.readUint8(),this._compressionMethod!==Lh.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const o=[];this._palette=o;for(let l=0;lthis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;rthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r{const S=((w+r.yOffset)*this._png.width+r.xOffset+y)*this._png.channels,Q=(w*r.width+y)*this._png.channels;return{index:S,frameIndex:Q}};switch(r.blendOp){case $d.SOURCE:for(let w=0;wr.at(-1)!==255);this.writeUint32(t.length),this.writeChars("tRNS");for(const r of t)this.writeByte(r.at(-1));writeCrc(this,4+t.length)}encodeIDAT(t){this.writeUint32(t.length),this.writeChars("IDAT"),this.writeBytes(t),writeCrc(this,t.length+4)}encodeData(){const{width:t,height:r,channels:o,depth:l,data:w}=this._png,y=l<=8?Math.ceil(t*l/8)*o:Math.ceil(t*l/8*o/2),S=new IOBuffer().setBigEndian();let Q=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Le=0;Le0)return e;throw new TypeError(`${n} must be a positive integer`)}function _f(e,n){const{channels:t=4,depth:r=8}=e;if(t!==4&&t!==3&&t!==2&&t!==1)throw new RangeError(`unsupported number of channels: ${t}`);const o={channels:t,depth:r,colorType:ColorType.UNKNOWN};switch(t){case 4:o.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:o.colorType=ColorType.TRUECOLOUR;break;case 1:n?o.colorType=ColorType.INDEXED_COLOUR:o.colorType=ColorType.GREYSCALE;break;case 2:o.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return o}function wl(e,n,t,r){for(let o=0;o>8&255),t.writeByte(Ot&255)}}return r}function La(e,n,t,r){for(let o=0;o=200&&n.status<=299}function Mf(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var zu=ei.saveAs||((typeof window=="undefined"?"undefined":(0,s.Z)(window))!=="object"||window!==ei?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(e,n,t){var r=ei.URL||ei.webkitURL,o=document.createElement("a");n=n||e.name||"download",o.download=n,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?Ph(o.href)?Dh(e,n,t):Mf(o,o.target="_blank"):Mf(o)):(o.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(o.href)},4e4),setTimeout(function(){Mf(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,t){if(n=n||e.name||"download",typeof e=="string")if(Ph(e))Dh(e,n,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Mf(r)})}else navigator.msSaveOrOpenBlob(function(o,l){return l===void 0?l={autoBom:!1}:(0,s.Z)(l)!=="object"&&(Ka.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(e,t),n)}:function(e,n,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Dh(e,n,t);var o=e.type==="application/octet-stream",l=/constructor/i.test(ei.HTMLElement)||ei.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||o&&l)&&(typeof FileReader=="undefined"?"undefined":(0,s.Z)(FileReader))==="object"){var y=new FileReader;y.onloadend=function(){var V=y.result;V=w?V:V.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=V:location=V,r=null},y.readAsDataURL(e)}else{var S=ei.URL||ei.webkitURL,Q=S.createObjectURL(e);r?r.location=Q:location.href=Q,r=null,setTimeout(function(){S.revokeObjectURL(Q)},4e4)}});function j0(e){var n;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(y){return[parseInt(y[1]),parseInt(y[2]),parseInt(y[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(y){return[parseInt(y[1],16),parseInt(y[2],16),parseInt(y[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(y){return[parseInt(y[1]+y[1],16),parseInt(y[2]+y[2],16),parseInt(y[3]+y[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var y=this.r.toString(16),S=this.g.toString(16),Q=this.b.toString(16);return y.length==1&&(y="0"+y),S.length==1&&(S="0"+S),Q.length==1&&(Q="0"+Q),"#"+y+S+Q}}var Xd=ei.atob.bind(ei),Th=ei.btoa.bind(ei);function Yd(e,n){var t=e[0],r=e[1],o=e[2],l=e[3];t=Ss(t,r,o,l,n[0],7,-680876936),l=Ss(l,t,r,o,n[1],12,-389564586),o=Ss(o,l,t,r,n[2],17,606105819),r=Ss(r,o,l,t,n[3],22,-1044525330),t=Ss(t,r,o,l,n[4],7,-176418897),l=Ss(l,t,r,o,n[5],12,1200080426),o=Ss(o,l,t,r,n[6],17,-1473231341),r=Ss(r,o,l,t,n[7],22,-45705983),t=Ss(t,r,o,l,n[8],7,1770035416),l=Ss(l,t,r,o,n[9],12,-1958414417),o=Ss(o,l,t,r,n[10],17,-42063),r=Ss(r,o,l,t,n[11],22,-1990404162),t=Ss(t,r,o,l,n[12],7,1804603682),l=Ss(l,t,r,o,n[13],12,-40341101),o=Ss(o,l,t,r,n[14],17,-1502002290),t=gs(t,r=Ss(r,o,l,t,n[15],22,1236535329),o,l,n[1],5,-165796510),l=gs(l,t,r,o,n[6],9,-1069501632),o=gs(o,l,t,r,n[11],14,643717713),r=gs(r,o,l,t,n[0],20,-373897302),t=gs(t,r,o,l,n[5],5,-701558691),l=gs(l,t,r,o,n[10],9,38016083),o=gs(o,l,t,r,n[15],14,-660478335),r=gs(r,o,l,t,n[4],20,-405537848),t=gs(t,r,o,l,n[9],5,568446438),l=gs(l,t,r,o,n[14],9,-1019803690),o=gs(o,l,t,r,n[3],14,-187363961),r=gs(r,o,l,t,n[8],20,1163531501),t=gs(t,r,o,l,n[13],5,-1444681467),l=gs(l,t,r,o,n[2],9,-51403784),o=gs(o,l,t,r,n[7],14,1735328473),t=Fs(t,r=gs(r,o,l,t,n[12],20,-1926607734),o,l,n[5],4,-378558),l=Fs(l,t,r,o,n[8],11,-2022574463),o=Fs(o,l,t,r,n[11],16,1839030562),r=Fs(r,o,l,t,n[14],23,-35309556),t=Fs(t,r,o,l,n[1],4,-1530992060),l=Fs(l,t,r,o,n[4],11,1272893353),o=Fs(o,l,t,r,n[7],16,-155497632),r=Fs(r,o,l,t,n[10],23,-1094730640),t=Fs(t,r,o,l,n[13],4,681279174),l=Fs(l,t,r,o,n[0],11,-358537222),o=Fs(o,l,t,r,n[3],16,-722521979),r=Fs(r,o,l,t,n[6],23,76029189),t=Fs(t,r,o,l,n[9],4,-640364487),l=Fs(l,t,r,o,n[12],11,-421815835),o=Fs(o,l,t,r,n[15],16,530742520),t=Is(t,r=Fs(r,o,l,t,n[2],23,-995338651),o,l,n[0],6,-198630844),l=Is(l,t,r,o,n[7],10,1126891415),o=Is(o,l,t,r,n[14],15,-1416354905),r=Is(r,o,l,t,n[5],21,-57434055),t=Is(t,r,o,l,n[12],6,1700485571),l=Is(l,t,r,o,n[3],10,-1894986606),o=Is(o,l,t,r,n[10],15,-1051523),r=Is(r,o,l,t,n[1],21,-2054922799),t=Is(t,r,o,l,n[8],6,1873313359),l=Is(l,t,r,o,n[15],10,-30611744),o=Is(o,l,t,r,n[6],15,-1560198380),r=Is(r,o,l,t,n[13],21,1309151649),t=Is(t,r,o,l,n[4],6,-145523070),l=Is(l,t,r,o,n[11],10,-1120210379),o=Is(o,l,t,r,n[2],15,718787259),r=Is(r,o,l,t,n[9],21,-343485551),e[0]=Zl(t,e[0]),e[1]=Zl(r,e[1]),e[2]=Zl(o,e[2]),e[3]=Zl(l,e[3])}function Jd(e,n,t,r,o,l){return n=Zl(Zl(n,e),Zl(r,l)),Zl(n<>>32-o,t)}function Ss(e,n,t,r,o,l,w){return Jd(n&t|~n&r,e,n,o,l,w)}function gs(e,n,t,r,o,l,w){return Jd(n&r|t&~r,e,n,o,l,w)}function Fs(e,n,t,r,o,l,w){return Jd(n^t^r,e,n,o,l,w)}function Is(e,n,t,r,o,l,w){return Jd(t^(n|~r),e,n,o,l,w)}function M0(e){var n,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=e.length;n+=64)Yd(r,Hf(e.substring(n-64,n)));e=e.substring(n-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=e.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(Yd(r,o),n=0;n<16;n++)o[n]=0;return o[14]=8*t,Yd(r,o),r}function Hf(e){var n,t=[];for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}var ol="0123456789abcdef".split("");function H0(e){for(var n="",t=0;t<4;t++)n+=ol[e>>8*t+4&15]+ol[e>>8*t&15];return n}function kf(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Rh(e){return M0(e).map(kf).join("")}var Hp=function(e){for(var n=0;n>16)+(n>>16)+(t>>16)<<16|65535&t}return e+n&4294967295}function Zu(e,n){var t,r,o,l;if(e!==t){for(var w=(o=e,l=1+(256/e.length|0),new Array(l+1).join(o)),y=[],S=0;S<256;S++)y[S]=S;var Q=0;for(S=0;S<256;S++){var V=y[S];Q=(Q+V+w.charCodeAt(S))%256,y[S]=y[Q],y[Q]=V}t=e,r=y}else y=r;var fe=n.length,Le=0,z=0,ot="";for(S=0;S\x80/\f\xA9\xFEdSiz";var l=(n+this.padding).substr(0,32),w=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(l,w),this.P=-(1+(255^o)),this.encryptionKey=Rh(l+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Zu(this.encryptionKey,this.padding)}function Nl(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var n="",t=e.length,r=0;r126?"#"+("0"+o.toString(16)).slice(-2):e[r]}return n}function k0(e){if((0,s.Z)(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,r,o){if(o=o||!1,typeof t!="string"||typeof r!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var l=Math.random().toString(35);return n[t][l]=[r,!!o],l},this.unsubscribe=function(t){for(var r in n)if(n[r][t])return delete n[r][t],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(t){if(n.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var l in n[t]){var w=n[t][l];try{w[0].apply(e,r)}catch(y){ei.console&&Ka.error("jsPDF PubSub Error",y.message,y)}w[1]&&o.push(l)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function ef(e){if(!(this instanceof ef))return new ef(e);var n="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&n.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function _h(e,n){this.gState=e,this.matrix=n,this.id="",this.objectNumber=-1}function Vu(e,n,t,r,o){if(!(this instanceof Vu))return new Vu(e,n,t,r,o);this.type=e==="axial"?2:3,this.coords=n,this.colors=t,_h.call(this,r,o)}function Wu(e,n,t,r,o){if(!(this instanceof Wu))return new Wu(e,n,t,r,o);this.boundingBox=e,this.xStep=n,this.yStep=t,this.stream="",this.cloneIndex=0,_h.call(this,r,o)}function yo(e){var n,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],o=arguments[2],l=arguments[3],w=[],y=1,S=16,Q="S",V=null;(0,s.Z)(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,o=e.format||o,l=e.compress||e.compressPdf||l,(V=e.encryption||null)!==null&&(V.userPassword=V.userPassword||"",V.ownerPassword=V.ownerPassword||"",V.userPermissions=V.userPermissions||[]),y=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(n=e.precision),e.floatPrecision!==void 0&&(S=e.floatPrecision),Q=e.defaultPathOperation||"S"),w=e.filters||(l===!0?["FlateEncode"]:w),r=r||"mm",t=(""+(t||"P")).toLowerCase();var fe=e.putOnlyUsedFonts||!1,Le={},z={internal:{},__private__:{}};z.__private__.PubSub=k0;var ot="1.3",qe=z.__private__.getPdfVersion=function(){return ot};z.__private__.setPdfVersion=function(F){ot=F};var it={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};z.__private__.getPageFormats=function(){return it};var He=z.__private__.getPageFormat=function(F){return it[F]};o=o||"a4";var Mt="compat",Ot="advanced",Ct=Mt;function vn(){this.saveGraphicsState(),st(new Jo(xi,0,0,-xi,0,uf()*xi).toString()+" cm"),this.setFontSize(this.getFontSize()/xi),Q="n",Ct=Ot}function Hn(){this.restoreGraphicsState(),Q="S",Ct=Mt}var Un=z.__private__.combineFontStyleAndFontWeight=function(F,ye){if(F=="bold"&&ye=="normal"||F=="bold"&&ye==400||F=="normal"&&ye=="italic"||F=="bold"&&ye=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ye&&(F=ye==400||ye==="normal"?F==="italic"?"italic":"normal":ye!=700&&ye!=="bold"||F!=="normal"?(ye==700?"bold":ye)+""+F:"bold"),F};z.advancedAPI=function(F){var ye=Ct===Mt;return ye&&vn.call(this),typeof F!="function"||(F(this),ye&&Hn.call(this)),this},z.compatAPI=function(F){var ye=Ct===Ot;return ye&&Hn.call(this),typeof F!="function"||(F(this),ye&&vn.call(this)),this},z.isAdvancedAPI=function(){return Ct===Ot};var Gt,xt=function(F){if(Ct!==Ot)throw new Error(F+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},sn=z.roundToPrecision=z.__private__.roundToPrecision=function(F,ye){var gt=n||ye;if(isNaN(F)||isNaN(gt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return F.toFixed(gt).replace(/0+$/,"")};Gt=z.hpf=z.__private__.hpf=typeof S=="number"?function(F){if(isNaN(F))throw new Error("Invalid argument passed to jsPDF.hpf");return sn(F,S)}:S==="smart"?function(F){if(isNaN(F))throw new Error("Invalid argument passed to jsPDF.hpf");return sn(F,F>-1&&F<1?16:5)}:function(F){if(isNaN(F))throw new Error("Invalid argument passed to jsPDF.hpf");return sn(F,16)};var _e=z.f2=z.__private__.f2=function(F){if(isNaN(F))throw new Error("Invalid argument passed to jsPDF.f2");return sn(F,2)},At=z.__private__.f3=function(F){if(isNaN(F))throw new Error("Invalid argument passed to jsPDF.f3");return sn(F,3)},jt=z.scale=z.__private__.scale=function(F){if(isNaN(F))throw new Error("Invalid argument passed to jsPDF.scale");return Ct===Mt?F*xi:Ct===Ot?F:void 0},Tt=function(F){return jt(function(ye){return Ct===Mt?uf()-ye:Ct===Ot?ye:void 0}(F))};z.__private__.setPrecision=z.setPrecision=function(F){typeof parseInt(F,10)=="number"&&(n=parseInt(F,10))};var Bn,Fn="00000000000000000000000000000000",Nn=z.__private__.getFileId=function(){return Fn},gn=z.__private__.setFileId=function(F){return Fn=F!==void 0&&/^[a-fA-F0-9]{32}$/.test(F)?F.toUpperCase():Fn.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),V!==null&&(ms=new sd(V.userPermissions,V.userPassword,V.ownerPassword,Fn)),Fn};z.setFileId=function(F){return gn(F),this},z.getFileId=function(){return Nn()};var Tn=z.__private__.convertDateToPDFDate=function(F){var ye=F.getTimezoneOffset(),gt=ye<0?"+":"-",_t=Math.floor(Math.abs(ye/60)),An=Math.abs(ye%60),Zn=[gt,Lt(_t),"'",Lt(An),"'"].join("");return["D:",F.getFullYear(),Lt(F.getMonth()+1),Lt(F.getDate()),Lt(F.getHours()),Lt(F.getMinutes()),Lt(F.getSeconds()),Zn].join("")},Ir=z.__private__.convertPDFDateToDate=function(F){var ye=parseInt(F.substr(2,4),10),gt=parseInt(F.substr(6,2),10)-1,_t=parseInt(F.substr(8,2),10),An=parseInt(F.substr(10,2),10),Zn=parseInt(F.substr(12,2),10),ir=parseInt(F.substr(14,2),10);return new Date(ye,gt,_t,An,Zn,ir,0)},or=z.__private__.setCreationDate=function(F){var ye;if(F===void 0&&(F=new Date),F instanceof Date)ye=Tn(F);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(F))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ye=F}return Bn=ye},Pe=z.__private__.getCreationDate=function(F){var ye=Bn;return F==="jsDate"&&(ye=Ir(Bn)),ye};z.setCreationDate=function(F){return or(F),this},z.getCreationDate=function(F){return Pe(F)};var bt,Lt=z.__private__.padd2=function(F){return("0"+parseInt(F)).slice(-2)},Ht=z.__private__.padd2Hex=function(F){return("00"+(F=F.toString())).substr(F.length)},Jt=0,fn=[],Ln=[],On=0,$n=[],wr=[],$r=!1,Gr=Ln;z.__private__.setCustomOutputDestination=function(F){$r=!0,Gr=F};var Qo=function(F){$r||(Gr=F)};z.__private__.resetCustomOutputDestination=function(){$r=!1,Gr=Ln};var st=z.__private__.out=function(F){return F=F.toString(),On+=F.length+1,Gr.push(F),Gr},Xr=z.__private__.write=function(F){return st(arguments.length===1?F.toString():Array.prototype.join.call(arguments," "))},Ri=z.__private__.getArrayBuffer=function(F){for(var ye=F.length,gt=new ArrayBuffer(ye),_t=new Uint8Array(gt);ye--;)_t[ye]=F.charCodeAt(ye);return gt},Go=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];z.__private__.getStandardFonts=function(){return Go};var dr=e.fontSize||16;z.__private__.setFontSize=z.setFontSize=function(F){return dr=Ct===Ot?F/xi:F,this};var $o,po=z.__private__.getFontSize=z.getFontSize=function(){return Ct===Mt?dr:dr*xi},ko=e.R2L||!1;z.__private__.setR2L=z.setR2L=function(F){return ko=F,this},z.__private__.getR2L=z.getR2L=function(){return ko};var To,Pa=z.__private__.setZoomMode=function(F){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(F))$o=F;else if(isNaN(F)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(F)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+F+'" is not recognized.');$o=F}else $o=parseInt(F,10)};z.__private__.getZoomMode=function(){return $o};var oa,mi=z.__private__.setPageMode=function(F){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(F)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+F+'" is not recognized.');To=F};z.__private__.getPageMode=function(){return To};var ca=z.__private__.setLayoutMode=function(F){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(F)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+F+'" is not recognized.');oa=F};z.__private__.getLayoutMode=function(){return oa},z.__private__.setDisplayMode=z.setDisplayMode=function(F,ye,gt){return Pa(F),ca(ye),mi(gt),this};var ia={title:"",subject:"",author:"",keywords:"",creator:""};z.__private__.getDocumentProperty=function(F){if(Object.keys(ia).indexOf(F)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ia[F]},z.__private__.getDocumentProperties=function(){return ia},z.__private__.setDocumentProperties=z.setProperties=z.setDocumentProperties=function(F){for(var ye in ia)ia.hasOwnProperty(ye)&&F[ye]&&(ia[ye]=F[ye]);return this},z.__private__.setDocumentProperty=function(F,ye){if(Object.keys(ia).indexOf(F)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ia[F]=ye};var xo,xi,Uo,ts,ba,Mi={},Hi={},xA=[],jo={},iA={},ni={},vi={},SA=null,Gi=0,Yo=[],Ta=new k0(z),tf=e.hotfixes||[],qs={},Ec={},qu=[],Jo=function F(ye,gt,_t,An,Zn,ir){if(!(this instanceof F))return new F(ye,gt,_t,An,Zn,ir);isNaN(ye)&&(ye=1),isNaN(gt)&&(gt=0),isNaN(_t)&&(_t=0),isNaN(An)&&(An=1),isNaN(Zn)&&(Zn=0),isNaN(ir)&&(ir=0),this._matrix=[ye,gt,_t,An,Zn,ir]};Object.defineProperty(Jo.prototype,"sx",{get:function(){return this._matrix[0]},set:function(F){this._matrix[0]=F}}),Object.defineProperty(Jo.prototype,"shy",{get:function(){return this._matrix[1]},set:function(F){this._matrix[1]=F}}),Object.defineProperty(Jo.prototype,"shx",{get:function(){return this._matrix[2]},set:function(F){this._matrix[2]=F}}),Object.defineProperty(Jo.prototype,"sy",{get:function(){return this._matrix[3]},set:function(F){this._matrix[3]=F}}),Object.defineProperty(Jo.prototype,"tx",{get:function(){return this._matrix[4]},set:function(F){this._matrix[4]=F}}),Object.defineProperty(Jo.prototype,"ty",{get:function(){return this._matrix[5]},set:function(F){this._matrix[5]=F}}),Object.defineProperty(Jo.prototype,"a",{get:function(){return this._matrix[0]},set:function(F){this._matrix[0]=F}}),Object.defineProperty(Jo.prototype,"b",{get:function(){return this._matrix[1]},set:function(F){this._matrix[1]=F}}),Object.defineProperty(Jo.prototype,"c",{get:function(){return this._matrix[2]},set:function(F){this._matrix[2]=F}}),Object.defineProperty(Jo.prototype,"d",{get:function(){return this._matrix[3]},set:function(F){this._matrix[3]=F}}),Object.defineProperty(Jo.prototype,"e",{get:function(){return this._matrix[4]},set:function(F){this._matrix[4]=F}}),Object.defineProperty(Jo.prototype,"f",{get:function(){return this._matrix[5]},set:function(F){this._matrix[5]=F}}),Object.defineProperty(Jo.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Jo.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Jo.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Jo.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Jo.prototype.join=function(F){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Gt).join(F)},Jo.prototype.multiply=function(F){var ye=F.sx*this.sx+F.shy*this.shx,gt=F.sx*this.shy+F.shy*this.sy,_t=F.shx*this.sx+F.sy*this.shx,An=F.shx*this.shy+F.sy*this.sy,Zn=F.tx*this.sx+F.ty*this.shx+this.tx,ir=F.tx*this.shy+F.ty*this.sy+this.ty;return new Jo(ye,gt,_t,An,Zn,ir)},Jo.prototype.decompose=function(){var F=this.sx,ye=this.shy,gt=this.shx,_t=this.sy,An=this.tx,Zn=this.ty,ir=Math.sqrt(F*F+ye*ye),go=(F/=ir)*gt+(ye/=ir)*_t;gt-=F*go,_t-=ye*go;var So=Math.sqrt(gt*gt+_t*_t);return go/=So,F*(_t/=So)>16&255,_t=So>>8&255,An=255&So}if(_t===void 0||Zn===void 0&>===_t&&_t===An)ye=typeof gt=="string"?gt+" "+ir[0]:F.precision===2?_e(gt/255)+" "+ir[0]:At(gt/255)+" "+ir[0];else if(Zn===void 0||(0,s.Z)(Zn)==="object"){if(Zn&&!isNaN(Zn.a)&&Zn.a===0)return["1.","1.","1.",ir[1]].join(" ");ye=typeof gt=="string"?[gt,_t,An,ir[1]].join(" "):F.precision===2?[_e(gt/255),_e(_t/255),_e(An/255),ir[1]].join(" "):[At(gt/255),At(_t/255),At(An/255),ir[1]].join(" ")}else ye=typeof gt=="string"?[gt,_t,An,Zn,ir[2]].join(" "):F.precision===2?[_e(gt),_e(_t),_e(An),_e(Zn),ir[2]].join(" "):[At(gt),At(_t),At(An),At(Zn),ir[2]].join(" ");return ye},Su=z.__private__.getFilters=function(){return w},Xl=z.__private__.putStream=function(F){var ye=(F=F||{}).data||"",gt=F.filters||Su(),_t=F.alreadyAppliedFilters||[],An=F.addLength1||!1,Zn=ye.length,ir=F.objectId,go=function(vs){return vs};if(V!==null&&ir===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");V!==null&&(go=ms.encryptor(ir,0));var So={};gt===!0&&(gt=["FlateEncode"]);var li=F.additionalKeyValues||[],Si=(So=yo.API.processDataByFilters!==void 0?yo.API.processDataByFilters(ye,gt):{data:ye,reverseChain:[]}).reverseChain+(Array.isArray(_t)?_t.join(" "):_t.toString());if(So.data.length!==0&&(li.push({key:"Length",value:So.data.length}),An===!0&&li.push({key:"Length1",value:Zn})),Si.length!=0)if(Si.split("/").length-1==1)li.push({key:"Filter",value:Si});else{li.push({key:"Filter",value:"["+Si+"]"});for(var Ca=0;Ca>"),So.data.length!==0&&(st("stream"),st(go(So.data)),st("endstream"))},rf=z.__private__.putPage=function(F){var ye=F.number,gt=F.data,_t=F.objId,An=F.contentsObjId;_s(_t,!0),st("<>"),st("endobj");var Zn=gt.join(` `);return Ct===Ot&&(Zn+=` -Q`),_s(An,!0),Xl({data:Zn,filters:Su(),objectId:An}),st("endobj"),_t},tc=z.__private__.putPages=function(){var I,we,gt=[];for(I=1;I<=Gi;I++)Yo[I].objId=Ls(),Yo[I].contentsObjId=Ls();for(I=1;I<=Gi;I++)gt.push(rf({number:I,data:wr[I],objId:Yo[I].objId,contentsObjId:Yo[I].contentsObjId,mediaBox:Yo[I].mediaBox,cropBox:Yo[I].cropBox,bleedBox:Yo[I].bleedBox,trimBox:Yo[I].trimBox,artBox:Yo[I].artBox,userUnit:Yo[I].userUnit,rootDictionaryObjId:dd,resourceDictionaryObjId:Eu}));_s(dd,!0),st("<>"),st("endobj"),Ta.publish("postPutPages")},of=function(I){Ta.publish("putFont",{font:I,out:st,newObject:VA,putStream:Xl}),I.isAlreadyPutted!==!0&&(I.objectNumber=VA(),st("<<"),st("/Type /Font"),st("/BaseFont /"+Nl(I.postScriptName)),st("/Subtype /Type1"),typeof I.encoding=="string"&&st("/Encoding /"+I.encoding),st("/FirstChar 32"),st("/LastChar 255"),st(">>"),st("endobj"))},zf=function(I){I.objectNumber=VA();var we=[];we.push({key:"Type",value:"/XObject"}),we.push({key:"Subtype",value:"/Form"}),we.push({key:"BBox",value:"["+[Gt(I.x),Gt(I.y),Gt(I.x+I.width),Gt(I.y+I.height)].join(" ")+"]"}),we.push({key:"Matrix",value:"["+I.matrix.toString()+"]"});var gt=I.pages[1].join(` -`);Xl({data:gt,additionalKeyValues:we,objectId:I.objectNumber}),st("endobj")},Zf=function(I,we){we||(we=21);var gt=VA(),_t=function(ir,go){var So,li=[],Si=1/(go-1);for(So=0;So<1;So+=Si)li.push(So);if(li.push(1),ir[0].offset!=0){var Ca={offset:0,color:ir[0].color};ir.unshift(Ca)}if(ir[ir.length-1].offset!=1){var DA={offset:1,color:ir[ir.length-1].color};ir.push(DA)}for(var us="",aA=0,vs=0;vsir[aA+1].offset;)aA++;var cs=ir[aA].offset,js=(So-cs)/(ir[aA+1].offset-cs),Dc=ir[aA].color,Iu=ir[aA+1].color;us+=Ht(Math.round((1-js)*Dc[0]+js*Iu[0]).toString(16))+Ht(Math.round((1-js)*Dc[1]+js*Iu[1]).toString(16))+Ht(Math.round((1-js)*Dc[2]+js*Iu[2]).toString(16))}return us.trim()}(I.colors,we),An=[];An.push({key:"FunctionType",value:"0"}),An.push({key:"Domain",value:"[0.0 1.0]"}),An.push({key:"Size",value:"["+we+"]"}),An.push({key:"BitsPerSample",value:"8"}),An.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),An.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Xl({data:_t,additionalKeyValues:An,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:gt}),st("endobj"),I.objectNumber=VA(),st("<< /ShadingType "+I.type),st("/ColorSpace /DeviceRGB");var Zn="/Coords ["+Gt(parseFloat(I.coords[0]))+" "+Gt(parseFloat(I.coords[1]))+" ";I.type===2?Zn+=Gt(parseFloat(I.coords[2]))+" "+Gt(parseFloat(I.coords[3])):Zn+=Gt(parseFloat(I.coords[2]))+" "+Gt(parseFloat(I.coords[3]))+" "+Gt(parseFloat(I.coords[4]))+" "+Gt(parseFloat(I.coords[5])),st(Zn+="]"),I.matrix&&st("/Matrix ["+I.matrix.toString()+"]"),st("/Function "+gt+" 0 R"),st("/Extend [true true]"),st(">>"),st("endobj")},Vf=function(I,we){var gt=Ls(),_t=VA();we.push({resourcesOid:gt,objectOid:_t}),I.objectNumber=_t;var An=[];An.push({key:"Type",value:"/Pattern"}),An.push({key:"PatternType",value:"1"}),An.push({key:"PaintType",value:"1"}),An.push({key:"TilingType",value:"1"}),An.push({key:"BBox",value:"["+I.boundingBox.map(Gt).join(" ")+"]"}),An.push({key:"XStep",value:Gt(I.xStep)}),An.push({key:"YStep",value:Gt(I.yStep)}),An.push({key:"Resources",value:gt+" 0 R"}),I.matrix&&An.push({key:"Matrix",value:"["+I.matrix.toString()+"]"}),Xl({data:I.stream,additionalKeyValues:An,objectId:I.objectNumber}),st("endobj")},Gp=function(I){for(var we in I.objectNumber=VA(),st("<<"),I)switch(we){case"opacity":st("/ca "+_e(I[we]));break;case"stroke-opacity":st("/CA "+_e(I[we]))}st(">>"),st("endobj")},Mh=function(I){_s(I.resourcesOid,!0),st("<<"),st("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var we in st("/Font <<"),Mi)Mi.hasOwnProperty(we)&&(fe===!1||fe===!0&&Le.hasOwnProperty(we))&&st("/"+we+" "+Mi[we].objectNumber+" 0 R");st(">>")}(),function(){if(Object.keys(jo).length>0){for(var we in st("/Shading <<"),jo)jo.hasOwnProperty(we)&&jo[we]instanceof Vu&&jo[we].objectNumber>=0&&st("/"+we+" "+jo[we].objectNumber+" 0 R");Ta.publish("putShadingPatternDict"),st(">>")}}(),function(we){if(Object.keys(jo).length>0){for(var gt in st("/Pattern <<"),jo)jo.hasOwnProperty(gt)&&jo[gt]instanceof z.TilingPattern&&jo[gt].objectNumber>=0&&jo[gt].objectNumber>")}}(I.objectOid),function(){if(Object.keys(ni).length>0){var we;for(we in st("/ExtGState <<"),ni)ni.hasOwnProperty(we)&&ni[we].objectNumber>=0&&st("/"+we+" "+ni[we].objectNumber+" 0 R");Ta.publish("putGStateDict"),st(">>")}}(),function(){for(var we in st("/XObject <<"),qs)qs.hasOwnProperty(we)&&qs[we].objectNumber>=0&&st("/"+we+" "+qs[we].objectNumber+" 0 R");Ta.publish("putXobjectDict"),st(">>")}(),st(">>"),st("endobj")},Z0=function(I){Hi[I.fontName]=Hi[I.fontName]||{},Hi[I.fontName][I.fontStyle]=I.id},V0=function(I,we,gt,_t,An){var Zn={id:"F"+(Object.keys(Mi).length+1).toString(10),postScriptName:I,fontName:we,fontStyle:gt,encoding:_t,isStandardFont:An||!1,metadata:{}};return Ta.publish("addFont",{font:Zn,instance:this}),Mi[Zn.id]=Zn,Z0(Zn),Zn.id},Yl=z.__private__.pdfEscape=z.pdfEscape=function(I,we){return function(gt,_t){var An,Zn,ir,go,So,li,Si,Ca,DA;if(ir=(_t=_t||{}).sourceEncoding||"Unicode",So=_t.outputEncoding,(_t.autoencode||So)&&Mi[xo].metadata&&Mi[xo].metadata[ir]&&Mi[xo].metadata[ir].encoding&&(go=Mi[xo].metadata[ir].encoding,!So&&Mi[xo].encoding&&(So=Mi[xo].encoding),!So&&go.codePages&&(So=go.codePages[0]),typeof So=="string"&&(So=go[So]),So)){for(Si=!1,li=[],An=0,Zn=gt.length;An>8&&(Si=!0);gt=li.join("")}for(An=gt.length;Si===void 0&&An!==0;)gt.charCodeAt(An-1)>>8&&(Si=!0),An--;if(!Si)return gt;for(li=_t.noBOM?[]:[254,255],An=0,Zn=gt.length;An>8)>>8)throw new Error("Character at position "+An+" of string '"+gt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");li.push(DA),li.push(Ca-(DA<<8))}return String.fromCharCode.apply(void 0,li)}(I,we).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Hh=z.__private__.beginPage=function(I){wr[++Gi]=[],Yo[Gi]={objId:0,contentsObjId:0,userUnit:Number(y),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(I[0]),topRightY:Number(I[1])}},G0(Gi),Qo(wr[bt])},W0=function(I,we){var gt,_t,An;switch(t=we||t,typeof I=="string"&&(gt=Me(I.toLowerCase()),Array.isArray(gt)&&(_t=gt[0],An=gt[1])),Array.isArray(I)&&(_t=I[0]*xi,An=I[1]*xi),isNaN(_t)&&(_t=o[0],An=o[1]),(_t>14400||An>14400)&&(Ka.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),_t=Math.min(14400,_t),An=Math.min(14400,An)),o=[_t,An],t.substr(0,1)){case"l":An>_t&&(o=[An,_t]);break;case"p":_t>An&&(o=[An,_t])}Hh(o),ci(zh),st(Xf),Vh!==0&&st(Vh+" J"),Wh!==0&&st(Wh+" j"),Ta.publish("addPage",{pageNumber:Gi})},kh=function(I){I>0&&I<=Gi&&(wr.splice(I,1),Yo.splice(I,1),Gi--,bt>Gi&&(bt=Gi),this.setPage(bt))},G0=function(I){I>0&&I<=Gi&&(bt=I)},$0=z.__private__.getNumberOfPages=z.getNumberOfPages=function(){return wr.length-1},X0=function(I,we,gt){var _t,An=void 0;return gt=gt||{},I=I!==void 0?I:Mi[xo].fontName,we=we!==void 0?we:Mi[xo].fontStyle,_t=I.toLowerCase(),Hi[_t]!==void 0&&Hi[_t][we]!==void 0?An=Hi[_t][we]:Hi[I]!==void 0&&Hi[I][we]!==void 0?An=Hi[I][we]:gt.disableWarning===!1&&Ka.warn("Unable to look up font label for font '"+I+"', '"+we+"'. Refer to getFontList() for available fonts."),An||gt.noFallback||(An=Hi.times[we])==null&&(An=Hi.times.normal),An},nc=z.__private__.putInfo=function(){var I=VA(),we=function(_t){return _t};for(var gt in V!==null&&(we=ms.encryptor(I,0)),st("<<"),st("/Producer ("+Yl(we("jsPDF "+yo.version))+")"),ia)ia.hasOwnProperty(gt)&&ia[gt]&&st("/"+gt.substr(0,1).toUpperCase()+gt.substr(1)+" ("+Yl(we(ia[gt]))+")");st("/CreationDate ("+Yl(we(Bn))+")"),st(">>"),st("endobj")},Wf=z.__private__.putCatalog=function(I){var we=(I=I||{}).rootDictionaryObjId||dd;switch(VA(),st("<<"),st("/Type /Catalog"),st("/Pages "+we+" 0 R"),$o||($o="fullwidth"),$o){case"fullwidth":st("/OpenAction [3 0 R /FitH null]");break;case"fullheight":st("/OpenAction [3 0 R /FitV null]");break;case"fullpage":st("/OpenAction [3 0 R /Fit]");break;case"original":st("/OpenAction [3 0 R /XYZ null null 1]");break;default:var gt=""+$o;gt.substr(gt.length-1)==="%"&&($o=parseInt($o)/100),typeof $o=="number"&&st("/OpenAction [3 0 R /XYZ null null "+_e($o)+"]")}switch(oa||(oa="continuous"),oa){case"continuous":st("/PageLayout /OneColumn");break;case"single":st("/PageLayout /SinglePage");break;case"two":case"twoleft":st("/PageLayout /TwoColumnLeft");break;case"tworight":st("/PageLayout /TwoColumnRight")}To&&st("/PageMode /"+To),Ta.publish("putCatalog"),st(">>"),st("endobj")},$p=z.__private__.putTrailer=function(){st("trailer"),st("<<"),st("/Size "+(Jt+1)),st("/Root "+Jt+" 0 R"),st("/Info "+(Jt-1)+" 0 R"),V!==null&&st("/Encrypt "+ms.oid+" 0 R"),st("/ID [ <"+Fn+"> <"+Fn+"> ]"),st(">>")},ls=z.__private__.putHeader=function(){st("%PDF-"+ot),st("%\xBA\xDF\xAC\xE0")},Y0=z.__private__.putXRef=function(){var I="0000000000";st("xref"),st("0 "+(Jt+1)),st("0000000000 65535 f ");for(var we=1;we<=Jt;we++)typeof fn[we]=="function"?st((I+fn[we]()).slice(-10)+" 00000 n "):fn[we]!==void 0?st((I+fn[we]).slice(-10)+" 00000 n "):st("0000000000 00000 n ")},rc=z.__private__.buildDocument=function(){var I;Jt=0,On=0,Ln=[],fn=[],$n=[],dd=Ls(),Eu=Ls(),Qo(Ln),Ta.publish("buildDocument"),ls(),tc(),function(){Ta.publish("putAdditionalObjects");for(var gt=0;gt<$n.length;gt++){var _t=$n[gt];_s(_t.objId,!0),st(_t.content),st("endobj")}Ta.publish("postPutAdditionalObjects")}(),I=[],function(){for(var gt in Mi)Mi.hasOwnProperty(gt)&&(fe===!1||fe===!0&&Le.hasOwnProperty(gt))&&of(Mi[gt])}(),function(){var gt;for(gt in ni)ni.hasOwnProperty(gt)&&Gp(ni[gt])}(),function(){for(var gt in qs)qs.hasOwnProperty(gt)&&zf(qs[gt])}(),function(gt){var _t;for(_t in jo)jo.hasOwnProperty(_t)&&(jo[_t]instanceof Vu?Zf(jo[_t]):jo[_t]instanceof Wu&&Vf(jo[_t],gt))}(I),Ta.publish("putResources"),I.forEach(Mh),Mh({resourcesOid:Eu,objectOid:Number.MAX_SAFE_INTEGER}),Ta.publish("postPutResources"),V!==null&&(ms.oid=VA(),st("<<"),st("/Filter /Standard"),st("/V "+ms.v),st("/R "+ms.r),st("/U <"+ms.toHexString(ms.U)+">"),st("/O <"+ms.toHexString(ms.O)+">"),st("/P "+ms.P),st(">>"),st("endobj")),nc(),Wf();var we=On;return Y0(),$p(),st("startxref"),st(""+we),st("%%EOF"),Qo(wr[bt]),Ln.join(` -`)},Gf=z.__private__.getBlob=function(I){return new Blob([Ri(I)],{type:"application/pdf"})},J0=z.output=z.__private__.output=($l=function(I,we){switch(typeof(we=we||{})=="string"?we={filename:we}:we.filename=we.filename||"generated.pdf",I){case void 0:return rc();case"save":z.save(we.filename);break;case"arraybuffer":return Ri(rc());case"blob":return Gf(rc());case"bloburi":case"bloburl":if(ei.URL!==void 0&&typeof ei.URL.createObjectURL=="function")return ei.URL&&ei.URL.createObjectURL(Gf(rc()))||void 0;Ka.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var gt="",_t=rc();try{gt=Th(_t)}catch(us){gt=Th(unescape(encodeURIComponent(_t)))}return"data:application/pdf;filename="+we.filename+";base64,"+gt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ei)==="[object Window]"){var An="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Zn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';we.pdfObjectUrl&&(An=we.pdfObjectUrl,Zn="");var ir='