(self.webpackChunk=self.webpackChunk||[]).push([[6776],{33463:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},28575:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},84249:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},81893:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},90674:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},55304:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},73148:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},56747:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},50881:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},22751:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},34182:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},74664:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},91034:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ue}});var b=z(87462),re=z(67294),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Pe=Se,Ie=z(74643),Fe=function(je,Oe){return re.createElement(Ie.Z,(0,b.Z)({},je,{ref:Oe,icon:Pe}))},ue=re.forwardRef(Fe)},71736:function(ut,Ue){"use strict";Ue.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},71822:function(ut,Ue){"use strict";Ue.Z={flex_box_center:"flex_box_center___iyIe6",flex_space_between:"flex_space_between___g2WjG",flex_box_vertical_center:"flex_box_vertical_center___Tde0v",flex_box_center_end:"flex_box_center_end___W1D5W",flex_box_column:"flex_box_column___ZiFvs",bg:"bg___T2R2s",containerTitle:"containerTitle___yARn_",containerDesc:"containerDesc___fKSYF",menus:"menus___e8wtg",listItem:"listItem___s7xhg",info:"info___Hx2bW",title:"title___W7a1R",titleLeft:"titleLeft___C5r0w",titleRight:"titleRight___g5GZv",acitons:"acitons___H0RU0",move:"move___qYkSy",hideHeadCheckbox:"hideHeadCheckbox___Hq5gw",moveCategory:"moveCategory___bZSGQ",tabSearch:"tabSearch___NaKI4",warpModal:"warpModal___HLUgh",modalColumn:"modalColumn___F7R5w",modalRow:"modalRow___L6ghw",sup:"sup___VGKXV",name:"name___QMvgh"}},39886:function(ut,Ue){"use strict";Ue.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},67795:function(ut,Ue){"use strict";Ue.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},44719:function(ut,Ue){"use strict";Ue.Z={flex_box_center:"flex_box_center___oQbDY",flex_space_between:"flex_space_between____4k1m",flex_box_vertical_center:"flex_box_vertical_center___iAGL_",flex_box_center_end:"flex_box_center_end___zhjgR",flex_box_column:"flex_box_column___bv7Ek",downloadbutton:"downloadbutton___FK4KV",configWorkContainer:"configWorkContainer___kXeIx"}},2051:function(ut,Ue){"use strict";Ue.Z={flex_box_center:"flex_box_center___mwl85",flex_space_between:"flex_space_between___Ykig4",flex_box_vertical_center:"flex_box_vertical_center___q51y0",flex_box_center_end:"flex_box_center_end___w0r4J",flex_box_column:"flex_box_column___A_A7o",downloadbutton:"downloadbutton___x1b07",configWorkContainer:"configWorkContainer___AQoCT"}},1762:function(ut,Ue){"use strict";Ue.Z={threeBtnSty:"threeBtnSty___TLi14",threeTableSty:"threeTableSty___TPPHp",threeSelectSty:"threeSelectSty___FTtcH",threeCheckboxSty:"threeCheckboxSty___lOX9B",inputStyComm:"inputStyComm___eu0su",threeInputSty:"threeInputSty___mTodi",threeSuffixInputSty:"threeSuffixInputSty___TXvX8",threeRadioSty:"threeRadioSty___d2bpk",threeFormSty:"threeFormSty___OJPML"}},14375:function(ut,Ue,z){"use strict";var b=z(67294),re=Object.defineProperty,Se=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Fe=(je,Oe,Ze)=>Oe in je?re(je,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):je[Oe]=Ze,ue=(je,Oe)=>{for(var Ze in Oe||(Oe={}))Pe.call(Oe,Ze)&&Fe(je,Ze,Oe[Ze]);if(Se)for(var Ze of Se(Oe))Ie.call(Oe,Ze)&&Fe(je,Ze,Oe[Ze]);return je};const Te=je=>React.createElement("svg",ue({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),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"})));Ue.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},18023:function(){"use strict";function ut(oe,a,E,x){E===void 0&&(E=0),x===void 0&&(x=1/0),this._name=oe,this._defaultValue=a,this._minimum=E,this._maximum=x}Object.defineProperty(ut.prototype,"name",{get:function(){return this._name},set:function(oe){if(typeof oe!="string"||oe==="")throw new Error("Shape name must be a valid string.");this._name=oe}}),Object.defineProperty(ut.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("The default value must be a real number, not: "+oe);this._defaultValue=oe}}),Object.defineProperty(ut.prototype,"minimum",{get:function(){return this._minimum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Minimum must be a real number, not: "+oe);this._minimum=oe}}),Object.defineProperty(ut.prototype,"maximum",{get:function(){return this._maximum},set:function(oe){if(typeof oe!="number"||isNaN(oe))throw new Error("Maximum must be a real number, not: "+oe);this._maximum=oe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(oe,a){var E=go.Shape._FigureParameters[oe];return E?E[a]:null},go.Shape.setFigureParameter=function(oe,a,E){if(!(E instanceof ut))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+E);if(E.defaultValueE.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+E.defaultValue);var x=go.Shape._FigureParameters[oe];x||(x=[],go.Shape._FigureParameters[oe]=x),x[a]=E};var Ue=[];function z(oe,a){var E=Ue.pop();return E===void 0?new go.Point(oe,a):(E.x=oe,E.y=a,E)}function b(){var oe=Ue.pop();return oe===void 0?new go.Point:oe}function re(oe){Ue.push(oe)}function Se(oe,a,E,x,y,ee,ne,ae,ie){ie||(ie=new go.Point);var le=oe-E,me=y-ne,fe=NaN,pe=NaN;if(le===0)if(me===0)oe===E&&(fe=oe,pe=a);else{var he=(ee-ae)/me,de=ee-he*y;fe=oe,pe=he*fe+de}else if(me===0){var se=(a-x)/le,Me=a-se*oe;fe=y,pe=se*fe+Me}else{var se=(a-x)/le,he=(ee-ae)/me,Me=a-se*oe,de=ee-he*y;fe=(de-Me)/(se-he),pe=se*fe+Me}return ie.x=fe,ie.y=pe,ie}function Pe(oe,a,E,x,y,ee,ne,ae,ie,le,me,fe,pe,he){var de=1-ie,se=ie,Me=oe*de+E*se,be=a*de+x*se,De=E*de+y*se,Ce=x*de+ee*se,Le=y*de+ne*se,Ge=ee*de+ae*se,qe=Me*de+De*se,Je=be*de+Ce*se,Re=De*de+Le*se,He=Ce*de+Ge*se,it=qe*de+Re*se,$e=Je*de+He*se;le.x=Me,le.y=be,me.x=qe,me.y=Je,fe.x=it,fe.y=$e,pe.x=Re,pe.y=He,he.x=Le,he.y=Ge}var Ie=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ut("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,a,E){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,E/3);var y=x*ue,ee=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-y,0,a,y)).add(new go.PathSegment(go.PathSegment.Line,a,E-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-y,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,x,E)).add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,y,E,0,E-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(ee.spot1=new go.Spot(0,0,y,y),ee.spot2=new go.Spot(1,1,-y,-y)),ee}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,E).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,E).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,a,E){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=E/2,x.endX=a,x.endY=E/2,x}),go.Shape.defineFigureGenerator("LineV",function(oe,a,E){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=E,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,E/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,E)))}),go.Shape.defineFigureGenerator("XLine",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.25*a,E)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,.25*E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*E)).add(new go.PathSegment(go.PathSegment.Line,a,.25*E)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.75*a,E)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,.75*E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,a,.75*E)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,a,E){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*E,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*E)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*E)).add(new go.PathSegment(go.PathSegment.Move,0,E/2)).add(new go.PathSegment(go.PathSegment.Line,a,E/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,E)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,a,E){var x=a/2,y=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Ie,y.spot2=Fe,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(oe,a,E){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=E,x}),go.Shape.defineFigureGenerator("Line2",function(oe,a,E){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=E,x}),go.Shape.defineFigureGenerator("Curve1",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,E,ue*a,0,a,(1-ue)*E)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,E,0,ue*E,(1-ue)*a,E)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,ue*E,ue*a,E)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,E,(1-ue)*a,0,0,(1-ue)*E)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ut("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*a;if(x===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=E,ee}else{var ee=new go.Geometry;return x>0?ee.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(x=a);var y=Math.abs(x);if(x===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=E,ee}else{var ee=new go.Geometry;return x>0?ee.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),y.5&&(x=.5);var y=Math.abs(x)*a;if(x===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=E,ee}else{var ee=new go.Geometry;return x>0?ee.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(x=a/2);var y=Math.abs(x);if(x===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=E,ee}else{var ee=new go.Geometry;return x>0?ee.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())):ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())),ya&&(x=a/2);var y=Math.abs(x);if(x===0){var ee=new go.Geometry(go.Geometry.Rectangle);return ee.startX=0,ee.startY=0,ee.endX=a,ee.endY=E,ee}else{var ee=new go.Geometry;return x>0?ee.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,E)).add(new go.PathSegment(go.PathSegment.Line,y,E).close())):ee.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close())),y0&&(ne.add(new go.PathSegment(go.PathSegment.Move,a/2+ae,a/2)),ne.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,ae,ae).close())),ee.spot1=Ie,ee.spot2=Fe,ee.defaultStretch=go.GraphObject.Uniform,ee}),go.Shape.defineFigureGenerator("Cloud",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*E,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*E,-.09239631*a,.07836421*E,.1406031*a,-.0542823*E)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*E,.2450511*a,-.00697547*E,.3776197*a,-.01112067*E)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*E,.4539471*a,0,.6066018*a,-.02526587*E)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*E,.6914277*a,-.01904177*E,.8921095*a,-.01220843*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*E,1.036446*a,.04105738*E,1.020377*a,.3022052*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*E,1.04448*a,.360238*E,.992256*a,.5219009*E)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*E,1.032337*a,.5771781*E,1.018411*a,.8120651*E)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*E,1.028411*a,.9571472*E,.8556702*a,1.052487*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*E,.7431877*a,1.009325*E,.5624123*a,1.021761*E)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*E,.4820677*a,1.031761*E,.3030112*a,1.002796*E)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*E,.2329994*a,1.01518*E,.03213784*a,1.01518*E)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*E,-.02812061*a,.9032597*E,-.01205169*a,.6835638*E)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*E,-.01812061*a,.6089503*E,-.00606892*a,.4555777*E)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*E,-.01606892*a,.3892545*E,-.01205169*a,.1944299*E))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,a,E){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*E)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,E)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*E)).add(new go.PathSegment(go.PathSegment.Line,0,x*E).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new ut("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ut("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,a,E){var x=oe?oe.parameter1:NaN,y=oe?oe.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var ee=x%360;ee<0&&(ee+=360);var ne=y%360,ae=Math.min(a,E)/2;return new go.Geometry().add(new go.PathFigure(ae,ae).add(new go.PathSegment(go.PathSegment.Arc,ee,ne,ae,ae,ae,ae).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(oe,a,E){var x=ue/Math.SQRT2*.5,y=Math.SQRT2/2,ee=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,E,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*a,ee*E,a,(1-x)*E,(y+x)*a,(ee+x)*E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ut("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,a,E){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,a)/2,ee=a/2,ne=E/2;return new go.Geometry().add(new go.PathFigure(ee-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee+y,0)).add(new go.PathSegment(go.PathSegment.Line,ee+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,a,ne-y)).add(new go.PathSegment(go.PathSegment.Line,a,ne+y)).add(new go.PathSegment(go.PathSegment.Line,ee+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,ee+y,E)).add(new go.PathSegment(go.PathSegment.Line,ee-y,E)).add(new go.PathSegment(go.PathSegment.Line,ee-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,ee-y,ne-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ut("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,a,E){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,a)/2,ee=a/2,ne=E/2;return new go.Geometry().add(new go.PathFigure(ee-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,ee+y,0)).add(new go.PathSegment(go.PathSegment.Line,ee+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,a,ne-y)).add(new go.PathSegment(go.PathSegment.Line,a,ne+y)).add(new go.PathSegment(go.PathSegment.Line,ee+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,ee+y,E)).add(new go.PathSegment(go.PathSegment.Line,ee-y,E)).add(new go.PathSegment(go.PathSegment.Line,ee-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,ee-y,ne-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new ut("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,a,E){var x=oe?oe.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||E===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=a,y.endY=E,y}else{var ee=a/2,ne=E/2,ae=Math.atan2(E,a),ie=x-Math.min(Math.cos(ae)*x/2,ee),le=x-Math.min(Math.sin(ae)*x/2,ne),y=new go.Geometry,me=new go.PathFigure(ie,0,!0);return y.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ee,.2*E)),me.add(new go.PathSegment(go.PathSegment.Line,a-ie,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,le)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,ne)),me.add(new go.PathSegment(go.PathSegment.Line,a,E-le)),me.add(new go.PathSegment(go.PathSegment.Line,a-ie,E)),me.add(new go.PathSegment(go.PathSegment.Line,ee,.8*E)),me.add(new go.PathSegment(go.PathSegment.Line,ie,E)),me.add(new go.PathSegment(go.PathSegment.Line,0,E-le)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new ut("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,a,E){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,ee=new go.PathFigure(.1*a,0,!0);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.1*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.9*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*E).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new ut("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,ee=new go.PathFigure(0,0,!0);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x*E).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new ut("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,ee=new go.PathFigure(0,0,!0);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,Math.abs(1-x)*a,.25*E,Math.abs(1-x)*a,.75*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*E,x*a,.25*E).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,ue*a,0,a,(.5-ue/2)*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,(.5+ue/2)*E,ue*a,E).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,E,a,0,a,E)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*E,.5*a,.25*E).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,E,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*E,.1*a,.8*E,0,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*E,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,.5*E,.9*a,.8*E).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*E)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.6*a,.2*E,a,.25*E)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*E,a,.8*E,.6*a,.8*E)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,.5*a,.75*E,.55*a,.95*E)).add(new go.PathSegment(go.PathSegment.Line,.25*a,E)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*E,.45*a,.95*E,.5*a,.75*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.4*a,.8*E,0,.8*E)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*E,0,.25*E,.4*a,.2*E).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.4*a,.6*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,E,.5*a,.75*E,.45*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*E,.55*a,.95*E,.5*a,.75*E));var ee=.2,ne=.3,ae=0,ie=ee*ue;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*a,(.5+ee+ae)*E,(.5-ee+ne)*a,(.5+ie+ae)*E,(.5-ie+ne)*a,(.5+ee+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ee+ne)*a,(.5+ae)*E,(.5+ie+ne)*a,(.5+ee+ae)*E,(.5+ee+ne)*a,(.5+ie+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*a,(.5-ee+ae)*E,(1-.5+ee+ne)*a,(.5-ie+ae)*E,(.5+ie+ne)*a,(.5-ee+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*E,(.5-ie+ne)*a,(.5-ee+ae)*E,(.5-ee+ne+.05)*a,(.5-ie+ae-.02)*E)),ee=.2,ne=0,ae=-.3,ie=ee*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ee+ne)*a,(.5+ae)*E,(.5+ie+ne)*a,(.5+ee+ae)*E,(.5+ee+ne)*a,(.5+ie+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*a,(.5-ee+ae)*E,(1-.5+ee+ne)*a,(.5-ie+ae)*E,(.5+ie+ne)*a,(.5-ee+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ee+ne)*a,(.5+ae)*E,(.5-ie+ne)*a,(.5-ee+ae)*E,(.5-ee+ne)*a,(.5-ie+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+ne)*a,(.5+ee+ae)*E,(.5-ee+ne)*a,(.5+ie+ae)*E,(.5-ie+ne)*a,(.5+ee+ae)*E)),ee=.2,ne=-.3,ae=0,ie=ee*ue,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*a,(.5-ee+ae)*E,(1-.5+ee+ne-.05)*a,(.5-ie+ae-.02)*E,(.5+ie+ne)*a,(.5-ee+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ee+ne)*a,(.5+ae)*E,(.5-ie+ne)*a,(.5-ee+ae)*E,(.5-ee+ne)*a,(.5-ie+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*a,(.5+ee+ae)*E,(.5-ee+ne)*a,(.5+ie+ae)*E,(.5-ie+ne)*a,(.5+ee+ae)*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*E,(.5+ie+ne)*a,(.5+ee+ae)*E,(.5+ee+ne)*a,(.5+ie+ae)*E).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var ee=.1,ne=.5,ae=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(ne+ee)*a,ae*E)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*ne,E*ae,ee*a,ee*a).close()),y=new go.PathFigure(a*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ae=.75,y=new go.PathFigure((ne+ee)*a,ae*E,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*ne,E*ae,ee*a,ee*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(oe,a,E){var x=.8535533905932737,y=.5*a,ee=.5*E;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,ee,y,ee)).add(new go.PathSegment(go.PathSegment.Line,y,E)).add(new go.PathSegment(go.PathSegment.Move,y,ee)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*E)).add(new go.PathSegment(go.PathSegment.Move,y,ee)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*E)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=.5,ne=.5,ae=.5,ie=new go.PathFigure(ne*a,(ae-ee)*E);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-ee)*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),ee=.4,y=ue*.4;var le=b(),me=b(),fe=b(),pe=b();Pe(ne,ae-ee,ne+y,ae-ee,ne+ee,ae-y,ne+ee,ae,.42,le,me,fe,pe,pe);var he=b(),de=b(),se=b();Pe(ne,ae-ee,ne+y,ae-ee,ne+ee,ae-y,ne+ee,ae,.58,pe,pe,se,he,de);var Me=b(),be=b(),De=b();Pe(ne,ae+ee,ne-y,ae+ee,ne-ee,ae+y,ne-ee,ae,.42,Me,be,De,pe,pe);var Ce=b(),Le=b(),Ge=b();return Pe(ne,ae+ee,ne-y,ae+ee,ne-ee,ae+y,ne-ee,ae,.58,pe,pe,Ge,Ce,Le),ie.add(new go.PathSegment(go.PathSegment.Move,Ge.x*a,Ge.y*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,Ce.x*a,Ce.y*E,Le.x*a,Le.y*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,fe.x*a,fe.y*E,le.x*a,le.y*E,me.x*a,me.y*E)),ie.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*E).close()),ie.add(new go.PathSegment(go.PathSegment.Move,De.x*a,De.y*E)),ie.add(new go.PathSegment(go.PathSegment.Line,se.x*a,se.y*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,he.x*a,he.y*E,de.x*a,de.y*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,De.x*a,De.y*E,Me.x*a,Me.y*E,be.x*a,be.y*E).close()),re(le),re(me),re(fe),re(pe),re(he),re(de),re(se),re(Me),re(be),re(De),re(Ce),re(Le),re(Ge),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*E)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*E,a,.25*E,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,E)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*E,0,.25*E).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ut("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,a,E){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var y=(a-x)/2,ee=y+x;return new go.Geometry().add(new go.PathFigure(ee,.5*E).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Line,y,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,.55*E).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*E)).add(new go.PathSegment(go.PathSegment.Line,a,.45*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*E).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,a,E){var x=new go.Geometry,y=ue*.4,ee=.4,ne=.5,ae=.5,ie=b(),le=b(),me=b(),fe=b(),pe=new go.PathFigure((ne-ee)*a,ae*E,!1);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E)),Pe(ne,ae-ee,ne+y,ae-ee,ne+ee,ae-y,ne+ee,ae,.44,me,fe,le,ie,ie),pe.add(new go.PathSegment(go.PathSegment.Bezier,le.x*a,le.y*E,me.x*a,me.y*E,fe.x*a,fe.y*E));var he=z(le.x,le.y);Pe(ne,ae-ee,ne+y,ae-ee,ne+ee,ae-y,ne+ee,ae,.56,ie,ie,le,me,fe);var de=z(le.x,le.y);pe.add(new go.PathSegment(go.PathSegment.Line,(he.x*.1+.95*.9)*a,he.y*.1*E)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,he.y*.1*E)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),pe.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.9)*a,.15*E)),pe.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.9)*a,(de.y*.1+.05*.9)*E)),pe.add(new go.PathSegment(go.PathSegment.Line,de.x*a,de.y*E)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,me.x*a,me.y*E,fe.x*a,fe.y*E)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,(ne-y)*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E)),ee=.35,y=ue*.35;var se=new go.PathFigure(ne*a,(ae-ee)*E,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),se.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-ee)*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E));var Me=new go.PathFigure((ne-ee)*a,ae*E,!1);return x.add(Me),re(ie),re(le),re(me),re(fe),re(he),re(de),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(oe,a,E){var x=new go.Geometry,y=.375,ee=0,ne=-.125,ae=y*ue,ie=new go.PathFigure((.525+ee)*a,(.5+y+ne)*E,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+ee)*a,(.5+ne)*E,(.5+ae+ee)*a,(.5+y+ne)*E,(.5+y+ee)*a,(.5+ae+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-y+ne)*E,(1-.5+y+ee)*a,(.5-ae+ne)*E,(.5+ae+ee)*a,(.5-y+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+ee)*a,(.5+ne)*E,(.5-ae+ee)*a,(.5-y+ne)*E,(.5-y+ee)*a,(.5-ae+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ee)*a,(.5+y+ne)*E,(.5-y+ee)*a,(.5+ae+ne)*E,(.5-ae+ee)*a,(.5+y+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*E).close()),y=.325,ee=0,ne=-.125,ae=y*ue;var ie=new go.PathFigure((1-.5+y+ee)*a,(.5+ne)*E,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+y+ne)*E,(.5+y+ee)*a,(.5+ae+ne)*E,(.5+ae+ee)*a,(.5+y+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+ee)*a,(.5+ne)*E,(.5-ae+ee)*a,(.5+y+ne)*E,(.5-y+ee)*a,(.5+ae+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-y+ne)*E,(.5-y+ee)*a,(.5-ae+ne)*E,(.5-ae+ee)*a,(.5-y+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+ee)*a,(.5+ne)*E,(.5+ae+ee)*a,(.5-y+ne)*E,(1-.5+y+ee)*a,(.5-ae+ne)*E));var ie=new go.PathFigure((.525+ee)*a,(.5+y+ne)*E,!1);return x.add(ie),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(oe,a,E){var x=oe?oe.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,a,E){var x=oe?oe.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,x*a,E))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,a,E){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*E,.5*a,.5*E)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Move,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,0,.5*E)).add(new go.PathSegment(go.PathSegment.Move,a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,E)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*E)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*E)).add(new go.PathSegment(go.PathSegment.Line,a,.5*E)).add(new go.PathSegment(go.PathSegment.Move,0,E)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,a,E){var x=.5;return new go.Geometry().add(new go.PathFigure(0,E,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*E)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*E,x*a,x*E)).add(new go.PathSegment(go.PathSegment.Line,a,E))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,a,E){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*E)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*E,x*a,x*E)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ut("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ut("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=.3);var ee=(1-x)*a,ne=(.5-y/2)*E,ae=(.5+y/2)*E,ie=new go.Geometry,le=new go.PathFigure(0,ne,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),le.add(new go.PathSegment(go.PathSegment.Line,ee,E)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ae)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),ie.spot1=new go.Spot(0,ne/E);var me=Se(0,ae/E,1,ae/E,ee/a,1,1,.5,b());return ie.spot2=new go.Spot(me.x,me.y),re(me),ie}),go.Shape.setFigureParameter("Arrow2",0,new ut("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ut("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,E/2);var ee=a-x,ne=(E-y)/2,ae=ne+y,ie=new go.Geometry,le=new go.PathFigure(0,ne,!0);ie.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee,ne)),le.add(new go.PathSegment(go.PathSegment.Line,ee,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),le.add(new go.PathSegment(go.PathSegment.Line,ee,E)),le.add(new go.PathSegment(go.PathSegment.Line,ee,ae)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),ie.spot1=new go.Spot(0,ne/E);var me=Se(0,ae/E,1,ae/E,ee/a,1,1,.5,b());return ie.spot2=new go.Spot(me.x,me.y),re(me),ie}),go.Shape.defineFigureGenerator("Chevron",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*E).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ut("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*E,ee=(.5+x/2)*E,ne=new go.Geometry,ae=new go.PathFigure(a,.5*E,!0);ne.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ie=Se(0,.5,.3,0,0,y/E,.1,y/E,b());return ne.spot1=new go.Spot(ie.x,ie.y),ie=Se(.7,1,1,.5,0,ee/E,1,ee/E,ie),ne.spot2=new go.Spot(ie.x,ie.y),re(ie),ne}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ut("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ut("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=40);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=100);var ee=(E-x)/2,ne=ee+x,ae=(E-y)/2,ie=ae+y;(x>E||y>E)&&(y>x?(x=x*E/y,ee=(E-x)/2,ne=ee+x,ae=0,ie=E):(ee=0,ne=E,ae=0,ie=E));var le=new go.Geometry,me=new go.PathFigure(a,.5*E,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ie)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,ie)),me.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),me.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae).close());var fe=Se(0,.5,.3,ae/E,0,ee/E,1,ee/E,b());return le.spot1=new go.Spot(fe.x,fe.y),fe=Se(.7,ie/E,1,.5,0,ne/E,1,ne/E,fe),le.spot2=new go.Spot(fe.x,fe.y),re(fe),le}),go.Shape.setFigureParameter("IBeamArrow",0,new ut("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*E,ee=(.5+x/2)*E,ne=new go.Geometry,ae=new go.PathFigure(a,.5*E,!0);ne.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ne.spot1=new go.Spot(0,y/E);var ie=Se(.7,1,1,.5,0,ee/E,1,ee/E,b());return ne.spot2=new go.Spot(ie.x,ie.y),re(ie),ne}),go.Shape.setFigureParameter("IBeamArrow2",0,new ut("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ut("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=40);var y=oe?oe.parameter2:NaN;isNaN(y)&&(y=100);var ee=(E-x)/2,ne=ee+x,ae=(E-y)/2,ie=ae+y;(x>E||y>E)&&(y>x?(x=x*E/y,ee=(E-x)/2,ne=ee+x,ae=0,ie=E):(ee=0,ne=E,ae=0,ie=E));var le=new go.Geometry,me=new go.PathFigure(a,.5*E,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ie)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,ie)),me.add(new go.PathSegment(go.PathSegment.Line,0,ie)),me.add(new go.PathSegment(go.PathSegment.Line,0,ae)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),me.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae).close()),le.spot1=new go.Spot(0,ee/E);var fe=Se(.7,ie/E,1,.5,0,ne/E,1,ne/E,b());return le.spot2=new go.Spot(fe.x,fe.y),re(fe),le}),go.Shape.setFigureParameter("Pointer",0,new ut("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,ee=new go.PathFigure(a,.5*E,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var ne=Se(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),re(ne),y}),go.Shape.setFigureParameter("RoundedPointer",0,new ut("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,ee=new go.PathFigure(a,.5*E,!0);y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*E,x*a,.25*E).close()),y.spot1=new go.Spot(x,.35);var ne=Se(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),re(ne),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new ut("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*E,ee=(.5+x/2)*E,ne=new go.Geometry,ae=new go.PathFigure(a,.5*E,!0);ne.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ne.spot1=new go.Spot(.2,.3);var ie=Se(.7,1,1,.5,0,ee/E,1,ee/E,b());return ne.spot2=new go.Spot(ie.x,ie.y),re(ie),ne}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ut("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=50);var y=(E-x)/2,ee=y+x;x>E&&(y=0,ee=E);var ne=new go.Geometry,ae=new go.PathFigure(a,.5*E,!0);ne.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ne.spot1=new go.Spot(.2,y/E);var ie=Se(.7,1,1,.5,0,ee/E,1,ee/E,b());return ne.spot2=new go.Spot(ie.x,ie.y),re(ie),ne}),go.Shape.setFigureParameter("SquareArrow",0,new ut("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,ee=new go.PathFigure(a,.5*E,!0);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,x*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=ue*.1,ne=new go.PathFigure(0,.9*E,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+ee)*E,(.5+y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+ee)*E).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.9*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*E,(1-.85/.9)*a,E,.85/.9*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*E).close());var ee=new go.PathFigure(0,.9*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*E,(1-.85/.9)*a,.8*E,.85/.9*a,.8*E)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*E).close());var ee=new go.PathFigure(.5*a,E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.15*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.3*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var ee=new go.PathFigure(0,.3*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,ee=ue*.5,ne=new go.PathFigure(0,x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-ee)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+ee)*a,0,1*a,ue*x)),ne.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*E,1*a,E-ue*x,(.5+ee)*a,1*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,(.5-ee)*a,1*E,0,E-ue*x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x));var ae=new go.PathFigure(a,x,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ue*x,(.5+ee)*a,2*x)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-ee)*a,2*x,0,2*x-ue*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,ee=ue*.5,ne=new go.PathFigure(0,E-x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-ee)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+ee)*a,0,a,ue*x)),ne.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,E-ue*x,(.5+ee)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,(.5-ee)*a,E,0,E-ue*x));var ae=new go.PathFigure(0,E-x,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E-2*x,0,E-x-ue*x,(.5-ee)*a,E-2*x)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,E-x,(.5+ee)*a,E-2*x,a,E-x-ue*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,ee=ue*.5,ne=new go.PathFigure(x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,a-ue*x,0,a,(.5-ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,(.5+ee)*E,a-ue*x,E)),ne.add(new go.PathSegment(go.PathSegment.Line,x,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,ue*x,E,0,(.5+ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-ee)*E,ue*x,0));var ae=new go.PathFigure(x,0,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*E,x+ue*x,0,2*x,(.5-ee)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,x,E,2*x,(.5+ee)*E,x+ue*x,E)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,ee=ue*.5,ne=new go.PathFigure(a-x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,a-ue*x,0,a,(.5-ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,(.5+ee)*E,a-ue*x,E)),ne.add(new go.PathSegment(go.PathSegment.Line,x,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,ue*x,E,0,(.5+ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-ee)*E,ue*x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ae=new go.PathFigure(a-x,0,!1);return y.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*E,a-x-ue*x,0,a-2*x,(.5-ee)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a-2*x,(.5+ee)*E,a-x-ue*x,E)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.25*a,.25*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ee=new go.PathFigure(.25*a,.25*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.25*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ee=new go.PathFigure(0,E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),ee.add(new go.PathSegment(go.PathSegment.Move,0,.25*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*E)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E).close());var ee=new go.PathFigure(.5*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*E).close());var ee=new go.PathFigure(.5*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.85*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(oe,a,E){var x=new go.Geometry,y=.2,ee=.1,ne=ue*y,ae=ue*ee,ie=.5,le=.1,me=new go.PathFigure(ie*a,(le+ee)*E,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*a,le*E,(ie-ne)*a,(le+ee)*E,(ie-y)*a,(le+ae)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ee)*E,(ie-y)*a,(le-ae)*E,(ie-ne)*a,(le-ee)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*a,le*E,(ie+ne)*a,(le-ee)*E,(ie+y)*a,(le-ae)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ee)*E,(ie+y)*a,(le+ae)*E,(ie+ne)*a,(le+ee)*E));var fe=.05,pe=ue*fe;ie=.05,le=.25;var he=new go.PathFigure(.5*a,.2*E,!0);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*E)),ie=.95,le=.25,he.add(new go.PathSegment(go.PathSegment.Bezier,(ie+fe)*a,le*E,(ie+pe)*a,(le-fe)*E,(ie+fe)*a,(le-pe)*E)),he.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*E)),fe=.025,pe=ue*fe,ie=.825,le=.35,he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-fe)*E,(ie+fe)*a,(le-pe)*E,(ie+pe)*a,(le-fe)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie-fe)*a,le*E,(ie-pe)*a,(le-fe)*E,(ie-fe)*a,(le-pe)*E)),he.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,E)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*E)),fe=.05,pe=ue*fe,ie=.5,le=.7,he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-fe)*E,(ie+fe)*a,(le-pe)*E,(ie+pe)*a,(le-fe)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie-fe)*a,le*E,(ie-pe)*a,(le-fe)*E,(ie-fe)*a,(le-pe)*E)),he.add(new go.PathSegment(go.PathSegment.Line,.45*a,E)),he.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),he.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*E)),fe=.025,pe=ue*fe,ie=.175,le=.35,he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-fe)*E,(ie+fe)*a,(le-pe)*E,(ie+pe)*a,(le-fe)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie-fe)*a,le*E,(ie-pe)*a,(le-fe)*E,(ie-fe)*a,(le-pe)*E)),he.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E)),he.add(new go.PathSegment(go.PathSegment.Line,0,.6*E)),he.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),fe=.05,pe=ue*fe,ie=.05,le=.25,he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-fe)*E,(ie-fe)*a,(le-pe)*E,(ie-pe)*a,(le-fe)*E)),he.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*E)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new ut("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,a,E){var x=oe?oe.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,ee=new go.PathFigure(a,0,!0);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x*E)),ee.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,.5*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E));var ee=new go.PathFigure(.5*a,.5*E,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var ee=new go.PathFigure(0,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ne=new go.PathFigure(0,y*E,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*E)),x}),go.Shape.defineFigureGenerator("Database",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=ue*.1,ne=new go.PathFigure(a,.1*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+ee)*E,(.5+y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-ee)*E,(.5-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,(.5+y)*a,0,a,(.1-ee)*E));var ae=new go.PathFigure(a,.1*E,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,a,(.1+ee)*E,(.5+y)*a,.2*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*E,(.5-y)*a,.2*E,0,(.1+ee)*E)),ae.add(new go.PathSegment(go.PathSegment.Move,a,.2*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,a,(.2+ee)*E,(.5+y)*a,.3*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*E,(.5-y)*a,.3*E,0,(.2+ee)*E)),ae.add(new go.PathSegment(go.PathSegment.Move,a,.3*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*E,a,(.3+ee)*E,(.5+y)*a,.4*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*E,(.5-y)*a,.4*E,0,(.3+ee)*E)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,a,0,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*E,.25*a,.1*E).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=ue*.1,ne=new go.PathFigure(a,.1*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.9+ee)*E,(.5+y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,(.5-y)*a,E,0,(.9+ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-ee)*E,(.5-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,(.5+y)*a,0,a,(.1-ee)*E));var ae=new go.PathFigure(a,.1*E,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,a,(.1+ee)*E,(.5+y)*a,.2*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*E,(.5-y)*a,.2*E,0,(.1+ee)*E)),ae.add(new go.PathSegment(go.PathSegment.Move,a,.2*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*E,a,(.2+ee)*E,(.5+y)*a,.3*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*E,(.5-y)*a,.3*E,0,(.2+ee)*E)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,E,a,0,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var ee=ue*.2,ne=new go.PathFigure(0,.2*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-ee)*E,(.2-ee)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*E,(.8+ee)*a,0,a,(.2-ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,E,a,(.8+ee)*E,(.8+ee)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*E,(.2-ee)*a,E,0,(.8+ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.2*E));var ae=new go.PathFigure(0,y*E,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var ee=new go.PathFigure(0,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ne=new go.PathFigure(0,y*E,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,y*E)),x}),go.Shape.defineFigureGenerator("Document",function(oe,a,E){var x=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var ee=new go.PathFigure(0,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ne=new go.PathFigure(y*a,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y*E)),ne.add(new go.PathSegment(go.PathSegment.Move,a,y*E)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*E)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close());var ee=new go.PathFigure(.1*a,.4*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*E)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ee=new go.PathFigure(.75*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a,.5*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E));var ee=new go.PathFigure(a,.5*E,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E));var ne=new go.PathFigure(a,.5*E,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN,ee=oe?oe.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(ee)&&(ee=.1);var ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ae=new go.PathFigure(y*a,0,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),ae.add(new go.PathSegment(go.PathSegment.Move,0,ee*E)),ae.add(new go.PathSegment(go.PathSegment.Line,a,ee*E)),x}),go.Shape.defineFigureGenerator("Junction",function(oe,a,E){var x=new go.Geometry,y=1/Math.SQRT2,ee=(1-1/Math.SQRT2)/2,ne=ue*.5,ae=.5,ie=new go.PathFigure(a,ae*E,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,E,a,(ae+ne)*E,(ae+ne)*a,E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,ae*E,(ae-ne)*a,E,0,(ae+ne)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,0,0,(ae-ne)*E,(ae-ne)*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,ae*E,(ae+ne)*a,0,a,(ae-ne)*E));var le=new go.PathFigure((ee+y)*a,(ee+y)*E,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ee*a,ee*E)),le.add(new go.PathSegment(go.PathSegment.Move,ee*a,(ee+y)*E)),le.add(new go.PathSegment(go.PathSegment.Line,(ee+y)*a,ee*E)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,a,E){var x=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close());var ee=new go.PathFigure(.1*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*E)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=.5,ne=new go.PathFigure(.5*a,E,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*E,(ee-y)*a,E,0,(ee+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-y)*E,(ee-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*E,(ee+y)*a,0,a,(ee-y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ee+.1)*a,.9*E,a,(ee+y)*E,(ee+y)*a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.7);var ee=new go.PathFigure(0,0,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.25);var ee=new go.PathFigure(0,0,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-y)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,a,E){var x=new go.Geometry;E=E/.8;var y=new go.PathFigure(a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*E,.96*a,.47*E,.93*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*E,.86*a,.57*E,.83*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.4*a,.4*E,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var ee=new go.PathFigure(.1*a,.2*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*E)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.1*a,.1*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E).close());var ee=new go.PathFigure(.2*a,.1*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*E)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var ee=1-y,ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close());var ae=new go.PathFigure(.5*y*a,y*E,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*a,y*E)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=.5,ne=new go.PathFigure(a,ee*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,E,a,(ee+y)*E,(ee+y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*E,(ee-y)*a,E,0,(ee+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-y)*E,(ee-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*E,(ee+y)*a,0,a,(ee-y)*E));var ae=new go.PathFigure(a,.5*E,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(oe,a,E){var x=new go.Geometry;E=E/.8;var y=new go.PathFigure(0,.7*E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*E,.5*a,.6*E,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*E,.5*a,.4*E,.5*a,E).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN,ee=oe?oe.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(ee)&&(ee=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-ee)*a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN,ee=oe?oe.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(ee)&&(ee=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-ee)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-ee)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var ee=new go.PathFigure(0,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ne=new go.PathFigure((1-y)*a,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Move,y*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),x}),go.Shape.defineFigureGenerator("Process",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var ee=new go.PathFigure(0,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ne=new go.PathFigure(y*a,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E).close());var ee=new go.PathFigure(0,.5*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.25);var ee=new go.PathFigure(y*a,0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*E,.25*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*E,.25*a,.5*E));var ne=new go.PathFigure(y*a,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*a,E)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,E)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*E,.25*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*E,.25*a,.5*E)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,a,E){var x=new go.Geometry,y=oe?oe.parameter1:NaN;isNaN(y)&&(y=.1);var ee=new go.PathFigure(0,0,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-y)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*E).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=new go.PathFigure(0,0,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(.5+y)*a,0,a,(.5-y)*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,(.5+y)*E,(.5+y)*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=.5,ne=new go.PathFigure(a,ee*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,E,a,(ee+y)*E,(ee+y)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*E,(ee-y)*a,E,0,(ee+y)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-y)*E,(ee-y)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*E,(ee+y)*a,0,a,(ee-y)*E));var ae=new go.PathFigure(a,ee*E,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a,ee*E));var ie=new go.PathFigure(.8*a,.75*E,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*E)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*E)),x}),go.Shape.defineFigureGenerator("Ground",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,E)),x}),go.Shape.defineFigureGenerator("Inverter",function(oe,a,E){var x=new go.Geometry,y=ue*.1,ee=.1,ne=.9,ae=.5,ie=new go.PathFigure(.8*a,.5*E,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,E)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E));var le=new go.PathFigure((ne+ee)*a,ae*E,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,(ne-y)*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,(ne+y)*a,(ae-ee)*E,(ne+ee)*a,(ae-y)*E)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=ue*.4,ne=ue*.1,ae=.1,ie=.9,le=.5,me=new go.PathFigure(.8*a,.5*E,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,E,.8*a,(.5+ee)*E,(.4+y)*a,E)),me.add(new go.PathSegment(go.PathSegment.Line,0,E)),me.add(new go.PathSegment(go.PathSegment.Line,0,0)),me.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(.4+y)*a,0,.8*a,(.5-ee)*E));var fe=new go.PathFigure((ie+ae)*a,le*E,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ae)*E,(ie+ae)*a,(le+ne)*E,(ie+ne)*a,(le+ae)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae)*a,le*E,(ie-ne)*a,(le+ae)*E,(ie-ae)*a,(le+ne)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ae)*E,(ie-ae)*a,(le-ne)*E,(ie-ne)*a,(le-ae)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae)*a,le*E,(ie+ne)*a,(le-ae)*E,(ie+ae)*a,(le-ne)*E)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*y,ne=0,ae=.5,ie=new go.PathFigure(.8*a,.5*E,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.7*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*E,.25*a,.25*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(ne+ee)*a,(ae-y)*E,.7*a,(ae-ee)*E)),y=.1,ee=ue*.1,ne=.9,ae=.5;var le=new go.PathFigure((ne-y)*a,ae*E,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*a,ae*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*a,ae*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*y,ne=0,ae=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(ne+ee+ee)*a,(ae-y)*E,.8*a,(ae-ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.8*a,(ae+ee)*E,(ne+ee+ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*E,.25*a,.25*E).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*y,ne=.2,ae=.5,ie=new go.PathFigure(.1*a,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,E,.35*a,.25*E,.35*a,.75*E));var le=new go.PathFigure(.8*a,.5*E,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,E,.7*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*E,.45*a,.25*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*E,(ne+ee)*a,(ae-y)*E,.7*a,(ae-ee)*E)),y=.1,ee=ue*.1,ne=.9,ae=.5;var me=new go.PathFigure((ne-y)*a,ae*E,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*a,ae*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*a,ae*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*y,ne=.2,ae=.5,ie=new go.PathFigure(.1*a,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,E,.35*a,.25*E,.35*a,.75*E));var le=new go.PathFigure(.2*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,(ne+ee)*a,(ae-y)*E,.9*a,(ae-ee)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,E,.9*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*E,.45*a,.25*E).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),x}),go.Shape.defineFigureGenerator("Resistor",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.5*E,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*E)),x}),go.Shape.defineFigureGenerator("Inductor",function(oe,a,E){var x=new go.Geometry,y=ue*.1,ee=.1,ne=.1,ae=.5,ie=new go.PathFigure((ne-y*.5)*a,E,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,0,(ne-y)*a,E,(ne-ee)*a,0)),ne=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,E,(ne+ee)*a,0,(ne+y)*a,E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,0,(ne-y)*a,E,(ne-ee)*a,0)),ne=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,E,(ne+ee)*a,0,(ne+y)*a,E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,0,(ne-y)*a,E,(ne-ee)*a,0)),ne=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,E,(ne+ee)*a,0,(ne+y)*a,E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,0,(ne-y)*a,E,(ne-ee)*a,0)),ne=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y*.5)*a,E,(ne+ee)*a,0,(ne+y)*a,E)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,a,E){var x=new go.Geometry,y=ue*.5,ee=.5,ne=.5,ae=.5,ie=new go.PathFigure((ne-ee)*a,ae*E,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,(ne+y)*a,(ae-ee)*E,(ne+ee)*a,(ae-y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,(ne-y)*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Move,(ne-ee+.1)*a,ae*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-.1)*a,ae*E,ne*a,(ae-ee)*E,ne*a,(ae+ee)*E)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.75*E,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),x}),go.Shape.defineFigureGenerator("Diode",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(oe,a,E){var x=new go.Geometry,y=a,ee=E;a=a*.38,E=E*.6;var ne=ue*.8,ae=.8,ie=0,le=.5,me=(y-a)/2,fe=(ee-E)/2,pe=new go.PathFigure(ie*a+me,(le+ae)*E+fe,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae)*a+me,le*E+fe,(ie-ne)*a+me,(le+ae)*E+fe,(ie-ae)*a+me,(le+ne)*E+fe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le-ae)*E+fe,(ie-ae)*a+me,(le-ne)*E+fe,(ie-ne)*a+me,(le-ae)*E+fe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae+ne*.5)*a+me,le*E+fe,ie*a+me,(le-ae)*E+fe,(ie-ae+ne*.5)*a+me,(le-ne)*E+fe)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le+ae)*E+fe,(ie-ae+ne*.5)*a+me,(le+ne)*E+fe,ie*a+me,(le+ae)*E+fe).close()),ne=ue*.4,ae=.4,ie=.2,le=.5;var he=new go.PathFigure(ie*a+me,(le+ae)*E+fe,!0);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae)*a+me,le*E+fe,(ie-ne)*a+me,(le+ae)*E+fe,(ie-ae)*a+me,(le+ne)*E+fe)),he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le-ae)*E+fe,(ie-ae)*a+me,(le-ne)*E+fe,(ie-ne)*a+me,(le-ae)*E+fe)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae+ne*.5)*a+me,le*E+fe,ie*a+me,(le-ae)*E+fe,(ie-ae+ne*.5)*a+me,(le-ne)*E+fe)),he.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le+ae)*E+fe,(ie-ae+ne*.5)*a+me,(le+ne)*E+fe,ie*a+me,(le+ae)*E+fe).close()),ne=ue*.2,ae=.2,ie=.5,le=.5;var de=new go.PathFigure((ie-ae)*a+me,le*E+fe,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le-ae)*E+fe,(ie-ae)*a+me,(le-ne)*E+fe,(ie-ne)*a+me,(le-ae)*E+fe)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae)*a+me,le*E+fe,(ie+ne)*a+me,(le-ae)*E+fe,(ie+ae)*a+me,(le-ne)*E+fe)),de.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le+ae)*E+fe,(ie+ae)*a+me,(le+ne)*E+fe,(ie+ne)*a+me,(le+ae)*E+fe)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ae)*a+me,le*E+fe,(ie-ne)*a+me,(le+ae)*E+fe,(ie-ae)*a+me,(le+ne)*E+fe)),ne=ue*.4,ae=.4,ie=.8,le=.5;var se=new go.PathFigure(ie*a+me,(le-ae)*E+fe,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae)*a+me,le*E+fe,(ie+ne)*a+me,(le-ae)*E+fe,(ie+ae)*a+me,(le-ne)*E+fe)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le+ae)*E+fe,(ie+ae)*a+me,(le+ne)*E+fe,(ie+ne)*a+me,(le+ae)*E+fe)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae-ne*.5)*a+me,le*E+fe,ie*a+me,(le+ae)*E+fe,(ie+ae-ne*.5)*a+me,(le+ne)*E+fe)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le-ae)*E+fe,(ie+ae-ne*.5)*a+me,(le-ne)*E+fe,ie*a+me,(le-ae)*E+fe).close()),ne=ue*.8,ae=.8,ie=1,le=.5;var Me=new go.PathFigure(ie*a+me,(le-ae)*E+fe,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae)*a+me,le*E+fe,(ie+ne)*a+me,(le-ae)*E+fe,(ie+ae)*a+me,(le-ne)*E+fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le+ae)*E+fe,(ie+ae)*a+me,(le+ne)*E+fe,(ie+ne)*a+me,(le+ae)*E+fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ae-ne*.5)*a+me,le*E+fe,ie*a+me,(le+ae)*E+fe,(ie+ae-ne*.5)*a+me,(le+ne)*E+fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a+me,(le-ae)*E+fe,(ie+ae-ne*.5)*a+me,(le-ne)*E+fe,ie*a+me,(le-ae)*E+fe).close()),x}),go.Shape.defineFigureGenerator("Email",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(0,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*E)),ee.add(new go.PathSegment(go.PathSegment.Move,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*E)),x}),go.Shape.defineFigureGenerator("Ethernet",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.35*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var ee=new go.PathFigure(.1*a,E,!0,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.1*a,E).close());var ne=new go.PathFigure(.6*a,E,!0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,E).close());var ae=new go.PathFigure(0,.5*E,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*E)),ae.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*E)),ae.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*E)),x}),go.Shape.defineFigureGenerator("Power",function(oe,a,E){var x=new go.Geometry,y=ue*.4,ee=.4,ne=.5,ae=.5,ie=b(),le=b(),me=b(),fe=b();Pe(ne,ae-ee,ne+y,ae-ee,ne+ee,ae-y,ne+ee,ae,.5,ie,ie,le,me,fe);var pe=z(le.x,le.y),he=new go.PathFigure(le.x*a,le.y*E,!0);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,me.x*a,me.y*E,fe.x*a,fe.y*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,(ne-y)*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E)),Pe(ne-ee,ae,ne-ee,ae-y,ne-y,ae-ee,ne,ae-ee,.5,me,fe,le,ie,ie),he.add(new go.PathSegment(go.PathSegment.Bezier,le.x*a,le.y*E,me.x*a,me.y*E,fe.x*a,fe.y*E)),y=ue*.3,ee=.3,Pe(ne-ee,ae,ne-ee,ae-y,ne-y,ae-ee,ne,ae-ee,.5,me,fe,le,ie,ie),he.add(new go.PathSegment(go.PathSegment.Line,le.x*a,le.y*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,ae*E,fe.x*a,fe.y*E,me.x*a,me.y*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+ee)*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,ae*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),Pe(ne,ae-ee,ne+y,ae-ee,ne+ee,ae-y,ne+ee,ae,.5,ie,ie,le,me,fe),he.add(new go.PathSegment(go.PathSegment.Bezier,le.x*a,le.y*E,fe.x*a,fe.y*E,me.x*a,me.y*E).close());var he=new go.PathFigure(.45*a,0,!0);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*E)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*E)),he.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),re(ie),re(le),re(me),re(fe),re(pe),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,E/2,a/2,E/2));function ee(ne,ae,ie){ne.add(new go.PathSegment(go.PathSegment.Move,(.3+ae)*a,(.8+ie)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,(.5+ae)*a,(.5+ie)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,(.1+ae)*a,(.5+ie)*E)),ne.add(new go.PathSegment(go.PathSegment.Line,(.3+ae)*a,(.8+ie)*E).close())}return ee(y,0,0),ee(y,.4,0),ee(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.2*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*E).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.37*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*E)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.37*E)),y.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*E)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*E)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*E)),y.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*E).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.1*a,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*E,.45*a,.44*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*E,.48*a,.17*E,.54*a,.35*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*E,.59*a,.29*E,.58*a,.28*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*E,.8*a,.34*E,.88*a,.43*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*E,.87*a,.48*E,.88*a,.43*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,E,1.17*a,.76*E,.82*a,.8*E).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,a,E){var x=new go.Geometry,y=.5,ee=0,ne=0,ae=y*ue,ie=.4*Math.SQRT2/2+.5,le=.5-.5*Math.SQRT2/2,me=1,fe=.5,pe=.5,he=0,de=new go.PathFigure(ie*a,(1-le)*E,!1);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,me*a,fe*E,me*a,.7*E,me*a,fe*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(pe+ee)*a,(he+ee)*E,(.5+y+ee)*a,(.5-ae+ee)*E,(.5+ae+ee)*a,(.5-y+ee)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+ee)*a,(.5+ne)*E,(.5-ae+ee)*a,(.5-y+ne)*E,(.5-y+ee)*a,(.5-ae+ne)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ee)*a,.9*E,(.5-y+ee)*a,(.5+ae+ne)*E,(.5-ae+ee)*a,.9*E)),de.add(new go.PathSegment(go.PathSegment.Move,(.25+ee)*a,.8*E)),de.add(new go.PathSegment(go.PathSegment.Line,(.35+ee)*a,.9*E)),de.add(new go.PathSegment(go.PathSegment.Line,(.2+ee)*a,.95*E)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Move,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var ee=new go.PathFigure(a,E,!1);x.add(ee);var ne=new go.PathFigure(0,.5*E,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*E,.2*a,.35*E,.3*a,.35*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.7*a,.65*E,.8*a,.65*E)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.2*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E).close());var y=new go.PathFigure(0,.2*E,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.7*a,E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*E,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,E,.4*a,.5*E,a,.5*E).close());var ee=new go.PathFigure(.45*a,.73*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*E)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var ee=new go.PathFigure(.335*a,(1-.555)*E,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*E,(1-.12)*a,.46*E,(1-.02)*a,.54*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.68*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*E,.02*a,.54*E,.12*a,.46*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*E));var ne=.5-.285,ae=.5,ie=ne,le=Math.PI/4,me=4*(1-Math.cos(le))/(3*Math.sin(le)),fe=me*.5,pe=ne,he=ne,de=me*pe,se=me*he;ee.add(new go.PathSegment(go.PathSegment.Bezier,(ae-pe)*a,ie*E,(ae-(de+pe)/2)*a,(ie+(he+se)/2)*E,(ae-pe)*a,(ie+se)*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ie-he)*E,(ae-pe)*a,(ie-se)*E,(ae-de)*a,(ie-he)*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ae+pe)*a,ie*E,(ae+de)*a,(ie-he)*E,(ae+pe)*a,(ie-se)*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*E,(ae+pe)*a,(ie+se)*E,(ae+(de+pe)/2)*a,(ie+(he+se)/2)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*E));var Me=new go.PathFigure(.2*a,E,!1);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*E));var be=new go.PathFigure(.8*a,E,!1);return x.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*E)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.1*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,E).close());var ee=new go.PathFigure(.2*a,.2*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*E)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*E).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var ee=new go.PathFigure(a,E,!1);x.add(ee);var ne=new go.PathFigure(.1*a,E,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E).close()),x}),go.Shape.defineFigureGenerator("Caution",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.05*a,E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*E,0,E,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*E,.5*a,0,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,E,a,E,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,E));var ee=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-ee)*a,.875*E)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*E,ee*a,ee*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*E,.575*a,.725*E,.625*a,.375*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*E,.375*a,.375*E,.425*a,.725*E)),x}),go.Shape.defineFigureGenerator("Recycle",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.45*a,.95*E,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*E,.17*a,.95*E,.15*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*E,0,.675*E,0,.7*E)),y.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*E)),y.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*E));var ee=new go.PathFigure(.475*a,.2*E,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*E,.35*a,0,.375*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*E,.625*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*E));var ne=new go.PathFigure(.675*a,.575*E,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.775*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*E,a,.8*E,a,.85*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,.775*E)),ne.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*E)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*.5,ne=new go.PathFigure(a,y*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*a,E,a,(y+ee)*E,(y+ee)*a,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y*E,(y-ee)*a,E,0,(y+ee)*E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*a,0,0,(y-ee)*E,(y-ee)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,y*E,(y+ee)*a,0,a,(y-ee)*E));var ae=new go.PathFigure(y*a,0,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,y*a,.15*E)),ae.add(new go.PathSegment(go.PathSegment.Move,y*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,y*a,.85*E)),ae.add(new go.PathSegment(go.PathSegment.Move,0,y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.15*a,y*E)),ae.add(new go.PathSegment(go.PathSegment.Move,a,y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,y*E)),ae.add(new go.PathSegment(go.PathSegment.Move,y*a,y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*E)),ae.add(new go.PathSegment(go.PathSegment.Move,y*a,y*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*E)),x}),go.Shape.defineFigureGenerator("Package",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.15*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close());var ee=new go.PathFigure(0,.15*E,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*E).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(0,.2*E,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.2*E).close());var ne=new go.PathFigure(0,.5*E,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,.5*E).close()),x}),go.Shape.defineFigureGenerator("Component",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a,E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close());var ee=new go.PathFigure(0,.2*E,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.2*E).close());var ne=new go.PathFigure(0,.6*E,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*E).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.15*a,.6*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*E));var ee=new go.PathFigure(.15*a,.6*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*E)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,.33*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.66*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*E)),y.add(new go.PathSegment(go.PathSegment.Move,a,.66*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(a,.8*E,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.8*E).close());var ne=.1,ae=ue*.1,ie=.2,le=.9,me=new go.PathFigure((ie-ne)*a,le*E,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ne)*E,(ie-ne)*a,(le-ae)*E,(ie-ae)*a,(le-ne)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,le*E,(ie+ae)*a,(le-ne)*E,(ie+ne)*a,(le-ae)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ne)*E,(ie+ne)*a,(le+ae)*E,(ie+ae)*a,(le+ne)*E)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,le*E,(ie-ae)*a,(le+ne)*E,(ie-ne)*a,(le+ae)*E).close()),ne=.1,ae=ue*.1,ie=.8,le=.9;var fe=new go.PathFigure((ie-ne)*a,le*E,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le-ne)*E,(ie-ne)*a,(le-ae)*E,(ie-ae)*a,(le-ne)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*a,le*E,(ie+ae)*a,(le-ne)*E,(ie+ne)*a,(le-ae)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(le+ne)*E,(ie+ne)*a,(le+ae)*E,(ie+ae)*a,(le+ne)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*a,le*E,(ie-ae)*a,(le+ne)*E,(ie-ne)*a,(le+ae)*E).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.2*a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,E)),x}),go.Shape.defineFigureGenerator("Forklift",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var ee=new go.PathFigure(0,.5*E,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var ne=new go.PathFigure(.5*a,.8*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*E));var ae=new go.PathFigure(.5*a,.7*E,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a,.7*E));var ie=.1,le=ue*.1,me=.1,fe=.9,pe=new go.PathFigure((me-ie)*a,fe*E,!0);x.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(fe-ie)*E,(me-ie)*a,(fe-le)*E,(me-le)*a,(fe-ie)*E)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,fe*E,(me+le)*a,(fe-ie)*E,(me+ie)*a,(fe-le)*E)),pe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(fe+ie)*E,(me+ie)*a,(fe+le)*E,(me+le)*a,(fe+ie)*E)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,fe*E,(me-le)*a,(fe+ie)*E,(me-ie)*a,(fe+le)*E)),ie=.1,le=ue*.1,me=.4,fe=.9;var he=new go.PathFigure((me-ie)*a,fe*E,!0);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(fe-ie)*E,(me-ie)*a,(fe-le)*E,(me-le)*a,(fe-ie)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,fe*E,(me+le)*a,(fe-ie)*E,(me+ie)*a,(fe-le)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(fe+ie)*E,(me+ie)*a,(fe+le)*E,(me+le)*a,(fe+ie)*E)),he.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,fe*E,(me-le)*a,(fe+ie)*E,(me-ie)*a,(fe+le)*E)),x}),go.Shape.defineFigureGenerator("RailShipment",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.1*a,.4*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*E).close());var ee=new go.PathFigure(.45*a,.7*E,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*E));var ne=new go.PathFigure(.55*a,.4*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*E).close());var me=.05,fe=ue*.05,pe=.175,he=.95,ae=new go.PathFigure((pe-me)*a,he*E,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-me)*E,(pe-me)*a,(he-fe)*E,(pe-fe)*a,(he-me)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(pe+me)*a,he*E,(pe+fe)*a,(he-me)*E,(pe+me)*a,(he-fe)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+me)*E,(pe+me)*a,(he+fe)*E,(pe+fe)*a,(he+me)*E)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(pe-me)*a,he*E,(pe-fe)*a,(he+me)*E,(pe-me)*a,(he+fe)*E));var me=.05,fe=ue*.05,pe=.375,he=.95,ie=new go.PathFigure((pe-me)*a,he*E,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-me)*E,(pe-me)*a,(he-fe)*E,(pe-fe)*a,(he-me)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(pe+me)*a,he*E,(pe+fe)*a,(he-me)*E,(pe+me)*a,(he-fe)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+me)*E,(pe+me)*a,(he+fe)*E,(pe+fe)*a,(he+me)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(pe-me)*a,he*E,(pe-fe)*a,(he+me)*E,(pe-me)*a,(he+fe)*E));var me=.05,fe=ue*.05,pe=.625,he=.95,le=new go.PathFigure((pe-me)*a,he*E,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-me)*E,(pe-me)*a,(he-fe)*E,(pe-fe)*a,(he-me)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+me)*a,he*E,(pe+fe)*a,(he-me)*E,(pe+me)*a,(he-fe)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+me)*E,(pe+me)*a,(he+fe)*E,(pe+fe)*a,(he+me)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-me)*a,he*E,(pe-fe)*a,(he+me)*E,(pe-me)*a,(he+fe)*E));var me=.05,fe=ue*.05,pe=.825,he=.95,de=new go.PathFigure((pe-me)*a,he*E,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he-me)*E,(pe-me)*a,(he-fe)*E,(pe-fe)*a,(he-me)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(pe+me)*a,he*E,(pe+fe)*a,(he-me)*E,(pe+me)*a,(he-fe)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(he+me)*E,(pe+me)*a,(he+fe)*E,(pe+fe)*a,(he+me)*E)),de.add(new go.PathSegment(go.PathSegment.Bezier,(pe-me)*a,he*E,(pe-fe)*a,(he+me)*E,(pe-me)*a,(he+fe)*E).close());var se=new go.PathFigure(0,E,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a,E).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ee=new go.PathFigure(0,.2*E,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.2*E).close());var ne=new go.PathFigure(.15*a,E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*a,E).close());var ae=.05,ie=ue*.05,le=.35,me=.775,fe=new go.PathFigure((le-ae)*a,me*E,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*E,(le-ae)*a,(me-ie)*E,(le-ie)*a,(me-ae)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*E,(le+ie)*a,(me-ae)*E,(le+ae)*a,(me-ie)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*E,(le+ae)*a,(me+ie)*E,(le+ie)*a,(me+ae)*E)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*E,(le-ie)*a,(me+ae)*E,(le-ae)*a,(me+ie)*E).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.75*E,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*E)),x}),go.Shape.defineFigureGenerator("Bookmark",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),x}),go.Shape.defineFigureGenerator("Bookmark",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*E)),x}),go.Shape.defineFigureGenerator("Globe",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*E,.75*a,0,a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,a,.75*E,.75*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.25*a,E,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*E,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,E,.15*a,.25*E,.15*a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*E,.85*a,.25*E)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*E,.35*a,.3*E,.65*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*E,.35*a,.7*E,.65*a,.7*E)),x}),go.Shape.defineFigureGenerator("Wave",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.25*E,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*E,.1*a,0,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*E,.425*a,.5*E,.575*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*E,.8*a,0,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*E,.1*a,.5*E,.2*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*E,.425*a,E,.575*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*E,.8*a,.5*E,.9*a,.5*E)),x}),go.Shape.defineFigureGenerator("Operator",function(oe,a,E){var x=new go.Geometry,y=.3,ee=ue*.3,ne=.5,ae=.7,ie=new go.PathFigure((ne-y)*a,ae*E,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*a,ae*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*a,ae*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E));var le=new go.PathFigure(0,.7*E,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*E,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.65*a,.3*E,.65*a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*E,.35*a,.3*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,E,.3*a,.6*E,.1*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.2*a,E,.35*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,E,.7*a,.6*E,.9*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*E,.8*a,E,.65*a,.95*E)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,0,.075*E,0,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,E,0,E,.4*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*E,.8*a,E,.85*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*E));var ee=new go.PathFigure(0,.6*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Move,0,.4*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.4*E)),x}),go.Shape.defineFigureGenerator("Delete",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*.5,ne=.5,ae=.5,ie=new go.PathFigure((ne-y)*a,ae*E,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*a,ae*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*a,ae*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E));var le=new go.PathFigure(.15*a,.5*E,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*E)),x}),go.Shape.defineFigureGenerator("Flag",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.1*E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*E,.15*a,0,.35*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*E,.65*a,.2*E,.85*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*E,.85*a,.6*E,.65*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*E,.35*a,.4*E,.15*a,.4*E).close()),x}),go.Shape.defineFigureGenerator("Help",function(oe,a,E){var x=new go.Geometry,y=.5,ee=ue*.5,ne=.5,ae=.5,ie=new go.PathFigure((ne-y)*a,ae*E,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*a,ae*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*a,ae*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E).close()),y=.05,ee=ue*.05,ne=.5,ae=.8;var le=new go.PathFigure((ne-y)*a,ae*E,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae-y)*E,(ne-y)*a,(ae-ee)*E,(ne-ee)*a,(ae-y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*a,ae*E,(ne+ee)*a,(ae-y)*E,(ne+y)*a,(ae-ee)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(ae+y)*E,(ne+y)*a,(ae+ee)*E,(ne+ee)*a,(ae+y)*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*a,ae*E,(ne-ee)*a,(ae+y)*E,(ne-y)*a,(ae+ee)*E).close()),le.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*E)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*E,.75*a,.475*E,.75*a,.225*E)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*E,.4*a,.2*E,.3*a,.25*E)),x}),go.Shape.defineFigureGenerator("Location",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.5*a,E,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*E,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*E,.5*a,0,.025*a,.025*E).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*E)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*E,.1*a,.1*E).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var ee=new go.PathFigure(.2*a,.5*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*E,.25*a,0,.75*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*E)),x}),go.Shape.defineFigureGenerator("Unlocked",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*E));var ee=new go.PathFigure(.2*a,.5*E,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*E,.25*a,0,.75*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*E)),x}),go.Shape.defineFigureGenerator("Gear",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*E,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*E,.79840625*a,.39915625*E,.7834375*a,.3635*E)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*E)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*E)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*E)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*E,.64228125*a,.2188125*E,.603875*a,.2021875*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*E)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*E)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*E)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*E,.39759375*a,.20190625*E,.36053125*a,.2176875*E)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*E)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*E)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*E)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*E,.21765625*a,.36059375*E,.201875*a,.397625*E)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*E)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*E)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*E)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*E,.20221875*a,.603875*E,.21884375*a,.64228125*E)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*E)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*E)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*E,.36353125*a,.78340625*E,.3991875*a,.79840625*E)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*E)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*E,.602375*a,.79809375*E,.63946875*a,.78234375*E)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*E)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*E)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*E)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*E,.78234375*a,.63940625*E,.798125*a,.602375*E)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*E).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*E)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*E,.1*a,.1*E).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.5*E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*E,0,.375*E,.05*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*E,.3*a,.225*E,.4*a,.175*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*E,.46*a,.05*E,.525*a,.05*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*E,.525*a,.275*E,.475*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*E,a,.4*E,a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*E,.675*a,.55*E,.675*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*E,.65*a,.7*E,.65*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,E,.61*a,.85*E,.61*a,E)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*E,.435*a,E,0,E).close()),x}),go.Shape.defineFigureGenerator("Map",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,.2*E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,E).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*E)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E)),y.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*E)),x}),go.Shape.defineFigureGenerator("Eject",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,E)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.7).close());var ee=new go.PathFigure(0,E*.6,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.6*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*E)).add(new go.PathSegment(go.PathSegment.Line,a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,E)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*E).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*1,E*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,E*.85)),y.add(new go.PathSegment(go.PathSegment.Line,a,E*.85).close());var ee=new go.PathFigure(.126*a,.85*E,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*E)),ee.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*E).close());var ne=new go.PathFigure(.402*a,.85*E,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*E)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*E).close());var ae=new go.PathFigure(.678*a,.85*E,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*E)),ae.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*E).close());var ie=new go.PathFigure(.5*a,.1*E,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*E)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*E).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,E*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,E*(1-.184)).close());var ee=new go.PathFigure(a*.204,E,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.204,E*(1-.184))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.388,E*(1-.184*2))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.388,E*1).close());var ne=new go.PathFigure(a*.408,E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.408,E*(1-.184*2))),ne.add(new go.PathSegment(go.PathSegment.Line,a*.592,E*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,a*.592,E*1).close());var ae=new go.PathFigure(a*.612,E,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.612,E*(1-.184*3))),ae.add(new go.PathSegment(go.PathSegment.Line,a*.796,E*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*.796,E*1).close());var ie=new go.PathFigure(a*.816,E,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.816,E*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var ee=new go.PathFigure(a*.055,.07*E,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.07)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.1).close());var ne=new go.PathFigure(a*.055,.13*E,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.13)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.16)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.16).close());var ae=new go.PathFigure(a*.055,.18*E,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.18)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.245,E*.21)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.055,E*.21).close());var ie=new go.PathFigure(a*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(.55*a,E,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*E)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*E,0,.4*E,.225*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*E)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*E)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*E)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*E,.975*a,0,a,.08*E)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*E)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*E)),y.add(new go.PathSegment(go.PathSegment.Line,.55*a,E).close()),x}),go.Shape.defineFigureGenerator("Key",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*1,E*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*E)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*E)),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*E).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*E)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*E,.075*a,.075*E).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),E*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1));var ee=new go.PathFigure(0,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*1,E*0)),ee.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),ee.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1));var ne=new go.PathFigure(a*.11,E*.1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),E*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),E*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.11,E*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*1+.028*1),E*.1,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),E*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),E*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),E*.8).close());var ie=new go.PathFigure(a*(.11+.24133333*2+.028*2),E*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),E*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),E*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),E*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,a,E){var x=new go.Geometry,y=8,ee=y*ue,ne=new go.PathFigure(y,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.14)),ne.add(new go.PathSegment(go.PathSegment.Line,a,E-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-y,E,a,E-ee,a-ee,E)),ne.add(new go.PathSegment(go.PathSegment.Line,y,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,E-y,ee,E,0,E-ee)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,ee,ee,0).close());var ae=new go.PathFigure(a*.83,0,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,E*.3)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*.3)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*0).close());var ie=new go.PathFigure(a*.83,E*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,a*.83,E*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,a*.17,E*1).close());var le=new go.PathFigure(a*.78,E*.05,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.05)),le.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.25)),le.add(new go.PathSegment(go.PathSegment.Line,a*.78,E*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,a,E){var x=oe?oe.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,E/3);var y=x*ue,ee=E*.8,ne=new go.Geometry,ae=new go.PathFigure(x,0,!0);return ne.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-y,0,a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,a,ee-x)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a-x,ee,a,ee-y,a-y,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.7,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.55,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-x,y,ee,0,ee-y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,x)),ae.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(ne.spot1=new go.Spot(0,0,y,y),ne.spot2=new go.Spot(1,.8,-y,-y)):(ne.spot1=go.Spot.TopLeft,ne.spot2=new go.Spot(1,.8)),ne}),go.Shape.defineFigureGenerator("Repeat",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*0,E*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,E*.45).close());var ee=new go.PathFigure(a*1,E*.55,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.55)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*.55)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(oe,a,E){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E)).add(new go.PathSegment(go.PathSegment.Line,0,E).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*E)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*E)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*E).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*E)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*E).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*E)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*E)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*E).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*0,E*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*.9).close());var ee=new go.PathFigure(a*.1,E*.2,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.22,E*.285)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.32)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.1,E*.37)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.275,E*.32)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.275,E*.25).close());var ne=new go.PathFigure(a*.28,E*.37,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.37)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.41)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.28,E*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(oe,a,E){var x=new go.Geometry,y=15,ee=y*ue,ne=new go.PathFigure(a*.62,E*.475,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,E-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-y,E,a,E-ee,a-ee,E)),ne.add(new go.PathSegment(go.PathSegment.Line,y,E)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,E-y,ee,E,0,E-ee)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.38,E*.475)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.38,E*.03)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.62,E*.03).close()),ee>1?(x.spot1=new go.Spot(0,0,ee,ee),x.spot2=new go.Spot(1,1,-ee,-ee)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);x.add(y);var ee=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-ee)).close());var ne=new go.PathFigure(a*.4,E*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.26,E*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.66)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),E*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);x.add(y);var ee=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-ee)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*0,E*1,!0);x.add(y);var ee=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,E*(1-ee))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*(1-ee)).close());var ne=new go.PathFigure(a*.5,E*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.26,E*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,E*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.6,E*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.74,E*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*.15,E*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*.15,E*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,E*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,E*1).close());var ee=new go.PathFigure(a*.235,E*.28,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.765,E*.28)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.655,E*.97)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.345,E*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(oe,a,E){var x=new go.Geometry,y=new go.PathFigure(a*.5,E*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,E*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,E*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,E*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,E*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,E*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016: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 ut={},Ue="5.0",z={},b=null,re=!1,Se=!1,Pe=null,Ie=!1,Fe=null,ue=null,Te=0;Te4?parseFloat(Ne):5};ut.setHTML5Codebase=function(Ne,Ye){ue=Ne,He(Ne,Ye)},ut.setJavaCodebase=ut.setJavaCodebaseVersion=ut.isCompiledInstalled=ut.setPreCompiledScriptPath=ut.setPreCompiledResourcePath=function(){},ut.setHTML5CodebaseVersion=function(Ne,Ye){var Xe=parseFloat(Ne);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}Fe=Ne,Re(Ne,Ye)},ut.getHTML5CodebaseVersion=function(){return oe},ut.getParameters=function(){return z},ut.setFontsCSSURL=function(Ne){ne=Ne},ut.setGiacJSURL=function(Ne){},ut.setJNLPFile=function(Ne){Oe=Ne},ut.setJNLPBaseDir=function(Ne){},ut.inject=function(){function Ne(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Xe=z.id,st,ct=!1,Ct=0;Ct=5)return!0;var Ne=ut.getAppletObject();return Ne&&typeof Ne.recalculateEnvironments=="function"?(Ne.recalculateEnvironments(),!0):!1},ut.startAnimation=function(){var Ne=ut.getAppletObject();return Ne&&typeof Ne.startAnimation=="function"?(Ne.startAnimation(),!0):!1},ut.stopAnimation=function(){var Ne=ut.getAppletObject();return Ne&&typeof Ne.stopAnimation=="function"?(Ne.stopAnimation(),!0):!1},ut.getAppletObject=function(){var Ne=z.id!==void 0?z.id:"ggbApplet";return window[Ne]},ut.resize=function(){};var de=function(Ne,Ye,Xe){var st=document.createElement("param");st.setAttribute("name",Ye),st.setAttribute("value",Xe),Ne.appendChild(st)},se=function(Ne){return Ne&&Ne!=="false"},Me=function(Ne,Ye,Xe){ie(oe)<=4.2&&(Xe=!0);var st=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!E)&&(st=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ct=document.createElement("div");ct.classList.add("appletParameters","notranslate");var Ct=Ye.width,et=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(ie(oe)<=4.4)se(Ye.showToolBar)&&(Ye.height-=7),se(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&se(Ye.showToolBar)&&(Ye.width=605,Ct=605);else{var Qt=100;(se(Ye.showToolBar)||se(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),Qt=se(Ye.showMenuBar)?245:155),Ct=5?(Ye.appletOnLoad=function(Zn){var _e=Ne.querySelector(".ggb_preview");_e&&_e.parentNode.removeChild(_e),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(gn),window.GGBT_wsf_view&&$(window).trigger("resize"),In(Zn)},Lt||gn.appendChild(Ve)):ct.appendChild(Ve),gn.appendChild(ct),Lt||Ne.appendChild(gn),setTimeout(function(){ut.resize()},1)}else{var nt=document.createElement("div");nt.className="applet_scaler",nt.style.position="relative",nt.style.display="block",nt.appendChild(ct),Ne.appendChild(nt),Ye.appletOnLoad=function(Zn){ut.resize(),In(Zn)}}function at(Zn,_e){_e&&typeof _e.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Zn,_e.appletOnLoad):renderGGBElement(Zn),it("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",_e)}function rt(Zn,_e){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Zn,params:_e}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pt){at(Pt.article,Pt.params)}),html5AppletsToProcess=null)},ie(oe)<5&&(Zn.className+=" geogebraweb")):at(Zn,_e)}if(st){scriptLoadStarted=!0;for(var jt=0;jt0?(un.remove(),gn.attr("id","fullscreencontent").show(),jQuery(In).append(gn),window.dispatchEvent(new Event("resize"))):Me(un,Ye,!1),window.GGBT_wsf_view.launchFullScreen(In)}else ce=st,Me(Ne,Ye,!1);if(!window.GGBT_wsf_view)for(et=0;etNe/4*3&&(un=Ne/4*3),In=un/5.8,Qt.setAttribute("src",y),Qt.setAttribute("width",un),Qt.setAttribute("height",In);var gn=(Ne-un)/2,Lt=(Ye-In)/2;Qt.style.left=gn+"px",Qt.style.top=Lt+"px",ct.appendChild(Qt)}}return ct.appendChild(et),ct},qe=function(Ne){return Ne=Ne.toLowerCase(),Ne==="html5"||Ne==="screenshot"?Ne:"html5"},Je=["web","webSimple","web3d","tablet","tablet3d","phone"],Re=function(Ne,Ye){if(oe=Ne,Ye){He(oe,!0);return}var Xe=!re;if(Xe){var st=ie(oe);!isNaN(st)&&st<4.4&&(Xe=!1)}var ct,Ct;window.location.protocol.substr(0,4)==="http"?ct=window.location.protocol:ct="http:";var et=oe.indexOf("//");et>0?Ct=oe:et===0?Ct=ct+oe:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var Qt in Je)if(oe.slice(Je[Qt].length*-1)===Je[Qt]||oe.slice((Je[Qt].length+1)*-1)===Je[Qt]+"/"){He(Ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!se(z.showToolBar)&&!se(z.showMenuBar)&&!se(z.showAlgebraInput)&&!se(z.enableRightClick)&&(!z.appName||z.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",He(Ct,!1)},He=function(Ne,Ye){if(Ne.requirejs){Ze=Ne;return}Ne.slice(-1)!=="/"&&(Ne+="/"),Ze=Ne,Ye===null&&(Ye=Ne.indexOf("http")===-1),Be=Ye,a="web.nocache.js",E=!1;var Xe=Ze.split("/");Xe.length>1&&(!Ye&&Xe[Xe.length-2]==="webSimple"?(a="webSimple.nocache.js",E=!0):Je.indexOf(Xe[Xe.length-2])>=0&&(a=Xe[Xe.length-2]+".nocache.js")),Xe=Ne.split("/"),oe=Xe[Xe.length-3],oe.substr(0,4)==="test"?oe=oe.substr(4,1)+"."+oe.substr(5,1):(oe.substr(0,3)==="war"||oe.substr(0,4)==="beta")&&(oe="5.0");var st=parseFloat(oe);st!==NaN&&st<5&&Ne.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+st+" is deprecated. Using version latest instead."),Re("5.0",Ye))},it=function(Ne,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Ne)};z.material_id!==void 0?fe($e):$e();function $e(){var Ne=Ue;Fe!==null?Ne=Fe:parseFloat(Ne)<5&&(Ne="5.0"),Re(Ne,!1),ue!==null&&He(ue,Be),Ie=!0}return ut},GGBAppletUtils=function(){"use strict";function ut(){return window.GGBT_wsf_edit!==void 0}function Ue(Ie,Fe){Fe!=1?(Ie.style.transformOrigin="0% 0% 0px",Ie.style.webkitTransformOrigin="0% 0% 0px",Ie.style.transform="scale("+Fe+","+Fe+")",Ie.style.webkitTransform="scale("+Fe+","+Fe+")",Ie.style.maxWidth="initial",Ie.querySelector(".ggb_preview")!==null&&(Ie.querySelector(".ggb_preview").style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ie.style.transform="none",Ie.style.webkitTransform="none")}function z(Ie,Fe,ue,Te,je,Oe){var Ze=null;if(Oe!=null&&Oe!="")for(var Be=Ie.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+Oe+" ")>-1){Ze=Be;break}else Be=Be.parentNode;var ce=0,oe=0,a=0,E=0,x=0,y=0,ee=0;if(Ze)ce=Ze.offsetWidth,oe=Math.max(Te?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ce=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ce):(ce=window.innerWidth,oe=window.innerHeight,a=window.innerWidth),Ie){var ne=Ie.getBoundingClientRect();ne.left>0&&ne.left<=ce&&(je===void 0||!je)&&(document.dir==="rtl"?(x=ce-ne.width-ne.left,y=a<=480?10:30):(y=ne.left,x=a<=480?10:30),E=y+x)}if(Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ae=Ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(E=40,ee=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(E=0,ee=40)}}return Ie&&((ue===void 0||!ue)&&Fe>0&&Fe+E1&&(Oe=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Oe=!0),!(Ie.hasOwnProperty("disableAutoScale")&&Ie.disableAutoScale))je=b(Ie,Fe,Oe,ue,Ie.scaleContainerClass);else return Te;return Oe&&(!Ie.hasOwnProperty("scale")||Te===1)?je:Math.min(Te,je)}function Se(Ie){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=Ie.getBoundingClientRect(),je=(Fe-Te.width)/2,Oe=(ue-Te.height)/2;Oe<0&&(Oe=0),Ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(je<40?Ie.style.left="40px":Ie.style.left=je+"px",Ie.style.top=Oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Oe<40?Ie.style.top="40px":Ie.style.top=Oe+"px",Ie.style.left=je+"px")}function Pe(Ie,Fe){var ue=Ie.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Te=re(Fe,Ie);ut()&&ue.setAttribute("data-param-scale",Te);for(var je=null,Oe=0;Oe=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(ut){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ut){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ut){var Ue=c[ut];return Ue==null?null:Ue},r=d,webModule.__errFn=e}function B(){function ut(Ie){var Fe=Ie.lastIndexOf(rb);Fe==-1&&(Fe=Ie.length);var ue=Ie.indexOf(sb);ue==-1&&(ue=Ie.length);var Te=Ie.lastIndexOf(tb,Math.min(ue,Fe));return Te>=O?Ie.substring(O,Te+P):W}function Ue(Ie){if(!Ie.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=Ie+vb,Ie=ut(Fe.src)}return Ie}function z(){var Ie=__gwt_getMetaProperty(wb);return Ie!=null?Ie:W}function b(){for(var Ie=o.getElementsByTagName(_),Fe=O;FeO?Ie[Ie.length-P].href:W}function Se(){var Ie=o.location;return Ie.href==Ie.protocol+zb+Ie.host+Ie.pathname+Ie.search+Ie.hash}var Pe=z();return Pe==W&&(Pe=b()),Pe==W&&(Pe=re()),Pe==W&&Se()&&(Pe=ut(o.location.href)),Pe=Ue(Pe),Pe}function C(ut){return ut.match(/^\//)||ut.match(/^[a-zA-Z]+:\/\//)?ut:webModule.__moduleBase+ut}function D(){var ut=[],Ue=O,z=[],b=[];function re(Ie){var Fe=b[Ie](),ue=z[Ie];if(Fe in ue)return Fe;var Te=[];for(var je in ue)Te[ue[je]]=je;throw r&&r(Ie,Te,Fe),null}if(__gwt_isKnownPropertyValue=function(Ie,Fe){return Fe in z[Ie]},webModule.__getPropMap=function(){var Ie={};for(var Fe in z)z.hasOwnProperty(Fe)&&(Ie[Fe]=re(Fe));return Ie},webModule.__computePropValue=re,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Se;try{Se=Cb;var Pe=Se.indexOf(Db);Pe!=-1&&(Ue=parseInt(Se.substring(Pe+P),$),Se=Se.substring(O,Pe))}catch(Ie){}return webModule.__softPermutationId=Ue,C(Se+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(ut,Ue,z){"use strict";z.d(Ue,{Ax:function(){return Pe},Ds:function(){return Ie},KI:function(){return ue},SI:function(){return Se},f1:function(){return re}});var b=z(11320);function re(Te){let je=!0;if(Te.length>0){for(let Oe=0;OeE in a?Te(a,E,{enumerable:!0,configurable:!0,writable:!0,value:x}):a[E]=x,Oe=(a,E,x)=>je(a,typeof E!="symbol"?E+"":E,x),Ze=(a,E,x)=>new Promise((y,ee)=>{var ne=le=>{try{ie(x.next(le))}catch(me){ee(me)}},ae=le=>{try{ie(x.throw(le))}catch(me){ee(me)}},ie=le=>le.done?y(le.value):Promise.resolve(le.value).then(ne,ae);ie((x=x.apply(a,E)).next())});class Be extends b.Component{constructor(E){super(E),Oe(this,"canvas"),Oe(this,"randomNum",(x,y)=>Math.floor(Math.random()*(y-x)+x)),Oe(this,"drawPic",()=>{this.randomCode()}),Oe(this,"reloadPic",()=>{this.drawPic()}),Oe(this,"changeCode",x=>{console.log(x.target.value,222),this.setState({value:x.target.value,showError:!1})}),Oe(this,"onVerify",()=>{let x;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(x=!0,re.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(x=!0,re.ZP.error(intl.formatMessage({id:"common.enterVerificationCode",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}))):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(x=!1),this.setState({showError:x}),x}),this.canvas=b.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(E,x){const y=this.randomNum(E,x),ee=this.randomNum(E,x),ne=this.randomNum(E,x);return`rgb(${y}, ${ee}, ${ne})`}drawText(E,x,y){E.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const ee=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);E.font=ee+"px SimHei";const ne=10,ae=(this.state.contentWidth-40)/(this.state.code.length-1);let ie=ne;y>0&&(ie=ne+y*ae);let le=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);ee>40&&(le=40);const me=this.randomNum(-10,10);E.translate(ie,le),E.rotate(me*Math.PI/180),E.fillText(x,0,0),E.rotate(-me*Math.PI/180),E.translate(-ie,-le)}drawLine(E){for(let x=0;x<1;x++)E.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),E.beginPath(),E.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),E.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),E.stroke()}drawDot(E){for(let x=0;x<100;x++)E.fillStyle=this.randomColor(0,255),E.beginPath(),E.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),E.fill()}randomCode(){let E="";const x="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let y=0;y{const ee=this.canvas.current.getContext("2d");ee.textBaseline="bottom",ee.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),ee.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let ne=0;ne{const x=useIntl();let y;Modal.confirm({centered:!0,okText:x.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:x.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:x.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:React.createElement("div",null,React.createElement("p",null,E),React.createElement(Be,{ref:ee=>y=ee})),onOk:()=>Ze(void 0,null,function*(){if(y.onVerify())return Promise.reject();a()})})};var oe=Be},20670:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Fe}});var b=z(55241),re={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Se=z(32637),Pe=z(67294),Fe=({type:ue,style:Te})=>{const je=Pe.createElement("div",{className:re.wrap,onClick:Oe=>{Oe.preventDefault(),Oe.stopPropagation()}},Pe.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",Pe.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"),Pe.createElement("div",{className:re.contact},Pe.createElement("div",{className:re.img},Pe.createElement("img",{src:Se,width:"124px",height:"124px"})),Pe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Pe.createElement(b.Z,{content:je},Pe.createElement("span",{className:re.text,style:Te},"\u9AD8\u6D88\u8017"))}},63205:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Be}});var b=z(67294),re={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Se=z(94184),Pe=z.n(Se),Ie=z(57953),Fe=z(15979),ue=z(33170),Te=z(28706),je=z(35973),Oe=(ce,oe,a)=>new Promise((E,x)=>{var y=ae=>{try{ne(a.next(ae))}catch(ie){x(ie)}},ee=ae=>{try{ne(a.throw(ae))}catch(ie){x(ie)}},ne=ae=>ae.done?E(ae.value):Promise.resolve(ae.value).then(y,ee);ne((a=a.apply(ce,oe)).next())}),Be=({data:ce,className:oe,fullWidth:a,style:E={},onClose:x,onOk:y,showFullTools:ee,noAssociationId:ne})=>{const ae=(0,je.useIntl)(),ie=(0,b.useRef)(null),le=(0,b.useRef)(null),me=(0,b.useRef)(null),fe=(0,b.useRef)(null),[pe,he]=(0,b.useState)(!1),[de,se]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{me.current||(me.current=document.createElement("style"),document.head.appendChild(me.current)),ce!=null&&ce.visible?(document.body.setAttribute("data-custom","y-hidden"),me.current.innerHTML=" html { overflow-y: hidden; }",ce!=null&&ce.src&&Me()):(document.body.removeAttribute("data-custom"),me.current&&(document.head.removeChild(me.current),me.current=null))},[ce==null?void 0:ce.visible]);const Me=()=>Oe(void 0,null,function*(){he(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ge=yield(0,Te.ZJ)(ce==null?void 0:ce.src);ie.current.src="",ie.current.src=Ge,ie.current.onload=function(){Le()},he(!1),se("")}),be=()=>{document.body.removeAttribute("data-custom"),me.current.innerHTML=" ",x()},De=Ge=>Oe(void 0,null,function*(){he(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ce.title,file:Ge.dataUrl}});qe!=null&&qe.id&&!ne?(yield(0,ue.ZP)(`/api/attachments/${ce.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(Ge.state)}})).status===0&&y():qe!=null&&qe.id&&y(qe),document.body.removeAttribute("data-custom"),me.current.innerHTML=" ",he(!1),se("")}),Ce=()=>{const Ge=document.querySelector('a[href="https://markerjs.com/"]');Ge&&Ge.parentNode&&(Ge.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:ae.formatMessage({id:"shixuns.text",defaultMessage:"\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:ae.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Je=>{const Re=document.querySelector(Je.name);Re&&Re.setAttribute("title",Je.title)})},Le=()=>{le.current=new Fe.hP(ie.current),le.current.targetRoot=fe.current,le.current.addEventListener("render",De),le.current.addEventListener("beforeclose",be),ee&&(le.current.availableMarkerTypes=le.current.ALL_MARKER_TYPES,le.current.uiStyleSettings.redoButtonVisible=!0,le.current.uiStyleSettings.notesButtonVisible=!0,le.current.uiStyleSettings.zoomButtonVisible=!0,le.current.uiStyleSettings.zoomOutButtonVisible=!0,le.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=le.current.uiStyleSettings,le.current.show(),ce!=null&&ce.snapshotData&&le.current.restoreState(ce.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ce()},300)};return b.createElement(b.Fragment,null,(ce==null?void 0:ce.visible)&&b.createElement(Ie.Z,{spinning:pe,tip:de,style:{position:"absolute"}},b.createElement("div",{ref:fe,className:Pe()(re.imageDimensions,oe,a?re.fullWidth:""),style:E},b.createElement("img",{className:re.img,ref:ie}))))}},36527:function(ut,Ue,z){"use strict";var b=z(67294),re=z(71230),Se=z(15746),Pe=z(66368),Ie=z(71577),Fe=z(85725),ue=z(71736),Te=z(84279),je=z(35973),Oe=z(67294);const Ze=(0,b.forwardRef)(({callback:Be,showSaveButton:ce,value:oe=""},a)=>{const E=(0,b.useRef)(),x=(0,je.useIntl)(),y=[{name:x.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:x.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:x.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:x.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:x.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:x.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:x.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],ee=[{name:x.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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 \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:x.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\u51E0\u4F55"}),value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:x.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\u4E0D\u7B49\u5F0F"}),value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:x.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\u79EF\u5206"}),value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:x.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\u4E09\u89D2"}),value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:x.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\u7EDF\u8BA1"}),value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\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}`}]}]}],ne=le=>{E.current.setValue(E.current.getValue()+" "+le.value+" ")},ae=[{key:"1",label:x.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:Oe.createElement(re.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((le,me)=>Oe.createElement(Se.Z,{flex:"110px",className:ue.Z.item},Oe.createElement("div",null,Oe.createElement(Fe.Z,{value:`$$${le.value}$$`}),le.name),Oe.createElement("div",{className:ue.Z.children},le.children.map((fe,pe)=>Oe.createElement("div",{key:pe},Oe.createElement("h1",null,fe.name),Oe.createElement(re.Z,{gutter:[10,10]},fe.data.map((he,de)=>Oe.createElement(Se.Z,{key:de,onClick:()=>ne(he),className:ue.Z.diamond},Oe.createElement(Fe.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:x.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:Oe.createElement(re.Z,{className:ue.Z.lists,gutter:[10,10]},ee.map((le,me)=>Oe.createElement(Se.Z,{flex:"110px",className:ue.Z.item},Oe.createElement("div",null,Oe.createElement(Fe.Z,{value:"`$$"+le.value+"$$`"}),le.name),Oe.createElement("div",{className:ue.Z.children},le.children.map((fe,pe)=>Oe.createElement("div",{key:pe},fe.name&&Oe.createElement("h1",null,fe.name),Oe.createElement(re.Z,{gutter:[10,10]},fe.data.map((he,de)=>Oe.createElement(Se.Z,{key:de,onClick:()=>ne(he),className:ue.Z.diamond},Oe.createElement(Fe.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],ie=()=>{var le=document.createElement("div");le.innerHTML=E.current.getValue();var me=le.innerText;return Be&&Be(me),me};return(0,b.useImperativeHandle)(a,()=>({getData:ie})),Oe.createElement("div",{className:ue.Z.mathWrap},Oe.createElement(Pe.default,{defaultActiveKey:"1",items:ae}),Oe.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:x.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:E,style:{width:800,marginTop:30,fontSize:18}},oe||""),ce&&Oe.createElement("div",{className:ue.Z.button},Oe.createElement(Ie.ZP,{size:"large",onClick:ie,style:{zIndex:8,marginTop:10},type:"primary"},x.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});Ue.Z=Ze},39717:function(ut,Ue,z){"use strict";z.d(Ue,{Q:function(){return ue}});var b=z(67294),re=z(11713),Se=z(78045),Pe=z(31795),Ie=z(35973),Fe=z(67294),ue=(je=>(je[je.Number=1]="Number",je[je.Percent=2]="Percent",je))(ue||{});const Te=({value:je,onChange:Oe,disabled:Ze,hidePercentOption:Be=!1,percentType:ce="select"})=>{const oe=(0,b.useMemo)(()=>Be?1:2,[Be]),[a,E]=(0,b.useState)(oe),x=(0,Ie.useIntl)();console.log(a);const y=ne=>je.type===1?`${ne}${x.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})}`:`${ne}%`,ee=(0,b.useCallback)(ne=>{if(a===1){const ae=ne.replace("\u5206","");return isNaN(parseInt(ae,10))?0:ae}else return ne.replace("%","")},[a]);return(0,b.useEffect)(()=>{E(je.type)},[je]),Fe.createElement("div",{style:{display:"flex",alignItems:"center"}},ce=="select"&&Fe.createElement(re.default,{size:"large",onChange:ne=>{E(ne),Oe({type:ne,inputValue:ne===1?5:20})},value:a||oe,style:{width:120},options:Be?[{label:x.formatMessage({id:"classroomProgrammingHomework.points",defaultMessage:"\u5206\u503C"}),value:1}]:[{label:x.formatMessage({id:"classrooms.percentage",defaultMessage:"\u767E\u5206\u6BD4"}),value:2},{label:x.formatMessage({id:"classroomProgrammingHomework.points",defaultMessage:"\u5206\u503C"}),value:1}],disabled:Ze}),ce=="radio"&&Fe.createElement(Se.ZP.Group,{size:"large",onChange:ne=>{const ae=ne.target.value;E(ae),Oe({type:ae,inputValue:ae===1?5:20})},value:a||oe,disabled:Ze},!Be&&Fe.createElement(Se.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Fe.createElement(Se.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),ce=="radio"&&Fe.createElement("div",{style:{marginRight:"10px",color:"#000000"}},je.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Fe.createElement(Pe.Z,{size:"large",disabled:Ze,value:je.inputValue,style:{width:"120px"},parser:ee,addonAfter:je.type===1?x.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}):"%",max:a===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:ne=>{Oe({type:a,inputValue:ne})}}),ce=="radio"&&je.type==2&&Fe.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Ue.Z=Te},45224:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return me}});var b=z(67294),re=z(1706),Se=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ue=(fe,pe,he)=>pe in fe?Se(fe,pe,{enumerable:!0,configurable:!0,writable:!0,value:he}):fe[pe]=he,Te=(fe,pe)=>{for(var he in pe||(pe={}))Ie.call(pe,he)&&ue(fe,he,pe[he]);if(Pe)for(var he of Pe(pe))Fe.call(pe,he)&&ue(fe,he,pe[he]);return fe},je=(fe,pe)=>{var he={};for(var de in fe)Ie.call(fe,de)&&pe.indexOf(de)<0&&(he[de]=fe[de]);if(fe!=null&&Pe)for(var de of Pe(fe))pe.indexOf(de)<0&&Fe.call(fe,de)&&(he[de]=fe[de]);return he};const Ze={header:{cell:fe=>{var pe=fe,{onResize:he,width:de}=pe,se=je(pe,["onResize","width"]);return de?b.createElement(re.Resizable,{width:de,height:0,handle:b.createElement("span",{className:"react-resizable-handle",onClick:Me=>{Me.stopPropagation()}}),onResize:he,draggableOpts:{enableUserSelectHack:!1}},b.createElement("th",Te({},se))):b.createElement("th",Te({},se))}}};var Be=z(9430),ce=Object.defineProperty,oe=Object.defineProperties,a=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,ee=(fe,pe,he)=>pe in fe?ce(fe,pe,{enumerable:!0,configurable:!0,writable:!0,value:he}):fe[pe]=he,ne=(fe,pe)=>{for(var he in pe||(pe={}))x.call(pe,he)&&ee(fe,he,pe[he]);if(E)for(var he of E(pe))y.call(pe,he)&&ee(fe,he,pe[he]);return fe},ae=(fe,pe)=>oe(fe,a(pe)),ie=(fe,pe)=>{var he={};for(var de in fe)x.call(fe,de)&&pe.indexOf(de)<0&&(he[de]=fe[de]);if(fe!=null&&E)for(var de of E(fe))pe.indexOf(de)<0&&y.call(fe,de)&&(he[de]=fe[de]);return he},me=fe=>{var pe=fe,{pagination:he,resColumns:de,dataSource:se,onRow:Me}=pe,be=ie(pe,["pagination","resColumns","dataSource","onRow"]);const[De,Ce]=(0,b.useState)(!1),[Le,Ge]=(0,b.useState)([{}]),qe=(0,b.useRef)(null);(0,b.useEffect)(()=>{let Re=de;Re=Re.map((He,it)=>ae(ne({},He),{onHeaderCell:$e=>({width:$e.width,onResize:Je(it)})})),Ge(Re)},[]),(0,b.useEffect)(()=>{qe.current=Le},[Le]);const Je=Re=>(He,{size:it})=>{const $e=[...qe.current];$e[Re]=ae(ne({},$e[Re]),{width:it.width}),Ge($e)};return b.createElement("div",null,b.createElement(Be.default,ae(ne({bordered:!0,components:Ze,columns:Le,dataSource:se,pagination:he,loading:De,onRow:Me},be),{rowKey:Re=>Re.key||Re.id})))}},85688:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return he},P:function(){return me}});var b=z(67294),re=z(22150),Se=z(14446),Pe=z(78045),Ie=z(69677),Fe=z(9430),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"},Te=z(93686),je=z(35973),Oe=Object.defineProperty,Ze=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,E=(de,se,Me)=>se in de?Oe(de,se,{enumerable:!0,configurable:!0,writable:!0,value:Me}):de[se]=Me,x=(de,se)=>{for(var Me in se||(se={}))oe.call(se,Me)&&E(de,Me,se[Me]);if(ce)for(var Me of ce(se))a.call(se,Me)&&E(de,Me,se[Me]);return de},y=(de,se)=>Ze(de,Be(se)),ee=(de,se)=>{var Me={};for(var be in de)oe.call(de,be)&&se.indexOf(be)<0&&(Me[be]=de[be]);if(de!=null&&ce)for(var be of ce(de))se.indexOf(be)<0&&a.call(de,be)&&(Me[be]=de[be]);return Me},ne=(de,se,Me)=>new Promise((be,De)=>{var Ce=qe=>{try{Ge(Me.next(qe))}catch(Je){De(Je)}},Le=qe=>{try{Ge(Me.throw(qe))}catch(Je){De(Je)}},Ge=qe=>qe.done?be(qe.value):Promise.resolve(qe.value).then(Ce,Le);Ge((Me=Me.apply(de,se)).next())});const ae=({studentNames:de,total:se})=>{const Me=(0,je.useIntl)(),be=["","\u4E00","\u4E24","\u4E09"];return se>3?b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ue.orangeColor},de==null?void 0:de.join("\u3001")),"\u7B49",b.createElement("span",{className:ue.orangeColor},se),Me.formatMessage({id:"competitions.studentCountShort",defaultMessage:"\u540D\u5B66\u751F"})):b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:ue.orangeColor},de==null?void 0:de.join("\u3001")),be[se],Me.formatMessage({id:"competitions.studentCountShort",defaultMessage:"\u540D\u5B66\u751F"}))},ie=({used:de,copy:se,canNotCopy:Me,studentNames:be,studentCount:De,inPaper:Ce,is_random:Le=!1,position:Ge=""})=>{const qe=(0,je.useIntl)(),Je=()=>{if(se>0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:ue.orangeColor},se),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:ue.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(se>0&&Me===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:ue.orangeColor},se),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(se===0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:ue.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Re=Ge||(Ce?qe.formatMessage({id:"classrooms.examPaper",defaultMessage:"\u8BD5\u5377"}):"\u8BFE\u7A0B");return b.createElement("span",null,b.createElement(ae,{studentNames:be,total:De}),"\u5B66\u4E60\u8FC7",Re,"\u4E2D\u7684",b.createElement("span",{className:ue.orangeColor},de),"\u4E2A\u9879\u76EE\uFF0C",Je(),"\u3002\u8BF7\u9009\u62E9",Le?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},le=({onCancel:de,onOk:se,visible:Me,inPaper:be,renderData:De,type:Ce,isMultipleCourse:Le=!1})=>{const Ge=(0,je.useIntl)(),[qe]=re.default.useForm(),[Je,Re]=(0,b.useState)(1),[He,it]=(0,b.useState)(!1),$e=(0,b.useMemo)(()=>(De==null?void 0:De.total_num)===1&&(De==null?void 0:De.can_copy_num)===1,[De]),Ne=(0,b.useMemo)(()=>{var Ye;return(Ye=De==null?void 0:De.course_data_list)==null?void 0:Ye.filter(Xe=>Xe.is_show)},[De]);return b.createElement(b.Fragment,null,$e?b.createElement(Se.default,{centered:!0,closable:!0,open:Me,destroyOnClose:!0,title:Ge.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),className:ue.antdModal,width:682,confirmLoading:He,onCancel:de,onOk:()=>ne(void 0,null,function*(){var Ye;it(!0);let Xe=Je;if(Le){const st=x({},qe.getFieldsValue());Xe=(Ye=De==null?void 0:De.course_data_list)==null?void 0:Ye.map(ct=>st[ct.id]!==void 0?y(x({},ct),{is_copy:st[ct.id]}):ct)}yield se(Xe),it(!1)})},b.createElement("div",{className:ue.content,style:{marginBottom:20}},Le?"\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?":b.createElement(b.Fragment,null,b.createElement(ae,{studentNames:De==null?void 0:De.student_names,total:De==null?void 0:De.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")),Le?b.createElement(re.default,{form:qe,preserve:!1},Ne==null?void 0:Ne.map(Ye=>b.createElement(b.Fragment,{key:Ye.id},b.createElement("h3",{className:"ml15 mb5"},Ye.name),b.createElement(re.default.Item,{name:Ye.id,initialValue:1},b.createElement(Pe.ZP.Group,{className:ue.content},b.createElement(Pe.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),b.createElement(Pe.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):b.createElement(Pe.ZP.Group,{value:Je,onChange:Ye=>Re(Ye.target.value),className:ue.content,style:{marginBottom:30}},b.createElement(Pe.ZP,{value:1,style:{color:"#464f66"}},Ge.formatMessage({id:"shixuns.copy",defaultMessage:"\u590D\u5236"})),b.createElement(Pe.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),b.createElement("div",null,b.createElement("div",{className:ue.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),b.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"),b.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"))):b.createElement(Se.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Me,confirmLoading:He,title:Ge.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),width:682,onCancel:de,onOk:()=>ne(void 0,null,function*(){var Ye;it(!0);let Xe=0;if(Le){const st=x({},qe.getFieldsValue());Xe=(Ye=De==null?void 0:De.course_data_list)==null?void 0:Ye.map(ct=>st[ct.id]!==void 0?y(x({},ct),{is_use:st[ct.id]}):ct)}yield se(Xe),it(!1)})},b.createElement("div",{className:ue.content},b.createElement(ae,{studentNames:De==null?void 0:De.student_names,total:De==null?void 0:De.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Le?b.createElement(re.default,{form:qe,preserve:!1},b.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"),Ne==null?void 0:Ne.map(Ye=>b.createElement(b.Fragment,{key:Ye.id},b.createElement("h3",{className:"ml15 mb5"},Ye.name),b.createElement(re.default.Item,{name:Ye.id,initialValue:1},b.createElement(Pe.ZP.Group,{className:ue.content},b.createElement(Pe.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),b.createElement(Pe.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):b.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",b.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"))))},me=function(){const de=(0,je.useIntl)(),[se,Me]=(0,b.useState)(!1),[be,De]=(0,b.useState)();return[se,()=>Me(!1),be,Ge=>ne(this,null,function*(){var qe;const Je=Ge,{isImportMultipleCourse:Re=!1}=Je,He=ee(Je,["isImportMultipleCourse"]);console.log(Ge);const it=(Ge==null?void 0:Ge.result)||(yield(0,Te.Tr)(He));return"status"in it?!1:Re?((qe=it==null?void 0:it.course_data_list)==null?void 0:qe.some(Ne=>Ne.is_show))?(De(it),Me(!0),!0):it.course_data_list||[]:it.student_count===0?!1:(De(it),Me(!0),!0)})]},fe=de=>{const se=(0,je.useIntl)(),[Me]=re.default.useForm(),[be,De]=(0,b.useState)(!1),{onCancel:Ce,onOk:Le,visible:Ge,inPaper:qe=!1,renderData:Je,type:Re,isMultipleCourse:He=!1,position:it}=de;let $e=(0,b.useMemo)(()=>qe?[{title:se.formatMessage({id:"classroomClassroomExperiments.practicalProjectName",defaultMessage:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0"}),dataIndex:"name",width:424,align:"center",ellipsis:!0,className:ue.tableCell,render(Xe,st){return b.createElement("a",{href:`/shixuns/${st.identifier}/challenges`,target:"_blank"},Xe)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Xe,st)=>b.createElement(b.Fragment,null,b.createElement(re.default.Item,{name:[`${Re==="subject"?st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_copy"],initialValue:1},b.createElement(Pe.ZP.Group,null,b.createElement(Pe.ZP,{value:1},se.formatMessage({id:"classrooms.yes",defaultMessage:"\u662F"})),b.createElement(Pe.ZP,{value:0},se.formatMessage({id:"classrooms.no",defaultMessage:"\u5426"})))),b.createElement(re.default.Item,{name:[`${Re==="subject"?st==null?void 0:st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Ie.default,{type:"hidden"})))}]:[{title:se.formatMessage({id:"classroomClassroomExperiments.practicalProjectName",defaultMessage:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0"}),dataIndex:"name",width:424,align:"center",ellipsis:!0,className:ue.tableCell,render(Xe,st){return b.createElement("a",{href:`/shixuns/${st.identifier}/challenges`,target:"_blank"},Xe)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Xe,st)=>b.createElement(re.default.Item,{name:[`${Re==="subject"?st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_use"],initialValue:1},b.createElement(Pe.ZP.Group,null,b.createElement(Pe.ZP,{value:1},se.formatMessage({id:"classrooms.yes",defaultMessage:"\u662F"})),b.createElement(Pe.ZP,{value:0},se.formatMessage({id:"classrooms.no",defaultMessage:"\u5426"}))))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Xe,st)=>b.createElement(re.default.Item,{name:[`${Re==="subject"?st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_copy"],initialValue:1},b.createElement(Pe.ZP.Group,null,b.createElement(Pe.ZP,{value:1},se.formatMessage({id:"classrooms.yes",defaultMessage:"\u662F"})),b.createElement(Pe.ZP,{value:0},se.formatMessage({id:"classrooms.no",defaultMessage:"\u5426"}))))}],[qe]),Ne=(0,b.useMemo)(()=>qe?[{title:se.formatMessage({id:"classroomClassroomExperiments.practicalProjectName",defaultMessage:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0"}),dataIndex:"name",width:424,className:ue.tableCell,align:"center",ellipsis:!0,render:(Xe,st)=>b.createElement(b.Fragment,null,b.createElement("a",{href:`/shixuns/${st.identifier}/challenges`,target:"_blank"},Xe),b.createElement(re.default.Item,{name:[`${Re==="subject"?st==null?void 0:st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Ie.default,{type:"hidden"})),b.createElement(re.default.Item,{name:[`${Re==="subject"?st==null?void 0:st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Ie.default,{type:"hidden"})))}]:[{title:se.formatMessage({id:"classroomClassroomExperiments.practicalProjectName",defaultMessage:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0"}),dataIndex:"name",width:424,className:ue.tableCell,ellipsis:!0,align:"center",render:(Xe,st)=>b.createElement("a",{href:`/shixuns/${st.identifier}/challenges`,target:"_blank"},Xe)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Xe,st)=>b.createElement(b.Fragment,null,b.createElement(re.default.Item,{name:[`${Re==="subject"?st==null?void 0:st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_use"],initialValue:0},b.createElement(Pe.ZP.Group,null,b.createElement(Pe.ZP,{value:1},se.formatMessage({id:"classrooms.yes",defaultMessage:"\u662F"})),b.createElement(Pe.ZP,{value:0},se.formatMessage({id:"classrooms.no",defaultMessage:"\u5426"})))),b.createElement(re.default.Item,{name:[`${Re==="subject"?st==null?void 0:st.stage_shixun_id:st.shixun_course_id||st.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Ie.default,{type:"hidden"})))}],[qe]);if(He){const Xe={title:se.formatMessage({id:"personalHomepageclassrooms.classroomName",defaultMessage:"\u8BFE\u5802\u540D\u79F0"}),ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:ue.tableCell,render:(st,ct)=>b.createElement("a",{href:`/classrooms/${ct.course_id}`},st)};$e=[Xe,...$e],Ne=[Xe,...Ne]}const Ye=(0,b.useMemo)(()=>ie({used:Je==null?void 0:Je.repeat_shixun_num,copy:Je==null?void 0:Je.can_copy_num,canNotCopy:Je==null?void 0:Je.no_copy_num,studentNames:Je==null?void 0:Je.student_names,studentCount:Je==null?void 0:Je.student_count,is_random:Je==null?void 0:Je.is_random,inPaper:qe,position:it}),[Je,qe,it]);return b.createElement(Se.default,{title:se.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),centered:!0,open:Ge,confirmLoading:be,onOk:()=>ne(void 0,null,function*(){De(!0);const Xe=Me.getFieldsValue(),st=Object.keys(Xe).map(ct=>({id:parseInt(ct.split("_")[0]),course_id:parseInt(ct.split("_")[1]),is_use:Xe[ct].is_use,is_copy:Xe[ct].is_copy}));yield Le(st),De(!1)}),onCancel:Ce,width:880,okText:se.formatMessage({id:"shixuns.confirm",defaultMessage:"\u786E\u8BA4"}),className:ue.antdModal,destroyOnClose:!0},b.createElement(re.default,{form:Me,preserve:!1},b.createElement("div",{className:ue.brief},Ye),b.createElement("div",{style:{marginBottom:30}},b.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),b.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"),b.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")),(Je==null?void 0:Je.can_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:ue.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(Fe.default,{columns:$e,className:ue.antdTable,dataSource:Je==null?void 0:Je.can_copy_list,rowKey:Re==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Je==null?void 0:Je.no_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:ue.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(Fe.default,{columns:Ne,className:ue.antdTable,dataSource:Je==null?void 0:Je.no_copy_list,rowKey:Re==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Je==null?void 0:Je.no_use_list.length)>0&&(Je==null?void 0:Je.no_use_list.map(Xe=>b.createElement("div",{key:Re==="subject"?Xe.stage_shixun_id:Xe.shixun_course_id||Xe.id},b.createElement(re.default.Item,{name:[`${Re==="subject"?Xe==null?void 0:Xe.stage_shixun_id:Xe.shixun_course_id||Xe.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Ie.default,{type:"hidden"})),b.createElement(re.default.Item,{name:[`${Re==="subject"?Xe==null?void 0:Xe.stage_shixun_id:Xe.shixun_course_id||Xe.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Ie.default,{type:"hidden"})))))))};var he=de=>{const{modalType:se}=de;return se==="multiple"?b.createElement(fe,x({},de)):b.createElement(le,x({},de))}},96332:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return je}});var b=z(67294),re={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"},Se=z(14446),Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Fe=z(35973),ue=(Oe,Ze,Be)=>new Promise((ce,oe)=>{var a=y=>{try{x(Be.next(y))}catch(ee){oe(ee)}},E=y=>{try{x(Be.throw(y))}catch(ee){oe(ee)}},x=y=>y.done?ce(y.value):Promise.resolve(y.value).then(a,E);x((Be=Be.apply(Oe,Ze)).next())}),je=({type:Oe,resdata:Ze,onok:Be,oktext:ce,okloading:oe})=>{const a=(0,Fe.useIntl)(),[E,x]=(0,b.useState)(!1),{can_copy_list:y,can_copy_num:ee,challenge_type:ne,course_data_list:ae,no_copy_list:ie,no_copy_num:le,no_use_list:me,no_use_num:fe,repeat_shixun_num:pe,student_count:he,total_num:de,use_num:se}=Ze;let Me=ee>0||Oe==="exercise";(0,b.useEffect)(()=>{(Ze==null?void 0:Ze.student_count)>0&&x(!0)},[Ze]),console.log("---11",oe),(0,b.useEffect)(()=>{oe||x(!1)},[oe]);const be=()=>{if(Oe==="exercise"&&ne===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:re.orangeColor},se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:re.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(Oe==="exercise"&&ne===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:re.orangeColor},se),"\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",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixun"&&ne===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixun"&&ne===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\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",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="subject"&&ne===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:re.orangeColor},se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="subject"&&ne===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:re.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:re.orangeColor},se)," \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",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:re.orangeColor},se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:re.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(Oe==="shixunpush"&&ne===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:re.orangeColor},se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixunpush"&&ne===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:re.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:re.orangeColor},se),"\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",b.createElement("span",{className:re.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},De=()=>{if(Oe==="exercise"||Oe==="subject"||Oe==="exercisepush"||Oe==="shixunpush")return b.createElement("div",{style:{marginTop:20}},le>0&&b.createElement("div",null,b.createElement("span",{className:re.flex},b.createElement("img",{src:Ie,style:{width:14}}),b.createElement("span",{className:re.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:re.statusbody},Oe==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:re.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"),(Oe==="subject"||Oe==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Me&&b.createElement("span",{className:re.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"),Oe==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Me&&b.createElement("span",{className:re.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"),b.createElement("div",null,ie==null?void 0:ie.map((Ce,Le)=>b.createElement("a",{href:`/shixuns/${Ce.identifier}/challenges`,target:"_blank"},"\u300A",Ce==null?void 0:Ce.name,"\u300B",Le+1!==le&&"\u3001"))))),ee>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:re.flex},b.createElement("img",{src:Pe,style:{width:14}}),b.createElement("span",{className:re.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:re.statusbody},Oe==="exercise"&&b.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"),(Oe==="subject"||Oe==="exercisepush")&&b.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"),Oe==="shixunpush"&&b.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"),b.createElement("div",null,y==null?void 0:y.map((Ce,Le)=>b.createElement("a",{href:`/shixuns/${Ce.identifier}/challenges`,target:"_blank"},"\u300A",Ce==null?void 0:Ce.name,"\u300B",Le+1!==ee&&"\u3001"))))));if(Oe==="shixun")return b.createElement("div",{style:{marginTop:20}},ee>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 b.createElement(Se.default,{open:E,onCancel:()=>{x(!1)},cancelText:a.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:a.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),width:700,centered:!0,cancelButtonProps:{style:{display:!Me&&"none"}},zIndex:1003,confirmLoading:oe,okText:Me?ce:"\u6211\u77E5\u9053\u4E86",onOk:()=>ue(void 0,null,function*(){Me?yield Be([...y,...me]):x(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},be(),De()))}},66911:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Fe}});var b=z(67294),re={flex_box_center:"flex_box_center___sOi51",flex_space_between:"flex_space_between___pl96A",flex_box_vertical_center:"flex_box_vertical_center___LVWaS",flex_box_center_end:"flex_box_center_end___bFW2z",flex_box_column:"flex_box_column___Iuosg",disabled:"disabled___kyQ47"},Se=z(83062),Pe=z(35973),Fe=({children:ue,tips:Te,title:je,style:Oe})=>{const Ze=(0,Pe.useIntl)(),Be=je||b.createElement("div",null,b.createElement("div",null,Ze.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),"\uFF1A"),b.createElement("div",null,"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u96C6\u4E2D\u9605\u5377\uFF0C\u4E3A\u4E86\u4E0D\u5F71\u54CD\u6210\u7EE9\u8BC4\u5B9A\uFF0C\u4E0D\u53EF\u8FDB\u884C\u6B64\u64CD\u4F5C\u3002"),b.createElement("div",null,"\uFF08\u5982\u9700\u53D1\u5E03\u65B0\u73ED\u7EA7\u8003\u8BD5\uFF0C\u8BF7\u521B\u5EFA\u65B0\u8BD5\u5377\u540E\u53D1\u5E03\uFF09"));return ue&&Te?b.createElement(Se.Z,{overlayStyle:{maxWidth:"initial"},title:Be},b.createElement("span",{className:re.disabled,style:Oe},ue)):ue&&!Te?b.createElement(b.Fragment,null,ue):b.createElement(b.Fragment,null)}},810:function(ut,Ue,z){"use strict";var b=z(67294),re=z(14446),Se=z(9430),Pe=z(35973);const Ie=({dataSource:Fe,visible:ue,onClose:Te=()=>{},onSuccess:je=()=>{},text:Oe,okText:Ze})=>{var Be;const ce=(0,Pe.useIntl)();return b.createElement(re.default,{centered:!0,destroyOnClose:!0,open:!!ue,title:ce.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),width:"600px",okText:Ze,cancelText:ce.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onCancel:Te,onOk:je},ue==="single"&&b.createElement("div",{className:"c-grey-333"},ce.formatMessage({id:"paperlibrary.currentPaperTotalScore",defaultMessage:"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A"}),b.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(Be=Fe==null?void 0:Fe[0])==null?void 0:Be.total_score),ce.formatMessage({id:"paperlibrary.scoreConfirmation",defaultMessage:"\u5206\uFF0C\u8BF7\u786E\u8BA4"}),Oe),ue==="multiple"&&b.createElement(b.Fragment,null,b.createElement("div",{className:"c-grey-333 mb10"},ce.formatMessage({id:"paperlibrary.abnormalTotalScore",defaultMessage:"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4"}),Oe),b.createElement(Se.default,{columns:[{title:ce.formatMessage({id:"paperlibrary.examName",defaultMessage:"\u8BD5\u5377\u540D\u79F0"}),dataIndex:"name",ellipsis:!0},{title:ce.formatMessage({id:"paperlibrary.totalScore",defaultMessage:"\u603B\u5206"}),width:90,dataIndex:"total_score"}],dataSource:Fe,scroll:(Fe==null?void 0:Fe.length)>7?{y:300}:{},pagination:!1})))};Ue.Z=Ie},57444:function(ut,Ue,z){"use strict";z.d(Ue,{h:function(){return ie}});var b=z(67294),re=z(11713),Se=z(22150),Pe=z(71577),Ie=z(4631),Fe=z.n(Ie),ue=z(71749),Te=z(30483),je=z(35973),Oe=Object.defineProperty,Ze=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,E=(le,me,fe)=>me in le?Oe(le,me,{enumerable:!0,configurable:!0,writable:!0,value:fe}):le[me]=fe,x=(le,me)=>{for(var fe in me||(me={}))oe.call(me,fe)&&E(le,fe,me[fe]);if(ce)for(var fe of ce(me))a.call(me,fe)&&E(le,fe,me[fe]);return le},y=(le,me)=>Ze(le,Be(me));const ee=re.default.Option,ne={labelCol:{span:4},wrapperCol:{span:20}},ae={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"]};Ue.Z=({callback:le,onCancel:me})=>{const[fe,pe]=(0,b.useState)("python");function he(Me){pe(ae[Me][1])}function de(Me){le(Me)}const se=(0,je.useIntl)();return b.createElement(Se.default,y(x({},ne),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:de,style:{width:500}}),b.createElement(Se.default.Item,{label:se.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},b.createElement(re.default,{getPopupContainer:Me=>Me.parentNode,onChange:he},Object.keys(ae).map(Me=>b.createElement(ee,{key:Me,value:Me},ae[Me][0])))),b.createElement(Se.default.Item,{label:se.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(ie,{mode:fe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},se.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),b.createElement(Pe.ZP,{type:"ghost",onClick:me},se.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ie({value:le,onChange:me,mode:fe,options:pe={}}){const he=(0,b.useRef)(),[de,se]=(0,b.useState)();return(0,b.useEffect)(()=>{if(de){let Me=function(be){const De=be.getValue();me&&me(De)};return de.on("change",Me),()=>{de.off("change",Me)}}},[de,me]),(0,b.useEffect)(()=>{de&&de.setOption("mode",fe)},[de,fe]),(0,b.useEffect)(()=>{de&&(le!==de.getValue()||le==="")&&setTimeout(()=>{de.setValue(le||"")},300)},[de,le]),(0,b.useEffect)(()=>{if(he.current&&!de){const Me=Fe().fromTextArea(he.current,x({mode:fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},pe));se(Me)}},[he.current,de]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:he}))}},35567:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ul}});var b=z(67294),re=z(4631),Se=z.n(re),Pe=z(91033),Ie=z(71749),Fe=z(57341),ue=z(82801),Te=z(88386),je=z(49047),Oe=z(80785),Ze=z(85725),Be=({value:Ft="",className:pt,showTextOnly:Et,showLines:Mn,style:$n={}})=>{const Kn=(0,b.useMemo)(()=>"",[Ft]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:Kn}}))},ce=z(35973),oe=z(67294),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ae=(Ft,pt,Et)=>pt in Ft?a(Ft,pt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ft[pt]=Et,ie=(Ft,pt)=>{for(var Et in pt||(pt={}))ee.call(pt,Et)&&ae(Ft,Et,pt[Et]);if(y)for(var Et of y(pt))ne.call(pt,Et)&&ae(Ft,Et,pt[Et]);return Ft},le=(Ft,pt)=>E(Ft,x(pt));function me({onActionCallback:Ft,title:pt,icon:Et,actionName:Mn,className:$n="",children:Kn}){function or(){Ft(Mn)}return oe.createElement("a",{title:pt,className:$n,onClick:or},oe.createElement("i",{className:`${Et}`}),Kn)}var fe=({watch:Ft,showNullButton:pt,showNullProgramButton:Et,onActionCallback:Mn,fullScreen:$n,insertTemp:Kn,hidetoolBar:or,extraUse:Fo})=>{const Gn=(0,ce.useIntl)(),hl=[...[{title:Gn.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:Gn.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:Gn.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:Gn.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:Gn.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:Gn.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:Gn.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:Gn.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:Gn.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:Gn.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:Gn.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:Gn.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:Gn.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:Gn.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:Gn.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:Gn.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${Ft?Gn.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):Gn.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${Ft?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!or&&hl.map((Lr,ha)=>oe.createElement("li",{key:ha},Lr.actionName?oe.createElement(me,le(ie({},Lr),{onActionCallback:Mn})):oe.createElement("span",{className:"v-line"}))),pt?oe.createElement("li",null,oe.createElement(me,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Mn},oe.createElement("span",{className:"fill-tip"},Gn.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",Gn.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Et?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(me,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Mn},oe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(me,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Mn},oe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Kn&&oe.createElement("li",null,oe.createElement(me,{icon:"md-iconfont icon-edit",className:"btn-null",title:Gn.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${Kn}`,onActionCallback:Mn},oe.createElement("span",{className:"fill-tip"},Gn.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),Fo&&oe.createElement("li",null,Fo),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(me,{icon:`${$n?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:$n?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Mn})))},pe=z(76621),he=z(22150),de=z(69677),se=z(71577),Me=Object.defineProperty,be=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,qe=(Ft,pt,Et)=>pt in Ft?Me(Ft,pt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ft[pt]=Et,Je=(Ft,pt)=>{for(var Et in pt||(pt={}))Le.call(pt,Et)&&qe(Ft,Et,pt[Et]);if(Ce)for(var Et of Ce(pt))Ge.call(pt,Et)&&qe(Ft,Et,pt[Et]);return Ft},Re=(Ft,pt)=>be(Ft,De(pt));const He={labelCol:{span:4},wrapperCol:{span:20}};var it=({callback:Ft,onCancel:pt})=>{function Et($n){Ft($n)}const Mn=(0,ce.useIntl)();return b.createElement(he.default,Re(Je({},He),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Et,style:{width:500}}),b.createElement(he.default.Item,{label:Mn.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(de.default,null)),b.createElement(he.default.Item,{label:Mn.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(de.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Mn.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),b.createElement(se.ZP,{type:"ghost",onClick:pt},Mn.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},$e=z(57444),Ne=z(70859),Ye=z(14446),Xe=z(71230),st=z(63205),ct=z(67294),Ct=({callback:Ft,onCancel:pt})=>{const Et=document.createElement("canvas"),Mn=Et.getContext("2d");Et.width=1e3,Et.height=800,Mn.fillStyle="#ffffff",Mn.fillRect(0,0,Et.width,Et.height);const $n=Et.toDataURL("image/png");return ct.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ct.createElement(Xe.Z,{style:{height:"100vh"}},ct.createElement(st.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:$n,visible:!0,title:String(Date.now())},onOk:Kn=>{Ft({src:Kn.url})},onClose:pt})))},et=z(23495);function Qt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qt,go.CommandHandler),Qt.prototype.canAlignSelection=function(){var Ft=this.diagram;return!(Ft===null||Ft.isReadOnly||Ft.isModelReadOnly||Ft.selection.count<2)},Qt.prototype.alignLeft=function(){var Ft=this.diagram;Ft.startTransaction("aligning left");var pt=1/0;Ft.selection.each(function(Et){Et instanceof go.Link||(pt=Math.min(Et.position.x,pt))}),Ft.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(pt,Et.position.y))}),Ft.commitTransaction("aligning left")},Qt.prototype.alignRight=function(){var Ft=this.diagram;Ft.startTransaction("aligning right");var pt=-1/0;Ft.selection.each(function(Et){if(!(Et instanceof go.Link)){var Mn=Et.actualBounds.x+Et.actualBounds.width;pt=Math.max(Mn,pt)}}),Ft.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(pt-Et.actualBounds.width,Et.position.y))}),Ft.commitTransaction("aligning right")},Qt.prototype.alignTop=function(){var Ft=this.diagram;Ft.startTransaction("alignTop");var pt=1/0;Ft.selection.each(function(Et){Et instanceof go.Link||(pt=Math.min(Et.position.y,pt))}),Ft.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.position.x,pt))}),Ft.commitTransaction("alignTop")},Qt.prototype.alignBottom=function(){var Ft=this.diagram;Ft.startTransaction("aligning bottom");var pt=-1/0;Ft.selection.each(function(Et){if(!(Et instanceof go.Link)){var Mn=Et.actualBounds.y+Et.actualBounds.height;pt=Math.max(Mn,pt)}}),Ft.selection.each(function(Et){Et instanceof go.Link||Et.move(new go.Point(Et.actualBounds.x,pt-Et.actualBounds.height))}),Ft.commitTransaction("aligning bottom")},Qt.prototype.alignCenterX=function(){var Ft=this.diagram,pt=Ft.selection.first();if(pt){Ft.startTransaction("aligning Center X");var Et=pt.actualBounds.x+pt.actualBounds.width/2;Ft.selection.each(function(Mn){Mn instanceof go.Link||Mn.move(new go.Point(Et-Mn.actualBounds.width/2,Mn.actualBounds.y))}),Ft.commitTransaction("aligning Center X")}},Qt.prototype.alignCenterY=function(){var Ft=this.diagram,pt=Ft.selection.first();if(pt){Ft.startTransaction("aligning Center Y");var Et=pt.actualBounds.y+pt.actualBounds.height/2;Ft.selection.each(function(Mn){Mn instanceof go.Link||Mn.move(new go.Point(Mn.actualBounds.x,Et-Mn.actualBounds.height/2))}),Ft.commitTransaction("aligning Center Y")}},Qt.prototype.alignColumn=function(Ft){var pt=this.diagram;pt.startTransaction("align Column"),Ft===void 0&&(Ft=0),Ft=parseFloat(Ft);var Et=new Array;pt.selection.each(function(Fo){Fo instanceof go.Link||Et.push(Fo)});for(var Mn=0;Mn0){for(var Fo=Kn.elt(or-1);Fo!==null&&Fo.isTreeExpanded&&!Fo.isTreeLeaf;){var Gn=this._sortTreeChildrenByY(Fo);Fo=Gn.last()}Fo!==null&&Ft.select(Fo)}else Ft.select($n)}}else if(Et.key==="Down")if(pt.isTreeExpanded&&!pt.isTreeLeaf){var Mn=this._sortTreeChildrenByY(pt).first();Mn!==null&&Ft.select(Mn)}else for(;pt!==null;){var $n=pt.findTreeParentNode();if($n===null)break;var Kn=this._sortTreeChildrenByY($n),or=Kn.indexOf(pt);if(orKn.y?1:$n.xKn.x?1:0}),pt},Qt.prototype.copyToClipboard=function(Ft){go.CommandHandler.prototype.copyToClipboard.call(this,Ft),this._lastPasteOffset.set(this.pasteOffset)},Qt.prototype.pasteFromClipboard=function(){var Ft=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ft,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ft},Object.defineProperty(Qt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ft){if(Ft!=="move"&&Ft!=="select"&&Ft!=="scroll"&&Ft!=="tree"&&Ft!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ft);this._arrowKeyBehavior=Ft}}),Object.defineProperty(Qt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ft){if(!(Ft instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ft);this._pasteOffset.set(Ft)}});var un=Qt,In=z(18023),gn=z(15746),Lt=z(33170),Ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},nt=z(67294),at=(Ft,pt,Et)=>new Promise((Mn,$n)=>{var Kn=Gn=>{try{Fo(Et.next(Gn))}catch(Sr){$n(Sr)}},or=Gn=>{try{Fo(Et.throw(Gn))}catch(Sr){$n(Sr)}},Fo=Gn=>Gn.done?Mn(Gn.value):Promise.resolve(Gn.value).then(Kn,or);Fo((Et=Et.apply(Ft,pt)).next())});function rt({onCancel:Ft,callback:pt}){let Et=(0,b.useRef)(),Mn=(0,b.useRef)(),$n=(0,b.useRef)(),Kn=(0,b.useRef)(!1);const or=(0,b.useRef)(!1),[Fo,Gn]=(0,b.useState)(0);function Sr(){const ha=et.bx.make,gr={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Et.current=new et.S0(Mn.current,{padding:20,grid:ha(et.s_,"Grid",ha(et.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ha(et.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Qn=>{var Va=Qn.diagram.commandHandler.addTopLevelParts(Qn.diagram.selection,!0);Va||Qn.diagram.currentTool.doCancel()},commandHandler:ha(un),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Qn=>{var Va=Qn.subject;Va.location=Va.location.copy().snapToGridPoint(Qn.diagram.grid.gridOrigin,Qn.diagram.grid.gridCellSize),setTimeout(()=>{Qn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Qn=>{var Va=Qn.subject;setTimeout(()=>{Qn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Qn=>{var Va=Qn.parameter.part;Va.invalidateConnectedLinks();var $a=Qn.subject;Qn.diagram.toolManager.linkingTool.isForwards?$a.toNode.invalidateConnectedLinks():$a.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Et.current.nodeTemplate=ha(et.NB,"Auto",{locationSpot:et.z6.Center,locationObjectName:"SHAPE",desiredSize:new et.$u(120,60),minSize:new et.$u(40,40),resizable:!0,resizeCellSize:new et.$u(10,10),rotatable:!0},new et.KX("location","loc",et.E9.parse).makeTwoWay(et.E9.stringify),new et.KX("desiredSize","size",et.$u.parse).makeTwoWay(et.$u.stringify),ha(et.bn,{name:"SHAPE",fill:gr.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:et.z6.AllSides,toSpot:et.z6.AllSides},new et.KX("figure"),new et.KX("fill"),new et.KX("stroke","borderColor"),new et.KX("strokeWidth","thickness"),new et.KX("strokeDashArray","dash")),ha(et.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ha(et.al,{margin:1,textAlign:"center",overflow:et.al.OverflowEllipsis,editable:!0},new et.KX("text").makeTwoWay(),new et.KX("stroke","color"))),Et.current.nodeTemplate.toolTip=ha("ToolTip",ha(et.s_,"Vertical",{maxSize:new et.$u(200,NaN)},ha(et.al,{font:"bold 10pt sans-serif",textAlign:"center"},new et.KX("text")),ha(et.al,{font:"10pt sans-serif",textAlign:"center"},new et.KX("text","details"))));function Nt(Qn,Va){var $a=(Fa,Wo)=>{Fa.handled=!0,Fa.diagram.model.commit(jr=>{var xl=Wo.part.adornedPart,wl=new et.E9().setRectSpot(xl.actualBounds,Qn);wl.subtract(xl.location),wl.scale(2,2),wl.x+=Math.sign(wl.x)*130,wl.y+=Math.sign(wl.y)*130,wl.add(xl.location),wl.snapToGridPoint(Fa.diagram.grid.gridOrigin,Fa.diagram.grid.gridCellSize);var Ml=jr.copyNodeData(xl.data);jr.setGroupKeyForNodeData(Ml,jr.getGroupKeyForNodeData(xl.data)),jr.addNodeData(Ml);var ui={from:xl.key,to:jr.getKeyForNodeData(Ml)};jr.addLinkData(ui);var di=Fa.diagram.findNodeForData(Ml);di.location=wl,Fa.diagram.select(di),setTimeout(()=>{Fa.diagram.commandHandler.editTextBlock()},20)})};return ha(et.bn,{figure:Va,alignment:Qn,alignmentFocus:Qn.opposite(),width:Qn.equals(et.z6.Top)||Qn.equals(et.z6.Bottom)?25:18,height:Qn.equals(et.z6.Top)||Qn.equals(et.z6.Bottom)?18:25,fill:"orange",stroke:gr.white,strokeWidth:4,mouseEnter:(Fa,Wo)=>Wo.fill="dodgerblue",mouseLeave:(Fa,Wo)=>Wo.fill="orange",isActionable:!0,click:$a,contextClick:$a})}function En(Qn){return ha(et.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Va,$a)=>$a.fill="dodgerblue",mouseLeave:(Va,$a)=>$a.fill="orange",click:(Va,$a)=>{Va.diagram.commandHandler.showContextMenu($a.part.adornedPart)}},Qn||{})}Et.current.nodeTemplate.selectionAdornmentTemplate=ha(et.uz,"Spot",ha(et.Vm,{padding:10}),Nt(et.z6.Top,"TriangleUp"),Nt(et.z6.Left,"TriangleLeft"),Nt(et.z6.Right,"TriangleRight"),Nt(et.z6.Bottom,"TriangleDown"),En({alignment:new et.z6(.75,0)}));function en(Qn,Va){return($a,Fa)=>{$a.handled=!0,$a.diagram.model.commit(Wo=>{Wo.set(Fa.part.adornedPart.data,Qn,Va)})}}function Sn(Qn,Va){return Va||(Va="color"),ha(et.bn,{width:16,height:16,stroke:"lightgray",fill:Qn,margin:1,background:"transparent",mouseEnter:($a,Fa)=>Fa.stroke="dodgerblue",mouseLeave:($a,Fa)=>Fa.stroke="lightgray",click:en(Va,Qn),contextClick:en(Va,Qn)})}function na(){return[ha("ContextMenuButton",ha(et.s_,"Horizontal",Sn(gr.white,"fill"),Sn(gr.beige,"fill"),Sn(gr.extralightblue,"fill"),Sn(gr.extralightred,"fill"))),ha("ContextMenuButton",ha(et.s_,"Horizontal",Sn(gr.lightgray,"fill"),Sn(gr.lightgreen,"fill"),Sn(gr.lightblue,"fill"),Sn(gr.lightred,"fill")))]}function fn(){return[ha("ContextMenuButton",ha(et.s_,"Horizontal",Sn(gr.black),Sn(gr.green),Sn(gr.blue),Sn(gr.red))),ha("ContextMenuButton",ha(et.s_,"Horizontal",Sn(gr.white),Sn(gr.magenta),Sn(gr.purple),Sn(gr.orange)))]}function ia(Qn,Va){return Va||(Va="thickness"),ha(et.bn,"LineH",{width:16,height:16,strokeWidth:Qn,margin:1,background:"transparent",mouseEnter:($a,Fa)=>Fa.background="dodgerblue",mouseLeave:($a,Fa)=>Fa.background="transparent",click:en(Va,Qn),contextClick:en(Va,Qn)})}function Kt(Qn,Va){return Va||(Va="dash"),ha(et.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Qn,margin:1,background:"transparent",mouseEnter:($a,Fa)=>Fa.background="dodgerblue",mouseLeave:($a,Fa)=>Fa.background="transparent",click:en(Va,Qn),contextClick:en(Va,Qn)})}function xa(){return[ha("ContextMenuButton",ha(et.s_,"Horizontal",ia(1),ia(2),ia(3),ia(4))),ha("ContextMenuButton",ha(et.s_,"Horizontal",Kt(null),Kt([2,4]),Kt([4,4])))]}function Xn(Qn,Va){return Va||(Va="figure"),ha(et.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Qn,margin:1,background:"transparent",mouseEnter:($a,Fa)=>Fa.fill="dodgerblue",mouseLeave:($a,Fa)=>Fa.fill="lightgray",click:en(Va,Qn),contextClick:en(Va,Qn)})}Et.current.nodeTemplate.contextMenu=ha("ContextMenu",ha("ContextMenuButton",ha(et.s_,"Horizontal",Xn("Rectangle"),Xn("RoundedRectangle"),Xn("Ellipse"),Xn("Diamond"))),ha("ContextMenuButton",ha(et.s_,"Horizontal",Xn("Parallelogram2"),Xn("ManualOperation"),Xn("Procedure"),Xn("Cylinder1"))),ha("ContextMenuButton",ha(et.s_,"Horizontal",Xn("Terminator"),Xn("CreateRequest"),Xn("Document"),Xn("TriangleDown"))),na(),fn(),xa()),Et.current.groupTemplate=ha(et.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:et.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Qn,Va)=>{var $a=Va.addMembers(Va.diagram.selection,!0);$a||Va.diagram.currentTool.doCancel()},avoidable:!1},new et.KX("location","loc",et.E9.parse).makeTwoWay(et.E9.stringify),ha(et.s_,"Auto",{name:"BODY"},ha(et.bn,{parameter1:10,fill:gr.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:et.z6.AllSides,toSpot:et.z6.AllSides},new et.KX("fill"),new et.KX("stroke","color"),new et.KX("strokeWidth","thickness"),new et.KX("strokeDashArray","dash")),ha(et.Vm,{background:"transparent",margin:20})),ha(et.al,{alignment:et.z6.Top,alignmentFocus:et.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new et.KX("text"),new et.KX("stroke","color"))),Et.current.groupTemplate.selectionAdornmentTemplate=ha(et.uz,"Spot",ha(et.s_,"Auto",ha(et.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ha(et.Vm,{margin:1.5})),En({alignment:et.z6.TopRight,alignmentFocus:et.z6.BottomRight})),Et.current.groupTemplate.contextMenu=ha("ContextMenu",na(),fn(),xa()),Et.current.linkTemplate=ha(et.rU,{layerName:"Foreground",routing:et.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new et.KX("fromSpot","fromSpot",et.z6.parse),new et.KX("toSpot","toSpot",et.z6.parse),new et.KX("fromShortLength","dir",Qn=>Qn>=1?10:0),new et.KX("toShortLength","dir",Qn=>Qn>=1?10:0),new et.KX("points").makeTwoWay(),ha(et.bn,{strokeWidth:2},new et.KX("stroke","color"),new et.KX("strokeWidth","thickness"),new et.KX("strokeDashArray","dash")),ha(et.bn,{segmentIndex:0,segmentOffset:new et.E9(15,0),segmentOrientation:et.rU.OrientAlong,alignmentFocus:et.z6.Right,figure:"circle",width:10,strokeWidth:0},new et.KX("fill","color"),new et.KX("visible","dir",Qn=>Qn===1)),ha(et.bn,{segmentIndex:-1,segmentOffset:new et.E9(-10,6),segmentOrientation:et.rU.OrientPlus90,alignmentFocus:et.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new et.KX("fill","color"),new et.KX("visible","dir",Qn=>Qn>=1),new et.KX("width","thickness",Qn=>7+3*Qn),new et.KX("height","thickness",Qn=>7+3*Qn),new et.KX("segmentOffset","thickness",Qn=>new et.E9(-15,4+1.5*Qn))),ha(et.bn,{segmentIndex:0,segmentOffset:new et.E9(15,-6),segmentOrientation:et.rU.OrientMinus90,alignmentFocus:et.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new et.KX("fill","color"),new et.KX("visible","dir",Qn=>Qn===2),new et.KX("width","thickness",Qn=>7+3*Qn),new et.KX("height","thickness",Qn=>7+3*Qn),new et.KX("segmentOffset","thickness",Qn=>new et.E9(-15,4+1.5*Qn))),ha(et.al,{alignmentFocus:new et.z6(0,1,-4,0),editable:!0},new et.KX("text").makeTwoWay(),new et.KX("stroke","color"))),Et.current.linkTemplate.selectionAdornmentTemplate=ha(et.uz,ha(et.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Oa(2)},new et.KX("pathPattern","thickness",Oa)),En({alignmentFocus:new et.z6(0,0,-6,-4)}));function Oa(Qn){return ha(et.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Qn+4).toString()+" H3"})}function xo(Qn){var Va="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Qn===0?Va="M0 0 M16 16 M0 8 L16 8":Qn===2&&(Va="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ha(et.bn,{geometryString:Va,margin:2,background:"transparent",mouseEnter:($a,Fa)=>Fa.background="dodgerblue",mouseLeave:($a,Fa)=>Fa.background="transparent",click:en("dir",Qn),contextClick:en("dir",Qn)})}function an(Qn){var Va=($a,Fa)=>{$a.handled=!0,$a.diagram.model.commit(Wo=>{var jr=Fa.part.adornedPart;Wo.set(jr.data,Qn?"toSpot":"fromSpot",et.z6.stringify(et.z6.AllSides)),(Qn?jr.toNode:jr.fromNode).invalidateConnectedLinks()})};return ha(et.bn,{width:12,height:12,fill:"transparent",mouseEnter:($a,Fa)=>Fa.background="dodgerblue",mouseLeave:($a,Fa)=>Fa.background="transparent",click:Va,contextClick:Va})}function Er(Qn,Va){var $a=0,Fa=et.z6.RightSide;Qn.equals(et.z6.Top)?($a=270,Fa=et.z6.TopSide):Qn.equals(et.z6.Left)?($a=180,Fa=et.z6.LeftSide):Qn.equals(et.z6.Bottom)&&($a=90,Fa=et.z6.BottomSide),Va||($a-=180);var Wo=(jr,xl)=>{jr.handled=!0,jr.diagram.model.commit(wl=>{var Ml=xl.part.adornedPart;wl.set(Ml.data,Va?"toSpot":"fromSpot",et.z6.stringify(Fa)),(Va?Ml.toNode:Ml.fromNode).invalidateConnectedLinks()})};return ha(et.bn,{alignment:Qn,alignmentFocus:Qn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:$a,background:"transparent",mouseEnter:(jr,xl)=>xl.background="dodgerblue",mouseLeave:(jr,xl)=>xl.background="transparent",click:Wo,contextClick:Wo})}Et.current.linkTemplate.contextMenu=ha("ContextMenu",fn(),xa(),ha("ContextMenuButton",ha(et.s_,"Horizontal",xo(0),xo(1),xo(2))),ha("ContextMenuButton",ha(et.s_,"Horizontal",ha(et.s_,"Spot",an(!1),Er(et.z6.Top,!1),Er(et.z6.Left,!1),Er(et.z6.Right,!1),Er(et.z6.Bottom,!1)),ha(et.s_,"Spot",{margin:new et.Zt(0,0,0,2)},an(!0),Er(et.z6.Top,!0),Er(et.z6.Left,!0),Er(et.z6.Right,!0),Er(et.z6.Bottom,!0)))));const kr=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, {"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"}, {"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"}, {"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"}, {"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3}, {"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"} ], "linkDataArray": [ {"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1}, {"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1}, {"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]}, {"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2}, {"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"}, {"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1}, {"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]} ]}`;var El=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Cr(Qn){return console.log("shapeName:",Qn),El.indexOf(Qn)>=0}var jl=new et.YI($n.current,{maxSelectionCount:1,linkTemplate:ha(et.rU,{locationSpot:et.z6.Center,selectionAdornmentTemplate:ha(et.uz,"Link",{locationSpot:et.z6.Center},ha(et.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ha(et.bn,{toArrow:"Standard",stroke:null}))},{routing:et.rU.AvoidsNodes,curve:et.rU.JumpOver,corner:5,toShortLength:4},new et.KX("points"),ha(et.bn,{isPanelMain:!0,strokeWidth:2}),ha(et.bn,{toArrow:"Standard",stroke:null})),model:new et.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...et.bn.getFigureGenerators().toArray().map(Qn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Qn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Et.current.addDiagramListener("TextEdited",function(Qn){var Va;const $a=Qn.subject.part;var Fa=(Va=document.activeElement)==null?void 0:Va.value;typeof Fa=="string"&&Fa.trim()===""&&Et.current.model.commit(function(Wo){Wo.set($a.data,"text","\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}),jl.nodeTemplate=ha(et.NB,"Auto",{locationSpot:et.z6.Center},new et.KX("location","location",et.E9.parse).makeTwoWay(et.E9.stringify),ha(et.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new et.KX("stroke").makeTwoWay(),new et.KX("fill").makeTwoWay(),new et.KX("figure")),ha(et.al,{margin:new et.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new et.$u(16,16),maxSize:new et.$u(10,NaN),textAlign:"center",editable:!0},new et.KX("key").makeTwoWay())),setTimeout(()=>{Et.current.grid=ha(et.s_,"Grid",ha(et.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ha(et.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Et.current.grid.visible=!0,Et.current.grid.gridCellStroke="darkgray",Et.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Et.current,Et.current}const hl=()=>at(this,null,function*(){var ha=Et.current.makeImage();const gr=yield(0,Lt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ha.src}});pt({src:gr.url})});(0,b.useEffect)(()=>(setTimeout(()=>{Sr()},500),Gn(Fo+1),()=>{Et.current=null}),[]);const Lr=(0,ce.useIntl)();return nt.createElement("div",{ref:or,className:Kn.current?`${Ve.maxH60} body-overflow-initial`:"body-overflow-initial"},nt.createElement(Ye.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Fo,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:nt.createElement(Xe.Z,null,nt.createElement(gn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),nt.createElement(gn.Z,{onClick:()=>{var ha,gr,Nt=Et.current.selection.first();if(Kn.current=!Kn.current,document.activeElement&&Nt){let En=(gr=(ha=document.activeElement)==null?void 0:ha.value)==null?void 0:gr.trim();typeof En=="string"&&Et.current.model.commit(function(en){en.set(Nt.data,"text",En||"\u672A\u547D\u540D"),Et.current.commandHandler.stopCommand()},"increment")}Gn(Fo+1)}},nt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},Lr.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",Lr.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:Ft},nt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ve.flowChartWrp},nt.createElement("div",{style:{display:"flex",height:"100%"}},nt.createElement("div",{style:{width:"300px",height:"100%"}},nt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),nt.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ve.myPaletteDiv,ref:$n})),nt.createElement("div",{style:{flex:1,position:"relative"}},nt.createElement("div",{ref:Mn,style:{height:"80vh"}}))),nt.createElement("div",{className:"tr"},nt.createElement(se.ZP,{size:"large",onClick:hl,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Lr.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var jt=rt,yt=z(78045),Bn=z(31795);const It=yt.ZP.Group,Fn={margin:"0 8px"};var Zn=({callback:Ft,onCancel:pt})=>{function Et($n){Ft($n)}const Mn=(0,ce.useIntl)();return b.createElement(he.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Et},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Fn},Mn.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),b.createElement("span",{style:Fn},Mn.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),b.createElement(he.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Bn.Z,null)),b.createElement("span",{style:Fn},Mn.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),b.createElement(he.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Bn.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Fn},Mn.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),b.createElement(he.default.Item,{name:"align"},b.createElement(It,null,b.createElement(yt.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(yt.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(yt.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(yt.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Mn.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),b.createElement(se.ZP,{type:"ghost",onClick:pt},Mn.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},_e=z(47897),Pt=z(61016),Cn=z.n(Pt),gt=(0,b.forwardRef)(({use3d:Ft,width:pt,height:Et,callback:Mn,showSaveButton:$n},Kn)=>{const or=(0,b.useRef)(),Fo=(0,b.useRef)(),Gn=(0,ce.useIntl)(),[Sr,hl]=(0,b.useState)(!1),Lr=(0,b.useRef)({id:or,appName:"graphing",width:pt||1e3,height:Et||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Fo.current=new(Cn())(Lr.current,!0),window.onload=function(){Fo.current.inject("applet_container")}},[]);const ha=()=>{var gr=window.ggbApplet.getPNGBase64(1,!0,72);return Mn&&Mn(gr),gr};return(0,b.useEffect)(()=>{Lr.current.appName=Sr?"3D":"graphing",Fo.current.inject("applet_container")},[Sr]),(0,b.useEffect)(()=>{hl(Ft)},[Ft]),(0,b.useImperativeHandle)(Kn,()=>({getImgData:ha})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:or}),b.createElement(Xe.Z,{align:"middle"},b.createElement(gn.Z,{flex:1},b.createElement(_e.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:Gn.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Sr,onChange:gr=>hl(gr)})),b.createElement(gn.Z,null,b.createElement(se.ZP,{size:"large",onClick:ha,style:{zIndex:8,marginTop:10},type:"primary"},Gn.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),wn=z(36527),ft=z(25934),xt=z(2453);const At="link",zt="upload-image",cn="add-flowchart",Yt="draw-image",Aa="add-flowchart",ca="code-block",fa="add-table",Ha="------------",wa={default:Ha,left:`:${Ha}`,center:`:${Ha}:`,right:`${Ha}:`};var xn=z(99914),to=(Ft,pt,Et)=>new Promise((Mn,$n)=>{var Kn=Gn=>{try{Fo(Et.next(Gn))}catch(Sr){$n(Sr)}},or=Gn=>{try{Fo(Et.throw(Gn))}catch(Sr){$n(Sr)}},Fo=Gn=>Gn.done?Mn(Gn.value):Promise.resolve(Gn.value).then(Kn,or);Fo((Et=Et.apply(Ft,pt)).next())});function ko(){}let Qa=0;const jo=1e4,Io="\u2581",hr="@\u2581\u2581@",dn="@\u2581@",On=` **\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`,pa=["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 Ua(Ft){return/^\d+$/.test(Ft)?`${Ft}px`:Ft}const ya=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",sr={[ya+"-B"]:"bold",[ya+"-I"]:"italic"};var ul=({defaultValue:Ft="",onChange:pt,width:Et="100%",height:Mn=400,miniToolbar:$n=!1,isFocus:Kn=!1,watch:or,insertTemp:Fo,mode:Gn="markdown",id:Sr="markdown-editor-id",showResizeBar:hl=!1,noStorage:Lr=!1,showNullButton:ha=!1,showNullProgramButton:gr=!1,hidetoolBar:Nt=!1,fullScreen:En=!1,onBlur:en,onCMBeforeChange:Sn,onFullScreen:na,className:fn="",disablePaste:ia=!1,disabled:Kt=!1,disabledFill:xa=!1,placeholder:Xn="",values:Oa="",extraUse:xo})=>{const[an,Er]=(0,b.useState)(null),[kr,El]=(0,b.useState)(Ft),[Cr,jl]=(0,b.useState)(or),[Qn,Va]=(0,b.useState)(En),[$a,Fa]=(0,b.useState)(""),[Wo,jr]=(0,b.useState)(0),[xl,wl]=(0,b.useState)(Mn),[Ml,ui]=(0,b.useState)(!1),di=(0,b.useRef)((0,ft.Z)()),Ki=(0,b.useRef)(!1),sl=(0,b.useRef)(),[Gl,Jr]=(0,b.useState)(0),[Fi,uu]=(0,b.useState)(0),Mi=(0,b.useRef)(),Qi=(0,b.useRef)(),hi=(0,b.useRef)(),Ui=(0,b.useRef)(),Ir=()=>to(void 0,null,function*(){var hn;const Rn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:di.current}});(hn=Rn==null?void 0:Rn.attachments)!=null&&hn.length&&(console.log("cm:",an,Mi),Rn.attachments.map(Vn=>{Vn.content_type.indexOf("image")>-1?an.replaceSelection(`![,](/api/attachments/${Vn.id}?type=${Vn.content_type})`):Vn.content_type.indexOf("video")>-1?an.replaceSelection(``):Vn.content_type.indexOf("pdf")>-1?an.replaceSelection(`${Vn.name}`):an.replaceSelection(`[${Vn.name}](${ENV.API_SERVER}/api/attachments/${Vn.id}?type=${Vn.content_type})`)}))});(0,b.useEffect)(()=>{const hn=window.scrollY||window.pageYOffset;El(Oa),an==null||an.setValue(Oa),window.scrollTo(0,hn)},[Oa]),(0,b.useEffect)(()=>{na==null||na(Qn)},[Qn]),(0,b.useEffect)(()=>{if(Mi.current){let hn=function(Vn,Jn){var _a;if(ia){Jn.preventDefault();return}const yo=Jn.clipboardData;if(yo){const Yo=yo.types.toString(),Oo=yo.items;if(Yo==="Files"||yo.types.indexOf("Files")>-1){if(Jn.preventDefault(),Gn=="stex")return;try{let Ba=Oo[1];((_a=Oo[0])==null?void 0:_a.kind)==="file"&&(Ba=Oo[0]);const ka=Ba.getAsFile(),ao=ka.name.split(".").pop();(0,Ne.I)(ka,Wa=>{var Ma,Or,Ur;Wa.id?((Ma=ka==null?void 0:ka.type)==null?void 0:Ma.indexOf("image"))>-1?Rn.replaceSelection(``):((Or=ka==null?void 0:ka.type)==null?void 0:Or.indexOf("video"))>-1?Rn.replaceSelection(``):((Ur=ka==null?void 0:ka.type)==null?void 0:Ur.indexOf("pdf"))>-1?Rn.replaceSelection(`${ka.name}`):pa.includes(ao)?Rn.replaceSelection(`${ka.name}`):Rn.replaceSelection(`[${ka.name}](/api/attachments/${Wa.id}?type=${Wa.content_type})`):(Wa==null?void 0:Wa.status)===401&&(xt.ZP.warning((Wa==null?void 0:Wa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ba){xt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Rn=Se().fromTextArea(Mi.current,{mode:Gn,lineNumbers:!$n,lineWrapping:!0,value:Ft,autoCloseTags:!gr,autoCloseBrackets:!0});return Rn.on("keyup",function(Vn,Jn){Jn.keyCode===8&&(Vn.getValue()==""?Rn.setOption("placeholder",Xn):Rn.setOption("placeholder",null))}),Rn.on("keydown",function(Vn,Jn){if(Jn.keyCode===8){var _a=qt(Vn);_a&&Jn.preventDefault()}}),Kn&&Rn.focus(),Rn.on("paste",hn),Rn.on("dragleave",function(Vn,Jn){Qi.current.classList.remove("mouse-hover-md")}),Kt&&Rn.on("beforeChange",function(Vn,Jn){(Jn.origin==="paste"||Jn.origin==="+input")&&Jn.cancel()}),Er(Rn),()=>{Rn.off("paste",hn)}}},[]);const kt=(0,b.useCallback)(()=>{if(Qi.current)try{}catch(hn){console.log(hn,"---- to set md editor body height")}},[xl,Qi,Qn]);(0,b.useEffect)(()=>{function hn(){let Rn=new Pe.Z(Vn=>{for(let Jn of Vn)(Jn.target.offsetHeight>0||Jn.target.offsetWidth>0)&&(kt(),an.setSize("100%","100%"),an.refresh())});return Rn.observe(Mi.current.parentElement),Rn}if(an){const Rn=hn();return()=>{var Vn,Jn;(Vn=Mi.current)!=null&&Vn.parentElement&&Rn.unobserve((Jn=Mi.current)==null?void 0:Jn.parentElement)}}},[an,kt]),(0,b.useEffect)(()=>{if(an){let hn=[];for(const[Rn,Vn]of Object.entries(sr)){let Jn={[Rn]:()=>{Pn(Vn)}};hn.push(Jn),an.addKeyMap(Jn)}return sl.current=setInterval(()=>{Ki.current&&Ir()},4e3),()=>{clearInterval(sl.current);for(let Rn of hn)an.removeKeyMap(Rn)}}},[an]),(0,b.useEffect)(()=>{En!==Qn&&Va(En)},[En]),(0,xn.Z)(()=>{if(!Lr&&Wo>0){let hn=new Date().getTime(),Rn=window.sessionStorage.getItem(Sr);hn>=Wo+jo&&(!Rn||Rn!==kr)&&(window.sessionStorage.setItem(Sr,kr),ui(!0))}},jo),(0,b.useEffect)(()=>{jl(or)},[an,or]),(0,b.useEffect)(()=>{an&&Kn&&an.focus()},[an,Kn]),(0,b.useEffect)(()=>{if(Cr&&an){let hn=function(Vn){let Jn=Vn.target;if(Ui.current){let _a=Jn.scrollTop/Jn.scrollHeight;Ui.current.scrollTop=Ui.current.scrollHeight*_a}};const Rn=an.getScrollerElement();return Rn.addEventListener("scroll",hn),()=>{Rn.removeEventListener("scroll",hn)}}},[an,Cr]),(0,b.useEffect)(()=>{if(an&&Sn){let hn=function(Rn,Vn){Sn(Rn,Vn)};return an.on("beforeChange",hn),()=>{an.off("beforeChange",hn)}}},[an,Sn]),(0,b.useEffect)(()=>{if(an&&en){let hn=function(){en(an.getValue())};return an.on("blur",hn),()=>{an.off("blur",hn)}}},[an,en]);function qt(hn,Rn){var Vn=hn.getDoc(),Jn=Vn.getCursor(),_a=Vn.getLine(Jn.line),yo=_a.charAt(Jn.ch-1),Yo=_a.lastIndexOf("@\u2581@",Jn.ch),Oo=_a.lastIndexOf("@\u2581\u2581@",Jn.ch),Ba=Yo>Oo?Yo:Oo,ka=Yo>Oo?3:4;if(hr.indexOf(yo)===-1)return null;if(console.log("change1:",Rn,hn,_a,Jn,Ba,Yo,Oo,yo),Ba>=0&&Jn.ch-Ba<5){var ao=Ba+ka;return Vn.replaceRange("",{line:Jn.line,ch:Ba},{line:Jn.line,ch:ao}),{line:Jn.line,ch:ao}}return null}(0,b.useEffect)(()=>{if(an){let hn=function(Rn,Vn){const Jn=Rn.getValue();El(Jn),jr(new Date().getTime()),Rn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pt&&(gr?pt(Jn,va(Jn)):pt(Jn))};return an.on("change",hn),()=>{an.off("change",hn)}}},[an,pt]),(0,b.useEffect)(()=>{if(an)if(Ft==null)an.setValue(""),El("");else{const hn=window.scrollY||window.pageYOffset;Ft!==an.getValue()&&(an.setValue(Ft),El(Ft),an.setCursor(Kt?1:an.lineCount(),0),window.scrollTo(0,hn))}},[an,Ft]);const Pn=(0,b.useCallback)(hn=>{const Rn=an.getCursor(),Vn=an.getSelection();let Jn=Vn.split(` `);switch(hn){case"bold":return an.replaceSelection("**"+Vn+"**"),Vn===""&&an.setCursor(Rn.line,Rn.ch+2),an.focus();case"italic":return an.replaceSelection("*"+Vn+"*"),Vn===""&&an.setCursor(Rn.line,Rn.ch+1),an.focus();case"code":return an.replaceSelection("`"+Vn+"`"),Vn===""&&an.setCursor(Rn.line,Rn.ch+1),an.focus();case"inline-latex":return Fa("inline-latex"),an.focus();case"latex":return an.replaceSelection("```latex\n"+Vn+"\n```"),an.setCursor(Rn.line+1,Vn.length+1),an.focus();case"line-break":return an.replaceSelection(`
`),an.focus();case"list-ul":return Vn===""?an.replaceSelection("- "+Vn):an.replaceSelection(Jn.map(_a=>_a===""?"":`- ${_a}`).join(` `)),an.focus();case"list-ol":return Vn===""?an.replaceSelection("1. "+Vn):an.replaceSelection(Jn.map((_a,yo)=>_a===""?"":`${yo+1}. ${_a}`).join(` `)),an.focus();case"add-null-ch":return Vn===""&&an.setCursor(Rn.line,Rn.ch),an.replaceSelection(Io),an.focus();case"add-signal":return Vn===""&&an.setCursor(Rn.line,Rn.ch),an.replaceSelection(dn),an.focus();case"add-multiple":return Vn===""&&an.setCursor(Rn.line,Rn.ch),an.replaceSelection(hr),an.focus();case"inster-template-1":return Vn===""&&an.setCursor(Rn.line,Rn.ch),an.replaceSelection(On),an.focus();case"eraser":return an.setValue(""),an.focus();case"trigger-watch":return jl(!Cr),an.focus();case"trigger-full-screen":return Va(!Qn),an.focus();case At:Fa(At);return;case ca:Fa(ca);return;case zt:Fa(zt);return;case Yt:Fa(Yt);return;case"maths-latex":Fa("maths-latex");return;case cn:Fa(cn);return;case fa:Fa(fa);return;default:throw new Error}},[an,Cr,Qn]),tt=(0,b.useCallback)((hn,Rn)=>{var Vn,Jn,_a,yo,Yo,Oo;switch(Fa(""),$a){case At:const{title:Ma,link:Or}=hn;return an.replaceSelection(`[${Ma}](${Or})`),an.focus();case ca:const{language:Ur,content:Ut}=hn;return an.replaceSelection(["```"+Ur,Ut,"```"].join(` `)),an.focus();case"maths-latex":for(var Ba=atob(hn),ka=new Uint8Array(Ba.length),ao=0;ao{oo.id?an.replaceSelection(`![,](/api/attachments/${oo.id}?type=${oo.content_type})`):(oo==null?void 0:oo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":an.replaceSelection("`$$"+hn+"$$`");break;case zt:case Yt:case Aa:const{src:Rt,alt:$t}=hn,Nn=Rn,Ya=(_a=(Jn=(Vn=Nn==null?void 0:Nn.name)==null?void 0:Vn.split("."))==null?void 0:Jn.pop)==null?void 0:_a.call(Jn);return((yo=Nn==null?void 0:Nn.type)==null?void 0:yo.indexOf("image"))>-1||!(Nn!=null&&Nn.type)?Nn.align||Nn.width?an.replaceSelection(`

${$t||

`):an.replaceSelection(`${$t||`):((Yo=Nn==null?void 0:Nn.type)==null?void 0:Yo.indexOf("video"))>-1?an.replaceSelection(``):((Oo=Nn==null?void 0:Nn.type)==null?void 0:Oo.indexOf("pdf"))>-1?an.replaceSelection(`${Nn.name}`):pa.includes(Ya)?an.replaceSelection(`${Nn.name}`):an.replaceSelection(`[${Nn.name}](${Rt})`),an.focus();case fa:const{row:bo,col:kn,align:fo}=hn;let co=` `;for(let oo=0;oo{switch($a){case At:return b.createElement(it,{callback:tt,onCancel:ea});case ca:return b.createElement($e.Z,{callback:tt,onCancel:ea});case zt:return b.createElement(Ne.Z,{callback:tt,onCancel:ea});case cn:return b.createElement(jt,{callback:tt,onCancel:ea});case fa:return b.createElement(Zn,{callback:tt,onCancel:ea});case"maths-latex":return b.createElement(gt,{showSaveButton:!0,callback:tt});case"inline-latex":return b.createElement(wn.Z,{showSaveButton:!0,callback:tt});default:return null}},[$a]);function ea(){Fa("")}(0,b.useEffect)(()=>{if(hi.current){let hn=function(Yo){_a=!0,yo=Yo.pageY},Rn=function(){_a=!1},Vn=function(Yo){if(_a){let Oo=Yo.pageY-yo;Oo<0&&(Oo=0),Oo>300&&(Oo=300);let Ba=Mn+Oo+"px";wl(Ba)}},Jn=hi.current,_a=!1,yo=0;return Jn.addEventListener("mousedown",hn),document.addEventListener("mousemove",Vn),document.addEventListener("mouseup",Rn),()=>{Jn.removeEventListener("mousedown",hn),document.removeEventListener("mousemove",Vn),document.removeEventListener("mouseup",Rn)}}},[an,hi]),(0,b.useEffect)(()=>{wl(Mn)},[Mn]);const Pa=Ua(Et),_t=Ua(xl),pn={width:Pa,height:_t},on=(0,b.useMemo)(()=>{if(Wo){let hn=new Date(Wo),Rn=hn.getHours(),Vn=hn.getMinutes(),Jn=hn.getSeconds();return Rn=Rn<10?"0"+Rn:Rn,Vn=Vn<10?"0"+Vn:Vn,Jn=Jn<10?"0"+Jn:Jn,`${Rn}:${Vn}:${Jn}`}return 0},[Wo]),va=hn=>{const Rn=[];if(gr){let Vn=-1;hn=hn.replace(/(@▁▁@|@▁@)/g,function(Jn,_a,yo){Rn.push({multiLine:Jn!==dn})})}return Rn};function za(){window.sessionStorage.removeItem(Sr),ui(!1),jr(0)}function no(){ui(!1),jr(0),an.setValue(window.sessionStorage.getItem(Sr))}const Zt=(0,ce.useIntl)(),vo={[At]:"\u6DFB\u52A0\u94FE\u63A5",[ca]:Zt.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[zt]:Zt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Yt]:"\u6DFB\u52A0\u753B\u56FE",[cn]:Zt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[fa]:"\u6DFB\u52A0\u8868\u683C","maths-latex":Zt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":Zt.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,b.useEffect)(()=>{vo[$a]&&$a!==Yt&&$a!==cn&&setTimeout(()=>{const hn=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth/2-hn.offsetWidth/2,Vn=window.innerHeight/2-hn.offsetHeight/2;Jr(Rn),uu(Vn)},0)},[$a]);const zo=hn=>{hn.preventDefault();const Rn=hn.clientX-Gl,Vn=hn.clientY-Fi;document.body.onmousemove=Jn=>{let _a=Jn.clientX-Rn,yo=Jn.clientY-Vn;const Yo=document.getElementsByClassName("markdown-popup-form")[0],Oo=window.innerWidth-Yo.offsetWidth,Ba=window.innerHeight-Yo.offsetHeight;_a=Math.max(0,Math.min(_a,Oo)),yo=Math.max(0,Math.min(yo,Ba)),Zo(Jn.clientX,Jn.clientY,Rn,Vn)&&(Jr(_a),uu(yo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Zo=(hn,Rn,Vn,Jn)=>{const _a=document.body.clientHeight,yo=document.body.clientWidth;return hn<20&&Vn>hn||hn>yo-20&&VnRn||Rn>_a-20&&Jnse in de?ce(de,se,{enumerable:!0,configurable:!0,writable:!0,value:Me}):de[se]=Me,ne=(de,se)=>{for(var Me in se||(se={}))x.call(se,Me)&&ee(de,Me,se[Me]);if(E)for(var Me of E(se))y.call(se,Me)&&ee(de,Me,se[Me]);return de},ae=(de,se)=>oe(de,a(se));const{useForm:ie}=b.default,le={width:280,marginRight:10},me={labelCol:{span:5},wrapperCol:{span:19}};var fe=({callback:de,onCancel:se})=>{const[Me]=ie();let be=(0,je.useRef)();const De=(0,Ze.useIntl)();function Ce(qe){be.current.width=Me.getFieldValue("width"),be.current.align=Me.getFieldValue("align"),de(qe,be.current)}function Le(qe,Je){if(qe.status===-1){re.ZP.error(qe.message);return}Me.setFieldsValue({src:`/api/attachments/${qe.id}`,type:Je.type})}function Ge(qe){let Je=qe.target.files[0];be.current=Je,he(Je,Le)}return Be.createElement(b.default,ae(ne({form:Me},me),{className:"upload-image-panel",onFinish:Ce,style:{width:470,overflow:"hidden"}}),Be.createElement(b.default.Item,{label:De.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},Be.createElement("div",{className:"flex-container"},Be.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Be.createElement(Se.default,{style:le})),Be.createElement(pe,{onFileChange:Ge}))),Be.createElement(b.default.Item,{label:De.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},Be.createElement(Se.default,{style:{width:264}})),Be.createElement(b.default.Item,{label:De.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},Be.createElement(Pe.Z,null,Be.createElement(b.default.Item,{name:"width",style:{margin:0}},Be.createElement(Ie.Z,{style:{width:264}})),Be.createElement("span",{className:"ml8"},"%"))),Be.createElement(b.default.Item,{label:De.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},Be.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:De.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:De.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:De.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),Be.createElement("aside",null,Be.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Be.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},De.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),Be.createElement(ue.ZP,{type:"default",onClick:se},De.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function pe({onFileChange:de}){return Be.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Be.createElement("input",{type:"file",onChange:de}))}function he(de,se){if(!de)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Oe.bg)())throw re.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",de),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var be=new window.XMLHttpRequest;be.withCredentials=!0,be.addEventListener("load",function(De){se(JSON.parse(De.target.responseText),de)},!1),be.addEventListener("error",function(De){console.error(De)},!1),be.open("POST",`${Te.KI}/api/attachments.json`),be.send(Me)}},76621:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Se}});var b=z(67294),re=z(73935);class Se extends b.Component{constructor(Ie){super(Ie);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:Ie}=this.props;return(0,re.createPortal)(Ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(ut,Ue,z){"use strict";z.d(Ue,{i:function(){return me},Z:function(){return pe}});var b={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"},re=z(57953),Se=z(83062),Pe=z(38703),Ie=z(94184),Fe=z.n(Ie),ue=z(28706),Te=z(26194),je=z(52262),Oe=z(35973),Ze=z(79005),Be=z(20345),ce=z(77882),oe=z(31081),a=z(75309),E=z(71979),x=z(47558),y=z(60345),ee=z(66832),ne=z(96593),ae=z(19664),ie=z(91833),le=z(67294);const me=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ze,swimg:Be},{name:"101\u8BA1\u5212",ptimg:ce,swimg:oe},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:a,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:x,swimg:y},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:ee,swimg:ne},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ae,swimg:ie}];var pe=({className:he,dataSource:de=[],col:se=4,right:Me,bottom:be=23,precision:De=0,wrapWidth:Ce=1200,trackEventItems:Le,loading:Ge,onRemove:qe=()=>{},isCurrent:Je=!0,showAlias:Re=!1,showProgress:He=!1})=>{const it=(0,Oe.useIntl)(),$e=Math.floor((Ce-(se-1)*Me)/se),Ne=[{name:it.formatMessage({id:"shixuns.recommendSelfStudy",defaultMessage:"\u63A8\u8350\u81EA\u5B66"}),ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:it.formatMessage({id:"shixuns.plan101",defaultMessage:"101\u8BA1\u5212"}),ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:it.formatMessage({id:"shixuns.nationalFirstClass",defaultMessage:"\u56FD\u5BB6\u4E00\u6D41"}),ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:it.formatMessage({id:"shixuns.provincialFirstClass",defaultMessage:"\u7701\u7EA7\u4E00\u6D41"}),ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:it.formatMessage({id:"shixuns.premiumCourse",defaultMessage:"\u7CBE\u54C1\u8BFE\u7A0B"}),ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:it.formatMessage({id:"shixuns.topMilitary",defaultMessage:"\u519B\u961F\u4E00\u6D41"}),ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:it.formatMessage({id:"shixuns.newTypeTextbook",defaultMessage:"\u65B0\u578B\u6559\u6750"}),ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Ye=>(window.ENV==="build"&&(Ye.ptimg=`/react/build${Ye.ptimg}`,Ye.swimg=`/react/build${Ye.swimg}`),Ye));return le.createElement(re.Z,{spinning:Ge},le.createElement("div",{className:Fe()(b.list,he)},!!(de!=null&&de.length)&&(de==null?void 0:de.map((Ye,Xe)=>{var st,ct,Ct,et,Qt,un;const{name:In,id:gn,identifier:Lt,featured:Ve,school_name:nt,image_url:at,excellent:rt,is_plan:jt}=Ye;return le.createElement("div",{key:gn,className:Je&&He?b.wrapisCurrent:b.wrap,style:{width:$e,marginRight:(1+Xe)%se===0?0:Me+De,marginBottom:be}},le.createElement("a",{className:b.li,onClick:yt=>{yt.preventDefault(),yt.stopPropagation(),Le&&(0,ue.L9)([Le]),(0,ue.xg)(`/paths/${Lt}`)}},le.createElement("div",{className:b.img},le.createElement("img",{className:b.cover,src:`${at}`}),Je&&(0,je.bg)()&&(Ye==null?void 0:Ye.studying)&&le.createElement("div",{className:`${b.movebq} user-path-items`,onClick:yt=>{yt.stopPropagation(),qe(Ye)}},le.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),le.createElement("span",{className:"c-red"},it.formatMessage({id:"classrooms.remove",defaultMessage:"\u79FB\u9664"}))),(st=Ye==null?void 0:Ye.subject_tags)==null?void 0:st.map((yt,Bn)=>{var It,Fn;if(Bn===0){const _e=(It=Ne.find(Pt=>Pt.name==yt))==null?void 0:It.swimg;return le.createElement("img",{className:b.sign,src:_e,style:{left:"-4px"}})}const Zn=(Fn=Ne.find(_e=>_e.name==yt))==null?void 0:Fn.ptimg;return le.createElement("img",{className:b.sign,src:Zn,style:{left:`${48+52*(Bn-1)+2*Bn}px`}})}),le.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ye==null?void 0:Ye.excellent)&&le.createElement("div",{className:b.bq},it.formatMessage({id:"paths.openCourse1",defaultMessage:"\u5F00\u653E\u8BFE\u7A0B"})))),le.createElement("div",{className:b.name},le.createElement(Se.Z,{title:Re&&(Ye!=null&&Ye.excellent_alias_name)?le.createElement("span",null,`${it.formatMessage({id:"paths.originalCourseName",defaultMessage:"\u8BFE\u7A0B\u539F\u540D"})}\uFF1A${In}`,le.createElement("br",null),le.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ye==null?void 0:Ye.excellent_alias_name}`)):In},le.createElement("span",{className:b.e},Re&&(Ye==null?void 0:Ye.excellent_alias_name)||In))),Je&&He&&((ct=Ye==null?void 0:Ye.progress)==null?void 0:ct.all_score)!=0&&le.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},le.createElement(Pe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ct=Ye==null?void 0:Ye.progress)==null?void 0:Ct.my_score)/((et=Ye==null?void 0:Ye.progress)==null?void 0:et.all_score)*100).toFixed(),showInfo:!1}),it.formatMessage({id:"shixuns.completed",defaultMessage:"\u5DF2\u5B8C\u6210"})," ",(Qt=Ye==null?void 0:Ye.progress)==null?void 0:Qt.my_score,"/",(un=Ye==null?void 0:Ye.progress)==null?void 0:un.all_score),(!Je||!He)&&le.createElement("div",{className:b.tags},le.createElement("div",null,le.createElement(Se.Z,{placement:"bottom",title:it.formatMessage({id:"paths.chapterCount",defaultMessage:"\u7AE0\u8282\u6570"})},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),le.createElement("span",null,Ye.stages_count))),le.createElement(Se.Z,{placement:"bottom",title:it.formatMessage({id:"paths.numberOfLearners",defaultMessage:"\u5B66\u4E60\u4EBA\u6570"})},le.createElement("span",null,le.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),le.createElement("span",null,Ye.members_count)))))))})),!de.length&&le.createElement(Te.Z,null)))}},80150:function(ut,Ue,z){"use strict";z.d(Ue,{jL:function(){return Ie},w9:function(){return oa},vv:function(){return $n},dN:function(){return Ft},QD:function(){return Ki},cQ:function(){return yt.Z},vg:function(){return hr},Oz:function(){return xn},op:function(){return jr},O5:function(){return on},_b:function(){return Mi},t7:function(){return be},tT:function(){return Le},Gi:function(){return En},YG:function(){return Fo},Ed:function(){return gr},kT:function(){return hl},qp:function(){return y},Um:function(){return me},K3:function(){return ae},vr:function(){return Jr},qE:function(){return Ml},Je:function(){return Je},wb:function(){return Qt},rC:function(){return jt},lB:function(){return gn},cq:function(){return ia},kO:function(){return Oa},tp:function(){return he},Si:function(){return no},k8:function(){return Ur},Du:function(){return Jn}});var b=z(67294),re={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"},Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1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I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ie=({dataSource:Ut=[],img:Rt,imgWidth:$t=346,title:Nn,sunTitle:Ya,bannerExtraContent:bo})=>b.createElement("div",{className:re.banner},b.createElement("div",{className:re.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Nn),b.createElement("span",null,Ya)),Ut.length>0&&b.createElement("div",{className:re.btns},Ut.map((kn,fo)=>b.createElement("div",{key:fo,onClick:kn.click},kn.name,kn.sign?b.createElement("img",{src:Se,width:39}):null))),bo),Rt&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:$t}))),Fe={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=z(94184),Te=z.n(ue),je=z(96486),Oe=z(35973),Ze=Object.defineProperty,Be=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,a=(Ut,Rt,$t)=>Rt in Ut?Ze(Ut,Rt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ut[Rt]=$t,E=(Ut,Rt)=>{for(var $t in Rt||(Rt={}))ce.call(Rt,$t)&&a(Ut,$t,Rt[$t]);if(Be)for(var $t of Be(Rt))oe.call(Rt,$t)&&a(Ut,$t,Rt[$t]);return Ut},y=({dataSource:Ut=[],value:Rt,onChange:$t,onTitleChange:Nn,className:Ya,title:bo,titleWidth:kn=41,style:fo={},fontColor:co="#6A7283",showCount:oo,classNameActive:Gr,styleItem:_n={}})=>{const br=(0,Oe.useIntl)(),[lr,Da]=(0,b.useState)(0),[No,$o]=(0,b.useState)(!1),Wr=(0,b.useRef)(null),Rl=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Mr;Ut.length!==0&&(((Mr=Wr==null?void 0:Wr.current)==null?void 0:Mr.clientHeight)>97?Da(1):Da(0)),Ut.length===0&&Da(0),$o(!1)},[Ut]),b.createElement("div",{className:Te()(Fe.row,Ya),style:fo},b.createElement("div",{onClick:(0,je.throttle)(()=>Nn==null?void 0:Nn(),2e3),style:{width:kn,marginTop:No?12:4},className:`${Fe.title} ${Nn?"current":""}`},bo),b.createElement("div",{className:No?`${Fe.tagsWrap} ${Fe.tagsBorderWrap}`:Fe.tagsWrap},b.createElement("div",{className:Fe.bar,ref:Rl,style:lr>0?{height:lr===1?97:"auto",overflow:lr===1?"hidden":"auto",paddingRight:70}:{paddingRight:0}},b.createElement("div",{className:Fe.tag,ref:Wr},Ut==null?void 0:Ut.map(Mr=>b.createElement("span",{onClick:()=>$t(Mr.id),key:Mr.id,style:E(E({color:co},_n),(Mr==null?void 0:Mr.style)||{}),className:Rt===Mr.id?Te()(Gr||Fe.active,Mr.classNameActive):""},b.createElement("span",{title:Mr.name,className:Fe.name},Mr.name),!!oo&&b.createElement("span",{className:Fe.num},Mr.count))))),!!lr&&b.createElement(b.Fragment,null,lr===1?b.createElement("div",{onClick:()=>{var Mr;Da(2),((Mr=Wr==null?void 0:Wr.current)==null?void 0:Mr.clientHeight)>245?$o(!0):$o(!1)},className:Fe.action},br.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"}),b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Rl.current.scrollTop=0,Da(1),$o(!1)},className:Fe.action},br.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"}),b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ee={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ae=({dataSource:Ut=[],value:Rt,onChange:$t,onTitleChange:Nn,className:Ya,title:bo,titleWidth:kn=41,style:fo={},fontColor:co="#6A7283",showCount:oo,expand:Gr=!0})=>{const[_n,br]=(0,b.useState)(0),[lr,Da]=(0,b.useState)(!1),No=(0,b.useRef)(null),$o=(0,b.useRef)(null),[Wr,Rl]=(0,b.useState)(Gr);return b.createElement("div",{className:Te()(ee.row,Ya),style:fo},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,je.throttle)(()=>Nn==null?void 0:Nn(),2e3),style:{width:kn,marginTop:lr?12:4},className:`${ee.title} ${Nn?"current":""}`},bo),b.createElement("i",{className:`iconfont ${Wr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Wr?8:10},onClick:()=>Rl(!Wr)})),Wr&&b.createElement("div",{className:lr?`${ee.tagsWrap} ${ee.tagsBorderWrap}`:ee.tagsWrap},b.createElement("div",{className:ee.fenge}),b.createElement("div",{className:ee.bar,ref:$o},b.createElement("div",{className:ee.tag,ref:No},Ut==null?void 0:Ut.map(Mr=>b.createElement("span",{onClick:()=>$t(Mr.id),key:Mr.id,style:{color:co},className:Rt===Mr.id?ee.active:""},b.createElement("span",{title:Mr.name,className:ee.name},Mr.name),!!oo&&b.createElement("span",{className:ee.num},Mr.count)))))))},ie={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},me=({dataSource:Ut=[],value:Rt,onChange:$t,onTitleChange:Nn,className:Ya,title:bo,titleWidth:kn=41,style:fo={},fontColor:co="#fff",showCount:oo,expand:Gr=!0})=>{const[_n,br]=(0,b.useState)(0),[lr,Da]=(0,b.useState)(!1),No=(0,b.useRef)(null),$o=(0,b.useRef)(null),[Wr,Rl]=(0,b.useState)(Gr);return b.createElement("div",{className:Te()(ie.row,Ya),style:fo},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,je.throttle)(()=>Nn==null?void 0:Nn(),2e3),style:{width:kn},className:`${ie.title} ${Nn?"current":""}`},bo),b.createElement("i",{className:`iconfont ${Wr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Wr?"#00DDC7":"#037F74",fontSize:Wr?10:12},onClick:()=>Rl(!Wr)})),Wr&&b.createElement("div",{className:lr?`${ie.tagsWrap} ${ie.tagsBorderWrap}`:ie.tagsWrap},b.createElement("div",{className:ie.bar,ref:$o},b.createElement("div",{className:ie.tag,ref:No},Ut==null?void 0:Ut.map(Mr=>b.createElement("span",{onClick:()=>$t(Mr.id),key:Mr.id,style:{color:co},className:Rt===Mr.id?ie.active:""},b.createElement("span",{title:Mr.name,className:ie.name},Mr.name),!!oo&&b.createElement("span",{className:ie.num},Mr.count)))))))},fe={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"},he=({dataSource:Ut=[],value:Rt,onChange:$t,className:Nn,style:Ya={}})=>b.createElement("div",{style:Ya,className:Te()(fe.tabs,Nn)},Ut.map(bo=>b.createElement("span",{onClick:()=>$t(bo.id),className:Rt===bo.id?fe.active:"",key:bo.id},bo.name))),de={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"},se=z(69677),be=({dataSource:Ut=[],value:Rt="",onChange:$t,onInputChange:Nn=()=>{},className:Ya,style:bo={},placeholder:kn,allowClear:fo=!1})=>{var co;const[oo,Gr]=(0,b.useState)(""),[_n,br]=(0,b.useState)("");(0,b.useEffect)(()=>{var No;let $o=Rt;(No=JSON.stringify(Rt))!=null&&No.includes("{")&&(Gr(Rt.id),$o=Rt.value||"");try{br(decodeURIComponent($o||""))}catch(Wr){br(decodeURIComponent($o||""))}},[Rt]);const lr=()=>{$t(encodeURIComponent(_n),oo||null)},Da=No=>{No!==oo&&(Gr(No),$t(encodeURIComponent(_n),No))};return b.createElement("div",{className:Te()(de.input,Ya),style:bo},!!Ut.length&&b.createElement("div",{className:de.dropdown},b.createElement("div",{className:de.text},(co=Ut.find(No=>No.id===oo))==null?void 0:co.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:de.b1}),b.createElement("b",{className:de.b2})),b.createElement("div",{className:de.menu},Ut.map((No,$o)=>b.createElement("div",{key:$o,onClick:()=>Da(No.id)},No.name)))),b.createElement(se.default,{onPressEnter:lr,value:_n,onChange:No=>{br(No.target.value),Nn(encodeURIComponent(No.target.value),oo||null)},bordered:!1,placeholder:kn}),b.createElement("i",{onClick:lr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},De={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},Le=({dataSource:Ut=[],value:Rt="",onChange:$t,onInputChange:Nn=()=>{},className:Ya,style:bo={},placeholder:kn,allowClear:fo=!1})=>{var co;const[oo,Gr]=(0,b.useState)(""),[_n,br]=(0,b.useState)("");(0,b.useEffect)(()=>{var No;let $o=Rt;(No=JSON.stringify(Rt))!=null&&No.includes("{")&&(Gr(Rt.id),$o=Rt.value||"");try{br(decodeURIComponent($o||""))}catch(Wr){br(decodeURIComponent($o||""))}},[Rt]);const lr=()=>{$t(encodeURIComponent(_n),oo||null)},Da=No=>{No!==oo&&(Gr(No),$t(encodeURIComponent(_n),No))};return b.createElement("div",{className:Te()(De.input,Ya),style:bo},!!Ut.length&&b.createElement("div",{className:De.dropdown},b.createElement("div",{className:De.text},(co=Ut.find(No=>No.id===oo))==null?void 0:co.name,b.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),b.createElement("div",{className:De.menu},Ut.map((No,$o)=>b.createElement("div",{key:$o,onClick:()=>Da(No.id)},No.name)))),b.createElement(se.default,{onPressEnter:lr,value:_n,onChange:No=>{br(No.target.value),Nn(encodeURIComponent(No.target.value),oo||null)},bordered:!1,placeholder:kn}),b.createElement("i",{onClick:lr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Ge={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"},Je=({value:Ut,onChange:Rt,className:$t,total:Nn,pageSize:Ya,style:bo={}})=>{const kn=(0,Oe.useIntl)(),fo=Ut<2,co=Ut>=Math.ceil(Nn/Ya);return Nn<=Ya?b.createElement(b.Fragment,null):b.createElement("div",{className:Te()(Ge.quickPager,$t),style:bo},b.createElement("div",{onClick:()=>{fo||Rt(Ut-1,"prev")},className:fo?Ge.disabled:""},kn.formatMessage({id:"shixuns.previousPage"})),b.createElement("div",{onClick:()=>{co||Rt(Ut+1,"next")},className:co?Ge.disabled:""},kn.formatMessage({id:"shixuns.nextPage"})))},Re={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"},He=z(57953),it=z(83062),$e=z(12604),Ne=z(11320),Ye=z(28706),Xe=z(96908),st=z(57177),ct=z(81378),Ct=z(26194),Qt=({className:Ut,dataSource:Rt=[],col:$t=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,trackEventItems:fo,loading:co})=>{const oo=(0,Oe.useIntl)(),Gr=Math.floor((kn-($t-1)*Nn)/$t);return b.createElement(He.Z,{spinning:co},b.createElement("div",{className:Te()(Re.list,Ut)},!!Rt.length&&Rt.map((_n,br)=>{const{name:lr,id:Da,identifier:No,power:$o,cover_image_id:Wr,pic:Rl}=_n;return b.createElement("div",{className:Re.wrap,key:Da,style:{width:Gr,marginRight:(1+br)%$t===0?0:Nn+bo,marginBottom:Ya}},b.createElement("a",{target:"_blank",href:`/shixuns/${No}/challenges`,className:Re.li,onClick:Mr=>{Mr.preventDefault(),fo&&(0,Ye.L9)([fo]),$o&&(0,Ye.xg)(`/shixuns/${No}/challenges`)}},b.createElement("div",{className:Re.img},b.createElement("img",{className:Re.cover,src:`${Rl}`}),_n.is_jupyter&&b.createElement("img",{className:Re.sign,src:Xe}),_n.is_jupyter_lab&&b.createElement("img",{className:Re.sign,src:st}),_n.is_unity_3d&&b.createElement("img",{className:Re.sign,src:ct})),b.createElement("div",{className:Re.name},b.createElement(it.Z,{title:lr||oo.formatMessage({id:"shixuns.practicalProjectNameNotFilled"})},b.createElement("span",{className:Re.e},lr||oo.formatMessage({id:"shixuns.practicalProjectNameNotFilled"})))),b.createElement("div",{className:Re.tags},b.createElement(it.Z,{placement:"bottom",title:oo.formatMessage({id:"shixuns.numberOfLevels",defaultMessage:"\u5173\u5361\u6570"})},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,_n.challenges_count))),!!_n.myshixuns_count&&b.createElement(it.Z,{placement:"bottom",title:oo.formatMessage({id:"shixuns.numberOfLearners"})},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,_n.myshixuns_count))),b.createElement(it.Z,{placement:"bottom",title:oo.formatMessage({id:"shixuns.difficultyCoefficient",defaultMessage:"\u96BE\u5EA6\u7B49\u7EA7"})},b.createElement("span",null,b.createElement("span",null,(0,Ye.Mr)(oo,_n.level)))),b.createElement("div",{className:Re.rate},b.createElement($e.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),b.createElement("span",null,"\xA0",_n.score_info?`${_n.score_info}${oo.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})}`:"5"+oo.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}))))),!$o&&b.createElement("div",{className:Re.lockWrap},b.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&b.createElement(Ct.Z,null)))},un={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},gn=({className:Ut,dataSource:Rt=[],col:$t=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,wrapClassName:fo,trackEventItems:co,loading:oo})=>{const Gr=Math.floor((kn-($t-1)*Nn)/$t);return b.createElement(He.Z,{spinning:oo},b.createElement("div",{className:Te()(un.list,Ut)},!!Rt.length&&Rt.map((_n,br)=>{const{name:lr,id:Da,identifier:No,power:$o,cover_image_id:Wr,pic:Rl}=_n;return b.createElement("div",{className:Te()(un.wrap,fo),key:Da,style:{width:Gr,marginRight:(1+br)%$t===0?0:Nn+bo,marginBottom:Ya}},b.createElement("a",{target:"_blank",href:`/shixuns/${No}/challenges`,className:un.li,onClick:Mr=>{Mr.preventDefault(),co&&(0,Ye.L9)([co]),$o&&(0,Ye.xg)(`/shixuns/${No}/challenges`)}},b.createElement("img",{src:z(79633),className:un.titleBg}),b.createElement("div",{className:un.name},b.createElement(it.Z,{title:lr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:un.e},lr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:un.img},b.createElement("img",{className:un.cover,src:Wr?`${Ne.Z.API_SERVER}/api/attachments/${Wr}`:`${Ne.Z.IMG_SERVER+Rl}`}),_n.is_jupyter&&b.createElement("div",{className:un.bq},"Jupyter"),_n.is_jupyter_lab&&b.createElement("div",{className:un.bq},"JupyterLab"),_n.is_unity_3d&&b.createElement("div",{className:un.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),b.createElement("div",{className:"mt20 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:un.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:un.value},_n.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:un.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:un.value},_n.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:un.text},"\u5173\u5361\u6570"),b.createElement("span",{className:un.value},_n.challenges_count)),b.createElement("div",{className:un.rate},b.createElement($e.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),b.createElement("span",{className:un.value,style:{color:"#FF9C00"}},"\xA0",_n.score_info?`${_n.score_info}\u5206`:"5\u5206"))))),!$o&&b.createElement("div",{className:un.lockWrap},b.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&b.createElement(Ct.Z,null)))},Lt={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},Ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPX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V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",jt=({className:Ut,dataSource:Rt=[],col:$t=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,trackEventItems:fo,loading:co,wrapClassName:oo,imgClassName:Gr})=>{const _n=Math.floor((kn-($t-1)*Nn)/$t);return b.createElement(He.Z,{spinning:co},b.createElement("div",{className:Te()(Lt.list,Ut)},!!Rt.length&&Rt.map((br,lr)=>{const{name:Da,id:No,identifier:$o,power:Wr,cover_image_id:Rl,pic:Mr}=br;return b.createElement("div",{className:Te()(Lt.wrap,oo),key:No,style:{width:_n,marginRight:(1+lr)%$t===0?0:Nn+bo,marginBottom:Ya}},b.createElement("a",{target:"_blank",href:`/shixuns/${$o}/challenges`,className:Lt.li,onClick:bi=>{bi.preventDefault(),fo&&(0,Ye.L9)([fo]),Wr&&(0,Ye.xg)(`/shixuns/${$o}/challenges`)}},b.createElement("div",{className:Te()(Lt.img,Gr)},b.createElement("img",{className:Lt.cover,src:Rl?`${Ne.Z.API_SERVER}/api/attachments/${Rl}`:`${Ne.Z.IMG_SERVER+Mr}`}),br.is_jupyter&&b.createElement("img",{className:Lt.sign,src:Ve}),br.is_jupyter_lab&&b.createElement("img",{className:Lt.sign,src:nt}),br.is_unity_3d&&b.createElement("img",{className:Lt.sign,src:at})),b.createElement("div",{className:Lt.name},b.createElement(it.Z,{title:Da||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Lt.e},Da||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Lt.tags},b.createElement(it.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,br.challenges_count))),!!br.myshixuns_count&&b.createElement(it.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,br.myshixuns_count))),b.createElement(it.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,br.level))),b.createElement("div",{className:Lt.rate},b.createElement($e.Z,{allowHalf:!0,disabled:!0,defaultValue:br.score_info}),b.createElement("span",null,"\xA0",br.score_info?`${br.score_info}\u5206`:"5\u5206")))),!Wr&&b.createElement("div",{className:Lt.lockWrap},b.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&b.createElement(Ct.Z,null)))},yt=z(5476),Bn={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},It=z(79005),Fn=z(20345),Zn=z(77882),_e=z(31081),Pt=z(75309),Cn=z(71979),jn=z(47558),gt=z(60345),wn=z(66832),ft=z(96593),xt=z(19664),At=z(91833),zt=Object.defineProperty,cn=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Aa=Object.prototype.propertyIsEnumerable,ca=(Ut,Rt,$t)=>Rt in Ut?zt(Ut,Rt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ut[Rt]=$t,fa=(Ut,Rt)=>{for(var $t in Rt||(Rt={}))Yt.call(Rt,$t)&&ca(Ut,$t,Rt[$t]);if(cn)for(var $t of cn(Rt))Aa.call(Rt,$t)&&ca(Ut,$t,Rt[$t]);return Ut};const Ha=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:It,swimg:Fn},{name:"101\u8BA1\u5212",ptimg:Zn,swimg:_e},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Pt,swimg:Cn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:jn,swimg:gt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:wn,swimg:ft},{name:"\u519B\u961F\u4E00\u6D41",ptimg:xt,swimg:At}];var xn=({className:Ut,dataSource:Rt=[],col:$t=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,trackEventItems:fo,loading:co,wrapClassName:oo,imgClassName:Gr,isArrow:_n=!1,imgStyle:br={}})=>{const lr=Math.floor((kn-($t-1)*Nn)/$t),[Da,No]=(0,b.useState)(),[$o,Wr]=(0,b.useState)(),Rl=bi=>No(bi),Mr=()=>No(-1);return b.createElement(He.Z,{spinning:co},b.createElement("div",{className:Te()(Bn.list,Ut)},!!(Rt!=null&&Rt.length)&&(Rt==null?void 0:Rt.map((bi,Fl)=>{var yr;const{name:Wl,id:Fu,identifier:Eu,featured:si,school_name:Ri,image_url:Bi,excellent:Br,is_plan:Zi}=bi;return b.createElement("div",{key:Fu,className:Te()(Bn.wrap,oo),style:{width:lr,marginRight:(1+Fl)%$t===0?0:Nn+bo,marginBottom:Ya}},b.createElement("a",{target:"_blank",href:`/paths/${Eu}`,className:Bn.li,onClick:Hi=>{Hi.preventDefault(),fo&&(0,Ye.L9)([fo]),(0,Ye.xg)(`/paths/${Eu}`)}},b.createElement("img",{src:z(39057),className:Bn.titleBg}),b.createElement("div",{className:Bn.name},b.createElement(it.Z,{title:Wl},b.createElement("span",{className:Bn.e,style:{color:_n&&Da===Fl?"#145DFF":"#000000"},onMouseEnter:()=>{Rl(Fl)},onMouseLeave:Mr},Wl))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Te()(Bn.img,Gr)},b.createElement("img",{className:Bn.cover,style:fa({},br),src:`${Ne.Z.IMG_SERVER+Bi}`}),(yr=bi==null?void 0:bi.subject_tags)==null?void 0:yr.map((Hi,fu)=>{var Su,su;if(fu===0){const es=(Su=Ha.find(ts=>ts.name==Hi))==null?void 0:Su.swimg;return b.createElement("img",{className:Bn.sign,src:es,style:{left:"-4px"}})}const Fs=(su=Ha.find(es=>es.name==Hi))==null?void 0:su.ptimg;return b.createElement("img",{className:Bn.sign,src:Fs,style:{left:`${48+52*(fu-1)+2*fu}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(bi==null?void 0:bi.excellent)&&b.createElement("div",{className:Bn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Bn.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:Bn.value},bi.stages_count)),b.createElement("div",null,b.createElement("span",{className:Bn.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Bn.value},bi.members_count))))))})),!Rt.length&&b.createElement(Ct.Z,null)))},to={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},ko=z(52262),Qa=z(67294);const jo=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:It,swimg:Fn},{name:"101\u8BA1\u5212",ptimg:Zn,swimg:_e},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Pt,swimg:Cn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:jn,swimg:gt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:wn,swimg:ft},{name:"\u519B\u961F\u4E00\u6D41",ptimg:xt,swimg:At}];var hr=({className:Ut,dataSource:Rt=[],col:$t=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,trackEventItems:fo,loading:co,onRemove:oo=()=>{},isCurrent:Gr=!0,showAlias:_n=!1,wrapClassName:br,imgClassName:lr})=>{const Da=Math.floor((kn-($t-1)*Nn)/$t),No=[{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"}].map($o=>(window.ENV==="build"&&($o.ptimg=`/react/build${$o.ptimg}`,$o.swimg=`/react/build${$o.swimg}`),$o));return Qa.createElement(He.Z,{spinning:co},Qa.createElement("div",{className:Te()(to.list,Ut)},!!(Rt!=null&&Rt.length)&&(Rt==null?void 0:Rt.map(($o,Wr)=>{var Rl;const{name:Mr,id:bi,identifier:Fl,featured:yr,school_name:Wl,image_url:Fu,excellent:Eu,is_plan:si}=$o;return Qa.createElement("div",{key:bi,className:Te()(to.wrap,br),style:{width:Da,marginRight:(1+Wr)%$t===0?0:Nn+bo,marginBottom:Ya}},Qa.createElement("a",{className:to.li,onClick:Ri=>{Ri.preventDefault(),Ri.stopPropagation(),fo&&(0,Ye.L9)([fo]),(0,Ye.xg)(`/paths/${Fl}`)}},Qa.createElement("div",{className:Te()(to.img,lr)},Qa.createElement("img",{className:to.cover,src:`${Ne.Z.IMG_SERVER+Fu}`}),Gr&&(0,ko.bg)()&&($o==null?void 0:$o.studying)&&Qa.createElement("div",{className:`${to.movebq} user-path-items`,onClick:Ri=>{Ri.stopPropagation(),oo($o)}},Qa.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Qa.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Rl=$o==null?void 0:$o.subject_tags)==null?void 0:Rl.map((Ri,Bi)=>{var Br,Zi;if(Bi===0){const fu=(Br=No.find(Su=>Su.name==Ri))==null?void 0:Br.swimg;return Qa.createElement("img",{className:to.sign,src:fu,style:{left:"-4px"}})}const Hi=(Zi=No.find(fu=>fu.name==Ri))==null?void 0:Zi.ptimg;return Qa.createElement("img",{className:to.sign,src:Hi,style:{left:`${48+52*(Bi-1)+2*Bi}px`}})}),Qa.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},($o==null?void 0:$o.excellent)&&Qa.createElement("div",{className:to.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Qa.createElement("div",{className:to.name},Qa.createElement(it.Z,{title:_n&&($o!=null&&$o.excellent_alias_name)?Qa.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Mr}`,Qa.createElement("br",null),Qa.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${$o==null?void 0:$o.excellent_alias_name}`)):Mr},Qa.createElement("span",{className:to.e},_n&&($o==null?void 0:$o.excellent_alias_name)||Mr))),Qa.createElement("div",{className:to.tags},Qa.createElement("div",null,Qa.createElement(it.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Qa.createElement("span",null,Qa.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Qa.createElement("span",null,$o.stages_count))),Qa.createElement(it.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qa.createElement("span",null,Qa.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Qa.createElement("span",null,$o.members_count)))))))})),!Rt.length&&Qa.createElement(Ct.Z,null)))},dn={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",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},On="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiN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=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,trackEventItems:fo,loading:co})=>{const oo=(0,Oe.useIntl)(),Gr=Math.floor((kn-($t-1)*Nn)/$t);return pa.createElement(He.Z,{spinning:co},pa.createElement("div",{className:Te()(dn.list,Ut)},!!Rt.length&&Rt.map((_n,br)=>{const{subject_identifier:lr,id:Da,identifier:No,power:$o}=_n,Wr=_n.is_public!=0&&_n.is_public;return pa.createElement("div",{className:dn.wrap,key:Da,style:{width:Gr,marginRight:(1+br)%$t===0?0:Nn+bo,marginBottom:Ya}},pa.createElement("a",{className:dn.li,onClick:Rl=>{Rl.preventDefault(),fo&&(0,Ye.L9)([fo]),(0,Ye.xg)(_n.first_category_url)}},pa.createElement("div",{className:dn.top},pa.createElement(it.Z,{title:_n.name},pa.createElement("div",{className:dn.name},_n.name)),pa.createElement("img",{className:dn.img,src:Ne.Z.IMG_SERVER+"/images/"+_n.avatar_url}),pa.createElement("div",{className:dn.text,title:_n.creator},_n.creator),lr&&pa.createElement("div",{className:dn.btns},pa.createElement("div",null,oo.formatMessage({id:"paths.openCourse1",defaultMessage:"\u5F00\u653E\u8BFE\u7A0B"})),pa.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Wr&&pa.createElement("div",{className:dn.sign},oo.formatMessage({id:"classrooms.public",defaultMessage:"\u516C\u5F00"}))),pa.createElement("div",{className:dn.bottom},_n.visits>0&&pa.createElement(it.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},pa.createElement("span",null,pa.createElement("i",{className:"iconfont icon-liulanyan"}),pa.createElement("span",null,_n.visits))),_n.course_members_count>0&&pa.createElement(it.Z,{title:oo.formatMessage({id:"classrooms.member",defaultMessage:"\u6210\u5458"}),placement:"bottom"},pa.createElement("span",null,pa.createElement("i",{className:"iconfont icon-chengyuan"}),_n.course_members_count)),_n.tasks_count>0&&pa.createElement(it.Z,{title:oo.formatMessage({id:"paths.homework",defaultMessage:"\u4F5C\u4E1A"}),placement:"bottom"},pa.createElement("span",null,pa.createElement("i",{className:"iconfont icon-zuoye"}),_n.tasks_count)),_n.is_end?pa.createElement("div",{style:{color:"#6B758B"}},oo.formatMessage({id:"classrooms.ended",defaultMessage:"\u5DF2\u7ED3\u675F"})):pa.createElement("div",{style:{color:"#00B187"}},oo.formatMessage({id:"classrooms.inProgress",defaultMessage:"\u8FDB\u884C\u4E2D"})))),!_n.is_accessible&&pa.createElement("div",{className:dn.lockWrap},pa.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),pa.createElement("span",{className:"mt15 font16 c-white"},oo.formatMessage({id:"classrooms.nonClassMembersNotAllowed",defaultMessage:"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165"}))))}),!Rt.length&&pa.createElement(Ct.Z,null)))},ya={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},sr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGx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:bo=0,wrapWidth:kn=1200,wrapClassName:fo,trackEventItems:co,loading:oo})=>{const Gr=Math.floor((kn-($t-1)*Nn)/$t);return b.createElement(He.Z,{spinning:oo},b.createElement("div",{className:Te()(ya.list,Ut)},!!Rt.length&&Rt.map((_n,br)=>{const{subject_identifier:lr,id:Da,identifier:No,power:$o}=_n,Wr=_n.is_public!=0&&_n.is_public;return b.createElement("div",{className:Te()(`${ya.wrap} ${_n.is_accessible?"":ya.warpStyle}`,fo),key:Da,style:{width:Gr,marginRight:(1+br)%$t===0?0:Nn+bo,marginBottom:Ya}},b.createElement("a",{className:ya.li,onClick:Rl=>{Rl.preventDefault(),co&&(0,Ye.L9)([co]),(0,Ye.xg)(_n.first_category_url)}},b.createElement("div",{className:ya.creator},b.createElement("img",{className:ya.img,src:Ne.Z.IMG_SERVER+"/images/"+_n.avatar_url}),b.createElement("div",{className:ya.text,title:_n.creator},_n.creator)),b.createElement("div",{className:ya.top},b.createElement(it.Z,{title:_n.name},b.createElement("div",{className:ya.name},_n.name)),Wr&&b.createElement("div",{className:ya.sign},"\u516C\u5F00")),b.createElement("div",{className:ya.middle},b.createElement("div",{className:ya.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:ya.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:ya.value},(_n==null?void 0:_n.visits)||0)),b.createElement("div",null,b.createElement("span",{className:ya.text},"\u6210\u5458"),b.createElement("span",{className:ya.value},(_n==null?void 0:_n.course_members_count)||0))),b.createElement("div",{className:ya.row},b.createElement("div",null,b.createElement("span",{className:ya.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:ya.value},(_n==null?void 0:_n.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:ya.text},"\u72B6\u6001"),_n.is_end?b.createElement("span",{className:ya.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:ya.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),lr&&b.createElement("div",{className:ya.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!_n.is_accessible&&b.createElement("div",{className:ya.lockWrap},b.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&b.createElement(Ct.Z,null)))},pt={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy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6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",$n=({className:Ut,dataSource:Rt=[],col:$t=4,right:Nn,bottom:Ya=23,precision:bo=0,wrapWidth:kn=1200,wrapClassName:fo,trackEventItems:co,loading:oo})=>{const Gr=Math.floor((kn-($t-1)*Nn)/$t);return b.createElement(He.Z,{spinning:oo},b.createElement("div",{className:Te()(pt.list,Ut)},!!Rt.length&&Rt.map((_n,br)=>{const{subject_identifier:lr,id:Da,identifier:No,power:$o}=_n,Wr=_n.is_public!=0&&_n.is_public;return b.createElement("div",{className:Te()(`${pt.wrap} ${_n.is_accessible?"":pt.warpStyle}`,fo),key:Da,style:{width:Gr,marginRight:(1+br)%$t===0?0:Nn+bo,marginBottom:Ya}},b.createElement("a",{className:pt.li,onClick:Rl=>{Rl.preventDefault(),co&&(0,Ye.L9)([co]),(0,Ye.xg)(_n.first_category_url)}},b.createElement("div",{className:pt.creator},b.createElement("img",{className:pt.img,src:Ne.Z.IMG_SERVER+"/images/"+_n.avatar_url}),b.createElement("div",{className:pt.text,title:_n.creator},_n.creator)),b.createElement("div",{className:pt.top},b.createElement(it.Z,{title:_n.name},b.createElement("div",{className:pt.name},_n.name)),Wr&&b.createElement("div",{className:pt.sign})),b.createElement("div",{className:pt.middle},b.createElement("div",{className:pt.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:pt.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:pt.value},(_n==null?void 0:_n.visits)||0)),b.createElement("div",null,b.createElement("span",{className:pt.text},"\u6210\u5458"),b.createElement("span",{className:pt.value},(_n==null?void 0:_n.course_members_count)||0))),b.createElement("div",{className:pt.row},b.createElement("div",null,b.createElement("span",{className:pt.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:pt.value},(_n==null?void 0:_n.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:pt.text},"\u72B6\u6001"),_n.is_end?b.createElement("span",{className:pt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:pt.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),lr&&b.createElement("div",{className:pt.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!_n.is_accessible&&b.createElement("div",{className:pt.lockWrap},b.createElement("img",{src:`${Ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&b.createElement(Ct.Z,null)))},Kn={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"},Fo=({dataSource:Ut=[],value:Rt,onChange:$t,className:Nn,style:Ya={},tabBarExtraContent:bo})=>b.createElement("div",{className:Te()(Kn.tabs,Nn),style:Ya},b.createElement("div",{className:Kn.tabsWrap},Ut.map((kn,fo)=>b.createElement("aside",{className:Kn.tab,onClick:()=>{$t(kn.id),kn.link&&Oe.history.push(kn.link)},key:fo},b.createElement("div",{className:Rt===kn.id?Kn.active:""},kn.name),(kn==null?void 0:kn.resetCount)==null&&(kn==null?void 0:kn.total)!==void 0&&b.createElement("span",null,"\uFF08",kn==null?void 0:kn.total,"\uFF09"),(kn==null?void 0:kn.resetCount)!==void 0&&(kn==null?void 0:kn.total)!==void 0&&b.createElement(it.Z,{title:(kn==null?void 0:kn.tip)!=null?kn==null?void 0:kn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},kn==null?void 0:kn.resetCount),"/",b.createElement("span",null,kn==null?void 0:kn.total),"\uFF09"))))),b.createElement("div",{className:Kn.tabBar},bo)),Gn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},hl=({dataSource:Ut=[],value:Rt,onChange:$t,className:Nn,style:Ya={},tabBarExtraContent:bo})=>b.createElement("div",{className:Te()(Gn.tabs,Nn),style:Ya},b.createElement("div",{className:Gn.tabsWrap},Ut.map((kn,fo)=>b.createElement("aside",{className:Gn.tab,onClick:()=>{$t(kn.id),kn.link&&Oe.history.push(kn.link)},key:fo},b.createElement("div",{className:Rt===kn.id?Gn.active:""},kn.name),(kn==null?void 0:kn.resetCount)==null&&(kn==null?void 0:kn.total)!==void 0&&b.createElement("span",null,"\uFF08",kn==null?void 0:kn.total,"\uFF09"),(kn==null?void 0:kn.resetCount)!==void 0&&(kn==null?void 0:kn.total)!==void 0&&b.createElement(it.Z,{title:(kn==null?void 0:kn.tip)!=null?kn==null?void 0:kn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},kn==null?void 0:kn.resetCount),"/",b.createElement("span",null,kn==null?void 0:kn.total),"\uFF09"))))),b.createElement("div",{className:Gn.tabBar},bo)),Lr={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},gr=({dataSource:Ut=[],value:Rt,onChange:$t,className:Nn,style:Ya={},tabBarExtraContent:bo})=>b.createElement("div",{className:Te()(Lr.tabs,Nn),style:Ya},b.createElement("div",{className:Lr.tabsWrap},Ut.map((kn,fo)=>b.createElement("aside",{className:`${Lr.tab} ${Rt===kn.id?Lr.active:""}`,onClick:()=>{$t(kn.id),kn.link&&Oe.history.push(kn.link)},key:fo},b.createElement("div",null,kn.name),(kn==null?void 0:kn.resetCount)==null&&(kn==null?void 0:kn.total)!==void 0&&b.createElement("span",null,"\uFF08",kn==null?void 0:kn.total,"\uFF09"),(kn==null?void 0:kn.resetCount)!==void 0&&(kn==null?void 0:kn.total)!==void 0&&b.createElement(it.Z,{title:(kn==null?void 0:kn.tip)!=null?kn==null?void 0:kn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},kn==null?void 0:kn.resetCount),"/",b.createElement("span",null,kn==null?void 0:kn.total),"\uFF09"))))),b.createElement("div",{className:Lr.tabBar},bo)),En=({className:Ut,style:Rt={},children:$t})=>b.createElement("div",{className:Te()(Ut),style:Rt},$t),en={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"},Sn=z(85418),na=z(68508),ia=({sortValue:Ut,dropValue:Rt,className:$t,onSort:Nn,onDrop:Ya,dataSource:bo})=>{var kn;const fo=(0,Oe.useIntl)(),[co,oo]=(0,b.useState)([]),Gr=[{id:"updated_at",name:fo.formatMessage({id:"personalHomepageclassrooms.latestUpdates",defaultMessage:"\u6700\u65B0\u52A8\u6001"})},{id:"created_at",name:fo.formatMessage({id:"common.newestCreated",defaultMessage:"\u6700\u65B0\u521B\u5EFA"})},{id:"name",name:fo.formatMessage({id:"common.sortByName",defaultMessage:"\u540D\u79F0\u6392\u5E8F"})}];return(0,b.useEffect)(()=>{(bo==null?void 0:bo.length)>0?oo(bo):oo(Gr)},[bo]),b.createElement("div",{className:Te()(en.orderWrap,$t)},b.createElement(Sn.Z,{dropdownRender:()=>b.createElement(na.default,null,co.map((_n,br)=>b.createElement(na.default.Item,{key:br,onClick:()=>Ya(_n.id)},_n.name)))},b.createElement("span",{className:en.orderTextWrap},(kn=co.find(_n=>Rt===_n.id))==null?void 0:kn.name)),b.createElement("span",{className:en.orderIconWrap},b.createElement("span",{className:en.orderAsc},b.createElement("i",{className:Ut==="asc"?`iconfont icon-sanjiaoxing-up font12 ${en.cursorPointer} ${en.active}`:`iconfont icon-sanjiaoxing-up font12 ${en.cursorPointer}`,onClick:()=>Nn(Ut==="asc"?"desc":"asc")})),b.createElement("span",{className:en.orderDesc},b.createElement("i",{className:Ut==="desc"?`iconfont icon-sanjiaoxing-down font12 ${en.cursorPointer} ${en.active}`:`iconfont icon-sanjiaoxing-down font12 ${en.cursorPointer}`,onClick:()=>Nn(Ut==="asc"?"desc":"asc")}))))},Kt={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const xa=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Oa=({sortValue:Ut,dropValue:Rt,className:$t,onSort:Nn,onDrop:Ya,dataSource:bo=xa})=>{var kn;return b.createElement("div",{className:Te()(Kt.orderWrap,$t)},b.createElement(Sn.Z,{dropdownRender:()=>b.createElement(na.default,null,bo.map((fo,co)=>b.createElement(na.default.Item,{key:co,onClick:()=>Ya(fo.id)},fo.name)))},b.createElement("span",{className:Kt.orderTextWrap},(kn=bo.find(fo=>Rt===fo.id))==null?void 0:kn.name)),b.createElement("span",{className:Kt.orderIconWrap},b.createElement("span",{className:Kt.orderAsc},b.createElement("i",{className:Ut==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Kt.cursorPointer} ${Kt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Kt.cursorPointer}`,onClick:()=>Nn(Ut==="asc"?"desc":"asc")})),b.createElement("span",{className:Kt.orderDesc},b.createElement("i",{className:Ut==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Kt.cursorPointer} ${Kt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Kt.cursorPointer}`,onClick:()=>Nn(Ut==="asc"?"desc":"asc")}))))},xo={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",ThemeOne:"ThemeOne___iCQio"},an=z(71577),Er=z(52810),kr=Object.defineProperty,El=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,jl=Object.prototype.propertyIsEnumerable,Qn=(Ut,Rt,$t)=>Rt in Ut?kr(Ut,Rt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ut[Rt]=$t,Va=(Ut,Rt)=>{for(var $t in Rt||(Rt={}))Cr.call(Rt,$t)&&Qn(Ut,$t,Rt[$t]);if(El)for(var $t of El(Rt))jl.call(Rt,$t)&&Qn(Ut,$t,Rt[$t]);return Ut},$a=(Ut,Rt)=>{var $t={};for(var Nn in Ut)Cr.call(Ut,Nn)&&Rt.indexOf(Nn)<0&&($t[Nn]=Ut[Nn]);if(Ut!=null&&El)for(var Nn of El(Ut))Rt.indexOf(Nn)<0&&jl.call(Ut,Nn)&&($t[Nn]=Ut[Nn]);return $t},Fa=(Ut,Rt,$t)=>new Promise((Nn,Ya)=>{var bo=co=>{try{fo($t.next(co))}catch(oo){Ya(oo)}},kn=co=>{try{fo($t.throw(co))}catch(oo){Ya(oo)}},fo=co=>co.done?Nn(co.value):Promise.resolve(co.value).then(bo,kn);fo(($t=$t.apply(Ut,Rt)).next())}),jr=Ut=>{var Rt=Ut,{className:$t,style:Nn,children:Ya,loading:bo=!1,openLoading:kn,onClick:fo=()=>{},size:co="middle",shape:oo="round",theme:Gr}=Rt,_n=$a(Rt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[br,lr]=(0,b.useState)(!1),Da=(0,b.useMemo)(()=>{switch(Gr){case Er.Fy.THEMEONE:return xo.ThemeOne;case Er.Fy.DEFAULT:default:return xo.btn}},[Gr]);return b.createElement(an.ZP,Va({onClick:(0,je.throttle)(No=>Fa(void 0,null,function*(){kn&&lr(!0);try{yield fo(No)}catch($o){console.log("error",$o)}kn&&lr(!1)}),2e3,{leading:!0,trailing:!1}),className:Te()(Da,xo[`${co}-${oo}`],$t),style:Nn,size:co,shape:oo,loading:br||bo},_n),Ya)},xl={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"},Ml=({className:Ut,style:Rt,children:$t=null,onClick:Nn,title:Ya})=>{const bo=(0,Oe.useIntl)();return b.createElement("div",{className:Te()(xl.head,Ut),style:Rt},b.createElement("span",{className:"primary-hover",onClick:Nn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),bo.formatMessage({id:"classroomGraphicGroupHomework.return",defaultMessage:"\u8FD4\u56DE"})),b.createElement("b",{title:Ya},Ya),b.createElement("div",{className:xl.node},$t))},ui={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"},Ki=({confirmShow:Ut=!0,confirmTitle:Rt,confirmClick:$t,cancelShow:Nn=!0,cancelTitle:Ya,cancelClick:bo,className:kn,style:fo,confirmLoading:co=!1})=>b.createElement("div",{className:Te()(ui.btns,kn),style:fo},Ut&&b.createElement(an.ZP,{loading:co,onClick:$t,type:"primary",className:ui.confirm},Rt),Nn&&b.createElement(an.ZP,{onClick:bo,className:ui.cancel},Ya)),sl={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"},Jr=({className:Ut,style:Rt={},LeftContent:$t,children:Nn,RightContent:Ya})=>b.createElement("div",{className:Te()(sl.fixedBottom,Ut),style:Rt},b.createElement("div",{className:sl.wrap},b.createElement("div",{className:sl.left},$t),b.createElement("div",{className:sl.center},Nn),b.createElement("div",{className:sl.right},Ya))),Fi={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"},Mi=({className:Ut,style:Rt={},dataSource:$t=[]})=>b.createElement("div",{className:Te()(Fi.crumbs,Ut),style:Rt},$t.map((Nn,Ya)=>Ya<$t.length-1?b.createElement(b.Fragment,{key:Ya},Nn.path||Nn.onClick?b.createElement("span",{className:Fi.hover,onClick:Nn!=null&&Nn.onClick?Nn.onClick:()=>Oe.history.push(Nn.path)},Nn.name):b.createElement("span",null,Nn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Ya,style:{color:"#5F6368"}},Nn.name))),Qi=z(55054),hi=Object.defineProperty,Ui=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,tt=(Ut,Rt,$t)=>Rt in Ut?hi(Ut,Rt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ut[Rt]=$t,bn=(Ut,Rt)=>{for(var $t in Rt||(Rt={}))qt.call(Rt,$t)&&tt(Ut,$t,Rt[$t]);if(kt)for(var $t of kt(Rt))Pn.call(Rt,$t)&&tt(Ut,$t,Rt[$t]);return Ut},ea=(Ut,Rt)=>Ui(Ut,Ir(Rt)),Pa=(Ut,Rt)=>{var $t={};for(var Nn in Ut)qt.call(Ut,Nn)&&Rt.indexOf(Nn)<0&&($t[Nn]=Ut[Nn]);if(Ut!=null&&kt)for(var Nn of kt(Ut))Rt.indexOf(Nn)<0&&Pn.call(Ut,Nn)&&($t[Nn]=Ut[Nn]);return $t};const{Countdown:_t}=Qi.default;var on=Ut=>{var Rt=Ut,{onChange:$t}=Rt,Nn=Pa(Rt,["onChange"]);const[Ya,bo]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Ya=="number"&&Ya>=0&&$t(Ya)},[Ya]);const kn=fo=>{const co=Math.floor(fo/1e3);bo(co)};return b.createElement(_t,ea(bn({},Nn),{onChange:kn}))},va={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},no=({DataProps:Ut,className:Rt,style:$t={}})=>{var Nn;const Ya=(0,Oe.useIntl)();return b.createElement("div",{className:Te()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",va.ClassRoomItem,Rt),style:$t,onClick:()=>{(0,Ye.xg)(Ut==null?void 0:Ut.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(Nn=Ne.Z)==null?void 0:Nn.IMG_SERVER}/images/${Ut==null?void 0:Ut.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Ut==null?void 0:Ut.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},Ya.formatMessage({id:"paths.openCourse1",defaultMessage:"\u5F00\u653E\u8BFE\u7A0B"})),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Ut!=null&&Ut.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},Ya.formatMessage({id:"testPaperBank.public",defaultMessage:"\u516C\u5F00"})),b.createElement("span",{className:Te()("text-16px font-medium",va.TitleDom)},Ut==null?void 0:Ut.name)),b.createElement("div",{className:"c-grey-333 font-medium"},Ut==null?void 0:Ut.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Ut==null?void 0:Ut.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Ut==null?void 0:Ut.tasks_count),Ut!=null&&Ut.is_end?b.createElement("div",{style:{color:"#5F6A95"}},Ya.formatMessage({id:"classrooms.ended",defaultMessage:"\u5DF2\u7ED3\u675F"})):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Zt=Object.defineProperty,vo=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,hn=(Ut,Rt,$t)=>Rt in Ut?Zt(Ut,Rt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ut[Rt]=$t,Rn=(Ut,Rt)=>{for(var $t in Rt||(Rt={}))zo.call(Rt,$t)&&hn(Ut,$t,Rt[$t]);if(vo)for(var $t of vo(Rt))Zo.call(Rt,$t)&&hn(Ut,$t,Rt[$t]);return Ut},Jn=({DataProps:Ut=[],selectValue:Rt,onChange:$t,className:Nn,style:Ya={},extra:bo,classNameItem:kn,styleItem:fo={},barHidden:co})=>{const[oo,Gr]=(0,b.useState)();return(0,b.useEffect)(()=>{Gr(Array.isArray(Rt)?Rt:[Rt])},[Rt]),b.createElement("div",{className:Te()("flex px-20px py-10px gap-40px",Nn),style:Rn({borderBottom:"1px solid #D3F0FF"},Ya)},Ut==null?void 0:Ut.map(_n=>b.createElement("div",{key:_n==null?void 0:_n.id,className:Te()("flex item-center justify-center current c-grey-333 text-16 relative",kn,_n==null?void 0:_n.className),style:Rn(Rn({color:oo!=null&&oo.includes(_n==null?void 0:_n.id)?"#1890FF":"",minWidth:88},fo),(_n==null?void 0:_n.style)||{}),onClick:br=>{$t==null||$t({domEvent:br,item:_n}),_n!=null&&_n.link&&Oe.history.push(_n==null?void 0:_n.link)}},_n==null?void 0:_n.name,!co&&(oo==null?void 0:oo.includes(_n==null?void 0:_n.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},bo))},_a=Object.defineProperty,yo=Object.defineProperties,Yo=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable,ao=(Ut,Rt,$t)=>Rt in Ut?_a(Ut,Rt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ut[Rt]=$t,Wa=(Ut,Rt)=>{for(var $t in Rt||(Rt={}))Ba.call(Rt,$t)&&ao(Ut,$t,Rt[$t]);if(Oo)for(var $t of Oo(Rt))ka.call(Rt,$t)&&ao(Ut,$t,Rt[$t]);return Ut},Ma=(Ut,Rt)=>yo(Ut,Yo(Rt)),Ur=({value:Ut,onChange:Rt,onInputChange:$t,className:Nn,style:Ya={},InputProps:bo})=>{const[kn,fo]=(0,b.useState)(Ut);return b.createElement("div",{className:Te()("flex item-center rounded-full px-10px py-2px",Nn),style:Wa({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ya)},b.createElement(se.default,Ma(Wa({bordered:!1},bo),{onChange:co=>{fo(co.target.value),$t==null||$t(encodeURIComponent(co.target.value))},onPressEnter:co=>{Rt==null||Rt({domEvent:co,item:{value:kn}})}})),b.createElement("img",{className:"h-22px current",src:z(25365),height:22,onClick:co=>{Rt==null||Rt({domEvent:co,item:{value:kn}})}}))}},99914:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return re}});var b=z(67294);function re(Se,Pe){const Ie=(0,b.useRef)();(0,b.useEffect)(()=>{Ie.current=Se}),(0,b.useEffect)(()=>{function Fe(){Ie.current()}if(Pe!==null){let ue=setInterval(Fe,Pe);return()=>clearInterval(ue)}},[Pe])}},99543:function(ut,Ue,z){"use strict";var b=z(67294),re=z(14446),Se=z(33170),Pe=z(35973),Ie=z(67294),Fe=(Te,je,Oe)=>new Promise((Ze,Be)=>{var ce=E=>{try{a(Oe.next(E))}catch(x){Be(x)}},oe=E=>{try{a(Oe.throw(E))}catch(x){Be(x)}},a=E=>E.done?Ze(E.value):Promise.resolve(E.value).then(ce,oe);a((Oe=Oe.apply(Te,je)).next())});const ue=({exercise:Te,dispatch:je,init:Oe,haveInit:Ze=!1})=>{const Be=(0,Pe.useParams)(),[ce,oe]=(0,b.useState)(!1);let[a,E]=(0,b.useState)();const[x,y]=(0,b.useState)(!1),[ee,ne]=(0,b.useState)(!1),ae=(0,Pe.useIntl)();(0,b.useEffect)(()=>{Te.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ie()},[Te.actionTabs]);function ie(){return Fe(this,null,function*(){var le,me;let fe=yield(0,Se.ZP)(`/api/courses/${Be==null?void 0:Be.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:Te.actionTabs.selectArrs}});if(((le=fe==null?void 0:fe.cover_exercises)==null?void 0:le.length)>0)oe(!0),E((me=fe==null?void 0:fe.cover_exercises)==null?void 0:me[0]);else{let pe=yield(0,Se.ZP)(`/api/courses/${Be==null?void 0:Be.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Te.actionTabs.selectArrs}});je({type:"exercise/setActionTabs",payload:{key:""}}),(pe==null?void 0:pe.status)===0&&(Ze&&Oe(),re.default.confirm({title:ae.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,centered:!0,content:ae.formatMessage({id:"classrooms.joinSuccess",defaultMessage:"\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:ae.formatMessage({id:"classrooms.goToPaperLibrary",defaultMessage:"\u524D\u5F80\u8BD5\u5377\u5E93"}),cancelText:ae.formatMessage({id:"classrooms.later",defaultMessage:"\u7A0D\u540E\u518D\u8BF4"}),onOk:()=>{Pe.history.push("/paperlibrary")}}))}})}return Ie.createElement("div",null,Ie.createElement(re.default,{open:ce,centered:!0,onCancel:le=>Fe(void 0,null,function*(){if(le.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){y(!0);let me=yield(0,Se.ZP)(`/api/courses/${Be==null?void 0:Be.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Te.actionTabs.selectArrs,update:1}});je({type:"exercise/setActionTabs",payload:{key:""}}),y(!1),(me==null?void 0:me.status)===0&&(Ze&&Oe(),oe(!1),re.default.confirm({title:ae.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,centered:!0,content:ae.formatMessage({id:"classrooms.joinSuccess",defaultMessage:"\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:ae.formatMessage({id:"classrooms.goToPaperLibrary",defaultMessage:"\u524D\u5F80\u8BD5\u5377\u5E93"}),cancelText:ae.formatMessage({id:"classrooms.later",defaultMessage:"\u7A0D\u540E\u518D\u8BF4"}),onOk:()=>{Pe.history.push("/paperlibrary")}}))}else oe(!1)}),cancelButtonProps:{loading:x},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:ee},onOk:()=>Fe(void 0,null,function*(){ne(!0);let le=yield(0,Se.ZP)(`/api/courses/${Be==null?void 0:Be.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Te.actionTabs.selectArrs}});ne(!1),(le==null?void 0:le.status)===0&&(Ze&&Oe(),je({type:"exercise/setActionTabs",payload:{key:""}}),oe(!1),re.default.confirm({title:ae.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,centered:!0,content:ae.formatMessage({id:"classrooms.joinSuccess",defaultMessage:"\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:ae.formatMessage({id:"classrooms.goToPaperLibrary",defaultMessage:"\u524D\u5F80\u8BD5\u5377\u5E93"}),cancelText:ae.formatMessage({id:"classrooms.later",defaultMessage:"\u7A0D\u540E\u518D\u8BF4"}),onOk:()=>{Pe.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},Ie.createElement("div",null,Ie.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"),Ie.createElement("div",null,Ie.createElement("div",null,"\u8BD5\u5377\uFF1A",a==null?void 0:a.origin_exercise_nam),Ie.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Ie.createElement("a",{href:`/paperlibrary/see/${a==null?void 0:a.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},a==null?void 0:a.examination_bank_name))))))};Ue.Z=(0,Pe.connect)(({exercise:Te})=>({exercise:Te}))(ue)},76223:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return fe}});var b=z(67294),re=z(14446),Se=z(71230),Pe=z(15746),Ie=z(11713),Fe=z(9430),ue=z(71577),Te=z(80150),je=z(33170),Oe={cstuModal:"cstuModal___aIPVR",removeStyle:"removeStyle___wY4gp",bottom:"bottom___a8tK0",yes:"yes___Zhc4z",no:"no___Ngwsa",Onerow:"Onerow___Q59ve",searchMember:"searchMember___Jj460",searchMemberHeader:"searchMemberHeader___SxfUY"},Ze=z(35973),Be=z(96622),ce=z(67294),oe=Object.defineProperty,a=Object.defineProperties,E=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(pe,he,de)=>he in pe?oe(pe,he,{enumerable:!0,configurable:!0,writable:!0,value:de}):pe[he]=de,ae=(pe,he)=>{for(var de in he||(he={}))y.call(he,de)&&ne(pe,de,he[de]);if(x)for(var de of x(he))ee.call(he,de)&&ne(pe,de,he[de]);return pe},ie=(pe,he)=>a(pe,E(he)),le=(pe,he,de)=>new Promise((se,Me)=>{var be=Le=>{try{Ce(de.next(Le))}catch(Ge){Me(Ge)}},De=Le=>{try{Ce(de.throw(Le))}catch(Ge){Me(Ge)}},Ce=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(be,De);Ce((de=de.apply(pe,he)).next())});const me=({visible:pe,setVisible:he,onK:de,selectKeys:se,selectRows:Me,appointStudent:be,modalParams:De,courseId:Ce})=>{const Le=(0,Ze.useIntl)(),Ge=(0,Ze.useParams)(),[qe,Je]=(0,b.useState)(!1),[Re,He]=(0,b.useState)(!1),[it,$e]=(0,b.useState)([]),[Ne,Ye]=(0,b.useState)([]),[Xe,st]=(0,b.useState)([]),[ct,Ct]=(0,b.useState)("all"),[et,Qt]=(0,b.useState)("all");let[un,In]=(0,b.useState)(!0);const[gn,Lt]=(0,b.useState)([{value:"all",label:Le.formatMessage({id:"classrooms.allClasses",defaultMessage:"\u5168\u90E8\u5206\u73ED"})}]),[Ve,nt]=(0,b.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),at={selectedRowKeys:Ne,columnWidth:40,hideSelectAll:!0,onSelect:(It,Fn,Zn)=>{let _e=!0;for(let Pt=0;Pt{if(It&&Zn.length>0){Zn.forEach(_e=>{Ne.push(_e.user_id),Xe.push(_e)}),Ye([...Ne]),st([...Xe]);return}if(!It&&Zn.length>0){let _e=[],Pt=[];const Cn=new Set(Zn),jn=new Set(Ne),gt=new Set(Xe);_e=[...jn].filter(wn=>[...Cn].every(ft=>ft.user_id!==wn)),Pt=[...gt].filter(wn=>[...Cn].every(ft=>ft.user_id!==wn.user_id)),Ye([..._e]),st([...Pt])}}};(0,b.useEffect)(()=>{pe&&se&&(Ye([...se]),st(Me))},[pe,se]),(0,b.useEffect)(()=>{pe&&(!be&&De?Ve.status=De:Ve.status=null,nt(ae({},Ve)),jt())},[pe,be,De]);const rt=[{title:Le.formatMessage({id:"classrooms.serialNumber",defaultMessage:"\u5E8F\u53F7"}),dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(It,Fn,Zn)=>ce.createElement("span",{style:{color:"#333"}},Zn+1)},{title:Le.formatMessage({id:"classrooms.name",defaultMessage:"\u59D3\u540D"}),dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(It,Fn,Zn)=>ce.createElement("span",null,It)},{title:Le.formatMessage({id:"classrooms.studentNumber",defaultMessage:"\u5B66\u53F7"}),dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(It,Fn,Zn)=>ce.createElement("span",{style:{color:"#666"}},It)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(It,Fn)=>ce.createElement("span",null,It)},{title:Le.formatMessage({id:"classrooms.finalGrade",defaultMessage:"\u6700\u7EC8\u6210\u7EE9"}),dataIndex:"score",key:"score",sorter:!0,render:(It,Fn)=>ce.createElement("span",null,It||"--")},{title:Le.formatMessage({id:"classrooms.status",defaultMessage:"\u72B6\u6001"}),dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(It,Fn)=>ce.createElement("span",null,It)}].filter(It=>De===1||De===2?It.title!==Le.formatMessage({id:"classrooms.status",defaultMessage:"\u72B6\u6001"}):!0),jt=()=>le(void 0,null,function*(){var It,Fn,Zn;He(!0);const _e=yield(0,je.ZP)(`/api/exercises/${Ge.categoryId||Ce}/wait_make_up_students.json`,{method:"get",params:ie(ae({},Ve),{keywords:(It=Ve==null?void 0:Ve.keywords)==null?void 0:It.trim()})});if(_e.status===0){const Pt=((Zn=(Fn=_e==null?void 0:_e.data)==null?void 0:Fn.all_course_groups)==null?void 0:Zn.map(Cn=>({value:Cn==null?void 0:Cn.id,label:Cn==null?void 0:Cn.name})))||[];Lt([{value:"all",label:Le.formatMessage({id:"classrooms.allClasses",defaultMessage:"\u5168\u90E8\u5206\u73ED"})},...Pt]),$e(_e.data)}He(!1)}),yt=()=>{Ve.page=1,Ve.status=null,Ve.course_group_id=null,Ve.keywords="",Ct("all"),Qt("all"),Ye([]),st([]),nt(ae({},Ve)),be&&de(Ne==null?void 0:Ne.length,Ne,Xe)},Bn=()=>{Ve.page=1,Ve.status=null,Ve.course_group_id=null,Ve.keywords="",nt(ae({},Ve)),Ct("all"),Qt("all"),Ye([]),st([]),he(!1)};return ce.createElement(re.default,{centered:!0,className:Oe.cstuModal,title:De===1?"\u7F3A\u8003\u5B66\u751F":De===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:pe,width:1200,footer:null,onCancel:()=>{Bn()}},ce.createElement(Se.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},ce.createElement(Se.Z,null,ce.createElement(Pe.Z,null,ce.createElement(Ie.default,{size:"large",value:ct,style:{width:200,marginRight:20},onChange:It=>{Ct(It),It==="all"?Ve.course_group_id=null:Ve.course_group_id=It,Ve.page=1,nt(ae({},Ve)),jt()},options:gn})),be&&ce.createElement(Pe.Z,null,ce.createElement(Ie.default,{size:"large",value:et,style:{width:200},onChange:It=>{Qt(It),It==="all"?Ve.status=null:Ve.status=It,Ve.page=1,nt(ae({},Ve)),jt()},options:[{value:"all",label:Le.formatMessage({id:"classroomUploadVideoResourcesCheckIn.allStatuses",defaultMessage:"\u5168\u90E8\u72B6\u6001"})},{value:"1",label:Le.formatMessage({id:"classrooms.absent",defaultMessage:"\u7F3A\u8003"})},{value:"2",label:Le.formatMessage({id:"classrooms.notPassed1",defaultMessage:"\u672A\u53CA\u683C"})},{value:"3",label:Le.formatMessage({id:"classrooms.pass",defaultMessage:"\u53CA\u683C"})}]}))),ce.createElement(Pe.Z,null,ce.createElement(Te.t7,{style:{width:300,marginLeft:15},value:Ve.keywords,allowClear:!0,onChange:It=>{Ve.keywords=It,Ve.page=1,nt(ae({},Ve)),jt()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),ce.createElement(Se.Z,{align:"middle",className:"mb30"},ce.createElement(Pe.Z,{span:14},ce.createElement("div",{className:"flexd-table-header"},ce.createElement(Fe.default,{pagination:!1,dataSource:[],columns:rt,rowSelection:be?at:null,rowKey:It=>It.user_id})),ce.createElement("div",null,ce.createElement(Fe.default,{rowSelection:be?at:null,columns:rt,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:It=>It.user_id,loading:Re,dataSource:it==null?void 0:it.exercise_users,onChange:(It,Fn,Zn)=>{Ve.page=It==null?void 0:It.current,Ve.limit=It==null?void 0:It.pageSize,Zn!=null&&Zn.order?(Ve.sort_by=Zn==null?void 0:Zn.field,Ve.direction=(Zn==null?void 0:Zn.order)==="ascend"?"asc":"desc"):(Ve.sort_by=null,Ve.direction=null),nt(ae({},Ve)),jt()},pagination:!1}))),ce.createElement(Pe.Z,{span:1},ce.createElement("img",{src:Be,style:{marginLeft:10}})),ce.createElement(Pe.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},ce.createElement("div",{className:Oe.searchMember,style:{width:550}},ce.createElement(Se.Z,{className:Oe.searchMemberHeader},ce.createElement(Pe.Z,{className:"ml30",flex:"100px"},Le.formatMessage({id:"classrooms.name",defaultMessage:"\u59D3\u540D"})),ce.createElement(Pe.Z,{flex:"110px"},Le.formatMessage({id:"classrooms.studentNumber",defaultMessage:"\u5B66\u53F7"})),ce.createElement(Pe.Z,{flex:"120px",style:{marginLeft:5}},Le.formatMessage({id:"classrooms.classDivision",defaultMessage:"\u5206\u73ED"}))),ce.createElement("div",{style:{overflow:"auto",height:390}},Xe==null?void 0:Xe.map((It,Fn)=>ce.createElement(Se.Z,{key:Fn,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},ce.createElement(Pe.Z,{flex:"100px"},It.user_name),ce.createElement(Pe.Z,{flex:"110px"},It.student_id),ce.createElement(Pe.Z,{flex:"120px",style:{marginLeft:5}},It.user_group_name),ce.createElement(Pe.Z,{style:{marginLeft:10}},ce.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{st(Xe.filter(Zn=>Zn.user_id!=It.user_id)),Ye(Ne.filter(Zn=>Zn!=It.user_id))}})))))))),!(De===1||De===2)&&ce.createElement("div",{className:Oe.bottom},ce.createElement(ue.ZP,{className:Oe.no,onClick:()=>{Bn()}},Le.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})),ce.createElement(ue.ZP,{loading:qe,type:"primary",onClick:()=>{yt()}},Le.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}))))};var fe=(0,Ze.connect)(({})=>({}))(me)},77722:function(ut,Ue,z){"use strict";var b=z(67294),re=z(22150),Se=z(2453),Pe=z(14446),Ie=z(57953),Fe=z(71230),ue=z(78045),Te=z(34336),je=z(84567),Oe=z(27484),Ze=z.n(Oe),Be=z(33170),ce=z(28706),oe=z(35973),a=z(14375),E=z(63938),x=Object.defineProperty,y=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,le=(Me,be,De)=>be in Me?x(Me,be,{enumerable:!0,configurable:!0,writable:!0,value:De}):Me[be]=De,me=(Me,be)=>{for(var De in be||(be={}))ae.call(be,De)&&le(Me,De,be[De]);if(ne)for(var De of ne(be))ie.call(be,De)&&le(Me,De,be[De]);return Me},fe=(Me,be)=>y(Me,ee(be)),pe=(Me,be,De)=>new Promise((Ce,Le)=>{var Ge=Re=>{try{Je(De.next(Re))}catch(He){Le(He)}},qe=Re=>{try{Je(De.throw(Re))}catch(He){Le(He)}},Je=Re=>Re.done?Ce(Re.value):Promise.resolve(Re.value).then(Ge,qe);Je((De=De.apply(Me,be)).next())});function he(Me,be){const De=[];for(let Ce=Me;Ce{let be=new Date;const De=Ze()(Me).format("HH");if(Ze()(Me).isSame(Ze()(be),"day")){const Ce=Ze()(be).format("HH"),Le=Ze()(be).format("mm");return{disabledHours:()=>he(0,24).splice(1,Ce*1-1),disabledMinutes:()=>Ze()(Me).isSame(Ze()(be),"hour")&&De<=Ce?he(0,60).splice(0,Le):he(60,60)}}else if(Ze()(Me).isSame(Ze()(),"day")){const Ce=Ze()().format("HH"),Le=Ze()().format("mm");return{disabledHours:()=>he(0,24).splice(0,Ce),disabledMinutes:()=>De<=Ce?he(0,Le):he(60,60)}}else return!1},se=({exercise:Me,dispatch:be})=>{var De;const Ce=(0,oe.useIntl)(),Le=(0,oe.useParams)(),[Ge]=re.default.useForm(),[qe,Je]=(0,b.useState)(1),[Re,He]=(0,b.useState)([]),[it,$e]=(0,b.useState)(!0),[Ne,Ye]=(0,b.useState)([]),[Xe,st]=(0,b.useState)(!0),[ct,Ct]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Me.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&et()},[Me.actionTabs]);const et=In=>pe(void 0,null,function*(){var gn,Lt;$e(!0);const Ve=yield be({type:"exercise/getEndGroups",payload:fe(me({},Le),{check_ids:[...((gn=Me.actionTabs.selectArrs)==null?void 0:gn.map(at=>Number(at)))||[]]})}),nt=(Lt=Ve==null?void 0:Ve.course_info)==null?void 0:Lt.map((at,rt)=>fe(me({},at),{key:at.course_group_id,title:at.course_group_name,name:at.course_group_name,disabled:!!at.is_published}));Ve&&(Ve!=null&&Ve.course_info)&&(He([...nt]),Ge.setFieldsValue({end_time:Ze()(Ze()(new Date((0,ce.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),$e(!1)}),Qt=()=>pe(void 0,null,function*(){var In,gn,Lt,Ve;const nt=me({},Ge.getFieldsValue());if((Ne==null?void 0:Ne.length)<=0&&Re.length>0&&!((In=Me.actionTabs)!=null&&In.unified_setting)){Se.ZP.info(Ce.formatMessage({id:"classrooms.classCannotBeEmpty",defaultMessage:"\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"}));return}Ct(!0);const at={check_ids:[...((gn=Me.actionTabs.selectArrs)==null?void 0:gn.map(jt=>Number(jt)))||[]],group_ids:Ne};Xe||(at.end_time=Ze()(nt.end_time).format("YYYY-MM-DD HH:mm")),at.group_ids=Ne.map(jt=>jt.course_group_id),(yield(0,Be.ZP)(`/api/courses/${Le.coursesId}/exercises/end_exercise.json`,{method:"post",body:at})).status===0&&(Se.ZP.success(Ce.formatMessage({id:"classrooms.operationSuccess",defaultMessage:"\u64CD\u4F5C\u6210\u529F"})),(0,ce.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),be({type:"exercise/setActionTabs",payload:{}}),(Lt=Me==null?void 0:Me.actionTabs)!=null&&Lt.cb?(Ve=Me==null?void 0:Me.actionTabs)==null||Ve.cb():be({type:"classroomList/getClassroomExercisesList",payload:me({},Me.actionTabs.params)})),Ct(!1)}),un=()=>{Je(1),He([]),Ye([]),st(!0)};return b.createElement(Pe.default,{centered:!0,title:Ce.formatMessage({id:"classrooms.endExam",defaultMessage:"\u7ED3\u675F\u8003\u8BD5"}),open:Me.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:Ce.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:Ce.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:Qt,width:680,confirmLoading:ct||it,onCancel:()=>{un(),be({type:"exercise/setActionTabs",payload:{}})}},b.createElement(Ie.Z,{spinning:it},Re&&b.createElement(re.default,{form:Ge},b.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},b.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:a.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),b.createElement(Fe.Z,{className:"mt20 mb10"},b.createElement("span",{className:"mr10"},b.createElement("span",{style:{color:"red",marginRight:3}},"*"),Ce.formatMessage({id:"classrooms.endTime",defaultMessage:"\u7ED3\u675F\u65F6\u95F4"})),b.createElement(ue.ZP.Group,{value:Xe,onChange:In=>{st(In.target.value),Ye([])}},b.createElement(ue.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),b.createElement(ue.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),b.createElement(re.default.Item,{name:"end_time",style:{marginTop:-3,visibility:Xe?"hidden":"visible"}},b.createElement(Te.default,{style:{width:170},placeholder:Ce.formatMessage({id:"classrooms.selectEndTime",defaultMessage:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}),showTime:{format:"HH:mm",defaultValue:Ze()((0,ce.U6)(),"HH:mm")},disabledDate:In=>In&&In0&&!((De=Me.actionTabs)!=null&&De.unified_setting)&&b.createElement(Fe.Z,{style:{marginBottom:"10px"}},b.createElement("span",{className:"mr10"},b.createElement("span",{style:{color:"red",marginRight:3}},"*"),Ce.formatMessage({id:"classrooms.selectClass",defaultMessage:"\u9009\u62E9\u73ED\u7EA7"}),":"),b.createElement("div",null,Re.length>0&&b.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},b.createElement("span",{style:{flex:1}},b.createElement(je.default,{checked:Ne.length===Re.length,onChange:In=>{Ne.length===Re.length?Ye([]):Ye(Re)}},Ce.formatMessage({id:"classroomMemberManagementTAPermissions.selectAll",defaultMessage:"\u5168\u9009"}))," "),b.createElement("span",{style:{width:16}}),b.createElement("span",{style:{flex:1}},Ce.formatMessage({id:"classrooms.selected",defaultMessage:"\u5DF2\u9009\u62E9"}),Ne.length||0,Ce.formatMessage({id:"classrooms.individualClassDivision",defaultMessage:"\u4E2A\u5206\u73ED"}))),b.createElement(E.Z,{data:Re,selectedRowKeys:Ne,setSelectedRowKeys:Ye}))))))};Ue.Z=(0,oe.connect)(({exercise:Me})=>({exercise:Me}))(se)},28400:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return it}});var b=z(67294),re=z(22150),Se=z(2453),Pe=z(14446),Ie=z(57953),Fe=z(71230),ue=z(78045),Te=z(31795),je=z(34336),Oe=z(47897),Ze=z(84567),Be=z(71577),ce=z(27484),oe=z.n(ce),a=z(33170),E=z(28706),x=z(35973),y=z(15835),ee=z(14375),ne=z(63938),ae=z(76223),ie={contentInterval:"contentInterval___wAfD8",numberInput:"numberInput___R9kLf",minorRuleText:"minorRuleText___LjpSg",failedList:"failedList___KYTHd",name:"name___MqNtz",publish:"publish___TPl6Z"},le=z(96332),me=z(93686),fe=z(810),pe=z(67294),he=Object.defineProperty,de=Object.defineProperties,se=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ce=($e,Ne,Ye)=>Ne in $e?he($e,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):$e[Ne]=Ye,Le=($e,Ne)=>{for(var Ye in Ne||(Ne={}))be.call(Ne,Ye)&&Ce($e,Ye,Ne[Ye]);if(Me)for(var Ye of Me(Ne))De.call(Ne,Ye)&&Ce($e,Ye,Ne[Ye]);return $e},Ge=($e,Ne)=>de($e,se(Ne)),qe=($e,Ne,Ye)=>new Promise((Xe,st)=>{var ct=Qt=>{try{et(Ye.next(Qt))}catch(un){st(un)}},Ct=Qt=>{try{et(Ye.throw(Qt))}catch(un){st(un)}},et=Qt=>Qt.done?Xe(Qt.value):Promise.resolve(Qt.value).then(ct,Ct);et((Ye=Ye.apply($e,Ne)).next())});function Je($e,Ne){const Ye=[];for(let Xe=$e;Xe{let Ne=new Date;const Ye=oe()($e).format("HH");if(oe()($e).isSame(oe()(Ne),"day")){const Xe=oe()(Ne).format("HH"),st=oe()(Ne).format("mm");return{disabledHours:()=>Je(0,24).splice(1,Xe*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",Ye,Xe),oe()($e).isSame(oe()(Ne),"hour")&&Ye<=Xe?Je(0,60).splice(0,st):Je(60,60))}}else if(oe()($e).isSame(oe()(),"day")){const Xe=oe()().format("HH"),st=oe()().format("mm");return{disabledHours:()=>Je(0,24).splice(0,Xe),disabledMinutes:()=>Ye<=Xe?Je(0,st):Je(60,60)}}else return!1},He=({exercise:$e,dispatch:Ne})=>{var Ye,Xe,st,ct,Ct,et,Qt,un,In,gn,Lt,Ve,nt,at,rt,jt,yt,Bn,It,Fn,Zn,_e,Pt;const Cn=(0,x.useIntl)(),jn=(0,x.useParams)(),[gt]=re.default.useForm(),[wn,ft]=(0,b.useState)(1),[xt,At]=(0,b.useState)([]),[zt,cn]=(0,b.useState)(!0),[Yt,Aa]=(0,b.useState)([]),[ca,fa]=(0,b.useState)(!0),[Ha,wa]=(0,b.useState)(!1),{workSetting:xn}=$e,[to,ko]=(0,b.useState)(!1),[Qa,jo]=(0,b.useState)([]),[Io,hr]=(0,b.useState)([]),[dn,On]=(0,b.useState)(!1),[pa,Ua]=(0,b.useState)(!1),[oa,ya]=(0,b.useState)(!1),[sr,ul]=(0,b.useState)(null),[Ft,pt]=(0,b.useState)(1),[Et,Mn]=(0,b.useState)({}),[$n,Kn]=(0,b.useState)({}),[or,Fo]=(0,b.useState)(!1),[Gn,Sr]=(0,b.useState)(!1),[hl,Lr]=(0,b.useState)(!1),[ha,gr]=(0,b.useState)([]);(0,b.useEffect)(()=>{if($e.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"){const{selectArrsAll:Kt=[],type:xa}=$e.actionTabs||{},Xn=Kt.filter(Oa=>![100,120,150].includes(Number(Oa.total_score)));Xn.length?(Lr(xa===1?"multiple":"single"),gr(Xn.map(Oa=>Ge(Le({},Oa),{name:Oa.exercise_name})))):Sr(!0)}},[(Ye=$e==null?void 0:$e.actionTabs)==null?void 0:Ye.key]),console.log(hl,"visible"),(0,b.useEffect)(()=>{var Kt;if($e.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(En(),fn(),$e.actionTabs.type===2)){const xa=(Kt=$e.actionTabs)==null?void 0:Kt.unified_setting;fa(xa)}},[$e.actionTabs]),(0,b.useEffect)(()=>{var Kt,xa,Xn,Oa,xo,an,Er;(Kt=xn==null?void 0:xn.exercise)!=null&&Kt.publish_time&>.setFieldsValue({publish_time:oe()((xa=xn==null?void 0:xn.exercise)==null?void 0:xa.publish_time)}),(Xn=xn==null?void 0:xn.exercise)!=null&&Xn.end_time&>.setFieldsValue({end_time:oe()((Oa=xn==null?void 0:xn.exercise)==null?void 0:Oa.end_time)}),gt.setFieldsValue({exercise_type:(xo=xn==null?void 0:xn.exercise)==null?void 0:xo.exercise_type,simulate_exercise_num:(an=xn==null?void 0:xn.exercise)==null?void 0:an.simulate_exercise_num}),pt((Er=xn==null?void 0:xn.exercise)==null?void 0:Er.exercise_type)},[$e]);const Nt=Kt=>{var xa;const Xn=gt.getFieldValue("publish_time");if(!Xn||(xa=xn==null?void 0:xn.exercise)!=null&&xa.publish_time)return;let Oa;Kt===1?Oa=oe()(Xn).add(120,"minutes"):Oa=oe()(Xn).add(7,"days"),gt.setFieldsValue({end_time:Oa})},En=Kt=>qe(void 0,null,function*(){var xa,Xn;cn(!0);const Oa=yield(0,y.N3)({coursesId:jn.coursesId,check_ids:[...((xa=$e.actionTabs.selectArrs)==null?void 0:xa.map(an=>Number(an)))||[]]});console.log(Oa,"res");const xo=((Xn=Oa==null?void 0:Oa.course_info)==null?void 0:Xn.map((an,Er)=>Ge(Le({},an),{key:an.course_group_id,title:an.course_group_name,name:an.course_group_name,disabled:!!an.is_published})))||[];if((Oa==null?void 0:Oa.status)!==-1){At([...xo]);const an=oe()();gt.setFieldsValue({publish_time:an}),(gt.getFieldValue("exercise_type")||1)===1?gt.setFieldsValue({end_time:oe()(an).add(120,"minutes")}):gt.setFieldsValue({end_time:oe()(an).add(7,"days")})}cn(!1)});(0,b.useEffect)(()=>{var Kt,xa,Xn,Oa,xo,an;if((Kt=xn==null?void 0:xn.exercise)!=null&&Kt.is_appoint_user){const Er=((Xn=(xa=xn==null?void 0:xn.exercise)==null?void 0:xa.all_exercise_users)==null?void 0:Xn.map(kr=>kr.user_id))||[];jo([...Er])}On((Oa=xn==null?void 0:xn.exercise)==null?void 0:Oa.is_appoint_user),Ua((xo=xn==null?void 0:xn.exercise)==null?void 0:xo.is_miss_exam_user),ya((an=xn==null?void 0:xn.exercise)==null?void 0:an.is_no_passing_user)},[xn]),(0,b.useEffect)(()=>{var Kt,xa,Xn,Oa,xo,an,Er,kr;(xa=(Kt=$e==null?void 0:$e.actionTabs)==null?void 0:Kt.selectArrs)!=null&&xa[0]&&$e.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&Ne({type:"exercise/getWorkSetting",payload:{categoryId:(Oa=(Xn=$e==null?void 0:$e.actionTabs)==null?void 0:Xn.selectArrs)==null?void 0:Oa[0],category:(an=(xo=$e==null?void 0:$e.actionTabs)==null?void 0:xo.selectArrs)==null?void 0:an[0],coursesId:(kr=(Er=$e==null?void 0:$e.actionTabs)==null?void 0:Er.params)==null?void 0:kr.id}})},[(Xe=$e==null?void 0:$e.actionTabs)==null?void 0:Xe.selectArrs]);const en=()=>qe(void 0,null,function*(){var Kt,xa,Xn,Oa,xo,an,Er;const kr=Le({},gt.getFieldsValue()),El=oe()(oe()(kr.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),Cr=oe()(oe()(kr.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(El,El,33),Cr<=El){Se.ZP.info(Cn.formatMessage({id:"classrooms.endTimeAfterStart",defaultMessage:"\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4"}));return}if((Yt==null?void 0:Yt.length)<=0&&!ca&&xt.length>0&&!((Kt=xn==null?void 0:xn.exercise)!=null&&Kt.is_make_up_exercise)){Se.ZP.info(Cn.formatMessage({id:"classrooms.classCannotBeEmpty",defaultMessage:"\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"}));return}const jl=xt.map(sl=>sl.key),Qn={check_ids:[...((xa=$e.actionTabs.selectArrs)==null?void 0:xa.map(sl=>Number(sl)))||[]],end_time:oe()(kr.end_time).format("YYYY-MM-DD HH:mm"),publish_time:oe()(kr.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:Yt.map(sl=>sl.course_group_id),unified_setting:!Yt.length,exercise_type:kr.exercise_type,simulate_exercise_num:kr.simulate_exercise_num};if(((Xn=$e.actionTabs.selectArrsAll)==null?void 0:Xn.length)>0&&$e.actionTabs.type===1&&(Qn.check_ids=[...((xo=(Oa=$e.actionTabs.selectArrsAll)==null?void 0:Oa.filter(sl=>!sl.high_resources_consume||sl.high_resources_consume_permission))==null?void 0:xo.map(sl=>Number(sl==null?void 0:sl.id)))||[]]),(an=xn==null?void 0:xn.exercise)!=null&&an.is_make_up_exercise){if(dn&&Qa.length<=0||!dn&&!(pa||oa)){Se.ZP.error(Cn.formatMessage({id:"classrooms.selectMakeupStudent",defaultMessage:"\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"}));return}Qn.is_appoint_user=dn,Qn.is_miss_exam_user=pa,Qn.is_no_passing_user=oa,dn?Qn.make_up_exercise_users=Qa.map(sl=>({user_id:sl})):Qn.make_up_exercise_user=[]}let{is_locked:Va,open_camera:$a,screen_open:Fa,login_restrict:Wo,ip_bind:jr,ip_limit:xl,is_random:wl,id:Ml,identity_verify:ui,open_phone_video_recording:di}=xn==null?void 0:xn.exercise;if($e.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(Va||$a||Fa||Wo||jr||xl=="pub"||xl=="inner"||ui||di)&&kr.exercise_type==2){if(Sr(!1),Ne({type:"exercise/setActionTabs",payload:{}}),$e.actionTabs.type==2){let sl=Pe.default.confirm({width:666,centered:!0,okText:Cn.formatMessage({id:"classrooms.adjustImmediately",defaultMessage:"\u7ACB\u5373\u8C03\u6574"}),cancelText:Cn.formatMessage({id:"shixuns.noNeed",defaultMessage:"\u4E0D\u9700\u8981"}),title:Cn.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,content:pe.createElement("div",null,Cn.formatMessage({id:"classrooms.currentExamMode",defaultMessage:"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F"}),pe.createElement("span",{style:{color:"#FA6400"}}," ",(0,E.hi)(xn==null?void 0:xn.exercise)," "),Cn.formatMessage({id:"classrooms.antiCheatingRules",defaultMessage:"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"})),onOk:()=>qe(void 0,null,function*(){var Gl;Fo(!0);let Jr=yield(0,me.Tr)({exercise_ids:[...((Gl=$e.actionTabs.selectArrs)==null?void 0:Gl.map(Fi=>Number(Fi)))||[]],course_id:jn.coursesId,type:"exercise"});if((Jr==null?void 0:Jr.student_count)===0){if((yield na(Qn))&&$e.actionTabs.isRouter){sl.destroy(),x.history.push(`/classrooms/${jn.coursesId}/exercise/${Ml}/detail?random=${wl}&tabs=3&childrenTabs=2`);return}Ne({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Kn(Qn),Mn(Jr)}),onCancel:()=>{sl.destroy(),Fo(!1),na(Qn)}})}else{let sl=Pe.default.info({width:580,centered:!0,okText:Cn.formatMessage({id:"user.gotIt",defaultMessage:"\u6211\u77E5\u9053\u4E86"}),title:Cn.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,content:pe.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>qe(void 0,null,function*(){var Gl;Fo(!0);let Jr=yield(0,me.Tr)({exercise_ids:[...((Gl=$e.actionTabs.selectArrs)==null?void 0:Gl.map(Fi=>Number(Fi)))||[]],course_id:jn.coursesId,type:"exercise"});if((Jr==null?void 0:Jr.student_count)===0){if((yield na(Qn))&&$e.actionTabs.isRouter){x.history.push(`/classrooms/${jn.coursesId}/exercise/${Ml}/detail?random=${wl}&tabs=3&childrenTabs=2`);return}Ne({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else Kn(Qn),Mn(Jr)})})}return}let Ki=yield(0,me.Tr)({exercise_ids:[...((Er=$e.actionTabs.selectArrs)==null?void 0:Er.map(sl=>Number(sl)))||[]],course_id:jn.coursesId,type:"exercise"});(Ki==null?void 0:Ki.student_count)===0?na(Qn):(Kn(Qn),Mn(Ki))}),Sn=()=>{var Kt;let xa=[...(Kt=$e.actionTabs.selectArrsAll)==null?void 0:Kt.filter(Xn=>Xn.high_resources_consume&&!Xn.high_resources_consume_permission)];(xa==null?void 0:xa.length)>0&&$e.actionTabs.type===1&&Pe.default.confirm({centered:!0,icon:null,footer:null,width:560,title:Cn.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),closable:!0,content:pe.createElement("div",null,pe.createElement("div",{className:ie.tipcontent},pe.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",xa==null?void 0:xa.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),pe.createElement("div",{className:"mt20 mb20"},xa==null?void 0:xa.map(Xn=>pe.createElement("div",{className:ie.failedList,key:Xn.id},pe.createElement("div",{className:ie.name},Xn==null?void 0:Xn.exercise_name),pe.createElement("div",{className:ie.publish,onClick:()=>{(0,E.xg)(`/classrooms/${jn.coursesId}/exercise/${Xn.id}/detail?random=${Xn.is_random}`)}},Cn.formatMessage({id:"classrooms.publish",defaultMessage:"\u53D1\u5E03"})))))))})},na=Kt=>qe(void 0,null,function*(){var xa,Xn,Oa;if($e.actionTabs.type===1){let Er=[...(xa=$e.actionTabs.selectArrsAll)==null?void 0:xa.filter(kr=>kr.high_resources_consume&&!kr.high_resources_consume_permission)];if((Er==null?void 0:Er.length)==$e.actionTabs.selectArrsAll.length){Sr(!1),Ne({type:"exercise/setActionTabs",payload:{}}),Sn();return}}let xo=!1;return wa(!0),(yield(0,a.ZP)(`/api/courses/${jn.coursesId}/exercises/publish.json`,{method:"post",body:Kt})).status===0&&((0,E.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),fn(),Se.ZP.success(Cn.formatMessage({id:"classrooms.publishSuccess",defaultMessage:"\u53D1\u5E03\u6210\u529F"})),Sr(!1),Ne({type:"exercise/setActionTabs",payload:{}}),(Xn=$e==null?void 0:$e.actionTabs)!=null&&Xn.cb?(Oa=$e==null?void 0:$e.actionTabs)==null||Oa.cb():Ne({type:"classroomList/getClassroomExercisesList",payload:Le({},$e.actionTabs.params)}),xo=!0,$e.actionTabs.type===1&&Sn()),wa(!1),xo}),fn=()=>{ft(1),At([]),Aa([])},ia=(Kt,xa,Xn)=>{Kt<=0?Se.ZP.info(Cn.formatMessage({id:"classrooms.selectMakeupStudent",defaultMessage:"\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"})):(jo(xa),hr(Xn),ko(!1))};return pe.createElement(b.Fragment,null,pe.createElement(Pe.default,{centered:!0,title:Cn.formatMessage({id:"classrooms.publishExam",defaultMessage:"\u53D1\u5E03\u8003\u8BD5"}),open:Gn,okText:Cn.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:Cn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),width:660,onOk:en,confirmLoading:Ha||zt,onCancel:()=>{fn(),Sr(!1),Ne({type:"exercise/setActionTabs",payload:{}})}},pe.createElement(Ie.Z,{spinning:zt},xt&&pe.createElement(re.default,{form:gt},!!((st=$e==null?void 0:$e.actionTabs)!=null&&st.disabled)&&pe.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},pe.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:ee.Z}),Cn.formatMessage({id:"classrooms.examModeTip",defaultMessage:"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"})),!((ct=xn==null?void 0:xn.exercise)!=null&&ct.is_make_up_exercise)&&pe.createElement(pe.Fragment,null,pe.createElement(Fe.Z,null,pe.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},pe.createElement("span",{style:{color:"red",marginRight:3}},"*"),Cn.formatMessage({id:"classrooms.examMode",defaultMessage:"\u8003\u8BD5\u6A21\u5F0F"})),pe.createElement(re.default.Item,{name:"exercise_type"},pe.createElement(ue.ZP.Group,{disabled:((Ct=xn==null?void 0:xn.exercise)==null?void 0:Ct.exercise_status)>1,onChange:Kt=>{pt(Kt.target.value),Nt(Kt.target.value)}},pe.createElement(ue.ZP,{value:1},Cn.formatMessage({id:"classrooms.officialExam",defaultMessage:"\u6B63\u5F0F\u8003\u8BD5"})),pe.createElement(ue.ZP,{value:2},Cn.formatMessage({id:"classrooms.practiceExam",defaultMessage:"\u6A21\u62DF\u8003\u8BD5"}))))),Ft==2&&pe.createElement(Fe.Z,{className:`${ie.contentInterval}`},pe.createElement("span",{className:`${ie.minorRuleText}`,style:{marginLeft:50}},Cn.formatMessage({id:"classrooms.examAttemptsPerStudent",defaultMessage:"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"})),pe.createElement(re.default.Item,{name:"simulate_exercise_num"},pe.createElement(Te.Z,{className:ie.numberInput,style:{width:145},precision:0,size:"middle",disabled:((et=xn==null?void 0:xn.exercise)==null?void 0:et.exercise_status)>1,min:1,max:999})),pe.createElement("span",null,Cn.formatMessage({id:"common.times",defaultMessage:"\u6B21"}),pe.createElement("span",{style:{color:"#999999"}},Cn.formatMessage({id:"classrooms.attemptsSettings",defaultMessage:"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09"}))))),pe.createElement(Fe.Z,null,pe.createElement("span",{className:"mr10 mt5"},pe.createElement("span",{style:{color:"red",marginRight:3}},"*"),Cn.formatMessage({id:"classrooms.examTime",defaultMessage:"\u8003\u8BD5\u65F6\u95F4"})),pe.createElement(re.default.Item,{name:"publish_time"},pe.createElement(je.default,{style:{width:170},disabledDate:Kt=>Kt&&Kt<=oe()().subtract(0,"days"),disabledTime:Re,placeholder:Cn.formatMessage({id:"classroomClassroomExperiments.pleaseSelectPublishTime",defaultMessage:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"}),showTime:{format:"HH:mm",defaultValue:oe()((0,E.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),pe.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),pe.createElement(re.default.Item,{name:"end_time"},pe.createElement(je.default,{style:{width:170},placeholder:Cn.formatMessage({id:"classrooms.selectEndTime",defaultMessage:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}),showTime:{format:"HH:mm",defaultValue:oe()((0,E.U6)(),"HH:mm")},disabledDate:Kt=>Kt&&Kt{var Xn,Oa,xo,an,Er;if(On(Kt),Kt)if((Xn=xn==null?void 0:xn.exercise)!=null&&Xn.is_appoint_user){const kr=(xo=(Oa=xn==null?void 0:xn.exercise)==null?void 0:Oa.all_exercise_users)==null?void 0:xo.map(El=>El.user_id);jo([...kr])}else jo([]),Ua(!1),ya(!1);else Ua((an=xn==null?void 0:xn.exercise)==null?void 0:an.is_miss_exam_user),ya((Er=xn==null?void 0:xn.exercise)==null?void 0:Er.is_no_passing_user)},disabled:((un=xn==null?void 0:xn.exercise)==null?void 0:un.exercise_status)!==1}),pe.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},Cn.formatMessage({id:"classrooms.designateStudents",defaultMessage:"\u6307\u5B9A\u5B66\u751F"}))),!dn&&pe.createElement(Fe.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},pe.createElement(Ze.default,{checked:pa,disabled:((In=xn==null?void 0:xn.exercise)==null?void 0:In.exercise_status)!==1||((gn=xn==null?void 0:xn.exercise)==null?void 0:gn.miss_exam_count)<=0,onChange:Kt=>{Ua(Kt.target.checked)}},pe.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),pe.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{ul(1),On(!1),ko(!0)}},"\uFF08",`${(Lt=xn==null?void 0:xn.exercise)==null?void 0:Lt.miss_exam_count}${Cn.formatMessage({id:"classrooms.people",defaultMessage:"\u4EBA"})}`,"\uFF09"),pe.createElement(Ze.default,{checked:oa,disabled:((Ve=xn==null?void 0:xn.exercise)==null?void 0:Ve.exercise_status)!==1||((nt=xn==null?void 0:xn.exercise)==null?void 0:nt.no_passing_count)<=0,onChange:Kt=>{ya(Kt.target.checked)}},pe.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),pe.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{ul(2),On(!1),ko(!0)}},"\uFF08",`${(at=xn==null?void 0:xn.exercise)==null?void 0:at.no_passing_count}${Cn.formatMessage({id:"classrooms.people",defaultMessage:"\u4EBA"})}`,"\uFF09")),dn&&pe.createElement(Fe.Z,{className:"mt20",style:{paddingLeft:"90px"}},pe.createElement(Be.ZP,{type:"primary",ghost:!0,disabled:((rt=xn==null?void 0:xn.exercise)==null?void 0:rt.exercise_status)!==1,onClick:()=>{ko(!0),ul(void 0)}},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),pe.createElement("span",null,Cn.formatMessage({id:"classrooms.selectStudents",defaultMessage:"\u9009\u62E9\u5B66\u751F"}))),pe.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08",Cn.formatMessage({id:"classroomClassroomExperiments.selected",defaultMessage:"\u5DF2\u9009"})," ",`${Qa.length||0} \u4EBA`,"\uFF09"))),$e.actionTabs.type===2&&!((jt=xn==null?void 0:xn.exercise)!=null&&jt.is_make_up_exercise)&&pe.createElement(Fe.Z,{style:{marginBottom:"10px"}},pe.createElement("span",{className:"mr10"},pe.createElement("span",{style:{color:"red",marginRight:3}},"*"),Cn.formatMessage({id:"classrooms.selectClass",defaultMessage:"\u9009\u62E9\u73ED\u7EA7"})),pe.createElement(ue.ZP.Group,{value:ca,onChange:Kt=>{fa(Kt.target.value),Aa([])}},pe.createElement(ue.ZP,{disabled:!!((yt=$e==null?void 0:$e.actionTabs)!=null&&yt.disabled)||xt.some(Kt=>Kt==null?void 0:Kt.is_published)||!((Bn=$e==null?void 0:$e.actionTabs)!=null&&Bn.manage_all_group),value:!0},Cn.formatMessage({id:"classrooms.unifiedPublish",defaultMessage:"\u7EDF\u4E00\u53D1\u5E03"})),pe.createElement(ue.ZP,{disabled:xt.length<=0,value:!1},Cn.formatMessage({id:"classroomClassroomExperiments.classBasedPublish",defaultMessage:"\u5206\u73ED\u53D1\u5E03"})))),xt.length<=0&&$e.actionTabs.type===2&&!((It=xn==null?void 0:xn.exercise)!=null&&It.is_make_up_exercise)&&pe.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},Cn.formatMessage({id:"classrooms.classNoGrouping",defaultMessage:"\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201D"})),($e.actionTabs.type===1||!ca)&&!((Fn=xn==null?void 0:xn.exercise)!=null&&Fn.is_make_up_exercise)&&xt.length>0&&pe.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},pe.createElement("span",{style:{flex:1}},pe.createElement(Ze.default,{checked:Yt.length===xt.length,onChange:Kt=>{Yt.length===xt.length?Aa([]):Aa(xt)}},Cn.formatMessage({id:"classroomMemberManagementTAPermissions.selectAll",defaultMessage:"\u5168\u9009"}))),pe.createElement("span",{style:{width:16}}),pe.createElement("span",{style:{flex:1}},Cn.formatMessage({id:"classrooms.selected",defaultMessage:"\u5DF2\u9009\u62E9"}),Yt.length||0,Cn.formatMessage({id:"classrooms.individualClassDivision",defaultMessage:"\u4E2A\u5206\u73ED"}))),($e.actionTabs.type===1||!ca)&&!((Zn=xn==null?void 0:xn.exercise)!=null&&Zn.is_make_up_exercise)&&xt.length>0&&pe.createElement(ne.Z,{data:xt,selectedRowKeys:Yt,setSelectedRowKeys:Aa})),pe.createElement(ae.Z,{visible:to,setVisible:ko,onK:ia,selectKeys:Qa,selectRows:Io,appointStudent:dn,modalParams:sr,courseId:jn.categoryId||((Pt=(_e=$e==null?void 0:$e.actionTabs)==null?void 0:_e.selectArrs)==null?void 0:Pt[0])})),pe.createElement(le.Z,{resdata:Et,type:"exercisepush",okloading:Ha,oktext:(Et==null?void 0:Et.can_copy_num)===0?Cn.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}):Cn.formatMessage({id:"classrooms.oneClickCopy",defaultMessage:"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362"}),onok:Kt=>qe(void 0,null,function*(){var xa,Xn,Oa;wa(!0);let xo=yield(0,a.ZP)(`/api/courses/${jn.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((xa=$e.actionTabs.selectArrs)==null?void 0:xa.map(an=>Number(an)))||[]]}});if(wa(!1),(xo==null?void 0:xo.status)===0)if(or){let an=yield na($n);if(Pe.default.destroyAll(),an&&$e.actionTabs.isRouter){x.history.push(`/classrooms/${jn.coursesId}/exercise/${(Xn=xn==null?void 0:xn.exercise)==null?void 0:Xn.id}/detail?random=${(Oa=xn==null?void 0:xn.exercise)==null?void 0:Oa.is_random}&tabs=3&childrenTabs=2`);return}Ne({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else na($n)})})),pe.createElement(fe.Z,{text:Cn.formatMessage({id:"paperlibrary.confirmContinuePublishing",defaultMessage:"\u662F\u5426\u7EE7\u7EED\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u53D1\u5E03\uFF1F"}),okText:Cn.formatMessage({id:"paperlibrary.confirmPublish",defaultMessage:"\u786E\u8BA4\u53D1\u5E03"}),visible:hl,dataSource:ha,onSuccess:()=>{Lr(!1),Sr(!0)},onClose:()=>{Lr(!1),fn(),Ne({type:"exercise/setActionTabs",payload:{}})}}))};var it=(0,x.connect)(({exercise:$e})=>({exercise:$e}))(He)},63938:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Ze}});var b=z(67294),re=z(69677),Se=z(84567),Pe=z(71230),Ie={leftdiv:"leftdiv___iuhY9",listClass:"listClass___o5N53",spantitle:"spantitle___KVMSL",rightdiv:"rightdiv___f2zZr"},Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ue=z(26194),Te=z(35973),je=(Be,ce,oe)=>new Promise((a,E)=>{var x=ne=>{try{ee(oe.next(ne))}catch(ae){E(ae)}},y=ne=>{try{ee(oe.throw(ne))}catch(ae){E(ae)}},ee=ne=>ne.done?a(ne.value):Promise.resolve(ne.value).then(x,y);ee((oe=oe.apply(Be,ce)).next())}),Ze=({data:Be,value:ce=[],handleChangePage:oe,setSelectedRowKeys:a,selectedRowKeys:E,onChange:x=()=>{}})=>{const y=(0,Te.useIntl)(),[ee,ne]=(0,b.useState)([]),[ae,ie]=(0,b.useState)([]),[le,me]=(0,b.useState)([]);let[fe,pe]=(0,b.useState)(1),[he,de]=(0,b.useState)();return(0,b.useEffect)(()=>{ne(Be),ie([]),me([])},[Be]),(0,b.useEffect)(()=>{a&&(ie(E),me(E))},[E]),b.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},b.createElement("div",{className:Ie.leftdiv},b.createElement(re.default.Search,{size:"middle",onChange:se=>je(void 0,null,function*(){ne(Be.filter(Me=>{var be;return(be=Me==null?void 0:Me.name)==null?void 0:be.includes(se.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ee.length===0&&b.createElement(ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),b.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},b.createElement(Se.default.Group,{value:ae.map(se=>`${se.course_group_id}`),onChange:se=>{a(ee.filter(Me=>se.includes(`${Me.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ee.map((se,Me)=>b.createElement(Pe.Z,{key:se.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},b.createElement(Se.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:se.is_published,value:`${se.course_group_id}`},b.createElement("div",{className:Ie.listClass},b.createElement("span",{className:Ie.spantitle,style:{width:se.is_published?"108px":"170px"}},se.name),se.is_published&&b.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},y.formatMessage({id:"classroomUploadVideoResourcesCheckIn.published",defaultMessage:"\u5DF2\u53D1\u5E03"}))))))))),b.createElement("div",{className:Ie.rightdiv},b.createElement(re.default.Search,{onChange:se=>{me(ae.filter(Me=>Me.name.includes(se.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),le.length===0&&b.createElement(ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),le.length>0&&b.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},b.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},le.map((se,Me)=>b.createElement(Pe.Z,{justify:"space-between",style:{marginTop:"10px"},key:se.course_group_id},b.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},se.name),b.createElement("img",{src:Fe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{a(ae.filter(be=>`${be.course_group_name}`!=`${se.course_group_name}`))}})))))))}},97917:function(ut,Ue,z){"use strict";var b=z(67294),re=z(55054),Se=z(31795),Pe=z(22150),Ie=z(14446),Fe=z(57953),ue=z(9430),Te=z(69677),je=z(71230),Oe=z(15746),Ze=z(71577),Be=z(15835),ce=z(27484),oe=z.n(ce),a=z(35973),E=z(28706),x=z(53814),y=z(52262),ee=z(9343),ne=z(67294),ae=(fe,pe,he)=>new Promise((de,se)=>{var Me=Ce=>{try{De(he.next(Ce))}catch(Le){se(Le)}},be=Ce=>{try{De(he.throw(Ce))}catch(Le){se(Le)}},De=Ce=>Ce.done?de(Ce.value):Promise.resolve(Ce.value).then(Me,be);De((he=he.apply(fe,pe)).next())});const{Countdown:ie}=re.default,le=({value:fe,onChange:pe,MaxMinutes:he})=>{const de=(0,a.useIntl)();return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",ne.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",ne.createElement("br",null)),ne.createElement(Se.Z,{value:fe,onChange:pe,min:0,precision:0,max:he,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${he} ${de.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:de.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}))},me=({exercise:fe,successCb:pe,dispatch:he})=>{var de,se,Me,be;const De=(0,a.useIntl)(),Ce=(0,a.useParams)(),[Le]=Pe.default.useForm(),Ge=Pe.default.useWatch("time",Le),[qe,Je]=(0,b.useState)(!1),Re=(0,b.useRef)(),{actionTabs:He}=fe,[it,$e]=(0,b.useState)(),[,Ne,Ye,Xe]=(0,ee.U)(Be.n7,{id:Ce.categoryId}),[,st,ct]=(0,ee.U)(Be.Cd,{});(0,b.useEffect)(()=>{fe.actionTabs.key==="student-unlock"&&(Je(!1),Le.resetFields())},[fe.actionTabs.key]);const Ct=()=>new Promise(at=>ae(void 0,null,function*(){var rt,jt;return Re.current=yield(0,x.y)({ip_limit:(rt=He==null?void 0:He.exerciseParams)==null?void 0:rt.ip_limit,ip_bind:(jt=He==null?void 0:He.exerciseParams)==null?void 0:jt.ip_bind_type}),at()})),et=()=>ae(void 0,null,function*(){var at,rt,jt,yt,Bn;yield Le.validateFields();const It=Le.getFieldsValue();if(Je(!0),(((at=He==null?void 0:He.exerciseParams)==null?void 0:at.ip_limit)!=="no"||(rt=He==null?void 0:He.exerciseParams)!=null&&rt.ip_bind_type)&&(yield Ct()),(yield(0,Be.ZD)((jt=He==null?void 0:He.exerciseParams)==null?void 0:jt.id,{exercise_user_id:(yt=He==null?void 0:He.exerciseParams)==null?void 0:yt.exercise_user_id,unlock_key:It.unlock_key,time:It.time,ip:Re.current})).status===0){if(pe){he({type:"exercise/setActionTabs",payload:{}}),pe();return}const Zn=He==null?void 0:He.exerciseParams;(0,E.nr)({inner_ip:Zn.inner_ip,public_ip:Zn.public_ip,open_camera:Zn.open_camera,ip_limit:Zn.ip_limit,ip_bind:Zn.ip_bind,ip_bind_type:Zn.ip_bind_type,exercise_tips:Zn.exercise_tips,exerciseId:Zn.id,screen_open:Zn.screen_open,screen_num:Zn.screen_num,screen_sec:Zn.screen_sec,coursesId:Ce.coursesId,login:(Bn=(0,y.eY)())==null?void 0:Bn.login,history,identity_verify:Zn.identity_verify,open_phone_video_recording:Zn.open_phone_video_recording,current_status:Zn.current_status}),he({type:"exercise/setActionTabs",payload:{}})}Je(!1)}),Qt=[{title:De.formatMessage({id:"classrooms.ipAddress",defaultMessage:"IP\u5730\u5740"}),dataIndex:"ip",key:"ip",render:at=>ne.createElement("span",{className:at.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},at)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:at=>ne.createElement("span",{className:at.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},at)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],un=((de=He==null?void 0:He.exerciseParams)==null?void 0:de.errorMessage)&&typeof((se=He==null?void 0:He.exerciseParams)==null?void 0:se.errorMessage)=="object";(0,b.useEffect)(()=>{fe.actionTabs.key==="student-unlock"&&ae(void 0,null,function*(){const at=yield ct(Ce);yield Ye({}),at.status||$e(at)})},[fe.actionTabs.key]);const{time:In,end_time:gn}=(it==null?void 0:it.exercise)||{},Lt=Xe!=null&&Xe.user_end_time?oe()(Xe==null?void 0:Xe.user_end_time).add(1,"minutes"):oe()(),Ve=oe()(Xe==null?void 0:Xe.user_total_end_time)>Lt?Math.round(oe().duration(oe()(Xe==null?void 0:Xe.user_total_end_time).diff(Lt.startOf("minute"))).asMinutes()):0,nt=((Xe==null?void 0:Xe.student_left_minutes)||0)+(Ge||0);return ne.createElement(ne.Fragment,null,ne.createElement(Ie.default,{width:514,centered:!0,closable:!!((Me=He==null?void 0:He.exerciseParams)!=null&&Me.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:De.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:fe.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{he({type:"exercise/setActionTabs",payload:{}})}},ne.createElement(Fe.Z,{spinning:Ne||st},un&&ne.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!un&&ne.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),un&&ne.createElement(ue.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((be=He==null?void 0:He.exerciseParams)==null?void 0:be.errorMessage)||{}],columns:Qt}),ne.createElement("div",{className:""},ne.createElement(Pe.default,{form:Le,layout:"vertical",autoComplete:"off"},ne.createElement(Pe.default.Item,{label:De.formatMessage({id:"classroomExams.examUnlockCode",defaultMessage:"\u8003\u8BD5\u89E3\u9501\u7801"}),name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},ne.createElement(Te.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),In!==-1?ne.createElement(ne.Fragment,null,ne.createElement(Pe.default.Item,{name:"time",label:ne.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",ne.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",oe()(Xe==null?void 0:Xe.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},ne.createElement(le,{MaxMinutes:Ve})),ne.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",ne.createElement("span",{className:"ml5"},Ne||st?"--":nt),De.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"}),nt!==0&&(Xe==null?void 0:Xe.user_end_time)&&ne.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",ne.createElement("span",{className:"ml5"},oe()(Xe==null?void 0:Xe.user_end_time).add(Ge||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):ne.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",oe()(gn).format("YYYY-MM-DD HH:mm")))),ne.createElement(je.Z,{justify:"space-between",align:"middle"},ne.createElement(Oe.Z,null),ne.createElement(Oe.Z,null,ne.createElement(Ze.ZP,{loading:qe,onClick:et},"\u8FDB\u5165\u8003\u8BD5"))))))};Ue.Z=(0,a.connect)(({exercise:fe})=>({exercise:fe}))(me)},7703:function(ut,Ue,z){"use strict";z.d(Ue,{w:function(){return Fe}});var b=z(33170),re=z(14446),Se=z(35973),Pe=z(67294),Ie=(ue,Te,je)=>new Promise((Oe,Ze)=>{var Be=a=>{try{oe(je.next(a))}catch(E){Ze(E)}},ce=a=>{try{oe(je.throw(a))}catch(E){Ze(E)}},oe=a=>a.done?Oe(a.value):Promise.resolve(a.value).then(Be,ce);oe((je=je.apply(ue,Te)).next())});const Fe=(ue,Te,je="\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E...",Oe=1,Ze=2)=>Ie(void 0,null,function*(){Oe===1&&(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:Oe===1?je:"\u6B63\u5728\u68C0\u6D4B\u4E2D\uFF0C\u8BF7\u7A0D\u540E..."}});const Be=yield(0,b.ZP)(`/api/exercises/${Te}/user_appraise_status.json`,{method:"get",params:{appraise_type:Oe}});if((Be==null?void 0:Be.status)===-1)return(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}}),Promise.reject();let ce={status:0};if((Be==null?void 0:Be.type)===2&&(ce=yield(0,b.ZP)(`/api/exercises/${Te}/create_appraise_students.json`,{method:"get"})),(0,Se.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(ce==null?void 0:ce.status)===-1)return Promise.reject();if((Be==null?void 0:Be.type)===2){const oe=()=>{Se.history.replace(`/classrooms/${ue}/exercise/${Te}/centralizeReview/${ce==null?void 0:ce.login}`)},a=(0,Se.useIntl)();if(re.default.confirm({centered:!0,width:470,okText:a.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:a.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:a.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),keyboard:!1,onOk:oe,onCancel:()=>{Ze===1&&Se.history.replace(`/classrooms/${ue}/exercise/${Te}/detail`)},content:Pe.createElement("div",null,Pe.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",Pe.createElement("span",{onClick:oe,className:"ml5 mr5 c-light-primary current"},a.formatMessage({id:"classroomExams.centralizedGradingCannotBeDisabled",defaultMessage:"\u96C6\u4E2D\u9605\u5377"})),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),Pe.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),Ze!==3)return Promise.reject()}if((Be==null?void 0:Be.type)===3){const oe=(0,Se.useIntl)();if(re.default.info({centered:!0,width:470,okText:oe.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),keyboard:!1,title:oe.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),onOk:()=>{Ze===1&&Se.history.replace(`/classrooms/${ue}/exercise/${Te}/detail`)},content:Pe.createElement("div",null,(Be==null?void 0:Be.message)||"")}),Ze!==3)return Promise.reject()}if((Be==null?void 0:Be.type)===4){const oe=(0,Se.useIntl)();if(re.default.info({centered:!0,width:470,okText:oe.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),title:oe.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),keyboard:!1,onOk:()=>{Ze===1&&Se.history.replace(`/classrooms/${ue}/exercise/${Te}/detail`)},content:Pe.createElement("div",null,(Be==null?void 0:Be.message)||"")}),Ze!==3)return Promise.reject()}})},17998:function(ut,Ue,z){"use strict";z.d(Ue,{Q8:function(){return Re},d0:function(){return He},w6:function(){return Je}});var b=z(67294),re=z(34336),Se=z(11713),Pe=z(2453),Ie=z(14446),Fe=z(78045),ue=z(71230),Te=z(15746),je=z(83062),Oe=z(84567),Ze=z(71577),Be=z(27484),ce=z.n(Be),oe=z(52262),a=z(33170),E=z(96486),x=z.n(E),y=z(28706),ee=z(39886),ne=z(35973),ae=z(39717),ie=z(78207),le=z(92882),me=z(96332),fe=z(93686),pe=z(67294),he=Object.defineProperty,de=Object.defineProperties,se=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Ce=(Ye,Xe,st)=>Xe in Ye?he(Ye,Xe,{enumerable:!0,configurable:!0,writable:!0,value:st}):Ye[Xe]=st,Le=(Ye,Xe)=>{for(var st in Xe||(Xe={}))be.call(Xe,st)&&Ce(Ye,st,Xe[st]);if(Me)for(var st of Me(Xe))De.call(Xe,st)&&Ce(Ye,st,Xe[st]);return Ye},Ge=(Ye,Xe)=>de(Ye,se(Xe)),qe=(Ye,Xe,st)=>new Promise((ct,Ct)=>{var et=In=>{try{un(st.next(In))}catch(gn){Ct(gn)}},Qt=In=>{try{un(st.throw(In))}catch(gn){Ct(gn)}},un=In=>In.done?ct(In.value):Promise.resolve(In.value).then(et,Qt);un((st=st.apply(Ye,Xe)).next())});function Je(Ye,Xe){const st=[];for(let ct=Ye;ct{const ct=Yece()(Xe).endOf("day"),et=Ye{const st=parseInt(ce()(Ye).format("HH")),ct=parseInt(ce()().format("HH")),Ct=parseInt(ce()().format("mm"));if(!Ye)return{disabledHours:()=>Je(0,ct),disabledMinutes:()=>Je(0,Ct)};if(Xe){const et=parseInt(ce()(Xe).format("HH")),Qt=parseInt(ce()(Xe).format("mm"));return ce()(Ye).isSame(ce()(Xe),"day")?{disabledHours:()=>Je(0,et),disabledMinutes:()=>st<=et?Je(0,Qt):[]}:void 0}if(ce()(Ye).isSame(ce()(),"day"))return{disabledHours:()=>Je(0,ct),disabledMinutes:()=>ce()(Ye).isSame(ce()(),"hour")&&st<=ct?Je(0,Ct):[]}},{RangePicker:it}=re.default,{Option:$e}=Se.default,Ne=({shixunHomeworks:Ye,loading:Xe,dispatch:st,classroomList:ct,user:Ct})=>{var et,Qt,un,In,gn,Lt,Ve,nt,at;const rt=(0,ne.useIntl)(),jt=(0,ne.useParams)(),{workSetting:yt,workList:Bn,shixunWorkList:It,headerInfo:Fn,changeData:Zn}=Ye,[_e,Pt]=(0,b.useState)(!1),[Cn,jn]=(0,b.useState)(!1);let[gt,wn]=(0,b.useState)([]),[ft,xt]=(0,b.useState)([]),[At,zt]=(0,b.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ae.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[cn,Yt]=(0,b.useState)({}),[Aa,ca]=(0,b.useState)({});(0,b.useEffect)(()=>()=>{wn([])},[]),(0,b.useEffect)(()=>{Pt(!(0,oe.GJ)())},[(0,oe.GJ)()]);const fa=()=>{st({type:"shixunHomeworks/getWorkSetting",payload:Le({},jt)})};(0,b.useEffect)(()=>{if(!(yt!=null&&yt.course_id))return;Object.keys(At).map(function(On){At[On]=yt[On]}),(!At.allow_late||!At.unified_late)&&(At.late_penalty=20,At.penalty_type=ae.Q.Percent),At.unified_setting||(At.unified_late=!1,At.unified_anonymous_comment=!1,At.unified_anonymous_appeal=!1),gt=JSON.parse(JSON.stringify(yt.group_settings.map(On=>Ge(Le({},On),{group_name:[On.group_name]})).filter(On=>On.publish_time!==null))),ft=JSON.parse(JSON.stringify(yt.allow_late_settings.map(On=>Ge(Le({},On),{group_name:[On.group_name]})).filter(On=>On.late_time!==null))),zt(Le({},At));const dn=(0,y.QE)((gt==null?void 0:gt.length)>0?gt:[]);wn([...dn]),(ft==null?void 0:ft.length)<=0?xt([{penalty_type:ae.Q.Percent,late_penalty:20}]):xt([...ft])},[yt]);const Ha=()=>qe(void 0,null,function*(){var dn,On;if(((dn=Ct==null?void 0:Ct.userInfo)==null?void 0:dn.user_status)===2){(0,ie.Rd)();return}const pa=JSON.parse(JSON.stringify(At));if(pa.challenge_settings.filter(oa=>!oa.hide),pa.categoryId=jt.categoryId,(On=pa.challenge_settings)!=null&&On.every(oa=>!oa.checked)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.cannotSetAllLevelsOptional",defaultMessage:"\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A"}));return}if(console.log(gt),!At.unified_setting)gt=gt==null?void 0:gt.map(oa=>{var ya;if(!oa.publish_time||!oa.end_time)throw Pe.ZP.error(rt.formatMessage({id:"classrooms.completePublishTime",defaultMessage:"\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"})),new String(rt.formatMessage({id:"classrooms.completePublishTime",defaultMessage:"\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"}));if(!oa.group_name)throw Pe.ZP.error(rt.formatMessage({id:"classrooms.selectClassName",defaultMessage:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"})),new String(rt.formatMessage({id:"classrooms.selectClassName",defaultMessage:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"}));return oa.group_name=typeof(oa==null?void 0:oa.group_name)=="string"?[oa==null?void 0:oa.group_name]:oa==null?void 0:oa.group_name,oa.group_id=(ya=yt.group_settings)==null?void 0:ya.filter(sr=>{var ul;return(ul=oa==null?void 0:oa.group_name)==null?void 0:ul.includes(sr.group_name)}).map(sr=>sr.group_id||sr.id).toString().split(","),oa});else if(!At.publish_time||!At.end_time)throw Pe.ZP.error(rt.formatMessage({id:"classrooms.releaseDeadlineCannotBeEmpty",defaultMessage:"\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"})),new String(rt.formatMessage({id:"classrooms.releaseDeadlineCannotBeEmpty",defaultMessage:"\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}));if(pa.group_settings=gt,At.allow_late)if(At.unified_late){if(At.late_penalty===null||At.late_penalty===void 0||At.late_penalty<0||At.late_penalty>100)throw Pe.ZP.error(`${rt.formatMessage({id:"classrooms.lateSubmissionDeduction0",defaultMessage:"\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0"})}~100`),new String(`${rt.formatMessage({id:"classrooms.lateSubmissionDeduction0",defaultMessage:"\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0"})}~100`);if(!At.late_time)throw Pe.ZP.error(rt.formatMessage({id:"classrooms.completeDeadline",defaultMessage:"\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"})),new String(rt.formatMessage({id:"classrooms.completeDeadline",defaultMessage:"\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"}))}else ft=ft==null?void 0:ft.map(oa=>{var ya,sr;if(oa.late_penalty===null||oa.late_penalty===void 0||oa.late_penalty<0||oa.late_penalty>100)throw Pe.ZP.error(`${rt.formatMessage({id:"classrooms.lateSubmissionDeduction0",defaultMessage:"\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0"})}~100`),new String(`${rt.formatMessage({id:"classrooms.lateSubmissionDeduction0",defaultMessage:"\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0"})}~100`);if(!oa.late_time)throw Pe.ZP.error(rt.formatMessage({id:"classrooms.completeDeadline",defaultMessage:"\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"})),new String(rt.formatMessage({id:"classrooms.completeDeadline",defaultMessage:"\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"}));if(!oa.group_name)throw Pe.ZP.error(rt.formatMessage({id:"classrooms.selectClassName",defaultMessage:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"})),new String(rt.formatMessage({id:"classrooms.selectClassName",defaultMessage:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"}));return oa.group_name=typeof(oa==null?void 0:oa.group_name)=="string"?[oa==null?void 0:oa.group_name]:oa==null?void 0:oa.group_name,oa.group_id=(sr=(ya=oa==null?void 0:oa.group_name)==null?void 0:ya.map(ul=>{var Ft,pt;let Et=(pt=(Ft=yt.group_settings)==null?void 0:Ft.filter(Mn=>(Mn==null?void 0:Mn.group_name)===ul))==null?void 0:pt[0];return Et==null?void 0:Et.group_id}))==null?void 0:sr.toString().split(","),oa}),pa.allow_late_settings=ft;let Ua=yield(0,fe.Tr)({homework_common_ids:[parseInt(jt.categoryId)],course_id:jt.coursesId,type:"homework_common"});(Ua==null?void 0:Ua.student_count)===0?wa(pa):(ca(pa),Yt(Ua))}),wa=dn=>{var On;if(dn.total_score===null){Pe.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(dn!=null&&dn.work_efficiency&&dn.eff_score===null){Pe.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const pa=dn.challenge_settings.reduce((ya,sr)=>ya+Number(sr.challenge_score),0);if((pa==null?void 0:pa.toFixed(10))!==((On=dn.total_score-dn.eff_score)==null?void 0:On.toFixed(10))){Pe.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${dn.total_score}${rt.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})}`);return}const Ua={shixun_evaluation:dn.shixun_evaluation,challenge_settings:dn.challenge_settings};let oa=()=>{var ya;const sr=()=>qe(void 0,null,function*(){jn(!0),(yield(0,a.ZP)(`/api/homework_commons/${jt.categoryId}/publish_setting.json`,{method:"post",body:Le({},dn)})).status===0&&(Pe.ZP.success(rt.formatMessage({id:"classrooms.updateSuccess",defaultMessage:"\u66F4\u65B0\u6210\u529F"})),fa(),st({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Le({},jt)})),jn(!1)});!(0,E.isEqual)(Zn,Ua)&&!((ya=Fn==null?void 0:Fn.homework_status)!=null&&ya.includes("\u672A\u53D1\u5E03"))?Ie.default.confirm({title:rt.formatMessage({id:"classrooms.updateGrades",defaultMessage:"\u66F4\u65B0\u6210\u7EE9"}),content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:rt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:sr}):sr()};yt!=null&&yt.high_resources_consume&&!(yt!=null&&yt.high_resources_consume_permission)?st({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:jt.coursesId,type:"shixun",type_id:jt.categoryId,name:yt.homework_name,fn:()=>{oa()}}}):oa()},xn=(dn,On,pa="group_id")=>{var Ua;return On?On.find(oa=>oa[pa]===dn):(Ua=yt==null?void 0:yt.group_settings)==null?void 0:Ua.find(oa=>oa.group_id[0]===dn)},to=(yt==null?void 0:yt.allow_late)||(yt==null?void 0:yt.anonymous_comment),ko=dn=>{var On,pa;const Ua=xn(dn,yt==null?void 0:yt.allow_late_settings,"id"),oa=xn(dn,yt==null?void 0:yt.anonymous_comment_settings),ya=xn(dn);return(yt==null?void 0:yt.allow_late)&&Ua&&ce()(Ua==null?void 0:Ua.late_time)<=ce()()||(yt==null?void 0:yt.anonymous_comment)&&oa&&(oa==null?void 0:oa.evaluation_start)!==null||((pa=(ce()(ya==null?void 0:ya.end_time)<=ce()()&&((On=yt==null?void 0:yt.allow_late_settings)==null?void 0:On.filter(sr=>sr.group_id.includes(dn))))[0])==null?void 0:pa.late_time)!=null},Qa=(0,b.useMemo)(()=>(yt==null?void 0:yt.allow_late)||(yt==null?void 0:yt.all_group_late),[yt,Fn]),jo=yt==null?void 0:yt.anonymous_comment,Io=dn=>{if(!dn)return!1;const On=xn(dn,yt==null?void 0:yt.anonymous_comment_settings);return(yt==null?void 0:yt.anonymous_comment)&&On&&(On==null?void 0:On.evaluation_start)!==null},hr=(dn,On)=>{var pa,Ua,oa;st({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:dn,index:On,rangePickerDisabled:_e||(ce()()<=ce()((Ua=xn((pa=dn==null?void 0:dn.group_id)==null?void 0:pa[0]))==null?void 0:Ua.publish_time)?!1:[!0,ko((oa=dn==null?void 0:dn.group_id)==null?void 0:oa[0])]),disabledDate:yt==null?void 0:yt.course_end_date}})};return pe.createElement("section",{className:ee.Z.form},pe.createElement("div",{className:ee.Z.title},rt.formatMessage({id:"classroomClassroomExperiments.homeworkPublish",defaultMessage:"\u4F5C\u4E1A\u53D1\u5E03"}),pe.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08",rt.formatMessage({id:"classrooms.cannotChangePublishModeAfterRelease",defaultMessage:"\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F"}),"\uFF09")),pe.createElement("div",null,pe.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},pe.createElement(Fe.ZP.Group,{disabled:_e||!((et=Fn==null?void 0:Fn.homework_status)!=null&&et.includes("\u672A\u53D1\u5E03"))||(0,oe.Rm)()&&!((Qt=ct.AssistantObject.practice)!=null&&Qt.can_publish),value:At.unified_setting,onChange:dn=>{var On;if(!((On=Fn==null?void 0:Fn.homework_status)!=null&&On.includes("\u672A\u53D1\u5E03"))){Pe.ZP.error(rt.formatMessage({id:"classrooms.publishedCannotModifyUnified",defaultMessage:"\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E"}));return}if(At.unified_setting=!At.unified_setting,At.unified_setting||(At.unified_late=!1,xt([{late_penalty:5}])),zt(Object.assign({},At)),At.unified_setting===!1&>==""){wn(gt.concat({}));return}At.unified_setting&&(wn([]),xt([{late_penalty:5}]))}},pe.createElement(Fe.ZP,{value:!0,disabled:_e||!(yt!=null&&yt.manage_all_group),style:{marginRight:"50px"}},rt.formatMessage({id:"classrooms.unifiedPublish",defaultMessage:"\u7EDF\u4E00\u53D1\u5E03"})),pe.createElement(Fe.ZP,{disabled:_e||!((un=yt==null?void 0:yt.group_settings)!=null&&un.length),value:!1},rt.formatMessage({id:"classroomClassroomExperiments.classBasedPublish",defaultMessage:"\u5206\u73ED\u53D1\u5E03"}))),((In=yt==null?void 0:yt.group_settings)==null?void 0:In.length)===0&&pe.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08",rt.formatMessage({id:"classrooms.classNoGrouping",defaultMessage:"\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201D"}),"\uFF09")),At.unified_setting&&pe.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},pe.createElement(ue.Z,{align:"middle"},pe.createElement(Te.Z,{style:{marginLeft:"23px"}},rt.formatMessage({id:"classrooms.publishTime",defaultMessage:"\u53D1\u5E03\u65F6\u95F4"})),pe.createElement(Te.Z,{className:"ml10"},pe.createElement(re.default,{size:"large",disabled:_e||!((gn=Fn==null?void 0:Fn.homework_status)!=null&&gn.includes("\u672A\u53D1\u5E03")||(Lt=Fn==null?void 0:Fn.homework_status)!=null&&Lt.includes("\u672A\u5F00\u59CB"))||(0,oe.Rm)()&&!((Ve=ct.AssistantObject.practice)!=null&&Ve.can_publish),style:{width:270},placeholder:rt.formatMessage({id:"classroomClassroomExperiments.pleaseSelectPublishTime",defaultMessage:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"}),showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:dn=>Re(dn,yt==null?void 0:yt.course_end_date),disabledTime:dn=>He(dn),value:At.publish_time?ce()(At.publish_time):"",onChange:(dn,On)=>{At.publish_time=On,(At.end_time==""||!At.end_time)&&At.unified_setting&&(At.end_time=ce()(dn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),zt(Object.assign({},At))}}))),pe.createElement(ue.Z,{align:"middle",className:"pl30"},pe.createElement(Te.Z,null,rt.formatMessage({id:"classroomProgrammingHomework.deadline",defaultMessage:"\u622A\u6B62\u65F6\u95F4"})),pe.createElement(Te.Z,{className:"ml10"},pe.createElement(re.default,{size:"large",style:{width:270},allowClear:!1,placeholder:rt.formatMessage({id:"classroomClassroomExperiments.pleaseSelectEndTime",defaultMessage:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"}),showTime:{format:"HH:mm",defaultValue:ce()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(yt==null?void 0:yt.allow_late)&&(yt==null?void 0:yt.homework_status.includes("\u5DF2\u622A\u6B62"))||_e||(yt==null?void 0:yt.allow_late)&&ce()()>=ce()(yt==null?void 0:yt.end_time)||(0,oe.Rm)()&&!((nt=ct.AssistantObject.practice)!=null&&nt.can_publish),disabledDate:dn=>Re(dn,yt==null?void 0:yt.course_end_date,At.publish_time),disabledTime:dn=>He(dn,At.publish_time),value:At.end_time?ce()(At.end_time):"",onChange:(dn,On)=>{At.end_time=On,zt(Object.assign({},At))}})))),!At.unified_setting&&(gt==null?void 0:gt.length)>0&&pe.createElement(ue.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},gt&>.map(function(dn,On){var pa,Ua,oa,ya,sr,ul,Ft;return pe.createElement(Te.Z,{span:24,key:On},pe.createElement(ue.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:On==(gt==null?void 0:gt.length)-1?"0px":"10px"}},pe.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},rt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.releaseRules",defaultMessage:"\u53D1\u5E03\u89C4\u5219"}),On+1),pe.createElement(Se.default,{disabled:_e||((pa=Fn==null?void 0:Fn.homework_status)!=null&&pa.includes("\u672A\u53D1\u5E03")&&dn.id||ce()(){var Et;if((0,oe.Rm)()&&!((Et=ct.AssistantObject.practice)!=null&&Et.can_publish)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}gt[On].group_name=pt,gt[On].group_id=dn.group_id;const Mn=(0,E.flattenDeep)(gt.map(Kn=>Kn.group_name)),$n=ft.map(Kn=>{let or=(Kn==null?void 0:Kn.group_name)||[];return Ge(Le({},Kn),{group_name:(0,E.remove)(or,Fo=>Mn.includes(Fo))})});xt($n),wn(gt.slice())},maxTagCount:4,maxTagPlaceholder:pt=>pe.createElement("div",{style:{cursor:"pointer"},onClick:()=>hr(dn,On)},"+",pt==null?void 0:pt.length)},yt.group_settings&&yt.group_settings.map(function(pt){if(!gt.map(Mn=>Mn.group_name).flat().includes(pt.group_name))return pe.createElement($e,{value:pt.group_name,key:pt.id},pt.group_name)})),pe.createElement("div",{className:"ml20"},pe.createElement(it,{size:"large",ranges:{\u6B64\u523B:[dn.publish_time?ce()(dn.publish_time):ce()(),ce()()]},allowClear:!1,disabled:_e||(ce()()<=ce()((ya=xn((oa=dn==null?void 0:dn.group_id)==null?void 0:oa[0]))==null?void 0:ya.publish_time)?!1:[!0,ko((sr=dn==null?void 0:dn.group_id)==null?void 0:sr[0])]),style:{width:605},placeholder:[rt.formatMessage({id:"classroomGraphicGroupHomework.publishTime",defaultMessage:"\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"}),rt.formatMessage({id:"classroomGraphicGroupHomework.deadline",defaultMessage:"\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F \u201C\u6309\u65F6\u201D \u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09"})],disabledDate:pt=>Re(pt,yt==null?void 0:yt.course_end_date),disabledTime:pt=>He(pt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[ce()((0,y.U6)(),"HH:mm"),ce()((0,y.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:dn.publish_time&&[ce()(dn.publish_time),dn.end_time?ce()(dn.end_time):void 0],onChange:(pt,Et)=>{var Mn;if((0,oe.Rm)()&&!((Mn=ct.AssistantObject.practice)!=null&&Mn.can_publish)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}gt[On].publish_time=Et[0],!dn.end_time&&Et[0]?gt[On].end_time=ce()(Et[0]).add(7,"days"):gt[On].end_time=Et[1],wn([...gt])},onCalendarChange:(pt,Et,Mn)=>{if(Et!=null&&Et[0]&&!Et[1]){const $n=ce()(Et[0]).add(7,"days");gt[On].publish_time=Et[0],gt[On].end_time=$n,wn([...gt])}}})),!_e&&pe.createElement("div",{style:{display:"flex",width:"50px"}},((ul=dn==null?void 0:dn.group_id)==null?void 0:ul.length)>1&&pe.createElement(je.Z,{title:"\u89C4\u5219\u62C6\u5206"},pe.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>hr(dn,On)})),gt.length<((Ft=yt==null?void 0:yt.group_settings)==null?void 0:Ft.length)&&pe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var pt;if((0,oe.Rm)()&&!((pt=ct.AssistantObject.practice)!=null&&pt.can_publish)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}wn(gt.concat({}))}}),((dn==null?void 0:dn.publish_time)&&ce()(){const pt=(0,E.cloneDeep)(ft);pt.forEach((Et,Mn)=>{Et.group_name&&(Et.group_name=Et.group_name.filter($n=>{var Kn;return!((Kn=gt[On].group_name)!=null&&Kn.includes($n))}))}),gt=gt.filter((Et,Mn)=>On!==Mn),xt(pt),wn(gt.slice()),setTimeout(()=>wn(gt.slice()),10)}}))))}))),pe.createElement(ue.Z,null,pe.createElement(Te.Z,null,pe.createElement("div",{className:ee.Z.title,style:{marginTop:"30px"}},rt.formatMessage({id:"classroomClassroomExperiments.resubmissionSettings",defaultMessage:"\u8865\u4EA4\u8BBE\u7F6E"}),pe.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08",rt.formatMessage({id:"classrooms.lateSubmissionDescription",defaultMessage:"\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4"}),"\uFF09"))),pe.createElement(Te.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},pe.createElement(Oe.default,{checked:At.allow_late,disabled:_e||Qa,onChange:dn=>{var On;if((0,oe.Rm)()&&!((On=ct.AssistantObject.practice)!=null&&On.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}dn.target.checked&&Ie.default.warning({title:rt.formatMessage({id:"classrooms.enableSubmissionReminder",defaultMessage:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A"}),centered:!0,width:480,content:pe.createElement("div",{style:{padding:10,background:"#f5f6f9"}},pe.createElement("div",null,rt.formatMessage({id:"classrooms.submissionPolicy",defaultMessage:"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"})),pe.createElement("div",null,rt.formatMessage({id:"classrooms.submissionDeadlineRule",defaultMessage:"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"})),pe.createElement("div",null,rt.formatMessage({id:"classrooms.submissionPhaseRule",defaultMessage:"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"})))}),At.allow_late=!At.allow_late,ft==""&&xt([{late_penalty:5}]),zt(Object.assign({},At))}},pe.createElement("strong",null,rt.formatMessage({id:"classroomClassroomExperiments.enableResubmission",defaultMessage:"\u5F00\u542F\u8865\u4EA4"}))))),(At==null?void 0:At.allow_late)&&pe.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},pe.createElement("div",{style:{display:"flex"}},pe.createElement("div",{style:{width:"200px",textAlign:"right"}},rt.formatMessage({id:"classrooms.submissionMethod",defaultMessage:"\u8865\u4EA4\u65B9\u5F0F"})),pe.createElement(Fe.ZP.Group,{style:{marginLeft:"20px"},disabled:_e||(yt==null?void 0:yt.anonymous_comment)||(yt==null?void 0:yt.allow_late),value:At.unified_late,onChange:dn=>{var On;if((0,oe.Rm)()&&!((On=ct.AssistantObject.practice)!=null&&On.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}At.unified_late=dn.target.value,ft==""&&!dn.target.value&&xt([{penalty_type:ae.Q.Percent,late_penalty:20}]),zt(Le({},At))}},(At==null?void 0:At.unified_setting)&&pe.createElement(Fe.ZP,{value:!0,disabled:!(yt!=null&&yt.manage_all_group),style:{marginRight:"50px"}},rt.formatMessage({id:"classrooms.uniformSubmission",defaultMessage:"\u7EDF\u4E00\u8865\u4EA4"})),((at=yt==null?void 0:yt.group_settings)==null?void 0:at.length)>0&&pe.createElement(Fe.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),At!=null&&At.unified_late?pe.createElement(pe.Fragment,null,pe.createElement(ue.Z,{align:"middle",style:{marginTop:"10px"}},pe.createElement(Te.Z,{style:{width:"200px",textAlign:"right"}},rt.formatMessage({id:"classroomClassroomExperiments.resubmissionDeduction",defaultMessage:"\u8865\u4EA4\u6263\u5206"})),pe.createElement(Te.Z,{className:"ml20"},pe.createElement(ae.Z,{disabled:_e||jo,value:{type:At.penalty_type,inputValue:At.late_penalty},onChange:dn=>{var On;if((0,oe.Rm)()&&!((On=ct.AssistantObject.practice)!=null&&On.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionMessage",defaultMessage:"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"}));return}zt(Ge(Le({},At),{late_penalty:dn.inputValue,penalty_type:dn.type}))}})),pe.createElement(Te.Z,{flex:"1",className:"ml5"},pe.createElement("span",{className:"c-grey-c ml10"},At.penalty_type===ae.Q.Number?rt.formatMessage({id:"classrooms.deductionMessage",defaultMessage:"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)"}):rt.formatMessage({id:"classrooms.finalScoreFormula",defaultMessage:"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"})))),pe.createElement(ue.Z,{align:"middle",style:{marginTop:"15px"}},pe.createElement(Te.Z,{style:{width:"200px",textAlign:"right"}},rt.formatMessage({id:"classrooms.submissionDeadline",defaultMessage:"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"})),pe.createElement(Te.Z,{className:"ml20"},pe.createElement(re.default,{size:"large",allowClear:!1,style:{width:270},placeholder:rt.formatMessage({id:"classroomClassroomExperiments.pleaseSelectEndTime",defaultMessage:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"}),showTime:{format:"HH:mm",defaultValue:ce()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:_e||jo,value:At.late_time?ce()(At.late_time):"",disabledDate:dn=>Re(dn,yt==null?void 0:yt.course_end_date),onChange:(dn,On)=>{var pa;if((0,oe.Rm)()&&!((pa=ct.AssistantObject.practice)!=null&&pa.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}At.late_time=On,zt(Object.assign({},At))}})))):ft.map(function(dn,On){var pa;return pe.createElement(Te.Z,{span:24,key:On},pe.createElement(ue.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},pe.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},rt.formatMessage({id:"classrooms.submissionRules",defaultMessage:"\u8865\u4EA4\u89C4\u5219"}),On+1),pe.createElement(Se.default,{disabled:_e||!((pa=Fn==null?void 0:Fn.homework_status)!=null&&pa.includes("\u672A\u53D1\u5E03"))&&dn.id||(yt==null?void 0:yt.anonymous_comment),mode:"multiple",className:ee.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof dn.group_name=="string"?[dn.group_name]:dn.group_name,placeholder:rt.formatMessage({id:"classrooms.selectClassName",defaultMessage:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"}),onChange:Ua=>{var oa;if((0,oe.Rm)()&&!((oa=ct.AssistantObject.practice)!=null&&oa.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}ft[On].group_name=Ua,ft[On].group_id=dn.group_id,xt(ft.slice())}},yt.group_settings&&yt.group_settings.map(function(Ua){const oa=ft.map(sr=>sr.group_name).flat(),ya=gt.map(sr=>sr.group_name).flat();if(At!=null&&At.unified_setting){if(!oa.includes(Ua.group_name))return pe.createElement($e,{value:Ua.group_name,key:Ua.id},Ua.group_name)}else if(ya.includes(Ua.group_name)&&!oa.includes(Ua.group_name))return pe.createElement($e,{value:Ua.group_name,key:Ua.id},Ua.group_name)})),pe.createElement("div",{className:"ml20 mr10"},rt.formatMessage({id:"classroomClassroomExperiments.resubmissionDeduction",defaultMessage:"\u8865\u4EA4\u6263\u5206"})),pe.createElement(ae.Z,{disabled:_e||Io(dn.id),value:{type:dn.penalty_type,inputValue:dn.late_penalty},onChange:Ua=>{var oa;if((0,oe.Rm)()&&!((oa=ct.AssistantObject.practice)!=null&&oa.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}ft[On].late_penalty=Ua.inputValue,ft[On].penalty_type=Ua.type,xt([...ft])}}),pe.createElement("div",{className:"ml20 mr10"},rt.formatMessage({id:"classrooms.submissionDeadline",defaultMessage:"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"})),pe.createElement(re.default,{size:"large",disabled:_e||Io(dn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:ce()((0,y.U6)(),"HH:mm")},placeholder:rt.formatMessage({id:"classroomClassroomExperiments.pleaseSelectEndTime",defaultMessage:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"}),disabledDate:Ua=>Re(Ua,yt==null?void 0:yt.course_end_date),format:"YYYY-MM-DD HH:mm",value:dn!=null&&dn.late_time?ce()(dn.late_time):void 0,onChange:(Ua,oa)=>{var ya;if((0,oe.Rm)()&&!((ya=ct.AssistantObject.practice)!=null&&ya.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}ft[On].late_time=oa,xt([...ft])}}),!_e&&pe.createElement("div",{style:{display:"flex",width:"50px"}},pe.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Ua;if((0,oe.Rm)()&&!((Ua=ct.AssistantObject.practice)!=null&&Ua.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}xt(ft.concat({penalty_type:ae.Q.Percent,late_penalty:20}))}}),On>0&&!dn.id&&pe.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var Ua;if((0,oe.Rm)()&&!((Ua=ct.AssistantObject.practice)!=null&&Ua.can_late)){Pe.ZP.warning(rt.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}ft=ft.filter((oa,ya)=>On!==ya),xt(ft.slice()),setTimeout(()=>xt(ft.slice()),10)}}))))})),!_e&&pe.createElement(pe.Fragment,null,pe.createElement(Ze.ZP,{type:"primary",size:"large",loading:Cn,style:{width:"138px",marginTop:"30px"},onClick:()=>Ha()},rt.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"}))),pe.createElement(le.Z,{onConfirm:(dn,On)=>{gt.splice(dn,0,...On),gt.splice(dn+On.length,1);const pa=(0,y.QE)([...gt]);wn([...pa])}}),pe.createElement(me.Z,{resdata:cn,type:"shixun",okloading:Cn,oktext:(cn==null?void 0:cn.can_copy_num)===0?rt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}):rt.formatMessage({id:"classrooms.oneClickCopy",defaultMessage:"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362"}),onok:dn=>qe(void 0,null,function*(){jn(!0);let On=yield(0,a.ZP)(`/api/courses/${jt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(jt.categoryId)]}});jn(!1),(On==null?void 0:On.status)===0&&wa(Aa)})}))};Ue.ZP=(0,ne.connect)(({shixunHomeworks:Ye,classroomList:Xe,loading:st,user:ct})=>({shixunHomeworks:Ye,classroomList:Xe,loading:st.effects,user:ct}))(Ne)},6151:function(ut,Ue,z){"use strict";var b=z(67294),re=z(59810),Se=z(22150),Pe=z(14446),Ie=z(2453),Fe=z(9430),ue=z(35973),Te=z(11320),je=z(67795),Oe=z(33170),Ze=z(27484),Be=z.n(Ze),ce=z(28706),oe=z(67294),a=Object.defineProperty,E=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,ee=(me,fe,pe)=>fe in me?a(me,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):me[fe]=pe,ne=(me,fe)=>{for(var pe in fe||(fe={}))x.call(fe,pe)&&ee(me,pe,fe[pe]);if(E)for(var pe of E(fe))y.call(fe,pe)&&ee(me,pe,fe[pe]);return me},ae=(me,fe,pe)=>new Promise((he,de)=>{var se=De=>{try{be(pe.next(De))}catch(Ce){de(Ce)}},Me=De=>{try{be(pe.throw(De))}catch(Ce){de(Ce)}},be=De=>De.done?he(De.value):Promise.resolve(De.value).then(se,Me);be((pe=pe.apply(me,fe)).next())});const{Dragger:ie}=re.default,le=({classroomList:me,dispatch:fe,onOk:pe})=>{const he=(0,ue.useIntl)(),de=(0,ue.useParams)(),[se]=Se.default.useForm(),[Me,be]=(0,b.useState)(),[De,Ce]=(0,b.useState)(!1),Le={height:100,onRemove:()=>{be("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ge=>ae(void 0,null,function*(){return be(Ge),!1})};return(0,b.useEffect)(()=>{se.setFieldsValue({publish_time:Be()(Be()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Be()(Be()(new Date((0,ce.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),oe.createElement(Pe.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:me.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:he.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),width:750,destroyOnClose:!0,cancelText:he.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),okButtonProps:{loading:De},onOk:()=>ae(void 0,null,function*(){se.submit()}),onCancel:()=>{se.resetFields(),fe({type:"classroomList/setActionTabs",payload:{}})}},oe.createElement(Se.default,{form:se,onFinish:Ge=>ae(void 0,null,function*(){var qe,Je,Re;if(!(Me!=null&&Me.size)){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ce(!0);let He=new FormData;He.append("type",me.actionTabs.type),He.append("file",Me);let it;window.location.href.indexOf("exercise")>-1?it=`/api/exercises/${me.actionTabs.id}/supplement_score.json`:it=`/api/homework_commons/${me.actionTabs.id}/supplement_score.json`;let $e=yield(0,Oe.ZP)(it,{method:"post",body:He},!0);Ce(!1),($e==null?void 0:$e.status)===0&&(pe(),se.resetFields(),fe({type:"classroomList/setActionTabs",payload:{}}),((Je=(qe=$e==null?void 0:$e.data)==null?void 0:qe.fail)==null?void 0:Je.length)>0&&Pe.default.confirm({title:he.formatMessage({id:"paths.importFailed",defaultMessage:"\u5BFC\u5165\u5931\u8D25"}),closable:!0,icon:null,width:610,content:oe.createElement(Fe.default,{pagination:!1,dataSource:(Re=$e==null?void 0:$e.data)==null?void 0:Re.fail,scroll:{y:400},columns:[{title:he.formatMessage({id:"classrooms.name",defaultMessage:"\u59D3\u540D"}),align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:he.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:()=>{(0,ce.FH)("",Te.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${me.actionTabs.type}`)}}))})},oe.createElement(Se.default.Item,{label:he.formatMessage({id:"classroomProgrammingHomework.homeworkName",defaultMessage:"\u4F5C\u4E1A\u540D\u79F0"}),labelCol:{span:3},name:"name"},me.actionTabs.name),oe.createElement(Se.default.Item,{style:{marginBottom:0},label:oe.createElement("div",null,oe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),oe.createElement("span",null,he.formatMessage({id:"classrooms.importFile",defaultMessage:"\u5BFC\u5165\u6587\u4EF6"}))),labelCol:{span:3},rules:[{required:!0,message:he.formatMessage({id:"classroomProgrammingHomework.pleaseEnterHomeworkName",defaultMessage:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"})}]},oe.createElement("div",null,oe.createElement("a",{download:"\u6A21\u7248.xlsx",className:je.Z.downloadbutton,href:Te.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${me.actionTabs.type}`},he.formatMessage({id:"classrooms.downloadTemplate",defaultMessage:"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"})),oe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08",he.formatMessage({id:"classrooms.completeTableInstructions",defaultMessage:"\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9"}),"\uFF09")),oe.createElement(Se.default.Item,{style:{marginBottom:0}},oe.createElement(ie,ne({},Le),oe.createElement("a",{className:je.Z.downloadbutton,style:{width:96}},he.formatMessage({id:"competitions.chooseFile",defaultMessage:"\u9009\u62E9\u6587\u4EF6"})),oe.createElement("br",null),oe.createElement("span",{style:{color:"#999999"}},he.formatMessage({id:"classrooms.uploadInstructions1",defaultMessage:"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A"}),".xls\u3001.xlsx"))))))};Ue.Z=(0,ue.connect)(({classroomList:me})=>({classroomList:me}))(le)},34738:function(ut,Ue,z){"use strict";var b=z(67294),re=z(59810),Se=z(22150),Pe=z(14446),Ie=z(2453),Fe=z(9430),ue=z(69677),Te=z(71230),je=z(15746),Oe=z(31795),Ze=z(34336),Be=z(35973),ce=z(35567),oe=z(11320),a=z(67795),E=z(33170),x=z(17998),y=z(27484),ee=z.n(y),ne=z(28706),ae=z(67294),ie=Object.defineProperty,le=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(be,De,Ce)=>De in be?ie(be,De,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[De]=Ce,he=(be,De)=>{for(var Ce in De||(De={}))me.call(De,Ce)&&pe(be,Ce,De[Ce]);if(le)for(var Ce of le(De))fe.call(De,Ce)&&pe(be,Ce,De[Ce]);return be},de=(be,De,Ce)=>new Promise((Le,Ge)=>{var qe=He=>{try{Re(Ce.next(He))}catch(it){Ge(it)}},Je=He=>{try{Re(Ce.throw(He))}catch(it){Ge(it)}},Re=He=>He.done?Le(He.value):Promise.resolve(He.value).then(qe,Je);Re((Ce=Ce.apply(be,De)).next())});const{Dragger:se}=re.default,Me=({classroomList:be,dispatch:De,onOk:Ce})=>{const Le=(0,Be.useIntl)(),Ge=(0,Be.useParams)(),[qe]=Se.default.useForm(),[Je,Re]=(0,b.useState)(),[He,it]=(0,b.useState)(!1),$e={height:120,onRemove:()=>{Re("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Ne=>de(void 0,null,function*(){return Re(Ne),!1})};return(0,b.useEffect)(()=>{qe.setFieldsValue({publish_time:ee()(ee()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:ee()(ee()(new Date((0,ne.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[be.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),ae.createElement(Pe.default,{centered:!0,title:Le.formatMessage({id:"classrooms.importExternalGrades",defaultMessage:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"}),open:be.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:Le.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),width:950,destroyOnClose:!0,cancelText:Le.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),okButtonProps:{loading:He},onOk:()=>de(void 0,null,function*(){qe.submit()}),onCancel:()=>{qe.resetFields(),De({type:"classroomList/setActionTabs",payload:{}})}},ae.createElement(Se.default,{form:qe,colon:!1,onFinish:Ne=>de(void 0,null,function*(){var Ye,Xe,st;if(!(Je!=null&&Je.size)){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}it(!0);let ct=new FormData;ct.append("name",Ne.name),ct.append("type",be.actionTabs.type),ct.append("category_id",(Ge==null?void 0:Ge.categoryId)||null),be.actionTabs.type==="exercise"?(ct.append("time",Ne.time||""),ct.append("total_score",Ne.total_score)):ct.append("description",Ne.description||""),ct.append("publish_time",ee()(Ne.publish_time).format("YYYY-MM-DD HH:mm")),ct.append("end_time",ee()(Ne.end_time).format("YYYY-MM-DD HH:mm")),ct.append("file",Je);let Ct=yield(0,E.ZP)(`/api/courses/${Ge.coursesId}/export_external_score_homework.json`,{method:"post",body:ct},!0);it(!1),(Ct==null?void 0:Ct.status)===0&&(qe.resetFields(),De({type:"classroomList/setActionTabs",payload:{}}),Ce(),((Xe=(Ye=Ct==null?void 0:Ct.data)==null?void 0:Ye.fail)==null?void 0:Xe.length)>0&&Pe.default.confirm({title:Le.formatMessage({id:"paths.importFailed",defaultMessage:"\u5BFC\u5165\u5931\u8D25"}),closable:!0,icon:null,width:610,content:ae.createElement(Fe.default,{pagination:!1,dataSource:(st=Ct==null?void 0:Ct.data)==null?void 0:st.fail,scroll:{y:400},columns:[{title:Le.formatMessage({id:"classrooms.name",defaultMessage:"\u59D3\u540D"}),align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:Le.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:()=>{(0,ne.FH)("",oe.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${be.actionTabs.type}`)}}))})},ae.createElement(Se.default.Item,{label:be.actionTabs.type!=="exercise"?Le.formatMessage({id:"classroomProgrammingHomework.homeworkName",defaultMessage:"\u4F5C\u4E1A\u540D\u79F0"}):Le.formatMessage({id:"paperlibrary.examName",defaultMessage:"\u8BD5\u5377\u540D\u79F0"}),labelCol:{span:4},name:"name",rules:[{required:!0,message:`${Le.formatMessage({id:"user.pleaseEnter",defaultMessage:"\u8BF7\u8F93\u5165"})}${be.actionTabs.type!=="exercise"?Le.formatMessage({id:"classroomProgrammingHomework.homeworkName",defaultMessage:"\u4F5C\u4E1A\u540D\u79F0"}):Le.formatMessage({id:"paperlibrary.examName",defaultMessage:"\u8BD5\u5377\u540D\u79F0"})}`}]},ae.createElement(ue.default,{placeholder:`${Le.formatMessage({id:"user.pleaseEnter",defaultMessage:"\u8BF7\u8F93\u5165"})}${be.actionTabs.type!=="exercise"?Le.formatMessage({id:"classroomProgrammingHomework.homeworkName",defaultMessage:"\u4F5C\u4E1A\u540D\u79F0"}):Le.formatMessage({id:"paperlibrary.examName",defaultMessage:"\u8BD5\u5377\u540D\u79F0"})}`})),be.actionTabs.type!=="exercise"&&ae.createElement(Se.default.Item,{label:Le.formatMessage({id:"classroomGraphicGroupHomework.homeworkDescription",defaultMessage:"\u4F5C\u4E1A\u63CF\u8FF0"}),labelCol:{span:4},name:"description"},ae.createElement(ce.Z,{watch:!0})),be.actionTabs.type==="exercise"&&ae.createElement(Te.Z,{style:{marginLeft:6}},ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:Le.formatMessage({id:"classrooms.totalScore1",defaultMessage:"\u8BD5\u5377\u603B\u5206"}),name:"total_score",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u603B\u5206"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"\u8BD5\u5377\u603B\u5206\u5FC5\u987B\u4E3A\u6B63\u6570"}]},ae.createElement(ue.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:Le.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"})}))),ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:Le.formatMessage({id:"classroomExams.answeringDuration1",defaultMessage:"\u7B54\u9898\u65F6\u957F"}),labelCol:{span:6},name:"time"},ae.createElement(Oe.Z,{style:{width:"100%"},addonAfter:Le.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"}),placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),ae.createElement(Te.Z,{style:{marginLeft:30,marginBottom:12}},ae.createElement(je.Z,{span:11},ae.createElement(Se.default.Item,{label:Le.formatMessage({id:"classrooms.startTime1",defaultMessage:"\u5F00\u59CB\u65F6\u95F4"}),name:"publish_time",rules:[{required:!0,message:Le.formatMessage({id:"classrooms.pleaseSelectStartTime",defaultMessage:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"})}]},ae.createElement(Ze.default,{placeholder:Le.formatMessage({id:"classroomClassroomExperiments.pleaseSelectPublishTime",defaultMessage:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"}),showTime:{format:"HH:mm"},style:{width:256},disabledDate:Ne=>(0,x.Q8)(Ne),disabledTime:Ne=>(0,x.d0)(Ne),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),ae.createElement(je.Z,{span:13},ae.createElement(Se.default.Item,{label:Le.formatMessage({id:"classrooms.endTime",defaultMessage:"\u7ED3\u675F\u65F6\u95F4"}),labelCol:{span:7},name:"end_time",rules:[{required:!0,message:Le.formatMessage({id:"classrooms.selectEndTime",defaultMessage:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"})}]},ae.createElement(Ze.default,{placeholder:Le.formatMessage({id:"classroomClassroomExperiments.pleaseSelectPublishTime",defaultMessage:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"}),showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Ne=>(0,x.Q8)(Ne,"",qe.getFieldValue("publish_time")),disabledTime:Ne=>(0,x.d0)(Ne,qe.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),ae.createElement(Se.default.Item,{style:{marginBottom:0},label:ae.createElement("div",null,ae.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),ae.createElement("span",null,Le.formatMessage({id:"classrooms.importFile",defaultMessage:"\u5BFC\u5165\u6587\u4EF6"}))),labelCol:{span:4},rules:[{required:!0,message:Le.formatMessage({id:"classroomProgrammingHomework.pleaseEnterHomeworkName",defaultMessage:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"})}]},ae.createElement("div",null,ae.createElement("a",{download:"\u6A21\u7248.xlsx",className:a.Z.downloadbutton,href:oe.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${be.actionTabs.type}`},Le.formatMessage({id:"classrooms.downloadTemplate",defaultMessage:"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"})),ae.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08",Le.formatMessage({id:"classrooms.completeTableInstructions",defaultMessage:"\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9"}),"\uFF09")),ae.createElement(Se.default.Item,{style:{marginBottom:0}},ae.createElement(se,he({},$e),ae.createElement("a",{className:a.Z.downloadbutton,style:{width:126}},Le.formatMessage({id:"competitions.chooseFile",defaultMessage:"\u9009\u62E9\u6587\u4EF6"})),ae.createElement("br",null),ae.createElement("span",{style:{color:"#999999"}},Le.formatMessage({id:"classrooms.uploadInstructions1",defaultMessage:"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A"}),".xls\u3001.xlsx"))))))};Ue.Z=(0,Be.connect)(({classroomList:be})=>({classroomList:be}))(Me)},68:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Be}});var b=z(67294),re=z(68508),Se=z(69677),Pe=z(84567),Ie=z(71577),Fe=z(85418),ue={bottomControlContainer:"bottomControlContainer___woAeo",buttonWrap:"buttonWrap___iRw4K",moveCategory:"moveCategory___oiQqw"},Te=z(52262),je=z(42922),Oe=z(35973),Be=({buttonDataSource:ce,onButtonClick:oe,useBatchStatus:a,allSelect:E,setAllSelect:x,selectArrs:y,onMenuClick:ee,setSeleArr:ne,catalogue:ae,addCatalogue:ie})=>{const le=(0,Oe.useIntl)(),[me,fe]=(0,b.useState)(!1),[pe,he]=(0,b.useState)("");console.log("---",ae);const de=b.createElement("div",{className:ue.moveCategory,onMouseLeave:se=>fe(!1)},b.createElement(re.default,{onClick:ee,style:{maxHeight:300,width:240,overflow:"auto"}},b.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},b.createElement(Se.default,{onChange:se=>{he(se.target.value)}})),ae==null?void 0:ae.map(function(se,Me){var be;if(!(pe!==""&&se.category_name.indexOf(pe)<0))return b.createElement(b.Fragment,null,b.createElement(re.default.Item,{className:"multi-llipsis1e",key:se.category_id,title:se.category_name},se.category_name),(be=se==null?void 0:se.third_category)==null?void 0:be.map(De=>b.createElement(re.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:De.category_id,title:De.category_name},De.category_name)))}),ie&&b.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:ie},le.formatMessage({id:"classrooms.newSubdirectory",defaultMessage:"\u65B0\u5EFA\u5B50\u76EE\u5F55"}),"...")));return b.createElement("div",{className:ue.bottomControlContainer},b.createElement("div",null,b.createElement("div",null,b.createElement(Pe.default,{checked:E,onChange:x},le.formatMessage({id:"classrooms.selectAllOnPage",defaultMessage:"\u5168\u9009\u672C\u9875"}),"\uFF08",y.length,"\uFF09")),(0,Te.GJ)()&&ce.map(se=>b.createElement("div",{key:se.name},b.createElement(Ie.ZP,{type:"primary",icon:se.icon,className:ue.buttonWrap,onClick:()=>oe(se)},se.name))),(0,Te.GJ)()&&(ie||ae)&&b.createElement("div",null,b.createElement(Fe.Z,{open:me,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>de,getPopupContainer:se=>se.parentNode},b.createElement("span",{className:"ant-dropdown-link",onMouseEnter:se=>fe(!0)},b.createElement(Ie.ZP,{type:"primary",className:ue.buttonWrap,icon:b.createElement("i",{className:"iconfont icon-yidongmulu"})},b.createElement("span",null,le.formatMessage({id:"classrooms.moveToCatalog",defaultMessage:"\u79FB\u52A8\u5230\u76EE\u5F55"})," ",b.createElement(je.Z,null))))))),b.createElement("div",null,b.createElement(Ie.ZP,{type:"primary",ghost:!0,onClick:()=>{a(!1),ne([])}},le.formatMessage({id:"classrooms.cancelAction",defaultMessage:"\u53D6\u6D88\u64CD\u4F5C"}))))}},92882:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return E}});var b=z(67294),re=z(35973),Se=z(34336),Pe=z(14446),Ie=z(69677),Fe=z(71230),ue=z(15746),Te={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},je=z(27484),Oe=z.n(je),Ze=z(28706),Be=z(26194),ce=z(67294);const{RangePicker:oe}=Se.default,a=({dispatch:x,classroomList:y,onConfirm:ee})=>{const ne=(0,re.useIntl)(),[ae,ie]=(0,b.useState)([]),[le,me]=(0,b.useState)([]),[fe,pe]=(0,b.useState)("");(0,b.useEffect)(()=>{var se;if(y.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Me=y.actionTabs.data;console.log("data",Me);let be=(se=Me==null?void 0:Me.group_name)==null?void 0:se.map((De,Ce)=>{var Le;return{group_id:Me==null?void 0:Me.group_id[Ce],group_name:Me==null?void 0:Me.group_name[Ce],is_admin:Me==null?void 0:Me.is_admin,end_time:Me==null?void 0:Me.end_time,publish_time:Array.isArray(Me==null?void 0:Me.publish_time)?(Le=Me==null?void 0:Me.publish_time)==null?void 0:Le[0]:Me==null?void 0:Me.publish_time}});be&&(ie([...be]),me([...be]))}},[y.actionTabs]);const he=()=>{x({type:"classroomList/setActionTabs",payload:{}}),pe("")},de=se=>{if(se){const Me=le==null?void 0:le.filter(be=>{var De,Ce;return(Ce=(De=be==null?void 0:be.group_name)==null?void 0:De.toLowerCase())==null?void 0:Ce.includes(se==null?void 0:se.toLowerCase())});ie(Me)}else ie(le)};return ce.createElement(Pe.default,{width:980,title:ce.createElement("div",{style:{fontWeight:"bold",display:"flex"}},ce.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",ce.createElement("span",{className:Te.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),ce.createElement(Ie.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:fe,onChange:se=>{pe(se.target.value.trim()),de(se.target.value.trim())}})),centered:!0,maskClosable:!1,open:y.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>he(),onOk:()=>{var se;ee((se=y.actionTabs)==null?void 0:se.index,le),he()}},ce.createElement("div",{className:Te.modal_con},ce.createElement(Fe.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ae==null?void 0:ae.length)>0?ae.map(function(se,Me){var be,De;return ce.createElement(ue.Z,{span:24,key:Me},ce.createElement(Fe.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Me==(ae==null?void 0:ae.length)-1?"0px":"10px"}},ce.createElement("div",{className:Te.multiple_select,title:se.group_name},se.group_name),ce.createElement("div",{className:"ml20"},ce.createElement(oe,{size:"large",ranges:{\u6B64\u523B:[se.publish_time?Oe()(se.publish_time):Oe()(),Oe()()]},allowClear:!1,disabled:(be=y.actionTabs)==null?void 0:be.rangePickerDisabled,style:{width:600},placeholder:[ne.formatMessage({id:"classroomGraphicGroupHomework.publishTime",defaultMessage:"\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"}),ne.formatMessage({id:"classroomGraphicGroupHomework.deadline",defaultMessage:"\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F \u201C\u6309\u65F6\u201D \u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09"})],disabledDate:Ce=>{var Le;return(0,Ze.Q8)(Ce,(Le=y.actionTabs)==null?void 0:Le.disabledDate)},disabledTime:Ce=>(0,Ze.d0)(Ce),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Oe()((0,Ze.U6)(),"HH:mm"),Oe()((0,Ze.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:se.publish_time&&[Oe()(se.publish_time),se.end_time?Oe()(se.end_time):void 0],onChange:(Ce,Le)=>{ae[Me].publish_time=Le[0],ae[Me].end_time=Le[1],ie([...ae]),le.forEach(Ge=>{Ge.group_id===se.group_id&&(Ge.publish_time=Le[0],Ge.end_time=Le[1])}),me([...le])}})),(De=y.actionTabs)!=null&&De.rangePickerDisabled?ce.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):ce.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ae.splice(Me,1),ie([...ae]),le.forEach((Ce,Le)=>{Ce.group_id===se.group_id&&le.splice(Le,1)}),me([...le])}})))}):ce.createElement(Be.Z,null))))};var E=(0,re.connect)(({classroomList:x})=>({classroomList:x}))(a)},69524:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return y}});var b=z(67294),re=z(68508),Se=z(84567),Pe=z(71577),Ie=z(85418),Fe=z(83062),ue=z(11713),Te=z(69677),je={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},Oe=z(52262),Ze=z(53978),Be=z(42922),ce=z(246),oe=z.n(ce),a=z(35973),E=(ee,ne,ae)=>new Promise((ie,le)=>{var me=he=>{try{pe(ae.next(he))}catch(de){le(de)}},fe=he=>{try{pe(ae.throw(he))}catch(de){le(de)}},pe=he=>he.done?ie(he.value):Promise.resolve(he.value).then(me,fe);pe((ae=ae.apply(ee,ne)).next())}),y=({isAdmin:ee,dataSource:ne,batchStatus:ae,SortMenuName:ie,setSortMenuName:le,detailCourseGroupsList:me,onSearch:fe,onBoard:pe,onSort:he,isboard:de,dispatch:se,onBatch:Me,SortMenus:be,isShowMode:De=!1,onModeChange:Ce})=>{const Le=(0,a.useIntl)(),[Ge,qe]=(0,b.useState)(!1),[Je,Re]=(0,b.useState)([]),[He,it]=(0,b.useState)(!0);let[$e,Ne]=(0,b.useState)([]);const[Ye,Xe]=(0,b.useState)(1),[st,ct]=(0,b.useState)(!1),Ct=(0,a.useParams)(),et=gn=>{le(gn.name),he(gn)};(0,b.useEffect)(()=>{de&&Qt()},[de]);const Qt=()=>E(void 0,null,function*(){var gn;if(He&&!st){ct(!0),Xe(Ye+1);const Lt=yield se({type:"classroomList/getCourseGroupsList",payload:{page:Ye,id:Ct.coursesId,limit:20,nonenavigate:!0}});let Ve=[...(Lt==null?void 0:Lt.course_groups)||[]];((gn=Lt==null?void 0:Lt.course_groups)==null?void 0:gn.length)<20&&(it(!1),Ve.push({id:0,name:Le.formatMessage({id:"classrooms.unassignedClass",defaultMessage:"\u672A\u5206\u73ED"})})),ct(!1),Ne([...$e,...Ve])}}),un=b.createElement("section",{className:je.dropmenu},b.createElement("div",{style:{maxHeight:200,overflow:"auto"}},b.createElement(oe(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:gn=>{Qt()},hasMore:He,useWindow:!1},b.createElement(re.default,{style:{width:240,zIndex:10}},(me==null?void 0:me.group_count)>0&&($e==null?void 0:$e.filter(gn=>gn.edit_auth||gn.name===Le.formatMessage({id:"classrooms.unassignedClass",defaultMessage:"\u672A\u5206\u73ED"})).map(function(gn,Lt){return b.createElement(re.default.Item,{key:gn.id},b.createElement(Se.default,{checked:Je.includes(gn.id),value:gn.id,onChange:Ve=>{let nt=Je.indexOf(gn.id);Je.indexOf(gn.id)>-1?Re(Je.filter(at=>at!==gn.id)):Re(Je.concat(gn.id))}},gn.name))}))))),b.createElement("aside",{style:{background:"#fff"}},b.createElement("div",null,b.createElement(Pe.ZP,{type:"link",onClick:()=>{pe(Je)}},Le.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"})),b.createElement(Pe.ZP,{type:"link",onClick:()=>{Re([])}},Le.formatMessage({id:"classrooms.reset",defaultMessage:"\u91CD\u7F6E"}))))),In=ie===Le.formatMessage({id:"classrooms.defaultSort",defaultMessage:"\u9ED8\u8BA4\u6392\u5E8F"});return b.createElement("div",{className:je.searchSortControllerContainer},!!(be!=null&&be.length)&&b.createElement("div",null,b.createElement(Ie.Z,{dropdownRender:()=>b.createElement(re.default,{selectedKeys:[ie]},be.map(gn=>b.createElement(re.default.Item,{key:gn.name,onClick:()=>et(gn)},gn.name)))},b.createElement("div",null,b.createElement("span",{className:`${je.btn} ${In?je.btnSort:""}`},b.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),ie)))),In&&b.createElement(Fe.Z,{title:Le.formatMessage({id:"classrooms.endImmediately",defaultMessage:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167"})+Le.formatMessage({id:"classrooms.endImmediately",defaultMessage:"\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"})+Le.formatMessage({id:"classrooms.endImmediately",defaultMessage:"\u6392\u5217"})},b.createElement("span",{className:je.tips},b.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),De&&b.createElement(ue.default,{defaultValue:"",onChange:Ce,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:Le.formatMessage({id:"classrooms.allExamModes",defaultMessage:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"})},{value:!0,label:Le.formatMessage({id:"classrooms.officialExam",defaultMessage:"\u6B63\u5F0F\u8003\u8BD5"})},{value:!1,label:Le.formatMessage({id:"classrooms.practiceExam",defaultMessage:"\u6A21\u62DF\u8003\u8BD5"})}]}),b.createElement(Te.default.Search,{allowClear:!0,placeholder:Le.formatMessage({id:"classrooms.searchByName",defaultMessage:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),onSearch:fe,style:{width:220,marginLeft:De?"":"auto"}}),(0,Oe.eB)()&&de&&b.createElement(Ie.Z,{dropdownRender:()=>un,open:Ge,onOpenChange:gn=>{qe(gn)}},b.createElement("a",null,Le.formatMessage({id:"classrooms.classDivision",defaultMessage:"\u5206\u73ED"}),Ge?b.createElement(Ze.Z,{style:{marginLeft:6}}):b.createElement(Be.Z,{style:{marginLeft:6}}))))}},15070:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Be}});var b=z(67294),re=z(71230),Se=z(15746),Pe=z(68508),Ie=z(85418),Fe=z(2453),ue=z(83062),Te={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},je=z(35973),Oe=z(52262),Be=({isLoading:ce,addText:oe,tabDataSource:a,isAdmin:E,dispatch:x,classroomList:y,type:ee,isExercise:ne,defaultSelectedKeys:ae,onTabMenuClick:ie,getDropdownMenu:le,showControlButton:me,buttonText:fe,buttonIcon:pe="icon-tianjiadaohang",extraNode:he,user:de,onButtonClick:se,isModelUser:Me})=>{var be,De,Ce,Le,Ge;const qe=(0,je.useIntl)(),Je=(0,je.useParams)();return b.createElement("div",{className:Te.tabMenuContainer},b.createElement(re.Z,null,b.createElement(Se.Z,{flex:"1"},b.createElement(Pe.default,{onSelect:Re=>ce?{}:ie(Re),mode:"horizontal",selectedKeys:ae},a.map(Re=>b.createElement(Pe.default.Item,{key:typeof Re.index=="number"?Re.index:Re.id},b.createElement("span",{className:"c-grey-666"},Re.name),Re.total!==void 0&&E&&b.createElement("span",{className:"c-grey-999 ml20"},Re.total||0))))),E&&ne&&b.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{x({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),E&&b.createElement(Se.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},ne&&b.createElement(Ie.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>b.createElement(Pe.default,null,b.createElement(Pe.default.Item,{key:1,onClick:()=>{var Re;if((0,Oe.Rm)()&&!((Re=y.AssistantObject.exercise)!=null&&Re.can_download)){Fe.ZP.warning(qe.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}x({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:ee,exportType:"exercise",category_id:Je.categoryId}})}},qe.formatMessage({id:"classroomClassroomExperiments.studentGrades",defaultMessage:"\u5B66\u751F\u6210\u7EE9"})),b.createElement(Pe.default.Item,{key:3,onClick:()=>{var Re;if((0,Oe.Rm)()&&!((Re=y.AssistantObject.exercise)!=null&&Re.can_download)){Fe.ZP.warning(qe.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}je.history.push(`/classrooms/${Je==null?void 0:Je.coursesId}/exportlist/exercise_score,export_exercise_users`)}},qe.formatMessage({id:"classrooms.historicalExport",defaultMessage:"\u5386\u53F2\u5BFC\u51FA"})))},b.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},b.createElement("span",{style:{color:"#666666",cursor:"pointer"}},b.createElement("i",{className:"iconfont icon-xiazai6"})))),b.createElement("div",{className:Te.control},b.createElement("div",{className:Te.extra},he),me&&(fe==qe.formatMessage({id:"classrooms.addLiveBroadcast",defaultMessage:"\u6DFB\u52A0\u76F4\u64AD"})?b.createElement(Ie.Z,{menu:{items:(De=(be=[{label:b.createElement("div",{onClick:()=>{se("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Me&&{label:b.createElement("div",{onClick:()=>{se("\u5934\u6B4C")}},qe.formatMessage({id:"classrooms.liveBroadcast",defaultMessage:"\u76F4\u64AD"})),key:"2",show:!0}])==null?void 0:be.filter(Re=>Re==null?void 0:Re.show))==null?void 0:De.map(Re=>({label:Re==null?void 0:Re.label,key:Re==null?void 0:Re.key}))}},b.createElement("span",{className:Te.selectBtn},b.createElement("span",null,b.createElement("i",{className:`iconfont ${pe}`})),b.createElement("span",null,fe))):b.createElement("span",{onClick:se,style:{cursor:"pointer"},className:Te.selectBtn},b.createElement("span",null,b.createElement("i",{className:`iconfont ${pe}`})),b.createElement("span",null,fe))),!!le&&b.createElement(Ie.Z,{disabled:((Ce=de==null?void 0:de.userInfo)==null?void 0:Ce.user_status)===2,className:"ml10",dropdownRender:le},b.createElement("span",{className:((Le=de==null?void 0:de.userInfo)==null?void 0:Le.user_status)===2?Te.selectBtn1:Te.selectBtn},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-tianjiadaohang"})),b.createElement(ue.Z,{title:((Ge=de==null?void 0:de.userInfo)==null?void 0:Ge.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},b.createElement("span",null,oe||qe.formatMessage({id:"classroomExams.createTestPaper",defaultMessage:"\u521B\u5EFA\u8BD5\u5377"})))))))))}},77784:function(ut,Ue,z){"use strict";z.r(Ue),z.d(Ue,{default:function(){return kl}});var b=z(52810),re=z(67294),Se=z(35973),Pe=z(14446),Ie=z(68508),Fe=z(2453),ue=z(46303),Te=z(28452),je=z(30291),Oe=z(71577),Ze=z(84567),Be=z(27484),ce=z.n(Be),oe=z(52262),a=z(28706),E=z(26194),x=z(33170),y=z(66368),ee=z(22150),ne=z(83062),ae=z(31795),ie=z(11713),le=z(69677),me=z(246),fe=z.n(me),pe=z(45224),he={flex_box_center:"flex_box_center___aIYEA",flex_space_between:"flex_space_between___hCKPx",flex_box_vertical_center:"flex_box_vertical_center___K6UJb",flex_box_center_end:"flex_box_center_end___BVN_k",flex_box_column:"flex_box_column___S4apM",bg:"bg___Pox5v",containerTitle:"containerTitle___laevg",containerDesc:"containerDesc___IIMRX",menus:"menus___atKNl",listItem:"listItem___zDBVK",info:"info___k52wj",title:"title___zq7AS",titleLeft:"titleLeft___efDI2",titleRight:"titleRight___uQt6L",acitons:"acitons___Vg6al",move:"move___Ga0E4",hideHeadCheckbox:"hideHeadCheckbox___pLoYs",moveCategory:"moveCategory___eZPjj",tabSearch:"tabSearch___IlcNp",warpModal:"warpModal___hzRTF",modalColumn:"modalColumn___Rcl4F",modalRow:"modalRow___rzx2r",sup:"sup___cAGuY",name:"name___flQya"},de=z(78207),se=z(85688),Me=z(34562),be=z(20670),De=z(96332),Ce=z(93686),Le=z(67294),Ge=Object.defineProperty,qe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,$e=(te,ye,ge)=>ye in te?Ge(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Ne=(te,ye)=>{for(var ge in ye||(ye={}))He.call(ye,ge)&&$e(te,ge,ye[ge]);if(Re)for(var ge of Re(ye))it.call(ye,ge)&&$e(te,ge,ye[ge]);return te},Ye=(te,ye)=>qe(te,Je(ye)),Xe=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const{TabPane:st}=y.default,ct=({classroomList:te,exercise:ye,loading:ge,dispatch:We})=>{var Jt;const mt=(0,Se.useIntl)(),vt=(0,Se.useParams)(),An=(0,Se.useLocation)(),[dt]=ee.default.useForm(),{brankList:Wt}=ye;let[ir,fr]=(0,re.useState)(!0),[nr,Mo]=(0,re.useState)(!1);const[ba,Vo]=(0,re.useState)("myself");let[ta,so]=(0,re.useState)([]),[eo,qa]=(0,re.useState)([]),[Rr,vr]=(0,re.useState)(),[_o,rr]=(0,re.useState)([]);const cr=(0,re.useRef)(null),[pr,ga]=(0,re.useState)(!1),[Jo,la]=(0,re.useState)(""),[ht,Zl]=(0,re.useState)(""),[Xo,Un]=(0,re.useState)(!1),[ar,$r]=(0,re.useState)({}),tn=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(bt,Ra,Pr)=>Le.createElement("div",{style:{display:"flex",alignItems:"center"}},Le.createElement(ne.Z,{title:bt},Le.createElement("div",{title:bt,className:he.name},bt)),(Ra==null?void 0:Ra.high_resources_consume)&&Le.createElement(be.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:bt=>Le.createElement(ne.Z,{title:bt},Le.createElement("span",null,bt))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:bt=>bt?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(bt,Ra)=>Le.createElement("a",{href:bt?`/randompaper/detail/${Ra.id}`:`/paperlibrary/see/${Ra.id}?defaultActiveKey=1`,target:"_blank>"}," ",mt.formatMessage({id:"classrooms.preview",defaultMessage:"\u9884\u89C8"}))}],[sa,Po]=(0,re.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,re.useEffect)(()=>{ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(ur(),rr([]),Xa())},[ye.actionTabs.key]);const Xa=()=>Xe(void 0,null,function*(){const bt=yield We({type:"paperlibrary/getTeachGroupData"});qa(bt)}),Gt=bt=>{const Ra=parseInt(bt);return isNaN(Ra)?"":Ra},ur=()=>Xe(void 0,null,function*(){var bt,Ra;if(ir){++sa.page,fr(!1);const Pr=yield We({type:"exercise/getBrankList",payload:Ye(Ne({},sa),{search:(bt=sa.search)==null?void 0:bt.trim()})});ta=Pr!=null&&Pr.object_list?[...ta.concat(Pr==null?void 0:Pr.object_list)]:ta,sa.filter==="public"?vr(Pr.is_teacher):vr(!0),((Ra=Pr.object_list)==null?void 0:Ra.length){cr.current.scrollTop=0,ta=[],sa.page=0,sa.group_id=bt,ir=!0,rr([]),Po(Ne({},sa)),ur()},Nl={selectedRowKeys:_o,onChange:bt=>{rr(bt)},type:"radio"},Hr=()=>{Po(Ne({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),so([]),fr(!0),Vo("myself"),We({type:"exercise/setActionTabs",payload:{}}),Mo(!1)},[Xl,Zr,Ot,wt]=(0,se.P)(),nn=bt=>Xe(void 0,null,function*(){let Ra=!1;ta.forEach(dr=>{_o.includes(dr.id)&&(Ra=dr.is_random)});const Pr=bt.map(dr=>({shixun_id:dr.id,is_use:dr.is_use,is_copy:dr.is_copy}));if(!Ra){Un(!0);const dr=yield We({type:"exercise/saveBanks",payload:{course_id:vt.coursesId,category_id:(vt==null?void 0:vt.categoryId)||null,object_type:"examination_bank",bank_id:_o,shixuns_info:Pr}});Un(!1),(dr==null?void 0:dr.status)===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),We({type:"classroomList/getClassroomExercisesList",payload:Ne({},ye.actionTabs.params)}),We({type:"classroomList/getClassroomLeftMenus",payload:{id:vt.coursesId}}),la(`/classrooms/${vt.coursesId}/exercise/${dr.exercise_id}/detail?random=${dr.is_random}&tabs=3`),Zl(`/classrooms/${vt.coursesId}/exercise/add/${dr.exercise_id}?random=${dr.is_random}&type=2`),ga(!0),Fe.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),Zr(),Hr());return}Un(!0),setTimeout(()=>{Un(!1)},500),We({type:"exercise/setActionTabs",payload:{}});let ol=1,Cl=Pe.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:Le.createElement("div",{className:he.modalColumn},Le.createElement("div",{className:he.modalRow},Le.createElement("sup",{className:he.sup},"*"),Le.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),Le.createElement(ae.Z,{parser:Gt,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ol,onChange:dr=>{ol=dr;const wi=document.getElementById("model_error");ol<1||ol>50?wi.style.display="block":wi.style.display="none"}})),Le.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Hr,onOk:()=>Xe(void 0,null,function*(){if(ol<1||ol>50){const wi=document.getElementById("model_error");return wi.style.display="block",Promise.reject()}Cl.update({cancelButtonProps:{disabled:!0}});const dr=yield We({type:"exercise/saveBanks",payload:{course_id:vt.coursesId,object_type:"examination_bank",bank_id:_o,shixuns_info:Pr,num:ol}});Cl.update({cancelButtonProps:{disabled:!1}}),dr&&dr.status===0?((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Pe.default.destroyAll(),We({type:"classroomList/getClassroomExercisesList",payload:Ne({},ye.actionTabs.params)}),Hr(),Zr(),Fe.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(Hr(),Zr())})})});return Le.createElement(Le.Fragment,null,Le.createElement(Pe.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:mt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:"\u53D6\u6D88",confirmLoading:nr,bodyStyle:{minHeight:200},wrapClassName:he.warpModal,onOk:()=>Xe(void 0,null,function*(){var bt;if(!_o.length){Fe.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}Mo(!0);let Ra=!1,Pr=!1;if(ta.forEach(Cl=>{_o.includes(Cl.id)&&Cl.need_authorize&&(Ra=Cl.need_authorize),_o.includes(Cl.id)&&(Pr=Cl.is_random)}),Ra){(0,de.rX)(!1,"\u8BE5\u8BD5\u5377\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");return}let ol=yield(0,Ce.Tr)({id:`${_o[0]}`,course_id:(bt=te.detailTopBanner)==null?void 0:bt.course_id,type:"examination_bank"});Mo(!1),(ol==null?void 0:ol.student_count)===0?nn([]):$r(ol)}),onCancel:Hr},Le.createElement(y.default,{activeKey:ba,onTabClick:bt=>Xe(void 0,null,function*(){cr.current.scrollTop=0,ta=[],ba!==bt&&rr([]),Vo(bt),sa.page=0,sa.filter=bt,sa.group_id=null,ir=!0,ur()})},Le.createElement(st,{tab:Le.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Le.createElement(st,{tab:Le.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Le.createElement(st,{tab:Le.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Le.createElement("div",{className:he.tabSearch},ba==="teacher"&&Le.createElement(ie.default,{value:sa.group_id,onChange:Bl,size:"middle",style:{width:200,marginRight:30}},Le.createElement(ie.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(Jt=eo==null?void 0:eo.groups)==null?void 0:Jt.map(bt=>Le.createElement(ie.default.Option,{key:bt==null?void 0:bt.group_id,value:bt==null?void 0:bt.group_id},bt==null?void 0:bt.name))),Le.createElement(le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:sa.search,onChange:bt=>{sa.search=bt.target.value,Po(Ne({},sa))},onSearch:bt=>{cr.current.scrollTop=0,ta=[],sa.page=0,ir=!0,rr([]),bt&&(0,Me.tk)({name:bt,copywriting:bt,position:"Exercise"}),ur()}})),Le.createElement("div",{ref:cr,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!Rr&&ba==="public"&&Le.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Le.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"),Le.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),Le.createElement(fe(),{initialLoad:!1,pageStart:0,loadMore:()=>{ur()},hasMore:ir,useWindow:!1},ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&Rr&&Le.createElement(pe.Z,{className:he.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:ta,onRow:bt=>({onClick:()=>{rr([bt==null?void 0:bt.id])}}),resColumns:tn,rowSelection:Nl})))),Le.createElement(Pe.default,{title:mt.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:pr,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Le.createElement("div",null,Le.createElement(Oe.ZP,{onClick:()=>{ga(!1),Se.history.push(ht)}},"\u4FEE\u6539\u8BD5\u5377"),Le.createElement(Oe.ZP,{type:"primary",onClick:()=>{Se.history.push(Jo),ga(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{ga(!1)}},Le.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")),Le.createElement(De.Z,{resdata:ar,type:"exercise",okloading:Xo,oktext:(ar==null?void 0:ar.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:bt=>{nn(bt)}}),Le.createElement(se.Z,{inPaper:!0,visible:Xl,onCancel:Zr,onOk:nn,renderData:Ot,modalType:"multiple",type:"examination_bank"}))};var Ct=(0,Se.connect)(({exercise:te,loading:ye,classroomList:ge})=>({exercise:te,loading:ye,classroomList:ge}))(ct),et=z(57953),Qt=z(71230),un=z(78045),In=z(34336),gn=z(47897),Lt=z(15835),Ve=z(14375),nt=z(88181),at=z(15746),rt=z(9430),jt=z(80150),yt={cstuModal:"cstuModal___aXQ_6",removeStyle:"removeStyle___fT_EI",bottom:"bottom___yocae",yes:"yes___Iw504",no:"no___yeWHC",Onerow:"Onerow___hvTnk",searchMember:"searchMember____guvA",searchMemberHeader:"searchMemberHeader___NdQj2"},Bn=z(96622),It=z(67294),Fn=Object.defineProperty,Zn=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Cn=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,gt=(te,ye,ge)=>ye in te?Fn(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,wn=(te,ye)=>{for(var ge in ye||(ye={}))Cn.call(ye,ge)&>(te,ge,ye[ge]);if(Pt)for(var ge of Pt(ye))jn.call(ye,ge)&>(te,ge,ye[ge]);return te},ft=(te,ye)=>Zn(te,_e(ye)),xt=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const At=({visible:te,setVisible:ye,onK:ge,selectKeys:We,selectRows:Jt,appointStudent:mt,modalParams:vt,courseId:An})=>{const dt=(0,Se.useIntl)(),Wt=(0,Se.useParams)(),[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1),[ba,Vo]=(0,re.useState)([]),[ta,so]=(0,re.useState)([]),[eo,qa]=(0,re.useState)([]),[Rr,vr]=(0,re.useState)("all"),[_o,rr]=(0,re.useState)("all");let[cr,pr]=(0,re.useState)(!0);const[ga,Jo]=(0,re.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[la,ht]=(0,re.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),Zl={selectedRowKeys:ta,columnWidth:40,hideSelectAll:!0,onSelect:(tn,sa,Po)=>{let Xa=!0;for(let Gt=0;Gt{if(tn&&Po.length>0){Po.forEach(Xa=>{ta.push(Xa.user_id),eo.push(Xa)}),so([...ta]),qa([...eo]);return}if(!tn&&Po.length>0){let Xa=[],Gt=[];const ur=new Set(Po),Bl=new Set(ta),Nl=new Set(eo);Xa=[...Bl].filter(Hr=>[...ur].every(Xl=>Xl.user_id!==Hr)),Gt=[...Nl].filter(Hr=>[...ur].every(Xl=>Xl.user_id!==Hr.user_id)),so([...Xa]),qa([...Gt])}}};(0,re.useEffect)(()=>{te&&We&&(so([...We]),qa(Jt))},[te,We]),(0,re.useEffect)(()=>{te&&(!mt&&vt?la.status=vt:la.status=null,ht(wn({},la)),Un())},[te,mt,vt]);const Xo=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(tn,sa,Po)=>It.createElement("span",{style:{color:"#333"}},Po+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(tn,sa,Po)=>It.createElement("span",null,tn)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(tn,sa,Po)=>It.createElement("span",{style:{color:"#666"}},tn)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(tn,sa)=>It.createElement("span",null,tn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(tn,sa)=>It.createElement("span",null,tn||"--")},{title:dt.formatMessage({id:"classrooms.status",defaultMessage:"\u72B6\u6001"}),dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(tn,sa)=>It.createElement("span",null,tn)}].filter(tn=>vt===1||vt===2?tn.title!==dt.formatMessage({id:"classrooms.status",defaultMessage:"\u72B6\u6001"}):!0),Un=()=>xt(void 0,null,function*(){var tn,sa,Po;Mo(!0);const Xa=yield(0,x.ZP)(`/api/exercises/${Wt.categoryId||An}/wait_make_up_students.json`,{method:"get",params:ft(wn({},la),{keywords:(tn=la==null?void 0:la.keywords)==null?void 0:tn.trim()})});if(Xa.status===0){const Gt=((Po=(sa=Xa==null?void 0:Xa.data)==null?void 0:sa.all_course_groups)==null?void 0:Po.map(ur=>({value:ur==null?void 0:ur.id,label:ur==null?void 0:ur.name})))||[];Jo([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...Gt]),Vo(Xa.data)}Mo(!1)}),ar=()=>{la.page=1,la.status=null,la.course_group_id=null,la.keywords="",vr("all"),rr("all"),so([]),qa([]),ht(wn({},la)),mt&&ge(ta==null?void 0:ta.length,ta,eo)},$r=()=>{la.page=1,la.status=null,la.course_group_id=null,la.keywords="",ht(wn({},la)),vr("all"),rr("all"),so([]),qa([]),ye(!1)};return It.createElement(Pe.default,{centered:!0,className:yt.cstuModal,title:vt===1?"\u7F3A\u8003\u5B66\u751F":vt===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:te,width:1200,footer:null,onCancel:()=>{$r()}},It.createElement(Qt.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},It.createElement(Qt.Z,null,It.createElement(at.Z,null,It.createElement(ie.default,{size:"large",value:Rr,style:{width:200,marginRight:20},onChange:tn=>{vr(tn),tn==="all"?la.course_group_id=null:la.course_group_id=tn,la.page=1,ht(wn({},la)),Un()},options:ga})),mt&&It.createElement(at.Z,null,It.createElement(ie.default,{size:"large",value:_o,style:{width:200},onChange:tn=>{rr(tn),tn==="all"?la.status=null:la.status=tn,la.page=1,ht(wn({},la)),Un()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),It.createElement(at.Z,null,It.createElement(jt.t7,{style:{width:300,marginLeft:15},value:la.keywords,allowClear:!0,onChange:tn=>{la.keywords=tn,la.page=1,ht(wn({},la)),Un()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),It.createElement(Qt.Z,{align:"middle",className:"mb30"},It.createElement(at.Z,{span:14},It.createElement("div",{className:"flexd-table-header"},It.createElement(rt.default,{pagination:!1,dataSource:[],columns:Xo,rowSelection:mt?Zl:null,rowKey:tn=>tn.user_id})),It.createElement("div",null,It.createElement(rt.default,{rowSelection:mt?Zl:null,columns:Xo,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:tn=>tn.user_id,loading:nr,dataSource:ba==null?void 0:ba.exercise_users,onChange:(tn,sa,Po)=>{la.page=tn==null?void 0:tn.current,la.limit=tn==null?void 0:tn.pageSize,Po!=null&&Po.order?(la.sort_by=Po==null?void 0:Po.field,la.direction=(Po==null?void 0:Po.order)==="ascend"?"asc":"desc"):(la.sort_by=null,la.direction=null),ht(wn({},la)),Un()},pagination:!1}))),It.createElement(at.Z,{span:1},It.createElement("img",{src:Bn,style:{marginLeft:10}})),It.createElement(at.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},It.createElement("div",{className:yt.searchMember,style:{width:550}},It.createElement(Qt.Z,{className:yt.searchMemberHeader},It.createElement(at.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),It.createElement(at.Z,{flex:"110px"},"\u5B66\u53F7"),It.createElement(at.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),It.createElement("div",{style:{overflow:"auto",height:390}},eo==null?void 0:eo.map((tn,sa)=>It.createElement(Qt.Z,{key:sa,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},It.createElement(at.Z,{flex:"100px"},tn.user_name),It.createElement(at.Z,{flex:"110px"},tn.student_id),It.createElement(at.Z,{flex:"120px",style:{marginLeft:5}},tn.user_group_name),It.createElement(at.Z,{style:{marginLeft:10}},It.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{qa(eo.filter(Po=>Po.user_id!=tn.user_id)),so(ta.filter(Po=>Po!=tn.user_id))}})))))))),!(vt===1||vt===2)&&It.createElement("div",{className:yt.bottom},It.createElement(Oe.ZP,{className:yt.no,onClick:()=>{$r()}},"\u53D6\u6D88"),It.createElement(Oe.ZP,{loading:ir,type:"primary",onClick:()=>{ar()}},dt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}))))};var zt=(0,Se.connect)(({})=>({}))(At),cn={contentInterval:"contentInterval___X53PP",numberInput:"numberInput___WtIey",minorRuleText:"minorRuleText___CPyNm",failedList:"failedList___OOvHs",name:"name___PGVi5",publish:"publish___BGtTv"},Yt=z(67294),Aa=Object.defineProperty,ca=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,Ha=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,to=(te,ye,ge)=>ye in te?Aa(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,ko=(te,ye)=>{for(var ge in ye||(ye={}))wa.call(ye,ge)&&to(te,ge,ye[ge]);if(Ha)for(var ge of Ha(ye))xn.call(ye,ge)&&to(te,ge,ye[ge]);return te},Qa=(te,ye)=>ca(te,fa(ye)),jo=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});function Io(te,ye){const ge=[];for(let We=te;We{let ye=new Date;const ge=ce()(te).format("HH");if(ce()(te).isSame(ce()(ye),"day")){const We=ce()(ye).format("HH"),Jt=ce()(ye).format("mm");return{disabledHours:()=>Io(0,24).splice(1,We*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",ge,We),ce()(te).isSame(ce()(ye),"hour")&&ge<=We?Io(0,60).splice(0,Jt):Io(60,60))}}else if(ce()(te).isSame(ce()(),"day")){const We=ce()().format("HH"),Jt=ce()().format("mm");return{disabledHours:()=>Io(0,24).splice(0,We),disabledMinutes:()=>ge<=We?Io(0,Jt):Io(60,60)}}else return!1},dn=({exercise:te,dispatch:ye})=>{var ge,We,Jt,mt,vt,An,dt,Wt,ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr;const cr=(0,Se.useIntl)(),pr=(0,Se.useParams)(),[ga]=ee.default.useForm(),[Jo,la]=(0,re.useState)(1),[ht,Zl]=(0,re.useState)([]),[Xo,Un]=(0,re.useState)(!0),[ar,$r]=(0,re.useState)([]),[tn,sa]=(0,re.useState)(!0),[Po,Xa]=(0,re.useState)(!1),{workSetting:Gt}=te,[ur,Bl]=(0,re.useState)(!1),[Nl,Hr]=(0,re.useState)([]),[Xl,Zr]=(0,re.useState)([]),[Ot,wt]=(0,re.useState)(!1),[nn,bt]=(0,re.useState)(!1),[Ra,Pr]=(0,re.useState)(!1),[ol,Cl]=(0,re.useState)(null),[dr,wi]=(0,re.useState)(1),[Xu,Lu]=(0,re.useState)({}),[Es,qu]=(0,re.useState)({}),[Os,$u]=(0,re.useState)(!1);(0,re.useEffect)(()=>{var Ia;if(te.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(Za(),Iu(),te.actionTabs.type===2)){const Co=(Ia=te.actionTabs)==null?void 0:Ia.unified_setting;sa(Co)}},[te.actionTabs]),(0,re.useEffect)(()=>{var Ia,Co,Ka,qo,La,mo,_r;(Ia=Gt==null?void 0:Gt.exercise)!=null&&Ia.publish_time&&ga.setFieldsValue({publish_time:ce()((Co=Gt==null?void 0:Gt.exercise)==null?void 0:Co.publish_time)}),(Ka=Gt==null?void 0:Gt.exercise)!=null&&Ka.end_time&&ga.setFieldsValue({end_time:ce()((qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.end_time)}),ga.setFieldsValue({exercise_type:(La=Gt==null?void 0:Gt.exercise)==null?void 0:La.exercise_type,simulate_exercise_num:(mo=Gt==null?void 0:Gt.exercise)==null?void 0:mo.simulate_exercise_num}),wi((_r=Gt==null?void 0:Gt.exercise)==null?void 0:_r.exercise_type)},[te]);const Ht=Ia=>{var Co;const Ka=ga.getFieldValue("publish_time");if(!Ka||(Co=Gt==null?void 0:Gt.exercise)!=null&&Co.publish_time)return;let qo;Ia===1?qo=ce()(Ka).add(120,"minutes"):qo=ce()(Ka).add(7,"days"),ga.setFieldsValue({end_time:qo})},Za=Ia=>jo(void 0,null,function*(){var Co,Ka;Un(!0);const qo=yield(0,Lt.N3)({coursesId:pr.coursesId,check_ids:[...((Co=te.actionTabs.selectArrs)==null?void 0:Co.map(mo=>Number(mo)))||[]]});console.log(qo,"res");const La=((Ka=qo==null?void 0:qo.course_info)==null?void 0:Ka.map((mo,_r)=>Qa(ko({},mo),{key:mo.course_group_id,title:mo.course_group_name,name:mo.course_group_name,disabled:!!mo.is_published})))||[];if((qo==null?void 0:qo.status)!==-1){Zl([...La]);const mo=ce()();ga.setFieldsValue({publish_time:mo}),(ga.getFieldValue("exercise_type")||1)===1?ga.setFieldsValue({end_time:ce()(mo).add(120,"minutes")}):ga.setFieldsValue({end_time:ce()(mo).add(7,"days")})}Un(!1)});(0,re.useEffect)(()=>{var Ia,Co,Ka,qo,La,mo;if((Ia=Gt==null?void 0:Gt.exercise)!=null&&Ia.is_appoint_user){const _r=((Ka=(Co=Gt==null?void 0:Gt.exercise)==null?void 0:Co.all_exercise_users)==null?void 0:Ka.map(Lo=>Lo.user_id))||[];Hr([..._r])}wt((qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.is_appoint_user),bt((La=Gt==null?void 0:Gt.exercise)==null?void 0:La.is_miss_exam_user),Pr((mo=Gt==null?void 0:Gt.exercise)==null?void 0:mo.is_no_passing_user)},[Gt]),(0,re.useEffect)(()=>{var Ia,Co,Ka,qo,La,mo,_r,Lo;(Co=(Ia=te==null?void 0:te.actionTabs)==null?void 0:Ia.selectArrs)!=null&&Co[0]&&te.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&ye({type:"exercise/getWorkSetting",payload:{categoryId:(qo=(Ka=te==null?void 0:te.actionTabs)==null?void 0:Ka.selectArrs)==null?void 0:qo[0],category:(mo=(La=te==null?void 0:te.actionTabs)==null?void 0:La.selectArrs)==null?void 0:mo[0],coursesId:(Lo=(_r=te==null?void 0:te.actionTabs)==null?void 0:_r.params)==null?void 0:Lo.id}})},[(ge=te==null?void 0:te.actionTabs)==null?void 0:ge.selectArrs]);const Hl=()=>jo(void 0,null,function*(){var Ia,Co,Ka,qo,La,mo,_r;const Lo=ko({},ga.getFieldsValue()),Ss=ce()(ce()(Lo.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),Cc=ce()(ce()(Lo.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(Ss,Ss,33),Cc<=Ss){Fe.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((ar==null?void 0:ar.length)<=0&&!tn&&ht.length>0&&!((Ia=Gt==null?void 0:Gt.exercise)!=null&&Ia.is_make_up_exercise)){Fe.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const Lc=ht.map(Dl=>Dl.key),xi={check_ids:[...((Co=te.actionTabs.selectArrs)==null?void 0:Co.map(Dl=>Number(Dl)))||[]],end_time:ce()(Lo.end_time).format("YYYY-MM-DD HH:mm"),publish_time:ce()(Lo.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:ar.map(Dl=>Dl.course_group_id),unified_setting:!ar.length,exercise_type:Lo.exercise_type,simulate_exercise_num:Lo.simulate_exercise_num};if(((Ka=te.actionTabs.selectArrsAll)==null?void 0:Ka.length)>0&&te.actionTabs.type===1&&(xi.check_ids=[...((La=(qo=te.actionTabs.selectArrsAll)==null?void 0:qo.filter(Dl=>!Dl.high_resources_consume||Dl.high_resources_consume_permission))==null?void 0:La.map(Dl=>Number(Dl==null?void 0:Dl.id)))||[]]),(mo=Gt==null?void 0:Gt.exercise)!=null&&mo.is_make_up_exercise){if(Ot&&Nl.length<=0||!Ot&&!(nn||Ra)){Fe.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}xi.is_appoint_user=Ot,xi.is_miss_exam_user=nn,xi.is_no_passing_user=Ra,Ot?xi.make_up_exercise_users=Nl.map(Dl=>({user_id:Dl})):xi.make_up_exercise_user=[]}let{is_locked:xc,open_camera:Fc,screen_open:bc,login_restrict:Bc,ip_bind:Dc,ip_limit:hc,is_random:Ec,id:Sc,identity_verify:wc,open_phone_video_recording:Mc}=Gt==null?void 0:Gt.exercise;if(te.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(xc||Fc||bc||Bc||Dc||hc=="pub"||hc=="inner"||wc||Mc)&&Lo.exercise_type==2){if(ye({type:"exercise/setActionTabs",payload:{}}),te.actionTabs.type==2){let Dl=Pe.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:cr.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,content:Yt.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",Yt.createElement("span",{style:{color:"#FA6400"}}," ",(0,a.hi)(Gt==null?void 0:Gt.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>jo(void 0,null,function*(){var ys;$u(!0);let Gu=yield(0,Ce.Tr)({exercise_ids:[...((ys=te.actionTabs.selectArrs)==null?void 0:ys.map(As=>Number(As)))||[]],course_id:pr.coursesId,type:"exercise"});if((Gu==null?void 0:Gu.student_count)===0){if((yield qi(xi))&&te.actionTabs.isRouter){Dl.destroy(),Se.history.push(`/classrooms/${pr.coursesId}/exercise/${Sc}/detail?random=${Ec}&tabs=3&childrenTabs=2`);return}ye({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else qu(xi),Lu(Gu)}),onCancel:()=>{Dl.destroy(),$u(!1),qi(xi)}})}else{let Dl=Pe.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:cr.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,content:Yt.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>jo(void 0,null,function*(){var ys;$u(!0);let Gu=yield(0,Ce.Tr)({exercise_ids:[...((ys=te.actionTabs.selectArrs)==null?void 0:ys.map(As=>Number(As)))||[]],course_id:pr.coursesId,type:"exercise"});if((Gu==null?void 0:Gu.student_count)===0){if((yield qi(xi))&&te.actionTabs.isRouter){Se.history.push(`/classrooms/${pr.coursesId}/exercise/${Sc}/detail?random=${Ec}&tabs=3&childrenTabs=2`);return}ye({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else qu(xi),Lu(Gu)})})}return}let Qs=yield(0,Ce.Tr)({exercise_ids:[...((_r=te.actionTabs.selectArrs)==null?void 0:_r.map(Dl=>Number(Dl)))||[]],course_id:pr.coursesId,type:"exercise"});(Qs==null?void 0:Qs.student_count)===0?qi(xi):(qu(xi),Lu(Qs))}),Tl=()=>{var Ia;let Co=[...(Ia=te.actionTabs.selectArrsAll)==null?void 0:Ia.filter(Ka=>Ka.high_resources_consume&&!Ka.high_resources_consume_permission)];(Co==null?void 0:Co.length)>0&&te.actionTabs.type===1&&Pe.default.confirm({centered:!0,icon:null,footer:null,width:560,title:cr.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),closable:!0,content:Yt.createElement("div",null,Yt.createElement("div",{className:cn.tipcontent},Yt.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",Co==null?void 0:Co.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),Yt.createElement("div",{className:"mt20 mb20"},Co==null?void 0:Co.map(Ka=>Yt.createElement("div",{className:cn.failedList,key:Ka.id},Yt.createElement("div",{className:cn.name},Ka==null?void 0:Ka.exercise_name),Yt.createElement("div",{className:cn.publish,onClick:()=>{(0,a.xg)(`/classrooms/${pr.coursesId}/exercise/${Ka.id}/detail?random=${Ka.is_random}`)}},cr.formatMessage({id:"classrooms.publish",defaultMessage:"\u53D1\u5E03"})))))))})},qi=Ia=>jo(void 0,null,function*(){var Co,Ka,qo;if(te.actionTabs.type===1){let _r=[...(Co=te.actionTabs.selectArrsAll)==null?void 0:Co.filter(Lo=>Lo.high_resources_consume&&!Lo.high_resources_consume_permission)];if((_r==null?void 0:_r.length)==te.actionTabs.selectArrsAll.length){ye({type:"exercise/setActionTabs",payload:{}}),Tl();return}}let La=!1;return Xa(!0),(yield(0,x.ZP)(`/api/courses/${pr.coursesId}/exercises/publish.json`,{method:"post",body:Ia})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Iu(),Fe.ZP.success("\u53D1\u5E03\u6210\u529F"),ye({type:"exercise/setActionTabs",payload:{}}),(Ka=te==null?void 0:te.actionTabs)!=null&&Ka.cb?(qo=te==null?void 0:te.actionTabs)==null||qo.cb():ye({type:"classroomList/getClassroomExercisesList",payload:ko({},te.actionTabs.params)}),La=!0,te.actionTabs.type===1&&Tl()),Xa(!1),La}),Iu=()=>{la(1),Zl([]),$r([])},is=(Ia,Co,Ka)=>{Ia<=0?Fe.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(Hr(Co),Zr(Ka),Bl(!1))};return Yt.createElement(Pe.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:te.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:Hl,confirmLoading:Po||Xo,onCancel:()=>{Iu(),ye({type:"exercise/setActionTabs",payload:{}})}},Yt.createElement(et.Z,{spinning:Xo},ht&&Yt.createElement(ee.default,{form:ga},!!((We=te==null?void 0:te.actionTabs)!=null&&We.disabled)&&Yt.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},Yt.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:Ve.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((Jt=Gt==null?void 0:Gt.exercise)!=null&&Jt.is_make_up_exercise)&&Yt.createElement(Yt.Fragment,null,Yt.createElement(Qt.Z,null,Yt.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},Yt.createElement("span",{style:{color:"red",marginRight:3}},"*"),cr.formatMessage({id:"classrooms.examMode",defaultMessage:"\u8003\u8BD5\u6A21\u5F0F"})),Yt.createElement(ee.default.Item,{name:"exercise_type"},Yt.createElement(un.ZP.Group,{disabled:((mt=Gt==null?void 0:Gt.exercise)==null?void 0:mt.exercise_status)>1,onChange:Ia=>{wi(Ia.target.value),Ht(Ia.target.value)}},Yt.createElement(un.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),Yt.createElement(un.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),dr==2&&Yt.createElement(Qt.Z,{className:`${cn.contentInterval}`},Yt.createElement("span",{className:`${cn.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),Yt.createElement(ee.default.Item,{name:"simulate_exercise_num"},Yt.createElement(ae.Z,{className:cn.numberInput,style:{width:145},precision:0,size:"middle",disabled:((vt=Gt==null?void 0:Gt.exercise)==null?void 0:vt.exercise_status)>1,min:1,max:999})),Yt.createElement("span",null,"\u6B21",Yt.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),Yt.createElement(Qt.Z,null,Yt.createElement("span",{className:"mr10 mt5"},Yt.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),Yt.createElement(ee.default.Item,{name:"publish_time"},Yt.createElement(In.default,{style:{width:170},disabledDate:Ia=>Ia&&Ia<=ce()().subtract(0,"days"),disabledTime:hr,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ce()((0,a.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),Yt.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),Yt.createElement(ee.default.Item,{name:"end_time"},Yt.createElement(In.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ce()((0,a.U6)(),"HH:mm")},disabledDate:Ia=>Ia&&Ia{var Ka,qo,La,mo,_r;if(wt(Ia),Ia)if((Ka=Gt==null?void 0:Gt.exercise)!=null&&Ka.is_appoint_user){const Lo=(La=(qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.all_exercise_users)==null?void 0:La.map(Ss=>Ss.user_id);Hr([...Lo])}else Hr([]),bt(!1),Pr(!1);else bt((mo=Gt==null?void 0:Gt.exercise)==null?void 0:mo.is_miss_exam_user),Pr((_r=Gt==null?void 0:Gt.exercise)==null?void 0:_r.is_no_passing_user)},disabled:((dt=Gt==null?void 0:Gt.exercise)==null?void 0:dt.exercise_status)!==1}),Yt.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!Ot&&Yt.createElement(Qt.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},Yt.createElement(Ze.default,{checked:nn,disabled:((Wt=Gt==null?void 0:Gt.exercise)==null?void 0:Wt.exercise_status)!==1||((ir=Gt==null?void 0:Gt.exercise)==null?void 0:ir.miss_exam_count)<=0,onChange:Ia=>{bt(Ia.target.checked)}},Yt.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),Yt.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{Cl(1),wt(!1),Bl(!0)}},"\uFF08",`${(fr=Gt==null?void 0:Gt.exercise)==null?void 0:fr.miss_exam_count}\u4EBA`,"\uFF09"),Yt.createElement(Ze.default,{checked:Ra,disabled:((nr=Gt==null?void 0:Gt.exercise)==null?void 0:nr.exercise_status)!==1||((Mo=Gt==null?void 0:Gt.exercise)==null?void 0:Mo.no_passing_count)<=0,onChange:Ia=>{Pr(Ia.target.checked)}},Yt.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),Yt.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Cl(2),wt(!1),Bl(!0)}},"\uFF08",`${(ba=Gt==null?void 0:Gt.exercise)==null?void 0:ba.no_passing_count}\u4EBA`,"\uFF09")),Ot&&Yt.createElement(Qt.Z,{className:"mt20",style:{paddingLeft:"90px"}},Yt.createElement(Oe.ZP,{type:"primary",ghost:!0,disabled:((Vo=Gt==null?void 0:Gt.exercise)==null?void 0:Vo.exercise_status)!==1,onClick:()=>{Bl(!0),Cl(void 0)}},Yt.createElement("span",null,Yt.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),Yt.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),Yt.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${Nl.length||0} \u4EBA`,"\uFF09"))),te.actionTabs.type===2&&!((ta=Gt==null?void 0:Gt.exercise)!=null&&ta.is_make_up_exercise)&&Yt.createElement(Qt.Z,{style:{marginBottom:"10px"}},Yt.createElement("span",{className:"mr10"},Yt.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),Yt.createElement(un.ZP.Group,{value:tn,onChange:Ia=>{sa(Ia.target.value),$r([])}},Yt.createElement(un.ZP,{disabled:!!((so=te==null?void 0:te.actionTabs)!=null&&so.disabled)||ht.some(Ia=>Ia==null?void 0:Ia.is_published)||!((eo=te==null?void 0:te.actionTabs)!=null&&eo.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),Yt.createElement(un.ZP,{disabled:ht.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),ht.length<=0&&te.actionTabs.type===2&&!((qa=Gt==null?void 0:Gt.exercise)!=null&&qa.is_make_up_exercise)&&Yt.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"'),(te.actionTabs.type===1||!tn)&&!((Rr=Gt==null?void 0:Gt.exercise)!=null&&Rr.is_make_up_exercise)&&ht.length>0&&Yt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Yt.createElement("span",{style:{flex:1}},Yt.createElement(Ze.default,{checked:ar.length===ht.length,onChange:Ia=>{ar.length===ht.length?$r([]):$r(ht)}},"\u5168\u9009")),Yt.createElement("span",{style:{width:16}}),Yt.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",ar.length||0,"\u4E2A\u5206\u73ED")),(te.actionTabs.type===1||!tn)&&!((vr=Gt==null?void 0:Gt.exercise)!=null&&vr.is_make_up_exercise)&&ht.length>0&&Yt.createElement(nt.Z,{data:ht,selectedRowKeys:ar,setSelectedRowKeys:$r})),Yt.createElement(zt,{visible:ur,setVisible:Bl,onK:is,selectKeys:Nl,selectRows:Xl,appointStudent:Ot,modalParams:ol,courseId:pr.categoryId||((rr=(_o=te==null?void 0:te.actionTabs)==null?void 0:_o.selectArrs)==null?void 0:rr[0])})),Yt.createElement(De.Z,{resdata:Xu,type:"exercisepush",okloading:Po,oktext:(Xu==null?void 0:Xu.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ia=>jo(void 0,null,function*(){var Co,Ka,qo;Xa(!0);let La=yield(0,x.ZP)(`/api/courses/${pr.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((Co=te.actionTabs.selectArrs)==null?void 0:Co.map(mo=>Number(mo)))||[]]}});if(Xa(!1),(La==null?void 0:La.status)===0)if(Os){let mo=yield qi(Es);if(Pe.default.destroyAll(),mo&&te.actionTabs.isRouter){Se.history.push(`/classrooms/${pr.coursesId}/exercise/${(Ka=Gt==null?void 0:Gt.exercise)==null?void 0:Ka.id}/detail?random=${(qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.is_random}&tabs=3&childrenTabs=2`);return}ye({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else qi(Es)})}))};var On=(0,Se.connect)(({exercise:te})=>({exercise:te}))(dn),pa=Object.defineProperty,Ua=Object.defineProperties,oa=Object.getOwnPropertyDescriptors,ya=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,ul=Object.prototype.propertyIsEnumerable,Ft=(te,ye,ge)=>ye in te?pa(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,pt=(te,ye)=>{for(var ge in ye||(ye={}))sr.call(ye,ge)&&Ft(te,ge,ye[ge]);if(ya)for(var ge of ya(ye))ul.call(ye,ge)&&Ft(te,ge,ye[ge]);return te},Et=(te,ye)=>Ua(te,oa(ye)),Mn=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});function $n(te,ye){const ge=[];for(let We=te;We{let ye=new Date;const ge=ce()(te).format("HH");if(ce()(te).isSame(ce()(ye),"day")){const We=ce()(ye).format("HH"),Jt=ce()(ye).format("mm");return{disabledHours:()=>$n(0,24).splice(1,We*1-1),disabledMinutes:()=>ce()(te).isSame(ce()(ye),"hour")&&ge<=We?$n(0,60).splice(0,Jt):$n(60,60)}}else if(ce()(te).isSame(ce()(),"day")){const We=ce()().format("HH"),Jt=ce()().format("mm");return{disabledHours:()=>$n(0,24).splice(0,We),disabledMinutes:()=>ge<=We?$n(0,Jt):$n(60,60)}}else return!1},or=({exercise:te,dispatch:ye})=>{var ge;const We=(0,Se.useIntl)(),Jt=(0,Se.useParams)(),[mt]=ee.default.useForm(),[vt,An]=(0,re.useState)(1),[dt,Wt]=(0,re.useState)([]),[ir,fr]=(0,re.useState)(!0),[nr,Mo]=(0,re.useState)([]),[ba,Vo]=(0,re.useState)(!0),[ta,so]=(0,re.useState)(!1);(0,re.useEffect)(()=>{te.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&eo()},[te.actionTabs]);const eo=vr=>Mn(void 0,null,function*(){var _o,rr;fr(!0);const cr=yield ye({type:"exercise/getEndGroups",payload:Et(pt({},Jt),{check_ids:[...((_o=te.actionTabs.selectArrs)==null?void 0:_o.map(ga=>Number(ga)))||[]]})}),pr=(rr=cr==null?void 0:cr.course_info)==null?void 0:rr.map((ga,Jo)=>Et(pt({},ga),{key:ga.course_group_id,title:ga.course_group_name,name:ga.course_group_name,disabled:!!ga.is_published}));cr&&(cr!=null&&cr.course_info)&&(Wt([...pr]),mt.setFieldsValue({end_time:ce()(ce()(new Date((0,a.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),fr(!1)}),qa=()=>Mn(void 0,null,function*(){var vr,_o,rr,cr;const pr=pt({},mt.getFieldsValue());if((nr==null?void 0:nr.length)<=0&&dt.length>0&&!((vr=te.actionTabs)!=null&&vr.unified_setting)){Fe.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}so(!0);const ga={check_ids:[...((_o=te.actionTabs.selectArrs)==null?void 0:_o.map(la=>Number(la)))||[]],group_ids:nr};ba||(ga.end_time=ce()(pr.end_time).format("YYYY-MM-DD HH:mm")),ga.group_ids=nr.map(la=>la.course_group_id),(yield(0,x.ZP)(`/api/courses/${Jt.coursesId}/exercises/end_exercise.json`,{method:"post",body:ga})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),ye({type:"exercise/setActionTabs",payload:{}}),(rr=te==null?void 0:te.actionTabs)!=null&&rr.cb?(cr=te==null?void 0:te.actionTabs)==null||cr.cb():ye({type:"classroomList/getClassroomExercisesList",payload:pt({},te.actionTabs.params)})),so(!1)}),Rr=()=>{An(1),Wt([]),Mo([]),Vo(!0)};return re.createElement(Pe.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:te.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:qa,width:680,confirmLoading:ta||ir,onCancel:()=>{Rr(),ye({type:"exercise/setActionTabs",payload:{}})}},re.createElement(et.Z,{spinning:ir},dt&&re.createElement(ee.default,{form:mt},re.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},re.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:Ve.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),re.createElement(Qt.Z,{className:"mt20 mb10"},re.createElement("span",{className:"mr10"},re.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),re.createElement(un.ZP.Group,{value:ba,onChange:vr=>{Vo(vr.target.value),Mo([])}},re.createElement(un.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),re.createElement(un.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),re.createElement(ee.default.Item,{name:"end_time",style:{marginTop:-3,visibility:ba?"hidden":"visible"}},re.createElement(In.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ce()((0,a.U6)(),"HH:mm")},disabledDate:vr=>vr&&vr0&&!((ge=te.actionTabs)!=null&&ge.unified_setting)&&re.createElement(Qt.Z,{style:{marginBottom:"10px"}},re.createElement("span",{className:"mr10"},re.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),re.createElement("div",null,dt.length>0&&re.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},re.createElement("span",{style:{flex:1}},re.createElement(Ze.default,{checked:nr.length===dt.length,onChange:vr=>{nr.length===dt.length?Mo([]):Mo(dt)}},"\u5168\u9009")," "),re.createElement("span",{style:{width:16}}),re.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",nr.length||0,"\u4E2A\u5206\u73ED")),re.createElement(nt.Z,{data:dt,selectedRowKeys:nr,setSelectedRowKeys:Mo}))))))};var Fo=(0,Se.connect)(({exercise:te})=>({exercise:te}))(or),Gn=Object.defineProperty,Sr=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,ha=(te,ye,ge)=>ye in te?Gn(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,gr=(te,ye)=>{for(var ge in ye||(ye={}))hl.call(ye,ge)&&ha(te,ge,ye[ge]);if(Sr)for(var ge of Sr(ye))Lr.call(ye,ge)&&ha(te,ge,ye[ge]);return te},Nt=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const En=({exercise:te,dispatch:ye})=>{const ge=(0,Se.useIntl)(),We=(0,Se.useParams)();return re.createElement(Pe.default,{centered:!0,title:ge.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:te.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:ge.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:"\u53D6\u6D88",onOk:()=>Nt(void 0,null,function*(){(yield(0,x.ZP)(`/api/courses/${We.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...te.actionTabs.selectArrs]}})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),ye({type:"exercise/setActionTabs",payload:{}}),ye({type:"classroomList/getClassroomExercisesList",payload:gr({},te.actionTabs.params)}))}),onCancel:()=>{ye({type:"exercise/setActionTabs",payload:{}})}},re.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",re.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var en=(0,Se.connect)(({exercise:te})=>({exercise:te}))(En),Sn=z(63037),na=Object.defineProperty,fn=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,xa=(te,ye,ge)=>ye in te?na(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Xn=(te,ye)=>{for(var ge in ye||(ye={}))ia.call(ye,ge)&&xa(te,ge,ye[ge]);if(fn)for(var ge of fn(ye))Kt.call(ye,ge)&&xa(te,ge,ye[ge]);return te},Oa=(te,ye)=>{var ge={};for(var We in te)ia.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&fn)for(var We of fn(te))ye.indexOf(We)<0&&Kt.call(te,We)&&(ge[We]=te[We]);return ge},xo=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const an=te=>{var ye=te,{exercise:ge,dispatch:We,user:Jt}=ye,mt=Oa(ye,["exercise","dispatch","user"]),vt,An;const dt=(0,Se.useIntl)(),Wt=(0,Se.useParams)(),[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1),ba=(0,re.useRef)(null);(0,re.useEffect)(()=>{var ta,so;if(ge.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,oe.j5)()){Mo(!0);return}const eo={hasNum:0,noHasNum:0};(so=(ta=ge==null?void 0:ge.actionTabs)==null?void 0:ta.selectArrsAll)==null||so.map(qa=>{var Rr;qa.author_login===((Rr=Jt.userInfo)==null?void 0:Rr.login)?++eo.hasNum:++eo.noHasNum}),eo.noHasNum>0?Pe.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:re.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",re.createElement("span",{className:"c-blue"},eo.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",re.createElement("span",{className:"c-red"},eo.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",re.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:()=>{Vo()}}):Mo(!0)}else Mo(!1)},[ge.actionTabs.key]);const Vo=()=>{We({type:"exercise/setActionTabs",payload:{}})};return re.createElement(Pe.default,{centered:!0,title:dt.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:nr,okText:dt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:"\u53D6\u6D88",confirmLoading:ir,destroyOnClose:!0,onOk:()=>xo(void 0,null,function*(){var ta;if((ta=ba.current)!=null&&ta.onVerify())return;fr(!0);const so=yield(0,x.ZP)(`/api/courses/${Wt.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...ge.actionTabs.selectArrs]}});fr(!1),so.status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),Fe.ZP.success("\u5220\u9664\u6210\u529F"),We({type:"exercise/setActionTabs",payload:{}}),We({type:"classroomList/getClassroomExercisesList",payload:Xn({},ge.actionTabs.params)}),We({type:"classroomList/getClassroomLeftMenus",payload:Xn({},ge.actionTabs.params)}))}),onCancel:()=>{We({type:"exercise/setActionTabs",payload:{}})}},!((vt=ge==null?void 0:ge.actionTabs)!=null&&vt.status)||!["\u672A\u5F00\u59CB"].includes((An=ge==null?void 0:ge.actionTabs)==null?void 0:An.status)?re.createElement(re.Fragment,null,re.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u8003\u8BD5\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"),re.createElement(Sn.Z,{ref:ta=>ba.current=ta})):re.createElement("p",null,"\u5220\u9664\u8BD5\u5377\u4F1A\u540C\u6B65\u5220\u9664\u8BD5\u5377\u4E2D\u7684\u6240\u6709\u8003\u8BD5\uFF0C\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F"))};var Er=(0,Se.connect)(({exercise:te,user:ye})=>({exercise:te,user:ye}))(an),kr=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,jl=(te,ye)=>{var ge={};for(var We in te)El.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&kr)for(var We of kr(te))ye.indexOf(We)<0&&Cr.call(te,We)&&(ge[We]=te[We]);return ge},Qn=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Va=te=>{var ye=te,{exercise:ge,dispatch:We}=ye,Jt=jl(ye,["exercise","dispatch"]);const mt=(0,Se.useIntl)(),vt=(0,Se.useParams)();return vt.id=vt.coursesId,(0,re.useEffect)(()=>{ge.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>Qn(void 0,null,function*(){(yield(0,x.ZP)(`/api/courses/${vt.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ge.actionTabs.selectArrs]}})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),Fe.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),We({type:"exercise/setActionTabs",payload:{}})}))},[ge.actionTabs.key]),re.createElement(re.Fragment,null)};var $a=(0,Se.connect)(({exercise:te})=>({exercise:te}))(Va),Fa=z(55241),Wo={flex_box_center:"flex_box_center___NMFRx",flex_space_between:"flex_space_between___i7LoA",flex_box_vertical_center:"flex_box_vertical_center___NUJyY",flex_box_center_end:"flex_box_center_end___JGVs2",flex_box_column:"flex_box_column___Han0X",bg:"bg___xTQcX",containerTitle:"containerTitle___wfDxe",containerDesc:"containerDesc___BlZJT",tablestyle:"tablestyle___cIMKp",listItem:"listItem___teS92",info:"info___I8amz",title:"title___Ng3Cg",titleLeft:"titleLeft___dxjAr",titleRight:"titleRight___bo2N2",flexBox:"flexBox___G5iQZ",iconV:"iconV___sw5ZY",acitons:"acitons___ADyk9",moveCategory:"moveCategory___cxRgz",name:"name___mRHCb",categoryName:"categoryName___sGz21",schedule:"schedule___vRew6",fnSign:"fnSign___kCGts",spanSize:"spanSize___ZvQiA",classromediv:"classromediv___zHcjq",glow:"glow___zqQTK",popover:"popover___FlwhL",dot:"dot___saRu_",moni:"moni___sRpNk",authorized:"authorized___XYNsR"},jr=Object.defineProperty,xl=Object.getOwnPropertySymbols,wl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,ui=(te,ye,ge)=>ye in te?jr(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,di=(te,ye)=>{for(var ge in ye||(ye={}))wl.call(ye,ge)&&ui(te,ge,ye[ge]);if(xl)for(var ge of xl(ye))Ml.call(ye,ge)&&ui(te,ge,ye[ge]);return te};const Ki=te=>React.createElement("svg",di({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD 2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fill:"#979797",fillRule:"nonzero"},React.createElement("path",{d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234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4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",Gl=Object.defineProperty,Jr=Object.getOwnPropertySymbols,Fi=Object.prototype.hasOwnProperty,uu=Object.prototype.propertyIsEnumerable,Mi=(te,ye,ge)=>ye in te?Gl(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Qi=(te,ye)=>{for(var ge in ye||(ye={}))Fi.call(ye,ge)&&Mi(te,ge,ye[ge]);if(Jr)for(var ge of Jr(ye))uu.call(ye,ge)&&Mi(te,ge,ye[ge]);return te};const hi=te=>React.createElement("svg",Qi({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#229BFF",d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z",fill:"#0152d9"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z",fill:"#0152d9"}))));var Ui="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA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U2G6/sPeSOntWeNpYpLmQ/XObrBP7g/XU3ikL2v8AIAf8etAcp/JNxxxyddj4b5J3GSmF6y3TheG4qWOHGPTX2rosmtKoiMdkJxA1t++BGa0idji4YDQlSF8z4PY6FkfxlWWUG259vIPiGwcfoKU4gNDAssOZcTIRWhaOQUU35lHZIQpWuOwciOqDV7h9zmNb0sGHZHpivpY0fNdbZJkd7HLJcaxq83fSwZ4nmeSMI0D5XJfGcETmxyFjSUUrRtL2NI5/d9h0Jp2HSOBuxSTIzMxvbbIsgzLL8tPCgrSMkyzKDnHW9qtcNLPCDHIqQwQjNIIVkQ7FfNI9zl59TWeBD11jTqR1tIvrKda2d/e3kmOOIW3vLiR7E6asQTyjjNeqDGMKFKrWCariPcqrz5O1tik2blTb5tPGx2rgU9VjmPUEWSWYGmoKSN61fBSYZgiSnsRSlIZRBRzyuRo2tRE52nlB5NeOOObkDzCzPhmY5j2OVqo5FTvpevk3v+nNcnStciqioqKiqi87CieF7hkarXNVUVFTp16flP8AUX7oqfRU+qc4DIwzGkG5HNciKiovX7/hf8VPsqL0VFRUVEVOYc6+c+OOOOOOOOOOOOOOOOOOOOOOOObjjzFTMhhY573uRqI1FXrtevk7r+mtanaucqoiIiqqoic7BCeZ7RjarnOVERETr06/lf8AET7qq/RE+q84EIwLHEI5GtaiqqqvT7fhP9VfsiJ1VVVERFVef//Z",kt=z(12971),qt=z(66911),Pn=z(7703),tt=z(97917),bn=z(69429),ea=Object.defineProperty,Pa=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,on=(te,ye,ge)=>ye in te?ea(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,va=(te,ye)=>{for(var ge in ye||(ye={}))_t.call(ye,ge)&&on(te,ge,ye[ge]);if(Pa)for(var ge of Pa(ye))pn.call(ye,ge)&&on(te,ge,ye[ge]);return te};const za=te=>React.createElement("svg",va({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m2.288 4.95 5.456 1.725 3.085-1.016c.176-.058.176.039.013.167-.686.544-1.286 1.24-1.613 2.076a4.679 4.679 0 0 0 2.414 2.542l-1.313 1.311-2.748.863-5.294-1.763V4.95ZM7.661 0l7.502 2.936-7.502 2.692L.73 3.192V8.14h-.7V2.946L0 2.936 7.661 0Z",fill:"#739EFF"}),React.createElement("g",{fill:"#FF9D18",fillRule:"nonzero"},React.createElement("path",{d:"m11.381 9.3.949-.948a1.305 1.305 0 0 1-.097-.498c0-.762.623-1.385 1.384-1.385.18 0 .346.035.499.097l.713-.713a3.6 3.6 0 0 0-1.212-.215c-1.453 0-2.852.921-3.323 2.216A3.281 3.281 0 0 0 11.381 9.3Z"}),React.createElement("path",{d:"M12.787 7.854v.041l.872-.872h-.042a.833.833 0 0 0-.83.83Zm3.066-1.447.674-.674.738-.738-.394-.395-.795.795-4.629 4.629-1.097 1.097.394.395.664-.665.567-.566.438-.438c.384.147.793.222 1.204.222 1.447 0 2.86-.92 3.33-2.215-.208-.568-.602-1.067-1.094-1.447Zm-2.236 2.831c-.173 0-.346-.035-.498-.097l.464-.464h.041c.457 0 .83-.373.83-.83v-.042l.465-.464c.048.166.083.34.083.513 0 .761-.623 1.384-1.385 1.384Z"}))));var no="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMz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48L2c+PC9zdmc+",Zt=z(67294),vo=Object.defineProperty,zo=Object.defineProperties,Zo=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,Jn=(te,ye,ge)=>ye in te?vo(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,_a=(te,ye)=>{for(var ge in ye||(ye={}))Rn.call(ye,ge)&&Jn(te,ge,ye[ge]);if(hn)for(var ge of hn(ye))Vn.call(ye,ge)&&Jn(te,ge,ye[ge]);return te},yo=(te,ye)=>zo(te,Zo(ye)),Yo=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Oo=({v:te,k:ye,selectArrs:ge,setSelectArrs:We,dispatch:Jt,params:mt,classroomList:vt,batchStatus:An,manageAllGroup:dt,user:Wt})=>{var ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr,cr,pr,ga,Jo;const la=(0,Se.useIntl)(),[ht,Zl]=(0,re.useState)([]),[Xo,Un]=(0,re.useState)(!1),ar=(0,re.useRef)(),$r=(0,re.useRef)();var tn=!1;const sa="YYYY-MM-DD",Po=ce()("2020-11-15",sa);function Xa(){return Yo(this,null,function*(){console.log(mt,222);let Ot=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/group_use_list.json`,{method:"get",params:yo(_a({},mt),{id:te.id})});Zl((Ot==null?void 0:Ot.groups)||[])})}const Gt=()=>Pe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Zt.createElement(Zt.Fragment,null,"\u5E73\u53F0\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")});te!=null&&te.appraise_label&&(tn=!0);const ur=(Ot,wt=!1)=>{var nn;Se.history.push(`/classrooms/${mt.coursesId}/exercisenotice/${Ot.id}/users/${(nn=(0,oe.eY)())==null?void 0:nn.login}`)},Bl=[{title:la.formatMessage({id:"classrooms.class",defaultMessage:"\u73ED\u7EA7"}),dataIndex:"name",key:"name"},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",width:100,filters:[{text:"\u672A\u5F00\u59CB",value:1},{text:"\u8003\u8BD5\u4E2D",value:2},{text:"\u5DF2\u622A\u6B62",value:3}],onFilter:(Ot,wt)=>wt.exercise_status===Ot,render:(Ot,wt)=>Zt.createElement("div",null,Ot===1&&Zt.createElement("span",null,Zt.createElement("i",{className:Wo.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),Ot===2&&Zt.createElement("span",null,Zt.createElement("i",{className:Wo.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),Ot===3&&Zt.createElement("span",null,Zt.createElement("i",{className:Wo.dot,style:{background:"#FC2D6B"}}),"\u5DF2\u622A\u6B62"))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:mt.order_by==="publish_time"?mt.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:mt.order_by==="end_time"?mt.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(Ot,wt)=>wt.exercise_status===1?"-":Zt.createElement("span",null,Ot,"/",wt.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(Ot,wt)=>wt.exercise_status===1?"-":Ot===0?Zt.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},Ot):Zt.createElement("a",{onClick:()=>(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te==null?void 0:te.id}/detail?random=false&exercise_group_id=${wt.course_group_id}`)},Ot)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(Ot,wt)=>wt.exercise_status===1?Zt.createElement("img",{style:{cursor:"not-allowed"},src:sl}):Zt.createElement(ne.Z,{title:"\u8BC4\u9605"},Zt.createElement("a",{onClick:()=>(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te==null?void 0:te.id}/detail?random=false&exercise_group_id=${wt.course_group_id}`)},Zt.createElement("img",{src:Ui})))}],Nl=Ot=>{if(tn)return Zt.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(Ot!=null&&Ot.includes("\u672A\u5F00\u59CB"))return Zt.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(Ot!=null&&Ot.includes("\u8003\u8BD5\u4E2D"))return Zt.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(Ot!=null&&Ot.includes("\u5DF2\u622A\u6B62"))return Zt.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(Ot!=null&&Ot.includes("\u5BFC\u5165"))return Zt.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},Hr=()=>{const Ot=(te==null?void 0:te.simulate_exercise_num)-(te==null?void 0:te.user_simulate_num);return Ot>=0?Ot:0},Xl=(Ot=te)=>{var wt,nn,bt;if(Ot!=null&&Ot.is_encrypt){Jt({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:Ot==null?void 0:Ot.id,phone:(wt=Wt==null?void 0:Wt.userInfo)==null?void 0:wt.phone,login:(nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.login}});return}(bt=Wt==null?void 0:Wt.userInfo)!=null&&bt.phone?Jt({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:Ot==null?void 0:Ot.id}}):Jt({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},Zr=Ot=>{var wt,nn,bt;if(((wt=Wt==null?void 0:Wt.userInfo)==null?void 0:wt.login)!==(te==null?void 0:te.author_login)){Fe.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}Jt({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:te==null?void 0:te.id,phone:(nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.phone,login:(bt=Wt==null?void 0:Wt.userInfo)==null?void 0:bt.login,onFinish:Ot}})};return Zt.createElement("div",{className:Wo.listItem,onClick:Ot=>{const wt=()=>{(!(0,oe.GJ)()||(0,oe.GJ)()&&$r.current&&!$r.current.contains(Ot.target))&&(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()}},(0,oe.GJ)()&&Zt.createElement("span",{ref:$r},Zt.createElement(Ze.default,{checked:ge.includes(te.id),value:te.id,style:{padding:"10px"},onClick:Ot=>{Ot.stopPropagation()},disabled:(te==null?void 0:te.is_encrypt)||(te==null?void 0:te.is_make_up_exercise),onChange:Ot=>{let wt=ge.indexOf(te.id);ge.indexOf(te.id)>-1?We(ge.filter(nn=>nn!==te.id)):We(ge.concat(te.id))}})),Zt.createElement("div",{className:Wo.info},Zt.createElement("div",{className:Wo.title},Zt.createElement("div",{className:Wo.titleLeft,style:{marginRight:15}},Nl(te==null?void 0:te.exercise_tips),(te==null?void 0:te.is_make_up_exercise)&&Zt.createElement("img",{src:Ir,width:44,height:24,style:{marginRight:10}}),Zt.createElement(ne.Z,{title:te.exercise_name},Zt.createElement("span",{className:Wo.name},te.exercise_name)),(te==null?void 0:te.high_resources_consume)&&!(te!=null&&te.high_resources_consume_permission)&&Zt.createElement(be.Z,{type:"exercise",style:{marginLeft:10}}),(te==null?void 0:te.high_resources_consume)&&(te==null?void 0:te.high_resources_consume_permission)&&Zt.createElement("span",{className:Wo.authorized},"\u5DF2\u6388\u6743"),((ir=te==null?void 0:te.exercise_tips)==null?void 0:ir.includes("\u5DF2\u622A\u6B62"))&&((fr=vt==null?void 0:vt.detailTopBanner)==null?void 0:fr.forbid_end_exercise)&&Zt.createElement(ne.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},Zt.createElement("img",{src:no,width:20,className:"ml10"})),!te.is_public&&(0,oe.GJ)()&&Zt.createElement(ne.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},Zt.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(te==null?void 0:te.exercise_type)==2&&Zt.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:Wo.moni},Zt.createElement("img",{src:kt,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((nr=te==null?void 0:te.exercise_tips)==null?void 0:nr.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&Zt.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),((Mo=te==null?void 0:te.exercise_tips)==null?void 0:Mo.includes("\u5DF2\u622A\u6B62"))&&((ba=te==null?void 0:te.exercise_tips)==null?void 0:ba.includes("\u672A\u63D0\u4EA4"))&&Zt.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),(te==null?void 0:te.is_encrypt)&&Zt.createElement(ne.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",Zt.createElement("img",{src:bn,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),Zt.createElement("div",{className:Wo.titleRight,onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault()}},(te==null?void 0:te.appraise_setting)&&Zt.createElement("span",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:()=>Yo(void 0,null,function*(){const Ot=()=>Yo(void 0,null,function*(){Jt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const wt=yield(0,x.ZP)(`/api/exercises/${te.id}/create_appraise_students.json`,{method:"get"});Jt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te.id}/centralizeReview/${wt==null?void 0:wt.login}`)});if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()})},Zt.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),Zt.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&(!(te!=null&&te.is_make_up_exercise)||(te==null?void 0:te.is_make_up_exercise)&&(te==null?void 0:te.exercise_status)===1&&(te==null?void 0:te.allow_create_make_up))&&Zt.createElement(qt.Z,{tips:te==null?void 0:te.open_appraise},Zt.createElement("span",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:()=>{const Ot=()=>{var wt,nn,bt;if(((wt=Wt==null?void 0:Wt.userInfo)==null?void 0:wt.user_status)===2){(0,de.Rd)();return}if((0,oe.Rm)()&&!((bt=(nn=vt==null?void 0:vt.AssistantObject)==null?void 0:nn.exercise)!=null&&bt.can_publish)){Fe.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((te==null?void 0:te.exercise_question_count)===0){Fe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let Ra=()=>{Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[te.id],unified_setting:te.unified_setting,params:mt,disabled:te.exercise_status!==1,type:2,manage_all_group:dt,isRouter:!0}})};te!=null&&te.high_resources_consume&&!(te!=null&&te.high_resources_consume_permission)?Jt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:mt.coursesId,type:"exercise",type_id:te.id,name:te.exercise_name,fn:()=>{Jt({type:"classroomList/getClassroomExercisesList",payload:_a({},mt)}),Ra()}}}):Ra()};if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()}},Zt.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),Zt.createElement("div",null,"\u53D1\u5E03"))),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&!(0,a._m)()&&te.assistant_auth&&Zt.createElement("span",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:Ot=>{Ot.stopPropagation();const wt=()=>{var nn,bt;if((0,oe.Rm)()&&!((bt=(nn=vt==null?void 0:vt.AssistantObject)==null?void 0:nn.exercise)!=null&&bt.can_preview)){Fe.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 Ra=ce()(te.created_at,sa);ce()(Po).diff(ce()(Ra),"days")>0&&(te!=null&&te.is_random)?Gt():te!=null&&te.is_random?(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/random/preview?random=${te.is_random}`):(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}&tabs=2`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()}},Zt.createElement("i",{className:"iconfont icon-yulan3"}),Zt.createElement("div",null,"\u9884\u89C8")),(0,oe.RV)()&&Zt.createElement("span",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:()=>{const Ot=()=>{(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}`)};if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()}},Zt.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),Zt.createElement("div",null,"\u8BE6\u60C5")),(0,oe.GJ)()&&!(0,a._m)()&&Zt.createElement(Fa.Z,{placement:"bottom",content:Zt.createElement("div",{className:Wo.popover},!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&Zt.createElement("p",{onClick:Ot=>Yo(void 0,null,function*(){const wt=()=>{(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}&tabs=3`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u89C4\u5219\u8BBE\u7F6E"),(te==null?void 0:te.exercise_tips.includes("\u5BFC\u5165"))&&Zt.createElement("p",{onClick:Ot=>Yo(void 0,null,function*(){const wt=()=>{Jt({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:te==null?void 0:te.exercise_name,id:te==null?void 0:te.id,type:"hack"}})};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u8865\u5145\u6210\u7EE9"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&te.is_random&&te.assistant_auth&&Zt.createElement("p",{onClick:Ot=>{Ot.stopPropagation();const wt=()=>{const nn=ce()(te.created_at,sa);ce()(Po).diff(ce()(nn),"days")>0&&(te!=null&&te.is_random)?Gt():(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/random/edit?type=settings`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()}},"\u7F16\u8F91\u8003\u8BD5"),Zt.createElement("p",{onClick:Ot=>Yo(void 0,null,function*(){const wt=()=>{var nn;Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[te.id],selectArrsAll:[te],params:mt,status:(nn=te==null?void 0:te.exercise_tips)==null?void 0:nn[0]}})};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u5220\u9664\u8BD5\u5377"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&Zt.createElement("p",{onClick:()=>{const Ot=()=>{Jt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[te.id],params:mt}})};if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((Vo=te==null?void 0:te.exercise_tips)==null?void 0:Vo.includes("\u672A\u5F00\u59CB"))&&(te==null?void 0:te.author_login)===((ta=Wt==null?void 0:Wt.userInfo)==null?void 0:ta.login)&&Zt.createElement("p",{onClick:Ot=>Yo(void 0,null,function*(){Xl(te)})}," ",te!=null&&te.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&((0,oe.GJ)()||((eo=(so=vt==null?void 0:vt.AssistantObject)==null?void 0:so.exercise)==null?void 0:eo.can_stop))&&![1,3].includes(te==null?void 0:te.exercise_status)&&Zt.createElement("p",{onClick:Ot=>Yo(void 0,null,function*(){const wt=()=>{var nn,bt;if((0,oe.Rm)()&&!((bt=(nn=vt==null?void 0:vt.AssistantObject)==null?void 0:nn.exercise)!=null&&bt.can_stop)){Fe.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}Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[te.id],params:mt,unified_setting:te.unified_setting}})};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u7ED3\u675F\u8003\u8BD5"))},Zt.createElement("span",{onClick:Ot=>Ot.stopPropagation(),className:Wo.flexBox,style:{cursor:"default"}},Zt.createElement("i",{className:"iconfont icon-gengduo4"}),Zt.createElement("div",null,"\u66F4\u591A"))),(0,oe.dE)()&&Zt.createElement(Zt.Fragment,null,!!te.off_limits&&Zt.createElement(ne.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${te==null?void 0:te.last_times} ${la.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},Zt.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(te==null?void 0:te.exercise_type)==1&&!te.off_limits&&te.current_status===0&&te.exercise_status>1&&!((qa=te.exercise_tips)!=null&&qa.includes("\u5DF2\u622A\u6B62"))&&Zt.createElement("a",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault(),ur(te,!0)},href:""},Zt.createElement("i",{className:"iconfont icon-jixukaoshi"}),Zt.createElement("div",null,(te==null?void 0:te.screen_used_num)>(te==null?void 0:te.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((Rr=te.exercise_tips)!=null&&Rr.includes("\u5DF2\u622A\u6B62"))&&(te==null?void 0:te.screen_used_num)>(te==null?void 0:te.screen_total_num)&&Zt.createElement("a",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault(),ur(te,!0)},href:""},Zt.createElement("i",{className:"iconfont icon-jixukaoshi"}),Zt.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!te.off_limits&&te.current_status===1&&(te==null?void 0:te.screen_used_num)<(te==null?void 0:te.screen_total_num)&&te.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((te==null?void 0:te.exercise_type)==2&&(te==null?void 0:te.exercise_status)!=3)&&Zt.createElement("span",{className:Wo.flexBox,style:{marginRight:"16px"},onClick:Ot=>Yo(void 0,null,function*(){var wt;if(Ot.stopPropagation(),!(te!=null&&te.answered_open)){Fe.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Pn.w)(mt.coursesId,te.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/users/${(wt=(0,oe.eY)())==null?void 0:wt.login}?check=true`)})},Zt.createElement("i",{className:"iconfont icon-chakankaoshi"}),Zt.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(te==null?void 0:te.exercise_type)==1&&!te.off_limits&&te.current_status===2&&te.exercise_status>1&&!((vr=te.exercise_tips)!=null&&vr.includes("\u5DF2\u622A\u6B62"))&&Zt.createElement("a",{className:Wo.flexBox,style:{marginRight:"16px",color:(te==null?void 0:te.is_redo)===1&&"red"},onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault(),ur(te)},href:""},Zt.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),Zt.createElement("div",null,(te==null?void 0:te.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),(te==null?void 0:te.exercise_type)==2&&!te.off_limits&&te.exercise_status>1&&!((_o=te.exercise_tips)!=null&&_o.includes("\u5DF2\u622A\u6B62"))&&Zt.createElement(ne.Z,{title:Zt.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",te==null?void 0:te.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Hr(),"\u6B21")},Zt.createElement("a",{className:Wo.flexBox,onClick:Ot=>{Hr()==0&&(te==null?void 0:te.current_status)!=0||(Ot.stopPropagation(),Ot.preventDefault(),ur(te))},href:""},Zt.createElement("i",{className:`iconfont ${(te==null?void 0:te.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),Zt.createElement("div",null,(te==null?void 0:te.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5")))))),(0,oe.GJ)()&&Zt.createElement("p",{style:{display:"flex"}},Zt.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:te.author},te.author),Zt.createElement("span",{className:"ml30 c-grey-666"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",ce()(te.created_at).format("YYYY-MM-DD HH:mm:ss")),((rr=te==null?void 0:te.exercise_tips)==null?void 0:rr.includes("\u672A\u5F00\u59CB"))&&te.publish_time&&Zt.createElement("span",{className:"ml30 c-grey-666"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",ce()(te.publish_time).format("YYYY-MM-DD HH:mm:ss")),Zt.createElement("span",{className:"ml30 c-grey-666"},"\u7B54\u9898\u65F6\u957F\uFF1A",te.time===null?"\u4E0D\u9650":`${te.time}\u5206\u949F`),Zt.createElement("span",{className:"ml30 c-grey-666"},"\u7C7B\u578B\uFF1A",te.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((cr=te==null?void 0:te.exercise_tips)!=null&&cr.includes("\u672A\u5F00\u59CB"))&&!(te!=null&&te.is_make_up_exercise)&&!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&Zt.createElement("span",{className:Wo.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:Ot=>Yo(void 0,null,function*(){Ot.stopPropagation(),Ot.preventDefault(),Xo||Xa(),Un(!Xo)})},Zt.createElement(ne.Z,{title:`${Xo?"\u6536\u8D77":"\u5C55\u5F00"}`},Zt.createElement("i",{className:`iconfont icon-${Xo?"shouqi":"xiala2"}`})))),(0,oe.dE)()&&Zt.createElement("p",{style:{display:"flex"}},Zt.createElement("span",{className:"c-grey-333"},te.author),Zt.createElement("span",{className:"ml30 c-grey-999 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",te.time===null?"\u4E0D\u9650":`${te.time}\u5206\u949F`),!!(te!=null&&te.exercise_left_time)&&Zt.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",te==null?void 0:te.exercise_left_time),!!(te!=null&&te.before_start)&&Zt.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",te==null?void 0:te.before_start)),(0,oe.GJ)()&&!((pr=te==null?void 0:te.exercise_tips)!=null&&pr.includes("\u672A\u5F00\u59CB"))&&Zt.createElement("p",null,Zt.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),Zt.createElement("span",{className:"c-grey-333 mr20"},"\u672A\u5F00\u59CB ",Zt.createElement("span",null,te==null?void 0:te.unanswer_users)),Zt.createElement("span",{className:"c-grey-333 mr20"},"\u8003\u8BD5\u4E2D ",Zt.createElement("span",{style:{color:"rgb(90, 184, 145)"}},te==null?void 0:te.answering_users)),Zt.createElement("span",{className:"c-grey-333 mr20"},la.formatMessage({id:"classrooms.submitted",defaultMessage:"\u5DF2\u4EA4\u5377"})," ",Zt.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.answer_users)),Zt.createElement("span",{className:"c-grey-333"},la.formatMessage({id:"classrooms.submittedUnanswered",defaultMessage:"\u5DF2\u4EA4\u5377/\u672A\u7B54"})," ",Zt.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.commit_with_no_answers_users))),(0,oe.GJ)()&&!((ga=te==null?void 0:te.exercise_tips)!=null&&ga.includes("\u672A\u5F00\u59CB"))&&Xo&&ht.length>5&&Zt.createElement(rt.default,{scroll:{y:240},pagination:!1,dataSource:ht,onRow:Ot=>({onClick:wt=>{wt.stopPropagation(),wt.preventDefault()}}),onHeaderRow:(Ot,wt)=>({onClick:nn=>{nn.stopPropagation(),nn.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(Ot,wt,nn)=>{nn.field&&(mt.order_by=nn.field),nn.order||(mt.sort_direction="asc"),nn.order==="ascend"&&(mt.sort_direction="asc"),nn.order==="descend"&&(mt.sort_direction="desc"),nn.order||(mt.sort_direction="asc"),Xa()},columns:Bl}),(0,oe.GJ)()&&!((Jo=te==null?void 0:te.exercise_tips)!=null&&Jo.includes("\u672A\u5F00\u59CB"))&&Xo&&ht.length<6&&ht.length>0&&Zt.createElement(rt.default,{rowKey:"course_group_id",pagination:!1,onRow:Ot=>({onClick:wt=>{wt.stopPropagation(),wt.preventDefault()}}),onHeaderRow:(Ot,wt)=>({onClick:nn=>{nn.stopPropagation(),nn.preventDefault()}}),dataSource:ht,style:{marginTop:"10px"},onChange:(Ot,wt,nn)=>{nn.field&&(mt.order_by=nn.field),nn.order||(mt.sort_direction="asc"),nn.order==="ascend"&&(mt.sort_direction="asc"),nn.order==="descend"&&(mt.sort_direction="desc"),nn.order||(mt.sort_direction="asc"),Xa()},columns:Bl}),(te==null?void 0:te.total)!==void 0&&Zt.createElement("p",null,Zt.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),Zt.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",Zt.createElement("span",null,te==null?void 0:te.total)),Zt.createElement("span",{className:"c-grey-333 mr20"},"\u5DF2\u8BC4\u9605 ",Zt.createElement("span",{style:{color:"#4EACFF"}},te==null?void 0:te.finish_total)),Zt.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",Zt.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.unfinished_total)))),Zt.createElement(tt.Z,{closable:!0,successCb:()=>ur(ar.current)}))};var Ba=(0,Se.connect)(({classroomList:te})=>({classroomList:te}))(Oo),ka=z(55054),ao=z(53814),Wa=z(9343),Ma=z(67294),Or=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const{Countdown:Ur}=ka.default,Ut=({value:te,onChange:ye,MaxMinutes:ge})=>Ma.createElement(Ma.Fragment,null,Ma.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",Ma.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",Ma.createElement("br",null)),Ma.createElement(ae.Z,{value:te,onChange:ye,min:0,precision:0,max:ge,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${ge}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),Rt=({exercise:te,successCb:ye,dispatch:ge})=>{var We,Jt,mt,vt;const An=(0,Se.useIntl)(),dt=(0,Se.useParams)(),[Wt]=ee.default.useForm(),ir=ee.default.useWatch("time",Wt),[fr,nr]=(0,re.useState)(!1),Mo=(0,re.useRef)(),{actionTabs:ba}=te,[Vo,ta]=(0,re.useState)(),[,so,eo,qa]=(0,Wa.U)(Lt.n7,{id:dt.categoryId}),[,Rr,vr]=(0,Wa.U)(Lt.Cd,{});(0,re.useEffect)(()=>{te.actionTabs.key==="student-unlock"&&(nr(!1),Wt.resetFields())},[te.actionTabs.key]);const _o=()=>new Promise(Xo=>Or(void 0,null,function*(){var Un,ar;return Mo.current=yield(0,ao.y)({ip_limit:(Un=ba==null?void 0:ba.exerciseParams)==null?void 0:Un.ip_limit,ip_bind:(ar=ba==null?void 0:ba.exerciseParams)==null?void 0:ar.ip_bind_type}),Xo()})),rr=()=>Or(void 0,null,function*(){var Xo,Un,ar,$r,tn;yield Wt.validateFields();const sa=Wt.getFieldsValue();if(nr(!0),(((Xo=ba==null?void 0:ba.exerciseParams)==null?void 0:Xo.ip_limit)!=="no"||(Un=ba==null?void 0:ba.exerciseParams)!=null&&Un.ip_bind_type)&&(yield _o()),(yield(0,Lt.ZD)((ar=ba==null?void 0:ba.exerciseParams)==null?void 0:ar.id,{exercise_user_id:($r=ba==null?void 0:ba.exerciseParams)==null?void 0:$r.exercise_user_id,unlock_key:sa.unlock_key,time:sa.time,ip:Mo.current})).status===0){if(ye){ge({type:"exercise/setActionTabs",payload:{}}),ye();return}const Xa=ba==null?void 0:ba.exerciseParams;(0,a.nr)({inner_ip:Xa.inner_ip,public_ip:Xa.public_ip,open_camera:Xa.open_camera,ip_limit:Xa.ip_limit,ip_bind:Xa.ip_bind,ip_bind_type:Xa.ip_bind_type,exercise_tips:Xa.exercise_tips,exerciseId:Xa.id,screen_open:Xa.screen_open,screen_num:Xa.screen_num,screen_sec:Xa.screen_sec,coursesId:dt.coursesId,login:(tn=(0,oe.eY)())==null?void 0:tn.login,history,identity_verify:Xa.identity_verify,open_phone_video_recording:Xa.open_phone_video_recording,current_status:Xa.current_status}),ge({type:"exercise/setActionTabs",payload:{}})}nr(!1)}),cr=[{title:An.formatMessage({id:"classrooms.ipAddress",defaultMessage:"IP\u5730\u5740"}),dataIndex:"ip",key:"ip",render:Xo=>Ma.createElement("span",{className:Xo.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Xo)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Xo=>Ma.createElement("span",{className:Xo.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Xo)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],pr=((We=ba==null?void 0:ba.exerciseParams)==null?void 0:We.errorMessage)&&typeof((Jt=ba==null?void 0:ba.exerciseParams)==null?void 0:Jt.errorMessage)=="object";(0,re.useEffect)(()=>{te.actionTabs.key==="student-unlock"&&Or(void 0,null,function*(){const Xo=yield vr(dt);yield eo({}),Xo.status||ta(Xo)})},[te.actionTabs.key]);const{time:ga,end_time:Jo}=(Vo==null?void 0:Vo.exercise)||{},la=qa!=null&&qa.user_end_time?ce()(qa==null?void 0:qa.user_end_time).add(1,"minutes"):ce()(),ht=ce()(qa==null?void 0:qa.user_total_end_time)>la?Math.round(ce().duration(ce()(qa==null?void 0:qa.user_total_end_time).diff(la.startOf("minute"))).asMinutes()):0,Zl=((qa==null?void 0:qa.student_left_minutes)||0)+(ir||0);return Ma.createElement(Ma.Fragment,null,Ma.createElement(Pe.default,{width:514,centered:!0,closable:!!((mt=ba==null?void 0:ba.exerciseParams)!=null&&mt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:An.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:te.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{ge({type:"exercise/setActionTabs",payload:{}})}},Ma.createElement(et.Z,{spinning:so||Rr},pr&&Ma.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!pr&&Ma.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),pr&&Ma.createElement(rt.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((vt=ba==null?void 0:ba.exerciseParams)==null?void 0:vt.errorMessage)||{}],columns:cr}),Ma.createElement("div",{className:""},Ma.createElement(ee.default,{form:Wt,layout:"vertical",autoComplete:"off"},Ma.createElement(ee.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},Ma.createElement(le.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),ga!==-1?Ma.createElement(Ma.Fragment,null,Ma.createElement(ee.default.Item,{name:"time",label:Ma.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",Ma.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",ce()(qa==null?void 0:qa.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},Ma.createElement(Ut,{MaxMinutes:ht})),Ma.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",Ma.createElement("span",{className:"ml5"},so||Rr?"--":Zl),"\u5206\u949F",Zl!==0&&(qa==null?void 0:qa.user_end_time)&&Ma.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",Ma.createElement("span",{className:"ml5"},ce()(qa==null?void 0:qa.user_end_time).add(ir||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):Ma.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",ce()(Jo).format("YYYY-MM-DD HH:mm")))),Ma.createElement(Qt.Z,{justify:"space-between",align:"middle"},Ma.createElement(at.Z,null),Ma.createElement(at.Z,null,Ma.createElement(Oe.ZP,{loading:fr,onClick:rr},"\u8FDB\u5165\u8003\u8BD5"))))))};var $t=(0,Se.connect)(({exercise:te})=>({exercise:te}))(Rt),Nn=z(24039),Ya=z(24966),bo=z(13916),kn=z(67294),fo=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const co=({exercise:te,dispatch:ye,init:ge,haveInit:We=!1})=>{const Jt=(0,Se.useIntl)(),mt=(0,Se.useParams)(),[vt,An]=(0,re.useState)(!1);let[dt,Wt]=(0,re.useState)();const[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1);(0,re.useEffect)(()=>{te.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ba()},[te.actionTabs]);function ba(){return fo(this,null,function*(){var Vo,ta;let so=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs}});if(((Vo=so==null?void 0:so.cover_exercises)==null?void 0:Vo.length)>0)An(!0),Wt((ta=so==null?void 0:so.cover_exercises)==null?void 0:ta[0]);else{let eo=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs}});ye({type:"exercise/setActionTabs",payload:{key:""}}),(eo==null?void 0:eo.status)===0&&(We&&ge(),Pe.default.confirm({title:Jt.formatMessage({id:"classrooms.prompt",defaultMessage:"\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:()=>{Se.history.push("/paperlibrary")}}))}})}return kn.createElement("div",null,kn.createElement(Pe.default,{open:vt,centered:!0,onCancel:Vo=>fo(void 0,null,function*(){if(Vo.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){fr(!0);let ta=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs,update:1}});ye({type:"exercise/setActionTabs",payload:{key:""}}),fr(!1),(ta==null?void 0:ta.status)===0&&(We&&ge(),An(!1),Pe.default.confirm({title:Jt.formatMessage({id:"classrooms.prompt",defaultMessage:"\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:()=>{Se.history.push("/paperlibrary")}}))}else An(!1)}),cancelButtonProps:{loading:ir},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:nr},onOk:()=>fo(void 0,null,function*(){Mo(!0);let Vo=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs}});Mo(!1),(Vo==null?void 0:Vo.status)===0&&(We&&ge(),ye({type:"exercise/setActionTabs",payload:{key:""}}),An(!1),Pe.default.confirm({title:Jt.formatMessage({id:"classrooms.prompt",defaultMessage:"\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:()=>{Se.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},kn.createElement("div",null,kn.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"),kn.createElement("div",null,kn.createElement("div",null,"\u8BD5\u5377\uFF1A",dt==null?void 0:dt.origin_exercise_nam),kn.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",kn.createElement("a",{href:`/paperlibrary/see/${dt==null?void 0:dt.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},dt==null?void 0:dt.examination_bank_name))))))};var oo=(0,Se.connect)(({exercise:te})=>({exercise:te}))(co),Gr=z(55304),_n=z(48839),br=z(91745),lr=z(68656),Da=z(67294),No=Object.defineProperty,$o=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,Rl=Object.getOwnPropertySymbols,Mr=Object.prototype.hasOwnProperty,bi=Object.prototype.propertyIsEnumerable,Fl=(te,ye,ge)=>ye in te?No(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,yr=(te,ye)=>{for(var ge in ye||(ye={}))Mr.call(ye,ge)&&Fl(te,ge,ye[ge]);if(Rl)for(var ge of Rl(ye))bi.call(ye,ge)&&Fl(te,ge,ye[ge]);return te},Wl=(te,ye)=>$o(te,Wr(ye)),Fu=(te,ye)=>{var ge={};for(var We in te)Mr.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&Rl)for(var We of Rl(te))ye.indexOf(We)<0&&bi.call(te,We)&&(ge[We]=te[We]);return ge},Eu=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const si=te=>{var ye=te,{user:ge,classroomList:We,globalSetting:Jt,loading:mt,dispatch:vt}=ye,An=Fu(ye,["user","classroomList","globalSetting","loading","dispatch"]),dt,Wt,ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr,cr,pr;const ga=(0,Se.useIntl)(),Jo=(0,Se.useParams)(),[la]=(0,Se.useSearchParams)(),[ht,Zl]=(0,re.useState)(()=>Wl(yr({},Jo),{limit:20})),Xo=(0,Se.useLocation)(),{detailExerciseList:Un,detailTopBanner:ar,detailLeftMenus:$r}=We,[tn,sa]=(0,re.useState)([]),[Po,Xa]=(0,re.useState)(!1),[Gt,ur]=(0,re.useState)([]),[Bl,Nl]=(0,re.useState)(!1),[Hr,Xl]=(0,re.useState)(!1),[Zr,Ot]=(0,re.useState)(!1),[wt,nn]=(0,re.useState)(!1),[bt,Ra]=(0,re.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),Pr=[{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u5347\u5E8F",type:"time",direction:"asc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u964D\u5E8F",type:"time",direction:"desc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u5347\u5E8F",type:"exercise_name",direction:"asc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u964D\u5E8F",type:"exercise_name",direction:"desc"}];ht.type=la.get("tabs")==="all"?"":la.get("tabs")||"",ht.id=ht.coursesId,(0,re.useEffect)(()=>{var Ht,Za,Hl;if((Ht=ge==null?void 0:ge.userInfo)!=null&&Ht.login){if((0,oe.GJ)()){const Tl=a.cX.getItem(`${(Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.login}Teacher`,"Exercise");Tl&&(ht.sort_by=Tl==null?void 0:Tl.type,ht.sort_direction=Tl==null?void 0:Tl.direction,Ra(Tl==null?void 0:Tl.name))}vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})}else(Hl=ge==null?void 0:ge.userInfo)!=null&&Hl.username&&vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)});Xa(!1)},[(dt=ge==null?void 0:ge.userInfo)==null?void 0:dt.login,Xo.pathname]),(0,re.useEffect)(()=>{We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})},[We.actionTabs.key]),(0,re.useEffect)(()=>{We.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(Nl(!0),Xl(ar==null?void 0:ar.show_unstart_exercise),Ot(ar==null?void 0:ar.forbid_end_exercise))},[We.actionTabs.key]),(0,re.useEffect)(()=>{sa([])},[Un]);const ol=(Ht,Za)=>{sa([]),ht.page=Ht,ht.limit=Za,vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})},Cl=Ht=>{ht.type=Ht.id==="all"?"":Ht.id,ht.page=1,Se.history.replace(`${Xo.pathname}?tabs=${Ht.id}`),nn(!1),vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})};(0,re.useEffect)(()=>{la.get("tabs")==="all"&&(ht.type="",ht.page=1)},[la.get("tabs")]),(0,re.useEffect)(()=>{(0,oe.Rm)()&&vt({type:"classroomList/getAssistantPermissions",payload:{course_id:ht.coursesId}})},[(Wt=ge==null?void 0:ge.userInfo)==null?void 0:Wt.username]),(0,re.useEffect)(()=>{const Ht=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Pe.default.info({title:ga.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),centered:!0,width:600,content:Da.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Da.createElement("br",null),"1\u3001\u5728",Da.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Da.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Da.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Da.createElement("br",null),"2\u3001\u5728",Da.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Da.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Da.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Da.createElement("br",null),Ht==="allowRouter"&&Da.createElement(Da.Fragment,null,"3\u3001",Da.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]),(0,re.useEffect)(()=>{(0,oe.Rm)()&&vt({type:"classroomList/getAssistantPermissions",payload:{course_id:ht.coursesId}})},[(ir=ge==null?void 0:ge.userInfo)==null?void 0:ir.login]);const dr=[{name:"\u5168\u90E8",id:"all",total:(fr=Un.exercises_counts)==null?void 0:fr.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(nr=Un.exercises_counts)==null?void 0:nr.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(Mo=Un.exercises_counts)==null?void 0:Mo.publish_counts},{name:"\u96C6\u4E2D\u9605\u5377",id:4,total:(ba=Un.exercises_counts)==null?void 0:ba.appraise_exercise_count},{name:"\u5DF2\u622A\u6B62",id:3,total:(Vo=Un.exercises_counts)==null?void 0:Vo.end_counts}],wi=[{name:"\u6279\u91CF\u53D1\u5E03",icon:Da.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:Da.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:Da.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:Da.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:Da.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(Ht=>(0,oe.GJ)()?!0:Ht.name!=="\u6279\u91CF\u5220\u9664").filter(Ht=>ar.is_public?!0:Ht.name!=="\u8BBE\u4E3A\u516C\u5F00"),Xu=()=>Pe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Da.createElement(Da.Fragment,null,"\u5E73\u53F0\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),Lu="YYYY-MM-DD",Es=ce()("2020-11-15",Lu),qu=Ht=>{var Za;ht.sort_by=Ht.type,ht.sort_direction=Ht.direction,(0,oe.GJ)()&&a.cX.setItem(`${(Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.login}Teacher`,Ht,"Exercise"),ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:yr({},ht)}),Ra(Ht.name)},Os=()=>Da.createElement(Ie.default,null,Da.createElement(Ie.default.Item,{key:1,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We==null?void 0:We.AssistantObject)==null?void 0:Ht.exercise)!=null&&Za.can_create)){Fe.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}vt({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:ht}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),Da.createElement(Ie.default.Item,{key:2,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We==null?void 0:We.AssistantObject)==null?void 0:Ht.exercise)!=null&&Za.can_create)){Fe.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}window.scrollTo(0,0),Se.history.push(`/classrooms/${ht.coursesId}/exercise/add?catalogue=${(Jo==null?void 0:Jo.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),Da.createElement(Ie.default.Item,{key:3,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We.AssistantObject)==null?void 0:Ht.practice)!=null&&Za.can_create)){Fe.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}vt({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),$u=Ht=>Eu(void 0,null,function*(){var Za,Hl,Tl,qi,Iu,is,Ia,Co;const Ka=Ht.name;if(((Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.user_status)===2&&Ht.name==="\u6279\u91CF\u53D1\u5E03"){(0,de.Rd)();return}const qo=[];if((Hl=Un.exercises)==null||Hl.map(La=>{if(tn.includes(La.id)&&La.is_random){const mo=ce()(La.created_at,Lu);ce()(Es).diff(ce()(mo),"days")>0&&(La!=null&&La.is_random)&&qo.push(La)}}),tn==""){let La="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";Ka==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(La="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),Fe.ZP.error(La)}else if(qo.length)Xu();else{if(Ka==="\u6279\u91CF\u53D1\u5E03"){if((0,oe.Rm)()&&!((qi=(Tl=We==null?void 0:We.AssistantObject)==null?void 0:Tl.exercise)!=null&&qi.can_publish)){Fe.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}let La=!1;Un.exercises.forEach(Lo=>{tn.includes(Lo.id)&&Lo.total_num===0&&Lo.is_random&&(La=!0)});let mo;if(mo=(is=(Iu=Un.exercises.filter(Lo=>tn.includes(Lo==null?void 0:Lo.id)).filter(Lo=>(Lo==null?void 0:Lo.exercise_question_count)===0))==null?void 0:Iu[0])==null?void 0:is.exercise_name,(mo==null?void 0:mo.length)>0){Fe.ZP.warning(`${mo}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(La){Fe.ZP.warning("\u968F\u673A\u8BD5\u5377\u8FD8\u672A\u5728\u8BE5\u8BFE\u5802\u751F\u6210\u8BD5\u5377\uFF0C\u8BF7\u70B9\u51FB\u7F16\u8F91\u53BB\u8BBE\u7F6E\u51FA\u5377\u6570\u91CF\u5427\u3002");return}let _r=!1;if(Un.exercises.forEach(Lo=>{tn.includes(Lo.id)&&Lo.exercise_status!==1&&(_r=!0)}),_r){Fe.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(Ka==="\u52A0\u5165\u8BD5\u5377\u5E93"){const La=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...tn]}});if(((Ia=La==null?void 0:La.cover_exercises)==null?void 0:Ia.length)>0){ur(La==null?void 0:La.cover_exercises);return}}vt({type:"exercise/setActionTabs",payload:{key:Ka,selectArrs:tn,selectArrsAll:(Co=Un.exercises)==null?void 0:Co.filter(La=>tn.includes(La.id)),params:ht,type:1}})}});return Da.createElement("section",{className:"minH500"},Da.createElement(Nn.Z,{isLoading:mt["classroomList/getClassroomExercisesList"],tabDataSource:dr,isAdmin:(0,oe.GJ)(),dispatch:vt,type:Un==null?void 0:Un.main_category_name,isExercise:!0,user:ge,getDropdownMenu:Os,onTabMenuClick:Cl,classroomList:We,defaultSelectedKeys:[ht.type||"all"]}),Da.createElement(Ya.Z,{dataSource:Un.exercises||[],isAdmin:(0,oe.GJ)(),batchStatus:wt,SortMenuName:bt,setSortMenuName:Ra,SortMenus:Pr,onSearch:Ht=>{ht.search=Ht.trim(),ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:yr({},ht)})},isShowMode:!0,onModeChange:Ht=>{ht.is_normal=Ht,ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:yr({},ht)})},onSort:qu,onBatch:Ht=>nn(Ht)}),Da.createElement(ue.Z,{loading:mt["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30 px-20px"},(ta=Un.exercises_counts)!=null&&ta.exercises_all_counts?Un.exercises.map(function(Ht,Za){return Da.createElement(Ba,{key:Za,v:Ht,k:Za,batchStatus:wt,selectArrs:tn,setSelectArrs:sa,dispatch:vt,params:ht,user:ge,manageAllGroup:Un.manage_all_group})}):Da.createElement(E.Z,null),Da.createElement("aside",{className:"tc mb50 mt30 px-20px"},((so=Un.exercises_counts)==null?void 0:so.exercises_all_counts)>0&&Da.createElement(Te.Z,{showTotal:Ht=>{var Za;return`\u5171 ${(Za=Un==null?void 0:Un.exercises_counts)==null?void 0:Za.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:ol,defaultCurrent:ht.page,current:ht.page||1,pageSize:ht.limit||20,total:Un.exercises_counts&&Un.exercises_counts.exercises_all_counts}))),tn.length>0&&(0,oe.GJ)()&&Da.createElement(je.Z,{offsetBottom:0},Da.createElement(bo.Z,{buttonDataSource:wi,onButtonClick:$u,useBatchStatus:nn,setSeleArr:sa,catalogue:((qa=(eo=$r==null?void 0:$r.course_modules)==null?void 0:eo.find(Ht=>Ht.type==="exercise"))==null?void 0:qa.second_category)||[],addCatalogue:Ht=>{Ht.preventDefault(),vt({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:ht,selectArrs:{category_id:Un==null?void 0:Un.main_category_id,type:"exercise"}}})},allSelect:tn.length?tn.length===((vr=(Rr=Un.exercises)==null?void 0:Rr.filter(Ht=>!Ht.is_make_up_exercise))==null?void 0:vr.length):!1,setAllSelect:Ht=>{var Za;Ht.target.checked?sa((Za=Un==null?void 0:Un.exercises)==null?void 0:Za.filter(Hl=>!Hl.is_make_up_exercise).map(Hl=>Hl.id)):sa([])},selectArrs:tn,onMenuClick:Ht=>Eu(void 0,[Ht],function*({key:Za}){if(tn=="")return Fe.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:tn,new_category_id:Za}})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),vt({type:"classroomList/getClassroomExercisesList",payload:yr({},Jo)}))})})),Da.createElement(On,null),Da.createElement(Fo,null),Da.createElement(Er,null),Da.createElement(en,null),Da.createElement(_n.Z,{onOk:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yr({},Jo)})}}),Da.createElement(br.Z,{onOk:()=>{}}),Da.createElement(Ct,{cb:()=>sa([])}),Da.createElement($a,null),Da.createElement($t,null),Da.createElement(Pe.default,{title:Da.createElement("span",null,Da.createElement(Gr.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:Gt.length>0,footer:!1,onCancel:()=>{ur([])}},Da.createElement("div",{style:{height:300,overflow:"auto"}},Da.createElement("div",null,"\u6709",Gt==null?void 0:Gt.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Gt==null?void 0:Gt.map(Ht=>Da.createElement("div",{style:{marginTop:25}},Da.createElement("div",null,"\u8BD5\u5377\uFF1A",Ht==null?void 0:Ht.origin_exercise_nam),Da.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Da.createElement("a",{href:`/paperlibrary/see/${Ht==null?void 0:Ht.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Ht==null?void 0:Ht.examination_bank_name))))),Da.createElement("div",{style:{textAlign:"end"}},Da.createElement(Oe.ZP,{style:{height:30},onClick:()=>Eu(void 0,null,function*(){const Ht=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...tn],update:1}});(Ht==null?void 0:Ht.status)===0&&(Fe.ZP.info("\u8986\u76D6\u6210\u529F"),ur([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),Da.createElement(Oe.ZP,{type:"primary",onClick:()=>Eu(void 0,null,function*(){const Ht=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...tn]}});(Ht==null?void 0:Ht.status)===0&&(Fe.ZP.info("\u5F62\u6210\u6210\u529F"),ur([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),Da.createElement(Pe.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:Bl,centered:!0,onOk:()=>Eu(void 0,null,function*(){let Ht=yield(0,x.ZP)(`/api/courses/${ht.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:Hr,forbid_end_exercise:Zr}});(Ht==null?void 0:Ht.status)===0&&(Nl(!1),vt({type:"classroomList/setActionTabs",payload:{key:""}}),vt({type:"classroomList/getClassroomTopBanner",payload:{id:ht.coursesId}}),Fe.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{Nl(!1),vt({type:"classroomList/setActionTabs",payload:{key:""}})}},Da.createElement(Ze.default,{checked:Hr,onChange:Ht=>{Xl(Ht.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",Da.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),Da.createElement(Ze.default,{className:"mt20",checked:Zr,onChange:Ht=>{Ot(Ht.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),Da.createElement(oo,null),Da.createElement(Da.Fragment,null,Da.createElement(lr.T$,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Wl(yr({},We==null?void 0:We.actionTabs),{open:""})})},open:((_o=We==null?void 0:We.actionTabs)==null?void 0:_o.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),Da.createElement(lr.$i,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Wl(yr({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})},open:((rr=We==null?void 0:We.actionTabs)==null?void 0:rr.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Wl(yr({},We==null?void 0:We.actionTabs),{type:"exercise"})}),Da.createElement(lr.K1,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Wl(yr({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})},open:((cr=We==null?void 0:We.actionTabs)==null?void 0:cr.open)==="\u89E3\u5C01",Data:Wl(yr({},We==null?void 0:We.actionTabs),{type:"exercise"})}),Da.createElement(lr.O7,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Wl(yr({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yr(yr({},ht),Jo)})},open:((pr=We==null?void 0:We.actionTabs)==null?void 0:pr.open)==="\u63D0\u793A",Data:Wl(yr({},We==null?void 0:We.actionTabs),{type:"exercise"})})))};var Ri=(0,Se.connect)(({user:te,classroomList:ye,loading:ge,globalSetting:We})=>({user:te,classroomList:ye,globalSetting:We,loading:ge.effects}))(si),Bi={flex_box_center:"flex_box_center___I2Zor",flex_space_between:"flex_space_between___Ht3Hg",flex_box_vertical_center:"flex_box_vertical_center___l37KN",flex_box_center_end:"flex_box_center_end___O7U5A",flex_box_column:"flex_box_column___QIoOH",containerTitle:"containerTitle___JCYrV",containerDesc:"containerDesc___OW8kv",menus:"menus___X1BVx",listItem:"listItem___QQnG2",info:"info___TwB7l",title:"title___l4jJE",titleLeft:"titleLeft___xwSdb",titleRight:"titleRight___b3ucs",acitons:"acitons___M5Z8n",move:"move___ez_Md",hideHeadCheckbox:"hideHeadCheckbox___kvvPQ",moveCategory:"moveCategory___dZlgC",tabSearch:"tabSearch___FCjLv",warpModal:"warpModal___gzw5T",modalColumn:"modalColumn___togI3",modalRow:"modalRow___HVpN2",sup:"sup___yOXrk",name:"name___jYQZy"},Br=z(67294),Zi=Object.defineProperty,Hi=Object.defineProperties,fu=Object.getOwnPropertyDescriptors,Su=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,es=(te,ye,ge)=>ye in te?Zi(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,ts=(te,ye)=>{for(var ge in ye||(ye={}))su.call(ye,ge)&&es(te,ge,ye[ge]);if(Su)for(var ge of Su(ye))Fs.call(ye,ge)&&es(te,ge,ye[ge]);return te},ks=(te,ye)=>Hi(te,fu(ye)),Ps=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const{TabPane:js}=y.default,us=({classroomList:te,exercise:ye,loading:ge,dispatch:We})=>{var Jt;const mt=(0,Se.useIntl)(),vt=(0,Se.useParams)(),An=(0,Se.useLocation)(),[dt]=ee.default.useForm(),{brankList:Wt}=ye;let[ir,fr]=(0,re.useState)(!0),[nr,Mo]=(0,re.useState)(!1);const[ba,Vo]=(0,re.useState)("myself");let[ta,so]=(0,re.useState)([]),[eo,qa]=(0,re.useState)([]),[Rr,vr]=(0,re.useState)(),[_o,rr]=(0,re.useState)([]);const cr=(0,re.useRef)(null),[pr,ga]=(0,re.useState)(!1),[Jo,la]=(0,re.useState)(""),[ht,Zl]=(0,re.useState)(""),[Xo,Un]=(0,re.useState)(!1),[ar,$r]=(0,re.useState)({}),tn=[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0,align:"left",render:(bt,Ra,Pr)=>Br.createElement("div",{style:{display:"flex",alignItems:"center"}},Br.createElement(ne.Z,{title:bt},Br.createElement("div",{title:bt,className:Bi.name},bt)),(Ra==null?void 0:Ra.high_resources_consume)&&Br.createElement(be.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u65B9\u5411&\u8BFE\u7A0B",dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:bt=>Br.createElement(ne.Z,{title:bt},Br.createElement("span",null,bt))},{title:"\u7C7B\u578B",dataIndex:"is_random",width:90,align:"left",render:bt=>bt?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:150,align:"left"},{title:"\u8BD5\u9898\u6570",dataIndex:"item_num",width:60,align:"center"},{title:"\u603B\u5206",dataIndex:"total_score",width:60,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"is_random",width:60,align:"center",render:(bt,Ra)=>Br.createElement("a",{href:bt?`/randompaper/detail/${Ra.id}`:`/paperlibrary/see/${Ra.id}?defaultActiveKey=1`,target:"_blank>"},mt.formatMessage({id:"classrooms.preview",defaultMessage:"\u9884\u89C8"}))}],[sa,Po]=(0,re.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,re.useEffect)(()=>{ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(ur(),rr([]),Xa())},[ye.actionTabs.key]);const Xa=()=>Ps(void 0,null,function*(){const bt=yield We({type:"paperlibrary/getTeachGroupData"});qa(bt)}),Gt=bt=>{const Ra=parseInt(bt);return isNaN(Ra)?"":Ra},ur=()=>Ps(void 0,null,function*(){var bt,Ra;if(ir){++sa.page,fr(!1);const Pr=yield We({type:"exercise/getBrankList",payload:ks(ts({},sa),{search:(bt=sa.search)==null?void 0:bt.trim()})});ta=Pr!=null&&Pr.object_list?[...ta.concat(Pr==null?void 0:Pr.object_list)]:ta,sa.filter==="public"?vr(Pr.is_teacher):vr(!0),((Ra=Pr.object_list)==null?void 0:Ra.length){cr.current.scrollTop=0,ta=[],sa.page=0,sa.group_id=bt,ir=!0,rr([]),Po(ts({},sa)),ur()},Nl={selectedRowKeys:_o,onChange:bt=>{rr(bt)},type:"radio"},Hr=()=>{Po(ts({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),so([]),fr(!0),Vo("myself"),We({type:"exercise/setActionTabs",payload:{}}),Mo(!1)},[Xl,Zr,Ot,wt]=(0,se.P)(),nn=bt=>Ps(void 0,null,function*(){let Ra=!1;ta.forEach(dr=>{_o.includes(dr.id)&&(Ra=dr.is_random)});const Pr=bt.map(dr=>({shixun_id:dr.id,is_use:dr.is_use,is_copy:dr.is_copy}));if(!Ra){Un(!0);const dr=yield We({type:"exercise/saveBanks",payload:{course_id:vt.coursesId,category_id:(vt==null?void 0:vt.categoryId)||null,object_type:"examination_bank",bank_id:_o,shixuns_info:Pr}});Un(!1),(dr==null?void 0:dr.status)===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),We({type:"classroomList/getClassroomExercisesList",payload:ts({},ye.actionTabs.params)}),We({type:"classroomList/getClassroomLeftMenus",payload:{id:vt.coursesId}}),la(`/classrooms/${vt.coursesId}/exercise/${dr.exercise_id}/detail?random=${dr.is_random}&tabs=3`),Zl(`/classrooms/${vt.coursesId}/exercise/add/${dr.exercise_id}?random=${dr.is_random}&type=2`),ga(!0),Fe.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F"),Zr(),Hr());return}Un(!0),setTimeout(()=>{Un(!1)},500),We({type:"exercise/setActionTabs",payload:{}});let ol=1,Cl=Pe.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:Br.createElement("div",{className:Bi.modalColumn},Br.createElement("div",{className:Bi.modalRow},Br.createElement("sup",{className:Bi.sup},"*"),Br.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),Br.createElement(ae.Z,{parser:Gt,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ol,onChange:dr=>{ol=dr;const wi=document.getElementById("model_error");ol<1||ol>50?wi.style.display="block":wi.style.display="none"}})),Br.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Hr,onOk:()=>Ps(void 0,null,function*(){if(ol<1||ol>50){const wi=document.getElementById("model_error");return wi.style.display="block",Promise.reject()}Cl.update({cancelButtonProps:{disabled:!0}});const dr=yield We({type:"exercise/saveBanks",payload:{course_id:vt.coursesId,object_type:"examination_bank",bank_id:_o,shixuns_info:Pr,num:ol}});Cl.update({cancelButtonProps:{disabled:!1}}),dr&&dr.status===0?((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Pe.default.destroyAll(),We({type:"classroomList/getClassroomExercisesList",payload:ts({},ye.actionTabs.params)}),Hr(),Zr(),Fe.ZP.success("\u751F\u6210\u8BD5\u5377\u6210\u529F")):(Hr(),Zr())})})});return Br.createElement(Br.Fragment,null,Br.createElement(Pe.default,{centered:!0,width:1012,title:"\u9009\u62E9\u8BD5\u5377",maskClosable:!1,destroyOnClose:!0,open:ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:mt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:"\u53D6\u6D88",confirmLoading:nr,bodyStyle:{minHeight:200},wrapClassName:Bi.warpModal,onOk:()=>Ps(void 0,null,function*(){var bt;if(!_o.length){Fe.ZP.error("\u8BF7\u9009\u62E9\u8BD5\u5377");return}Mo(!0);let Ra=!1,Pr=!1;if(ta.forEach(Cl=>{_o.includes(Cl.id)&&Cl.need_authorize&&(Ra=Cl.need_authorize),_o.includes(Cl.id)&&(Pr=Cl.is_random)}),Ra){(0,de.rX)(!1,"\u8BE5\u8BD5\u5377\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");return}let ol=yield(0,Ce.Tr)({id:`${_o[0]}`,course_id:(bt=te.detailTopBanner)==null?void 0:bt.course_id,type:"examination_bank"});Mo(!1),(ol==null?void 0:ol.student_count)===0?nn([]):$r(ol)}),onCancel:Hr},Br.createElement(y.default,{activeKey:ba,onTabClick:bt=>Ps(void 0,null,function*(){cr.current.scrollTop=0,ta=[],ba!==bt&&rr([]),Vo(bt),sa.page=0,sa.filter=bt,sa.group_id=null,ir=!0,ur()})},Br.createElement(js,{tab:Br.createElement("span",null,"\u6211\u7684\u8BD5\u5377\u5E93"),key:"myself"}),Br.createElement(js,{tab:Br.createElement("span",null,"\u6559\u7814\u5171\u4EAB"),key:"teacher"}),Br.createElement(js,{tab:Br.createElement("span",null,"\u516C\u5171\u8BD5\u5377\u5E93"),key:"public"})),Br.createElement("div",{className:Bi.tabSearch},ba==="teacher"&&Br.createElement(ie.default,{value:sa.group_id,onChange:Bl,size:"middle",style:{width:200,marginRight:30}},Br.createElement(ie.default.Option,{value:null},"\u5168\u90E8\u6559\u7814\u56E2\u961F"),(Jt=eo==null?void 0:eo.groups)==null?void 0:Jt.map(bt=>Br.createElement(ie.default.Option,{key:bt==null?void 0:bt.group_id,value:bt==null?void 0:bt.group_id},bt==null?void 0:bt.name))),Br.createElement(le.default.Search,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:sa.search,onChange:bt=>{sa.search=bt.target.value,Po(ts({},sa))},onSearch:bt=>{cr.current.scrollTop=0,ta=[],sa.page=0,ir=!0,rr([]),bt&&(0,Me.tk)({name:bt,copywriting:bt,position:"Exercise"}),ur()}})),Br.createElement("div",{ref:cr,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!Rr&&ba==="public"&&Br.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Br.createElement("span",null,"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"),Br.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},"\u7ACB\u5373\u8BA4\u8BC1")),Br.createElement(fe(),{initialLoad:!1,pageStart:0,loadMore:()=>{ur()},hasMore:ir,useWindow:!1},ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&Rr&&Br.createElement(pe.Z,{className:Bi.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:ta,onRow:bt=>({onClick:()=>{rr([bt==null?void 0:bt.id])}}),resColumns:tn,rowSelection:Nl})))),Br.createElement(Pe.default,{title:mt.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:pr,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Br.createElement("div",null,Br.createElement(Oe.ZP,{onClick:()=>{ga(!1),Se.history.push(ht)}},"\u4FEE\u6539\u8BD5\u5377"),Br.createElement(Oe.ZP,{type:"primary",onClick:()=>{Se.history.push(Jo),ga(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{ga(!1)}},Br.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")),Br.createElement(De.Z,{resdata:ar,type:"exercise",okloading:Xo,oktext:(ar==null?void 0:ar.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:bt=>{nn(bt)}}),Br.createElement(se.Z,{inPaper:!0,visible:Xl,onCancel:Zr,onOk:nn,renderData:Ot,modalType:"multiple",type:"examination_bank"}))};var bs=(0,Se.connect)(({exercise:te,loading:ye,classroomList:ge})=>({exercise:te,loading:ye,classroomList:ge}))(us),Bs=z(63536),Ds={cstuModal:"cstuModal___Lk_O4",removeStyle:"removeStyle___PEQ8_",bottom:"bottom___x2sdD",yes:"yes___DNALK",no:"no___lzotc",Onerow:"Onerow___gJgKh",searchMember:"searchMember___jzYuJ",searchMemberHeader:"searchMemberHeader___v8IBY"},cl=z(67294),rc=Object.defineProperty,lc=Object.defineProperties,zs=Object.getOwnPropertyDescriptors,Us=Object.getOwnPropertySymbols,ws=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,_s=(te,ye,ge)=>ye in te?rc(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Uu=(te,ye)=>{for(var ge in ye||(ye={}))ws.call(ye,ge)&&_s(te,ge,ye[ge]);if(Us)for(var ge of Us(ye))Vs.call(ye,ge)&&_s(te,ge,ye[ge]);return te},Zs=(te,ye)=>lc(te,zs(ye)),Hs=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Js=({visible:te,setVisible:ye,onK:ge,selectKeys:We,selectRows:Jt,appointStudent:mt,modalParams:vt,courseId:An})=>{const dt=(0,Se.useIntl)(),Wt=(0,Se.useParams)(),[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1),[ba,Vo]=(0,re.useState)([]),[ta,so]=(0,re.useState)([]),[eo,qa]=(0,re.useState)([]),[Rr,vr]=(0,re.useState)("all"),[_o,rr]=(0,re.useState)("all");let[cr,pr]=(0,re.useState)(!0);const[ga,Jo]=(0,re.useState)([{value:"all",label:"\u5168\u90E8\u5206\u73ED"}]),[la,ht]=(0,re.useState)({page:1,limit:1e4,status:null,course_group_id:null,keywords:"",sort_by:null,direction:null}),Zl={selectedRowKeys:ta,columnWidth:40,hideSelectAll:!0,onSelect:(tn,sa,Po)=>{let Xa=!0;for(let Gt=0;Gt{if(tn&&Po.length>0){Po.forEach(Xa=>{ta.push(Xa.user_id),eo.push(Xa)}),so([...ta]),qa([...eo]);return}if(!tn&&Po.length>0){let Xa=[],Gt=[];const ur=new Set(Po),Bl=new Set(ta),Nl=new Set(eo);Xa=[...Bl].filter(Hr=>[...ur].every(Xl=>Xl.user_id!==Hr)),Gt=[...Nl].filter(Hr=>[...ur].every(Xl=>Xl.user_id!==Hr.user_id)),so([...Xa]),qa([...Gt])}}};(0,re.useEffect)(()=>{te&&We&&(so([...We]),qa(Jt))},[te,We]),(0,re.useEffect)(()=>{te&&(!mt&&vt?la.status=vt:la.status=null,ht(Uu({},la)),Un())},[te,mt,vt]);const Xo=[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",ellipsis:!0,fixed:"left",width:100,render:(tn,sa,Po)=>cl.createElement("span",{style:{color:"#333"}},Po+1)},{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",ellipsis:!0,render:(tn,sa,Po)=>cl.createElement("span",null,tn)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:(tn,sa,Po)=>cl.createElement("span",{style:{color:"#666"}},tn)},{title:"\u5206\u73ED1",dataIndex:"user_group_name",key:"user_group_name",align:"left",ellipsis:!0,render:(tn,sa)=>cl.createElement("span",null,tn)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",key:"score",sorter:!0,render:(tn,sa)=>cl.createElement("span",null,tn||"--")},{title:dt.formatMessage({id:"classrooms.status",defaultMessage:"\u72B6\u6001"}),dataIndex:"status_cn",key:"status_cn",align:"center",ellipsis:!0,render:(tn,sa)=>cl.createElement("span",null,tn)}].filter(tn=>vt===1||vt===2?tn.title!==dt.formatMessage({id:"classrooms.status",defaultMessage:"\u72B6\u6001"}):!0),Un=()=>Hs(void 0,null,function*(){var tn,sa,Po;Mo(!0);const Xa=yield(0,x.ZP)(`/api/exercises/${Wt.categoryId||An}/wait_make_up_students.json`,{method:"get",params:Zs(Uu({},la),{keywords:(tn=la==null?void 0:la.keywords)==null?void 0:tn.trim()})});if(Xa.status===0){const Gt=((Po=(sa=Xa==null?void 0:Xa.data)==null?void 0:sa.all_course_groups)==null?void 0:Po.map(ur=>({value:ur==null?void 0:ur.id,label:ur==null?void 0:ur.name})))||[];Jo([{value:"all",label:"\u5168\u90E8\u5206\u73ED"},...Gt]),Vo(Xa.data)}Mo(!1)}),ar=()=>{la.page=1,la.status=null,la.course_group_id=null,la.keywords="",vr("all"),rr("all"),so([]),qa([]),ht(Uu({},la)),mt&&ge(ta==null?void 0:ta.length,ta,eo)},$r=()=>{la.page=1,la.status=null,la.course_group_id=null,la.keywords="",ht(Uu({},la)),vr("all"),rr("all"),so([]),qa([]),ye(!1)};return cl.createElement(Pe.default,{centered:!0,className:Ds.cstuModal,title:vt===1?"\u7F3A\u8003\u5B66\u751F":vt===2?"\u672A\u53CA\u683C\u5B66\u751F":"\u9009\u62E9\u8865\u8003\u5B66\u751F",open:te,width:1200,footer:null,onCancel:()=>{$r()}},cl.createElement(Qt.Z,{style:{marginBottom:"20px",marginTop:"15px",display:"flex",alignItems:"center",justifyContent:"space-between"}},cl.createElement(Qt.Z,null,cl.createElement(at.Z,null,cl.createElement(ie.default,{size:"large",value:Rr,style:{width:200,marginRight:20},onChange:tn=>{vr(tn),tn==="all"?la.course_group_id=null:la.course_group_id=tn,la.page=1,ht(Uu({},la)),Un()},options:ga})),mt&&cl.createElement(at.Z,null,cl.createElement(ie.default,{size:"large",value:_o,style:{width:200},onChange:tn=>{rr(tn),tn==="all"?la.status=null:la.status=tn,la.page=1,ht(Uu({},la)),Un()},options:[{value:"all",label:"\u5168\u90E8\u72B6\u6001"},{value:"1",label:"\u7F3A\u8003"},{value:"2",label:"\u672A\u53CA\u683C"},{value:"3",label:"\u53CA\u683C"}]}))),cl.createElement(at.Z,null,cl.createElement(jt.t7,{style:{width:300,marginLeft:15},value:la.keywords,allowClear:!0,onChange:tn=>{la.keywords=tn,la.page=1,ht(Uu({},la)),Un()},placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u5B66\u53F7\u8FDB\u884C\u641C\u7D22"}))),cl.createElement(Qt.Z,{align:"middle",className:"mb30"},cl.createElement(at.Z,{span:14},cl.createElement("div",{className:"flexd-table-header"},cl.createElement(rt.default,{pagination:!1,dataSource:[],columns:Xo,rowSelection:mt?Zl:null,rowKey:tn=>tn.user_id})),cl.createElement("div",null,cl.createElement(rt.default,{rowSelection:mt?Zl:null,columns:Xo,showHeader:!1,style:{minHeight:390},scroll:{y:390},rowKey:tn=>tn.user_id,loading:nr,dataSource:ba==null?void 0:ba.exercise_users,onChange:(tn,sa,Po)=>{la.page=tn==null?void 0:tn.current,la.limit=tn==null?void 0:tn.pageSize,Po!=null&&Po.order?(la.sort_by=Po==null?void 0:Po.field,la.direction=(Po==null?void 0:Po.order)==="ascend"?"asc":"desc"):(la.sort_by=null,la.direction=null),ht(Uu({},la)),Un()},pagination:!1}))),cl.createElement(at.Z,{span:1},cl.createElement("img",{src:Bn,style:{marginLeft:10}})),cl.createElement(at.Z,{span:9,style:{display:"flex",justifyContent:"flex-end"}},cl.createElement("div",{className:Ds.searchMember,style:{width:550}},cl.createElement(Qt.Z,{className:Ds.searchMemberHeader},cl.createElement(at.Z,{className:"ml30",flex:"100px"},"\u59D3\u540D"),cl.createElement(at.Z,{flex:"110px"},"\u5B66\u53F7"),cl.createElement(at.Z,{flex:"120px",style:{marginLeft:5}},"\u5206\u73ED")),cl.createElement("div",{style:{overflow:"auto",height:390}},eo==null?void 0:eo.map((tn,sa)=>cl.createElement(Qt.Z,{key:sa,align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"}},cl.createElement(at.Z,{flex:"100px"},tn.user_name),cl.createElement(at.Z,{flex:"110px"},tn.student_id),cl.createElement(at.Z,{flex:"120px",style:{marginLeft:5}},tn.user_group_name),cl.createElement(at.Z,{style:{marginLeft:10}},cl.createElement("i",{className:"iconfont icon-shanchudiao current",onClick:()=>{qa(eo.filter(Po=>Po.user_id!=tn.user_id)),so(ta.filter(Po=>Po!=tn.user_id))}})))))))),!(vt===1||vt===2)&&cl.createElement("div",{className:Ds.bottom},cl.createElement(Oe.ZP,{className:Ds.no,onClick:()=>{$r()}},"\u53D6\u6D88"),cl.createElement(Oe.ZP,{loading:ir,type:"primary",onClick:()=>{ar()}},dt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}))))};var ic=(0,Se.connect)(({})=>({}))(Js),ss={contentInterval:"contentInterval___exfzZ",numberInput:"numberInput___uwvXH",minorRuleText:"minorRuleText___Mp9Y2",failedList:"failedList___XUK6Y",name:"name___dS7W9",publish:"publish___Qpw4v"},Do=z(67294),yc=Object.defineProperty,uc=Object.defineProperties,Xs=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertySymbols,Gs=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,$s=(te,ye,ge)=>ye in te?yc(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,ec=(te,ye)=>{for(var ge in ye||(ye={}))Gs.call(ye,ge)&&$s(te,ge,ye[ge]);if(cs)for(var ge of cs(ye))qs.call(ye,ge)&&$s(te,ge,ye[ge]);return te},Ee=(te,ye)=>uc(te,Xs(ye)),xe=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});function we(te,ye){const ge=[];for(let We=te;We{let ye=new Date;const ge=ce()(te).format("HH");if(ce()(te).isSame(ce()(ye),"day")){const We=ce()(ye).format("HH"),Jt=ce()(ye).format("mm");return{disabledHours:()=>we(0,24).splice(1,We*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",ge,We),ce()(te).isSame(ce()(ye),"hour")&&ge<=We?we(0,60).splice(0,Jt):we(60,60))}}else if(ce()(te).isSame(ce()(),"day")){const We=ce()().format("HH"),Jt=ce()().format("mm");return{disabledHours:()=>we(0,24).splice(0,We),disabledMinutes:()=>ge<=We?we(0,Jt):we(60,60)}}else return!1},lt=({exercise:te,dispatch:ye})=>{var ge,We,Jt,mt,vt,An,dt,Wt,ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr;const cr=(0,Se.useIntl)(),pr=(0,Se.useParams)(),[ga]=ee.default.useForm(),[Jo,la]=(0,re.useState)(1),[ht,Zl]=(0,re.useState)([]),[Xo,Un]=(0,re.useState)(!0),[ar,$r]=(0,re.useState)([]),[tn,sa]=(0,re.useState)(!0),[Po,Xa]=(0,re.useState)(!1),{workSetting:Gt}=te,[ur,Bl]=(0,re.useState)(!1),[Nl,Hr]=(0,re.useState)([]),[Xl,Zr]=(0,re.useState)([]),[Ot,wt]=(0,re.useState)(!1),[nn,bt]=(0,re.useState)(!1),[Ra,Pr]=(0,re.useState)(!1),[ol,Cl]=(0,re.useState)(null),[dr,wi]=(0,re.useState)(1),[Xu,Lu]=(0,re.useState)({}),[Es,qu]=(0,re.useState)({}),[Os,$u]=(0,re.useState)(!1);(0,re.useEffect)(()=>{var Ia;if(te.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&(Za(),Iu(),te.actionTabs.type===2)){const Co=(Ia=te.actionTabs)==null?void 0:Ia.unified_setting;sa(Co)}},[te.actionTabs]),(0,re.useEffect)(()=>{var Ia,Co,Ka,qo,La,mo,_r;(Ia=Gt==null?void 0:Gt.exercise)!=null&&Ia.publish_time&&ga.setFieldsValue({publish_time:ce()((Co=Gt==null?void 0:Gt.exercise)==null?void 0:Co.publish_time)}),(Ka=Gt==null?void 0:Gt.exercise)!=null&&Ka.end_time&&ga.setFieldsValue({end_time:ce()((qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.end_time)}),ga.setFieldsValue({exercise_type:(La=Gt==null?void 0:Gt.exercise)==null?void 0:La.exercise_type,simulate_exercise_num:(mo=Gt==null?void 0:Gt.exercise)==null?void 0:mo.simulate_exercise_num}),wi((_r=Gt==null?void 0:Gt.exercise)==null?void 0:_r.exercise_type)},[te]);const Ht=Ia=>{var Co;const Ka=ga.getFieldValue("publish_time");if(!Ka||(Co=Gt==null?void 0:Gt.exercise)!=null&&Co.publish_time)return;let qo;Ia===1?qo=ce()(Ka).add(120,"minutes"):qo=ce()(Ka).add(7,"days"),ga.setFieldsValue({end_time:qo})},Za=Ia=>xe(void 0,null,function*(){var Co,Ka;Un(!0);const qo=yield(0,Lt.N3)({coursesId:pr.coursesId,check_ids:[...((Co=te.actionTabs.selectArrs)==null?void 0:Co.map(mo=>Number(mo)))||[]]});console.log(qo,"res");const La=((Ka=qo==null?void 0:qo.course_info)==null?void 0:Ka.map((mo,_r)=>Ee(ec({},mo),{key:mo.course_group_id,title:mo.course_group_name,name:mo.course_group_name,disabled:!!mo.is_published})))||[];if((qo==null?void 0:qo.status)!==-1){Zl([...La]);const mo=ce()();ga.setFieldsValue({publish_time:mo}),(ga.getFieldValue("exercise_type")||1)===1?ga.setFieldsValue({end_time:ce()(mo).add(120,"minutes")}):ga.setFieldsValue({end_time:ce()(mo).add(7,"days")})}Un(!1)});(0,re.useEffect)(()=>{var Ia,Co,Ka,qo,La,mo;if((Ia=Gt==null?void 0:Gt.exercise)!=null&&Ia.is_appoint_user){const _r=((Ka=(Co=Gt==null?void 0:Gt.exercise)==null?void 0:Co.all_exercise_users)==null?void 0:Ka.map(Lo=>Lo.user_id))||[];Hr([..._r])}wt((qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.is_appoint_user),bt((La=Gt==null?void 0:Gt.exercise)==null?void 0:La.is_miss_exam_user),Pr((mo=Gt==null?void 0:Gt.exercise)==null?void 0:mo.is_no_passing_user)},[Gt]),(0,re.useEffect)(()=>{var Ia,Co,Ka,qo,La,mo,_r,Lo;(Co=(Ia=te==null?void 0:te.actionTabs)==null?void 0:Ia.selectArrs)!=null&&Co[0]&&te.actionTabs.key==="\u6279\u91CF\u53D1\u5E03"&&ye({type:"exercise/getWorkSetting",payload:{categoryId:(qo=(Ka=te==null?void 0:te.actionTabs)==null?void 0:Ka.selectArrs)==null?void 0:qo[0],category:(mo=(La=te==null?void 0:te.actionTabs)==null?void 0:La.selectArrs)==null?void 0:mo[0],coursesId:(Lo=(_r=te==null?void 0:te.actionTabs)==null?void 0:_r.params)==null?void 0:Lo.id}})},[(ge=te==null?void 0:te.actionTabs)==null?void 0:ge.selectArrs]);const Hl=()=>xe(void 0,null,function*(){var Ia,Co,Ka,qo,La,mo,_r;const Lo=ec({},ga.getFieldsValue()),Ss=ce()(ce()(Lo.publish_time).format("YYYY-MM-DD HH:mm")).valueOf(),Cc=ce()(ce()(Lo.end_time).format("YYYY-MM-DD HH:mm")).valueOf();if(console.log(Ss,Ss,33),Cc<=Ss){Fe.ZP.info("\u7ED3\u675F\u65F6\u95F4\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4");return}if((ar==null?void 0:ar.length)<=0&&!tn&&ht.length>0&&!((Ia=Gt==null?void 0:Gt.exercise)!=null&&Ia.is_make_up_exercise)){Fe.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}const Lc=ht.map(Dl=>Dl.key),xi={check_ids:[...((Co=te.actionTabs.selectArrs)==null?void 0:Co.map(Dl=>Number(Dl)))||[]],end_time:ce()(Lo.end_time).format("YYYY-MM-DD HH:mm"),publish_time:ce()(Lo.publish_time).format("YYYY-MM-DD HH:mm"),group_ids:ar.map(Dl=>Dl.course_group_id),unified_setting:!ar.length,exercise_type:Lo.exercise_type,simulate_exercise_num:Lo.simulate_exercise_num};if(((Ka=te.actionTabs.selectArrsAll)==null?void 0:Ka.length)>0&&te.actionTabs.type===1&&(xi.check_ids=[...((La=(qo=te.actionTabs.selectArrsAll)==null?void 0:qo.filter(Dl=>!Dl.high_resources_consume||Dl.high_resources_consume_permission))==null?void 0:La.map(Dl=>Number(Dl==null?void 0:Dl.id)))||[]]),(mo=Gt==null?void 0:Gt.exercise)!=null&&mo.is_make_up_exercise){if(Ot&&Nl.length<=0||!Ot&&!(nn||Ra)){Fe.ZP.error("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F");return}xi.is_appoint_user=Ot,xi.is_miss_exam_user=nn,xi.is_no_passing_user=Ra,Ot?xi.make_up_exercise_users=Nl.map(Dl=>({user_id:Dl})):xi.make_up_exercise_user=[]}let{is_locked:xc,open_camera:Fc,screen_open:bc,login_restrict:Bc,ip_bind:Dc,ip_limit:hc,is_random:Ec,id:Sc,identity_verify:wc,open_phone_video_recording:Mc}=Gt==null?void 0:Gt.exercise;if(te.actionTabs.key!=="\u6279\u91CF\u53D1\u5E03"||(xc||Fc||bc||Bc||Dc||hc=="pub"||hc=="inner"||wc||Mc)&&Lo.exercise_type==2){if(ye({type:"exercise/setActionTabs",payload:{}}),te.actionTabs.type==2){let Dl=Pe.default.confirm({width:666,centered:!0,okText:"\u7ACB\u5373\u8C03\u6574",cancelText:"\u4E0D\u9700\u8981",title:cr.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,content:Do.createElement("div",null,"\u5F53\u524D\u8003\u8BD5\u6A21\u5F0F\u4E3A\u201C\u6A21\u62DF\u8003\u8BD5\u201D\uFF0C\u60A8\u5DF2\u5F00\u542F",Do.createElement("span",{style:{color:"#FA6400"}}," ",(0,a.hi)(Gt==null?void 0:Gt.exercise)," "),"\u9632\u4F5C\u5F0A\u89C4\u5219\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\u3002\u662F\u5426\u9700\u8981\u8FDB\u884C\u8C03\u6574\uFF1F"),onOk:()=>xe(void 0,null,function*(){var ys;$u(!0);let Gu=yield(0,Ce.Tr)({exercise_ids:[...((ys=te.actionTabs.selectArrs)==null?void 0:ys.map(As=>Number(As)))||[]],course_id:pr.coursesId,type:"exercise"});if((Gu==null?void 0:Gu.student_count)===0){if((yield qi(xi))&&te.actionTabs.isRouter){Dl.destroy(),Se.history.push(`/classrooms/${pr.coursesId}/exercise/${Sc}/detail?random=${Ec}&tabs=3&childrenTabs=2`);return}ye({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else qu(xi),Lu(Gu)}),onCancel:()=>{Dl.destroy(),$u(!1),qi(xi)}})}else{let Dl=Pe.default.info({width:580,centered:!0,okText:"\u6211\u77E5\u9053\u4E86",title:cr.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,content:Do.createElement("div",null,"\u6A21\u62DF\u8003\u8BD5\u5F00\u542F\u9632\u4F5C\u5F0A\u89C4\u5219\u53EF\u80FD\u4F1A\u5F71\u54CD\u5B66\u751F\u8FDB\u884C\u91CD\u590D\u8003\u8BD5\uFF0C\u53EF\u6839\u636E\u8003\u8BD5\u9700\u8981\u8FDB\u884C\u8C03\u6574\u3002"),onOk:()=>xe(void 0,null,function*(){var ys;$u(!0);let Gu=yield(0,Ce.Tr)({exercise_ids:[...((ys=te.actionTabs.selectArrs)==null?void 0:ys.map(As=>Number(As)))||[]],course_id:pr.coursesId,type:"exercise"});if((Gu==null?void 0:Gu.student_count)===0){if((yield qi(xi))&&te.actionTabs.isRouter){Se.history.push(`/classrooms/${pr.coursesId}/exercise/${Sc}/detail?random=${Ec}&tabs=3&childrenTabs=2`);return}ye({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else qu(xi),Lu(Gu)})})}return}let Qs=yield(0,Ce.Tr)({exercise_ids:[...((_r=te.actionTabs.selectArrs)==null?void 0:_r.map(Dl=>Number(Dl)))||[]],course_id:pr.coursesId,type:"exercise"});(Qs==null?void 0:Qs.student_count)===0?qi(xi):(qu(xi),Lu(Qs))}),Tl=()=>{var Ia;let Co=[...(Ia=te.actionTabs.selectArrsAll)==null?void 0:Ia.filter(Ka=>Ka.high_resources_consume&&!Ka.high_resources_consume_permission)];(Co==null?void 0:Co.length)>0&&te.actionTabs.type===1&&Pe.default.confirm({centered:!0,icon:null,footer:null,width:560,title:cr.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),closable:!0,content:Do.createElement("div",null,Do.createElement("div",{className:ss.tipcontent},Do.createElement("div",{style:{color:"#191919"}},"\u60A8\u6709 ",Co==null?void 0:Co.length," \u4E2A\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u53D1\u5E03\u5931\u8D25\uFF0C\u8BF7\u5355\u72EC\u8FDB\u884C\u53D1\u5E03\u3002"),Do.createElement("div",{className:"mt20 mb20"},Co==null?void 0:Co.map(Ka=>Do.createElement("div",{className:ss.failedList,key:Ka.id},Do.createElement("div",{className:ss.name},Ka==null?void 0:Ka.exercise_name),Do.createElement("div",{className:ss.publish,onClick:()=>{(0,a.xg)(`/classrooms/${pr.coursesId}/exercise/${Ka.id}/detail?random=${Ka.is_random}`)}},"\u53D1\u5E03"))))))})},qi=Ia=>xe(void 0,null,function*(){var Co,Ka,qo;if(te.actionTabs.type===1){let _r=[...(Co=te.actionTabs.selectArrsAll)==null?void 0:Co.filter(Lo=>Lo.high_resources_consume&&!Lo.high_resources_consume_permission)];if((_r==null?void 0:_r.length)==te.actionTabs.selectArrsAll.length){ye({type:"exercise/setActionTabs",payload:{}}),Tl();return}}let La=!1;return Xa(!0),(yield(0,x.ZP)(`/api/courses/${pr.coursesId}/exercises/publish.json`,{method:"post",body:Ia})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u7ACB\u5373\u53D1\u5E03"]),Iu(),Fe.ZP.success("\u53D1\u5E03\u6210\u529F"),ye({type:"exercise/setActionTabs",payload:{}}),(Ka=te==null?void 0:te.actionTabs)!=null&&Ka.cb?(qo=te==null?void 0:te.actionTabs)==null||qo.cb():ye({type:"classroomList/getClassroomExercisesList",payload:ec({},te.actionTabs.params)}),La=!0,te.actionTabs.type===1&&Tl()),Xa(!1),La}),Iu=()=>{la(1),Zl([]),$r([])},is=(Ia,Co,Ka)=>{Ia<=0?Fe.ZP.info("\u8BF7\u9009\u62E9\u8865\u8003\u5B66\u751F"):(Hr(Co),Zr(Ka),Bl(!1))};return Do.createElement(Pe.default,{centered:!0,title:"\u53D1\u5E03\u8003\u8BD5",open:te.actionTabs.key==="\u6279\u91CF\u53D1\u5E03",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:660,onOk:Hl,confirmLoading:Po||Xo,onCancel:()=>{Iu(),ye({type:"exercise/setActionTabs",payload:{}})}},Do.createElement(et.Z,{spinning:Xo},ht&&Do.createElement(ee.default,{form:ga},!!((We=te==null?void 0:te.actionTabs)!=null&&We.disabled)&&Do.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},Do.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:Ve.Z}),"\u5DF2\u7ECF\u53D1\u5E03\u8FC7\u8003\u8BD5\u7684\u8BD5\u5377\u4E0D\u53EF\u4EE5\u7EDF\u4E00\u53D1\u5E03\u3002"),!((Jt=Gt==null?void 0:Gt.exercise)!=null&&Jt.is_make_up_exercise)&&Do.createElement(Do.Fragment,null,Do.createElement(Qt.Z,null,Do.createElement("span",{className:"mr10",style:{lineHeight:"32px"}},Do.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u6A21\u5F0F"),Do.createElement(ee.default.Item,{name:"exercise_type"},Do.createElement(un.ZP.Group,{disabled:((mt=Gt==null?void 0:Gt.exercise)==null?void 0:mt.exercise_status)>1,onChange:Ia=>{wi(Ia.target.value),Ht(Ia.target.value)}},Do.createElement(un.ZP,{value:1},"\u6B63\u5F0F\u8003\u8BD5"),Do.createElement(un.ZP,{value:2},"\u6A21\u62DF\u8003\u8BD5")))),dr==2&&Do.createElement(Qt.Z,{className:`${ss.contentInterval}`},Do.createElement("span",{className:`${ss.minorRuleText}`,style:{marginLeft:50}},"\u6BCF\u4E2A\u5B66\u751F\u5141\u8BB8\u8FDB\u884C\u8003\u8BD5"),Do.createElement(ee.default.Item,{name:"simulate_exercise_num"},Do.createElement(ae.Z,{className:ss.numberInput,style:{width:145},precision:0,size:"middle",disabled:((vt=Gt==null?void 0:Gt.exercise)==null?void 0:vt.exercise_status)>1,min:1,max:999})),Do.createElement("span",null,"\u6B21",Do.createElement("span",{style:{color:"#999999"}},"\uFF08\u53EF\u8BBE\u7F6E1~999\u6B21\uFF09")))),Do.createElement(Qt.Z,null,Do.createElement("span",{className:"mr10 mt5"},Do.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u8003\u8BD5\u65F6\u95F4"),Do.createElement(ee.default.Item,{name:"publish_time"},Do.createElement(In.default,{style:{width:170},disabledDate:Ia=>Ia&&Ia<=ce()().subtract(0,"days"),disabledTime:ot,placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ce()((0,a.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})),Do.createElement("span",{className:"mt5 ml5 mr5"},"\u5230"),Do.createElement(ee.default.Item,{name:"end_time"},Do.createElement(In.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ce()((0,a.U6)(),"HH:mm")},disabledDate:Ia=>Ia&&Ia{var Ka,qo,La,mo,_r;if(wt(Ia),Ia)if((Ka=Gt==null?void 0:Gt.exercise)!=null&&Ka.is_appoint_user){const Lo=(La=(qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.all_exercise_users)==null?void 0:La.map(Ss=>Ss.user_id);Hr([...Lo])}else Hr([]),bt(!1),Pr(!1);else bt((mo=Gt==null?void 0:Gt.exercise)==null?void 0:mo.is_miss_exam_user),Pr((_r=Gt==null?void 0:Gt.exercise)==null?void 0:_r.is_no_passing_user)},disabled:((dt=Gt==null?void 0:Gt.exercise)==null?void 0:dt.exercise_status)!==1}),Do.createElement("span",{style:{marginLeft:"10px",fontSize:"14px",color:"3333"}},"\u6307\u5B9A\u5B66\u751F")),!Ot&&Do.createElement(Qt.Z,{className:"mt20",style:{paddingLeft:"90px"},align:"middle"},Do.createElement(Ze.default,{checked:nn,disabled:((Wt=Gt==null?void 0:Gt.exercise)==null?void 0:Wt.exercise_status)!==1||((ir=Gt==null?void 0:Gt.exercise)==null?void 0:ir.miss_exam_count)<=0,onChange:Ia=>{bt(Ia.target.checked)}},Do.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u7F3A\u8003")),Do.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginRight:"60px"},onClick:()=>{Cl(1),wt(!1),Bl(!0)}},"\uFF08",`${(fr=Gt==null?void 0:Gt.exercise)==null?void 0:fr.miss_exam_count}\u4EBA`,"\uFF09"),Do.createElement(Ze.default,{checked:Ra,disabled:((nr=Gt==null?void 0:Gt.exercise)==null?void 0:nr.exercise_status)!==1||((Mo=Gt==null?void 0:Gt.exercise)==null?void 0:Mo.no_passing_count)<=0,onChange:Ia=>{Pr(Ia.target.checked)}},Do.createElement("span",{style:{fontSize:"14px",color:"#333"}},"\u672A\u53CA\u683C")),Do.createElement("span",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Cl(2),wt(!1),Bl(!0)}},"\uFF08",`${(ba=Gt==null?void 0:Gt.exercise)==null?void 0:ba.no_passing_count}\u4EBA`,"\uFF09")),Ot&&Do.createElement(Qt.Z,{className:"mt20",style:{paddingLeft:"90px"}},Do.createElement(Oe.ZP,{type:"primary",ghost:!0,disabled:((Vo=Gt==null?void 0:Gt.exercise)==null?void 0:Vo.exercise_status)!==1,onClick:()=>{Bl(!0),Cl(void 0)}},Do.createElement("span",null,Do.createElement("i",{className:"iconfont icon-tianjia4 mr5",style:{fontSize:"14px"}})),Do.createElement("span",null,"\u9009\u62E9\u5B66\u751F")),Do.createElement("span",{style:{color:"#333",display:"inline-block",height:"32px",lineHeight:"32px",marginLeft:"10px"}},"\uFF08\u5DF2\u9009 ",`${Nl.length||0} \u4EBA`,"\uFF09"))),te.actionTabs.type===2&&!((ta=Gt==null?void 0:Gt.exercise)!=null&&ta.is_make_up_exercise)&&Do.createElement(Qt.Z,{style:{marginBottom:"10px"}},Do.createElement("span",{className:"mr10"},Do.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7"),Do.createElement(un.ZP.Group,{value:tn,onChange:Ia=>{sa(Ia.target.value),$r([])}},Do.createElement(un.ZP,{disabled:!!((so=te==null?void 0:te.actionTabs)!=null&&so.disabled)||ht.some(Ia=>Ia==null?void 0:Ia.is_published)||!((eo=te==null?void 0:te.actionTabs)!=null&&eo.manage_all_group),value:!0},"\u7EDF\u4E00\u53D1\u5E03"),Do.createElement(un.ZP,{disabled:ht.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),ht.length<=0&&te.actionTabs.type===2&&!((qa=Gt==null?void 0:Gt.exercise)!=null&&qa.is_make_up_exercise)&&Do.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"'),(te.actionTabs.type===1||!tn)&&!((Rr=Gt==null?void 0:Gt.exercise)!=null&&Rr.is_make_up_exercise)&&ht.length>0&&Do.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},Do.createElement("span",{style:{flex:1}},Do.createElement(Ze.default,{checked:ar.length===ht.length,onChange:Ia=>{ar.length===ht.length?$r([]):$r(ht)}},"\u5168\u9009")),Do.createElement("span",{style:{width:16}}),Do.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",ar.length||0,"\u4E2A\u5206\u73ED")),(te.actionTabs.type===1||!tn)&&!((vr=Gt==null?void 0:Gt.exercise)!=null&&vr.is_make_up_exercise)&&ht.length>0&&Do.createElement(Bs.Z,{data:ht,selectedRowKeys:ar,setSelectedRowKeys:$r})),Do.createElement(ic,{visible:ur,setVisible:Bl,onK:is,selectKeys:Nl,selectRows:Xl,appointStudent:Ot,modalParams:ol,courseId:pr.categoryId||((rr=(_o=te==null?void 0:te.actionTabs)==null?void 0:_o.selectArrs)==null?void 0:rr[0])})),Do.createElement(De.Z,{resdata:Xu,type:"exercisepush",okloading:Po,oktext:(Xu==null?void 0:Xu.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ia=>xe(void 0,null,function*(){var Co,Ka,qo;Xa(!0);let La=yield(0,x.ZP)(`/api/courses/${pr.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"exercise",ids:[...((Co=te.actionTabs.selectArrs)==null?void 0:Co.map(mo=>Number(mo)))||[]]}});if(Xa(!1),(La==null?void 0:La.status)===0)if(Os){let mo=yield qi(Es);if(Pe.default.destroyAll(),mo&&te.actionTabs.isRouter){Se.history.push(`/classrooms/${pr.coursesId}/exercise/${(Ka=Gt==null?void 0:Gt.exercise)==null?void 0:Ka.id}/detail?random=${(qo=Gt==null?void 0:Gt.exercise)==null?void 0:qo.is_random}&tabs=3&childrenTabs=2`);return}ye({type:"exercise/setActionTabs",payload:{key:"\u8C03\u6574tabs\u9009\u4E2D"}})}else qi(Es)})}))};var Tt=(0,Se.connect)(({exercise:te})=>({exercise:te}))(lt),Bt=Object.defineProperty,rn=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,Ca=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,zn=(te,ye,ge)=>ye in te?Bt(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,aa=(te,ye)=>{for(var ge in ye||(ye={}))Ca.call(ye,ge)&&zn(te,ge,ye[ge]);if(Dn)for(var ge of Dn(ye))Tn.call(ye,ge)&&zn(te,ge,ye[ge]);return te},ua=(te,ye)=>rn(te,sn(ye)),ln=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});function Ln(te,ye){const ge=[];for(let We=te;We{let ye=new Date;const ge=ce()(te).format("HH");if(ce()(te).isSame(ce()(ye),"day")){const We=ce()(ye).format("HH"),Jt=ce()(ye).format("mm");return{disabledHours:()=>Ln(0,24).splice(1,We*1-1),disabledMinutes:()=>ce()(te).isSame(ce()(ye),"hour")&&ge<=We?Ln(0,60).splice(0,Jt):Ln(60,60)}}else if(ce()(te).isSame(ce()(),"day")){const We=ce()().format("HH"),Jt=ce()().format("mm");return{disabledHours:()=>Ln(0,24).splice(0,We),disabledMinutes:()=>ge<=We?Ln(0,Jt):Ln(60,60)}}else return!1},ro=({exercise:te,dispatch:ye})=>{var ge;const We=(0,Se.useIntl)(),Jt=(0,Se.useParams)(),[mt]=ee.default.useForm(),[vt,An]=(0,re.useState)(1),[dt,Wt]=(0,re.useState)([]),[ir,fr]=(0,re.useState)(!0),[nr,Mo]=(0,re.useState)([]),[ba,Vo]=(0,re.useState)(!0),[ta,so]=(0,re.useState)(!1);(0,re.useEffect)(()=>{te.actionTabs.key==="\u6279\u91CF\u7ED3\u675F"&&eo()},[te.actionTabs]);const eo=vr=>ln(void 0,null,function*(){var _o,rr;fr(!0);const cr=yield ye({type:"exercise/getEndGroups",payload:ua(aa({},Jt),{check_ids:[...((_o=te.actionTabs.selectArrs)==null?void 0:_o.map(ga=>Number(ga)))||[]]})}),pr=(rr=cr==null?void 0:cr.course_info)==null?void 0:rr.map((ga,Jo)=>ua(aa({},ga),{key:ga.course_group_id,title:ga.course_group_name,name:ga.course_group_name,disabled:!!ga.is_published}));cr&&(cr!=null&&cr.course_info)&&(Wt([...pr]),mt.setFieldsValue({end_time:ce()(ce()(new Date((0,a.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})),fr(!1)}),qa=()=>ln(void 0,null,function*(){var vr,_o,rr,cr;const pr=aa({},mt.getFieldsValue());if((nr==null?void 0:nr.length)<=0&&dt.length>0&&!((vr=te.actionTabs)!=null&&vr.unified_setting)){Fe.ZP.info("\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A");return}so(!0);const ga={check_ids:[...((_o=te.actionTabs.selectArrs)==null?void 0:_o.map(la=>Number(la)))||[]],group_ids:nr};ba||(ga.end_time=ce()(pr.end_time).format("YYYY-MM-DD HH:mm")),ga.group_ids=nr.map(la=>la.course_group_id),(yield(0,x.ZP)(`/api/courses/${Jt.coursesId}/exercises/end_exercise.json`,{method:"post",body:ga})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),(0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u6279\u91CF\u7ED3\u675F"]),ye({type:"exercise/setActionTabs",payload:{}}),(rr=te==null?void 0:te.actionTabs)!=null&&rr.cb?(cr=te==null?void 0:te.actionTabs)==null||cr.cb():ye({type:"classroomList/getClassroomExercisesList",payload:aa({},te.actionTabs.params)})),so(!1)}),Rr=()=>{An(1),Wt([]),Mo([]),Vo(!0)};return re.createElement(Pe.default,{centered:!0,title:"\u7ED3\u675F\u8003\u8BD5",open:te.actionTabs.key==="\u6279\u91CF\u7ED3\u675F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:qa,width:680,confirmLoading:ta||ir,onCancel:()=>{Rr(),ye({type:"exercise/setActionTabs",payload:{}})}},re.createElement(et.Z,{spinning:ir},dt&&re.createElement(ee.default,{form:mt},re.createElement("div",{style:{color:"#333333",display:"flex"},className:"font14 mb10"},re.createElement("img",{style:{marginRight:5,objectFit:"contain"},src:Ve.Z}),"\u8003\u8BD5\u65F6\u95F4\u7ED3\u675F\u540E\uFF0C\u5B66\u751F\u5C06\u4E0D\u80FD\u518D\u7B54\u9898\u3002"),re.createElement(Qt.Z,{className:"mt20 mb10"},re.createElement("span",{className:"mr10"},re.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u7ED3\u675F\u65F6\u95F4"),re.createElement(un.ZP.Group,{value:ba,onChange:vr=>{Vo(vr.target.value),Mo([])}},re.createElement(un.ZP,{value:!0},"\u7ACB\u5373\u7ED3\u675F"),re.createElement(un.ZP,{value:!1},"\u5B9A\u65F6\u7ED3\u675F")),re.createElement(ee.default.Item,{name:"end_time",style:{marginTop:-3,visibility:ba?"hidden":"visible"}},re.createElement(In.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ce()((0,a.U6)(),"HH:mm")},disabledDate:vr=>vr&&vr0&&!((ge=te.actionTabs)!=null&&ge.unified_setting)&&re.createElement(Qt.Z,{style:{marginBottom:"10px"}},re.createElement("span",{className:"mr10"},re.createElement("span",{style:{color:"red",marginRight:3}},"*"),"\u9009\u62E9\u73ED\u7EA7:"),re.createElement("div",null,dt.length>0&&re.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},re.createElement("span",{style:{flex:1}},re.createElement(Ze.default,{checked:nr.length===dt.length,onChange:vr=>{nr.length===dt.length?Mo([]):Mo(dt)}},"\u5168\u9009")," "),re.createElement("span",{style:{width:16}}),re.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",nr.length||0,"\u4E2A\u5206\u73ED")),re.createElement(Bs.Z,{data:dt,selectedRowKeys:nr,setSelectedRowKeys:Mo}))))))};var Ga=(0,Se.connect)(({exercise:te})=>({exercise:te}))(ro),io=Object.defineProperty,ho=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,ja=Object.prototype.propertyIsEnumerable,Yr=(te,ye,ge)=>ye in te?io(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Ar=(te,ye)=>{for(var ge in ye||(ye={}))uo.call(ye,ge)&&Yr(te,ge,ye[ge]);if(ho)for(var ge of ho(ye))ja.call(ye,ge)&&Yr(te,ge,ye[ge]);return te},Nr=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const al=({exercise:te,dispatch:ye})=>{const ge=(0,Se.useIntl)(),We=(0,Se.useParams)();return re.createElement(Pe.default,{centered:!0,title:ge.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:te.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:ge.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:"\u53D6\u6D88",onOk:()=>Nr(void 0,null,function*(){(yield(0,x.ZP)(`/api/courses/${We.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...te.actionTabs.selectArrs]}})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),ye({type:"exercise/setActionTabs",payload:{}}),ye({type:"classroomList/getClassroomExercisesList",payload:Ar({},te.actionTabs.params)}))}),onCancel:()=>{ye({type:"exercise/setActionTabs",payload:{}})}},re.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",re.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var bl=(0,Se.connect)(({exercise:te})=>({exercise:te}))(al),Ll=Object.defineProperty,_l=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable,ll=(te,ye,ge)=>ye in te?Ll(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Il=(te,ye)=>{for(var ge in ye||(ye={}))Sl.call(ye,ge)&&ll(te,ge,ye[ge]);if(_l)for(var ge of _l(ye))rl.call(ye,ge)&&ll(te,ge,ye[ge]);return te},Yl=(te,ye)=>{var ge={};for(var We in te)Sl.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&_l)for(var We of _l(te))ye.indexOf(We)<0&&rl.call(te,We)&&(ge[We]=te[We]);return ge},yl=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Kl=te=>{var ye=te,{exercise:ge,dispatch:We,user:Jt}=ye,mt=Yl(ye,["exercise","dispatch","user"]),vt,An;const dt=(0,Se.useIntl)(),Wt=(0,Se.useParams)(),[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1),ba=(0,re.useRef)(null);(0,re.useEffect)(()=>{var ta,so;if(ge.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,oe.j5)()){Mo(!0);return}const eo={hasNum:0,noHasNum:0};(so=(ta=ge==null?void 0:ge.actionTabs)==null?void 0:ta.selectArrsAll)==null||so.map(qa=>{var Rr;qa.author_login===((Rr=Jt.userInfo)==null?void 0:Rr.login)?++eo.hasNum:++eo.noHasNum}),eo.noHasNum>0?Pe.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:re.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",re.createElement("span",{className:"c-blue"},eo.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",re.createElement("span",{className:"c-red"},eo.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",re.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:()=>{Vo()}}):Mo(!0)}else Mo(!1)},[ge.actionTabs.key]);const Vo=()=>{We({type:"exercise/setActionTabs",payload:{}})};return re.createElement(Pe.default,{centered:!0,title:dt.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:nr,okText:dt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:"\u53D6\u6D88",confirmLoading:ir,destroyOnClose:!0,onOk:()=>yl(void 0,null,function*(){var ta;if((ta=ba.current)!=null&&ta.onVerify())return;fr(!0);const so=yield(0,x.ZP)(`/api/courses/${Wt.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...ge.actionTabs.selectArrs]}});fr(!1),so.status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),Fe.ZP.success("\u5220\u9664\u6210\u529F"),We({type:"exercise/setActionTabs",payload:{}}),We({type:"classroomList/getClassroomExercisesList",payload:Il({},ge.actionTabs.params)}),We({type:"classroomList/getClassroomLeftMenus",payload:Il({},ge.actionTabs.params)}))}),onCancel:()=>{We({type:"exercise/setActionTabs",payload:{}})}},!((vt=ge==null?void 0:ge.actionTabs)!=null&&vt.status)||!["\u672A\u5F00\u59CB"].includes((An=ge==null?void 0:ge.actionTabs)==null?void 0:An.status)?re.createElement(re.Fragment,null,re.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u8003\u8BD5\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"),re.createElement(Sn.Z,{ref:ta=>ba.current=ta})):re.createElement("p",null,"\u5220\u9664\u8BD5\u5377\u4F1A\u540C\u6B65\u5220\u9664\u8BD5\u5377\u4E2D\u7684\u6240\u6709\u8003\u8BD5\uFF0C\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F"))};var Ei=(0,Se.connect)(({exercise:te,user:ye})=>({exercise:te,user:ye}))(Kl),ai=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,Li=(te,ye)=>{var ge={};for(var We in te)ki.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&ai)for(var We of ai(te))ye.indexOf(We)<0&&gi.call(te,We)&&(ge[We]=te[We]);return ge},ql=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const fi=te=>{var ye=te,{exercise:ge,dispatch:We}=ye,Jt=Li(ye,["exercise","dispatch"]);const mt=(0,Se.useIntl)(),vt=(0,Se.useParams)();return vt.id=vt.coursesId,(0,re.useEffect)(()=>{ge.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>ql(void 0,null,function*(){(yield(0,x.ZP)(`/api/courses/${vt.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ge.actionTabs.selectArrs]}})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),Fe.ZP.success("\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93")),We({type:"exercise/setActionTabs",payload:{}})}))},[ge.actionTabs.key]),re.createElement(re.Fragment,null)};var Ii=(0,Se.connect)(({exercise:te})=>({exercise:te}))(fi),il={flex_box_center:"flex_box_center___CNQHU",flex_space_between:"flex_space_between___qsDOu",flex_box_vertical_center:"flex_box_vertical_center___iKKg9",flex_box_center_end:"flex_box_center_end___aCmKh",flex_box_column:"flex_box_column___mXBIE",bg:"bg___FnTgr",containerTitle:"containerTitle___HZdw3",containerDesc:"containerDesc___MrGYv",tablestyle:"tablestyle___Ef1u5",listItem:"listItem___ol4Bd",info:"info___Uc7Ha",title:"title___AlzFu",titleLeft:"titleLeft___Avinm",titleRight:"titleRight___AYJHU",flexBox:"flexBox___IGR6d",iconV:"iconV___WirdJ",acitons:"acitons___VhyxD",moveCategory:"moveCategory___QQQOY",name:"name___cKK1Q",categoryName:"categoryName___EsAA9",schedule:"schedule___asfSm",fnSign:"fnSign___vsajc",spanSize:"spanSize___MqQy2",classromediv:"classromediv___j4dHG",glow:"glow___fcHVY",popover:"popover___bOtgn",dot:"dot___uMZO4",moni:"moni___KMHkN",authorized:"authorized___awAlQ"},ji=Object.defineProperty,$i=Object.getOwnPropertySymbols,yu=Object.prototype.hasOwnProperty,el=Object.prototype.propertyIsEnumerable,pi=(te,ye,ge)=>ye in te?ji(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,$l=(te,ye)=>{for(var ge in ye||(ye={}))yu.call(ye,ge)&&pi(te,ge,ye[ge]);if($i)for(var ge of $i(ye))el.call(ye,ge)&&pi(te,ge,ye[ge]);return te};const Oi=te=>React.createElement("svg",$l({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD 2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fill:"#979797",fillRule:"nonzero"},React.createElement("path",{d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z"}))));var Vi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbD0iIzk3OTc5NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",mi=Object.defineProperty,zi=Object.getOwnPropertySymbols,Ou=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,eu=(te,ye,ge)=>ye in te?mi(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,ds=(te,ye)=>{for(var ge in ye||(ye={}))Ou.call(ye,ge)&&eu(te,ge,ye[ge]);if(zi)for(var ge of zi(ye))Nu.call(ye,ge)&&eu(te,ge,ye[ge]);return te};const Ms=te=>React.createElement("svg",ds({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#229BFF",d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z",fill:"#0152d9"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z",fill:"#0152d9"}))));var gs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMD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foUmaOqHAVtj9sYbq1F/OlQxBvsCJ84/STL274zDWODWOD/uF8xlwpf6v2flucwfSU6+tXZAsBYsSX5wh6TQ+o/zoHygTub4zP+vSs7X2BWZ9+2vyyHOh/orU2G6/sPeSOntWeNpYpLmQ/XObrBP7g/XU3ikL2v8AIAf8etAcp/JNxxxyddj4b5J3GSmF6y3TheG4qWOHGPTX2rosmtKoiMdkJxA1t++BGa0idji4YDQlSF8z4PY6FkfxlWWUG259vIPiGwcfoKU4gNDAssOZcTIRWhaOQUU35lHZIQpWuOwciOqDV7h9zmNb0sGHZHpivpY0fNdbZJkd7HLJcaxq83fSwZ4nmeSMI0D5XJfGcETmxyFjSUUrRtL2NI5/d9h0Jp2HSOBuxSTIzMxvbbIsgzLL8tPCgrSMkyzKDnHW9qtcNLPCDHIqQwQjNIIVkQ7FfNI9zl59TWeBD11jTqR1tIvrKda2d/e3kmOOIW3vLiR7E6asQTyjjNeqDGMKFKrWCariPcqrz5O1tik2blTb5tPGx2rgU9VjmPUEWSWYGmoKSN61fBSYZgiSnsRSlIZRBRzyuRo2tRE52nlB5NeOOObkDzCzPhmY5j2OVqo5FTvpevk3v+nNcnStciqioqKiqi87CieF7hkarXNVUVFTp16flP8AUX7oqfRU+qc4DIwzGkG5HNciKiovX7/hf8VPsqL0VFRUVEVOYc6+c+OOOOOOOOOOOOOOOOOOOOOOOObjjzFTMhhY573uRqI1FXrtevk7r+mtanaucqoiIiqqoic7BCeZ7RjarnOVERETr06/lf8AET7qq/RE+q84EIwLHEI5GtaiqqqvT7fhP9VfsiJ1VVVERFVef//Z",bu=Object.defineProperty,pu=Object.getOwnPropertySymbols,ms=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,vu=(te,ye,ge)=>ye in te?bu(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Si=(te,ye)=>{for(var ge in ye||(ye={}))ms.call(ye,ge)&&vu(te,ge,ye[ge]);if(pu)for(var ge of pu(ye))ns.call(ye,ge)&&vu(te,ge,ye[ge]);return te};const hu=te=>React.createElement("svg",Si({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m2.288 4.95 5.456 1.725 3.085-1.016c.176-.058.176.039.013.167-.686.544-1.286 1.24-1.613 2.076a4.679 4.679 0 0 0 2.414 2.542l-1.313 1.311-2.748.863-5.294-1.763V4.95ZM7.661 0l7.502 2.936-7.502 2.692L.73 3.192V8.14h-.7V2.946L0 2.936 7.661 0Z",fill:"#739EFF"}),React.createElement("g",{fill:"#FF9D18",fillRule:"nonzero"},React.createElement("path",{d:"m11.381 9.3.949-.948a1.305 1.305 0 0 1-.097-.498c0-.762.623-1.385 1.384-1.385.18 0 .346.035.499.097l.713-.713a3.6 3.6 0 0 0-1.212-.215c-1.453 0-2.852.921-3.323 2.216A3.281 3.281 0 0 0 11.381 9.3Z"}),React.createElement("path",{d:"M12.787 7.854v.041l.872-.872h-.042a.833.833 0 0 0-.83.83Zm3.066-1.447.674-.674.738-.738-.394-.395-.795.795-4.629 4.629-1.097 1.097.394.395.664-.665.567-.566.438-.438c.384.147.793.222 1.204.222 1.447 0 2.86-.92 3.33-2.215-.208-.568-.602-1.067-1.094-1.447Zm-2.236 2.831c-.173 0-.346-.035-.498-.097l.464-.464h.041c.457 0 .83-.373.83-.83v-.042l.465-.464c.048.166.083.34.083.513 0 .761-.623 1.384-1.385 1.384Z"}))));var Vu="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuN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4wNDguMTY2LjA4My4zNC4wODMuNTEzIDAgLjc2MS0uNjIzIDEuMzg0LTEuMzg1IDEuMzg0WiIvPjwvZz48L2c+PC9zdmc+",Tu=z(1762),Wn=z(67294),Au=Object.defineProperty,Wu=Object.defineProperties,Ni=Object.getOwnPropertyDescriptors,au=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,ou=(te,ye,ge)=>ye in te?Au(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Yu=(te,ye)=>{for(var ge in ye||(ye={}))_u.call(ye,ge)&&ou(te,ge,ye[ge]);if(au)for(var ge of au(ye))Ti.call(ye,ge)&&ou(te,ge,ye[ge]);return te},Ql=(te,ye)=>Wu(te,Ni(ye)),_i=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Pu=({v:te,k:ye,selectArrs:ge,setSelectArrs:We,dispatch:Jt,params:mt,classroomList:vt,batchStatus:An,manageAllGroup:dt,user:Wt})=>{var ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr,cr,pr,ga,Jo;const la=(0,Se.useIntl)(),[ht,Zl]=(0,re.useState)([]),[Xo,Un]=(0,re.useState)(!1),ar=(0,re.useRef)(),$r=(0,re.useRef)();var tn=!1;const sa="YYYY-MM-DD",Po=ce()("2020-11-15",sa);function Xa(){return _i(this,null,function*(){console.log(mt,222);let Ot=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/group_use_list.json`,{method:"get",params:Ql(Yu({},mt),{id:te.id})});Zl((Ot==null?void 0:Ot.groups)||[])})}const Gt=()=>Pe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Wn.createElement(Wn.Fragment,null,"\u5E73\u53F0\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")});te!=null&&te.appraise_label&&(tn=!0);const ur=(Ot,wt=!1)=>{var nn;Se.history.push(`/classrooms/${mt.coursesId}/exercisenotice/${Ot.id}/users/${(nn=(0,oe.eY)())==null?void 0:nn.login}`)},Bl=[{title:la.formatMessage({id:"classrooms.class",defaultMessage:"\u73ED\u7EA7"}),dataIndex:"name",key:"name"},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",width:100,filters:[{text:"\u672A\u5F00\u59CB",value:1},{text:"\u8003\u8BD5\u4E2D",value:2},{text:"\u5DF2\u622A\u6B62",value:3}],onFilter:(Ot,wt)=>wt.exercise_status===Ot,render:(Ot,wt)=>Wn.createElement("div",null,Ot===1&&Wn.createElement("span",null,Wn.createElement("i",{className:il.dot,style:{background:"#C3C3C3"}}),"\u672A\u5F00\u59CB"),Ot===2&&Wn.createElement("span",null,Wn.createElement("i",{className:il.dot,style:{background:"#4EACFF"}}),"\u8003\u8BD5\u4E2D"),Ot===3&&Wn.createElement("span",null,Wn.createElement("i",{className:il.dot,style:{background:"#FC2D6B"}}),"\u5DF2\u622A\u6B62"))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"publish_time",key:"publish_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:mt.order_by==="publish_time"?mt.sort_direction==="desc"?"descend":"ascend":null},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:mt.order_by==="end_time"?mt.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(Ot,wt)=>wt.exercise_status===1?"-":Wn.createElement("span",null,Ot,"/",wt.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(Ot,wt)=>wt.exercise_status===1?"-":Ot===0?Wn.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},Ot):Wn.createElement("a",{onClick:()=>(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te==null?void 0:te.id}/detail?random=false&exercise_group_id=${wt.course_group_id}`)},Ot)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"center",key:"action",width:60,render:(Ot,wt)=>wt.exercise_status===1?Wn.createElement("img",{style:{cursor:"not-allowed"},src:Vi}):Wn.createElement(ne.Z,{title:"\u8BC4\u9605"},Wn.createElement("a",{onClick:()=>(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te==null?void 0:te.id}/detail?random=false&exercise_group_id=${wt.course_group_id}`)},Wn.createElement("img",{src:gs})))}],Nl=Ot=>{if(tn)return Wn.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},"\u96C6\u4E2D\u9605\u5377");if(Ot!=null&&Ot.includes("\u672A\u5F00\u59CB"))return Wn.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},"\u672A\u5F00\u59CB");if(Ot!=null&&Ot.includes("\u8003\u8BD5\u4E2D"))return Wn.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},"\u8003\u8BD5\u4E2D");if(Ot!=null&&Ot.includes("\u5DF2\u622A\u6B62"))return Wn.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},"\u5DF2\u622A\u6B62");if(Ot!=null&&Ot.includes("\u5BFC\u5165"))return Wn.createElement("span",{className:"export mr10"},"\u5BFC\u5165")},Hr=()=>{const Ot=(te==null?void 0:te.simulate_exercise_num)-(te==null?void 0:te.user_simulate_num);return Ot>=0?Ot:0},Xl=(Ot=te)=>{var wt,nn,bt;if(Ot!=null&&Ot.is_encrypt){Jt({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:Ot==null?void 0:Ot.id,phone:(wt=Wt==null?void 0:Wt.userInfo)==null?void 0:wt.phone,login:(nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.login}});return}(bt=Wt==null?void 0:Wt.userInfo)!=null&&bt.phone?Jt({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:Ot==null?void 0:Ot.id}}):Jt({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},Zr=Ot=>{var wt,nn,bt;if(((wt=Wt==null?void 0:Wt.userInfo)==null?void 0:wt.login)!==(te==null?void 0:te.author_login)){Fe.ZP.warning("\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01~");return}Jt({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:te==null?void 0:te.id,phone:(nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.phone,login:(bt=Wt==null?void 0:Wt.userInfo)==null?void 0:bt.login,onFinish:Ot}})};return Wn.createElement("div",{className:il.listItem,onClick:Ot=>{const wt=()=>{(!(0,oe.GJ)()||(0,oe.GJ)()&&$r.current&&!$r.current.contains(Ot.target))&&(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()}},(0,oe.GJ)()&&Wn.createElement("span",{ref:$r},Wn.createElement(Ze.default,{checked:ge.includes(te.id),value:te.id,style:{padding:"10px"},onClick:Ot=>{Ot.stopPropagation()},disabled:(te==null?void 0:te.is_encrypt)||(te==null?void 0:te.is_make_up_exercise),onChange:Ot=>{let wt=ge.indexOf(te.id);ge.indexOf(te.id)>-1?We(ge.filter(nn=>nn!==te.id)):We(ge.concat(te.id))}})),Wn.createElement("div",{className:il.info},Wn.createElement("div",{className:il.title},Wn.createElement("div",{className:il.titleLeft,style:{marginRight:15}},Nl(te==null?void 0:te.exercise_tips),(te==null?void 0:te.is_make_up_exercise)&&Wn.createElement("img",{src:nu,width:44,height:24,style:{marginRight:10}}),Wn.createElement(ne.Z,{title:te.exercise_name},Wn.createElement("span",{className:il.name},te.exercise_name)),(te==null?void 0:te.high_resources_consume)&&!(te!=null&&te.high_resources_consume_permission)&&Wn.createElement(be.Z,{type:"exercise",style:{marginLeft:10}}),(te==null?void 0:te.high_resources_consume)&&(te==null?void 0:te.high_resources_consume_permission)&&Wn.createElement("span",{className:il.authorized},"\u5DF2\u6388\u6743"),((ir=te==null?void 0:te.exercise_tips)==null?void 0:ir.includes("\u5DF2\u622A\u6B62"))&&((fr=vt==null?void 0:vt.detailTopBanner)==null?void 0:fr.forbid_end_exercise)&&Wn.createElement(ne.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},Wn.createElement("img",{src:Vu,width:20,className:"ml10"})),!te.is_public&&(0,oe.GJ)()&&Wn.createElement(ne.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},Wn.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(te==null?void 0:te.exercise_type)==2&&Wn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:il.moni},Wn.createElement("img",{src:kt,width:18,height:14}),"\u6A21\u62DF\u8003\u8BD5"),((nr=te==null?void 0:te.exercise_tips)==null?void 0:nr.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&Wn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),((Mo=te==null?void 0:te.exercise_tips)==null?void 0:Mo.includes("\u5DF2\u622A\u6B62"))&&((ba=te==null?void 0:te.exercise_tips)==null?void 0:ba.includes("\u672A\u63D0\u4EA4"))&&Wn.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},"\u672A\u63D0\u4EA4"),(te==null?void 0:te.is_encrypt)&&Wn.createElement(ne.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",Wn.createElement("img",{src:bn,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),Wn.createElement("div",{className:il.titleRight,onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault()}},(te==null?void 0:te.appraise_setting)&&Wn.createElement("span",{className:il.flexBox,style:{marginRight:"16px"},onClick:()=>_i(void 0,null,function*(){const Ot=()=>_i(void 0,null,function*(){Jt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const wt=yield(0,x.ZP)(`/api/exercises/${te.id}/create_appraise_students.json`,{method:"get"});Jt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te.id}/centralizeReview/${wt==null?void 0:wt.login}`)});if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()})},Wn.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),Wn.createElement("div",null,"\u96C6\u4E2D\u9605\u5377")),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&(!(te!=null&&te.is_make_up_exercise)||(te==null?void 0:te.is_make_up_exercise)&&(te==null?void 0:te.exercise_status)===1&&(te==null?void 0:te.allow_create_make_up))&&Wn.createElement(qt.Z,{tips:te==null?void 0:te.open_appraise},Wn.createElement("span",{className:il.flexBox,style:{marginRight:"16px"},onClick:()=>{const Ot=()=>{var wt,nn,bt;if(((wt=Wt==null?void 0:Wt.userInfo)==null?void 0:wt.user_status)===2){(0,de.Rd)();return}if((0,oe.Rm)()&&!((bt=(nn=vt==null?void 0:vt.AssistantObject)==null?void 0:nn.exercise)!=null&&bt.can_publish)){Fe.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((te==null?void 0:te.exercise_question_count)===0){Fe.ZP.warning("\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5");return}let Ra=()=>{Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[te.id],unified_setting:te.unified_setting,params:mt,disabled:te.exercise_status!==1,type:2,manage_all_group:dt,isRouter:!0}})};te!=null&&te.high_resources_consume&&!(te!=null&&te.high_resources_consume_permission)?Jt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:mt.coursesId,type:"exercise",type_id:te.id,name:te.exercise_name,fn:()=>{Jt({type:"classroomList/getClassroomExercisesList",payload:Yu({},mt)}),Ra()}}}):Ra()};if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()}},Wn.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),Wn.createElement("div",null,"\u53D1\u5E03"))),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&!(0,a._m)()&&te.assistant_auth&&Wn.createElement("span",{className:il.flexBox,style:{marginRight:"16px"},onClick:Ot=>{Ot.stopPropagation();const wt=()=>{var nn,bt;if((0,oe.Rm)()&&!((bt=(nn=vt==null?void 0:vt.AssistantObject)==null?void 0:nn.exercise)!=null&&bt.can_preview)){Fe.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 Ra=ce()(te.created_at,sa);ce()(Po).diff(ce()(Ra),"days")>0&&(te!=null&&te.is_random)?Gt():te!=null&&te.is_random?(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/random/preview?random=${te.is_random}`):(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}&tabs=2`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()}},Wn.createElement("i",{className:"iconfont icon-yulan3"}),Wn.createElement("div",null,la.formatMessage({id:"classrooms.preview",defaultMessage:"\u9884\u89C8"}))),(0,oe.RV)()&&Wn.createElement("span",{className:il.flexBox,style:{marginRight:"16px"},onClick:()=>{const Ot=()=>{(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}`)};if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()}},Wn.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),Wn.createElement("div",null,"\u8BE6\u60C5")),(0,oe.GJ)()&&!(0,a._m)()&&Wn.createElement(Fa.Z,{placement:"bottom",content:Wn.createElement("div",{className:il.popover},!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&Wn.createElement("p",{onClick:Ot=>_i(void 0,null,function*(){const wt=()=>{(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}&tabs=3`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u89C4\u5219\u8BBE\u7F6E"),(te==null?void 0:te.exercise_tips.includes("\u5BFC\u5165"))&&Wn.createElement("p",{onClick:Ot=>_i(void 0,null,function*(){const wt=()=>{Jt({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:te==null?void 0:te.exercise_name,id:te==null?void 0:te.id,type:"hack"}})};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u8865\u5145\u6210\u7EE9"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&te.is_random&&te.assistant_auth&&Wn.createElement("p",{onClick:Ot=>{Ot.stopPropagation();const wt=()=>{const nn=ce()(te.created_at,sa);ce()(Po).diff(ce()(nn),"days")>0&&(te!=null&&te.is_random)?Gt():(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/random/edit?type=settings`)};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()}},"\u7F16\u8F91\u8003\u8BD5"),Wn.createElement("p",{onClick:Ot=>_i(void 0,null,function*(){const wt=()=>{var nn;Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[te.id],selectArrsAll:[te],params:mt,status:(nn=te==null?void 0:te.exercise_tips)==null?void 0:nn[0]}})};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u5220\u9664\u8BD5\u5377"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&Wn.createElement("p",{onClick:()=>{const Ot=()=>{Jt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[te.id],params:mt}})};if(te!=null&&te.is_encrypt){Zr(Ot);return}Ot()}},"\u52A0\u5165\u8BD5\u5377\u5E93"),((Vo=te==null?void 0:te.exercise_tips)==null?void 0:Vo.includes("\u672A\u5F00\u59CB"))&&(te==null?void 0:te.author_login)===((ta=Wt==null?void 0:Wt.userInfo)==null?void 0:ta.login)&&Wn.createElement("p",{onClick:Ot=>_i(void 0,null,function*(){Xl(te)})}," ",te!=null&&te.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&((0,oe.GJ)()||((eo=(so=vt==null?void 0:vt.AssistantObject)==null?void 0:so.exercise)==null?void 0:eo.can_stop))&&![1,3].includes(te==null?void 0:te.exercise_status)&&Wn.createElement("p",{onClick:Ot=>_i(void 0,null,function*(){const wt=()=>{var nn,bt;if((0,oe.Rm)()&&!((bt=(nn=vt==null?void 0:vt.AssistantObject)==null?void 0:nn.exercise)!=null&&bt.can_stop)){Fe.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}Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[te.id],params:mt,unified_setting:te.unified_setting}})};if(te!=null&&te.is_encrypt){Zr(wt);return}wt()})},"\u7ED3\u675F\u8003\u8BD5"))},Wn.createElement("span",{onClick:Ot=>Ot.stopPropagation(),className:il.flexBox,style:{cursor:"default"}},Wn.createElement("i",{className:"iconfont icon-gengduo4"}),Wn.createElement("div",null,"\u66F4\u591A"))),(0,oe.dE)()&&Wn.createElement(Wn.Fragment,null,!!te.off_limits&&Wn.createElement(ne.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${te==null?void 0:te.last_times} ${la.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},Wn.createElement("b",{className:"font16"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(te==null?void 0:te.exercise_type)==1&&!te.off_limits&&te.current_status===0&&te.exercise_status>1&&!((qa=te.exercise_tips)!=null&&qa.includes("\u5DF2\u622A\u6B62"))&&Wn.createElement("a",{className:il.flexBox,style:{marginRight:"16px"},onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault(),ur(te,!0)},href:""},Wn.createElement("i",{className:"iconfont icon-jixukaoshi"}),Wn.createElement("div",null,(te==null?void 0:te.screen_used_num)>(te==null?void 0:te.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((Rr=te.exercise_tips)!=null&&Rr.includes("\u5DF2\u622A\u6B62"))&&(te==null?void 0:te.screen_used_num)>(te==null?void 0:te.screen_total_num)&&Wn.createElement("a",{className:il.flexBox,style:{marginRight:"16px"},onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault(),ur(te,!0)},href:""},Wn.createElement("i",{className:"iconfont icon-jixukaoshi"}),Wn.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!te.off_limits&&te.current_status===1&&(te==null?void 0:te.screen_used_num)<(te==null?void 0:te.screen_total_num)&&te.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((te==null?void 0:te.exercise_type)==2&&(te==null?void 0:te.exercise_status)!=3)&&Wn.createElement("span",{className:il.flexBox,style:{marginRight:"16px"},onClick:Ot=>_i(void 0,null,function*(){var wt;if(Ot.stopPropagation(),!(te!=null&&te.answered_open)){Fe.ZP.info("\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B");return}yield(0,Pn.w)(mt.coursesId,te.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/users/${(wt=(0,oe.eY)())==null?void 0:wt.login}?check=true`)})},Wn.createElement("i",{className:"iconfont icon-chakankaoshi"}),Wn.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(te==null?void 0:te.exercise_type)==1&&!te.off_limits&&te.current_status===2&&te.exercise_status>1&&!((vr=te.exercise_tips)!=null&&vr.includes("\u5DF2\u622A\u6B62"))&&Wn.createElement("a",{className:il.flexBox,style:{marginRight:"16px",color:(te==null?void 0:te.is_redo)===1&&"red"},onClick:Ot=>{Ot.stopPropagation(),Ot.preventDefault(),ur(te)},href:""},Wn.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),Wn.createElement("div",null,(te==null?void 0:te.is_redo)===0?"\u5F00\u59CB\u8003\u8BD5":"\u91CD\u65B0\u8003\u8BD5")),(te==null?void 0:te.exercise_type)==2&&!te.off_limits&&te.exercise_status>1&&!((_o=te.exercise_tips)!=null&&_o.includes("\u5DF2\u622A\u6B62"))&&Wn.createElement(ne.Z,{title:Wn.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",te==null?void 0:te.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Hr(),"\u6B21")},Wn.createElement("a",{className:il.flexBox,onClick:Ot=>{Hr()==0&&(te==null?void 0:te.current_status)!=0||(Ot.stopPropagation(),Ot.preventDefault(),ur(te))},href:""},Wn.createElement("i",{className:`iconfont ${(te==null?void 0:te.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),Wn.createElement("div",null,(te==null?void 0:te.current_status)!=0?"\u5F00\u59CB\u8003\u8BD5":"\u7EE7\u7EED\u8003\u8BD5")))))),(0,oe.GJ)()&&Wn.createElement("p",{style:{display:"flex",color:"#B6BFC2"}},Wn.createElement("span",{style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1,color:"#fff"},title:te.author},te.author),Wn.createElement("span",{className:"ml30"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",ce()(te.created_at).format("YYYY-MM-DD HH:mm:ss")),((rr=te==null?void 0:te.exercise_tips)==null?void 0:rr.includes("\u672A\u5F00\u59CB"))&&te.publish_time&&Wn.createElement("span",{className:"ml30"},"\u5F00\u59CB\u65F6\u95F4\uFF1A",ce()(te.publish_time).format("YYYY-MM-DD HH:mm:ss")),Wn.createElement("span",{className:"ml30"},"\u7B54\u9898\u65F6\u957F\uFF1A",te.time===null?"\u4E0D\u9650":`${te.time}\u5206\u949F`),Wn.createElement("span",{className:"ml30"},"\u7C7B\u578B\uFF1A",te.is_random?"\u968F\u673A\u7EC4\u5377":"\u4EBA\u5DE5\u7EC4\u5377"),!((cr=te==null?void 0:te.exercise_tips)!=null&&cr.includes("\u672A\u5F00\u59CB"))&&!(te!=null&&te.is_make_up_exercise)&&!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&Wn.createElement("span",{className:il.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:Ot=>_i(void 0,null,function*(){Ot.stopPropagation(),Ot.preventDefault(),Xo||Xa(),Un(!Xo)})},Wn.createElement(ne.Z,{title:`${Xo?"\u6536\u8D77":"\u5C55\u5F00"}`},Wn.createElement("i",{className:`iconfont icon-${Xo?"shouqi":"xiala2"}`})))),(0,oe.dE)()&&Wn.createElement("p",{style:{display:"flex",color:"#B6BFC2"}},Wn.createElement("span",{style:{color:"#fff"}},te.author),Wn.createElement("span",{className:"ml30 mr20"},"\u7B54\u9898\u65F6\u957F\uFF1A",te.time===null?"\u4E0D\u9650":`${te.time}\u5206\u949F`),!!(te!=null&&te.exercise_left_time)&&Wn.createElement("span",{className:"ml15"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",te==null?void 0:te.exercise_left_time),!!(te!=null&&te.before_start)&&Wn.createElement("span",{className:"ml15"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",te==null?void 0:te.before_start)),(0,oe.GJ)()&&!((pr=te==null?void 0:te.exercise_tips)!=null&&pr.includes("\u672A\u5F00\u59CB"))&&Wn.createElement("p",null,Wn.createElement("span",{style:{letterSpacing:2},className:"mr15"},"\u63D0\u4EA4\u72B6\u6001\uFF1A"),Wn.createElement("span",{className:"mr20"},"\u672A\u5F00\u59CB ",Wn.createElement("span",null,te==null?void 0:te.unanswer_users)),Wn.createElement("span",{className:"mr20"},"\u8003\u8BD5\u4E2D ",Wn.createElement("span",{style:{color:"rgb(90, 184, 145)"}},te==null?void 0:te.answering_users)),Wn.createElement("span",{className:"mr20"},la.formatMessage({id:"classrooms.submitted",defaultMessage:"\u5DF2\u4EA4\u5377"})," ",Wn.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.answer_users)),Wn.createElement("span",null,la.formatMessage({id:"classrooms.submittedUnanswered",defaultMessage:"\u5DF2\u4EA4\u5377/\u672A\u7B54"})," ",Wn.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.commit_with_no_answers_users))),(0,oe.GJ)()&&!((ga=te==null?void 0:te.exercise_tips)!=null&&ga.includes("\u672A\u5F00\u59CB"))&&Xo&&ht.length>5&&Wn.createElement(rt.default,{className:Tu.Z.threeTableSty,scroll:{y:240},pagination:!1,dataSource:ht,onRow:Ot=>({onClick:wt=>{wt.stopPropagation(),wt.preventDefault()}}),onHeaderRow:(Ot,wt)=>({onClick:nn=>{nn.stopPropagation(),nn.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(Ot,wt,nn)=>{nn.field&&(mt.order_by=nn.field),nn.order||(mt.sort_direction="asc"),nn.order==="ascend"&&(mt.sort_direction="asc"),nn.order==="descend"&&(mt.sort_direction="desc"),nn.order||(mt.sort_direction="asc"),Xa()},columns:Bl}),(0,oe.GJ)()&&!((Jo=te==null?void 0:te.exercise_tips)!=null&&Jo.includes("\u672A\u5F00\u59CB"))&&Xo&&ht.length<6&&ht.length>0&&Wn.createElement(rt.default,{className:Tu.Z.threeTableSty,rowKey:"course_group_id",pagination:!1,onRow:Ot=>({onClick:wt=>{wt.stopPropagation(),wt.preventDefault()}}),onHeaderRow:(Ot,wt)=>({onClick:nn=>{nn.stopPropagation(),nn.preventDefault()}}),dataSource:ht,style:{marginTop:"10px"},onChange:(Ot,wt,nn)=>{nn.field&&(mt.order_by=nn.field),nn.order||(mt.sort_direction="asc"),nn.order==="ascend"&&(mt.sort_direction="asc"),nn.order==="descend"&&(mt.sort_direction="desc"),nn.order||(mt.sort_direction="asc"),Xa()},columns:Bl}),(te==null?void 0:te.total)!==void 0&&Wn.createElement("p",null,Wn.createElement("span",{className:"mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),Wn.createElement("span",{className:"mr20"},"\u603B\u8BC4\u6570",Wn.createElement("span",null,te==null?void 0:te.total)),Wn.createElement("span",{className:"mr20"},"\u5DF2\u8BC4\u9605 ",Wn.createElement("span",{style:{color:"#4EACFF"}},te==null?void 0:te.finish_total)),Wn.createElement("span",null,"\u5F85\u8BC4\u9605 ",Wn.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.unfinished_total)))),Wn.createElement(tt.Z,{closable:!0,successCb:()=>ur(ar.current)}))};var Ru=(0,Se.connect)(({classroomList:te})=>({classroomList:te}))(Pu),dl=z(67294),ku=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const{Countdown:Ls}=ka.default,as=({value:te,onChange:ye,MaxMinutes:ge})=>dl.createElement(dl.Fragment,null,dl.createElement("div",{className:"p10 mb20",style:{background:"#F6F7F9"}},"1.\u53EA\u6709\u5F53\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u665A\u4E8E\u5B66\u751F\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u65F6\uFF0C\u624D\u652F\u6301\u5BF9\u5B66\u751F\u8FDB\u884C\u5EF6\u65F6\u64CD\u4F5C\uFF1B",dl.createElement("br",null),"2.\u6BCF\u4E2A\u5B66\u751F\u7684\u6700\u5927\u53EF\u5EF6\u65F6\u65F6\u95F4=\u8003\u8BD5\u622A\u6B62\u65F6\u95F4-\u5B66\u751F\u5F53\u524D\u7684\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\u3002",dl.createElement("br",null)),dl.createElement(ae.Z,{value:te,onChange:ye,min:0,precision:0,max:ge,style:{width:"100%"},placeholder:`\u6700\u5927\u53EF\u5EF6\u957F\u65F6\u95F4\u4E3A${ge}\u5206\u949F\uFF0C\u5728\u5B66\u751F\u5269\u4F59\u65F6\u95F4\u57FA\u7840\u4E0A\u5EF6\u65F6`,addonAfter:"\u5206\u949F"})),zr=({exercise:te,successCb:ye,dispatch:ge})=>{var We,Jt,mt,vt;const An=(0,Se.useIntl)(),dt=(0,Se.useParams)(),[Wt]=ee.default.useForm(),ir=ee.default.useWatch("time",Wt),[fr,nr]=(0,re.useState)(!1),Mo=(0,re.useRef)(),{actionTabs:ba}=te,[Vo,ta]=(0,re.useState)(),[,so,eo,qa]=(0,Wa.U)(Lt.n7,{id:dt.categoryId}),[,Rr,vr]=(0,Wa.U)(Lt.Cd,{});(0,re.useEffect)(()=>{te.actionTabs.key==="student-unlock"&&(nr(!1),Wt.resetFields())},[te.actionTabs.key]);const _o=()=>new Promise(Xo=>ku(void 0,null,function*(){var Un,ar;return Mo.current=yield(0,ao.y)({ip_limit:(Un=ba==null?void 0:ba.exerciseParams)==null?void 0:Un.ip_limit,ip_bind:(ar=ba==null?void 0:ba.exerciseParams)==null?void 0:ar.ip_bind_type}),Xo()})),rr=()=>ku(void 0,null,function*(){var Xo,Un,ar,$r,tn;yield Wt.validateFields();const sa=Wt.getFieldsValue();if(nr(!0),(((Xo=ba==null?void 0:ba.exerciseParams)==null?void 0:Xo.ip_limit)!=="no"||(Un=ba==null?void 0:ba.exerciseParams)!=null&&Un.ip_bind_type)&&(yield _o()),(yield(0,Lt.ZD)((ar=ba==null?void 0:ba.exerciseParams)==null?void 0:ar.id,{exercise_user_id:($r=ba==null?void 0:ba.exerciseParams)==null?void 0:$r.exercise_user_id,unlock_key:sa.unlock_key,time:sa.time,ip:Mo.current})).status===0){if(ye){ge({type:"exercise/setActionTabs",payload:{}}),ye();return}const Xa=ba==null?void 0:ba.exerciseParams;(0,a.nr)({inner_ip:Xa.inner_ip,public_ip:Xa.public_ip,open_camera:Xa.open_camera,ip_limit:Xa.ip_limit,ip_bind:Xa.ip_bind,ip_bind_type:Xa.ip_bind_type,exercise_tips:Xa.exercise_tips,exerciseId:Xa.id,screen_open:Xa.screen_open,screen_num:Xa.screen_num,screen_sec:Xa.screen_sec,coursesId:dt.coursesId,login:(tn=(0,oe.eY)())==null?void 0:tn.login,history,identity_verify:Xa.identity_verify,open_phone_video_recording:Xa.open_phone_video_recording,current_status:Xa.current_status}),ge({type:"exercise/setActionTabs",payload:{}})}nr(!1)}),cr=[{title:An.formatMessage({id:"classrooms.ipAddress",defaultMessage:"IP\u5730\u5740"}),dataIndex:"ip",key:"ip",render:Xo=>dl.createElement("span",{className:Xo.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Xo)},{title:"\u6D4F\u89C8\u5668",dataIndex:"browser",key:"browser",render:Xo=>dl.createElement("span",{className:Xo.indexOf("\u5F02\u5E38")>-1?"c-red":"c-green"},Xo)},{title:"\u4E0A\u6B21\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_time",key:"last_login_time"}],pr=((We=ba==null?void 0:ba.exerciseParams)==null?void 0:We.errorMessage)&&typeof((Jt=ba==null?void 0:ba.exerciseParams)==null?void 0:Jt.errorMessage)=="object";(0,re.useEffect)(()=>{te.actionTabs.key==="student-unlock"&&ku(void 0,null,function*(){const Xo=yield vr(dt);yield eo({}),Xo.status||ta(Xo)})},[te.actionTabs.key]);const{time:ga,end_time:Jo}=(Vo==null?void 0:Vo.exercise)||{},la=qa!=null&&qa.user_end_time?ce()(qa==null?void 0:qa.user_end_time).add(1,"minutes"):ce()(),ht=ce()(qa==null?void 0:qa.user_total_end_time)>la?Math.round(ce().duration(ce()(qa==null?void 0:qa.user_total_end_time).diff(la.startOf("minute"))).asMinutes()):0,Zl=((qa==null?void 0:qa.student_left_minutes)||0)+(ir||0);return dl.createElement(dl.Fragment,null,dl.createElement(Pe.default,{width:514,centered:!0,closable:!!((mt=ba==null?void 0:ba.exerciseParams)!=null&&mt.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:An.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:te.actionTabs.key==="student-unlock",footer:null,onCancel:()=>{ge({type:"exercise/setActionTabs",payload:{}})}},dl.createElement(et.Z,{spinning:so||Rr},pr&&dl.createElement("div",{style:{marginBottom:16}},"\u8BE5\u8D26\u53F7\u5DF2\u7ECF\u5B58\u5728\u5F02\u5E38\u60C5\u51B5\uFF0C\u82E5\u975E\u672C\u4EBA\u64CD\u4F5C\uFF0C\u8BF7\u8054\u7CFB\u76D1\u8003\u8001\u5E08\u8BF4\u660E\u60C5\u51B5\u3002 "),!pr&&dl.createElement("div",{style:{marginBottom:16}},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u5728\u8003\u8BD5\u65F6\u4E2D\u9014\u9000\u51FA\uFF0C\u73B0\u5DF2\u5C06\u8003\u8BD5\u9501\u5B9A\u3002\u5982\u9700\u7EE7\u7EED\u8FDB\u884C\u8003\u8BD5\uFF0C \u8BF7\u5C3D\u5FEB\u8054\u7CFB\u8BFE\u5802\u8001\u5E08\u8FDB\u884C\u89E3\u9501\uFF01"),pr&&dl.createElement(rt.default,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[((vt=ba==null?void 0:ba.exerciseParams)==null?void 0:vt.errorMessage)||{}],columns:cr}),dl.createElement("div",{className:""},dl.createElement(ee.default,{form:Wt,layout:"vertical",autoComplete:"off"},dl.createElement(ee.default.Item,{label:"\u8003\u8BD5\u89E3\u9501\u7801",name:"unlock_key",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801"}]},dl.createElement(le.default.Password,{autoComplete:"off",placeholder:"\u8BF7\u8F93\u5165\u8003\u8BD5\u89E3\u9501\u7801",visibilityToggle:!1})),ga!==-1?dl.createElement(dl.Fragment,null,dl.createElement(ee.default.Item,{name:"time",label:dl.createElement("span",null,"\u5EF6\u957F\u65F6\u95F4\uFF08",dl.createElement("span",{style:{color:"#9096A3"}},"\u5F53\u524D\u8003\u8BD5\u622A\u6B62\u65F6\u95F4",ce()(qa==null?void 0:qa.user_total_end_time).format("YYYY-MM-DD HH:mm")),"\uFF09")},dl.createElement(as,{MaxMinutes:ht})),dl.createElement("div",{className:"mb20",style:{color:"#FA6400"}},"\u8BE5\u5B66\u751F\u5269\u4F59\u8003\u8BD5\u65F6\u95F4\uFF1A",dl.createElement("span",{className:"ml5"},so||Rr?"--":Zl),"\u5206\u949F",Zl!==0&&(qa==null?void 0:qa.user_end_time)&&dl.createElement("span",null,"\uFF0C\u4EA4\u5377\u622A\u6B62\u65F6\u95F4\uFF1A",dl.createElement("span",{className:"ml5"},ce()(qa==null?void 0:qa.user_end_time).add(ir||0,"m").format("YYYY-MM-DD HH:mm:ss"))))):dl.createElement("span",{style:{color:"#F6A53B"}}," \u5F53\u524D\u8003\u8BD5\u672A\u9650\u5236\u8003\u751F\u7B54\u9898\u65F6\u957F\uFF0C\u8003\u8BD5\u622A\u6B62\u65F6\u95F4\u4E3A ",ce()(Jo).format("YYYY-MM-DD HH:mm")))),dl.createElement(Qt.Z,{justify:"space-between",align:"middle"},dl.createElement(at.Z,null),dl.createElement(at.Z,null,dl.createElement(Oe.ZP,{loading:fr,onClick:rr},"\u8FDB\u5165\u8003\u8BD5"))))))};var Bo=(0,Se.connect)(({exercise:te})=>({exercise:te}))(zr),tl=z(73371),zl=z(25219),Bu=z(64849),ju=z(67294),ve=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Ae=({exercise:te,dispatch:ye,init:ge,haveInit:We=!1})=>{const Jt=(0,Se.useIntl)(),mt=(0,Se.useParams)(),[vt,An]=(0,re.useState)(!1);let[dt,Wt]=(0,re.useState)();const[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1);(0,re.useEffect)(()=>{te.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&ba()},[te.actionTabs]);function ba(){return ve(this,null,function*(){var Vo,ta;let so=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs}});if(((Vo=so==null?void 0:so.cover_exercises)==null?void 0:Vo.length)>0)An(!0),Wt((ta=so==null?void 0:so.cover_exercises)==null?void 0:ta[0]);else{let eo=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs}});ye({type:"exercise/setActionTabs",payload:{key:""}}),(eo==null?void 0:eo.status)===0&&(We&&ge(),Pe.default.confirm({title:Jt.formatMessage({id:"classrooms.prompt",defaultMessage:"\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:()=>{Se.history.push("/paperlibrary")}}))}})}return ju.createElement("div",null,ju.createElement(Pe.default,{open:vt,centered:!0,onCancel:Vo=>ve(void 0,null,function*(){if(Vo.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){fr(!0);let ta=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs,update:1}});ye({type:"exercise/setActionTabs",payload:{key:""}}),fr(!1),(ta==null?void 0:ta.status)===0&&(We&&ge(),An(!1),Pe.default.confirm({title:Jt.formatMessage({id:"classrooms.prompt",defaultMessage:"\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:()=>{Se.history.push("/paperlibrary")}}))}else An(!1)}),cancelButtonProps:{loading:ir},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:nr},onOk:()=>ve(void 0,null,function*(){Mo(!0);let Vo=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:te.actionTabs.selectArrs}});Mo(!1),(Vo==null?void 0:Vo.status)===0&&(We&&ge(),ye({type:"exercise/setActionTabs",payload:{key:""}}),An(!1),Pe.default.confirm({title:Jt.formatMessage({id:"classrooms.prompt",defaultMessage:"\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:()=>{Se.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},ju.createElement("div",null,ju.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"),ju.createElement("div",null,ju.createElement("div",null,"\u8BD5\u5377\uFF1A",dt==null?void 0:dt.origin_exercise_nam),ju.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",ju.createElement("a",{href:`/paperlibrary/see/${dt==null?void 0:dt.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},dt==null?void 0:dt.examination_bank_name))))))};var ke=(0,Se.connect)(({exercise:te})=>({exercise:te}))(Ae),ze=z(3564),Qe=z(60920),Ke=z(67294),St=Object.defineProperty,Mt=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Yn=(te,ye,ge)=>ye in te?St(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,yn=(te,ye)=>{for(var ge in ye||(ye={}))mn.call(ye,ge)&&Yn(te,ge,ye[ge]);if(Vt)for(var ge of Vt(ye))Xt.call(ye,ge)&&Yn(te,ge,ye[ge]);return te},Hn=(te,ye)=>Mt(te,Dt(ye)),ra=(te,ye)=>{var ge={};for(var We in te)mn.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&Vt)for(var We of Vt(te))ye.indexOf(We)<0&&Xt.call(te,We)&&(ge[We]=te[We]);return ge},vn=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Ea=te=>{var ye=te,{user:ge,classroomList:We,globalSetting:Jt,loading:mt,dispatch:vt}=ye,An=ra(ye,["user","classroomList","globalSetting","loading","dispatch"]),dt,Wt,ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr,cr,pr;const ga=(0,Se.useIntl)(),Jo=(0,Se.useParams)(),[la]=(0,Se.useSearchParams)(),[ht,Zl]=(0,re.useState)(()=>Hn(yn({},Jo),{limit:20})),Xo=(0,Se.useLocation)(),{detailExerciseList:Un,detailTopBanner:ar,detailLeftMenus:$r}=We,[tn,sa]=(0,re.useState)([]),[Po,Xa]=(0,re.useState)(!1),[Gt,ur]=(0,re.useState)([]),[Bl,Nl]=(0,re.useState)(!1),[Hr,Xl]=(0,re.useState)(!1),[Zr,Ot]=(0,re.useState)(!1),[wt,nn]=(0,re.useState)(!1),[bt,Ra]=(0,re.useState)("\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"),Pr=[{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F",type:"created_at",direction:"asc"},{name:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F",type:"created_at",direction:"desc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u5347\u5E8F",type:"time",direction:"asc"},{name:"\u6309\u8003\u8BD5\u65F6\u957F\u964D\u5E8F",type:"time",direction:"desc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u5347\u5E8F",type:"exercise_name",direction:"asc"},{name:"\u6309\u8BD5\u5377\u540D\u79F0\u964D\u5E8F",type:"exercise_name",direction:"desc"}];ht.type=la.get("tabs")==="all"?"":la.get("tabs")||"",ht.id=ht.coursesId,(0,re.useEffect)(()=>{var Ht,Za,Hl;if((Ht=ge==null?void 0:ge.userInfo)!=null&&Ht.login){if((0,oe.GJ)()){const Tl=a.cX.getItem(`${(Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.login}Teacher`,"Exercise");Tl&&(ht.sort_by=Tl==null?void 0:Tl.type,ht.sort_direction=Tl==null?void 0:Tl.direction,Ra(Tl==null?void 0:Tl.name))}vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})}else(Hl=ge==null?void 0:ge.userInfo)!=null&&Hl.username&&vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)});Xa(!1)},[(dt=ge==null?void 0:ge.userInfo)==null?void 0:dt.login,Xo.pathname]),(0,re.useEffect)(()=>{We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})},[We.actionTabs.key]),(0,re.useEffect)(()=>{We.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(Nl(!0),Xl(ar==null?void 0:ar.show_unstart_exercise),Ot(ar==null?void 0:ar.forbid_end_exercise))},[We.actionTabs.key]),(0,re.useEffect)(()=>{sa([])},[Un]);const ol=(Ht,Za)=>{sa([]),ht.page=Ht,ht.limit=Za,vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})},Cl=Ht=>{ht.type=Ht.key==="all"?"":Ht.key,ht.page=1,Se.history.replace(`${Xo.pathname}?tabs=${Ht.key}`),nn(!1),vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})};(0,re.useEffect)(()=>{la.get("tabs")==="all"&&(ht.type="",ht.page=1)},[la.get("tabs")]),(0,re.useEffect)(()=>{(0,oe.Rm)()&&vt({type:"classroomList/getAssistantPermissions",payload:{course_id:ht.coursesId}})},[(Wt=ge==null?void 0:ge.userInfo)==null?void 0:Wt.username]),(0,re.useEffect)(()=>{const Ht=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Pe.default.info({title:ga.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),centered:!0,width:600,content:Ke.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Ke.createElement("br",null),"1\u3001\u5728",Ke.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Ke.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Ke.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Ke.createElement("br",null),"2\u3001\u5728",Ke.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",Ke.createElement("span",{className:"c-blue blod"},"\u5F00\u59CB\u8003\u8BD5"),"\u201D\u6216\u201C",Ke.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",Ke.createElement("br",null),Ht==="allowRouter"&&Ke.createElement(Ke.Fragment,null,"3\u3001",Ke.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:"\u77E5\u9053\u4E86"}))},[]),(0,re.useEffect)(()=>{(0,oe.Rm)()&&vt({type:"classroomList/getAssistantPermissions",payload:{course_id:ht.coursesId}})},[(ir=ge==null?void 0:ge.userInfo)==null?void 0:ir.login]);const dr=[{name:"\u5168\u90E8",id:"all",total:(fr=Un.exercises_counts)==null?void 0:fr.exercises_total_counts},{name:"\u672A\u5F00\u59CB",id:1,total:(nr=Un.exercises_counts)==null?void 0:nr.unstart_counts},{name:"\u8003\u8BD5\u4E2D",id:2,total:(Mo=Un.exercises_counts)==null?void 0:Mo.publish_counts},{name:"\u96C6\u4E2D\u9605\u5377",id:4,total:(ba=Un.exercises_counts)==null?void 0:ba.appraise_exercise_count},{name:"\u5DF2\u622A\u6B62",id:3,total:(Vo=Un.exercises_counts)==null?void 0:Vo.end_counts}],wi=[{name:"\u6279\u91CF\u53D1\u5E03",icon:Ke.createElement("i",{className:"iconfont icon-fabu5"})},{name:"\u6279\u91CF\u7ED3\u675F",icon:Ke.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"\u6279\u91CF\u5220\u9664",icon:Ke.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:"\u8BBE\u4E3A\u516C\u5F00",icon:Ke.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:"\u52A0\u5165\u8BD5\u5377\u5E93",icon:Ke.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(Ht=>(0,oe.GJ)()?!0:Ht.name!=="\u6279\u91CF\u5220\u9664").filter(Ht=>ar.is_public?!0:Ht.name!=="\u8BBE\u4E3A\u516C\u5F00"),Xu=()=>Pe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:Ke.createElement(Ke.Fragment,null,"\u5E73\u53F0\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),Lu="YYYY-MM-DD",Es=ce()("2020-11-15",Lu),qu=Ht=>{var Za;ht.sort_by=Ht.type,ht.sort_direction=Ht.direction,(0,oe.GJ)()&&a.cX.setItem(`${(Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.login}Teacher`,Ht,"Exercise"),ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:yn({},ht)}),Ra(Ht.name)},Os=()=>Ke.createElement(Ie.default,null,Ke.createElement(Ie.default.Item,{key:1,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We==null?void 0:We.AssistantObject)==null?void 0:Ht.exercise)!=null&&Za.can_create)){Fe.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}vt({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:ht}})}},"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"),Ke.createElement(Ie.default.Item,{key:2,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We==null?void 0:We.AssistantObject)==null?void 0:Ht.exercise)!=null&&Za.can_create)){Fe.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}window.scrollTo(0,0),Se.history.push(`/classrooms/${ht.coursesId}/exercise/add?catalogue=${(Jo==null?void 0:Jo.categoryId)||""}`)}},"\u521B\u5EFA\u65B0\u8BD5\u5377"),Ke.createElement(Ie.default.Item,{key:3,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We.AssistantObject)==null?void 0:Ht.practice)!=null&&Za.can_create)){Fe.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}vt({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9")),$u=Ht=>vn(void 0,null,function*(){var Za,Hl,Tl,qi,Iu,is,Ia,Co;const Ka=Ht.name;if(((Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.user_status)===2&&Ht.name==="\u6279\u91CF\u53D1\u5E03"){(0,de.Rd)();return}const qo=[];if((Hl=Un.exercises)==null||Hl.map(La=>{if(tn.includes(La.id)&&La.is_random){const mo=ce()(La.created_at,Lu);ce()(Es).diff(ce()(mo),"days")>0&&(La!=null&&La.is_random)&&qo.push(La)}}),tn==""){let La="\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1";Ka==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(La="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),Fe.ZP.error(La)}else if(qo.length)Xu();else{if(Ka==="\u6279\u91CF\u53D1\u5E03"){if((0,oe.Rm)()&&!((qi=(Tl=We==null?void 0:We.AssistantObject)==null?void 0:Tl.exercise)!=null&&qi.can_publish)){Fe.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}let La=!1;Un.exercises.forEach(Lo=>{tn.includes(Lo.id)&&Lo.total_num===0&&Lo.is_random&&(La=!0)});let mo;if(mo=(is=(Iu=Un.exercises.filter(Lo=>tn.includes(Lo==null?void 0:Lo.id)).filter(Lo=>(Lo==null?void 0:Lo.exercise_question_count)===0))==null?void 0:Iu[0])==null?void 0:is.exercise_name,(mo==null?void 0:mo.length)>0){Fe.ZP.warning(`${mo}\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5`);return}if(La){Fe.ZP.warning("\u968F\u673A\u8BD5\u5377\u8FD8\u672A\u5728\u8BE5\u8BFE\u5802\u751F\u6210\u8BD5\u5377\uFF0C\u8BF7\u70B9\u51FB\u7F16\u8F91\u53BB\u8BBE\u7F6E\u51FA\u5377\u6570\u91CF\u5427\u3002");return}let _r=!1;if(Un.exercises.forEach(Lo=>{tn.includes(Lo.id)&&Lo.exercise_status!==1&&(_r=!0)}),_r){Fe.ZP.warning("\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002");return}}if(Ka==="\u52A0\u5165\u8BD5\u5377\u5E93"){const La=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...tn]}});if(((Ia=La==null?void 0:La.cover_exercises)==null?void 0:Ia.length)>0){ur(La==null?void 0:La.cover_exercises);return}}vt({type:"exercise/setActionTabs",payload:{key:Ka,selectArrs:tn,selectArrsAll:(Co=Un.exercises)==null?void 0:Co.filter(La=>tn.includes(La.id)),params:ht,type:1}})}});return Ke.createElement("section",{className:"minH500"},Ke.createElement(tl.Z,{isLoading:mt["classroomList/getClassroomExercisesList"],tabDataSource:dr,isAdmin:(0,oe.GJ)(),dispatch:vt,type:Un==null?void 0:Un.main_category_name,isExercise:!0,user:ge,getDropdownMenu:Os,onTabMenuClick:Cl,classroomList:We,defaultSelectedKeys:[ht.type||"all"]}),Ke.createElement(zl.Z,{dataSource:Un.exercises||[],isAdmin:(0,oe.GJ)(),batchStatus:wt,SortMenuName:bt,setSortMenuName:Ra,SortMenus:Pr,onSearch:Ht=>{ht.search=Ht.trim(),ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:yn({},ht)})},isShowMode:!0,onModeChange:Ht=>{ht.is_normal=Ht,ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:yn({},ht)})},onSort:qu,onBatch:Ht=>nn(Ht)}),Ke.createElement(ue.Z,{loading:mt["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(ta=Un.exercises_counts)!=null&&ta.exercises_all_counts?Un.exercises.map(function(Ht,Za){return Ke.createElement(Ru,{key:Za,v:Ht,k:Za,batchStatus:wt,selectArrs:tn,setSelectArrs:sa,dispatch:vt,params:ht,user:ge,manageAllGroup:Un.manage_all_group})}):Ke.createElement(E.Z,null),Ke.createElement("aside",{className:"tc mb50 mt30"},((so=Un.exercises_counts)==null?void 0:so.exercises_all_counts)>0&&Ke.createElement(Te.Z,{showTotal:Ht=>{var Za;return Ke.createElement("div",{style:{color:"#B6BFC2"}},"\u5171",Ke.createElement("span",{style:{margin:"0 3px",color:"#00DDC7"}},(Za=Un==null?void 0:Un.exercises_counts)==null?void 0:Za.exercises_all_counts),"\u6761")},showSizeChanger:!0,onChange:ol,defaultCurrent:ht.page,current:ht.page||1,pageSize:ht.limit||20,total:Un.exercises_counts&&Un.exercises_counts.exercises_all_counts}))),tn.length>0&&(0,oe.GJ)()&&Ke.createElement(je.Z,{offsetBottom:0},Ke.createElement(Bu.Z,{buttonDataSource:wi,onButtonClick:$u,useBatchStatus:nn,setSeleArr:sa,catalogue:((qa=(eo=$r==null?void 0:$r.course_modules)==null?void 0:eo.find(Ht=>Ht.type==="exercise"))==null?void 0:qa.second_category)||[],addCatalogue:Ht=>{Ht.preventDefault(),vt({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:ht,selectArrs:{category_id:Un==null?void 0:Un.main_category_id,type:"exercise"}}})},allSelect:tn.length?tn.length===((vr=(Rr=Un.exercises)==null?void 0:Rr.filter(Ht=>!Ht.is_make_up_exercise))==null?void 0:vr.length):!1,setAllSelect:Ht=>{var Za;Ht.target.checked?sa((Za=Un==null?void 0:Un.exercises)==null?void 0:Za.filter(Hl=>!Hl.is_make_up_exercise).map(Hl=>Hl.id)):sa([])},selectArrs:tn,onMenuClick:Ht=>vn(void 0,[Ht],function*({key:Za}){if(tn=="")return Fe.ZP.error("\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"),null;(yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:tn,new_category_id:Za}})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),vt({type:"classroomList/getClassroomExercisesList",payload:yn({},Jo)}))})})),Ke.createElement(Tt,null),Ke.createElement(Ga,null),Ke.createElement(Ei,null),Ke.createElement(bl,null),Ke.createElement(ze.Z,{onOk:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yn({},Jo)})}}),Ke.createElement(Qe.Z,{onOk:()=>{}}),Ke.createElement(bs,{cb:()=>sa([])}),Ke.createElement(Ii,null),Ke.createElement(Bo,null),Ke.createElement(Pe.default,{title:Ke.createElement("span",null,Ke.createElement(Gr.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:Gt.length>0,footer:!1,onCancel:()=>{ur([])}},Ke.createElement("div",{style:{height:300,overflow:"auto"}},Ke.createElement("div",null,"\u6709",Gt==null?void 0:Gt.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Gt==null?void 0:Gt.map(Ht=>Ke.createElement("div",{style:{marginTop:25}},Ke.createElement("div",null,"\u8BD5\u5377\uFF1A",Ht==null?void 0:Ht.origin_exercise_nam),Ke.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Ke.createElement("a",{href:`/paperlibrary/see/${Ht==null?void 0:Ht.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Ht==null?void 0:Ht.examination_bank_name))))),Ke.createElement("div",{style:{textAlign:"end"}},Ke.createElement(Oe.ZP,{style:{height:30},onClick:()=>vn(void 0,null,function*(){const Ht=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...tn],update:1}});(Ht==null?void 0:Ht.status)===0&&(Fe.ZP.info("\u8986\u76D6\u6210\u529F"),ur([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),Ke.createElement(Oe.ZP,{type:"primary",onClick:()=>vn(void 0,null,function*(){const Ht=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...tn]}});(Ht==null?void 0:Ht.status)===0&&(Fe.ZP.info("\u5F62\u6210\u6210\u529F"),ur([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),Ke.createElement(Pe.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:Bl,centered:!0,onOk:()=>vn(void 0,null,function*(){let Ht=yield(0,x.ZP)(`/api/courses/${ht.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:Hr,forbid_end_exercise:Zr}});(Ht==null?void 0:Ht.status)===0&&(Nl(!1),vt({type:"classroomList/setActionTabs",payload:{key:""}}),vt({type:"classroomList/getClassroomTopBanner",payload:{id:ht.coursesId}}),Fe.ZP.info("\u64CD\u4F5C\u6210\u529F"))}),onCancel:()=>{Nl(!1),vt({type:"classroomList/setActionTabs",payload:{key:""}})}},Ke.createElement(Ze.default,{checked:Hr,onChange:Ht=>{Xl(Ht.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",Ke.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),Ke.createElement(Ze.default,{className:"mt20",checked:Zr,onChange:Ht=>{Ot(Ht.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),Ke.createElement(ke,null),Ke.createElement(Ke.Fragment,null,Ke.createElement(lr.T$,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Hn(yn({},We==null?void 0:We.actionTabs),{open:""})})},open:((_o=We==null?void 0:We.actionTabs)==null?void 0:_o.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),Ke.createElement(lr.$i,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Hn(yn({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})},open:((rr=We==null?void 0:We.actionTabs)==null?void 0:rr.open)==="\u8BD5\u5377\u5C01\u5B58",Data:Hn(yn({},We==null?void 0:We.actionTabs),{type:"exercise"})}),Ke.createElement(lr.K1,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Hn(yn({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})},open:((cr=We==null?void 0:We.actionTabs)==null?void 0:cr.open)==="\u89E3\u5C01",Data:Hn(yn({},We==null?void 0:We.actionTabs),{type:"exercise"})}),Ke.createElement(lr.O7,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:Hn(yn({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:yn(yn({},ht),Jo)})},open:((pr=We==null?void 0:We.actionTabs)==null?void 0:pr.open)==="\u63D0\u793A",Data:Hn(yn({},We==null?void 0:We.actionTabs),{type:"exercise"})})))};var da=(0,Se.connect)(({user:te,classroomList:ye,loading:ge,globalSetting:We})=>({user:te,classroomList:ye,globalSetting:We,loading:ge.effects}))(Ea),Na=z(71822),Sa=z(67294),Ho=Object.defineProperty,Eo=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Ja=(te,ye,ge)=>ye in te?Ho(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Ta=(te,ye)=>{for(var ge in ye||(ye={}))lo.call(ye,ge)&&Ja(te,ge,ye[ge]);if(Dr)for(var ge of Dr(ye))Ao.call(ye,ge)&&Ja(te,ge,ye[ge]);return te},po=(te,ye)=>Eo(te,mr(ye)),er=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const{TabPane:Tr}=y.default,xr=({classroomList:te,exercise:ye,loading:ge,dispatch:We})=>{var Jt;const mt=(0,Se.useIntl)(),vt=(0,Se.useParams)(),An=(0,Se.useLocation)(),[dt]=ee.default.useForm(),{brankList:Wt}=ye;let[ir,fr]=(0,re.useState)(!0),[nr,Mo]=(0,re.useState)(!1);const[ba,Vo]=(0,re.useState)("myself");let[ta,so]=(0,re.useState)([]),[eo,qa]=(0,re.useState)([]),[Rr,vr]=(0,re.useState)(),[_o,rr]=(0,re.useState)([]);const cr=(0,re.useRef)(null),[pr,ga]=(0,re.useState)(!1),[Jo,la]=(0,re.useState)(""),[ht,Zl]=(0,re.useState)(""),[Xo,Un]=(0,re.useState)(!1),[ar,$r]=(0,re.useState)({}),tn=[{title:mt.formatMessage({id:"paperlibrary.examName",defaultMessage:"\u8BD5\u5377\u540D\u79F0"}),dataIndex:"name",ellipsis:!0,align:"left",render:(bt,Ra,Pr)=>Sa.createElement("div",{style:{display:"flex",alignItems:"center"}},Sa.createElement(ne.Z,{title:bt},Sa.createElement("div",{title:bt,className:Na.Z.name},bt)),(Ra==null?void 0:Ra.high_resources_consume)&&Sa.createElement(be.Z,{type:"shixun",style:{marginLeft:10}}))},{title:mt.formatMessage({id:"questionBankAddQuestion.directionAndCourse",defaultMessage:"\u65B9\u5411&\u8BFE\u7A0B"}),dataIndex:"course_list_name",width:180,ellipsis:!0,align:"left",render:bt=>Sa.createElement(ne.Z,{title:bt},Sa.createElement("span",null,bt))},{title:mt.formatMessage({id:"classrooms.type",defaultMessage:"\u7C7B\u578B"}),dataIndex:"is_random",width:90,align:"left",render:bt=>bt?mt.formatMessage({id:"testPaperBank.randomTestAssembly",defaultMessage:"\u968F\u673A\u7EC4\u5377"}):mt.formatMessage({id:"testPaperBank.manualTestAssembly",defaultMessage:"\u4EBA\u5DE5\u7EC4\u5377"})},{title:mt.formatMessage({id:"shixuns.updateTime",defaultMessage:"\u66F4\u65B0\u65F6\u95F4"}),dataIndex:"updated_at",width:150,align:"left"},{title:mt.formatMessage({id:"problemset.questionCount",defaultMessage:"\u8BD5\u9898\u6570"}),dataIndex:"item_num",width:60,align:"center"},{title:mt.formatMessage({id:"paperlibrary.totalScore",defaultMessage:"\u603B\u5206"}),dataIndex:"total_score",width:60,align:"center"},{title:mt.formatMessage({id:"classrooms.action",defaultMessage:"\u64CD\u4F5C"}),dataIndex:"is_random",width:60,align:"center",render:(bt,Ra)=>Sa.createElement("a",{href:bt?`/randompaper/detail/${Ra.id}`:`/paperlibrary/see/${Ra.id}?defaultActiveKey=1`,target:"_blank>"},mt.formatMessage({id:"classrooms.preview",defaultMessage:"\u9884\u89C8"}))}],[sa,Po]=(0,re.useState)({page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"});(0,re.useEffect)(()=>{ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&(ur(),rr([]),Xa())},[ye.actionTabs.key]);const Xa=()=>er(void 0,null,function*(){const bt=yield We({type:"paperlibrary/getTeachGroupData"});qa(bt)}),Gt=bt=>{const Ra=parseInt(bt);return isNaN(Ra)?"":Ra},ur=()=>er(void 0,null,function*(){var bt,Ra;if(ir){++sa.page,fr(!1);const Pr=yield We({type:"exercise/getBrankList",payload:po(Ta({},sa),{search:(bt=sa.search)==null?void 0:bt.trim()})});ta=Pr!=null&&Pr.object_list?[...ta.concat(Pr==null?void 0:Pr.object_list)]:ta,sa.filter==="public"?vr(Pr.is_teacher):vr(!0),((Ra=Pr.object_list)==null?void 0:Ra.length){cr.current.scrollTop=0,ta=[],sa.page=0,sa.group_id=bt,ir=!0,rr([]),Po(Ta({},sa)),ur()},Nl={selectedRowKeys:_o,onChange:bt=>{rr(bt)},type:"radio"},Hr=()=>{Po(Ta({},{page:0,limit:20,group_id:null,object_type:"examination_bank",search:"",filter:"myself"})),so([]),fr(!0),Vo("myself"),We({type:"exercise/setActionTabs",payload:{}}),Mo(!1)},[Xl,Zr,Ot,wt]=(0,se.P)(),nn=bt=>er(void 0,null,function*(){let Ra=!1;ta.forEach(dr=>{_o.includes(dr.id)&&(Ra=dr.is_random)});const Pr=bt.map(dr=>({shixun_id:dr.id,is_use:dr.is_use,is_copy:dr.is_copy}));if(!Ra){Un(!0);const dr=yield We({type:"exercise/saveBanks",payload:{course_id:vt.coursesId,category_id:(vt==null?void 0:vt.categoryId)||null,object_type:"examination_bank",bank_id:_o,shixuns_info:Pr}});Un(!1),(dr==null?void 0:dr.status)===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),We({type:"classroomList/getClassroomExercisesList",payload:Ta({},ye.actionTabs.params)}),We({type:"classroomList/getClassroomLeftMenus",payload:{id:vt.coursesId}}),la(`/classrooms/${vt.coursesId}/exercise/${dr.exercise_id}/detail?random=${dr.is_random}&tabs=3`),Zl(`/classrooms/${vt.coursesId}/exercise/add/${dr.exercise_id}?random=${dr.is_random}&type=2`),ga(!0),Fe.ZP.success(mt.formatMessage({id:"classrooms.generateExamSuccess",defaultMessage:"\u751F\u6210\u8BD5\u5377\u6210\u529F"})),Zr(),Hr());return}Un(!0),setTimeout(()=>{Un(!1)},500),We({type:"exercise/setActionTabs",payload:{}});let ol=1,Cl=Pe.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:mt.formatMessage({id:"paperlibrary.configurePaperQuantity",defaultMessage:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF"}),content:Sa.createElement("div",{className:Na.Z.modalColumn},Sa.createElement("div",{className:Na.Z.modalRow},Sa.createElement("sup",{className:Na.Z.sup},"*"),Sa.createElement("span",{style:{flexShrink:0}},mt.formatMessage({id:"paperlibrary.randomPaperQuantity",defaultMessage:"\u968F\u673A\u51FA\u5377\u6570\u91CF"}),"\uFF1A"),Sa.createElement(ae.Z,{parser:Gt,style:{width:120},placeholder:mt.formatMessage({id:"paperlibrary.enterPaperQuantity",defaultMessage:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF"}),min:1,defaultValue:ol,onChange:dr=>{ol=dr;const wi=document.getElementById("model_error");ol<1||ol>50?wi.style.display="block":wi.style.display="none"}})),Sa.createElement("div",{style:{display:"none",marginLeft:106},id:"model_error",className:"c-red"},mt.formatMessage({id:"paperlibrary.enterIntegerBetween1And50",defaultMessage:"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570"}))),okText:mt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:mt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onCancel:Hr,onOk:()=>er(void 0,null,function*(){if(ol<1||ol>50){const wi=document.getElementById("model_error");return wi.style.display="block",Promise.reject()}Cl.update({cancelButtonProps:{disabled:!0}});const dr=yield We({type:"exercise/saveBanks",payload:{course_id:vt.coursesId,object_type:"examination_bank",bank_id:_o,shixuns_info:Pr,num:ol}});Cl.update({cancelButtonProps:{disabled:!1}}),dr&&dr.status===0?((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BD5\u5377\u9009\u7528"]),Pe.default.destroyAll(),We({type:"classroomList/getClassroomExercisesList",payload:Ta({},ye.actionTabs.params)}),Hr(),Zr(),Fe.ZP.success(mt.formatMessage({id:"classrooms.generateExamSuccess",defaultMessage:"\u751F\u6210\u8BD5\u5377\u6210\u529F"}))):(Hr(),Zr())})})});return Sa.createElement(Sa.Fragment,null,Sa.createElement(Pe.default,{centered:!0,width:1012,title:mt.formatMessage({id:"classrooms.selectPaper",defaultMessage:"\u9009\u62E9\u8BD5\u5377"}),maskClosable:!1,destroyOnClose:!0,open:ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528",okText:mt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:mt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),confirmLoading:nr,bodyStyle:{minHeight:200},wrapClassName:Na.Z.warpModal,onOk:()=>er(void 0,null,function*(){var bt;if(!_o.length){Fe.ZP.error(mt.formatMessage({id:"classrooms.selectExam",defaultMessage:"\u8BF7\u9009\u62E9\u8BD5\u5377"}));return}Mo(!0);let Ra=!1,Pr=!1;if(ta.forEach(Cl=>{_o.includes(Cl.id)&&Cl.need_authorize&&(Ra=Cl.need_authorize),_o.includes(Cl.id)&&(Pr=Cl.is_random)}),Ra){(0,de.rX)(!1,"\u8BE5\u8BD5\u5377\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");return}let ol=yield(0,Ce.Tr)({id:`${_o[0]}`,course_id:(bt=te.detailTopBanner)==null?void 0:bt.course_id,type:"examination_bank"});Mo(!1),(ol==null?void 0:ol.student_count)===0?nn([]):$r(ol)}),onCancel:Hr},Sa.createElement(y.default,{activeKey:ba,onTabClick:bt=>er(void 0,null,function*(){cr.current.scrollTop=0,ta=[],ba!==bt&&rr([]),Vo(bt),sa.page=0,sa.filter=bt,sa.group_id=null,ir=!0,ur()})},Sa.createElement(Tr,{tab:Sa.createElement("span",null,mt.formatMessage({id:"classrooms.myPaperLibrary",defaultMessage:"\u6211\u7684\u8BD5\u5377\u5E93"})),key:"myself"}),Sa.createElement(Tr,{tab:Sa.createElement("span",null,mt.formatMessage({id:"classrooms.researchSharing",defaultMessage:"\u6559\u7814\u5171\u4EAB"})),key:"teacher"}),Sa.createElement(Tr,{tab:Sa.createElement("span",null,mt.formatMessage({id:"classrooms.publicPaperLibrary",defaultMessage:"\u516C\u5171\u8BD5\u5377\u5E93"})),key:"public"})),Sa.createElement("div",{className:Na.Z.tabSearch},ba==="teacher"&&Sa.createElement(ie.default,{value:sa.group_id,onChange:Bl,size:"middle",style:{width:200,marginRight:30}},Sa.createElement(ie.default.Option,{value:null},mt.formatMessage({id:"classrooms.allResearchTeams",defaultMessage:"\u5168\u90E8\u6559\u7814\u56E2\u961F"})),(Jt=eo==null?void 0:eo.groups)==null?void 0:Jt.map(bt=>Sa.createElement(ie.default.Option,{key:bt==null?void 0:bt.group_id,value:bt==null?void 0:bt.group_id},bt==null?void 0:bt.name))),Sa.createElement(le.default.Search,{placeholder:mt.formatMessage({id:"classrooms.enterPaperName",defaultMessage:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),value:sa.search,onChange:bt=>{sa.search=bt.target.value,Po(Ta({},sa))},onSearch:bt=>{cr.current.scrollTop=0,ta=[],sa.page=0,ir=!0,rr([]),bt&&(0,Me.tk)({name:bt,copywriting:bt,position:"Exercise"}),ur()}})),Sa.createElement("div",{ref:cr,style:{maxHeight:350,overflowY:"auto",overflowX:"hidden",marginTop:10,paddingBottom:20}},!Rr&&ba==="public"&&Sa.createElement("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"}},Sa.createElement("span",null,mt.formatMessage({id:"classrooms.accessRestriction",defaultMessage:"\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u624D\u80FD\u8BBF\u95EE\u516C\u5171\u8BD5\u5377\u5E93\u8D44\u6E90"})),Sa.createElement("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:()=>{window.open("/account/certification")}},mt.formatMessage({id:"user.immediateCertification",defaultMessage:"\u7ACB\u5373\u8BA4\u8BC1"}))),Sa.createElement(fe(),{initialLoad:!1,pageStart:0,loadMore:()=>{ur()},hasMore:ir,useWindow:!1},ye.actionTabs.key==="\u8BD5\u5377\u9009\u7528"&&Rr&&Sa.createElement(pe.Z,{className:Na.Z.hideHeadCheckbox,pagination:!1,hideSelectAll:!0,dataSource:ta,onRow:bt=>({onClick:()=>{rr([bt==null?void 0:bt.id])}}),resColumns:tn,rowSelection:Nl})))),Sa.createElement(Pe.default,{title:mt.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:pr,confirmLoading:!1,centered:!0,okText:mt.formatMessage({id:"classrooms.setRules",defaultMessage:"\u8BBE\u7F6E\u89C4\u5219"}),cancelText:mt.formatMessage({id:"classrooms.modifyPaper",defaultMessage:"\u4FEE\u6539\u8BD5\u5377"}),footer:Sa.createElement("div",null,Sa.createElement(Oe.ZP,{onClick:()=>{ga(!1),Se.history.push(ht)}},mt.formatMessage({id:"classrooms.modifyPaper",defaultMessage:"\u4FEE\u6539\u8BD5\u5377"})),Sa.createElement(Oe.ZP,{type:"primary",onClick:()=>{Se.history.push(Jo),ga(!1)}},mt.formatMessage({id:"classrooms.setRules",defaultMessage:"\u8BBE\u7F6E\u89C4\u5219"}))),onCancel:()=>{ga(!1)}},Sa.createElement("p",null,mt.formatMessage({id:"classrooms.paperCreationComplete",defaultMessage:"\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"}))),Sa.createElement(De.Z,{resdata:ar,type:"exercise",okloading:Xo,oktext:(ar==null?void 0:ar.can_copy_num)===0?mt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}):mt.formatMessage({id:"classrooms.oneClickCopy",defaultMessage:"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362"}),onok:bt=>{nn(bt)}}),Sa.createElement(se.Z,{inPaper:!0,visible:Xl,onCancel:Zr,onOk:nn,renderData:Ot,modalType:"multiple",type:"examination_bank"}))};var Ko=(0,Se.connect)(({exercise:te,loading:ye,classroomList:ge})=>({exercise:te,loading:ye,classroomList:ge}))(xr),Kr=z(28400),Xr=z(77722),Ol=Object.defineProperty,nl=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,wr=(te,ye,ge)=>ye in te?Ol(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,vi=(te,ye)=>{for(var ge in ye||(ye={}))oi.call(ye,ge)&&wr(te,ge,ye[ge]);if(nl)for(var ge of nl(ye))ri.call(ye,ge)&&wr(te,ge,ye[ge]);return te},fl=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const ei=({exercise:te,dispatch:ye})=>{const ge=(0,Se.useIntl)(),We=(0,Se.useParams)();return re.createElement(Pe.default,{centered:!0,title:ge.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:te.actionTabs.key==="\u8BBE\u4E3A\u516C\u5F00",okText:ge.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:ge.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:()=>fl(void 0,null,function*(){(yield(0,x.ZP)(`/api/courses/${We.coursesId}/exercises/set_public.json`,{method:"post",body:{check_ids:[...te.actionTabs.selectArrs]}})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u8BBE\u4E3A\u516C\u5F00"]),Fe.ZP.success(ge.formatMessage({id:"classrooms.operationSuccess",defaultMessage:"\u64CD\u4F5C\u6210\u529F"})),ye({type:"exercise/setActionTabs",payload:{}}),ye({type:"classroomList/getClassroomExercisesList",payload:vi({},te.actionTabs.params)}))}),onCancel:()=>{ye({type:"exercise/setActionTabs",payload:{}})}},re.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",re.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"))};var Jl=(0,Se.connect)(({exercise:te})=>({exercise:te}))(ei),ru=Object.defineProperty,To=Object.getOwnPropertySymbols,Qo=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,wo=(te,ye,ge)=>ye in te?ru(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,gl=(te,ye)=>{for(var ge in ye||(ye={}))Qo.call(ye,ge)&&wo(te,ge,ye[ge]);if(To)for(var ge of To(ye))Uo.call(ye,ge)&&wo(te,ge,ye[ge]);return te},Ro=(te,ye)=>{var ge={};for(var We in te)Qo.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&To)for(var We of To(te))ye.indexOf(We)<0&&Uo.call(te,We)&&(ge[We]=te[We]);return ge},Fr=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const ml=te=>{var ye=te,{exercise:ge,dispatch:We,user:Jt}=ye,mt=Ro(ye,["exercise","dispatch","user"]),vt,An;const dt=(0,Se.useIntl)(),Wt=(0,Se.useParams)(),[ir,fr]=(0,re.useState)(!1),[nr,Mo]=(0,re.useState)(!1),ba=(0,re.useRef)(null);(0,re.useEffect)(()=>{var ta,so;if(ge.actionTabs.key==="\u6279\u91CF\u5220\u9664"){if((0,oe.j5)()){Mo(!0);return}const eo={hasNum:0,noHasNum:0};(so=(ta=ge==null?void 0:ge.actionTabs)==null?void 0:ta.selectArrsAll)==null||so.map(qa=>{var Rr;qa.author_login===((Rr=Jt.userInfo)==null?void 0:Rr.login)?++eo.hasNum:++eo.noHasNum}),eo.noHasNum>0?Pe.default.info({title:"\u6743\u9650\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:re.createElement("div",null,"\u5F53\u524D\u9009\u4E2D\u8D44\u6E90\u4E2D\uFF1A",re.createElement("span",{className:"c-blue"},eo.hasNum),"\u4E2A\u7531\u60A8\u672C\u4EBA\u53D1\u5E03\uFF0C",re.createElement("span",{className:"c-red"},eo.noHasNum)," \u4E2A\u7531\u5176\u4ED6\u8001\u5E08\u53D1\u5E03\u3002",re.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:()=>{Vo()}}):Mo(!0)}else Mo(!1)},[ge.actionTabs.key]);const Vo=()=>{We({type:"exercise/setActionTabs",payload:{}})};return re.createElement(Pe.default,{centered:!0,title:dt.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),open:nr,okText:dt.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:dt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),confirmLoading:ir,destroyOnClose:!0,onOk:()=>Fr(void 0,null,function*(){var ta;if((ta=ba.current)!=null&&ta.onVerify())return;fr(!0);const so=yield(0,x.ZP)(`/api/courses/${Wt.coursesId}/exercises/destroys.json`,{method:"post",body:{check_ids:[...ge.actionTabs.selectArrs]}});fr(!1),so.status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u5220\u9664"]),Fe.ZP.success(dt.formatMessage({id:"classrooms.deleteSuccess",defaultMessage:"\u5220\u9664\u6210\u529F"})),We({type:"exercise/setActionTabs",payload:{}}),We({type:"classroomList/getClassroomExercisesList",payload:gl({},ge.actionTabs.params)}),We({type:"classroomList/getClassroomLeftMenus",payload:gl({},ge.actionTabs.params)}))}),onCancel:()=>{We({type:"exercise/setActionTabs",payload:{}})}},!((vt=ge==null?void 0:ge.actionTabs)!=null&&vt.status)||!["\u672A\u5F00\u59CB"].includes((An=ge==null?void 0:ge.actionTabs)==null?void 0:An.status)?re.createElement(re.Fragment,null,re.createElement("p",{style:{color:"#DD0000"}},"\u5220\u9664\u8003\u8BD5\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"),re.createElement(Sn.Z,{ref:ta=>ba.current=ta})):re.createElement("p",null,"\u5220\u9664\u8BD5\u5377\u4F1A\u540C\u6B65\u5220\u9664\u8BD5\u5377\u4E2D\u7684\u6240\u6709\u8003\u8BD5\uFF0C\u786E\u8BA4\u662F\u5426\u5220\u9664\uFF1F"))};var qr=(0,Se.connect)(({exercise:te,user:ye})=>({exercise:te,user:ye}))(ml),Gi=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Cu=Object.prototype.propertyIsEnumerable,yi=(te,ye)=>{var ge={};for(var We in te)Wi.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&Gi)for(var We of Gi(te))ye.indexOf(We)<0&&Cu.call(te,We)&&(ge[We]=te[We]);return ge},Du=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const Ai=te=>{var ye=te,{exercise:ge,dispatch:We}=ye,Jt=yi(ye,["exercise","dispatch"]);const mt=(0,Se.useIntl)(),vt=(0,Se.useParams)();return vt.id=vt.coursesId,(0,re.useEffect)(()=>{ge.actionTabs.key==="\u52A0\u5165\u8BD5\u5377\u5E93"&&new Promise(()=>Du(void 0,null,function*(){(yield(0,x.ZP)(`/api/courses/${vt.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...ge.actionTabs.selectArrs]}})).status===0&&((0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BD5\u5377","\u52A0\u5165\u8BD5\u5377\u5E93"]),Fe.ZP.success(mt.formatMessage({id:"classrooms.addedToPersonalExamBank",defaultMessage:"\u5DF2\u52A0\u5165\u4E2A\u4EBA\u8BD5\u5377\u5E93\uFF0C\u8BD5\u9898\u540C\u6B65\u52A0\u5165\u81F3\u4E2A\u4EBA\u9898\u5E93"}))),We({type:"exercise/setActionTabs",payload:{}})}))},[ge.actionTabs.key]),re.createElement(re.Fragment,null)};var lu=(0,Se.connect)(({exercise:te})=>({exercise:te}))(Ai),Ul={flex_box_center:"flex_box_center___VejG5",flex_space_between:"flex_space_between___RwAiX",flex_box_vertical_center:"flex_box_vertical_center___N5QNs",flex_box_center_end:"flex_box_center_end___SUMZc",flex_box_column:"flex_box_column___ombQA",bg:"bg___i74VI",containerTitle:"containerTitle___eAbbs",containerDesc:"containerDesc___WeE4m",tablestyle:"tablestyle___uKNiL",listItem:"listItem___aJrbL",info:"info___X9HlC",title:"title___ZDroC",titleLeft:"titleLeft___JzNZc",titleRight:"titleRight___RP0gb",flexBox:"flexBox___txRbA",iconV:"iconV___JMCv9",acitons:"acitons___iqFGc",moveCategory:"moveCategory___Rihfv",name:"name___LdzGg",categoryName:"categoryName___Tz45n",schedule:"schedule___a20T3",fnSign:"fnSign___gsn3j",spanSize:"spanSize___jht3F",classromediv:"classromediv___T7h_f",glow:"glow___LU7dg",popover:"popover___Qeg0P",dot:"dot___c9Vwj",moni:"moni___LBVeo",ErrorPushTag:"ErrorPushTag___F0OTF",authorized:"authorized___yQPQx"},Al=Object.defineProperty,Pl=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable,Ci=(te,ye,ge)=>ye in te?Al(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Vr=(te,ye)=>{for(var ge in ye||(ye={}))ti.call(ye,ge)&&Ci(te,ge,ye[ge]);if(Pl)for(var ge of Pl(ye))Pi.call(ye,ge)&&Ci(te,ge,ye[ge]);return te};const cu=te=>React.createElement("svg",Vr({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD 2"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fill:"#979797",fillRule:"nonzero"},React.createElement("path",{d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z"}))));var Ji="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbD0iIzk3OTc5NyIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiLz48L2c+PC9nPjwvc3ZnPg==",du=Object.defineProperty,wu=Object.getOwnPropertySymbols,zu=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable,Ku=(te,ye,ge)=>ye in te?du(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,xu=(te,ye)=>{for(var ge in ye||(ye={}))zu.call(ye,ge)&&Ku(te,ge,ye[ge]);if(wu)for(var ge of wu(ye))Cs.call(ye,ge)&&Ku(te,ge,ye[ge]);return te};const gu=te=>React.createElement("svg",xu({width:22,height:22,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 5\u5907\u4EFD"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"M0 0h22v22H0z"}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{fill:"#229BFF",d:"M10.422 5.818h.8v10.4h-.8z"}),React.createElement("path",{d:"M10.743 17.018a.49.49 0 0 1-.38-.197c-.38-.541-1.21-.91-1.993-.91H3.697a.485.485 0 0 1-.475-.493V4.883c0-.173.071-.32.166-.443.214-.222.522-.222.736-.222h4.104c1.139 0 2.301.64 2.823 1.576.143.221.071.541-.166.664a.438.438 0 0 1-.64-.172C9.889 5.67 9.01 5.178 8.228 5.178H4.171v9.723h4.2c1.067 0 2.182.517 2.751 1.28a.493.493 0 0 1-.095.69c-.094.098-.19.147-.284.147Z",fill:"#0152d9"}),React.createElement("path",{d:"M11.006 17.018a.469.469 0 0 1-.294-.098.483.483 0 0 1-.098-.69c.588-.763 1.714-1.28 2.84-1.28h3.99V5.203h-3.868c-.857 0-1.885.492-2.252 1.107-.147.222-.44.32-.66.173-.22-.148-.319-.443-.172-.665.612-1.034 2.056-1.6 3.084-1.6h4.234c.098 0 .294 0 .44.148.172.172.172.37.172.468v10.584c0 .271-.22.492-.49.492H13.43c-.808 0-1.64.37-2.056.911a.43.43 0 0 1-.367.197Z",fill:"#0152d9"}))));var tu="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMCAwaDIydjIySDB6Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBmaWxsPSIjMjI5QkZGIiBkPSJNMTAuNDIyIDUuODE4aC44djEwLjRoLS44eiIvPjxwYXRoIGQ9Ik0xMC43NDMgMTcuMDE4YS40OS40OSAwIDAgMS0uMzgtLjE5N2MtLjM4LS41NDEtMS4yMS0uOTEtMS45OTMtLjkxSDMuNjk3YS40ODUuNDg1IDAgMCAxLS40NzUtLjQ5M1Y0Ljg4M2MwLS4xNzMuMDcxLS4zMi4xNjYtLjQ0My4yMTQtLjIyMi41MjItLjIyMi43MzYtLjIyMmg0LjEwNGMxLjEzOSAwIDIuMzAxLjY0IDIuODIzIDEuNTc2LjE0My4yMjEuMDcxLjU0MS0uMTY2LjY2NGEuNDM4LjQzOCAwIDAgMS0uNjQtLjE3MkM5Ljg4OSA1LjY3IDkuMDEgNS4xNzggOC4yMjggNS4xNzhINC4xNzF2OS43MjNoNC4yYzEuMDY3IDAgMi4xODIuNTE3IDIuNzUxIDEuMjhhLjQ5My40OTMgMCAwIDEtLjA5NS42OWMtLjA5NC4wOTgtLjE5LjE0Ny0uMjg0LjE0N1oiIGZpbGw9IiMwMTUyZDkiLz48cGF0aCBkPSJNMTEuMDA2IDE3LjAxOGEuNDY5LjQ2OSAwIDAgMS0uMjk0LS4wOTguNDgzLjQ4MyAwIDAgMS0uMDk4LS42OWMuNTg4LS43NjMgMS43MTQtMS4yOCAyLjg0LTEuMjhoMy45OVY1LjIwM2gtMy44NjhjLS44NTcgMC0xLjg4NS40OTItMi4yNTIgMS4xMDctLjE0Ny4yMjItLjQ0LjMyLS42Ni4xNzMtLjIyLS4xNDgtLjMxOS0uNDQzLS4xNzItLjY2NS42MTItMS4wMzQgMi4wNTYtMS42IDMuMDg0LTEuNmg0LjIzNGMuMDk4IDAgLjI5NCAwIC40NC4xNDguMTcyLjE3Mi4xNzIuMzcuMTcyLjQ2OHYxMC41ODRjMCAuMjcxLS4yMi40OTItLjQ5LjQ5MkgxMy40M2MtLjgwOCAwLTEuNjQuMzctMi4wNTYuOTExYS40My40MyAwIDAgMS0uMzY3LjE5N1oiIGZpbGw9IiMwMTUyZDkiLz48L2c+PC9nPjwvc3ZnPg==",Di=z(41727),li=Object.defineProperty,Zu=Object.getOwnPropertySymbols,fs=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,Hu=(te,ye,ge)=>ye in te?li(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,Ns=(te,ye)=>{for(var ge in ye||(ye={}))fs.call(ye,ge)&&Hu(te,ge,ye[ge]);if(Zu)for(var ge of Zu(ye))Qu.call(ye,ge)&&Hu(te,ge,ye[ge]);return te};const Ts=te=>React.createElement("svg",Ns({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},te),React.createElement("title",null,"3"),React.createElement("defs",null,React.createElement("path",{id:"ErrorPushIcon_svg__a",d:"M0 0h24v24H0z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"ErrorPushIcon_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#ErrorPushIcon_svg__a"})),React.createElement("use",{fill:"#F4F8FF",opacity:.01,xlinkHref:"#ErrorPushIcon_svg__a"}),React.createElement("g",{mask:"url(#ErrorPushIcon_svg__b)",fillRule:"nonzero"},React.createElement("path",{d:"M7.598 2.582 2.8 3.428A1.701 1.701 0 0 0 1.42 5.396l2.92 16.562a1.695 1.695 0 0 0 1.969 1.38l1.564-.277a1.152 1.152 0 0 1-.276-.749V2.582Z",fill:"#AEF0FF"}),React.createElement("path",{d:"M21.863 1.403H8.755c-.639 0-1.156.518-1.157 1.156v19.752a1.159 1.159 0 0 0 1.157 1.157h13.108a.14.14 0 0 0 .14-.14V1.542a.14.14 0 0 0-.14-.14Zm-3.575 6.67h-6.493V4.928h6.493v3.145Z",fill:"#EF6A6A"}),React.createElement("path",{fill:"#F9DB91",d:"M11.795 4.928h6.493v3.146h-6.493z"}),React.createElement("path",{d:"M21.863 1.073H8.755c-.721 0-1.339.517-1.464 1.228l-4.548.8a2.029 2.029 0 0 0-1.645 2.353l2.92 16.56a2.027 2.027 0 0 0 2.35 1.647l1.392-.246c.273.247.627.383.995.382h13.108c.26 0 .47-.21.47-.47V1.543a.47.47 0 0 0-.47-.47ZM6.253 23.01a1.366 1.366 0 0 1-1.587-1.112L1.746 5.34a1.37 1.37 0 0 1 1.11-1.587l4.412-.777v1.534c-.85.061-1.522.726-1.522 1.535 0 .809.672 1.474 1.522 1.534v1.193c-.85.06-1.522.725-1.522 1.534 0 .81.672 1.475 1.522 1.535v1.192c-.85.06-1.522.726-1.522 1.535 0 .809.672 1.474 1.522 1.535v1.192c-.85.06-1.522.725-1.522 1.534 0 .81.672 1.474 1.522 1.535v1.95c0 .171.03.342.089.505l-1.105.193Zm1.014-17.84v1.746c-.486-.055-.862-.425-.862-.872 0-.448.377-.818.863-.874Zm0 4.261v1.747c-.486-.056-.862-.426-.862-.874 0-.447.377-.818.863-.873Zm0 4.261v1.746c-.486-.056-.862-.426-.862-.873s.377-.818.863-.873Zm0 4.26V19.7c-.486-.056-.862-.426-.862-.873 0-.448.377-.818.863-.874Zm14.406 5.185H8.755a.828.828 0 0 1-.827-.827v-4.226c.274.157.456.431.456.742a.79.79 0 0 1-.121.422.33.33 0 1 0 .56.347c.144-.231.22-.498.22-.77 0-.675-.467-1.25-1.115-1.456v-3.545c.273.156.456.43.456.74 0 .15-.042.297-.121.423a.33.33 0 1 0 .56.347c.144-.231.22-.498.22-.77 0-.675-.467-1.249-1.115-1.456V9.564c.273.156.456.43.456.74 0 .15-.042.296-.121.423a.33.33 0 1 0 .56.347c.144-.231.22-.497.22-.77 0-.674-.467-1.249-1.115-1.456V5.303c.273.156.456.431.456.74 0 .15-.042.297-.121.423a.33.33 0 1 0 .56.347c.144-.23.22-.497.22-.769 0-.675-.467-1.25-1.115-1.457V2.56c0-.456.37-.826.827-.827h12.918v21.406Z",fill:"#512C56"}),React.createElement("path",{d:"M11.565 8.402h6.953a.101.101 0 0 0 .1-.101V4.699a.101.101 0 0 0-.1-.101h-6.953a.101.101 0 0 0-.101.101v3.605a.1.1 0 0 0 .101.098Zm.558-3.144h5.833v2.485h-5.833V5.258Zm5.163 11.89h-4.489a.33.33 0 1 0 0 .659h4.489a.33.33 0 1 0 0-.66Zm0 2.334h-4.489a.33.33 0 0 0 0 .66h4.489a.33.33 0 1 0 0-.66Z",fill:"#512C56"}))));var Qr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJod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S4xIDAgMCAwIC4xMDEuMDk4Wm0uNTU4LTMuMTQ0aDUuODMzdjIuNDg1aC01LjgzM1Y1LjI1OFptNS4xNjMgMTEuODloLTQuNDg5YS4zMy4zMyAwIDEgMCAwIC42NTloNC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2Wm0wIDIuMzM0aC00LjQ4OWEuMzMuMzMgMCAwIDAgMCAuNjZoNC40ODlhLjMzLjMzIDAgMSAwIDAtLjY2WiIgZmlsbD0iIzUxMkM1NiIvPjwvZz48L2c+PC9zdmc+",Vl=Object.defineProperty,Yi=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,Xi=Object.prototype.propertyIsEnumerable,iu=(te,ye,ge)=>ye in te?Vl(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,mu=(te,ye)=>{for(var ge in ye||(ye={}))ni.call(ye,ge)&&iu(te,ge,ye[ge]);if(Yi)for(var ge of Yi(ye))Xi.call(ye,ge)&&iu(te,ge,ye[ge]);return te};const os=te=>React.createElement("svg",mu({width:18,height:13,xmlns:"http://www.w3.org/2000/svg"},te),React.createElement("title",null,"\u7F16\u7EC4 3"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m2.288 4.95 5.456 1.725 3.085-1.016c.176-.058.176.039.013.167-.686.544-1.286 1.24-1.613 2.076a4.679 4.679 0 0 0 2.414 2.542l-1.313 1.311-2.748.863-5.294-1.763V4.95ZM7.661 0l7.502 2.936-7.502 2.692L.73 3.192V8.14h-.7V2.946L0 2.936 7.661 0Z",fill:"#739EFF"}),React.createElement("g",{fill:"#FF9D18",fillRule:"nonzero"},React.createElement("path",{d:"m11.381 9.3.949-.948a1.305 1.305 0 0 1-.097-.498c0-.762.623-1.385 1.384-1.385.18 0 .346.035.499.097l.713-.713a3.6 3.6 0 0 0-1.212-.215c-1.453 0-2.852.921-3.323 2.216A3.281 3.281 0 0 0 11.381 9.3Z"}),React.createElement("path",{d:"M12.787 7.854v.041l.872-.872h-.042a.833.833 0 0 0-.83.83Zm3.066-1.447.674-.674.738-.738-.394-.395-.795.795-4.629 4.629-1.097 1.097.394.395.664-.665.567-.566.438-.438c.384.147.793.222 1.204.222 1.447 0 2.86-.92 3.33-2.215-.208-.568-.602-1.067-1.094-1.447Zm-2.236 2.831c-.173 0-.346-.035-.498-.097l.464-.464h.041c.457 0 .83-.373.83-.83v-.042l.465-.464c.048.166.083.34.083.513 0 .761-.623 1.384-1.385 1.384Z"}))));var Ws="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMi4yODggNC45NSA1LjQ1NiAxLjcyNSAzLjA4NS0xLjAxNmMuMTc2LS4wNTguMTc2LjAzOS4wMTMuMTY3LS42ODYuNTQ0LTEuMjg2IDEuMjQtMS42MTMgMi4wNzZhNC42NzkgNC42NzkgMCAwIDAgMi40MTQgMi41NDJsLTEuMzEzIDEuMzExLTIuNzQ4Ljg2My01LjI5NC0xLjc2M1Y0Ljk1Wk03LjY2MSAwbDcuNTAyIDIuOTM2LTcuNTAyIDIuNjkyTC43MyAzLjE5MlY4LjE0aC0uN1YyLjk0NkwwIDIuOTM2IDcuNjYxIDBaIiBmaWxsPSIjNzM5RUZGIi8+PGcgZmlsbD0iI0ZGOUQxOCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJtMTEuMzgxIDkuMy45NDktLjk0OGExLjMwNSAxLjMwNSAwIDAgMS0uMDk3LS40OThjMC0uNzYyLjYyMy0xLjM4NSAxLjM4NC0xLjM4NS4xOCAwIC4zNDYuMDM1LjQ5OS4wOTdsLjcxMy0uNzEzYTMuNiAzLjYgMCAwIDAtMS4yMTItLjIxNWMtMS40NTMgMC0yLjg1Mi45MjEtMy4zMjMgMi4yMTZBMy4yODEgMy4yODEgMCAwIDAgMTEuMzgxIDkuM1oiLz48cGF0aCBkPSJNMTIuNzg3IDcuODU0di4wNDFsLjg3Mi0uODcyaC0uMDQyYS44MzMuODMzIDAgMCAwLS44My44M1ptMy4wNjYtMS40NDcuNjc0LS42NzQuNzM4LS43MzgtLjM5NC0uMzk1LS43OTUuNzk1LTQuNjI5IDQuNjI5LTEuMDk3IDEuMDk3LjM5NC4zOTUuNjY0LS42NjUuNTY3LS41NjYuNDM4LS40MzhjLjM4NC4xNDcuNzkzLjIyMiAxLjIwNC4yMjIgMS40NDcgMCAyLjg2LS45MiAzLjMzLTIuMjE1LS4yMDgtLjU2OC0uNjAyLTEuMDY3LTEuMDk0LTEuNDQ3Wm0tMi4yMzYgMi44MzFjLS4xNzMgMC0uMzQ2LS4wMzUtLjQ5OC0uMDk3bC40NjQtLjQ2NGguMDQxYy40NTcgMCAuODMtLjM3My44My0uODN2LS4wNDJsLjQ2NS0uNDY0Yy4wNDguMTY2LjA4My4zNC4wODMuNTEzIDAgLjc2MS0uNjIzIDEuMzg0LTEuMzg1IDEuMzg0WiIvPjwvZz48L2c+PC9zdmc+",qn=z(67294),tc=Object.defineProperty,sc=Object.defineProperties,Ys=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,rs=Object.prototype.hasOwnProperty,nc=Object.prototype.propertyIsEnumerable,ac=(te,ye,ge)=>ye in te?tc(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,pl=(te,ye)=>{for(var ge in ye||(ye={}))rs.call(ye,ge)&&ac(te,ge,ye[ge]);if(ps)for(var ge of ps(ye))nc.call(ye,ge)&&ac(te,ge,ye[ge]);return te},Go=(te,ye)=>sc(te,Ys(ye)),tr=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const vl=({v:te,k:ye,selectArrs:ge,setSelectArrs:We,dispatch:Jt,params:mt,classroomList:vt,batchStatus:An,manageAllGroup:dt,user:Wt})=>{var ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr,cr,pr,ga,Jo,la;const ht=(0,Se.useIntl)(),[Zl,Xo]=(0,re.useState)([]),[Un,ar]=(0,re.useState)(!1),$r=(0,re.useRef)(),tn=(0,re.useRef)();var sa=!1;const Po="YYYY-MM-DD",Xa=ce()("2020-11-15",Po);function Gt(){return tr(this,null,function*(){console.log(mt,222);let wt=yield(0,x.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/exercises/group_use_list.json`,{method:"get",params:Go(pl({},mt),{id:te.id})});Xo((wt==null?void 0:wt.groups)||[])})}const ur=()=>Pe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:qn.createElement(qn.Fragment,null,"\u5E73\u53F0\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")});te!=null&&te.appraise_label&&(sa=!0);const Bl=(wt,nn=!1)=>{var bt;Se.history.push(`/classrooms/${mt.coursesId}/exercisenotice/${wt.id}/users/${(bt=(0,oe.eY)())==null?void 0:bt.login}`)},Nl=[{title:ht.formatMessage({id:"classrooms.class",defaultMessage:ht.formatMessage({id:"classrooms.class",defaultMessage:"\u73ED\u7EA7"})}),dataIndex:"name",key:"name"},{title:"\u8003\u8BD5\u72B6\u6001",dataIndex:"exercise_status",key:"exercise_status",width:100,filters:[{text:"\u672A\u5F00\u59CB",value:1},{text:ht.formatMessage({id:"classroomExams.inExam",defaultMessage:"\u8003\u8BD5\u4E2D"}),value:2},{text:ht.formatMessage({id:"classrooms.closed",defaultMessage:"\u5DF2\u622A\u6B62"}),value:3}],onFilter:(wt,nn)=>nn.exercise_status===wt,render:(wt,nn)=>qn.createElement("div",null,wt===1&&qn.createElement("span",null,qn.createElement("i",{className:Ul.dot,style:{background:"#C3C3C3"}}),ht.formatMessage({id:"classrooms.notStarted",defaultMessage:"\u672A\u5F00\u59CB"})),wt===2&&qn.createElement("span",null,qn.createElement("i",{className:Ul.dot,style:{background:"#4EACFF"}}),ht.formatMessage({id:"classroomExams.inExam",defaultMessage:"\u8003\u8BD5\u4E2D"})),wt===3&&qn.createElement("span",null,qn.createElement("i",{className:Ul.dot,style:{background:"#FC2D6B"}}),ht.formatMessage({id:"classrooms.closed",defaultMessage:"\u5DF2\u622A\u6B62"})))},{title:ht.formatMessage({id:"classrooms.startTime1",defaultMessage:"\u5F00\u59CB\u65F6\u95F4"}),dataIndex:"publish_time",key:"publish_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:mt.order_by==="publish_time"?mt.sort_direction==="desc"?"descend":"ascend":null},{title:ht.formatMessage({id:"classroomProgrammingHomework.deadline",defaultMessage:"\u622A\u6B62\u65F6\u95F4"}),dataIndex:"end_time",key:"end_time",sorter:!0,width:170,showSorterTooltip:!1,sortOrder:mt.order_by==="end_time"?mt.sort_direction==="desc"?"descend":"ascend":null},{title:"\u63D0\u4EA4\u4EBA\u6570",dataIndex:"exercise_answer",key:"exercise_answer",align:"center",width:80,render:(wt,nn)=>nn.exercise_status===1?"-":qn.createElement("span",null,wt,"/",nn.exercise_users)},{title:"\u5F85\u8BC4\u9605\u8BD5\u5377",dataIndex:"unreview_count",key:"unreview_count",align:"center",width:90,render:(wt,nn)=>nn.exercise_status===1?"-":wt===0?qn.createElement("span",{style:{cursor:"no-drop",color:"#999999"}},wt):qn.createElement("a",{onClick:()=>(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te==null?void 0:te.id}/detail?random=false&exercise_group_id=${nn.course_group_id}`)},wt)},{title:ht.formatMessage({id:"classrooms.action",defaultMessage:"\u64CD\u4F5C"}),dataIndex:"action",align:"center",key:"action",width:60,render:(wt,nn)=>nn.exercise_status===1?qn.createElement("img",{style:{cursor:"not-allowed"},src:Ji}):qn.createElement(ne.Z,{title:ht.formatMessage({id:"classroomGraphicGroupHomework.review",defaultMessage:ht.formatMessage({id:"classroomGraphicGroupHomework.review",defaultMessage:"\u8BC4\u9605"})})},qn.createElement("a",{onClick:()=>(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te==null?void 0:te.id}/detail?random=false&exercise_group_id=${nn.course_group_id}`)},qn.createElement("img",{src:tu})))}],Hr=wt=>{if(sa)return qn.createElement("span",{style:{backgroundColor:"#f59a23"},className:"tag-style mr10"},ht.formatMessage({id:"classroomExams.centralizedGradingCannotBeDisabled",defaultMessage:"\u96C6\u4E2D\u9605\u5377"}));if(ht.formatMessage({id:"classrooms.closed",defaultMessage:"\u5DF2\u622A\u6B62"}),wt!=null&&wt.includes("\u672A\u5F00\u59CB"))return qn.createElement("span",{style:{backgroundColor:"#B8B8B8"},className:"tag-style mr10"},ht.formatMessage({id:"classrooms.notStarted",defaultMessage:"\u672A\u5F00\u59CB"}));if(wt!=null&&wt.includes("\u8003\u8BD5\u4E2D"))return qn.createElement("span",{style:{backgroundColor:"#007AFF"},className:"tag-style mr10"},ht.formatMessage({id:"classroomExams.inExam",defaultMessage:"\u8003\u8BD5\u4E2D"}));if(wt!=null&&wt.includes("\u5DF2\u622A\u6B62"))return qn.createElement("span",{style:{backgroundColor:"#FC2D6B"},className:"tag-style mr10"},ht.formatMessage({id:"classrooms.closed",defaultMessage:"\u5DF2\u622A\u6B62"}));if(wt!=null&&wt.includes("\u5BFC\u5165"))return qn.createElement("span",{className:"export mr10"},ht.formatMessage({id:"shixuns.import",defaultMessage:"\u5BFC\u5165"}))},Xl=()=>{const wt=(te==null?void 0:te.simulate_exercise_num)-(te==null?void 0:te.user_simulate_num);return wt>=0?wt:0},Zr=(wt=te)=>{var nn,bt,Ra;if(wt!=null&&wt.is_encrypt){Jt({type:"classroomList/setActionTabs",payload:{open:"\u89E3\u5C01",id:wt==null?void 0:wt.id,phone:(nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.phone,login:(bt=Wt==null?void 0:Wt.userInfo)==null?void 0:bt.login}});return}(Ra=Wt==null?void 0:Wt.userInfo)!=null&&Ra.phone?Jt({type:"classroomList/setActionTabs",payload:{open:"\u8BD5\u5377\u5C01\u5B58",id:wt==null?void 0:wt.id}}):Jt({type:"classroomList/setActionTabs",payload:{open:"\u624B\u673A\u53F7\u7ED1\u5B9A"}})},Ot=wt=>{var nn,bt,Ra;if(((nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.login)!==(te==null?void 0:te.author_login)){Fe.ZP.warning(ht.formatMessage({id:"classrooms.examSealedContactOwner",defaultMessage:"\u8BD5\u5377\u5DF2\u5C01\u5B58\uFF0C\u8BF7\u8054\u7CFB\u8BD5\u5377\u6240\u6709\u8005\u8FDB\u884C\u89E3\u5C01"}));return}Jt({type:"classroomList/setActionTabs",payload:{open:"\u63D0\u793A",id:te==null?void 0:te.id,phone:(bt=Wt==null?void 0:Wt.userInfo)==null?void 0:bt.phone,login:(Ra=Wt==null?void 0:Wt.userInfo)==null?void 0:Ra.login,onFinish:wt}})};return qn.createElement("div",{className:Ul.listItem,onClick:wt=>{const nn=()=>{(!(0,oe.GJ)()||(0,oe.GJ)()&&tn.current&&!tn.current.contains(wt.target))&&(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}`)};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()}},(0,oe.GJ)()&&qn.createElement("span",{ref:tn},qn.createElement(Ze.default,{checked:ge.includes(te.id),value:te.id,style:{padding:"10px"},onClick:wt=>{wt.stopPropagation()},disabled:(te==null?void 0:te.is_encrypt)||(te==null?void 0:te.is_make_up_exercise),onChange:wt=>{let nn=ge.indexOf(te.id);ge.indexOf(te.id)>-1?We(ge.filter(bt=>bt!==te.id)):We(ge.concat(te.id))}})),qn.createElement("div",{className:Ul.info},qn.createElement("div",{className:Ul.title},qn.createElement("div",{className:Ul.titleLeft,style:{marginRight:15}},Hr(te==null?void 0:te.exercise_tips),(te==null?void 0:te.is_make_up_exercise)&&qn.createElement("img",{src:Di,width:44,height:24,style:{marginRight:10}}),qn.createElement(ne.Z,{title:te.exercise_name},qn.createElement("span",{className:Ul.name},te.exercise_name)),(te==null?void 0:te.high_resources_consume)&&!(te!=null&&te.high_resources_consume_permission)&&qn.createElement(be.Z,{type:"exercise",style:{marginLeft:10}}),(te==null?void 0:te.high_resources_consume)&&(te==null?void 0:te.high_resources_consume_permission)&&qn.createElement("span",{className:Ul.authorized},"\u5DF2\u6388\u6743"),((ir=te==null?void 0:te.exercise_tips)==null?void 0:ir.includes("\u5DF2\u622A\u6B62"))&&((fr=vt==null?void 0:vt.detailTopBanner)==null?void 0:fr.forbid_end_exercise)&&qn.createElement(ne.Z,{title:"\u5DF2\u5BF9\u5B66\u751F\u9690\u85CF"},qn.createElement("img",{src:Ws,width:20,className:"ml10"})),!te.is_public&&(0,oe.GJ)()&&qn.createElement(ne.Z,{title:"\u79C1\u6709\u5C5E\u6027\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"},qn.createElement("span",{className:"iconfont icon-suo1 ml10 mr10 c-light-black font12"})),(te==null?void 0:te.exercise_type)==2&&qn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex",alignItems:"center"},className:Ul.moni},qn.createElement("img",{src:kt,width:18,height:14}),ht.formatMessage({id:"classrooms.practiceExam",defaultMessage:"\u6A21\u62DF\u8003\u8BD5"})),((nr=te==null?void 0:te.exercise_tips)==null?void 0:nr.includes("\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"))&&qn.createElement("span",{style:{flexShrink:0,marginLeft:10,display:"flex"},className:"tag-style-fzb iconfont icon-fangzuobi"},"\u5DF2\u5F00\u542F\u9632\u4F5C\u5F0A"),(te==null?void 0:te.ai_push_wrong_question)&&qn.createElement("span",{className:Ul.ErrorPushTag},qn.createElement("img",{src:Qr,width:12,className:"mr5"}),"AI\u9519\u9898\u63A8\u9001"),((Mo=te==null?void 0:te.exercise_tips)==null?void 0:Mo.includes("\u5DF2\u622A\u6B62"))&&((ba=te==null?void 0:te.exercise_tips)==null?void 0:ba.includes("\u672A\u63D0\u4EA4"))&&qn.createElement("span",{style:{flexShrink:0,backgroundColor:"#B8B8B8"},className:"tag-style ml10"},ht.formatMessage({id:"classroomGraphicGroupHomework.notSubmitted",defaultMessage:"\u672A\u63D0\u4EA4"})),(te==null?void 0:te.is_encrypt)&&qn.createElement(ne.Z,{title:"\u8BD5\u5377\u5DF2\u52A0\u5BC6"}," ",qn.createElement("img",{src:bn,width:21,className:"ml10",style:{marginTop:"-8px"}})," ")),qn.createElement("div",{className:Ul.titleRight,onClick:wt=>{wt.stopPropagation(),wt.preventDefault()}},(te==null?void 0:te.appraise_setting)&&qn.createElement("span",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:()=>tr(void 0,null,function*(){const wt=()=>tr(void 0,null,function*(){Jt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u8BC4\u9605\uFF0C\u8BF7\u7A0D\u540E..."}});const nn=yield(0,x.ZP)(`/api/exercises/${te.id}/create_appraise_students.json`,{method:"get"});Jt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(0,a.xg)(`/classrooms/${mt==null?void 0:mt.coursesId}/exercise/${te.id}/centralizeReview/${nn==null?void 0:nn.login}`)});if(te!=null&&te.is_encrypt){Ot(wt);return}wt()})},qn.createElement("i",{className:"iconfont icon-jizhongyuejuan"}),qn.createElement("div",null,ht.formatMessage({id:"classroomExams.centralizedGradingCannotBeDisabled",defaultMessage:"\u96C6\u4E2D\u9605\u5377"}))),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&(!(te!=null&&te.is_make_up_exercise)||(te==null?void 0:te.is_make_up_exercise)&&(te==null?void 0:te.exercise_status)===1&&(te==null?void 0:te.allow_create_make_up))&&qn.createElement(qt.Z,{tips:te==null?void 0:te.open_appraise},qn.createElement("span",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:()=>{const wt=()=>{var nn,bt,Ra;if(((nn=Wt==null?void 0:Wt.userInfo)==null?void 0:nn.user_status)===2){(0,de.Rd)();return}if((0,oe.Rm)()&&!((Ra=(bt=vt==null?void 0:vt.AssistantObject)==null?void 0:bt.exercise)!=null&&Ra.can_publish)){Fe.ZP.warning(ht.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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((te==null?void 0:te.exercise_question_count)===0){Fe.ZP.warning(ht.formatMessage({id:"classrooms.noQuestionsCannotPublishExam",defaultMessage:"\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5"}));return}let Pr=()=>{Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u53D1\u5E03",selectArrs:[te.id],selectArrsAll:[te],unified_setting:te.unified_setting,params:mt,disabled:te.exercise_status!==1,type:2,manage_all_group:dt,isRouter:!0}})};te!=null&&te.high_resources_consume&&!(te!=null&&te.high_resources_consume_permission)?Jt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:mt.coursesId,type:"exercise",type_id:te.id,name:te.exercise_name,fn:()=>{Jt({type:"classroomList/getClassroomExercisesList",payload:pl({},mt)}),Pr()}}}):Pr()};if(te!=null&&te.is_encrypt){Ot(wt);return}wt()}},qn.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),qn.createElement("div",null,ht.formatMessage({id:"classrooms.publish",defaultMessage:"\u53D1\u5E03"})))),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&!(0,a._m)()&&te.assistant_auth&&qn.createElement("span",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:wt=>{wt.stopPropagation();const nn=()=>{var bt,Ra;if((0,oe.Rm)()&&!((Ra=(bt=vt==null?void 0:vt.AssistantObject)==null?void 0:bt.exercise)!=null&&Ra.can_preview)){Fe.ZP.warning(ht.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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 Pr=ce()(te.created_at,Po);ce()(Xa).diff(ce()(Pr),"days")>0&&(te!=null&&te.is_random)?ur():te!=null&&te.is_random?(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/random/preview?random=${te.is_random}`):(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}&tabs=2`)};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()}},qn.createElement("i",{className:"iconfont icon-yulan3"}),qn.createElement("div",null,ht.formatMessage({id:"classrooms.preview",defaultMessage:"\u9884\u89C8"}))),(0,oe.RV)()&&qn.createElement("span",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:()=>{const wt=()=>{(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}`)};if(te!=null&&te.is_encrypt){Ot(wt);return}wt()}},qn.createElement("i",{className:"iconfont icon-yuyuexiangqing1"}),qn.createElement("div",null,ht.formatMessage({id:"classrooms.details",defaultMessage:"\u8BE6\u60C5"}))),(0,oe.GJ)()&&!(0,a._m)()&&qn.createElement(Fa.Z,{placement:"bottom",content:qn.createElement("div",{className:Ul.popover},!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&qn.createElement("p",{onClick:wt=>tr(void 0,null,function*(){const nn=()=>{(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/detail?random=${te.is_random}&tabs=3`)};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()})},ht.formatMessage({id:"classrooms.rulesSettings",defaultMessage:"\u89C4\u5219\u8BBE\u7F6E"})),(te==null?void 0:te.exercise_tips.includes("\u5BFC\u5165"))&&qn.createElement("p",{onClick:wt=>tr(void 0,null,function*(){const nn=()=>{Jt({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:te==null?void 0:te.exercise_name,id:te==null?void 0:te.id,type:"hack"}})};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()})},"\u8865\u5145\u6210\u7EE9"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&(0,oe.GJ)()&&te.is_random&&te.assistant_auth&&qn.createElement("p",{onClick:wt=>{wt.stopPropagation();const nn=()=>{const bt=ce()(te.created_at,Po);ce()(Xa).diff(ce()(bt),"days")>0&&(te!=null&&te.is_random)?ur():(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/random/edit?type=settings`)};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()}},"\u7F16\u8F91\u8003\u8BD5"),qn.createElement("p",{onClick:wt=>tr(void 0,null,function*(){const nn=()=>{var bt;Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u5220\u9664",selectArrs:[te.id],selectArrsAll:[te],params:mt,status:(bt=te==null?void 0:te.exercise_tips)==null?void 0:bt[0]}})};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()})},ht.formatMessage({id:"classrooms.deletePaper",defaultMessage:"\u5220\u9664\u8BD5\u5377"})),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&qn.createElement("p",{onClick:()=>{const wt=()=>{Jt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[te.id],params:mt}})};if(te!=null&&te.is_encrypt){Ot(wt);return}wt()}},ht.formatMessage({id:"classrooms.addToPaperLibrary",defaultMessage:"\u52A0\u5165\u8BD5\u5377\u5E93"})),((Vo=te==null?void 0:te.exercise_tips)==null?void 0:Vo.includes("\u672A\u5F00\u59CB"))&&(te==null?void 0:te.author_login)===((ta=Wt==null?void 0:Wt.userInfo)==null?void 0:ta.login)&&qn.createElement("p",{onClick:wt=>tr(void 0,null,function*(){Zr(te)})}," ",te!=null&&te.is_encrypt?"\u89E3\u5C01":"\u52A0\u5BC6\u5C01\u5B58"),!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&((0,oe.GJ)()||((eo=(so=vt==null?void 0:vt.AssistantObject)==null?void 0:so.exercise)==null?void 0:eo.can_stop))&&![1,3].includes(te==null?void 0:te.exercise_status)&&qn.createElement("p",{onClick:wt=>tr(void 0,null,function*(){const nn=()=>{var bt,Ra;if((0,oe.Rm)()&&!((Ra=(bt=vt==null?void 0:vt.AssistantObject)==null?void 0:bt.exercise)!=null&&Ra.can_stop)){Fe.ZP.warning(ht.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}Jt({type:"exercise/setActionTabs",payload:{key:"\u6279\u91CF\u7ED3\u675F",selectArrs:[te.id],params:mt,unified_setting:te.unified_setting}})};if(te!=null&&te.is_encrypt){Ot(nn);return}nn()})},ht.formatMessage({id:"classrooms.endExam",defaultMessage:"\u7ED3\u675F\u8003\u8BD5"})))},qn.createElement("span",{onClick:wt=>wt.stopPropagation(),className:Ul.flexBox,style:{cursor:"default"}},qn.createElement("i",{className:"iconfont icon-gengduo4"}),qn.createElement("div",null,ht.formatMessage({id:"classrooms.more",defaultMessage:"\u66F4\u591A"})))),(0,oe.dE)()&&qn.createElement(qn.Fragment,null,!!te.off_limits&&qn.createElement(ne.Z,{title:`\u8FDF\u5230\u8D85\u8FC7${te==null?void 0:te.last_times} ${ht.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}\uFF0C\u7981\u6B62\u8FDB\u5165\u7B54\u9898`},qn.createElement("b",{className:"font16 c-grey-999"},"\u8FDF\u5230\u7981\u6B62\u7B54\u9898")),(te==null?void 0:te.exercise_type)==1&&!te.off_limits&&te.current_status===0&&te.exercise_status>1&&!((qa=te.exercise_tips)!=null&&qa.includes("\u5DF2\u622A\u6B62"))&&qn.createElement("a",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:wt=>{wt.stopPropagation(),wt.preventDefault(),Bl(te,!0)},href:""},qn.createElement("i",{className:"iconfont icon-jixukaoshi"}),qn.createElement("div",null,(te==null?void 0:te.screen_used_num)>(te==null?void 0:te.screen_total_num)&&"\u7533\u8BF7"," \u7EE7\u7EED\u8003\u8BD5")),!((Rr=te.exercise_tips)!=null&&Rr.includes("\u5DF2\u622A\u6B62"))&&(te==null?void 0:te.screen_used_num)>(te==null?void 0:te.screen_total_num)&&qn.createElement("a",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:wt=>{wt.stopPropagation(),wt.preventDefault(),Bl(te,!0)},href:""},qn.createElement("i",{className:"iconfont icon-jixukaoshi"}),qn.createElement("div",null,"\u7533\u8BF7\u7EE7\u7EED\u8003\u8BD5")),!te.off_limits&&te.current_status===1&&(te==null?void 0:te.screen_used_num)<(te==null?void 0:te.screen_total_num)&&te.exercise_status>1&&document.domain!="kepukehuan.educoder.net"&&!((te==null?void 0:te.exercise_type)==2&&(te==null?void 0:te.exercise_status)!=3)&&qn.createElement("span",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:wt=>tr(void 0,null,function*(){var nn;if(wt.stopPropagation(),!(te!=null&&te.answered_open)){Fe.ZP.info(ht.formatMessage({id:"classrooms.teacherSetNoViewAfterSubmission",defaultMessage:"\u8001\u5E08\u5DF2\u8BBE\u7F6E\u672C\u8BD5\u5377\u5728\u4EA4\u5377\u540E\u4E0D\u53EF\u67E5\u770B"}));return}yield(0,Pn.w)(mt.coursesId,te.id,"\u6B63\u5728\u8FDB\u5165\u67E5\u770B\uFF0C\u8BF7\u7A0D\u540E..."),(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/users/${(nn=(0,oe.eY)())==null?void 0:nn.login}?check=true`)})},qn.createElement("i",{className:"iconfont icon-chakankaoshi"}),qn.createElement("div",null,"\u67E5\u770B\u8003\u8BD5")),(te==null?void 0:te.exercise_type)==1&&!te.off_limits&&te.current_status===2&&te.exercise_status>1&&!((vr=te.exercise_tips)!=null&&vr.includes("\u5DF2\u622A\u6B62"))&&qn.createElement("a",{className:Ul.flexBox,style:{marginRight:"16px",color:(te==null?void 0:te.is_redo)===1&&"red"},onClick:wt=>{wt.stopPropagation(),wt.preventDefault(),Bl(te)},href:""},qn.createElement("i",{className:"iconfont icon-a-kaishijixudajuan"}),qn.createElement("div",null,(te==null?void 0:te.is_redo)===0?ht.formatMessage({id:"classroomExams.startExam",defaultMessage:"\u5F00\u59CB\u8003\u8BD5"}):"\u91CD\u65B0\u8003\u8BD5")),(te==null?void 0:te.exercise_type)==2&&!te.off_limits&&te.exercise_status>1&&!((_o=te.exercise_tips)!=null&&_o.includes("\u5DF2\u622A\u6B62"))&&qn.createElement(ne.Z,{title:qn.createElement("span",null,"\u672C\u6B21\u8003\u8BD5\u53EF\u91CD\u590D\u8003\u8BD5",te==null?void 0:te.simulate_exercise_num,"\u6B21\uFF0C\u5269\u4F59",Xl(),"\u6B21")},qn.createElement("a",{className:Ul.flexBox,onClick:wt=>{Xl()==0&&(te==null?void 0:te.current_status)!=0||(wt.stopPropagation(),wt.preventDefault(),Bl(te))},href:""},qn.createElement("i",{className:`iconfont ${(te==null?void 0:te.current_status)!=0?"icon-a-kaishijixudajuan":"icon-jixukaoshi"}`}),qn.createElement("div",null,(te==null?void 0:te.current_status)!=0?ht.formatMessage({id:"classroomExams.startExam",defaultMessage:"\u5F00\u59CB\u8003\u8BD5"}):"\u7EE7\u7EED\u8003\u8BD5"))),(te==null?void 0:te.ai_push_wrong_question)&&(te==null?void 0:te.whole_exercise_status)===3&&!((rr=te==null?void 0:te.exercise_tips)!=null&&rr.includes("\u672A\u63D0\u4EA4"))&&qn.createElement("span",{className:Ul.flexBox,style:{marginRight:"16px"},onClick:wt=>tr(void 0,null,function*(){var nn,bt;if(wt.stopPropagation(),(te==null?void 0:te.wrong_questions_size)===0){Fe.ZP.warning(ht.formatMessage({id:"classrooms.noNeedErrorConsolidation",defaultMessage:"\u672C\u6B21\u8003\u8BD5\u4F60\u65E0\u9700\u8FDB\u884C\u9519\u9898\u5DE9\u56FA\uFF5E"}));return}if(((nn=te==null?void 0:te.progress)==null?void 0:nn.stat)===1){Fe.ZP.warning(ht.formatMessage({id:"classrooms.recommendingQuestionsGenerating",defaultMessage:"\u63A8\u8350\u8BD5\u9898\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u751F\u6210\u5B8C\u6210\u540E\u518D\u5F00\u59CB\u5DE9\u56FA"}));return}(0,a.xg)(`/classrooms/${mt.coursesId}/exercise/${te.id}/wrongAnswer/${(bt=(0,oe.eY)())==null?void 0:bt.login}`)})},qn.createElement("i",{className:"iconfont icon-cuotigonggu"}),qn.createElement("div",null,"\u9519\u9898\u5DE9\u56FA"))))),(0,oe.GJ)()&&qn.createElement("p",{style:{display:"flex"}},qn.createElement("span",{className:"c-grey-666",style:{display:"inline-block",maxWidth:"90px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},title:te.author},te.author),qn.createElement("span",{className:"ml30 c-grey-666"},ht.formatMessage({id:"shixuns.creationTime",defaultMessage:"\u521B\u5EFA\u65F6\u95F4"}),"\uFF1A",ce()(te.created_at).format("YYYY-MM-DD HH:mm:ss")),((cr=te==null?void 0:te.exercise_tips)==null?void 0:cr.includes("\u672A\u5F00\u59CB"))&&te.publish_time&&qn.createElement("span",{className:"ml30 c-grey-666"},ht.formatMessage({id:"classrooms.startTime1",defaultMessage:"\u5F00\u59CB\u65F6\u95F4"}),"\uFF1A",ce()(te.publish_time).format("YYYY-MM-DD HH:mm:ss")),qn.createElement("span",{className:"ml30 c-grey-666"},ht.formatMessage({id:"classroomExams.answeringDuration1",defaultMessage:"\u7B54\u9898\u65F6\u957F"}),"\uFF1A",te.time===null?"\u4E0D\u9650":`${te.time}${ht.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}`),qn.createElement("span",{className:"ml30 c-grey-666"},ht.formatMessage({id:"testPaperBank.type",defaultMessage:"\u7C7B\u578B"}),"\uFF1A",te.is_random?ht.formatMessage({id:"testPaperBank.randomTestAssembly",defaultMessage:"\u968F\u673A\u7EC4\u5377"}):ht.formatMessage({id:"testPaperBank.manualTestAssembly",defaultMessage:"\u4EBA\u5DE5\u7EC4\u5377"})),!((pr=te==null?void 0:te.exercise_tips)!=null&&pr.includes("\u672A\u5F00\u59CB"))&&!(te!=null&&te.is_make_up_exercise)&&!(te!=null&&te.exercise_tips.includes("\u5BFC\u5165"))&&qn.createElement("span",{className:Ul.iconV,style:{marginLeft:"auto",textAlign:"end"},onClick:wt=>tr(void 0,null,function*(){wt.stopPropagation(),wt.preventDefault(),Un||Gt(),ar(!Un)})},qn.createElement(ne.Z,{title:`${Un?ht.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"}):ht.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})}`},qn.createElement("i",{className:`iconfont icon-${Un?"shouqi":"xiala2"}`})))),(0,oe.dE)()&&qn.createElement("p",{style:{display:"flex"}},qn.createElement("span",{className:"c-grey-333"},te.author),qn.createElement("span",{className:"ml30 c-grey-999 mr20"},ht.formatMessage({id:"classroomExams.answeringDuration1",defaultMessage:"\u7B54\u9898\u65F6\u957F"}),"\uFF1A",te.time===null?"\u4E0D\u9650":`${te.time}${ht.formatMessage({id:"classrooms.minute",defaultMessage:"\u5206\u949F"})}`),!!(te!=null&&te.exercise_left_time)&&qn.createElement("span",{className:"ml15 c-grey-999"},"\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\uFF1A",te==null?void 0:te.exercise_left_time),!!(te!=null&&te.before_start)&&qn.createElement("span",{className:"ml15 c-grey-999"},"\u8DDD\u79BB\u8003\u8BD5\u5F00\u59CB\u65F6\u95F4\uFF1A",te==null?void 0:te.before_start)),(0,oe.GJ)()&&!((ga=te==null?void 0:te.exercise_tips)!=null&&ga.includes("\u672A\u5F00\u59CB"))&&qn.createElement("p",null,qn.createElement("span",{style:{letterSpacing:2},className:"c-grey-333 mr15"},ht.formatMessage({id:"classroomExams.submissionStatus",defaultMessage:"\u63D0\u4EA4\u72B6\u6001"}),"\uFF1A"),qn.createElement("span",{className:"c-grey-333 mr20"},ht.formatMessage({id:"classrooms.notStarted",defaultMessage:"\u672A\u5F00\u59CB"}),qn.createElement("span",null,te==null?void 0:te.unanswer_users)),qn.createElement("span",{className:"c-grey-333 mr20"},ht.formatMessage({id:"classroomExams.inExam",defaultMessage:"\u8003\u8BD5\u4E2D"})," ",qn.createElement("span",{style:{color:"rgb(90, 184, 145)"}},te==null?void 0:te.answering_users)),qn.createElement("span",{className:"c-grey-333 mr20"},ht.formatMessage({id:"classrooms.submitted",defaultMessage:"\u5DF2\u4EA4\u5377"})," ",qn.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.answer_users)),qn.createElement("span",{className:"c-grey-333"},ht.formatMessage({id:"classrooms.submittedUnanswered",defaultMessage:"\u5DF2\u4EA4\u5377/\u672A\u7B54"})," ",qn.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.commit_with_no_answers_users))),(0,oe.GJ)()&&!((Jo=te==null?void 0:te.exercise_tips)!=null&&Jo.includes("\u672A\u5F00\u59CB"))&&Un&&Zl.length>5&&qn.createElement(rt.default,{scroll:{y:240},pagination:!1,dataSource:Zl,onRow:wt=>({onClick:nn=>{nn.stopPropagation(),nn.preventDefault()}}),onHeaderRow:(wt,nn)=>({onClick:bt=>{bt.stopPropagation(),bt.preventDefault()}}),rowKey:"course_group_id",style:{marginTop:"10px"},onChange:(wt,nn,bt)=>{bt.field&&(mt.order_by=bt.field),bt.order||(mt.sort_direction="asc"),bt.order==="ascend"&&(mt.sort_direction="asc"),bt.order==="descend"&&(mt.sort_direction="desc"),bt.order||(mt.sort_direction="asc"),Gt()},columns:Nl}),(0,oe.GJ)()&&!((la=te==null?void 0:te.exercise_tips)!=null&&la.includes("\u672A\u5F00\u59CB"))&&Un&&Zl.length<6&&Zl.length>0&&qn.createElement(rt.default,{rowKey:"course_group_id",pagination:!1,onRow:wt=>({onClick:nn=>{nn.stopPropagation(),nn.preventDefault()}}),onHeaderRow:(wt,nn)=>({onClick:bt=>{bt.stopPropagation(),bt.preventDefault()}}),dataSource:Zl,style:{marginTop:"10px"},onChange:(wt,nn,bt)=>{bt.field&&(mt.order_by=bt.field),bt.order||(mt.sort_direction="asc"),bt.order==="ascend"&&(mt.sort_direction="asc"),bt.order==="descend"&&(mt.sort_direction="desc"),bt.order||(mt.sort_direction="asc"),Gt()},columns:Nl}),(te==null?void 0:te.total)!==void 0&&qn.createElement("p",null,qn.createElement("span",{className:"c-grey-333 mr15"},"\u96C6\u4E2D\u9605\u5377\u603B\u8FDB\u5EA6\uFF1A"),qn.createElement("span",{className:"c-grey-333 mr20"},"\u603B\u8BC4\u6570",qn.createElement("span",null,te==null?void 0:te.total)),qn.createElement("span",{className:"c-grey-333 mr20"},ht.formatMessage({id:"classrooms.reviewed",defaultMessage:"\u5DF2\u8BC4\u9605"})," ",qn.createElement("span",{style:{color:"#4EACFF"}},te==null?void 0:te.finish_total)),qn.createElement("span",{className:"c-grey-333"},"\u5F85\u8BC4\u9605 ",qn.createElement("span",{style:{color:"#FC2D6B"}},te==null?void 0:te.unfinished_total)))),qn.createElement(tt.Z,{closable:!0,successCb:()=>Bl($r.current)}))};var ci=(0,Se.connect)(({classroomList:te})=>({classroomList:te}))(vl),xs=z(15070),Mu=z(69524),Ju=z(68),ls=z(99543),Is=z(34738),vs=z(6151),So=z(67294),oc=Object.defineProperty,cc=Object.defineProperties,dc=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,fc=(te,ye,ge)=>ye in te?oc(te,ye,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[ye]=ge,ii=(te,ye)=>{for(var ge in ye||(ye={}))gc.call(ye,ge)&&fc(te,ge,ye[ge]);if(Ks)for(var ge of Ks(ye))mc.call(ye,ge)&&fc(te,ge,ye[ge]);return te},hs=(te,ye)=>cc(te,dc(ye)),pc=(te,ye)=>{var ge={};for(var We in te)gc.call(te,We)&&ye.indexOf(We)<0&&(ge[We]=te[We]);if(te!=null&&Ks)for(var We of Ks(te))ye.indexOf(We)<0&&mc.call(te,We)&&(ge[We]=te[We]);return ge},Rs=(te,ye,ge)=>new Promise((We,Jt)=>{var mt=dt=>{try{An(ge.next(dt))}catch(Wt){Jt(Wt)}},vt=dt=>{try{An(ge.throw(dt))}catch(Wt){Jt(Wt)}},An=dt=>dt.done?We(dt.value):Promise.resolve(dt.value).then(mt,vt);An((ge=ge.apply(te,ye)).next())});const vc=te=>{var ye=te,{user:ge,classroomList:We,globalSetting:Jt,loading:mt,dispatch:vt}=ye,An=pc(ye,["user","classroomList","globalSetting","loading","dispatch"]),dt,Wt,ir,fr,nr,Mo,ba,Vo,ta,so,eo,qa,Rr,vr,_o,rr,cr,pr;const ga=(0,Se.useIntl)(),Jo=(0,Se.useParams)(),[la]=(0,Se.useSearchParams)(),[ht,Zl]=(0,re.useState)(()=>hs(ii({},Jo),{limit:20})),Xo=(0,Se.useLocation)(),{detailExerciseList:Un,detailTopBanner:ar,detailLeftMenus:$r}=We,[tn,sa]=(0,re.useState)([]),[Po,Xa]=(0,re.useState)(!1),[Gt,ur]=(0,re.useState)([]),[Bl,Nl]=(0,re.useState)(!1),[Hr,Xl]=(0,re.useState)(!1),[Zr,Ot]=(0,re.useState)(!1),[wt,nn]=(0,re.useState)(!1),[bt,Ra]=(0,re.useState)(ga.formatMessage({id:"classrooms.sortByCreationTimeDesc",defaultMessage:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"})),Pr=[{name:ga.formatMessage({id:"classrooms.sortByCreationTimeAsc",defaultMessage:"\u6309\u521B\u5EFA\u65F6\u95F4\u5347\u5E8F"}),type:"created_at",direction:"asc"},{name:ga.formatMessage({id:"classrooms.sortByCreationTimeDesc",defaultMessage:"\u6309\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F"}),type:"created_at",direction:"desc"},{name:ga.formatMessage({id:"classrooms.sortByExamDurationAsc",defaultMessage:"\u6309\u8003\u8BD5\u65F6\u957F\u5347\u5E8F"}),type:"time",direction:"asc"},{name:ga.formatMessage({id:"classrooms.sortByExamDurationDesc",defaultMessage:"\u6309\u8003\u8BD5\u65F6\u957F\u964D\u5E8F"}),type:"time",direction:"desc"},{name:ga.formatMessage({id:"classrooms.sortByPaperNameAsc",defaultMessage:"\u6309\u8BD5\u5377\u540D\u79F0\u5347\u5E8F"}),type:"exercise_name",direction:"asc"},{name:ga.formatMessage({id:"classrooms.sortByPaperNameDesc",defaultMessage:"\u6309\u8BD5\u5377\u540D\u79F0\u964D\u5E8F"}),type:"exercise_name",direction:"desc"}];ht.type=la.get("tabs")==="all"?"":la.get("tabs")||"",ht.id=ht.coursesId,(0,re.useEffect)(()=>{var Ht,Za,Hl;if((Ht=ge==null?void 0:ge.userInfo)!=null&&Ht.login){if((0,oe.GJ)()){const Tl=a.cX.getItem(`${(Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.login}Teacher`,"Exercise");Tl&&(ht.sort_by=Tl==null?void 0:Tl.type,ht.sort_direction=Tl==null?void 0:Tl.direction,Ra(Tl==null?void 0:Tl.name))}vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})}else(Hl=ge==null?void 0:ge.userInfo)!=null&&Hl.username&&vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)});Xa(!1)},[(dt=ge==null?void 0:ge.userInfo)==null?void 0:dt.login,Xo.pathname]),(0,re.useEffect)(()=>{We.actionTabs.key==="\u76EE\u5F55\u91CD\u547D\u540D\u6210\u529F"&&vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})},[We.actionTabs.key]),(0,re.useEffect)(()=>{We.actionTabs.key==="\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"&&(Nl(!0),Xl(ar==null?void 0:ar.show_unstart_exercise),Ot(ar==null?void 0:ar.forbid_end_exercise))},[We.actionTabs.key]),(0,re.useEffect)(()=>{sa([])},[Un]);const ol=(Ht,Za)=>{sa([]),ht.page=Ht,ht.limit=Za,vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})},Cl=Ht=>{ht.type=Ht.key==="all"?"":Ht.key,ht.page=1,Se.history.replace(`${Xo.pathname}?tabs=${Ht.key}`),nn(!1),vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})};(0,re.useEffect)(()=>{la.get("tabs")==="all"&&(ht.type="",ht.page=1)},[la.get("tabs")]),(0,re.useEffect)(()=>{(0,oe.Rm)()&&vt({type:"classroomList/getAssistantPermissions",payload:{course_id:ht.coursesId}})},[(Wt=ge==null?void 0:ge.userInfo)==null?void 0:Wt.username]),(0,re.useEffect)(()=>{const Ht=sessionStorage.getItem("illegalEntry");sessionStorage.getItem("illegalEntry")&&(sessionStorage.removeItem("illegalEntry"),Pe.default.info({title:ga.formatMessage({id:"classrooms.prompt",defaultMessage:"\u63D0\u793A"}),centered:!0,width:600,content:So.createElement("div",null,"\u5728\u7EBF\u8003\u8BD5\u7981\u6B62\u4F7F\u7528\u94FE\u63A5\u76F4\u63A5\u8BBF\u95EE\u7B54\u9898\u9875\u9762\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u9762\u4E24\u79CD\u6B63\u5E38\u65B9\u5F0F\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",So.createElement("br",null),"1\u3001\u5728",So.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u5217\u8868"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",So.createElement("span",{className:"c-blue blod"},ga.formatMessage({id:"classroomExams.startExam",defaultMessage:"\u5F00\u59CB\u8003\u8BD5"})),"\u201D\u6216\u201C",So.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",So.createElement("br",null),"2\u3001\u5728",So.createElement("span",{className:"c-red blod"},"\u8003\u8BD5\u8BE6\u60C5"),"\u9875\u9762\u4E2D\uFF0C\u70B9\u51FB\u201C",So.createElement("span",{className:"c-blue blod"},ga.formatMessage({id:"classroomExams.startExam",defaultMessage:"\u5F00\u59CB\u8003\u8BD5"})),"\u201D\u6216\u201C",So.createElement("span",{className:"c-blue blod"},"\u7EE7\u7EED\u8003\u8BD5"),"\u201D\u6309\u94AE\u8FDB\u5165\u8003\u8BD5\u7B54\u9898\u9875\u9762\u3002",So.createElement("br",null),Ht==="allowRouter"&&So.createElement(So.Fragment,null,"3\u3001",So.createElement("span",{className:"c-red blod"},"\u4E25\u7981\u67E5\u770B\u4ED6\u4EBA\u7684\u8BD5\u5377\u3002"))),okText:ga.formatMessage({id:"competitions.gotIt",defaultMessage:"\u77E5\u9053\u4E86"})}))},[]),(0,re.useEffect)(()=>{(0,oe.Rm)()&&vt({type:"classroomList/getAssistantPermissions",payload:{course_id:ht.coursesId}})},[(ir=ge==null?void 0:ge.userInfo)==null?void 0:ir.login]);const dr=[{name:ga.formatMessage({id:"classrooms.all",defaultMessage:"\u5168\u90E8"}),id:"all",total:(fr=Un.exercises_counts)==null?void 0:fr.exercises_total_counts},{name:ga.formatMessage({id:"classrooms.notStarted",defaultMessage:"\u672A\u5F00\u59CB"}),id:1,total:(nr=Un.exercises_counts)==null?void 0:nr.unstart_counts},{name:ga.formatMessage({id:"classroomExams.inExam",defaultMessage:"\u8003\u8BD5\u4E2D"}),id:2,total:(Mo=Un.exercises_counts)==null?void 0:Mo.publish_counts},{name:ga.formatMessage({id:"classroomExams.centralizedGradingCannotBeDisabled",defaultMessage:"\u96C6\u4E2D\u9605\u5377"}),id:4,total:(ba=Un.exercises_counts)==null?void 0:ba.appraise_exercise_count},{name:ga.formatMessage({id:"classrooms.closed",defaultMessage:"\u5DF2\u622A\u6B62"}),id:3,total:(Vo=Un.exercises_counts)==null?void 0:Vo.end_counts}],wi=[{name:ga.formatMessage({id:"classrooms.bulkPublish",defaultMessage:"\u6279\u91CF\u53D1\u5E03"}),icon:So.createElement("i",{className:"iconfont icon-fabu5"})},{name:ga.formatMessage({id:"classrooms.bulkEnd",defaultMessage:"\u6279\u91CF\u7ED3\u675F"}),icon:So.createElement("i",{className:"iconfont icon-piliangjiezhi2"})},{name:ga.formatMessage({id:"classrooms.bulkDelete",defaultMessage:"\u6279\u91CF\u5220\u9664"}),icon:So.createElement("i",{className:"iconfont icon-piliangshanchu2"})},{name:ga.formatMessage({id:"classrooms.setAsPublic",defaultMessage:"\u8BBE\u4E3A\u516C\u5F00"}),icon:So.createElement("i",{className:"iconfont icon-sheweigongkai2"})},{name:ga.formatMessage({id:"classrooms.addToPaperLibrary",defaultMessage:"\u52A0\u5165\u8BD5\u5377\u5E93"}),icon:So.createElement("i",{className:"iconfont icon-piliangjiaru font14"})}].filter(Ht=>(0,oe.GJ)()?!0:Ht.name!=="\u6279\u91CF\u5220\u9664").filter(Ht=>ar.is_public?!0:Ht.name!==ga.formatMessage({id:"classrooms.setAsPublic",defaultMessage:"\u8BBE\u4E3A\u516C\u5F00"})),Xu=()=>Pe.default.info({title:"\u9898\u5E93\u6539\u7248\u544A\u77E5",content:So.createElement(So.Fragment,null,"\u5E73\u53F0\u5DF2\u5347\u7EA7\u9898\u5E93\u529F\u80FD\uFF0C\u6240\u6709\u8BD5\u9898\u5747\u9700\u5339\u914D\u77E5\u8BC6\u70B9\u3002 \u5F53\u524D\u8BD5\u5377\u6240\u6D89\u53CA\u8BD5\u9898\u5747\u672A\u5339\u914D\u77E5\u8BC6\u70B9\uFF0C\u65E0\u6CD5\u968F\u673A\u62BD\u53D6\uFF0C\u5DF2\u4E0D\u80FD\u6709\u6548\u4F7F\u7528\u3002\u8BF7\u5728\u8BD5\u5377\u5E93\u91CD\u65B0\u7EC4\u5377\u540E\u4F7F\u7528\u3002 \u7531\u6B64\u5E26\u6765\u7684\u4E0D\u4FBF\uFF0C\u656C\u8BF7\u8C05\u89E3\uFF01")}),Lu="YYYY-MM-DD",Es=ce()("2020-11-15",Lu),qu=Ht=>{var Za;ht.sort_by=Ht.type,ht.sort_direction=Ht.direction,(0,oe.GJ)()&&a.cX.setItem(`${(Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.login}Teacher`,Ht,"Exercise"),ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:ii({},ht)}),Ra(Ht.name)},Os=()=>So.createElement(Ie.default,null,So.createElement(Ie.default.Item,{key:1,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We==null?void 0:We.AssistantObject)==null?void 0:Ht.exercise)!=null&&Za.can_create)){Fe.ZP.warning(ga.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}vt({type:"exercise/setActionTabs",payload:{key:"\u8BD5\u5377\u9009\u7528",params:ht}})}},ga.formatMessage({id:"classrooms.quickSelectPaper",defaultMessage:"\u5FEB\u901F\u9009\u62E9\u8BD5\u5377"})),So.createElement(Ie.default.Item,{key:2,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We==null?void 0:We.AssistantObject)==null?void 0:Ht.exercise)!=null&&Za.can_create)){Fe.ZP.warning(ga.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}window.scrollTo(0,0),Se.history.push(`/classrooms/${ht.coursesId}/exercise/add?catalogue=${(Jo==null?void 0:Jo.categoryId)||""}`)}},ga.formatMessage({id:"classrooms.createNewPaper",defaultMessage:"\u521B\u5EFA\u65B0\u8BD5\u5377"})),So.createElement(Ie.default.Item,{key:3,onClick:()=>{var Ht,Za;if((0,oe.Rm)()&&!((Za=(Ht=We.AssistantObject)==null?void 0:Ht.practice)!=null&&Za.can_create)){Fe.ZP.warning(ga.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}vt({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",type:"exercise"}})}},ga.formatMessage({id:"classrooms.importExternalGrades",defaultMessage:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"}))),$u=Ht=>Rs(void 0,null,function*(){var Za,Hl,Tl,qi,Iu,is,Ia,Co;const Ka=Ht.name;if(((Za=ge==null?void 0:ge.userInfo)==null?void 0:Za.user_status)===2&&Ht.name==="\u6279\u91CF\u53D1\u5E03"){(0,de.Rd)();return}const qo=[];if((Hl=Un.exercises)==null||Hl.map(La=>{if(tn.includes(La.id)&&La.is_random){const mo=ce()(La.created_at,Lu);ce()(Es).diff(ce()(mo),"days")>0&&(La!=null&&La.is_random)&&qo.push(La)}}),tn==""){let La=ga.formatMessage({id:"classrooms.selectTaskToOperate",defaultMessage:"\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"});Ka==="\u52A0\u5165\u8BD5\u5377\u5E93"&&(La="\u8BF7\u9009\u62E9\u8981\u52A0\u5165\u8BD5\u5377\u5E93\u7684\u8BD5\u5377"),Fe.ZP.error(La)}else if(qo.length)Xu();else{if(Ka==="\u6279\u91CF\u53D1\u5E03"){if((0,oe.Rm)()&&!((qi=(Tl=We==null?void 0:We.AssistantObject)==null?void 0:Tl.exercise)!=null&&qi.can_publish)){Fe.ZP.warning(ga.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\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}let La=!1;Un.exercises.forEach(Lo=>{tn.includes(Lo.id)&&Lo.total_num===0&&Lo.is_random&&(La=!0)});let mo;if(mo=(is=(Iu=Un.exercises.filter(Lo=>tn.includes(Lo==null?void 0:Lo.id)).filter(Lo=>(Lo==null?void 0:Lo.exercise_question_count)===0))==null?void 0:Iu[0])==null?void 0:is.exercise_name,(mo==null?void 0:mo.length)>0){Fe.ZP.warning(`${mo}${ga.formatMessage({id:"classrooms.noQuestionsCannotPublishExam",defaultMessage:"\u8BD5\u5377\u5185\u6CA1\u6709\u8BD5\u9898\u4E0D\u5141\u8BB8\u53D1\u5E03\u8003\u8BD5"})}`);return}if(La){Fe.ZP.warning(ga.formatMessage({id:"classrooms.randomExamNotGenerated",defaultMessage:"\u968F\u673A\u8BD5\u5377\u8FD8\u672A\u5728\u8BE5\u8BFE\u5802\u751F\u6210\u8BD5\u5377\uFF0C\u8BF7\u70B9\u51FB\u7F16\u8F91\u53BB\u8BBE\u7F6E\u51FA\u5377\u6570\u91CF\u5427\u3002"}));return}let _r=!1;if(Un.exercises.forEach(Lo=>{tn.includes(Lo.id)&&Lo.exercise_status!==1&&(_r=!0)}),_r){Fe.ZP.warning(ga.formatMessage({id:"classrooms.publishedExamCannotBatchPublish",defaultMessage:"\u8BD5\u5377\u5DF2\u53D1\u5E03\u8003\u8BD5\u4E0D\u53EF\u6279\u91CF\u53D1\u5E03\u3002"}));return}}if(Ka==="\u52A0\u5165\u8BD5\u5377\u5E93"){const La=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:[...tn]}});if(((Ia=La==null?void 0:La.cover_exercises)==null?void 0:Ia.length)>0){ur(La==null?void 0:La.cover_exercises);return}}vt({type:"exercise/setActionTabs",payload:{key:Ka,selectArrs:tn,selectArrsAll:(Co=Un.exercises)==null?void 0:Co.filter(La=>tn.includes(La.id)),params:ht,type:1}})}});return So.createElement("section",{className:"minH500"},So.createElement(xs.Z,{isLoading:mt["classroomList/getClassroomExercisesList"],tabDataSource:dr,isAdmin:(0,oe.GJ)(),dispatch:vt,type:Un==null?void 0:Un.main_category_name,isExercise:!0,user:ge,getDropdownMenu:Os,onTabMenuClick:Cl,classroomList:We,defaultSelectedKeys:[ht.type||"all"]}),So.createElement(Mu.Z,{dataSource:Un.exercises||[],isAdmin:(0,oe.GJ)(),batchStatus:wt,SortMenuName:bt,setSortMenuName:Ra,SortMenus:Pr,onSearch:Ht=>{ht.search=Ht.trim(),ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:ii({},ht)})},isShowMode:!0,onModeChange:Ht=>{ht.is_normal=Ht,ht.page=1,vt({type:"classroomList/getClassroomExercisesList",payload:ii({},ht)})},onSort:qu,onBatch:Ht=>nn(Ht)}),So.createElement(ue.Z,{loading:mt["classroomList/getClassroomExercisesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},(ta=Un.exercises_counts)!=null&&ta.exercises_all_counts?Un.exercises.map(function(Ht,Za){return So.createElement(ci,{key:Za,v:Ht,k:Za,batchStatus:wt,selectArrs:tn,setSelectArrs:sa,dispatch:vt,params:ht,user:ge,manageAllGroup:Un.manage_all_group})}):So.createElement(E.Z,null),So.createElement("aside",{className:"tc mb50 mt30"},((so=Un.exercises_counts)==null?void 0:so.exercises_all_counts)>0&&So.createElement(Te.Z,{showTotal:Ht=>{var Za;return`${ga.formatMessage({id:"common.total",defaultMessage:"\u5171"})} ${(Za=Un==null?void 0:Un.exercises_counts)==null?void 0:Za.exercises_all_counts} \u6761`},showSizeChanger:!0,onChange:ol,defaultCurrent:ht.page,current:ht.page||1,pageSize:ht.limit||20,total:Un.exercises_counts&&Un.exercises_counts.exercises_all_counts}))),tn.length>0&&(0,oe.GJ)()&&So.createElement(je.Z,{offsetBottom:0},So.createElement(Ju.Z,{buttonDataSource:wi,onButtonClick:$u,useBatchStatus:nn,setSeleArr:sa,catalogue:((qa=(eo=$r==null?void 0:$r.course_modules)==null?void 0:eo.find(Ht=>Ht.type==="exercise"))==null?void 0:qa.second_category)||[],addCatalogue:Ht=>{Ht.preventDefault(),vt({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",params:ht,selectArrs:{category_id:Un==null?void 0:Un.main_category_id,type:"exercise"}}})},allSelect:tn.length?tn.length===((vr=(Rr=Un.exercises)==null?void 0:Rr.filter(Ht=>!Ht.is_make_up_exercise))==null?void 0:vr.length):!1,setAllSelect:Ht=>{var Za;Ht.target.checked?sa((Za=Un==null?void 0:Un.exercises)==null?void 0:Za.filter(Hl=>!Hl.is_make_up_exercise).map(Hl=>Hl.id)):sa([])},selectArrs:tn,onMenuClick:Ht=>Rs(void 0,[Ht],function*({key:Za}){if(tn=="")return Fe.ZP.error(ga.formatMessage({id:"classrooms.selectTaskToOperate",defaultMessage:"\u8BF7\u9009\u62E9\u4F60\u8981\u64CD\u4F5C\u7684\u4EFB\u52A1"})),null;(yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/move_to_category.json`,{method:"post",body:{exercise_ids:tn,new_category_id:Za}})).status===0&&(Fe.ZP.success(ga.formatMessage({id:"classrooms.operationSuccess",defaultMessage:"\u64CD\u4F5C\u6210\u529F"})),vt({type:"classroomList/getClassroomExercisesList",payload:ii({},Jo)}))})})),So.createElement(Kr.Z,null),So.createElement(Xr.Z,null),So.createElement(qr,null),So.createElement(Jl,null),So.createElement(Is.Z,{onOk:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:ii({},Jo)})}}),So.createElement(vs.Z,{onOk:()=>{}}),So.createElement(Ko,{cb:()=>sa([])}),So.createElement(lu,null),So.createElement(tt.Z,null),So.createElement(Pe.default,{title:So.createElement("span",null,So.createElement(Gr.Z,{style:{color:"#faad14",fontSize:"18px"}})," \u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"),open:Gt.length>0,footer:!1,onCancel:()=>{ur([])}},So.createElement("div",{style:{height:300,overflow:"auto"}},So.createElement("div",null,"\u6709",Gt==null?void 0:Gt.length,"\u5F20\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Gt==null?void 0:Gt.map(Ht=>So.createElement("div",{style:{marginTop:25}},So.createElement("div",null,"\u8BD5\u5377\uFF1A",Ht==null?void 0:Ht.origin_exercise_nam),So.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",So.createElement("a",{href:`/paperlibrary/see/${Ht==null?void 0:Ht.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Ht==null?void 0:Ht.examination_bank_name))))),So.createElement("div",{style:{textAlign:"end"}},So.createElement(Oe.ZP,{style:{height:30},onClick:()=>Rs(void 0,null,function*(){const Ht=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...tn],update:1}});(Ht==null?void 0:Ht.status)===0&&(Fe.ZP.info(ga.formatMessage({id:"classrooms.overrideSuccess",defaultMessage:"\u8986\u76D6\u6210\u529F"})),ur([]))})},"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"),So.createElement(Oe.ZP,{type:"primary",onClick:()=>Rs(void 0,null,function*(){const Ht=yield(0,x.ZP)(`/api/courses/${ht.id}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:[...tn]}});(Ht==null?void 0:Ht.status)===0&&(Fe.ZP.info(ga.formatMessage({id:"classrooms.formSuccess",defaultMessage:"\u5F62\u6210\u6210\u529F"})),ur([]))}),style:{marginLeft:10,height:30}},"\u5F62\u6210\u65B0\u8BD5\u5377"))),So.createElement(Pe.default,{title:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E",open:Bl,centered:!0,onOk:()=>Rs(void 0,null,function*(){let Ht=yield(0,x.ZP)(`/api/courses/${ht.coursesId}/update_show_unstart_exercise`,{method:"put",body:{show_unstart_exercise:Hr,forbid_end_exercise:Zr}});(Ht==null?void 0:Ht.status)===0&&(Nl(!1),vt({type:"classroomList/setActionTabs",payload:{key:""}}),vt({type:"classroomList/getClassroomTopBanner",payload:{id:ht.coursesId}}),Fe.ZP.info(ga.formatMessage({id:"classrooms.operationSuccess",defaultMessage:"\u64CD\u4F5C\u6210\u529F"})))}),onCancel:()=>{Nl(!1),vt({type:"classroomList/setActionTabs",payload:{key:""}})}},So.createElement(Ze.default,{checked:Hr,onChange:Ht=>{Xl(Ht.target.checked)}},"\u5141\u8BB8\u5B66\u751F\u67E5\u770B\u5DF2\u53D1\u5E03\u4F46\u672A\u5F00\u59CB\u7684\u8003\u8BD5",So.createElement("span",{style:{color:"#666666"}},"\uFF08\u8003\u8BD5\u5F00\u59CB\u4E4B\u540E\u5B66\u751F\u624D\u80FD\u4F5C\u7B54\uFF09")),So.createElement(Ze.default,{className:"mt20",checked:Zr,onChange:Ht=>{Ot(Ht.target.checked)}},"\u7981\u6B62\u5B66\u751F\u67E5\u770B\u5DF2\u622A\u6B62\u7684\u8003\u8BD5")),So.createElement(ls.Z,null),So.createElement(So.Fragment,null,So.createElement(lr.T$,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:hs(ii({},We==null?void 0:We.actionTabs),{open:""})})},open:((_o=We==null?void 0:We.actionTabs)==null?void 0:_o.open)==="\u624B\u673A\u53F7\u7ED1\u5B9A"}),So.createElement(lr.$i,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:hs(ii({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})},open:((rr=We==null?void 0:We.actionTabs)==null?void 0:rr.open)==="\u8BD5\u5377\u5C01\u5B58",Data:hs(ii({},We==null?void 0:We.actionTabs),{type:"exercise"})}),So.createElement(lr.K1,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:hs(ii({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})},open:((cr=We==null?void 0:We.actionTabs)==null?void 0:cr.open)==="\u89E3\u5C01",Data:hs(ii({},We==null?void 0:We.actionTabs),{type:"exercise"})}),So.createElement(lr.O7,{onCancel:()=>{vt({type:"classroomList/setActionTabs",payload:hs(ii({},We==null?void 0:We.actionTabs),{open:""})})},onFinish:()=>{vt({type:"classroomList/getClassroomExercisesList",payload:ii(ii({},ht),Jo)})},open:((pr=We==null?void 0:We.actionTabs)==null?void 0:pr.open)==="\u63D0\u793A",Data:hs(ii({},We==null?void 0:We.actionTabs),{type:"exercise"})})))};var Ac=(0,Se.connect)(({user:te,classroomList:ye,loading:ge,globalSetting:We})=>({user:te,classroomList:ye,globalSetting:We,loading:ge.effects}))(vc);const Pc=({globalSetting:te})=>{var ye;const ge=(0,Se.useIntl)();switch(Number((ye=te==null?void 0:te.setting)==null?void 0:ye.theme)){case b.Fy.THEMEONE:return re.createElement(Ri,null);case b.Fy.THEMETHREE:return re.createElement(da,null);case b.Fy.DEFAULT:default:return re.createElement(Ac,null)}};var kl=(0,Se.connect)(({globalSetting:te})=>({globalSetting:te}))(Pc)},88181:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Oe}});var b=z(67294),re=z(69677),Se=z(84567),Pe=z(71230),Ie={leftdiv:"leftdiv___AgbDd",listClass:"listClass___FyD9K",spantitle:"spantitle___U79dv",rightdiv:"rightdiv___F1hgj"},Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ue=z(26194),Te=(Ze,Be,ce)=>new Promise((oe,a)=>{var E=ee=>{try{y(ce.next(ee))}catch(ne){a(ne)}},x=ee=>{try{y(ce.throw(ee))}catch(ne){a(ne)}},y=ee=>ee.done?oe(ee.value):Promise.resolve(ee.value).then(E,x);y((ce=ce.apply(Ze,Be)).next())}),Oe=({data:Ze,value:Be=[],handleChangePage:ce,setSelectedRowKeys:oe,selectedRowKeys:a,onChange:E=()=>{}})=>{const[x,y]=(0,b.useState)([]),[ee,ne]=(0,b.useState)([]),[ae,ie]=(0,b.useState)([]);let[le,me]=(0,b.useState)(1),[fe,pe]=(0,b.useState)();return(0,b.useEffect)(()=>{y(Ze),ne([]),ie([])},[Ze]),(0,b.useEffect)(()=>{oe&&(ne(a),ie(a))},[a]),b.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},b.createElement("div",{className:Ie.leftdiv},b.createElement(re.default.Search,{size:"middle",onChange:he=>Te(void 0,null,function*(){y(Ze.filter(de=>{var se;return(se=de==null?void 0:de.name)==null?void 0:se.includes(he.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),x.length===0&&b.createElement(ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),b.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},b.createElement(Se.default.Group,{value:ee.map(he=>`${he.course_group_id}`),onChange:he=>{oe(x.filter(de=>he.includes(`${de.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},x.map((he,de)=>b.createElement(Pe.Z,{key:he.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},b.createElement(Se.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:he.is_published,value:`${he.course_group_id}`},b.createElement("div",{className:Ie.listClass},b.createElement("span",{className:Ie.spantitle,style:{width:he.is_published?"108px":"170px"}},he.name),he.is_published&&b.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),b.createElement("div",{className:Ie.rightdiv},b.createElement(re.default.Search,{onChange:he=>{ie(ee.filter(de=>de.name.includes(he.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ae.length===0&&b.createElement(ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ae.length>0&&b.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},b.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ae.map((he,de)=>b.createElement(Pe.Z,{justify:"space-between",style:{marginTop:"10px"},key:he.course_group_id},b.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},he.name),b.createElement("img",{src:Fe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{oe(ee.filter(se=>`${se.course_group_name}`!=`${he.course_group_name}`))}})))))))}},91745:function(ut,Ue,z){"use strict";var b=z(67294),re=z(59810),Se=z(22150),Pe=z(14446),Ie=z(2453),Fe=z(9430),ue=z(35973),Te=z(11320),je=z(44719),Oe=z(33170),Ze=z(27484),Be=z.n(Ze),ce=z(28706),oe=z(67294),a=Object.defineProperty,E=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,ee=(me,fe,pe)=>fe in me?a(me,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):me[fe]=pe,ne=(me,fe)=>{for(var pe in fe||(fe={}))x.call(fe,pe)&&ee(me,pe,fe[pe]);if(E)for(var pe of E(fe))y.call(fe,pe)&&ee(me,pe,fe[pe]);return me},ae=(me,fe,pe)=>new Promise((he,de)=>{var se=De=>{try{be(pe.next(De))}catch(Ce){de(Ce)}},Me=De=>{try{be(pe.throw(De))}catch(Ce){de(Ce)}},be=De=>De.done?he(De.value):Promise.resolve(De.value).then(se,Me);be((pe=pe.apply(me,fe)).next())});const{Dragger:ie}=re.default,le=({classroomList:me,dispatch:fe,onOk:pe})=>{const he=(0,ue.useIntl)(),de=(0,ue.useParams)(),[se]=Se.default.useForm(),[Me,be]=(0,b.useState)(),[De,Ce]=(0,b.useState)(!1),Le={height:100,onRemove:()=>{be("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ge=>ae(void 0,null,function*(){return be(Ge),!1})};return(0,b.useEffect)(()=>{se.setFieldsValue({publish_time:Be()(Be()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Be()(Be()(new Date((0,ce.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),oe.createElement(Pe.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:me.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:he.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:De},onOk:()=>ae(void 0,null,function*(){se.submit()}),onCancel:()=>{se.resetFields(),fe({type:"classroomList/setActionTabs",payload:{}})}},oe.createElement(Se.default,{form:se,onFinish:Ge=>ae(void 0,null,function*(){var qe,Je,Re;if(!(Me!=null&&Me.size)){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ce(!0);let He=new FormData;He.append("type",me.actionTabs.type),He.append("file",Me);let it;window.location.href.indexOf("exercise")>-1?it=`/api/exercises/${me.actionTabs.id}/supplement_score.json`:it=`/api/homework_commons/${me.actionTabs.id}/supplement_score.json`;let $e=yield(0,Oe.ZP)(it,{method:"post",body:He},!0);Ce(!1),($e==null?void 0:$e.status)===0&&(pe(),se.resetFields(),fe({type:"classroomList/setActionTabs",payload:{}}),((Je=(qe=$e==null?void 0:$e.data)==null?void 0:qe.fail)==null?void 0:Je.length)>0&&Pe.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:oe.createElement(Fe.default,{pagination:!1,dataSource:(Re=$e==null?void 0:$e.data)==null?void 0:Re.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ce.FH)("",Te.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${me.actionTabs.type}`)}}))})},oe.createElement(Se.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},me.actionTabs.name),oe.createElement(Se.default.Item,{style:{marginBottom:0},label:oe.createElement("div",null,oe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),oe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},oe.createElement("div",null,oe.createElement("a",{download:"\u6A21\u7248.xlsx",className:je.Z.downloadbutton,href:Te.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${me.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),oe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),oe.createElement(Se.default.Item,{style:{marginBottom:0}},oe.createElement(ie,ne({},Le),oe.createElement("a",{className:je.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),oe.createElement("br",null),oe.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Ue.Z=(0,ue.connect)(({classroomList:me})=>({classroomList:me}))(le)},48839:function(ut,Ue,z){"use strict";var b=z(67294),re=z(59810),Se=z(22150),Pe=z(14446),Ie=z(2453),Fe=z(9430),ue=z(69677),Te=z(71230),je=z(15746),Oe=z(31795),Ze=z(34336),Be=z(35973),ce=z(35567),oe=z(11320),a=z(44719),E=z(33170),x=z(17998),y=z(27484),ee=z.n(y),ne=z(28706),ae=z(67294),ie=Object.defineProperty,le=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(be,De,Ce)=>De in be?ie(be,De,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[De]=Ce,he=(be,De)=>{for(var Ce in De||(De={}))me.call(De,Ce)&&pe(be,Ce,De[Ce]);if(le)for(var Ce of le(De))fe.call(De,Ce)&&pe(be,Ce,De[Ce]);return be},de=(be,De,Ce)=>new Promise((Le,Ge)=>{var qe=He=>{try{Re(Ce.next(He))}catch(it){Ge(it)}},Je=He=>{try{Re(Ce.throw(He))}catch(it){Ge(it)}},Re=He=>He.done?Le(He.value):Promise.resolve(He.value).then(qe,Je);Re((Ce=Ce.apply(be,De)).next())});const{Dragger:se}=re.default,Me=({classroomList:be,dispatch:De,onOk:Ce})=>{const Le=(0,Be.useIntl)(),Ge=(0,Be.useParams)(),[qe]=Se.default.useForm(),[Je,Re]=(0,b.useState)(),[He,it]=(0,b.useState)(!1),$e={height:100,onRemove:()=>{Re("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Ne=>de(void 0,null,function*(){return Re(Ne),!1})};return(0,b.useEffect)(()=>{qe.setFieldsValue({publish_time:ee()(ee()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:ee()(ee()(new Date((0,ne.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[be.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),ae.createElement(Pe.default,{centered:!0,title:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",open:be.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:Le.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:He},onOk:()=>de(void 0,null,function*(){qe.submit()}),onCancel:()=>{qe.resetFields(),De({type:"classroomList/setActionTabs",payload:{}})}},ae.createElement(Se.default,{form:qe,colon:!1,onFinish:Ne=>de(void 0,null,function*(){var Ye,Xe,st;if(!(Je!=null&&Je.size)){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}it(!0);let ct=new FormData;ct.append("name",Ne.name),ct.append("type",be.actionTabs.type),ct.append("category_id",(Ge==null?void 0:Ge.categoryId)||null),be.actionTabs.type==="exercise"?(ct.append("time",Ne.time||""),ct.append("total_score",Ne.total_score)):ct.append("description",Ne.description||""),ct.append("publish_time",ee()(Ne.publish_time).format("YYYY-MM-DD HH:mm")),ct.append("end_time",ee()(Ne.end_time).format("YYYY-MM-DD HH:mm")),ct.append("file",Je);let Ct=yield(0,E.ZP)(`/api/courses/${Ge.coursesId}/export_external_score_homework.json`,{method:"post",body:ct},!0);it(!1),(Ct==null?void 0:Ct.status)===0&&(qe.resetFields(),De({type:"classroomList/setActionTabs",payload:{}}),Ce(),((Xe=(Ye=Ct==null?void 0:Ct.data)==null?void 0:Ye.fail)==null?void 0:Xe.length)>0&&Pe.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:ae.createElement(Fe.default,{pagination:!1,dataSource:(st=Ct==null?void 0:Ct.data)==null?void 0:st.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ne.FH)("",oe.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${be.actionTabs.type}`)}}))})},ae.createElement(Se.default.Item,{label:be.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377\u540D\u79F0",labelCol:{span:3},name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${be.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`}]},ae.createElement(ue.default,{showCount:!0,placeholder:`\u8BF7\u8F93\u5165${be.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`,maxLength:60})),be.actionTabs.type!=="exercise"&&ae.createElement(Se.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},ae.createElement(ce.Z,{watch:!0})),be.actionTabs.type==="exercise"&&ae.createElement(Te.Z,{style:{marginLeft:6}},ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u8BD5\u5377\u603B\u5206",name:"total_score",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u603B\u5206"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"\u8BD5\u5377\u603B\u5206\u5FC5\u987B\u4E3A\u6B63\u6570"}]},ae.createElement(ue.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:"\u5206"}))),ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u7B54\u9898\u65F6\u957F",labelCol:{span:6},name:"time"},ae.createElement(Oe.Z,{style:{width:"100%"},addonAfter:"\u5206\u949F",placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),ae.createElement(Te.Z,{style:{marginLeft:6,marginBottom:12}},ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},ae.createElement(Ze.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:Ne=>(0,x.Q8)(Ne),disabledTime:Ne=>(0,x.d0)(Ne),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},ae.createElement(Ze.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Ne=>(0,x.Q8)(Ne,"",qe.getFieldValue("publish_time")),disabledTime:Ne=>(0,x.d0)(Ne,qe.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),ae.createElement(Se.default.Item,{style:{marginBottom:0},label:ae.createElement("div",null,ae.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),ae.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},ae.createElement("div",null,ae.createElement("a",{download:"\u6A21\u7248.xlsx",className:a.Z.downloadbutton,href:oe.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${be.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),ae.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),ae.createElement(Se.default.Item,{style:{marginBottom:0}},ae.createElement(se,he({},$e),ae.createElement("a",{className:a.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),ae.createElement("br",null),ae.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Ue.Z=(0,Be.connect)(({classroomList:be})=>({classroomList:be}))(Me)},13916:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Ze}});var b=z(67294),re=z(68508),Se=z(69677),Pe=z(84567),Ie=z(71577),Fe=z(85418),ue={bottomControlContainer:"bottomControlContainer___Zu9jI",buttonWrap:"buttonWrap___aWo9e",moveCategory:"moveCategory____Cpq2"},Te=z(52262),je=z(42922),Ze=({buttonDataSource:Be,onButtonClick:ce,useBatchStatus:oe,allSelect:a,setAllSelect:E,selectArrs:x,onMenuClick:y,setSeleArr:ee,catalogue:ne,addCatalogue:ae})=>{const[ie,le]=(0,b.useState)(!1),[me,fe]=(0,b.useState)("");console.log("---",ne);const pe=b.createElement("div",{className:ue.moveCategory,onMouseLeave:he=>le(!1)},b.createElement(re.default,{onClick:y,style:{maxHeight:300,width:240,overflow:"auto"}},b.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},b.createElement(Se.default,{onChange:he=>{fe(he.target.value)}})),ne==null?void 0:ne.map(function(he,de){var se;if(!(me!==""&&he.category_name.indexOf(me)<0))return b.createElement(b.Fragment,null,b.createElement(re.default.Item,{className:"multi-llipsis1e",key:he.category_id,title:he.category_name},he.category_name),(se=he==null?void 0:he.third_category)==null?void 0:se.map(Me=>b.createElement(re.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Me.category_id,title:Me.category_name},Me.category_name)))}),ae&&b.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:ae},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return b.createElement("div",{className:ue.bottomControlContainer},b.createElement("div",null,b.createElement("div",null,b.createElement(Pe.default,{checked:a,onChange:E},"\u5168\u9009\u672C\u9875\uFF08",x.length,"\uFF09")),(0,Te.GJ)()&&Be.map(he=>b.createElement("div",{key:he.name},b.createElement(Ie.ZP,{type:"primary",icon:he.icon,className:ue.buttonWrap,onClick:()=>ce(he)},he.name))),(0,Te.GJ)()&&(ae||ne)&&b.createElement("div",null,b.createElement(Fe.Z,{open:ie,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>pe,getPopupContainer:he=>he.parentNode},b.createElement("span",{className:"ant-dropdown-link",onMouseEnter:he=>le(!0)},b.createElement(Ie.ZP,{type:"primary",className:ue.buttonWrap,icon:b.createElement("i",{className:"iconfont icon-yidongmulu"})},b.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",b.createElement(je.Z,null))))))),b.createElement("div",null,b.createElement(Ie.ZP,{type:"primary",ghost:!0,onClick:()=>{oe(!1),ee([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},24966:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return y}});var b=z(67294),re=z(68508),Se=z(84567),Pe=z(71577),Ie=z(85418),Fe=z(83062),ue=z(11713),Te=z(69677),je={searchSortControllerContainer:"searchSortControllerContainer___hHmtL",btn:"btn___IGcjw",btnSort:"btnSort___TjGZj",tips:"tips____YGut"},Oe=z(52262),Ze=z(53978),Be=z(42922),ce=z(246),oe=z.n(ce),a=z(35973),E=(ee,ne,ae)=>new Promise((ie,le)=>{var me=he=>{try{pe(ae.next(he))}catch(de){le(de)}},fe=he=>{try{pe(ae.throw(he))}catch(de){le(de)}},pe=he=>he.done?ie(he.value):Promise.resolve(he.value).then(me,fe);pe((ae=ae.apply(ee,ne)).next())}),y=({isAdmin:ee,dataSource:ne,batchStatus:ae,SortMenuName:ie,setSortMenuName:le,detailCourseGroupsList:me,onSearch:fe,onBoard:pe,onSort:he,isboard:de,dispatch:se,onBatch:Me,SortMenus:be,isShowMode:De=!1,onModeChange:Ce})=>{const[Le,Ge]=(0,b.useState)(!1),[qe,Je]=(0,b.useState)([]),[Re,He]=(0,b.useState)(!0);let[it,$e]=(0,b.useState)([]);const[Ne,Ye]=(0,b.useState)(1),[Xe,st]=(0,b.useState)(!1),ct=(0,a.useParams)(),Ct=In=>{const gn=(0,a.useIntl)();le(In.name),he(In)};(0,b.useEffect)(()=>{de&&et()},[de]);const et=()=>E(void 0,null,function*(){var In;if(Re&&!Xe){st(!0),Ye(Ne+1);const gn=yield se({type:"classroomList/getCourseGroupsList",payload:{page:Ne,id:ct.coursesId,limit:20,nonenavigate:!0}});let Lt=[...(gn==null?void 0:gn.course_groups)||[]];((In=gn==null?void 0:gn.course_groups)==null?void 0:In.length)<20&&(He(!1),Lt.push({id:0,name:"\u672A\u5206\u73ED"})),st(!1),$e([...it,...Lt])}}),Qt=b.createElement("section",{className:je.dropmenu},b.createElement("div",{style:{maxHeight:200,overflow:"auto"}},b.createElement(oe(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:In=>{et()},hasMore:Re,useWindow:!1},b.createElement(re.default,{style:{width:240,zIndex:10}},(me==null?void 0:me.group_count)>0&&(it==null?void 0:it.filter(In=>In.edit_auth||In.name==="\u672A\u5206\u73ED").map(function(In,gn){return b.createElement(re.default.Item,{key:In.id},b.createElement(Se.default,{checked:qe.includes(In.id),value:In.id,onChange:Lt=>{let Ve=qe.indexOf(In.id);qe.indexOf(In.id)>-1?Je(qe.filter(nt=>nt!==In.id)):Je(qe.concat(In.id))}},In.name))}))))),b.createElement("aside",{style:{background:"#fff"}},b.createElement("div",null,b.createElement(Pe.ZP,{type:"link",onClick:()=>{pe(qe)}},intl.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"})),b.createElement(Pe.ZP,{type:"link",onClick:()=>{Je([])}},"\u91CD\u7F6E")))),un=ie==="\u9ED8\u8BA4\u6392\u5E8F";return b.createElement("div",{className:je.searchSortControllerContainer},!!(be!=null&&be.length)&&b.createElement("div",null,b.createElement(Ie.Z,{dropdownRender:()=>b.createElement(re.default,{selectedKeys:[ie]},be.map(In=>b.createElement(re.default.Item,{key:In.name,onClick:()=>Ct(In)},In.name)))},b.createElement("div",null,b.createElement("span",{className:`${je.btn} ${un?je.btnSort:""}`},b.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),ie)))),un&&b.createElement(Fe.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},b.createElement("span",{className:je.tips},b.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),De&&b.createElement(ue.default,{defaultValue:"",onChange:Ce,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),b.createElement(Te.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",onSearch:fe,style:{width:220,marginLeft:De?"":"auto"}}),(0,Oe.eB)()&&de&&b.createElement(Ie.Z,{dropdownRender:()=>Qt,open:Le,onOpenChange:In=>{Ge(In)}},b.createElement("a",null,"\u5206\u73ED",Le?b.createElement(Ze.Z,{style:{marginLeft:6}}):b.createElement(Be.Z,{style:{marginLeft:6}}))))}},24039:function(ut,Ue,z){"use strict";var b=z(67294),re=z(85418),Se=z(2453),Pe=z(83062),Ie=z(35973),Fe=z(52262),ue=z(80150),Te=z(52810);const je=({isLoading:Oe,addText:Ze,tabDataSource:Be,isAdmin:ce,dispatch:oe,classroomList:a,type:E,isExercise:x,defaultSelectedKeys:y,onTabMenuClick:ee,getDropdownMenu:ne,showControlButton:ae,buttonText:ie,buttonIcon:le="icon-tianjiadaohang",extraNode:me,user:fe,onButtonClick:pe,isModelUser:he})=>{var de,se,Me,be,De;const Ce=(0,Ie.useParams)();return b.createElement("div",{className:"flex item-center gap-20px",style:{background:"linear-gradient( 180deg, #E0F1FF 0%, #EFF7FF 100%)",border:"1px solid #FFFFFF",borderRadius:"8px 8px 0 0"}},b.createElement("div",{className:"flex gap-4px mr-auto"},Be==null?void 0:Be.map((Le,Ge)=>b.createElement("div",{key:Ge,className:`text-16px flex item-center justify-center current ${y==(typeof Le.index=="number"?Le.index:Le.id)?"bg-white font-semibold":"c-grey-333"}`,style:{width:120,height:40,border:"1px solid #FFFFFF",borderRadius:"8px 8px 0 0",color:y==(typeof Le.index=="number"?Le.index:Le.id)?"#1890FF":""},onClick:()=>Oe?{}:ee(Le)},Le==null?void 0:Le.name,Le.total!==void 0&&ce&&b.createElement("span",{className:"ml-4px"},Le.total||0)))),ce&&b.createElement("div",{className:"flex item-center gap-20px mr-20px"},x&&b.createElement("span",{className:"iconfont icon-shezhi8 flex item-center current",onClick:()=>{oe({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),x&&b.createElement(re.Z,{arrow:!0,menu:{items:[{key:"1",label:"\u5B66\u751F\u6210\u7EE9"},{key:"3",label:"\u5386\u53F2\u5BFC\u51FA"}],onClick:({key:Le})=>{var Ge;if((0,Fe.Rm)()&&!((Ge=a.AssistantObject.exercise)!=null&&Ge.can_download)){Se.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}Le=="1"&&oe({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:E,exportType:"exercise",category_id:Ce.categoryId}}),Le=="3"&&Ie.history.push(`/classrooms/${Ce==null?void 0:Ce.coursesId}/exportlist/exercise_score,export_exercise_users`)}}},b.createElement("span",{className:"iconfont icon-xiazai6 current c-grey-666"})),!!me&&b.createElement("div",null,me),ae&&(ie=="\u6DFB\u52A0\u76F4\u64AD"?b.createElement(re.Z,{menu:{items:(se=(de=[{label:b.createElement("div",{onClick:()=>{pe("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},{label:b.createElement("div",{onClick:()=>{pe("\u5934\u6B4C")}},"\u76F4\u64AD"),key:"2",show:he}])==null?void 0:de.filter(Le=>Le==null?void 0:Le.show))==null?void 0:se.map(Le=>({label:Le==null?void 0:Le.label,key:Le==null?void 0:Le.key}))}},b.createElement(ue.op,{theme:Te.Fy.THEMEONE,icon:b.createElement("span",{className:`iconfont ${le}`})},ie)):b.createElement(ue.op,{theme:Te.Fy.THEMEONE,onClick:pe,icon:b.createElement("span",{className:`iconfont ${le}`})},ie)),!!ne&&b.createElement(re.Z,{disabled:((Me=fe==null?void 0:fe.userInfo)==null?void 0:Me.user_status)===2,dropdownRender:ne},b.createElement(Pe.Z,{title:((be=fe==null?void 0:fe.userInfo)==null?void 0:be.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},b.createElement(ue.op,{theme:Te.Fy.THEMEONE,onClick:pe,disabled:((De=fe==null?void 0:fe.userInfo)==null?void 0:De.user_status)===2,icon:b.createElement("span",{className:"iconfont icon-tianjiadaohang"})},Ze||"\u521B\u5EFA\u8BD5\u5377")))))};Ue.Z=je},63536:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Oe}});var b=z(67294),re=z(69677),Se=z(84567),Pe=z(71230),Ie={leftdiv:"leftdiv___DGMku",listClass:"listClass___RzeHz",spantitle:"spantitle___Aarv3",rightdiv:"rightdiv___I2lKV"},Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ue=z(26194),Te=(Ze,Be,ce)=>new Promise((oe,a)=>{var E=ee=>{try{y(ce.next(ee))}catch(ne){a(ne)}},x=ee=>{try{y(ce.throw(ee))}catch(ne){a(ne)}},y=ee=>ee.done?oe(ee.value):Promise.resolve(ee.value).then(E,x);y((ce=ce.apply(Ze,Be)).next())}),Oe=({data:Ze,value:Be=[],handleChangePage:ce,setSelectedRowKeys:oe,selectedRowKeys:a,onChange:E=()=>{}})=>{const[x,y]=(0,b.useState)([]),[ee,ne]=(0,b.useState)([]),[ae,ie]=(0,b.useState)([]);let[le,me]=(0,b.useState)(1),[fe,pe]=(0,b.useState)();return(0,b.useEffect)(()=>{y(Ze),ne([]),ie([])},[Ze]),(0,b.useEffect)(()=>{oe&&(ne(a),ie(a))},[a]),b.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},b.createElement("div",{className:Ie.leftdiv},b.createElement(re.default.Search,{size:"middle",onChange:he=>Te(void 0,null,function*(){y(Ze.filter(de=>{var se;return(se=de==null?void 0:de.name)==null?void 0:se.includes(he.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),x.length===0&&b.createElement(ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),b.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},b.createElement(Se.default.Group,{value:ee.map(he=>`${he.course_group_id}`),onChange:he=>{oe(x.filter(de=>he.includes(`${de.course_group_id}`)))},style:{marginTop:"10px",flexDirection:"column"}},x.map((he,de)=>b.createElement(Pe.Z,{key:he.course_group_id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},b.createElement(Se.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:he.is_published,value:`${he.course_group_id}`},b.createElement("div",{className:Ie.listClass},b.createElement("span",{className:Ie.spantitle,style:{width:he.is_published?"108px":"170px"}},he.name),he.is_published&&b.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),b.createElement("div",{className:Ie.rightdiv},b.createElement(re.default.Search,{onChange:he=>{ie(ee.filter(de=>de.name.includes(he.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ae.length===0&&b.createElement(ue.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ae.length>0&&b.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},b.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ae.map((he,de)=>b.createElement(Pe.Z,{justify:"space-between",style:{marginTop:"10px"},key:he.course_group_id},b.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},he.name),b.createElement("img",{src:Fe,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{oe(ee.filter(se=>`${se.course_group_name}`!=`${he.course_group_name}`))}})))))))}},60920:function(ut,Ue,z){"use strict";var b=z(67294),re=z(59810),Se=z(22150),Pe=z(14446),Ie=z(2453),Fe=z(9430),ue=z(35973),Te=z(11320),je=z(2051),Oe=z(33170),Ze=z(27484),Be=z.n(Ze),ce=z(28706),oe=z(67294),a=Object.defineProperty,E=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,ee=(me,fe,pe)=>fe in me?a(me,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):me[fe]=pe,ne=(me,fe)=>{for(var pe in fe||(fe={}))x.call(fe,pe)&&ee(me,pe,fe[pe]);if(E)for(var pe of E(fe))y.call(fe,pe)&&ee(me,pe,fe[pe]);return me},ae=(me,fe,pe)=>new Promise((he,de)=>{var se=De=>{try{be(pe.next(De))}catch(Ce){de(Ce)}},Me=De=>{try{be(pe.throw(De))}catch(Ce){de(Ce)}},be=De=>De.done?he(De.value):Promise.resolve(De.value).then(se,Me);be((pe=pe.apply(me,fe)).next())});const{Dragger:ie}=re.default,le=({classroomList:me,dispatch:fe,onOk:pe})=>{const he=(0,ue.useIntl)(),de=(0,ue.useParams)(),[se]=Se.default.useForm(),[Me,be]=(0,b.useState)(),[De,Ce]=(0,b.useState)(!1),Le={height:100,onRemove:()=>{be("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ge=>ae(void 0,null,function*(){return be(Ge),!1})};return(0,b.useEffect)(()=>{se.setFieldsValue({publish_time:Be()(Be()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Be()(Be()(new Date((0,ce.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),oe.createElement(Pe.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:me.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:he.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:De},onOk:()=>ae(void 0,null,function*(){se.submit()}),onCancel:()=>{se.resetFields(),fe({type:"classroomList/setActionTabs",payload:{}})}},oe.createElement(Se.default,{form:se,onFinish:Ge=>ae(void 0,null,function*(){var qe,Je,Re;if(!(Me!=null&&Me.size)){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Ce(!0);let He=new FormData;He.append("type",me.actionTabs.type),He.append("file",Me);let it;window.location.href.indexOf("exercise")>-1?it=`/api/exercises/${me.actionTabs.id}/supplement_score.json`:it=`/api/homework_commons/${me.actionTabs.id}/supplement_score.json`;let $e=yield(0,Oe.ZP)(it,{method:"post",body:He},!0);Ce(!1),($e==null?void 0:$e.status)===0&&(pe(),se.resetFields(),fe({type:"classroomList/setActionTabs",payload:{}}),((Je=(qe=$e==null?void 0:$e.data)==null?void 0:qe.fail)==null?void 0:Je.length)>0&&Pe.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:oe.createElement(Fe.default,{pagination:!1,dataSource:(Re=$e==null?void 0:$e.data)==null?void 0:Re.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ce.FH)("",Te.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${me.actionTabs.type}`)}}))})},oe.createElement(Se.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},me.actionTabs.name),oe.createElement(Se.default.Item,{style:{marginBottom:0},label:oe.createElement("div",null,oe.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),oe.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},oe.createElement("div",null,oe.createElement("a",{download:"\u6A21\u7248.xlsx",className:je.Z.downloadbutton,href:Te.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${me.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),oe.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),oe.createElement(Se.default.Item,{style:{marginBottom:0}},oe.createElement(ie,ne({},Le),oe.createElement("a",{className:je.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),oe.createElement("br",null),oe.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Ue.Z=(0,ue.connect)(({classroomList:me})=>({classroomList:me}))(le)},3564:function(ut,Ue,z){"use strict";var b=z(67294),re=z(59810),Se=z(22150),Pe=z(14446),Ie=z(2453),Fe=z(9430),ue=z(69677),Te=z(71230),je=z(15746),Oe=z(31795),Ze=z(34336),Be=z(35973),ce=z(35567),oe=z(11320),a=z(2051),E=z(33170),x=z(17998),y=z(27484),ee=z.n(y),ne=z(28706),ae=z(67294),ie=Object.defineProperty,le=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(be,De,Ce)=>De in be?ie(be,De,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[De]=Ce,he=(be,De)=>{for(var Ce in De||(De={}))me.call(De,Ce)&&pe(be,Ce,De[Ce]);if(le)for(var Ce of le(De))fe.call(De,Ce)&&pe(be,Ce,De[Ce]);return be},de=(be,De,Ce)=>new Promise((Le,Ge)=>{var qe=He=>{try{Re(Ce.next(He))}catch(it){Ge(it)}},Je=He=>{try{Re(Ce.throw(He))}catch(it){Ge(it)}},Re=He=>He.done?Le(He.value):Promise.resolve(He.value).then(qe,Je);Re((Ce=Ce.apply(be,De)).next())});const{Dragger:se}=re.default,Me=({classroomList:be,dispatch:De,onOk:Ce})=>{const Le=(0,Be.useIntl)(),Ge=(0,Be.useParams)(),[qe]=Se.default.useForm(),[Je,Re]=(0,b.useState)(),[He,it]=(0,b.useState)(!1),$e={height:100,onRemove:()=>{Re("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:Ne=>de(void 0,null,function*(){return Re(Ne),!1})};return(0,b.useEffect)(()=>{qe.setFieldsValue({publish_time:ee()(ee()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:ee()(ee()(new Date((0,ne.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[be.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9"]),ae.createElement(Pe.default,{centered:!0,title:"\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",open:be.actionTabs.key==="\u5BFC\u5165\u5916\u90E8\u6210\u7EE9",okText:Le.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"}),width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:He},onOk:()=>de(void 0,null,function*(){qe.submit()}),onCancel:()=>{qe.resetFields(),De({type:"classroomList/setActionTabs",payload:{}})}},ae.createElement(Se.default,{form:qe,colon:!1,onFinish:Ne=>de(void 0,null,function*(){var Ye,Xe,st;if(!(Je!=null&&Je.size)){Ie.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}it(!0);let ct=new FormData;ct.append("name",Ne.name),ct.append("type",be.actionTabs.type),ct.append("category_id",(Ge==null?void 0:Ge.categoryId)||null),be.actionTabs.type==="exercise"?(ct.append("time",Ne.time||""),ct.append("total_score",Ne.total_score)):ct.append("description",Ne.description||""),ct.append("publish_time",ee()(Ne.publish_time).format("YYYY-MM-DD HH:mm")),ct.append("end_time",ee()(Ne.end_time).format("YYYY-MM-DD HH:mm")),ct.append("file",Je);let Ct=yield(0,E.ZP)(`/api/courses/${Ge.coursesId}/export_external_score_homework.json`,{method:"post",body:ct},!0);it(!1),(Ct==null?void 0:Ct.status)===0&&(qe.resetFields(),De({type:"classroomList/setActionTabs",payload:{}}),Ce(),((Xe=(Ye=Ct==null?void 0:Ct.data)==null?void 0:Ye.fail)==null?void 0:Xe.length)>0&&Pe.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:ae.createElement(Fe.default,{pagination:!1,dataSource:(st=Ct==null?void 0:Ct.data)==null?void 0:st.fail,scroll:{y:400},columns:[{title:"\u59D3\u540D",align:"left",dataIndex:"name"},{title:"\u5B66\u53F7/\u624B\u673A\u53F7/\u90AE\u7BB1",align:"left",dataIndex:"student_id"},{title:"\u5BFC\u5165\u5931\u8D25\u539F\u56E0",align:"left",dataIndex:"message"}]}),okText:"\u4E0B\u8F7D\u5BFC\u5165\u5931\u8D25\u6587\u4EF6",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ne.FH)("",oe.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${be.actionTabs.type}`)}}))})},ae.createElement(Se.default.Item,{label:be.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377\u540D\u79F0",labelCol:{span:3},name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${be.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`}]},ae.createElement(ue.default,{showCount:!0,placeholder:`\u8BF7\u8F93\u5165${be.actionTabs.type!=="exercise"?"\u4F5C\u4E1A":"\u8BD5\u5377"}\u540D\u79F0`,maxLength:60})),be.actionTabs.type!=="exercise"&&ae.createElement(Se.default.Item,{label:"\u4F5C\u4E1A\u63CF\u8FF0",labelCol:{span:3},name:"description"},ae.createElement(ce.Z,{watch:!0})),be.actionTabs.type==="exercise"&&ae.createElement(Te.Z,{style:{marginLeft:6}},ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u8BD5\u5377\u603B\u5206",name:"total_score",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u603B\u5206"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"\u8BD5\u5377\u603B\u5206\u5FC5\u987B\u4E3A\u6B63\u6570"}]},ae.createElement(ue.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u603B\u5206",style:{width:256},addonAfter:"\u5206"}))),ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u7B54\u9898\u65F6\u957F",labelCol:{span:6},name:"time"},ae.createElement(Oe.Z,{style:{width:"100%"},addonAfter:"\u5206\u949F",placeholder:"\u8BF7\u8F93\u5165\u7B54\u9898\u65F6\u957F"})))),ae.createElement(Te.Z,{style:{marginLeft:6,marginBottom:12}},ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},ae.createElement(Ze.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:256},disabledDate:Ne=>(0,x.Q8)(Ne),disabledTime:Ne=>(0,x.d0)(Ne),allowClear:!1,format:"YYYY-MM-DD HH:mm"}))),ae.createElement(je.Z,{span:12},ae.createElement(Se.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},ae.createElement(Ze.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:Ne=>(0,x.Q8)(Ne,"",qe.getFieldValue("publish_time")),disabledTime:Ne=>(0,x.d0)(Ne,qe.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})))),ae.createElement(Se.default.Item,{style:{marginBottom:0},label:ae.createElement("div",null,ae.createElement("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"}},"*"),ae.createElement("span",null,"\u5BFC\u5165\u6587\u4EF6")),labelCol:{span:3},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"}]},ae.createElement("div",null,ae.createElement("a",{download:"\u6A21\u7248.xlsx",className:a.Z.downloadbutton,href:oe.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${be.actionTabs.type}`},"\u4E0B\u8F7D\u6A21\u7248\u8868\u683C"),ae.createElement("span",{style:{marginLeft:10,color:"#999999"}},"\uFF08\u6839\u636E\u63D0\u793A\u4FE1\u606F\u5B8C\u5584\u8868\u683C\u5185\u5BB9\uFF09")),ae.createElement(Se.default.Item,{style:{marginBottom:0}},ae.createElement(se,he({},$e),ae.createElement("a",{className:a.Z.downloadbutton,style:{width:96}},"\u9009\u62E9\u6587\u4EF6"),ae.createElement("br",null),ae.createElement("span",{style:{color:"#999999"}},"\u4E0B\u8F7D\u6A21\u677F\u5E76\u5B8C\u5584\u4FE1\u606F\u540E\uFF0C\u53EF\u5C06\u6587\u4EF6\u62D6\u66F3\u81F3\u6B64\u5904\u4E0A\u4F20\u3002\u652F\u6301\u683C\u5F0F\uFF1A.xls\u3001.xlsx"))))))};Ue.Z=(0,Be.connect)(({classroomList:be})=>({classroomList:be}))(Me)},64849:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Ze}});var b=z(67294),re=z(68508),Se=z(69677),Pe=z(84567),Ie=z(71577),Fe=z(85418),ue={bottomControlContainer:"bottomControlContainer___EZTEn",buttonWrap:"buttonWrap___pSVAA",moveCategory:"moveCategory___yJ9_E"},Te=z(52262),je=z(42922),Ze=({buttonDataSource:Be,onButtonClick:ce,useBatchStatus:oe,allSelect:a,setAllSelect:E,selectArrs:x,onMenuClick:y,setSeleArr:ee,catalogue:ne,addCatalogue:ae})=>{const[ie,le]=(0,b.useState)(!1),[me,fe]=(0,b.useState)("");console.log("---",ne);const pe=b.createElement("div",{className:ue.moveCategory,onMouseLeave:he=>le(!1)},b.createElement(re.default,{onClick:y,style:{maxHeight:300,width:240,overflow:"auto"}},b.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child"},b.createElement(Se.default,{onChange:he=>{fe(he.target.value)}})),ne==null?void 0:ne.map(function(he,de){var se;if(!(me!==""&&he.category_name.indexOf(me)<0))return b.createElement(b.Fragment,null,b.createElement(re.default.Item,{className:"multi-llipsis1e",key:he.category_id,title:he.category_name},he.category_name),(se=he==null?void 0:he.third_category)==null?void 0:se.map(Me=>b.createElement(re.default.Item,{style:{marginLeft:20},className:"multi-llipsis1e",key:Me.category_id,title:Me.category_name},Me.category_name)))}),ae&&b.createElement("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:ae},"\u65B0\u5EFA\u5B50\u76EE\u5F55...")));return b.createElement("div",{className:ue.bottomControlContainer},b.createElement("div",null,b.createElement("div",null,b.createElement(Pe.default,{checked:a,onChange:E},"\u5168\u9009\u672C\u9875\uFF08",x.length,"\uFF09")),(0,Te.GJ)()&&Be.map(he=>b.createElement("div",{key:he.name},b.createElement(Ie.ZP,{type:"primary",icon:he.icon,className:ue.buttonWrap,onClick:()=>ce(he)},he.name))),(0,Te.GJ)()&&(ae||ne)&&b.createElement("div",null,b.createElement(Fe.Z,{open:ie,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:()=>pe,getPopupContainer:he=>he.parentNode},b.createElement("span",{className:"ant-dropdown-link",onMouseEnter:he=>le(!0)},b.createElement(Ie.ZP,{type:"primary",className:ue.buttonWrap,icon:b.createElement("i",{className:"iconfont icon-yidongmulu"})},b.createElement("span",null,"\u79FB\u52A8\u5230\u76EE\u5F55 ",b.createElement(je.Z,null))))))),b.createElement("div",null,b.createElement(Ie.ZP,{type:"primary",ghost:!0,onClick:()=>{oe(!1),ee([])}},"\u53D6\u6D88\u64CD\u4F5C")))}},25219:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return ee}});var b=z(67294),re=z(68508),Se=z(84567),Pe=z(71577),Ie=z(85418),Fe=z(83062),ue=z(11713),Te={searchSortControllerContainer:"searchSortControllerContainer___Q_iVd",btn:"btn___w0a07",btnSort:"btnSort___PZj0I",tips:"tips___WmKpN",myInput:"myInput___I2NgX"},je=z(52262),Oe=z(53978),Ze=z(42922),Be=z(246),ce=z.n(Be),oe=z(35973),a=z(80150),E=z(1762),x=(ne,ae,ie)=>new Promise((le,me)=>{var fe=de=>{try{he(ie.next(de))}catch(se){me(se)}},pe=de=>{try{he(ie.throw(de))}catch(se){me(se)}},he=de=>de.done?le(de.value):Promise.resolve(de.value).then(fe,pe);he((ie=ie.apply(ne,ae)).next())}),ee=({isAdmin:ne,dataSource:ae,batchStatus:ie,SortMenuName:le,setSortMenuName:me,detailCourseGroupsList:fe,onSearch:pe,onBoard:he,onSort:de,isboard:se,dispatch:Me,onBatch:be,SortMenus:De,isShowMode:Ce=!1,onModeChange:Le})=>{const Ge=(0,oe.useIntl)(),[qe,Je]=(0,b.useState)(!1),[Re,He]=(0,b.useState)([]),[it,$e]=(0,b.useState)(!0);let[Ne,Ye]=(0,b.useState)([]);const[Xe,st]=(0,b.useState)(1),[ct,Ct]=(0,b.useState)(!1),et=(0,oe.useParams)(),Qt=Lt=>{me(Lt.name),de(Lt)};(0,b.useEffect)(()=>{se&&un()},[se]);const un=()=>x(void 0,null,function*(){var Lt;if(it&&!ct){Ct(!0),st(Xe+1);const Ve=yield Me({type:"classroomList/getCourseGroupsList",payload:{page:Xe,id:et.coursesId,limit:20,nonenavigate:!0}});let nt=[...(Ve==null?void 0:Ve.course_groups)||[]];((Lt=Ve==null?void 0:Ve.course_groups)==null?void 0:Lt.length)<20&&($e(!1),nt.push({id:0,name:"\u672A\u5206\u73ED"})),Ct(!1),Ye([...Ne,...nt])}}),In=b.createElement("section",{className:Te.dropmenu},b.createElement("div",{style:{maxHeight:200,overflow:"auto"}},b.createElement(ce(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:Lt=>{un()},hasMore:it,useWindow:!1},b.createElement(re.default,{style:{width:240,zIndex:10}},(fe==null?void 0:fe.group_count)>0&&(Ne==null?void 0:Ne.filter(Lt=>Lt.edit_auth||Lt.name==="\u672A\u5206\u73ED").map(function(Lt,Ve){return b.createElement(re.default.Item,{key:Lt.id},b.createElement(Se.default,{checked:Re.includes(Lt.id),value:Lt.id,onChange:nt=>{let at=Re.indexOf(Lt.id);Re.indexOf(Lt.id)>-1?He(Re.filter(rt=>rt!==Lt.id)):He(Re.concat(Lt.id))}},Lt.name))}))))),b.createElement("aside",{style:{background:"#fff"}},b.createElement("div",null,b.createElement(Pe.ZP,{type:"link",onClick:()=>{he(Re)}},Ge.formatMessage({id:"classrooms.confirm",defaultMessage:"\u786E\u5B9A"})),b.createElement(Pe.ZP,{type:"link",onClick:()=>{He([])}},"\u91CD\u7F6E")))),gn=le==="\u9ED8\u8BA4\u6392\u5E8F";return b.createElement("div",{className:Te.searchSortControllerContainer},!!(De!=null&&De.length)&&b.createElement("div",null,b.createElement(Ie.Z,{dropdownRender:()=>b.createElement(re.default,{selectedKeys:[le]},De.map(Lt=>b.createElement(re.default.Item,{key:Lt.name,onClick:()=>Qt(Lt)},Lt.name)))},b.createElement("div",null,b.createElement("span",{className:`${Te.btn} ${gn?Te.btnSort:""}`},b.createElement("i",{className:"iconfont icon-paixu font14 mr5"}),le)))),gn&&b.createElement(Fe.Z,{title:"\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217"},b.createElement("span",{className:Te.tips},b.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}))),Ce&&b.createElement(ue.default,{size:"large",className:E.Z.threeSelectSty,defaultValue:"",onChange:Le,style:{width:160,marginLeft:"auto",marginRight:"20px"},options:[{value:"",label:"\u5168\u90E8\u8003\u8BD5\u6A21\u5F0F"},{value:!0,label:"\u6B63\u5F0F\u8003\u8BD5"},{value:!1,label:"\u6A21\u62DF\u8003\u8BD5"}]}),b.createElement(a.t7,{className:Te.myInput,style:{width:220,marginLeft:Ce?"":"auto"},onChange:pe,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}),(0,je.eB)()&&se&&b.createElement(Ie.Z,{dropdownRender:()=>In,open:qe,onOpenChange:Lt=>{Je(Lt)}},b.createElement("a",null,"\u5206\u73ED",qe?b.createElement(Oe.Z,{style:{marginLeft:6}}):b.createElement(Ze.Z,{style:{marginLeft:6}}))))}},73371:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Be}});var b=z(67294),re=z(71230),Se=z(15746),Pe=z(68508),Ie=z(85418),Fe=z(2453),ue=z(83062),Te={tabMenuContainer:"tabMenuContainer___zroB4",control:"control___m6VFR",iconH:"iconH___d6gB0",selectBtn:"selectBtn___dIpII",selectBtn1:"selectBtn1___sFkNF"},je=z(35973),Oe=z(52262),Be=({isLoading:ce,addText:oe,tabDataSource:a,isAdmin:E,dispatch:x,classroomList:y,type:ee,isExercise:ne,defaultSelectedKeys:ae,onTabMenuClick:ie,getDropdownMenu:le,showControlButton:me,buttonText:fe,buttonIcon:pe="icon-tianjiadaohang",extraNode:he,user:de,onButtonClick:se,isModelUser:Me})=>{var be,De,Ce,Le,Ge;const qe=(0,je.useParams)();return b.createElement("div",{className:Te.tabMenuContainer},b.createElement(re.Z,null,b.createElement(Se.Z,{flex:"1"},b.createElement(Pe.default,{onSelect:Je=>ce?{}:ie(Je),mode:"horizontal",selectedKeys:ae},a.map(Je=>b.createElement(Pe.default.Item,{key:typeof Je.index=="number"?Je.index:Je.id,style:{color:"#fff"}},b.createElement("span",null,Je.name),Je.total!==void 0&&E&&b.createElement("span",{className:"ml20"},Je.total||0))))),E&&ne&&b.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer",color:"#00DDC7"},onClick:()=>{x({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),E&&b.createElement(Se.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},ne&&b.createElement(Ie.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>b.createElement(Pe.default,null,b.createElement(Pe.default.Item,{key:1,onClick:()=>{var Je;if((0,Oe.Rm)()&&!((Je=y.AssistantObject.exercise)!=null&&Je.can_download)){Fe.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}x({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:ee,exportType:"exercise",category_id:qe.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),b.createElement(Pe.default.Item,{key:3,onClick:()=>{var Je;if((0,Oe.Rm)()&&!((Je=y.AssistantObject.exercise)!=null&&Je.can_download)){Fe.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}je.history.push(`/classrooms/${qe==null?void 0:qe.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},b.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},b.createElement("span",{style:{color:"#00DDC7",cursor:"pointer"}},b.createElement("i",{className:"iconfont icon-xiazai6"})))),b.createElement("div",{className:Te.control},b.createElement("div",{className:Te.extra},he),me&&(fe=="\u6DFB\u52A0\u76F4\u64AD"?b.createElement(Ie.Z,{menu:{items:(De=(be=[{label:b.createElement("div",{onClick:()=>{se("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Me&&{label:b.createElement("div",{onClick:()=>{se("\u5934\u6B4C")}},"\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:be.filter(Je=>Je==null?void 0:Je.show))==null?void 0:De.map(Je=>({label:Je==null?void 0:Je.label,key:Je==null?void 0:Je.key}))}},b.createElement("span",{className:Te.selectBtn},b.createElement("span",null,b.createElement("i",{className:`iconfont ${pe}`})),b.createElement("span",null,fe))):b.createElement("span",{onClick:se,style:{cursor:"pointer"},className:Te.selectBtn},b.createElement("span",null,b.createElement("i",{className:`iconfont ${pe}`})),b.createElement("span",null,fe))),!!le&&b.createElement(Ie.Z,{disabled:((Ce=de==null?void 0:de.userInfo)==null?void 0:Ce.user_status)===2,className:"ml10",dropdownRender:le},b.createElement("span",{className:((Le=de==null?void 0:de.userInfo)==null?void 0:Le.user_status)===2?Te.selectBtn1:Te.selectBtn},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-tianjiadaohang"})),b.createElement(ue.Z,{title:((Ge=de==null?void 0:de.userInfo)==null?void 0:Ge.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},b.createElement("span",null,oe||"\u521B\u5EFA\u8BD5\u5377"))))))))}},68656:function(ut,Ue,z){"use strict";z.d(Ue,{$i:function(){return he},K1:function(){return se},O7:function(){return Me},T$:function(){return pe}});var b=z(80150),re=z(56443),Se=z(15835),Pe=z(65900),Ie=z(9343),Fe=z(14446),ue=z(22150),Te=z(2453),je=z(69677),Oe=z(71230),Ze=z(15746),Be=z(67294),ce=z(35973),oe=z(81354),a=z.n(oe),E=z(28706),x=z(67294),y=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ie=(be,De,Ce)=>De in be?y(be,De,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[De]=Ce,le=(be,De)=>{for(var Ce in De||(De={}))ne.call(De,Ce)&&ie(be,Ce,De[Ce]);if(ee)for(var Ce of ee(De))ae.call(De,Ce)&&ie(be,Ce,De[Ce]);return be},me=(be,De,Ce)=>new Promise((Le,Ge)=>{var qe=He=>{try{Re(Ce.next(He))}catch(it){Ge(it)}},Je=He=>{try{Re(Ce.throw(He))}catch(it){Ge(it)}},Re=He=>He.done?Le(He.value):Promise.resolve(He.value).then(qe,Je);Re((Ce=Ce.apply(be,De)).next())});const fe=be=>{const De=a().enc.Utf8.parse("c03f36595bd5610b");return a().AES.encrypt(be||"",De,{iv:De,mode:a().mode.CBC}).toString()},pe=({onCancel:be,open:De})=>{const Ce=(0,ce.useIntl)();return x.createElement(Fe.default,{title:Ce.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),width:619,centered:!0,open:De,destroyOnClose:!0,okText:Ce.formatMessage({id:"paperlibrary.goNow",defaultMessage:"\u7ACB\u5373\u524D\u5F80"}),cancelText:Ce.formatMessage({id:"classrooms.later",defaultMessage:"\u7A0D\u540E\u518D\u8BF4"}),onCancel:be,onOk:()=>{ce.history.push("/account/secure")}},x.createElement("span",null,"\u52A0\u5BC6\u5C01\u5B58\u4E4B\u540E\uFF0C\u5FD8\u8BB0\u5BC6\u7801\u65F6\u9700\u8981\u4F7F\u7528\u624B\u673A\u53F7\u8FDB\u884C\u5BC6\u7801\u91CD\u7F6E\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801"))},he=({onCancel:be,onFinish:De,open:Ce,Data:Le})=>{const Ge=(0,ce.useIntl)(),[qe]=ue.default.useForm(),[,Je,Re]=(0,Ie.U)((Le==null?void 0:Le.type)=="exercise"?Se.yE:re.yE,{id:Le==null?void 0:Le.id});return(0,Be.useEffect)(()=>{Ce||qe.resetFields()},[Ce]),x.createElement(Fe.default,{title:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58",width:619,centered:!0,open:Ce,destroyOnClose:!0,confirmLoading:Je,onCancel:be,onOk:()=>{qe==null||qe.submit()}},x.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},x.createElement("i",{className:"iconfont icon-tishi7"}),x.createElement("span",null,Ge.formatMessage({id:"paperlibrary.encryptInfo",defaultMessage:"\u8BD5\u5377\u52A0\u5BC6\u5C01\u5B58\u540E\uFF0C\u6240\u6709\u7528\u6237\u9700\u8981\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u624D\u80FD\u8FDB\u884C\u67E5\u770B\u3001\u7F16\u8F91\u8BD5\u5377\u7B49\u64CD\u4F5C\uFF01"}))),x.createElement(ue.default,{form:qe,className:"mt-20px",size:"large",colon:!1,onFinish:He=>me(void 0,null,function*(){const it=yield Re({id:Le==null?void 0:Le.id,is_encrypt:!0,pwd:fe(He.pwd),pwd_confirm:fe(He.pwd_confirm)});it.status===0?(Te.ZP.success("\u52A0\u5BC6\u6210\u529F"),De==null||De(it),be()):qe.setFields([{name:"pwd",errors:[it==null?void 0:it.message]}])})},x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paperlibrary.archivePassword",defaultMessage:"\u5C01\u5B58\u5BC6\u7801"}),name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},x.createElement(je.default.Password,{placeholder:Ge.formatMessage({id:"paperlibrary.setArchivePassword",defaultMessage:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})})),x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paperlibrary.confirmPassword",defaultMessage:"\u786E\u8BA4\u5BC6\u7801"}),name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:He})=>({validator(it,$e){return!$e||He("pwd")===$e?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},x.createElement(je.default.Password,{placeholder:Ge.formatMessage({id:"paperlibrary.reenterArchivePassword",defaultMessage:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})}))))},de=({onCancel:be,open:De,Data:Ce})=>{var Le;const Ge=(0,ce.useIntl)(),[qe]=ue.default.useForm(),[Je]=ue.default.useForm(),[Re,He]=(0,Be.useState)(!1),[it,$e]=(0,Be.useState)(0),[,,Ne]=(0,Ie.U)(Pe.o1,{type:(Ce==null?void 0:Ce.type)=="exercise"?12:11}),[,Ye,Xe]=(0,Ie.U)((Ce==null?void 0:Ce.type)=="exercise"?Se.dp:re.dp,{id:Ce==null?void 0:Ce.id}),[,st,ct]=(0,Ie.U)((Ce==null?void 0:Ce.type)=="exercise"?Se.Qc:re.Qc,{id:Ce==null?void 0:Ce.id});return(0,Be.useEffect)(()=>{var Ct;Ce!=null&&Ce.phone&&qe.setFieldsValue({login:(Ct=Ce==null?void 0:Ce.phone)==null?void 0:Ct.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")})},[Ce==null?void 0:Ce.phone]),(0,Be.useEffect)(()=>{it>0&&setTimeout(()=>{$e(it-1)},1e3)},[it]),(0,Be.useEffect)(()=>{De||(qe.resetFields(),Je.resetFields())},[De]),x.createElement(x.Fragment,null,x.createElement(Fe.default,{title:"\u624B\u673A\u53F7\u7801\u6821\u9A8C",width:619,centered:!0,open:De,destroyOnClose:!0,confirmLoading:Ye,onCancel:be,onOk:()=>{qe==null||qe.submit()}},x.createElement("div",{style:{color:"#191919"}},"\u8BF7\u5148\u8FDB\u884C\u624B\u673A\u53F7\u7801\u6821\u9A8C"),x.createElement(ue.default,{className:"mt20",initialValues:{phone:(Le=Ce==null?void 0:Ce.phone)==null?void 0:Le.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")},form:qe,size:"large",colon:!1,onFinish:Ct=>me(void 0,null,function*(){console.log("allValue",Ct);const et=yield Xe({code:Ct==null?void 0:Ct.code,login:Ce==null?void 0:Ce.phone,id:Ce==null?void 0:Ce.id});et.status===0?(Te.ZP.success("\u6821\u9A8C\u6210\u529F"),be==null||be(),He(!0)):qe.setFields([{name:"code",errors:[et==null?void 0:et.message]}])})},x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paths.phoneNumber",defaultMessage:"\u624B\u673A\u53F7"}),name:"login",required:!0},x.createElement(je.default,{placeholder:Ge.formatMessage({id:"user.enterPhoneNumber",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7"}),disabled:!0})),x.createElement(Oe.Z,{wrap:!1,gutter:20},x.createElement(Ze.Z,{flex:1},x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"loginRegister.verificationCode",defaultMessage:"\u9A8C\u8BC1\u7801"}),name:"code",rules:[{required:!0,message:Ge.formatMessage({id:"common.enterVerificationCode",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"})}]},x.createElement(je.default,{placeholder:Ge.formatMessage({id:"common.enterVerificationCode",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"})}))),x.createElement(Ze.Z,null,x.createElement(b.op,{openLoading:!0,size:"large",disabled:it>0,style:{borderRadius:"4px"},onClick:()=>me(void 0,null,function*(){const Ct=yield Ne({type:(Ce==null?void 0:Ce.type)=="exercise"?12:11,login:Ce==null?void 0:Ce.phone,smscode:(0,E.M)(Ce==null?void 0:Ce.phone)});(Ct==null?void 0:Ct.status)===1&&(Te.ZP.success("\u53D1\u9001\u6210\u529F"),$e(60))})},it===0?Ge.formatMessage({id:"user.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"}):`(${it})\u79D2\u53EF\u91CD\u65B0\u83B7\u53D6`))))),x.createElement(Fe.default,{title:"\u91CD\u7F6E\u5C01\u5B58\u5BC6\u7801",width:619,centered:!0,open:Re,destroyOnClose:!0,confirmLoading:st,onCancel:()=>{He(!1)},onOk:()=>{Je==null||Je.submit()}},x.createElement(ue.default,{className:"mt20",form:Je,size:"large",colon:!1,onFinish:Ct=>me(void 0,null,function*(){console.log("allValue",Ct),(yield ct(le({id:Ce==null?void 0:Ce.id},Ct))).status===0&&(Te.ZP.success("\u91CD\u7F6E\u6210\u529F"),He(!1))})},x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paperlibrary.archivePassword",defaultMessage:"\u5C01\u5B58\u5BC6\u7801"}),name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},x.createElement(je.default.Password,{placeholder:Ge.formatMessage({id:"paperlibrary.setArchivePassword",defaultMessage:"\u8BF7\u8BBE\u7F6E\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})})),x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paperlibrary.confirmPassword",defaultMessage:"\u786E\u8BA4\u5BC6\u7801"}),name:"pwd_confirm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"},({getFieldValue:Ct})=>({validator(et,Qt){return!Qt||Ct("pwd")===Qt?Promise.resolve():Promise.reject(new Error("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4"))}})]},x.createElement(je.default.Password,{placeholder:Ge.formatMessage({id:"paperlibrary.reenterArchivePassword",defaultMessage:"\u8BF7\u518D\u6B21\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\uFF0C\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u6700\u5927\u9650\u52366-16\u4E2A\u5B57\u7B26"})})))))},se=({onCancel:be,onFinish:De,open:Ce,Data:Le})=>{const Ge=(0,ce.useIntl)(),[qe]=ue.default.useForm(),[Je,Re]=(0,Be.useState)(!1),[,He,it]=(0,Ie.U)((Le==null?void 0:Le.type)=="exercise"?Se.yE:re.yE,{id:Le==null?void 0:Le.id});return(0,Be.useEffect)(()=>{Ce||qe.resetFields()},[Ce]),x.createElement(x.Fragment,null,x.createElement(Fe.default,{title:"\u8BD5\u5377\u89E3\u5C01",width:619,centered:!0,open:Ce,destroyOnClose:!0,confirmLoading:He,onCancel:be,onOk:()=>{qe==null||qe.submit()}},x.createElement(Oe.Z,{wrap:!1,align:"top",gutter:16},x.createElement(Ze.Z,{flex:1},x.createElement(ue.default,{form:qe,size:"large",colon:!1,onFinish:$e=>me(void 0,null,function*(){const Ne=yield it({id:Le==null?void 0:Le.id,is_encrypt:!1,pwd:fe($e.pwd)});(Ne==null?void 0:Ne.status)===0?(Te.ZP.success("\u89E3\u5C01\u6210\u529F"),De==null||De(Ne),be==null||be()):qe.setFields([{name:"pwd",errors:[Ne==null?void 0:Ne.message]}])})},x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paperlibrary.archivePassword",defaultMessage:"\u5C01\u5B58\u5BC6\u7801"}),name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}]},x.createElement(je.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"})))),x.createElement(Ze.Z,null,x.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{Re(!0),be==null||be()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F")))),x.createElement(de,{onCancel:()=>{Re(!1)},open:Je,Data:le({},Le)}))},Me=({onCancel:be,onFinish:De,open:Ce,Data:Le})=>{const Ge=(0,ce.useIntl)(),[qe]=ue.default.useForm(),[Je,Re]=(0,Be.useState)(!1),[,He,it]=(0,Ie.U)((Le==null?void 0:Le.type)=="exercise"?Se.yE:re.yE,{id:Le==null?void 0:Le.id});return(0,Be.useEffect)(()=>{Ce||qe.resetFields()},[Ce]),x.createElement(x.Fragment,null,x.createElement(Fe.default,{title:Ge.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),width:619,centered:!0,open:Ce,destroyOnClose:!0,confirmLoading:He,onCancel:be,onOk:()=>{qe==null||qe.submit()}},x.createElement("div",{className:"pt16 pb16 pl12 pr12 rounded-4px flex item-center gap-8px",style:{background:"rgba(233, 127, 55, .06)",color:"#FA6400"}},x.createElement("i",{className:"iconfont icon-tishi7"}),x.createElement("span",null,"\u8BD5\u5377\u5DF2\u8FDB\u884C\u52A0\u5BC6\u5C01\u5B58\uFF0C\u5982\u9700\u8FDB\u884C\u64CD\u4F5C\uFF0C\u8BF7\u5148\u8F93\u5165\u5C01\u5B58\u5BC6\u7801\u8FDB\u884C\u89E3\u5C01\uFF01")),x.createElement(ue.default,{form:qe,className:"mt-20px",size:"large",colon:!1,onFinish:$e=>me(void 0,null,function*(){const Ne=yield it({id:Le==null?void 0:Le.id,is_encrypt:!1,pwd:fe($e.pwd)});(Ne==null?void 0:Ne.status)===0?(Te.ZP.success("\u89E3\u5C01\u6210\u529F"),De==null||De(Ne),be==null||be()):qe.setFields([{name:"pwd",errors:[Ne==null?void 0:Ne.message]}])})},x.createElement(Oe.Z,{wrap:!1,gutter:20},x.createElement(Ze.Z,{flex:1},x.createElement(ue.default.Item,{label:Ge.formatMessage({id:"paperlibrary.archivePassword",defaultMessage:"\u5C01\u5B58\u5BC6\u7801"}),name:"pwd",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"},{pattern:/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{6,16}$/,message:"\u5BC6\u7801\u5FC5\u987B\u4E3A\u5B57\u6BCD\u548C\u6570\u5B57\u7684\u7EC4\u5408\uFF0C\u4E14\u957F\u5EA6\u4E3A6-16\u4E2A\u5B57\u7B26"}]},x.createElement(je.default.Password,{placeholder:"\u8BF7\u8F93\u5165\u5C01\u5B58\u5BC6\u7801"}))),x.createElement(Ze.Z,null,x.createElement("a",{style:{lineHeight:"40px",whiteSpace:"nowrap"},onClick:()=>{Re(!0),be==null||be()}},"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"))))),x.createElement(de,{onCancel:()=>{Re(!1)},open:Je,Data:le({},Le)}))}},9343:function(ut,Ue,z){"use strict";z.d(Ue,{U:function(){return je}});var b=z(67294),re=Object.defineProperty,Se=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Fe=(Oe,Ze,Be)=>Ze in Oe?re(Oe,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Oe[Ze]=Be,ue=(Oe,Ze)=>{for(var Be in Ze||(Ze={}))Pe.call(Ze,Be)&&Fe(Oe,Be,Ze[Be]);if(Se)for(var Be of Se(Ze))Ie.call(Ze,Be)&&Fe(Oe,Be,Ze[Be]);return Oe},Te=(Oe,Ze,Be)=>new Promise((ce,oe)=>{var a=y=>{try{x(Be.next(y))}catch(ee){oe(ee)}},E=y=>{try{x(Be.throw(y))}catch(ee){oe(ee)}},x=y=>y.done?ce(y.value):Promise.resolve(y.value).then(a,E);x((Be=Be.apply(Oe,Ze)).next())});function je(Oe,Ze){const[Be,ce]=(0,b.useState)(Ze),[oe,a]=(0,b.useState)(!1),[E,x]=(0,b.useState)();return[Be,oe,(ee,ne=!1)=>Te(this,null,function*(){const ae=ne?Ze:ue(ue({},Be),ee);a(!0),ce(ae);const ie=yield Oe(ae);return a(!1),x(ie),ie}),E]}},78207:function(ut,Ue,z){"use strict";z.d(Ue,{rX:function(){return ae},pW:function(){return ie},gy:function(){return le},xY:function(){return ne},O5:function(){return ee},tJ:function(){return oe},o1:function(){return a},Rd:function(){return y}});var b=z(35973),re=z(14446),Se=z(96074),Pe=z(2453),Ie=z(52262),Fe=z(28706),ue=z(55304),Te=z(25510),je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAXNSR0IArs4c6QAAQABJREFUeAHsvQuQpclVmJn3We+qfkxPT89oRqN5SKPRC0mgAQRYCwgkh2ExAWvDrrVrwOBl14shYh/GRBB2EF4CdlnvbmAvsGxgWEd4l2WNsYEwMkIYCQnYkQYhZvQYzUgzPdM908/qet26z/2+k3/ee6u6qrtrpkciOiqr/vvnn3ny5MmTJ0+efPz510ajUSMdukMO3CIcqN8i5TgsxiEHggOHAn0oCLcUBw4F+paqzsPCHAr0oQzcUhw4FOhbqjoPC3Mo0IcycEtx4FCgb6nqPCzMoUAfysAtxYFDgb6lqvOwMIcCfSgDtxQHDgX6lqrOw8IcCvShDNxSHDgU6FuqOg8LcyjQhzJwS3HgUKBvqeo8LMyhQB/KwC3FgUOBvqWq87AwhwJ9KAO3FAcOBfqWqs7DwhwK9KEM3FIcOBToW6o6DwtzKNCHMnBL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qrcode.a8740efb.png",Ze=z(32637),Be=z(67294),ce=(me,fe,pe)=>new Promise((he,de)=>{var se=De=>{try{be(pe.next(De))}catch(Ce){de(Ce)}},Me=De=>{try{be(pe.throw(De))}catch(Ce){de(Ce)}},be=De=>De.done?he(De.value):Promise.resolve(De.value).then(se,Me);be((pe=pe.apply(me,fe)).next())});const oe=(me,fe=!1)=>!!(a(me)&&E(fe)),a=me=>(0,Ie.bg)()?!0:(me({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),E=(me=!1)=>{var fe;const{user:pe}=(0,b.getDvaApp)()._store.getState();return(fe=pe.userInfo)!=null&&fe.profile_completed?!0:(re.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Fe.xg)("/account/profile/edit"),x()}}),!1)},x=()=>{re.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},y=()=>{re.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Be.createElement("div",{style:{textAlign:"center"}},Be.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Be.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Ze}),Be.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ee=()=>{var me;const{user:fe}=(0,b.getDvaApp)()._store.getState();return(me=fe.userInfo)!=null&&me.professional_certification?!0:(re.default.confirm({title:"\u63D0\u793A",centered:!0,content:Be.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Fe.xg)("/account/certification")}}),!1)},ne=()=>(0,Ie.V9)()?!0:(re.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Be.createElement("div",{className:"tc",style:{marginLeft:-38}},Be.createElement("p",null,"\u626B\u7801\u52A0\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Be.createElement("img",{src:Oe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),ae=(me,fe)=>me?!0:(re.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Be.createElement("div",null,Be.createElement("p",null,fe||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Be.createElement("div",{style:{marginLeft:"110px"}},Be.createElement("img",{src:je,width:200}),Be.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Fe.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),ie=me=>{re.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Be.createElement("div",null,Be.createElement("div",null,Be.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Be.createElement(Se.Z,null),Be.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Be.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Be.createElement("a",null,me),"\u5929\u3002"),Be.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Be.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Be.createElement("div",{style:{textAlign:"center",marginTop:30}},Be.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Te,alt:"\u4E8C\u7EF4\u7801",width:160})))})},le=(me,fe,pe="")=>{const{shixunsDetail:{detail:he}}=(0,b.getDvaApp)()._store.getState();if((he==null?void 0:he.public)===2||(he==null?void 0:he.public)===1||(he==null?void 0:he.shixun_status)===3){let de="";return(he==null?void 0:he.public)===2&&(de=me.formatMessage({id:"personalHomepagePracticalProjects.public",defaultMessage:"\u5DF2\u516C\u5F00"})),(he==null?void 0:he.public)===1&&(de=me.formatMessage({id:"personalHomepagePracticalProjects.pendingReview",defaultMessage:"\u5F85\u5BA1\u6838"})),(he==null?void 0:he.shixun_status)===3&&(de=me.formatMessage({id:"personalHomepagePracticalProjects.closed",defaultMessage:"\u5DF2\u5173\u95ED"})),re.default.info({centered:!0,icon:Be.createElement(ue.Z,{style:{color:"#faad14"}}),width:750,title:me.formatMessage({id:"questionBankList.prompt",defaultMessage:"\u63D0\u793A"}),content:Be.createElement("div",{className:"tc",style:{marginLeft:-38}},Be.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Be.createElement("span",null,me.formatMessage({id:"shixuns.projectStatus",defaultMessage:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A"}),de,"\uFF0C",pe,"\u3002"),Be.createElement("p",null,me.formatMessage({id:"shixuns.contactAdminForSupport",defaultMessage:"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002"}))),Be.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Te,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:me.formatMessage({id:"shixuns.iUnderstand",defaultMessage:"\u6211\u77E5\u9053\u4E86"})}),!0}return(he==null?void 0:he.shixun_status)===2?(re.default.confirm({centered:!0,icon:Be.createElement(ue.Z,null),title:me.formatMessage({id:"questionBankList.prompt",defaultMessage:"\u63D0\u793A"}),content:Be.createElement("div",null,Be.createElement("span",null,me.formatMessage({id:"shixuns.projectPublished",defaultMessage:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03"}),"\uFF0C",pe,"\u3002"),Be.createElement("br",null),Be.createElement("span",null,me.formatMessage({id:"shixuns.revokeAndOperate",defaultMessage:"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002"}))),okText:me.formatMessage({id:"shixuns.revokePublication",defaultMessage:"\u64A4\u9500\u53D1\u5E03"}),cancelText:me.formatMessage({id:"shixuns.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:()=>{re.default.confirm({width:440,centered:!0,icon:Be.createElement(ue.Z,{style:{color:"#faad14"}}),title:me.formatMessage({id:"questionBankList.prompt",defaultMessage:"\u63D0\u793A"}),content:me.formatMessage({id:"shixuns.confirmRevokePublish",defaultMessage:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"}),okText:me.formatMessage({id:"shixuns.confirmRevoke",defaultMessage:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03"}),cancelText:me.formatMessage({id:"shixuns.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:()=>ce(void 0,null,function*(){(yield fe({type:"shixunsDetail/cancelRelease",payload:{id:he==null?void 0:he.identifier}})).status!==401&&(Pe.ZP.success(me.formatMessage({id:"shixuns.revokeSuccess",defaultMessage:"\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"})),fe({type:"shixunsDetail/getShixunsDetail",payload:{id:he==null?void 0:he.identifier}}),fe({type:"practiceSetting/getCommonData",payload:{id:he==null?void 0:he.identifier}}))})})}}),!0):!1}},38780:function(ut,Ue){"use strict";function z(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let re=1;re{const Ie=Se[Pe];Ie!==void 0&&(b[Pe]=Ie)})}return b}Ue.Z=z},81643:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return b}});const b=re=>re?typeof re=="function"?re():re:null},66367:function(ut,Ue,z){"use strict";z.d(Ue,{F:function(){return b},Z:function(){return re}});function b(Se){return Se!=null&&Se===Se.window}function re(Se,Pe){var Ie,Fe;if(typeof window=="undefined")return 0;const ue=Pe?"scrollTop":"scrollLeft";let Te=0;return b(Se)?Te=Se[Pe?"pageYOffset":"pageXOffset"]:Se instanceof Document?Te=Se.documentElement[ue]:(Se instanceof HTMLElement||Se)&&(Te=Se[ue]),Se&&!b(Se)&&typeof Te!="number"&&(Te=(Fe=((Ie=Se.ownerDocument)!==null&&Ie!==void 0?Ie:Se).documentElement)===null||Fe===void 0?void 0:Fe[ue]),Te}},57838:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return re}});var b=z(67294);function re(){const[,Se]=b.useReducer(Pe=>Pe+1,0);return Se}},58375:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Pe}});var b=z(96523);function re(Ie,Fe,ue,Te){const je=ue-Fe;return Ie/=Te/2,Ie<1?je/2*Ie*Ie*Ie+Fe:je/2*((Ie-=2)*Ie*Ie+2)+Fe}var Se=z(66367);function Pe(Ie){let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:Te,duration:je=450}=Fe,Oe=ue(),Ze=(0,Se.Z)(Oe,!0),Be=Date.now(),ce=()=>{const a=Date.now()-Be,E=re(a>je?je:a,Ze,Ie,je);(0,Se.F)(Oe)?Oe.scrollTo(window.pageXOffset,E):Oe instanceof Document||Oe.constructor.name==="HTMLDocument"?Oe.documentElement.scrollTop=E:Oe.scrollTop=E,a()=>{Ie=null,Pe.apply(void 0,(0,b.Z)(Te))},ue=function(){if(Ie==null){for(var Te=arguments.length,je=new Array(Te),Oe=0;Oe{re.Z.cancel(Ie),Ie=null},ue}Ue.Z=Se},30291:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return me}});var b=z(15671),re=z(43144),Se=z(60136),Pe=z(51630),Ie=z(67294),Fe=z(94184),ue=z.n(Fe),Te=z(48555),je=z(10366),Oe=z(48783),Ze=z(53124),Be=z(67968),ce=z(45503);const oe=fe=>{const{componentCls:pe}=fe;return{[pe]:{position:"fixed",zIndex:fe.zIndexPopup}}};var a=(0,Be.Z)("Affix",fe=>{const pe=(0,ce.TS)(fe,{zIndexPopup:fe.zIndexBase+10});return[oe(pe)]});function E(fe){return fe!==window?fe.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function x(fe,pe,he){if(he!==void 0&&pe.top>fe.top-he)return he+pe.top}function y(fe,pe,he){if(he!==void 0&&pe.bottom{const se=de.getTargetFunc(),Me=se==null?void 0:se(),{prevTarget:be}=de.state;be!==Me&&(ee.forEach(De=>{be==null||be.removeEventListener(De,de.lazyUpdatePosition),Me==null||Me.addEventListener(De,de.lazyUpdatePosition)}),de.updatePosition(),de.setState({prevTarget:Me}))},de.removeListeners=()=>{de.timer&&(clearTimeout(de.timer),de.timer=null);const{prevTarget:se}=de.state,Me=de.getTargetFunc(),be=Me==null?void 0:Me();ee.forEach(De=>{be==null||be.removeEventListener(De,de.lazyUpdatePosition),se==null||se.removeEventListener(De,de.lazyUpdatePosition)}),de.updatePosition.cancel(),de.lazyUpdatePosition.cancel()},de.getOffsetTop=()=>{const{offsetBottom:se,offsetTop:Me}=de.props;return se===void 0&&Me===void 0?0:Me},de.getOffsetBottom=()=>de.props.offsetBottom,de.measure=()=>{const{status:se,lastAffix:Me}=de.state,{onChange:be}=de.props,De=de.getTargetFunc();if(se!==ae.Prepare||!de.fixedNodeRef.current||!de.placeholderNodeRef.current||!De)return;const Ce=de.getOffsetTop(),Le=de.getOffsetBottom(),Ge=De();if(Ge){const qe={status:ae.None},Je=E(de.placeholderNodeRef.current);if(Je.top===0&&Je.left===0&&Je.width===0&&Je.height===0)return;const Re=E(Ge),He=x(Je,Re,Ce),it=y(Je,Re,Le);He!==void 0?(qe.affixStyle={position:"fixed",top:He,width:Je.width,height:Je.height},qe.placeholderStyle={width:Je.width,height:Je.height}):it!==void 0&&(qe.affixStyle={position:"fixed",bottom:it,width:Je.width,height:Je.height},qe.placeholderStyle={width:Je.width,height:Je.height}),qe.lastAffix=!!qe.affixStyle,be&&Me!==qe.lastAffix&&be(qe.lastAffix),de.setState(qe)}},de.prepareMeasure=()=>{de.setState({status:ae.Prepare,affixStyle:void 0,placeholderStyle:void 0})},de.updatePosition=(0,Oe.Z)(()=>{de.prepareMeasure()}),de.lazyUpdatePosition=(0,Oe.Z)(()=>{const se=de.getTargetFunc(),{affixStyle:Me}=de.state;if(se&&Me){const be=de.getOffsetTop(),De=de.getOffsetBottom(),Ce=se();if(Ce&&de.placeholderNodeRef.current){const Le=E(Ce),Ge=E(de.placeholderNodeRef.current),qe=x(Ge,Le,be),Je=y(Ge,Le,De);if(qe!==void 0&&Me.top===qe||Je!==void 0&&Me.bottom===Je)return}}de.prepareMeasure()}),de}return(0,re.Z)(he,[{key:"getTargetFunc",value:function(){const{getTargetContainer:se}=this.context,{target:Me}=this.props;return Me!==void 0?Me:se!=null?se:ne}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(se){this.addListeners(),(se.offsetTop!==this.props.offsetTop||se.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:se,placeholderStyle:Me}=this.state,{affixPrefixCls:be,rootClassName:De,children:Ce}=this.props,Le=ue()(se&&De,{[be]:!!se});let Ge=(0,je.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return Ie.createElement(Te.Z,{onResize:this.updatePosition},Ie.createElement("div",Object.assign({},Ge,{ref:this.placeholderNodeRef}),se&&Ie.createElement("div",{style:Me,"aria-hidden":"true"}),Ie.createElement("div",{className:Le,ref:this.fixedNodeRef,style:se},Ie.createElement(Te.Z,{onResize:this.updatePosition},Ce))))}}]),he}(Ie.Component);ie.contextType=Ze.E_;var me=(0,Ie.forwardRef)((fe,pe)=>{const{prefixCls:he,rootClassName:de}=fe,{getPrefixCls:se}=(0,Ie.useContext)(Ze.E_),Me=se("affix",he),[be,De]=a(Me),Ce=Object.assign(Object.assign({},fe),{affixPrefixCls:Me,rootClassName:ue()(de,De)});return be(Ie.createElement(ie,Object.assign({},Ce,{ref:pe})))})},84567:function(ut,Ue,z){"use strict";z.d(Ue,{default:function(){return me}});var b=z(94184),re=z.n(b),Se=z(95860),Pe=z(67294),Ie=z(53124),Fe=z(98866),ue=z(65223),je=Pe.createContext(null),Oe=z(63185),Ze=z(45353),Be=z(92429),ce=function(fe,pe){var he={};for(var de in fe)Object.prototype.hasOwnProperty.call(fe,de)&&pe.indexOf(de)<0&&(he[de]=fe[de]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,de=Object.getOwnPropertySymbols(fe);se{var he;const{prefixCls:de,className:se,rootClassName:Me,children:be,indeterminate:De=!1,style:Ce,onMouseEnter:Le,onMouseLeave:Ge,skipGroup:qe=!1,disabled:Je}=fe,Re=ce(fe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:He,direction:it,checkbox:$e}=Pe.useContext(Ie.E_),Ne=Pe.useContext(je),{isFormItemInput:Ye}=Pe.useContext(ue.aM),Xe=Pe.useContext(Fe.Z),st=(he=(Ne==null?void 0:Ne.disabled)||Je)!==null&&he!==void 0?he:Xe,ct=Pe.useRef(Re.value);Pe.useEffect(()=>{Ne==null||Ne.registerValue(Re.value)},[]),Pe.useEffect(()=>{if(!qe)return Re.value!==ct.current&&(Ne==null||Ne.cancelValue(ct.current),Ne==null||Ne.registerValue(Re.value),ct.current=Re.value),()=>Ne==null?void 0:Ne.cancelValue(Re.value)},[Re.value]);const Ct=He("checkbox",de),[et,Qt]=(0,Oe.ZP)(Ct),un=Object.assign({},Re);Ne&&!qe&&(un.onChange=function(){Re.onChange&&Re.onChange.apply(Re,arguments),Ne.toggleOption&&Ne.toggleOption({label:be,value:Re.value})},un.name=Ne.name,un.checked=Ne.value.includes(Re.value));const In=re()(`${Ct}-wrapper`,{[`${Ct}-rtl`]:it==="rtl",[`${Ct}-wrapper-checked`]:un.checked,[`${Ct}-wrapper-disabled`]:st,[`${Ct}-wrapper-in-form-item`]:Ye},$e==null?void 0:$e.className,se,Me,Qt),gn=re()({[`${Ct}-indeterminate`]:De},Be.A,Qt),Lt=De?"mixed":void 0;return et(Pe.createElement(Ze.Z,{component:"Checkbox",disabled:st},Pe.createElement("label",{className:In,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),Ce),onMouseEnter:Le,onMouseLeave:Ge},Pe.createElement(Se.Z,Object.assign({"aria-checked":Lt},un,{prefixCls:Ct,className:gn,disabled:st,ref:pe})),be!==void 0&&Pe.createElement("span",null,be))))};var E=Pe.forwardRef(oe),x=z(74902),y=z(10366),ee=function(fe,pe){var he={};for(var de in fe)Object.prototype.hasOwnProperty.call(fe,de)&&pe.indexOf(de)<0&&(he[de]=fe[de]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,de=Object.getOwnPropertySymbols(fe);se{const{defaultValue:he,children:de,options:se=[],prefixCls:Me,className:be,rootClassName:De,style:Ce,onChange:Le}=fe,Ge=ee(fe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:qe,direction:Je}=Pe.useContext(Ie.E_),[Re,He]=Pe.useState(Ge.value||he||[]),[it,$e]=Pe.useState([]);Pe.useEffect(()=>{"value"in Ge&&He(Ge.value||[])},[Ge.value]);const Ne=Pe.useMemo(()=>se.map(Ve=>typeof Ve=="string"||typeof Ve=="number"?{label:Ve,value:Ve}:Ve),[se]),Ye=Ve=>{$e(nt=>nt.filter(at=>at!==Ve))},Xe=Ve=>{$e(nt=>[].concat((0,x.Z)(nt),[Ve]))},st=Ve=>{const nt=Re.indexOf(Ve.value),at=(0,x.Z)(Re);nt===-1?at.push(Ve.value):at.splice(nt,1),"value"in Ge||He(at),Le==null||Le(at.filter(rt=>it.includes(rt)).sort((rt,jt)=>{const yt=Ne.findIndex(It=>It.value===rt),Bn=Ne.findIndex(It=>It.value===jt);return yt-Bn}))},ct=qe("checkbox",Me),Ct=`${ct}-group`,[et,Qt]=(0,Oe.ZP)(ct),un=(0,y.Z)(Ge,["value","disabled"]),In=se.length?Ne.map(Ve=>Pe.createElement(E,{prefixCls:ct,key:Ve.value.toString(),disabled:"disabled"in Ve?Ve.disabled:Ge.disabled,value:Ve.value,checked:Re.includes(Ve.value),onChange:Ve.onChange,className:`${Ct}-item`,style:Ve.style,title:Ve.title},Ve.label)):de,gn={toggleOption:st,value:Re,disabled:Ge.disabled,name:Ge.name,registerValue:Xe,cancelValue:Ye},Lt=re()(Ct,{[`${Ct}-rtl`]:Je==="rtl"},be,De,Qt);return et(Pe.createElement("div",Object.assign({className:Lt,style:Ce},un,{ref:pe}),Pe.createElement(je.Provider,{value:gn},In)))},ae=Pe.forwardRef(ne);var ie=Pe.memo(ae);const le=E;le.Group=ie,le.__ANT_CHECKBOX=!0;var me=le},63185:function(ut,Ue,z){"use strict";z.d(Ue,{C2:function(){return Ie}});var b=z(14747),re=z(45503),Se=z(67968);const Pe=Fe=>{const{checkboxCls:ue}=Fe,Te=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,b.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Te]:Object.assign(Object.assign({},(0,b.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Te}`]:{marginInlineStart:0},[`&${Te}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,b.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,b.oN)(Fe))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[` ${Te}:not(${Te}-disabled), ${ue}:not(${ue}-disabled) `]:{[`&:hover ${ue}-inner`]:{borderColor:Fe.colorPrimary}},[`${Te}:not(${Te}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[` ${Te}-checked:not(${Te}-disabled), ${ue}-checked:not(${ue}-disabled) `]:{[`&:hover ${ue}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Te}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function Ie(Fe,ue){const Te=(0,re.TS)(ue,{checkboxCls:`.${Fe}`,checkboxSize:ue.controlInteractiveSize});return[Pe(Te)]}Ue.ZP=(0,Se.Z)("Checkbox",(Fe,ue)=>{let{prefixCls:Te}=ue;return[Ie(Te,Fe)]})},34336:function(ut,Ue,z){"use strict";z.d(Ue,{default:function(){return ec}});var b=z(97909),re=z.n(b),Se=z(68291),Pe=z(33088),Ie=z.n(Pe),Fe=z(26850),ue=z.n(Fe),Te=z(23082),je=z.n(Te),Oe=z(99873),Ze=z.n(Oe),Be=z(86625),ce=z.n(Be),oe=z(40618),a=z.n(oe);re().extend(a()),re().extend(ce()),re().extend(Ie()),re().extend(ue()),re().extend(je()),re().extend(Ze()),re().extend(function(Ee,xe){var we=xe.prototype,ot=we.format;we.format=function(Tt){var Bt=(Tt||"").replace("Wo","wo");return ot.bind(this)(Bt)}});var E={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"},x=function(xe){var we=E[xe];return we||xe.split("_")[0]},y=function(){(0,Se.ET)(!1,"Not match any format. Please help to fire a issue about this.")},ee={getNow:function(){return re()()},getFixedDate:function(xe){return re()(xe,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(xe){return xe.endOf("month")},getWeekDay:function(xe){var we=xe.locale("en");return we.weekday()+we.localeData().firstDayOfWeek()},getYear:function(xe){return xe.year()},getMonth:function(xe){return xe.month()},getDate:function(xe){return xe.date()},getHour:function(xe){return xe.hour()},getMinute:function(xe){return xe.minute()},getSecond:function(xe){return xe.second()},addYear:function(xe,we){return xe.add(we,"year")},addMonth:function(xe,we){return xe.add(we,"month")},addDate:function(xe,we){return xe.add(we,"day")},setYear:function(xe,we){return xe.year(we)},setMonth:function(xe,we){return xe.month(we)},setDate:function(xe,we){return xe.date(we)},setHour:function(xe,we){return xe.hour(we)},setMinute:function(xe,we){return xe.minute(we)},setSecond:function(xe,we){return xe.second(we)},isAfter:function(xe,we){return xe.isAfter(we)},isValidate:function(xe){return xe.isValid()},locale:{getWeekFirstDay:function(xe){return re()().locale(x(xe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(xe,we){return we.locale(x(xe)).weekday(0)},getWeek:function(xe,we){return we.locale(x(xe)).week()},getShortWeekDays:function(xe){return re()().locale(x(xe)).localeData().weekdaysMin()},getShortMonths:function(xe){return re()().locale(x(xe)).localeData().monthsShort()},format:function(xe,we,ot){return we.locale(x(xe)).format(ot)},parse:function(xe,we,ot){for(var lt=x(xe),Tt=0;Tt1&&(Bt=xe.addDate(Bt,-7)),Bt}function jn(Ee,xe,we){var ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(xe){case"year":return we.addYear(Ee,ot*10);case"quarter":case"month":return we.addYear(Ee,ot);default:return we.addMonth(Ee,ot)}}function gt(Ee,xe){var we=xe.generateConfig,ot=xe.locale,lt=xe.format;return typeof lt=="function"?lt(Ee):we.locale.format(ot.locale,Ee,lt)}function wn(Ee,xe){var we=xe.generateConfig,ot=xe.locale,lt=xe.formatList;return!Ee||typeof lt[0]=="function"?null:we.locale.parse(ot.locale,Ee,lt)}function ft(Ee){var xe=Ee.cellDate,we=Ee.mode,ot=Ee.disabledDate,lt=Ee.generateConfig;if(!ot)return!1;var Tt=function(ua,ln,Ln){for(var ma=ln;ma<=Ln;){var ro=void 0;switch(ua){case"date":{if(ro=lt.setDate(xe,ma),!ot(ro))return!1;break}case"month":{if(ro=lt.setMonth(xe,ma),!ft({cellDate:ro,mode:"month",generateConfig:lt,disabledDate:ot}))return!1;break}case"year":{if(ro=lt.setYear(xe,ma),!ft({cellDate:ro,mode:"year",generateConfig:lt,disabledDate:ot}))return!1;break}}ma+=1}return!0};switch(we){case"date":case"week":return ot(xe);case"month":{var Bt=1,rn=lt.getDate(lt.getEndDate(xe));return Tt("date",Bt,rn)}case"quarter":{var sn=Math.floor(lt.getMonth(xe)/3)*3,Dn=sn+2;return Tt("month",sn,Dn)}case"year":return Tt("month",0,11);case"decade":{var Ca=lt.getYear(xe),Tn=Math.floor(Ca/gn)*gn,zn=Tn+gn-1;return Tt("year",Tn,zn)}}}function xt(Ee,xe){var we=xe.formatList,ot=xe.generateConfig,lt=xe.locale;return(0,un.Z)(function(){if(!Ee)return[[""],""];for(var Tt="",Bt=[],rn=0;rn1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Dn.current),ma){sn(Ln);return}Dn.current=requestAnimationFrame(function(){sn(Ln)})}var Tn=xt(rn,{formatList:we,generateConfig:ot,locale:lt}),zn=(0,Ct.Z)(Tn,2),aa=zn[1];function ua(Ln){Ca(Ln)}function ln(){var Ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ca(null,Ln)}return(0,le.useEffect)(function(){ln(!0)},[Ee]),(0,le.useEffect)(function(){return function(){return cancelAnimationFrame(Dn.current)}},[]),[aa,ua,ln]}var zt=z(92389),cn=z(96523),Yt=z(74902),Aa=z(48130),ca=new Map;function fa(Ee,xe){var we;function ot(){(0,Aa.Z)(Ee)?xe():we=(0,cn.Z)(function(){ot()})}return ot(),function(){cn.Z.cancel(we)}}function Ha(Ee,xe,we){if(ca.get(Ee)&&cancelAnimationFrame(ca.get(Ee)),we<=0){ca.set(Ee,requestAnimationFrame(function(){Ee.scrollTop=xe}));return}var ot=xe-Ee.scrollTop,lt=ot/we*10;ca.set(Ee,requestAnimationFrame(function(){Ee.scrollTop+=lt,Ee.scrollTop!==xe&&Ha(Ee,xe,we-10)}))}function wa(Ee,xe){var we=xe.onLeftRight,ot=xe.onCtrlLeftRight,lt=xe.onUpDown,Tt=xe.onPageUpDown,Bt=xe.onEnter,rn=Ee.which,sn=Ee.ctrlKey,Dn=Ee.metaKey;switch(rn){case zt.Z.LEFT:if(sn||Dn){if(ot)return ot(-1),!0}else if(we)return we(-1),!0;break;case zt.Z.RIGHT:if(sn||Dn){if(ot)return ot(1),!0}else if(we)return we(1),!0;break;case zt.Z.UP:if(lt)return lt(-1),!0;break;case zt.Z.DOWN:if(lt)return lt(1),!0;break;case zt.Z.PAGE_UP:if(Tt)return Tt(-1),!0;break;case zt.Z.PAGE_DOWN:if(Tt)return Tt(1),!0;break;case zt.Z.ENTER:if(Bt)return Bt(),!0;break}return!1}function xn(Ee,xe,we,ot){var lt=Ee;if(!lt)switch(xe){case"time":lt=ot?"hh:mm:ss a":"HH:mm:ss";break;case"week":lt="gggg-wo";break;case"month":lt="YYYY-MM";break;case"quarter":lt="YYYY-[Q]Q";break;case"year":lt="YYYY";break;default:lt=we?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return lt}function to(Ee,xe,we){var ot=Ee==="time"?8:10,lt=typeof xe=="function"?xe(we.getNow()).length:xe.length;return Math.max(ot,lt)+2}var ko=null,Qa=new Set;function jo(Ee){return!ko&&typeof window!="undefined"&&window.addEventListener&&(ko=function(we){(0,Yt.Z)(Qa).forEach(function(ot){ot(we)})},window.addEventListener("mousedown",ko)),Qa.add(Ee),function(){Qa.delete(Ee),Qa.size===0&&(window.removeEventListener("mousedown",ko),ko=null)}}function Io(Ee){var xe=Ee.target;if(Ee.composed&&xe.shadowRoot){var we;return((we=Ee.composedPath)===null||we===void 0?void 0:we.call(Ee)[0])||xe}return xe}var hr=function(xe){return xe==="month"||xe==="date"?"year":xe},dn=function(xe){return xe==="date"?"month":xe},On=function(xe){return xe==="month"||xe==="date"?"quarter":xe},pa=function(xe){return xe==="date"?"week":xe},Ua={year:hr,month:dn,quarter:On,week:pa,time:null,date:null};function oa(Ee,xe){return Ee.some(function(we){return we&&we.contains(xe)})}function ya(Ee){var xe=Ee.open,we=Ee.value,ot=Ee.isClickOutside,lt=Ee.triggerOpen,Tt=Ee.forwardKeyDown,Bt=Ee.onKeyDown,rn=Ee.blurToCancel,sn=Ee.onSubmit,Dn=Ee.onCancel,Ca=Ee.onFocus,Tn=Ee.onBlur,zn=Ee.changeOnBlur,aa=(0,le.useState)(!1),ua=(0,Ct.Z)(aa,2),ln=ua[0],Ln=ua[1],ma=(0,le.useState)(!1),ro=(0,Ct.Z)(ma,2),Ga=ro[0],io=ro[1],ho=(0,le.useRef)(!1),uo=(0,le.useRef)(!1),ja=(0,le.useRef)(!1),Yr={onMouseDown:function(){Ln(!0),lt(!0)},onKeyDown:function(Nr){var al=function(){ja.current=!0};if(Bt(Nr,al),!ja.current){switch(Nr.which){case zt.Z.ENTER:{xe?sn()!==!1&&Ln(!0):lt(!0),Nr.preventDefault();return}case zt.Z.TAB:{ln&&xe&&!Nr.shiftKey?(Ln(!1),Nr.preventDefault()):!ln&&xe&&!Tt(Nr)&&Nr.shiftKey&&(Ln(!0),Nr.preventDefault());return}case zt.Z.ESC:{Ln(!0),Dn();return}}!xe&&![zt.Z.SHIFT].includes(Nr.which)?lt(!0):ln||Tt(Nr)}},onFocus:function(Nr){Ln(!0),io(!0),Ca&&Ca(Nr)},onBlur:function(Nr){if(ho.current||!ot(document.activeElement)){ho.current=!1;return}rn?setTimeout(function(){for(var al=document,bl=al.activeElement;bl&&bl.shadowRoot;)bl=bl.shadowRoot.activeElement;ot(bl)&&Dn()},0):xe&&(lt(!1),uo.current&&sn()),io(!1),Tn==null||Tn(Nr)}};return(0,le.useEffect)(function(){uo.current=!1},[xe]),(0,le.useEffect)(function(){uo.current=!0},[we]),(0,le.useEffect)(function(){return jo(function(Ar){var Nr=Io(Ar),al=ot(Nr);xe&&(al?!zn&&(!Ga||al)&<(!1):(ho.current=!0,(0,cn.Z)(function(){ho.current=!1})))})}),[Yr,{focused:Ga,typing:ln}]}function sr(Ee,xe){return le.useMemo(function(){return Ee||(xe?((0,Se.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(xe).map(function(we){var ot=(0,Ct.Z)(we,2),lt=ot[0],Tt=ot[1];return{label:lt,value:Tt}})):[])},[Ee,xe])}var ul=z(14075);function Ft(Ee){var xe=Ee.valueTexts,we=Ee.onTextChange,ot=le.useState(""),lt=(0,Ct.Z)(ot,2),Tt=lt[0],Bt=lt[1],rn=le.useRef([]);rn.current=xe;function sn(Ca){Bt(Ca),we(Ca)}function Dn(){Bt(rn.current[0])}return(0,ul.Z)(function(){xe.every(function(Ca){return Ca!==Tt})&&Dn()},[xe.join("||")]),[Tt,sn,Dn]}var pt=le.createContext({}),Et=pt,Mn=z(71002);function $n(Ee){var xe=Ee.cellRender,we=Ee.monthCellRender,ot=Ee.dateRender,lt=le.useMemo(function(){if(xe)return xe;if(!(!we&&!ot))return function(Tt,Bt){var rn=Tt;return ot&&Bt.type==="date"?ot(rn,Bt.today):we&&Bt.type==="month"?we(rn,Bt.locale):Bt.originNode}},[xe,we,ot]);return lt}function Kn(Ee,xe){for(var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ot=String(Ee);ot.length=1?we|0:1,Bt=Ee;Bt<=xe;Bt+=Tt)lt.push({label:Kn(Bt,2),value:Bt,disabled:(ot||[]).includes(Bt)});return lt}function Wo(Ee){var xe=Ee.generateConfig,we=Ee.prefixCls,ot=Ee.operationRef,lt=Ee.activeColumnIndex,Tt=Ee.value,Bt=Ee.showHour,rn=Ee.showMinute,sn=Ee.showSecond,Dn=Ee.use12Hours,Ca=Ee.hourStep,Tn=Ca===void 0?1:Ca,zn=Ee.minuteStep,aa=zn===void 0?1:zn,ua=Ee.secondStep,ln=ua===void 0?1:ua,Ln=Ee.disabledHours,ma=Ee.disabledMinutes,ro=Ee.disabledSeconds,Ga=Ee.disabledTime,io=Ee.hideDisabledOptions,ho=Ee.onSelect,uo=Ee.cellRender,ja=Ee.locale,Yr=[],Ar="".concat(we,"-content"),Nr="".concat(we,"-time-panel"),al,bl=Tt?xe.getHour(Tt):-1,Ll=bl,_l=Tt?xe.getMinute(Tt):-1,Sl=Tt?xe.getSecond(Tt):-1,rl=xe.getNow(),ll=le.useMemo(function(){if(Ga){var el=Ga(rl);return[el.disabledHours,el.disabledMinutes,el.disabledSeconds]}return[Ln,ma,ro]},[Ln,ma,ro,Ga,rl]),Il=(0,Ct.Z)(ll,3),Yl=Il[0],yl=Il[1],Kl=Il[2],Ei=Fa(0,23,Tn,Yl&&Yl()),ai=(0,un.Z)(function(){return Ei},Ei,$a);Dn&&(al=Ll>=12,Ll%=12);var ki=le.useMemo(function(){if(!Dn)return[!1,!1];var el=[!0,!0];return ai.forEach(function(pi){var $l=pi.disabled,Oi=pi.value;$l||(Oi>=12?el[1]=!1:el[0]=!1)}),el},[Dn,ai]),gi=(0,Ct.Z)(ki,2),Li=gi[0],ql=gi[1],fi=le.useMemo(function(){return Dn?ai.filter(al?function(el){return el.value>=12}:function(el){return el.value<12}).map(function(el){var pi=el.value%12,$l=pi===0?"12":Kn(pi,2);return(0,ct.Z)((0,ct.Z)({},el),{},{label:$l,value:pi})}):ai},[Dn,al,ai]),Ii=Fa(0,59,aa,yl&&yl(bl)),il=Fa(0,59,ln,Kl&&Kl(bl,_l)),ji=jl({value:Tt,generateConfig:xe,disabledMinutes:yl,disabledSeconds:Kl,minutes:Ii,seconds:il,use12Hours:Dn});ot.current={onUpDown:function(pi){var $l=Yr[lt];if($l)for(var Oi=$l.units.findIndex(function(Ou){return Ou.value===$l.value}),Vi=$l.units.length,mi=1;mi2&&arguments[2]!==void 0?arguments[2]:!1;(Si===Ln||zl)&&(ds(Bo),Yr&&Yr(Bo),ji&&ji(Bo,tl),Ar&&!_e(sn,Bo,eu)&&!(aa!=null&&aa(Bo))&&Ar(Bo))},au=function(Bo){if(ao.includes(Si)){var tl,zl,Bu=Si==="date";switch(Bo===zt.Z.PAGE_UP||Bo===zt.Z.PAGE_DOWN?zl=Bu?sn.addMonth:sn.addYear:zl=Bu?sn.addDate:sn.addMonth,Bo){case zt.Z.LEFT:case zt.Z.PAGE_UP:tl=zl(nu,-1);break;case zt.Z.RIGHT:case zt.Z.PAGE_DOWN:tl=zl(nu,1);break;case zt.Z.UP:case zt.Z.DOWN:tl=zl(nu,Number("".concat(Bo===zt.Z.UP?"-":"").concat(Bu?Ve:kt)));break}if(tl)return!(aa!=null&&aa(tl))}return!0},_u=function(Bo){if(mi.current&&mi.current.onKeyDown){var tl=!0,zl=Bo.which;if([zt.Z.LEFT,zt.Z.RIGHT,zt.Z.UP,zt.Z.DOWN,zt.Z.PAGE_UP,zt.Z.PAGE_DOWN,zt.Z.ENTER].includes(zl)&&(Bo.preventDefault(),zl!==zt.Z.ENTER&&ro===0&&(tl=au(zl))),tl)return mi.current.onKeyDown(Bo)}return(0,Se.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Ti=function(Bo){mi.current&&mi.current.onBlur&&mi.current.onBlur(Bo)};il&&$l!=="right"&&(il.current={onKeyDown:_u,onClose:function(){mi.current&&mi.current.onClose&&mi.current.onClose()}}),le.useEffect(function(){Dn&&!zi.current&&bu(Dn)},[Dn]),le.useEffect(function(){zi.current=!1},[]);var ou,Yu=$n({cellRender:ki,monthCellRender:ai,dateRender:Ei}),Ql=(0,ct.Z)((0,ct.Z)({},Ee),{},{cellRender:Yu,operationRef:mi,prefixCls:lt,viewDate:nu,value:eu,onViewDateChange:pu,sourceMode:Wn,onPanelChange:Wu,disabledDate:aa});switch(delete Ql.onChange,delete Ql.onSelect,Si){case"decade":ou=le.createElement(hi,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}));break;case"year":ou=le.createElement(Oo,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}));break;case"month":ou=le.createElement(ea,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}));break;case"quarter":ou=le.createElement(Zt,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}));break;case"week":ou=le.createElement(zo,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}));break;case"time":delete Ql.showTime,ou=le.createElement(Ml,(0,ie.Z)({},Ql,(0,Mn.Z)(io)==="object"?io:null,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}));break;default:io?ou=le.createElement(Ki,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}})):ou=le.createElement(kr,(0,ie.Z)({},Ql,{onSelect:function(Bo,tl){pu(Bo),Ni(Bo,tl)}}))}var _i,Pu,Ru=function(){var Bo=sn.getNow(),tl=en(sn.getHour(Bo),sn.getMinute(Bo),sn.getSecond(Bo),Li?ll:1,ql?Yl:1,fi?Kl:1),zl=Nt(sn,Bo,tl[0],tl[1],tl[2]);Ni(zl,"submit")};$i||(_i=Ba(lt,Si,uo),io&&Si!=="date"?Pu=null:Pu=ka({prefixCls:lt,components:_l,needConfirmButton:gi,okDisabled:!eu||aa&&aa(eu),locale:rn,showNow:Ga,onNow:gi&&Ru,onOk:function(){eu&&(Ni(eu,"submit",!0),Ll&&Ll(eu))}}));var dl;if(ho&&Si==="date"&&Ln==="date"&&!io){var ku=sn.getNow(),Ls="".concat(lt,"-today-btn"),as=aa&&aa(ku);dl=le.createElement("a",{className:He()(Ls,as&&"".concat(Ls,"-disabled")),"aria-disabled":as,onClick:function(){as||Ni(ku,"mouse",!0)}},rn.today)}return le.createElement(Et.Provider,{value:(0,ct.Z)((0,ct.Z)({},Ii),{},{mode:Si,hideHeader:"hideHeader"in Ee?ja:Ii.hideHeader,hidePrevBtn:pi&&$l==="right",hideNextBtn:pi&&$l==="left"})},le.createElement("div",{tabIndex:ro,className:He()("".concat(lt,"-panel"),Tt,(xe={},(0,st.Z)(xe,"".concat(lt,"-panel-has-range"),Oi&&Oi[0]&&Oi[1]),(0,st.Z)(xe,"".concat(lt,"-panel-has-range-hover"),Vi&&Vi[0]&&Vi[1]),(0,st.Z)(xe,"".concat(lt,"-panel-rtl"),Sl==="rtl"),xe)),style:Bt,onKeyDown:_u,onBlur:Ti,onMouseDown:al},ou,_i||Pu||dl?le.createElement("div",{className:"".concat(lt,"-footer")},_i,Pu,dl):null))}var Ma=Wa,Or=z(62709),Ur={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 Ut(Ee){var xe,we=Ee.prefixCls,ot=Ee.popupElement,lt=Ee.popupStyle,Tt=Ee.visible,Bt=Ee.dropdownClassName,rn=Ee.dropdownAlign,sn=Ee.transitionName,Dn=Ee.getPopupContainer,Ca=Ee.children,Tn=Ee.range,zn=Ee.popupPlacement,aa=Ee.direction,ua="".concat(we,"-dropdown"),ln=function(){return zn!==void 0?zn:aa==="rtl"?"bottomRight":"bottomLeft"};return le.createElement(Or.Z,{showAction:[],hideAction:[],popupPlacement:ln(),builtinPlacements:Ur,prefixCls:ua,popupTransitionName:sn,popup:ot,popupAlign:rn,popupVisible:Tt,popupClassName:He()(Bt,(xe={},(0,st.Z)(xe,"".concat(ua,"-range"),Tn),(0,st.Z)(xe,"".concat(ua,"-rtl"),aa==="rtl"),xe)),popupStyle:lt,getPopupContainer:Dn},Ca)}var Rt=Ut;function $t(Ee){var xe=Ee.prefixCls,we=Ee.presets,ot=Ee.onClick,lt=Ee.onHover;return we.length?le.createElement("div",{className:"".concat(xe,"-presets")},le.createElement("ul",null,we.map(function(Tt,Bt){var rn=Tt.label,sn=Tt.value;return le.createElement("li",{key:Bt,onClick:function(){return ot==null?void 0:ot(hl(sn))},onMouseEnter:function(){return lt==null?void 0:lt(hl(sn))},onMouseLeave:function(){return lt==null?void 0:lt(null)}},rn)}))):null}function Nn(Ee){var xe=Ee.picker,we=Ee.disabledHours,ot=Ee.disabledMinutes,lt=Ee.disabledSeconds;xe==="time"&&(we||ot||lt)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Ya(Ee,xe,we){var ot=(0,Mn.Z)(xe)==="object"?xe.clearIcon:we;return ot||le.createElement("span",{className:"".concat(Ee,"-clear-btn")})}function bo(Ee){var xe,we=Ee,ot=we.prefixCls,lt=ot===void 0?"rc-picker":ot,Tt=we.id,Bt=we.name,rn=we.tabIndex,sn=we.style,Dn=we.className,Ca=we.dropdownClassName,Tn=we.dropdownAlign,zn=we.popupStyle,aa=we.transitionName,ua=we.generateConfig,ln=we.locale,Ln=we.inputReadOnly,ma=we.allowClear,ro=we.autoFocus,Ga=we.showTime,io=we.picker,ho=io===void 0?"date":io,uo=we.format,ja=we.use12Hours,Yr=we.value,Ar=we.defaultValue,Nr=we.presets,al=we.open,bl=we.defaultOpen,Ll=we.defaultOpenValue,_l=we.suffixIcon,Sl=we.clearIcon,rl=we.disabled,ll=we.disabledDate,Il=we.placeholder,Yl=we.getPopupContainer,yl=we.pickerRef,Kl=we.panelRender,Ei=we.onChange,ai=we.onOpenChange,ki=we.onFocus,gi=we.onBlur,Li=we.onMouseDown,ql=we.onMouseUp,fi=we.onMouseEnter,Ii=we.onMouseLeave,il=we.onContextMenu,ji=we.onClick,$i=we.onKeyDown,yu=we.onSelect,el=we.direction,pi=we.autoComplete,$l=pi===void 0?"off":pi,Oi=we.inputRender,Vi=we.changeOnBlur,mi=le.useRef(null),zi=ho==="date"&&!!Ga||ho==="time",Ou=sr(Nr),Nu=Fo(xn(uo,ho,Ga,ja)),eu=le.useRef(null),ds=le.useRef(null),Ms=le.useRef(null),gs=(0,et.Z)(null,{value:Yr,defaultValue:Ar}),nu=(0,Ct.Z)(gs,2),bu=nu[0],pu=nu[1],ms=le.useState(bu),ns=(0,Ct.Z)(ms,2),vu=ns[0],Si=ns[1],hu=le.useRef(null),Vu=(0,et.Z)(!1,{value:al,defaultValue:bl,postState:function(vn){return rl?!1:vn},onChange:function(vn){ai&&ai(vn),!vn&&hu.current&&hu.current.onClose&&hu.current.onClose()}}),Tu=(0,Ct.Z)(Vu,2),Wn=Tu[0],Au=Tu[1],Wu=xt(vu,{formatList:Nu,generateConfig:ua,locale:ln}),Ni=(0,Ct.Z)(Wu,2),au=Ni[0],_u=Ni[1],Ti=Ft({valueTexts:au,onTextChange:function(vn){var Ea=wn(vn,{locale:ln,formatList:Nu,generateConfig:ua});Ea&&(!ll||!ll(Ea))&&Si(Ea)}}),ou=(0,Ct.Z)(Ti,3),Yu=ou[0],Ql=ou[1],_i=ou[2],Pu=function(vn){Si(vn),pu(vn),Ei&&!_e(ua,bu,vn)&&Ei(vn,vn?gt(vn,{generateConfig:ua,locale:ln,format:Nu[0]}):"")},Ru=function(vn){rl&&vn||Au(vn)},dl=function(vn){return Wn&&hu.current&&hu.current.onKeyDown?hu.current.onKeyDown(vn):((0,Se.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ku=function(){for(var vn=arguments.length,Ea=new Array(vn),da=0;dazn(Dn);case"month":return Tn(ln)>Tn(Dn);case"week":return Ca(ln)>Ca(Dn);default:return!It(rn,ln,Dn)&&rn.isAfter(ln,Dn)}return!1},[Tt,Bt[1],Dn,xe]),ua=le.useCallback(function(ln){if(Bt[1]||Tt&&Tt(ln))return!0;if(Bt[0]&&sn)return!It(rn,ln,Dn)&&rn.isAfter(sn,ln);if(!xe&&sn)switch(we){case"quarter":return zn(ln)0&&arguments[0]!==void 0?arguments[0]:!1,Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tr=null;ze&&To&&To[0]&&To[1]&&ln.isAfter(To[1],To[0])&&(tr=To);var vl=ja;if(ja&&(0,Mn.Z)(ja)==="object"&&ja.defaultValue){var ci=ja.defaultValue;vl=(0,ct.Z)((0,ct.Z)({},ja),{},{defaultValue:Gn(ci,Qe)||void 0})}return le.createElement(gr.Provider,{value:{inRange:!0,panelPosition:pl,rangedValue:fl||zr,hoverRangedValue:tr}},le.createElement(Ma,(0,ie.Z)({},Ee,Go,{cellRender:Hu,showTime:vl,mode:Bu[Qe],generateConfig:ln,style:void 0,direction:nu,disabledDate:Qe===0?Xt:Yn,disabledTime:function(Mu){return ll?ll(Mu,Qe===0?"start":"end"):!1},className:He()((0,st.Z)({},"".concat(Bt,"-panel-focused"),Qe===0?!wu:!tu)),value:Gn(zr,Qe),locale:Ln,tabIndex:-1,onPanelChange:function(Mu,Ju){Qe===0&&Fr(!0),Qe===1&&Cu(!0),ve(Sr(Bu,Ju,Qe),Sr(zr,Mu,Qe));var ls=Mu;pl==="right"&&Bu[Qe]===Ju&&(ls=jn(ls,Ju,ln,-1)),ku(ls,Qe)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Qe===0?Gn(zr,1):Gn(zr,0)})))}var Qr=0,Vl=0;if(Qe&&Vu.current&&Wn.current&&hu.current&&Ni.current){Qr=Vu.current.offsetWidth+Wn.current.offsetWidth;var Yi=Ni.current.offsetLeft>Qr?Ni.current.offsetLeft-Qr:Ni.current.offsetLeft,ni=hu.current.offsetWidth,Xi=Ni.current.offsetWidth;ni&&Xi&&Qr>ni-Xi-(nu==="rtl"?0:Yi)&&(Vl=Qr)}var iu=nu==="rtl"?{right:Qr}:{left:Qr};function mu(){var pl,Go=Ba(Bt,Bu[Qe],ji),tr=ka({prefixCls:Bt,components:Ms,needConfirmButton:vu,okDisabled:!Gn(zr,Qe)||rl&&rl(zr[Qe]),locale:Ln,onOk:function(){var So=Gn(zr,Qe);So&&(da(zr,Qe),eu==null||eu(zr),St(!1,Qe,"confirm"))}});if(uo!=="time"&&!ja){var vl=dl(Qe),ci=jn(vl,uo,ln),xs=Bu[Qe],Mu=xs===uo,Ju=Ts(Mu?"left":!1,{pickerValue:vl,onPickerValueChange:function(So){ku(So,Qe)}}),ls=Ts("right",{pickerValue:ci,onPickerValueChange:function(So){ku(jn(So,uo,ln,-1),Qe)}});nu==="rtl"?pl=le.createElement(le.Fragment,null,ls,Mu&&Ju):pl=le.createElement(le.Fragment,null,Ju,Mu&&ls)}else pl=Ts();var Is=le.createElement("div",{className:"".concat(Bt,"-panel-layout")},le.createElement($t,{prefixCls:Bt,presets:Ns,onClick:function(So){da(So,null),St(!1,Qe,"preset")},onHover:function(So){ei(So)}}),le.createElement("div",null,le.createElement("div",{className:"".concat(Bt,"-panels")},pl),(Go||tr)&&le.createElement("div",{className:"".concat(Bt,"-footer")},Go,tr)));return Kl&&(Is=Kl(Is)),le.createElement("div",{className:"".concat(Bt,"-panel-container"),style:{marginLeft:Vl},ref:hu,onMouseDown:function(So){So.preventDefault()}},Is)}var os=le.createElement("div",{className:He()("".concat(Bt,"-range-wrapper"),"".concat(Bt,"-").concat(uo,"-range-wrapper")),style:{minWidth:ra}},le.createElement("div",{ref:Ni,className:"".concat(Bt,"-range-arrow"),style:iu}),mu()),Ws;Li&&(Ws=le.createElement("span",{className:"".concat(Bt,"-suffix"),onMouseDown:function(Go){Go.preventDefault()}},Li));var qn=Ya(Bt,gi,ql),tc=le.createElement("span",{onMouseDown:function(Go){Go.preventDefault(),Go.stopPropagation()},onMouseUp:function(Go){Go.preventDefault(),Go.stopPropagation();var tr=Ql;Ti[0]||(tr=Sr(tr,null,0)),Ti[1]||(tr=Sr(tr,null,1)),da(tr,null),St(!1,Qe,"clear")},className:"".concat(Bt,"-clear"),role:"button"},qn),sc=gi&&(Gn(Ql,0)&&!Ti[0]||Gn(Ql,1)&&!Ti[1]),Ys={size:to(uo,au[0],ln)},ps=0,rs=0;Vu.current&&Tu.current&&Wn.current&&(Qe===0?rs=Vu.current.offsetWidth:(ps=Qr,rs=Tu.current.offsetWidth));var nc=nu==="rtl"?{right:ps}:{left:ps},ac=function(Go,tr){var vl=Sr(zr,Go,Qe);if(tr==="submit"||tr!=="key"&&!vu){da(vl,Qe),Qe===0?Fr():Cu();var ci=Qe===0?1:0;Ti[ci]?St(!1,!1,"confirm"):St(!1,Qe,"confirm")}else Bo(vl)};return le.createElement(Et.Provider,{value:{operationRef:_u,hideHeader:uo==="time",onDateMouseEnter:yi,onDateMouseLeave:Du,hideRanges:!0,onSelect:ac,open:ze}},le.createElement(Rt,{visible:ze,popupElement:os,popupStyle:Ca,prefixCls:Bt,dropdownClassName:Tn,dropdownAlign:aa,getPopupContainer:ua,transitionName:zn,range:!0,direction:nu},le.createElement("div",(0,ie.Z)({ref:Si,className:He()(Bt,"".concat(Bt,"-range"),Dn,(xe={},(0,st.Z)(xe,"".concat(Bt,"-disabled"),Ti[0]&&Ti[1]),(0,st.Z)(xe,"".concat(Bt,"-focused"),Qe===0?du:gu),(0,st.Z)(xe,"".concat(Bt,"-rtl"),nu==="rtl"),xe)),style:sn,onClick:Di,onMouseEnter:zi,onMouseLeave:Ou,onMouseDown:li,onMouseUp:mi},(0,Qt.Z)(Ee,{aria:!0,data:!0})),le.createElement("div",{className:He()("".concat(Bt,"-input"),(we={},(0,st.Z)(we,"".concat(Bt,"-input-active"),Qe===0),(0,st.Z)(we,"".concat(Bt,"-input-placeholder"),!!gl),we)),ref:Vu},le.createElement("input",(0,ie.Z)({id:rn,disabled:Ti[0],readOnly:Ii||typeof au[0]=="function"||!wu,value:gl||xr,onChange:function(Go){Ko(Go.target.value)},autoFocus:ro,placeholder:Gn(ma,0)||"",ref:Au},cu,Ys,{autoComplete:ms}))),le.createElement("div",{className:"".concat(Bt,"-range-separator"),ref:Wn},Nr),le.createElement("div",{className:He()("".concat(Bt,"-input"),(ot={},(0,st.Z)(ot,"".concat(Bt,"-input-active"),Qe===1),(0,st.Z)(ot,"".concat(Bt,"-input-placeholder"),!!Gi),ot)),ref:Tu},le.createElement("input",(0,ie.Z)({disabled:Ti[1],readOnly:Ii||typeof au[0]=="function"||!tu,value:Gi||nl,onChange:function(Go){oi(Go.target.value)},placeholder:Gn(ma,1)||"",ref:Wu},Ku,Ys,{autoComplete:ms}))),le.createElement("div",{className:"".concat(Bt,"-active-bar"),style:(0,ct.Z)((0,ct.Z)({},nc),{},{width:rs,position:"absolute"})}),Ws,sc&&tc)))}var Rl=function(Ee){(0,Ye.Z)(we,Ee);var xe=(0,Xe.Z)(we);function we(){var ot;(0,it.Z)(this,we);for(var lt=arguments.length,Tt=new Array(lt),Bt=0;Bt{const{lineHeight:lt}=Ee,Tt=Math.floor(we*lt)+2,Bt=Math.max((xe-Tt)/2,0),rn=Math.max(xe-Tt-Bt,0);return{padding:`${Bt}px ${ot}px ${rn}px`}},Ps=Ee=>{const{componentCls:xe,pickerCellCls:we,pickerCellInnerCls:ot,cellHeight:lt,motionDurationSlow:Tt,borderRadiusSM:Bt,motionDurationMid:rn,cellHoverBg:sn,lineWidth:Dn,lineType:Ca,colorPrimary:Tn,cellActiveWithRangeBg:zn,colorTextLightSolid:aa,controlHeightSM:ua,cellRangeBorderColor:ln,pickerCellBorderGap:Ln,cellHoverWithRangeBg:ma,cellWidth:ro,colorTextDisabled:Ga,cellBgDisabled:io}=Ee;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:lt,transform:"translateY(-50%)",transition:`all ${Tt}`,content:'""'},[ot]:{position:"relative",zIndex:2,display:"inline-block",minWidth:lt,height:lt,lineHeight:`${lt}px`,borderRadius:Bt,transition:`background ${rn}, border ${rn}`},"&-range-hover-start, &-range-hover-end":{[ot]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${we}-in-view), &:hover:not(${we}-selected):not(${we}-range-start):not(${we}-range-end):not(${we}-range-hover-start):not(${we}-range-hover-end)`]:{[ot]:{background:sn}},[`&-in-view${we}-today ${ot}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Dn}px ${Ca} ${Tn}`,borderRadius:Bt,content:'""'}},[`&-in-view${we}-in-range`]:{position:"relative","&::before":{background:zn}},[`&-in-view${we}-selected ${ot}, &-in-view${we}-range-start ${ot}, &-in-view${we}-range-end ${ot}`]:{color:aa,background:Tn},[`&-in-view${we}-range-start:not(${we}-range-start-single), &-in-view${we}-range-end:not(${we}-range-end-single)`]:{"&::before":{background:zn}},[`&-in-view${we}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${we}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${we}-range-hover-start:not(${we}-in-range):not(${we}-range-start):not(${we}-range-end), &-in-view${we}-range-hover-end:not(${we}-in-range):not(${we}-range-start):not(${we}-range-end), &-in-view${we}-range-hover-start${we}-range-start-single, &-in-view${we}-range-hover-start${we}-range-start${we}-range-end${we}-range-end-near-hover, &-in-view${we}-range-hover-end${we}-range-start${we}-range-end${we}-range-start-near-hover, &-in-view${we}-range-hover-end${we}-range-end-single, &-in-view${we}-range-hover:not(${we}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:ua,borderTop:`${Dn}px dashed ${ln}`,borderBottom:`${Dn}px dashed ${ln}`,transform:"translateY(-50%)",transition:`all ${Tt}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Ln},[`&-in-view${we}-in-range${we}-range-hover::before, &-in-view${we}-in-range${we}-range-hover-start::before, &-in-view${we}-in-range${we}-range-hover-end::before, &-in-view${we}-range-start${we}-range-hover::before, &-in-view${we}-range-end${we}-range-hover::before, &-in-view${we}-range-start:not(${we}-range-start-single)${we}-range-hover-start::before, &-in-view${we}-range-end:not(${we}-range-end-single)${we}-range-hover-end::before, ${xe}-panel > :not(${xe}-date-panel) &-in-view${we}-in-range${we}-range-hover-start::before, ${xe}-panel > :not(${xe}-date-panel) &-in-view${we}-in-range${we}-range-hover-end::before`]:{background:ma},[`&-in-view${we}-range-start:not(${we}-range-start-single):not(${we}-range-end) ${ot}`]:{borderStartStartRadius:Bt,borderEndStartRadius:Bt,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${we}-range-end:not(${we}-range-end-single):not(${we}-range-start) ${ot}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Bt,borderEndEndRadius:Bt},[`&-range-hover${we}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${we}-range-hover:first-child::after, tr > &-in-view${we}-range-hover-end:first-child::after, &-in-view${we}-start${we}-range-hover-edge-start${we}-range-hover-edge-start-near-range::after, &-in-view${we}-range-hover-edge-start:not(${we}-range-hover-edge-start-near-range)::after, &-in-view${we}-range-hover-start::after`]:{insetInlineStart:(ro-lt)/2,borderInlineStart:`${Dn}px dashed ${ln}`,borderStartStartRadius:Bt,borderEndStartRadius:Bt},[`tr > &-in-view${we}-range-hover:last-child::after, tr > &-in-view${we}-range-hover-start:last-child::after, &-in-view${we}-end${we}-range-hover-edge-end${we}-range-hover-edge-end-near-range::after, &-in-view${we}-range-hover-edge-end:not(${we}-range-hover-edge-end-near-range)::after, &-in-view${we}-range-hover-end::after`]:{insetInlineEnd:(ro-lt)/2,borderInlineEnd:`${Dn}px dashed ${ln}`,borderStartEndRadius:Bt,borderEndEndRadius:Bt},"&-disabled":{color:Ga,pointerEvents:"none",[ot]:{background:"transparent"},"&::before":{background:io}},[`&-disabled${we}-today ${ot}::before`]:{borderColor:Ga}}},js=Ee=>{const{componentCls:xe,pickerCellCls:we,pickerCellInnerCls:ot,pickerYearMonthCellWidth:lt,pickerControlIconSize:Tt,cellWidth:Bt,paddingSM:rn,paddingXS:sn,paddingXXS:Dn,colorBgContainer:Ca,lineWidth:Tn,lineType:zn,borderRadiusLG:aa,colorPrimary:ua,colorTextHeading:ln,colorSplit:Ln,pickerControlIconBorderWidth:ma,colorIcon:ro,textHeight:Ga,motionDurationMid:io,colorIconHover:ho,fontWeightStrong:uo,cellHeight:ja,pickerCellPaddingVertical:Yr,colorTextDisabled:Ar,colorText:Nr,fontSize:al,cellHoverWithRangeBg:bl,motionDurationSlow:Ll,withoutTimeCellHeight:_l,pickerQuarterPanelContentHeight:Sl,colorLink:rl,colorLinkActive:ll,colorLinkHover:Il,cellRangeBorderColor:Yl,borderRadiusSM:yl,colorTextLightSolid:Kl,cellHoverBg:Ei,timeColumnHeight:ai,timeColumnWidth:ki,timeCellHeight:gi,controlItemBgActive:Li,marginXXS:ql,pickerDatePanelPaddingHorizontal:fi}=Ee,Ii=Bt*7+fi*2,il=(Ii-sn*2)/3-lt-rn,ji=(Ii-sn*2)/4-lt;return{[xe]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ca,border:`${Tn}px ${zn} ${Ln}`,borderRadius:aa,outline:"none","&-focused":{borderColor:ua},"&-rtl":{direction:"rtl",[`${xe}-prev-icon, ${xe}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${xe}-next-icon, ${xe}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-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:Ii},"&-header":{display:"flex",padding:`0 ${sn}px`,color:ln,borderBottom:`${Tn}px ${zn} ${Ln}`,"> *":{flex:"none"},button:{padding:0,color:ro,lineHeight:`${Ga}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${io}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:al,"&:hover":{color:ho}},"&-view":{flex:"auto",fontWeight:uo,lineHeight:`${Ga}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:sn},"&:hover":{color:ua}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Tt,height:Tt,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Tt,height:Tt,border:"0 solid currentcolor",borderBlockStartWidth:ma,borderBlockEndWidth:0,borderInlineStartWidth:ma,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Tt/2),insetInlineStart:Math.ceil(Tt/2),display:"inline-block",width:Tt,height:Tt,border:"0 solid currentcolor",borderBlockStartWidth:ma,borderBlockEndWidth:0,borderInlineStartWidth:ma,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:ja,fontWeight:"normal"},th:{height:ja+Yr*2,color:Nr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Yr}px 0`,color:Ar,cursor:"pointer","&-in-view":{color:Nr}},Ps(Ee)),[`&-date-panel ${xe}-cell-in-view${xe}-cell-in-range${xe}-cell-range-hover-start ${ot}, &-date-panel ${xe}-cell-in-view${xe}-cell-in-range${xe}-cell-range-hover-end ${ot}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:bl,transition:`all ${Ll}`,content:'""'}},[`&-date-panel ${xe}-cell-in-view${xe}-cell-in-range${xe}-cell-range-hover-start ${ot}::after`]:{insetInlineEnd:-(Bt-ja)/2,insetInlineStart:0},[`&-date-panel ${xe}-cell-in-view${xe}-cell-in-range${xe}-cell-range-hover-end ${ot}::after`]:{insetInlineEnd:0,insetInlineStart:-(Bt-ja)/2},[`&-range-hover${xe}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${xe}-content`]:{height:_l*4},[ot]:{padding:`0 ${sn}px`}},"&-quarter-panel":{[`${xe}-content`]:{height:Sl},[`${xe}-cell-range-hover-start::after`]:{insetInlineStart:ji,borderInlineStart:`${Tn}px dashed ${Yl}`,[`${xe}-panel-rtl &`]:{insetInlineEnd:ji,borderInlineEnd:`${Tn}px dashed ${Yl}`}},[`${xe}-cell-range-hover-end::after`]:{insetInlineEnd:ji,borderInlineEnd:`${Tn}px dashed ${Yl}`,[`${xe}-panel-rtl &`]:{insetInlineStart:ji,borderInlineStart:`${Tn}px dashed ${Yl}`}}},[`&-panel ${xe}-footer`]:{borderTop:`${Tn}px ${zn} ${Ln}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Ga-2*Tn}px`,textAlign:"center","&-extra":{padding:`0 ${rn}px`,lineHeight:`${Ga-2*Tn}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Tn}px ${zn} ${Ln}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:rl,"&:hover":{color:Il},"&:active":{color:ll},[`&${xe}-today-btn-disabled`]:{color:Ar,cursor:"not-allowed"}},"&-decade-panel":{[ot]:{padding:`0 ${sn/2}px`},[`${xe}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${xe}-body`]:{padding:`0 ${sn}px`},[ot]:{width:lt},[`${xe}-cell-range-hover-start::after`]:{borderStartStartRadius:yl,borderEndStartRadius:yl,borderStartEndRadius:0,borderEndEndRadius:0,[`${xe}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:yl,borderEndEndRadius:yl}},[`${xe}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:yl,borderEndEndRadius:yl,[`${xe}-panel-rtl &`]:{borderStartStartRadius:yl,borderEndStartRadius:yl,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${xe}-cell-range-hover-start::after`]:{insetInlineStart:il,borderInlineStart:`${Tn}px dashed ${Yl}`,[`${xe}-panel-rtl &`]:{insetInlineEnd:il,borderInlineEnd:`${Tn}px dashed ${Yl}`}},[`${xe}-cell-range-hover-end::after`]:{insetInlineEnd:il,borderInlineEnd:`${Tn}px dashed ${Yl}`,[`${xe}-panel-rtl &`]:{insetInlineStart:il,borderInlineStart:`${Tn}px dashed ${Yl}`}}},"&-week-panel":{[`${xe}-body`]:{padding:`${sn}px ${rn}px`},[`${xe}-cell`]:{[`&:hover ${ot}, &-selected ${ot}, ${ot}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${io}`},"&:first-child:before":{borderStartStartRadius:yl,borderEndStartRadius:yl},"&:last-child:before":{borderStartEndRadius:yl,borderEndEndRadius:yl}},"&:hover td":{"&:before":{background:Ei}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${we}`]:{"&:before":{background:ua},[`&${xe}-cell-week`]:{color:new Br.C(Kl).setAlpha(.5).toHexString()},[ot]:{color:Kl}}},"&-range-hover td:before":{background:Li}}},"&-date-panel":{[`${xe}-body`]:{padding:`${sn}px ${fi}px`},[`${xe}-content`]:{width:Bt*7,th:{width:Bt,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${xe}-time-panel`]:{borderInlineStart:`${Tn}px ${zn} ${Ln}`},[`${xe}-date-panel, ${xe}-time-panel`]:{transition:`opacity ${Ll}`},"&-active":{[`${xe}-date-panel, ${xe}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${xe}-content`]:{display:"flex",flex:"auto",height:ai},"&-column":{flex:"1 0 auto",width:ki,margin:`${Dn}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${io}`,overflowX:"hidden","&::after":{display:"block",height:ai-gi,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Tn}px ${zn} ${Ln}`},"&-active":{background:new Br.C(Li).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${xe}-time-panel-cell`]:{marginInline:ql,[`${xe}-time-panel-cell-inner`]:{display:"block",width:ki-2*ql,height:gi,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(ki-gi)/2,color:Nr,lineHeight:`${gi}px`,borderRadius:yl,cursor:"pointer",transition:`background ${io}`,"&:hover":{background:Ei}},"&-selected":{[`${xe}-time-panel-cell-inner`]:{background:Li}},"&-disabled":{[`${xe}-time-panel-cell-inner`]:{color:Ar,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${xe}-time-panel-column:after`]:{height:ai-gi+Dn*2}}}},us=Ee=>{const{componentCls:xe,colorBgContainer:we,colorError:ot,errorActiveShadow:lt,colorWarning:Tt,warningActiveShadow:Bt}=Ee;return{[`${xe}:not(${xe}-disabled)`]:{[`&${xe}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:we,borderColor:ot},[`&${xe}-focused, &:focus`]:Object.assign({},(0,Zi.M1)((0,es.TS)(Ee,{activeBorderColor:ot,activeShadow:lt}))),[`${xe}-active-bar`]:{background:ot}},[`&${xe}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:we,borderColor:Tt},[`&${xe}-focused, &:focus`]:Object.assign({},(0,Zi.M1)((0,es.TS)(Ee,{activeBorderColor:Tt,activeShadow:Bt}))),[`${xe}-active-bar`]:{background:Tt}}}}},bs=Ee=>{const{componentCls:xe,antCls:we,controlHeight:ot,fontSize:lt,paddingInline:Tt,colorBgContainer:Bt,lineWidth:rn,lineType:sn,colorBorder:Dn,borderRadius:Ca,motionDurationMid:Tn,colorBgContainerDisabled:zn,colorTextDisabled:aa,colorTextPlaceholder:ua,controlHeightLG:ln,fontSizeLG:Ln,controlHeightSM:ma,paddingInlineSM:ro,paddingXS:Ga,marginXS:io,colorTextDescription:ho,lineWidthBold:uo,lineHeight:ja,colorPrimary:Yr,motionDurationSlow:Ar,zIndexPopup:Nr,paddingXXS:al,paddingSM:bl,textHeight:Ll,cellActiveWithRangeBg:_l,colorPrimaryBorder:Sl,sizePopupArrow:rl,borderRadiusXS:ll,borderRadiusOuter:Il,colorBgElevated:Yl,borderRadiusLG:yl,boxShadowSecondary:Kl,borderRadiusSM:Ei,colorSplit:ai,cellHoverBg:ki,presetsWidth:gi,presetsMaxWidth:Li,boxShadowPopoverArrow:ql,colorTextQuaternary:fi}=Ee;return[{[xe]:Object.assign(Object.assign(Object.assign({},(0,Hi.Wf)(Ee)),ks(Ee,ot,lt,Tt)),{position:"relative",display:"inline-flex",alignItems:"center",background:Bt,lineHeight:1,border:`${rn}px ${sn} ${Dn}`,borderRadius:Ca,transition:`border ${Tn}, box-shadow ${Tn}`,"&:hover, &-focused":Object.assign({},(0,Zi.pU)(Ee)),"&-focused":Object.assign({},(0,Zi.M1)(Ee)),[`&${xe}-disabled`]:{background:zn,borderColor:Dn,cursor:"not-allowed",[`${xe}-suffix`]:{color:fi}},[`&${xe}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${xe}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Zi.ik)(Ee)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${xe}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:ua}}},"&-large":Object.assign(Object.assign({},ks(Ee,ln,Ln,Tt)),{[`${xe}-input > input`]:{fontSize:Ln}}),"&-small":Object.assign({},ks(Ee,ma,lt,ro)),[`${xe}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Ga/2,color:aa,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:io}}},[`${xe}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:aa,lineHeight:1,background:Bt,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Tn}, color ${Tn}`,"> *":{verticalAlign:"top"},"&:hover":{color:ho}},[`${xe}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Ln,color:aa,fontSize:Ln,verticalAlign:"top",cursor:"default",[`${xe}-focused &`]:{color:ho},[`${xe}-range-separator &`]:{[`${xe}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${xe}-clear`]:{insetInlineEnd:Tt},"&:hover":{[`${xe}-clear`]:{opacity:1}},[`${xe}-active-bar`]:{bottom:-rn,height:uo,marginInlineStart:Tt,background:Yr,opacity:0,transition:`all ${Ar} ease-out`,pointerEvents:"none"},[`&${xe}-focused`]:{[`${xe}-active-bar`]:{opacity:1}},[`${xe}-range-separator`]:{alignItems:"center",padding:`0 ${Ga}px`,lineHeight:1},[`&${xe}-small`]:{[`${xe}-clear`]:{insetInlineEnd:ro},[`${xe}-active-bar`]:{marginInlineStart:ro}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Hi.Wf)(Ee)),js(Ee)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Nr,[`&${xe}-dropdown-hidden`]:{display:"none"},[`&${xe}-dropdown-placement-bottomLeft`]:{[`${xe}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${xe}-dropdown-placement-topLeft`]:{[`${xe}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${we}-slide-up-enter${we}-slide-up-enter-active${xe}-dropdown-placement-topLeft, &${we}-slide-up-enter${we}-slide-up-enter-active${xe}-dropdown-placement-topRight, &${we}-slide-up-appear${we}-slide-up-appear-active${xe}-dropdown-placement-topLeft, &${we}-slide-up-appear${we}-slide-up-appear-active${xe}-dropdown-placement-topRight`]:{animationName:su.Qt},[`&${we}-slide-up-enter${we}-slide-up-enter-active${xe}-dropdown-placement-bottomLeft, &${we}-slide-up-enter${we}-slide-up-enter-active${xe}-dropdown-placement-bottomRight, &${we}-slide-up-appear${we}-slide-up-appear-active${xe}-dropdown-placement-bottomLeft, &${we}-slide-up-appear${we}-slide-up-appear-active${xe}-dropdown-placement-bottomRight`]:{animationName:su.fJ},[`&${we}-slide-up-leave${we}-slide-up-leave-active${xe}-dropdown-placement-topLeft, &${we}-slide-up-leave${we}-slide-up-leave-active${xe}-dropdown-placement-topRight`]:{animationName:su.ly},[`&${we}-slide-up-leave${we}-slide-up-leave-active${xe}-dropdown-placement-bottomLeft, &${we}-slide-up-leave${we}-slide-up-leave-active${xe}-dropdown-placement-bottomRight`]:{animationName:su.Uw},[`${xe}-panel > ${xe}-time-panel`]:{paddingTop:al},[`${xe}-ranges`]:{marginBottom:0,padding:`${al}px ${bl}px`,overflow:"hidden",lineHeight:`${Ll-2*rn-Ga/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${xe}-preset > ${we}-tag-blue`]:{color:Yr,background:_l,borderColor:Sl,cursor:"pointer"},[`${xe}-ok`]:{marginInlineStart:"auto"}},[`${xe}-range-wrapper`]:{display:"flex",position:"relative"},[`${xe}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Tt*1.5,transition:`left ${Ar} ease-out`},(0,fu.r)(rl,ll,Il,Yl,ql)),[`${xe}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Yl,borderRadius:yl,boxShadow:Kl,transition:`margin ${Ar}`,[`${xe}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${xe}-presets`]:{display:"flex",flexDirection:"column",minWidth:gi,maxWidth:Li,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Ga,borderInlineEnd:`${rn}px ${sn} ${ai}`,li:Object.assign(Object.assign({},Hi.vS),{borderRadius:Ei,paddingInline:Ga,paddingBlock:(ma-Math.round(lt*ja))/2,cursor:"pointer",transition:`all ${Ar}`,"+ li":{marginTop:io},"&:hover":{background:ki}})}},[`${xe}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${xe}-panel`]:{borderWidth:`0 0 ${rn}px`},"&:last-child":{[`${xe}-panel`]:{borderWidth:0}}},[`${xe}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${xe}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:Dn}}}}),"&-dropdown-range":{padding:`${rl*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${xe}-separator`]:{transform:"rotate(180deg)"},[`${xe}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,su.oN)(Ee,"slide-up"),(0,su.oN)(Ee,"slide-down"),(0,Fs.Fm)(Ee,"move-up"),(0,Fs.Fm)(Ee,"move-down")]},Bs=Ee=>{const{componentCls:xe,controlHeightLG:we,paddingXXS:ot,padding:lt}=Ee;return{pickerCellCls:`${xe}-cell`,pickerCellInnerCls:`${xe}-cell-inner`,pickerYearMonthCellWidth:we*1.5,pickerQuarterPanelContentHeight:we*1.4,pickerCellPaddingVertical:ot+ot/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:lt+ot/2}},Ds=Ee=>({cellHoverBg:Ee.controlItemBgHover,cellActiveWithRangeBg:Ee.controlItemBgActive,cellHoverWithRangeBg:new Br.C(Ee.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Br.C(Ee.colorPrimary).lighten(20).toHexString(),cellBgDisabled:Ee.colorBgContainerDisabled,timeColumnWidth:Ee.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:Ee.controlHeightSM*1.5,cellHeight:Ee.controlHeightSM,textHeight:Ee.controlHeightLG,withoutTimeCellHeight:Ee.controlHeightLG*1.65});var cl=(0,ts.Z)("DatePicker",Ee=>{const xe=(0,es.TS)((0,Zi.e5)(Ee),Bs(Ee));return[bs(xe),us(xe),(0,Su.c)(Ee,{focusElCls:`${Ee.componentCls}-focused`})]},Ee=>Object.assign(Object.assign(Object.assign({},(0,Zi.TM)(Ee)),Ds(Ee)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:Ee.zIndexPopupBase+50}));function rc(Ee,xe,we){return we!==void 0?we:xe==="year"&&Ee.lang.yearPlaceholder?Ee.lang.yearPlaceholder:xe==="quarter"&&Ee.lang.quarterPlaceholder?Ee.lang.quarterPlaceholder:xe==="month"&&Ee.lang.monthPlaceholder?Ee.lang.monthPlaceholder:xe==="week"&&Ee.lang.weekPlaceholder?Ee.lang.weekPlaceholder:xe==="time"&&Ee.timePickerLocale.placeholder?Ee.timePickerLocale.placeholder:Ee.lang.placeholder}function lc(Ee,xe,we){return we!==void 0?we:xe==="year"&&Ee.lang.yearPlaceholder?Ee.lang.rangeYearPlaceholder:xe==="quarter"&&Ee.lang.quarterPlaceholder?Ee.lang.rangeQuarterPlaceholder:xe==="month"&&Ee.lang.monthPlaceholder?Ee.lang.rangeMonthPlaceholder:xe==="week"&&Ee.lang.weekPlaceholder?Ee.lang.rangeWeekPlaceholder:xe==="time"&&Ee.timePickerLocale.placeholder?Ee.timePickerLocale.rangePlaceholder:Ee.lang.rangePlaceholder}function zs(Ee,xe){const we={adjustX:1,adjustY:1};switch(xe){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:we};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:we};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:we};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:we};default:return{points:Ee==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:we}}}function Us(Ee){return Ee?Array.isArray(Ee)?Ee:[Ee]:[]}function ws(Ee){const{format:xe,picker:we,showHour:ot,showMinute:lt,showSecond:Tt,use12Hours:Bt}=Ee,rn=Us(xe)[0],sn=Object.assign({},Ee);return xe&&Array.isArray(xe)&&(sn.format=rn),rn&&typeof rn=="string"&&(!rn.includes("s")&&Tt===void 0&&(sn.showSecond=!1),!rn.includes("m")&<===void 0&&(sn.showMinute=!1),!rn.includes("H")&&!rn.includes("h")&&!rn.includes("K")&&!rn.includes("k")&&ot===void 0&&(sn.showHour=!1),(rn.includes("a")||rn.includes("A"))&&Bt===void 0&&(sn.use12Hours=!0)),we==="time"?sn:(typeof rn=="function"&&delete sn.format,{showTime:sn})}function Vs(Ee,xe,we){if(Ee===!1)return!1;const ot={clearIcon:xe!=null?xe:we};return typeof Ee=="object"?Object.assign(Object.assign({},ot),Ee):ot}var _s=z(71577);function Uu(Ee){return le.createElement(_s.ZP,Object.assign({size:"small",type:"primary"},Ee))}var Hs={button:Uu},Js=function(Ee,xe){var we={};for(var ot in Ee)Object.prototype.hasOwnProperty.call(Ee,ot)&&xe.indexOf(ot)<0&&(we[ot]=Ee[ot]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ot=Object.getOwnPropertySymbols(Ee);lt{const{prefixCls:lt,getPopupContainer:Tt,className:Bt,placement:rn,size:sn,disabled:Dn,bordered:Ca=!0,placeholder:Tn,popupClassName:zn,dropdownClassName:aa,status:ua,clearIcon:ln,allowClear:Ln,rootClassName:ma}=we,ro=Js(we,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Ga=le.useRef(null),{getPrefixCls:io,direction:ho,getPopupContainer:uo}=(0,le.useContext)(yr.E_),ja=io("picker",lt),{compactSize:Yr,compactItemClassnames:Ar}=(0,Ri.ri)(ja,ho),{format:Nr,showTime:al,picker:bl}=we,Ll=io(),[_l,Sl]=cl(ja),rl=Object.assign(Object.assign({},al?ws(Object.assign({format:Nr,picker:bl},al)):{}),bl==="time"?ws(Object.assign(Object.assign({format:Nr},we),{picker:bl})):{}),ll=(0,Fu.Z)(ql=>{var fi;return(fi=sn!=null?sn:Yr)!==null&&fi!==void 0?fi:ql}),Il=le.useContext(Wl.Z),Yl=Dn!=null?Dn:Il,yl=(0,le.useContext)(Eu.aM),{hasFeedback:Kl,status:Ei,feedbackIcon:ai}=yl,ki=le.createElement(le.Fragment,null,bl==="time"?le.createElement(De,null):le.createElement(de,null),Kl&&ai);(0,le.useImperativeHandle)(ot,()=>({focus:()=>{var ql;return(ql=Ga.current)===null||ql===void 0?void 0:ql.focus()},blur:()=>{var ql;return(ql=Ga.current)===null||ql===void 0?void 0:ql.blur()}}));const[gi]=(0,si.Z)("Calendar",Bi.Z),Li=Object.assign(Object.assign({},gi),we.locale);return _l(le.createElement(Mr,Object.assign({separator:le.createElement("span",{"aria-label":"to",className:`${ja}-separator`},le.createElement(Je,null)),disabled:Yl,ref:Ga,dropdownAlign:zs(ho,rn),placeholder:lc(Li,bl,Tn),suffixIcon:ki,prevIcon:le.createElement("span",{className:`${ja}-prev-icon`}),nextIcon:le.createElement("span",{className:`${ja}-next-icon`}),superPrevIcon:le.createElement("span",{className:`${ja}-super-prev-icon`}),superNextIcon:le.createElement("span",{className:`${ja}-super-next-icon`}),transitionName:`${Ll}-slide-up`},ro,rl,{className:He()({[`${ja}-${ll}`]:ll,[`${ja}-borderless`]:!Ca},(0,Fl.Z)(ja,(0,Fl.F)(Ei,ua),Kl),Sl,Ar,Bt,ma),locale:Li.lang,prefixCls:ja,getPopupContainer:Tt||uo,generateConfig:Ee,components:Hs,direction:ho,dropdownClassName:He()(Sl,zn||aa,ma),allowClear:Vs(Ln,ln,le.createElement(Ce.Z,null))})))})}var ss=function(Ee,xe){var we={};for(var ot in Ee)Object.prototype.hasOwnProperty.call(Ee,ot)&&xe.indexOf(ot)<0&&(we[ot]=Ee[ot]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ot=Object.getOwnPropertySymbols(Ee);lt{const{prefixCls:ua,getPopupContainer:ln,style:Ln,className:ma,rootClassName:ro,size:Ga,bordered:io=!0,placement:ho,placeholder:uo,popupClassName:ja,dropdownClassName:Yr,disabled:Ar,status:Nr,clearIcon:al,allowClear:bl}=zn,Ll=ss(zn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:_l,direction:Sl,getPopupContainer:rl,[Ca]:ll}=(0,le.useContext)(yr.E_),Il=_l("picker",ua),{compactSize:Yl,compactItemClassnames:yl}=(0,Ri.ri)(Il,Sl),Kl=le.useRef(null),{format:Ei,showTime:ai}=zn,[ki,gi]=cl(Il);(0,le.useImperativeHandle)(aa,()=>({focus:()=>{var zi;return(zi=Kl.current)===null||zi===void 0?void 0:zi.focus()},blur:()=>{var zi;return(zi=Kl.current)===null||zi===void 0?void 0:zi.blur()}}));const Li={showToday:!0};let ql={};sn&&(ql.picker=sn);const fi=sn||zn.picker;ql=Object.assign(Object.assign(Object.assign({},ql),ai?ws(Object.assign({format:Ei,picker:fi},ai)):{}),fi==="time"?ws(Object.assign(Object.assign({format:Ei},zn),{picker:fi})):{});const Ii=_l(),il=(0,Fu.Z)(zi=>{var Ou;return(Ou=Ga!=null?Ga:Yl)!==null&&Ou!==void 0?Ou:zi}),ji=le.useContext(Wl.Z),$i=Ar!=null?Ar:ji,yu=(0,le.useContext)(Eu.aM),{hasFeedback:el,status:pi,feedbackIcon:$l}=yu,Oi=le.createElement(le.Fragment,null,fi==="time"?le.createElement(De,null):le.createElement(de,null),el&&$l),[Vi]=(0,si.Z)("DatePicker",Bi.Z),mi=Object.assign(Object.assign({},Vi),zn.locale);return ki(le.createElement(bi,Object.assign({ref:Kl,placeholder:rc(mi,fi,uo),suffixIcon:Oi,dropdownAlign:zs(Sl,ho),prevIcon:le.createElement("span",{className:`${Il}-prev-icon`}),nextIcon:le.createElement("span",{className:`${Il}-next-icon`}),superPrevIcon:le.createElement("span",{className:`${Il}-super-prev-icon`}),superNextIcon:le.createElement("span",{className:`${Il}-super-next-icon`}),transitionName:`${Ii}-slide-up`},Li,Ll,ql,{locale:mi.lang,className:He()({[`${Il}-${il}`]:il,[`${Il}-borderless`]:!io},(0,Fl.Z)(Il,(0,Fl.F)(pi,Nr),el),gi,yl,ll==null?void 0:ll.className,ma,ro),style:Object.assign(Object.assign({},ll==null?void 0:ll.style),Ln),prefixCls:Il,getPopupContainer:ln||rl,generateConfig:Ee,components:Hs,direction:Sl,disabled:$i,dropdownClassName:He()(gi,ro,ja||Yr),allowClear:Vs(bl,al,le.createElement(Ce.Z,null))})))});return Dn&&(Tn.displayName=Dn),Tn}const we=xe(),ot=xe("week","WeekPicker"),lt=xe("month","MonthPicker"),Tt=xe("year","YearPicker"),Bt=xe("time","TimePicker"),rn=xe("quarter","QuarterPicker");return{DatePicker:we,WeekPicker:ot,MonthPicker:lt,YearPicker:Tt,TimePicker:Bt,QuarterPicker:rn}}const yc=null;function uc(Ee){const{DatePicker:xe,WeekPicker:we,MonthPicker:ot,YearPicker:lt,TimePicker:Tt,QuarterPicker:Bt}=Do(Ee),rn=ic(Ee),sn=xe;return sn.WeekPicker=we,sn.MonthPicker=ot,sn.YearPicker=lt,sn.RangePicker=rn,sn.TimePicker=Tt,sn.QuarterPicker=Bt,sn}var Xs=uc;const cs=Xs(ne);function Gs(Ee){const xe=zs(Ee.direction,Ee.placement);return xe.overflow.adjustY=!1,xe.overflow.adjustX=!1,Object.assign(Object.assign({},Ee),{dropdownAlign:xe})}const qs=(0,ae.Z)(cs,"picker",null,Gs);cs._InternalPanelDoNotUseOrYouWillBeFired=qs;const $s=(0,ae.Z)(cs.RangePicker,"picker",null,Gs);cs._InternalRangePanelDoNotUseOrYouWillBeFired=$s,cs.generatePicker=Xs;var ec=cs},96074:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Be}});var b=z(94184),re=z.n(b),Se=z(67294),Pe=z(53124),Ie=z(14747),Fe=z(67968),ue=z(45503);const Te=ce=>{const{componentCls:oe,sizePaddingEdgeHorizontal:a,colorSplit:E,lineWidth:x,textPaddingInline:y,orientationMargin:ee,verticalMarginInline:ne}=ce;return{[oe]:Object.assign(Object.assign({},(0,Ie.Wf)(ce)),{borderBlockStart:`${x}px solid ${E}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ne,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${E}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ce.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${oe}-with-text`]:{display:"flex",alignItems:"center",margin:`${ce.dividerHorizontalWithTextGutterMargin}px 0`,color:ce.colorTextHeading,fontWeight:500,fontSize:ce.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${E}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${oe}-with-text-left`]:{"&::before":{width:`${ee*100}%`},"&::after":{width:`${100-ee*100}%`}},[`&-horizontal${oe}-with-text-right`]:{"&::before":{width:`${100-ee*100}%`},"&::after":{width:`${ee*100}%`}},[`${oe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:y},"&-dashed":{background:"none",borderColor:E,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${oe}-with-text${oe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${oe}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${oe}-with-text`]:{color:ce.colorText,fontWeight:"normal",fontSize:ce.fontSize},[`&-horizontal${oe}-with-text-left${oe}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${oe}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${oe}-with-text-right${oe}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${oe}-inner-text`]:{paddingInlineEnd:a}}})}};var je=(0,Fe.Z)("Divider",ce=>{const oe=(0,ue.TS)(ce,{dividerHorizontalWithTextGutterMargin:ce.margin,dividerHorizontalGutterMargin:ce.marginLG,sizePaddingEdgeHorizontal:0});return[Te(oe)]},ce=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ce.marginXS})),Oe=function(ce,oe){var a={};for(var E in ce)Object.prototype.hasOwnProperty.call(ce,E)&&oe.indexOf(E)<0&&(a[E]=ce[E]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,E=Object.getOwnPropertySymbols(ce);x{const{getPrefixCls:oe,direction:a,divider:E}=Se.useContext(Pe.E_),{prefixCls:x,type:y="horizontal",orientation:ee="center",orientationMargin:ne,className:ae,rootClassName:ie,children:le,dashed:me,plain:fe,style:pe}=ce,he=Oe(ce,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),de=oe("divider",x),[se,Me]=je(de),be=ee.length>0?`-${ee}`:ee,De=!!le,Ce=ee==="left"&&ne!=null,Le=ee==="right"&&ne!=null,Ge=re()(de,E==null?void 0:E.className,Me,`${de}-${y}`,{[`${de}-with-text`]:De,[`${de}-with-text${be}`]:De,[`${de}-dashed`]:!!me,[`${de}-plain`]:!!fe,[`${de}-rtl`]:a==="rtl",[`${de}-no-default-orientation-margin-left`]:Ce,[`${de}-no-default-orientation-margin-right`]:Le},ae,ie),qe=Se.useMemo(()=>typeof ne=="number"?ne:/^\d+$/.test(ne)?Number(ne):ne,[ne]),Je=Object.assign(Object.assign({},Ce&&{marginLeft:qe}),Le&&{marginRight:qe});return se(Se.createElement("div",Object.assign({className:Ge,style:Object.assign(Object.assign({},E==null?void 0:E.style),pe)},he,{role:"separator"}),le&&y!=="vertical"&&Se.createElement("span",{className:`${de}-inner-text`,style:Je},le)))}},35874:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return nt}});var b=z(67294),re=z(91034),Se=z(94184),Pe=z.n(Se),Ie=z(87462),Fe=z(4942),ue=z(97685),Te=z(45987),je=z(62709),Oe=z(71002),Ze=z(12060);function Be(at,rt,jt){var yt=React.useRef({});return(!("value"in yt.current)||jt(yt.current.condition,rt))&&(yt.current.value=at(),yt.current.condition=rt),yt.current.value}function ce(at,rt){typeof at=="function"?at(rt):(0,Oe.Z)(at)==="object"&&at&&"current"in at&&(at.current=rt)}function oe(){for(var at=arguments.length,rt=new Array(at),jt=0;jt=x.F1&&jt<=x.F12)return!1;switch(jt){case x.ALT:case x.CAPS_LOCK:case x.CONTEXT_MENU:case x.CTRL:case x.DOWN:case x.END:case x.ESC:case x.HOME:case x.INSERT:case x.LEFT:case x.MAC_FF_META:case x.META:case x.NUMLOCK:case x.NUM_CENTER:case x.PAGE_DOWN:case x.PAGE_UP:case x.PAUSE:case x.PRINT_SCREEN:case x.RIGHT:case x.SHIFT:case x.UP:case x.WIN_KEY:case x.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rt){if(rt>=x.ZERO&&rt<=x.NINE||rt>=x.NUM_ZERO&&rt<=x.NUM_MULTIPLY||rt>=x.A&&rt<=x.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&rt===0)return!0;switch(rt){case x.SPACE:case x.QUESTION_MARK:case x.NUM_PLUS:case x.NUM_MINUS:case x.NUM_PERIOD:case x.NUM_DIVISION:case x.SEMICOLON:case x.DASH:case x.EQUALS:case x.COMMA:case x.PERIOD:case x.SLASH:case x.APOSTROPHE:case x.SINGLE_QUOTE:case x.OPEN_SQUARE_BRACKET:case x.BACKSLASH:case x.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},y=x,ee=function(rt){return+setTimeout(rt,16)},ne=function(rt){return clearTimeout(rt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ee=function(rt){return window.requestAnimationFrame(rt)},ne=function(rt){return window.cancelAnimationFrame(rt)});var ae=0,ie=new Map;function le(at){ie.delete(at)}var me=function(rt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ae+=1;var yt=ae;function Bn(It){if(It===0)le(yt),rt();else{var Fn=ee(function(){Bn(It-1)});ie.set(yt,Fn)}}return Bn(jt),yt};me.cancel=function(at){var rt=ie.get(at);return le(rt),ne(rt)};var fe=me,pe=y.ESC,he=y.TAB;function de(at){var rt=at.visible,jt=at.triggerRef,yt=at.onVisibleChange,Bn=at.autoFocus,It=at.overlayRef,Fn=b.useRef(!1),Zn=function(){if(rt){var jn,gt;(jn=jt.current)===null||jn===void 0||(gt=jn.focus)===null||gt===void 0||gt.call(jn),yt==null||yt(!1)}},_e=function(){var jn;return(jn=It.current)!==null&&jn!==void 0&&jn.focus?(It.current.focus(),Fn.current=!0,!0):!1},Pt=function(jn){switch(jn.keyCode){case pe:Zn();break;case he:{var gt=!1;Fn.current||(gt=_e()),gt?jn.preventDefault():Zn();break}}};b.useEffect(function(){return rt?(window.addEventListener("keydown",Pt),Bn&&fe(_e,3),function(){window.removeEventListener("keydown",Pt),Fn.current=!1}):function(){Fn.current=!1}},[rt])}var se=(0,b.forwardRef)(function(at,rt){var jt=at.overlay,yt=at.arrow,Bn=at.prefixCls,It=(0,b.useMemo)(function(){var Zn;return typeof jt=="function"?Zn=jt():Zn=jt,Zn},[jt]),Fn=oe(rt,It==null?void 0:It.ref);return b.createElement(b.Fragment,null,yt&&b.createElement("div",{className:"".concat(Bn,"-arrow")}),b.cloneElement(It,{ref:E(It)?Fn:void 0}))}),Me=se,be={adjustX:1,adjustY:1},De=[0,0],Ce={topLeft:{points:["bl","tl"],overflow:be,offset:[0,-4],targetOffset:De},top:{points:["bc","tc"],overflow:be,offset:[0,-4],targetOffset:De},topRight:{points:["br","tr"],overflow:be,offset:[0,-4],targetOffset:De},bottomLeft:{points:["tl","bl"],overflow:be,offset:[0,4],targetOffset:De},bottom:{points:["tc","bc"],overflow:be,offset:[0,4],targetOffset:De},bottomRight:{points:["tr","br"],overflow:be,offset:[0,4],targetOffset:De}},Le=Ce,Ge=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function qe(at,rt){var jt,yt=at.arrow,Bn=yt===void 0?!1:yt,It=at.prefixCls,Fn=It===void 0?"rc-dropdown":It,Zn=at.transitionName,_e=at.animation,Pt=at.align,Cn=at.placement,jn=Cn===void 0?"bottomLeft":Cn,gt=at.placements,wn=gt===void 0?Le:gt,ft=at.getPopupContainer,xt=at.showAction,At=at.hideAction,zt=at.overlayClassName,cn=at.overlayStyle,Yt=at.visible,Aa=at.trigger,ca=Aa===void 0?["hover"]:Aa,fa=at.autoFocus,Ha=at.overlay,wa=at.children,xn=at.onVisibleChange,to=(0,Te.Z)(at,Ge),ko=b.useState(),Qa=(0,ue.Z)(ko,2),jo=Qa[0],Io=Qa[1],hr="visible"in at?Yt:jo,dn=b.useRef(null),On=b.useRef(null),pa=b.useRef(null);b.useImperativeHandle(rt,function(){return dn.current});var Ua=function($n){Io($n),xn==null||xn($n)};de({visible:hr,triggerRef:pa,onVisibleChange:Ua,autoFocus:fa,overlayRef:On});var oa=function($n){var Kn=at.onOverlayClick;Io(!1),Kn&&Kn($n)},ya=function(){return b.createElement(Me,{ref:On,overlay:Ha,prefixCls:Fn,arrow:Bn})},sr=function(){return typeof Ha=="function"?ya:ya()},ul=function(){var $n=at.minOverlayWidthMatchTrigger,Kn=at.alignPoint;return"minOverlayWidthMatchTrigger"in at?$n:!Kn},Ft=function(){var $n=at.openClassName;return $n!==void 0?$n:"".concat(Fn,"-open")},pt=b.cloneElement(wa,{className:Pe()((jt=wa.props)===null||jt===void 0?void 0:jt.className,hr&&Ft()),ref:E(wa)?oe(pa,wa.ref):void 0}),Et=At;return!Et&&ca.indexOf("contextMenu")!==-1&&(Et=["click"]),b.createElement(je.Z,(0,Ie.Z)({builtinPlacements:wn},to,{prefixCls:Fn,ref:dn,popupClassName:Pe()(zt,(0,Fe.Z)({},"".concat(Fn,"-show-arrow"),Bn)),popupStyle:cn,action:ca,showAction:xt,hideAction:Et,popupPlacement:jn,popupAlign:Pt,popupTransitionName:Zn,popupAnimation:_e,popupVisible:hr,stretch:ul()?"minWidth":"",popup:sr(),onPopupVisibleChange:Ua,onPopupClick:oa,getPopupContainer:ft}),pt)}var Je=b.forwardRef(qe),Re=Je,He=z(60276),it=z(5663),$e=z(10366),Ne=z(80636),Ye=z(8745),Xe=z(96159),st=z(53124),ct=z(68508),Ct=z(76529),et=z(46605),Qt=z(66748);const un=null,In=at=>{const{menu:rt,arrow:jt,prefixCls:yt,children:Bn,trigger:It,disabled:Fn,dropdownRender:Zn,getPopupContainer:_e,overlayClassName:Pt,rootClassName:Cn,open:jn,onOpenChange:gt,visible:wn,onVisibleChange:ft,mouseEnterDelay:xt=.15,mouseLeaveDelay:At=.1,autoAdjustOverflow:zt=!0,placement:cn="",overlay:Yt,transitionName:Aa}=at,{getPopupContainer:ca,getPrefixCls:fa,direction:Ha}=b.useContext(st.E_),wa=b.useMemo(()=>{const pt=fa();return Aa!==void 0?Aa:cn.includes("top")?`${pt}-slide-down`:`${pt}-slide-up`},[fa,cn,Aa]),xn=b.useMemo(()=>cn?cn.includes("Center")?cn.slice(0,cn.indexOf("Center")):cn:Ha==="rtl"?"bottomRight":"bottomLeft",[cn,Ha]),to=fa("dropdown",yt),[ko,Qa]=(0,Qt.Z)(to),[,jo]=(0,et.Z)(),Io=b.Children.only(Bn),hr=(0,Xe.Tm)(Io,{className:Pe()(`${to}-trigger`,{[`${to}-rtl`]:Ha==="rtl"},Io.props.className),disabled:Fn}),dn=Fn?[]:It;let On;dn&&dn.includes("contextMenu")&&(On=!0);const[pa,Ua]=(0,it.Z)(!1,{value:jn!=null?jn:wn}),oa=(0,He.useEvent)(pt=>{gt==null||gt(pt),ft==null||ft(pt),Ua(pt)}),ya=Pe()(Pt,Cn,Qa,{[`${to}-rtl`]:Ha==="rtl"}),sr=(0,Ne.Z)({arrowPointAtCenter:typeof jt=="object"&&jt.pointAtCenter,autoAdjustOverflow:zt,offset:jo.marginXXS,arrowWidth:jt?jo.sizePopupArrow:0,borderRadius:jo.borderRadius}),ul=b.useCallback(()=>{Ua(!1)},[]),Ft=()=>{let pt;return rt!=null&&rt.items?pt=b.createElement(ct.default,Object.assign({},rt)):typeof Yt=="function"?pt=Yt():pt=Yt,Zn&&(pt=Zn(pt)),pt=b.Children.only(typeof pt=="string"?b.createElement("span",null,pt):pt),b.createElement(Ct.J,{prefixCls:`${to}-menu`,expandIcon:b.createElement("span",{className:`${to}-menu-submenu-arrow`},b.createElement(re.Z,{className:`${to}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ul,validator:Et=>{let{mode:Mn}=Et}},pt)};return ko(b.createElement(Re,Object.assign({alignPoint:On},(0,$e.Z)(at,["rootClassName"]),{mouseEnterDelay:xt,mouseLeaveDelay:At,visible:pa,builtinPlacements:sr,arrow:!!jt,overlayClassName:ya,prefixCls:to,getPopupContainer:_e||ca,transitionName:wa,trigger:dn,overlay:Ft,placement:xn,onVisibleChange:oa}),hr))};function gn(at){return Object.assign(Object.assign({},at),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Lt=(0,Ye.Z)(In,"dropdown",at=>at,gn),Ve=at=>b.createElement(Lt,Object.assign({},at),b.createElement("span",null));In._InternalPanelDoNotUseOrYouWillBeFired=Ve;var nt=In},85418:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return a}});var b=z(35874),re=z(94184),Se=z.n(re),Pe=z(67294),Ie=z(25877),Fe=z(71577),ue=z(53124),Te=z(93421),je=z(4173),Oe=z(66748),Ze=function(E,x){var y={};for(var ee in E)Object.prototype.hasOwnProperty.call(E,ee)&&x.indexOf(ee)<0&&(y[ee]=E[ee]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,ee=Object.getOwnPropertySymbols(E);ne{const{getPopupContainer:x,getPrefixCls:y,direction:ee}=Pe.useContext(ue.E_),{prefixCls:ne,type:ae="default",danger:ie,disabled:le,loading:me,onClick:fe,htmlType:pe,children:he,className:de,menu:se,arrow:Me,autoFocus:be,overlay:De,trigger:Ce,align:Le,open:Ge,onOpenChange:qe,placement:Je,getPopupContainer:Re,href:He,icon:it=Pe.createElement(Ie.Z,null),title:$e,buttonsRender:Ne=Fn=>Fn,mouseEnterDelay:Ye,mouseLeaveDelay:Xe,overlayClassName:st,overlayStyle:ct,destroyPopupOnHide:Ct,dropdownRender:et}=E,Qt=Ze(E,["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"]),un=y("dropdown",ne),In=`${un}-button`,[gn,Lt]=(0,Oe.Z)(un),Ve={menu:se,arrow:Me,autoFocus:be,align:Le,disabled:le,trigger:le?[]:Ce,onOpenChange:qe,getPopupContainer:Re||x,mouseEnterDelay:Ye,mouseLeaveDelay:Xe,overlayClassName:st,overlayStyle:ct,destroyPopupOnHide:Ct,dropdownRender:et},{compactSize:nt,compactItemClassnames:at}=(0,je.ri)(un,ee),rt=Se()(In,at,de,Lt);"overlay"in E&&(Ve.overlay=De),"open"in E&&(Ve.open=Ge),"placement"in E?Ve.placement=Je:Ve.placement=ee==="rtl"?"bottomLeft":"bottomRight";const jt=Pe.createElement(Fe.ZP,{type:ae,danger:ie,disabled:le,loading:me,onClick:fe,htmlType:pe,href:He,title:$e},he),yt=Pe.createElement(Fe.ZP,{type:ae,danger:ie,icon:it}),[Bn,It]=Ne([jt,yt]);return gn(Pe.createElement(Te.Z.Compact,Object.assign({className:rt,size:nt,block:!0},Qt),Bn,Pe.createElement(b.Z,Object.assign({},Ve),It)))};Be.__ANT_BUTTON=!0;var ce=Be;const oe=b.Z;oe.Button=ce;var a=oe},66748:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Ze}});var b=z(14747),re=z(67771),Se=z(33297),Pe=z(50438),Ie=z(97414),Fe=z(67968),ue=z(45503),je=Be=>{const{componentCls:ce,menuCls:oe,colorError:a,colorTextLightSolid:E}=Be,x=`${oe}-item`;return{[`${ce}, ${ce}-menu-submenu`]:{[`${oe} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:E,backgroundColor:a}}}}}};const Oe=Be=>{const{componentCls:ce,menuCls:oe,zIndexPopup:a,dropdownArrowDistance:E,sizePopupArrow:x,antCls:y,iconCls:ee,motionDurationMid:ne,dropdownPaddingVertical:ae,fontSize:ie,dropdownEdgeChildPadding:le,colorTextDisabled:me,fontSizeIcon:fe,controlPaddingHorizontal:pe,colorBgElevated:he}=Be;return[{[ce]:Object.assign(Object.assign({},(0,b.Wf)(Be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-E+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${ee}-down, & > ${y}-btn-icon > ${ee}-down`]:{fontSize:fe}},[`${ce}-wrap`]:{position:"relative",[`${y}-btn > ${ee}-down`]:{fontSize:fe},[`${ee}-down::before`]:{transition:`transform ${ne}`}},[`${ce}-wrap-open`]:{[`${ee}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${ce}-placement-bottomLeft, &${y}-slide-down-appear${y}-slide-down-appear-active${ce}-placement-bottomLeft, &${y}-slide-down-enter${y}-slide-down-enter-active${ce}-placement-bottom, &${y}-slide-down-appear${y}-slide-down-appear-active${ce}-placement-bottom, &${y}-slide-down-enter${y}-slide-down-enter-active${ce}-placement-bottomRight, &${y}-slide-down-appear${y}-slide-down-appear-active${ce}-placement-bottomRight`]:{animationName:re.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${ce}-placement-topLeft, &${y}-slide-up-appear${y}-slide-up-appear-active${ce}-placement-topLeft, &${y}-slide-up-enter${y}-slide-up-enter-active${ce}-placement-top, &${y}-slide-up-appear${y}-slide-up-appear-active${ce}-placement-top, &${y}-slide-up-enter${y}-slide-up-enter-active${ce}-placement-topRight, &${y}-slide-up-appear${y}-slide-up-appear-active${ce}-placement-topRight`]:{animationName:re.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${ce}-placement-bottomLeft, &${y}-slide-down-leave${y}-slide-down-leave-active${ce}-placement-bottom, &${y}-slide-down-leave${y}-slide-down-leave-active${ce}-placement-bottomRight`]:{animationName:re.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${ce}-placement-topLeft, &${y}-slide-up-leave${y}-slide-up-leave-active${ce}-placement-top, &${y}-slide-up-leave${y}-slide-up-leave-active${ce}-placement-topRight`]:{animationName:re.ly}})},(0,Ie.ZP)(Be,{colorBg:he,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ce} ${oe}`]:{position:"relative",margin:0},[`${oe}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ce}, ${ce}-menu-submenu`]:{[oe]:Object.assign(Object.assign({padding:le,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,b.Qy)(Be)),{[`${oe}-item-group-title`]:{padding:`${ae}px ${pe}px`,color:Be.colorTextDescription,transition:`all ${ne}`},[`${oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${oe}-item-icon`]:{minWidth:ie,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ne}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${oe}-item, ${oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ae}px ${pe}px`,color:Be.colorText,fontWeight:"normal",fontSize:ie,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${ne}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,b.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:me,cursor:"not-allowed","&:hover":{color:me,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${ce}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${ce}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:fe,fontStyle:"normal"}}}),[`${oe}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${oe}-submenu-title`]:{paddingInlineEnd:pe+Be.fontSizeSM},[`${oe}-submenu-vertical`]:{position:"relative"},[`${oe}-submenu${oe}-submenu-disabled ${ce}-menu-submenu-title`]:{[`&, ${ce}-menu-submenu-arrow-icon`]:{color:me,backgroundColor:he,cursor:"not-allowed"}},[`${oe}-submenu-selected ${ce}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,re.oN)(Be,"slide-up"),(0,re.oN)(Be,"slide-down"),(0,Se.Fm)(Be,"move-up"),(0,Se.Fm)(Be,"move-down"),(0,Pe._y)(Be,"zoom-big")]]};var Ze=(0,Fe.Z)("Dropdown",(Be,ce)=>{let{rootPrefixCls:oe}=ce;const{marginXXS:a,sizePopupArrow:E,controlHeight:x,fontSize:y,lineHeight:ee,paddingXXS:ne,componentCls:ae,borderRadiusLG:ie}=Be,le=(x-y*ee)/2,{dropdownArrowOffset:me}=(0,Ie.fS)({contentRadius:ie}),fe=(0,ue.TS)(Be,{menuCls:`${ae}-menu`,rootPrefixCls:oe,dropdownArrowDistance:E/2+a,dropdownArrowOffset:me,dropdownPaddingVertical:le,dropdownEdgeChildPadding:ne});return[Oe(fe),je(fe)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},25378:function(ut,Ue,z){"use strict";var b=z(67294),re=z(14075),Se=z(57838),Pe=z(74443);function Ie(){let Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,b.useRef)({}),Te=(0,Se.Z)(),je=(0,Pe.ZP)();return(0,re.Z)(()=>{const Oe=je.subscribe(Ze=>{ue.current=Ze,Fe&&Te()});return()=>je.unsubscribe(Oe)},[]),ue.current}Ue.Z=Ie},71322:function(ut,Ue,z){"use strict";z.d(Ue,{D:function(){return ee},Z:function(){return ie}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(me,fe){return re.createElement(Ie.Z,(0,b.Z)({},me,{ref:fe,icon:Pe}))},ue=re.forwardRef(Fe),Te=z(22751),je=z(91034),Oe=z(94184),Ze=z.n(Oe),Be=z(10366),oe=le=>!isNaN(parseFloat(le))&&isFinite(le),a=z(53124),E=z(84321),x=function(le,me){var fe={};for(var pe in le)Object.prototype.hasOwnProperty.call(le,pe)&&me.indexOf(pe)<0&&(fe[pe]=le[pe]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,pe=Object.getOwnPropertySymbols(le);he{let le=0;return function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${me}${le}`}})();var ie=re.forwardRef((le,me)=>{const{prefixCls:fe,className:pe,trigger:he,children:de,defaultCollapsed:se=!1,theme:Me="dark",style:be={},collapsible:De=!1,reverseArrow:Ce=!1,width:Le=200,collapsedWidth:Ge=80,zeroWidthTriggerStyle:qe,breakpoint:Je,onCollapse:Re,onBreakpoint:He}=le,it=x(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$e}=(0,re.useContext)(E.Gs),[Ne,Ye]=(0,re.useState)("collapsed"in le?le.collapsed:se),[Xe,st]=(0,re.useState)(!1);(0,re.useEffect)(()=>{"collapsed"in le&&Ye(le.collapsed)},[le.collapsed]);const ct=(gn,Lt)=>{"collapsed"in le||Ye(gn),Re==null||Re(gn,Lt)},Ct=(0,re.useRef)();Ct.current=gn=>{st(gn.matches),He==null||He(gn.matches),Ne!==gn.matches&&ct(gn.matches,"responsive")},(0,re.useEffect)(()=>{function gn(Ve){return Ct.current(Ve)}let Lt;if(typeof window!="undefined"){const{matchMedia:Ve}=window;if(Ve&&Je&&Je in y){Lt=Ve(`(max-width: ${y[Je]})`);try{Lt.addEventListener("change",gn)}catch(nt){Lt.addListener(gn)}gn(Lt)}}return()=>{try{Lt==null||Lt.removeEventListener("change",gn)}catch(Ve){Lt==null||Lt.removeListener(gn)}}},[Je]),(0,re.useEffect)(()=>{const gn=ne("ant-sider-");return $e.addSider(gn),()=>$e.removeSider(gn)},[]);const et=()=>{ct(!Ne,"clickTrigger")},{getPrefixCls:Qt}=(0,re.useContext)(a.E_),un=()=>{const gn=Qt("layout-sider",fe),Lt=(0,Be.Z)(it,["collapsed"]),Ve=Ne?Ge:Le,nt=oe(Ve)?`${Ve}px`:String(Ve),at=parseFloat(String(Ge||0))===0?re.createElement("span",{onClick:et,className:Ze()(`${gn}-zero-width-trigger`,`${gn}-zero-width-trigger-${Ce?"right":"left"}`),style:qe},he||re.createElement(ue,null)):null,yt={expanded:Ce?re.createElement(je.Z,null):re.createElement(Te.Z,null),collapsed:Ce?re.createElement(Te.Z,null):re.createElement(je.Z,null)}[Ne?"collapsed":"expanded"],Bn=he!==null?at||re.createElement("div",{className:`${gn}-trigger`,onClick:et,style:{width:nt}},he||yt):null,It=Object.assign(Object.assign({},be),{flex:`0 0 ${nt}`,maxWidth:nt,minWidth:nt,width:nt}),Fn=Ze()(gn,`${gn}-${Me}`,{[`${gn}-collapsed`]:!!Ne,[`${gn}-has-trigger`]:De&&he!==null&&!at,[`${gn}-below`]:!!Xe,[`${gn}-zero-width`]:parseFloat(nt)===0},pe);return re.createElement("aside",Object.assign({className:Fn},Lt,{style:It,ref:me}),re.createElement("div",{className:`${gn}-children`},de),De||Xe&&at?Bn:null)},In=re.useMemo(()=>({siderCollapsed:Ne}),[Ne]);return re.createElement(ee.Provider,{value:In},un())})},84321:function(ut,Ue,z){"use strict";z.d(Ue,{VY:function(){return ne},$_:function(){return ee},h4:function(){return y},Gs:function(){return ce},ZP:function(){return ae}});var b=z(74902),re=z(94184),Se=z.n(re),Pe=z(10366),Ie=z(67294),Fe=z(53124),ue=z(67968),je=ie=>{const{componentCls:le,bodyBg:me,lightSiderBg:fe,lightTriggerBg:pe,lightTriggerColor:he}=ie;return{[`${le}-sider-light`]:{background:fe,[`${le}-sider-trigger`]:{color:he,background:pe},[`${le}-sider-zero-width-trigger`]:{color:he,background:pe,border:`1px solid ${me}`,borderInlineStart:0}}}};const Oe=ie=>{const{antCls:le,componentCls:me,colorText:fe,triggerColor:pe,footerBg:he,triggerBg:de,headerHeight:se,headerPadding:Me,headerColor:be,footerPadding:De,triggerHeight:Ce,zeroTriggerHeight:Le,zeroTriggerWidth:Ge,motionDurationMid:qe,motionDurationSlow:Je,fontSize:Re,borderRadius:He,bodyBg:it,headerBg:$e,siderBg:Ne}=ie;return{[me]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:it,"&, *":{boxSizing:"border-box"},[`&${me}-has-sider`]:{flexDirection:"row",[`> ${me}, > ${me}-content`]:{width:0}},[`${me}-header, &${me}-footer`]:{flex:"0 0 auto"},[`${me}-sider`]:{position:"relative",minWidth:0,background:Ne,transition:`all ${qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${le}-menu${le}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ce},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ce,color:pe,lineHeight:`${Ce}px`,textAlign:"center",background:de,cursor:"pointer",transition:`all ${qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:se,insetInlineEnd:-Ge,zIndex:1,width:Ge,height:Le,color:pe,fontSize:ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ne,borderStartStartRadius:0,borderStartEndRadius:He,borderEndEndRadius:He,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Je} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Je}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ge,borderStartStartRadius:He,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:He}}}}},je(ie)),{"&-rtl":{direction:"rtl"}}),[`${me}-header`]:{height:se,padding:Me,color:be,lineHeight:`${se}px`,background:$e,[`${le}-menu`]:{lineHeight:"inherit"}},[`${me}-footer`]:{padding:De,color:fe,fontSize:Re,background:he},[`${me}-content`]:{flex:"auto",minHeight:0}}};var Ze=(0,ue.Z)("Layout",ie=>[Oe(ie)],ie=>{const{colorBgLayout:le,controlHeight:me,controlHeightLG:fe,colorText:pe,controlHeightSM:he,marginXXS:de,colorTextLightSolid:se,colorBgContainer:Me}=ie,be=fe*1.25;return{colorBgHeader:"#001529",colorBgBody:le,colorBgTrigger:"#002140",bodyBg:le,headerBg:"#001529",headerHeight:me*2,headerPadding:`0 ${be}px`,headerColor:pe,footerPadding:`${he}px ${be}px`,footerBg:le,siderBg:"#001529",triggerHeight:fe+de*2,triggerBg:"#002140",triggerColor:se,zeroTriggerWidth:fe,zeroTriggerHeight:fe,lightSiderBg:Me,lightTriggerBg:Me,lightTriggerColor:pe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=function(ie,le){var me={};for(var fe in ie)Object.prototype.hasOwnProperty.call(ie,fe)&&le.indexOf(fe)<0&&(me[fe]=ie[fe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,fe=Object.getOwnPropertySymbols(ie);penull,removeSider:()=>null}});function oe(ie){let{suffixCls:le,tagName:me,displayName:fe}=ie;return pe=>Ie.forwardRef((de,se)=>Ie.createElement(pe,Object.assign({ref:se,suffixCls:le,tagName:me},de)))}const a=Ie.forwardRef((ie,le)=>{const{prefixCls:me,suffixCls:fe,className:pe,tagName:he}=ie,de=Be(ie,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:se}=Ie.useContext(Fe.E_),Me=se("layout",me),[be,De]=Ze(Me),Ce=fe?`${Me}-${fe}`:Me;return be(Ie.createElement(he,Object.assign({className:Se()(me||Ce,pe,De),ref:le},de)))}),E=Ie.forwardRef((ie,le)=>{const{direction:me}=Ie.useContext(Fe.E_),[fe,pe]=Ie.useState([]),{prefixCls:he,className:de,rootClassName:se,children:Me,hasSider:be,tagName:De,style:Ce}=ie,Le=Be(ie,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ge=(0,Pe.Z)(Le,["suffixCls"]),{getPrefixCls:qe,layout:Je}=Ie.useContext(Fe.E_),Re=qe("layout",he),[He,it]=Ze(Re),$e=Se()(Re,{[`${Re}-has-sider`]:typeof be=="boolean"?be:fe.length>0,[`${Re}-rtl`]:me==="rtl"},Je==null?void 0:Je.className,de,se,it),Ne=Ie.useMemo(()=>({siderHook:{addSider:Ye=>{pe(Xe=>[].concat((0,b.Z)(Xe),[Ye]))},removeSider:Ye=>{pe(Xe=>Xe.filter(st=>st!==Ye))}}}),[]);return He(Ie.createElement(ce.Provider,{value:Ne},Ie.createElement(De,Object.assign({ref:le,className:$e,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),Ce)},Ge),Me)))}),x=oe({tagName:"div",displayName:"Layout"})(E),y=oe({suffixCls:"header",tagName:"header",displayName:"Header"})(a),ee=oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),ne=oe({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ae=x},76529:function(ut,Ue,z){"use strict";z.d(Ue,{J:function(){return Fe}});var b=z(67294),re=z(4173),Se=z(60276),Pe=function(ue,Te){var je={};for(var Oe in ue)Object.prototype.hasOwnProperty.call(ue,Oe)&&Te.indexOf(Oe)<0&&(je[Oe]=ue[Oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Oe=Object.getOwnPropertySymbols(ue);Ze{const{children:je}=ue,Oe=Pe(ue,["children"]),Ze=b.useContext(Ie),Be=b.useMemo(()=>Object.assign(Object.assign({},Ze),Oe),[Ze,Oe.prefixCls,Oe.mode,Oe.selectable]);return b.createElement(Ie.Provider,{value:Be},b.createElement(re.BR,null,(0,Se.supportNodeRef)(je)?b.cloneElement(je,{ref:Te}):je))});Ue.Z=Ie},68508:function(ut,Ue,z){"use strict";z.d(Ue,{default:function(){return gn}});var b=z(78595),re=z(67294),Se=z(71322),Pe=z(94184),Ie=z.n(Pe),Fe=z(53124),ue=function(Lt,Ve){var nt={};for(var at in Lt)Object.prototype.hasOwnProperty.call(Lt,at)&&Ve.indexOf(at)<0&&(nt[at]=Lt[at]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(Lt);rt{const{prefixCls:Ve,className:nt,dashed:at}=Lt,rt=ue(Lt,["prefixCls","className","dashed"]),{getPrefixCls:jt}=re.useContext(Fe.E_),yt=jt("menu",Ve),Bn=Ie()({[`${yt}-item-divider-dashed`]:!!at},nt);return re.createElement(b.iz,Object.assign({className:Bn},rt))},Oe=z(37419),Ze=z(10366),Be=z(83062),ce=z(96159),a=(0,re.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Lt=>{var Ve;const{className:nt,children:at,icon:rt,title:jt,danger:yt}=Lt,{prefixCls:Bn,firstLevel:It,direction:Fn,disableMenuItemTitleTooltip:Zn,inlineCollapsed:_e}=re.useContext(a),Pt=xt=>{const At=re.createElement("span",{className:`${Bn}-title-content`},at);return(!rt||(0,ce.l$)(at)&&at.type==="span")&&at&&xt&&It&&typeof at=="string"?re.createElement("div",{className:`${Bn}-inline-collapsed-noicon`},at.charAt(0)):At},{siderCollapsed:Cn}=re.useContext(Se.D);let jn=jt;typeof jt=="undefined"?jn=It?at:"":jt===!1&&(jn="");const gt={title:jn};!Cn&&!_e&&(gt.title=null,gt.open=!1);const wn=(0,Oe.Z)(at).length;let ft=re.createElement(b.ck,Object.assign({},(0,Ze.Z)(Lt,["title","icon","danger"]),{className:Ie()({[`${Bn}-item-danger`]:yt,[`${Bn}-item-only-child`]:(rt?wn+1:wn)===1},nt),title:typeof jt=="string"?jt:void 0}),(0,ce.Tm)(rt,{className:Ie()((0,ce.l$)(rt)?(Ve=rt.props)===null||Ve===void 0?void 0:Ve.className:"",`${Bn}-item-icon`)}),Pt(_e));return Zn||(ft=re.createElement(Be.Z,Object.assign({},gt,{placement:Fn==="rtl"?"left":"right",overlayClassName:`${Bn}-inline-collapsed-tooltip`}),ft)),ft},ee=Lt=>{var Ve;const{popupClassName:nt,icon:at,title:rt,theme:jt}=Lt,yt=re.useContext(a),{prefixCls:Bn,inlineCollapsed:It,theme:Fn}=yt,Zn=(0,b.Xl)();let _e;if(!at)_e=It&&!Zn.length&&rt&&typeof rt=="string"?re.createElement("div",{className:`${Bn}-inline-collapsed-noicon`},rt.charAt(0)):re.createElement("span",{className:`${Bn}-title-content`},rt);else{const Cn=(0,ce.l$)(rt)&&rt.type==="span";_e=re.createElement(re.Fragment,null,(0,ce.Tm)(at,{className:Ie()((0,ce.l$)(at)?(Ve=at.props)===null||Ve===void 0?void 0:Ve.className:"",`${Bn}-item-icon`)}),Cn?rt:re.createElement("span",{className:`${Bn}-title-content`},rt))}const Pt=re.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]);return re.createElement(a.Provider,{value:Pt},re.createElement(b.Wd,Object.assign({},(0,Ze.Z)(Lt,["icon"]),{title:_e,popupClassName:Ie()(Bn,nt,`${Bn}-${jt||Fn}`)})))},ne=z(25877),ae=z(60276),ie=z(33603),le=z(76529),me=function(Lt,Ve){var nt={};for(var at in Lt)Object.prototype.hasOwnProperty.call(Lt,at)&&Ve.indexOf(at)<0&&(nt[at]=Lt[at]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(Lt);rt{if(Ve&&typeof Ve=="object"){const at=Ve,{label:rt,children:jt,key:yt,type:Bn}=at,It=me(at,["label","children","key","type"]),Fn=yt!=null?yt:`tmp-${nt}`;return jt||Bn==="group"?Bn==="group"?re.createElement(b.BW,Object.assign({key:Fn},It,{title:rt}),fe(jt)):re.createElement(ee,Object.assign({key:Fn},It,{title:rt}),fe(jt)):Bn==="divider"?re.createElement(je,Object.assign({key:Fn},It)):re.createElement(x,Object.assign({key:Fn},It),rt)}return null}).filter(Ve=>Ve)}function pe(Lt){return re.useMemo(()=>Lt&&fe(Lt),[Lt])}var he=z(84780),de=z(14747),se=z(33507),Me=z(67771),be=z(50438),De=z(67968),Ce=z(45503),Ge=Lt=>{const{componentCls:Ve,motionDurationSlow:nt,horizontalLineHeight:at,colorSplit:rt,lineWidth:jt,lineType:yt,itemPaddingInline:Bn}=Lt;return{[`${Ve}-horizontal`]:{lineHeight:at,border:0,borderBottom:`${jt}px ${yt} ${rt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ve}-item, ${Ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bn},[`> ${Ve}-item:hover, > ${Ve}-item-active, > ${Ve}-submenu ${Ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ve}-item, ${Ve}-submenu-title`]:{transition:[`border-color ${nt}`,`background ${nt}`].join(",")},[`${Ve}-submenu-arrow`]:{display:"none"}}}},Je=Lt=>{let{componentCls:Ve,menuArrowOffset:nt}=Lt;return{[`${Ve}-rtl`]:{direction:"rtl"},[`${Ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ve}-rtl${Ve}-vertical, ${Ve}-submenu-rtl ${Ve}-vertical`]:{[`${Ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${nt})`},"&::after":{transform:`rotate(45deg) translateY(${nt})`}}}}};const Re=Lt=>Object.assign({},(0,de.oN)(Lt));var it=(Lt,Ve)=>{const{componentCls:nt,itemColor:at,itemSelectedColor:rt,groupTitleColor:jt,itemBg:yt,subMenuItemBg:Bn,itemSelectedBg:It,activeBarHeight:Fn,activeBarWidth:Zn,activeBarBorderWidth:_e,motionDurationSlow:Pt,motionEaseInOut:Cn,motionEaseOut:jn,itemPaddingInline:gt,motionDurationMid:wn,itemHoverColor:ft,lineType:xt,colorSplit:At,itemDisabledColor:zt,dangerItemColor:cn,dangerItemHoverColor:Yt,dangerItemSelectedColor:Aa,dangerItemActiveBg:ca,dangerItemSelectedBg:fa,itemHoverBg:Ha,itemActiveBg:wa,menuSubMenuBg:xn,horizontalItemSelectedColor:to,horizontalItemSelectedBg:ko,horizontalItemBorderRadius:Qa,horizontalItemHoverBg:jo,popupBg:Io}=Lt;return{[`${nt}-${Ve}, ${nt}-${Ve} > ${nt}`]:{color:at,background:yt,[`&${nt}-root:focus-visible`]:Object.assign({},Re(Lt)),[`${nt}-item-group-title`]:{color:jt},[`${nt}-submenu-selected`]:{[`> ${nt}-submenu-title`]:{color:rt}},[`${nt}-item-disabled, ${nt}-submenu-disabled`]:{color:`${zt} !important`},[`${nt}-item:not(${nt}-item-selected):not(${nt}-submenu-selected)`]:{[`&:hover, > ${nt}-submenu-title:hover`]:{color:ft}},[`&:not(${nt}-horizontal)`]:{[`${nt}-item:not(${nt}-item-selected)`]:{"&:hover":{backgroundColor:Ha},"&:active":{backgroundColor:wa}},[`${nt}-submenu-title`]:{"&:hover":{backgroundColor:Ha},"&:active":{backgroundColor:wa}}},[`${nt}-item-danger`]:{color:cn,[`&${nt}-item:hover`]:{[`&:not(${nt}-item-selected):not(${nt}-submenu-selected)`]:{color:Yt}},[`&${nt}-item:active`]:{background:ca}},[`${nt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${nt}-item-selected`]:{color:rt,[`&${nt}-item-danger`]:{color:Aa},"a, a:hover":{color:"inherit"}},[`& ${nt}-item-selected`]:{backgroundColor:It,[`&${nt}-item-danger`]:{backgroundColor:fa}},[`${nt}-item, ${nt}-submenu-title`]:{[`&:not(${nt}-item-disabled):focus-visible`]:Object.assign({},Re(Lt))},[`&${nt}-submenu > ${nt}`]:{backgroundColor:xn},[`&${nt}-popup > ${nt}`]:{backgroundColor:Io},[`&${nt}-horizontal`]:Object.assign(Object.assign({},Ve==="dark"?{borderBottom:0}:{}),{[`> ${nt}-item, > ${nt}-submenu`]:{top:_e,marginTop:-_e,marginBottom:0,borderRadius:Qa,"&::after":{position:"absolute",insetInline:gt,bottom:0,borderBottom:`${Fn}px solid transparent`,transition:`border-color ${Pt} ${Cn}`,content:'""'},"&:hover, &-active, &-open":{background:jo,"&::after":{borderBottomWidth:Fn,borderBottomColor:to}},"&-selected":{color:to,backgroundColor:ko,"&:hover":{backgroundColor:ko},"&::after":{borderBottomWidth:Fn,borderBottomColor:to}}}}),[`&${nt}-root`]:{[`&${nt}-inline, &${nt}-vertical`]:{borderInlineEnd:`${_e}px ${xt} ${At}`}},[`&${nt}-inline`]:{[`${nt}-sub${nt}-inline`]:{background:Bn},[`${nt}-item, ${nt}-submenu-title`]:_e&&Zn?{width:`calc(100% + ${_e}px)`}:{},[`${nt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Zn}px solid ${rt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${wn} ${jn}`,`opacity ${wn} ${jn}`].join(","),content:'""'},[`&${nt}-item-danger`]:{"&::after":{borderInlineEndColor:Aa}}},[`${nt}-selected, ${nt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${wn} ${Cn}`,`opacity ${wn} ${Cn}`].join(",")}}}}}};const $e=Lt=>{const{componentCls:Ve,itemHeight:nt,itemMarginInline:at,padding:rt,menuArrowSize:jt,marginXS:yt,itemMarginBlock:Bn}=Lt,It=rt+jt+yt;return{[`${Ve}-item`]:{position:"relative",overflow:"hidden"},[`${Ve}-item, ${Ve}-submenu-title`]:{height:nt,lineHeight:`${nt}px`,paddingInline:rt,overflow:"hidden",textOverflow:"ellipsis",marginInline:at,marginBlock:Bn,width:`calc(100% - ${at*2}px)`},[`> ${Ve}-item, > ${Ve}-submenu > ${Ve}-submenu-title`]:{height:nt,lineHeight:`${nt}px`},[`${Ve}-item-group-list ${Ve}-submenu-title, ${Ve}-submenu-title`]:{paddingInlineEnd:It}}};var Ye=Lt=>{const{componentCls:Ve,iconCls:nt,itemHeight:at,colorTextLightSolid:rt,dropdownWidth:jt,controlHeightLG:yt,motionDurationMid:Bn,motionEaseOut:It,paddingXL:Fn,itemMarginInline:Zn,fontSizeLG:_e,motionDurationSlow:Pt,paddingXS:Cn,boxShadowSecondary:jn,collapsedWidth:gt,collapsedIconSize:wn}=Lt,ft={height:at,lineHeight:`${at}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ve]:{"&-inline, &-vertical":Object.assign({[`&${Ve}-root`]:{boxShadow:"none"}},$e(Lt))},[`${Ve}-submenu-popup`]:{[`${Ve}-vertical`]:Object.assign(Object.assign({},$e(Lt)),{boxShadow:jn})}},{[`${Ve}-submenu-popup ${Ve}-vertical${Ve}-sub`]:{minWidth:jt,maxHeight:`calc(100vh - ${yt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ve}-inline`]:{width:"100%",[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pt}`,`background ${Pt}`,`padding ${Bn} ${It}`].join(","),[`> ${Ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ve}-sub${Ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ve}-submenu > ${Ve}-submenu-title`]:ft,[`& ${Ve}-item-group-title`]:{paddingInlineStart:Fn}},[`${Ve}-item`]:ft}},{[`${Ve}-inline-collapsed`]:{width:gt,[`&${Ve}-root`]:{[`${Ve}-item, ${Ve}-submenu ${Ve}-submenu-title`]:{[`> ${Ve}-inline-collapsed-noicon`]:{fontSize:_e,textAlign:"center"}}},[`> ${Ve}-item, > ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-item, > ${Ve}-item-group > ${Ve}-item-group-list > ${Ve}-submenu > ${Ve}-submenu-title, > ${Ve}-submenu > ${Ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${_e/2}px - ${Zn}px)`,textOverflow:"clip",[` ${Ve}-submenu-arrow, ${Ve}-submenu-expand-icon `]:{opacity:0},[`${Ve}-item-icon, ${nt}`]:{margin:0,fontSize:wn,lineHeight:`${at}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ve}-item-icon, ${nt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ve}-item-icon, ${nt}`]:{display:"none"},"a, a:hover":{color:rt}},[`${Ve}-item-group-title`]:Object.assign(Object.assign({},de.vS),{paddingInline:Cn})}}]};const Xe=Lt=>{const{componentCls:Ve,motionDurationSlow:nt,motionDurationMid:at,motionEaseInOut:rt,motionEaseOut:jt,iconCls:yt,iconSize:Bn,iconMarginInlineEnd:It}=Lt;return{[`${Ve}-item, ${Ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${nt}`,`background ${nt}`,`padding ${nt} ${rt}`].join(","),[`${Ve}-item-icon, ${yt}`]:{minWidth:Bn,fontSize:Bn,transition:[`font-size ${at} ${jt}`,`margin ${nt} ${rt}`,`color ${nt}`].join(","),"+ span":{marginInlineStart:It,opacity:1,transition:[`opacity ${nt} ${rt}`,`margin ${nt}`,`color ${nt}`].join(",")}},[`${Ve}-item-icon`]:Object.assign({},(0,de.Ro)()),[`&${Ve}-item-only-child`]:{[`> ${yt}, > ${Ve}-item-icon`]:{marginInlineEnd:0}}},[`${Ve}-item-disabled, ${Ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},st=Lt=>{const{componentCls:Ve,motionDurationSlow:nt,motionEaseInOut:at,borderRadius:rt,menuArrowSize:jt,menuArrowOffset:yt}=Lt;return{[`${Ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Lt.margin,width:jt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${nt} ${at}, opacity ${nt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:jt*.6,height:jt*.15,backgroundColor:"currentcolor",borderRadius:rt,transition:[`background ${nt} ${at}`,`transform ${nt} ${at}`,`top ${nt} ${at}`,`color ${nt} ${at}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${yt})`},"&::after":{transform:`rotate(-45deg) translateY(${yt})`}}}}},ct=Lt=>{const{antCls:Ve,componentCls:nt,fontSize:at,motionDurationSlow:rt,motionDurationMid:jt,motionEaseInOut:yt,paddingXS:Bn,padding:It,colorSplit:Fn,lineWidth:Zn,zIndexPopup:_e,borderRadiusLG:Pt,subMenuItemBorderRadius:Cn,menuArrowSize:jn,menuArrowOffset:gt,lineType:wn,menuPanelMaskInset:ft,groupTitleLineHeight:xt,groupTitleFontSize:At}=Lt;return[{"":{[`${nt}`]:Object.assign(Object.assign({},(0,de.dF)()),{"&-hidden":{display:"none"}})},[`${nt}-submenu-hidden`]:{display:"none"}},{[nt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Lt)),(0,de.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:at,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${rt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${nt}-item`]:{flex:"none"}},[`${nt}-item, ${nt}-submenu, ${nt}-submenu-title`]:{borderRadius:Lt.itemBorderRadius},[`${nt}-item-group-title`]:{padding:`${Bn}px ${It}px`,fontSize:At,lineHeight:xt,transition:`all ${rt}`},[`&-horizontal ${nt}-submenu`]:{transition:[`border-color ${rt} ${yt}`,`background ${rt} ${yt}`].join(",")},[`${nt}-submenu, ${nt}-submenu-inline`]:{transition:[`border-color ${rt} ${yt}`,`background ${rt} ${yt}`,`padding ${jt} ${yt}`].join(",")},[`${nt}-submenu ${nt}-sub`]:{cursor:"initial",transition:[`background ${rt} ${yt}`,`padding ${rt} ${yt}`].join(",")},[`${nt}-title-content`]:{transition:`color ${rt}`},[`${nt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${nt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Fn,borderStyle:wn,borderWidth:0,borderTopWidth:Zn,marginBlock:Zn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xe(Lt)),{[`${nt}-item-group`]:{[`${nt}-item-group-list`]:{margin:0,padding:0,[`${nt}-item, ${nt}-submenu-title`]:{paddingInline:`${at*2}px ${It}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_e,borderRadius:Pt,boxShadow:"none",transformOrigin:"0 0",[`&${nt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ft}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ft},"\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:Lt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Lt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Lt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Lt.paddingXS},[`> ${nt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pt},Xe(Lt)),st(Lt)),{[`${nt}-item, ${nt}-submenu > ${nt}-submenu-title`]:{borderRadius:Cn},[`${nt}-submenu-title::after`]:{transition:`transform ${rt} ${yt}`}})}}),st(Lt)),{[`&-inline-collapsed ${nt}-submenu-arrow, &-inline ${nt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${gt})`},"&::after":{transform:`rotate(45deg) translateX(-${gt})`}},[`${nt}-submenu-open${nt}-submenu-inline > ${nt}-submenu-title > ${nt}-submenu-arrow`]:{transform:`translateY(-${jn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${gt})`},"&::before":{transform:`rotate(45deg) translateX(${gt})`}}})},{[`${Ve}-layout-header`]:{[nt]:{lineHeight:"inherit"}}}]};var Ct=(Lt,Ve)=>(0,De.Z)("Menu",at=>{if(Ve===!1)return[];const{colorBgElevated:rt,colorPrimary:jt,colorTextLightSolid:yt,controlHeightLG:Bn,fontSize:It,darkItemColor:Fn,darkDangerItemColor:Zn,darkItemBg:_e,darkSubMenuItemBg:Pt,darkItemSelectedColor:Cn,darkItemSelectedBg:jn,darkDangerItemSelectedBg:gt,darkItemHoverBg:wn,darkGroupTitleColor:ft,darkItemHoverColor:xt,darkItemDisabledColor:At,darkDangerItemHoverColor:zt,darkDangerItemSelectedColor:cn,darkDangerItemActiveBg:Yt}=at,Aa=It/7*5,ca=(0,Ce.TS)(at,{menuArrowSize:Aa,menuHorizontalHeight:Bn*1.15,menuArrowOffset:`${Aa*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:rt}),fa=(0,Ce.TS)(ca,{itemColor:Fn,itemHoverColor:xt,groupTitleColor:ft,itemSelectedColor:Cn,itemBg:_e,popupBg:_e,subMenuItemBg:Pt,itemActiveBg:"transparent",itemSelectedBg:jn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:wn,itemDisabledColor:At,dangerItemColor:Zn,dangerItemHoverColor:zt,dangerItemSelectedColor:cn,dangerItemActiveBg:Yt,dangerItemSelectedBg:gt,menuSubMenuBg:Pt,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:jt});return[ct(ca),Ge(ca),Ye(ca),it(ca,"light"),it(fa,"dark"),Je(ca),(0,se.Z)(ca),(0,Me.oN)(ca,"slide-up"),(0,Me.oN)(ca,"slide-down"),(0,be._y)(ca,"zoom-big")]},at=>{const{colorPrimary:rt,colorError:jt,colorTextDisabled:yt,colorErrorBg:Bn,colorText:It,colorTextDescription:Fn,colorBgContainer:Zn,colorFillAlter:_e,colorFillContent:Pt,lineWidth:Cn,lineWidthBold:jn,controlItemBgActive:gt,colorBgTextHover:wn,controlHeightLG:ft,lineHeight:xt,colorBgElevated:At,marginXXS:zt,padding:cn,fontSize:Yt,controlHeightSM:Aa,fontSizeLG:ca,colorTextLightSolid:fa,colorErrorHover:Ha}=at,wa=new he.C(fa).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:at.zIndexPopupBase+50,radiusItem:at.borderRadiusLG,itemBorderRadius:at.borderRadiusLG,radiusSubMenuItem:at.borderRadiusSM,subMenuItemBorderRadius:at.borderRadiusSM,colorItemText:It,itemColor:It,colorItemTextHover:It,itemHoverColor:It,colorItemTextHoverHorizontal:rt,horizontalItemHoverColor:rt,colorGroupTitle:Fn,groupTitleColor:Fn,colorItemTextSelected:rt,itemSelectedColor:rt,colorItemTextSelectedHorizontal:rt,horizontalItemSelectedColor:rt,colorItemBg:Zn,itemBg:Zn,colorItemBgHover:wn,itemHoverBg:wn,colorItemBgActive:Pt,itemActiveBg:gt,colorSubItemBg:_e,subMenuItemBg:_e,colorItemBgSelected:gt,itemSelectedBg:gt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jn,activeBarHeight:jn,colorActiveBarBorderSize:Cn,activeBarBorderWidth:Cn,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:jt,dangerItemColor:jt,colorDangerItemTextHover:jt,dangerItemHoverColor:jt,colorDangerItemTextSelected:jt,dangerItemSelectedColor:jt,colorDangerItemBgActive:Bn,dangerItemActiveBg:Bn,colorDangerItemBgSelected:Bn,dangerItemSelectedBg:Bn,itemMarginInline:at.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ft,groupTitleLineHeight:xt,collapsedWidth:ft*2,popupBg:At,itemMarginBlock:zt,itemPaddingInline:cn,horizontalLineHeight:`${ft*1.15}px`,iconSize:Yt,iconMarginInlineEnd:Aa-Yt,collapsedIconSize:ca,groupTitleFontSize:Yt,darkItemDisabledColor:new he.C(fa).setAlpha(.25).toRgbString(),darkItemColor:wa,darkDangerItemColor:jt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:fa,darkItemSelectedBg:rt,darkDangerItemSelectedBg:jt,darkItemHoverBg:"transparent",darkGroupTitleColor:wa,darkItemHoverColor:fa,darkDangerItemHoverColor:Ha,darkDangerItemSelectedColor:fa,darkDangerItemActiveBg:jt}},{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"]]})(Lt),et=function(Lt,Ve){var nt={};for(var at in Lt)Object.prototype.hasOwnProperty.call(Lt,at)&&Ve.indexOf(at)<0&&(nt[at]=Lt[at]);if(Lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(Lt);rt{var nt,at;const rt=re.useContext(le.Z),jt=rt||{},{getPrefixCls:yt,getPopupContainer:Bn,direction:It,menu:Fn}=re.useContext(Fe.E_),Zn=yt(),{prefixCls:_e,className:Pt,style:Cn,theme:jn="light",expandIcon:gt,_internalDisableMenuItemTitleTooltip:wn,inlineCollapsed:ft,siderCollapsed:xt,items:At,children:zt,rootClassName:cn,mode:Yt,selectable:Aa,onClick:ca,overflowedIndicatorPopupClassName:fa}=Lt,Ha=et(Lt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),wa=(0,Ze.Z)(Ha,["collapsedWidth"]),xn=pe(At)||zt;(nt=jt.validator)===null||nt===void 0||nt.call(jt,{mode:Yt});const to=(0,ae.useEvent)(function(){var ya;ca==null||ca.apply(void 0,arguments),(ya=jt.onClick)===null||ya===void 0||ya.call(jt)}),ko=jt.mode||Yt,Qa=Aa!=null?Aa:jt.selectable,jo=re.useMemo(()=>xt!==void 0?xt:ft,[ft,xt]),Io={horizontal:{motionName:`${Zn}-slide-up`},inline:(0,ie.Z)(Zn),other:{motionName:`${Zn}-zoom-big`}},hr=yt("menu",_e||jt.prefixCls),[dn,On]=Ct(hr,!rt),pa=Ie()(`${hr}-${jn}`,Fn==null?void 0:Fn.className,Pt);let Ua;if(typeof gt=="function")Ua=gt;else if(gt===null||gt===!1)Ua=null;else if(jt.expandIcon===null||jt.expandIcon===!1)Ua=null;else{const ya=gt!=null?gt:jt.expandIcon;Ua=(0,ce.Tm)(ya,{className:Ie()(`${hr}-submenu-expand-icon`,(0,ce.l$)(ya)?(at=ya.props)===null||at===void 0?void 0:at.className:"")})}const oa=re.useMemo(()=>({prefixCls:hr,inlineCollapsed:jo||!1,direction:It,firstLevel:!0,theme:jn,mode:ko,disableMenuItemTitleTooltip:wn}),[hr,jo,It,wn,jn]);return dn(re.createElement(le.Z.Provider,{value:null},re.createElement(a.Provider,{value:oa},re.createElement(b.ZP,Object.assign({getPopupContainer:Bn,overflowedIndicator:re.createElement(ne.Z,null),overflowedIndicatorPopupClassName:Ie()(hr,`${hr}-${jn}`,fa),mode:ko,selectable:Qa,onClick:to},wa,{inlineCollapsed:jo,style:Object.assign(Object.assign({},Fn==null?void 0:Fn.style),Cn),className:pa,prefixCls:hr,direction:It,defaultMotions:Io,expandIcon:Ua,ref:Ve,rootClassName:Ie()(cn,On)}),xn))))});const In=(0,re.forwardRef)((Lt,Ve)=>{const nt=(0,re.useRef)(null),at=re.useContext(Se.D);return(0,re.useImperativeHandle)(Ve,()=>({menu:nt.current,focus:rt=>{var jt;(jt=nt.current)===null||jt===void 0||jt.focus(rt)}})),re.createElement(un,Object.assign({ref:nt},Lt,at))});In.Item=x,In.SubMenu=ee,In.Divider=je,In.ItemGroup=b.BW;var gn=In},28452:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Zn}});var b=z(87462),re=z(67294),Se={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"},Pe=Se,Ie=z(74643),Fe=function(Pt,Cn){return re.createElement(Ie.Z,(0,b.Z)({},Pt,{ref:Cn,icon:Pe}))},ue=re.forwardRef(Fe),Te=z(81893),je=z(22751),Oe=z(91034),Ze=z(94184),Be=z.n(Ze),ce=z(4942),oe=z(1413),a=z(15671),E=z(43144),x=z(60136),y=z(51630),ee=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,ne=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ae="".concat(ee," ").concat(ne).split(/[\s\n]+/),ie="aria-",le="data-";function me(_e,Pt){return _e.indexOf(Pt)===0}function fe(_e){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Cn;Pt===!1?Cn={aria:!0,data:!0,attr:!0}:Pt===!0?Cn={aria:!0}:Cn=(0,oe.Z)({},Pt);var jn={};return Object.keys(_e).forEach(function(gt){(Cn.aria&&(gt==="role"||me(gt,ie))||Cn.data&&me(gt,le)||Cn.attr&&ae.includes(gt))&&(jn[gt]=_e[gt])}),jn}var pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},he=pe,de=z(81626),se=function(_e){(0,x.Z)(Cn,_e);var Pt=(0,y.Z)(Cn);function Cn(){var jn;(0,a.Z)(this,Cn);for(var gt=arguments.length,wn=new Array(gt),ft=0;ft=0||xt.relatedTarget.className.indexOf("".concat(Yt,"-item"))>=0))&&cn(jn.getValidValue()))},jn.go=function(xt){var At=jn.state.goInputText;At!==""&&(xt.keyCode===he.ENTER||xt.type==="click")&&(jn.setState({goInputText:""}),jn.props.quickGo(jn.getValidValue()))},jn}return(0,E.Z)(Cn,[{key:"getPageSizeOptions",value:function(){var gt=this.props,wn=gt.pageSize,ft=gt.pageSizeOptions;return ft.some(function(xt){return xt.toString()===wn.toString()})?ft:ft.concat([wn.toString()]).sort(function(xt,At){var zt=Number.isNaN(Number(xt))?0:Number(xt),cn=Number.isNaN(Number(At))?0:Number(At);return zt-cn})}},{key:"render",value:function(){var gt=this,wn=this.props,ft=wn.pageSize,xt=wn.locale,At=wn.rootPrefixCls,zt=wn.changeSize,cn=wn.quickGo,Yt=wn.goButton,Aa=wn.selectComponentClass,ca=wn.buildOptionText,fa=wn.selectPrefixCls,Ha=wn.disabled,wa=this.state.goInputText,xn="".concat(At,"-options"),to=Aa,ko=null,Qa=null,jo=null;if(!zt&&!cn)return null;var Io=this.getPageSizeOptions();if(zt&&to){var hr=Io.map(function(dn,On){return re.createElement(to.Option,{key:On,value:dn.toString()},(ca||gt.buildOptionText)(dn))});ko=re.createElement(to,{disabled:Ha,prefixCls:fa,showSearch:!1,className:"".concat(xn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ft||Io[0]).toString(),onChange:this.changeSize,getPopupContainer:function(On){return On.parentNode},"aria-label":xt.page_size,defaultOpen:!1},hr)}return cn&&(Yt&&(jo=typeof Yt=="boolean"?re.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ha,className:"".concat(xn,"-quick-jumper-button")},xt.jump_to_confirm):re.createElement("span",{onClick:this.go,onKeyUp:this.go},Yt)),Qa=re.createElement("div",{className:"".concat(xn,"-quick-jumper")},xt.jump_to,re.createElement("input",{disabled:Ha,type:"text",value:wa,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":xt.page}),xt.page,jo)),re.createElement("li",{className:"".concat(xn)},ko,Qa)}}]),Cn}(re.Component);se.defaultProps={pageSizeOptions:["10","20","50","100"]};var Me=se,be=function(Pt){var Cn,jn=Pt.rootPrefixCls,gt=Pt.page,wn=Pt.active,ft=Pt.className,xt=Pt.showTitle,At=Pt.onClick,zt=Pt.onKeyPress,cn=Pt.itemRender,Yt="".concat(jn,"-item"),Aa=Be()(Yt,"".concat(Yt,"-").concat(gt),(Cn={},(0,ce.Z)(Cn,"".concat(Yt,"-active"),wn),(0,ce.Z)(Cn,"".concat(Yt,"-disabled"),!gt),(0,ce.Z)(Cn,Pt.className,ft),Cn)),ca=function(){At(gt)},fa=function(xn){zt(xn,At,gt)},Ha=cn(gt,"page",re.createElement("a",{rel:"nofollow"},gt));return Ha?re.createElement("li",{title:xt?gt.toString():null,className:Aa,onClick:ca,onKeyPress:fa,tabIndex:0},Ha):null},De=be;function Ce(){}function Le(_e){var Pt=Number(_e);return typeof Pt=="number"&&!Number.isNaN(Pt)&&isFinite(Pt)&&Math.floor(Pt)===Pt}var Ge=function(Pt,Cn,jn){return jn};function qe(_e,Pt,Cn){var jn=typeof _e=="undefined"?Pt.pageSize:_e;return Math.floor((Cn.total-1)/jn)+1}var Je=function(_e){(0,x.Z)(Cn,_e);var Pt=(0,y.Z)(Cn);function Cn(jn){var gt;(0,a.Z)(this,Cn),gt=Pt.call(this,jn),gt.paginationNode=re.createRef(),gt.getJumpPrevPage=function(){return Math.max(1,gt.state.current-(gt.props.showLessItems?3:5))},gt.getJumpNextPage=function(){return Math.min(qe(void 0,gt.state,gt.props),gt.state.current+(gt.props.showLessItems?3:5))},gt.getItemIcon=function(zt,cn){var Yt=gt.props.prefixCls,Aa=zt||re.createElement("button",{type:"button","aria-label":cn,className:"".concat(Yt,"-item-link")});return typeof zt=="function"&&(Aa=re.createElement(zt,(0,oe.Z)({},gt.props))),Aa},gt.isValid=function(zt){var cn=gt.props.total;return Le(zt)&&zt!==gt.state.current&&Le(cn)&&cn>0},gt.shouldDisplayQuickJumper=function(){var zt=gt.props,cn=zt.showQuickJumper,Yt=zt.total,Aa=gt.state.pageSize;return Yt<=Aa?!1:cn},gt.handleKeyDown=function(zt){(zt.keyCode===he.ARROW_UP||zt.keyCode===he.ARROW_DOWN)&&zt.preventDefault()},gt.handleKeyUp=function(zt){var cn=gt.getValidValue(zt),Yt=gt.state.currentInputValue;cn!==Yt&>.setState({currentInputValue:cn}),zt.keyCode===he.ENTER?gt.handleChange(cn):zt.keyCode===he.ARROW_UP?gt.handleChange(cn-1):zt.keyCode===he.ARROW_DOWN&>.handleChange(cn+1)},gt.handleBlur=function(zt){var cn=gt.getValidValue(zt);gt.handleChange(cn)},gt.changePageSize=function(zt){var cn=gt.state.current,Yt=qe(zt,gt.state,gt.props);cn=cn>Yt?Yt:cn,Yt===0&&(cn=gt.state.current),typeof zt=="number"&&("pageSize"in gt.props||gt.setState({pageSize:zt}),"current"in gt.props||gt.setState({current:cn,currentInputValue:cn})),gt.props.onShowSizeChange(cn,zt),"onChange"in gt.props&>.props.onChange&>.props.onChange(cn,zt)},gt.handleChange=function(zt){var cn=gt.props,Yt=cn.disabled,Aa=cn.onChange,ca=gt.state,fa=ca.pageSize,Ha=ca.current,wa=ca.currentInputValue;if(gt.isValid(zt)&&!Yt){var xn=qe(void 0,gt.state,gt.props),to=zt;return zt>xn?to=xn:zt<1&&(to=1),"current"in gt.props||gt.setState({current:to}),to!==wa&>.setState({currentInputValue:to}),Aa(to,fa),to}return Ha},gt.prev=function(){gt.hasPrev()&>.handleChange(gt.state.current-1)},gt.next=function(){gt.hasNext()&>.handleChange(gt.state.current+1)},gt.jumpPrev=function(){gt.handleChange(gt.getJumpPrevPage())},gt.jumpNext=function(){gt.handleChange(gt.getJumpNextPage())},gt.hasPrev=function(){return gt.state.current>1},gt.hasNext=function(){return gt.state.current2?Yt-2:0),ca=2;ca=ft?At=ft:At=Number(wn),At}},{key:"getShowSizeChanger",value:function(){var gt=this.props,wn=gt.showSizeChanger,ft=gt.total,xt=gt.totalBoundaryShowSizeChanger;return typeof wn!="undefined"?wn:ft>xt}},{key:"render",value:function(){var gt=this.props,wn=gt.prefixCls,ft=gt.className,xt=gt.style,At=gt.disabled,zt=gt.hideOnSinglePage,cn=gt.total,Yt=gt.locale,Aa=gt.showQuickJumper,ca=gt.showLessItems,fa=gt.showTitle,Ha=gt.showTotal,wa=gt.simple,xn=gt.itemRender,to=gt.showPrevNextJumpers,ko=gt.jumpPrevIcon,Qa=gt.jumpNextIcon,jo=gt.selectComponentClass,Io=gt.selectPrefixCls,hr=gt.pageSizeOptions,dn=this.state,On=dn.current,pa=dn.pageSize,Ua=dn.currentInputValue;if(zt===!0&&cn<=pa)return null;var oa=qe(void 0,this.state,this.props),ya=[],sr=null,ul=null,Ft=null,pt=null,Et=null,Mn=Aa&&Aa.goButton,$n=ca?1:2,Kn=On-1>0?On-1:0,or=On+1cn?cn:On*pa]));if(wa){Mn&&(typeof Mn=="boolean"?Et=re.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Yt.jump_to_confirm):Et=re.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Mn),Et=re.createElement("li",{title:fa?"".concat(Yt.jump_to).concat(On,"/").concat(oa):null,className:"".concat(wn,"-simple-pager")},Et));var Sr=this.renderPrev(Kn);return re.createElement("ul",(0,b.Z)({className:Be()(wn,"".concat(wn,"-simple"),(0,ce.Z)({},"".concat(wn,"-disabled"),At),ft),style:xt,ref:this.paginationNode},Fo),Gn,Sr?re.createElement("li",{title:fa?Yt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Be()("".concat(wn,"-prev"),(0,ce.Z)({},"".concat(wn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Sr):null,re.createElement("li",{title:fa?"".concat(On,"/").concat(oa):null,className:"".concat(wn,"-simple-pager")},re.createElement("input",{type:"text",value:Ua,disabled:At,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),re.createElement("span",{className:"".concat(wn,"-slash")},"/"),oa),re.createElement("li",{title:fa?Yt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Be()("".concat(wn,"-next"),(0,ce.Z)({},"".concat(wn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(or)),Et)}if(oa<=3+$n*2){var hl={locale:Yt,rootPrefixCls:wn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:fa,itemRender:xn};oa||ya.push(re.createElement(De,(0,b.Z)({},hl,{key:"noPager",page:1,className:"".concat(wn,"-item-disabled")})));for(var Lr=1;Lr<=oa;Lr+=1){var ha=On===Lr;ya.push(re.createElement(De,(0,b.Z)({},hl,{key:Lr,page:Lr,active:ha})))}}else{var gr=ca?Yt.prev_3:Yt.prev_5,Nt=ca?Yt.next_3:Yt.next_5,En=xn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ko,"prev page")),en=xn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Qa,"next page"));to&&(sr=En?re.createElement("li",{title:fa?gr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Be()("".concat(wn,"-jump-prev"),(0,ce.Z)({},"".concat(wn,"-jump-prev-custom-icon"),!!ko))},En):null,ul=en?re.createElement("li",{title:fa?Nt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Be()("".concat(wn,"-jump-next"),(0,ce.Z)({},"".concat(wn,"-jump-next-custom-icon"),!!Qa))},en):null),pt=re.createElement(De,{locale:Yt,last:!0,rootPrefixCls:wn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:oa,page:oa,active:!1,showTitle:fa,itemRender:xn}),Ft=re.createElement(De,{locale:Yt,rootPrefixCls:wn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:fa,itemRender:xn});var Sn=Math.max(1,On-$n),na=Math.min(On+$n,oa);On-1<=$n&&(na=1+$n*2),oa-On<=$n&&(Sn=oa-$n*2);for(var fn=Sn;fn<=na;fn+=1){var ia=On===fn;ya.push(re.createElement(De,{locale:Yt,rootPrefixCls:wn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:fn,page:fn,active:ia,showTitle:fa,itemRender:xn}))}On-1>=$n*2&&On!==3&&(ya[0]=(0,re.cloneElement)(ya[0],{className:"".concat(wn,"-item-after-jump-prev")}),ya.unshift(sr)),oa-On>=$n*2&&On!==oa-2&&(ya[ya.length-1]=(0,re.cloneElement)(ya[ya.length-1],{className:"".concat(wn,"-item-before-jump-next")}),ya.push(ul)),Sn!==1&&ya.unshift(Ft),na!==oa&&ya.push(pt)}var Kt=!this.hasPrev()||!oa,xa=!this.hasNext()||!oa,Xn=this.renderPrev(Kn),Oa=this.renderNext(or);return re.createElement("ul",(0,b.Z)({className:Be()(wn,ft,(0,ce.Z)({},"".concat(wn,"-disabled"),At)),style:xt,ref:this.paginationNode},Fo),Gn,Xn?re.createElement("li",{title:fa?Yt.prev_page:null,onClick:this.prev,tabIndex:Kt?null:0,onKeyPress:this.runIfEnterPrev,className:Be()("".concat(wn,"-prev"),(0,ce.Z)({},"".concat(wn,"-disabled"),Kt)),"aria-disabled":Kt},Xn):null,ya,Oa?re.createElement("li",{title:fa?Yt.next_page:null,onClick:this.next,tabIndex:xa?null:0,onKeyPress:this.runIfEnterNext,className:Be()("".concat(wn,"-next"),(0,ce.Z)({},"".concat(wn,"-disabled"),xa)),"aria-disabled":xa},Oa):null,re.createElement(Me,{disabled:At,locale:Yt,rootPrefixCls:wn,selectComponentClass:jo,selectPrefixCls:Io,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:On,pageSize:pa,pageSizeOptions:hr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Mn}))}}],[{key:"getDerivedStateFromProps",value:function(gt,wn){var ft={};if("current"in gt&&(ft.current=gt.current,gt.current!==wn.current&&(ft.currentInputValue=ft.current)),"pageSize"in gt&>.pageSize!==wn.pageSize){var xt=wn.current,At=qe(gt.pageSize,wn,gt);xt=xt>At?At:xt,"current"in gt||(ft.current=xt,ft.currentInputValue=xt),ft.pageSize=gt.pageSize}return ft}}]),Cn}(re.Component);Je.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ce,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ce,locale:de.Z,style:{},itemRender:Ge,totalBoundaryShowSizeChanger:50};var Re=Je,He=z(62906),it=z(53124),$e=z(98675),Ne=z(25378),Ye=z(10110),Xe=z(11713);const st=_e=>re.createElement(Xe.default,Object.assign({},_e,{showSearch:!0,size:"small"})),ct=_e=>re.createElement(Xe.default,Object.assign({},_e,{showSearch:!0,size:"middle"}));st.Option=Xe.default.Option,ct.Option=Xe.default.Option;var Ct=z(47673),et=z(14747),Qt=z(67968),un=z(45503);const In=_e=>{const{componentCls:Pt}=_e;return{[`${Pt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Pt}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Pt}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}}},[`&${Pt}-disabled`]:{cursor:"not-allowed",[`${Pt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:_e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:_e.colorBorder,backgroundColor:_e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:_e.itemActiveBgDisabled},a:{color:_e.itemActiveColorDisabled}}},[`${Pt}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Pt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Pt}-simple-pager`]:{color:_e.colorTextDisabled},[`${Pt}-jump-prev, ${Pt}-jump-next`]:{[`${Pt}-item-link-icon`]:{opacity:0},[`${Pt}-item-ellipsis`]:{opacity:1}}},[`&${Pt}-simple`]:{[`${Pt}-prev, ${Pt}-next`]:{[`&${Pt}-disabled ${Pt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},gn=_e=>{const{componentCls:Pt}=_e;return{[`&${Pt}-mini ${Pt}-total-text, &${Pt}-mini ${Pt}-simple-pager`]:{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`},[`&${Pt}-mini ${Pt}-item`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:`${_e.itemSizeSM-2}px`},[`&${Pt}-mini:not(${Pt}-disabled) ${Pt}-item:not(${Pt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},[`&${Pt}-mini ${Pt}-prev, &${Pt}-mini ${Pt}-next`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:`${_e.itemSizeSM}px`},[`&${Pt}-mini:not(${Pt}-disabled)`]:{[`${Pt}-prev, ${Pt}-next`]:{[`&:hover ${Pt}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${Pt}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${Pt}-disabled:hover ${Pt}-item-link`]:{backgroundColor:"transparent"}}},[` &${Pt}-mini ${Pt}-prev ${Pt}-item-link, &${Pt}-mini ${Pt}-next ${Pt}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`}},[`&${Pt}-mini ${Pt}-jump-prev, &${Pt}-mini ${Pt}-jump-next`]:{height:_e.itemSizeSM,marginInlineEnd:0,lineHeight:`${_e.itemSizeSM}px`},[`&${Pt}-mini ${Pt}-options`]:{marginInlineStart:_e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:_e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ct.x0)(_e)),{width:_e.paginationMiniQuickJumperInputWidth,height:_e.controlHeightSM})}}}},Lt=_e=>{const{componentCls:Pt}=_e;return{[` &${Pt}-simple ${Pt}-prev, &${Pt}-simple ${Pt}-next `]:{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`,verticalAlign:"top",[`${Pt}-item-link`]:{height:_e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive},"&::after":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`}}},[`&${Pt}-simple ${Pt}-simple-pager`]:{display:"inline-block",height:_e.itemSizeSM,marginInlineEnd:_e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:_e.marginXS,padding:`0 ${_e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:_e.itemInputBg,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,borderRadius:_e.borderRadius,outline:"none",transition:`border-color ${_e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:_e.colorPrimary},"&:focus":{borderColor:_e.colorPrimaryHover,boxShadow:`${_e.inputOutlineOffset}px 0 ${_e.controlOutlineWidth}px ${_e.controlOutline}`},"&[disabled]":{color:_e.colorTextDisabled,backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,cursor:"not-allowed"}}}}},Ve=_e=>{const{componentCls:Pt}=_e;return{[`${Pt}-jump-prev, ${Pt}-jump-next`]:{outline:0,[`${Pt}-item-container`]:{position:"relative",[`${Pt}-item-link-icon`]:{color:_e.colorPrimary,fontSize:_e.fontSizeSM,opacity:0,transition:`all ${_e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Pt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:_e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:_e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:_e.paginationEllipsisTextIndent,opacity:1,transition:`all ${_e.motionDurationMid}`}},"&:hover":{[`${Pt}-item-link-icon`]:{opacity:1},[`${Pt}-item-ellipsis`]:{opacity:0}}},[` ${Pt}-prev, ${Pt}-jump-prev, ${Pt}-jump-next `]:{marginInlineEnd:_e.marginXS},[` ${Pt}-prev, ${Pt}-next, ${Pt}-jump-prev, ${Pt}-jump-next `]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,color:_e.colorText,fontFamily:_e.fontFamily,lineHeight:`${_e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:_e.borderRadius,cursor:"pointer",transition:`all ${_e.motionDurationMid}`},[`${Pt}-prev, ${Pt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:_e.colorText,cursor:"pointer",userSelect:"none"},[`${Pt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:_e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${_e.lineWidth}px ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:"none",transition:`all ${_e.motionDurationMid}`},[`&:hover ${Pt}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${Pt}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${Pt}-disabled:hover`]:{[`${Pt}-item-link`]:{backgroundColor:"transparent"}}},[`${Pt}-slash`]:{marginInlineEnd:_e.paginationSlashMarginInlineEnd,marginInlineStart:_e.paginationSlashMarginInlineStart},[`${Pt}-options`]:{display:"inline-block",marginInlineStart:_e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:_e.controlHeight,marginInlineStart:_e.marginXS,lineHeight:`${_e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ct.ik)(_e)),{width:_e.controlHeightLG*1.25,height:_e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:_e.marginXS,marginInlineEnd:_e.marginXS})}}}},nt=_e=>{const{componentCls:Pt}=_e;return{[`${Pt}-item`]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,marginInlineEnd:_e.marginXS,fontFamily:_e.fontFamily,lineHeight:`${_e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${_e.lineWidth}px ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_e.paginationItemPaddingInline}px`,color:_e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Pt}-item-active)`]:{"&:hover":{transition:`all ${_e.motionDurationMid}`,backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},"&-active":{fontWeight:_e.fontWeightStrong,backgroundColor:_e.itemActiveBg,borderColor:_e.colorPrimary,a:{color:_e.colorPrimary},"&:hover":{borderColor:_e.colorPrimaryHover},"&:hover a":{color:_e.colorPrimaryHover}}}}},at=_e=>{const{componentCls:Pt}=_e;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(_e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Pt}-total-text`]:{display:"inline-block",height:_e.itemSize,marginInlineEnd:_e.marginXS,lineHeight:`${_e.itemSize-2}px`,verticalAlign:"middle"}}),nt(_e)),Ve(_e)),Lt(_e)),gn(_e)),In(_e)),{[`@media only screen and (max-width: ${_e.screenLG}px)`]:{[`${Pt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${_e.screenSM}px)`]:{[`${Pt}-options`]:{display:"none"}}}),[`&${_e.componentCls}-rtl`]:{direction:"rtl"}}},rt=_e=>{const{componentCls:Pt}=_e;return{[`${Pt}${Pt}-disabled:not(${Pt}-mini)`]:{"&, &:hover":{[`${Pt}-item-link`]:{borderColor:_e.colorBorder}},"&:focus-visible":{[`${Pt}-item-link`]:{borderColor:_e.colorBorder}},[`${Pt}-item, ${Pt}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,[`&:hover:not(${Pt}-item-active)`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,a:{color:_e.colorTextDisabled}},[`&${Pt}-item-active`]:{backgroundColor:_e.itemActiveBgDisabled}},[`${Pt}-prev, ${Pt}-next`]:{"&:hover button":{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,color:_e.colorTextDisabled},[`${Pt}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder}}},[`${Pt}:not(${Pt}-mini)`]:{[`${Pt}-prev, ${Pt}-next`]:{"&:hover button":{borderColor:_e.colorPrimaryHover,backgroundColor:_e.itemBg},[`${Pt}-item-link`]:{backgroundColor:_e.itemLinkBg,borderColor:_e.colorBorder},[`&:hover ${Pt}-item-link`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,color:_e.colorPrimary},[`&${Pt}-disabled`]:{[`${Pt}-item-link`]:{borderColor:_e.colorBorder,color:_e.colorTextDisabled}}},[`${Pt}-item`]:{backgroundColor:_e.itemBg,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,[`&:hover:not(${Pt}-item-active)`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,a:{color:_e.colorPrimary}},"&-active":{borderColor:_e.colorPrimary}}}}},jt=_e=>{const{componentCls:Pt}=_e;return{[`${Pt}:not(${Pt}-disabled)`]:{[`${Pt}-item`]:Object.assign({},(0,et.Qy)(_e)),[`${Pt}-jump-prev, ${Pt}-jump-next`]:{"&:focus-visible":Object.assign({[`${Pt}-item-link-icon`]:{opacity:1},[`${Pt}-item-ellipsis`]:{opacity:0}},(0,et.oN)(_e))},[`${Pt}-prev, ${Pt}-next`]:{[`&:focus-visible ${Pt}-item-link`]:Object.assign({},(0,et.oN)(_e))}}}};var yt=(0,Qt.Z)("Pagination",_e=>{const Pt=(0,un.TS)(_e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:_e.marginXXS/2,paginationMiniQuickJumperInputWidth:_e.controlHeightLG*1.1,paginationItemPaddingInline:_e.marginXXS*1.5,paginationEllipsisLetterSpacing:_e.marginXXS/2,paginationSlashMarginInlineStart:_e.marginXXS,paginationSlashMarginInlineEnd:_e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ct.e5)(_e),(0,Ct.TM)(_e));return[at(Pt),jt(Pt),_e.wireframe&&rt(Pt)]},_e=>({itemBg:_e.colorBgContainer,itemSize:_e.controlHeight,itemSizeSM:_e.controlHeightSM,itemActiveBg:_e.colorBgContainer,itemLinkBg:_e.colorBgContainer,itemActiveColorDisabled:_e.colorTextDisabled,itemActiveBgDisabled:_e.controlItemBgActiveDisabled,itemInputBg:_e.colorBgContainer,miniOptionsSizeChangerTop:0})),Bn=function(_e,Pt){var Cn={};for(var jn in _e)Object.prototype.hasOwnProperty.call(_e,jn)&&Pt.indexOf(jn)<0&&(Cn[jn]=_e[jn]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,jn=Object.getOwnPropertySymbols(_e);gt{const{prefixCls:Pt,selectPrefixCls:Cn,className:jn,rootClassName:gt,style:wn,size:ft,locale:xt,selectComponentClass:At,responsive:zt,showSizeChanger:cn}=_e,Yt=Bn(_e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Aa}=(0,Ne.Z)(zt),{getPrefixCls:ca,direction:fa,pagination:Ha={}}=re.useContext(it.E_),wa=ca("pagination",Pt),[xn,to]=yt(wa),ko=cn!=null?cn:Ha.showSizeChanger,Qa=re.useMemo(()=>{const oa=re.createElement("span",{className:`${wa}-item-ellipsis`},"\u2022\u2022\u2022"),ya=re.createElement("button",{className:`${wa}-item-link`,type:"button",tabIndex:-1},fa==="rtl"?re.createElement(Oe.Z,null):re.createElement(je.Z,null)),sr=re.createElement("button",{className:`${wa}-item-link`,type:"button",tabIndex:-1},fa==="rtl"?re.createElement(je.Z,null):re.createElement(Oe.Z,null)),ul=re.createElement("a",{className:`${wa}-item-link`},re.createElement("div",{className:`${wa}-item-container`},fa==="rtl"?re.createElement(Te.Z,{className:`${wa}-item-link-icon`}):re.createElement(ue,{className:`${wa}-item-link-icon`}),oa)),Ft=re.createElement("a",{className:`${wa}-item-link`},re.createElement("div",{className:`${wa}-item-container`},fa==="rtl"?re.createElement(ue,{className:`${wa}-item-link-icon`}):re.createElement(Te.Z,{className:`${wa}-item-link-icon`}),oa));return{prevIcon:ya,nextIcon:sr,jumpPrevIcon:ul,jumpNextIcon:Ft}},[fa,wa]),[jo]=(0,Ye.Z)("Pagination",He.Z),Io=Object.assign(Object.assign({},jo),xt),hr=(0,$e.Z)(ft),dn=hr==="small"||!!(Aa&&!hr&&zt),On=ca("select",Cn),pa=Be()({[`${wa}-mini`]:dn,[`${wa}-rtl`]:fa==="rtl"},Ha==null?void 0:Ha.className,jn,gt,to),Ua=Object.assign(Object.assign({},Ha==null?void 0:Ha.style),wn);return xn(re.createElement(Re,Object.assign({},Qa,Yt,{style:Ua,prefixCls:wa,selectPrefixCls:On,className:pa,selectComponentClass:At||(dn?st:ct),locale:Io,showSizeChanger:ko})))},Zn=Fn},66330:function(ut,Ue,z){"use strict";z.d(Ue,{t5:function(){return Oe}});var b=z(94184),re=z.n(b),Se=z(92419),Pe=z(67294),Ie=z(53124),Fe=z(81643),ue=z(20136),Te=function(Be,ce){var oe={};for(var a in Be)Object.prototype.hasOwnProperty.call(Be,a)&&ce.indexOf(a)<0&&(oe[a]=Be[a]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(Be);E{if(!(!ce&&!oe))return Pe.createElement(Pe.Fragment,null,ce&&Pe.createElement("div",{className:`${Be}-title`},(0,Fe.Z)(ce)),Pe.createElement("div",{className:`${Be}-inner-content`},(0,Fe.Z)(oe)))},Oe=Be=>{const{hashId:ce,prefixCls:oe,className:a,style:E,placement:x="top",title:y,content:ee,children:ne}=Be;return Pe.createElement("div",{className:re()(ce,oe,`${oe}-pure`,`${oe}-placement-${x}`,a),style:E},Pe.createElement("div",{className:`${oe}-arrow`}),Pe.createElement(Se.G,Object.assign({},Be,{className:ce,prefixCls:oe}),ne||je(oe,y,ee)))},Ze=Be=>{const{prefixCls:ce}=Be,oe=Te(Be,["prefixCls"]),{getPrefixCls:a}=Pe.useContext(Ie.E_),E=a("popover",ce),[x,y]=(0,ue.Z)(E);return x(Pe.createElement(Oe,Object.assign({},oe,{prefixCls:E,hashId:y})))};Ue.ZP=Ze},55241:function(ut,Ue,z){"use strict";var b=z(94184),re=z.n(b),Se=z(67294),Pe=z(81643),Ie=z(33603),Fe=z(53124),ue=z(83062),Te=z(66330),je=z(20136),Oe=function(ce,oe){var a={};for(var E in ce)Object.prototype.hasOwnProperty.call(ce,E)&&oe.indexOf(E)<0&&(a[E]=ce[E]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,E=Object.getOwnPropertySymbols(ce);x{let{title:oe,content:a,prefixCls:E}=ce;return Se.createElement(Se.Fragment,null,oe&&Se.createElement("div",{className:`${E}-title`},(0,Pe.Z)(oe)),Se.createElement("div",{className:`${E}-inner-content`},(0,Pe.Z)(a)))},Be=Se.forwardRef((ce,oe)=>{const{prefixCls:a,title:E,content:x,overlayClassName:y,placement:ee="top",trigger:ne="hover",mouseEnterDelay:ae=.1,mouseLeaveDelay:ie=.1,overlayStyle:le={}}=ce,me=Oe(ce,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:fe}=Se.useContext(Fe.E_),pe=fe("popover",a),[he,de]=(0,je.Z)(pe),se=fe(),Me=re()(y,de);return he(Se.createElement(ue.Z,Object.assign({placement:ee,trigger:ne,mouseEnterDelay:ae,mouseLeaveDelay:ie,overlayStyle:le},me,{prefixCls:pe,overlayClassName:Me,ref:oe,overlay:E||x?Se.createElement(Ze,{prefixCls:pe,title:E,content:x}):null,transitionName:(0,Ie.m)(se,"zoom-big",me.transitionName),"data-popover-inject":!0})))});Be._InternalPanelDoNotUseOrYouWillBeFired=Te.ZP,Ue.Z=Be},20136:function(ut,Ue,z){"use strict";var b=z(14747),re=z(50438),Se=z(97414),Pe=z(8796),Ie=z(67968),Fe=z(45503);const ue=Oe=>{const{componentCls:Ze,popoverColor:Be,minWidth:ce,fontWeightStrong:oe,popoverPadding:a,boxShadowSecondary:E,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:ee,marginXS:ne,colorBgElevated:ae,popoverBg:ie}=Oe;return[{[Ze]:Object.assign(Object.assign({},(0,b.Wf)(Oe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ee,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":ae,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ze}-content`]:{position:"relative"},[`${Ze}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:E,padding:a},[`${Ze}-title`]:{minWidth:ce,marginBottom:ne,color:x,fontWeight:oe},[`${Ze}-inner-content`]:{color:Be}})},(0,Se.ZP)(Oe,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Ze}-pure`]:{position:"relative",maxWidth:"none",margin:Oe.sizePopupArrow,display:"inline-block",[`${Ze}-content`]:{display:"inline-block"}}}]},Te=Oe=>{const{componentCls:Ze}=Oe;return{[Ze]:Pe.i.map(Be=>{const ce=Oe[`${Be}6`];return{[`&${Ze}-${Be}`]:{"--antd-arrow-background-color":ce,[`${Ze}-inner`]:{backgroundColor:ce},[`${Ze}-arrow`]:{background:"transparent"}}}})}},je=Oe=>{const{componentCls:Ze,lineWidth:Be,lineType:ce,colorSplit:oe,paddingSM:a,controlHeight:E,fontSize:x,lineHeight:y,padding:ee}=Oe,ne=E-Math.round(x*y),ae=ne/2,ie=ne/2-Be,le=ee;return{[Ze]:{[`${Ze}-inner`]:{padding:0},[`${Ze}-title`]:{margin:0,padding:`${ae}px ${le}px ${ie}px`,borderBottom:`${Be}px ${ce} ${oe}`},[`${Ze}-inner-content`]:{padding:`${a}px ${le}px`}}}};Ue.Z=(0,Ie.Z)("Popover",Oe=>{const{colorBgElevated:Ze,colorText:Be,wireframe:ce}=Oe,oe=(0,Fe.TS)(Oe,{popoverPadding:12,popoverBg:Ze,popoverColor:Be});return[ue(oe),Te(oe),ce&&je(oe),(0,re._y)(oe,"zoom-big")]},Oe=>({width:177,minWidth:177,zIndexPopup:Oe.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return wn}});var b=z(67294),re=z(87725),Se=z(18299),Pe=z(16646),Ie=z(73475),Fe=z(94184),ue=z.n(Fe),Te=z(10366),je=z(53124),Oe=z(87462),Ze=z(1413),Be=z(45987),ce={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var xt=(0,b.useRef)([]),At=(0,b.useRef)(null);return(0,b.useEffect)(function(){var zt=Date.now(),cn=!1;xt.current.forEach(function(Yt){if(Yt){cn=!0;var Aa=Yt.style;Aa.transitionDuration=".3s, .3s, .3s, .06s",At.current&&zt-At.current<100&&(Aa.transitionDuration="0s, 0s")}}),cn&&(At.current=Date.now())}),xt.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],E=function(xt){var At=(0,Ze.Z)((0,Ze.Z)({},ce),xt),zt=At.className,cn=At.percent,Yt=At.prefixCls,Aa=At.strokeColor,ca=At.strokeLinecap,fa=At.strokeWidth,Ha=At.style,wa=At.trailColor,xn=At.trailWidth,to=At.transition,ko=(0,Be.Z)(At,a);delete ko.gapPosition;var Qa=Array.isArray(cn)?cn:[cn],jo=Array.isArray(Aa)?Aa:[Aa],Io=oe(),hr=fa/2,dn=100-fa/2,On="M ".concat(ca==="round"?hr:0,",").concat(hr,` L `).concat(ca==="round"?dn:100,",").concat(hr),pa="0 0 100 ".concat(fa),Ua=0;return b.createElement("svg",(0,Oe.Z)({className:ue()("".concat(Yt,"-line"),zt),viewBox:pa,preserveAspectRatio:"none",style:Ha},ko),b.createElement("path",{className:"".concat(Yt,"-line-trail"),d:On,strokeLinecap:ca,stroke:wa,strokeWidth:xn||fa,fillOpacity:"0"}),Qa.map(function(oa,ya){var sr=1;switch(ca){case"round":sr=1-fa/100;break;case"square":sr=1-fa/2/100;break;default:sr=1;break}var ul={strokeDasharray:"".concat(oa*sr,"px, 100px"),strokeDashoffset:"-".concat(Ua,"px"),transition:to||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ft=jo[ya]||jo[jo.length-1];return Ua+=oa,b.createElement("path",{key:ya,className:"".concat(Yt,"-line-path"),d:On,strokeLinecap:ca,stroke:Ft,strokeWidth:fa,fillOpacity:"0",ref:function(Et){Io[ya]=Et},style:ul})}))},x=E,y=z(71002),ee=z(97685),ne=z(98924),ae=0,ie=(0,ne.Z)();function le(){var ft;return ie?(ft=ae,ae+=1):ft="TEST_OR_SSR",ft}var me=function(ft){var xt=b.useState(),At=(0,ee.Z)(xt,2),zt=At[0],cn=At[1];return b.useEffect(function(){cn("rc_progress_".concat(le()))},[]),ft||zt},fe=function(xt){var At=xt.bg,zt=xt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:At}},zt)};function pe(ft,xt){return Object.keys(ft).map(function(At){var zt=parseFloat(At),cn="".concat(Math.floor(zt*xt),"%");return"".concat(ft[At]," ").concat(cn)})}var he=b.forwardRef(function(ft,xt){var At=ft.prefixCls,zt=ft.color,cn=ft.gradientId,Yt=ft.radius,Aa=ft.style,ca=ft.ptg,fa=ft.strokeLinecap,Ha=ft.strokeWidth,wa=ft.size,xn=ft.gapDegree,to=zt&&(0,y.Z)(zt)==="object",ko=to?"#FFF":void 0,Qa=wa/2,jo=b.createElement("circle",{className:"".concat(At,"-circle-path"),r:Yt,cx:Qa,cy:Qa,stroke:ko,strokeLinecap:fa,strokeWidth:Ha,opacity:ca===0?0:1,style:Aa,ref:xt});if(!to)return jo;var Io="".concat(cn,"-conic"),hr=xn?"".concat(180+xn/2,"deg"):"0deg",dn=pe(zt,(360-xn)/360),On=pe(zt,1),pa="conic-gradient(from ".concat(hr,", ").concat(dn.join(", "),")"),Ua="linear-gradient(to ".concat(xn?"bottom":"top",", ").concat(On.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:Io},jo),b.createElement("foreignObject",{x:0,y:0,width:wa,height:wa,mask:"url(#".concat(Io,")")},b.createElement(fe,{bg:Ua},b.createElement(fe,{bg:pa}))))}),de=he,se=100,Me=function(xt,At,zt,cn,Yt,Aa,ca,fa,Ha,wa){var xn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,to=zt/100*360*((360-Aa)/360),ko=Aa===0?0:{bottom:0,top:180,left:90,right:-90}[ca],Qa=(100-cn)/100*At;Ha==="round"&&cn!==100&&(Qa+=wa/2,Qa>=At&&(Qa=At-.01));var jo=se/2;return{stroke:typeof fa=="string"?fa:void 0,strokeDasharray:"".concat(At,"px ").concat(xt),strokeDashoffset:Qa+xn,transform:"rotate(".concat(Yt+to+ko,"deg)"),transformOrigin:"".concat(jo,"px ").concat(jo,"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}},be=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function De(ft){var xt=ft!=null?ft:[];return Array.isArray(xt)?xt:[xt]}var Ce=function(xt){var At=(0,Ze.Z)((0,Ze.Z)({},ce),xt),zt=At.id,cn=At.prefixCls,Yt=At.steps,Aa=At.strokeWidth,ca=At.trailWidth,fa=At.gapDegree,Ha=fa===void 0?0:fa,wa=At.gapPosition,xn=At.trailColor,to=At.strokeLinecap,ko=At.style,Qa=At.className,jo=At.strokeColor,Io=At.percent,hr=(0,Be.Z)(At,be),dn=se/2,On=me(zt),pa="".concat(On,"-gradient"),Ua=dn-Aa/2,oa=Math.PI*2*Ua,ya=Ha>0?90+Ha/2:-90,sr=oa*((360-Ha)/360),ul=(0,y.Z)(Yt)==="object"?Yt:{count:Yt,space:2},Ft=ul.count,pt=ul.space,Et=De(Io),Mn=De(jo),$n=Mn.find(function(Lr){return Lr&&(0,y.Z)(Lr)==="object"}),Kn=$n&&(0,y.Z)($n)==="object",or=Kn?"butt":to,Fo=Me(oa,sr,0,100,ya,Ha,wa,xn,or,Aa),Gn=oe(),Sr=function(){var ha=0;return Et.map(function(gr,Nt){var En=Mn[Nt]||Mn[Mn.length-1],en=Me(oa,sr,ha,gr,ya,Ha,wa,En,or,Aa);return ha+=gr,b.createElement(de,{key:Nt,color:En,ptg:gr,radius:Ua,prefixCls:cn,gradientId:pa,style:en,strokeLinecap:or,strokeWidth:Aa,gapDegree:Ha,ref:function(na){Gn[Nt]=na},size:se})}).reverse()},hl=function(){var ha=Math.round(Ft*(Et[0]/100)),gr=100/Ft,Nt=0;return new Array(Ft).fill(null).map(function(En,en){var Sn=en<=ha-1?Mn[0]:xn,na=Sn&&(0,y.Z)(Sn)==="object"?"url(#".concat(pa,")"):void 0,fn=Me(oa,sr,Nt,gr,ya,Ha,wa,Sn,"butt",Aa,pt);return Nt+=(sr-fn.strokeDashoffset+pt)*100/sr,b.createElement("circle",{key:en,className:"".concat(cn,"-circle-path"),r:Ua,cx:dn,cy:dn,stroke:na,strokeWidth:Aa,opacity:1,style:fn,ref:function(Kt){Gn[en]=Kt}})})};return b.createElement("svg",(0,Oe.Z)({className:ue()("".concat(cn,"-circle"),Qa),viewBox:"0 0 ".concat(se," ").concat(se),style:ko,id:zt,role:"presentation"},hr),!Ft&&b.createElement("circle",{className:"".concat(cn,"-circle-trail"),r:Ua,cx:dn,cy:dn,stroke:xn,strokeLinecap:or,strokeWidth:ca||Aa,style:Fo}),Ft?hl():Sr())},Le=Ce,Ge={Line:x,Circle:Le},qe=z(83062),Je=z(47448);function Re(ft){return!ft||ft<0?0:ft>100?100:ft}function He(ft){let{success:xt,successPercent:At}=ft,zt=At;return xt&&"progress"in xt&&(zt=xt.progress),xt&&"percent"in xt&&(zt=xt.percent),zt}const it=ft=>{let{percent:xt,success:At,successPercent:zt}=ft;const cn=Re(He({success:At,successPercent:zt}));return[cn,Re(Re(xt)-cn)]},$e=ft=>{let{success:xt={},strokeColor:At}=ft;const{strokeColor:zt}=xt;return[zt||Je.presetPrimaryColors.green,At||null]},Ne=(ft,xt,At)=>{var zt,cn,Yt,Aa;let ca=-1,fa=-1;if(xt==="step"){const Ha=At.steps,wa=At.strokeWidth;typeof ft=="string"||typeof ft=="undefined"?(ca=ft==="small"?2:14,fa=wa!=null?wa:8):typeof ft=="number"?[ca,fa]=[ft,ft]:[ca=14,fa=8]=ft,ca*=Ha}else if(xt==="line"){const Ha=At==null?void 0:At.strokeWidth;typeof ft=="string"||typeof ft=="undefined"?fa=Ha||(ft==="small"?6:8):typeof ft=="number"?[ca,fa]=[ft,ft]:[ca=-1,fa=8]=ft}else(xt==="circle"||xt==="dashboard")&&(typeof ft=="string"||typeof ft=="undefined"?[ca,fa]=ft==="small"?[60,60]:[120,120]:typeof ft=="number"?[ca,fa]=[ft,ft]:(ca=(cn=(zt=ft[0])!==null&&zt!==void 0?zt:ft[1])!==null&&cn!==void 0?cn:120,fa=(Aa=(Yt=ft[0])!==null&&Yt!==void 0?Yt:ft[1])!==null&&Aa!==void 0?Aa:120));return[ca,fa]},Ye=3,Xe=ft=>Ye/ft*100;var ct=ft=>{const{prefixCls:xt,trailColor:At=null,strokeLinecap:zt="round",gapPosition:cn,gapDegree:Yt,width:Aa=120,type:ca,children:fa,success:Ha,size:wa=Aa}=ft,[xn,to]=Ne(wa,"circle");let{strokeWidth:ko}=ft;ko===void 0&&(ko=Math.max(Xe(xn),6));const Qa={width:xn,height:to,fontSize:xn*.15+6},jo=b.useMemo(()=>{if(Yt||Yt===0)return Yt;if(ca==="dashboard")return 75},[Yt,ca]),Io=cn||ca==="dashboard"&&"bottom"||void 0,hr=Object.prototype.toString.call(ft.strokeColor)==="[object Object]",dn=$e({success:Ha,strokeColor:ft.strokeColor}),On=ue()(`${xt}-inner`,{[`${xt}-circle-gradient`]:hr}),pa=b.createElement(Le,{percent:it(ft),strokeWidth:ko,trailWidth:ko,strokeColor:dn,strokeLinecap:zt,trailColor:At,prefixCls:xt,gapDegree:jo,gapPosition:Io});return b.createElement("div",{className:On,style:Qa},xn<=20?b.createElement(qe.Z,{title:fa},b.createElement("span",null,pa)):b.createElement(b.Fragment,null,pa,fa))},Ct=function(ft,xt){var At={};for(var zt in ft)Object.prototype.hasOwnProperty.call(ft,zt)&&xt.indexOf(zt)<0&&(At[zt]=ft[zt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,zt=Object.getOwnPropertySymbols(ft);cn{let xt=[];return Object.keys(ft).forEach(At=>{const zt=parseFloat(At.replace(/%/g,""));isNaN(zt)||xt.push({key:zt,value:ft[At]})}),xt=xt.sort((At,zt)=>At.key-zt.key),xt.map(At=>{let{key:zt,value:cn}=At;return`${cn} ${zt}%`}).join(", ")},Qt=(ft,xt)=>{const{from:At=Je.presetPrimaryColors.blue,to:zt=Je.presetPrimaryColors.blue,direction:cn=xt==="rtl"?"to left":"to right"}=ft,Yt=Ct(ft,["from","to","direction"]);if(Object.keys(Yt).length!==0){const Aa=et(Yt);return{backgroundImage:`linear-gradient(${cn}, ${Aa})`}}return{backgroundImage:`linear-gradient(${cn}, ${At}, ${zt})`}};var In=ft=>{const{prefixCls:xt,direction:At,percent:zt,size:cn,strokeWidth:Yt,strokeColor:Aa,strokeLinecap:ca="round",children:fa,trailColor:Ha=null,success:wa}=ft,xn=Aa&&typeof Aa!="string"?Qt(Aa,At):{backgroundColor:Aa},to=ca==="square"||ca==="butt"?0:void 0,ko={backgroundColor:Ha||void 0,borderRadius:to},Qa=cn!=null?cn:[-1,Yt||(cn==="small"?6:8)],[jo,Io]=Ne(Qa,"line",{strokeWidth:Yt}),hr=Object.assign({width:`${Re(zt)}%`,height:Io,borderRadius:to},xn),dn=He(ft),On={width:`${Re(dn)}%`,height:Io,borderRadius:to,backgroundColor:wa==null?void 0:wa.strokeColor},pa={width:jo<0?"100%":jo,height:Io};return b.createElement(b.Fragment,null,b.createElement("div",{className:`${xt}-outer`,style:pa},b.createElement("div",{className:`${xt}-inner`,style:ko},b.createElement("div",{className:`${xt}-bg`,style:hr}),dn!==void 0?b.createElement("div",{className:`${xt}-success-bg`,style:On}):null)),fa)},Lt=ft=>{const{size:xt,steps:At,percent:zt=0,strokeWidth:cn=8,strokeColor:Yt,trailColor:Aa=null,prefixCls:ca,children:fa}=ft,Ha=Math.round(At*(zt/100)),wa=xt==="small"?2:14,xn=xt!=null?xt:[wa,cn],[to,ko]=Ne(xn,"step",{steps:At,strokeWidth:cn}),Qa=to/At,jo=new Array(At);for(let Io=0;Io{const xt=ft?"100%":"-100%";return new Ve.Keyframes(`antProgress${ft?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yt=ft=>{const{componentCls:xt,iconCls:At}=ft;return{[xt]:Object.assign(Object.assign({},(0,nt.Wf)(ft)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ft.fontSize,marginInlineEnd:ft.marginXS,marginBottom:ft.marginXS},[`${xt}-outer`]:{display:"inline-block",width:"100%"},[`&${xt}-show-info`]:{[`${xt}-outer`]:{marginInlineEnd:`calc(-2em - ${ft.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ft.paddingXS}px)`}},[`${xt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ft.remainingColor,borderRadius:ft.lineBorderRadius},[`${xt}-inner:not(${xt}-circle-gradient)`]:{[`${xt}-circle-path`]:{stroke:ft.defaultColor}},[`${xt}-success-bg, ${xt}-bg`]:{position:"relative",backgroundColor:ft.defaultColor,borderRadius:ft.lineBorderRadius,transition:`all ${ft.motionDurationSlow} ${ft.motionEaseInOutCirc}`},[`${xt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ft.colorSuccess},[`${xt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ft.marginXS,color:ft.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[At]:{fontSize:ft.fontSize}},[`&${xt}-status-active`]:{[`${xt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ft.colorBgContainer,borderRadius:ft.lineBorderRadius,opacity:0,animationName:jt(),animationDuration:ft.progressActiveMotionDuration,animationTimingFunction:ft.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xt}-rtl${xt}-status-active`]:{[`${xt}-bg::before`]:{animationName:jt(!0)}},[`&${xt}-status-exception`]:{[`${xt}-bg`]:{backgroundColor:ft.colorError},[`${xt}-text`]:{color:ft.colorError}},[`&${xt}-status-exception ${xt}-inner:not(${xt}-circle-gradient)`]:{[`${xt}-circle-path`]:{stroke:ft.colorError}},[`&${xt}-status-success`]:{[`${xt}-bg`]:{backgroundColor:ft.colorSuccess},[`${xt}-text`]:{color:ft.colorSuccess}},[`&${xt}-status-success ${xt}-inner:not(${xt}-circle-gradient)`]:{[`${xt}-circle-path`]:{stroke:ft.colorSuccess}}})}},Bn=ft=>{const{componentCls:xt,iconCls:At}=ft;return{[xt]:{[`${xt}-circle-trail`]:{stroke:ft.remainingColor},[`&${xt}-circle ${xt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xt}-circle ${xt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ft.circleTextColor,fontSize:ft.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[At]:{fontSize:`${ft.fontSize/ft.fontSizeSM}em`}},[`${xt}-circle&-status-exception`]:{[`${xt}-text`]:{color:ft.colorError}},[`${xt}-circle&-status-success`]:{[`${xt}-text`]:{color:ft.colorSuccess}}},[`${xt}-inline-circle`]:{lineHeight:1,[`${xt}-inner`]:{verticalAlign:"bottom"}}}},It=ft=>{const{componentCls:xt}=ft;return{[xt]:{[`${xt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ft.progressStepMinWidth,marginInlineEnd:ft.progressStepMarginInlineEnd,backgroundColor:ft.remainingColor,transition:`all ${ft.motionDurationSlow}`,"&-active":{backgroundColor:ft.defaultColor}}}}}},Fn=ft=>{const{componentCls:xt,iconCls:At}=ft;return{[xt]:{[`${xt}-small&-line, ${xt}-small&-line ${xt}-text ${At}`]:{fontSize:ft.fontSizeSM}}}};var Zn=(0,at.Z)("Progress",ft=>{const xt=ft.marginXXS/2,At=(0,rt.TS)(ft,{progressStepMarginInlineEnd:xt,progressStepMinWidth:xt,progressActiveMotionDuration:"2.4s"});return[yt(At),Bn(At),It(At),Fn(At)]},ft=>({circleTextColor:ft.colorText,defaultColor:ft.colorInfo,remainingColor:ft.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),_e=function(ft,xt){var At={};for(var zt in ft)Object.prototype.hasOwnProperty.call(ft,zt)&&xt.indexOf(zt)<0&&(At[zt]=ft[zt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,zt=Object.getOwnPropertySymbols(ft);cn{const{prefixCls:At,className:zt,rootClassName:cn,steps:Yt,strokeColor:Aa,percent:ca=0,size:fa="default",showInfo:Ha=!0,type:wa="line",status:xn,format:to,style:ko}=ft,Qa=_e(ft,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),jo=b.useMemo(()=>{var Et,Mn;const $n=He(ft);return parseInt($n!==void 0?(Et=$n!=null?$n:0)===null||Et===void 0?void 0:Et.toString():(Mn=ca!=null?ca:0)===null||Mn===void 0?void 0:Mn.toString(),10)},[ca,ft.success,ft.successPercent]),Io=b.useMemo(()=>!Cn.includes(xn)&&jo>=100?"success":xn||"normal",[xn,jo]),{getPrefixCls:hr,direction:dn,progress:On}=b.useContext(je.E_),pa=hr("progress",At),[Ua,oa]=Zn(pa),ya=b.useMemo(()=>{if(!Ha)return null;const Et=He(ft);let Mn;const $n=to||(or=>`${or}%`),Kn=wa==="line";return to||Io!=="exception"&&Io!=="success"?Mn=$n(Re(ca),Re(Et)):Io==="exception"?Mn=Kn?b.createElement(Pe.Z,null):b.createElement(Ie.Z,null):Io==="success"&&(Mn=Kn?b.createElement(re.Z,null):b.createElement(Se.Z,null)),b.createElement("span",{className:`${pa}-text`,title:typeof Mn=="string"?Mn:void 0},Mn)},[Ha,ca,jo,Io,wa,pa,to]),sr=Array.isArray(Aa)?Aa[0]:Aa,ul=typeof Aa=="string"||Array.isArray(Aa)?Aa:void 0;let Ft;wa==="line"?Ft=Yt?b.createElement(Lt,Object.assign({},ft,{strokeColor:ul,prefixCls:pa,steps:Yt}),ya):b.createElement(In,Object.assign({},ft,{strokeColor:sr,prefixCls:pa,direction:dn}),ya):(wa==="circle"||wa==="dashboard")&&(Ft=b.createElement(ct,Object.assign({},ft,{strokeColor:sr,prefixCls:pa,progressStatus:Io}),ya));const pt=ue()(pa,`${pa}-status-${Io}`,`${pa}-${wa==="dashboard"&&"circle"||Yt&&"steps"||wa}`,{[`${pa}-inline-circle`]:wa==="circle"&&Ne(fa,"circle")[0]<=20,[`${pa}-show-info`]:Ha,[`${pa}-${fa}`]:typeof fa=="string",[`${pa}-rtl`]:dn==="rtl"},On==null?void 0:On.className,zt,cn,oa);return Ua(b.createElement("div",Object.assign({ref:xt,style:Object.assign(Object.assign({},On==null?void 0:On.style),ko),className:pt,role:"progressbar","aria-valuenow":jo},(0,Te.Z)(Qa,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ft))}),wn=gt},12604:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Je}});var b=z(87462),re=z(67294),Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Pe=Se,Ie=z(74643),Fe=function(He,it){return re.createElement(Ie.Z,(0,b.Z)({},He,{ref:it,icon:Pe}))},ue=re.forwardRef(Fe),Te=z(94184),je=z.n(Te),Oe=z(4942),Ze=z(97685),Be=z(45987),ce=z(21770),oe=z(15105),a=z(64217);function E(Re,He){var it=Re.disabled,$e=Re.prefixCls,Ne=Re.character,Ye=Re.characterRender,Xe=Re.index,st=Re.count,ct=Re.value,Ct=Re.allowHalf,et=Re.focused,Qt=Re.onHover,un=Re.onClick,In=function(yt){Qt(yt,Xe)},gn=function(yt){un(yt,Xe)},Lt=function(yt){yt.keyCode===oe.Z.ENTER&&un(yt,Xe)},Ve=Xe+1,nt=new Set([$e]);ct===0&&Xe===0&&et?nt.add("".concat($e,"-focused")):Ct&&ct+.5>=Ve&&ctXe?"true":"false","aria-posinset":Xe+1,"aria-setsize":st,tabIndex:it?-1:0},re.createElement("div",{className:"".concat($e,"-first")},at),re.createElement("div",{className:"".concat($e,"-second")},at)));return Ye&&(rt=Ye(rt,Re)),rt}var x=re.forwardRef(E);function y(){var Re=re.useRef({});function He($e){return Re.current[$e]}function it($e){return function(Ne){Re.current[$e]=Ne}}return[He,it]}function ee(Re){var He=Re.pageXOffset,it="scrollLeft";if(typeof He!="number"){var $e=Re.document;He=$e.documentElement[it],typeof He!="number"&&(He=$e.body[it])}return He}function ne(Re){var He,it,$e=Re.ownerDocument,Ne=$e.body,Ye=$e&&$e.documentElement,Xe=Re.getBoundingClientRect();return He=Xe.left,it=Xe.top,He-=Ye.clientLeft||Ne.clientLeft||0,it-=Ye.clientTop||Ne.clientTop||0,{left:He,top:it}}function ae(Re){var He=ne(Re),it=Re.ownerDocument,$e=it.defaultView||it.parentWindow;return He.left+=ee($e),He.left}var ie=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(Re,He){var it,$e=Re.prefixCls,Ne=$e===void 0?"rc-rate":$e,Ye=Re.className,Xe=Re.defaultValue,st=Re.value,ct=Re.count,Ct=ct===void 0?5:ct,et=Re.allowHalf,Qt=et===void 0?!1:et,un=Re.allowClear,In=un===void 0?!0:un,gn=Re.character,Lt=gn===void 0?"\u2605":gn,Ve=Re.characterRender,nt=Re.disabled,at=Re.direction,rt=at===void 0?"ltr":at,jt=Re.tabIndex,yt=jt===void 0?0:jt,Bn=Re.autoFocus,It=Re.onHoverChange,Fn=Re.onChange,Zn=Re.onFocus,_e=Re.onBlur,Pt=Re.onKeyDown,Cn=Re.onMouseLeave,jn=(0,Be.Z)(Re,ie),gt=y(),wn=(0,Ze.Z)(gt,2),ft=wn[0],xt=wn[1],At=re.useRef(null),zt=function(){if(!nt){var Kn;(Kn=At.current)===null||Kn===void 0||Kn.focus()}};re.useImperativeHandle(He,function(){return{focus:zt,blur:function(){if(!nt){var Kn;(Kn=At.current)===null||Kn===void 0||Kn.blur()}}}});var cn=(0,ce.Z)(Xe||0,{value:st}),Yt=(0,Ze.Z)(cn,2),Aa=Yt[0],ca=Yt[1],fa=(0,ce.Z)(null),Ha=(0,Ze.Z)(fa,2),wa=Ha[0],xn=Ha[1],to=function(Kn,or){var Fo=rt==="rtl",Gn=Kn+1;if(Qt){var Sr=ft(Kn),hl=ae(Sr),Lr=Sr.clientWidth;(Fo&&or-hl>Lr/2||!Fo&&or-hl0&&!Fo||or===oe.Z.RIGHT&&Gn>0&&Fo?(Qt?Gn-=.5:Gn-=1,ko(Gn),Kn.preventDefault()):or===oe.Z.LEFT&&Gn{const{componentCls:He}=Re;return{[`${He}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Re.marginXS},"> div":{transition:`all ${Re.motionDurationMid}, outline 0s`,"&:hover":{transform:Re.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Re.lineWidth}px dashed ${Re.starColor}`,transform:Re.starHoverScale}},"&-first, &-second":{color:Re.starBg,transition:`all ${Re.motionDurationMid}`,userSelect:"none",[Re.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${He}-star-first, &-half ${He}-star-second`]:{opacity:1},[`&-half ${He}-star-first, &-full ${He}-star-second`]:{color:"inherit"}}}},De=Re=>({[`&-rtl${Re.componentCls}`]:{direction:"rtl"}}),Ce=Re=>{const{componentCls:He}=Re;return{[He]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Re)),{display:"inline-block",margin:0,padding:0,color:Re.starColor,fontSize:Re.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${He} ${He}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),be(Re)),{[`+ ${He}-text`]:{display:"inline-block",marginInlineStart:Re.marginXS,fontSize:Re.fontSize}}),De(Re))}};var Le=(0,se.Z)("Rate",Re=>{const He=(0,Me.TS)(Re,{});return[Ce(He)]},Re=>({starColor:Re.yellow6,starSize:Re.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Re.colorFillContent})),Ge=function(Re,He){var it={};for(var $e in Re)Object.prototype.hasOwnProperty.call(Re,$e)&&He.indexOf($e)<0&&(it[$e]=Re[$e]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,$e=Object.getOwnPropertySymbols(Re);Ne<$e.length;Ne++)He.indexOf($e[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Re,$e[Ne])&&(it[$e[Ne]]=Re[$e[Ne]]);return it},Je=re.forwardRef((Re,He)=>{const{prefixCls:it,className:$e,rootClassName:Ne,style:Ye,tooltips:Xe,character:st=re.createElement(ue,null)}=Re,ct=Ge(Re,["prefixCls","className","rootClassName","style","tooltips","character"]),Ct=(nt,at)=>{let{index:rt}=at;return Xe?re.createElement(he.Z,{title:Xe[rt]},nt):nt},{getPrefixCls:et,direction:Qt,rate:un}=re.useContext(pe.E_),In=et("rate",it),[gn,Lt]=Le(In),Ve=Object.assign(Object.assign({},un==null?void 0:un.style),Ye);return gn(re.createElement(fe,Object.assign({ref:He,character:st,characterRender:Ct},ct,{className:je()($e,Ne,Lt,un==null?void 0:un.className),style:Ve,prefixCls:In,direction:Qt})))})},46303:function(ut,Ue,z){"use strict";z.d(Ue,{Z:function(){return Lt}});var b=z(94184),re=z.n(b),Se=z(67294),Pe=z(53124),Ie=z(10366),ue=Ve=>{const{prefixCls:nt,className:at,style:rt,size:jt,shape:yt}=Ve,Bn=re()({[`${nt}-lg`]:jt==="large",[`${nt}-sm`]:jt==="small"}),It=re()({[`${nt}-circle`]:yt==="circle",[`${nt}-square`]:yt==="square",[`${nt}-round`]:yt==="round"}),Fn=Se.useMemo(()=>typeof jt=="number"?{width:jt,height:jt,lineHeight:`${jt}px`}:{},[jt]);return Se.createElement("span",{className:re()(nt,Bn,It,at),style:Object.assign(Object.assign({},Fn),rt)})},Te=z(45930),je=z(67968),Oe=z(45503);const Ze=new Te.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Be=Ve=>({height:Ve,lineHeight:`${Ve}px`}),ce=Ve=>Object.assign({width:Ve},Be(Ve)),oe=Ve=>({background:Ve.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ze,animationDuration:Ve.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ve=>Object.assign({width:Ve*5,minWidth:Ve*5},Be(Ve)),E=Ve=>{const{skeletonAvatarCls:nt,gradientFromColor:at,controlHeight:rt,controlHeightLG:jt,controlHeightSM:yt}=Ve;return{[`${nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:at},ce(rt)),[`${nt}${nt}-circle`]:{borderRadius:"50%"},[`${nt}${nt}-lg`]:Object.assign({},ce(jt)),[`${nt}${nt}-sm`]:Object.assign({},ce(yt))}},x=Ve=>{const{controlHeight:nt,borderRadiusSM:at,skeletonInputCls:rt,controlHeightLG:jt,controlHeightSM:yt,gradientFromColor:Bn}=Ve;return{[`${rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bn,borderRadius:at},a(nt)),[`${rt}-lg`]:Object.assign({},a(jt)),[`${rt}-sm`]:Object.assign({},a(yt))}},y=Ve=>Object.assign({width:Ve},Be(Ve)),ee=Ve=>{const{skeletonImageCls:nt,imageSizeBase:at,gradientFromColor:rt,borderRadiusSM:jt}=Ve;return{[`${nt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:rt,borderRadius:jt},y(at*2)),{[`${nt}-path`]:{fill:"#bfbfbf"},[`${nt}-svg`]:Object.assign(Object.assign({},y(at)),{maxWidth:at*4,maxHeight:at*4}),[`${nt}-svg${nt}-svg-circle`]:{borderRadius:"50%"}}),[`${nt}${nt}-circle`]:{borderRadius:"50%"}}},ne=(Ve,nt,at)=>{const{skeletonButtonCls:rt}=Ve;return{[`${at}${rt}-circle`]:{width:nt,minWidth:nt,borderRadius:"50%"},[`${at}${rt}-round`]:{borderRadius:nt}}},ae=Ve=>Object.assign({width:Ve*2,minWidth:Ve*2},Be(Ve)),ie=Ve=>{const{borderRadiusSM:nt,skeletonButtonCls:at,controlHeight:rt,controlHeightLG:jt,controlHeightSM:yt,gradientFromColor:Bn}=Ve;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${at}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Bn,borderRadius:nt,width:rt*2,minWidth:rt*2},ae(rt))},ne(Ve,rt,at)),{[`${at}-lg`]:Object.assign({},ae(jt))}),ne(Ve,jt,`${at}-lg`)),{[`${at}-sm`]:Object.assign({},ae(yt))}),ne(Ve,yt,`${at}-sm`))},le=Ve=>{const{componentCls:nt,skeletonAvatarCls:at,skeletonTitleCls:rt,skeletonParagraphCls:jt,skeletonButtonCls:yt,skeletonInputCls:Bn,skeletonImageCls:It,controlHeight:Fn,controlHeightLG:Zn,controlHeightSM:_e,gradientFromColor:Pt,padding:Cn,marginSM:jn,borderRadius:gt,titleHeight:wn,blockRadius:ft,paragraphLiHeight:xt,controlHeightXS:At,paragraphMarginTop:zt}=Ve;return{[`${nt}`]:{display:"table",width:"100%",[`${nt}-header`]:{display:"table-cell",paddingInlineEnd:Cn,verticalAlign:"top",[`${at}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt},ce(Fn)),[`${at}-circle`]:{borderRadius:"50%"},[`${at}-lg`]:Object.assign({},ce(Zn)),[`${at}-sm`]:Object.assign({},ce(_e))},[`${nt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${rt}`]:{width:"100%",height:wn,background:Pt,borderRadius:ft,[`+ ${jt}`]:{marginBlockStart:_e}},[`${jt}`]:{padding:0,"> li":{width:"100%",height:xt,listStyle:"none",background:Pt,borderRadius:ft,"+ li":{marginBlockStart:At}}},[`${jt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${nt}-content`]:{[`${rt}, ${jt} > li`]:{borderRadius:gt}}},[`${nt}-with-avatar ${nt}-content`]:{[`${rt}`]:{marginBlockStart:jn,[`+ ${jt}`]:{marginBlockStart:zt}}},[`${nt}${nt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ie(Ve)),E(Ve)),x(Ve)),ee(Ve)),[`${nt}${nt}-block`]:{width:"100%",[`${yt}`]:{width:"100%"},[`${Bn}`]:{width:"100%"}},[`${nt}${nt}-active`]:{[` ${rt}, ${jt} > li, ${at}, ${yt}, ${Bn}, ${It} `]:Object.assign({},oe(Ve))}}};var me=(0,je.Z)("Skeleton",Ve=>{const{componentCls:nt}=Ve,at=(0,Oe.TS)(Ve,{skeletonAvatarCls:`${nt}-avatar`,skeletonTitleCls:`${nt}-title`,skeletonParagraphCls:`${nt}-paragraph`,skeletonButtonCls:`${nt}-button`,skeletonInputCls:`${nt}-input`,skeletonImageCls:`${nt}-image`,imageSizeBase:Ve.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ve.gradientFromColor} 25%, ${Ve.gradientToColor} 37%, ${Ve.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[le(at)]},Ve=>{const{colorFillContent:nt,colorFill:at}=Ve,rt=nt,jt=at;return{color:rt,colorGradientEnd:jt,gradientFromColor:rt,gradientToColor:jt,titleHeight:Ve.controlHeight/2,blockRadius:Ve.borderRadiusSM,paragraphMarginTop:Ve.marginLG+Ve.marginXXS,paragraphLiHeight:Ve.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),pe=Ve=>{const{prefixCls:nt,className:at,rootClassName:rt,active:jt,shape:yt="circle",size:Bn="default"}=Ve,{getPrefixCls:It}=Se.useContext(Pe.E_),Fn=It("skeleton",nt),[Zn,_e]=me(Fn),Pt=(0,Ie.Z)(Ve,["prefixCls","className"]),Cn=re()(Fn,`${Fn}-element`,{[`${Fn}-active`]:jt},at,rt,_e);return Zn(Se.createElement("div",{className:Cn},Se.createElement(ue,Object.assign({prefixCls:`${Fn}-avatar`,shape:yt,size:Bn},Pt))))},de=Ve=>{const{prefixCls:nt,className:at,rootClassName:rt,active:jt,block:yt=!1,size:Bn="default"}=Ve,{getPrefixCls:It}=Se.useContext(Pe.E_),Fn=It("skeleton",nt),[Zn,_e]=me(Fn),Pt=(0,Ie.Z)(Ve,["prefixCls"]),Cn=re()(Fn,`${Fn}-element`,{[`${Fn}-active`]:jt,[`${Fn}-block`]:yt},at,rt,_e);return Zn(Se.createElement("div",{className:Cn},Se.createElement(ue,Object.assign({prefixCls:`${Fn}-button`,size:Bn},Pt))))};const se="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var be=Ve=>{const{prefixCls:nt,className:at,rootClassName:rt,style:jt,active:yt}=Ve,{getPrefixCls:Bn}=Se.useContext(Pe.E_),It=Bn("skeleton",nt),[Fn,Zn]=me(It),_e=re()(It,`${It}-element`,{[`${It}-active`]:yt},at,rt,Zn);return Fn(Se.createElement("div",{className:_e},Se.createElement("div",{className:re()(`${It}-image`,at),style:jt},Se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${It}-image-svg`},Se.createElement("path",{d:se,className:`${It}-image-path`})))))},Ce=Ve=>{const{prefixCls:nt,className:at,rootClassName:rt,active:jt,block:yt,size:Bn="default"}=Ve,{getPrefixCls:It}=Se.useContext(Pe.E_),Fn=It("skeleton",nt),[Zn,_e]=me(Fn),Pt=(0,Ie.Z)(Ve,["prefixCls"]),Cn=re()(Fn,`${Fn}-element`,{[`${Fn}-active`]:jt,[`${Fn}-block`]:yt},at,rt,_e);return Zn(Se.createElement("div",{className:Cn},Se.createElement(ue,Object.assign({prefixCls:`${Fn}-input`,size:Bn},Pt))))},Le=z(87462),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},qe=Ge,Je=z(74643),Re=function(nt,at){return Se.createElement(Je.Z,(0,Le.Z)({},nt,{ref:at,icon:qe}))},He=Se.forwardRef(Re),$e=Ve=>{const{prefixCls:nt,className:at,rootClassName:rt,style:jt,active:yt,children:Bn}=Ve,{getPrefixCls:It}=Se.useContext(Pe.E_),Fn=It("skeleton",nt),[Zn,_e]=me(Fn),Pt=re()(Fn,`${Fn}-element`,{[`${Fn}-active`]:yt},_e,at,rt),Cn=Bn!=null?Bn:Se.createElement(He,null);return Zn(Se.createElement("div",{className:Pt},Se.createElement("div",{className:re()(`${Fn}-image`,at),style:jt},Cn)))},Ne=z(74902),Xe=Ve=>{const nt=It=>{const{width:Fn,rows:Zn=2}=Ve;if(Array.isArray(Fn))return Fn[It];if(Zn-1===It)return Fn},{prefixCls:at,className:rt,style:jt,rows:yt}=Ve,Bn=(0,Ne.Z)(Array(yt)).map((It,Fn)=>Se.createElement("li",{key:Fn,style:{width:nt(Fn)}}));return Se.createElement("ul",{className:re()(at,rt),style:jt},Bn)},ct=Ve=>{let{prefixCls:nt,className:at,width:rt,style:jt}=Ve;return Se.createElement("h3",{className:re()(nt,at),style:Object.assign({width:rt},jt)})};function Ct(Ve){return Ve&&typeof Ve=="object"?Ve:{}}function et(Ve,nt){return Ve&&!nt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qt(Ve,nt){return!Ve&&nt?{width:"38%"}:Ve&&nt?{width:"50%"}:{}}function un(Ve,nt){const at={};return(!Ve||!nt)&&(at.width="61%"),!Ve&&nt?at.rows=3:at.rows=2,at}const In=Ve=>{const{prefixCls:nt,loading:at,className:rt,rootClassName:jt,style:yt,children:Bn,avatar:It=!1,title:Fn=!0,paragraph:Zn=!0,active:_e,round:Pt}=Ve,{getPrefixCls:Cn,direction:jn,skeleton:gt}=Se.useContext(Pe.E_),wn=Cn("skeleton",nt),[ft,xt]=me(wn);if(at||!("loading"in Ve)){const At=!!It,zt=!!Fn,cn=!!Zn;let Yt;if(At){const fa=Object.assign(Object.assign({prefixCls:`${wn}-avatar`},et(zt,cn)),Ct(It));Yt=Se.createElement("div",{className:`${wn}-header`},Se.createElement(ue,Object.assign({},fa)))}let Aa;if(zt||cn){let fa;if(zt){const wa=Object.assign(Object.assign({prefixCls:`${wn}-title`},Qt(At,cn)),Ct(Fn));fa=Se.createElement(ct,Object.assign({},wa))}let Ha;if(cn){const wa=Object.assign(Object.assign({prefixCls:`${wn}-paragraph`},un(At,zt)),Ct(Zn));Ha=Se.createElement(Xe,Object.assign({},wa))}Aa=Se.createElement("div",{className:`${wn}-content`},fa,Ha)}const ca=re()(wn,{[`${wn}-with-avatar`]:At,[`${wn}-active`]:_e,[`${wn}-rtl`]:jn==="rtl",[`${wn}-round`]:Pt},gt==null?void 0:gt.className,rt,jt,xt);return ft(Se.createElement("div",{className:ca,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),yt)},Yt,Aa))}return typeof Bn!="undefined"?Bn:null};In.Button=de,In.Avatar=pe,In.Input=Ce,In.Image=be,In.Node=$e;var gn=In,Lt=gn},55054:function(ut,Ue,z){"use strict";z.d(Ue,{default:function(){return me}});var b=z(67294),re=z(57838),Se=z(96159),Pe=z(94184),Ie=z.n(Pe),Fe=z(53124),ue=z(46303),je=fe=>{const{value:pe,formatter:he,precision:de,decimalSeparator:se,groupSeparator:Me="",prefixCls:be}=fe;let De;if(typeof he=="function")De=he(pe);else{const Ce=String(pe),Le=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Le||Ce==="-")De=Ce;else{const Ge=Le[1];let qe=Le[2]||"0",Je=Le[4]||"";qe=qe.replace(/\B(?=(\d{3})+(?!\d))/g,Me),typeof de=="number"&&(Je=Je.padEnd(de,"0").slice(0,de>0?de:0)),Je&&(Je=`${se}${Je}`),De=[b.createElement("span",{key:"int",className:`${be}-content-value-int`},Ge,qe),Je&&b.createElement("span",{key:"decimal",className:`${be}-content-value-decimal`},Je)]}}return b.createElement("span",{className:`${be}-content-value`},De)},Oe=z(14747),Ze=z(67968),Be=z(45503);const ce=fe=>{const{componentCls:pe,marginXXS:he,padding:de,colorTextDescription:se,titleFontSize:Me,colorTextHeading:be,contentFontSize:De,fontFamily:Ce}=fe;return{[`${pe}`]:Object.assign(Object.assign({},(0,Oe.Wf)(fe)),{[`${pe}-title`]:{marginBottom:he,color:se,fontSize:Me},[`${pe}-skeleton`]:{paddingTop:de},[`${pe}-content`]:{color:be,fontSize:De,fontFamily:Ce,[`${pe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${pe}-content-prefix, ${pe}-content-suffix`]:{display:"inline-block"},[`${pe}-content-prefix`]:{marginInlineEnd:he},[`${pe}-content-suffix`]:{marginInlineStart:he}}})}};var oe=(0,Ze.Z)("Statistic",fe=>{const pe=(0,Be.TS)(fe,{});return[ce(pe)]},fe=>{const{fontSizeHeading3:pe,fontSize:he}=fe;return{titleFontSize:he,contentFontSize:pe}}),E=fe=>{const{prefixCls:pe,className:he,rootClassName:de,style:se,valueStyle:Me,value:be=0,title:De,valueRender:Ce,prefix:Le,suffix:Ge,loading:qe=!1,onMouseEnter:Je,onMouseLeave:Re,decimalSeparator:He=".",groupSeparator:it=","}=fe,{getPrefixCls:$e,direction:Ne,statistic:Ye}=b.useContext(Fe.E_),Xe=$e("statistic",pe),[st,ct]=oe(Xe),Ct=b.createElement(je,Object.assign({decimalSeparator:He,groupSeparator:it,prefixCls:Xe},fe,{value:be})),et=Ie()(Xe,{[`${Xe}-rtl`]:Ne==="rtl"},Ye==null?void 0:Ye.className,he,de,ct);return st(b.createElement("div",{className:et,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),se),onMouseEnter:Je,onMouseLeave:Re},De&&b.createElement("div",{className:`${Xe}-title`},De),b.createElement(ue.Z,{paragraph:!1,loading:qe,className:`${Xe}-skeleton`},b.createElement("div",{style:Me,className:`${Xe}-content`},Le&&b.createElement("span",{className:`${Xe}-content-prefix`},Le),Ce?Ce(Ct):Ct,Ge&&b.createElement("span",{className:`${Xe}-content-suffix`},Ge)))))};const x=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function y(fe,pe){let he=fe;const de=/\[[^\]]*]/g,se=(pe.match(de)||[]).map(Ce=>Ce.slice(1,-1)),Me=pe.replace(de,"[]"),be=x.reduce((Ce,Le)=>{let[Ge,qe]=Le;if(Ce.includes(Ge)){const Je=Math.floor(he/qe);return he-=Je*qe,Ce.replace(new RegExp(`${Ge}+`,"g"),Re=>{const He=Re.length;return Je.toString().padStart(He,"0")})}return Ce},Me);let De=0;return be.replace(de,()=>{const Ce=se[De];return De+=1,Ce})}function ee(fe,pe){const{format:he=""}=pe,de=new Date(fe).getTime(),se=Date.now(),Me=Math.max(de-se,0);return y(Me,he)}const ne=1e3/30;function ae(fe){return new Date(fe).getTime()}const ie=fe=>{const{value:pe,format:he="HH:mm:ss",onChange:de,onFinish:se}=fe,Me=(0,re.Z)(),be=b.useRef(null),De=()=>{se==null||se(),be.current&&(clearInterval(be.current),be.current=null)},Ce=()=>{const qe=ae(pe);qe>=Date.now()&&(be.current=setInterval(()=>{Me(),de==null||de(qe-Date.now()),qe(Ce(),()=>{be.current&&(clearInterval(be.current),be.current=null)}),[pe]);const Le=(qe,Je)=>ee(qe,Object.assign(Object.assign({},Je),{format:he})),Ge=qe=>(0,Se.Tm)(qe,{title:void 0});return b.createElement(E,Object.assign({},fe,{valueRender:Ge,formatter:Le}))};var le=b.memo(ie);E.Countdown=le;var me=E},49867:function(ut,Ue,z){"use strict";z.d(Ue,{N:function(){return b}});const b=re=>({color:re.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${re.motionDurationSlow}`,"&:focus, &:hover":{color:re.colorLinkHover},"&:active":{color:re.colorLinkActive}})},9430:function(ut,Ue,z){"use strict";z.d(Ue,{default:function(){return ju}});var b={},re="rc-table-internal-hook",Se=z(97685),Pe=z(66680),Ie=z(8410),Fe=z(91881),ue=z(67294),Te=z(73935);function je(ve){var Ae=ue.createContext(void 0),ke=function(Qe){var Ke=Qe.value,St=Qe.children,Mt=ue.useRef(Ke);Mt.current=Ke;var Dt=ue.useState(function(){return{getValue:function(){return Mt.current},listeners:new Set}}),Vt=(0,Se.Z)(Dt,1),mn=Vt[0];return(0,Ie.Z)(function(){(0,Te.unstable_batchedUpdates)(function(){mn.listeners.forEach(function(Xt){Xt(Ke)})})},[Ke]),ue.createElement(Ae.Provider,{value:mn},St)};return{Context:Ae,Provider:ke,defaultValue:ve}}function Oe(ve,Ae){var ke=(0,Pe.Z)(typeof Ae=="function"?Ae:function(Xt){if(Ae===void 0)return Xt;if(!Array.isArray(Ae))return Xt[Ae];var Yn={};return Ae.forEach(function(yn){Yn[yn]=Xt[yn]}),Yn}),ze=ue.useContext(ve==null?void 0:ve.Context),Qe=ze||{},Ke=Qe.listeners,St=Qe.getValue,Mt=ue.useRef();Mt.current=ke(ze?St():ve==null?void 0:ve.defaultValue);var Dt=ue.useState({}),Vt=(0,Se.Z)(Dt,2),mn=Vt[1];return(0,Ie.Z)(function(){if(!ze)return;function Xt(Yn){var yn=ke(Yn);(0,Fe.Z)(Mt.current,yn,!0)||mn({})}return Ke.add(Xt),function(){Ke.delete(Xt)}},[ze]),Mt.current}var Ze=z(87462),Be=z(42550);function ce(){var ve=ue.createContext(null);function Ae(){return ue.useContext(ve)}function ke(Qe,Ke){var St=(0,Be.Yr)(Qe),Mt=function(Vt,mn){var Xt=St?{ref:mn}:{},Yn=ue.useRef(0),yn=ue.useRef(Vt),Hn=Ae();return Hn!==null?ue.createElement(Qe,(0,Ze.Z)({},Vt,Xt)):((!Ke||Ke(yn.current,Vt))&&(Yn.current+=1),yn.current=Vt,ue.createElement(ve.Provider,{value:Yn.current},ue.createElement(Qe,(0,Ze.Z)({},Vt,Xt))))};return St?ue.forwardRef(Mt):Mt}function ze(Qe,Ke){var St=(0,Be.Yr)(Qe),Mt=function(Vt,mn){var Xt=St?{ref:mn}:{};return Ae(),ue.createElement(Qe,(0,Ze.Z)({},Vt,Xt))};return St?ue.memo(ue.forwardRef(Mt),Ke):ue.memo(Mt,Ke)}return{makeImmutable:ke,responseImmutable:ze,useImmutableMark:Ae}}var oe=ce(),a=oe.makeImmutable,E=oe.responseImmutable,x=oe.useImmutableMark,y=ce(),ee=y.makeImmutable,ne=y.responseImmutable,ae=y.useImmutableMark,ie=je(),le=ie;function me(ve,Ae){var ke=ue.useRef(0);ke.current+=1;var ze=ue.useRef(ve),Qe=[];Object.keys(ve||{}).map(function(St){var Mt;(ve==null?void 0:ve[St])!==((Mt=ze.current)===null||Mt===void 0?void 0:Mt[St])&&Qe.push(St)}),ze.current=ve;var Ke=ue.useRef([]);return Qe.length&&(Ke.current=Qe),ue.useDebugValue(ke.current),ue.useDebugValue(Ke.current.join(", ")),Ae&&console.log("".concat(Ae,":"),ke.current,Ke.current),ke.current}var fe=null,pe=ue.memo(function(){var ve=me();return ue.createElement("h1",null,"Render Times: ",ve)});pe.displayName="RenderBlock";var he=z(71002),de=z(1413),se=z(4942),Me=z(94184),be=z.n(Me);function De(ve,Ae,ke){var ze=ue.useRef({});return(!("value"in ze.current)||ke(ze.current.condition,Ae))&&(ze.current.value=ve(),ze.current.condition=Ae),ze.current.value}var Ce={},Le=[],Ge=function(Ae){Le.push(Ae)};function qe(ve,Ae){if(0)var ke}function Je(ve,Ae){if(0)var ke}function Re(){Ce={}}function He(ve,Ae,ke){!Ae&&!Ce[ke]&&(ve(!1,ke),Ce[ke]=!0)}function it(ve,Ae){He(qe,ve,Ae)}function $e(ve,Ae){He(Je,ve,Ae)}it.preMessage=Ge,it.resetWarned=Re,it.noteOnce=$e;var Ne=it;function Ye(ve,Ae){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ze=new Set;function Qe(Ke,St){var Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Dt=ze.has(Ke);if(Ne(!Dt,"Warning: There may be circular references"),Dt)return!1;if(Ke===St)return!0;if(ke&&Mt>1)return!1;ze.add(Ke);var Vt=Mt+1;if(Array.isArray(Ke)){if(!Array.isArray(St)||Ke.length!==St.length)return!1;for(var mn=0;mn=ke}function nt(ve,Ae){return Oe(le,function(ke){var ze=Ve(ve,Ae||1,ke.hoverStartRow,ke.hoverEndRow);return[ze,ke.onHover]})}var at=function(Ae){var ke=Ae.ellipsis,ze=Ae.rowType,Qe=Ae.children,Ke,St=ke===!0?{showTitle:!0}:ke;return St&&(St.showTitle||ze==="header")&&(typeof Qe=="string"||typeof Qe=="number"?Ke=Qe.toString():ue.isValidElement(Qe)&&typeof Qe.props.children=="string"&&(Ke=Qe.props.children)),Ke};function rt(ve){var Ae,ke,ze,Qe,Ke,St,Mt,Dt,Vt=ve.component,mn=ve.children,Xt=ve.ellipsis,Yn=ve.scope,yn=ve.prefixCls,Hn=ve.className,ra=ve.align,vn=ve.record,Ea=ve.render,da=ve.dataIndex,Na=ve.renderIndex,Sa=ve.shouldCellUpdate,Ho=ve.index,Eo=ve.rowType,mr=ve.colSpan,Dr=ve.rowSpan,lo=ve.fixLeft,Ao=ve.fixRight,Ja=ve.firstFixLeft,Ta=ve.lastFixLeft,po=ve.firstFixRight,er=ve.lastFixRight,Tr=ve.appendNode,xr=ve.additionalProps,Ko=xr===void 0?{}:xr,Kr=ve.isSticky,Xr="".concat(yn,"-cell"),Ol=Oe(le,["supportSticky","allColumnsFixedLeft"]),nl=Ol.supportSticky,oi=Ol.allColumnsFixedLeft,ri=Lt(vn,da,Na,mn,Ea,Sa),wr=(0,Se.Z)(ri,2),vi=wr[0],fl=wr[1],ei={},Jl=typeof lo=="number"&&nl,ru=typeof Ao=="number"&&nl;Jl&&(ei.position="sticky",ei.left=lo),ru&&(ei.position="sticky",ei.right=Ao);var To=(Ae=(ke=(ze=fl==null?void 0:fl.colSpan)!==null&&ze!==void 0?ze:Ko.colSpan)!==null&&ke!==void 0?ke:mr)!==null&&Ae!==void 0?Ae:1,Qo=(Qe=(Ke=(St=fl==null?void 0:fl.rowSpan)!==null&&St!==void 0?St:Ko.rowSpan)!==null&&Ke!==void 0?Ke:Dr)!==null&&Qe!==void 0?Qe:1,Uo=nt(Ho,Qo),wo=(0,Se.Z)(Uo,2),gl=wo[0],Ro=wo[1],Fr=function(Ai){var lu;vn&&Ro(Ho,Ho+Qo-1),Ko==null||(lu=Ko.onMouseEnter)===null||lu===void 0||lu.call(Ko,Ai)},ml=function(Ai){var lu;vn&&Ro(-1,-1),Ko==null||(lu=Ko.onMouseLeave)===null||lu===void 0||lu.call(Ko,Ai)};if(To===0||Qo===0)return null;var qr=(Mt=Ko.title)!==null&&Mt!==void 0?Mt:at({rowType:Eo,ellipsis:Xt,children:vi}),Gi=be()(Xr,Hn,(Dt={},(0,se.Z)(Dt,"".concat(Xr,"-fix-left"),Jl&&nl),(0,se.Z)(Dt,"".concat(Xr,"-fix-left-first"),Ja&&nl),(0,se.Z)(Dt,"".concat(Xr,"-fix-left-last"),Ta&&nl),(0,se.Z)(Dt,"".concat(Xr,"-fix-left-all"),Ta&&oi&&nl),(0,se.Z)(Dt,"".concat(Xr,"-fix-right"),ru&&nl),(0,se.Z)(Dt,"".concat(Xr,"-fix-right-first"),po&&nl),(0,se.Z)(Dt,"".concat(Xr,"-fix-right-last"),er&&nl),(0,se.Z)(Dt,"".concat(Xr,"-ellipsis"),Xt),(0,se.Z)(Dt,"".concat(Xr,"-with-append"),Tr),(0,se.Z)(Dt,"".concat(Xr,"-fix-sticky"),(Jl||ru)&&Kr&&nl),(0,se.Z)(Dt,"".concat(Xr,"-row-hover"),!fl&&gl),Dt),Ko.className,fl==null?void 0:fl.className),Wi={};ra&&(Wi.textAlign=ra);var Cu=(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)({},ei),Ko.style),Wi),fl==null?void 0:fl.style),yi=vi;return(0,he.Z)(yi)==="object"&&!Array.isArray(yi)&&!ue.isValidElement(yi)&&(yi=null),Xt&&(Ta||po)&&(yi=ue.createElement("span",{className:"".concat(Xr,"-content")},yi)),ue.createElement(Vt,(0,Ze.Z)({},fl,Ko,{className:Gi,style:Cu,title:qr,scope:Yn,onMouseEnter:Fr,onMouseLeave:ml,colSpan:To!==1?To:null,rowSpan:Qo!==1?Qo:null}),Tr,yi)}var jt=ue.memo(rt);function yt(ve,Ae,ke,ze,Qe,Ke){var St=ke[ve]||{},Mt=ke[Ae]||{},Dt,Vt;St.fixed==="left"?Dt=ze.left[Qe==="rtl"?Ae:ve]:Mt.fixed==="right"&&(Vt=ze.right[Qe==="rtl"?ve:Ae]);var mn=!1,Xt=!1,Yn=!1,yn=!1,Hn=ke[Ae+1],ra=ke[ve-1],vn=!(Ke!=null&&Ke.children);if(Qe==="rtl"){if(Dt!==void 0){var Ea=ra&&ra.fixed==="left";yn=!Ea&&vn}else if(Vt!==void 0){var da=Hn&&Hn.fixed==="right";Yn=!da&&vn}}else if(Dt!==void 0){var Na=Hn&&Hn.fixed==="left";mn=!Na&&vn}else if(Vt!==void 0){var Sa=ra&&ra.fixed==="right";Xt=!Sa&&vn}return{fixLeft:Dt,fixRight:Vt,lastFixLeft:mn,firstFixRight:Xt,lastFixRight:Yn,firstFixLeft:yn,isSticky:ze.isSticky}}var Bn=ue.createContext({}),It=Bn;function Fn(ve){var Ae=ve.className,ke=ve.index,ze=ve.children,Qe=ve.colSpan,Ke=Qe===void 0?1:Qe,St=ve.rowSpan,Mt=ve.align,Dt=Oe(le,["prefixCls","direction"]),Vt=Dt.prefixCls,mn=Dt.direction,Xt=ue.useContext(It),Yn=Xt.scrollColumnIndex,yn=Xt.stickyOffsets,Hn=Xt.flattenColumns,ra=Xt.columns,vn=ke+Ke-1,Ea=vn+1===Yn?Ke+1:Ke,da=yt(ke,ke+Ea-1,Hn,yn,mn,ra==null?void 0:ra[ke]);return ue.createElement(jt,(0,Ze.Z)({className:Ae,index:ke,component:"td",prefixCls:Vt,record:null,dataIndex:null,align:Mt,colSpan:Ea,rowSpan:St,render:function(){return ze}},da))}var Zn=z(45987),_e=["children"];function Pt(ve){var Ae=ve.children,ke=(0,Zn.Z)(ve,_e);return ue.createElement("tr",ke,Ae)}function Cn(ve){var Ae=ve.children;return Ae}Cn.Row=Pt,Cn.Cell=Fn;var jn=Cn;function gt(ve){var Ae=ve.children,ke=ve.stickyOffsets,ze=ve.flattenColumns,Qe=ve.columns,Ke=Oe(le,"prefixCls"),St=ze.length-1,Mt=ze[St],Dt=ue.useMemo(function(){return{stickyOffsets:ke,flattenColumns:ze,scrollColumnIndex:Mt!=null&&Mt.scrollbar?St:null,columns:Qe}},[Mt,ze,St,ke,Qe]);return ue.createElement(It.Provider,{value:Dt},ue.createElement("tfoot",{className:"".concat(Ke,"-summary")},Ae))}var wn=ne(gt),ft=jn;function xt(ve){var Ae=ue.useRef();Ae.current=ve;var ke=ue.useCallback(function(){for(var ze,Qe=arguments.length,Ke=new Array(Qe),St=0;St3&&arguments[3]!==void 0?arguments[3]:!1;return Ae.length&&ze&&ke===void 0&&!get(ve,Ae.slice(0,-1))?ve:Io(ve,Ae,ke,ze)}function dn(ve){return _typeof(ve)==="object"&&ve!==null&&Object.getPrototypeOf(ve)===Object.prototype}function On(ve){return Array.isArray(ve)?[]:{}}var pa=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ua(){for(var ve=arguments.length,Ae=new Array(ve),ke=0;ke