!(function(){var us=Object.defineProperty,ss=Object.defineProperties;var ds=Object.getOwnPropertyDescriptors;var Ou=Object.getOwnPropertySymbols;var as=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable;var Uu=Math.pow,ns=(ft,st,ee)=>st in ft?us(ft,st,{enumerable:!0,configurable:!0,writable:!0,value:ee}):ft[st]=ee,Zr=(ft,st)=>{for(var ee in st||(st={}))as.call(st,ee)&&ns(ft,ee,st[ee]);if(Ou)for(var ee of Ou(st))rs.call(st,ee)&&ns(ft,ee,st[ee]);return ft},ui=(ft,st)=>ss(ft,ds(st));var Mu=(ft,st)=>{var ee={};for(var x in ft)as.call(ft,x)&&st.indexOf(x)<0&&(ee[x]=ft[x]);if(ft!=null&&Ou)for(var x of Ou(ft))st.indexOf(x)<0&&rs.call(ft,x)&&(ee[x]=ft[x]);return ee};var os=(ft,st,ee)=>new Promise((x,de)=>{var pe=ke=>{try{we(ee.next(ke))}catch(ie){de(ie)}},De=ke=>{try{we(ee.throw(ke))}catch(ie){de(ie)}},we=ke=>ke.done?x(ke.value):Promise.resolve(ke.value).then(pe,De);we((ee=ee.apply(ft,st)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3951],{52310:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},33463:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},28575:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},84249:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},33863:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},81893:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},90674:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},55304:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},73148:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},56747:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},50881:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},22751:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},24018:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},34182:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},40043:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},74664:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},91034:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ie}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Me,Te){return de.createElement(we.Z,(0,x.Z)({},Me,{ref:Te,icon:De}))},ie=de.forwardRef(ke)},60887:function(ft,st,ee){"use strict";ee.d(st,{LB:function(){return To},g4:function(){return je},we:function(){return Nt},pE:function(){return ve},VK:function(){return mt},Cj:function(){return io},O1:function(){return da},Zj:function(){return So},VT:function(){return y}});var x=ee(67294),de=ee(73935),pe=ee(24285);const De={display:"none"};function we(ce){let{id:Pe,value:Oe}=ce;return x.createElement("div",{id:Pe,style:De},Oe)}function ke(ce){let{id:Pe,announcement:Oe,ariaLiveType:Se="assertive"}=ce;const Je={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:Pe,style:Je,role:"status","aria-live":Se,"aria-atomic":!0},Oe)}function ie(){const[ce,Pe]=(0,x.useState)("");return{announce:(0,x.useCallback)(Se=>{Se!=null&&Pe(Se)},[]),announcement:ce}}const We=(0,x.createContext)(null);function Me(ce){const Pe=(0,x.useContext)(We);(0,x.useEffect)(()=>{if(!Pe)throw new Error("useDndMonitor must be used within a children of ");return Pe(ce)},[ce,Pe])}function Te(){const[ce]=(0,x.useState)(()=>new Set),Pe=(0,x.useCallback)(Se=>(ce.add(Se),()=>ce.delete(Se)),[ce]);return[(0,x.useCallback)(Se=>{let{type:Je,event:ot}=Se;ce.forEach(wt=>{var tt;return(tt=wt[Je])==null?void 0:tt.call(wt,ot)})},[ce]),Pe]}const ze={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. `},Be={onDragStart(ce){let{active:Pe}=ce;return"Picked up draggable item "+Pe.id+"."},onDragOver(ce){let{active:Pe,over:Oe}=ce;return Oe?"Draggable item "+Pe.id+" was moved over droppable area "+Oe.id+".":"Draggable item "+Pe.id+" is no longer over a droppable area."},onDragEnd(ce){let{active:Pe,over:Oe}=ce;return Oe?"Draggable item "+Pe.id+" was dropped over droppable area "+Oe.id:"Draggable item "+Pe.id+" was dropped."},onDragCancel(ce){let{active:Pe}=ce;return"Dragging was cancelled. Draggable item "+Pe.id+" was dropped."}};function me(ce){let{announcements:Pe=Be,container:Oe,hiddenTextDescribedById:Se,screenReaderInstructions:Je=ze}=ce;const{announce:ot,announcement:wt}=ie(),tt=(0,pe.Ld)("DndLiveRegion"),[it,ht]=(0,x.useState)(!1);if((0,x.useEffect)(()=>{ht(!0)},[]),Me((0,x.useMemo)(()=>({onDragStart(fn){let{active:$n}=fn;ot(Pe.onDragStart({active:$n}))},onDragMove(fn){let{active:$n,over:In}=fn;Pe.onDragMove&&ot(Pe.onDragMove({active:$n,over:In}))},onDragOver(fn){let{active:$n,over:In}=fn;ot(Pe.onDragOver({active:$n,over:In}))},onDragEnd(fn){let{active:$n,over:In}=fn;ot(Pe.onDragEnd({active:$n,over:In}))},onDragCancel(fn){let{active:$n,over:In}=fn;ot(Pe.onDragCancel({active:$n,over:In}))}}),[ot,Pe])),!it)return null;const nn=x.createElement(x.Fragment,null,x.createElement(we,{id:Se,value:Je.draggable}),x.createElement(ke,{id:tt,announcement:wt}));return Oe?(0,de.createPortal)(nn,Oe):nn}var oe;(function(ce){ce.DragStart="dragStart",ce.DragMove="dragMove",ce.DragEnd="dragEnd",ce.DragCancel="dragCancel",ce.DragOver="dragOver",ce.RegisterDroppable="registerDroppable",ce.SetDroppableDisabled="setDroppableDisabled",ce.UnregisterDroppable="unregisterDroppable"})(oe||(oe={}));function a(){}function y(ce,Pe){return(0,x.useMemo)(()=>({sensor:ce,options:Pe!=null?Pe:{}}),[ce,Pe])}function b(){for(var ce=arguments.length,Pe=new Array(ce),Oe=0;Oe[...Pe].filter(Se=>Se!=null),[...Pe])}const E=Object.freeze({x:0,y:0});function z(ce,Pe){return Math.sqrt(Math.pow(ce.x-Pe.x,2)+Math.pow(ce.y-Pe.y,2))}function te(ce,Pe){const Oe=getEventCoordinates(ce);if(!Oe)return"0 0";const Se={x:(Oe.x-Pe.left)/Pe.width*100,y:(Oe.y-Pe.top)/Pe.height*100};return Se.x+"% "+Se.y+"%"}function ne(ce,Pe){let{data:{value:Oe}}=ce,{data:{value:Se}}=Pe;return Oe-Se}function re(ce,Pe){let{data:{value:Oe}}=ce,{data:{value:Se}}=Pe;return Se-Oe}function ae(ce){let{left:Pe,top:Oe,height:Se,width:Je}=ce;return[{x:Pe,y:Oe},{x:Pe+Je,y:Oe},{x:Pe,y:Oe+Se},{x:Pe+Je,y:Oe+Se}]}function le(ce,Pe){if(!ce||ce.length===0)return null;const[Oe]=ce;return Pe?Oe[Pe]:Oe}function he(ce,Pe,Oe){return Pe===void 0&&(Pe=ce.left),Oe===void 0&&(Oe=ce.top),{x:Pe+ce.width*.5,y:Oe+ce.height*.5}}const ve=ce=>{let{collisionRect:Pe,droppableRects:Oe,droppableContainers:Se}=ce;const Je=he(Pe,Pe.left,Pe.top),ot=[];for(const wt of Se){const{id:tt}=wt,it=Oe.get(tt);if(it){const ht=z(he(it),Je);ot.push({id:tt,data:{droppableContainer:wt,value:ht}})}}return ot.sort(ne)},Ce=ce=>{let{collisionRect:Pe,droppableRects:Oe,droppableContainers:Se}=ce;const Je=ae(Pe),ot=[];for(const wt of Se){const{id:tt}=wt,it=Oe.get(tt);if(it){const ht=ae(it),nn=Je.reduce(($n,In,Aa)=>$n+z(ht[Aa],In),0),fn=Number((nn/4).toFixed(4));ot.push({id:tt,data:{droppableContainer:wt,value:fn}})}}return ot.sort(ne)};function be(ce,Pe){const Oe=Math.max(Pe.top,ce.top),Se=Math.max(Pe.left,ce.left),Je=Math.min(Pe.left+Pe.width,ce.left+ce.width),ot=Math.min(Pe.top+Pe.height,ce.top+ce.height),wt=Je-Se,tt=ot-Oe;if(Se{let{collisionRect:Pe,droppableRects:Oe,droppableContainers:Se}=ce;const Je=[];for(const ot of Se){const{id:wt}=ot,tt=Oe.get(wt);if(tt){const it=be(tt,Pe);it>0&&Je.push({id:wt,data:{droppableContainer:ot,value:it}})}}return Je.sort(re)};function Ae(ce,Pe){const{top:Oe,left:Se,bottom:Je,right:ot}=Pe;return Oe<=ce.y&&ce.y<=Je&&Se<=ce.x&&ce.x<=ot}const Ne=ce=>{let{droppableContainers:Pe,droppableRects:Oe,pointerCoordinates:Se}=ce;if(!Se)return[];const Je=[];for(const ot of Pe){const{id:wt}=ot,tt=Oe.get(wt);if(tt&&Ae(Se,tt)){const ht=ae(tt).reduce((fn,$n)=>fn+z(Se,$n),0),nn=Number((ht/4).toFixed(4));Je.push({id:wt,data:{droppableContainer:ot,value:nn}})}}return Je.sort(ne)};function Qe(ce,Pe,Oe){return ui(Zr({},ce),{scaleX:Pe&&Oe?Pe.width/Oe.width:1,scaleY:Pe&&Oe?Pe.height/Oe.height:1})}function Le(ce,Pe){return ce&&Pe?{x:ce.left-Pe.left,y:ce.top-Pe.top}:E}function Ge(ce){return function(Oe){for(var Se=arguments.length,Je=new Array(Se>1?Se-1:0),ot=1;otui(Zr({},wt),{top:wt.top+ce*tt.y,bottom:wt.bottom+ce*tt.y,left:wt.left+ce*tt.x,right:wt.right+ce*tt.x}),Zr({},Oe))}}const He=Ge(1);function Ke(ce){if(ce.startsWith("matrix3d(")){const Pe=ce.slice(9,-1).split(/, /);return{x:+Pe[12],y:+Pe[13],scaleX:+Pe[0],scaleY:+Pe[5]}}else if(ce.startsWith("matrix(")){const Pe=ce.slice(7,-1).split(/, /);return{x:+Pe[4],y:+Pe[5],scaleX:+Pe[0],scaleY:+Pe[3]}}return null}function qe(ce,Pe,Oe){const Se=Ke(Pe);if(!Se)return ce;const{scaleX:Je,scaleY:ot,x:wt,y:tt}=Se,it=ce.left-wt-(1-Je)*parseFloat(Oe),ht=ce.top-tt-(1-ot)*parseFloat(Oe.slice(Oe.indexOf(" ")+1)),nn=Je?ce.width/Je:ce.width,fn=ot?ce.height/ot:ce.height;return{width:nn,height:fn,top:ht,right:it+nn,bottom:ht+fn,left:it}}const lt={ignoreTransform:!1};function mt(ce,Pe){Pe===void 0&&(Pe=lt);let Oe=ce.getBoundingClientRect();if(Pe.ignoreTransform){const{transform:ht,transformOrigin:nn}=(0,pe.Jj)(ce).getComputedStyle(ce);ht&&(Oe=qe(Oe,ht,nn))}const{top:Se,left:Je,width:ot,height:wt,bottom:tt,right:it}=Oe;return{top:Se,left:Je,width:ot,height:wt,bottom:tt,right:it}}function Vt(ce){return mt(ce,{ignoreTransform:!0})}function cn(ce){const Pe=ce.innerWidth,Oe=ce.innerHeight;return{top:0,left:0,right:Pe,bottom:Oe,width:Pe,height:Oe}}function rt(ce,Pe){return Pe===void 0&&(Pe=(0,pe.Jj)(ce).getComputedStyle(ce)),Pe.position==="fixed"}function yt(ce,Pe){Pe===void 0&&(Pe=(0,pe.Jj)(ce).getComputedStyle(ce));const Oe=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(Je=>{const ot=Pe[Je];return typeof ot=="string"?Oe.test(ot):!1})}function Lt(ce,Pe){const Oe=[];function Se(Je){if(Pe!=null&&Oe.length>=Pe||!Je)return Oe;if((0,pe.qk)(Je)&&Je.scrollingElement!=null&&!Oe.includes(Je.scrollingElement))return Oe.push(Je.scrollingElement),Oe;if(!(0,pe.Re)(Je)||(0,pe.vZ)(Je)||Oe.includes(Je))return Oe;const ot=(0,pe.Jj)(ce).getComputedStyle(Je);return Je!==ce&&yt(Je,ot)&&Oe.push(Je),rt(Je,ot)?Oe:Se(Je.parentNode)}return ce?Se(ce):Oe}function ct(ce){const[Pe]=Lt(ce,1);return Pe!=null?Pe:null}function Ft(ce){return!pe.Nq||!ce?null:(0,pe.FJ)(ce)?ce:(0,pe.UG)(ce)?(0,pe.qk)(ce)||ce===(0,pe.r3)(ce).scrollingElement?window:(0,pe.Re)(ce)?ce:null:null}function jt(ce){return(0,pe.FJ)(ce)?ce.scrollX:ce.scrollLeft}function _e(ce){return(0,pe.FJ)(ce)?ce.scrollY:ce.scrollTop}function Sn(ce){return{x:jt(ce),y:_e(ce)}}var wn;(function(ce){ce[ce.Forward=1]="Forward",ce[ce.Backward=-1]="Backward"})(wn||(wn={}));function ha(ce){return!pe.Nq||!ce?!1:ce===document.scrollingElement}function Mn(ce){const Pe={x:0,y:0},Oe=ha(ce)?{height:window.innerHeight,width:window.innerWidth}:{height:ce.clientHeight,width:ce.clientWidth},Se={x:ce.scrollWidth-Oe.width,y:ce.scrollHeight-Oe.height},Je=ce.scrollTop<=Pe.y,ot=ce.scrollLeft<=Pe.x,wt=ce.scrollTop>=Se.y,tt=ce.scrollLeft>=Se.x;return{isTop:Je,isLeft:ot,isBottom:wt,isRight:tt,maxScroll:Se,minScroll:Pe}}const at={x:.2,y:.2};function ut(ce,Pe,Oe,Se,Je){let{top:ot,left:wt,right:tt,bottom:it}=Oe;Se===void 0&&(Se=10),Je===void 0&&(Je=at);const{isTop:ht,isBottom:nn,isLeft:fn,isRight:$n}=Mn(ce),In={x:0,y:0},Aa={x:0,y:0},va={height:Pe.height*Je.y,width:Pe.width*Je.x};return!ht&&ot<=Pe.top+va.height?(In.y=wn.Backward,Aa.y=Se*Math.abs((Pe.top+va.height-ot)/va.height)):!nn&&it>=Pe.bottom-va.height&&(In.y=wn.Forward,Aa.y=Se*Math.abs((Pe.bottom-va.height-it)/va.height)),!$n&&tt>=Pe.right-va.width?(In.x=wn.Forward,Aa.x=Se*Math.abs((Pe.right-va.width-tt)/va.width)):!fn&&wt<=Pe.left+va.width&&(In.x=wn.Backward,Aa.x=Se*Math.abs((Pe.left+va.width-wt)/va.width)),{direction:In,speed:Aa}}function dt(ce){if(ce===document.scrollingElement){const{innerWidth:ot,innerHeight:wt}=window;return{top:0,left:0,right:ot,bottom:wt,width:ot,height:wt}}const{top:Pe,left:Oe,right:Se,bottom:Je}=ce.getBoundingClientRect();return{top:Pe,left:Oe,right:Se,bottom:Je,width:ce.clientWidth,height:ce.clientHeight}}function At(ce){return ce.reduce((Pe,Oe)=>(0,pe.IH)(Pe,Sn(Oe)),E)}function Et(ce){return ce.reduce((Pe,Oe)=>Pe+jt(Oe),0)}function gt(ce){return ce.reduce((Pe,Oe)=>Pe+_e(Oe),0)}function Qt(ce,Pe){if(Pe===void 0&&(Pe=mt),!ce)return;const{top:Oe,left:Se,bottom:Je,right:ot}=Pe(ce);ct(ce)&&(Je<=0||ot<=0||Oe>=window.innerHeight||Se>=window.innerWidth)&&ce.scrollIntoView({block:"center",inline:"center"})}const Ot=[["x",["left","right"],Et],["y",["top","bottom"],gt]];class bt{constructor(Pe,Oe){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const Se=Lt(Oe),Je=At(Se);this.rect=Zr({},Pe),this.width=Pe.width,this.height=Pe.height;for(const[ot,wt,tt]of Ot)for(const it of wt)Object.defineProperty(this,it,{get:()=>{const ht=tt(Se),nn=Je[ot]-ht;return this.rect[it]+nn},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class rn{constructor(Pe){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(Oe=>{var Se;return(Se=this.target)==null?void 0:Se.removeEventListener(...Oe)})},this.target=Pe}add(Pe,Oe,Se){var Je;(Je=this.target)==null||Je.addEventListener(Pe,Oe,Se),this.listeners.push([Pe,Oe,Se])}}function Xt(ce){const{EventTarget:Pe}=(0,pe.Jj)(ce);return ce instanceof Pe?ce:(0,pe.r3)(ce)}function $e(ce,Pe){const Oe=Math.abs(ce.x),Se=Math.abs(ce.y);return typeof Pe=="number"?Math.sqrt(Uu(Oe,2)+Uu(Se,2))>Pe:"x"in Pe&&"y"in Pe?Oe>Pe.x&&Se>Pe.y:"x"in Pe?Oe>Pe.x:"y"in Pe?Se>Pe.y:!1}var Re;(function(ce){ce.Click="click",ce.DragStart="dragstart",ce.Keydown="keydown",ce.ContextMenu="contextmenu",ce.Resize="resize",ce.SelectionChange="selectionchange",ce.VisibilityChange="visibilitychange"})(Re||(Re={}));function Ln(ce){ce.preventDefault()}function xe(ce){ce.stopPropagation()}var je;(function(ce){ce.Space="Space",ce.Down="ArrowDown",ce.Right="ArrowRight",ce.Left="ArrowLeft",ce.Up="ArrowUp",ce.Esc="Escape",ce.Enter="Enter"})(je||(je={}));const Ht={start:[je.Space,je.Enter],cancel:[je.Esc],end:[je.Space,je.Enter]},et=(ce,Pe)=>{let{currentCoordinates:Oe}=Pe;switch(ce.code){case je.Right:return ui(Zr({},Oe),{x:Oe.x+25});case je.Left:return ui(Zr({},Oe),{x:Oe.x-25});case je.Down:return ui(Zr({},Oe),{y:Oe.y+25});case je.Up:return ui(Zr({},Oe),{y:Oe.y-25})}};class Ue{constructor(Pe){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=Pe;const{event:{target:Oe}}=Pe;this.props=Pe,this.listeners=new rn((0,pe.r3)(Oe)),this.windowListeners=new rn((0,pe.Jj)(Oe)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Re.Resize,this.handleCancel),this.windowListeners.add(Re.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Re.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:Pe,onStart:Oe}=this.props,Se=Pe.node.current;Se&&Qt(Se),Oe(E)}handleKeyDown(Pe){if((0,pe.vd)(Pe)){const{active:Oe,context:Se,options:Je}=this.props,{keyboardCodes:ot=Ht,coordinateGetter:wt=et,scrollBehavior:tt="smooth"}=Je,{code:it}=Pe;if(ot.end.includes(it)){this.handleEnd(Pe);return}if(ot.cancel.includes(it)){this.handleCancel(Pe);return}const{collisionRect:ht}=Se.current,nn=ht?{x:ht.left,y:ht.top}:E;this.referenceCoordinates||(this.referenceCoordinates=nn);const fn=wt(Pe,{active:Oe,context:Se.current,currentCoordinates:nn});if(fn){const $n=(0,pe.$X)(fn,nn),In={x:0,y:0},{scrollableAncestors:Aa}=Se.current;for(const va of Aa){const Fa=Pe.code,{isTop:Wn,isRight:Cn,isLeft:on,isBottom:yn,maxScroll:An,minScroll:ea}=Mn(va),za=dt(va),Ba={x:Math.min(Fa===je.Right?za.right-za.width/2:za.right,Math.max(Fa===je.Right?za.left:za.left+za.width/2,fn.x)),y:Math.min(Fa===je.Down?za.bottom-za.height/2:za.bottom,Math.max(Fa===je.Down?za.top:za.top+za.height/2,fn.y))},qn=Fa===je.Right&&!Cn||Fa===je.Left&&!on,Ea=Fa===je.Down&&!yn||Fa===je.Up&&!Wn;if(qn&&Ba.x!==fn.x){const Ma=va.scrollLeft+$n.x,La=Fa===je.Right&&Ma<=An.x||Fa===je.Left&&Ma>=ea.x;if(La&&!$n.y){va.scrollTo({left:Ma,behavior:tt});return}La?In.x=va.scrollLeft-Ma:In.x=Fa===je.Right?va.scrollLeft-An.x:va.scrollLeft-ea.x,In.x&&va.scrollBy({left:-In.x,behavior:tt});break}else if(Ea&&Ba.y!==fn.y){const Ma=va.scrollTop+$n.y,La=Fa===je.Down&&Ma<=An.y||Fa===je.Up&&Ma>=ea.y;if(La&&!$n.x){va.scrollTo({top:Ma,behavior:tt});return}La?In.y=va.scrollTop-Ma:In.y=Fa===je.Down?va.scrollTop-An.y:va.scrollTop-ea.y,In.y&&va.scrollBy({top:-In.y,behavior:tt});break}}this.handleMove(Pe,(0,pe.IH)((0,pe.$X)(fn,this.referenceCoordinates),In))}}}handleMove(Pe,Oe){const{onMove:Se}=this.props;Pe.preventDefault(),Se(Oe)}handleEnd(Pe){const{onEnd:Oe}=this.props;Pe.preventDefault(),this.detach(),Oe()}handleCancel(Pe){const{onCancel:Oe}=this.props;Pe.preventDefault(),this.detach(),Oe()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Ue.activators=[{eventName:"onKeyDown",handler:(ce,Pe,Oe)=>{let{keyboardCodes:Se=Ht,onActivation:Je}=Pe,{active:ot}=Oe;const{code:wt}=ce.nativeEvent;if(Se.start.includes(wt)){const tt=ot.activatorNode.current;return tt&&ce.target!==tt?!1:(ce.preventDefault(),Je==null||Je({event:ce.nativeEvent}),!0)}return!1}}];function Ct(ce){return!!(ce&&"distance"in ce)}function Pt(ce){return!!(ce&&"delay"in ce)}class Zt{constructor(Pe,Oe,Se){var Je;Se===void 0&&(Se=Xt(Pe.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=Pe,this.events=Oe;const{event:ot}=Pe,{target:wt}=ot;this.props=Pe,this.events=Oe,this.document=(0,pe.r3)(wt),this.documentListeners=new rn(this.document),this.listeners=new rn(Se),this.windowListeners=new rn((0,pe.Jj)(wt)),this.initialCoordinates=(Je=(0,pe.DC)(ot))!=null?Je:E,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:Pe,props:{options:{activationConstraint:Oe,bypassActivationConstraint:Se}}}=this;if(this.listeners.add(Pe.move.name,this.handleMove,{passive:!1}),this.listeners.add(Pe.end.name,this.handleEnd),this.windowListeners.add(Re.Resize,this.handleCancel),this.windowListeners.add(Re.DragStart,Ln),this.windowListeners.add(Re.VisibilityChange,this.handleCancel),this.windowListeners.add(Re.ContextMenu,Ln),this.documentListeners.add(Re.Keydown,this.handleKeydown),Oe){if(Se!=null&&Se({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Pt(Oe)){this.timeoutId=setTimeout(this.handleStart,Oe.delay);return}if(Ct(Oe))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:Pe}=this,{onStart:Oe}=this.props;Pe&&(this.activated=!0,this.documentListeners.add(Re.Click,xe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Re.SelectionChange,this.removeTextSelection),Oe(Pe))}handleMove(Pe){var Oe;const{activated:Se,initialCoordinates:Je,props:ot}=this,{onMove:wt,options:{activationConstraint:tt}}=ot;if(!Je)return;const it=(Oe=(0,pe.DC)(Pe))!=null?Oe:E,ht=(0,pe.$X)(Je,it);if(!Se&&tt){if(Ct(tt)){if(tt.tolerance!=null&&$e(ht,tt.tolerance))return this.handleCancel();if($e(ht,tt.distance))return this.handleStart()}return Pt(tt)&&$e(ht,tt.tolerance)?this.handleCancel():void 0}Pe.cancelable&&Pe.preventDefault(),wt(it)}handleEnd(){const{onEnd:Pe}=this.props;this.detach(),Pe()}handleCancel(){const{onCancel:Pe}=this.props;this.detach(),Pe()}handleKeydown(Pe){Pe.code===je.Esc&&this.handleCancel()}removeTextSelection(){var Pe;(Pe=this.document.getSelection())==null||Pe.removeAllRanges()}}const vn={move:{name:"pointermove"},end:{name:"pointerup"}};class Nt extends Zt{constructor(Pe){const{event:Oe}=Pe,Se=(0,pe.r3)(Oe.target);super(Pe,vn,Se)}}Nt.activators=[{eventName:"onPointerDown",handler:(ce,Pe)=>{let{nativeEvent:Oe}=ce,{onActivation:Se}=Pe;return!Oe.isPrimary||Oe.button!==0?!1:(Se==null||Se({event:Oe}),!0)}}];const Tt={move:{name:"mousemove"},end:{name:"mouseup"}};var St;(function(ce){ce[ce.RightClick=2]="RightClick"})(St||(St={}));class en extends Zt{constructor(Pe){super(Pe,Tt,(0,pe.r3)(Pe.event.target))}}en.activators=[{eventName:"onMouseDown",handler:(ce,Pe)=>{let{nativeEvent:Oe}=ce,{onActivation:Se}=Pe;return Oe.button===St.RightClick?!1:(Se==null||Se({event:Oe}),!0)}}];const Gt={move:{name:"touchmove"},end:{name:"touchend"}};class mn extends Zt{constructor(Pe){super(Pe,Gt)}static setup(){return window.addEventListener(Gt.move.name,Pe,{capture:!1,passive:!1}),function(){window.removeEventListener(Gt.move.name,Pe)};function Pe(){}}}mn.activators=[{eventName:"onTouchStart",handler:(ce,Pe)=>{let{nativeEvent:Oe}=ce,{onActivation:Se}=Pe;const{touches:Je}=Oe;return Je.length>1?!1:(Se==null||Se({event:Oe}),!0)}}];var Qn;(function(ce){ce[ce.Pointer=0]="Pointer",ce[ce.DraggableRect=1]="DraggableRect"})(Qn||(Qn={}));var xn;(function(ce){ce[ce.TreeOrder=0]="TreeOrder",ce[ce.ReversedTreeOrder=1]="ReversedTreeOrder"})(xn||(xn={}));function Un(ce){let{acceleration:Pe,activator:Oe=Qn.Pointer,canScroll:Se,draggingRect:Je,enabled:ot,interval:wt=5,order:tt=xn.TreeOrder,pointerCoordinates:it,scrollableAncestors:ht,scrollableAncestorRects:nn,delta:fn,threshold:$n}=ce;const In=Kt({delta:fn,disabled:!ot}),[Aa,va]=(0,pe.Yz)(),Fa=(0,x.useRef)({x:0,y:0}),Wn=(0,x.useRef)({x:0,y:0}),Cn=(0,x.useMemo)(()=>{switch(Oe){case Qn.Pointer:return it?{top:it.y,bottom:it.y,left:it.x,right:it.x}:null;case Qn.DraggableRect:return Je}},[Oe,Je,it]),on=(0,x.useRef)(null),yn=(0,x.useCallback)(()=>{const ea=on.current;if(!ea)return;const za=Fa.current.x*Wn.current.x,Ba=Fa.current.y*Wn.current.y;ea.scrollBy(za,Ba)},[]),An=(0,x.useMemo)(()=>tt===xn.TreeOrder?[...ht].reverse():ht,[tt,ht]);(0,x.useEffect)(()=>{if(!ot||!ht.length||!Cn){va();return}for(const ea of An){if((Se==null?void 0:Se(ea))===!1)continue;const za=ht.indexOf(ea),Ba=nn[za];if(!Ba)continue;const{direction:qn,speed:Ea}=ut(ea,Ba,Cn,Pe,$n);for(const Ma of["x","y"])In[Ma][qn[Ma]]||(Ea[Ma]=0,qn[Ma]=0);if(Ea.x>0||Ea.y>0){va(),on.current=ea,Aa(yn,wt),Fa.current=Ea,Wn.current=qn;return}}Fa.current={x:0,y:0},Wn.current={x:0,y:0},va()},[Pe,yn,Se,va,ot,wt,JSON.stringify(Cn),JSON.stringify(In),Aa,ht,An,nn,JSON.stringify($n)])}const pa={x:{[wn.Backward]:!1,[wn.Forward]:!1},y:{[wn.Backward]:!1,[wn.Forward]:!1}};function Kt(ce){let{delta:Pe,disabled:Oe}=ce;const Se=(0,pe.D9)(Pe);return(0,pe.Gj)(Je=>{if(Oe||!Se||!Je)return pa;const ot={x:Math.sign(Pe.x-Se.x),y:Math.sign(Pe.y-Se.y)};return{x:{[wn.Backward]:Je.x[wn.Backward]||ot.x===-1,[wn.Forward]:Je.x[wn.Forward]||ot.x===1},y:{[wn.Backward]:Je.y[wn.Backward]||ot.y===-1,[wn.Forward]:Je.y[wn.Forward]||ot.y===1}}},[Oe,Pe,Se])}function $t(ce,Pe){const Oe=Pe!==null?ce.get(Pe):void 0,Se=Oe?Oe.node.current:null;return(0,pe.Gj)(Je=>{var ot;return Pe===null?null:(ot=Se!=null?Se:Je)!=null?ot:null},[Se,Pe])}function qt(ce,Pe){return(0,x.useMemo)(()=>ce.reduce((Oe,Se)=>{const{sensor:Je}=Se,ot=Je.activators.map(wt=>({eventName:wt.eventName,handler:Pe(wt.handler,Se)}));return[...Oe,...ot]},[]),[ce,Pe])}var sa;(function(ce){ce[ce.Always=0]="Always",ce[ce.BeforeDragging=1]="BeforeDragging",ce[ce.WhileDragging=2]="WhileDragging"})(sa||(sa={}));var ra;(function(ce){ce.Optimized="optimized"})(ra||(ra={}));const Hn=new Map;function Oa(ce,Pe){let{dragging:Oe,dependencies:Se,config:Je}=Pe;const[ot,wt]=(0,x.useState)(null),{frequency:tt,measure:it,strategy:ht}=Je,nn=(0,x.useRef)(ce),fn=Fa(),$n=(0,pe.Ey)(fn),In=(0,x.useCallback)(function(Wn){Wn===void 0&&(Wn=[]),!$n.current&&wt(Cn=>Cn===null?Wn:Cn.concat(Wn.filter(on=>!Cn.includes(on))))},[$n]),Aa=(0,x.useRef)(null),va=(0,pe.Gj)(Wn=>{if(fn&&!Oe)return Hn;if(!Wn||Wn===Hn||nn.current!==ce||ot!=null){const Cn=new Map;for(let on of ce){if(!on)continue;if(ot&&ot.length>0&&!ot.includes(on.id)&&on.rect.current){Cn.set(on.id,on.rect.current);continue}const yn=on.node.current,An=yn?new bt(it(yn),yn):null;on.rect.current=An,An&&Cn.set(on.id,An)}return Cn}return Wn},[ce,ot,Oe,fn,it]);return(0,x.useEffect)(()=>{nn.current=ce},[ce]),(0,x.useEffect)(()=>{fn||In()},[Oe,fn]),(0,x.useEffect)(()=>{ot&&ot.length>0&&wt(null)},[JSON.stringify(ot)]),(0,x.useEffect)(()=>{fn||typeof tt!="number"||Aa.current!==null||(Aa.current=setTimeout(()=>{In(),Aa.current=null},tt))},[tt,fn,In,...Se]),{droppableRects:va,measureDroppableContainers:In,measuringScheduled:ot!=null};function Fa(){switch(ht){case sa.Always:return!1;case sa.BeforeDragging:return Oe;default:return!Oe}}}function Ta(ce,Pe){return(0,pe.Gj)(Oe=>ce?Oe||(typeof Pe=="function"?Pe(ce):ce):null,[Pe,ce])}function Pr(ce,Pe){return Ta(ce,Pe)}function zr(ce){let{callback:Pe,disabled:Oe}=ce;const Se=(0,pe.zX)(Pe),Je=(0,x.useMemo)(()=>{if(Oe||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:ot}=window;return new ot(Se)},[Se,Oe]);return(0,x.useEffect)(()=>()=>Je==null?void 0:Je.disconnect(),[Je]),Je}function Na(ce){let{callback:Pe,disabled:Oe}=ce;const Se=(0,pe.zX)(Pe),Je=(0,x.useMemo)(()=>{if(Oe||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:ot}=window;return new ot(Se)},[Oe]);return(0,x.useEffect)(()=>()=>Je==null?void 0:Je.disconnect(),[Je]),Je}function Xe(ce){return new bt(mt(ce),ce)}function Bt(ce,Pe,Oe){Pe===void 0&&(Pe=Xe);const[Se,Je]=(0,x.useReducer)(tt,null),ot=zr({callback(it){if(ce)for(const ht of it){const{type:nn,target:fn}=ht;if(nn==="childList"&&fn instanceof HTMLElement&&fn.contains(ce)){Je();break}}}}),wt=Na({callback:Je});return(0,pe.LI)(()=>{Je(),ce?(wt==null||wt.observe(ce),ot==null||ot.observe(document.body,{childList:!0,subtree:!0})):(wt==null||wt.disconnect(),ot==null||ot.disconnect())},[ce]),Se;function tt(it){if(!ce)return null;if(ce.isConnected===!1){var ht;return(ht=it!=null?it:Oe)!=null?ht:null}const nn=Pe(ce);return JSON.stringify(it)===JSON.stringify(nn)?it:nn}}function xt(ce){const Pe=Ta(ce);return Le(ce,Pe)}const Tn=[];function pn(ce){const Pe=(0,x.useRef)(ce),Oe=(0,pe.Gj)(Se=>ce?Se&&Se!==Tn&&ce&&Pe.current&&ce.parentNode===Pe.current.parentNode?Se:Lt(ce):Tn,[ce]);return(0,x.useEffect)(()=>{Pe.current=ce},[ce]),Oe}function _n(ce){const[Pe,Oe]=(0,x.useState)(null),Se=(0,x.useRef)(ce),Je=(0,x.useCallback)(ot=>{const wt=Ft(ot.target);wt&&Oe(tt=>tt?(tt.set(wt,Sn(wt)),new Map(tt)):null)},[]);return(0,x.useEffect)(()=>{const ot=Se.current;if(ce!==ot){wt(ot);const tt=ce.map(it=>{const ht=Ft(it);return ht?(ht.addEventListener("scroll",Je,{passive:!0}),[ht,Sn(ht)]):null}).filter(it=>it!=null);Oe(tt.length?new Map(tt):null),Se.current=ce}return()=>{wt(ce),wt(ot)};function wt(tt){tt.forEach(it=>{const ht=Ft(it);ht==null||ht.removeEventListener("scroll",Je)})}},[Je,ce]),(0,x.useMemo)(()=>ce.length?Pe?Array.from(Pe.values()).reduce((ot,wt)=>(0,pe.IH)(ot,wt),E):At(ce):E,[ce,Pe])}function Qr(ce,Pe){Pe===void 0&&(Pe=[]);const Oe=(0,x.useRef)(null);return(0,x.useEffect)(()=>{Oe.current=null},Pe),(0,x.useEffect)(()=>{const Se=ce!==E;Se&&!Oe.current&&(Oe.current=ce),!Se&&Oe.current&&(Oe.current=null)},[ce]),Oe.current?(0,pe.$X)(ce,Oe.current):E}function Ra(ce){(0,x.useEffect)(()=>{if(!pe.Nq)return;const Pe=ce.map(Oe=>{let{sensor:Se}=Oe;return Se.setup==null?void 0:Se.setup()});return()=>{for(const Oe of Pe)Oe==null||Oe()}},ce.map(Pe=>{let{sensor:Oe}=Pe;return Oe}))}function br(ce,Pe){return(0,x.useMemo)(()=>ce.reduce((Oe,Se)=>{let{eventName:Je,handler:ot}=Se;return Oe[Je]=wt=>{ot(wt,Pe)},Oe},{}),[ce,Pe])}function Vr(ce){return(0,x.useMemo)(()=>ce?cn(ce):null,[ce])}const mo=[];function Xn(ce,Pe){Pe===void 0&&(Pe=mt);const[Oe]=ce,Se=Vr(Oe?(0,pe.Jj)(Oe):null),[Je,ot]=(0,x.useReducer)(tt,mo),wt=Na({callback:ot});return ce.length>0&&Je===mo&&ot(),(0,pe.LI)(()=>{ce.length?ce.forEach(it=>wt==null?void 0:wt.observe(it)):(wt==null||wt.disconnect(),ot())},[ce]),Je;function tt(){return ce.length?ce.map(it=>ha(it)?Se:new bt(Pe(it),it)):mo}}function ur(ce){if(!ce)return null;if(ce.children.length>1)return ce;const Pe=ce.children[0];return(0,pe.Re)(Pe)?Pe:ce}function pt(ce){let{measure:Pe}=ce;const[Oe,Se]=(0,x.useState)(null),Je=(0,x.useCallback)(ht=>{for(const{target:nn}of ht)if((0,pe.Re)(nn)){Se(fn=>{const $n=Pe(nn);return fn?ui(Zr({},fn),{width:$n.width,height:$n.height}):$n});break}},[Pe]),ot=Na({callback:Je}),wt=(0,x.useCallback)(ht=>{const nn=ur(ht);ot==null||ot.disconnect(),nn&&(ot==null||ot.observe(nn)),Se(nn?Pe(nn):null)},[Pe,ot]),[tt,it]=(0,pe.wm)(wt);return(0,x.useMemo)(()=>({nodeRef:tt,rect:Oe,setRef:it}),[Oe,tt,it])}const Jt=[{sensor:Nt,options:{}},{sensor:Ue,options:{}}],Ut={current:{}},dn={draggable:{measure:Vt},droppable:{measure:Vt,strategy:sa.WhileDragging,frequency:ra.Optimized},dragOverlay:{measure:mt}};class jn extends Map{get(Pe){var Oe;return Pe!=null&&(Oe=super.get(Pe))!=null?Oe:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(Pe=>{let{disabled:Oe}=Pe;return!Oe})}getNodeFor(Pe){var Oe,Se;return(Oe=(Se=this.get(Pe))==null?void 0:Se.node.current)!=null?Oe:void 0}}const tn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:dn,measureDroppableContainers:a,windowRect:null,measuringScheduled:!1},Yn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:a,draggableNodes:new Map,over:null,measureDroppableContainers:a},Pn=(0,x.createContext)(Yn),ua=(0,x.createContext)(tn);function Ha(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jn}}}function ir(ce,Pe){switch(Pe.type){case oe.DragStart:return ui(Zr({},ce),{draggable:ui(Zr({},ce.draggable),{initialCoordinates:Pe.initialCoordinates,active:Pe.active})});case oe.DragMove:return ce.draggable.active?ui(Zr({},ce),{draggable:ui(Zr({},ce.draggable),{translate:{x:Pe.coordinates.x-ce.draggable.initialCoordinates.x,y:Pe.coordinates.y-ce.draggable.initialCoordinates.y}})}):ce;case oe.DragEnd:case oe.DragCancel:return ui(Zr({},ce),{draggable:ui(Zr({},ce.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case oe.RegisterDroppable:{const{element:Oe}=Pe,{id:Se}=Oe,Je=new jn(ce.droppable.containers);return Je.set(Se,Oe),ui(Zr({},ce),{droppable:ui(Zr({},ce.droppable),{containers:Je})})}case oe.SetDroppableDisabled:{const{id:Oe,key:Se,disabled:Je}=Pe,ot=ce.droppable.containers.get(Oe);if(!ot||Se!==ot.key)return ce;const wt=new jn(ce.droppable.containers);return wt.set(Oe,ui(Zr({},ot),{disabled:Je})),ui(Zr({},ce),{droppable:ui(Zr({},ce.droppable),{containers:wt})})}case oe.UnregisterDroppable:{const{id:Oe,key:Se}=Pe,Je=ce.droppable.containers.get(Oe);if(!Je||Se!==Je.key)return ce;const ot=new jn(ce.droppable.containers);return ot.delete(Oe),ui(Zr({},ce),{droppable:ui(Zr({},ce.droppable),{containers:ot})})}default:return ce}}function Mr(ce){let{disabled:Pe}=ce;const{active:Oe,activatorEvent:Se,draggableNodes:Je}=(0,x.useContext)(Pn),ot=(0,pe.D9)(Se),wt=(0,pe.D9)(Oe==null?void 0:Oe.id);return(0,x.useEffect)(()=>{if(!Pe&&!Se&&ot&&wt!=null){if(!(0,pe.vd)(ot)||document.activeElement===ot.target)return;const tt=Je.get(wt);if(!tt)return;const{activatorNode:it,node:ht}=tt;if(!it.current&&!ht.current)return;requestAnimationFrame(()=>{for(const nn of[it.current,ht.current]){if(!nn)continue;const fn=(0,pe.so)(nn);if(fn){fn.focus();break}}})}},[Se,Pe,Je,wt,ot]),null}function Hr(ce,Pe){let Je=Pe,{transform:Oe}=Je,Se=Mu(Je,["transform"]);return ce!=null&&ce.length?ce.reduce((ot,wt)=>wt(Zr({transform:ot},Se)),Oe):Oe}function oo(ce){return(0,x.useMemo)(()=>({draggable:Zr(Zr({},dn.draggable),ce==null?void 0:ce.draggable),droppable:Zr(Zr({},dn.droppable),ce==null?void 0:ce.droppable),dragOverlay:Zr(Zr({},dn.dragOverlay),ce==null?void 0:ce.dragOverlay)}),[ce==null?void 0:ce.draggable,ce==null?void 0:ce.droppable,ce==null?void 0:ce.dragOverlay])}function zo(ce){let{activeNode:Pe,measure:Oe,initialRect:Se,config:Je=!0}=ce;const ot=(0,x.useRef)(!1),{x:wt,y:tt}=typeof Je=="boolean"?{x:Je,y:Je}:Je;(0,pe.LI)(()=>{if(!wt&&!tt||!Pe){ot.current=!1;return}if(ot.current||!Se)return;const ht=Pe==null?void 0:Pe.node.current;if(!ht||ht.isConnected===!1)return;const nn=Oe(ht),fn=Le(nn,Se);if(wt||(fn.x=0),tt||(fn.y=0),ot.current=!0,Math.abs(fn.x)>0||Math.abs(fn.y)>0){const $n=ct(ht);$n&&$n.scrollBy({top:fn.y,left:fn.x})}},[Pe,wt,tt,Se,Oe])}const Kn=(0,x.createContext)(ui(Zr({},E),{scaleX:1,scaleY:1}));var Br;(function(ce){ce[ce.Uninitialized=0]="Uninitialized",ce[ce.Initializing=1]="Initializing",ce[ce.Initialized=2]="Initialized"})(Br||(Br={}));const To=(0,x.memo)(function(Pe){var Oe,Se,Je,ot;let Lr=Pe,{id:wt,accessibility:tt,autoScroll:it=!0,children:ht,sensors:nn=Jt,collisionDetection:fn=ye,measuring:$n,modifiers:In}=Lr,Aa=Mu(Lr,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const va=(0,x.useReducer)(ir,void 0,Ha),[Fa,Wn]=va,[Cn,on]=Te(),[yn,An]=(0,x.useState)(Br.Uninitialized),ea=yn===Br.Initialized,{draggable:{active:za,nodes:Ba,translate:qn},droppable:{containers:Ea}}=Fa,Ma=za?Ba.get(za):null,La=(0,x.useRef)({initial:null,translated:null}),er=(0,x.useMemo)(()=>{var so;return za!=null?{id:za,data:(so=Ma==null?void 0:Ma.data)!=null?so:Ut,rect:La}:null},[za,Ma]),Sr=(0,x.useRef)(null),[eo,Lo]=(0,x.useState)(null),[ga,ii]=(0,x.useState)(null),ei=(0,pe.Ey)(Aa,Object.values(Aa)),Fo=(0,pe.Ld)("DndDescribedBy",wt),dl=(0,x.useMemo)(()=>Ea.getEnabled(),[Ea]),Hi=oo($n),{droppableRects:pi,measureDroppableContainers:Fi,measuringScheduled:Qi}=Oa(dl,{dragging:ea,dependencies:[qn.x,qn.y],config:Hi.droppable}),Xo=$t(Ba,za),cl=(0,x.useMemo)(()=>ga?(0,pe.DC)(ga):null,[ga]),_t=wr(),kt=Pr(Xo,Hi.draggable.measure);zo({activeNode:za?Ba.get(za):null,config:_t.layoutShiftCompensation,initialRect:kt,measure:Hi.draggable.measure});const zt=Bt(Xo,Hi.draggable.measure,kt),Da=Bt(Xo?Xo.parentElement:null),ar=(0,x.useRef)({activatorEvent:null,active:null,activeNode:Xo,collisionRect:null,collisions:null,droppableRects:pi,draggableNodes:Ba,draggingNode:null,draggingNodeRect:null,droppableContainers:Ea,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ia=Ea.getNodeFor((Oe=ar.current.over)==null?void 0:Oe.id),Rn=pt({measure:Hi.dragOverlay.measure}),Qa=(Se=Rn.nodeRef.current)!=null?Se:Xo,En=ea?(Je=Rn.rect)!=null?Je:zt:null,ba=!!(Rn.nodeRef.current&&Rn.rect),Pa=xt(ba?null:zt),Gr=Vr(Qa?(0,pe.Jj)(Qa):null),Wa=pn(ea?Ia!=null?Ia:Xo:null),Ko=Xn(Wa),uo=Hr(In,{transform:{x:qn.x-Pa.x,y:qn.y-Pa.y,scaleX:1,scaleY:1},activatorEvent:ga,active:er,activeNodeRect:zt,containerNodeRect:Da,draggingNodeRect:En,over:ar.current.over,overlayNodeRect:Rn.rect,scrollableAncestors:Wa,scrollableAncestorRects:Ko,windowRect:Gr}),Po=cl?(0,pe.IH)(cl,qn):null,cr=_n(Wa),sr=Qr(cr),Vn=Qr(cr,[zt]),Ir=(0,pe.IH)(uo,sr),oi=En?He(En,uo):null,ka=er&&oi?fn({active:er,collisionRect:oi,droppableRects:pi,droppableContainers:dl,pointerCoordinates:Po}):null,ya=le(ka,"id"),[Yr,Oi]=(0,x.useState)(null),Jn=ba?uo:(0,pe.IH)(uo,Vn),pr=Qe(Jn,(ot=Yr==null?void 0:Yr.rect)!=null?ot:null,zt),Ca=(0,x.useCallback)((so,Fr)=>{let{sensor:po,options:lr}=Fr;if(Sr.current==null)return;const Nr=Ba.get(Sr.current);if(!Nr)return;const yo=so.nativeEvent,Uo=new po({active:Sr.current,activeNode:Nr,event:yo,options:lr,context:ar,onStart(fa){const rr=Sr.current;if(rr==null)return;const na=Ba.get(rr);if(!na)return;const{onDragStart:Ua}=ei.current,Kr={active:{id:rr,data:na.data,rect:La}};(0,de.unstable_batchedUpdates)(()=>{Ua==null||Ua(Kr),An(Br.Initializing),Wn({type:oe.DragStart,initialCoordinates:fa,active:rr}),Cn({type:"onDragStart",event:Kr})})},onMove(fa){Wn({type:oe.DragMove,coordinates:fa})},onEnd:Nn(oe.DragEnd),onCancel:Nn(oe.DragCancel)});(0,de.unstable_batchedUpdates)(()=>{Lo(Uo),ii(so.nativeEvent)});function Nn(fa){return function(){return os(this,null,function*(){const{active:na,collisions:Ua,over:Kr,scrollAdjustedTranslate:Tr}=ar.current;let No=null;if(na&&Tr){const{cancelDrop:hi}=ei.current;No={activatorEvent:yo,active:na,collisions:Ua,delta:Tr,over:Kr},fa===oe.DragEnd&&typeof hi=="function"&&(yield Promise.resolve(hi(No)))&&(fa=oe.DragCancel)}Sr.current=null,(0,de.unstable_batchedUpdates)(()=>{Wn({type:fa}),An(Br.Uninitialized),Oi(null),Lo(null),ii(null);const hi=fa===oe.DragEnd?"onDragEnd":"onDragCancel";if(No){const _i=ei.current[hi];_i==null||_i(No),Cn({type:hi,event:No})}})})}}},[Ba]),ln=(0,x.useCallback)((so,Fr)=>(po,lr)=>{const Nr=po.nativeEvent,yo=Ba.get(lr);if(Sr.current!==null||!yo||Nr.dndKit||Nr.defaultPrevented)return;const Uo={active:yo};so(po,Fr.options,Uo)===!0&&(Nr.dndKit={capturedBy:Fr.sensor},Sr.current=lr,Ca(po,Fr))},[Ba,Ca]),ma=qt(nn,ln);Ra(nn),(0,pe.LI)(()=>{zt&&yn===Br.Initializing&&An(Br.Initialized)},[zt,yn]),(0,x.useEffect)(()=>{const{onDragMove:so}=ei.current,{active:Fr,activatorEvent:po,collisions:lr,over:Nr}=ar.current;if(!Fr||!po)return;const yo={active:Fr,activatorEvent:po,collisions:lr,delta:{x:Ir.x,y:Ir.y},over:Nr};(0,de.unstable_batchedUpdates)(()=>{so==null||so(yo),Cn({type:"onDragMove",event:yo})})},[Ir.x,Ir.y]),(0,x.useEffect)(()=>{const{active:so,activatorEvent:Fr,collisions:po,droppableContainers:lr,scrollAdjustedTranslate:Nr}=ar.current;if(!so||Sr.current==null||!Fr||!Nr)return;const{onDragOver:yo}=ei.current,Uo=lr.get(ya),Nn=Uo&&Uo.rect.current?{id:Uo.id,rect:Uo.rect.current,data:Uo.data,disabled:Uo.disabled}:null,fa={active:so,activatorEvent:Fr,collisions:po,delta:{x:Nr.x,y:Nr.y},over:Nn};(0,de.unstable_batchedUpdates)(()=>{Oi(Nn),yo==null||yo(fa),Cn({type:"onDragOver",event:fa})})},[ya]),(0,pe.LI)(()=>{ar.current={activatorEvent:ga,active:er,activeNode:Xo,collisionRect:oi,collisions:ka,droppableRects:pi,draggableNodes:Ba,draggingNode:Qa,draggingNodeRect:En,droppableContainers:Ea,over:Yr,scrollableAncestors:Wa,scrollAdjustedTranslate:Ir},La.current={initial:En,translated:oi}},[er,Xo,ka,oi,Ba,Qa,En,pi,Ea,Yr,Wa,Ir]),Un(ui(Zr({},_t),{delta:qn,draggingRect:oi,pointerCoordinates:Po,scrollableAncestors:Wa,scrollableAncestorRects:Ko}));const Fn=(0,x.useMemo)(()=>({active:er,activeNode:Xo,activeNodeRect:zt,activatorEvent:ga,collisions:ka,containerNodeRect:Da,dragOverlay:Rn,draggableNodes:Ba,droppableContainers:Ea,droppableRects:pi,over:Yr,measureDroppableContainers:Fi,scrollableAncestors:Wa,scrollableAncestorRects:Ko,measuringConfiguration:Hi,measuringScheduled:Qi,windowRect:Gr}),[er,Xo,zt,ga,ka,Da,Rn,Ba,Ea,pi,Yr,Fi,Wa,Ko,Hi,Qi,Gr]),$r=(0,x.useMemo)(()=>({activatorEvent:ga,activators:ma,active:er,activeNodeRect:zt,ariaDescribedById:{draggable:Fo},dispatch:Wn,draggableNodes:Ba,over:Yr,measureDroppableContainers:Fi}),[ga,ma,er,zt,Wn,Fo,Ba,Yr,Fi]);return x.createElement(We.Provider,{value:on},x.createElement(Pn.Provider,{value:$r},x.createElement(ua.Provider,{value:Fn},x.createElement(Kn.Provider,{value:pr},ht)),x.createElement(Mr,{disabled:(tt==null?void 0:tt.restoreFocus)===!1})),x.createElement(me,ui(Zr({},tt),{hiddenTextDescribedById:Fo})));function wr(){const so=(eo==null?void 0:eo.autoScrollEnabled)===!1,Fr=typeof it=="object"?it.enabled===!1:it===!1,po=ea&&!so&&!Fr;return typeof it=="object"?ui(Zr({},it),{enabled:po}):{enabled:po}}}),oa=(0,x.createContext)(null),Za="button",mr="Droppable";function da(ce){let{id:Pe,data:Oe,disabled:Se=!1,attributes:Je}=ce;const ot=(0,pe.Ld)(mr),{activators:wt,activatorEvent:tt,active:it,activeNodeRect:ht,ariaDescribedById:nn,draggableNodes:fn,over:$n}=(0,x.useContext)(Pn),{role:In=Za,roleDescription:Aa="draggable",tabIndex:va=0}=Je!=null?Je:{},Fa=(it==null?void 0:it.id)===Pe,Wn=(0,x.useContext)(Fa?Kn:oa),[Cn,on]=(0,pe.wm)(),[yn,An]=(0,pe.wm)(),ea=br(wt,Pe),za=(0,pe.Ey)(Oe);(0,pe.LI)(()=>(fn.set(Pe,{id:Pe,key:ot,node:Cn,activatorNode:yn,data:za}),()=>{const qn=fn.get(Pe);qn&&qn.key===ot&&fn.delete(Pe)}),[fn,Pe]);const Ba=(0,x.useMemo)(()=>({role:In,tabIndex:va,"aria-disabled":Se,"aria-pressed":Fa&&In===Za?!0:void 0,"aria-roledescription":Aa,"aria-describedby":nn.draggable}),[Se,In,va,Fa,Aa,nn.draggable]);return{active:it,activatorEvent:tt,activeNodeRect:ht,attributes:Ba,isDragging:Fa,listeners:Se?void 0:ea,node:Cn,over:$n,setNodeRef:on,setActivatorNodeRef:An,transform:Wn}}function io(){return(0,x.useContext)(ua)}const fr="Droppable",wo={timeout:25};function So(ce){let{data:Pe,disabled:Oe=!1,id:Se,resizeObserverConfig:Je}=ce;const ot=(0,pe.Ld)(fr),{active:wt,dispatch:tt,over:it,measureDroppableContainers:ht}=(0,x.useContext)(Pn),nn=(0,x.useRef)({disabled:Oe}),fn=(0,x.useRef)(!1),$n=(0,x.useRef)(null),In=(0,x.useRef)(null),{disabled:Aa,updateMeasurementsFor:va,timeout:Fa}=Zr(Zr({},wo),Je),Wn=(0,pe.Ey)(va!=null?va:Se),Cn=(0,x.useCallback)(()=>{if(!fn.current){fn.current=!0;return}In.current!=null&&clearTimeout(In.current),In.current=setTimeout(()=>{ht(Array.isArray(Wn.current)?Wn.current:[Wn.current]),In.current=null},Fa)},[Fa]),on=Na({callback:Cn,disabled:Aa||!wt}),yn=(0,x.useCallback)((Ba,qn)=>{on&&(qn&&(on.unobserve(qn),fn.current=!1),Ba&&on.observe(Ba))},[on]),[An,ea]=(0,pe.wm)(yn),za=(0,pe.Ey)(Pe);return(0,x.useEffect)(()=>{!on||!An.current||(on.disconnect(),fn.current=!1,on.observe(An.current))},[An,on]),(0,pe.LI)(()=>(tt({type:oe.RegisterDroppable,element:{id:Se,key:ot,disabled:Oe,node:An,rect:$n,data:za}}),()=>tt({type:oe.UnregisterDroppable,key:ot,id:Se})),[Se]),(0,x.useEffect)(()=>{Oe!==nn.current.disabled&&(tt({type:oe.SetDroppableDisabled,id:Se,key:ot,disabled:Oe}),nn.current.disabled=Oe)},[Se,ot,Oe,tt]),{active:wt,rect:$n,isOver:(it==null?void 0:it.id)===Se,node:An,over:it,setNodeRef:ea}}function Ro(ce){let{animation:Pe,children:Oe}=ce;const[Se,Je]=useState(null),[ot,wt]=useState(null),tt=usePrevious(Oe);return!Oe&&!Se&&tt&&Je(tt),useIsomorphicLayoutEffect(()=>{if(!ot)return;const it=Se==null?void 0:Se.key,ht=Se==null?void 0:Se.props.id;if(it==null||ht==null){Je(null);return}Promise.resolve(Pe(ht,ot)).then(()=>{Je(null)})},[Pe,Se,ot]),React.createElement(React.Fragment,null,Oe,Se?cloneElement(Se,{ref:wt}):null)}const Ni={x:0,y:0,scaleX:1,scaleY:1};function qo(ce){let{children:Pe}=ce;return React.createElement(Pn.Provider,{value:Yn},React.createElement(Kn.Provider,{value:Ni},Pe))}const ul={position:"fixed",touchAction:"none"},Yi=ce=>isKeyboardEvent(ce)?"transform 250ms ease":void 0,kn=null,Go={duration:250,easing:"ease",keyframes:ce=>{let{transform:{initial:Pe,final:Oe}}=ce;return[{transform:pe.ux.Transform.toString(Pe)},{transform:pe.ux.Transform.toString(Oe)}]},sideEffects:(ce=>Pe=>{let{active:Oe,dragOverlay:Se}=Pe;const Je={},{styles:ot,className:wt}=ce;if(ot!=null&&ot.active)for(const[tt,it]of Object.entries(ot.active))it!==void 0&&(Je[tt]=Oe.node.style.getPropertyValue(tt),Oe.node.style.setProperty(tt,it));if(ot!=null&&ot.dragOverlay)for(const[tt,it]of Object.entries(ot.dragOverlay))it!==void 0&&Se.node.style.setProperty(tt,it);return wt!=null&&wt.active&&Oe.node.classList.add(wt.active),wt!=null&&wt.dragOverlay&&Se.node.classList.add(wt.dragOverlay),function(){for(const[it,ht]of Object.entries(Je))Oe.node.style.setProperty(it,ht);wt!=null&&wt.active&&Oe.node.classList.remove(wt.active)}})({styles:{active:{opacity:"0"}}})};function xi(ce){let{config:Pe,draggableNodes:Oe,droppableContainers:Se,measuringConfiguration:Je}=ce;return useEvent((ot,wt)=>{if(Pe===null)return;const tt=Oe.get(ot);if(!tt)return;const it=tt.node.current;if(!it)return;const ht=ur(wt);if(!ht)return;const{transform:nn}=getWindow(wt).getComputedStyle(wt),fn=Ke(nn);if(!fn)return;const $n=typeof Pe=="function"?Pe:wi(Pe);return Qt(it,Je.draggable.measure),$n({active:{id:ot,data:tt.data,node:it,rect:Je.draggable.measure(it)},draggableNodes:Oe,dragOverlay:{node:wt,rect:Je.dragOverlay.measure(ht)},droppableContainers:Se,measuringConfiguration:Je,transform:fn})})}function wi(ce){const{duration:Pe,easing:Oe,sideEffects:Se,keyframes:Je}=Zr(Zr({},Go),ce);return ot=>{let Cn=ot,{active:wt,dragOverlay:tt,transform:it}=Cn,ht=Mu(Cn,["active","dragOverlay","transform"]);if(!Pe)return;const nn={x:tt.rect.left-wt.rect.left,y:tt.rect.top-wt.rect.top},fn={scaleX:it.scaleX!==1?wt.rect.width*it.scaleX/tt.rect.width:1,scaleY:it.scaleY!==1?wt.rect.height*it.scaleY/tt.rect.height:1},$n=Zr({x:it.x-nn.x,y:it.y-nn.y},fn),In=Je(ui(Zr({},ht),{active:wt,dragOverlay:tt,transform:{initial:it,final:$n}})),[Aa]=In,va=In[In.length-1];if(JSON.stringify(Aa)===JSON.stringify(va))return;const Fa=Se==null?void 0:Se(Zr({active:wt,dragOverlay:tt},ht)),Wn=tt.node.animate(In,{duration:Pe,easing:Oe,fill:"forwards"});return new Promise(on=>{Wn.onfinish=()=>{Fa==null||Fa(),on()}})}}let si=0;function zi(ce){return useMemo(()=>{if(ce!=null)return si++,si},[ce])}const jr=null},32339:function(ft,st,ee){"use strict";ee.d(st,{DL:function(){return ie}});var x=ee(24285);function de(Te){return ze=>{let{transform:Be}=ze;return ui(Zr({},Be),{x:Math.ceil(Be.x/Te)*Te,y:Math.ceil(Be.y/Te)*Te})}}const pe=Te=>{let{transform:ze}=Te;return ui(Zr({},ze),{y:0})};function De(Te,ze,Be){const me=Zr({},Te);return ze.top+Te.y<=Be.top?me.y=Be.top-ze.top:ze.bottom+Te.y>=Be.top+Be.height&&(me.y=Be.top+Be.height-ze.bottom),ze.left+Te.x<=Be.left?me.x=Be.left-ze.left:ze.right+Te.x>=Be.left+Be.width&&(me.x=Be.left+Be.width-ze.right),me}const we=Te=>{let{containerNodeRect:ze,draggingNodeRect:Be,transform:me}=Te;return!Be||!ze?me:De(me,Be,ze)},ke=Te=>{let{draggingNodeRect:ze,transform:Be,scrollableAncestorRects:me}=Te;const oe=me[0];return!ze||!oe?Be:De(Be,ze,oe)},ie=Te=>{let{transform:ze}=Te;return ui(Zr({},ze),{x:0})},We=Te=>{let{transform:ze,draggingNodeRect:Be,windowRect:me}=Te;return!Be||!me?ze:De(ze,Be,me)},Me=Te=>{let{activatorEvent:ze,draggingNodeRect:Be,transform:me}=Te;if(Be&&ze){const oe=getEventCoordinates(ze);if(!oe)return me;const a=oe.x-Be.left,y=oe.y-Be.top;return ui(Zr({},me),{x:me.x+a-Be.width/2,y:me.y+y-Be.height/2})}return me}},45587:function(ft,st,ee){"use strict";ee.d(st,{Fo:function(){return te},PG:function(){return ze},Rp:function(){return De},nB:function(){return be},qw:function(){return y}});var x=ee(67294),de=ee(60887),pe=ee(24285);function De(He,Ke,qe){const lt=He.slice();return lt.splice(qe<0?lt.length+qe:qe,0,lt.splice(Ke,1)[0]),lt}function we(He,Ke,qe){const lt=He.slice();return lt[Ke]=He[qe],lt[qe]=He[Ke],lt}function ke(He,Ke){return He.reduce((qe,lt,mt)=>{const Vt=Ke.get(lt);return Vt&&(qe[mt]=Vt),qe},Array(He.length))}function ie(He){return He!==null&&He>=0}function We(He,Ke){if(He===Ke)return!0;if(He.length!==Ke.length)return!1;for(let qe=0;qe{var Ke;let{rects:qe,activeNodeRect:lt,activeIndex:mt,overIndex:Vt,index:cn}=He;const rt=(Ke=qe[mt])!=null?Ke:lt;if(!rt)return null;const yt=Be(qe,cn,mt);if(cn===mt){const Lt=qe[Vt];return Lt?Zr({x:mtmt&&cn<=Vt?Zr({x:-rt.width-yt,y:0},Te):cn=Vt?Zr({x:rt.width+yt,y:0},Te):Zr({x:0,y:0},Te)};function Be(He,Ke,qe){const lt=He[Ke],mt=He[Ke-1],Vt=He[Ke+1];return!lt||!mt&&!Vt?0:qe{let{rects:Ke,activeIndex:qe,overIndex:lt,index:mt}=He;const Vt=De(Ke,lt,qe),cn=Ke[mt],rt=Vt[mt];return!rt||!cn?null:{x:rt.left-cn.left,y:rt.top-cn.top,scaleX:rt.width/cn.width,scaleY:rt.height/cn.height}},oe=He=>{let{activeIndex:Ke,index:qe,rects:lt,overIndex:mt}=He,Vt,cn;return qe===Ke&&(Vt=lt[qe],cn=lt[mt]),qe===mt&&(Vt=lt[qe],cn=lt[Ke]),!cn||!Vt?null:{x:cn.left-Vt.left,y:cn.top-Vt.top,scaleX:cn.width/Vt.width,scaleY:cn.height/Vt.height}},a={scaleX:1,scaleY:1},y=He=>{var Ke;let{activeIndex:qe,activeNodeRect:lt,index:mt,rects:Vt,overIndex:cn}=He;const rt=(Ke=Vt[qe])!=null?Ke:lt;if(!rt)return null;if(mt===qe){const Lt=Vt[cn];return Lt?Zr({x:0,y:qeqe&&mt<=cn?Zr({x:0,y:-rt.height-yt},a):mt=cn?Zr({x:0,y:rt.height+yt},a):Zr({x:0,y:0},a)};function b(He,Ke,qe){const lt=He[Ke],mt=He[Ke-1],Vt=He[Ke+1];return lt?qelt.map(Et=>typeof Et=="object"&&"id"in Et?Et.id:Et),[lt]),Sn=cn!=null,wn=cn?_e.indexOf(cn.id):-1,ha=Lt?_e.indexOf(Lt.id):-1,Mn=(0,x.useRef)(_e),at=!We(_e,Mn.current),ut=ha!==-1&&wn===-1||at,dt=Me(Vt);(0,pe.LI)(()=>{at&&Sn&&ct(_e)},[at,_e,Sn,ct]),(0,x.useEffect)(()=>{Mn.current=_e},[_e]);const At=(0,x.useMemo)(()=>({activeIndex:wn,containerId:Ft,disabled:dt,disableTransforms:ut,items:_e,overIndex:ha,useDragOverlay:jt,sortedRects:ke(_e,yt),strategy:mt}),[wn,Ft,dt.draggable,dt.droppable,ut,_e,ha,yt,jt,mt]);return x.createElement(z.Provider,{value:At},Ke)}const ne=He=>{let{id:Ke,items:qe,activeIndex:lt,overIndex:mt}=He;return De(qe,lt,mt).indexOf(Ke)},re=He=>{let{containerId:Ke,isSorting:qe,wasDragging:lt,index:mt,items:Vt,newIndex:cn,previousItems:rt,previousContainerId:yt,transition:Lt}=He;return!Lt||!lt||rt!==Vt&&mt===cn?!1:qe?!0:cn!==mt&&Ke===yt},ae={duration:200,easing:"ease"},le="transform",he=pe.ux.Transition.toString({property:le,duration:0,easing:"linear"}),ve={roleDescription:"sortable"};function Ce(He){let{disabled:Ke,index:qe,node:lt,rect:mt}=He;const[Vt,cn]=(0,x.useState)(null),rt=(0,x.useRef)(qe);return(0,pe.LI)(()=>{if(!Ke&&qe!==rt.current&<.current){const yt=mt.current;if(yt){const Lt=(0,de.VK)(lt.current,{ignoreTransform:!0}),ct={x:yt.left-Lt.left,y:yt.top-Lt.top,scaleX:yt.width/Lt.width,scaleY:yt.height/Lt.height};(ct.x||ct.y)&&cn(ct)}}qe!==rt.current&&(rt.current=qe)},[Ke,qe,lt,mt]),(0,x.useEffect)(()=>{Vt&&cn(null)},[Vt]),Vt}function be(He){let{animateLayoutChanges:Ke=re,attributes:qe,disabled:lt,data:mt,getNewIndex:Vt=ne,id:cn,strategy:rt,resizeObserverConfig:yt,transition:Lt=ae}=He;const{items:ct,containerId:Ft,activeIndex:jt,disabled:_e,disableTransforms:Sn,sortedRects:wn,overIndex:ha,useDragOverlay:Mn,strategy:at}=(0,x.useContext)(z),ut=ye(lt,_e),dt=ct.indexOf(cn),At=(0,x.useMemo)(()=>Zr({sortable:{containerId:Ft,index:dt,items:ct}},mt),[Ft,mt,dt,ct]),Et=(0,x.useMemo)(()=>ct.slice(ct.indexOf(cn)),[ct,cn]),{rect:gt,node:Qt,isOver:Ot,setNodeRef:bt}=(0,de.Zj)({id:cn,data:At,disabled:ut.droppable,resizeObserverConfig:Zr({updateMeasurementsFor:Et},yt)}),{active:rn,activatorEvent:Xt,activeNodeRect:$e,attributes:Re,setNodeRef:Ln,listeners:xe,isDragging:je,over:Ht,setActivatorNodeRef:et,transform:Ue}=(0,de.O1)({id:cn,data:At,attributes:Zr(Zr({},ve),qe),disabled:ut.draggable}),Ct=(0,pe.HB)(bt,Ln),Pt=!!rn,Zt=Pt&&!Sn&&ie(jt)&&ie(ha),vn=!Mn&&je,Nt=vn&&Zt?Ue:null,Tt=rt!=null?rt:at,St=Zt?Nt!=null?Nt:Tt({rects:wn,activeNodeRect:$e,activeIndex:jt,overIndex:ha,index:dt}):null,en=ie(jt)&&ie(ha)?Vt({id:cn,items:ct,activeIndex:jt,overIndex:ha}):dt,Gt=rn==null?void 0:rn.id,mn=(0,x.useRef)({activeId:Gt,items:ct,newIndex:en,containerId:Ft}),Qn=ct!==mn.current.items,xn=Ke({active:rn,containerId:Ft,isDragging:je,isSorting:Pt,id:cn,index:dt,items:ct,newIndex:mn.current.newIndex,previousItems:mn.current.items,previousContainerId:mn.current.containerId,transition:Lt,wasDragging:mn.current.activeId!=null}),Un=Ce({disabled:!xn,index:dt,node:Qt,rect:gt});return(0,x.useEffect)(()=>{Pt&&mn.current.newIndex!==en&&(mn.current.newIndex=en),Ft!==mn.current.containerId&&(mn.current.containerId=Ft),ct!==mn.current.items&&(mn.current.items=ct)},[Pt,en,Ft,ct]),(0,x.useEffect)(()=>{if(Gt===mn.current.activeId)return;if(Gt&&!mn.current.activeId){mn.current.activeId=Gt;return}const Kt=setTimeout(()=>{mn.current.activeId=Gt},50);return()=>clearTimeout(Kt)},[Gt]),{active:rn,activeIndex:jt,attributes:Re,data:At,rect:gt,index:dt,newIndex:en,items:ct,isOver:Ot,isSorting:Pt,isDragging:je,listeners:xe,node:Qt,overIndex:ha,over:Ht,setNodeRef:Ct,setActivatorNodeRef:et,setDroppableNodeRef:bt,setDraggableNodeRef:Ln,transform:Un!=null?Un:St,transition:pa()};function pa(){if(Un||Qn&&mn.current.newIndex===dt)return he;if(!(vn&&!(0,pe.vd)(Xt)||!Lt)&&(Pt||xn))return pe.ux.Transition.toString(ui(Zr({},Lt),{property:le}))}}function ye(He,Ke){var qe,lt;return typeof He=="boolean"?{draggable:He,droppable:!1}:{draggable:(qe=He==null?void 0:He.draggable)!=null?qe:Ke.draggable,droppable:(lt=He==null?void 0:He.droppable)!=null?lt:Ke.droppable}}function Ae(He){if(!He)return!1;const Ke=He.data.current;return!!(Ke&&"sortable"in Ke&&typeof Ke.sortable=="object"&&"containerId"in Ke.sortable&&"items"in Ke.sortable&&"index"in Ke.sortable)}const Ne=[de.g4.Down,de.g4.Right,de.g4.Up,de.g4.Left],Qe=(He,Ke)=>{let{context:{active:qe,collisionRect:lt,droppableRects:mt,droppableContainers:Vt,over:cn,scrollableAncestors:rt}}=Ke;if(Ne.includes(He.code)){if(He.preventDefault(),!qe||!lt)return;const yt=[];Vt.getEnabled().forEach(Ft=>{if(!Ft||Ft!=null&&Ft.disabled)return;const jt=mt.get(Ft.id);if(jt)switch(He.code){case KeyboardCode.Down:lt.topjt.top&&yt.push(Ft);break;case KeyboardCode.Left:lt.left>jt.left&&yt.push(Ft);break;case KeyboardCode.Right:lt.left1&&(ct=Lt[1].id),ct!=null){const Ft=Vt.get(qe.id),jt=Vt.get(ct),_e=jt?mt.get(jt.id):null,Sn=jt==null?void 0:jt.node.current;if(Sn&&_e&&Ft&&jt){const ha=getScrollableAncestors(Sn).some((Et,gt)=>rt[gt]!==Et),Mn=Le(Ft,jt),at=Ge(Ft,jt),ut=ha||!Mn?{x:0,y:0}:{x:at?lt.width-_e.width:0,y:at?lt.height-_e.height:0},dt={x:_e.left,y:_e.top};return ut.x&&ut.y?dt:subtract(dt,ut)}}}};function Le(He,Ke){return!Ae(He)||!Ae(Ke)?!1:He.data.current.sortable.containerId===Ke.data.current.sortable.containerId}function Ge(He,Ke){return!Ae(He)||!Ae(Ke)||!Le(He,Ke)?!1:He.data.current.sortable.indexLe=>{Ne.forEach(Ge=>Ge(Le))},Ne)}const pe=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function De(Ae){const Ne=Object.prototype.toString.call(Ae);return Ne==="[object Window]"||Ne==="[object global]"}function we(Ae){return"nodeType"in Ae}function ke(Ae){var Ne,Qe;return Ae?De(Ae)?Ae:we(Ae)&&(Ne=(Qe=Ae.ownerDocument)==null?void 0:Qe.defaultView)!=null?Ne:window:window}function ie(Ae){const{Document:Ne}=ke(Ae);return Ae instanceof Ne}function We(Ae){return De(Ae)?!1:Ae instanceof ke(Ae).HTMLElement}function Me(Ae){return Ae instanceof ke(Ae).SVGElement}function Te(Ae){return Ae?De(Ae)?Ae.document:we(Ae)?ie(Ae)?Ae:We(Ae)||Me(Ae)?Ae.ownerDocument:document:document:document}const ze=pe?x.useLayoutEffect:x.useEffect;function Be(Ae){const Ne=(0,x.useRef)(Ae);return ze(()=>{Ne.current=Ae}),(0,x.useCallback)(function(){for(var Qe=arguments.length,Le=new Array(Qe),Ge=0;Ge{Ae.current=setInterval(Le,Ge)},[]),Qe=(0,x.useCallback)(()=>{Ae.current!==null&&(clearInterval(Ae.current),Ae.current=null)},[]);return[Ne,Qe]}function oe(Ae,Ne){Ne===void 0&&(Ne=[Ae]);const Qe=(0,x.useRef)(Ae);return ze(()=>{Qe.current!==Ae&&(Qe.current=Ae)},Ne),Qe}function a(Ae,Ne){const Qe=(0,x.useRef)();return(0,x.useMemo)(()=>{const Le=Ae(Qe.current);return Qe.current=Le,Le},[...Ne])}function y(Ae){const Ne=Be(Ae),Qe=(0,x.useRef)(null),Le=(0,x.useCallback)(Ge=>{Ge!==Qe.current&&(Ne==null||Ne(Ge,Qe.current)),Qe.current=Ge},[]);return[Qe,Le]}function b(Ae){const Ne=(0,x.useRef)();return(0,x.useEffect)(()=>{Ne.current=Ae},[Ae]),Ne.current}let E={};function z(Ae,Ne){return(0,x.useMemo)(()=>{if(Ne)return Ne;const Qe=E[Ae]==null?0:E[Ae]+1;return E[Ae]=Qe,Ae+"-"+Qe},[Ae,Ne])}function te(Ae){return function(Ne){for(var Qe=arguments.length,Le=new Array(Qe>1?Qe-1:0),Ge=1;Ge{const qe=Object.entries(Ke);for(const[lt,mt]of qe){const Vt=He[lt];Vt!=null&&(He[lt]=Vt+Ae*mt)}return He},Zr({},Ne))}}const ne=te(1),re=te(-1);function ae(Ae){return"clientX"in Ae&&"clientY"in Ae}function le(Ae){if(!Ae)return!1;const{KeyboardEvent:Ne}=ke(Ae.target);return Ne&&Ae instanceof Ne}function he(Ae){if(!Ae)return!1;const{TouchEvent:Ne}=ke(Ae.target);return Ne&&Ae instanceof Ne}function ve(Ae){if(he(Ae)){if(Ae.touches&&Ae.touches.length){const{clientX:Ne,clientY:Qe}=Ae.touches[0];return{x:Ne,y:Qe}}else if(Ae.changedTouches&&Ae.changedTouches.length){const{clientX:Ne,clientY:Qe}=Ae.changedTouches[0];return{x:Ne,y:Qe}}}return ae(Ae)?{x:Ae.clientX,y:Ae.clientY}:null}const Ce=Object.freeze({Translate:{toString(Ae){if(!Ae)return;const{x:Ne,y:Qe}=Ae;return"translate3d("+(Ne?Math.round(Ne):0)+"px, "+(Qe?Math.round(Qe):0)+"px, 0)"}},Scale:{toString(Ae){if(!Ae)return;const{scaleX:Ne,scaleY:Qe}=Ae;return"scaleX("+Ne+") scaleY("+Qe+")"}},Transform:{toString(Ae){if(Ae)return[Ce.Translate.toString(Ae),Ce.Scale.toString(Ae)].join(" ")}},Transition:{toString(Ae){let{property:Ne,duration:Qe,easing:Le}=Ae;return Ne+" "+Qe+"ms "+Le}}}),be="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ye(Ae){return Ae.matches(be)?Ae:Ae.querySelector(be)}},71736:function(ft,st){"use strict";st.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45160:function(ft,st){"use strict";st.Z={flex_box_center:"flex_box_center___oaxfO",flex_space_between:"flex_space_between___NQ5Gm",flex_box_vertical_center:"flex_box_vertical_center___UGzY9",flex_box_center_end:"flex_box_center_end___SnN1r",flex_box_column:"flex_box_column___c0981",right:"right___sOpmg",title:"title___Nmi5q",titles:"titles___PaouY",tips:"tips___h2FE4"}},41642:function(ft,st){"use strict";st.Z={flex_box_center:"flex_box_center___eQ57b",flex_space_between:"flex_space_between___PVjBV",flex_box_vertical_center:"flex_box_vertical_center___ghTL_",flex_box_center_end:"flex_box_center_end___z8oKm",flex_box_column:"flex_box_column___JQV5n",title:"title___w80Ja",workListTabWrap:"workListTabWrap___YRwm7",workListTabButton:"workListTabButton___ebGCB",tables:"tables___AYvHM",checkboxgroup:"checkboxgroup___fZHgL"}},39886:function(ft,st){"use strict";st.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(ft,st){"use strict";st.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"}},9151:function(ft,st,ee){"use strict";var x=ee(67294),de=Object.defineProperty,pe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ke=(Me,Te,ze)=>Te in Me?de(Me,Te,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Me[Te]=ze,ie=(Me,Te)=>{for(var ze in Te||(Te={}))De.call(Te,ze)&&ke(Me,ze,Te[ze]);if(pe)for(var ze of pe(Te))we.call(Te,ze)&&ke(Me,ze,Te[ze]);return Me};const We=Me=>React.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},Me),React.createElement("path",{fill:"#F7B500",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm1 3H6.395a3.501 3.501 0 0 1-.857 1.245c-.32.294-.752.551-1.297.772L4 9.109V10.9c.448-.154.82-.315 1.117-.483.222-.126.45-.282.685-.466l.236-.194V15H8V7ZM4.812 0c.175 0 .35.16.438.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.663 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));st.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},37752:function(ft,st,ee){"use strict";var x=ee(67294),de=Object.defineProperty,pe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ke=(Me,Te,ze)=>Te in Me?de(Me,Te,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Me[Te]=ze,ie=(Me,Te)=>{for(var ze in Te||(Te={}))De.call(Te,ze)&&ke(Me,ze,Te[ze]);if(pe)for(var ze of pe(Te))we.call(Te,ze)&&ke(Me,ze,Te[ze]);return Me};const We=Me=>React.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},Me),React.createElement("path",{fill:"#B9C4CF",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm.05 3c-.675 0-1.203.092-1.584.276a2.056 2.056 0 0 0-.887.794c-.18.296-.31.691-.394 1.186l-.038.255 2.004.177c.055-.443.164-.753.326-.928a.814.814 0 0 1 .626-.263.81.81 0 0 1 .611.255c.162.17.243.375.243.614 0 .222-.081.456-.245.703-.164.247-.539.608-1.124 1.084-.96.776-1.613 1.45-1.962 2.02a4.363 4.363 0 0 0-.588 1.552L4 15h6v-1.781H6.877c.184-.197.343-.356.479-.478.136-.122.405-.334.808-.638.677-.523 1.145-1.002 1.401-1.438.257-.437.386-.895.386-1.374 0-.45-.112-.858-.336-1.22a2.043 2.043 0 0 0-.924-.808C8.301 7.088 7.753 7 7.05 7ZM4.812 0c.175 0 .35.16.437.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.662 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));st.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},33648:function(ft,st,ee){"use strict";var x=ee(67294),de=Object.defineProperty,pe=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ke=(Me,Te,ze)=>Te in Me?de(Me,Te,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Me[Te]=ze,ie=(Me,Te)=>{for(var ze in Te||(Te={}))De.call(Te,ze)&&ke(Me,ze,Te[ze]);if(pe)for(var ze of pe(Te))we.call(Te,ze)&&ke(Me,ze,Te[ze]);return Me};const We=Me=>React.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},Me),React.createElement("path",{fill:"#D09F18",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm-.062 3c-.826 0-1.464.172-1.915.517-.4.307-.686.733-.856 1.278l-.058.21 1.908.364c.052-.383.153-.651.302-.804a.772.772 0 0 1 .58-.23c.23 0 .412.07.544.211.133.14.199.33.199.565a.88.88 0 0 1-.265.638.89.89 0 0 1-.662.27 1.35 1.35 0 0 1-.158-.012l-.104-.015-.105 1.536c.278-.085.496-.127.654-.127.298 0 .533.099.707.296.173.197.26.475.26.833 0 .352-.09.634-.27.845a.852.852 0 0 1-.677.316.862.862 0 0 1-.636-.25c-.143-.144-.254-.384-.333-.723l-.036-.177L4 12.826c.132.482.321.882.567 1.2.246.319.56.56.942.726.381.165.902.248 1.563.248.677 0 1.224-.112 1.64-.335.416-.223.735-.542.956-.955.221-.414.332-.845.332-1.296 0-.359-.067-.667-.2-.926a1.633 1.633 0 0 0-.563-.625c-.149-.099-.363-.185-.644-.259.347-.204.606-.441.778-.712a1.66 1.66 0 0 0 .257-.908 1.82 1.82 0 0 0-.634-1.42C8.571 7.189 7.886 7 6.938 7ZM4.813 0c.175 0 .35.17.437.338l1.313 2.453s-2.8.17-4.463 1.776L.088.761C0 .677 0 .592 0 .507 0 .17.263 0 .525 0Zm8.662 0c.263 0 .525.254.525.507 0 .085 0 .17-.088.254L11.9 4.483C10.238 2.96 7.437 2.79 7.437 2.79L8.75.338C8.75.17 8.925 0 9.188 0Z"}));st.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyLjc3MiAwIDAgMSAuNTgtLjIzYy4yMyAwIC40MTIuMDcuNTQ0LjIxMS4xMzMuMTQuMTk5LjMzLjE5OS41NjVhLjg4Ljg4IDAgMCAxLS4yNjUuNjM4Ljg5Ljg5IDAgMCAxLS42NjIuMjcgMS4zNSAxLjM1IDAgMCAxLS4xNTgtLjAxMmwtLjEwNC0uMDE1LS4xMDUgMS41MzZjLjI3OC0uMDg1LjQ5Ni0uMTI3LjY1NC0uMTI3LjI5OCAwIC41MzMuMDk5LjcwNy4yOTYuMTczLjE5Ny4yNi40NzUuMjYuODMzIDAgLjM1Mi0uMDkuNjM0LS4yNy44NDVhLjg1Mi44NTIgMCAwIDEtLjY3Ny4zMTYuODYyLjg2MiAwIDAgMS0uNjM2LS4yNWMtLjE0My0uMTQ0LS4yNTQtLjM4NC0uMzMzLS43MjNsLS4wMzYtLjE3N0w0IDEyLjgyNmMuMTMyLjQ4Mi4zMjEuODgyLjU2NyAxLjIuMjQ2LjMxOS41Ni41Ni45NDIuNzI2LjM4MS4xNjUuOTAyLjI0OCAxLjU2My4yNDguNjc3IDAgMS4yMjQtLjExMiAxLjY0LS4zMzUuNDE2LS4yMjMuNzM1LS41NDIuOTU2LS45NTUuMjIxLS40MTQuMzMyLS44NDUuMzMyLTEuMjk2IDAtLjM1OS0uMDY3LS42NjctLjItLjkyNmExLjYzMyAxLjYzMyAwIDAgMC0uNTYzLS42MjVjLS4xNDktLjA5OS0uMzYzLS4xODUtLjY0NC0uMjU5LjM0Ny0uMjA0LjYwNi0uNDQxLjc3OC0uNzEyYTEuNjYgMS42NiAwIDAgMCAuMjU3LS45MDggMS44MiAxLjgyIDAgMCAwLS42MzQtMS40MkM4LjU3MSA3LjE4OSA3Ljg4NiA3IDYuOTM4IDdaTTQuODEzIDBjLjE3NSAwIC4zNS4xNy40MzcuMzM4bDEuMzEzIDIuNDUzcy0yLjguMTctNC40NjMgMS43NzZMLjA4OC43NjFDMCAuNjc3IDAgLjU5MiAwIC41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},18023:function(){"use strict";function ft(oe,a,y,b){y===void 0&&(y=0),b===void 0&&(b=1/0),this._name=oe,this._defaultValue=a,this._minimum=y,this._maximum=b}Object.defineProperty(ft.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(ft.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(ft.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(ft.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 y=go.Shape._FigureParameters[oe];return y?y[a]:null},go.Shape.setFigureParameter=function(oe,a,y){if(!(y instanceof ft))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var b=go.Shape._FigureParameters[oe];b||(b=[],go.Shape._FigureParameters[oe]=b),b[a]=y};var st=[];function ee(oe,a){var y=st.pop();return y===void 0?new go.Point(oe,a):(y.x=oe,y.y=a,y)}function x(){var oe=st.pop();return oe===void 0?new go.Point:oe}function de(oe){st.push(oe)}function pe(oe,a,y,b,E,z,te,ne,re){re||(re=new go.Point);var ae=oe-y,le=E-te,he=NaN,ve=NaN;if(ae===0)if(le===0)oe===y&&(he=oe,ve=a);else{var Ce=(z-ne)/le,be=z-Ce*E;he=oe,ve=Ce*he+be}else if(le===0){var ye=(a-b)/ae,Ae=a-ye*oe;he=E,ve=ye*he+Ae}else{var ye=(a-b)/ae,Ce=(z-ne)/le,Ae=a-ye*oe,be=z-Ce*E;he=(be-Ae)/(ye-Ce),ve=ye*he+Ae}return re.x=he,re.y=ve,re}function De(oe,a,y,b,E,z,te,ne,re,ae,le,he,ve,Ce){var be=1-re,ye=re,Ae=oe*be+y*ye,Ne=a*be+b*ye,Qe=y*be+E*ye,Le=b*be+z*ye,Ge=E*be+te*ye,He=z*be+ne*ye,Ke=Ae*be+Qe*ye,qe=Ne*be+Le*ye,lt=Qe*be+Ge*ye,mt=Le*be+He*ye,Vt=Ke*be+lt*ye,cn=qe*be+mt*ye;ae.x=Ae,ae.y=Ne,le.x=Ke,le.y=qe,he.x=Vt,he.y=cn,ve.x=lt,ve.y=mt,Ce.x=Ge,Ce.y=He}var we=new go.Spot(.156,.156),ke=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ft("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(oe,a,y){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=5),b=Math.min(b,a/3),b=Math.min(b,y/3);var E=b*ie,z=new go.Geometry().add(new go.PathFigure(b,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,b,a-E,0,a,E)).add(new go.PathSegment(go.PathSegment.Line,a,y-b)).add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close()));return E>1&&(z.spot1=new go.Spot(0,0,E,E),z.spot2=new go.Spot(1,1,-E,-E)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(oe,a,y){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,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).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,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(oe,a,y){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=y/2,b.endX=a,b.endY=y/2,b}),go.Shape.defineFigureGenerator("LineV",function(oe,a,y){var b=new go.Geometry(go.Geometry.Line);return b.startX=a/2,b.startY=0,b.endX=a/2,b.endY=y,b}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!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,y)))}),go.Shape.defineFigureGenerator("LineRight",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(oe,a,y){var b=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(b*a,(1-b)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,b*y)).add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,(1-b)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(oe,a,y){var b=a/2,E=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close()));return E.spot1=we,E.spot2=ke,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Line1",function(oe,a,y){var b=new go.Geometry(go.Geometry.Line);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}),go.Shape.defineFigureGenerator("Line2",function(oe,a,y){var b=new go.Geometry(go.Geometry.Line);return b.startX=a,b.startY=0,b.endX=0,b.endY=y,b}),go.Shape.defineFigureGenerator("Curve1",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ie*a,0,a,(1-ie)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ie*y,(1-ie)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ie*y,ie*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ie)*a,0,0,(1-ie)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(oe,a,y){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,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(oe,a,y){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,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ft("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)?b=.1:b<-1?b=-1:b>1&&(b=1);var E=Math.abs(b)*a;if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,E,y).close())),Ea&&(b=a);var E=Math.abs(b);if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,E,y).close())),E.5&&(b=.5);var E=Math.abs(b)*a;if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,y)).add(new go.PathSegment(go.PathSegment.Line,E,y).close())),Ea&&(b=a/2);var E=Math.abs(b);if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,y)).add(new go.PathSegment(go.PathSegment.Line,E,y).close())),Ea&&(b=a/2);var E=Math.abs(b);if(b===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return b>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-E,y)).add(new go.PathSegment(go.PathSegment.Line,E,y).close())):z.add(new go.PathFigure(E,0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),E0&&(te.add(new go.PathSegment(go.PathSegment.Move,a/2+ne,a/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E,E,ne,ne).close())),z.spot1=we,z.spot2=ke,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(oe,a,y){var b=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(b*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)).add(new go.PathSegment(go.PathSegment.Line,b*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y)).add(new go.PathSegment(go.PathSegment.Line,0,b*y).close())).setSpots(b/2,b/2,1-b/2,1-b/2)}),go.Shape.setFigureParameter("Pie",0,new ft("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ft("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(oe,a,y){var b=oe?oe.parameter1:NaN,E=oe?oe.parameter2:NaN;isNaN(b)&&(b=0),isNaN(E)&&(E=315);var z=b%360;z<0&&(z+=360);var te=E%360,ne=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ne,ne).add(new go.PathSegment(go.PathSegment.Arc,z,te,ne,ne,ne,ne).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(oe,a,y){var b=ie/Math.SQRT2*.5,E=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,E*a,z*y,a,(1-b)*y,(E+b)*a,(z+b)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(oe,a,y){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=30);var E=Math.min(b,a)/2,z=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(z-E,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+E,0)).add(new go.PathSegment(go.PathSegment.Line,z+E,te-E)).add(new go.PathSegment(go.PathSegment.Line,a,te-E)).add(new go.PathSegment(go.PathSegment.Line,a,te+E)).add(new go.PathSegment(go.PathSegment.Line,z+E,te+E)).add(new go.PathSegment(go.PathSegment.Line,z+E,y)).add(new go.PathSegment(go.PathSegment.Line,z-E,y)).add(new go.PathSegment(go.PathSegment.Line,z-E,te+E)).add(new go.PathSegment(go.PathSegment.Line,0,te+E)).add(new go.PathSegment(go.PathSegment.Line,0,te-E)).add(new go.PathSegment(go.PathSegment.Line,z-E,te-E).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(oe,a,y){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var E=Math.min(b,a)/2,z=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(z-E,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+E,0)).add(new go.PathSegment(go.PathSegment.Line,z+E,te-E)).add(new go.PathSegment(go.PathSegment.Line,a,te-E)).add(new go.PathSegment(go.PathSegment.Line,a,te+E)).add(new go.PathSegment(go.PathSegment.Line,z+E,te+E)).add(new go.PathSegment(go.PathSegment.Line,z+E,y)).add(new go.PathSegment(go.PathSegment.Line,z-E,y)).add(new go.PathSegment(go.PathSegment.Line,z-E,te+E)).add(new go.PathSegment(go.PathSegment.Line,0,te+E)).add(new go.PathSegment(go.PathSegment.Line,0,te-E)).add(new go.PathSegment(go.PathSegment.Line,z-E,te-E).close()))}),go.Shape.setFigureParameter("ThickX",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(oe,a,y){var b=oe?oe.parameter1:NaN;if((isNaN(b)||b<0)&&(b=30),a===0||y===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var z=a/2,te=y/2,ne=Math.atan2(y,a),re=b-Math.min(Math.cos(ne)*b/2,z),ae=b-Math.min(Math.sin(ne)*b/2,te),E=new go.Geometry,le=new go.PathFigure(re,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*y)),le.add(new go.PathSegment(go.PathSegment.Line,a-re,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,ae)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,a,y-ae)),le.add(new go.PathSegment(go.PathSegment.Line,a-re,y)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*y)),le.add(new go.PathSegment(go.PathSegment.Line,re,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,y-ae)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae).close()),E}}),go.Shape.setFigureParameter("ThinX",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(oe,a,y){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=10);var E=new go.Geometry,z=new go.PathFigure(.1*a,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),E}),go.Shape.setFigureParameter("SquareIBeam",0,new ft("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.2);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+b/2)*a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-b/2)*a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y).close()),E}),go.Shape.setFigureParameter("RoundedIBeam",0,new ft("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.5);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-b)*a,.25*y,Math.abs(1-b)*a,.75*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*a,.75*y,b*a,.25*y).close()),E}),go.Shape.defineFigureGenerator("HalfEllipse",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ie*a,0,a,(.5-ie/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ie/2)*y,ie*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.4*a,.6*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var z=.2,te=.3,ne=0,re=z*ie;return E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+z+ne)*y,(.5-z+te)*a,(.5+re+ne)*y,(.5-re+te)*a,(.5+z+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*a,(.5+ne)*y,(.5+re+te)*a,(.5+z+ne)*y,(.5+z+te)*a,(.5+re+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-z+ne)*y,(1-.5+z+te)*a,(.5-re+ne)*y,(.5+re+te)*a,(.5-z+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-re+te)*a,(.5-z+ne)*y,(.5-z+te+.05)*a,(.5-re+ne-.02)*y)),z=.2,te=0,ne=-.3,re=z*ie,E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*a,(.5+ne)*y,(.5+re+te)*a,(.5+z+ne)*y,(.5+z+te)*a,(.5+re+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-z+ne)*y,(1-.5+z+te)*a,(.5-re+ne)*y,(.5+re+te)*a,(.5-z+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*a,(.5+ne)*y,(.5-re+te)*a,(.5-z+ne)*y,(.5-z+te)*a,(.5-re+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+te)*a,(.5+z+ne)*y,(.5-z+te)*a,(.5+re+ne)*y,(.5-re+te)*a,(.5+z+ne)*y)),z=.2,te=-.3,ne=0,re=z*ie,E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-z+ne)*y,(1-.5+z+te-.05)*a,(.5-re+ne-.02)*y,(.5+re+te)*a,(.5-z+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*a,(.5+ne)*y,(.5-re+te)*a,(.5-z+ne)*y,(.5-z+te)*a,(.5-re+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+z+ne)*y,(.5-z+te)*a,(.5+re+ne)*y,(.5-re+te)*a,(.5+z+ne)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+re+te)*a,(.5+z+ne)*y,(.5+z+te)*a,(.5+re+ne)*y).close()),b.setSpots(.06,.33,.93,.68),b}),go.Shape.defineFigureGenerator("YinYang",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*.5,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),E.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var z=.1,te=.5,ne=.25;return E.add(new go.PathSegment(go.PathSegment.Move,(te+z)*a,ne*y)),E.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*te,y*ne,z*a,z*a).close()),E=new go.PathFigure(a*.5,0,!1),b.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ne=.75,E=new go.PathFigure((te+z)*a,ne*y,!0),b.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*te,y*ne,z*a,z*a).close()),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Peace",function(oe,a,y){var b=.8535533905932737,E=.5*a,z=.5*y;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,E,z,E,z)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Move,E,z)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,b*y)).add(new go.PathSegment(go.PathSegment.Move,E,z)).add(new go.PathSegment(go.PathSegment.Line,b*a,b*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=.5,te=.5,ne=.5,re=new go.PathFigure(te*a,(ne-z)*y);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-z)*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),z=.4,E=ie*.4;var ae=x(),le=x(),he=x(),ve=x();De(te,ne-z,te+E,ne-z,te+z,ne-E,te+z,ne,.42,ae,le,he,ve,ve);var Ce=x(),be=x(),ye=x();De(te,ne-z,te+E,ne-z,te+z,ne-E,te+z,ne,.58,ve,ve,ye,Ce,be);var Ae=x(),Ne=x(),Qe=x();De(te,ne+z,te-E,ne+z,te-z,ne+E,te-z,ne,.42,Ae,Ne,Qe,ve,ve);var Le=x(),Ge=x(),He=x();return De(te,ne+z,te-E,ne+z,te-z,ne+E,te-z,ne,.58,ve,ve,He,Le,Ge),re.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,Le.x*a,Le.y*y,Ge.x*a,Ge.y*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-z)*y,(te-z)*a,(ne-E)*y,(te-E)*a,(ne-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,he.x*a,he.y*y,ae.x*a,ae.y*y,le.x*a,le.y*y)),re.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,Qe.x*a,Qe.y*y)),re.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.y*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,Ce.x*a,Ce.y*y,be.x*a,be.y*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te+z)*a,(ne+E)*y,(te+E)*a,(ne+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Qe.x*a,Qe.y*y,Ae.x*a,Ae.y*y,Ne.x*a,Ne.y*y).close()),de(ae),de(le),de(he),de(ve),de(Ce),de(be),de(ye),de(Ae),de(Ne),de(Qe),de(Le),de(Ge),de(He),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Fragile",function(oe,a,y){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*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).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*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(oe,a,y){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=30),b>a&&(b=a);var E=(a-b)/2,z=E+b;return new go.Geometry().add(new go.PathFigure(z,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,E,.5*y)).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,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(oe,a,y){var b=new go.Geometry,E=ie*.4,z=.4,te=.5,ne=.5,re=x(),ae=x(),le=x(),he=x(),ve=new go.PathFigure((te-z)*a,ne*y,!1);b.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-z)*y,(te-z)*a,(ne-E)*y,(te-E)*a,(ne-z)*y)),De(te,ne-z,te+E,ne-z,te+z,ne-E,te+z,ne,.44,le,he,ae,re,re),ve.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,le.x*a,le.y*y,he.x*a,he.y*y));var Ce=ee(ae.x,ae.y);De(te,ne-z,te+E,ne-z,te+z,ne-E,te+z,ne,.56,re,re,ae,le,he);var be=ee(ae.x,ae.y);ve.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.95*.9)*a,Ce.y*.1*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ce.y*.1*y)),ve.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,0)),ve.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,.15*y)),ve.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,(be.y*.1+.05*.9)*y)),ve.add(new go.PathSegment(go.PathSegment.Line,be.x*a,be.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,le.x*a,le.y*y,he.x*a,he.y*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te+z)*a,(ne+E)*y,(te+E)*a,(ne+z)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,(te-E)*a,(ne+z)*y,(te-z)*a,(ne+E)*y)),z=.35,E=ie*.35;var ye=new go.PathFigure(te*a,(ne-z)*y,!1);b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-z)*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y));var Ae=new go.PathFigure((te-z)*a,ne*y,!1);return b.add(Ae),de(re),de(ae),de(le),de(he),de(Ce),de(be),b.spot1=new go.Spot(.202,.257),b.spot2=new go.Spot(.792,.739),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("GenderFemale",function(oe,a,y){var b=new go.Geometry,E=.375,z=0,te=-.125,ne=E*ie,re=new go.PathFigure((.525+z)*a,(.5+E+te)*y,!1);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+te)*y,(.5+ne+z)*a,(.5+E+te)*y,(.5+E+z)*a,(.5+ne+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+te)*y,(1-.5+E+z)*a,(.5-ne+te)*y,(.5+ne+z)*a,(.5-E+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5-E+te)*y,(.5-E+z)*a,(.5-ne+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*a,(.5+E+te)*y,(.5-E+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,(.5+E+te)*y)),re.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),re.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),re.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),re.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),re.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),E=.325,z=0,te=-.125,ne=E*ie;var re=new go.PathFigure((1-.5+E+z)*a,(.5+te)*y,!1);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+te)*y,(.5+E+z)*a,(.5+ne+te)*y,(.5+ne+z)*a,(.5+E+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5+E+te)*y,(.5-E+z)*a,(.5+ne+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+te)*y,(.5-E+z)*a,(.5-ne+te)*y,(.5-ne+z)*a,(.5-E+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+te)*y,(.5+ne+z)*a,(.5-E+te)*y,(1-.5+E+z)*a,(.5-ne+te)*y));var re=new go.PathFigure((.525+z)*a,(.5+E+te)*y,!1);return b.add(re),b.spot1=new go.Spot(.232,.136),b.spot2=new go.Spot(.682,.611),b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicImplies",function(oe,a,y){var b=oe?oe.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(oe,a,y){var b=oe?oe.parameter1:NaN;return isNaN(b)&&(b=.2),new go.Geometry().add(new go.PathFigure((1-b)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,b*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,b*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(oe,a,y){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,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(oe,a,y){var b=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("LogicTruth",function(oe,a,y){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,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(oe,a,y){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*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(oe,a,y){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*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(oe,a,y){var b=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,b*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,b*a,b*y,b*a,b*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(oe,a,y){var b=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,b*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,b*a,b*y,b*a,b*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ft("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ft("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var E=oe?oe.parameter2:NaN;isNaN(E)&&(E=.3);var z=(1-b)*a,te=(.5-E/2)*y,ne=(.5+E/2)*y,re=new go.Geometry,ae=new go.PathFigure(0,te,!0);re.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,z,te)),ae.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,z,y)),ae.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),re.spot1=new go.Spot(0,te/y);var le=pe(0,ne/y,1,ne/y,z/a,1,1,.5,x());return re.spot2=new go.Spot(le.x,le.y),de(le),re}),go.Shape.setFigureParameter("Arrow2",0,new ft("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ft("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=30),b>a&&(b=a);var E=oe?oe.parameter2:NaN;isNaN(E)&&(E=30),E=Math.min(E,y/2);var z=a-b,te=(y-E)/2,ne=te+E,re=new go.Geometry,ae=new go.PathFigure(0,te,!0);re.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,z,te)),ae.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,z,y)),ae.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),re.spot1=new go.Spot(0,te/y);var le=pe(0,ne/y,1,ne/y,z/a,1,1,.5,x());return re.spot2=new go.Spot(le.x,le.y),de(le),re}),go.Shape.defineFigureGenerator("Chevron",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),b}),go.Shape.defineFigureGenerator("DoubleArrow",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),b}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ft("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var E=(.5-b/2)*y,z=(.5+b/2)*y,te=new go.Geometry,ne=new go.PathFigure(a,.5*y,!0);te.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var re=pe(0,.5,.3,0,0,E/y,.1,E/y,x());return te.spot1=new go.Spot(re.x,re.y),re=pe(.7,1,1,.5,0,z/y,1,z/y,re),te.spot2=new go.Spot(re.x,re.y),de(re),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ft("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ft("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=40);var E=oe?oe.parameter2:NaN;isNaN(E)&&(E=100);var z=(y-b)/2,te=z+b,ne=(y-E)/2,re=ne+E;(b>y||E>y)&&(E>b?(b=b*y/E,z=(y-b)/2,te=z+b,ne=0,re=y):(z=0,te=y,ne=0,re=y));var ae=new go.Geometry,le=new go.PathFigure(a,.5*y,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,re)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,re)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne).close());var he=pe(0,.5,.3,ne/y,0,z/y,1,z/y,x());return ae.spot1=new go.Spot(he.x,he.y),he=pe(.7,re/y,1,.5,0,te/y,1,te/y,he),ae.spot2=new go.Spot(he.x,he.y),de(he),ae}),go.Shape.setFigureParameter("IBeamArrow",0,new ft("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var E=(.5-b/2)*y,z=(.5+b/2)*y,te=new go.Geometry,ne=new go.PathFigure(a,.5*y,!0);te.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(0,E/y);var re=pe(.7,1,1,.5,0,z/y,1,z/y,x());return te.spot2=new go.Spot(re.x,re.y),de(re),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new ft("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ft("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=40);var E=oe?oe.parameter2:NaN;isNaN(E)&&(E=100);var z=(y-b)/2,te=z+b,ne=(y-E)/2,re=ne+E;(b>y||E>y)&&(E>b?(b=b*y/E,z=(y-b)/2,te=z+b,ne=0,re=y):(z=0,te=y,ne=0,re=y));var ae=new go.Geometry,le=new go.PathFigure(a,.5*y,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,re)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,re)),le.add(new go.PathSegment(go.PathSegment.Line,0,re)),le.add(new go.PathSegment(go.PathSegment.Line,0,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),le.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne).close()),ae.spot1=new go.Spot(0,z/y);var he=pe(.7,re/y,1,.5,0,te/y,1,te/y,x());return ae.spot2=new go.Spot(he.x,he.y),de(he),ae}),go.Shape.setFigureParameter("Pointer",0,new ft("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),E.spot1=new go.Spot(b,.35);var te=pe(.2,.65,1,.65,0,1,1,.5,x());return E.spot2=new go.Spot(te.x,te.y),de(te),E}),go.Shape.setFigureParameter("RoundedPointer",0,new ft("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.3);var E=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,b*a,.75*y,b*a,.25*y).close()),E.spot1=new go.Spot(b,.35);var te=pe(0,.65,1,.65,0,1,1,.5,x());return E.spot2=new go.Spot(te.x,te.y),de(te),E}),go.Shape.setFigureParameter("SplitEndArrow",0,new ft("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.4);var E=(.5-b/2)*y,z=(.5+b/2)*y,te=new go.Geometry,ne=new go.PathFigure(a,.5*y,!0);te.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,.3);var re=pe(.7,1,1,.5,0,z/y,1,z/y,x());return te.spot2=new go.Spot(re.x,re.y),de(re),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ft("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=50);var E=(y-b)/2,z=E+b;b>y&&(E=0,z=y);var te=new go.Geometry,ne=new go.PathFigure(a,.5*y,!0);te.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,z)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,E/y);var re=pe(.7,1,1,.5,0,z/y,1,z/y,x());return te.spot2=new go.Spot(re.x,re.y),de(re),te}),go.Shape.setFigureParameter("SquareArrow",0,new ft("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,0).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(b,1),E}),go.Shape.defineFigureGenerator("Cone1",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=ie*.1,te=new go.PathFigure(0,.9*y,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+z)*y,(.5+E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-E)*a,y,0,(.9+z)*y).close()),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.97),b}),go.Shape.defineFigureGenerator("Cone2",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.9*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var z=new go.PathFigure(0,.9*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.82),b}),go.Shape.defineFigureGenerator("Cube1",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var z=new go.PathFigure(.5*a,y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),z.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.5,.85),b}),go.Shape.defineFigureGenerator("Cube2",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.3*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var z=new go.PathFigure(0,.3*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(.7,1),b}),go.Shape.defineFigureGenerator("Cylinder1",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,y/3);var E=new go.Geometry,z=ie*.5,te=new go.PathFigure(0,b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*b,(.5-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*a,b,(.5+z)*a,0,1*a,ie*b)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*b,(.5+z)*a,1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,(.5-z)*a,1*y,0,y-ie*b)),te.add(new go.PathSegment(go.PathSegment.Line,0,b));var ne=new go.PathFigure(a,b,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*b,1*a,2*b-ie*b,(.5+z)*a,2*b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,b,(.5-z)*a,2*b,0,2*b-ie*b)),E.spot1=new go.Spot(0,0,0,2*b),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Cylinder2",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,y/3);var E=new go.Geometry,z=ie*.5,te=new go.PathFigure(0,y-b,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*b,(.5-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b,(.5+z)*a,0,a,ie*b)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*b,(.5+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,(.5-z)*a,y,0,y-ie*b));var ne=new go.PathFigure(0,y-b,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*b,0,y-b-ie*b,(.5-z)*a,y-2*b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,y-b,(.5+z)*a,y-2*b,a,y-b-ie*b)),E.spot1=new go.Spot(0,0),E.spot2=new go.Spot(1,1,0,-2*b),E}),go.Shape.defineFigureGenerator("Cylinder3",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var E=new go.Geometry,z=ie*.5,te=new go.PathFigure(b,0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-b,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*b,0,a,(.5-z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,(.5+z)*y,a-ie*b,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*b,y,0,(.5+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-z)*y,ie*b,0));var ne=new go.PathFigure(b,0,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,2*b,.5*y,b+ie*b,0,2*b,(.5-z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,b,y,2*b,(.5+z)*y,b+ie*b,y)),E.spot1=new go.Spot(0,0,2*b,0),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Cylinder4",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=5),b=Math.min(b,a/3);var E=new go.Geometry,z=ie*.5,te=new go.PathFigure(a-b,0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*b,0,a,(.5-z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,(.5+z)*y,a-ie*b,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*b,y,0,(.5+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,(.5-z)*y,ie*b,0)),te.add(new go.PathSegment(go.PathSegment.Line,a-b,0));var ne=new go.PathFigure(a-b,0,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-2*b,.5*y,a-b-ie*b,0,a-2*b,(.5-z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a-2*b,(.5+z)*y,a-b-ie*b,y)),E.spot1=new go.Spot(0,0),E.spot2=new go.Spot(1,1,-2*b,0),E}),go.Shape.defineFigureGenerator("Prism1",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.25*a,.25*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(.25*a,.25*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.spot1=new go.Spot(.408,.172),b.spot2=new go.Spot(.833,.662),b}),go.Shape.defineFigureGenerator("Prism2",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.25*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),z.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),b.spot1=new go.Spot(.25,.5),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("Pyramid1",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var z=new go.PathFigure(.5*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Pyramid2",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var z=new go.PathFigure(.5*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),z.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.spot1=new go.Spot(.25,.367),b.spot2=new go.Spot(.75,.875),b}),go.Shape.defineFigureGenerator("Actor",function(oe,a,y){var b=new go.Geometry,E=.2,z=.1,te=ie*E,ne=ie*z,re=.5,ae=.1,le=new go.PathFigure(re*a,(ae+z)*y,!0);b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-E)*a,ae*y,(re-te)*a,(ae+z)*y,(re-E)*a,(ae+ne)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-z)*y,(re-E)*a,(ae-ne)*y,(re-te)*a,(ae-z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+E)*a,ae*y,(re+te)*a,(ae-z)*y,(re+E)*a,(ae-ne)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae+z)*y,(re+E)*a,(ae+ne)*y,(re+te)*a,(ae+z)*y));var he=.05,ve=ie*he;re=.05,ae=.25;var Ce=new go.PathFigure(.5*a,.2*y,!0);return b.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),re=.95,ae=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(re+he)*a,ae*y,(re+ve)*a,(ae-he)*y,(re+he)*a,(ae-ve)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),he=.025,ve=ie*he,re=.825,ae=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-he)*y,(re+he)*a,(ae-ve)*y,(re+ve)*a,(ae-he)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-he)*a,ae*y,(re-ve)*a,(ae-he)*y,(re-he)*a,(ae-ve)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),he=.05,ve=ie*he,re=.5,ae=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-he)*y,(re+he)*a,(ae-ve)*y,(re+ve)*a,(ae-he)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-he)*a,ae*y,(re-ve)*a,(ae-he)*y,(re-he)*a,(ae-ve)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),he=.025,ve=ie*he,re=.175,ae=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-he)*y,(re+he)*a,(ae-ve)*y,(re+ve)*a,(ae-he)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-he)*a,ae*y,(re-ve)*a,(ae-he)*y,(re-he)*a,(ae-ve)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),he=.05,ve=ie*he,re=.05,ae=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-he)*y,(re-he)*a,(ae-ve)*y,(re-ve)*a,(ae-he)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.spot1=new go.Spot(.2,.2),b.spot2=new go.Spot(.8,.65),b}),go.Shape.setFigureParameter("Card",0,new ft("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(oe,a,y){var b=oe?oe.parameter1:NaN;isNaN(b)&&(b=.2);var E=new go.Geometry,z=new go.PathFigure(a,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,0).close()),E.spot1=new go.Spot(0,b),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Collate",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var z=new go.PathFigure(.5*a,.5*y,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,.25),b}),go.Shape.defineFigureGenerator("CreateRequest",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,E*y,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-E)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),b}),go.Shape.defineFigureGenerator("Database",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=ie*.1,te=new go.PathFigure(a,.1*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+z)*y,(.5+E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-E)*a,y,0,(.9+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-z)*y,(.5-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+E)*a,0,a,(.1-z)*y));var ne=new go.PathFigure(a,.1*y,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+z)*y,(.5+E)*a,.2*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-E)*a,.2*y,0,(.1+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+z)*y,(.5+E)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-E)*a,.3*y,0,(.2+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+z)*y,(.5+E)*a,.4*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-E)*a,.4*y,0,(.3+z)*y)),b.spot1=new go.Spot(0,.4),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("DataStorage",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),b.spot1=new go.Spot(.226,0),b.spot2=new go.Spot(.81,1),b}),go.Shape.defineFigureGenerator("DiskStorage",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=ie*.1,te=new go.PathFigure(a,.1*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+z)*y,(.5+E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-E)*a,y,0,(.9+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-z)*y,(.5-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+E)*a,0,a,(.1-z)*y));var ne=new go.PathFigure(a,.1*y,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+z)*y,(.5+E)*a,.2*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-E)*a,.2*y,0,(.1+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+z)*y,(.5+E)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-E)*a,.3*y,0,(.2+z)*y)),b.spot1=new go.Spot(0,.3),b.spot2=new go.Spot(1,.9),b}),go.Shape.defineFigureGenerator("Display",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.25*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),b.spot1=new go.Spot(.25,0),b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("DividedEvent",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)?E=.2:E<.15&&(E=.15);var z=ie*.2,te=new go.PathFigure(0,.2*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-z)*y,(.2-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+z)*a,0,a,(.2-z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+z)*y,(.8+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-z)*a,y,0,(.8+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ne=new go.PathFigure(0,E*y,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),b}),go.Shape.defineFigureGenerator("DividedProcess",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;(isNaN(E)||E<.1)&&(E=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,E*y,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),b}),go.Shape.defineFigureGenerator("Document",function(oe,a,y){var b=new go.Geometry;y=y/.8;var E=new go.PathFigure(0,.7*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("ExternalOrganization",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;(isNaN(E)||E<.2)&&(E=.2);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(E*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,E*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-E)*y)),te.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),b}),go.Shape.defineFigureGenerator("ExternalProcess",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var z=new go.PathFigure(.1*a,.4*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("File",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(.75*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Interrupt",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var z=new go.PathFigure(a,.5*y,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y));var te=new go.PathFigure(a,.5*y,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("InternalStorage",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN,z=oe?oe.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(z)&&(z=.1);var te=new go.PathFigure(0,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ne=new go.PathFigure(E*a,0,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),ne.add(new go.PathSegment(go.PathSegment.Move,0,z*y)),ne.add(new go.PathSegment(go.PathSegment.Line,a,z*y)),b}),go.Shape.defineFigureGenerator("Junction",function(oe,a,y){var b=new go.Geometry,E=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=ie*.5,ne=.5,re=new go.PathFigure(a,ne*y,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,y,a,(ne+te)*y,(ne+te)*a,y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ne*y,(ne-te)*a,y,0,(ne+te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,0,0,(ne-te)*y,(ne-te)*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,ne*y,(ne+te)*a,0,a,(ne-te)*y));var ae=new go.PathFigure((z+E)*a,(z+E)*y,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,z*a,z*y)),ae.add(new go.PathSegment(go.PathSegment.Move,z*a,(z+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(z+E)*a,z*y)),b}),go.Shape.defineFigureGenerator("LinedDocument",function(oe,a,y){var b=new go.Geometry;y=y/.8;var E=new go.PathFigure(0,.7*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var z=new go.PathFigure(.1*a,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),b.spot1=new go.Spot(.1,0),b.spot2=new go.Spot(1,.6),b}),go.Shape.defineFigureGenerator("LoopLimit",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MagneticTape",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=.5,te=new go.PathFigure(.5*a,y,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-E)*a,y,0,(z+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-E)*y,(z-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+E)*a,0,a,(z-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*a,.9*y,a,(z+E)*y,(z+E)*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.8),b}),go.Shape.defineFigureGenerator("ManualInput",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),b.spot1=new go.Spot(0,.25),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("MessageFromUser",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.7);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("MicroformProcessing",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.25);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,E*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b}),go.Shape.defineFigureGenerator("MicroformRecording",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("MultiDocument",function(oe,a,y){var b=new go.Geometry;y=y/.8;var E=new go.PathFigure(a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var z=new go.PathFigure(.1*a,.2*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.8,.77),b}),go.Shape.defineFigureGenerator("MultiProcess",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.1*a,.1*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var z=new go.PathFigure(.2*a,.1*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.spot1=new go.Spot(0,.2),b.spot2=new go.Spot(.8,1),b}),go.Shape.defineFigureGenerator("OfflineStorage",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var z=1-E,te=new go.PathFigure(0,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ne=new go.PathFigure(.5*E*a,E*y,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-.5*E)*a,E*y)),b}),go.Shape.defineFigureGenerator("OffPageConnector",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.75,1),b}),go.Shape.defineFigureGenerator("Or",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=.5,te=new go.PathFigure(a,z*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,a,(z+E)*y,(z+E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-E)*a,y,0,(z+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-E)*y,(z-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+E)*a,0,a,(z-E)*y));var ne=new go.PathFigure(a,.5*y,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b}),go.Shape.defineFigureGenerator("PaperTape",function(oe,a,y){var b=new go.Geometry;y=y/.8;var E=new go.PathFigure(0,.7*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),b.spot1=new go.Spot(0,.49),b.spot2=new go.Spot(1,.75),b}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN,z=oe?oe.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN,z=oe?oe.parameter2:NaN;isNaN(E)&&(E=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b}),go.Shape.defineFigureGenerator("Procedure",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure((1-E)*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,E*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),b}),go.Shape.defineFigureGenerator("Process",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(E*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Sort",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var z=new go.PathFigure(0,.5*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.5),b}),go.Shape.defineFigureGenerator("Start",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.25);var z=new go.PathFigure(E*a,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var te=new go.PathFigure(E*a,0,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),b.spot1=new go.Spot(E,0),b.spot2=new go.Spot(1-E,1),b}),go.Shape.defineFigureGenerator("Terminator",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.25*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),b.spot1=new go.Spot(.23,0),b.spot2=new go.Spot(.77,1),b}),go.Shape.defineFigureGenerator("TransmittalTape",function(oe,a,y){var b=new go.Geometry,E=oe?oe.parameter1:NaN;isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y).close()),b.spot1=go.Spot.TopLeft,b}),go.Shape.defineFigureGenerator("AndGate",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+E)*a,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+E)*y,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(.55,1),b}),go.Shape.defineFigureGenerator("Buffer",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Clock",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=.5,te=new go.PathFigure(a,z*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,a,(z+E)*y,(z+E)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-E)*a,y,0,(z+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-E)*y,(z-E)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+E)*a,0,a,(z-E)*y));var ne=new go.PathFigure(a,z*y,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,z*y));var re=new go.PathFigure(.8*a,.75*y,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),b}),go.Shape.defineFigureGenerator("Ground",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b}),go.Shape.defineFigureGenerator("Inverter",function(oe,a,y){var b=new go.Geometry,E=ie*.1,z=.1,te=.9,ne=.5,re=new go.PathFigure(.8*a,.5*y,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ae=new go.PathFigure((te+z)*a,ne*y,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te+z)*a,(ne+E)*y,(te+E)*a,(ne+z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,(te-E)*a,(ne+z)*y,(te-z)*a,(ne+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-z)*y,(te-z)*a,(ne-E)*y,(te-E)*a,(ne-z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,(te+E)*a,(ne-z)*y,(te+z)*a,(ne-E)*y)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.4,.75),b}),go.Shape.defineFigureGenerator("NandGate",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=ie*.4,te=ie*.1,ne=.1,re=.9,ae=.5,le=new go.PathFigure(.8*a,.5*y,!0);b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+z)*y,(.4+E)*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,y)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+E)*a,0,.8*a,(.5-z)*y));var he=new go.PathFigure((re+ne)*a,ae*y,!0);return b.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae+ne)*y,(re+ne)*a,(ae+te)*y,(re+te)*a,(ae+ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a,ae*y,(re-te)*a,(ae+ne)*y,(re-ne)*a,(ae+te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-ne)*y,(re-ne)*a,(ae-te)*y,(re-te)*a,(ae-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a,ae*y,(re+te)*a,(ae-ne)*y,(re+ne)*a,(ae-te)*y)),b.spot1=new go.Spot(0,.05),b.spot2=new go.Spot(.55,.95),b}),go.Shape.defineFigureGenerator("NorGate",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*E,te=0,ne=.5,re=new go.PathFigure(.8*a,.5*y,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+z)*a,(ne-E)*y,.7*a,(ne-z)*y)),E=.1,z=ie*.1,te=.9,ne=.5;var ae=new go.PathFigure((te-E)*a,ne*y,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-E)*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,ne*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+E)*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,ne*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y)),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.6,.75),b}),go.Shape.defineFigureGenerator("OrGate",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*E,te=0,ne=.5,re=new go.PathFigure(0,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+z+z)*a,(ne-E)*y,.8*a,(ne-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ne+z)*y,(te+z+z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),b.spot1=new go.Spot(.2,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("XnorGate",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*E,te=.2,ne=.5,re=new go.PathFigure(.1*a,0,!1);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.8*a,.5*y,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+z)*a,(ne-E)*y,.7*a,(ne-z)*y)),E=.1,z=ie*.1,te=.9,ne=.5;var le=new go.PathFigure((te-E)*a,ne*y,!0);return b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-E)*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,ne*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+E)*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,ne*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y)),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.65,.75),b}),go.Shape.defineFigureGenerator("XorGate",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*E,te=.2,ne=.5,re=new go.PathFigure(.1*a,0,!1);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ae=new go.PathFigure(.2*a,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+z)*a,(ne-E)*y,.9*a,(ne-z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),b.spot1=new go.Spot(.4,.25),b.spot2=new go.Spot(.8,.75),b}),go.Shape.defineFigureGenerator("Capacitor",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Move,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),b}),go.Shape.defineFigureGenerator("Resistor",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.5*y,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b}),go.Shape.defineFigureGenerator("Inductor",function(oe,a,y){var b=new go.Geometry,E=ie*.1,z=.1,te=.1,ne=.5,re=new go.PathFigure((te-E*.5)*a,y,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-E)*a,y,(te-z)*a,0)),te=.3,re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+z)*a,0,(te+E)*a,y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-E)*a,y,(te-z)*a,0)),te=.5,re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+z)*a,0,(te+E)*a,y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-E)*a,y,(te-z)*a,0)),te=.7,re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+z)*a,0,(te+E)*a,y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,0,(te-E)*a,y,(te-z)*a,0)),te=.9,re.add(new go.PathSegment(go.PathSegment.Bezier,(te+E*.5)*a,y,(te+z)*a,0,(te+E)*a,y)),b}),go.Shape.defineFigureGenerator("ACvoltageSource",function(oe,a,y){var b=new go.Geometry,E=ie*.5,z=.5,te=.5,ne=.5,re=new go.PathFigure((te-z)*a,ne*y,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-z)*y,(te-z)*a,(ne-E)*y,(te-E)*a,(ne-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,(te+E)*a,(ne-z)*y,(te+z)*a,(ne-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te+z)*a,(ne+E)*y,(te+E)*a,(ne+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,(te-E)*a,(ne+z)*y,(te-z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*a,ne*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z-.1)*a,ne*y,te*a,(ne-z)*y,te*a,(ne+z)*y)),b}),go.Shape.defineFigureGenerator("DCvoltageSource",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.75*y,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),b}),go.Shape.defineFigureGenerator("Diode",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.spot1=new go.Spot(0,.25),b.spot2=new go.Spot(.5,.75),b}),go.Shape.defineFigureGenerator("Wifi",function(oe,a,y){var b=new go.Geometry,E=a,z=y;a=a*.38,y=y*.6;var te=ie*.8,ne=.8,re=0,ae=.5,le=(E-a)/2,he=(z-y)/2,ve=new go.PathFigure(re*a+le,(ae+ne)*y+he,!0);b.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a+le,ae*y+he,(re-te)*a+le,(ae+ne)*y+he,(re-ne)*a+le,(ae+te)*y+he)),ve.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae-ne)*y+he,(re-ne)*a+le,(ae-te)*y+he,(re-te)*a+le,(ae-ne)*y+he)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne+te*.5)*a+le,ae*y+he,re*a+le,(ae-ne)*y+he,(re-ne+te*.5)*a+le,(ae-te)*y+he)),ve.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae+ne)*y+he,(re-ne+te*.5)*a+le,(ae+te)*y+he,re*a+le,(ae+ne)*y+he).close()),te=ie*.4,ne=.4,re=.2,ae=.5;var Ce=new go.PathFigure(re*a+le,(ae+ne)*y+he,!0);b.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a+le,ae*y+he,(re-te)*a+le,(ae+ne)*y+he,(re-ne)*a+le,(ae+te)*y+he)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae-ne)*y+he,(re-ne)*a+le,(ae-te)*y+he,(re-te)*a+le,(ae-ne)*y+he)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne+te*.5)*a+le,ae*y+he,re*a+le,(ae-ne)*y+he,(re-ne+te*.5)*a+le,(ae-te)*y+he)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae+ne)*y+he,(re-ne+te*.5)*a+le,(ae+te)*y+he,re*a+le,(ae+ne)*y+he).close()),te=ie*.2,ne=.2,re=.5,ae=.5;var be=new go.PathFigure((re-ne)*a+le,ae*y+he,!0);b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae-ne)*y+he,(re-ne)*a+le,(ae-te)*y+he,(re-te)*a+le,(ae-ne)*y+he)),be.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a+le,ae*y+he,(re+te)*a+le,(ae-ne)*y+he,(re+ne)*a+le,(ae-te)*y+he)),be.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae+ne)*y+he,(re+ne)*a+le,(ae+te)*y+he,(re+te)*a+le,(ae+ne)*y+he)),be.add(new go.PathSegment(go.PathSegment.Bezier,(re-ne)*a+le,ae*y+he,(re-te)*a+le,(ae+ne)*y+he,(re-ne)*a+le,(ae+te)*y+he)),te=ie*.4,ne=.4,re=.8,ae=.5;var ye=new go.PathFigure(re*a+le,(ae-ne)*y+he,!0);b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a+le,ae*y+he,(re+te)*a+le,(ae-ne)*y+he,(re+ne)*a+le,(ae-te)*y+he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae+ne)*y+he,(re+ne)*a+le,(ae+te)*y+he,(re+te)*a+le,(ae+ne)*y+he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne-te*.5)*a+le,ae*y+he,re*a+le,(ae+ne)*y+he,(re+ne-te*.5)*a+le,(ae+te)*y+he)),ye.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae-ne)*y+he,(re+ne-te*.5)*a+le,(ae-te)*y+he,re*a+le,(ae-ne)*y+he).close()),te=ie*.8,ne=.8,re=1,ae=.5;var Ae=new go.PathFigure(re*a+le,(ae-ne)*y+he,!0);return b.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne)*a+le,ae*y+he,(re+te)*a+le,(ae-ne)*y+he,(re+ne)*a+le,(ae-te)*y+he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae+ne)*y+he,(re+ne)*a+le,(ae+te)*y+he,(re+te)*a+le,(ae+ne)*y+he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(re+ne-te*.5)*a+le,ae*y+he,re*a+le,(ae+ne)*y+he,(re+ne-te*.5)*a+le,(ae+te)*y+he)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,re*a+le,(ae-ne)*y+he,(re+ne-te*.5)*a+le,(ae-te)*y+he,re*a+le,(ae-ne)*y+he).close()),b}),go.Shape.defineFigureGenerator("Email",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),b}),go.Shape.defineFigureGenerator("Ethernet",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.35*a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var z=new go.PathFigure(.1*a,y,!0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var te=new go.PathFigure(.6*a,y,!0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ne=new go.PathFigure(0,.5*y,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ne.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ne.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),b}),go.Shape.defineFigureGenerator("Power",function(oe,a,y){var b=new go.Geometry,E=ie*.4,z=.4,te=.5,ne=.5,re=x(),ae=x(),le=x(),he=x();De(te,ne-z,te+E,ne-z,te+z,ne-E,te+z,ne,.5,re,re,ae,le,he);var ve=ee(ae.x,ae.y),Ce=new go.PathFigure(ae.x*a,ae.y*y,!0);b.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,le.x*a,le.y*y,he.x*a,he.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te+z)*a,(ne+E)*y,(te+E)*a,(ne+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,(te-E)*a,(ne+z)*y,(te-z)*a,(ne+E)*y)),De(te-z,ne,te-z,ne-E,te-E,ne-z,te,ne-z,.5,le,he,ae,re,re),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,le.x*a,le.y*y,he.x*a,he.y*y)),E=ie*.3,z=.3,De(te-z,ne,te-z,ne-E,te-E,ne-z,te,ne-z,.5,le,he,ae,re,re),Ce.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ne*y,he.x*a,he.y*y,le.x*a,le.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+z)*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ne*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),De(te,ne-z,te+E,ne-z,te+z,ne-E,te+z,ne,.5,re,re,ae,le,he),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,he.x*a,he.y*y,le.x*a,le.y*y).close());var Ce=new go.PathFigure(.45*a,0,!0);return b.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),de(re),de(ae),de(le),de(he),de(ve),b.spot1=new go.Spot(.25,.45),b.spot2=new go.Spot(.75,.8),b}),go.Shape.defineFigureGenerator("Fallout",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y/2,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function z(te,ne,re){te.add(new go.PathSegment(go.PathSegment.Move,(.3+ne)*a,(.8+re)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+ne)*a,(.5+re)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+ne)*a,(.5+re)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+ne)*a,(.8+re)*y).close())}return z(E,0,0),z(E,.4,0),z(E,.2,-.3),b}),go.Shape.defineFigureGenerator("IrritationHazard",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.2*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),b.spot1=new go.Spot(.3,.3),b.spot2=new go.Spot(.7,.7),b}),go.Shape.defineFigureGenerator("ElectricalHazard",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.37*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),E.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),E.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),E.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),E.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),b}),go.Shape.defineFigureGenerator("FireHazard",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.1*a,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),b.spot1=new go.Spot(.07,.445),b.spot2=new go.Spot(.884,.958),b}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(oe,a,y){var b=new go.Geometry,E=.5,z=0,te=0,ne=E*ie,re=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,le=1,he=.5,ve=.5,Ce=0,be=new go.PathFigure(re*a,(1-ae)*y,!1);return b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,le*a,he*y,le*a,.7*y,le*a,he*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+z)*a,(Ce+z)*y,(.5+E+z)*a,(.5-ne+z)*y,(.5+ne+z)*a,(.5-E+z)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+te)*y,(.5-ne+z)*a,(.5-E+te)*y,(.5-E+z)*a,(.5-ne+te)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*a,.9*y,(.5-E+z)*a,(.5+ne+te)*y,(.5-ne+z)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*a,.8*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*a,.95*y)),b}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Move,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),b}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),b}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);b.add(E);var z=new go.PathFigure(a,y,!1);b.add(z);var te=new go.PathFigure(0,.5*y,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),b}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),b}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.2*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var E=new go.PathFigure(0,.2*y,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.7*a,y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var z=new go.PathFigure(.45*a,.73*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),z.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),z.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),b}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);b.add(E);var z=new go.PathFigure(.335*a,(1-.555)*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),z.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var te=.5-.285,ne=.5,re=te,ae=Math.PI/4,le=4*(1-Math.cos(ae))/(3*Math.sin(ae)),he=le*.5,ve=te,Ce=te,be=le*ve,ye=le*Ce;z.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ve)*a,re*y,(ne-(be+ve)/2)*a,(re+(Ce+ye)/2)*y,(ne-ve)*a,(re+ye)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-Ce)*y,(ne-ve)*a,(re-ye)*y,(ne-be)*a,(re-Ce)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ve)*a,re*y,(ne+be)*a,(re-Ce)*y,(ne+ve)*a,(re-ye)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ne+ve)*a,(re+ye)*y,(ne+(be+ve)/2)*a,(re+(Ce+ye)/2)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Ae=new go.PathFigure(.2*a,y,!1);b.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ne=new go.PathFigure(.8*a,y,!1);return b.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),b}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.2*a,.2*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),b}),go.Shape.defineFigureGenerator("BpmnEventError",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),b}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);b.add(E);var z=new go.PathFigure(a,y,!1);b.add(z);var te=new go.PathFigure(.1*a,y,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),b}),go.Shape.defineFigureGenerator("Caution",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.05*a,y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var z=.05;return E.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*a,.875*y)),E.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,z*a,z*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),b}),go.Shape.defineFigureGenerator("Recycle",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.45*a,.95*y,!1);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),E.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),E.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var z=new go.PathFigure(.475*a,.2*y,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),z.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),z.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),z.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var te=new go.PathFigure(.675*a,.575*y,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),te.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),b}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*.5,te=new go.PathFigure(a,E*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+z)*y,(E+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-z)*a,y,0,(E+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-z)*y,(E-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+z)*a,0,a,(E-z)*y));var ne=new go.PathFigure(E*a,0,!1);return b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*a,.15*y)),ne.add(new go.PathSegment(go.PathSegment.Move,E*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,E*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*a,E*y)),ne.add(new go.PathSegment(go.PathSegment.Move,a,E*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.85*a,E*y)),ne.add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ne.add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),b}),go.Shape.defineFigureGenerator("Package",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.15*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,.15*y,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),b.spot1=new go.Spot(0,.1),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Class",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*y,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(0,.5*y,!1);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),b}),go.Shape.defineFigureGenerator("Component",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a,y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var z=new go.PathFigure(0,.2*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var te=new go.PathFigure(0,.6*y,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),b}),go.Shape.defineFigureGenerator("Boat Shipment",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.15*a,.6*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var z=new go.PathFigure(.15*a,.6*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b}),go.Shape.defineFigureGenerator("Customer/Supplier",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),E.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),E.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),b}),go.Shape.defineFigureGenerator("Workcell",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b}),go.Shape.defineFigureGenerator("Supermarket",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),b}),go.Shape.defineFigureGenerator("TruckShipment",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(a,.8*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var te=.1,ne=ie*.1,re=.2,ae=.9,le=new go.PathFigure((re-te)*a,ae*y,!0);b.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-te)*y,(re-te)*a,(ae-ne)*y,(re-ne)*a,(ae-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ae*y,(re+ne)*a,(ae-te)*y,(re+te)*a,(ae-ne)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae+te)*y,(re+te)*a,(ae+ne)*y,(re+ne)*a,(ae+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ae*y,(re-ne)*a,(ae+te)*y,(re-te)*a,(ae+ne)*y).close()),te=.1,ne=ie*.1,re=.8,ae=.9;var he=new go.PathFigure((re-te)*a,ae*y,!0);return b.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae-te)*y,(re-te)*a,(ae-ne)*y,(re-ne)*a,(ae-te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ae*y,(re+ne)*a,(ae-te)*y,(re+te)*a,(ae-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ae+te)*y,(re+te)*a,(ae+ne)*y,(re+ne)*a,(ae+te)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ae*y,(re-ne)*a,(ae+te)*y,(re-te)*a,(ae+ne)*y).close()),b}),go.Shape.defineFigureGenerator("KanbanPost",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.2*a,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b}),go.Shape.defineFigureGenerator("Forklift",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var te=new go.PathFigure(.5*a,.8*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ne=new go.PathFigure(.5*a,.7*y,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var re=.1,ae=ie*.1,le=.1,he=.9,ve=new go.PathFigure((le-re)*a,he*y,!0);b.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(he-re)*y,(le-re)*a,(he-ae)*y,(le-ae)*a,(he-re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,he*y,(le+ae)*a,(he-re)*y,(le+re)*a,(he-ae)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(he+re)*y,(le+re)*a,(he+ae)*y,(le+ae)*a,(he+re)*y)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,he*y,(le-ae)*a,(he+re)*y,(le-re)*a,(he+ae)*y)),re=.1,ae=ie*.1,le=.4,he=.9;var Ce=new go.PathFigure((le-re)*a,he*y,!0);return b.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(he-re)*y,(le-re)*a,(he-ae)*y,(le-ae)*a,(he-re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*a,he*y,(le+ae)*a,(he-re)*y,(le+re)*a,(he-ae)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(he+re)*y,(le+re)*a,(he+ae)*y,(le+ae)*a,(he+re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*a,he*y,(le-ae)*a,(he+re)*y,(le-re)*a,(he+ae)*y)),b}),go.Shape.defineFigureGenerator("RailShipment",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.1*a,.4*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var z=new go.PathFigure(.45*a,.7*y,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var te=new go.PathFigure(.55*a,.4*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var le=.05,he=ie*.05,ve=.175,Ce=.95,ne=new go.PathFigure((ve-le)*a,Ce*y,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce-le)*y,(ve-le)*a,(Ce-he)*y,(ve-he)*a,(Ce-le)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Ce*y,(ve+he)*a,(Ce-le)*y,(ve+le)*a,(Ce-he)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce+le)*y,(ve+le)*a,(Ce+he)*y,(ve+he)*a,(Ce+le)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Ce*y,(ve-he)*a,(Ce+le)*y,(ve-le)*a,(Ce+he)*y));var le=.05,he=ie*.05,ve=.375,Ce=.95,re=new go.PathFigure((ve-le)*a,Ce*y,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce-le)*y,(ve-le)*a,(Ce-he)*y,(ve-he)*a,(Ce-le)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Ce*y,(ve+he)*a,(Ce-le)*y,(ve+le)*a,(Ce-he)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce+le)*y,(ve+le)*a,(Ce+he)*y,(ve+he)*a,(Ce+le)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Ce*y,(ve-he)*a,(Ce+le)*y,(ve-le)*a,(Ce+he)*y));var le=.05,he=ie*.05,ve=.625,Ce=.95,ae=new go.PathFigure((ve-le)*a,Ce*y,!0);b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce-le)*y,(ve-le)*a,(Ce-he)*y,(ve-he)*a,(Ce-le)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Ce*y,(ve+he)*a,(Ce-le)*y,(ve+le)*a,(Ce-he)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce+le)*y,(ve+le)*a,(Ce+he)*y,(ve+he)*a,(Ce+le)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Ce*y,(ve-he)*a,(Ce+le)*y,(ve-le)*a,(Ce+he)*y));var le=.05,he=ie*.05,ve=.825,Ce=.95,be=new go.PathFigure((ve-le)*a,Ce*y,!0);b.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce-le)*y,(ve-le)*a,(Ce-he)*y,(ve-he)*a,(Ce-le)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*a,Ce*y,(ve+he)*a,(Ce-le)*y,(ve+le)*a,(Ce-he)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,ve*a,(Ce+le)*y,(ve+le)*a,(Ce+he)*y,(ve+he)*a,(Ce+le)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*a,Ce*y,(ve-he)*a,(Ce+le)*y,(ve-le)*a,(Ce+he)*y).close());var ye=new go.PathFigure(0,y,!1);return b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),b}),go.Shape.defineFigureGenerator("Warehouse",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*y,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(.15*a,y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ne=.05,re=ie*.05,ae=.35,le=.775,he=new go.PathFigure((ae-ne)*a,le*y,!0);return b.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(le-ne)*y,(ae-ne)*a,(le-re)*y,(ae-re)*a,(le-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ne)*a,le*y,(ae+re)*a,(le-ne)*y,(ae+ne)*a,(le-re)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(le+ne)*y,(ae+ne)*a,(le+re)*y,(ae+re)*a,(le+ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ne)*a,le*y,(ae-re)*a,(le+ne)*y,(ae-ne)*a,(le+re)*y).close()),b}),go.Shape.defineFigureGenerator("ControlCenter",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),b}),go.Shape.defineFigureGenerator("Bluetooth",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.75*y,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b}),go.Shape.defineFigureGenerator("Bookmark",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),b}),go.Shape.defineFigureGenerator("Bookmark",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),b}),go.Shape.defineFigureGenerator("Globe",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),b}),go.Shape.defineFigureGenerator("Wave",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.25*y,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),b}),go.Shape.defineFigureGenerator("Operator",function(oe,a,y){var b=new go.Geometry,E=.3,z=ie*.3,te=.5,ne=.7,re=new go.PathFigure((te-E)*a,ne*y,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-E)*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,ne*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+E)*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,ne*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y));var ae=new go.PathFigure(0,.7*y,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),b}),go.Shape.defineFigureGenerator("TripleFanBlades",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.5*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),b}),go.Shape.defineFigureGenerator("CentrifugalPump",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),b}),go.Shape.defineFigureGenerator("Battery",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var z=new go.PathFigure(0,.6*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b}),go.Shape.defineFigureGenerator("Delete",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*.5,te=.5,ne=.5,re=new go.PathFigure((te-E)*a,ne*y,!0);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-E)*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,ne*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+E)*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,ne*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y));var ae=new go.PathFigure(.15*a,.5*y,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),b}),go.Shape.defineFigureGenerator("Flag",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.1*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),b}),go.Shape.defineFigureGenerator("Help",function(oe,a,y){var b=new go.Geometry,E=.5,z=ie*.5,te=.5,ne=.5,re=new go.PathFigure((te-E)*a,ne*y,!1);b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-E)*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,ne*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+E)*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,ne*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y).close()),E=.05,z=ie*.05,te=.5,ne=.8;var ae=new go.PathFigure((te-E)*a,ne*y,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne-E)*y,(te-E)*a,(ne-z)*y,(te-z)*a,(ne-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+E)*a,ne*y,(te+z)*a,(ne-E)*y,(te+E)*a,(ne-z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ne+E)*y,(te+E)*a,(ne+z)*y,(te+z)*a,(ne+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-E)*a,ne*y,(te-z)*a,(ne+E)*y,(te-E)*a,(ne+z)*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),b}),go.Shape.defineFigureGenerator("Location",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.2*a,.5*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),b}),go.Shape.defineFigureGenerator("Unlocked",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.2*a,.5*y,!1);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),b}),go.Shape.defineFigureGenerator("Gear",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),E.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),b}),go.Shape.defineFigureGenerator("Map",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,.2*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b}),go.Shape.defineFigureGenerator("Eject",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),E.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var z=new go.PathFigure(0,y*.6,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),b}),go.Shape.defineFigureGenerator("Pencil",function(oe,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*1,y*1,!1);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),E.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),E.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),E.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),E.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),E.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),E.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var z=new go.PathFigure(.126*a,.85*y,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var te=new go.PathFigure(.402*a,.85*y,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ne=new go.PathFigure(.678*a,.85*y,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var re=new go.PathFigure(.5*a,.1*y,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),b}),go.Shape.defineFigureGenerator("Staircase",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y*1,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),b}),go.Shape.defineFigureGenerator("5Bars",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,y*1,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var z=new go.PathFigure(a*.204,y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var te=new go.PathFigure(a*.408,y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ne=new go.PathFigure(a*.612,y,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var re=new go.PathFigure(a*.816,y,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),re.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),b}),go.Shape.defineFigureGenerator("PC",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var z=new go.PathFigure(a*.055,.07*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var te=new go.PathFigure(a*.055,.13*y,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ne=new go.PathFigure(a*.055,.18*y,!0);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var re=new go.PathFigure(a*1,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),re.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),re.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),b}),go.Shape.defineFigureGenerator("Plane",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(.55*a,y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),b}),go.Shape.defineFigureGenerator("Key",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*1,y*.5,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),E.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),E.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),E.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),b}),go.Shape.defineFigureGenerator("FilmTape",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(0,0,!1);b.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),E.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(0,0,!1);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var te=new go.PathFigure(a*.11,y*.1,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var re=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),b}),go.Shape.defineFigureGenerator("FloppyDisk",function(oe,a,y){var b=new go.Geometry,E=8,z=E*ie,te=new go.PathFigure(E,0,!1);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-z,a-z,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,z,y,0,y-z)),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,z,z,0).close());var ne=new go.PathFigure(a*.83,0,!1);b.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var re=new go.PathFigure(a*.83,y*1,!1);b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ae=new go.PathFigure(a*.78,y*.05,!1);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),b}),go.Shape.defineFigureGenerator("SpeechBubble",function(oe,a,y){var b=oe?oe.parameter1:NaN;(isNaN(b)||b<0)&&(b=15),b=Math.min(b,a/3),b=Math.min(b,y/3);var E=b*ie,z=y*.8,te=new go.Geometry,ne=new go.PathFigure(b,0,!0);return te.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a-b,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,b,a-E,0,a,E)),ne.add(new go.PathSegment(go.PathSegment.Line,a,z-b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a-b,z,a,z-E,a-E,z)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.7,z)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.55,z)),ne.add(new go.PathSegment(go.PathSegment.Line,b,z)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z-b,E,z,0,z-E)),ne.add(new go.PathSegment(go.PathSegment.Line,0,b)),ne.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close()),E>1?(te.spot1=new go.Spot(0,0,E,E),te.spot2=new go.Spot(1,.8,-E,-E)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*0,y*.45,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),E.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var z=new go.PathFigure(a*1,y*.55,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),z.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),z.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),b}),go.Shape.defineFigureGenerator("Windows",function(oe,a,y){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,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*0,y*.1,!1);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var z=new go.PathFigure(a*.1,y*.2,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),z.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var te=new go.PathFigure(a*.28,y*.37,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),te.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),b}),go.Shape.defineFigureGenerator("Beaker",function(oe,a,y){var b=new go.Geometry,E=15,z=E*ie,te=new go.PathFigure(a*.62,y*.475,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-z,a-z,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,z,y,0,y-z)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),te.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),z>1?(b.spot1=new go.Spot(0,0,z,z),b.spot2=new go.Spot(1,1,-z,-z)):(b.spot1=go.Spot.TopLeft,b.spot2=go.Spot.BottomRight),b}),go.Shape.defineFigureGenerator("Download",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*0,y*1,!0);b.add(E);var z=.1/.3;E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-z)).close());var te=new go.PathFigure(a*.4,y*0,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),te.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),b}),go.Shape.defineFigureGenerator("Bin",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*0,y*1,!0);b.add(E);var z=.1/.3;return E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-z)).close()),b}),go.Shape.defineFigureGenerator("Upload",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*0,y*1,!0);b.add(E);var z=.1/.3;E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-z)).close());var te=new go.PathFigure(a*.5,y*0,!0);return b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),b}),go.Shape.defineFigureGenerator("EmptyDrink",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*.15,y*0,!1);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),b}),go.Shape.defineFigureGenerator("Drink",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*.15,y*0,!1);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var z=new go.PathFigure(a*.235,y*.28,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),z.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),z.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),b}),go.Shape.defineFigureGenerator("4Arrows",function(oe,a,y){var b=new go.Geometry,E=new go.PathFigure(a*.5,y*0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),E.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),E.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),E.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),b}),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 ft={},st="5.0",ee={},x=null,de=!1,pe=!1,De=null,we=!1,ke=null,ie=null,We=0;We4?parseFloat(rt):5};ft.setHTML5Codebase=function(rt,yt){ie=rt,mt(rt,yt)},ft.setJavaCodebase=ft.setJavaCodebaseVersion=ft.isCompiledInstalled=ft.setPreCompiledScriptPath=ft.setPreCompiledResourcePath=function(){},ft.setHTML5CodebaseVersion=function(rt,yt){var Lt=parseFloat(rt);if(Lt!==NaN&&Lt<5){console.log("The GeoGebra HTML5 codebase version "+Lt+" is deprecated. Using version latest instead.");return}ke=rt,lt(rt,yt)},ft.getHTML5CodebaseVersion=function(){return oe},ft.getParameters=function(){return ee},ft.setFontsCSSURL=function(rt){te=rt},ft.setGiacJSURL=function(rt){},ft.setJNLPFile=function(rt){Te=rt},ft.setJNLPBaseDir=function(rt){},ft.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var yt="auto",Lt=ee.id,ct,Ft=!1,jt=0;jt=5)return!0;var rt=ft.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},ft.startAnimation=function(){var rt=ft.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},ft.stopAnimation=function(){var rt=ft.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},ft.getAppletObject=function(){var rt=ee.id!==void 0?ee.id:"ggbApplet";return window[rt]},ft.resize=function(){};var be=function(rt,yt,Lt){var ct=document.createElement("param");ct.setAttribute("name",yt),ct.setAttribute("value",Lt),rt.appendChild(ct)},ye=function(rt){return rt&&rt!=="false"},Ae=function(rt,yt,Lt){re(oe)<=4.2&&(Lt=!0);var ct=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==oe||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ct=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ft=document.createElement("div");Ft.classList.add("appletParameters","notranslate");var jt=yt.width,_e=yt.height;if(yt.disableAutoScale=yt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():yt.disableAutoScale,yt.width!==void 0)if(re(oe)<=4.4)ye(yt.showToolBar)&&(yt.height-=7),ye(yt.showAlgebraInput)&&(yt.height-=37),yt.width<605&&ye(yt.showToolBar)&&(yt.width=605,jt=605);else{var Sn=100;(ye(yt.showToolBar)||ye(yt.showMenuBar))&&(yt.hasOwnProperty("customToolBar")&&(yt.customToolbar=yt.customToolBar),Sn=ye(yt.showMenuBar)?245:155),jt=5?(yt.appletOnLoad=function(Xt){var $e=rt.querySelector(".ggb_preview");$e&&$e.parentNode.removeChild($e),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Mn),window.GGBT_wsf_view&&$(window).trigger("resize"),ha(Xt)},at||Mn.appendChild(ut)):Ft.appendChild(ut),Mn.appendChild(Ft),at||rt.appendChild(Mn),setTimeout(function(){ft.resize()},1)}else{var dt=document.createElement("div");dt.className="applet_scaler",dt.style.position="relative",dt.style.display="block",dt.appendChild(Ft),rt.appendChild(dt),yt.appletOnLoad=function(Xt){ft.resize(),ha(Xt)}}function At(Xt,$e){$e&&typeof $e.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Xt,$e.appletOnLoad):renderGGBElement(Xt),Vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$e)}function Et(Xt,$e){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Xt,params:$e}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Re){At(Re.article,Re.params)}),html5AppletsToProcess=null)},re(oe)<5&&(Xt.className+=" geogebraweb")):At(Xt,$e)}if(ct){scriptLoadStarted=!0;for(var gt=0;gt0?(wn.remove(),Mn.attr("id","fullscreencontent").show(),jQuery(ha).append(Mn),window.dispatchEvent(new Event("resize"))):Ae(wn,yt,!1),window.GGBT_wsf_view.launchFullScreen(ha)}else me=ct,Ae(rt,yt,!1);if(!window.GGBT_wsf_view)for(_e=0;_ert/4*3&&(wn=rt/4*3),ha=wn/5.8,Sn.setAttribute("src",E),Sn.setAttribute("width",wn),Sn.setAttribute("height",ha);var Mn=(rt-wn)/2,at=(yt-ha)/2;Sn.style.left=Mn+"px",Sn.style.top=at+"px",Ft.appendChild(Sn)}}return Ft.appendChild(_e),Ft},Ke=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],lt=function(rt,yt){if(oe=rt,yt){mt(oe,!0);return}var Lt=!de;if(Lt){var ct=re(oe);!isNaN(ct)&&ct<4.4&&(Lt=!1)}var Ft,jt;window.location.protocol.substr(0,4)==="http"?Ft=window.location.protocol:Ft="http:";var _e=oe.indexOf("//");_e>0?jt=oe:_e===0?jt=Ft+oe:jt="https://www.geogebra.org/apps/5.2.814.0/";for(var Sn in qe)if(oe.slice(qe[Sn].length*-1)===qe[Sn]||oe.slice((qe[Sn].length+1)*-1)===qe[Sn]+"/"){mt(jt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Lt&&!x.is3D&&!x.AV&&!x.SV&&!x.CV&&!x.EV2&&!x.CP&&!x.PC&&!x.DA&&!x.FI&&!x.PV&&!ye(ee.showToolBar)&&!ye(ee.showMenuBar)&&!ye(ee.showAlgebraInput)&&!ye(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?jt+="webSimple/":jt+="web3d/",mt(jt,!1)},mt=function(rt,yt){if(rt.requirejs){ze=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),ze=rt,yt===null&&(yt=rt.indexOf("http")===-1),Be=yt,a="web.nocache.js",y=!1;var Lt=ze.split("/");Lt.length>1&&(!yt&&Lt[Lt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):qe.indexOf(Lt[Lt.length-2])>=0&&(a=Lt[Lt.length-2]+".nocache.js")),Lt=rt.split("/"),oe=Lt[Lt.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 ct=parseFloat(oe);ct!==NaN&&ct<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead."),lt("5.0",yt))},Vt=function(rt,yt){window.console&&window.console.log&&(!yt||typeof yt.showLogging=="undefined"||yt.showLogging&&yt.showLogging!=="false")&&console.log(rt)};ee.material_id!==void 0?he(cn):cn();function cn(){var rt=st;ke!==null?rt=ke:parseFloat(rt)<5&&(rt="5.0"),lt(rt,!1),ie!==null&&mt(ie,Be),we=!0}return ft},GGBAppletUtils=function(){"use strict";function ft(){return window.GGBT_wsf_edit!==void 0}function st(we,ke){ke!=1?(we.style.transformOrigin="0% 0% 0px",we.style.webkitTransformOrigin="0% 0% 0px",we.style.transform="scale("+ke+","+ke+")",we.style.webkitTransform="scale("+ke+","+ke+")",we.style.maxWidth="initial",we.querySelector(".ggb_preview")!==null&&(we.querySelector(".ggb_preview").style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[0]!==void 0&&(we.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),we.querySelectorAll(".ggb_preview img")[1]!==void 0&&(we.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(we.style.transform="none",we.style.webkitTransform="none")}function ee(we,ke,ie,We,Me,Te){var ze=null;if(Te!=null&&Te!="")for(var Be=we.parentNode;Be!=null;)if((" "+Be.className+" ").indexOf(" "+Te+" ")>-1){ze=Be;break}else Be=Be.parentNode;var me=0,oe=0,a=0,y=0,b=0,E=0,z=0;if(ze)me=ze.offsetWidth,oe=Math.max(We?ze.offsetWidth:0,ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(me=Math.min(window.innerWidth,document.documentElement.clientWidth),oe=Math.min(window.innerHeight,document.documentElement.clientHeight),a=me):(me=window.innerWidth,oe=window.innerHeight,a=window.innerWidth),we){var te=we.getBoundingClientRect();te.left>0&&te.left<=me&&(Me===void 0||!Me)&&(document.dir==="rtl"?(b=me-te.width-te.left,E=a<=480?10:30):(E=te.left,b=a<=480?10:30),y=E+b)}if(we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ne=we.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,z=40)}}return we&&((ie===void 0||!ie)&&ke>0&&ke+y1&&(Te=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(we.hasOwnProperty("disableAutoScale")&&we.disableAutoScale))Me=x(we,ke,Te,ie,we.scaleContainerClass);else return We;return Te&&(!we.hasOwnProperty("scale")||We===1)?Me:Math.min(We,Me)}function pe(we){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),We=we.getBoundingClientRect(),Me=(ke-We.width)/2,Te=(ie-We.height)/2;Te<0&&(Te=0),we.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?we.style.left="40px":we.style.left=Me+"px",we.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?we.style.top="40px":we.style.top=Te+"px",we.style.left=Me+"px")}function De(we,ke){var ie=we.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(we)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var We=de(ke,we);ft()&&ie.setAttribute("data-param-scale",We);for(var Me=null,Te=0;Te=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(ft){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ft){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ft){var st=c[ft];return st==null?null:st},r=d,webModule.__errFn=e}function B(){function ft(we){var ke=we.lastIndexOf(rb);ke==-1&&(ke=we.length);var ie=we.indexOf(sb);ie==-1&&(ie=we.length);var We=we.lastIndexOf(tb,Math.min(ie,ke));return We>=O?we.substring(O,We+P):W}function st(we){if(!we.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=we+vb,we=ft(ke.src)}return we}function ee(){var we=__gwt_getMetaProperty(wb);return we!=null?we:W}function x(){for(var we=o.getElementsByTagName(_),ke=O;keO?we[we.length-P].href:W}function pe(){var we=o.location;return we.href==we.protocol+zb+we.host+we.pathname+we.search+we.hash}var De=ee();return De==W&&(De=x()),De==W&&(De=de()),De==W&&pe()&&(De=ft(o.location.href)),De=st(De),De}function C(ft){return ft.match(/^\//)||ft.match(/^[a-zA-Z]+:\/\//)?ft:webModule.__moduleBase+ft}function D(){var ft=[],st=O,ee=[],x=[];function de(we){var ke=x[we](),ie=ee[we];if(ke in ie)return ke;var We=[];for(var Me in ie)We[ie[Me]]=Me;throw r&&r(we,We,ke),null}if(__gwt_isKnownPropertyValue=function(we,ke){return ke in ee[we]},webModule.__getPropMap=function(){var we={};for(var ke in ee)ee.hasOwnProperty(ke)&&(we[ke]=de(ke));return we},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var pe;try{pe=Cb;var De=pe.indexOf(Db);De!=-1&&(st=parseInt(pe.substring(De+P),$),pe=pe.substring(O,De))}catch(we){}return webModule.__softPermutationId=st,C(pe+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(ft,st,ee){"use strict";ee.d(st,{Ax:function(){return De},Ds:function(){return we},KI:function(){return ie},SI:function(){return pe},f1:function(){return de}});var x=ee(11320);function de(We){let Me=!0;if(We.length>0){for(let Te=0;Tenew Promise((ae,le)=>{var he=be=>{try{Ce(re.next(be))}catch(ye){le(ye)}},ve=be=>{try{Ce(re.throw(be))}catch(ye){le(ye)}},Ce=be=>be.done?ae(be.value):Promise.resolve(be.value).then(he,ve);Ce((re=re.apply(te,ne)).next())});const E=({dispatch:te,courseEndTime:ne,classroomList:re,successCallback:ae=()=>{},visible:le,homeworkIds:he,courseId:ve,isBatch:Ce,shixunHomeworks:be})=>{const[ye]=de.default.useForm(),[Ae,Ne]=(0,x.useState)(!1),[Qe,Le]=(0,x.useState)(!1),[Ge,He]=(0,x.useState)(!1),[Ke,qe]=(0,x.useState)([]),[lt,mt]=(0,x.useState)([]),[Vt,cn]=(0,x.useState)([]),[rt,yt]=(0,x.useState)([]),[Lt,ct]=(0,x.useState)([]),[Ft,jt]=(0,x.useState)([]),[_e,Sn]=(0,x.useState)([]),[wn,ha]=(0,x.useState)([]),[Mn,at]=(0,x.useState)([]);(0,x.useEffect)(()=>{le?ut():At()},[le]);const ut=()=>b(void 0,null,function*(){Ne(!0);const Et=yield(0,a.oR)(he[0],{course_id:ve});He(Et.no_group),Ce?(Sn(Et.all_course_groups),ha(Et.all_course_groups)):(yt(Et.late_course_groups),ct(Et.late_course_groups),qe(Et.submit_course_groups),mt(Et.submit_course_groups)),Ne(!1),ye.setFieldsValue({end_time:ze()()})}),dt=()=>b(void 0,null,function*(){const Et=ye.getFieldsValue(),gt=ze()(Et.end_time).format("YYYY-MM-DD HH:mm");if((Ce?Mn.length===0:Vt.length===0&&Ft.length===0)&&!Ge){pe.ZP.warning("\u8BF7\u9009\u62E9\u9700\u8981\u64CD\u4F5C\u7684\u73ED\u7EA7");return}Le(!0);const Ot=yield(0,a.Mc)(ve,{no_group:Ge,homework_ids:he,group_ids:Ce?Mn:Vt,end_time:gt,late_group_ids:Ce?Mn:Ft});Le(!1),Ot.status===0&&(At(),pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),ae(),te({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}))}),At=()=>{cn([]),jt([]),mt([]),ct([])};return x.createElement(De.default,{centered:!0,title:"\u7ACB\u5373\u622A\u6B62",className:oe.modalWrapper,width:Ce||Ge?520:760,open:le,confirmLoading:Qe,destroyOnClose:!0,okText:"\u622A\u6B62",cancelText:"\u53D6\u6D88",onOk:()=>dt(),onCancel:()=>{At(),te({type:"classroomList/setActionTabs",payload:{}})}},x.createElement("div",{className:oe.tips},x.createElement("div",null,"1\u3001\u622A\u6B62\u540E\u5B66\u751F\u4E0D\u80FD\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"),x.createElement("div",null,"2\u3001\u672C\u64CD\u4F5C\u53EA\u5BF9\u201C\u63D0\u4EA4\u4E2D\u201D\u3001\u201C\u8865\u4EA4\u4E2D\u201D\u7684\u4F5C\u4E1A\u6709\u6548\u3002")),x.createElement(de.default,{form:ye,layout:"vertical"},x.createElement(de.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},x.createElement(we.default,{style:{width:"100%"},disabledDate:Et=>(0,y.Q8)(Et,ne),disabledTime:Et=>(0,y.d0)(Et),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ze()((0,Be.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),!Ge&&x.createElement(x.Fragment,null,Ce?x.createElement("div",null,x.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Et=>{ha(_e.filter(gt=>gt.name.indexOf(Et.target.value)>-1))}}),x.createElement(ie.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:oe.antdTable,rowSelection:{type:"checkbox",onChange:Et=>{at(Et)}},rowKey:"id",pagination:!1,dataSource:wn,loading:Ae,columns:[{title:"\u73ED\u7EA7",dataIndex:"name"}]})):x.createElement(We.Z,{gutter:24},x.createElement(Me.Z,{span:14},x.createElement("div",{className:oe.homeworkType},"\u4F5C\u4E1A\u622A\u6B62"),x.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Et=>{mt(Ke.filter(gt=>gt.name.indexOf(Et.target.value)>-1))}}),x.createElement("div",{className:oe.tableWrapper},x.createElement(ie.default,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:oe.antdTable,rowSelection:{type:"checkbox",onChange:Et=>{cn(Et)}},rowKey:"id",pagination:!1,dataSource:lt,loading:Ae,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publish_time"},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"end_time"}]}))),x.createElement(Me.Z,{flex:10,style:{maxWidth:"280px"}},x.createElement("div",{className:oe.homeworkType},"\u8865\u4EA4\u622A\u6B62"),x.createElement(ke.default,{placeholder:"\u641C\u7D22\u73ED\u7EA7",onChange:Et=>{ct(rt.filter(gt=>gt.name.indexOf(Et.target.value)>-1))}}),x.createElement("div",{className:oe.tableWrapper},x.createElement(ie.default,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:oe.antdTable,rowSelection:{type:"checkbox",onChange:Et=>{jt(Et)}},rowKey:"id",pagination:!1,loading:Ae,dataSource:Lt,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",ellipsis:!0,width:120},{title:"\u622A\u6B62\u65F6\u95F4",dataIndex:"late_time"}]}))))))};var z=(0,me.connect)(({shixunHomeworks:te,classroomList:ne})=>({shixunHomeworks:te,classroomList:ne}))(E)},63205:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ze}});var x=ee(67294),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},pe=ee(94184),De=ee.n(pe),we=ee(57953),ke=ee(15979),ie=ee(33170),We=ee(28706),Me=(Be,me,oe)=>new Promise((a,y)=>{var b=te=>{try{z(oe.next(te))}catch(ne){y(ne)}},E=te=>{try{z(oe.throw(te))}catch(ne){y(ne)}},z=te=>te.done?a(te.value):Promise.resolve(te.value).then(b,E);z((oe=oe.apply(Be,me)).next())}),ze=({data:Be,className:me,fullWidth:oe,style:a={},onClose:y,onOk:b,showFullTools:E,noAssociationId:z})=>{const te=(0,x.useRef)(null),ne=(0,x.useRef)(null),re=(0,x.useRef)(null),ae=(0,x.useRef)(null),[le,he]=(0,x.useState)(!1),[ve,Ce]=(0,x.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,x.useEffect)(()=>{re.current||(re.current=document.createElement("style"),document.head.appendChild(re.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),re.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&be()):(document.body.removeAttribute("data-custom"),re.current&&(document.head.removeChild(re.current),re.current=null))},[Be==null?void 0:Be.visible]);const be=()=>Me(void 0,null,function*(){he(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,We.ZJ)(Be==null?void 0:Be.src);te.current.src="",te.current.src=Le,te.current.onload=function(){Qe()},he(!1),Ce("")}),ye=()=>{document.body.removeAttribute("data-custom"),re.current.innerHTML=" ",y()},Ae=Le=>Me(void 0,null,function*(){he(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ge=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:Le.dataUrl}});Ge!=null&&Ge.id&&!z?(yield(0,ie.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ge==null?void 0:Ge.id,settings:JSON.stringify(Le.state)}})).status===0&&b():Ge!=null&&Ge.id&&b(Ge),document.body.removeAttribute("data-custom"),re.current.innerHTML=" ",he(!1),Ce("")}),Ne=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(He=>{const Ke=document.querySelector(He.name);Ke&&Ke.setAttribute("title",He.title)})},Qe=()=>{ne.current=new ke.hP(te.current),ne.current.targetRoot=ae.current,ne.current.addEventListener("render",Ae),ne.current.addEventListener("beforeclose",ye),E&&(ne.current.availableMarkerTypes=ne.current.ALL_MARKER_TYPES,ne.current.uiStyleSettings.redoButtonVisible=!0,ne.current.uiStyleSettings.notesButtonVisible=!0,ne.current.uiStyleSettings.zoomButtonVisible=!0,ne.current.uiStyleSettings.zoomOutButtonVisible=!0,ne.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ne.current.uiStyleSettings,ne.current.show(),Be!=null&&Be.snapshotData&&ne.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ne()},300)};return x.createElement(x.Fragment,null,(Be==null?void 0:Be.visible)&&x.createElement(we.Z,{spinning:le,tip:ve,style:{position:"absolute"}},x.createElement("div",{ref:ae,className:De()(de.imageDimensions,me,oe?de.fullWidth:""),style:a},x.createElement("img",{className:de.img,ref:te}))))}},36527:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(71230),pe=ee(15746),De=ee(66368),we=ee(71577),ke=ee(85725),ie=ee(71736),We=ee(84279),Me=ee(67294);const Te=(0,x.forwardRef)(({callback:ze,showSaveButton:Be,value:me=""},oe)=>{const a=(0,x.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],b=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\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:"\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:"\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:"\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:"\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:"\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}`}]}]}],E=ne=>{a.current.setValue(a.current.getValue()+" "+ne.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(de.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((ne,re)=>Me.createElement(pe.Z,{flex:"110px",className:ie.Z.item},Me.createElement("div",null,Me.createElement(ke.Z,{value:`$$${ne.value}$$`}),ne.name),Me.createElement("div",{className:ie.Z.children},ne.children.map((ae,le)=>Me.createElement("div",{key:le},Me.createElement("h1",null,ae.name),Me.createElement(de.Z,{gutter:[10,10]},ae.data.map((he,ve)=>Me.createElement(pe.Z,{key:ve,onClick:()=>E(he),className:ie.Z.diamond},Me.createElement(ke.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(de.Z,{className:ie.Z.lists,gutter:[10,10]},b.map((ne,re)=>Me.createElement(pe.Z,{flex:"110px",className:ie.Z.item},Me.createElement("div",null,Me.createElement(ke.Z,{value:"`$$"+ne.value+"$$`"}),ne.name),Me.createElement("div",{className:ie.Z.children},ne.children.map((ae,le)=>Me.createElement("div",{key:le},ae.name&&Me.createElement("h1",null,ae.name),Me.createElement(de.Z,{gutter:[10,10]},ae.data.map((he,ve)=>Me.createElement(pe.Z,{key:ve,onClick:()=>E(he),className:ie.Z.diamond},Me.createElement(ke.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],te=()=>{var ne=document.createElement("div");ne.innerHTML=a.current.getValue();var re=ne.innerText;return ze&&ze(re),re};return(0,x.useImperativeHandle)(oe,()=>({getData:te})),Me.createElement("div",{className:ie.Z.mathWrap},Me.createElement(De.default,{defaultActiveKey:"1",items:z}),Me.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},me||""),Be&&Me.createElement("div",{className:ie.Z.button},Me.createElement(we.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});st.Z=Te},39717:function(ft,st,ee){"use strict";ee.d(st,{Q:function(){return ke}});var x=ee(67294),de=ee(11713),pe=ee(78045),De=ee(31795),we=ee(67294),ke=(We=>(We[We.Number=1]="Number",We[We.Percent=2]="Percent",We))(ke||{});const ie=({value:We,onChange:Me,disabled:Te,hidePercentOption:ze=!1,percentType:Be="select"})=>{const me=(0,x.useMemo)(()=>ze?1:2,[ze]),[oe,a]=(0,x.useState)(me);console.log(oe);const y=E=>We.type===1?`${E}\u5206`:`${E}%`,b=(0,x.useCallback)(E=>{if(oe===1){const z=E.replace("\u5206","");return isNaN(parseInt(z,10))?0:z}else return E.replace("%","")},[oe]);return(0,x.useEffect)(()=>{a(We.type)},[We]),we.createElement("div",{style:{display:"flex",alignItems:"center"}},Be=="select"&&we.createElement(de.default,{size:"large",onChange:E=>{a(E),Me({type:E,inputValue:E===1?5:20})},value:oe||me,style:{width:100},options:ze?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Te}),Be=="radio"&&we.createElement(pe.ZP.Group,{size:"large",onChange:E=>{const z=E.target.value;a(z),Me({type:z,inputValue:z===1?5:20})},value:oe||me,disabled:Te},!ze&&we.createElement(pe.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),we.createElement(pe.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Be=="radio"&&we.createElement("div",{style:{marginRight:"10px",color:"#000000"}},We.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),we.createElement(De.Z,{size:"large",disabled:Te,value:We.inputValue,style:{width:"120px"},parser:b,addonAfter:We.type===1?"\u5206":"%",max:oe===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:E=>{Me({type:oe,inputValue:E})}}),Be=="radio"&&We.type==2&&we.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};st.Z=ie},96332:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return We}});var x=ee(67294),de={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"},pe=ee(14446),De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ke=(Me,Te,ze)=>new Promise((Be,me)=>{var oe=b=>{try{y(ze.next(b))}catch(E){me(E)}},a=b=>{try{y(ze.throw(b))}catch(E){me(E)}},y=b=>b.done?Be(b.value):Promise.resolve(b.value).then(oe,a);y((ze=ze.apply(Me,Te)).next())}),We=({type:Me,resdata:Te,onok:ze,oktext:Be,okloading:me})=>{const[oe,a]=(0,x.useState)(!1),{can_copy_list:y,can_copy_num:b,challenge_type:E,course_data_list:z,no_copy_list:te,no_copy_num:ne,no_use_list:re,no_use_num:ae,repeat_shixun_num:le,student_count:he,total_num:ve,use_num:Ce}=Te;let be=b>0||Me==="exercise";(0,x.useEffect)(()=>{(Te==null?void 0:Te.student_count)>0&&a(!0)},[Te]),console.log("---11",me),(0,x.useEffect)(()=>{me||a(!1)},[me]);const ye=()=>{if(Me==="exercise"&&E===1)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",x.createElement("span",{className:de.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",x.createElement("span",{className:de.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(Me==="exercise"&&E===2)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",x.createElement("span",{className:de.orangeColor},Ce),"\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",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="shixun"&&E===1)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="shixun"&&E===2)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.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",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="subject"&&E===1)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",x.createElement("span",{className:de.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="subject"&&E===2)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",x.createElement("span",{className:de.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",x.createElement("span",{className:de.orangeColor},Ce)," \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",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="exercisepush")return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",x.createElement("span",{className:de.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",x.createElement("span",{className:de.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(Me==="shixunpush"&&E===1)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",x.createElement("span",{className:de.orangeColor},Ce),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Me==="shixunpush"&&E===2)return x.createElement(x.Fragment,null,"\u8BFE\u5802\u5185\u6709",x.createElement("span",{className:de.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",x.createElement("span",{className:de.orangeColor},Ce),"\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",x.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ae=()=>{if(Me==="exercise"||Me==="subject"||Me==="exercisepush"||Me==="shixunpush")return x.createElement("div",{style:{marginTop:20}},ne>0&&x.createElement("div",null,x.createElement("span",{className:de.flex},x.createElement("img",{src:we,style:{width:14}}),x.createElement("span",{className:de.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),x.createElement("div",{className:de.statusbody},Me==="exercise"&&x.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",x.createElement("span",{className:de.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"),(Me==="subject"||Me==="exercisepush")&&x.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",be&&x.createElement("span",{className:de.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"),Me==="shixunpush"&&x.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",be&&x.createElement("span",{className:de.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"),x.createElement("div",null,te==null?void 0:te.map((Ne,Qe)=>x.createElement("a",{href:`/shixuns/${Ne.identifier}/challenges`,target:"_blank"},"\u300A",Ne==null?void 0:Ne.name,"\u300B",Qe+1!==ne&&"\u3001"))))),b>0&&x.createElement("div",{style:{marginTop:20}},x.createElement("span",{className:de.flex},x.createElement("img",{src:De,style:{width:14}}),x.createElement("span",{className:de.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),x.createElement("div",{className:de.statusbody},Me==="exercise"&&x.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"),(Me==="subject"||Me==="exercisepush")&&x.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"),Me==="shixunpush"&&x.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"),x.createElement("div",null,y==null?void 0:y.map((Ne,Qe)=>x.createElement("a",{href:`/shixuns/${Ne.identifier}/challenges`,target:"_blank"},"\u300A",Ne==null?void 0:Ne.name,"\u300B",Qe+1!==b&&"\u3001"))))));if(Me==="shixun")return x.createElement("div",{style:{marginTop:20}},b>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 x.createElement(pe.default,{open:oe,onCancel:()=>{a(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!be&&"none"}},zIndex:1003,confirmLoading:me,okText:be?Be:"\u6211\u77E5\u9053\u4E86",onOk:()=>ke(void 0,null,function*(){be?yield ze([...y,...re]):a(!1)})},x.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ye(),Ae()))}},57444:function(ft,st,ee){"use strict";ee.d(st,{h:function(){return ne}});var x=ee(67294),de=ee(11713),pe=ee(22150),De=ee(71577),we=ee(4631),ke=ee.n(we),ie=ee(71749),We=ee(30483),Me=Object.defineProperty,Te=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,a=(re,ae,le)=>ae in re?Me(re,ae,{enumerable:!0,configurable:!0,writable:!0,value:le}):re[ae]=le,y=(re,ae)=>{for(var le in ae||(ae={}))me.call(ae,le)&&a(re,le,ae[le]);if(Be)for(var le of Be(ae))oe.call(ae,le)&&a(re,le,ae[le]);return re},b=(re,ae)=>Te(re,ze(ae));const E=de.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};st.Z=({callback:re,onCancel:ae})=>{const[le,he]=(0,x.useState)("python");function ve(be){he(te[be][1])}function Ce(be){re(be)}return x.createElement(pe.default,b(y({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ce,style:{width:500}}),x.createElement(pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(de.default,{getPopupContainer:be=>be.parentNode,onChange:ve},Object.keys(te).map(be=>x.createElement(E,{key:be,value:be},te[be][0])))),x.createElement(pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.createElement(ne,{mode:le})),x.createElement("div",{className:"flex-container flex-end"},x.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(De.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ne({value:re,onChange:ae,mode:le,options:he={}}){const ve=(0,x.useRef)(),[Ce,be]=(0,x.useState)();return(0,x.useEffect)(()=>{if(Ce){let ye=function(Ae){const Ne=Ae.getValue();ae&&ae(Ne)};return Ce.on("change",ye),()=>{Ce.off("change",ye)}}},[Ce,ae]),(0,x.useEffect)(()=>{Ce&&Ce.setOption("mode",le)},[Ce,le]),(0,x.useEffect)(()=>{Ce&&(re!==Ce.getValue()||re==="")&&setTimeout(()=>{Ce.setValue(re||"")},300)},[Ce,re]),(0,x.useEffect)(()=>{if(ve.current&&!Ce){const ye=ke().fromTextArea(ve.current,y({mode:le,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},he));be(ye)}},[ve.current,Ce]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:ve}))}},35567:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return Na}});var x=ee(67294),de=ee(4631),pe=ee.n(de),De=ee(91033),we=ee(71749),ke=ee(57341),ie=ee(82801),We=ee(88386),Me=ee(49047),Te=ee(80785),ze=ee(85725),Be=({value:Xe="",className:Bt,showTextOnly:xt,showLines:Tn,style:pn={}})=>{const _n=(0,x.useMemo)(()=>"",[Xe]);return x.createElement(x.Fragment,null,x.createElement("div",{dangerouslySetInnerHTML:{__html:_n}}))},me=ee(67294),oe=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Xe,Bt,xt)=>Bt in Xe?oe(Xe,Bt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Xe[Bt]=xt,ne=(Xe,Bt)=>{for(var xt in Bt||(Bt={}))E.call(Bt,xt)&&te(Xe,xt,Bt[xt]);if(b)for(var xt of b(Bt))z.call(Bt,xt)&&te(Xe,xt,Bt[xt]);return Xe},re=(Xe,Bt)=>a(Xe,y(Bt));let ae=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function le({onActionCallback:Xe,title:Bt,icon:xt,actionName:Tn,className:pn="",children:_n}){function Qr(){Xe(Tn)}return me.createElement("a",{title:Bt,className:pn,onClick:Qr},me.createElement("i",{className:`${xt}`}),_n)}var he=({watch:Xe,showNullButton:Bt,showNullProgramButton:xt,onActionCallback:Tn,fullScreen:pn,insertTemp:_n,hidetoolBar:Qr,extraUse:Ra})=>{const br=[...ae,{title:`${Xe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return me.createElement("ul",{className:"markdown-toolbar-container"},!Qr&&br.map((Vr,mo)=>me.createElement("li",{key:mo},Vr.actionName?me.createElement(le,re(ne({},Vr),{onActionCallback:Tn})):me.createElement("span",{className:"v-line"}))),Bt?me.createElement("li",null,me.createElement(le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xt?me.createElement(me.Fragment,null,me.createElement("li",null,me.createElement(le,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),me.createElement("li",null,me.createElement(le,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,_n&&me.createElement("li",null,me.createElement(le,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${_n}`,onActionCallback:Tn},me.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ra&&me.createElement("li",null,Ra),me.createElement("li",{className:"btn-full-screen"},me.createElement(le,{icon:`${pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tn})))},ve=ee(76621),Ce=ee(22150),be=ee(69677),ye=ee(71577),Ae=Object.defineProperty,Ne=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ke=(Xe,Bt,xt)=>Bt in Xe?Ae(Xe,Bt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Xe[Bt]=xt,qe=(Xe,Bt)=>{for(var xt in Bt||(Bt={}))Ge.call(Bt,xt)&&Ke(Xe,xt,Bt[xt]);if(Le)for(var xt of Le(Bt))He.call(Bt,xt)&&Ke(Xe,xt,Bt[xt]);return Xe},lt=(Xe,Bt)=>Ne(Xe,Qe(Bt));const mt={labelCol:{span:4},wrapperCol:{span:20}};var Vt=({callback:Xe,onCancel:Bt})=>{function xt(Tn){Xe(Tn)}return x.createElement(Ce.default,lt(qe({},mt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xt,style:{width:500}}),x.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},x.createElement(be.default,null)),x.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},x.createElement(be.default,null)),x.createElement("div",{className:"flex-container flex-end"},x.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(ye.ZP,{type:"ghost",onClick:Bt},"\u53D6\u6D88")))},cn=ee(57444),rt=ee(70859),yt=ee(14446),Lt=ee(71230),ct=ee(63205),Ft=ee(67294),jt=({callback:Xe,onCancel:Bt})=>{const xt=document.createElement("canvas"),Tn=xt.getContext("2d");xt.width=1e3,xt.height=800,Tn.fillStyle="#ffffff",Tn.fillRect(0,0,xt.width,xt.height);const pn=xt.toDataURL("image/png");return Ft.createElement(yt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ft.createElement(Lt.Z,{style:{height:"100vh"}},Ft.createElement(ct.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pn,visible:!0,title:String(Date.now())},onOk:_n=>{Xe({src:_n.url})},onClose:Bt})))},_e=ee(23495);function Sn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Sn,go.CommandHandler),Sn.prototype.canAlignSelection=function(){var Xe=this.diagram;return!(Xe===null||Xe.isReadOnly||Xe.isModelReadOnly||Xe.selection.count<2)},Sn.prototype.alignLeft=function(){var Xe=this.diagram;Xe.startTransaction("aligning left");var Bt=1/0;Xe.selection.each(function(xt){xt instanceof go.Link||(Bt=Math.min(xt.position.x,Bt))}),Xe.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(Bt,xt.position.y))}),Xe.commitTransaction("aligning left")},Sn.prototype.alignRight=function(){var Xe=this.diagram;Xe.startTransaction("aligning right");var Bt=-1/0;Xe.selection.each(function(xt){if(!(xt instanceof go.Link)){var Tn=xt.actualBounds.x+xt.actualBounds.width;Bt=Math.max(Tn,Bt)}}),Xe.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(Bt-xt.actualBounds.width,xt.position.y))}),Xe.commitTransaction("aligning right")},Sn.prototype.alignTop=function(){var Xe=this.diagram;Xe.startTransaction("alignTop");var Bt=1/0;Xe.selection.each(function(xt){xt instanceof go.Link||(Bt=Math.min(xt.position.y,Bt))}),Xe.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(xt.position.x,Bt))}),Xe.commitTransaction("alignTop")},Sn.prototype.alignBottom=function(){var Xe=this.diagram;Xe.startTransaction("aligning bottom");var Bt=-1/0;Xe.selection.each(function(xt){if(!(xt instanceof go.Link)){var Tn=xt.actualBounds.y+xt.actualBounds.height;Bt=Math.max(Tn,Bt)}}),Xe.selection.each(function(xt){xt instanceof go.Link||xt.move(new go.Point(xt.actualBounds.x,Bt-xt.actualBounds.height))}),Xe.commitTransaction("aligning bottom")},Sn.prototype.alignCenterX=function(){var Xe=this.diagram,Bt=Xe.selection.first();if(Bt){Xe.startTransaction("aligning Center X");var xt=Bt.actualBounds.x+Bt.actualBounds.width/2;Xe.selection.each(function(Tn){Tn instanceof go.Link||Tn.move(new go.Point(xt-Tn.actualBounds.width/2,Tn.actualBounds.y))}),Xe.commitTransaction("aligning Center X")}},Sn.prototype.alignCenterY=function(){var Xe=this.diagram,Bt=Xe.selection.first();if(Bt){Xe.startTransaction("aligning Center Y");var xt=Bt.actualBounds.y+Bt.actualBounds.height/2;Xe.selection.each(function(Tn){Tn instanceof go.Link||Tn.move(new go.Point(Tn.actualBounds.x,xt-Tn.actualBounds.height/2))}),Xe.commitTransaction("aligning Center Y")}},Sn.prototype.alignColumn=function(Xe){var Bt=this.diagram;Bt.startTransaction("align Column"),Xe===void 0&&(Xe=0),Xe=parseFloat(Xe);var xt=new Array;Bt.selection.each(function(Ra){Ra instanceof go.Link||xt.push(Ra)});for(var Tn=0;Tn0){for(var Ra=_n.elt(Qr-1);Ra!==null&&Ra.isTreeExpanded&&!Ra.isTreeLeaf;){var br=this._sortTreeChildrenByY(Ra);Ra=br.last()}Ra!==null&&Xe.select(Ra)}else Xe.select(pn)}}else if(xt.key==="Down")if(Bt.isTreeExpanded&&!Bt.isTreeLeaf){var Tn=this._sortTreeChildrenByY(Bt).first();Tn!==null&&Xe.select(Tn)}else for(;Bt!==null;){var pn=Bt.findTreeParentNode();if(pn===null)break;var _n=this._sortTreeChildrenByY(pn),Qr=_n.indexOf(Bt);if(Qr<_n.length-1){Xe.select(_n.elt(Qr+1));break}else Bt=pn}var Vr=Xe.selection.first();Vr!==null&&Xe.scrollToRect(Vr.actualBounds)}},Sn.prototype._sortTreeChildrenByY=function(Xe){var Bt=new go.List().addAll(Xe.findTreeChildrenNodes());return Bt.sort(function(xt,Tn){var pn=xt.location,_n=Tn.location;return pn.y<_n.y?-1:pn.y>_n.y?1:pn.x<_n.x?-1:pn.x>_n.x?1:0}),Bt},Sn.prototype.copyToClipboard=function(Xe){go.CommandHandler.prototype.copyToClipboard.call(this,Xe),this._lastPasteOffset.set(this.pasteOffset)},Sn.prototype.pasteFromClipboard=function(){var Xe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Xe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Xe},Object.defineProperty(Sn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Xe){if(Xe!=="move"&&Xe!=="select"&&Xe!=="scroll"&&Xe!=="tree"&&Xe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Xe);this._arrowKeyBehavior=Xe}}),Object.defineProperty(Sn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Xe){if(!(Xe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Xe);this._pasteOffset.set(Xe)}});var wn=Sn,ha=ee(18023),Mn=ee(15746),at=ee(33170),ut={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},dt=ee(67294),At=(Xe,Bt,xt)=>new Promise((Tn,pn)=>{var _n=br=>{try{Ra(xt.next(br))}catch(Vr){pn(Vr)}},Qr=br=>{try{Ra(xt.throw(br))}catch(Vr){pn(Vr)}},Ra=br=>br.done?Tn(br.value):Promise.resolve(br.value).then(_n,Qr);Ra((xt=xt.apply(Xe,Bt)).next())});function Et({onCancel:Xe,callback:Bt}){let xt=(0,x.useRef)(),Tn=(0,x.useRef)(),pn=(0,x.useRef)(),_n=(0,x.useRef)(!1);const Qr=(0,x.useRef)(!1),[Ra,br]=(0,x.useState)(0);function Vr(){const Xn=_e.bx.make,ur={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"};xt.current=new _e.S0(Tn.current,{padding:20,grid:Xn(_e.s_,"Grid",Xn(_e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Xn(_e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:oa=>{var Za=oa.diagram.commandHandler.addTopLevelParts(oa.diagram.selection,!0);Za||oa.diagram.currentTool.doCancel()},commandHandler:Xn(wn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:oa=>{var Za=oa.subject;Za.location=Za.location.copy().snapToGridPoint(oa.diagram.grid.gridOrigin,oa.diagram.grid.gridCellSize),setTimeout(()=>{oa.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:oa=>{var Za=oa.subject;setTimeout(()=>{oa.diagram.commandHandler.editTextBlock()})},LinkRelinked:oa=>{var Za=oa.parameter.part;Za.invalidateConnectedLinks();var mr=oa.subject;oa.diagram.toolManager.linkingTool.isForwards?mr.toNode.invalidateConnectedLinks():mr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xt.current.nodeTemplate=Xn(_e.NB,"Auto",{locationSpot:_e.z6.Center,locationObjectName:"SHAPE",desiredSize:new _e.$u(120,60),minSize:new _e.$u(40,40),resizable:!0,resizeCellSize:new _e.$u(10,10),rotatable:!0},new _e.KX("location","loc",_e.E9.parse).makeTwoWay(_e.E9.stringify),new _e.KX("desiredSize","size",_e.$u.parse).makeTwoWay(_e.$u.stringify),Xn(_e.bn,{name:"SHAPE",fill:ur.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:_e.z6.AllSides,toSpot:_e.z6.AllSides},new _e.KX("figure"),new _e.KX("fill"),new _e.KX("stroke","borderColor"),new _e.KX("strokeWidth","thickness"),new _e.KX("strokeDashArray","dash")),Xn(_e.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Xn(_e.al,{margin:1,textAlign:"center",overflow:_e.al.OverflowEllipsis,editable:!0},new _e.KX("text").makeTwoWay(),new _e.KX("stroke","color"))),xt.current.nodeTemplate.toolTip=Xn("ToolTip",Xn(_e.s_,"Vertical",{maxSize:new _e.$u(200,NaN)},Xn(_e.al,{font:"bold 10pt sans-serif",textAlign:"center"},new _e.KX("text")),Xn(_e.al,{font:"10pt sans-serif",textAlign:"center"},new _e.KX("text","details"))));function pt(oa,Za){var mr=(da,io)=>{da.handled=!0,da.diagram.model.commit(fr=>{var wo=io.part.adornedPart,So=new _e.E9().setRectSpot(wo.actualBounds,oa);So.subtract(wo.location),So.scale(2,2),So.x+=Math.sign(So.x)*130,So.y+=Math.sign(So.y)*130,So.add(wo.location),So.snapToGridPoint(da.diagram.grid.gridOrigin,da.diagram.grid.gridCellSize);var Ro=fr.copyNodeData(wo.data);fr.setGroupKeyForNodeData(Ro,fr.getGroupKeyForNodeData(wo.data)),fr.addNodeData(Ro);var Ni={from:wo.key,to:fr.getKeyForNodeData(Ro)};fr.addLinkData(Ni);var qo=da.diagram.findNodeForData(Ro);qo.location=So,da.diagram.select(qo),setTimeout(()=>{da.diagram.commandHandler.editTextBlock()},20)})};return Xn(_e.bn,{figure:Za,alignment:oa,alignmentFocus:oa.opposite(),width:oa.equals(_e.z6.Top)||oa.equals(_e.z6.Bottom)?25:18,height:oa.equals(_e.z6.Top)||oa.equals(_e.z6.Bottom)?18:25,fill:"orange",stroke:ur.white,strokeWidth:4,mouseEnter:(da,io)=>io.fill="dodgerblue",mouseLeave:(da,io)=>io.fill="orange",isActionable:!0,click:mr,contextClick:mr})}function Jt(oa){return Xn(_e.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:(Za,mr)=>mr.fill="dodgerblue",mouseLeave:(Za,mr)=>mr.fill="orange",click:(Za,mr)=>{Za.diagram.commandHandler.showContextMenu(mr.part.adornedPart)}},oa||{})}xt.current.nodeTemplate.selectionAdornmentTemplate=Xn(_e.uz,"Spot",Xn(_e.Vm,{padding:10}),pt(_e.z6.Top,"TriangleUp"),pt(_e.z6.Left,"TriangleLeft"),pt(_e.z6.Right,"TriangleRight"),pt(_e.z6.Bottom,"TriangleDown"),Jt({alignment:new _e.z6(.75,0)}));function Ut(oa,Za){return(mr,da)=>{mr.handled=!0,mr.diagram.model.commit(io=>{io.set(da.part.adornedPart.data,oa,Za)})}}function dn(oa,Za){return Za||(Za="color"),Xn(_e.bn,{width:16,height:16,stroke:"lightgray",fill:oa,margin:1,background:"transparent",mouseEnter:(mr,da)=>da.stroke="dodgerblue",mouseLeave:(mr,da)=>da.stroke="lightgray",click:Ut(Za,oa),contextClick:Ut(Za,oa)})}function jn(){return[Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",dn(ur.white,"fill"),dn(ur.beige,"fill"),dn(ur.extralightblue,"fill"),dn(ur.extralightred,"fill"))),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",dn(ur.lightgray,"fill"),dn(ur.lightgreen,"fill"),dn(ur.lightblue,"fill"),dn(ur.lightred,"fill")))]}function tn(){return[Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",dn(ur.black),dn(ur.green),dn(ur.blue),dn(ur.red))),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",dn(ur.white),dn(ur.magenta),dn(ur.purple),dn(ur.orange)))]}function Yn(oa,Za){return Za||(Za="thickness"),Xn(_e.bn,"LineH",{width:16,height:16,strokeWidth:oa,margin:1,background:"transparent",mouseEnter:(mr,da)=>da.background="dodgerblue",mouseLeave:(mr,da)=>da.background="transparent",click:Ut(Za,oa),contextClick:Ut(Za,oa)})}function Pn(oa,Za){return Za||(Za="dash"),Xn(_e.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:oa,margin:1,background:"transparent",mouseEnter:(mr,da)=>da.background="dodgerblue",mouseLeave:(mr,da)=>da.background="transparent",click:Ut(Za,oa),contextClick:Ut(Za,oa)})}function ua(){return[Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Yn(1),Yn(2),Yn(3),Yn(4))),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Pn(null),Pn([2,4]),Pn([4,4])))]}function Ha(oa,Za){return Za||(Za="figure"),Xn(_e.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:oa,margin:1,background:"transparent",mouseEnter:(mr,da)=>da.fill="dodgerblue",mouseLeave:(mr,da)=>da.fill="lightgray",click:Ut(Za,oa),contextClick:Ut(Za,oa)})}xt.current.nodeTemplate.contextMenu=Xn("ContextMenu",Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Ha("Rectangle"),Ha("RoundedRectangle"),Ha("Ellipse"),Ha("Diamond"))),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Ha("Parallelogram2"),Ha("ManualOperation"),Ha("Procedure"),Ha("Cylinder1"))),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Ha("Terminator"),Ha("CreateRequest"),Ha("Document"),Ha("TriangleDown"))),jn(),tn(),ua()),xt.current.groupTemplate=Xn(_e.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:_e.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(oa,Za)=>{var mr=Za.addMembers(Za.diagram.selection,!0);mr||Za.diagram.currentTool.doCancel()},avoidable:!1},new _e.KX("location","loc",_e.E9.parse).makeTwoWay(_e.E9.stringify),Xn(_e.s_,"Auto",{name:"BODY"},Xn(_e.bn,{parameter1:10,fill:ur.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:_e.z6.AllSides,toSpot:_e.z6.AllSides},new _e.KX("fill"),new _e.KX("stroke","color"),new _e.KX("strokeWidth","thickness"),new _e.KX("strokeDashArray","dash")),Xn(_e.Vm,{background:"transparent",margin:20})),Xn(_e.al,{alignment:_e.z6.Top,alignmentFocus:_e.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new _e.KX("text"),new _e.KX("stroke","color"))),xt.current.groupTemplate.selectionAdornmentTemplate=Xn(_e.uz,"Spot",Xn(_e.s_,"Auto",Xn(_e.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Xn(_e.Vm,{margin:1.5})),Jt({alignment:_e.z6.TopRight,alignmentFocus:_e.z6.BottomRight})),xt.current.groupTemplate.contextMenu=Xn("ContextMenu",jn(),tn(),ua()),xt.current.linkTemplate=Xn(_e.rU,{layerName:"Foreground",routing:_e.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new _e.KX("fromSpot","fromSpot",_e.z6.parse),new _e.KX("toSpot","toSpot",_e.z6.parse),new _e.KX("fromShortLength","dir",oa=>oa>=1?10:0),new _e.KX("toShortLength","dir",oa=>oa>=1?10:0),new _e.KX("points").makeTwoWay(),Xn(_e.bn,{strokeWidth:2},new _e.KX("stroke","color"),new _e.KX("strokeWidth","thickness"),new _e.KX("strokeDashArray","dash")),Xn(_e.bn,{segmentIndex:0,segmentOffset:new _e.E9(15,0),segmentOrientation:_e.rU.OrientAlong,alignmentFocus:_e.z6.Right,figure:"circle",width:10,strokeWidth:0},new _e.KX("fill","color"),new _e.KX("visible","dir",oa=>oa===1)),Xn(_e.bn,{segmentIndex:-1,segmentOffset:new _e.E9(-10,6),segmentOrientation:_e.rU.OrientPlus90,alignmentFocus:_e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new _e.KX("fill","color"),new _e.KX("visible","dir",oa=>oa>=1),new _e.KX("width","thickness",oa=>7+3*oa),new _e.KX("height","thickness",oa=>7+3*oa),new _e.KX("segmentOffset","thickness",oa=>new _e.E9(-15,4+1.5*oa))),Xn(_e.bn,{segmentIndex:0,segmentOffset:new _e.E9(15,-6),segmentOrientation:_e.rU.OrientMinus90,alignmentFocus:_e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new _e.KX("fill","color"),new _e.KX("visible","dir",oa=>oa===2),new _e.KX("width","thickness",oa=>7+3*oa),new _e.KX("height","thickness",oa=>7+3*oa),new _e.KX("segmentOffset","thickness",oa=>new _e.E9(-15,4+1.5*oa))),Xn(_e.al,{alignmentFocus:new _e.z6(0,1,-4,0),editable:!0},new _e.KX("text").makeTwoWay(),new _e.KX("stroke","color"))),xt.current.linkTemplate.selectionAdornmentTemplate=Xn(_e.uz,Xn(_e.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ir(2)},new _e.KX("pathPattern","thickness",ir)),Jt({alignmentFocus:new _e.z6(0,0,-6,-4)}));function ir(oa){return Xn(_e.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(oa+4).toString()+" H3"})}function Mr(oa){var Za="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return oa===0?Za="M0 0 M16 16 M0 8 L16 8":oa===2&&(Za="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Xn(_e.bn,{geometryString:Za,margin:2,background:"transparent",mouseEnter:(mr,da)=>da.background="dodgerblue",mouseLeave:(mr,da)=>da.background="transparent",click:Ut("dir",oa),contextClick:Ut("dir",oa)})}function Hr(oa){var Za=(mr,da)=>{mr.handled=!0,mr.diagram.model.commit(io=>{var fr=da.part.adornedPart;io.set(fr.data,oa?"toSpot":"fromSpot",_e.z6.stringify(_e.z6.AllSides)),(oa?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return Xn(_e.bn,{width:12,height:12,fill:"transparent",mouseEnter:(mr,da)=>da.background="dodgerblue",mouseLeave:(mr,da)=>da.background="transparent",click:Za,contextClick:Za})}function oo(oa,Za){var mr=0,da=_e.z6.RightSide;oa.equals(_e.z6.Top)?(mr=270,da=_e.z6.TopSide):oa.equals(_e.z6.Left)?(mr=180,da=_e.z6.LeftSide):oa.equals(_e.z6.Bottom)&&(mr=90,da=_e.z6.BottomSide),Za||(mr-=180);var io=(fr,wo)=>{fr.handled=!0,fr.diagram.model.commit(So=>{var Ro=wo.part.adornedPart;So.set(Ro.data,Za?"toSpot":"fromSpot",_e.z6.stringify(da)),(Za?Ro.toNode:Ro.fromNode).invalidateConnectedLinks()})};return Xn(_e.bn,{alignment:oa,alignmentFocus:oa.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:mr,background:"transparent",mouseEnter:(fr,wo)=>wo.background="dodgerblue",mouseLeave:(fr,wo)=>wo.background="transparent",click:io,contextClick:io})}xt.current.linkTemplate.contextMenu=Xn("ContextMenu",tn(),ua(),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Mr(0),Mr(1),Mr(2))),Xn("ContextMenuButton",Xn(_e.s_,"Horizontal",Xn(_e.s_,"Spot",Hr(!1),oo(_e.z6.Top,!1),oo(_e.z6.Left,!1),oo(_e.z6.Right,!1),oo(_e.z6.Bottom,!1)),Xn(_e.s_,"Spot",{margin:new _e.Zt(0,0,0,2)},Hr(!0),oo(_e.z6.Top,!0),oo(_e.z6.Left,!0),oo(_e.z6.Right,!0),oo(_e.z6.Bottom,!0)))));const zo=`{ "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 Kn=["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 Br(oa){return console.log("shapeName:",oa),Kn.indexOf(oa)>=0}var To=new _e.YI(pn.current,{maxSelectionCount:1,linkTemplate:Xn(_e.rU,{locationSpot:_e.z6.Center,selectionAdornmentTemplate:Xn(_e.uz,"Link",{locationSpot:_e.z6.Center},Xn(_e.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Xn(_e.bn,{toArrow:"Standard",stroke:null}))},{routing:_e.rU.AvoidsNodes,curve:_e.rU.JumpOver,corner:5,toShortLength:4},new _e.KX("points"),Xn(_e.bn,{isPanelMain:!0,strokeWidth:2}),Xn(_e.bn,{toArrow:"Standard",stroke:null})),model:new _e.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},..._e.bn.getFigureGenerators().toArray().map(oa=>({text:"\u672A\u547D\u540D",size:"100 100",figure:oa.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xt.current.addDiagramListener("TextEdited",function(oa){var Za;const mr=oa.subject.part;var da=(Za=document.activeElement)==null?void 0:Za.value;typeof da=="string"&&da.trim()===""&&xt.current.model.commit(function(io){io.set(mr.data,"text","\u672A\u547D\u540D"),xt.current.commandHandler.stopCommand()},"increment")}),To.nodeTemplate=Xn(_e.NB,"Auto",{locationSpot:_e.z6.Center},new _e.KX("location","location",_e.E9.parse).makeTwoWay(_e.E9.stringify),Xn(_e.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 _e.KX("stroke").makeTwoWay(),new _e.KX("fill").makeTwoWay(),new _e.KX("figure")),Xn(_e.al,{margin:new _e.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new _e.$u(16,16),maxSize:new _e.$u(10,NaN),textAlign:"center",editable:!0},new _e.KX("key").makeTwoWay())),setTimeout(()=>{xt.current.grid=Xn(_e.s_,"Grid",Xn(_e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Xn(_e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xt.current.grid.visible=!0,xt.current.grid.gridCellStroke="darkgray",xt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xt.current,xt.current}const mo=()=>At(this,null,function*(){var Xn=xt.current.makeImage();const ur=yield(0,at.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Xn.src}});Bt({src:ur.url})});return(0,x.useEffect)(()=>(setTimeout(()=>{Vr()},500),br(Ra+1),()=>{xt.current=null}),[]),dt.createElement("div",{ref:Qr,className:_n.current?`${ut.maxH60} body-overflow-initial`:"body-overflow-initial"},dt.createElement(yt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ra,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:dt.createElement(Lt.Z,null,dt.createElement(Mn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),dt.createElement(Mn.Z,{onClick:()=>{var Xn,ur,pt=xt.current.selection.first();if(_n.current=!_n.current,document.activeElement&&pt){let Jt=(ur=(Xn=document.activeElement)==null?void 0:Xn.value)==null?void 0:ur.trim();typeof Jt=="string"&&xt.current.model.commit(function(Ut){Ut.set(pt.data,"text",Jt||"\u672A\u547D\u540D"),xt.current.commandHandler.stopCommand()},"increment")}br(Ra+1)}},dt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Xe},dt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ut.flowChartWrp},dt.createElement("div",{style:{display:"flex",height:"100%"}},dt.createElement("div",{style:{width:"300px",height:"100%"}},dt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),dt.createElement("div",{style:{height:"calc(100% - 50px)"},className:ut.myPaletteDiv,ref:pn})),dt.createElement("div",{style:{flex:1,position:"relative"}},dt.createElement("div",{ref:Tn,style:{height:"80vh"}}))),dt.createElement("div",{className:"tr"},dt.createElement(ye.ZP,{size:"large",onClick:mo,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var gt=Et,Qt=ee(78045),Ot=ee(31795);const bt=Qt.ZP.Group,rn={margin:"0 8px"};var Xt=({callback:Xe,onCancel:Bt})=>{function xt(Tn){Xe(Tn)}return x.createElement(Ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xt},x.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},x.createElement("span",{style:rn},"\u5355\u5143\u683C\u6570\uFF1A"),x.createElement("span",{style:rn},"\u884C\u6570"),x.createElement(Ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},x.createElement(Ot.Z,null)),x.createElement("span",{style:rn},"\u5217\u6570"),x.createElement(Ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},x.createElement(Ot.Z,null))),x.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},x.createElement("span",{style:rn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),x.createElement(Ce.default.Item,{name:"align"},x.createElement(bt,null,x.createElement(Qt.ZP,{value:"default"},x.createElement("i",{className:"fa fa-align-justify"})),x.createElement(Qt.ZP,{value:"left"},x.createElement("i",{className:"fa fa-align-left"})),x.createElement(Qt.ZP,{value:"center"},x.createElement("i",{className:"fa fa-align-center"})),x.createElement(Qt.ZP,{value:"right"},x.createElement("i",{className:"fa fa-align-right"}))))),x.createElement("div",{className:"flex-container flex-end"},x.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(ye.ZP,{type:"ghost",onClick:Bt},"\u53D6\u6D88")))},$e=ee(47897),Re=ee(61016),Ln=ee.n(Re),je=(0,x.forwardRef)(({use3d:Xe,width:Bt,height:xt,callback:Tn,showSaveButton:pn},_n)=>{const Qr=(0,x.useRef)(),Ra=(0,x.useRef)(),[br,Vr]=(0,x.useState)(!1),mo=(0,x.useRef)({id:Qr,appName:"graphing",width:Bt||1e3,height:xt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,x.useEffect)(()=>{Ra.current=new(Ln())(mo.current,!0),window.onload=function(){Ra.current.inject("applet_container")}},[]);const Xn=()=>{var ur=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(ur),ur};return(0,x.useEffect)(()=>{mo.current.appName=br?"3D":"graphing",Ra.current.inject("applet_container")},[br]),(0,x.useEffect)(()=>{Vr(Xe)},[Xe]),(0,x.useImperativeHandle)(_n,()=>({getImgData:Xn})),x.createElement(x.Fragment,null,x.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Qr}),x.createElement(Lt.Z,{align:"middle"},x.createElement(Mn.Z,{flex:1},x.createElement($e.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:br,onChange:ur=>Vr(ur)})),x.createElement(Mn.Z,null,x.createElement(ye.ZP,{size:"large",onClick:Xn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=ee(36527),et=ee(25934),Ue=ee(2453);const Ct="link",Pt="upload-image",Zt="add-flowchart",vn="draw-image",Nt="add-flowchart",Tt="code-block",St="add-table",en="------------",Gt={default:en,left:`:${en}`,center:`:${en}:`,right:`${en}:`};var mn=ee(99914),Qn=(Xe,Bt,xt)=>new Promise((Tn,pn)=>{var _n=br=>{try{Ra(xt.next(br))}catch(Vr){pn(Vr)}},Qr=br=>{try{Ra(xt.throw(br))}catch(Vr){pn(Vr)}},Ra=br=>br.done?Tn(br.value):Promise.resolve(br.value).then(_n,Qr);Ra((xt=xt.apply(Xe,Bt)).next())});function xn(){}let Un=0;const pa=1e4,Kt="\u2581",$t="@\u2581\u2581@",qt="@\u2581@",sa=` **\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`,ra=["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 Hn(Xe){return/^\d+$/.test(Xe)?`${Xe}px`:Xe}const Ta=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Pr={[Ta+"-B"]:"bold",[Ta+"-I"]:"italic"},zr={[Ct]:"\u6DFB\u52A0\u94FE\u63A5",[Tt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pt]:"\u6DFB\u52A0\u56FE\u7247",[vn]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[St]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Na=({defaultValue:Xe="",onChange:Bt,width:xt="100%",height:Tn=400,miniToolbar:pn=!1,isFocus:_n=!1,watch:Qr,insertTemp:Ra,mode:br="markdown",id:Vr="markdown-editor-id",showResizeBar:mo=!1,noStorage:Xn=!1,showNullButton:ur=!1,showNullProgramButton:pt=!1,hidetoolBar:Jt=!1,fullScreen:Ut=!1,onBlur:dn,onCMBeforeChange:jn,onFullScreen:tn,className:Yn="",disablePaste:Pn=!1,disabled:ua=!1,disabledFill:Ha=!1,placeholder:ir="",values:Mr="",extraUse:Hr,isShowTool:oo=!0,disableImageUpload:zo=!1})=>{const[Kn,Br]=(0,x.useState)(null),[To,oa]=(0,x.useState)(Xe),[Za,mr]=(0,x.useState)(Qr),[da,io]=(0,x.useState)(Ut),[fr,wo]=(0,x.useState)(""),[So,Ro]=(0,x.useState)(0),[Ni,qo]=(0,x.useState)(Tn),[ul,Yi]=(0,x.useState)(!1),kn=(0,x.useRef)((0,et.Z)()),wa=(0,x.useRef)(!1),lo=(0,x.useRef)(),[Go,xi]=(0,x.useState)(0),[wi,si]=(0,x.useState)(0),zi=(0,x.useRef)(),jr=(0,x.useRef)(),ce=(0,x.useRef)(),Pe=(0,x.useRef)(),Oe=()=>Qn(void 0,null,function*(){var Cn;const on=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:kn.current}});(Cn=on==null?void 0:on.attachments)!=null&&Cn.length&&(console.log("cm:",Kn,zi),on.attachments.map(yn=>{yn.content_type.indexOf("image")>-1?Kn.replaceSelection(`![,](/api/attachments/${yn.id}?type=${yn.content_type})`):yn.content_type.indexOf("video")>-1?Kn.replaceSelection(``):yn.content_type.indexOf("pdf")>-1?Kn.replaceSelection(`${yn.name}`):Kn.replaceSelection(`[${yn.name}](${ENV.API_SERVER}/api/attachments/${yn.id}?type=${yn.content_type})`)}))});(0,x.useEffect)(()=>{const Cn=window.scrollY||window.pageYOffset;oa(Mr),Kn==null||Kn.setValue(Mr),window.scrollTo(0,Cn)},[Mr]),(0,x.useEffect)(()=>{tn==null||tn(da)},[da]),(0,x.useEffect)(()=>{if(zi.current){let Cn=function(yn,An){var ea,za;if(Pn){An.preventDefault();return}const Ba=An.clipboardData;if(Ba){const qn=Ba.types.toString(),Ea=Ba.items;if(qn==="Files"||Ba.types.indexOf("Files")>-1){if(An.preventDefault(),br=="stex")return;try{let Ma=Ea[1];((ea=Ea[0])==null?void 0:ea.kind)==="file"&&(Ma=Ea[0]);const La=Ma.getAsFile(),er=La.name.split(".").pop();if(zo&&((za=La==null?void 0:La.type)==null?void 0:za.indexOf("image"))>-1)return!0;(0,rt.I)(La,Sr=>{var eo,Lo,ga;Sr.id?((eo=La==null?void 0:La.type)==null?void 0:eo.indexOf("image"))>-1?on.replaceSelection(``):((Lo=La==null?void 0:La.type)==null?void 0:Lo.indexOf("video"))>-1?on.replaceSelection(``):((ga=La==null?void 0:La.type)==null?void 0:ga.indexOf("pdf"))>-1?on.replaceSelection(`${La.name}`):ra.includes(er)?on.replaceSelection(`${La.name}`):on.replaceSelection(`[${La.name}](/api/attachments/${Sr.id}?type=${Sr.content_type})`):(Sr==null?void 0:Sr.status)===401&&(Ue.ZP.warning((Sr==null?void 0:Sr.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ma){Ue.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const on=pe().fromTextArea(zi.current,{mode:br,lineNumbers:!pn,lineWrapping:!0,value:Xe,autoCloseTags:!pt,autoCloseBrackets:!0});return on.on("keyup",function(yn,An){An.keyCode===8&&(yn.getValue()==""?on.setOption("placeholder",ir):on.setOption("placeholder",null))}),on.on("keydown",function(yn,An){if(An.keyCode===8){var ea=Je(yn);ea&&An.preventDefault()}}),_n&&on.focus(),on.on("paste",Cn),on.on("dragleave",function(yn,An){jr.current.classList.remove("mouse-hover-md")}),ua&&on.on("beforeChange",function(yn,An){(An.origin==="paste"||An.origin==="+input")&&An.cancel()}),Br(on),()=>{on.off("paste",Cn)}}},[]);const Se=(0,x.useCallback)(()=>{if(jr.current)try{}catch(Cn){console.log(Cn,"---- to set md editor body height")}},[Ni,jr,da]);(0,x.useEffect)(()=>{function Cn(){let on=new De.Z(yn=>{for(let An of yn)(An.target.offsetHeight>0||An.target.offsetWidth>0)&&(Se(),Kn.setSize("100%","100%"),Kn.refresh())});return on.observe(zi.current.parentElement),on}if(Kn){const on=Cn();return()=>{var yn,An;(yn=zi.current)!=null&&yn.parentElement&&on.unobserve((An=zi.current)==null?void 0:An.parentElement)}}},[Kn,Se]),(0,x.useEffect)(()=>{if(Kn){let Cn=[];for(const[on,yn]of Object.entries(Pr)){let An={[on]:()=>{ot(yn)}};Cn.push(An),Kn.addKeyMap(An)}return lo.current=setInterval(()=>{wa.current&&Oe()},4e3),()=>{clearInterval(lo.current);for(let on of Cn)Kn.removeKeyMap(on)}}},[Kn]),(0,x.useEffect)(()=>{Ut!==da&&io(Ut)},[Ut]),(0,mn.Z)(()=>{if(!Xn&&So>0){let Cn=new Date().getTime(),on=window.sessionStorage.getItem(Vr);Cn>=So+pa&&(!on||on!==To)&&(window.sessionStorage.setItem(Vr,To),Yi(!0))}},pa),(0,x.useEffect)(()=>{mr(Qr)},[Kn,Qr]),(0,x.useEffect)(()=>{Kn&&_n&&Kn.focus()},[Kn,_n]),(0,x.useEffect)(()=>{if(Za&&Kn){let Cn=function(yn){let An=yn.target;if(Pe.current){let ea=An.scrollTop/An.scrollHeight;Pe.current.scrollTop=Pe.current.scrollHeight*ea}};const on=Kn.getScrollerElement();return on.addEventListener("scroll",Cn),()=>{on.removeEventListener("scroll",Cn)}}},[Kn,Za]),(0,x.useEffect)(()=>{if(Kn&&jn){let Cn=function(on,yn){jn(on,yn)};return Kn.on("beforeChange",Cn),()=>{Kn.off("beforeChange",Cn)}}},[Kn,jn]),(0,x.useEffect)(()=>{if(Kn&&dn){let Cn=function(){dn(Kn.getValue())};return Kn.on("blur",Cn),()=>{Kn.off("blur",Cn)}}},[Kn,dn]);function Je(Cn,on){var yn=Cn.getDoc(),An=yn.getCursor(),ea=yn.getLine(An.line),za=ea.charAt(An.ch-1),Ba=ea.lastIndexOf("@\u2581@",An.ch),qn=ea.lastIndexOf("@\u2581\u2581@",An.ch),Ea=Ba>qn?Ba:qn,Ma=Ba>qn?3:4;if($t.indexOf(za)===-1)return null;if(console.log("change1:",on,Cn,ea,An,Ea,Ba,qn,za),Ea>=0&&An.ch-Ea<5){var La=Ea+Ma;return yn.replaceRange("",{line:An.line,ch:Ea},{line:An.line,ch:La}),{line:An.line,ch:La}}return null}(0,x.useEffect)(()=>{if(Kn){let Cn=function(on,yn){const An=on.getValue();oa(An),Ro(new Date().getTime()),on.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Bt&&(pt?Bt(An,In(An)):Bt(An))};return Kn.on("change",Cn),()=>{Kn.off("change",Cn)}}},[Kn,Bt]),(0,x.useEffect)(()=>{if(Kn)if(Xe==null)Kn.setValue(""),oa("");else{const Cn=window.scrollY||window.pageYOffset;Xe!==Kn.getValue()&&(Kn.setValue(Xe),oa(Xe),Kn.setCursor(ua?1:Kn.lineCount(),0),window.scrollTo(0,Cn))}},[Kn,Xe]);const ot=(0,x.useCallback)(Cn=>{const on=Kn.getCursor(),yn=Kn.getSelection();let An=yn.split(` `);switch(Cn){case"bold":return Kn.replaceSelection("**"+yn+"**"),yn===""&&Kn.setCursor(on.line,on.ch+2),Kn.focus();case"italic":return Kn.replaceSelection("*"+yn+"*"),yn===""&&Kn.setCursor(on.line,on.ch+1),Kn.focus();case"code":return Kn.replaceSelection("`"+yn+"`"),yn===""&&Kn.setCursor(on.line,on.ch+1),Kn.focus();case"inline-latex":return wo("inline-latex"),Kn.focus();case"latex":return Kn.replaceSelection("```latex\n"+yn+"\n```"),Kn.setCursor(on.line+1,yn.length+1),Kn.focus();case"line-break":return Kn.replaceSelection(`
`),Kn.focus();case"list-ul":return yn===""?Kn.replaceSelection("- "+yn):Kn.replaceSelection(An.map(ea=>ea===""?"":`- ${ea}`).join(` `)),Kn.focus();case"list-ol":return yn===""?Kn.replaceSelection("1. "+yn):Kn.replaceSelection(An.map((ea,za)=>ea===""?"":`${za+1}. ${ea}`).join(` `)),Kn.focus();case"add-null-ch":return yn===""&&Kn.setCursor(on.line,on.ch),Kn.replaceSelection(Kt),Kn.focus();case"add-signal":return yn===""&&Kn.setCursor(on.line,on.ch),Kn.replaceSelection(qt),Kn.focus();case"add-multiple":return yn===""&&Kn.setCursor(on.line,on.ch),Kn.replaceSelection($t),Kn.focus();case"inster-template-1":return yn===""&&Kn.setCursor(on.line,on.ch),Kn.replaceSelection(sa),Kn.focus();case"eraser":return Kn.setValue(""),Kn.focus();case"trigger-watch":return mr(!Za),Kn.focus();case"trigger-full-screen":return io(!da),Kn.focus();case Ct:wo(Ct);return;case Tt:wo(Tt);return;case Pt:wo(Pt);return;case vn:wo(vn);return;case"maths-latex":wo("maths-latex");return;case Zt:wo(Zt);return;case St:wo(St);return;default:throw new Error}},[Kn,Za,da]),wt=(0,x.useCallback)((Cn,on)=>{var yn,An,ea,za,Ba,qn;if(wo(""),!(zo&&fr==Pt))switch(fr){case Ct:const{title:Sr,link:eo}=Cn;return Kn.replaceSelection(`[${Sr}](${eo})`),Kn.focus();case Tt:const{language:Lo,content:ga}=Cn;return Kn.replaceSelection(["```"+Lo,ga,"```"].join(` `)),Kn.focus();case"maths-latex":for(var Ea=atob(Cn),Ma=new Uint8Array(Ea.length),La=0;La{Xo.id?Kn.replaceSelection(`![,](/api/attachments/${Xo.id}?type=${Xo.content_type})`):(Xo==null?void 0:Xo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Kn.replaceSelection("`$$"+Cn+"$$`");break;case Pt:case vn:case Nt:const{src:ii,alt:ei}=Cn,Fo=on,dl=(ea=(An=(yn=Fo==null?void 0:Fo.name)==null?void 0:yn.split("."))==null?void 0:An.pop)==null?void 0:ea.call(An);return((za=Fo==null?void 0:Fo.type)==null?void 0:za.indexOf("image"))>-1||!(Fo!=null&&Fo.type)?Fo.align||Fo.width?Kn.replaceSelection(`

${ei||

`):Kn.replaceSelection(`${ei||`):((Ba=Fo==null?void 0:Fo.type)==null?void 0:Ba.indexOf("video"))>-1?Kn.replaceSelection(``):((qn=Fo==null?void 0:Fo.type)==null?void 0:qn.indexOf("pdf"))>-1?Kn.replaceSelection(`${Fo.name}`):ra.includes(dl)?Kn.replaceSelection(`${Fo.name}`):Kn.replaceSelection(`[${Fo.name}](${ii})`),Kn.focus();case St:const{row:Hi,col:pi,align:Fi}=Cn;let Qi=` `;for(let Xo=0;Xo{switch(fr){case Ct:return x.createElement(Vt,{callback:wt,onCancel:it});case Tt:return x.createElement(cn.Z,{callback:wt,onCancel:it});case Pt:return x.createElement(rt.Z,{callback:wt,onCancel:it});case Zt:return x.createElement(gt,{callback:wt,onCancel:it});case St:return x.createElement(Xt,{callback:wt,onCancel:it});case"maths-latex":return x.createElement(je,{showSaveButton:!0,callback:wt});case"inline-latex":return x.createElement(Ht.Z,{showSaveButton:!0,callback:wt});default:return null}},[fr]);function it(){wo("")}(0,x.useEffect)(()=>{if(ce.current){let Cn=function(Ba){ea=!0,za=Ba.pageY},on=function(){ea=!1},yn=function(Ba){if(ea){let qn=Ba.pageY-za;qn<0&&(qn=0),qn>300&&(qn=300);let Ea=Tn+qn+"px";qo(Ea)}},An=ce.current,ea=!1,za=0;return An.addEventListener("mousedown",Cn),document.addEventListener("mousemove",yn),document.addEventListener("mouseup",on),()=>{An.removeEventListener("mousedown",Cn),document.removeEventListener("mousemove",yn),document.removeEventListener("mouseup",on)}}},[Kn,ce]),(0,x.useEffect)(()=>{qo(Tn)},[Tn]);const ht=Hn(xt),nn=Hn(Ni),fn={width:ht,height:nn},$n=(0,x.useMemo)(()=>{if(So){let Cn=new Date(So),on=Cn.getHours(),yn=Cn.getMinutes(),An=Cn.getSeconds();return on=on<10?"0"+on:on,yn=yn<10?"0"+yn:yn,An=An<10?"0"+An:An,`${on}:${yn}:${An}`}return 0},[So]),In=Cn=>{const on=[];if(pt){let yn=-1;Cn=Cn.replace(/(@▁▁@|@▁@)/g,function(An,ea,za){on.push({multiLine:An!==qt})})}return on};function Aa(){window.sessionStorage.removeItem(Vr),Yi(!1),Ro(0)}function va(){Yi(!1),Ro(0),Kn.setValue(window.sessionStorage.getItem(Vr))}(0,x.useEffect)(()=>{zr[fr]&&fr!==vn&&fr!==Zt&&setTimeout(()=>{const Cn=document.getElementsByClassName("markdown-popup-form")[0],on=window.innerWidth/2-Cn.offsetWidth/2,yn=window.innerHeight/2-Cn.offsetHeight/2;xi(on),si(yn)},0)},[fr]);const Fa=Cn=>{Cn.preventDefault();const on=Cn.clientX-Go,yn=Cn.clientY-wi;document.body.onmousemove=An=>{let ea=An.clientX-on,za=An.clientY-yn;const Ba=document.getElementsByClassName("markdown-popup-form")[0],qn=window.innerWidth-Ba.offsetWidth,Ea=window.innerHeight-Ba.offsetHeight;ea=Math.max(0,Math.min(ea,qn)),za=Math.max(0,Math.min(za,Ea)),Wn(An.clientX,An.clientY,on,yn)&&(xi(ea),si(za))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wn=(Cn,on,yn,An)=>{const ea=document.body.clientHeight,za=document.body.clientWidth;return Cn<20&&yn>Cn||Cn>za-20&&ynon||on>ea-20&&Anbe in Ce?Be(Ce,be,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Ce[be]=ye,z=(Ce,be)=>{for(var ye in be||(be={}))y.call(be,ye)&&E(Ce,ye,be[ye]);if(a)for(var ye of a(be))b.call(be,ye)&&E(Ce,ye,be[ye]);return Ce},te=(Ce,be)=>me(Ce,oe(be));const{useForm:ne}=x.default,re={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var le=({callback:Ce,onCancel:be})=>{const[ye]=ne();let Ae=(0,Me.useRef)();function Ne(Ge){Ae.current.width=ye.getFieldValue("width"),Ae.current.align=ye.getFieldValue("align"),Ce(Ge,Ae.current)}function Qe(Ge,He){if(Ge.status===-1){de.ZP.error(Ge.message);return}ye.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:He.type})}function Le(Ge){let He=Ge.target.files[0];Ae.current=He,ve(He,Qe)}return ze.createElement(x.default,te(z({form:ye},ae),{className:"upload-image-panel",onFinish:Ne,style:{width:470,overflow:"hidden"}}),ze.createElement(x.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ze.createElement("div",{className:"flex-container"},ze.createElement(x.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ze.createElement(pe.default,{style:re})),ze.createElement(he,{onFileChange:Le}))),ze.createElement(x.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ze.createElement(pe.default,{style:{width:264}})),ze.createElement(x.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ze.createElement(De.Z,null,ze.createElement(x.default.Item,{name:"width",style:{margin:0}},ze.createElement(we.Z,{style:{width:264}})),ze.createElement("span",{className:"ml8"},"%"))),ze.createElement(x.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ze.createElement(ke.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ze.createElement("aside",null,ze.createElement(x.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ze.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ze.createElement(ie.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function he({onFileChange:Ce}){return ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ze.createElement("input",{type:"file",onChange:Ce}))}function ve(Ce,be){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let ye=new FormData;ye.append("editormd-image-file",Ce),ye.append("file_param_name","editormd-image-file"),ye.append("byxhr","true");var Ae=new window.XMLHttpRequest;Ae.withCredentials=!0,Ae.addEventListener("load",function(Ne){be(JSON.parse(Ne.target.responseText),Ce)},!1),Ae.addEventListener("error",function(Ne){console.error(Ne)},!1),Ae.open("POST",`${We.KI}/api/attachments.json`),Ae.send(ye)}},76621:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return pe}});var x=ee(67294),de=ee(73935);class pe extends x.Component{constructor(we){super(we);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:we}=this.props;return(0,de.createPortal)(we,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return de}});var x=ee(67294);function de(pe,De){const we=(0,x.useRef)();(0,x.useEffect)(()=>{we.current=pe}),(0,x.useEffect)(()=>{function ke(){we.current()}if(De!==null){let ie=setInterval(ke,De);return()=>clearInterval(ie)}},[De])}},70562:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return He}});var x=ee(67294),de=ee(78045),pe=ee(71577),De=ee(2453),we=ee(14446),ke=ee(31795),ie=ee(71230),We=ee(15746),Me=ee(96074),Te=ee(36295),ze={flex_box_center:"flex_box_center___eijRq",flex_space_between:"flex_space_between___R4Vev",flex_box_vertical_center:"flex_box_vertical_center___j8R6g",flex_box_center_end:"flex_box_center_end___eB0cz",flex_box_column:"flex_box_column___b9VdU",md:"md___tcpb2",title:"title___dVHM9"},Be=ee(52262),me=ee(19575),oe=ee(33170),a=ee(35973),y=ee(85725),b=ee(86763),E=ee(55304),z=ee(84249),te=ee(67294),ne=Object.defineProperty,re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ce=(Ke,qe,lt)=>qe in Ke?ne(Ke,qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Ke[qe]=lt,be=(Ke,qe)=>{for(var lt in qe||(qe={}))he.call(qe,lt)&&Ce(Ke,lt,qe[lt]);if(le)for(var lt of le(qe))ve.call(qe,lt)&&Ce(Ke,lt,qe[lt]);return Ke},ye=(Ke,qe)=>re(Ke,ae(qe)),Ae=(Ke,qe,lt)=>new Promise((mt,Vt)=>{var cn=Lt=>{try{yt(lt.next(Lt))}catch(ct){Vt(ct)}},rt=Lt=>{try{yt(lt.throw(Lt))}catch(ct){Vt(ct)}},yt=Lt=>Lt.done?mt(Lt.value):Promise.resolve(Lt.value).then(cn,rt);yt((lt=lt.apply(Ke,qe)).next())});const Ne={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var Qe=(Ke=>(Ke[Ke.SET_PATH=0]="SET_PATH",Ke[Ke.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Ke))(Qe||{});function Le(Ke,qe){switch(qe.type){case 0:return ye(be({},Ke),{selectedPath:qe.payload});case 1:return ye(be({},Ke),{passedContent:qe.payload});default:throw new Error}}var He=({language:Ke,dispatch:qe,shixunWorkReport:lt,v:mt,languages:Vt,classroomList:cn,autoHeight:rt,diff_code_count:yt,data:Lt})=>{const[ct,Ft]=(0,x.useState)(Vt==null?void 0:Vt[0]),jt=(0,a.useParams)();return(0,x.useEffect)(()=>{Ft(Vt==null?void 0:Vt[0])},[]),(0,x.useEffect)(()=>{var _e;Ft((_e=Vt==null?void 0:Vt.filter(Sn=>Sn.language===(ct==null?void 0:ct.language)))==null?void 0:_e[0])},[Vt]),te.createElement(te.Fragment,null,te.createElement("h2",null," ",te.createElement("span",null,mt.is_finish?te.createElement("span",null,"\u6700\u540E\u901A\u5173\u4EE3\u7801",te.createElement("span",{className:"ml5 font12 c-grey-999"},"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801")):te.createElement("span",null,"\u6700\u65B0\u4EE3\u7801",te.createElement("span",{className:"ml5 font12 c-grey-999"},"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5")),(Vt==null?void 0:Vt.length)>1&&te.createElement(de.ZP.Group,{defaultValue:Ke,style:{marginLeft:10},onChange:_e=>{var Sn;mt.language=_e.target.value,Ft((Sn=Vt==null?void 0:Vt.filter(wn=>wn.language===_e.target.value))==null?void 0:Sn[0])}},Vt==null?void 0:Vt.map(_e=>te.createElement(de.ZP,{value:_e==null?void 0:_e.language},_e==null?void 0:_e.language)))),(0,Be.GJ)()&<!="shixunWorkReport"&&te.createElement("span",null,te.createElement("span",null,"\u5F97\u5206 ",ct==null?void 0:ct.score,"/",ct==null?void 0:ct.total_score),te.createElement(pe.ZP,{style:{margin:"0px 10px"},onClick:()=>{var _e,Sn;if(!((Sn=(_e=cn.AssistantObject)==null?void 0:_e.hack)!=null&&Sn.can_appraise)&&(0,Be.Rm)()){De.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 wn=ct==null?void 0:ct.score;we.default.confirm({title:"\u8C03\u5206",content:te.createElement("div",null,te.createElement("p",null,"\u5F97\u5206\uFF1A",ct==null?void 0:ct.score,"/",ct==null?void 0:ct.total_score),te.createElement("p",null,"\u8C03\u5206\uFF1A",te.createElement(ke.Z,{min:0,max:ct==null?void 0:ct.total_score,defaultValue:ct==null?void 0:ct.score,onChange:ha=>{wn=ha}}))),okText:"\u786E\u8BA4",onOk:()=>Ae(void 0,null,function*(){(yield(0,oe.ZP)(`/api/courses/${jt==null?void 0:jt.coursesId}/homework_commons/update_hack_score`,{method:"put",body:{course_id:jt==null?void 0:jt.coursesId,hack_user_code_id:ct==null?void 0:ct.hack_user_id,score:wn}})).status===0&&(De.ZP.success("\u8C03\u5206\u6210\u529F"),qe({type:"shixunHomeworks/setActionTabs",payload:{}}),qe({type:"shixunHomeworks/getShixunWorkReports",payload:be({},jt)}))}),cancelText:"\u53D6\u6D88"})},type:"primary"},"\u8C03\u5206"),(0,Be.GJ)()&<!="shixunWorkReport"&&te.createElement(pe.ZP,{onClick:()=>{var _e;if(!((_e=cn.AssistantObject.hack)!=null&&_e.can_appraise)&&(0,Be.Rm)()){De.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}qe({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:lt.user_id,type:"1",language:ct==null?void 0:ct.language,v:mt,data:be({},lt)}}})}},"\u70B9\u8BC4\u4EE3\u7801"))),te.createElement(Te.ZP,{height:300,language:ct==null?void 0:ct.language,value:ct!=null&&ct.code?me.Base64.decode(ct==null?void 0:ct.code):"",autoHeight:rt,theme:"default",options:Ne}),((ct==null?void 0:ct.comment)||(ct==null?void 0:ct.hidden_comment))&&te.createElement("div",null,te.createElement(ie.Z,{align:"middle",style:{borderTop:"1px solid #eee"}},te.createElement(We.Z,{flex:1},te.createElement("h1",{className:ze.title},"\u70B9\u8BC4\u5185\u5BB9")),te.createElement(We.Z,{className:"pr30"},(0,Be.GJ)()&&te.createElement(pe.ZP,{onClick:()=>Ae(void 0,null,function*(){we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:te.createElement(E.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return Ae(this,null,function*(){(yield(0,b.gZ)({comment_id:ct==null?void 0:ct.comment_id,homeworkId:jt.homeworkId,type:"hack"})).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),qe({type:"shixunHomeworks/getShixunWorkReports",payload:be({},jt)}))})}})})},te.createElement(z.Z,null),"\u5220\u9664"))),te.createElement(Me.Z,{style:{margin:0}}),(ct==null?void 0:ct.comment)&&te.createElement("aside",{className:"pl30 pr30 mt20"},te.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),te.createElement("br",null),te.createElement(y.Z,{value:ct==null?void 0:ct.comment})),(ct==null?void 0:ct.hidden_comment)&&te.createElement("aside",{className:"pl30 pr30 mt20"},te.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),te.createElement("br",null),te.createElement(y.Z,{value:ct==null?void 0:ct.hidden_comment}))))}},52765:function(ft,st,ee){"use strict";ee.r(st),ee.d(st,{default:function(){return be}});var x=ee(67294),de=ee(35973),pe=ee(66368),De=ee(71577),we=ee(28452),ke=ee(52262),ie=ee(33170),We=ee(26194),Me=ee(45160),Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAWCAYAAAAvg9c4AAAAAXNSR0IArs4c6QAABPdJREFUSEullWloHGUYx//vzO7sHDuzm93sZpM2l/SgRyK7xSYxrfYgbdUq6JcixXqAUrxItGAVMT1A+kH7Re1WWppa6afiAYJIi7ZB07vkIARzVJqYbJMmu90zszOzM6/MVEXQotR3mPky8/7e//N7ZuYl+J+jt7fX7/f7i/X19cU/UORemZRSZnBwsKNQKLztdrtHOI57sqGhYcbm3ROUUsoOD4++Mz9f2CtJItE0DaVSqTMWi+27Jyil1DM0NLTfsmgHpZbLhthQSmlfTU3NmkgkUvjPSSmlZGRkZI2maZ2mWdpAGBehpgnd0KBpOkzTLPn9/gei0Wjfv0JHR0cXGpq2xTDNHZTSJsu0OJNaIIRFUc07KXXdgGVZCAQCL7e0tMT/Br3ja3iRaZptlmU9YVHayhBGoAApGTpKhgHCsFCLRaRvp+yEtk9QaiEYDHy0cWPb639CbdjAwADP8/zRkmk9BYADIU4nLUqdycX5Agxdh4cXkLh5E8m5WTD2A4SAZVmEwxVnNm3a9AiJx+MrdSI8nslm25YtqlMaVi6LWab1+2IUFIB9NXQDuUwapmFAUnwYHBhAOp0Ex3nAcRx4QUA4FL62ecuWVnL01Om8V1YkXdewpMoLn6zYC4NhGLhcLng4t4OdnEognUqCIQSSJOPipYvI5gsQBBGyV4KiyAgFgz83NDauImevDtFUJo+ZqXGsW7UcvjK/zQDDEBBCHF+pZBKTU1NOl1mWgYfnMTNzy1FTWbUA6UzWuVce9N2QRKmRfP3d9zSRLOBS9xlsbVsLv893p2TLcjzqhgGtqEEvGWAI47izyx27ft2ppq6uHpIoIFcowqfIkz7Fu4LEjxyhVUtX4cuTn2FxdQiiKILYKe3DbpTtwu4Fw4Bzu8F5PGAZFqnbKWdhRVEQDkegm5YNnVhYFVlJ9uzbb2x++iXXxwf2o0Jxg+N5J4ENs/0RlgVLCFwuNyRJhCAITgX+sgCyubzjXZK88Hq9ttuRMr8SI2d+OHdCqFz8zMkjh1SeqqXy8qBsGIbj0rQs56UGpXCxLCRZhiLLmFdVyF4FmmFAUXzw+RRIogSvV+xdUFX5ILl07drBIh/quHD2bNeK+vLLum7ENXUe+Xweqqo6p6brMEsleDweJ1Eul0MgWA7Too6uYCAAryxDEvlzzU1NbeTClSsHDTHScaG7+/D6pmU9k2nt8/TU+NUl91UP53K5dblcrjKfzzOFQsFpmu01k8mgrCwAC4yjygZXVkYgy9LR1paWF0n3jz0fMMGaN8+f6z68oXnp+V/T1omRgd7ju9t3Pp9IJMTZ2dmHMpnMtnQ6/Wg2mw2pqkqy2SzcbjdcnAiOczuJIxUhVIRCu5qbV39Ivj19+oBSvfytyz/1HG5trLs4NU+O3xge6npj53Mv/PUHPj09HR4bG9s+NzfXnkymatSiCoEX4C8rA+fh4eE4GioPrI1Goz3k1Fdf7KlcEuvsu3z1mN9jjY3fSr/vgX5oV/trr/zTrtDf379wYmIinkqlHrMsi8iyDFnxQRCFsdrq6tW1tbW3yXt79z77y42J44KL5FPJOeJiXUb0/oYdu9/t/OZuW42tpa+v75iqqtvy+RwqwiEIvPjJw+vXv+q8011dXXx/f/9WWZaVQCBwE0Bfe3v7NCHE/rDuOmzw+Pj4p4lEYruLZWeqa2o2xmKxIXvCb487Tm3fsdeDAAAAAElFTkSuQmCC",ze=ee(96074),Be=ee(85725),me=ee(11320),oe=(ye,Ae,Ne)=>new Promise((Qe,Le)=>{var Ge=qe=>{try{Ke(Ne.next(qe))}catch(lt){Le(lt)}},He=qe=>{try{Ke(Ne.throw(qe))}catch(lt){Le(lt)}},Ke=qe=>qe.done?Qe(qe.value):Promise.resolve(qe.value).then(Ge,He);Ke((Ne=Ne.apply(ye,Ae)).next())});const a=({user:ye,item:Ae,getdata:Ne,params:Qe})=>{var Le;const Ge=(0,x.useRef)(),[He,Ke]=(0,x.useState)(),[qe,lt]=(0,x.useState)(!0);return(0,x.useEffect)(()=>{if(!Ge.current)return;function mt(){var cn;let rt=new ResizeObserver(yt=>{for(let Lt of yt)console.log("----",Lt,yt),Ke(Lt.target.offsetHeight>=52)});return rt.observe((cn=Ge.current)==null?void 0:cn.firstElementChild),rt}const Vt=mt();return()=>{var cn,rt;(cn=Ge.current)!=null&&cn.firstElementChild&&Vt.unobserve((rt=Ge.current)==null?void 0:rt.firstElementChild)}},[Ge.current]),x.createElement("div",{onClick:()=>{de.history.push(`/classrooms/${Qe.coursesId}/program_homework/${Qe.categoryId}/answer/${Ae.id}/detail`)},style:{padding:"0px 20px",cursor:"pointer"}},x.createElement("div",{className:Me.Z.titles,style:{fontWeight:600,fontSize:18,color:"#000000"}},Ae.name),x.createElement("div",{style:{display:"flex",marginTop:10}},x.createElement("div",{style:{flex:1,display:"flex",alignItems:"center",color:"#5F6368"}},x.createElement("img",{style:{width:24,borderRadius:50},src:`${me.Z.IMG_SERVER}/images/${Ae.author.image_url}`}),x.createElement("span",{style:{margin:"0px 12px 0px 8px"}},(Le=Ae==null?void 0:Ae.author)==null?void 0:Le.name),x.createElement("span",null,"\u53D1\u8868\u4E8E",Ae.created_at)),x.createElement("div",null,x.createElement("span",{style:{color:"#5F6368",cursor:"pointer"},onClick:()=>{}},"\u56DE\u590D\uFF08",(Ae==null?void 0:Ae.descendants_count)||0,"\uFF09"),(0,ke.eB)()&&x.createElement("span",{onClick:mt=>oe(void 0,null,function*(){mt.stopPropagation(),(yield(0,ie.ZP)(`/api/hack_messages/${Ae.id}/update_public`,{method:"post"})).status===0&&Ne()}),style:{color:"#44D7B6",cursor:"pointer",marginLeft:20}},Ae.is_public?"\u53D6\u6D88\u516C\u5F00":"\u516C\u5F00"))),x.createElement("div",{ref:Ge,style:{margin:"15px 0px",maxHeight:qe?52:"",overflow:"hidden"}},x.createElement(Be.Z,{style:{color:"#434D6C",fontSize:14},value:Ae.content})),(Ae==null?void 0:Ae.hack_identifier)&&x.createElement("span",{onClick:mt=>oe(void 0,null,function*(){var Vt;if(mt.stopPropagation(),(0,ke.dE)())return;let cn=yield(0,ie.ZP)(`/api/problems/${Ae==null?void 0:Ae.hack_identifier}/start.json`,{method:"get",params:{hack_user_id:(Vt=Ae==null?void 0:Ae.author)==null?void 0:Vt.id}});cn&&(window.open(`/myproblems/${cn==null?void 0:cn.identifier}?type=1`),localStorage.setItem("program_homework",[Qe.coursesId,Qe.categoryId]))}),className:Me.Z.tips},Ae==null?void 0:Ae.hack_name),He&&x.createElement("div",{onClick:mt=>{mt.stopPropagation(),lt(!qe)}},x.createElement(ze.Z,{dashed:!1,className:"",style:{cursor:"pointer"}},x.createElement("a",{className:`font14 ${Me.Z.color999}`},qe?"\u9605\u8BFB\u5168\u6587 ":"\u6536\u8D77\u5168\u6587 ",x.createElement("i",{className:`iconfont font14 ${qe?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-"}`})))))};var y=(0,de.connect)(({user:ye})=>({user:ye}))(a),b=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ae=(ye,Ae,Ne)=>Ae in ye?b(ye,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):ye[Ae]=Ne,le=(ye,Ae)=>{for(var Ne in Ae||(Ae={}))ne.call(Ae,Ne)&&ae(ye,Ne,Ae[Ne]);if(te)for(var Ne of te(Ae))re.call(Ae,Ne)&&ae(ye,Ne,Ae[Ne]);return ye},he=(ye,Ae)=>E(ye,z(Ae)),ve=(ye,Ae,Ne)=>new Promise((Qe,Le)=>{var Ge=qe=>{try{Ke(Ne.next(qe))}catch(lt){Le(lt)}},He=qe=>{try{Ke(Ne.throw(qe))}catch(lt){Le(lt)}},Ke=qe=>qe.done?Qe(qe.value):Promise.resolve(qe.value).then(Ge,He);Ke((Ne=Ne.apply(ye,Ae)).next())});const Ce=({user:ye})=>{var Ae,Ne,Qe,Le;let[Ge,He]=(0,x.useState)(he(le({},(0,de.useParams)()),{page:1,per_page:10,type:1,sort_by:"",course_group:(0,ke.dE)()?[ye.userInfo.course.course_group_id]:[]}));const[Ke,qe]=(0,x.useState)([]);(0,x.useEffect)(()=>{lt()},[]);function lt(){return ve(this,null,function*(){let mt=yield(0,ie.ZP)(`/api/homework_commons/${Ge.categoryId}/hack_messages`,{method:"get",params:he(le({},Ge),{type:1})});qe(mt)})}return x.createElement("div",{style:{width:1200,margin:"0px auto"}},x.createElement("div",{style:{marginTop:10,display:"flex"}},x.createElement("div",{style:{flex:1,marginRight:30,background:"#fff"}},x.createElement(pe.default,{tabBarStyle:{padding:"0px 10px"},style:{width:"850px"},tabBarExtraContent:(0,ke.dE)()&&x.createElement(De.ZP,{type:"primary",style:{width:88},onClick:()=>{de.history.push(`/classrooms/${Ge.coursesId}/program_homework/${Ge.categoryId}/answer/add`)}},"\u53D1\u8868\u7B54\u7591 "),onChange:mt=>{mt==="1"?Ge.sort_by="":Ge.sort_by="created_at",He(le({},Ge)),lt()}},x.createElement(pe.default.TabPane,{key:"1",tab:"\u6700\u65B0\u56DE\u590D"}),x.createElement(pe.default.TabPane,{key:"2",tab:"\u6700\u65B0\u53D1\u8868"})),((Ae=Ke==null?void 0:Ke.data)==null?void 0:Ae.length)<=0&&x.createElement(We.Z,{customText:"\u6682\u65E0\u8BA8\u8BBA"}),(Ne=Ke==null?void 0:Ke.data)==null?void 0:Ne.map(mt=>x.createElement(y,{item:mt,params:Ge,getdata:lt})),x.createElement("div",{style:{width:"100%",textAlign:"center",marginTop:10}},x.createElement(we.Z,{current:Ge.page,pageSize:Ge.per_page,total:Ke==null?void 0:Ke.count,hideOnSinglePage:!0,onChange:(mt,Vt)=>{Ge.page=mt,Ge.per_page=Vt,He(le({},Ge)),lt()}}))),x.createElement("div",{className:Me.Z.right,style:{width:300,height:"100%"}},x.createElement("div",{style:{display:"flex"}},x.createElement("div",{style:{flex:1,display:"flex",alignItems:"center"}},x.createElement("span",{style:{marginRight:3,fontSize:20,fontWeight:600,color:"#000"}},"\u5E7F\u64AD"),x.createElement("img",{width:21,src:Te})," "),(0,ke.GJ)()&&x.createElement(De.ZP,{type:"primary",onClick:()=>{de.history.push(`/classrooms/${Ge.coursesId}/program_homework/${Ge.categoryId}/answer/add`)}},"\u53D1\u5E03\u5E7F\u64AD")),((Qe=Ke==null?void 0:Ke.radio_messages)==null?void 0:Qe.length)<=0&&x.createElement(We.Z,null),(Le=Ke==null?void 0:Ke.radio_messages)==null?void 0:Le.map(mt=>x.createElement("div",{onClick:()=>{de.history.push(`/classrooms/${Ge.coursesId}/program_homework/${Ge.categoryId}/answer/${mt.id}/detail`)},style:{marginTop:30,cursor:"pointer"}},x.createElement("div",{className:Me.Z.title,style:{fontSize:"16px",fontWeight:600}},x.createElement("span",{style:{color:(mt==null?void 0:mt.message_type)===2?"#4C7BE6":"#E17E7E"}},(mt==null?void 0:mt.message_type)===2?"\u3010\u9898\u89E3\u3011":"\u3010\u901A\u77E5\u3011"),x.createElement("span",{title:mt.name},mt.name)),x.createElement("div",{style:{marginTop:15,color:"#5F6368"}},"\u53D1\u8868\u4E8E",mt.created_at))))))};var be=(0,de.connect)(({user:ye})=>({user:ye}))(Ce)},42469:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return he}});var x=ee(67294),de={anchorNavigation:"anchorNavigation___qD4R0",tabs:"tabs___hVMvA",box:"box___Qz1lW",head:"head___WZZdl"},pe=Object.defineProperty,De=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,ie=(ve,Ce,be)=>Ce in ve?pe(ve,Ce,{enumerable:!0,configurable:!0,writable:!0,value:be}):ve[Ce]=be,We=(ve,Ce)=>{for(var be in Ce||(Ce={}))we.call(Ce,be)&&ie(ve,be,Ce[be]);if(De)for(var be of De(Ce))ke.call(Ce,be)&&ie(ve,be,Ce[be]);return ve};const Me=ve=>React.createElement("svg",We({width:17,height:18,xmlns:"http://www.w3.org/2000/svg"},ve),React.createElement("title",null,"\u88C5\u9970\u70B9"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"100%",y1:"50%",x2:"0%",y2:"50%",id:"dot_svg__a"},React.createElement("stop",{stopColor:"#5EC7EA",offset:"0%"}),React.createElement("stop",{stopColor:"#3055D0",offset:"100%"}))),React.createElement("g",{transform:"translate(0 -1)",fill:"none",fillRule:"evenodd"},React.createElement("path",{d:"m4.342 2.005 11.896 7.138a1 1 0 0 1 0 1.714L4.342 17.995a1 1 0 0 1-1.378-1.362L6.834 10l-3.87-6.633a1 1 0 0 1 1.378-1.362Z",fill:"url(#dot_svg__a)"}),React.createElement("circle",{fill:"#3061D0",cx:2,cy:10,r:2})));var Te="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxMDAlIiB5MT0iNTAlIiB4Mj0iMCUiIHkyPSI1MCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjNUVDN0VBIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzMwNTVEMCIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAtMSkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0ibTQuMzQyIDIuMDA1IDExLjg5NiA3LjEzOGExIDEgMCAwIDEgMCAxLjcxNEw0LjM0MiAxNy45OTVhMSAxIDAgMCAxLTEuMzc4LTEuMzYyTDYuODM0IDEwbC0zLjg3LTYuNjMzYTEgMSAwIDAgMSAxLjM3OC0xLjM2MloiIGZpbGw9InVybCgjYSkiLz48Y2lyY2xlIGZpbGw9IiMzMDYxRDAiIGN4PSIyIiBjeT0iMTAiIHI9IjIiLz48L2c+PC9zdmc+",ze=ee(66368),Be=ee(94184),me=ee.n(Be),oe=ee(67294),a=Object.defineProperty,y=Object.defineProperties,b=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(ve,Ce,be)=>Ce in ve?a(ve,Ce,{enumerable:!0,configurable:!0,writable:!0,value:be}):ve[Ce]=be,re=(ve,Ce)=>{for(var be in Ce||(Ce={}))z.call(Ce,be)&&ne(ve,be,Ce[be]);if(E)for(var be of E(Ce))te.call(Ce,be)&&ne(ve,be,Ce[be]);return ve},ae=(ve,Ce)=>y(ve,b(Ce)),he=({dataSource:ve,className:Ce,style:be})=>{const[ye,Ae]=(0,x.useState)([]),[Ne,Qe]=(0,x.useState)(""),Le=(0,x.useRef)("");(0,x.useEffect)(()=>{if(ve!=null&&ve.length){const Ke=String(Math.random()).slice(-6),qe=ve.map(lt=>ae(re({},lt),{key:`${Ke}-${lt.key}`}));Ae(qe),Qe(qe[0].key)}},[ve.length]);const Ge=Ke=>{Qe(Ke),Le.current=Ke;const qe=document.getElementById(Ke);if(qe){const lt=qe.getBoundingClientRect().top+window.scrollY-50;window.scrollTo({top:lt,behavior:"smooth"})}},He=()=>{const Ke=ye.map(lt=>document.getElementById(lt.key)),qe=window.innerHeight/2;for(const lt of Ke)if(lt){const mt=lt.getBoundingClientRect();if(mt.top>=0&&mt.top(window.addEventListener("scroll",He),()=>{window.removeEventListener("scroll",He)}),[ye]),oe.createElement("div",{className:me()(de.anchorNavigation,Ce),style:be},oe.createElement(ze.default,{items:ye,tabBarGutter:60,className:de.tabs,activeKey:Ne,onChange:Ge}),ye.map(Ke=>oe.createElement("div",{key:Ke.key,id:Ke.key,className:de.box},oe.createElement("div",{className:de.head},oe.createElement("img",{className:"mr10",src:Te,alt:"Dot"}),Ke.label),oe.createElement("div",{className:de.element},Ke.element))))}},98595:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(14446),pe=ee(2453),De=ee(33170),we=ee(35973),ke=Object.defineProperty,ie=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Te=(a,y,b)=>y in a?ke(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ze=(a,y)=>{for(var b in y||(y={}))We.call(y,b)&&Te(a,b,y[b]);if(ie)for(var b of ie(y))Me.call(y,b)&&Te(a,b,y[b]);return a},Be=(a,y)=>{var b={};for(var E in a)We.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&ie)for(var E of ie(a))y.indexOf(E)<0&&Me.call(a,E)&&(b[E]=a[E]);return b},me=(a,y,b)=>new Promise((E,z)=>{var te=ae=>{try{re(b.next(ae))}catch(le){z(le)}},ne=ae=>{try{re(b.throw(ae))}catch(le){z(le)}},re=ae=>ae.done?E(ae.value):Promise.resolve(ae.value).then(te,ne);re((b=b.apply(a,y)).next())});const oe=a=>{var y=a,{shixunHomeworks:b,dispatch:E}=y,z=Be(y,["shixunHomeworks","dispatch"]);const te=(0,we.useParams)();return x.createElement(de.default,{centered:!0,title:"\u63D0\u793A",open:b.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){(yield(0,De.ZP)(`/api/myshixuns/${b.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:te.coursesId}})).shixun_identifier&&(pe.ZP.success("\u64CD\u4F5C\u6210\u529F"),E({type:"shixunHomeworks/setActionTabs",payload:{}}),E({type:"shixunHomeworks/getWorkList",payload:ze({},b.actionTabs.params)}))}),onCancel:()=>{E({type:"shixunHomeworks/setActionTabs",payload:{}})}},x.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),x.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};st.Z=(0,we.connect)(({shixunHomeworks:a})=>({shixunHomeworks:a}))(oe)},96469:function(ft,st,ee){"use strict";ee.d(st,{n:function(){return Pt},Z:function(){return vn}});var x=ee(67294),de=ee(22150),pe=ee(2453),De=ee(83062),we=ee(14446),ke=ee(68508),ie=ee(84567),We=ee(71230),Me=ee(15746),Te=ee(69677),ze=ee(71577),Be=ee(85418),me=ee(9430),oe=ee(78045),a=ee(31795),y=ee(28452),b=ee(42922),E=ee(53978),z=ee(33863),te=ee(33463),ne=ee(26194),re=ee(28706),ae=ee(98595),le=ee(87995),he=ee(33170),ve=ee(35973),Ce=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ne=(Nt,Tt,St)=>Tt in Nt?Ce(Nt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:St}):Nt[Tt]=St,Qe=(Nt,Tt)=>{for(var St in Tt||(Tt={}))ye.call(Tt,St)&&Ne(Nt,St,Tt[St]);if(be)for(var St of be(Tt))Ae.call(Tt,St)&&Ne(Nt,St,Tt[St]);return Nt},Le=(Nt,Tt)=>{var St={};for(var en in Nt)ye.call(Nt,en)&&Tt.indexOf(en)<0&&(St[en]=Nt[en]);if(Nt!=null&&be)for(var en of be(Nt))Tt.indexOf(en)<0&&Ae.call(Nt,en)&&(St[en]=Nt[en]);return St},Ge=(Nt,Tt,St)=>new Promise((en,Gt)=>{var mn=Un=>{try{xn(St.next(Un))}catch(pa){Gt(pa)}},Qn=Un=>{try{xn(St.throw(Un))}catch(pa){Gt(pa)}},xn=Un=>Un.done?en(Un.value):Promise.resolve(Un.value).then(mn,Qn);xn((St=St.apply(Nt,Tt)).next())});const He=Nt=>{var Tt=Nt,{shixunHomeworks:St,dispatch:en}=Tt,Gt=Le(Tt,["shixunHomeworks","dispatch"]);const mn=(0,ve.useParams)(),[Qn,xn]=(0,x.useState)(!0),[Un,pa]=(0,x.useState)(!1),[Kt]=de.default.useForm(),$t=()=>Ge(void 0,null,function*(){const qt=Kt.getFieldValue();(yield(0,he.ZP)(`/api/homework_commons/${mn.categoryId}/batch_comment.json`,{method:"post",body:{student_work_ids:[...St.actionTabs.selectArrs],cover_all:Qn,hidden_comment:qt.hidden_comment,comment:qt.comment}})).status===0&&(pe.ZP.success("\u8BC4\u9605\u6210\u529F"),Kt.resetFields(),en({type:"shixunHomeworks/setActionTabs",payload:{}}),en({type:"shixunHomeworks/getWorkList",payload:Qe({},St.actionTabs.params)}))});return x.createElement(x.Fragment,null,x.createElement(we.default,{centered:!0,title:"\u4E00\u952E\u70B9\u8BC4",open:St.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Ge(void 0,null,function*(){const qt=Kt.getFieldValue();JSON.stringify(qt)==="{}"||qt.hidden_comment===""&&qt.comment===""?pa(!0):St.workList.partial_comment?en({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",selectArrs:St.actionTabs.selectArrs,params:St.actionTabs.params}}):$t()}),onCancel:()=>{en({type:"shixunHomeworks/setActionTabs",payload:{}})}},x.createElement(de.default,{form:Kt,onChange:()=>{Un&&pa(!1)}},x.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),x.createElement(de.default.Item,{name:"comment"},x.createElement(Te.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),x.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),x.createElement(de.default.Item,{name:"hidden_comment"},x.createElement(Te.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),Un&&x.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")),x.createElement(we.default,{centered:!0,title:x.createElement("span",null,x.createElement(le.Z,{className:"c-orange mr20"}),"\u63D0\u793A"),open:St.actionTabs.key==="\u4E00\u952E\u70B9\u8BC4\u786E\u8BA4",okText:"\u786E\u5B9A\u70B9\u8BC4",cancelText:"\u653E\u5F03\u70B9\u8BC4",onOk:()=>{$t()},onCancel:()=>{en({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400},x.createElement("div",{className:"tc"},x.createElement("p",null,"\u90E8\u5206\u5B66\u751F\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF0C\u662F\u5426\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4\u5185\u5BB9\uFF1F"),x.createElement("p",null,x.createElement(oe.ZP.Group,{onChange:qt=>{xn(qt.target.value)},value:Qn},x.createElement(oe.ZP,{value:!0},"\u8986\u76D6\u5DF2\u6709\u70B9\u8BC4"),x.createElement(oe.ZP,{value:!1},"\u8DF3\u8FC7\u5DF2\u6709\u70B9\u8BC4"))))))};var Ke=(0,ve.connect)(({shixunHomeworks:Nt})=>({shixunHomeworks:Nt}))(He),qe=ee(86763),lt=ee(52262),mt={wrap:"wrap___altfw",maxWidth70:"maxWidth70___Q4NoO",maxWidth80:"maxWidth80___lwsmt",maxWidth100:"maxWidth100___Wnsw8",maxWidth110:"maxWidth110___zQh0P",maxWidth120:"maxWidth120___gjwfa",reviewStatusTooltip:"reviewStatusTooltip___um7Rt",color32C:"color32C___GIjgW",MdEditor:"MdEditor___OuyKH",tr1:"tr1___nwwbX",TableDom:"TableDom___pl59W"},Vt=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,yt=(Nt,Tt)=>{var St={};for(var en in Nt)cn.call(Nt,en)&&Tt.indexOf(en)<0&&(St[en]=Nt[en]);if(Nt!=null&&Vt)for(var en of Vt(Nt))Tt.indexOf(en)<0&&rt.call(Nt,en)&&(St[en]=Nt[en]);return St},Lt=(Nt,Tt,St)=>new Promise((en,Gt)=>{var mn=Un=>{try{xn(St.next(Un))}catch(pa){Gt(pa)}},Qn=Un=>{try{xn(St.throw(Un))}catch(pa){Gt(pa)}},xn=Un=>Un.done?en(Un.value):Promise.resolve(Un.value).then(mn,Qn);xn((St=St.apply(Nt,Tt)).next())});const ct=Nt=>{var Tt=Nt,{shixunHomeworks:St,dispatch:en}=Tt,Gt=yt(Tt,["shixunHomeworks","dispatch"]),mn,Qn,xn,Un;const pa=(0,ve.useParams)(),[Kt,$t]=(0,x.useState)(!1),[qt,sa]=(0,x.useState)((Qn=(mn=St.actionTabs.selectArrs)==null?void 0:mn.data)==null?void 0:Qn.name),[ra]=de.default.useForm();(0,x.useEffect)(()=>{var Oa,Ta,Pr,zr,Na,Xe;St.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&ra.setFieldsValue({comment:(Ta=(Oa=St.actionTabs.selectArrs)==null?void 0:Oa.data)==null?void 0:Ta.work_comment,hidden_comment:(zr=(Pr=St.actionTabs.selectArrs)==null?void 0:Pr.data)==null?void 0:zr.work_comment_hidden}),sa((Xe=(Na=St.actionTabs.selectArrs)==null?void 0:Na.data)==null?void 0:Xe.name)},[St.actionTabs.key]);const Hn=()=>Lt(void 0,null,function*(){var Oa,Ta;const Pr=ra.getFieldValue();if((yield(0,he.ZP)(`/api/student_works/${(Ta=(Oa=St.actionTabs.selectArrs)==null?void 0:Oa.data)==null?void 0:Ta.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Pr.hidden_comment,comment:Pr.comment}})).status===0)return pe.ZP.success("\u8BC4\u9605\u6210\u529F"),ra.resetFields(),en({type:"shixunHomeworks/setActionTabs",payload:{}}),en({type:"shixunHomeworks/getWorkList",payload:pa})});return x.createElement(x.Fragment,null,x.createElement(we.default,{centered:!0,title:(Un=(xn=St.actionTabs.selectArrs)==null?void 0:xn.data)!=null&&Un.work_comment_hidden?"\u66F4\u6539"+qt+"\u70B9\u8BC4":qt+"\u70B9\u8BC4",open:St.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Lt(void 0,null,function*(){const Oa=ra.getFieldValue();JSON.stringify(Oa)==="{}"||Oa.hidden_comment===""&&Oa.comment===""?$t(!0):Hn()}),onCancel:()=>{en({type:"shixunHomeworks/setActionTabs",payload:{}})}},x.createElement(de.default,{form:ra,onChange:()=>{Kt&&$t(!1)}},x.createElement("p",null,"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),x.createElement(de.default.Item,{name:"comment"},x.createElement(Te.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8})),x.createElement("p",null,"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),x.createElement(de.default.Item,{name:"hidden_comment"},x.createElement(Te.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:8}))),Kt&&x.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A")))};var Ft=(0,ve.connect)(({shixunHomeworks:Nt})=>({shixunHomeworks:Nt}))(ct),jt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable,wn=(Nt,Tt)=>{var St={};for(var en in Nt)_e.call(Nt,en)&&Tt.indexOf(en)<0&&(St[en]=Nt[en]);if(Nt!=null&&jt)for(var en of jt(Nt))Tt.indexOf(en)<0&&Sn.call(Nt,en)&&(St[en]=Nt[en]);return St},ha=(Nt,Tt,St)=>new Promise((en,Gt)=>{var mn=Un=>{try{xn(St.next(Un))}catch(pa){Gt(pa)}},Qn=Un=>{try{xn(St.throw(Un))}catch(pa){Gt(pa)}},xn=Un=>Un.done?en(Un.value):Promise.resolve(Un.value).then(mn,Qn);xn((St=St.apply(Nt,Tt)).next())});const Mn=Nt=>{var Tt=Nt,{shixunHomeworks:St,dispatch:en}=Tt,Gt=wn(Tt,["shixunHomeworks","dispatch"]);const mn=(0,ve.useParams)(),[Qn,xn]=(0,x.useState)([]),[Un,pa]=(0,x.useState)([]);(0,x.useEffect)(()=>{St.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B"&&Kt()},[St.actionTabs.key]);function Kt(){return ha(this,null,function*(){const qt=yield(0,he.ZP)(`/api/homework_commons/${mn.categoryId}/code_quality_analyses/group_list.json`,{method:"GET",params:{page:1,limit:200}});xn(qt)})}const $t=[{title:"\u5206\u73ED\u60C5\u51B5",dataIndex:"name"},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u68C0\u6D4B\u8FDB\u5EA6",dataIndex:"status"},{title:"\u4E0A\u6B21\u8BC4\u5206\u65F6\u95F4",dataIndex:"last_analysis_time"}];return x.createElement(x.Fragment,null,x.createElement(we.default,{centered:!0,title:"\u4EE3\u7801\u8D28\u91CF\u8BC4\u5206",open:St.actionTabs.key==="\u8D28\u91CF\u68C0\u6D4B",width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ha(void 0,null,function*(){const qt=yield(0,he.ZP)(`/api/homework_commons/${mn.categoryId}/code_quality_analyses.json`,{method:"POST",body:{group_ids:Un}});(qt==null?void 0:qt.status)===0&&(ve.history.replace(`/classrooms/${mn.coursesId}/shixun_homework/${mn.categoryId}/detail?tabs=4`),window.location.reload(),en({type:"shixunHomeworks/setActionTabs",payload:{}}),pa([]))}),onCancel:()=>{pa([]),en({type:"shixunHomeworks/setActionTabs",payload:{}})}},x.createElement(me.default,{rowSelection:{type:"checkbox",onChange:(qt,sa)=>{pa([...qt])},selectedRowKeys:Un,getCheckboxProps:qt=>({disabled:qt.status==="\u8FDB\u884C\u4E2D"||qt.works_count===0})},rowKey:qt=>qt.key||qt.id,scroll:{y:300},pagination:!1,columns:$t,dataSource:Qn==null?void 0:Qn.group_list})))};var at=(0,ve.connect)(({shixunHomeworks:Nt})=>({shixunHomeworks:Nt}))(Mn),ut=ee(35567),dt=ee(98769),At=Object.defineProperty,Et=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Ot=(Nt,Tt,St)=>Tt in Nt?At(Nt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:St}):Nt[Tt]=St,bt=(Nt,Tt)=>{for(var St in Tt||(Tt={}))gt.call(Tt,St)&&Ot(Nt,St,Tt[St]);if(Et)for(var St of Et(Tt))Qt.call(Tt,St)&&Ot(Nt,St,Tt[St]);return Nt},rn=(Nt,Tt,St)=>new Promise((en,Gt)=>{var mn=Un=>{try{xn(St.next(Un))}catch(pa){Gt(pa)}},Qn=Un=>{try{xn(St.throw(Un))}catch(pa){Gt(pa)}},xn=Un=>Un.done?en(Un.value):Promise.resolve(Un.value).then(mn,Qn);xn((St=St.apply(Nt,Tt)).next())});const Xt=({shixunHomeworks:Nt,dispatch:Tt,isShow:St,setIsShow:en,item:Gt,coursesId:mn,categoryId:Qn})=>{const[xn,Un]=(0,x.useState)({page:1,limit:10}),[pa,Kt]=(0,x.useState)([]),[$t,qt]=(0,x.useState)(!1);(0,x.useEffect)(()=>{St&&sa()},[St]);function sa(){return rn(this,null,function*(){qt(!0);const Hn=yield(0,he.ZP)(`/api/student_works/${Gt.id}/game_details.json`,{method:"get",params:bt({},xn)});qt(!1),Hn.status===0&&Kt(Hn==null?void 0:Hn.data)})}const ra=[{title:"\u5E8F\u53F7",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:(Hn,Oa,Ta)=>x.createElement("span",{style:{color:"#000"}},xn.limit*(xn.page-1)+Ta+1)},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(Hn,Oa,Ta)=>x.createElement("span",{style:{color:"#000"}},Hn)},{title:"\u901A\u5173\u8BE6\u60C5",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:(Hn,Oa,Ta)=>x.createElement("span",null,Hn==0?"\u672A\u901A\u5173":Hn==4?"\u622A\u6B62\u540E\u901A\u5173":"\u5DF2\u901A\u5173")},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:(Hn,Oa,Ta)=>x.createElement("span",{style:{color:"#333"}},Hn)},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:(Hn,Oa,Ta)=>x.createElement("span",{style:{color:"#333"}},Hn)}];return x.createElement(x.Fragment,null,x.createElement(we.default,{centered:!0,title:"\u901A\u5173\u60C5\u51B5",open:St,width:700,footer:null,maskClosable:!1,onCancel:()=>{xn.page=1,xn.limit=10,Un(bt({},xn)),en(!1)}},x.createElement("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"}},x.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},x.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u751F\u59D3\u540D"),x.createElement("span",{title:Gt==null?void 0:Gt.user_name,style:{color:"#232B40"}},Gt==null?void 0:Gt.user_name)),x.createElement("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},x.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u5B66\u53F7"),x.createElement("span",{title:Gt==null?void 0:Gt.student_id,style:{color:"#232B40"}},(Gt==null?void 0:Gt.student_id)||"--")),x.createElement("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1}},x.createElement("span",{style:{color:"#666",marginRight:"10px"}},"\u73ED\u7EA7"),x.createElement("span",{title:Gt==null?void 0:Gt.group_name,style:{color:"#232B40"}},(Gt==null?void 0:Gt.group_name)||"--"))),x.createElement(me.default,{scroll:{y:380},columns:ra,loading:$t,style:{marginBottom:xn.limit>(pa==null?void 0:pa.count)?"16px":"0"},dataSource:pa.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:xn.limit,current:xn.page,position:["bottomRight"],onChange:(Hn,Oa)=>{xn.page=Hn,xn.limit=Oa,Un(bt({},xn)),sa()},total:pa==null?void 0:pa.count,showTotal:(Hn,Oa)=>x.createElement("span",null,"\u5171",x.createElement("span",{style:{color:"#165DFF"}}," ",Hn," "),"\u6761\u6570\u636E")}})))};var $e=(0,ve.connect)(({shixunHomeworks:Nt})=>({shixunHomeworks:Nt}))(Xt),Re=ee(67294),Ln=Object.defineProperty,xe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,et=(Nt,Tt,St)=>Tt in Nt?Ln(Nt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:St}):Nt[Tt]=St,Ue=(Nt,Tt)=>{for(var St in Tt||(Tt={}))je.call(Tt,St)&&et(Nt,St,Tt[St]);if(xe)for(var St of xe(Tt))Ht.call(Tt,St)&&et(Nt,St,Tt[St]);return Nt},Ct=(Nt,Tt,St)=>new Promise((en,Gt)=>{var mn=Un=>{try{xn(St.next(Un))}catch(pa){Gt(pa)}},Qn=Un=>{try{xn(St.throw(Un))}catch(pa){Gt(pa)}},xn=Un=>Un.done?en(Un.value):Promise.resolve(Un.value).then(mn,Qn);xn((St=St.apply(Nt,Tt)).next())});const Pt=({value:Nt,placeholder:Tt=""})=>{if(Nt==null||Nt==="")return Re.createElement("span",null,Tt);{const St=Number(Nt);if(St>=80)return Re.createElement("span",{style:{color:"#009C0F"}},St);if(St<80&&St>=60)return Re.createElement("span",{style:{color:"#FA6400"}},St);if(St<60)return Re.createElement("span",{style:{color:"#E30000"}},St)}},Zt=({shixunHomeworks:Nt,classroomList:Tt,globalSetting:St,loading:en,dispatch:Gt,setExportParams:mn,user:Qn})=>{var xn,Un,pa,Kt,$t,qt,sa,ra,Hn,Oa,Ta,Pr,zr;const Na=(0,ve.useParams)(),[Xe,Bt]=(0,x.useState)(Ue(Ue({},{page:1,limit:20,order:"work_score",b_order:"desc"}),Na)),[xt]=de.default.useForm(),[Tn,pn]=(0,x.useState)(),[_n,Qr]=(0,x.useState)({}),[Ra,br]=(0,x.useState)([]),[Vr,mo]=(0,x.useState)(!1),[Xn,ur]=(0,x.useState)([]),[pt,Jt]=(0,x.useState)(!1),[Ut,dn]=(0,x.useState)(),[jn,tn]=(0,x.useState)(1),[Yn,Pn]=(0,x.useState)(),[ua,Ha]=(0,x.useState)(),[ir,Mr]=(0,x.useState)(),[Hr,oo]=(0,x.useState)(),[zo,Kn]=(0,x.useState)(),[Br,To]=(0,x.useState)(!1),[oa,Za]=(0,x.useState)(!1),[mr,da]=(0,x.useState)(),io=(0,ve.useLocation)();(0,x.useEffect)(()=>(fr(),()=>{Qr([]),br([])}),[Xe.coursesId]),(0,x.useEffect)(()=>{var kn;const wa=JSON.parse(JSON.stringify(Nt.workList));!((kn=wa==null?void 0:wa.student_works)!=null&&kn.length)&&(wa!=null&&wa.id)?(wa.student_works=[Ue({},wa)],Qr(wa)):(wa!=null&&wa.id&&br([Ue(Ue({},wa),{number:"\u6211"})]),Qr(Ue({},wa)))},[Nt.workList]);const fr=kn=>(mn(Ue({},Xe)),Gt({type:"shixunHomeworks/getWorkList",payload:Xe}));(0,x.useEffect)(()=>{Gt({type:"user/getUserInfo",payload:{course_id:Xe.coursesId}})},[]);const wo=()=>Ct(void 0,null,function*(){const kn=yield(0,qe.Uc)({categoryId:Na.categoryId});pn(kn==null?void 0:kn.update_score)}),So=()=>Ct(void 0,null,function*(){Gt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6210\u7EE9\u8BA1\u7B97\u4E2D\uFF0C\u8BF7\u7A0D\u5019..."}});const kn=yield(0,qe.Vs)({categoryId:Na.categoryId});Gt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),(kn==null?void 0:kn.status)===0&&(pe.ZP.success(kn==null?void 0:kn.message),fr())}),Ro=()=>{Xe.page=1;const kn=Object.assign({},xt.getFieldsValue());delete Xe.course_group,delete Xe.teacher_comment,Object.keys(kn).map(function(wa){var lo;switch(wa){case"task_status":kn[wa].includes("all")||!kn[wa].length?(delete Xe.work_status,xt.setFieldsValue({task_status:"all"})):(Xe.work_status=kn[wa],xt.setFieldsValue({task_status:Xe.work_status}));break;case"course_group_info":kn[wa].includes("all")||!kn[wa].length?(delete Xe.course_group,xt.setFieldsValue({course_group_info:"all"})):(Xe.course_group=kn[wa],xt.setFieldsValue({course_group_info:Xe.course_group}));break;case"teacher_comment":kn[wa].includes("all")||!kn[wa].length?(delete Xe.teacher_comment,xt.setFieldsValue({teacher_comment:"all"})):(Xe.teacher_comment=((lo=kn[wa])==null?void 0:lo.length)===1?Number(kn[wa][0]):"",xt.setFieldsValue({teacher_comment:kn[wa]}));break}}),fr()};(0,x.useEffect)(()=>{document.getElementById("divhe")&&document.getElementById("divhe").scrollHeight>47&&(Kn(47),To(!0))},[document.getElementById("divhe")]);const Ni=(kn,wa)=>{Xe.page=kn,Xe.limit=20,fr()};function qo(){tn(1),Pn(""),Ha(""),Mr(""),oo(""),ur([])}const ul=[{title:"\u5E8F\u53F7",dataIndex:"number",align:"center",width:50,fixed:"left",ellipsis:!0,render:(kn,wa,lo)=>Xe.limit*(Xe.page-1)+lo+1},{title:"\u59D3\u540D",dataIndex:"user_name",align:"center",width:110,fixed:"left",ellipsis:!0,render:kn=>Re.createElement(De.Z,{placement:"bottomLeft",title:kn},Re.createElement("span",{className:"current"},kn))},!(0,lt.Jd)()&&{title:"\u5B66\u53F7",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",width:100,ellipsis:!0,showSorterTooltip:!1,sortOrder:Xe.order==="student_id"?Xe.b_order==="desc"?"descend":"ascend":null,render:kn=>Re.createElement(De.Z,{placement:"bottomLeft",title:kn||"--"},Re.createElement("span",{className:"current"},kn||"--"))},{title:"\u5206\u73ED",dataIndex:"group_name",align:"center",width:100,fixed:"left",ellipsis:!0,render:(kn,wa)=>kn?Re.createElement(De.Z,{placement:"bottom",title:kn},Re.createElement("span",{className:"current"},kn)):"--"},{title:"\u4F5C\u4E1A\u72B6\u6001",dataIndex:"work_status",align:"center",width:94,ellipsis:!0,fixed:"left",sorter:!0,showSorterTooltip:!1,sortOrder:Xe.order==="work_status"?Xe.b_order==="desc"?"descend":"ascend":null,render:kn=>Re.createElement(re.lC,{status:kn})},{title:"\u5B8C\u6210\u65F6\u95F4",align:"center",dataIndex:"achieve_time",ellipsis:!0,sorter:!0,sortOrder:Xe.order==="achieve_time"?Xe.b_order==="desc"?"descend":"ascend":null,render:(kn,wa)=>Re.createElement(De.Z,{placement:"bottomLeft",title:kn},Re.createElement("span",{className:"current"},kn))},{title:"\u901A\u8FC7\u60C5\u51B5",align:"center",dataIndex:"achieve_info",ellipsis:!0,render:(kn,wa)=>Re.createElement("span",{onClick:lo=>{var Go;lo.stopPropagation(),(Go=_n.homework_status)!=null&&Go.includes("\u5BFC\u5165")&&(da(wa),Za(!0))}},kn||"- -")},{title:"\u6700\u7EC8\u6210\u7EE9",align:"center",dataIndex:"score",ellipsis:!0,sorter:!0,sortOrder:Xe.order==="work_score"?Xe.b_order==="desc"?"descend":"ascend":null,render:(kn,wa)=>Re.createElement(De.Z,{title:Re.createElement(Re.Fragment,null,Re.createElement("div",null,"\u8BD5\u9898\u5F97\u5206\uFF1A",(wa==null?void 0:wa.late_final_score)||0),Re.createElement("div",null,"\u8865\u4EA4\u6263\u5206\uFF1A",(wa==null?void 0:wa.late_penalty)||0),Re.createElement("div",null,"\u6700\u7EC8\u6210\u7EE9\uFF1A",(wa==null?void 0:wa.score)||0))},Pt({value:kn,placeholder:"- -"}))},{title:"\u5B8C\u6210\u65F6\u957F",dataIndex:"achieve_time_long",align:"center",sorter:!0,ellipsis:!0,sortOrder:Xe.order==="achieve_time_long"?Xe.b_order==="desc"?"descend":"ascend":null,render:(kn,wa)=>kn&&kn!="--"?Re.createElement(De.Z,{placement:"bottom",title:kn},Re.createElement("span",{className:"current"},kn)):"--"},((xn=_n.homework_status)==null?void 0:xn.includes("\u5BFC\u5165"))&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"sum_evaluate_count",align:"center"},!((Un=_n.homework_status)!=null&&Un.includes("\u5BFC\u5165"))&&{title:Re.createElement("span",null,"\u8BC4\u9605\u72B6\u6001"),align:"center",dataIndex:"has_comment",fixed:"right",ellipsis:!0,render:kn=>kn?"\u5DF2\u8BC4\u9605":"\u672A\u8BC4\u9605"},{title:"\u64CD\u4F5C",dataInex:"action",align:"center",fixed:"right",ellipsis:!0,className:"workListTable",render:(kn,wa)=>{var lo;return(lo=_n.homework_status)!=null&&lo.includes("\u5BFC\u5165")?(0,lt.GJ)()?Re.createElement("a",{onClick:Go=>{Go.stopPropagation(),Gt({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u6210\u7EE9",id:wa==null?void 0:wa.id,type:"normal"}})}},"\u4FEE\u6539\u6210\u7EE9"):Re.createElement("a",{onClick:Go=>{Go.stopPropagation(),da(wa),Za(!0)}},"\u67E5\u770B"):(0,lt.dE)()?Re.createElement("div",null,(0,re.JL)(wa==null?void 0:wa.work_status)==="\u672A\u5F00\u542F"?Re.createElement("span",null,"--"):Re.createElement("a",{onClick:Go=>{var xi;if(Go.stopPropagation(),(0,lt.Rm)()&&!((xi=Tt.AssistantObject.hack)!=null&&xi.can_view)){pe.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.open(`/classrooms/${Xe.coursesId}/program_homework/${Xe.categoryId}/${wa.id}/${wa.user_id}/comment`,"_blank")}},"\u67E5\u770B")):Re.createElement("a",{target:"_blank",onClick:Go=>{var xi,wi;if(Go.stopPropagation(),(0,lt.Rm)()&&!((xi=Tt.AssistantObject.hack)!=null&&xi.can_view)){pe.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((wi=Qn.userInfo)!=null&&wi.professional_certification)window.open(`/classrooms/${Xe.coursesId}/program_homework/${Xe.categoryId}/${wa.id}/${wa.user_id}/comment`,"_blank");else return we.default.confirm({title:"\u63D0\u793A",centered:!0,content:Re.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,re.xg)("/account/certification")}}),!1}},"\u67E5\u770B\u4F5C\u4E1A")}}].filter(kn=>!!kn),Yi=()=>{var kn,wa;return Re.createElement(ke.default,null,Re.createElement(ke.default.Item,{onClick:()=>{var lo;if((0,lt.Rm)()&&!((lo=Tt.AssistantObject.hack)!=null&&lo.can_download)){pe.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}Gt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u5B66\u751F\u6210\u7EE9",course_groups:_n==null?void 0:_n.course_group_info,fn:()=>{(0,dt.Iy)(JSON.parse(sessionStorage.all_student_works_params),"hack_work_list")}}})},key:"1"},"\u5B66\u751F\u6210\u7EE9"),(0,lt.GJ)()&&((kn=_n==null?void 0:_n.student_works)==null?void 0:kn.length)>0&&!((wa=_n==null?void 0:_n.homework_status)!=null&&wa.includes("\u5BFC\u5165"))&&Re.createElement(ke.default.Item,{key:"3",onClick:()=>{var lo;if((0,lt.Rm)()&&!((lo=Tt.AssistantObject.hack)!=null&&lo.can_download)){pe.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}Gt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u62E9\u73ED\u7EA7",title:"\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A",course_groups:_n==null?void 0:_n.course_group_info,fn:()=>{var Go,xi,wi,si;Gt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5BFC\u51FA\u7F16\u7A0B\u62A5\u544A",type:2}}),localStorage.setItem("dowolders","1"),ve.history.push(`/classrooms/${Xe==null?void 0:Xe.coursesId}/program_homework/${Xe.categoryId}/${(xi=(Go=_n==null?void 0:_n.student_works)==null?void 0:Go[0])==null?void 0:xi.id}/${(si=(wi=_n==null?void 0:_n.student_works)==null?void 0:wi[0])==null?void 0:si.user_id}/comment`)}}})}},"\u7F16\u7A0B\u62A5\u544A"),Re.createElement(ke.default.Item,{key:"2",onClick:()=>{var lo;if((0,lt.Rm)()&&!((lo=Tt.AssistantObject.hack)!=null&&lo.can_download)){pe.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}ve.history.push(`/classrooms/${Xe.coursesId}/exportlist/hack_work_list`)}},"\u5386\u53F2\u5BFC\u51FA"))};return Re.createElement(Re.Fragment,null,Re.createElement("section",{className:`${mt.wrap} minH500 bg-white pl30 pr30 pt30`},((pa=_n.homework_status)==null?void 0:pa.includes("\u672A\u53D1\u5E03"))&&Re.createElement(ne.Z,null),!((Kt=_n.homework_status)!=null&&Kt.includes("\u672A\u53D1\u5E03"))&&Re.createElement("aside",null,!(0,lt.GJ)()&&Re.createElement("div",{className:"c-light-black font12"},Re.createElement("span",null,"\u53D1\u5E03\u65F6\u95F4 ",_n==null?void 0:_n.publish_time),Re.createElement("span",{className:"ml5"},"\u622A\u6B62\u65F6\u95F4 ",_n==null?void 0:_n.end_time),Re.createElement("span",{className:"ml5"},"\u8865\u4EA4\u65F6\u95F4 ",(_n==null?void 0:_n.late_time)||"- -")),(0,lt.GJ)()&&Re.createElement(Re.Fragment,null,Re.createElement(de.default,{form:xt,onChange:Ro,initialValues:{task_status:"all",course_group_info:"all",teacher_comment:"all"}},(($t=_n.task_status)==null?void 0:$t.length)>0&&Re.createElement(de.default.Item,{name:"task_status"},Re.createElement(ie.default.Group,{value:[],style:{width:"100%"}},Re.createElement(We.Z,null,Re.createElement(Me.Z,{className:"font14",flex:"80px"},"\u4F5C\u4E1A\u72B6\u6001:"),Re.createElement(Me.Z,{flex:"80px"},Re.createElement(ie.default,{value:"all"},"\u5168\u90E8")),Re.createElement(Me.Z,{flex:"1"},_n.task_status&&_n.task_status.map((kn,wa)=>Re.createElement(ie.default,{name:"task_status",value:kn.id},kn.name,"(",kn.count,")")))))),((qt=_n.course_group_info)==null?void 0:qt.length)>0&&Re.createElement(de.default.Item,{name:"course_group_info"},Re.createElement(ie.default.Group,{style:{width:"100%"}},Re.createElement(We.Z,null,Re.createElement(Me.Z,{className:"font14",flex:"80px"},"\u5206\u73ED\u60C5\u51B5:"),Re.createElement(Me.Z,{flex:"80px"},Re.createElement(ie.default,{value:"all"},"\u5168\u90E8")),Re.createElement(Me.Z,{flex:"1",id:"divhe",style:{height:zo+"px",overflow:"hidden"}},(sa=_n.course_group_info)==null?void 0:sa.map((kn,wa)=>Re.createElement(ie.default,{value:kn.course_group_id},kn.group_group_name,"(",kn.count,")"))),Br&&Re.createElement("span",{onClick:()=>{let kn=document.getElementById("divhe").scrollHeight;zo>47?Kn(47):Kn(kn)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"}},zo===47?"\u5C55\u5F00":"\u6536\u8D77",zo===47?Re.createElement(b.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):Re.createElement(E.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}))))),((ra=_n.teacher_comment)==null?void 0:ra.length)>0&&Re.createElement(de.default.Item,{name:"teacher_comment"},Re.createElement(ie.default.Group,{style:{width:"100%"}},Re.createElement(We.Z,null,Re.createElement(Me.Z,{className:"font14",flex:"80px"},"\u8FFD\u52A0\u70B9\u8BC4:"),Re.createElement(Me.Z,{flex:"80px"},Re.createElement(ie.default,{value:"all"},"\u5168\u90E8")),Re.createElement(Me.Z,{flex:"1"},_n.teacher_comment&&_n.teacher_comment.map((kn,wa)=>Re.createElement(ie.default,{value:String(kn.id)},kn.name,"(",kn.count,")"))))))),Re.createElement(We.Z,{align:"middle"},Re.createElement(Me.Z,{flex:"1"},Re.createElement(We.Z,{align:"middle"},Re.createElement(Me.Z,null,Re.createElement(Te.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:kn=>{Xe.search=kn.trim(),Xe.page=1,fr()},style:{width:240}})),Re.createElement(Me.Z,null,Re.createElement("span",{className:"ml5"},Re.createElement("span",{className:"c-red"},_n.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",_n.work_count,"\u4E2A\u5B66\u751F\uFF09")))),Re.createElement(Me.Z,null,(0,lt.GJ)()&&!((Hn=_n.homework_status)!=null&&Hn.includes("\u5BFC\u5165"))&&!((Oa=St==null?void 0:St.setting)!=null&&Oa.hide_code_repeat)&&Re.createElement(ze.ZP,{className:"ml10",onClick:()=>{Gt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",selectArrs:_n.student_works.map(kn=>kn.id),params:Xe}})}},Re.createElement("span",{className:`${mt.tr1} iconfont icon-daimachazhong`}),"\u4EE3\u7801\u67E5\u91CD"),(0,lt.GJ)()&&!((Ta=_n.homework_status)!=null&&Ta.includes("\u5BFC\u5165"))&&Re.createElement(ze.ZP,{className:"ml10",onClick:So},Re.createElement("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"\u66F4\u65B0\u6210\u7EE9"),(0,lt.GJ)()&&Re.createElement(Be.Z,{dropdownRender:Yi,className:"ml10"},Re.createElement(ze.ZP,null,Re.createElement(z.Z,null),"\u5BFC\u51FA",Re.createElement(te.Z,null)))))),Re.createElement(We.Z,{style:{justifyContent:"end",marginTop:"5px"}},(0,lt.GJ)()&&Tn&&Re.createElement("span",null,Re.createElement("span",{style:{color:"red"}},"*"),"\u5217\u8868\u4E2D\u4F5C\u4E1A\u8BB0\u5F55\u5B58\u5728\u5DEE\u5F02\uFF0C\u8BF7\u70B9\u51FB\u201C\u66F4\u65B0\u6210\u7EE9\u201D\u6309\u94AE")),Re.createElement(me.default,{className:`mt30 ${mt.TableDom}`,loading:en["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:kn=>({onClick:wa=>{var lo,Go;if(!((lo=_n.homework_status)!=null&&lo.includes("\u5BFC\u5165"))){if((0,lt.Rm)()&&!((Go=Tt.AssistantObject.hack)!=null&&Go.can_view)){pe.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.open(`/classrooms/${Xe.coursesId}/program_homework/${Xe.categoryId}/${kn.id}/${kn.user_id}/comment`,"_blank")}}}),scroll:{x:1200},dataSource:_n.student_works,columns:ul,onChange:(kn,wa,lo)=>{lo.field&&(Xe.order=lo.field==="score"?"work_score":lo.field),lo.order||(Xe.b_order="asc"),lo.order==="ascend"&&(Xe.b_order="asc"),lo.order==="descend"&&(Xe.b_order="desc"),lo.order||(Xe.b_order="asc"),fr()}}),Re.createElement(Ke,null),Re.createElement(Ft,null),Re.createElement(ae.Z,null)),Re.createElement(we.default,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",open:Vr,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:()=>Ct(void 0,null,function*(){if(jn===2){if(Xn.length<=0){pe.ZP.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001");return}if(!Hr){pe.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let kn=yield(0,he.ZP)(`/api/homework_commons/${Xe.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:Xe.categoryId,comment:Hr,status:Xn}});kn.status===0&&(dn(kn),mo(!1),Jt(!0))}else{if(!(ir===0||ua===0)){if(!ir){pe.ZP.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ua){pe.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}}if(ir>ua){pe.ZP.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206");return}if(!Hr){pe.ZP.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A");return}let kn=yield(0,he.ZP)(`/api/homework_commons/${Xe.categoryId}/confirm_redo_modal.json`,{method:"post",body:{id:Xe.categoryId,comment:Hr,min_score:ir,max_score:ua}});kn.status===0&&(dn(kn),mo(!1),Jt(!0))}}),onCancel:()=>{mo(!1),qo()}},Re.createElement("div",{style:{padding:"32px"}},Re.createElement("div",null,Re.createElement("div",null,Re.createElement("span",{style:{width:"80px"}},"\u6253\u56DE\u65B9\u5F0F\uFF1A"),Re.createElement(oe.ZP.Group,{value:jn,onChange:kn=>{tn(kn.target.value)}},Re.createElement(oe.ZP,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),Re.createElement(oe.ZP,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),jn===1&&Re.createElement("div",{style:{display:"flex",marginTop:"20px"}},Re.createElement("span",{style:{width:"70px",textAlign:"end"}},Re.createElement("span",{style:{color:"red"}},"*"),"\u6700\u4F4E\u5206\uFF1A"),Re.createElement(a.Z,{min:0,max:100,value:ir,onChange:kn=>Mr(kn),style:{width:"100px"}}),Re.createElement("span",{style:{width:"80px",textAlign:"end"}},Re.createElement("span",{style:{color:"red"}},"*"),"\u6700\u9AD8\u5206\uFF1A"),Re.createElement(a.Z,{min:0,max:100,value:ua,onChange:kn=>Ha(kn),style:{width:"100px"}})),jn===2&&Re.createElement("div",{style:{display:"flex",marginTop:"20px"}},Re.createElement("span",{style:{width:"80px"}},"\u4F5C\u4E1A\u72B6\u6001\uFF1A"),Re.createElement(ie.default.Group,{onChange:kn=>{ur([...kn])},style:{width:"100%"}},(Pr=_n.task_status)==null?void 0:Pr.map((kn,wa)=>Re.createElement(ie.default,{name:"task_status",value:kn.id},kn.name,"(",kn.count,")")))),Re.createElement("div",{style:{display:"flex",marginTop:"20px"}},Re.createElement("span",{style:{width:"70px",textAlign:"end"}},Re.createElement("span",{style:{color:"red"}},"*")," \u8BC4\u8BED\uFF1A"),Re.createElement(ut.Z,{className:mt.MdEditor,onChange:kn=>oo(kn),placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),Re.createElement(we.default,{open:pt,title:"\u6253\u56DE\u786E\u8BA4",onOk:()=>Ct(void 0,null,function*(){jn===2?(yield(0,he.ZP)(`/api/homework_commons/${Xe.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:Xe.categoryId,comment:Hr,status:Xn}})).status===0&&(pe.ZP.info("\u6253\u56DE\u6210\u529F"),qo(),fr(),Jt(!1)):(yield(0,he.ZP)(`/api/homework_commons/${Xe.categoryId}/batch_redo_modal.json`,{method:"post",body:{id:Xe.categoryId,comment:Hr,min_score:ir,max_score:ua}})).status===0&&(pe.ZP.info("\u6253\u56DE\u6210\u529F"),qo(),fr(),Jt(!1))}),onCancel:()=>{qo(),Jt(!1)}},Re.createElement("div",{style:{padding:"32px"}},jn===1&&Re.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",ir,"-",ua,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),jn===2&&Re.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((zr=_n.task_status)==null?void 0:zr.filter(kn=>Xn==null?void 0:Xn.includes(kn.id)).map(kn=>kn.name).toString())+",","\u7684\u5B66\u751F\u8FDB\u884C\u4F5C\u4E1A\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),Re.createElement("br",null),Re.createElement("span",null,"\u8BE5\u6761\u4EF6\u4E0B\u5171\u6709",Ut==null?void 0:Ut.count,"\u540D\u5B66\u751F")))),Re.createElement(at,null),Re.createElement($e,{isShow:oa,setIsShow:Za,item:mr,coursesId:Xe.coursesId,categoryId:Xe.categoryId}),Re.createElement("aside",{className:"tc mb50 mt30"},Re.createElement(y.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:Ni,current:Xe.page||1,defaultPageSize:20,total:_n.work_count})))};var vn=(0,ve.connect)(({shixunHomeworks:Nt,classroomList:Tt,globalSetting:St,loading:en,user:Gt})=>({shixunHomeworks:Nt,classroomList:Tt,globalSetting:St,loading:en.effects,user:Gt}))(Zt)},27776:function(ft,st,ee){"use strict";ee.r(st),ee.d(st,{default:function(){return cl}});var x=ee(67294),de=ee(33170),pe=ee(35973),De=ee(2453),we=ee(14446),ke=ee(71577),ie=ee(85673),We=ee(83062),Me=ee(66368),Te=ee(9430),ze=ee(52310),Be=ee(28706),me=ee(85725),oe=Object.defineProperty,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(_t,kt,zt)=>kt in _t?oe(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,z=(_t,kt)=>{for(var zt in kt||(kt={}))y.call(kt,zt)&&E(_t,zt,kt[zt]);if(a)for(var zt of a(kt))b.call(kt,zt)&&E(_t,zt,kt[zt]);return _t},te=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});const ne=({shixunHomeworks:_t,dispatch:kt})=>{const zt=(0,pe.useParams)();return x.createElement(we.default,{centered:!0,title:"\u63D0\u793A",open:_t.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>te(void 0,null,function*(){(yield kt({type:"shixunHomeworks/deleteReply",payload:{object_id:_t.actionTabs.selectArr.id,object_type:"journals_for_message"}})).status===0&&(De.ZP.success("\u5220\u9664\u6210\u529F"),kt({type:"shixunHomeworks/setActionTabs",payload:{}}),kt({type:"shixunHomeworks/getReplyList",payload:z({},_t.actionTabs.params)}))}),onCancel:()=>{kt({type:"shixunHomeworks/setActionTabs",payload:{}})}},x.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))};var re=(0,pe.connect)(({shixunHomeworks:_t})=>({shixunHomeworks:_t}))(ne),ae=ee(27484),le=ee.n(ae),he=ee(11320),ve=ee(57953),Ce=ee(28452),be={flex_box_center:"flex_box_center___zN9Rd",flex_space_between:"flex_space_between___OHt3Z",flex_box_vertical_center:"flex_box_vertical_center___xzO8Q",flex_box_center_end:"flex_box_center_end___LuRwh",flex_box_column:"flex_box_column___rEgTS",bg:"bg___F3FV1",top:"top___vNhKr",desc:"desc___IlwMy",deseIconSty:"deseIconSty___gIJAj",liked:"liked___gFxXM",likedActive:"likedActive___bEcK_",reply:"reply___q4nj7",replyList:"replyList___qxCAX",comment:"comment___gIcRF",buttonEdit:"buttonEdit____8SMk",md:"md___cq_mx",maskWrap:"maskWrap___bHoew",desHead:"desHead___Njyrc",mask:"mask___o8p8v",info:"info___V66Uf",upDownSty:"upDownSty___Q_kpi"},ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAgCAYAAACo7RKTAAAAAXNSR0IArs4c6QAAFaNJREFUeF7tXHl8XHW1/557Z5JM0yTtA9qy6dwktMVaKMncAVo2F0Rk0aeg+FCK+tzg8WRR5qYFCdA2dwou+AR9LCpSZVE+ICIi+ACfpOjcSaAthdImudMFCm0hbfZl7u/Ib5KZznJnSdqnrx97/4HOPb/zO7/zO7/fPcv3hACg+xH/NBoaXMnARwjwMeGvxNSqgFZXzSq36AOxIUk3kYcfulDdI1qPJ4iFDF7EwEJiVABoBZV9a9pFWzsnwu8g7UEN7A8NED9RX72np6cNTNOJcB8Thpl5ITHpDK4gohEA7QRaLUCtXqV89dRPx97Mnpwfqq3p4cGTBHgRMUsjPxGMqSAwAS8yaDUResD8aQCHqh7llKoL3ly/PxZxkMdBDZSqAdr9wIyVzHSZonoXVJ92j4P46E0A10OMxkZ2rt46vP1ZEn1ba8G0iMEzJWMCdTFxKxF6IcjDhJOJeR4DCgiDBPwvMVoZVMng0LTGb5+EqdoCCLEITt+cnvYb5sIZWldzwZZTShW0GN2a5roZ8SE0CBYNU3xTbh0YGZoNh/8j52AS7wia9reL8ftnfB9tqr2aBWbnrJ24Rzfta5O/R0O15zBwnpuOFKK/NJqdP/v/qj9p8BsAeq7mQ/fdhOFheeNOy10wegH6S3zPpldGtz01NNL98mHA8CIWmEMKdrCgp0jhVha4SiHv6upT7l4FchaNbHv6UwNd9x83beHtgCq9mbFnZPtzGOxcxTUNxjyafdWrE1XOS0tnHzkqRhvB1ABwA4MbwDgycRgJ3boZ+xf5/xHDvy35e3IOIrpPN+1LJjrnZOnbm+oPi7PzNBiHu/Egwl910z4/2uRfLAStzDcPgb+ih2O/magca43504e49xWAlPSxqoorGlfYD6X/Fr2uvk6Mxl8DoGbP46koP7LhxtfekL9HQ7U1DN7JYG+OPArOCLbE/lRITrv5jIqdo1sbJrKWSm/F2nnN6/uiodp/E+AfT2Rsau8VXCUNPk6ga6pPu2cOBH+9JEYEJ77ntc6+NStne2qOfXTqgmt/BRYLe63rvuiZNrvcV39JQrmjb72A/o13I9vgnT0b0bs2jKrjQ7/xvO+aT5Q05zhRxPD/DxgfzD+GosGwrUeW1h2NuLMlm04l5XONZtcvJjLnvtJaTdr5LNjdWInuDZr2pXIOK6Q9xeAz3ebzeBS9YXlXdDKyWCF/GwOZBkb0i6Bpfy6bn2VoUWZuzP6dVPWz+orOBxJyNvm/ygI5Rkeg5/WwfWoxGZmZLENbDeCkYrTJ916q0E4wN8QihnYrmK8pdVw6Han0Eeq+fwYrpFxRfepdXwBnKaUAV6enC71rlqPi6HNR4f/XBGVvezM8VRp8xyxO/Duvwfd0oHdNC6pOWGp75n6jdiLCRwz/LjAOyTeGgAf0cOyzVpP2JRZ8dy4dbSPw8ETmlLTk9ZwVWNYxqUDbWlJ3ETvO/W5zKqDrA2F7WcKQDO15Zl7kRuf1TZt+QvNLuycqt6SPGv4VgtGUsfmgXQHf4pnU3CzSf7dC/u8xcGWOwRN+rJuxr8tkRLTd2siMnH1TST270ex8shQZLUP7NTN/qhRaGUcGKhb7pKyFLoVivMq95bV7Df6Uu68CuGTj2y8G33D9Ts+cK2YUEzT5/sXmBdNGB3d3F6RXaFmwxb4+EtIeBBIB8j4/BPCsmYdXHn31C4OTYRYNadcJ8M1uY9NvzoihvQkei5MyHsLbQTN26GTmlmMiTf7TIfBcDlsPnagvtyPrm+fNGhwa+LJ8zyxdRLh8dWmbQriTwX5mfDFXRPQzsFKBMhIId5nFZI0Y2ktgPr4YnXxPhA26GTs2sRYXHRFolECpuExAHiQOZB3w0UBjwHdAGXz70tpAPC4sAnazW6wxFlAvDvgWr7KGfraj0JegFEUnaQh4Qw/HEjFCvqfNqL1YQGR8ahUFTY0rYn+IGNrPwDz22ct6kq7KhvCcqp53hntcDwWR9PNPaluiHScEZwWEdL9u2rcUki36341ett9eC5Avi+5W3bR/2NZUe64jxG8nopP8tLQpGLZzA9+sAZah9TLz1JSOif4aaAgkvm7Rtuh6Bs9JDSF6PGja561bos0cdDgnQwiiNUHTXpCkjxj+34Px0cwpx+T6vzH4uosBOBjd2e7uwyddmgne8DJYUhSljCne4Dhw/3R61EVweBQsIjm3EFGbm386dovQz8H8jutGkrJFN7u+V8ggrJC25N0gbnnmrYJPyECzFFfFMupPYI635zH4Vbppf15mUYQQ38mgIVwUNGMP7ouxWk21V7IQBddXKn8Cfq+HYx8rRC+/KP2D/dszdEWUWCM3NyvRoXsHmbls72HA93QzdrW1RDuTHX4qh3daHCTfWYa2iZnrs/YiIdd+N3jVdxicwZ3g+ADKZi7C0JbHcoPWSRp8cgFWSLucwT90U2q5T505MiS+zMwJvzhNaQPE1JLPtZhe4ak55sYO1xu2lM2ONGk3Q/B16bQK0VkB036qFFclamgXCuaMrEma7M26GbvRMrTfMPP5GXOoviMCK17NMJ7k+0TWJe78JJ/8iqI0B1Z0Pms1aT9kwZdn6Uswo1jMkMiGZYxT6L/0Fvs/C+ksGqo9RUD8OWu+xBpfNOb6R3nIzmJ6edDsuiNqaNcI5ltz5iR6isDPJH8XoGVg9rjJtd8N3unfCsUzBeSZAjEk40vsd4OPGrXfFyy+4XLSe4KmXWMZ2nPMfHqm0vAkgbYw81dcFLZTN+2SYwm3zXTLHqgKnVZRPuXF/sH+XrcxNO6qyHcRo7YJLFa40cnMUkNL5y8tQ9sFYK+REW0MmvbeT3/W4EhIO+/dtO1j+YyPxn14NxegWMZl63dP9r351nbpt1MW/yuD4dhthQy+zai71GHnp+k0yeyZZdR+mFk87XZxWIb2c2b+fCkXUDaNouAbgZbYD/arwfe1N8MZ3oWp878JxVuNvnW3wBncgWmL7gCU8pQMzr7f8I8z+JwcwwXap/gqTx8YHHgnO0dMpFzNEOe6pTQJWK2HY67ZkVKVGzW02wXzZen00j93HMXJ56ogLTVoGf573IJByU9RcJIiaCgOfinrPr0rGLZzDnCSppirUqVUHHpsy4a387gAP9XDsZzgNMV7Sd372XHW5RgWlHMD4a7fFdKbZWjLmHlpxg08fviiRu3XBIsfZd7+ZXW6ubFrIoFujm0oyjl6S9cT+9Xg493roZTVQKk8KjEfj/QgvvtleGcszJh/Xw0+YmivgdklMKKHysrUm0ZHnRuyF+zx0NL4KP+Rwe/J3QzaRoTW3APEXQEztqQUo7dC/p8w8IUMg1c88wQ78/K7KsqNutnVPHbDa38C82luc0nD7MfQxUIg4+YsVlOwQtolIHwx52uXCO6xWw/HpnPzGR5raPNgtgsAUpYEza6WfGuPNtV9QgjnkRydeWmuvsyWxau8j2VoDzDzZ9IJKn2Vh8xrXv+OFdK+w+Crk+9kBkZmV9q6uxS23+lL9+0lDREEQANpvMqyaeS7MkWZs6Cla+N+NfhSDEPS7IvBJ/LAbdFBtyofES3XTTvDj07KtOkH9eW734gPMCOj4lhQZsIjQTP2yVLW5baJMu87HB+9KJ+rAtDng2F7leRvGf432KUamzRMK+R/mIEMWcorPEcff2PHtsLGVftZZvFLl0OeKNBZxuxa5pGc+oJC9OmAaf8qH2/L0L7FzBmVYWl8UyoqffOa10v8VSGDzyhujRktxgNvWsjM700NHnfboqHa+QJibQ7TrD3KU5hyKn2VU6RcB5zBr7lujjY8Otzlpk2V1C/kw3FEm2bPFWJkQjAGBXRrIGx/q0SDzwkoK32Vhw8M9S/P56qoHs/Jjcs7/rLmluMqh3f19LnPQ1Hd7ApGjdod7wbqqVw8Ebp0M1ZXTLaooV0vmG/KuYmJHtRN+6KooX1EMP/Bhc+VKql5b2oH4nIwn5s+jog266btLyaTFdJ2M7imGN34Df6EbsbOkWlfh0Xicsh6bgiGY6n1WYb2KDN/PIOGEAuaMS3BL1Vp3Q+Fp1IWsK83fIENggLl1EC463k3OQrlmolIujP9LrfH7XqLnTfoS6d3qwAqUKYJ4sfyuSqKr+ywQPPGXTK/7ji8xk1uWTn2lnmWjYzEX84wLqCgj52ktQztXmbOwQ4lv4bRUO3XBcQdpe5dQTrCM0Ez9qFCNNHm2YeKwZGdpc6nkHJbwOy60jK0lcycc/kQxlK/aetdx8zvzzqIf9RNOwHZOOAMPmLUXgYWt7spzKfSrPkr7Lfc3hUK4JL+Y6mb4Mo/pP2ZwRnoz0pfZfnAUH/M3VWhPXrYTgD1Ik21n4QQD7vOr8gUG23PXrOi4NJAS+zeYjJbIX+r7EXIpkt+DbN95mL8Cr0nojt10/5qIZq2pfUnOfH4C1kG2QEgxuBKME7OeneFLI5FQtqTAJ/lwnuQiJzU78yV2ZkjGodFHJAGnx/rQX26aVflU7ZbrjmhgDR05b5stgvoyik/tLqmkKsifWg5p9Xkv5YFwm7zS8MWgj6WDZNIgqmKyRwJaW8BnJNylSnTxhb7z265/WI8870nomuLVX0jIe1zAN+XziN5eN0gEEl8Tr4YpxRZFaJvBkw7UbA7AG947bfZvuP4ol8KhmMn5FNAvhuCQBE9bJ9YiuIK0UQM/3ow3pekIaI+RcGiQq6KBLklbnhDuwvM/+7GnxT1FGbxcDrGRtYT9LC9N7DLI1ghuIIyXrBqv2HOEc6wbPSJLxZC5PQJyHw8yLsYPBpm8AW5U9FdRN4EdqZqOu2cG3rNteaQHGcZtc3MIiOLJteot3S2ugH+FK+nXnHQExfxHZPdo3S354AzeCukbcjAWYxrgYh+pZt2XrCYFfJ3MJAT5BHwKiiZIchUqUL0jLwFS1F0xPDbYKQCNiLayURfK+SqSJBb4oY3/M8y4wy3eTyg0+PgDHx5qZj+fHAFAvr1cCyFYxmTQYswc+KLk/6QQpfoLfZ9Vsj/DAMfyJGRlEQVtBQdjR/uVWCW2JPUk3RFLaPWZBah1AuiuF7xXt+LI1tOjzvij7lz4xkFSEENmOlUt/pMWZnn/Qtu7kh01x1QBu+Gs0gqQSG05MuZ5801F9klIuVLutmVtzSfPry9qf59RLQX/6Hy6Gg8fk4hVyXpg0dC2laAx4oXmebWO71CPapvlDJQrB7Et+eLVdKHW03aBSw4J7VIRGt1004hFfOl/Ai0Z9bMWYdLlKhlaLJKfXS2hBOBBCcMPuSX/nsaDp56g2G7evzQZUCGiahDN+1jXDFE40BBPWz/PCmTW0oyG+l6QBl8oZRkIeMc7+SRgdHEnhK6dwoxjIS0OwFOwG5zTHn8M16gRC+HFHTTii0mGqo1BERu8Sg3d33bu8A5N/zLj4Lh2GWFahherzL7hGVdm4rJknz/Lg5KdkqlQ51Ta8yupCaBaPnQph7QgoawncpuWSH/I7nQZtoWDNupg3pAGXxetJzsSRsPwtwU37bEf1Y+dGUCakzYG+WnMShTy45fsHzj66VuZjZdIVcl+Rl/6fr6edkpxyQfAv1aD9sXTnr+kHY3g7+Uc9iIbpE9qrKI1/Hmi57u1+OydS8HCKaSGmg0O9vy1TBKLTQl55doVwGRAUhLX6MV8vcxUJla/zgQzTL87czIiM9kBfbd3uWp6UUuK6StZfD89PUS0Z900065iweUwRfKGSeDMDfjKISulMWhec3rczHWk7WytHH5XBUZ0CYzSlbI/3EGHs0znRkMxzI6lSYiliuIbgxW0M5AuUL0U1aU1/N0Y6VuXtm0LSAedzk4qUKThBqAsEeiL/PJ2GbUNTrsZLQpEuhpIjwkmKWhfz99rAR8NZb774gObu5j8F4w1hicO8Mtk+Msw9/PjCkZBg+6Rw/bqYQAdT8ws58Yt9Wces9n9rXjqdTNGN0VRf+rP0J1YNkO9Ziv5Hb45GFkGf7vMuOqHMW7BGHpNJNNZZayHlnYQeYneu8wxtkuaEKZCpXYj/EOJHpPdqEkxYDwCgExNzk8HuXKYq6EWxN7Oi+V1E8KiMuY+cMuxpzIf8vfIyG/RKZmGKP8Xfr4IG5lJpWIz/SScqzEq+TTW8TwfwaMRF9sKQ+p6se8Km1x+wJmB+5uGHs5hwKlKb0Di7rvn/k4iBfUBFcOU9kh+9TiV8oiIIbRt+47EMO7UR0Mb6WjzncBc7lzsgztMWbO+fMQbqc9nUPEyJPKzOqUKUn+NCLZSSS63pZtfzld/hPlNVH6QkU2yatIbJCYTqbrAEi/NxPiSxiqQNURx5nrEu2UVpP2AxZ8RREZU3iVfHSWoS3N7lMoxFPGB/E4Am5YoPTc+piMdYtYODlVdlLoQr3F/nVyHhq4/4ijh8lpJW/l9Cn1i6d6Dyntrye49bQW2zSn18Zgxyo4A9sxdf7VUGvqH6Qjz7uo2Ljke8vwv8qMuS630cO6abvkiMcoJzuumFxtRl29w07JAVsxfqW+T3eJ8hpXHviujFlAWA2mVgKmC/A3XXj8MhiOpVKHluH/HTMKdjEBsIPhWMEL02rSJK4o7z6ly0FgQdohx7HdfXNGqnKciEg5Uze7UqlK1x4JorhPwVHpGa3Eyd790EyN4F0lnJGFqm8GPDVz4ak5BmpVPRSfe19EKQbPI7sR7+mE07MJ8T0bEe/bDHXK4Zgy+1Ko1fU74PUuohkfLSl7UiglSaSEdbPLcNv8xLjBeweyfcDEDVdgXCnG1x7SjnfAeSG0pfCYHI2yRQ93fa3Q2CR8VwK6GHhekQUkRmuj2fkyEbHUizV472a3dKiiqh9M98Xz1T4yDJQohVeZ3JrcR1kh/xMMnJ391qN4ZjS0dCQwOW7ZqPG/mCfdsjszD1Lav/p+e9rFVF6+whnY/h7ZuCEfxVsFT/UxUKvrxv479b2A4kGuwTNE3+uI925CvKcjAQF2hmSDDhIYeU91PeTXw3uYDpDnCajq5XT42a7+qdvS1zfPK+sfHsxA5yXpVKa1jWan68GZ7Lj9uWn/CF5rbqg/iuMK58syJaqwu0dz/gaOysQNLR2PykORlDvROaVQ7h9dSluYR8GWyf7dnEL6aWvSThWkZBTJFDhCNsfLcXJ/B0aGMgBrJIQDpWKdW+tjdntWYm7e/uQ8MbD5gvjujo+K/tfnx3vtSqdvM1jEQYonYfRK+SEY2RmBp6oepJYj3tsJdoZkIJNoAPEkD0h1HRTfYTsAegGgVqh4kmadk9Mp848wioNz/vNpwNXgs9XAbz1Rh+He0+PdG86P92890enfOtPZ00FitBdQvfBWyS9AfeIW99TUM9TyV6SPCGA1yjytpbot/3zqP7jiv7cGSjL4nAPQ/ew0DA2e7HSvP1etniv/QI7sI1oNUlejwvcCTf9AsW73v/c6D853UAMJDfwN/F3Fz8TPqaAAAAAASUVORK5CYII=",Ae=ee(52262),Ne=ee(35567),Qe=ee(50881),Le=ee(60887),Ge=ee(32339),He=ee(96469),Ke=ee(45587),qe=ee(24285),lt=ee(95742),mt=ee(53978),Vt=ee(42922),cn=Object.defineProperty,rt=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,jt=(_t,kt,zt)=>kt in _t?cn(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,_e=(_t,kt)=>{for(var zt in kt||(kt={}))ct.call(kt,zt)&&jt(_t,zt,kt[zt]);if(Lt)for(var zt of Lt(kt))Ft.call(kt,zt)&&jt(_t,zt,kt[zt]);return _t},Sn=(_t,kt)=>rt(_t,yt(kt)),wn=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});le().locale("ZH-cn");let ha=["","\u7B80\u5355","\u4E2D\u7B49","\u56F0\u96BE"];const Mn=x.createContext({}),at=()=>{const{setActivatorNodeRef:_t,listeners:kt}=(0,x.useContext)(Mn);return x.createElement(ke.ZP,_e({type:"text",size:"small",className:be.upDownSty,icon:x.createElement(We.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},x.createElement(Qe.Z,null)),style:{cursor:"move"},ref:_t},kt))},ut=_t=>{const{attributes:kt,listeners:zt,setNodeRef:Da,setActivatorNodeRef:ar,transform:Ia,transition:Rn,isDragging:Qa}=(0,Ke.nB)({id:_t["data-row-key"]}),En=_e(Sn(_e({},_t.style),{transform:qe.ux.Translate.toString(Ia),transition:Rn}),Qa?{position:"relative",zIndex:100}:{}),ba=(0,x.useMemo)(()=>({setActivatorNodeRef:ar,listeners:zt}),[ar,zt]);return x.createElement(Mn.Provider,{value:ba},x.createElement("tr",_e(Sn(_e({},_t),{ref:Da,style:En}),kt)))},dt=({shixunHomeworks:_t,classroomList:kt,globalSetting:zt,user:Da,loading:ar,dispatch:Ia})=>{var Rn,Qa,En,ba;const[Pa,Gr]=(0,x.useState)(Sn(_e({},(0,pe.useParams)()),{page:1,per_page:10})),[Wa,Ko]=(0,x.useState)([]),[uo,Po]=(0,x.useState)(-1),[cr,sr]=(0,x.useState)(""),[Vn,Ir]=(0,x.useState)(""),{detailLeftMenus:oi}=kt,ka=(0,pe.useLocation)(),[ya,Yr]=(0,x.useState)({}),{workDetail:Oi,workList:Jn,workSetting:pr}=_t,[Ca,ln]=(0,x.useState)("1"),[ma,Fn]=(0,x.useState)(!1),[$r,wr]=(0,x.useState)(!1),[Lr,so]=(0,x.useState)(""),[Fr,po]=(0,x.useState)(1),lr=(0,x.useRef)(null),[Nr,yo]=(0,x.useState)(!1);(0,x.useEffect)(()=>{Jn.homework_status&&Uo()},[Jn]),(0,x.useEffect)(()=>{lr.current&&(lr.current.clientHeight>200?po(2):po(4))},[Wa==null?void 0:Wa.description]);function Uo(){return wn(this,null,function*(){var na,Ua,Kr;Fn(!0);let Tr=yield(0,de.ZP)(`/api/courses/${Pa.coursesId}/homework_commons/edit_hack_homework.json`,{method:"get",params:Sn(_e({},Pa),{id:Pa.categoryId})});if(Ko(Tr),Fn(!1),Pa.defaultExpandedRowKeys=[`${(Ua=(na=Tr==null?void 0:Tr.data)==null?void 0:na[0])==null?void 0:Ua.identifier}`],Tr!=null&&Tr.hide_description)ln("2");else if(Ca!="2"){if((Kr=Jn.homework_status)!=null&&Kr.includes("\u5BFC\u5165"))return;ln(Tr!=null&&Tr.description?"1":"2")}Gr(_e({},Pa))})}const Nn=()=>{if(Fr===1)return{visibility:"hidden"};if(Fr===2)return{overflow:"hidden",height:"200px"};if(Fr===3)return{overflow:"initial"};if(Fr===4)return{overflow:"initial"}},fa=na=>wn(void 0,[na],function*({active:Ua,over:Kr}){if(Ua.id!==(Kr==null?void 0:Kr.id)&&(Kr!=null&&Kr.id)){Ko(No=>{var hi;const _i=(hi=No==null?void 0:No.data)==null?void 0:hi.findIndex(Pl=>Pl.identifier===Ua.id),qi=No==null?void 0:No.data.findIndex(Pl=>Pl.identifier===(Kr==null?void 0:Kr.id));return Sn(_e({},No),{data:(0,lt.Rp)(No==null?void 0:No.data,_i,qi)})});let Tr=yield(0,de.ZP)(`/api/courses/${Pa==null?void 0:Pa.coursesId}/homework_commons/change_hack_position.json`,{method:"post",body:{id:Pa==null?void 0:Pa.categoryId,origin_identifier:Ua==null?void 0:Ua.id,target_identifier:Kr==null?void 0:Kr.id}});(Tr==null?void 0:Tr.status)==0&&(De.ZP.success("\u6392\u5E8F\u6210\u529F"),Uo())}}),rr=na=>wn(void 0,null,function*(){const Ua=()=>wn(void 0,null,function*(){let Tr=yield(0,de.ZP)(`/api/item_banks/${na}/copy_hack_item.json`,{method:"post"});(Tr==null?void 0:Tr.status)===0&&De.ZP.success("\u52A0\u5165\u8BD5\u9898\u5E93\u6210\u529F\uFF01")});yo(!0);let Kr=yield(0,de.ZP)(`/api/item_banks/${na}/check_hack_item.json`,{method:"get"});(Kr==null?void 0:Kr.status)===-20?we.default.confirm({icon:null,centered:!0,closable:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u8BD5\u9898\u5E93\u63D0\u793A",content:"\u8BE5\u8BD5\u9898\u5728\u8BD5\u9898\u5E93\u4E2D\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u52A0\u5165\u8BD5\u9898\u5E93\uFF1F",onOk:Ua}):Ua(),yo(!1)});return x.createElement("section",{className:be.bg},x.createElement(ve.Z,{spinning:ma},(!(Wa!=null&&Wa.hide_description)||(0,Ae.GJ)())&&x.createElement("section",{className:" edu-container",style:{padding:"20px 20px 0 20px",background:"#fff",position:"relative"}},!$r&&(0,Ae.GJ)()&&x.createElement("div",{style:{position:"absolute",zIndex:10,right:34,top:30}},(pr==null?void 0:pr.hack_edit_permission)&&x.createElement("span",{className:be.deseIconSty,style:{marginLeft:"auto",cursor:"pointer"},onClick:()=>{wr(!0)}},x.createElement(We.Z,{title:"\u7F16\u8F91\u8BF4\u660E"},x.createElement("i",{className:"iconfont icon-bianji-moren font14"}),x.createElement("span",null,"\u7F16\u8F91\u8BF4\u660E"))),x.createElement("span",{className:be.deseIconSty,style:{marginLeft:"20px",cursor:"pointer"},onClick:()=>wn(void 0,null,function*(){if(!(Wa!=null&&Wa.hide_description))we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u9690\u85CF\u540E\uFF0C\u5B66\u751F\u7AEF\u5C06\u9690\u85CF\u4F5C\u4E1A\u8BF4\u660E\u6A21\u5757",onOk:()=>wn(void 0,null,function*(){let na=yield(0,de.ZP)(`/api/homework_commons/${Pa==null?void 0:Pa.categoryId}/hide_description.json`,{method:"post",body:{status:!0}});(na==null?void 0:na.status)==0&&(De.ZP.success("\u9690\u85CF\u6210\u529F"),Uo())})});else{let na=yield(0,de.ZP)(`/api/homework_commons/${Pa==null?void 0:Pa.categoryId}/hide_description.json`,{method:"post",body:{status:!1}});(na==null?void 0:na.status)==0&&(De.ZP.success("\u516C\u5F00\u6210\u529F"),Uo())}})},x.createElement(We.Z,{title:Wa!=null&&Wa.hide_description?"\u516C\u5F00\u8BF4\u660E":"\u9690\u85CF\u8BF4\u660E"},x.createElement("i",{className:"iconfont icon-xianshiyincang font14"}),x.createElement("span",null,Wa!=null&&Wa.hide_description?"\u516C\u5F00\u8BF4\u660E":"\u9690\u85CF\u8BF4\u660E")))),$r?x.createElement(x.Fragment,null,x.createElement(Ne.Z,{defaultValue:Wa==null?void 0:Wa.description,watch:!0,height:155,onChange:na=>{so(na)}}),x.createElement("div",{style:{display:"flex"}},x.createElement(ke.ZP,{size:"middle",type:"primary",className:`${be.buttonEdit} mr20`,style:{marginLeft:"auto"},htmlType:"submit",onClick:()=>wn(void 0,null,function*(){po(1);let na=yield(0,de.ZP)(`/api/homework_commons/${Pa==null?void 0:Pa.categoryId}/update_description.json`,{method:"post",body:{description:Lr}});(na==null?void 0:na.status)==0&&(De.ZP.success("\u7F16\u8F91\u6210\u529F"),wr(!1),Uo())})},"\u63D0\u4EA4"),x.createElement(ke.ZP,{size:"middle",type:"primary",ghost:!0,className:be.buttonEdit,onClick:()=>{wr(!1)}},"\u53D6\u6D88"))):!!(Wa!=null&&Wa.description)&&x.createElement("div",{ref:lr,className:be.maskWrap,style:Nn()},x.createElement("div",{className:be.desHead},x.createElement("img",{src:ye,width:94})),x.createElement(me.Z,{className:be.md,value:(Wa==null?void 0:Wa.description)||""}),Fr===2&&x.createElement("div",{className:be.mask},x.createElement("div",{onClick:()=>po(3)},"\u5C55\u5F00",x.createElement("i",{className:"iconfont icon-zhankai4"}))),Fr===3&&x.createElement("div",{className:be.mask,style:{position:"relative",height:30,background:"transparent",paddingTop:5}},x.createElement("div",{onClick:()=>po(2)},"\u6536\u8D77",x.createElement("i",{className:"iconfont icon-shouqi5"}))))),(0,Ae.dE)()&&!!(Wa!=null&&Wa.group_name)&&x.createElement("div",{className:be.info},x.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${(Rn=Wa==null?void 0:Wa.user)==null?void 0:Rn.image_url}`}),x.createElement("div",{className:"ml20",style:{alignItems:"start"}},x.createElement("b",null,(Wa==null?void 0:Wa.name)||""),x.createElement("span",{title:(Wa==null?void 0:Wa.group_name)||"",style:{maxWidth:"130px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-all"}},(Wa==null?void 0:Wa.group_name)||"")),x.createElement(We.Z,{title:x.createElement(x.Fragment,null,x.createElement("div",null,"\u8BD5\u9898\u5F97\u5206\uFF1A",(Wa==null?void 0:Wa.late_final_score)||0),x.createElement("div",null,"\u8865\u4EA4\u6263\u5206\uFF1A",(Wa==null?void 0:Wa.late_penalty)||0),x.createElement("div",null,"\u6700\u7EC8\u6210\u7EE9\uFF1A",(Wa==null?void 0:Wa.total_score)||0))},x.createElement("div",null,x.createElement("b",null,x.createElement(He.n,{value:Wa==null?void 0:Wa.total_score})),x.createElement("span",null,"\u603B\u6210\u7EE9"))),x.createElement("div",null,x.createElement("b",null,(Wa==null?void 0:Wa.total_time)||"-"),x.createElement("span",null,"\u603B\u8017\u65F6")),x.createElement("div",null,x.createElement("b",{style:{color:"#009C0F"}},Wa==null?void 0:Wa.pass_count),x.createElement("span",null,"\u5DF2\u901A\u8FC7\u6570")),x.createElement("div",null,x.createElement("b",{style:{color:"#FA6400"}},Wa==null?void 0:Wa.doing_count),x.createElement("span",null,"\u8FDB\u884C\u4E2D")),x.createElement("div",null,x.createElement("b",{style:{color:"#E30000"}},Wa==null?void 0:Wa.not_pass_count),x.createElement("span",null,"\u672A\u7B54\u9898\u6570"))),!((Qa=Jn.homework_status)!=null&&Qa.includes("\u5BFC\u5165"))&&x.createElement("div",null,x.createElement("section",{className:" edu-container",style:{padding:"20px",background:"#fff"}},(0,Ae.GJ)()&&x.createElement("div",{style:{marginBottom:"10px",fontSize:"12px"}},"\u53EF\u9F20\u6807\u62D6\u62FD\u201C ",x.createElement(Qe.Z,null)," \u201D\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"),Pa.defaultExpandedRowKeys&&x.createElement(Le.LB,{modifiers:[Ge.DL],onDragEnd:fa},x.createElement(Ke.Fo,{items:(En=Wa==null?void 0:Wa.data)==null?void 0:En.map(na=>na==null?void 0:na.identifier),strategy:Ke.qw},x.createElement(Te.default,{components:{body:{row:ut}},dataSource:Wa==null?void 0:Wa.data,rowKey:na=>na==null?void 0:na.identifier,pagination:!1,expandable:{expandIcon:({expanded:na,onExpand:Ua,record:Kr})=>na?x.createElement(We.Z,{title:"\u6536\u8D77"},x.createElement(mt.Z,{className:be.upDownSty,onClick:Tr=>Ua(Kr,Tr)})):x.createElement(We.Z,{title:"\u5C55\u5F00"},x.createElement(Vt.Z,{className:be.upDownSty,onClick:Tr=>Ua(Kr,Tr)})),expandedRowRender:na=>{var Ua;return x.createElement("div",{style:{padding:"10px 0px 10px 48px",borderRadius:2}},x.createElement("div",{style:{overflow:"auto",maxHeight:300}},x.createElement("p",null,"\u9898\u76EE\uFF1A",na==null?void 0:na.name),x.createElement("p",null,"\u63CF\u8FF0\uFF1A",x.createElement(me.Z,{value:(na==null?void 0:na.description)||""})),!(0,Ae.dE)()&&x.createElement("p",null,"\u9898\u76EE\u89E3\u6790:",x.createElement(me.Z,{style:{fontSize:"14px"},value:(na==null?void 0:na.analysis)||"\u6682\u65E0\u89E3\u6790"}))),x.createElement("div",{style:{width:"100%",textAlign:"end"}},(pr==null?void 0:pr.hack_edit_permission)&&x.createElement(ke.ZP,{className:"mt20",type:"primary",ghost:!0,onClick:()=>{window.open(`/problems/newedit/${na==null?void 0:na.identifier}?type=1`),localStorage.setItem("program_homework",[Pa.coursesId,Pa.categoryId])}},"\u7F16\u8F91"),(pr==null?void 0:pr.hack_edit_permission)&&((Ua=Wa==null?void 0:Wa.homework_status)==null?void 0:Ua.includes("\u672A\u53D1\u5E03"))&&x.createElement(ke.ZP,{className:"mt20",type:"primary",style:{marginLeft:20},ghost:!0,onClick:()=>{we.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>wn(void 0,null,function*(){let Kr=yield(0,de.ZP)(`/api/problems/${na==null?void 0:na.identifier}.json`,{method:"delete"});(Kr==null?void 0:Kr.status)===0&&(De.ZP.info("\u5220\u9664\u6210\u529F"),Pa.page=1,Uo())})})}},"\u5220\u9664")))},defaultExpandedRowKeys:Pa.defaultExpandedRowKeys},columns:(ba=[(0,Ae.GJ)()&&{key:"sort",align:"center",width:40,render:()=>x.createElement(at,null)},{title:"\u5E8F\u53F7",dataIndex:"index",ellipsis:!0,key:"index",width:55,render:(na,Ua,Kr)=>`${(Pa.page-1)*Pa.per_page+Kr+1}`},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,key:"name"},((0,Ae.dE)()||(Wa==null?void 0:Wa.show_score))&&{title:"\u5206\u503C",dataIndex:"hack_score",key:"hack_score",width:100},{title:"\u96BE\u5EA6",dataIndex:"difficult",key:"difficult",width:100,ellipsis:!0,render(na,Ua,Kr){return x.createElement("div",null,ha[na])}},{title:"\u901A\u8FC7\u7387",dataIndex:"pass_rate",key:"pass_rate",width:100,ellipsis:!0},(0,Ae.dE)()&&{title:"\u5F97\u5206",dataIndex:"score",key:"score",render:na=>{let Ua="",Kr=Number(na);return Kr>=0&&Kr<=60?Ua="c-red":Kr>=90?Ua="c-green":Kr>60?Ua="c-orange":Ua="",x.createElement("span",{className:Ua},na)}},(0,Ae.dE)()&&{title:"\u8017\u65F6",dataIndex:"time",key:"time",ellipsis:!0,width:100},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",ellipsis:!0,key:"tag_discipline",width:200,render:(na,Ua)=>x.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},na||"--")},(0,Ae.dE)()&&{title:"\u901A\u8FC7\u72B6\u6001",dataIndex:"finish_status",key:"finish_status",render(na){return x.createElement(x.Fragment,null,na===0&&x.createElement("span",{style:{color:"#E30000"}},"\u672A\u7B54\u9898"),na===1&&x.createElement("span",{style:{color:"#FA6400"}},"\u8FDB\u884C\u4E2D"),na===2&&x.createElement("span",{style:{color:"#009C0F"}},"\u5DF2\u901A\u8FC7"))}},{title:"\u64CD\u4F5C",dataIndex:"identifier",key:"identifier",width:(0,Ae.GJ)()?280:146,align:"right",render(na,Ua,Kr){return x.createElement("div",null,(0,Ae.GJ)()&&x.createElement(ke.ZP,{type:"link",style:{marginRight:"5px"},loading:Nr,onClick:()=>wn(this,null,function*(){rr(Ua==null?void 0:Ua.id)})},"\u52A0\u5165\u8BD5\u9898\u5E93"),x.createElement("a",{onClick:()=>{var Tr;if((0,Ae.Rm)()&&!((Tr=kt.AssistantObject.hack)!=null&&Tr.can_question_eaderboard)){De.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.open(`/classrooms/${Pa.coursesId}/program_homework/${Pa.categoryId}/${na}/ranking`)}},"\u6392\u884C"),x.createElement("a",{onClick:()=>wn(this,null,function*(){let Tr=yield(0,de.ZP)(`/api/problems/${Ua==null?void 0:Ua.identifier}/start.json`,{method:"get"});Tr&&(window.open(`/myproblems/${Tr==null?void 0:Tr.identifier}?type=1&backUrl=/classrooms/${Pa.coursesId}/program_homework/${Pa.categoryId}/detail?tabs=1`),localStorage.setItem("program_homework",[Pa.coursesId,Pa.categoryId]))}),className:"ml20"},(0,Ae.GJ)()?"\u4F53\u9A8C":"\u8FDB\u5165\u7B54\u9898"),(pr==null?void 0:pr.hack_edit_permission)&&x.createElement("a",{className:"ml20",onClick:()=>wn(this,null,function*(){window.open(`/problems/newedit/${Ua==null?void 0:Ua.identifier}?type=1`),localStorage.setItem("program_homework",[Pa.coursesId,Pa.categoryId])})},"\u7F16\u8F91"))}}])==null?void 0:ba.filter(na=>!!na)})))),x.createElement("aside",{style:{padding:"0 20px 20px 20px"}},x.createElement(Ce.Z,{defaultCurrent:1,total:Wa==null?void 0:Wa.count,hideOnSinglePage:!0,showTotal:na=>x.createElement("span",null,"\u5171",na,"\u6761"),current:Pa.page||1,pageSize:Pa.per_page||10,onChange:(na,Ua)=>{Pa.page=na,Pa.per_page=Ua,Gr(_e({},Pa)),Uo()}})))),x.createElement(re,null))};var At=(0,pe.connect)(({shixunHomeworks:_t,classroomList:kt,loading:zt,user:Da,globalSetting:ar})=>({shixunHomeworks:_t,globalSetting:ar,classroomList:kt,user:Da,loading:zt.effects}))(dt),Et=ee(22150),gt=ee(71230),Qt=ee(15746),Ot=ee(69677),bt=ee(84567),rn=ee(26194),Xt=ee(67294),$e=Object.defineProperty,Re=Object.getOwnPropertySymbols,Ln=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,je=(_t,kt,zt)=>kt in _t?$e(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,Ht=(_t,kt)=>{for(var zt in kt||(kt={}))Ln.call(kt,zt)&&je(_t,zt,kt[zt]);if(Re)for(var zt of Re(kt))xe.call(kt,zt)&&je(_t,zt,kt[zt]);return _t},et=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});const Ue=({shixunHomeworks:_t,loading:kt,dispatch:zt,classroomList:Da})=>{var ar;const Ia=(0,pe.useParams)(),[Rn,Qa]=(0,x.useState)(Ht(Ht({},{page:1,limit:20,group_ids:[]}),Ia)),En=(0,pe.useLocation)(),{codeReview:ba}=_t,[Pa,Gr]=(0,x.useState)({}),[Wa]=Et.default.useForm();Rn.order="code_rate",Rn.sort="desc",Rn.category=Rn.categoryId,(0,x.useEffect)(()=>{Ko(),console.log("params",Rn)},[Rn]),(0,x.useEffect)(()=>{_t.actionTabs.key==="\u6267\u884C\u4EE3\u7801\u67E5\u91CD"&&Ko()},[_t.actionTabs.key]);const Ko=()=>et(void 0,null,function*(){(yield zt({type:"shixunHomeworks/getCodeReview",payload:Ht({},Rn)})).status===-2&&setTimeout(()=>Ko(),1500)}),uo=()=>{},Po=(sr,Vn)=>{Rn.page=sr,Rn.limit=20,zt({type:"shixunHomeworks/getCodeReview",payload:Ht({},Rn)})},cr=[{title:"\u5E8F\u53F7",dataIndex:"number",render:(sr,Vn,Ir)=>Rn.limit*(Rn.page-1)+Ir+1},{title:"\u59D3\u540D",dataIndex:"username"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u76F8\u4F3C\u5EA6",dataIndex:"code_rate",render:sr=>Xt.createElement("span",{className:"c-orange"},sr)},{title:"\u64CD\u4F5C",dataInex:"action",render:(sr,Vn)=>Xt.createElement("div",null,Xt.createElement("a",{onClick:()=>{var Ir;if((0,Ae.Rm)()&&!((Ir=Da.AssistantObject.hack)!=null&&Ir.can_view)){De.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.open(`/classrooms/${Rn.coursesId}/program_homework/${Rn.categoryId}/review_detail/${Vn.user_id}`)}},"\u67E5\u770B"),Xt.createElement("br",null))}];return Xt.createElement("section",{className:"minH500 bg-white pl30 pr30 pt10"},(ba==null?void 0:ba.status)===-2&&Xt.createElement(rn.Z,{customText:"\u6B63\u5728\u8FDB\u884C\u4EE3\u7801\u67E5\u91CD\uFF0C\u8BF7\u7A0D\u5019\u3002\u67E5\u91CD\u7ED3\u675F\u540E\uFF0C\u9875\u9762\u5C06\u81EA\u52A8\u66F4\u65B0\u663E\u793A\u7ED3\u679C"}),(ba==null?void 0:ba.status)!==-2&&Xt.createElement("div",null,Xt.createElement(gt.Z,null,Xt.createElement(Qt.Z,{flex:"1"},Xt.createElement("p",{className:"mt10"},"\u67E5\u91CD\u65F6\u95F4\uFF1A",ba.last_review_time,Xt.createElement(ke.ZP,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:()=>{zt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u4EE3\u7801\u67E5\u91CD",params:Rn}})}},"\u4EE3\u7801\u67E5\u91CD"))),Xt.createElement(Qt.Z,null,Xt.createElement(Ot.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:sr=>{Rn.search=sr,zt({type:"shixunHomeworks/getCodeReview",payload:Rn})},style:{width:200}}),Xt.createElement("span",{className:"ml5 c-red"}))),((ar=ba.group_info)==null?void 0:ar.length)>0&&Xt.createElement(Xt.Fragment,null,Xt.createElement(gt.Z,null,Xt.createElement(Qt.Z,{flex:"80px",className:"font14"},"\u5206\u73ED\u60C5\u51B5:"),Xt.createElement(Qt.Z,{flex:"80px"},Xt.createElement(bt.default,{checked:Rn.group_ids=="",value:"all",onChange:sr=>{delete Rn.group_ids,Rn.group_ids=[],Rn.page=1,Qa(Ht({},Rn))}},"\u5168\u90E8")),Xt.createElement(Qt.Z,{flex:"1"},ba.group_info&&ba.group_info.map((sr,Vn)=>Xt.createElement(bt.default,{style:{marginLeft:0},value:sr.id,checked:Rn.group_ids.includes(sr.id),onChange:Ir=>{Ir.target.checked?Rn.group_ids.push(sr.id):Rn.group_ids.splice(Rn.group_ids.indexOf(sr.id),1),Rn.page=1,Qa(Ht({},Rn))}},sr.name,"(",sr.members_count,")")))),Xt.createElement(gt.Z,{className:"font14 c-red mt5"},Xt.createElement(Qt.Z,null,"\u672C\u9875\u4EC5\u663E\u793A\u5168\u90E8\u5DF2\u67E5\u91CD\u5206\u73ED"))),Xt.createElement("p",{className:"mt10"},Xt.createElement("span",{className:"c-red"},ba.copy_reviews_count),"\u4E2A\u7591\u4F3C\u6284\u88AD\u4F5C\u54C1\uFF08",ba.all_reviews_count,"\u4F5C\u54C1\uFF09"),Xt.createElement(Te.default,{className:"mt30",loading:kt["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:ba.users_reviews,columns:cr,onChange:(sr,Vn,Ir)=>{Ir.order==="ascend"&&(Rn.b_order="asc"),Ir.order==="descend"&&(Rn.b_order="desc"),Ir.order||delete Rn.b_order,zt({type:"shixunHomeworks/getCodeReview",payload:Ht({},Rn)})}}),Xt.createElement("aside",{className:"tc mb50 mt30"},Xt.createElement(Ce.Z,{showSizeChanger:!1,onChange:Po,defaultCurrent:Rn.page||1,current:Rn.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:ba.copy_reviews_count}))))};var Ct=(0,pe.connect)(({shixunHomeworks:_t,classroomList:kt,loading:zt})=>({shixunHomeworks:_t,classroomList:kt,loading:zt.effects}))(Ue),Pt=ee(42469),Zt=ee(34336),vn=ee(11713),Nt=ee(78045),Tt=ee(31795),St=ee(40043),en=ee(24018),Gt=ee(96486),mn={flex_box_center:"flex_box_center___pegyD",flex_space_between:"flex_space_between___OEf74",flex_box_vertical_center:"flex_box_vertical_center___Gg0ks",flex_box_center_end:"flex_box_center_end___ZDNgp",flex_box_column:"flex_box_column___kUnuF",form:"form___dWO2F",title:"title___tyrHF",content:"content____AOnH",pubColSty:"pubColSty___jjxFz",selectSty:"selectSty___RPIyk",borderSty:"borderSty___NbRdH",delSty:"delSty___Yap2B",delBorder:"delBorder___iWzM8",copHover:"copHover___DYJF8"},Qn=ee(39717),xn=ee(17998),Un=ee(78207),pa=ee(92882),Kt=ee(67294),$t=Object.defineProperty,qt=Object.defineProperties,sa=Object.getOwnPropertyDescriptors,ra=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,Ta=(_t,kt,zt)=>kt in _t?$t(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,Pr=(_t,kt)=>{for(var zt in kt||(kt={}))Hn.call(kt,zt)&&Ta(_t,zt,kt[zt]);if(ra)for(var zt of ra(kt))Oa.call(kt,zt)&&Ta(_t,zt,kt[zt]);return _t},zr=(_t,kt)=>qt(_t,sa(kt)),Na=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});const{RangePicker:Xe}=Zt.default,{Option:Bt}=vn.default,xt=({shixunHomeworks:_t,user:kt,loading:zt,classroomList:Da,dispatch:ar})=>{var Ia,Rn,Qa,En,ba,Pa,Gr,Wa,Ko,uo,Po,cr;const sr=(0,pe.useParams)(),{workSetting:Vn,workList:Ir,changeData:oi}=_t,[ka,ya]=(0,x.useState)(!0),[Yr,Oi]=(0,x.useState)(!1);let[Jn,pr]=(0,x.useState)([]),[Ca,ln]=(0,x.useState)([]);const ma=(0,x.useRef)(!0);let[Fn,$r]=(0,x.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_minus_score:0,penalty_type:Qn.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,send_type:void 0,difficult_count:[],difficult_settings:[],late_penalty:0});(0,x.useEffect)(()=>(wr(),()=>{pr([])}),[]);const wr=()=>{ar({type:"shixunHomeworks/getWorkSetting",payload:Pr({},sr)})};(0,x.useEffect)(()=>{var Nn,fa;((0,Ae.G5)()||(0,Ae.Rm)()&&((Nn=Da.AssistantObject.hack)!=null&&Nn.can_late||(fa=Da.AssistantObject.hack)!=null&&fa.can_publish))&&ya(!1)},[kt,Da]),(0,x.useEffect)(()=>{if(!(Vn!=null&&Vn.course_id)||!ma.current)return;ma.current=!1,Object.keys(Fn).map(function(fa){Fn[fa]=Vn[fa]}),(!Fn.allow_late||!Fn.unified_late)&&(Fn.late_minus_score=20,Fn.penalty_type=Qn.Q.Percent),Fn.unified_setting||(Fn.unified_late=!1,Fn.unified_anonymous_comment=!1,Fn.unified_anonymous_appeal=!1),Jn=JSON.parse(JSON.stringify(Vn.group_settings.map(fa=>zr(Pr({},fa),{group_name:[fa.group_name]})).filter(fa=>fa.publish_time!==null))),Ca=JSON.parse(JSON.stringify(Vn.allow_late_settings.map(fa=>zr(Pr({},fa),{group_name:[fa.group_name]})).filter(fa=>fa.late_time!==null))),Fn.difficult_settings.length===0&&(Fn.difficult_settings=[0,0,0]),$r(Pr({},Fn));const Nn=(0,Be.QE)((Jn==null?void 0:Jn.length)>0?Jn:[]);pr([...Nn]),(Ca==null?void 0:Ca.length)<=0?ln([{late_minus_score:20}]):ln([...Ca])},[Vn]);const Lr=()=>{var Nn;if(((Nn=kt==null?void 0:kt.userInfo)==null?void 0:Nn.user_status)===2){(0,Un.Rd)();return}const fa=JSON.parse(JSON.stringify(Fn));if(fa.categoryId=sr.categoryId,Fn.unified_setting||(Jn=Jn==null?void 0:Jn.map(rr=>{var na;if(!rr.publish_time||!rr.end_time)throw De.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!rr.group_name)throw De.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return rr.group_name=typeof(rr==null?void 0:rr.group_name)=="string"?[rr==null?void 0:rr.group_name]:rr==null?void 0:rr.group_name,rr.group_id=(na=Vn.group_settings)==null?void 0:na.filter(Ua=>{var Kr;return(Kr=rr==null?void 0:rr.group_name)==null?void 0:Kr.includes(Ua.group_name)}).map(Ua=>Ua.group_id||Ua.id).toString().split(","),rr})),fa.group_settings=Jn,Fn.allow_late)if(Fn.unified_late){if(Fn.late_minus_score===null||Fn.late_minus_score===void 0||Fn.late_minus_score<0||Fn.late_minus_score>100)throw De.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Fn.late_time)throw De.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Ca=Ca==null?void 0:Ca.map(rr=>{var na,Ua;if(rr.late_minus_score===null||rr.late_minus_score===void 0||rr.late_minus_score<0||rr.late_minus_score>100)throw De.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!rr.late_time)throw De.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!rr.group_name)throw De.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return rr.group_name=typeof(rr==null?void 0:rr.group_name)=="string"?[rr==null?void 0:rr.group_name]:rr==null?void 0:rr.group_name,rr.group_id=(Ua=(na=rr==null?void 0:rr.group_name)==null?void 0:na.map(Kr=>{var Tr,No;let hi=(No=(Tr=Vn.group_settings)==null?void 0:Tr.filter(_i=>(_i==null?void 0:_i.group_name)===Kr))==null?void 0:No[0];return hi==null?void 0:hi.group_id}))==null?void 0:Ua.toString().split(","),rr}),fa.allow_late_settings=Ca;fa.send_type===1&&(fa.difficult_settings=fa.difficult_settings.map(rr=>rr||0)),so(fa)},so=Nn=>{var fa;if(Nn.total_score===null){De.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Nn!=null&&Nn.work_efficiency&&Nn.eff_score===null){De.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const rr={shixun_evaluation:Nn.shixun_evaluation,challenge_settings:Nn.challenge_settings},na=()=>Na(void 0,null,function*(){Oi(!0),(yield(0,de.ZP)(`/api/homework_commons/${sr.categoryId}/publish_setting.json`,{method:"post",body:Pr({},Nn)})).status===0&&(De.ZP.success("\u66F4\u65B0\u6210\u529F"),wr(),ar({type:"shixunHomeworks/getWorkList",payload:Pr({},sr)})),Oi(!1)});!(0,Gt.isEqual)(oi,rr)&&!((fa=Ir==null?void 0:Ir.homework_status)!=null&&fa.includes("\u672A\u53D1\u5E03"))?we.default.confirm({title:"\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:"\u53D6\u6D88",onOk:na}):na()},Fr=(Nn,fa,rr="group_id")=>{var na;return fa?fa.find(Ua=>Ua[rr]===Nn):(na=Vn==null?void 0:Vn.group_settings)==null?void 0:na.find(Ua=>Ua.group_id[0]===Nn)},po=(Vn==null?void 0:Vn.allow_late)||(Vn==null?void 0:Vn.anonymous_comment),lr=Nn=>{var fa,rr;const na=Fr(Nn,Vn==null?void 0:Vn.allow_late_settings,"id"),Ua=Fr(Nn,Vn==null?void 0:Vn.anonymous_comment_settings),Kr=Fr(Nn);return(Vn==null?void 0:Vn.allow_late)&&na&&le()(na==null?void 0:na.late_time)<=le()()||(Vn==null?void 0:Vn.anonymous_comment)&&Ua&&(Ua==null?void 0:Ua.evaluation_start)!==null||((rr=(le()(Kr==null?void 0:Kr.end_time)<=le()()&&((fa=Vn==null?void 0:Vn.allow_late_settings)==null?void 0:fa.filter(Tr=>Tr.group_id.includes(Nn))))[0])==null?void 0:rr.late_time)!=null},Nr=Vn==null?void 0:Vn.anonymous_comment,yo=Nn=>{if(!Nn)return!1;const fa=Fr(Nn,Vn==null?void 0:Vn.anonymous_comment_settings);return(Vn==null?void 0:Vn.anonymous_comment)&&fa&&(fa==null?void 0:fa.evaluation_start)!==null},Uo=(Nn,fa)=>{var rr,na,Ua;ar({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Nn,index:fa,rangePickerDisabled:ka||(le()()<=le()((na=Fr((rr=Nn==null?void 0:Nn.group_id)==null?void 0:rr[0]))==null?void 0:na.publish_time)?!1:[!0,lr((Ua=Nn==null?void 0:Nn.group_id)==null?void 0:Ua[0])]),disabledDate:Vn==null?void 0:Vn.course_end_date}})};return Kt.createElement("section",{className:mn.form},Kt.createElement("div",{className:mn.title},"\u8BD5\u9898\u53D1\u5E03",Kt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Kt.createElement("div",{className:mn.content},Kt.createElement(Nt.ZP.Group,{disabled:ka||!((Ia=Ir==null?void 0:Ir.homework_status)!=null&&Ia.includes("\u672A\u53D1\u5E03"))||!((Rn=Da.AssistantObject.hack)!=null&&Rn.can_publish)&&(0,Ae.Rm)(),value:Fn.send_type,onChange:Nn=>{Fn.send_type=Nn.target.value,$r(Object.assign({},Fn))}},Kt.createElement(Nt.ZP,{value:0,style:{color:"#333333"}},"\u56FA\u5B9A\u8BD5\u9898\u6A21\u5F0F"),Kt.createElement(Nt.ZP,{style:{marginLeft:40,color:"#333333"},value:1},"\u968F\u673A\u62BD\u9898\u6A21\u5F0F"))),Fn.send_type===1&&Kt.createElement("div",{className:mn.content,style:{borderTop:"1px solid #fff"}},Kt.createElement(gt.Z,{style:{marginLeft:"165px"}},Kt.createElement(Qt.Z,{style:{color:"#333333"}},"\u7B80\u5355\u9898\u6570",Kt.createElement(Tt.Z,{size:"large",precision:0,disabled:ka||!((Qa=Ir==null?void 0:Ir.homework_status)!=null&&Qa.includes("\u672A\u53D1\u5E03")),placeholder:`\u6700\u5927${Fn.difficult_count[0]||0}`,min:0,max:Fn.difficult_count[0]||0,value:Fn.difficult_settings[0],onChange:Nn=>{Fn.difficult_settings[0]=Nn,$r(Object.assign({},Fn))},className:"ml10 mr20",style:{width:120}})),Kt.createElement(Qt.Z,{style:{color:"#333333"}},"\u9002\u4E2D\u9898\u6570",Kt.createElement(Tt.Z,{size:"large",precision:0,disabled:ka||!((En=Ir==null?void 0:Ir.homework_status)!=null&&En.includes("\u672A\u53D1\u5E03")),placeholder:`\u6700\u5927${Fn.difficult_count[1]||0}`,min:0,max:Fn.difficult_count[1]||0,value:Fn.difficult_settings[1],onChange:Nn=>{Fn.difficult_settings[1]=Nn,$r(Object.assign({},Fn))},className:"ml10 mr20",style:{width:120}})),Kt.createElement(Qt.Z,{style:{color:"#333333"}},"\u56F0\u96BE\u9898\u6570",Kt.createElement(Tt.Z,{size:"large",precision:0,disabled:ka||!((ba=Ir==null?void 0:Ir.homework_status)!=null&&ba.includes("\u672A\u53D1\u5E03")),placeholder:`\u6700\u5927${Fn.difficult_count[2]||0}`,min:0,max:Fn.difficult_count[2]||0,value:Fn.difficult_settings[2],onChange:Nn=>{Fn.difficult_settings[2]=Nn,$r(Object.assign({},Fn))},className:"ml10 mr20",style:{width:120}})))),Kt.createElement("div",{className:`${mn.title} mt30`},"\u4F5C\u4E1A\u53D1\u5E03",Kt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u53D1\u5E03\u65B9\u5F0F\uFF09")),Kt.createElement("div",{className:mn.content},Kt.createElement(Nt.ZP.Group,{disabled:ka||!((Pa=Ir==null?void 0:Ir.homework_status)!=null&&Pa.includes("\u672A\u53D1\u5E03"))||!((Gr=Da.AssistantObject.hack)!=null&&Gr.can_publish)&&(0,Ae.Rm)(),value:Fn.unified_setting,onChange:Nn=>{var fa;if(!((fa=Ir==null?void 0:Ir.homework_status)!=null&&fa.includes("\u672A\u53D1\u5E03"))){De.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Fn.unified_setting=!Fn.unified_setting,Fn.unified_setting||(Fn.unified_late=!1),$r(Object.assign({},Fn)),Fn.unified_setting===!1&&Jn==""){pr(Jn.concat({}));return}Fn.unified_setting&&(pr([]),ln([{late_minus_score:5}]))}},Kt.createElement(Nt.ZP,{value:!0,disabled:!(Vn!=null&&Vn.manage_all_group),style:{color:"#333333"}},"\u7EDF\u4E00\u53D1\u5E03"),Kt.createElement(Nt.ZP,{style:{marginLeft:70,color:"#333333"},disabled:((Wa=Vn==null?void 0:Vn.group_settings)==null?void 0:Wa.length)===0,value:!1},"\u5206\u73ED\u53D1\u5E03")),((Ko=Vn==null?void 0:Vn.group_settings)==null?void 0:Ko.length)===0&&Kt.createElement("p",{style:{marginLeft:"14px",color:"rgba(0, 0, 0, 0.25)"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Kt.createElement("div",{className:mn.content,style:{borderTop:"1px solid #fff"}},Fn.unified_setting&&Kt.createElement(gt.Z,{align:"middle",className:"ml25"},Kt.createElement(gt.Z,{align:"middle"},Kt.createElement(Qt.Z,{className:"c-grey-333"},"\u53D1\u5E03\u65F6\u95F4"),Kt.createElement(Qt.Z,{className:"ml10"},Kt.createElement(Zt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,size:"large",format:"YYYY-MM-DD HH:mm",disabledDate:Nn=>(0,xn.Q8)(Nn,Vn==null?void 0:Vn.course_end_date),disabledTime:Nn=>(0,xn.d0)(Nn),disabled:ka||le()()>=le()(Vn==null?void 0:Vn.publish_time)||!((uo=Da.AssistantObject.hack)!=null&&uo.can_publish)&&(0,Ae.Rm)(),value:Fn.publish_time?le()(Fn.publish_time):"",onChange:(Nn,fa)=>{Fn.publish_time=fa,(Fn.end_time==""||!Fn.end_time)&&Fn.unified_setting&&(Fn.end_time=le()(Nn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),$r(Object.assign({},Fn))}}))),Kt.createElement(gt.Z,{align:"middle",style:{marginLeft:40}},Kt.createElement(Qt.Z,{className:"c-grey-333"},"\u622A\u6B62\u65F6\u95F4"),Kt.createElement(Qt.Z,{className:"ml10"},Kt.createElement(Zt.default,{style:{width:170},allowClear:!1,size:"large",placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:le()((0,Be.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Vn==null?void 0:Vn.allow_late)&&(Vn==null?void 0:Vn.homework_status.includes("\u5DF2\u622A\u6B62"))||ka||(Vn==null?void 0:Vn.allow_late)&&le()()>=le()(Vn==null?void 0:Vn.end_time)||!((Po=Da.AssistantObject.hack)!=null&&Po.can_publish)&&(0,Ae.Rm)(),disabledDate:Nn=>(0,xn.Q8)(Nn,Vn==null?void 0:Vn.course_end_date,Fn.publish_time),disabledTime:Nn=>(0,xn.d0)(Nn,Fn.publish_time),value:Fn.end_time?le()(Fn.end_time):"",onChange:(Nn,fa)=>{Fn.end_time=fa,$r(Object.assign({},Fn))}})))),!Fn.unified_setting&&(Jn==null?void 0:Jn.length)>0&&Kt.createElement(gt.Z,{className:"ml25"},Jn&&Jn.map(function(Nn,fa){var rr,na,Ua,Kr;return Kt.createElement(Qt.Z,{className:fa!==0&&"mt20",span:24,key:fa},Kt.createElement(gt.Z,{gutter:[0,16]},Kt.createElement(Qt.Z,{span:8},Kt.createElement(gt.Z,{gutter:[8,16],align:"middle"},Kt.createElement(Qt.Z,{style:{minWidth:85},className:"c-grey-333"},"\u53D1\u5E03\u89C4\u5219 ",fa+1),Kt.createElement(Qt.Z,{flex:"1",style:{maxWidth:300}},Kt.createElement(vn.default,{size:"large",disabled:ka||((rr=Vn==null?void 0:Vn.homework_status)!=null&&rr.includes("\u672A\u53D1\u5E03")&&Nn.id||le()(){var No;if(!((No=Da.AssistantObject.hack)!=null&&No.can_publish)&&(0,Ae.Rm)()){De.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}Jn[fa].group_name=Tr,Jn[fa].group_id=Nn.group_id;const hi=(0,Gt.flattenDeep)(Jn.map(qi=>qi.group_name)),_i=Ca.map(qi=>{let Pl=(qi==null?void 0:qi.group_name)||[];return zr(Pr({},qi),{group_name:(0,Gt.remove)(Pl,xu=>hi.includes(xu))})});ln(_i),pr(Jn.slice())},maxTagCount:4,maxTagPlaceholder:Tr=>Kt.createElement("div",{style:{cursor:"pointer"},onClick:()=>Uo(Nn,fa)},"+",Tr==null?void 0:Tr.length)},Vn.group_settings&&Vn.group_settings.map(function(Tr){if(!Jn.map(No=>No.group_name).toString().split(",").includes(String(Tr.group_name)))return Kt.createElement(Bt,{value:Tr.group_name,key:Tr.id},Tr.group_name)}))))),Kt.createElement(Qt.Z,{span:14,style:{display:"flex",alignItems:"center"}},Kt.createElement(Xe,{size:"large",allowClear:!1,ranges:{\u6B64\u523B:[Nn.publish_time?le()(Nn.publish_time):le()(),le()()]},disabled:ka||(le()()<=le()((na=Fr(Nn.id))==null?void 0:na.publish_time)?!1:[!0,lr(Nn.id)]),style:{width:605,marginLeft:10},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Tr=>(0,xn.Q8)(Tr,Vn==null?void 0:Vn.course_end_date),disabledTime:Tr=>(0,xn.d0)(Tr),showTime:{format:"HH:mm",defaultValue:[le()((0,Be.U6)(),"HH:mm"),le()((0,Be.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Nn.publish_time&&[le()(Nn.publish_time),Nn.end_time?le()(Nn.end_time):void 0],onChange:(Tr,No)=>{var hi;if(!((hi=Da.AssistantObject.hack)!=null&&hi.can_publish)&&(0,Ae.Rm)()){De.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}Jn[fa].publish_time=No[0],!Nn.end_time&&No[0]?Jn[fa].end_time=le()(No[0]).add(7,"days"):Jn[fa].end_time=No[1],pr([...Jn])},onCalendarChange:(Tr,No,hi)=>{if(No!=null&&No[0]&&!No[1]){const _i=le()(No[0]).add(7,"days");Jn[fa].publish_time=No[0],Jn[fa].end_time=_i,pr([...Jn])}}})),!ka&&Kt.createElement(Qt.Z,{span:2,style:{display:"flex",alignItems:"center"}},((Ua=Nn==null?void 0:Nn.group_id)==null?void 0:Ua.length)>1&&Kt.createElement(We.Z,{title:"\u89C4\u5219\u62C6\u5206"},Kt.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0",fontSize:14},onClick:()=>Uo(Nn,fa)})),Jn.length<((Kr=Vn==null?void 0:Vn.group_settings)==null?void 0:Kr.length)&&Kt.createElement(St.Z,{className:"c-green ml10 mr10",onClick:()=>{pr(Jn.concat({}))}}),((Nn==null?void 0:Nn.publish_time)&&le()(){var Tr;if(!((Tr=Da.AssistantObject.hack)!=null&&Tr.can_publish)&&(0,Ae.Rm)()){De.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 No=(0,Gt.cloneDeep)(Ca);No.forEach((hi,_i)=>{hi.group_name&&(hi.group_name=hi.group_name.filter(qi=>{var Pl;return!((Pl=Jn[fa].group_name)!=null&&Pl.includes(qi))}))}),ln(No),Jn=Jn.filter((hi,_i)=>fa!==_i),pr(Jn.slice()),setTimeout(()=>pr(Jn.slice()),10)}}))))}))),Kt.createElement("div",{className:`${mn.title} mt30`},"\u8865\u4EA4\u8BBE\u7F6E",Kt.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\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")),Kt.createElement("div",{className:mn.content},Kt.createElement(gt.Z,null,Kt.createElement(bt.default,{checked:Fn.allow_late,disabled:ka||(Vn==null?void 0:Vn.allow_late),onChange:Nn=>{var fa;if(!((fa=Da.AssistantObject.hack)!=null&&fa.can_late)&&(0,Ae.Rm)()){De.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}Nn.target.checked&&we.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",width:480,centered:!0,content:Kt.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Kt.createElement("div",null,"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"),Kt.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Kt.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Fn.allow_late=!Fn.allow_late,Ca==""&&ln([{late_minus_score:5}]),$r(Object.assign({},Fn))}},Kt.createElement("span",{style:{fontSize:"14px"}},"\u5F00\u542F\u8865\u4EA4")))),(Fn==null?void 0:Fn.allow_late)&&Kt.createElement("div",{className:mn.content,style:{borderTop:"1px solid #fff",paddingLeft:54}},Kt.createElement("div",null,Kt.createElement("span",{style:{color:"#333333",marginRight:12}},"\u8865\u4EA4\u65B9\u5F0F\uFF1A"),Kt.createElement(Nt.ZP.Group,{disabled:ka||(Vn==null?void 0:Vn.anonymous_comment)||(Vn==null?void 0:Vn.allow_late),value:Fn.unified_late,onChange:Nn=>{var fa;if((0,Ae.Rm)()&&!((fa=Da.AssistantObject.hack)!=null&&fa.can_late)){De.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}Fn.unified_late=Nn.target.value,Ca==""&&!Nn.target.value&&ln([{late_minus_score:5}]),$r(Pr({},Fn))}},(Fn==null?void 0:Fn.unified_setting)&&Kt.createElement(Nt.ZP,{value:!0,style:{color:"#333333"},disabled:!(Vn!=null&&Vn.manage_all_group)}," \u7EDF\u4E00\u8865\u4EA4 "),((cr=Vn==null?void 0:Vn.group_settings)==null?void 0:cr.length)&&Kt.createElement(Nt.ZP,{value:!1,style:{color:"#333333"}}," \u5206\u73ED\u8865\u4EA4 "))),Fn!=null&&Fn.unified_late?Kt.createElement(Kt.Fragment,null,Kt.createElement(gt.Z,{align:"middle",className:"mt25"},Kt.createElement(Qt.Z,{style:{color:"#333333"}},"\u8865\u4EA4\u6263\u5206:"),Kt.createElement(Qt.Z,{className:"ml5"},Kt.createElement(Qn.Z,{disabled:ka||Nr,value:{type:Fn.penalty_type,inputValue:Fn.late_minus_score},onChange:Nn=>{var fa;if((0,Ae.Rm)()&&!((fa=Da.AssistantObject.hack)!=null&&fa.can_late)){De.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}$r(zr(Pr({},Fn),{late_minus_score:Nn.inputValue,penalty_type:Nn.type}))}})),Kt.createElement(Qt.Z,{flex:"1",className:"ml5"},Kt.createElement("span",{className:"c-grey-c ml10"},Fn.penalty_type===Qn.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\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)"))),Kt.createElement(gt.Z,{align:"middle",className:"mt25"},Kt.createElement(Qt.Z,{style:{color:"#333333"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),Kt.createElement(Qt.Z,{className:"ml5"},Kt.createElement(Zt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:le()((0,Be.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:ka||Nr,value:Fn.late_time?le()(Fn.late_time):"",disabledDate:Nn=>(0,xn.Q8)(Nn,Vn==null?void 0:Vn.course_end_date),disabledTime:Nn=>(0,xn.d0)(Nn),onChange:(Nn,fa)=>{var rr;if((0,Ae.Rm)()&&!((rr=Da.AssistantObject.hack)!=null&&rr.can_late)){De.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}Fn.late_time=fa,$r(Object.assign({},Fn))}})),Kt.createElement(Qt.Z,null,Kt.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u201C\u5EF6\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9)")))):Ca.map(function(Nn,fa){var rr;return Kt.createElement(Qt.Z,{span:24,key:fa},Kt.createElement(gt.Z,{className:"mt25",align:"middle"},Kt.createElement(Qt.Z,null,Kt.createElement("span",{style:{minWidth:85,display:"inline-block",color:"#333333"}},"\u8865\u4EA4\u89C4\u5219",fa+1,"\uFF1A"),Kt.createElement(vn.default,{size:"large",disabled:ka||!((rr=Ir==null?void 0:Ir.homework_status)!=null&&rr.includes("\u672A\u53D1\u5E03"))&&Nn.id||(Vn==null?void 0:Vn.anonymous_comment),mode:"multiple",className:`${mn.selectSty}`,style:{width:200},value:typeof Nn.group_name=="string"?[Nn.group_name]:Nn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:na=>{var Ua;if((0,Ae.Rm)()&&!((Ua=Da.AssistantObject.hack)!=null&&Ua.can_late)){De.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}Ca[fa].group_name=na,Ca[fa].group_id=Nn.group_id,ln(Ca.slice())}},Vn.group_settings&&Vn.group_settings.map(function(na){if(Fn!=null&&Fn.unified_setting&&!Ca.map(Ua=>Ua.group_name).toString().split(",").includes(String(na.group_name)))return Kt.createElement(Bt,{value:na.group_name,key:na.id},na.group_name);if(Jn.map(Ua=>Ua.group_name).toString().split(",").includes(String(na.group_name))&&!Ca.map(Ua=>Ua.group_name).toString().split(",").includes(String(na.group_name)))return Kt.createElement(Bt,{value:na.group_name,key:na.id},na.group_name)}))),Kt.createElement(Qt.Z,{className:"ml20",style:{display:"flex",alignItems:"center"}},Kt.createElement("div",{style:{color:"#333333"}},"\u8865\u4EA4\u6263\u5206\uFF1A"),Kt.createElement(Qn.Z,{disabled:ka||yo(Nn.id),value:{type:Nn.penalty_type,inputValue:Nn.late_minus_score},onChange:na=>{var Ua;if((0,Ae.Rm)()&&!((Ua=Da.AssistantObject.hack)!=null&&Ua.can_late)){De.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}Ca[fa].late_minus_score=na.inputValue,Ca[fa].penalty_type=na.type,ln([...Ca])}})),Kt.createElement(Qt.Z,{className:"ml20"},Kt.createElement("span",{style:{color:"#333333"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),Kt.createElement(Zt.default,{size:"large",disabled:ka||yo(Nn.id),style:{width:200},showTime:{format:"HH:mm",defaultValue:le()((0,Be.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:na=>(0,xn.Q8)(na,Vn==null?void 0:Vn.course_end_date),disabledTime:na=>(0,xn.d0)(na),format:"YYYY-MM-DD HH:mm",value:Nn!=null&&Nn.late_time?le()(Nn.late_time):void 0,onChange:(na,Ua)=>{var Kr;if((0,Ae.Rm)()&&!((Kr=Da.AssistantObject.hack)!=null&&Kr.can_late)){De.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}Ca[fa].late_time=Ua,ln([...Ca])}})),!ka&&Kt.createElement(Qt.Z,{style:{marginLeft:10}},fa>0&&!Nn.id&&Kt.createElement(en.Z,{className:"mr10",style:{color:"#E30000"},onClick:()=>{Ca=Ca.filter((na,Ua)=>fa!==Ua),ln(Ca.slice()),setTimeout(()=>ln(Ca.slice()),10)}}),Kt.createElement(St.Z,{className:"c-green",onClick:()=>{var na;if((0,Ae.Rm)()&&!((na=Da.AssistantObject.hack)!=null&&na.can_late)){De.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}ln(Ca.concat({penalty_type:Qn.Q.Percent,late_minus_score:20}))}}))))})),!ka&&Kt.createElement(ke.ZP,{type:"primary",size:"large",style:{width:138},className:"mt30",loading:Yr,onClick:()=>Lr()},"\u4FDD\u5B58"),Kt.createElement(pa.Z,{onConfirm:(Nn,fa)=>{Jn.splice(Nn,0,...fa),Jn.splice(Nn+fa.length,1);const rr=(0,Be.QE)([...Jn]);pr([...rr])}}))};var Tn=(0,pe.connect)(({shixunHomeworks:_t,classroomList:kt,user:zt,loading:Da})=>({shixunHomeworks:_t,loading:Da.effects,user:zt,classroomList:kt}))(xt),pn=ee(67294),_n=Object.defineProperty,Qr=Object.defineProperties,Ra=Object.getOwnPropertyDescriptors,br=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,Xn=(_t,kt,zt)=>kt in _t?_n(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,ur=(_t,kt)=>{for(var zt in kt||(kt={}))Vr.call(kt,zt)&&Xn(_t,zt,kt[zt]);if(br)for(var zt of br(kt))mo.call(kt,zt)&&Xn(_t,zt,kt[zt]);return _t},pt=(_t,kt)=>Qr(_t,Ra(kt)),Jt=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});function Ut(_t,kt){const zt=[];for(let Da=_t;Da{let kt=new Date;const zt=le()(_t).format("HH");if(le()(_t).isSame(le()(kt),"day")){const Da=le()(kt).format("HH"),ar=le()(kt).format("mm");return{disabledHours:()=>Ut(0,24).splice(1,Da*1-1),disabledMinutes:()=>(console.log("\u7981\u6B62\u65F6\u95F4\uFF1A",zt,Da),le()(_t).isSame(le()(kt),"hour")&&zt<=Da?Ut(0,60).splice(0,ar):Ut(60,60))}}else if(le()(_t).isSame(le()(),"day")){const Da=le()().format("HH"),ar=le()().format("mm");return{disabledHours:()=>Ut(0,24).splice(0,Da),disabledMinutes:()=>zt<=Da?Ut(0,ar):Ut(60,60)}}else return},{RangePicker:jn}=Zt.default,{Option:tn}=vn.default,Yn=({shixunHomeworks:_t,loading:kt,dispatch:zt})=>{const Da=(0,pe.useParams)(),ar=(0,pe.useLocation)(),{workSetting:Ia,workList:Rn,changeData:Qa}=_t,[En,ba]=(0,x.useState)(!0),[Pa,Gr]=(0,x.useState)({}),[Wa,Ko]=(0,x.useState)(!1),[uo]=Et.default.useForm();let[Po,cr]=(0,x.useState)([]),[sr,Vn]=(0,x.useState)([]);const[Ir,oi]=(0,x.useState)([]),ka=(0,x.useRef)(!0);let[ya,Yr]=(0,x.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,open_code:!1,rank_forbidden:!1,hack_analysis:!1,hack_answer:!1,open_code_type:void 0,hack_analysis_type:2,hack_answer_type:1,comment_public:!0,total_score:"",eff_score:0,rank_forbidden_start:"",rank_forbidden_end:"",show_late_code:!0});(0,x.useEffect)(()=>()=>{cr([])},[]),(0,x.useEffect)(()=>{Ia!=null&&Ia.can_edit&&ba(!1)},[Ia]);const Oi=()=>{zt({type:"shixunHomeworks/getWorkSetting",payload:ur({},Da)})},Jn=ln=>ln&&ln{Ia!=null&&Ia.course_id&&ka.current&&(ka.current=!1,Object.keys(ya).map(function(ln){Ia[ln]!==void 0&&(ya[ln]=Ia[ln])}),(!ya.allow_late||!ya.unified_late)&&(ya.late_penalty=5),Po=JSON.parse(JSON.stringify(Ia.group_settings.map(ln=>pt(ur({},ln),{group_name:[ln.group_name]})).filter(ln=>ln.publish_time!==null))),sr=JSON.parse(JSON.stringify(Ia.allow_late_settings.map(ln=>pt(ur({},ln),{group_name:[ln.group_name]})).filter(ln=>ln.rank_forbidden_start!==null))),Yr(ur({},ya)),console.log(ya,Ia,"data"),cr([...Po]),(sr==null?void 0:sr.length)<=0?Vn([{}]):Vn([...sr]))},[Ia]);const pr=()=>{const ln=JSON.parse(JSON.stringify(ya));if(ln.categoryId=Da.categoryId,ya.unified_setting||(Po=Po==null?void 0:Po.map(ma=>{var Fn;if(!ma.publish_time||!ma.end_time)throw De.ZP.error("\u8BF7\u628A\u5F00\u59CB\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u5F00\u59CB\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ma.group_name)throw De.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ma.group_name=typeof(ma==null?void 0:ma.group_name)=="string"?[ma==null?void 0:ma.group_name]:ma==null?void 0:ma.group_name,ma.group_id=(Fn=Ia.group_settings)==null?void 0:Fn.filter($r=>{var wr;return(wr=ma==null?void 0:ma.group_name)==null?void 0:wr.includes($r.group_name)}).map($r=>$r.group_id||$r.id).toString().split(","),ma})),ln.group_settings=Po,ya.rank_forbidden)if(ya.unified_setting){if(!ya.rank_forbidden_start)throw De.ZP.error("\u8BF7\u628A\u5F00\u59CB\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u5F00\u59CB\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ya.rank_forbidden_end)throw De.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(le()(ya.rank_forbidden_end){var Fn,$r;if(!ma.rank_forbidden_start)throw De.ZP.error("\u8BF7\u628A\u5F00\u59CB\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u5F00\u59CB\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ma.rank_forbidden_end)throw De.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!ma.group_name)throw De.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return ma.group_name=typeof(ma==null?void 0:ma.group_name)=="string"?[ma==null?void 0:ma.group_name]:ma==null?void 0:ma.group_name,ma.group_id=($r=(Fn=ma==null?void 0:ma.group_name)==null?void 0:Fn.map(wr=>{var Lr,so;let Fr=(so=(Lr=Ia.group_settings)==null?void 0:Lr.filter(po=>(po==null?void 0:po.group_name)===wr))==null?void 0:so[0];return Fr==null?void 0:Fr.group_id}))==null?void 0:$r.toString().split(","),ma}),ln.group_settingss=sr;Ca(ln)},Ca=ln=>{if(console.log(ln.total_score,ln.eff_score),ln.total_score===null){De.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(ln!=null&&ln.work_efficiency&&ln.eff_score===null){De.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const ma={shixun_evaluation:ln.shixun_evaluation};Jt(void 0,null,function*(){Ko(!0),(yield(0,de.ZP)(`/api/homework_commons/${Da.categoryId}/public_setting.json`,{method:"post",body:ur({},ln)})).status===0&&(De.ZP.success("\u66F4\u65B0\u6210\u529F"),Oi(),zt({type:"shixunHomeworks/getWorkList",payload:ur({},Da)})),Ko(!1)})};return pn.createElement("section",{className:mn.form},pn.createElement("div",{className:mn.title},"\u516C\u5F00\u8BBE\u7F6E"),pn.createElement("div",{className:mn.content,style:{padding:0}},pn.createElement(gt.Z,null,pn.createElement(Qt.Z,{span:24,className:mn.pubColSty},pn.createElement(bt.default,{checked:ya.score_open,disabled:En,onChange:ln=>{ya.score_open=ln.target.checked,Yr(Object.assign({},ya))}},pn.createElement("span",{className:"font14 c-grey-333"},"\u516C\u5F00\u6210\u7EE9")),pn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09")),pn.createElement(Qt.Z,{span:24,className:mn.pubColSty,style:{borderBottom:ya.open_code?"none":"1px solid #fff"}},pn.createElement(bt.default,{checked:ya.open_code,disabled:En,onChange:ln=>{ya.open_code=ln.target.checked,ln.target.checked&&(ya.open_code_type=1),Yr(Object.assign({},ya))}},pn.createElement("span",{className:"font14 c-grey-333"},"\u516C\u5F00\u4EE3\u7801")),pn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u53EF\u5728\u6392\u884C\u699C\u4E2D\u67E5\u770B\u4ED6\u4EBA\u8BD5\u9898\u901A\u8FC7\u4EE3\u7801\u8BE6\u60C5\uFF09")),!!ya.open_code&&pn.createElement(Qt.Z,{span:24,className:mn.pubColSty},pn.createElement(Nt.ZP.Group,{style:{marginLeft:"24px"},disabled:En,value:ya.open_code_type,onChange:ln=>{ya.open_code_type=ln.target.value,Yr(Object.assign({},ya))}},pn.createElement(Nt.ZP,{value:1,style:{color:"#333333"}},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),pn.createElement(Nt.ZP,{value:0,style:{marginLeft:60,color:"#333333"}},"\u4EFB\u610F\u65F6\u95F4"))),pn.createElement(Qt.Z,{span:24,className:mn.pubColSty,style:{borderBottom:ya.rank_forbidden&&ya.unified_setting||!ya.unified_setting&&(Po==null?void 0:Po.length)>0&&ya.rank_forbidden?"none":"1px solid #fff"}},pn.createElement(bt.default,{checked:ya.rank_forbidden,disabled:En,onChange:ln=>{ya.rank_forbidden=ln.target.checked,Yr(Object.assign({},ya))}},pn.createElement("span",{className:"font14"},"\u5F00\u542F\u5C01\u699C")),pn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u4E0D\u53EF\u67E5\u770B\u6392\u884C\u699C\u4FE1\u606F\u7684\u65F6\u95F4\u6BB5\uFF09")),!!ya.rank_forbidden&&ya.unified_setting&&pn.createElement(Qt.Z,{span:24,className:mn.pubColSty,style:{height:"50px",lineHeight:"50px"}},pn.createElement("div",{style:{marginLeft:"24px"}},pn.createElement(gt.Z,{align:"middle"},pn.createElement(Qt.Z,null,"\u5F00\u59CB\u65F6\u95F4"),pn.createElement(Qt.Z,{className:"ml10"},pn.createElement(Zt.default,{size:"large",style:{width:370},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF08\u5B66\u751F\u770B\u4E0D\u5230\u6392\u884C\u699C\u7684\u5F00\u59CB\u65F6\u95F4\uFF09",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Jn,disabledTime:dn,disabled:En||le()()>le()(Ia.rank_forbidden_start),value:ya.rank_forbidden_start?le()(ya.rank_forbidden_start):"",onChange:(ln,ma)=>{ya.rank_forbidden_start=ma,(ya.end_time==""||!ya.end_time)&&ya.unified_setting&&(ya.end_time=le()(ln).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),Yr(Object.assign({},ya))}})),pn.createElement(Qt.Z,{className:"ml20"},"\u622A\u6B62\u65F6\u95F4"),pn.createElement(Qt.Z,{className:"ml10"},pn.createElement(Zt.default,{size:"large",style:{width:370},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u770B\u4E0D\u5230\u6392\u884C\u699C\u7684\u7ED3\u675F\u65F6\u95F4\uFF09",showTime:{format:"HH:mm",defaultValue:le()((0,Be.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:En,disabledDate:Jn,value:ya.rank_forbidden_end?le()(ya.rank_forbidden_end):"",onChange:(ln,ma)=>{ya.rank_forbidden_end=ma,Yr(Object.assign({},ya))}}))))),!ya.unified_setting&&(Po==null?void 0:Po.length)>0&&!!ya.rank_forbidden&&pn.createElement(gt.Z,{align:"middle",style:{borderBottom:"1px solid #fff",paddingBottom:"5px",width:"100%"}},sr.map(function(ln,ma){var Fn,$r,wr,Lr,so,Fr,po;return pn.createElement(Qt.Z,{span:24,key:ma,style:{marginLeft:"24px"}},pn.createElement(gt.Z,{className:"mt10 ml30",align:"middle"},pn.createElement(Qt.Z,null,pn.createElement("span",{style:{color:"#666"}},"\u5C01\u699C\u89C4\u5219",ma+1,"\uFF1A"),pn.createElement(vn.default,{size:"large",disabled:En||!((Fn=Rn==null?void 0:Rn.homework_status)!=null&&Fn.includes("\u672A\u53D1\u5E03"))&&ln.id,mode:"multiple",className:mn.selectSty,style:{width:250},value:typeof ln.group_name=="string"?[ln.group_name]:ln.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:lr=>{sr[ma].group_name=lr,sr[ma].group_id=ln.group_id,Vn(sr.slice())}},Ia.group_settings&&Ia.group_settings.map(function(lr){if(ya!=null&&ya.unified_setting&&!sr.map(Nr=>Nr.group_name).toString().split(",").includes(String(lr.group_name)))return pn.createElement(tn,{value:lr.group_name,key:lr.id},lr.group_name);if(Po.map(Nr=>Nr.group_name).toString().split(",").includes(String(lr.group_name))&&!sr.map(Nr=>Nr.group_name).toString().split(",").includes(String(lr.group_name)))return pn.createElement(tn,{value:lr.group_name,key:lr.id},lr.group_name)}))),pn.createElement(Qt.Z,{span:15},pn.createElement("div",{className:"ml20"},pn.createElement(jn,{size:"large",allowClear:!1,disabled:En||((Lr=(wr=($r=Ia==null?void 0:Ia.group_settings)==null?void 0:$r.filter(lr=>lr.id===ln.id))==null?void 0:wr[0])!=null&&Lr.rank_forbidden_start?le()()lr.id===ln.id))==null?void 0:Fr[0])==null?void 0:po.rank_forbidden_start)?!1:[!0,!1]:!1),style:{width:635},placeholder:["\u5F00\u59CB\u65F6\u95F4\uFF08\u5B66\u751F\u770B\u4E0D\u5230\u6392\u884C\u699C\u7684\u5F00\u59CB\u65F6\u95F4\uFF09","\u7ED3\u675F\u65F6\u95F4\uFF08\u5B66\u751F\u770B\u4E0D\u5230\u6392\u884C\u699C\u7684\u7ED3\u675F\u65F6\u95F4\uFF09"],disabledDate:Jn,disabledTime:dn,showTime:{format:"HH:mm",defaultValue:[le()((0,Be.U6)(),"HH:mm"),le()((0,Be.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:ln.rank_forbidden_start&&[le()(ln.rank_forbidden_start),ln.rank_forbidden_end?le()(ln.rank_forbidden_end):void 0],onChange:(lr,Nr)=>{sr[ma].rank_forbidden_start=Nr[0],sr[ma].rank_forbidden_end=Nr[1],Vn([...sr])}}))),!En&&pn.createElement(Qt.Z,null,pn.createElement(St.Z,{className:"c-green",onClick:()=>{Vn(sr.concat({}))}}),ma>0&&!ln.id&&pn.createElement(en.Z,{className:"c-red ml10",onClick:()=>{sr=sr.filter((lr,Nr)=>ma!==Nr),Vn(sr.slice()),setTimeout(()=>Vn(sr.slice()),10)}}))))})),pn.createElement(Qt.Z,{span:24,className:mn.pubColSty,style:{borderBottom:ya.hack_analysis?"none":"1px solid #fff"}},pn.createElement(bt.default,{checked:ya.hack_analysis,disabled:En,onChange:ln=>{ya.hack_analysis=ln.target.checked,ln.target.checked&&(ya.hack_analysis_type=2),Yr(Object.assign({},ya))}},pn.createElement("span",{className:"font14 c-grey-333"},"\u516C\u5F00\u89E3\u6790")),pn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09")),!!ya.hack_analysis&&pn.createElement(Qt.Z,{span:24,className:mn.pubColSty},pn.createElement(Nt.ZP.Group,{style:{marginLeft:"24px"},disabled:En,value:ya.hack_analysis_type,onChange:ln=>{ya.hack_analysis_type=ln.target.value,Yr(Object.assign({},ya))}},pn.createElement(Nt.ZP,{value:2,style:{color:"#333333"}},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),pn.createElement(Nt.ZP,{style:{marginLeft:60,color:"#333333"},value:0},"\u4EFB\u610F\u65F6\u95F4"),pn.createElement(Nt.ZP,{style:{marginLeft:60,color:"#333333"},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),pn.createElement(Qt.Z,{span:24,className:mn.pubColSty,style:{borderBottom:ya.hack_answer?"none":"1px solid #fff"}},pn.createElement(bt.default,{checked:ya.hack_answer,disabled:En,onChange:ln=>{ya.hack_answer=ln.target.checked,ln.target.checked&&(ya.hack_answer_type=1),Yr(Object.assign({},ya))}},pn.createElement("span",{className:"font14 c-grey-333"},"\u516C\u5F00\u7B54\u6848")),pn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09")),!!ya.hack_answer&&pn.createElement(Qt.Z,{span:24,className:mn.pubColSty},pn.createElement(Nt.ZP.Group,{style:{marginLeft:"24px"},disabled:En,value:ya.hack_answer_type,onChange:ln=>{ya.hack_answer_type=ln.target.value,Yr(Object.assign({},ya))}},pn.createElement(Nt.ZP,{value:1,style:{color:"#333333"}},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),pn.createElement(Nt.ZP,{value:0,style:{marginLeft:60,color:"#333333"}},"\u4EFB\u610F\u65F6\u95F4"))))),pn.createElement("div",{className:`${mn.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),pn.createElement("div",{className:mn.content},pn.createElement(bt.default,{disabled:En,checked:ya.show_late_code,onChange:()=>{ya.show_late_code=!ya.show_late_code,Yr(Object.assign({},ya))}},pn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),pn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801\uFF0C\u5426\u5219\u53EA\u5C55\u793A\u5728\u4F5C\u4E1A\u65F6\u95F4\u8303\u56F4\u5185\u63D0\u4EA4\u7684\u4EE3\u7801\uFF09"))),!En&&pn.createElement(ke.ZP,{type:"primary",size:"large",style:{width:138},className:"mt30",loading:Wa,onClick:()=>pr()},"\u4FDD\u5B58"))};var Pn=(0,pe.connect)(({shixunHomeworks:_t,loading:kt})=>({shixunHomeworks:_t,loading:kt.effects}))(Yn),ua=ee(67294),Ha=Object.defineProperty,ir=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertySymbols,oo=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable,Kn=(_t,kt,zt)=>kt in _t?Ha(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,Br=(_t,kt)=>{for(var zt in kt||(kt={}))oo.call(kt,zt)&&Kn(_t,zt,kt[zt]);if(Hr)for(var zt of Hr(kt))zo.call(kt,zt)&&Kn(_t,zt,kt[zt]);return _t},To=(_t,kt)=>ir(_t,Mr(kt)),oa=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});const Za=({shixunHomeworks:_t,loading:kt,dispatch:zt})=>{var Da;const ar=(0,pe.useParams)(),{workSetting:Ia,workList:Rn,changeData:Qa}=_t,[En,ba]=(0,x.useState)(!0),[Pa,Gr]=(0,x.useState)(!1),[Wa,Ko]=(0,x.useState)(!1),[uo]=Et.default.useForm();let[Po,cr]=(0,x.useState)([]),[sr,Vn]=(0,x.useState)([]);const Ir=!((Da=Rn==null?void 0:Rn.homework_status)!=null&&Da.includes("\u672A\u53D1\u5E03")),oi=(0,x.useRef)(!0);let[ka,ya]=(0,x.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,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,is_onpage_time:!0,training_time_rules:1,hack_settings:[],punish_time:void 0,hack_score_settings:void 0,hack_rank_rule:0});(0,x.useEffect)(()=>()=>{cr([])},[]),(0,x.useEffect)(()=>{Ia!=null&&Ia.can_edit&&ba(!1)},[Ia]);const Yr=()=>{zt({type:"shixunHomeworks/getWorkSetting",payload:Br({},ar)})};(0,x.useEffect)(()=>{Ia!=null&&Ia.course_id&&oi.current&&(oi.current=!1,Object.keys(ka).map(function(ln){ka[ln]=Ia[ln]}),(!ka.allow_late||!ka.unified_late)&&(ka.late_penalty=5),Po=JSON.parse(JSON.stringify(Ia.group_settings.map(ln=>To(Br({},ln),{group_name:[ln.group_name]})).filter(ln=>ln.publish_time!==null))),sr=JSON.parse(JSON.stringify(Ia.allow_late_settings.map(ln=>To(Br({},ln),{group_name:[ln.group_name]})).filter(ln=>ln.late_time!==null))),pr(),ya(Br({},ka)),cr([...Po]),Vn([...sr]))},[Ia]);const Oi=()=>{const ln=JSON.parse(JSON.stringify(ka));Jn(ln)},Jn=ln=>{if(console.log(ln.total_score,ln.eff_score),ln.total_score===null){De.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}const ma=()=>oa(void 0,null,function*(){Gr(!0),(yield(0,de.ZP)(`/api/homework_commons/${ar.categoryId}/hack_score_setting.json`,{method:"post",body:Br({},ln)})).status===0&&(De.ZP.success("\u66F4\u65B0\u6210\u529F"),Yr(),zt({type:"shixunHomeworks/getWorkList",payload:Br({},ar)})),Gr(!1)});(ka==null?void 0:ka.hack_score_settings)!==(Ia==null?void 0:Ia.hack_score_settings)&&Ir?we.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\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:"\u53D6\u6D88",onOk:ma}):ma()},pr=()=>{var ln;const{total_score:ma}=ka,Fn=(ln=ka.hack_settings)==null?void 0:ln.length;if(!Fn)return;let $r=0,wr;switch(ka.hack_score_settings){case 0:const Lr=(ma/Fn).toFixed(2);ka.hack_settings.map((Nn,fa)=>{$r=fa,Nn.hack_score=Lr>0?Lr:0}),wr=(ma-Lr*(Fn-1)).toFixed(2),ka.hack_settings[$r].hack_score=wr>0?wr:0;break;case 1:const so=[0,1,3,6];let Fr=0;const po=ka.hack_settings.filter(Nn=>Nn.difficult===1).length*so[1],lr=ka.hack_settings.filter(Nn=>Nn.difficult===2).length*so[2],Nr=ka.hack_settings.filter(Nn=>Nn.difficult===3).length*so[3],yo=ma/(po+lr+Nr);console.log(yo,2222),ka.hack_settings.map((Nn,fa)=>{$r=fa,Nn.hack_score=(so[Nn.difficult]*yo).toFixed(2),Fr=Fr+Number(Nn.hack_score)});let Uo=ka.hack_settings[$r].hack_score;wr=(ma-Fr+Number(Uo)).toFixed(2),ka.hack_settings[$r].hack_score=wr>0?wr:0;break}},Ca=(Ia==null?void 0:Ia.send_type)===0||(Ia==null?void 0:Ia.send_type)===1&&(ka==null?void 0:ka.hack_score_settings)===2;return ua.createElement("section",{className:mn.form},ua.createElement("div",{className:mn.title},"\u5206\u503C\u8BBE\u7F6E"),ua.createElement("div",{className:`${mn.content} mb30`},ua.createElement(gt.Z,{align:"middle"},ua.createElement(gt.Z,{align:"middle"},ua.createElement("span",{className:"c-grey-333"},"\u603B\u5206\u503C"),ua.createElement(Tt.Z,{min:0,className:"ml20",style:{width:220},size:"large",value:ka.total_score,disabled:En,onChange:ln=>{ka.total_score=ln,ya(Object.assign({},ka)),pr()},addonAfter:"\u5206"})),ua.createElement(gt.Z,{align:"middle",style:{marginLeft:60}},ua.createElement("span",{className:"c-grey-333"},"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F"),ua.createElement(Tt.Z,{className:"ml20",style:{width:220},size:"large",min:0,value:ka.punish_time,precision:0,disabled:En,onChange:ln=>{ka.punish_time=ln,ya(Object.assign({},ka)),pr()},addonAfter:"\u5206\u949F"})))),ua.createElement("div",{className:mn.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),ua.createElement("div",{className:`${mn.content} mb30`},ua.createElement(Nt.ZP.Group,{disabled:En,value:ka.hack_rank_rule,onChange:ln=>{ka.hack_rank_rule=ln.target.value,ya(Object.assign({},ka))}},ua.createElement(Nt.ZP,{value:0},ua.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),ua.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),ua.createElement(Nt.ZP,{style:{marginLeft:40},value:1},ua.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),ua.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09")))),ua.createElement("div",{className:mn.title},"\u8BD5\u9898\u5206\u503C"),ua.createElement("div",{className:mn.content},ua.createElement(Nt.ZP.Group,{value:ka.hack_score_settings,onChange:ln=>{ka.hack_score_settings=ln.target.value,ya(Object.assign({},ka)),pr()}},ua.createElement(Nt.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),ua.createElement(Nt.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),ua.createElement(Nt.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),ua.createElement("div",{className:mn.content,style:{borderTop:"1px solid #fff"}},ua.createElement("div",{style:{padding:"0px 20px 20px 20px"}},ka.hack_settings&&ka.hack_settings.map(function(ln,ma){return ua.createElement(gt.Z,{key:ma,align:"middle",style:{marginTop:20}},ua.createElement(Qt.Z,{flex:"1",className:"pr10"},ua.createElement("span",{style:{color:"#333333"}},ln.hack_name)),ua.createElement(Qt.Z,{flex:"150px"},ua.createElement(Tt.Z,{min:0,step:.1,style:{visibility:Ca?"visible":"hidden"},value:ln.hack_score,disabled:ka.hack_score_settings!==2,onChange:Fn=>{ka.hack_settings[ma].hack_score=Fn;const $r=ka.hack_settings.reduce((wr,Lr)=>wr+Number(Lr.hack_score),0);ka.total_score=$r.toFixed(2),ya(Br({},ka))},size:"large",addonAfter:"\u5206"})),ua.createElement(Qt.Z,{className:"ml20",style:{lineHeight:"20px"}},ln.difficult===1&&ua.createElement("span",{className:"tag-style-border-small bg-green c-white mr10"},"\u7B80\u5355"),ln.difficult===2&&ua.createElement("span",{className:"tag-style-border-small bg-blue c-white mr10"},"\u9002\u4E2D"),ln.difficult===3&&ua.createElement("span",{className:"tag-style-border-small bg-orange c-white mr10"},"\u56F0\u96BE")))}))),!En&&ua.createElement(ke.ZP,{type:"primary",size:"large",style:{width:138},className:"mt30",loading:Pa,onClick:()=>Oi()},"\u4FDD\u5B58"))};var mr=(0,pe.connect)(({shixunHomeworks:_t,loading:kt})=>({shixunHomeworks:_t,loading:kt.effects}))(Za),da=ee(67294),io=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});const fr=({shixunHomeworks:_t,loading:kt,dispatch:zt})=>{var Da,ar;const[Ia,Rn]=(0,x.useState)(!0),[Qa,En]=(0,x.useState)(!1),[ba,Pa]=(0,x.useState)([]),[Gr,Wa]=(0,x.useState)([]),[Ko,uo]=(0,x.useState)([]),[Po,cr]=(0,x.useState)([]),[sr,Vn]=(0,x.useState)(!1),[Ir,oi]=(0,x.useState)(""),ka=(0,pe.useParams)();function ya(){return io(this,null,function*(){let Jn=yield(0,de.ZP)(`/api/homework_commons/${ka.categoryId}/homework_common_collaborators.json`,{method:"get"});Wa(Jn)})}function Yr(){return io(this,null,function*(){var Jn;let pr=yield(0,de.ZP)(`/api/courses/${ka==null?void 0:ka.coursesId}/teachers`,{method:"get",params:{homework_id:ka.categoryId,limit:1e3}});(Jn=pr==null?void 0:pr.teacher_list)==null||Jn.map(Ca=>{Ca.key=Ca.user_id}),uo(pr==null?void 0:pr.teacher_list),cr(pr==null?void 0:pr.teacher_list)})}(0,x.useEffect)(()=>{ya(),Yr()},[ka]);const Oi=()=>{};return da.createElement("section",{className:mn.form},da.createElement(gt.Z,{className:mn.content,style:{padding:"20px 30px",gap:20}},(Da=Gr==null?void 0:Gr.data)==null?void 0:Da.map(Jn=>da.createElement(gt.Z,{align:"middle",className:`${mn.borderSty} ${Ir===(Jn==null?void 0:Jn.id)?mn.delBorder:""}`,style:{height:"38px",borderRadius:"2px",padding:"0 12px",color:"#333333",background:"#fff"}},da.createElement("span",{className:"c-grey-333"},Jn==null?void 0:Jn.real_name),(Gr==null?void 0:Gr.can_edit)&&da.createElement("span",{style:{cursor:"pointer",marginLeft:"20px"},className:`iconfont icon-guanbi11 ${mn.delSty}`,onMouseEnter:()=>{oi(Jn.id)},onMouseLeave:()=>{oi("")},onClick:()=>io(void 0,null,function*(){(yield(0,de.ZP)(`/api/homework_commons/${ka.categoryId}/homework_common_collaborators/delete.json`,{method:"delete",body:{user_id:Jn.id}})).status===0&&(De.ZP.info("\u5220\u9664\u6210\u529F"),ya(),Yr())})}))),!(Gr!=null&&Gr.can_edit)&&!((ar=Gr==null?void 0:Gr.data)!=null&&ar.length)&&da.createElement("span",{className:"c-grey-666"},"\u6682\u672A\u6DFB\u52A0\u534F\u4F5C\u8005"),(Gr==null?void 0:Gr.can_edit)&&da.createElement(ke.ZP,{className:mn.copHover,style:{height:38,padding:"6px 15px",backgroundColor:"#fff"},type:"primary",ghost:!0,onClick:()=>En(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),da.createElement(we.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:Qa,confirmLoading:sr,onCancel:()=>En(!1),onOk:()=>io(void 0,null,function*(){if(ba.length===0){De.ZP.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08");return}Vn(!0),(yield(0,de.ZP)(`/api/homework_commons/${ka.categoryId}/homework_common_collaborators.json`,{method:"post",body:{user_ids:ba}})).status===0&&(De.ZP.info("\u6DFB\u52A0\u6210\u529F"),Pa([]),ya(),Yr(),En(!1)),Vn(!1)})},da.createElement("div",null,da.createElement("div",{style:{display:"flex"}},da.createElement("label",{style:{width:"50px"}},"\u59D3\u540D\uFF1A")," ",da.createElement(Ot.default.Search,{onChange:Jn=>{uo(Po.filter(pr=>pr.name.indexOf(Jn.target.value)>-1))}})),da.createElement(Te.default,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:(Jn,pr)=>{Pa(Jn)},selectedRowKeys:ba,getCheckboxProps:Jn=>({disabled:Jn.is_collaborator})},pagination:!1,dataSource:Ko,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))};var wo=(0,pe.connect)(({shixunHomeworks:_t,loading:kt})=>({shixunHomeworks:_t,loading:kt.effects}))(fr),So=ee(67294);const Ro=[{key:"1",label:"\u53D1\u5E03\u8BBE\u7F6E",element:So.createElement(Tn,null)},{key:"2",label:"\u8BC4\u5206\u8BBE\u7F6E",element:So.createElement(mr,null)},{key:"3",label:"\u5C55\u793A\u8BBE\u7F6E",element:So.createElement(Pn,null)},{key:"4",label:"\u534F\u4F5C\u8BBE\u7F6E",element:So.createElement(wo,null)}];var qo=()=>So.createElement(Pt.Z,{dataSource:Ro,style:{marginBottom:52}}),ul=ee(246),Yi=ee.n(ul),kn=ee(86763),wa=ee(67294),lo=Object.defineProperty,Go=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,jr=(_t,kt,zt)=>kt in _t?lo(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,ce=(_t,kt)=>{for(var zt in kt||(kt={}))si.call(kt,zt)&&jr(_t,zt,kt[zt]);if(wi)for(var zt of wi(kt))zi.call(kt,zt)&&jr(_t,zt,kt[zt]);return _t},Pe=(_t,kt)=>Go(_t,xi(kt)),Oe=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});const Se=({shixunHomeworks:_t,loading:kt,dispatch:zt})=>{const Da=(0,pe.useParams)(),ar=(0,pe.useLocation)(),[Ia,Rn]=(0,x.useState)([]),[Qa,En]=(0,x.useState)([]),[ba,Pa]=(0,x.useState)(!0),[Gr,Wa]=(0,x.useState)(!1),[Ko,uo]=(0,x.useState)(1),[Po,cr]=(0,x.useState)([]),[sr,Vn]=(0,x.useState)(!1),[Ir,oi]=(0,x.useState)(!1),[ka,ya]=(0,x.useState)(!1);(0,x.useEffect)(()=>{_t.actionTabs.key==="\u4EE3\u7801\u67E5\u91CD"?(Yr.resetFields(),Rn([]),Vn(!0),Jn()):Vn(!1)},[_t.actionTabs.key]);const[Yr]=Et.default.useForm();let Oi=[];const Jn=()=>Oe(void 0,null,function*(){var ln;if(ba&&!Gr){Wa(!0),uo(Ko+1);const ma=yield(0,kn.JG)(Pe(ce({},Da),{page:Ko})),Fn=[...ma.group_list];ma!=null&&ma.ungroup_list&&Fn.push({id:ma==null?void 0:ma.ungroup_list.id,name:ma==null?void 0:ma.ungroup_list.name,works_count:ma==null?void 0:ma.ungroup_list.work_count,last_review_time:ma==null?void 0:ma.ungroup_list.last_review_time}),Rn([...Ia,...Fn]),Wa(!1),((ln=ma.group_list)==null?void 0:ln.length)<10&&Pa(!1)}}),pr=()=>{zt({type:"shixunHomeworks/setActionTabs",payload:{}}),oi(!1),Pa(!0),Wa(!1),uo(1),Rn([]),Yr.resetFields()},Ca=[{title:"",dataIndex:"id",width:280,render:(ln,ma)=>wa.createElement(bt.default,{disabled:!(ma.works_count>1),value:String(ma.id)},ma.name)},{title:"\u6709\u6548\u4F5C\u54C1\u6570",dataIndex:"works_count"},{title:"\u4E0A\u6B21\u67E5\u91CD\u65F6\u95F4",dataIndex:"last_review_time",width:130}];return wa.createElement(we.default,{centered:!0,title:"\u4EE3\u7801\u67E5\u91CD",keyboard:!1,maskClosable:!1,open:sr,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",width:820,bodyStyle:{minHeight:200},onOk:()=>Oe(void 0,null,function*(){const ln=Yr.getFieldValue();ya(!0);const ma=yield(0,de.ZP)(`/api/homework_commons/${Da.categoryId}/hack_homework_code_repeat.json`,{method:"post",body:{group_ids:[...ln.group_ids]}});ya(!1),ma.status===0&&(pr(),yield zt({type:"shixunHomeworks/getWorkList",payload:_t.actionTabs.params}),pe.history.push(`/classrooms/${Da.coursesId}/program_homework/${Da.categoryId}/detail?tabs=2`),zt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6267\u884C\u4EE3\u7801\u67E5\u91CD"}}))}),okButtonProps:{loading:ka},onCancel:pr},wa.createElement("div",null,"\u8BF7\u6CE8\u610F\uFF1A\u5728\u6267\u884C\u4EE3\u7801\u67E5\u91CD\u64CD\u4F5C\u540E\uFF0C\u82E5\u5B66\u751F\u63D0\u4EA4\u65B0\u7684\u4F5C\u54C1\u4EE3\u7801\uFF0C\u65B0\u4F5C\u54C1\u4EE3\u7801\u4E0D\u8BA1\u5165\u672C\u6B21\u67E5\u91CD\u7ED3\u679C\u3002"),_t.codeReviewCourse&&wa.createElement(Et.default,{form:Yr,onChange:ln=>{cr(ce({},Yr.getFieldValue()))},initialValues:{group_ids:Oi,end_time:le()(le()().add(7,"days").format("YYYY-MM-DD HH:mm"))}},wa.createElement("div",{className:"flexd-table-header mt20"},wa.createElement(Te.default,{pagination:!1,dataSource:[],columns:Ca})),wa.createElement(Et.default.Item,{name:"group_ids"},wa.createElement(bt.default.Group,{className:"w100"},wa.createElement("div",{style:{width:"100%",maxHeight:260,overflow:"auto"}},wa.createElement(Yi(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:ln=>{Jn()},hasMore:ba,useWindow:!1},wa.createElement(Te.default,{loading:kt.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:Ca,dataSource:Ia,pagination:!1})))))),wa.createElement(gt.Z,null,wa.createElement(Qt.Z,{className:"ml10"},wa.createElement(bt.default,{checked:Ir,onChange:ln=>{oi(ln.target.checked);let ma=[];ln.target.checked&&(ma=Ia.filter(Fn=>Fn.works_count>1).map(Fn=>Fn.id+"")),Yr.setFieldsValue({group_ids:ma})}},"\u5168\u9009"))))};var Je=(0,pe.connect)(({shixunHomeworks:_t,loading:kt})=>({shixunHomeworks:_t,loading:kt}))(Se),ot=ee(86169),wt=ee(12082),tt=ee(41642),it=ee(93686),ht=ee(98769),nn=ee(9151),fn=ee(37752),$n=ee(33648),In=ee(70562),Aa=ee(51959),va=Object.defineProperty,Fa=Object.defineProperties,Wn=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,An=(_t,kt,zt)=>kt in _t?va(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,ea=(_t,kt)=>{for(var zt in kt||(kt={}))on.call(kt,zt)&&An(_t,zt,kt[zt]);if(Cn)for(var zt of Cn(kt))yn.call(kt,zt)&&An(_t,zt,kt[zt]);return _t},za=(_t,kt)=>Fa(_t,Wn(kt)),Ba=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});let qn=[nn.Z,fn.Z,$n.Z];const Ea=({user:_t,classroomList:kt,shixunHomeworks:zt})=>{var Da,ar,Ia;let[Rn,Qa]=(0,x.useState)(ea(za(ea({},(0,pe.useParams)()),{page:1,per_page:20,rank_type:2,search:"",course_group:(0,Ae.dE)()?[_t.userInfo.course.course_group_id]:[]}),(0,pe.useParams)()));const[En,ba]=(0,x.useState)([]),[Pa,Gr]=(0,x.useState)([]),[Wa,Ko]=(0,x.useState)([]),[uo,Po]=(0,x.useState)(!1),[cr,sr]=(0,x.useState)(!1);let[Vn,Ir]=(0,x.useState)([{title:"\u6392\u884C",dataIndex:"rank",width:70,fixed:"left",ellipsis:!0,sorter:(Jn,pr)=>Jn.rank-pr.rank,render:(Jn,pr,Ca)=>Jn<4?x.createElement("img",{src:qn[Jn-1]}):Jn},{title:"\u59D3\u540D",dataIndex:"user_name",width:80,fixed:"left",ellipsis:!0,key:"user_name",render:(Jn,pr,Ca)=>x.createElement("span",null,pr.is_me&&x.createElement("span",{style:{display:"inline-block",fontSize:12,color:"#CA7720",background:"rgba(255, 181, 56, 0.36)",borderRadius:2,width:16,height:16,textAlign:"center",lineHeight:"16px",transform:"translateY(-1px)"}},"\u6211"),Jn)},{title:"\u5B66\u53F7",dataIndex:"student_id",key:"student_id",width:80,ellipsis:!0,fixed:"left",render:Jn=>Jn||"- -"},{title:"\u73ED\u7EA7",dataIndex:"course_group",key:"course_group",ellipsis:!0,width:70,fixed:"left"},{title:"\u901A\u8FC7",dataIndex:"passed_count",width:60,fixed:"left",ellipsis:!0,key:"passed_count",render:Jn=>x.createElement("span",null,Jn," ",Jn!="-"&&"\u9898")},{title:"\u5F97\u5206",dataIndex:"score",width:50,ellipsis:!0,fixed:"left",key:"score"}]);const[oi,ka]=(0,x.useState)(null),ya=()=>{var Jn,pr;const Ca=((Jn=document.getElementById("filterWarp"))==null?void 0:Jn.clientHeight)||0,ln=((pr=document.getElementById("pagination"))==null?void 0:pr.clientHeight)||0;return window.innerHeight-Ca-ln-110};(0,x.useEffect)(()=>{const Jn=()=>{ka(ya())};return window.addEventListener("resize",Jn),()=>{window.removeEventListener("resize",Jn)}},[]),(0,x.useEffect)(()=>{var Jn,pr,Ca,ln,ma;Vn.splice(7);for(let Fn=0;Fn<((Jn=En==null?void 0:En.question_data)==null?void 0:Jn.length);Fn++){let $r={};$r.title=En!=null&&En.sent_type?x.createElement("span",null,"\u9898\u76EE"+(Fn+1)+`\uFF08${(Ca=(pr=En==null?void 0:En.question_data)==null?void 0:pr[Fn])==null?void 0:Ca.question_score}\uFF09`):x.createElement("a",{onClick:()=>Ba(void 0,null,function*(){var wr,Lr;let so=yield(0,de.ZP)(`/api/problems/${(Lr=(wr=En==null?void 0:En.question_data)==null?void 0:wr[Fn])==null?void 0:Lr.identifier}/start.json`,{method:"get"});so&&(window.open(`/myproblems/${so==null?void 0:so.identifier}?type=1`),localStorage.setItem("program_homework",[Rn.coursesId,Rn.categoryId]))})},"\u9898\u76EE"+(Fn+1)+`\uFF08${(ma=(ln=En==null?void 0:En.question_data)==null?void 0:ln[Fn])==null?void 0:ma.question_score}\uFF09`),$r.dataIndex="question_data",$r.width=140,$r.render=(wr,Lr)=>{var so,Fr,po,lr,Nr;return x.createElement("div",null,((so=wr==null?void 0:wr[Fn])==null?void 0:so.answer_question_time)&&x.createElement("div",null,x.createElement("span",{style:{cursor:"pointer"},className:"iconfont icon-shixun4 c-blue",onClick:()=>Ba(void 0,null,function*(){var yo,Uo,Nn,fa,rr,na,Ua,Kr;if((0,Ae.Rm)()&&!((yo=kt.AssistantObject.hack)!=null&&yo.can_appraise)){De.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(!((Uo=wr==null?void 0:wr[Fn])!=null&&Uo.open_code)){De.ZP.info("\u6682\u4E0D\u5141\u8BB8\u67E5\u770B\u4EE3\u7801");return}let Tr=yield(0,de.ZP)("/api/courses/view_code.json",{method:"get",params:za(ea({},Rn),{id:Rn.coursesId,homework_common_id:Rn.categoryId,hack_user_code_id:(Nn=wr==null?void 0:wr[Fn])==null?void 0:Nn.hack_user_code_id})});we.default.warning({icon:null,width:800,title:x.createElement("div",null,x.createElement("span",null,"\u4EE3\u7801"),x.createElement("span",null,"\u4F7F\u7528\u8BED\u8A00\uFF1A",(fa=wr==null?void 0:wr[Fn])==null?void 0:fa.current_language),x.createElement("span",null,"\u8FD0\u884C\u5185\u5B58\uFF1A",(rr=wr==null?void 0:wr[Fn])==null?void 0:rr.memory,"\uFF08KB\uFF09"),x.createElement("span",null,"\u8FD0\u884C\u65F6\u957F\uFF1A",(na=wr==null?void 0:wr[Fn])==null?void 0:na.run_time,"\uFF08ms\uFF09"),x.createElement("span",null,"\u5F97\u5206\uFF1A",(Ua=wr==null?void 0:wr[Fn])==null?void 0:Ua.score)),content:x.createElement(In.Z,{classroomList:kt,user:_t,languages:[{language:(Kr=wr==null?void 0:wr[Fn])==null?void 0:Kr.language,code:Tr==null?void 0:Tr.code}],v:wr,shixunWorkReport:"shixunWorkReport",dispatch:"dispatch",autoHeight:!1,language:wr.language,game_id:wr.id,diff_code_count:wr.diff_code_count})})})}),x.createElement("span",{style:{margin:"0px 10px"}},((Fr=wr==null?void 0:wr[Fn])==null?void 0:Fr.answer_question_time)||"- -"),(po=wr==null?void 0:wr[Fn])!=null&&po.submit_count?x.createElement(We.Z,{title:`${((lr=wr==null?void 0:wr[Fn])==null?void 0:lr.submit_count)||0}\u6B21\u5C1D\u8BD5\u51FA\u9519`},x.createElement("span",{style:{color:"red",marginRight:5},className:"iconfont icon-Bug"}),((Nr=wr==null?void 0:wr[Fn])==null?void 0:Nr.submit_count)||0):null))},Vn.push($r)}Ir([...Vn])},[En==null?void 0:En.question_data]),(0,x.useEffect)(()=>{var Jn;(Jn=_t==null?void 0:_t.userInfo)!=null&&Jn.course&&((0,Ae.dE)()&&(Rn.course_group=(0,Ae.dE)()?[_t.userInfo.course.course_group_id]:[],Qa(ea({},Rn))),Yr(1))},[_t==null?void 0:_t.userInfo]);function Yr(Jn){return Ba(this,null,function*(){var pr,Ca,ln,ma,Fn,$r,wr;Po(!0);let Lr=yield(0,de.ZP)("/api/courses/rank_list.json",{method:"get",params:za(ea({},Rn),{id:Rn.coursesId,rank_type:2,homework_common_id:Rn.categoryId})});if(ba(Lr),Po(!1),Lr.status!=-1&&((0,Ae.dE)()?(Jn===1&&Gr([(Ca=(pr=Lr==null?void 0:Lr.course_group)==null?void 0:pr[0])==null?void 0:Ca.id]),Lr!=null&&Lr.my_rank?Ko([ea({is_me:!0},Lr==null?void 0:Lr.my_rank),...Lr==null?void 0:Lr.rank_list]):Ko([...Lr==null?void 0:Lr.rank_list])):Ko([...Lr==null?void 0:Lr.rank_list]),Jn===1)){let so={title:(Lr==null?void 0:Lr.hack_rank_rule)===0?x.createElement(We.Z,{title:`\u603B\u8017\u65F6\u65F6\u4E3A\u505A\u9898\u901A\u8FC7\u65F6\u957F\u548C\u7F5A\u65F6\u65F6\u957F\u7684\u603B\u548C\uFF0C \u7F5A\u65F6\u65F6\u957F=\u8BC4\u6D4B\u51FA\u9519\u6B21\u6570X\u8BBE\u7F6E\u7684\u7F5A\u65F6\uFF08\u5F53\u524D\u4E3A${Lr==null?void 0:Lr.punish_time}\u5206\uFF09`},x.createElement("span",{style:{marginRight:3}},"\u603B\u8017\u65F6")," ",x.createElement("span",{style:{fontSize:"14px"},className:"iconfont icon-tishixiaowenhao c-blue"})):"\u5B8C\u6210\u65F6\u95F4",dataIndex:(Lr==null?void 0:Lr.hack_rank_rule)===0?"finish_time":"finish_at",width:(Lr==null?void 0:Lr.hack_rank_rule)===0?80:150,ellipsis:!0,fixed:"left",key:"finish_time"};Vn.push(so);for(let Fr=0;Fr<((ln=Lr==null?void 0:Lr.question_data)==null?void 0:ln.length);Fr++){let po={};po.title=Lr!=null&&Lr.sent_type?x.createElement("span",null,"\u9898\u76EE"+(Fr+1)+`\uFF08${(Fn=(ma=Lr==null?void 0:Lr.question_data)==null?void 0:ma[Fr])==null?void 0:Fn.question_score}\uFF09`):x.createElement("a",{onClick:()=>Ba(this,null,function*(){var lr,Nr;let yo=yield(0,de.ZP)(`/api/problems/${(Nr=(lr=Lr==null?void 0:Lr.question_data)==null?void 0:lr[Fr])==null?void 0:Nr.identifier}/start.json`,{method:"get"});yo&&(window.open(`/myproblems/${yo==null?void 0:yo.identifier}?type=1`),localStorage.setItem("program_homework",[Rn.coursesId,Rn.categoryId]))})},"\u9898\u76EE"+(Fr+1)+`\uFF08${(wr=($r=Lr==null?void 0:Lr.question_data)==null?void 0:$r[Fr])==null?void 0:wr.question_score}\uFF09`),po.dataIndex="question_data",po.width=140,po.render=(lr,Nr)=>{var yo,Uo,Nn,fa,rr;return x.createElement("div",null,((yo=lr==null?void 0:lr[Fr])==null?void 0:yo.answer_question_time)&&x.createElement("div",null,x.createElement("span",{style:{cursor:"pointer"},className:"iconfont icon-shixun4 c-blue",onClick:()=>Ba(this,null,function*(){var na,Ua,Kr,Tr,No,hi,_i,qi;if((0,Ae.Rm)()&&!((na=kt.AssistantObject.hack)!=null&&na.can_view)){De.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(!((Ua=lr==null?void 0:lr[Fr])!=null&&Ua.open_code)){De.ZP.info("\u6682\u4E0D\u5141\u8BB8\u67E5\u770B\u4EE3\u7801");return}let Pl=yield(0,de.ZP)("/api/courses/view_code.json",{method:"get",params:za(ea({},Rn),{id:Rn.coursesId,homework_common_id:Rn.categoryId,hack_user_code_id:(Kr=lr==null?void 0:lr[Fr])==null?void 0:Kr.hack_user_code_id})});we.default.warning({icon:null,width:800,title:x.createElement("div",null,x.createElement("span",null,"\u4EE3\u7801"),x.createElement("span",null,"\u4F7F\u7528\u8BED\u8A00\uFF1A",(Tr=lr==null?void 0:lr[Fr])==null?void 0:Tr.current_language),x.createElement("span",null,"\u8FD0\u884C\u5185\u5B58\uFF1A",(No=lr==null?void 0:lr[Fr])==null?void 0:No.memory,"\uFF08KB\uFF09"),x.createElement("span",null,"\u8FD0\u884C\u65F6\u957F\uFF1A",(hi=lr==null?void 0:lr[Fr])==null?void 0:hi.run_time,"\uFF08ms\uFF09"),x.createElement("span",null,"\u5F97\u5206\uFF1A",(_i=lr==null?void 0:lr[Fr])==null?void 0:_i.score)),content:x.createElement(In.Z,{classroomList:kt,user:_t,languages:[{language:(qi=lr==null?void 0:lr[Fr])==null?void 0:qi.language,code:Pl==null?void 0:Pl.code}],v:lr,shixunWorkReport:"shixunWorkReport",dispatch:"dispatch",autoHeight:!1,language:lr.language,game_id:lr.id,diff_code_count:lr.diff_code_count})})})}),x.createElement("span",{style:{margin:"0px 10px"}},((Uo=lr==null?void 0:lr[Fr])==null?void 0:Uo.answer_question_time)||"- -"),(Nn=lr==null?void 0:lr[Fr])!=null&&Nn.submit_count?x.createElement(We.Z,{title:`${((fa=lr==null?void 0:lr[Fr])==null?void 0:fa.submit_count)||0}\u6B21\u5C1D\u8BD5\u51FA\u9519`},x.createElement("span",{style:{color:"red",marginRight:5},className:"iconfont icon-Bug"}),((rr=lr==null?void 0:lr[Fr])==null?void 0:rr.submit_count)||0):null))},Vn.push(po)}Ir([...Vn])}})}console.log("----",zt,Vn);const Oi=(Da=zt==null?void 0:zt.workSetting)==null?void 0:Da.hack_rank_rule;return x.createElement("div",{style:{width:1200,margin:"0px auto",minHeight:cr?"100vh":""},id:"rankingInfo"},(En==null?void 0:En.message)==="\u5C01\u699C\u4E2D"?x.createElement(rn.Z,{customText:"\u7B54\u9898\u65F6\u95F4\u8FDB\u5165\u5012\u8BA1\u65F6\uFF0C\u6682\u65F6\u5C01\u699C\uFF0C\u8BF7\u52A0\u901F\u7ADE\u6280\u901A\u5173\u7B54\u9898"}):x.createElement("div",{style:{background:"#fff",padding:20,height:"100%",overflow:"auto"}},x.createElement("div",{id:"filterWarp"},x.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},x.createElement("div",{style:{display:"flex",width:"90%"}},x.createElement("label",null,"\u5206\u73ED\u60C5\u51B5\uFF1A"),(0,Ae.GJ)()&&x.createElement("div",{style:{flex:1}},x.createElement(bt.default.Group,{className:tt.Z.checkboxgroup,value:Pa,onChange:Jn=>{var pr;Rn.type===1?(Gr([]),Rn.course_group=[],Rn.page=1,Qa(ea({},Rn)),Yr()):Rn.type===2?(Gr(["\u5168\u90E8"]),Rn.course_group=(pr=En==null?void 0:En.course_group)==null?void 0:pr.map(Ca=>Ca.id),Rn.page=1,Qa(ea({},Rn)),Yr()):(Gr([...Jn.filter(Ca=>Ca!="\u5168\u90E8")]),Rn.course_group=Jn.filter(Ca=>Ca!="\u5168\u90E8"),Rn.page=1,Qa(ea({},Rn)),Yr())}},x.createElement(bt.default,{value:"\u5168\u90E8",style:{marginBottom:10},onChange:Jn=>{Jn.target.checked?Rn.type=2:Rn.type=1}},"\u5168\u90E8\u5206\u73ED"),(ar=En==null?void 0:En.course_group)==null?void 0:ar.map((Jn,pr)=>x.createElement(bt.default,{style:{marginBottom:10},onChange:Ca=>{Rn.type=3},value:Jn.id},Jn==null?void 0:Jn.name)))),(0,Ae.dE)()&&x.createElement(Nt.ZP.Group,{style:{marginBottom:10},onChange:Jn=>{Jn.target.value==="\u5168\u90E8"?(Rn.course_group=[],Rn.page=1,Qa(ea({},Rn)),Yr()):(Rn.course_group=[Jn.target.value],Rn.page=1,Qa(ea({},Rn)),Yr())},defaultValue:_t.userInfo.course.course_group_id},x.createElement(Nt.ZP,{value:"\u5168\u90E8",style:{marginBottom:10}},"\u5168\u90E8\u5206\u73ED"),(Ia=En==null?void 0:En.course_group)==null?void 0:Ia.map((Jn,pr)=>x.createElement(Nt.ZP,{style:{marginBottom:10},value:Jn.id},Jn.name)))),x.createElement("div",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{cr?(0,Aa.BU)():(0,Aa.Dj)(document.getElementById("rankingInfo")),sr(!cr)}},x.createElement("i",{style:{fontSize:12},className:`mr10 iconfont ${cr?"icon-tuichuquanping2":"icon-quanping2"}`}),x.createElement("span",null,cr?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F\u5C55\u793A"))),x.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginTop:10}},x.createElement("span",{style:{fontSize:14,color:"#B1BACD"}},"\u6392\u884C\u89C4\u5219\uFF1A",Oi===0?"\u4F5C\u4E1A\u65F6\u95F4\u6BB5\u4E4B\u5916\u7684\u63D0\u4EA4\u4E0D\u8BA1\u5165\u6392\u884C\u3002\u5F53\u524D\u6309\u5B9E\u9645\u5B9E\u9A8C\u65F6\u957F\u4F18\u5148\uFF0C\u540C\u901A\u8FC7\u9898\u6570\u4E0B\u65F6\u957F\u77ED\u540D\u6B21\u9760\u524D\u3002":"\u4F5C\u4E1A\u65F6\u95F4\u6BB5\u4E4B\u5916\u7684\u63D0\u4EA4\u4E0D\u8BA1\u5165\u6392\u884C\u3002\u5F53\u524D\u6309\u5B8C\u6210\u65F6\u95F4\u5148\u540E\u4F18\u5148\uFF0C\u540C\u901A\u8FC7\u9898\u6570\u4E0B\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u9760\u524D\u3002"," ",x.createElement("a",{onClick:()=>{we.default.warning({title:"\u8BA1\u5206\u89C4\u5219",width:500,content:x.createElement("div",null,Oi===0&&x.createElement("p",null,"\u6392\u540D\u89C4\u5219\uFF1A\u7ECF\u5178ACM\u89C4\u5219"),x.createElement("p",null,"AC\uFF08\u901A\u8FC7\u9898\u76EE\uFF09\u8D8A\u591A\uFF0C\u6392\u540D\u8D8A\u9760\u524D\u3002"),x.createElement("p",null,"AC\u76F8\u540C\uFF0C\u603B\u7528\u65F6\u8D8A\u5C11\uFF0C\u6392\u540D\u8D8A\u9760\u524D\u3002"),Oi==0&&x.createElement(x.Fragment,null,x.createElement("p",null,"\u603B\u7528\u65F6=\u2211\uFF08\u6BCF\u4E00\u4E2A\u9898\u76EE\u7684\u7528\u65F6\uFF09"),x.createElement("p",null,"\u6BCF\u4E00\u4E2A\u9898\u76EE\u7684\u7528\u65F6=\u6BD4\u8D5B\u5F00\u59CB\u5230\u63D0\u4EA4\u88AB\u901A\u8FC7\u7684\u65F6\u95F4+\u7F5A\u65F6"),x.createElement("p",null,"\u7F5A\u65F6=\uFF08\u901A\u8FC7\u524D\uFF09\u9519\u8BEF\u4EE3\u7801\u63D0\u4EA4\u6B21\u6570*\u6BCF\u6B21\u7F5A\u65F6"),x.createElement("p",null,"\u4E0D\u7B97\u7F5A\u65F6\u7684\u60C5\u51B5\uFF1A\u6CA1\u6709\u901A\u8FC7\u7684\u9898\u76EE\u3001\uFF08\u7CFB\u7EDF\uFF09\u5185\u90E8\u9519\u8BEF\u3001\u7F16\u8BD1\u9519\u8BEF")))})}},"\u70B9\u51FB\u67E5\u770B\u8BA1\u5206\u89C4\u5219")),(0,Ae.GJ)()&&x.createElement(x.Fragment,null,x.createElement(Ot.default.Search,{className:"mr20",onSearch:Jn=>{Rn.page=1,Rn.search=Jn,Qa(ea({},Rn)),Yr()},placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D/\u5B66\u53F7\u8FDB\u884C\u641C\u7D22",style:{width:250,marginLeft:"auto"}}),x.createElement(ke.ZP,{onClick:()=>{(0,ht.VY)(za(ea({},Rn),{id:Rn.coursesId,rank_type:2,homework_common_id:Rn.categoryId}))}},"\u5BFC\u51FA")))),x.createElement(ve.Z,{spinning:uo},x.createElement(Te.default,{style:{marginTop:10},pagination:!1,scroll:{x:1200,y:cr?oi:null},rowClassName:(Jn,pr)=>pr===0&&(0,Ae.dE)()&&tt.Z.tables,dataSource:Wa,columns:Vn})),x.createElement("div",{id:"pagination",style:{width:"100%",textAlign:"center",marginTop:10}},x.createElement(Ce.Z,{current:Rn.page,pageSize:Rn.per_page,total:En==null?void 0:En.count,showSizeChanger:!0,onChange:(Jn,pr)=>{Rn.page=Jn,Rn.per_page=pr,Qa(ea({},Rn)),Yr()}}))))};var Ma=(0,pe.connect)(({shixunHomeworks:_t,user:kt,classroomList:zt})=>({user:kt,shixunHomeworks:_t,classroomList:zt}))(Ea),La=ee(6151),er=ee(58387),Sr=ee(17755),eo=ee(44694),Lo=ee(52765),ga=ee(67294),ii=Object.defineProperty,ei=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,dl=Object.prototype.propertyIsEnumerable,Hi=(_t,kt,zt)=>kt in _t?ii(_t,kt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):_t[kt]=zt,pi=(_t,kt)=>{for(var zt in kt||(kt={}))Fo.call(kt,zt)&&Hi(_t,zt,kt[zt]);if(ei)for(var zt of ei(kt))dl.call(kt,zt)&&Hi(_t,zt,kt[zt]);return _t},Fi=(_t,kt,zt)=>new Promise((Da,ar)=>{var Ia=En=>{try{Qa(zt.next(En))}catch(ba){ar(ba)}},Rn=En=>{try{Qa(zt.throw(En))}catch(ba){ar(ba)}},Qa=En=>En.done?Da(En.value):Promise.resolve(En.value).then(Ia,Rn);Qa((zt=zt.apply(_t,kt)).next())});let Qi=[{live:"A",gz:"0\u4E2A\u9519\u8BEF",ld:"0\u4E2A\u6F0F\u6D1E",gf:"0 - 5%"},{live:"B",gz:"\u81F3\u5C111\u4E2A\u6B21\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u6B21\u8981\u6F0F\u6D1E",gf:"6% - 10%"},{live:"C",gz:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E3B\u8981\u6F0F\u6D1E",gf:"11% - 20%"},{live:"D",gz:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u4E25\u91CD\u6F0F\u6D1E",gf:"21% - 50%"},{live:"E",gz:"\u81F3\u5C111\u4E2A\u5D29\u6E83\u9519\u8BEF",ld:"\u81F3\u5C111\u4E2A\u5D29\u6E83\u6F0F\u6D1E",gf:"\u8D85\u8FC750%"}];const Xo=({shixunHomeworks:_t,classroomList:kt,globalSetting:zt,user:Da,loading:ar,dispatch:Ia})=>{var Rn,Qa,En,ba;const Pa=(0,pe.useParams)(),[Gr]=(0,pe.useSearchParams)(),[Wa,Ko]=(0,x.useState)(Gr.get("tabs")||"0"),[uo,Po]=(0,x.useState)({}),{workList:cr,workSetting:sr}=_t,[Vn,Ir]=(0,x.useState)(!1);Pa.category=Gr.get("category_id"),Pa.order="work_score",Pa.b_order="desc",(0,x.useEffect)(()=>{(0,Ae.Rm)()&&Ia({type:"classroomList/getAssistantPermissions",payload:{course_id:Pa.coursesId}})},[(Rn=Da==null?void 0:Da.userInfo)==null?void 0:Rn.login]);const oi=Ca=>{var ln;if(Ca==="3"&&Ia({type:"shixunHomeworks/getWorkSetting",payload:pi({},Pa)}),Ca==="5"&&!((ln=kt.AssistantObject.hack)!=null&&ln.can_exam_leaderboard)&&(0,Ae.Rm)()){De.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}Ko(Ca),Ca==="0"&&Ia({type:"shixunHomeworks/getWorkList",payload:Pa})},ka=()=>{we.default.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ga.createElement("div",{className:"tc font16"},"\u4F60\u5728\u8BE5\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A\uFF0C\u65E0\u6CD5\u6062\u590D",ga.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u91CD\u505A\uFF1F"),onOk:()=>Fi(void 0,null,function*(){var Ca;const ln=(Ca=_t.workList)==null?void 0:Ca.myshixun_identifier;(yield(0,kn.Fr)({id:ln}))&&(De.ZP.info(`\u5DF2\u6E05\u7A7A\u672C\u5B9E\u8BAD\u7684\u5B66\u4E60\u8BB0\u5F55 \u8BF7\u70B9\u51FB\u201C\u5F00\u542F\u6311\u6218\u201D\u91CD\u505A\u8BFE\u7A0B\u5B9E\u9A8C`),Ia({type:"shixunHomeworks/getWorkList",payload:uo}))})})},ya=Ca=>{Ca=Ca!=null&&Ca.includes(".json")?Ca:`${Ca}.json`,we.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ga.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>Fi(void 0,null,function*(){const ln=yield(0,it.$Q)({url:Ca});if(!ln)return;De.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const ma=yield(0,it.Ir)({id:ln.shixun_identifier});if(ma!=null&&ma.game_identifier){(0,Be.xg)(`/tasks/${ma.game_identifier}?coursesId=${Pa.coursesId}`);return}(ma==null?void 0:ma.status)===2?ya(ma==null?void 0:ma.message):(ma==null?void 0:ma.status)===3&&Yr(ma==null?void 0:ma.message)})})},Yr=Ca=>{we.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ga.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ca,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Oi=Ca=>Fi(void 0,null,function*(){Ca=Ca!=null&&Ca.includes(".json")?Ca:`${Ca}.json`;const ln=yield(0,it.$Q)({url:Ca});if(console.log(ln,"execRes"),ln!=null&&ln.game_identifier){(0,Be.xg)(`/tasks/${ln.game_identifier}?coursesId=${Pa.coursesId}`);return}(ln==null?void 0:ln.status)===-3?(0,Be.eF)():(ln==null?void 0:ln.status)===2?ya(ln==null?void 0:ln.message):(ln==null?void 0:ln.status)===3&&Yr(ln==null?void 0:ln.message)}),Jn=[(0,Ae.dE)()&&{name:"\u9898\u76EE",id:"1",compontent:ga.createElement(At,null)},{name:(0,Ae.GJ)()?"\u5B66\u751F\u5217\u8868":"\u4F5C\u4E1A\u60C5\u51B5",id:"0",compontent:ga.createElement(He.Z,{setExportParams:Po}),forceRender:!0},!(0,Ae.dE)()&&{name:"\u9898\u76EE",id:"1",compontent:ga.createElement(At,null),hidden:!1},{name:"\u6392\u540D",id:"5",compontent:ga.createElement(Ma,null),hidden:!1},{name:"\u4EE3\u7801\u67E5\u91CD",id:"2",compontent:ga.createElement(Ct,null),hidden:(Qa=zt==null?void 0:zt.setting)==null?void 0:Qa.hide_code_repeat},{name:"\u91CD\u505A\u8BB0\u5F55",id:"9",compontent:ga.createElement(eo.Z,null)},{name:"\u8BBE\u7F6E",id:"3",compontent:(En=cr.homework_status)!=null&&En.includes("\u5BFC\u5165")?ga.createElement(Sr.Z,null):ga.createElement(qo,null),forceRender:!0},{name:"\u89E3\u7B54&\u8BA8\u8BBA",id:"6",compontent:ga.createElement(Lo.default,null)}].filter(Ca=>!!Ca).filter(Ca=>{var ln,ma;return(0,Ae.dE)()?Ca.name!=="\u4EE3\u7801\u67E5\u91CD"&&Ca.name!=="\u8BBE\u7F6E":(0,Ae.dE)()||((ln=cr==null?void 0:cr.homework_status)==null?void 0:ln[0])!=="\u5DF2\u622A\u6B62"?Ca.name!=="\u8D28\u91CF\u68C0\u6D4B":!cr.code_review&&((ma=cr==null?void 0:cr.homework_status)==null?void 0:ma[0])!=="\u672A\u53D1\u5E03"?!0:Ca.name!=="\u4EE3\u7801\u67E5\u91CD"}).filter(Ca=>cr.open_code_quality_analysis?!0:Ca.name!=="\u8D28\u91CF\u68C0\u6D4B").filter(Ca=>{var ln;return(ln=cr.homework_status)!=null&&ln.includes("\u5BFC\u5165")?(0,Ae.dE)()?["0","1"].includes(Ca.id):["0","1","3"].includes(Ca.id):!0}).filter(Ca=>!(Ca!=null&&Ca.hidden)),pr=()=>{var Ca,ln,ma,Fn,$r,wr,Lr,so,Fr,po,lr;return ga.createElement("aside",{className:tt.Z.workListTabButton},(0,Ae.dE)()&&!((Ca=cr.homework_status)!=null&&Ca.includes("\u5BFC\u5165"))&&ga.createElement("span",{style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"}},ga.createElement(ke.ZP,{onClick:()=>Fi(void 0,null,function*(){var Nr;let yo=yield(0,de.ZP)(`/api/problems/${(Nr=_t.workList)==null?void 0:Nr.start_identifier}/start.json`,{method:"get"});yo&&(window.open(`/myproblems/${yo==null?void 0:yo.identifier}?type=1&backUrl=/classrooms/${Pa.coursesId}/program_homework/${Pa.categoryId}/detail?tabs=1`),localStorage.setItem("program_homework",[Pa==null?void 0:Pa.coursesId,Pa==null?void 0:Pa.categoryId]))}),type:"primary"},(ln=cr.homework_status)!=null&&ln.includes("\u5DF2\u622A\u6B62")?"\u67E5\u770B\u4F5C\u4E1A":"\u8FDB\u5165\u7EC3\u4E60"," ")),(0,Ae.dE)()&&((ma=_t.workList)==null?void 0:ma.redo_work)&&ga.createElement(ke.ZP,{onClick:ka,type:"primary",icon:ga.createElement("i",{className:"iconfont icon-dahuizhongzuo3x"})},"\u91CD\u505A"),((Fn=_t.workList)==null?void 0:Fn.shixun_status)>1&&(($r=_t.workList)==null?void 0:$r.time_status)<5&&(0,Ae.dE)()&&ga.createElement(ke.ZP,{type:"primary",icon:ga.createElement("i",{className:"iconfont icon-kaiqizhong"}),onClick:()=>{var Nr,yo,Uo,Nn,fa,rr,na;(0,Un.tJ)(Ia,!0)&&((Uo=(yo=(Nr=_t.workList)==null?void 0:Nr.task_operation)==null?void 0:yo[1])!=null&&Uo.includes("/")?Oi((fa=(Nn=_t.workList)==null?void 0:Nn.task_operation)==null?void 0:fa[1]):(0,Be.xg)(`/tasks/${(na=(rr=_t.workList)==null?void 0:rr.task_operation)==null?void 0:na[1]}`))}},(Lr=(wr=_t.workList)==null?void 0:wr.task_operation)==null?void 0:Lr[0]),((so=_t.workList)==null?void 0:so.commit_des)&&((Fr=_t.workList)==null?void 0:Fr.commit_des)&&ga.createElement(ke.ZP,{type:"primary",icon:ga.createElement("i",{className:"iconfont icon-tijiaozongjie"}),onClick:()=>{var Nr;(0,Be.xg)(`/classrooms/${Pa.coursesId}/shixun_homework/${Pa.categoryId}/${(Nr=_t.workList)==null?void 0:Nr.id}/commitsummary`)}},(po=_t.workList)==null?void 0:po.commit_des),(sr==null?void 0:sr.hack_edit_permission)&&((lr=cr==null?void 0:cr.homework_status)==null?void 0:lr[0])==="\u672A\u53D1\u5E03"&&ga.createElement(ke.ZP,{type:"primary",icon:ga.createElement("i",{className:"iconfont icon-bianji2"}),onClick:()=>{var Nr;if(!((Nr=kt.AssistantObject.hack)!=null&&Nr.can_create)&&(0,Ae.Rm)()){De.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}pe.history.push(`/classrooms/${Pa.coursesId}/program_homework/${Pa.categoryId}/edit`)}},"\u7F16\u8F91\u4F5C\u4E1A"),(0,Ae.GJ)()&&cr.publish_immediately&&ga.createElement(ke.ZP,{type:"primary",icon:ga.createElement("i",{className:"iconfont icon-yishezhifabushijian1"}),onClick:()=>{var Nr,yo;if(!((Nr=kt.AssistantObject.hack)!=null&&Nr.can_publish)&&(0,Ae.Rm)()){De.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(((yo=Da==null?void 0:Da.userInfo)==null?void 0:yo.user_status)===2){(0,Un.Rd)();return}Ia({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[Pa.categoryId],selectArrsAll:[cr],params:Pa,detail:!0,type:2,manage_all_group:sr==null?void 0:sr.manage_all_group}})}},"\u7ACB\u5373\u53D1\u5E03"),(0,Ae.GJ)()&&cr.end_immediately&&ga.createElement(ke.ZP,{style:{background:"#0152d9",color:"#fff"},type:"primary",icon:ga.createElement("i",{className:"iconfont icon-jiezhishiyan"}),onClick:()=>{var Nr;if(!((Nr=kt.AssistantObject.hack)!=null&&Nr.can_stop)&&(0,Ae.Rm)()){De.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}Ia({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u622A\u6B62",params:Pa,type:2,detail:!0,selectArrs:[Pa.categoryId]}})}},"\u7ACB\u5373\u622A\u6B62"))};return ga.createElement("section",null,ga.createElement("div",{className:"edu-container"},cr.homework_name&&ga.createElement("section",{className:"animated fadeIn"},ga.createElement("aside",{className:"mt10"},cr.category&&ga.createElement(ie.Z,{separator:">"},ga.createElement(ie.Z.Item,null,ga.createElement(pe.Link,{to:`/classrooms/${Pa==null?void 0:Pa.coursesId}/program_homework`},cr.course_name)),ga.createElement(ie.Z.Item,null,ga.createElement(pe.Link,{to:`/classrooms/${Pa==null?void 0:Pa.coursesId}/program_homework/${cr.category.main?"":cr.category.category_id}`},cr.category.category_name)),ga.createElement(ie.Z.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),ga.createElement("aside",{className:[tt.Z.title,"mt20"].join(" ")},ga.createElement(pe.Link,{to:`/classrooms/${cr.course_id}/program_homework/${cr.category.main?"":cr.category.category_id}`},ga.createElement(ze.Z,{className:"font16 c-black"})),ga.createElement(We.Z,{title:cr.homework_name,placement:"bottom"},ga.createElement("strong",{className:"font20 ml5"},cr.homework_name)),ga.createElement(Be.VV,{temporary:!0,status:cr.homework_status}))),ga.createElement("aside",{className:`mt30 relative ${tt.Z.workListTabWrap}`},ga.createElement(Me.default,{type:"card",defaultActiveKey:Wa,activeKey:Wa,tabBarExtraContent:(ba=cr.homework_status)!=null&&ba.includes("\u5BFC\u5165")&&(0,Ae.GJ)()?ga.createElement(ke.ZP,{icon:ga.createElement("span",{className:"iconfont icon-shixun3 translateY1"}),onClick:()=>{Ia({type:"classroomList/setActionTabs",payload:{key:"\u8865\u5145\u6210\u7EE9",name:cr==null?void 0:cr.homework_name,id:cr==null?void 0:cr.homework_id,type:"hack"}})},type:"primary"},"\u8865\u5145\u6210\u7EE9"):pr(),onChange:oi},Jn.map((Ca,ln)=>ga.createElement(Me.default.TabPane,{tab:Ca.name,key:Ca.id,forceRender:Ca.forceRender},Ca.compontent))))),ga.createElement(Je,null),ga.createElement(ot.Z,{courseEndTime:cr==null?void 0:cr.course_end_date,successCallback:()=>{Ia({type:"shixunHomeworks/getWorkList",payload:pi({},Pa)})},visible:kt.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",homeworkIds:[Pa.categoryId],courseId:Pa.coursesId,isBatch:!1}),ga.createElement(wt.Z,{courseEndTime:cr==null?void 0:cr.course_end_date}),ga.createElement(La.Z,{onOk:()=>{Ia({type:"shixunHomeworks/getWorkList",payload:pi({},Pa)})}}),ga.createElement(er.Z,{onOk:()=>{Ia({type:"shixunHomeworks/getWorkList",payload:pi({},Pa)})}}),ga.createElement(we.default,{open:Vn,title:"\u89C4\u5219\u8BF4\u660E",width:800,footer:null,onCancel:()=>{Ir(!1)}},ga.createElement("p",null,"\u4E00\u3001\u7B49\u7EA7\u89C4\u5219"),ga.createElement("p",{style:{marginLeft:"10px"}},"1. \u7F3A\u9677\u7B49\u7EA7"),ga.createElement("p",{style:{marginLeft:"10px"}},ga.createElement(Te.default,{dataSource:Qi,columns:[{title:"\u7B49\u7EA7",dataIndex:"live"},{title:"\u7F3A\u9677\u8BC4\u4F30\u89C4\u5219",dataIndex:"gz"},{title:"\u6F0F\u6D1E\u8BC4\u4F30\u89C4\u5219",dataIndex:"ld"},{title:"\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219",dataIndex:"gf"}],pagination:!1})),ga.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u4EE3\u7801\u89C4\u8303\u8BC4\u4F30\u89C4\u5219\u4E2D\u6570\u503C\u6765\u6E90\u4E3A\u8BA1\u7B97\u6280\u672F\u503A\u52A1\u65F6\u95F4\u5360\u5F00\u53D1\u6240\u6709\u4EE3\u7801\u6240\u9700\u8981\u7684\u65F6\u95F4\u7684\u6BD4\u4F8B\uFF08Technical Debt Ratio\uFF09"),ga.createElement("p",{style:{marginLeft:"20px"}},"Technical Debt Ratio = \u6280\u672F\u503A\u52A1\u65F6\u95F4 / \u5F00\u53D1\u65F6\u95F4"),ga.createElement("p",{style:{marginLeft:"20px"}},"\u6280\u672F\u503A\u52A1\u65F6\u95F4\u4E3A\u4FEE\u590D\u6240\u6709\u95EE\u9898\u6240\u9700\u8981\u7684\u65F6\u95F4\u3002"),ga.createElement("p",null,"\u4E8C\u3001\u590D\u6742\u5EA6\u89C4\u5219"),ga.createElement("p",{style:{marginLeft:"10px"}},"\u6839\u636E\u4EE3\u7801\u8DEF\u5F84\u6570\u8BA1\u7B97\u7684\u6570\u503C\uFF0C\u6BCF\u5F53\u4E00\u4E2A\u51FD\u6570\u7684\u63A7\u5236\u6D41\u5206\u53C9\u65F6\uFF0C\u590D\u6742\u5EA6\u8BA1\u6570\u5668\u5C31\u4F1A\u81EA\u589E\u4E00\u3002"),ga.createElement("p",{style:{marginLeft:"10px"}},"\u6BCF\u4E2A\u7A0B\u5E8F\u8BED\u8A00\u7684\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u590D\u6742\u5EA6\u6570\u636E\u4E0D\u540C\uFF0C\u4F46\u6BCF\u4E2A\u51FD\u6570\u7684\u6700\u5C0F\u590D\u6742\u5EA6\u4E3A1\u3002\uFF08\u7279\u5B9A\u8BED\u8A00\u7684\u8BE6\u7EC6\u6570\u636E\u7565\uFF09"),ga.createElement("p",null,"\u4E09\u3001\u4EE3\u7801\u8D28\u91CF\u5206\u89C4\u5219"),ga.createElement("p",{style:{marginLeft:"10px"}},"\u4EE3\u7801\u8D28\u91CF\u5206 = 0.5*\u7F3A\u9677\u5206\u6570 + 0.3*\u6F0F\u6D1E\u5206\u6570 + 0.2*\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570"),ga.createElement("p",{style:{marginLeft:"10px"}},"\u5176\u4E2D\uFF1A"),ga.createElement("p",{style:{marginLeft:"10px"}},"\u7F3A\u9677/\u6F0F\u6D1E/\u4EE3\u7801\u89C4\u8303\u6027\u5206\u6570\u8BA1\u7B97\u89C4\u5219\u4E3A\uFF1A100 - 100 *((100*\u5D29\u6E83\u6570 + 5*\u4E25\u91CD\u6570 + 3*\u4E3B\u8981\u6570 + 1*\u6B21\u6570\uFF09/ \u4EE3\u7801\u884C\u6570\uFF09"),ga.createElement("p",{style:{marginLeft:"10px"}},"\u6CE8\uFF1A\u5206\u6570\u4E3A\u7A7A\u7684\u4EE3\u8868\u4E0D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u3002")))};var cl=(0,pe.connect)(({shixunHomeworks:_t,classroomList:kt,loading:zt,user:Da,globalSetting:ar})=>({classroomList:kt,shixunHomeworks:_t,globalSetting:ar,user:Da,loading:zt.effects}))(Xo)},12082:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(22150),pe=ee(2453),De=ee(14446),we=ee(71230),ke=ee(78045),ie=ee(31795),We=ee(15746),Me=ee(34336),Te=ee(84567),ze=ee(27484),Be=ee.n(ze),me=ee(33170),oe=ee(52262),a=ee(28706),y=ee(35973),b=ee(12317),E=ee(89779),z=ee(17998),te=ee(67294),ne=Object.defineProperty,re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ce=(Le,Ge,He)=>Ge in Le?ne(Le,Ge,{enumerable:!0,configurable:!0,writable:!0,value:He}):Le[Ge]=He,be=(Le,Ge)=>{for(var He in Ge||(Ge={}))he.call(Ge,He)&&Ce(Le,He,Ge[He]);if(le)for(var He of le(Ge))ve.call(Ge,He)&&Ce(Le,He,Ge[He]);return Le},ye=(Le,Ge)=>re(Le,ae(Ge)),Ae=(Le,Ge)=>{var He={};for(var Ke in Le)he.call(Le,Ke)&&Ge.indexOf(Ke)<0&&(He[Ke]=Le[Ke]);if(Le!=null&&le)for(var Ke of le(Le))Ge.indexOf(Ke)<0&&ve.call(Le,Ke)&&(He[Ke]=Le[Ke]);return He},Ne=(Le,Ge,He)=>new Promise((Ke,qe)=>{var lt=cn=>{try{Vt(He.next(cn))}catch(rt){qe(rt)}},mt=cn=>{try{Vt(He.throw(cn))}catch(rt){qe(rt)}},Vt=cn=>cn.done?Ke(cn.value):Promise.resolve(cn.value).then(lt,mt);Vt((He=He.apply(Le,Ge)).next())});const Qe=Le=>{var Ge=Le,{classroomList:He,dispatch:Ke,courseEndTime:qe,onWindowBack:lt}=Ge,mt=Ae(Ge,["classroomList","dispatch","courseEndTime","onWindowBack"]),Vt,cn,rt,yt,Lt,ct,Ft,jt,_e,Sn,wn,ha,Mn,at,ut,dt,At,Et,gt,Qt,Ot,bt,rn,Xt,$e,Re,Ln,xe,je,Ht,et,Ue,Ct,Pt,Zt,vn,Nt,Tt,St;const en=(0,y.useParams)(),[Gt]=de.default.useForm(),[mn,Qn]=(0,x.useState)(1),[xn,Un]=(0,x.useState)([]),[pa,Kt]=(0,x.useState)(0),[$t,qt]=(0,x.useState)(2e3),[sa,ra]=(0,x.useState)(!0),[Hn,Oa]=(0,x.useState)(!1),[Ta,Pr]=(0,x.useState)(!1),[zr,Na]=(0,x.useState)([]),[Xe,Bt]=(0,x.useState)(!0),[xt,Tn]=(0,x.useState)(!((rt=(cn=(Vt=He.actionTabs)==null?void 0:Vt.selectArrsAll)==null?void 0:cn[0])!=null&&rt.send_type));let[pn,_n]=(0,x.useState)([0,0,0]);(0,x.useEffect)(()=>{var pt,Jt,Ut,dn,jn,tn,Yn,Pn,ua,Ha,ir,Mr,Hr;if(He.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(Vr(),(Ut=(Jt=(pt=He.actionTabs)==null?void 0:pt.selectArrsAll)==null?void 0:Jt[0])!=null&&Ut.can_publish?_n([...(ua=(Pn=(Yn=He.actionTabs)==null?void 0:Yn.selectArrsAll)==null?void 0:Pn[0])==null?void 0:ua.difficult_count]):_n([...(tn=(jn=(dn=He.actionTabs)==null?void 0:dn.selectArrsAll)==null?void 0:jn[0])==null?void 0:tn.difficult_settings]),Tn(!((Mr=(ir=(Ha=He.actionTabs)==null?void 0:Ha.selectArrsAll)==null?void 0:ir[0])!=null&&Mr.send_type)),Qr(),He.actionTabs.type===2){const oo=(Hr=He.actionTabs.selectArrsAll)==null?void 0:Hr[0];Bt(oo.unified_setting)}else Bt(!1)},[He.actionTabs]),(0,x.useEffect)(()=>{if(Hn){if(Ta)return;Ke({type:"classroomList/setActionTabs",payload:{}}),(0,oe.GJ)()?(Ke({type:"classroomList/getClassroomTeacherCommonList",payload:ye(be({},He.actionTabs.params),{type:1})}),Ke({type:"shixunHomeworks/getWorkList",payload:be({},en)})):Ke({type:"classroomList/getClassroomCommonList",payload:be({},He.actionTabs.params)})}},[Hn]);const Qr=pt=>Ne(void 0,null,function*(){ra(!0);const Jt=yield(0,E.c_)(ye(be({},en),{page:pt||mn,limit:2e4,homework_id:He.actionTabs.type===1?"":He.actionTabs.selectArrs[0]}));Jt==null||Jt.course_groups.map((Ut,dn)=>{Ut.key=Ut.id,Ut.title=Ut.name,Ut.disabled=Ut.is_published}),Jt&&(Un([...Jt==null?void 0:Jt.course_groups]),Kt(Jt==null?void 0:Jt.course_groups_count),ra(!1),pt||Gt.setFieldsValue({publish_time:Be()(Be()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Be()(Be()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),Ra=()=>{(0,oe.GJ)()?He.actionTabs.detail?(Ke({type:"shixunHomeworks/setActionTabs",payload:{}}),Ke({type:"shixunHomeworks/getWorkList",payload:be({},en)}),Ke({type:"shixunHomeworks/getWorkSetting",payload:be({},en)})):Ke({type:"classroomList/getClassroomTeacherCommonList",payload:ye(be({},He.actionTabs.params),{type:5,category:He.actionTabs.params.categoryId})}):Ke({type:"classroomList/getClassroomCommonList",payload:be({},He.actionTabs.params)})},br=()=>Ne(void 0,null,function*(){var pt,Jt;if((0,oe.Rm)()&&!((pt=He.AssistantObject.hack)!=null&&pt.can_publish)){pe.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"),ur(!1);return}const Ut=be({},Gt.getFieldsValue());if(Ut.end_time<=Ut.publish_time){pe.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),ur(!1);return}if((zr==null?void 0:zr.length)<=0&&!Xe&&xn.length>0){pe.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),ur(!1);return}if(pn.reduce((tn,Yn)=>tn+Yn)===0&&!xt){pe.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),ur(!1);return}let dn={homework_ids:[...He.actionTabs.selectArrs],group_ids:zr.length>0?zr.map(tn=>tn.id):(Jt=He.detailCommonHomeworksList)==null?void 0:Jt.course_groups,end_time:Be()(Ut.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Be()(Ut.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:pn==null?void 0:pn.map(tn=>tn),send_type:xt?"0":"1",unified_setting:!zr.length};if(ur(!0),(yield(0,me.ZP)(`/api/courses/${en.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:be({},dn)})).status===0){if(ur(!1),(0,a.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),pe.ZP.success("\u53D1\u5E03\u6210\u529F"),Ke({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),lt){lt();return}mt.onCallback&&mt.onCallback(),Ra(),localStorage.getItem("Noviceguide")==="0"||Ke({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:te.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}})}else ur(!1)}),Vr=()=>{Qn(1),Un([]),Na([])},mo=pa>mn*$t,[Xn,ur]=(0,x.useState)(!1);return te.createElement(De.default,{width:600,confirmLoading:Xn,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:He.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:br,onCancel:()=>{if(Vr(),Ke({type:"classroomList/setActionTabs",payload:{}}),lt){lt();return}Ra()}},te.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",te.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),xn&&te.createElement(de.default,{form:Gt},te.createElement("div",{style:{paddingLeft:0}},He.actionTabs.type===2&&te.createElement(we.Z,{style:{marginBottom:"10px"}},te.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),te.createElement(ke.ZP.Group,{value:xt,disabled:!((ct=(Lt=(yt=He.actionTabs)==null?void 0:yt.selectArrsAll)==null?void 0:Lt[0])!=null&&ct.can_publish),onChange:pt=>{Tn(pt.target.value)}},te.createElement(ke.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),te.createElement(ke.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!xt&&te.createElement(we.Z,{style:{marginBottom:"10px"}},te.createElement("span",{style:{marginRight:65}}),te.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",te.createElement(ie.Z,{value:pn[0],onChange:pt=>{pn[0]=pt,_n([...pn])},min:0,disabled:!((_e=(jt=(Ft=He.actionTabs)==null?void 0:Ft.selectArrsAll)==null?void 0:jt[0])!=null&&_e.can_publish),placeholder:`\u6700\u5927${(Mn=(ha=(wn=(Sn=He.actionTabs)==null?void 0:Sn.selectArrsAll)==null?void 0:wn[0])==null?void 0:ha.difficult_count)==null?void 0:Mn[0]}`,max:(At=(dt=(ut=(at=He.actionTabs)==null?void 0:at.selectArrsAll)==null?void 0:ut[0])==null?void 0:dt.difficult_count)==null?void 0:At[0],style:{width:60}})),te.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",te.createElement(ie.Z,{value:pn[1],onChange:pt=>{pn[1]=pt,_n([...pn])},min:0,disabled:!((Qt=(gt=(Et=He.actionTabs)==null?void 0:Et.selectArrsAll)==null?void 0:gt[0])!=null&&Qt.can_publish),max:(Xt=(rn=(bt=(Ot=He.actionTabs)==null?void 0:Ot.selectArrsAll)==null?void 0:bt[0])==null?void 0:rn.difficult_count)==null?void 0:Xt[1],placeholder:`\u6700\u5927${(xe=(Ln=(Re=($e=He.actionTabs)==null?void 0:$e.selectArrsAll)==null?void 0:Re[0])==null?void 0:Ln.difficult_count)==null?void 0:xe[1]}`,style:{width:60}})),te.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",te.createElement(ie.Z,{value:pn[2],onChange:pt=>{pn[2]=pt,_n([...pn])},min:0,disabled:!((et=(Ht=(je=He.actionTabs)==null?void 0:je.selectArrsAll)==null?void 0:Ht[0])!=null&&et.can_publish),placeholder:`\u6700\u5927${(Zt=(Pt=(Ct=(Ue=He.actionTabs)==null?void 0:Ue.selectArrsAll)==null?void 0:Ct[0])==null?void 0:Pt.difficult_count)==null?void 0:Zt[2]}`,max:(St=(Tt=(Nt=(vn=He.actionTabs)==null?void 0:vn.selectArrsAll)==null?void 0:Nt[0])==null?void 0:Tt.difficult_count)==null?void 0:St[2],style:{width:60}}))),te.createElement(we.Z,{className:"mt30",align:"middle"},te.createElement(We.Z,null,te.createElement(de.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},te.createElement(Me.default,{style:{width:170,marginRight:"25px"},disabledDate:pt=>(0,z.Q8)(pt,qe),disabledTime:pt=>(0,z.d0)(pt),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Be()((0,a.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),te.createElement(We.Z,{className:"ml20"},te.createElement(de.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},te.createElement(Me.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Be()((0,a.U6)(),"HH:mm")},disabledDate:pt=>(0,z.Q8)(pt,qe,Gt.getFieldValue("publish_time")),disabledTime:pt=>(0,z.d0)(pt,Gt.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),He.actionTabs.type===2&&te.createElement(we.Z,{style:{marginBottom:"10px"}},te.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),te.createElement(ke.ZP.Group,{value:Xe,onChange:pt=>{Bt(pt.target.value),Na([])}},te.createElement(ke.ZP,{value:!0,disabled:!He.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),te.createElement(ke.ZP,{className:"ml20",disabled:xn.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),xn.length<=0&&He.actionTabs.type===2&&te.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"')),(He.actionTabs.type===1||!Xe)&&xn.length>0&&te.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},te.createElement("span",{style:{flex:1}},te.createElement(Te.default,{checked:zr.length===xn.length,onChange:pt=>{zr.length===xn.length?Na([]):Na(xn.filter(Jt=>!Jt.is_published))}},"\u5168\u9009")," "),te.createElement("span",{style:{width:16}}),te.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",zr.length||0,"\u4E2A\u5206\u73ED")),(He.actionTabs.type===1||!Xe)&&xn.length>0&&te.createElement(b.Z,{data:xn,selectedRowKeys:zr,setSelectedRowKeys:Na})))};st.Z=(0,y.connect)(({classroomList:Le})=>({classroomList:Le}))(Qe)},17998:function(ft,st,ee){"use strict";ee.d(st,{Q8:function(){return lt},d0:function(){return mt},w6:function(){return qe}});var x=ee(67294),de=ee(34336),pe=ee(11713),De=ee(2453),we=ee(14446),ke=ee(78045),ie=ee(71230),We=ee(15746),Me=ee(83062),Te=ee(84567),ze=ee(71577),Be=ee(27484),me=ee.n(Be),oe=ee(52262),a=ee(33170),y=ee(96486),b=ee.n(y),E=ee(28706),z=ee(39886),te=ee(35973),ne=ee(39717),re=ee(78207),ae=ee(92882),le=ee(96332),he=ee(93686),ve=ee(67294),Ce=Object.defineProperty,be=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Le=(yt,Lt,ct)=>Lt in yt?Ce(yt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:ct}):yt[Lt]=ct,Ge=(yt,Lt)=>{for(var ct in Lt||(Lt={}))Ne.call(Lt,ct)&&Le(yt,ct,Lt[ct]);if(Ae)for(var ct of Ae(Lt))Qe.call(Lt,ct)&&Le(yt,ct,Lt[ct]);return yt},He=(yt,Lt)=>be(yt,ye(Lt)),Ke=(yt,Lt,ct)=>new Promise((Ft,jt)=>{var _e=ha=>{try{wn(ct.next(ha))}catch(Mn){jt(Mn)}},Sn=ha=>{try{wn(ct.throw(ha))}catch(Mn){jt(Mn)}},wn=ha=>ha.done?Ft(ha.value):Promise.resolve(ha.value).then(_e,Sn);wn((ct=ct.apply(yt,Lt)).next())});function qe(yt,Lt){const ct=[];for(let Ft=yt;Ft{const Ft=ytme()(Lt).endOf("day"),_e=yt{const ct=parseInt(me()(yt).format("HH")),Ft=parseInt(me()().format("HH")),jt=parseInt(me()().format("mm"));if(!yt)return{disabledHours:()=>qe(0,Ft),disabledMinutes:()=>qe(0,jt)};if(Lt){const _e=parseInt(me()(Lt).format("HH")),Sn=parseInt(me()(Lt).format("mm"));return me()(yt).isSame(me()(Lt),"day")?{disabledHours:()=>qe(0,_e),disabledMinutes:()=>ct<=_e?qe(0,Sn):[]}:void 0}if(me()(yt).isSame(me()(),"day"))return{disabledHours:()=>qe(0,Ft),disabledMinutes:()=>me()(yt).isSame(me()(),"hour")&&ct<=Ft?qe(0,jt):[]}},{RangePicker:Vt}=de.default,{Option:cn}=pe.default,rt=({shixunHomeworks:yt,loading:Lt,dispatch:ct,classroomList:Ft,user:jt})=>{var _e,Sn,wn,ha,Mn,at,ut,dt,At;const Et=(0,te.useParams)(),{workSetting:gt,workList:Qt,shixunWorkList:Ot,headerInfo:bt,changeData:rn}=yt,[Xt,$e]=(0,x.useState)(!1),[Re,Ln]=(0,x.useState)(!1);let[xe,je]=(0,x.useState)([]),[Ht,et]=(0,x.useState)([]),[Ue,Ct]=(0,x.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:ne.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[Pt,Zt]=(0,x.useState)({}),[vn,Nt]=(0,x.useState)({});(0,x.useEffect)(()=>()=>{je([])},[]),(0,x.useEffect)(()=>{$e(!(0,oe.GJ)())},[(0,oe.GJ)()]);const Tt=()=>{ct({type:"shixunHomeworks/getWorkSetting",payload:Ge({},Et)})};(0,x.useEffect)(()=>{if(!(gt!=null&>.course_id))return;Object.keys(Ue).map(function(qt){Ue[qt]=gt[qt]}),(!Ue.allow_late||!Ue.unified_late)&&(Ue.late_penalty=20,Ue.penalty_type=ne.Q.Percent),Ue.unified_setting||(Ue.unified_late=!1,Ue.unified_anonymous_comment=!1,Ue.unified_anonymous_appeal=!1),xe=JSON.parse(JSON.stringify(gt.group_settings.map(qt=>He(Ge({},qt),{group_name:[qt.group_name]})).filter(qt=>qt.publish_time!==null))),Ht=JSON.parse(JSON.stringify(gt.allow_late_settings.map(qt=>He(Ge({},qt),{group_name:[qt.group_name]})).filter(qt=>qt.late_time!==null))),Ct(Ge({},Ue));const $t=(0,E.QE)((xe==null?void 0:xe.length)>0?xe:[]);je([...$t]),(Ht==null?void 0:Ht.length)<=0?et([{penalty_type:ne.Q.Percent,late_penalty:20}]):et([...Ht])},[gt]);const St=()=>Ke(void 0,null,function*(){var $t,qt;if((($t=jt==null?void 0:jt.userInfo)==null?void 0:$t.user_status)===2){(0,re.Rd)();return}const sa=JSON.parse(JSON.stringify(Ue));if(sa.challenge_settings.filter(Hn=>!Hn.hide),sa.categoryId=Et.categoryId,(qt=sa.challenge_settings)!=null&&qt.every(Hn=>!Hn.checked)){De.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(xe),!Ue.unified_setting)xe=xe==null?void 0:xe.map(Hn=>{var Oa;if(!Hn.publish_time||!Hn.end_time)throw De.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Hn.group_name)throw De.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Hn.group_name=typeof(Hn==null?void 0:Hn.group_name)=="string"?[Hn==null?void 0:Hn.group_name]:Hn==null?void 0:Hn.group_name,Hn.group_id=(Oa=gt.group_settings)==null?void 0:Oa.filter(Ta=>{var Pr;return(Pr=Hn==null?void 0:Hn.group_name)==null?void 0:Pr.includes(Ta.group_name)}).map(Ta=>Ta.group_id||Ta.id).toString().split(","),Hn});else if(!Ue.publish_time||!Ue.end_time)throw De.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(sa.group_settings=xe,Ue.allow_late)if(Ue.unified_late){if(Ue.late_penalty===null||Ue.late_penalty===void 0||Ue.late_penalty<0||Ue.late_penalty>100)throw De.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ue.late_time)throw De.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Ht=Ht==null?void 0:Ht.map(Hn=>{var Oa,Ta;if(Hn.late_penalty===null||Hn.late_penalty===void 0||Hn.late_penalty<0||Hn.late_penalty>100)throw De.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Hn.late_time)throw De.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Hn.group_name)throw De.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Hn.group_name=typeof(Hn==null?void 0:Hn.group_name)=="string"?[Hn==null?void 0:Hn.group_name]:Hn==null?void 0:Hn.group_name,Hn.group_id=(Ta=(Oa=Hn==null?void 0:Hn.group_name)==null?void 0:Oa.map(Pr=>{var zr,Na;let Xe=(Na=(zr=gt.group_settings)==null?void 0:zr.filter(Bt=>(Bt==null?void 0:Bt.group_name)===Pr))==null?void 0:Na[0];return Xe==null?void 0:Xe.group_id}))==null?void 0:Ta.toString().split(","),Hn}),sa.allow_late_settings=Ht;let ra=yield(0,he.Tr)({homework_common_ids:[parseInt(Et.categoryId)],course_id:Et.coursesId,type:"homework_common"});(ra==null?void 0:ra.student_count)===0?en(sa):(Nt(sa),Zt(ra))}),en=$t=>{var qt;if($t.total_score===null){De.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if($t!=null&&$t.work_efficiency&&$t.eff_score===null){De.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const sa=$t.challenge_settings.reduce((Oa,Ta)=>Oa+Number(Ta.challenge_score),0);if((sa==null?void 0:sa.toFixed(10))!==((qt=$t.total_score-$t.eff_score)==null?void 0:qt.toFixed(10))){De.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${$t.total_score}\u5206`);return}const ra={shixun_evaluation:$t.shixun_evaluation,challenge_settings:$t.challenge_settings};let Hn=()=>{var Oa;const Ta=()=>Ke(void 0,null,function*(){Ln(!0),(yield(0,a.ZP)(`/api/homework_commons/${Et.categoryId}/publish_setting.json`,{method:"post",body:Ge({},$t)})).status===0&&(De.ZP.success("\u66F4\u65B0\u6210\u529F"),Tt(),ct({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Ge({},Et)})),Ln(!1)});!(0,y.isEqual)(rn,ra)&&!((Oa=bt==null?void 0:bt.homework_status)!=null&&Oa.includes("\u672A\u53D1\u5E03"))?we.default.confirm({title:"\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:"\u53D6\u6D88",onOk:Ta}):Ta()};gt!=null&>.high_resources_consume&&!(gt!=null&>.high_resources_consume_permission)?ct({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Et.coursesId,type:"shixun",type_id:Et.categoryId,name:gt.homework_name,fn:()=>{Hn()}}}):Hn()},Gt=($t,qt,sa="group_id")=>{var ra;return qt?qt.find(Hn=>Hn[sa]===$t):(ra=gt==null?void 0:gt.group_settings)==null?void 0:ra.find(Hn=>Hn.group_id[0]===$t)},mn=(gt==null?void 0:gt.allow_late)||(gt==null?void 0:gt.anonymous_comment),Qn=$t=>{var qt,sa;const ra=Gt($t,gt==null?void 0:gt.allow_late_settings,"id"),Hn=Gt($t,gt==null?void 0:gt.anonymous_comment_settings),Oa=Gt($t);return(gt==null?void 0:gt.allow_late)&&ra&&me()(ra==null?void 0:ra.late_time)<=me()()||(gt==null?void 0:gt.anonymous_comment)&&Hn&&(Hn==null?void 0:Hn.evaluation_start)!==null||((sa=(me()(Oa==null?void 0:Oa.end_time)<=me()()&&((qt=gt==null?void 0:gt.allow_late_settings)==null?void 0:qt.filter(Ta=>Ta.group_id.includes($t))))[0])==null?void 0:sa.late_time)!=null},xn=(0,x.useMemo)(()=>(gt==null?void 0:gt.allow_late)||(gt==null?void 0:gt.all_group_late),[gt,bt]),Un=gt==null?void 0:gt.anonymous_comment,pa=$t=>{if(!$t)return!1;const qt=Gt($t,gt==null?void 0:gt.anonymous_comment_settings);return(gt==null?void 0:gt.anonymous_comment)&&qt&&(qt==null?void 0:qt.evaluation_start)!==null},Kt=($t,qt)=>{var sa,ra,Hn;ct({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:$t,index:qt,rangePickerDisabled:Xt||(me()()<=me()((ra=Gt((sa=$t==null?void 0:$t.group_id)==null?void 0:sa[0]))==null?void 0:ra.publish_time)?!1:[!0,Qn((Hn=$t==null?void 0:$t.group_id)==null?void 0:Hn[0])]),disabledDate:gt==null?void 0:gt.course_end_date}})};return ve.createElement("section",{className:z.Z.form},ve.createElement("div",{className:z.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",ve.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),ve.createElement("div",null,ve.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},ve.createElement(ke.ZP.Group,{disabled:Xt||!((_e=bt==null?void 0:bt.homework_status)!=null&&_e.includes("\u672A\u53D1\u5E03"))||(0,oe.Rm)()&&!((Sn=Ft.AssistantObject.practice)!=null&&Sn.can_publish),value:Ue.unified_setting,onChange:$t=>{var qt;if(!((qt=bt==null?void 0:bt.homework_status)!=null&&qt.includes("\u672A\u53D1\u5E03"))){De.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Ue.unified_setting=!Ue.unified_setting,Ue.unified_setting||(Ue.unified_late=!1,et([{late_penalty:5}])),Ct(Object.assign({},Ue)),Ue.unified_setting===!1&&xe==""){je(xe.concat({}));return}Ue.unified_setting&&(je([]),et([{late_penalty:5}]))}},ve.createElement(ke.ZP,{value:!0,disabled:Xt||!(gt!=null&>.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),ve.createElement(ke.ZP,{disabled:Xt||!((wn=gt==null?void 0:gt.group_settings)!=null&&wn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ha=gt==null?void 0:gt.group_settings)==null?void 0:ha.length)===0&&ve.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),Ue.unified_setting&&ve.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},ve.createElement(ie.Z,{align:"middle"},ve.createElement(We.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),ve.createElement(We.Z,{className:"ml10"},ve.createElement(de.default,{size:"large",disabled:Xt||!((Mn=bt==null?void 0:bt.homework_status)!=null&&Mn.includes("\u672A\u53D1\u5E03")||(at=bt==null?void 0:bt.homework_status)!=null&&at.includes("\u672A\u5F00\u59CB"))||(0,oe.Rm)()&&!((ut=Ft.AssistantObject.practice)!=null&&ut.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:$t=>lt($t,gt==null?void 0:gt.course_end_date),disabledTime:$t=>mt($t),value:Ue.publish_time?me()(Ue.publish_time):"",onChange:($t,qt)=>{Ue.publish_time=qt,(Ue.end_time==""||!Ue.end_time)&&Ue.unified_setting&&(Ue.end_time=me()($t).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Ct(Object.assign({},Ue))}}))),ve.createElement(ie.Z,{align:"middle",className:"pl30"},ve.createElement(We.Z,null,"\u622A\u6B62\u65F6\u95F4"),ve.createElement(We.Z,{className:"ml10"},ve.createElement(de.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:me()((0,E.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(gt==null?void 0:gt.allow_late)&&(gt==null?void 0:gt.homework_status.includes("\u5DF2\u622A\u6B62"))||Xt||(gt==null?void 0:gt.allow_late)&&me()()>=me()(gt==null?void 0:gt.end_time)||(0,oe.Rm)()&&!((dt=Ft.AssistantObject.practice)!=null&&dt.can_publish),disabledDate:$t=>lt($t,gt==null?void 0:gt.course_end_date,Ue.publish_time),disabledTime:$t=>mt($t,Ue.publish_time),value:Ue.end_time?me()(Ue.end_time):"",onChange:($t,qt)=>{Ue.end_time=qt,Ct(Object.assign({},Ue))}})))),!Ue.unified_setting&&(xe==null?void 0:xe.length)>0&&ve.createElement(ie.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},xe&&xe.map(function($t,qt){var sa,ra,Hn,Oa,Ta,Pr,zr;return ve.createElement(We.Z,{span:24,key:qt},ve.createElement(ie.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:qt==(xe==null?void 0:xe.length)-1?"0px":"10px"}},ve.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",qt+1),ve.createElement(pe.default,{disabled:Xt||((sa=bt==null?void 0:bt.homework_status)!=null&&sa.includes("\u672A\u53D1\u5E03")&&$t.id||me()(){var Xe;if((0,oe.Rm)()&&!((Xe=Ft.AssistantObject.practice)!=null&&Xe.can_publish)){De.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}xe[qt].group_name=Na,xe[qt].group_id=$t.group_id;const Bt=(0,y.flattenDeep)(xe.map(Tn=>Tn.group_name)),xt=Ht.map(Tn=>{let pn=(Tn==null?void 0:Tn.group_name)||[];return He(Ge({},Tn),{group_name:(0,y.remove)(pn,_n=>Bt.includes(_n))})});et(xt),je(xe.slice())},maxTagCount:4,maxTagPlaceholder:Na=>ve.createElement("div",{style:{cursor:"pointer"},onClick:()=>Kt($t,qt)},"+",Na==null?void 0:Na.length)},gt.group_settings&>.group_settings.map(function(Na){if(!xe.map(Bt=>Bt.group_name).flat().includes(Na.group_name))return ve.createElement(cn,{value:Na.group_name,key:Na.id},Na.group_name)})),ve.createElement("div",{className:"ml20"},ve.createElement(Vt,{size:"large",ranges:{\u6B64\u523B:[$t.publish_time?me()($t.publish_time):me()(),me()()]},allowClear:!1,disabled:Xt||(me()()<=me()((Oa=Gt((Hn=$t==null?void 0:$t.group_id)==null?void 0:Hn[0]))==null?void 0:Oa.publish_time)?!1:[!0,Qn((Ta=$t==null?void 0:$t.group_id)==null?void 0:Ta[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Na=>lt(Na,gt==null?void 0:gt.course_end_date),disabledTime:Na=>mt(Na),showTime:{showNow:!0,format:"HH:mm",defaultValue:[me()((0,E.U6)(),"HH:mm"),me()((0,E.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:$t.publish_time&&[me()($t.publish_time),$t.end_time?me()($t.end_time):void 0],onChange:(Na,Xe)=>{var Bt;if((0,oe.Rm)()&&!((Bt=Ft.AssistantObject.practice)!=null&&Bt.can_publish)){De.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}xe[qt].publish_time=Xe[0],!$t.end_time&&Xe[0]?xe[qt].end_time=me()(Xe[0]).add(7,"days"):xe[qt].end_time=Xe[1],je([...xe])},onCalendarChange:(Na,Xe,Bt)=>{if(Xe!=null&&Xe[0]&&!Xe[1]){const xt=me()(Xe[0]).add(7,"days");xe[qt].publish_time=Xe[0],xe[qt].end_time=xt,je([...xe])}}})),!Xt&&ve.createElement("div",{style:{display:"flex",width:"50px"}},((Pr=$t==null?void 0:$t.group_id)==null?void 0:Pr.length)>1&&ve.createElement(Me.Z,{title:"\u89C4\u5219\u62C6\u5206"},ve.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Kt($t,qt)})),xe.length<((zr=gt==null?void 0:gt.group_settings)==null?void 0:zr.length)&&ve.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Na;if((0,oe.Rm)()&&!((Na=Ft.AssistantObject.practice)!=null&&Na.can_publish)){De.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(xe.concat({}))}}),(($t==null?void 0:$t.publish_time)&&me()(){const Na=(0,y.cloneDeep)(Ht);Na.forEach((Xe,Bt)=>{Xe.group_name&&(Xe.group_name=Xe.group_name.filter(xt=>{var Tn;return!((Tn=xe[qt].group_name)!=null&&Tn.includes(xt))}))}),xe=xe.filter((Xe,Bt)=>qt!==Bt),et(Na),je(xe.slice()),setTimeout(()=>je(xe.slice()),10)}}))))}))),ve.createElement(ie.Z,null,ve.createElement(We.Z,null,ve.createElement("div",{className:z.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",ve.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\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"))),ve.createElement(We.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},ve.createElement(Te.default,{checked:Ue.allow_late,disabled:Xt||xn,onChange:$t=>{var qt;if((0,oe.Rm)()&&!((qt=Ft.AssistantObject.practice)!=null&&qt.can_late)){De.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}$t.target.checked&&we.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:ve.createElement("div",{style:{padding:10,background:"#f5f6f9"}},ve.createElement("div",null,"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"),ve.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),ve.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),Ue.allow_late=!Ue.allow_late,Ht==""&&et([{late_penalty:5}]),Ct(Object.assign({},Ue))}},ve.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(Ue==null?void 0:Ue.allow_late)&&ve.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},ve.createElement("div",{style:{display:"flex"}},ve.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),ve.createElement(ke.ZP.Group,{style:{marginLeft:"20px"},disabled:Xt||(gt==null?void 0:gt.anonymous_comment)||(gt==null?void 0:gt.allow_late),value:Ue.unified_late,onChange:$t=>{var qt;if((0,oe.Rm)()&&!((qt=Ft.AssistantObject.practice)!=null&&qt.can_late)){De.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}Ue.unified_late=$t.target.value,Ht==""&&!$t.target.value&&et([{penalty_type:ne.Q.Percent,late_penalty:20}]),Ct(Ge({},Ue))}},(Ue==null?void 0:Ue.unified_setting)&&ve.createElement(ke.ZP,{value:!0,disabled:!(gt!=null&>.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((At=gt==null?void 0:gt.group_settings)==null?void 0:At.length)>0&&ve.createElement(ke.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),Ue!=null&&Ue.unified_late?ve.createElement(ve.Fragment,null,ve.createElement(ie.Z,{align:"middle",style:{marginTop:"10px"}},ve.createElement(We.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),ve.createElement(We.Z,{className:"ml20"},ve.createElement(ne.Z,{disabled:Xt||Un,value:{type:Ue.penalty_type,inputValue:Ue.late_penalty},onChange:$t=>{var qt;if((0,oe.Rm)()&&!((qt=Ft.AssistantObject.practice)!=null&&qt.can_late)){De.ZP.warning("\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}Ct(He(Ge({},Ue),{late_penalty:$t.inputValue,penalty_type:$t.type}))}})),ve.createElement(We.Z,{flex:"1",className:"ml5"},ve.createElement("span",{className:"c-grey-c ml10"},Ue.penalty_type===ne.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\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)"))),ve.createElement(ie.Z,{align:"middle",style:{marginTop:"15px"}},ve.createElement(We.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),ve.createElement(We.Z,{className:"ml20"},ve.createElement(de.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:me()((0,E.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Xt||Un,value:Ue.late_time?me()(Ue.late_time):"",disabledDate:$t=>lt($t,gt==null?void 0:gt.course_end_date),onChange:($t,qt)=>{var sa;if((0,oe.Rm)()&&!((sa=Ft.AssistantObject.practice)!=null&&sa.can_late)){De.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}Ue.late_time=qt,Ct(Object.assign({},Ue))}})))):Ht.map(function($t,qt){var sa;return ve.createElement(We.Z,{span:24,key:qt},ve.createElement(ie.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},ve.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",qt+1),ve.createElement(pe.default,{disabled:Xt||!((sa=bt==null?void 0:bt.homework_status)!=null&&sa.includes("\u672A\u53D1\u5E03"))&&$t.id||(gt==null?void 0:gt.anonymous_comment),mode:"multiple",className:z.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof $t.group_name=="string"?[$t.group_name]:$t.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:ra=>{var Hn;if((0,oe.Rm)()&&!((Hn=Ft.AssistantObject.practice)!=null&&Hn.can_late)){De.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}Ht[qt].group_name=ra,Ht[qt].group_id=$t.group_id,et(Ht.slice())}},gt.group_settings&>.group_settings.map(function(ra){const Hn=Ht.map(Ta=>Ta.group_name).flat(),Oa=xe.map(Ta=>Ta.group_name).flat();if(Ue!=null&&Ue.unified_setting){if(!Hn.includes(ra.group_name))return ve.createElement(cn,{value:ra.group_name,key:ra.id},ra.group_name)}else if(Oa.includes(ra.group_name)&&!Hn.includes(ra.group_name))return ve.createElement(cn,{value:ra.group_name,key:ra.id},ra.group_name)})),ve.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),ve.createElement(ne.Z,{disabled:Xt||pa($t.id),value:{type:$t.penalty_type,inputValue:$t.late_penalty},onChange:ra=>{var Hn;if((0,oe.Rm)()&&!((Hn=Ft.AssistantObject.practice)!=null&&Hn.can_late)){De.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}Ht[qt].late_penalty=ra.inputValue,Ht[qt].penalty_type=ra.type,et([...Ht])}}),ve.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),ve.createElement(de.default,{size:"large",disabled:Xt||pa($t.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:me()((0,E.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:ra=>lt(ra,gt==null?void 0:gt.course_end_date),format:"YYYY-MM-DD HH:mm",value:$t!=null&&$t.late_time?me()($t.late_time):void 0,onChange:(ra,Hn)=>{var Oa;if((0,oe.Rm)()&&!((Oa=Ft.AssistantObject.practice)!=null&&Oa.can_late)){De.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}Ht[qt].late_time=Hn,et([...Ht])}}),!Xt&&ve.createElement("div",{style:{display:"flex",width:"50px"}},ve.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var ra;if((0,oe.Rm)()&&!((ra=Ft.AssistantObject.practice)!=null&&ra.can_late)){De.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}et(Ht.concat({penalty_type:ne.Q.Percent,late_penalty:20}))}}),qt>0&&!$t.id&&ve.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var ra;if((0,oe.Rm)()&&!((ra=Ft.AssistantObject.practice)!=null&&ra.can_late)){De.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}Ht=Ht.filter((Hn,Oa)=>qt!==Oa),et(Ht.slice()),setTimeout(()=>et(Ht.slice()),10)}}))))})),!Xt&&ve.createElement(ve.Fragment,null,ve.createElement(ze.ZP,{type:"primary",size:"large",loading:Re,style:{width:"138px",marginTop:"30px"},onClick:()=>St()},"\u4FDD\u5B58")),ve.createElement(ae.Z,{onConfirm:($t,qt)=>{xe.splice($t,0,...qt),xe.splice($t+qt.length,1);const sa=(0,E.QE)([...xe]);je([...sa])}}),ve.createElement(le.Z,{resdata:Pt,type:"shixun",okloading:Re,oktext:(Pt==null?void 0:Pt.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:$t=>Ke(void 0,null,function*(){Ln(!0);let qt=yield(0,a.ZP)(`/api/courses/${Et.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Et.categoryId)]}});Ln(!1),(qt==null?void 0:qt.status)===0&&en(vn)})}))};st.ZP=(0,te.connect)(({shixunHomeworks:yt,classroomList:Lt,loading:ct,user:Ft})=>({shixunHomeworks:yt,classroomList:Lt,loading:ct.effects,user:Ft}))(rt)},6151:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(59810),pe=ee(22150),De=ee(14446),we=ee(2453),ke=ee(9430),ie=ee(35973),We=ee(11320),Me=ee(67795),Te=ee(33170),ze=ee(27484),Be=ee.n(ze),me=ee(28706),oe=ee(67294),a=Object.defineProperty,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(le,he,ve)=>he in le?a(le,he,{enumerable:!0,configurable:!0,writable:!0,value:ve}):le[he]=ve,te=(le,he)=>{for(var ve in he||(he={}))b.call(he,ve)&&z(le,ve,he[ve]);if(y)for(var ve of y(he))E.call(he,ve)&&z(le,ve,he[ve]);return le},ne=(le,he,ve)=>new Promise((Ce,be)=>{var ye=Qe=>{try{Ne(ve.next(Qe))}catch(Le){be(Le)}},Ae=Qe=>{try{Ne(ve.throw(Qe))}catch(Le){be(Le)}},Ne=Qe=>Qe.done?Ce(Qe.value):Promise.resolve(Qe.value).then(ye,Ae);Ne((ve=ve.apply(le,he)).next())});const{Dragger:re}=de.default,ae=({classroomList:le,dispatch:he,onOk:ve})=>{const Ce=(0,ie.useParams)(),[be]=pe.default.useForm(),[ye,Ae]=(0,x.useState)(),[Ne,Qe]=(0,x.useState)(!1),Le={height:100,onRemove:()=>{Ae("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:Ge=>ne(void 0,null,function*(){return Ae(Ge),!1})};return(0,x.useEffect)(()=>{be.setFieldsValue({publish_time:Be()(Be()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Be()(Be()(new Date((0,me.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),oe.createElement(De.default,{centered:!0,title:"\u8865\u5145\u6210\u7EE9",open:le.actionTabs.key==="\u8865\u5145\u6210\u7EE9",okText:"\u786E\u5B9A",width:750,destroyOnClose:!0,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ne},onOk:()=>ne(void 0,null,function*(){be.submit()}),onCancel:()=>{be.resetFields(),he({type:"classroomList/setActionTabs",payload:{}})}},oe.createElement(pe.default,{form:be,onFinish:Ge=>ne(void 0,null,function*(){var He,Ke,qe;if(!(ye!=null&&ye.size)){we.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}Qe(!0);let lt=new FormData;lt.append("type",le.actionTabs.type),lt.append("file",ye);let mt;window.location.href.indexOf("exercise")>-1?mt=`/api/exercises/${le.actionTabs.id}/supplement_score.json`:mt=`/api/homework_commons/${le.actionTabs.id}/supplement_score.json`;let Vt=yield(0,Te.ZP)(mt,{method:"post",body:lt},!0);Qe(!1),(Vt==null?void 0:Vt.status)===0&&(ve(),be.resetFields(),he({type:"classroomList/setActionTabs",payload:{}}),((Ke=(He=Vt==null?void 0:Vt.data)==null?void 0:He.fail)==null?void 0:Ke.length)>0&&De.default.confirm({title:"\u5BFC\u5165\u5931\u8D25",closable:!0,icon:null,width:610,content:oe.createElement(ke.default,{pagination:!1,dataSource:(qe=Vt==null?void 0:Vt.data)==null?void 0:qe.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,me.FH)("",We.Z.API_SERVER+`/api/courses/get_external_score_fail_data.xlsx?type=${le.actionTabs.type}`)}}))})},oe.createElement(pe.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",labelCol:{span:3},name:"name"},le.actionTabs.name),oe.createElement(pe.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:Me.Z.downloadbutton,href:We.Z.API_SERVER+`/api/courses/down_external_score_template.json?type=${le.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(pe.default.Item,{style:{marginBottom:0}},oe.createElement(re,te({},Le),oe.createElement("a",{className:Me.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"))))))};st.Z=(0,ie.connect)(({classroomList:le})=>({classroomList:le}))(ae)},44694:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(59810),pe=ee(22150),De=ee(66368),we=ee(9430),ke=ee(28452),ie=ee(35973),We=ee(33170),Me=ee(27484),Te=ee.n(Me),ze=ee(67294),Be=(a,y,b)=>new Promise((E,z)=>{var te=ae=>{try{re(b.next(ae))}catch(le){z(le)}},ne=ae=>{try{re(b.throw(ae))}catch(le){z(le)}},re=ae=>ae.done?E(ae.value):Promise.resolve(ae.value).then(te,ne);re((b=b.apply(a,y)).next())});const{Dragger:me}=de.default,oe=({})=>{const a=(0,ie.useParams)(),[y]=pe.default.useForm(),[b,E]=(0,x.useState)(!0),[z,te]=(0,x.useState)(!1);let[ne,re]=(0,x.useState)({type:window.location.href.indexOf("program_homework")>-1?2:1,limit:10,page:1});const ae=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];function le(){return Be(this,null,function*(){let ve;te(!0),window.location.href.indexOf("exercise")>-1?ve=`/api/exercises/${a==null?void 0:a.categoryId}/redo_logs.json`:ve=`/api/homework_commons/${a==null?void 0:a.categoryId}/redo_logs.json`;let Ce=yield(0,We.ZP)(ve,{method:"get",params:ne});te(!1),(Ce==null?void 0:Ce.status)===0&&E(Ce==null?void 0:Ce.data)})}(0,x.useEffect)(()=>{le()},[]);let he=[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u9898\u578B",dataIndex:"question_type",render:(ve,Ce,be)=>{var ye;return(ye=ae.find(Ae=>Ae.question_type===ve))==null?void 0:ye.name}},window.location.href.indexOf("exercise")>-1&&{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"question_name"},window.location.href.indexOf("exercise")>-1&&{title:"\u5173\u5361\u540D\u79F0",dataIndex:"challenge_name"},window.location.href.indexOf("exercise")<=-1&&{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"task_name",width:"40%"},{title:"\u64CD\u4F5C",dataIndex:"redo_type",render:(ve,Ce,be)=>{var ye;return(ye=[{id:1,name:"\u6253\u56DE\u91CD\u505A"},{id:2,name:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"},{id:3,name:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}].find(Ae=>Ae.id===ve))==null?void 0:ye.name}},{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801\u65F6\u95F4",dataIndex:"created_at",render:(ve,Ce,be)=>Te()(ve).format("YYYY-MM-DD HH:mm:ss")}].filter(ve=>!!ve);return ze.createElement("div",{style:{padding:"0px 30px",background:"#fff",paddingBottom:30}},ze.createElement(De.default,{destroyInactiveTabPane:!0,onChange:ve=>{ne.type=ve,ne.page=1,ne.limit=10,re(ne),le()},items:[window.location.href.indexOf("program_homework")<=-1&&{key:"1",label:"\u6253\u56DE\u91CD\u505A",children:ze.createElement(we.default,{className:"mt20",loading:z,columns:[{title:"\u59D3\u540D",dataIndex:"user_name"},{title:"\u5B66\u53F7",dataIndex:"student_id"},{title:"\u73ED\u7EA7",dataIndex:"course_group_name"},{title:"\u6253\u56DE\u91CD\u505A\u65F6\u95F4",dataIndex:"created_at",render:(ve,Ce,be)=>Te()(ve).format("YYYY-MM-DD HH:mm:ss")},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"operator"}],dataSource:b==null?void 0:b.list,pagination:!1})},{key:"2",label:"\u91CD\u7F6E\u4EE3\u7801",children:ze.createElement(we.default,{className:"mt20",loading:z,columns:he,dataSource:b==null?void 0:b.list,pagination:!1})}].filter(ve=>!!ve)}),ze.createElement(ke.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:(ve,Ce)=>{ne.page=ve,ne.limit=Ce,re(ne),le()},current:ne.page,total:b.count,pageSize:ne.limit,style:{marginTop:20}}))};st.Z=(0,ie.connect)(({classroomList:a})=>({classroomList:a}))(oe)},58387:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(59810),pe=ee(22150),De=ee(14446),we=ee(31795),ke=ee(35973),ie=ee(33170),We=ee(27484),Me=ee.n(We),Te=ee(28706),ze=ee(67294),Be=Object.defineProperty,me=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(le,he,ve)=>he in le?Be(le,he,{enumerable:!0,configurable:!0,writable:!0,value:ve}):le[he]=ve,z=(le,he)=>{for(var ve in he||(he={}))y.call(he,ve)&&E(le,ve,he[ve]);if(a)for(var ve of a(he))b.call(he,ve)&&E(le,ve,he[ve]);return le},te=(le,he)=>me(le,oe(he)),ne=(le,he,ve)=>new Promise((Ce,be)=>{var ye=Qe=>{try{Ne(ve.next(Qe))}catch(Le){be(Le)}},Ae=Qe=>{try{Ne(ve.throw(Qe))}catch(Le){be(Le)}},Ne=Qe=>Qe.done?Ce(Qe.value):Promise.resolve(Qe.value).then(ye,Ae);Ne((ve=ve.apply(le,he)).next())});const{Dragger:re}=de.default,ae=({classroomList:le,dispatch:he,onOk:ve})=>{const Ce=(0,ke.useParams)(),[be]=pe.default.useForm(),[ye,Ae]=(0,x.useState)(),[Ne,Qe]=(0,x.useState)(!1),Le={height:100,onRemove:()=>{Ae("")},accept:".xls,.xlsx",multiple:!1,beforeUpload:Ge=>ne(void 0,null,function*(){return Ae(Ge),!1})};return(0,x.useEffect)(()=>{be.setFieldsValue({publish_time:Me()(Me()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Me()(Me()(new Date((0,Te.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))})},[]),ze.createElement(De.default,{centered:!0,title:"\u4FEE\u6539\u6210\u7EE9",open:le.actionTabs.key==="\u4FEE\u6539\u6210\u7EE9",okText:"\u786E\u5B9A",width:600,cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ne},onOk:()=>ne(void 0,null,function*(){be.submit()}),onCancel:()=>{be.resetFields(),he({type:"classroomList/setActionTabs",payload:{}})}},ze.createElement(pe.default,{form:be,onFinish:Ge=>ne(void 0,null,function*(){var He,Ke;console.log("---",le.actionTabs,Ge,Ce);let qe=((He=le==null?void 0:le.actionTabs)==null?void 0:He.type)==="exercise"?`/api/exercises/${Ce==null?void 0:Ce.category}/exercise_user/edit_score.json`:`/api/student_works/${le.actionTabs.id}/edit_score.json`;Qe(!0);let lt=yield(0,ie.ZP)(qe,{method:"post",body:te(z({},Ge),{exercise_user_id:((Ke=le==null?void 0:le.actionTabs)==null?void 0:Ke.type)==="exercise"?le.actionTabs.id:""})});Qe(!1),be.resetFields(),he({type:"classroomList/setActionTabs",payload:{}}),ve()})},ze.createElement(pe.default.Item,{label:"\u6700\u7EC8\u6210\u7EE9",style:{marginBottom:0},name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6700\u7EC8\u6210\u7EE9"}]},ze.createElement(we.Z,{min:0,style:{width:"100%"}}))))};st.Z=(0,ke.connect)(({classroomList:le})=>({classroomList:le}))(ae)},17755:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(59810),pe=ee(22150),De=ee(71577),we=ee(71230),ke=ee(93421),ie=ee(34336),We=ee(35973),Me=ee(27484),Te=ee.n(Me),ze=ee(17998),Be=ee(33170),me=ee(67294),oe=(b,E,z)=>new Promise((te,ne)=>{var re=he=>{try{le(z.next(he))}catch(ve){ne(ve)}},ae=he=>{try{le(z.throw(he))}catch(ve){ne(ve)}},le=he=>he.done?te(he.value):Promise.resolve(he.value).then(re,ae);le((z=z.apply(b,E)).next())});const{Dragger:a}=de.default,y=({})=>{const b=(0,We.useParams)(),[E]=pe.default.useForm(),[z,te]=(0,x.useState)(!0),[ne,re]=(0,x.useState)(!1);console.log("----",b);function ae(){return oe(this,null,function*(){var le,he;let ve;window.location.href.indexOf("exercise")>-1?ve=`/api/exercises/${b==null?void 0:b.categoryId}/get_time_setting.json`:ve=`/api/homework_commons/${b==null?void 0:b.categoryId}/get_time_setting.json`;let Ce=yield(0,Be.ZP)(ve,{method:"get"});(Ce==null?void 0:Ce.status)===0&&E.setFieldsValue({publish_time:Te()(Te()((le=Ce==null?void 0:Ce.data)==null?void 0:le.publish_time).format("YYYY-MM-DD HH:mm")),end_time:Te()(Te()((he=Ce==null?void 0:Ce.data)==null?void 0:he.end_time).format("YYYY-MM-DD HH:mm"))})})}return(0,x.useEffect)(()=>{ae()},[]),me.createElement("div",{style:{padding:"50px 30px",background:"#fff"}},me.createElement("div",{style:{textAlign:"end"}},z&&me.createElement(De.ZP,{onClick:()=>{te(!1)}},"\u7F16\u8F91\u8BBE\u7F6E"),!z&&me.createElement("div",null,me.createElement(De.ZP,{type:"primary",loading:ne,onClick:()=>{E.submit()}},"\u63D0\u4EA4"),me.createElement(De.ZP,{style:{marginLeft:20},onClick:()=>{te(!0)}},"\u53D6\u6D88"))),me.createElement(pe.default,{form:E,disabled:z,onFinish:le=>oe(void 0,null,function*(){re(!0),console.log("---",window.location.href);let he;window.location.href.indexOf("exercise")>-1?he=`/api/exercises/${b==null?void 0:b.categoryId}/time_setting.json`:he=`/api/homework_commons/${b==null?void 0:b.categoryId}/time_setting.json`;let ve=yield(0,Be.ZP)(he,{method:"post",body:{publish_time:Te()(le.publish_time).format("YYYY-MM-DD HH:mm"),end_time:Te()(le.end_time).format("YYYY-MM-DD HH:mm")}});re(!1),(ve==null?void 0:ve.status)===0&&te(!0)})},me.createElement(we.Z,null,me.createElement(ke.Z,null,me.createElement(pe.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"publish_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}]},me.createElement(ie.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:le=>(0,ze.Q8)(le),disabledTime:le=>(0,ze.d0)(le),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),me.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4\uFF09"))),me.createElement(we.Z,null,me.createElement(ke.Z,null,me.createElement(pe.default.Item,{label:"\u7ED3\u675F\u65F6\u95F4",name:"end_time",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"}]},me.createElement(ie.default,{placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:le=>(0,ze.Q8)(le,"",E.getFieldValue("publish_time")),disabledTime:le=>(0,ze.d0)(le,E.getFieldValue("publish_time")),allowClear:!1,format:"YYYY-MM-DD HH:mm"})),me.createElement("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"}},"\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u7684\u65F6\u95F4\u622A\u70B9\uFF09")))))};st.Z=(0,We.connect)(({classroomList:b})=>({classroomList:b}))(y)},12317:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return Te}});var x=ee(67294),de=ee(69677),pe=ee(84567),De=ee(71230),we={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ie=ee(26194),We=(ze,Be,me)=>new Promise((oe,a)=>{var y=z=>{try{E(me.next(z))}catch(te){a(te)}},b=z=>{try{E(me.throw(z))}catch(te){a(te)}},E=z=>z.done?oe(z.value):Promise.resolve(z.value).then(y,b);E((me=me.apply(ze,Be)).next())}),Te=({data:ze,value:Be=[],handleChangePage:me,setSelectedRowKeys:oe,selectedRowKeys:a,onChange:y=()=>{}})=>{const[b,E]=(0,x.useState)([]),[z,te]=(0,x.useState)([]),[ne,re]=(0,x.useState)([]);let[ae,le]=(0,x.useState)(1),[he,ve]=(0,x.useState)();return(0,x.useEffect)(()=>{E(ze),te([]),re([])},[ze]),(0,x.useEffect)(()=>{oe&&(te(a),re(a))},[a]),x.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},x.createElement("div",{className:we.leftdiv},x.createElement(de.default.Search,{size:"middle",onChange:Ce=>We(void 0,null,function*(){E(ze.filter(be=>{var ye;return(ye=be==null?void 0:be.name)==null?void 0:ye.includes(Ce.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),b.length===0&&x.createElement(ie.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),x.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},x.createElement(pe.default.Group,{value:z.map(Ce=>`${Ce.id}`),onChange:Ce=>{oe(b.filter(be=>Ce.includes(`${be.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},b.map((Ce,be)=>x.createElement(De.Z,{key:Ce.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},x.createElement(pe.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Ce.is_published,value:`${Ce.id}`},x.createElement("div",{className:we.listClass},x.createElement("span",{className:we.spantitle,style:{width:Ce.is_published?"108px":"170px"}},Ce.name),Ce.is_published&&x.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),x.createElement("div",{className:we.rightdiv},x.createElement(de.default.Search,{onChange:Ce=>{re(z.filter(be=>be.name.includes(Ce.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ne.length===0&&x.createElement(ie.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),ne.length>0&&x.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},x.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},ne.map((Ce,be)=>x.createElement(De.Z,{justify:"space-between",style:{marginTop:"10px"},key:Ce.id},x.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Ce.name),x.createElement("img",{src:ke,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{oe(z.filter(ye=>`${ye.id}`!=`${Ce.id}`))}})))))))}},92882:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return y}});var x=ee(67294),de=ee(35973),pe=ee(34336),De=ee(14446),we=ee(69677),ke=ee(71230),ie=ee(15746),We={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Me=ee(27484),Te=ee.n(Me),ze=ee(28706),Be=ee(26194),me=ee(67294);const{RangePicker:oe}=pe.default,a=({dispatch:b,classroomList:E,onConfirm:z})=>{const[te,ne]=(0,x.useState)([]),[re,ae]=(0,x.useState)([]),[le,he]=(0,x.useState)("");(0,x.useEffect)(()=>{var be;if(E.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let ye=E.actionTabs.data;console.log("data",ye);let Ae=(be=ye==null?void 0:ye.group_name)==null?void 0:be.map((Ne,Qe)=>{var Le;return{group_id:ye==null?void 0:ye.group_id[Qe],group_name:ye==null?void 0:ye.group_name[Qe],is_admin:ye==null?void 0:ye.is_admin,end_time:ye==null?void 0:ye.end_time,publish_time:Array.isArray(ye==null?void 0:ye.publish_time)?(Le=ye==null?void 0:ye.publish_time)==null?void 0:Le[0]:ye==null?void 0:ye.publish_time}});Ae&&(ne([...Ae]),ae([...Ae]))}},[E.actionTabs]);const ve=()=>{b({type:"classroomList/setActionTabs",payload:{}}),he("")},Ce=be=>{if(be){const ye=re==null?void 0:re.filter(Ae=>{var Ne,Qe;return(Qe=(Ne=Ae==null?void 0:Ae.group_name)==null?void 0:Ne.toLowerCase())==null?void 0:Qe.includes(be==null?void 0:be.toLowerCase())});ne(ye)}else ne(re)};return me.createElement(De.default,{width:980,title:me.createElement("div",{style:{fontWeight:"bold",display:"flex"}},me.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",me.createElement("span",{className:We.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")),me.createElement(we.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:le,onChange:be=>{he(be.target.value.trim()),Ce(be.target.value.trim())}})),centered:!0,maskClosable:!1,open:E.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>ve(),onOk:()=>{var be;z((be=E.actionTabs)==null?void 0:be.index,re),ve()}},me.createElement("div",{className:We.modal_con},me.createElement(ke.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(te==null?void 0:te.length)>0?te.map(function(be,ye){var Ae,Ne;return me.createElement(ie.Z,{span:24,key:ye},me.createElement(ke.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:ye==(te==null?void 0:te.length)-1?"0px":"10px"}},me.createElement("div",{className:We.multiple_select,title:be.group_name},be.group_name),me.createElement("div",{className:"ml20"},me.createElement(oe,{size:"large",ranges:{\u6B64\u523B:[be.publish_time?Te()(be.publish_time):Te()(),Te()()]},allowClear:!1,disabled:(Ae=E.actionTabs)==null?void 0:Ae.rangePickerDisabled,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:Qe=>{var Le;return(0,ze.Q8)(Qe,(Le=E.actionTabs)==null?void 0:Le.disabledDate)},disabledTime:Qe=>(0,ze.d0)(Qe),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Te()((0,ze.U6)(),"HH:mm"),Te()((0,ze.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:be.publish_time&&[Te()(be.publish_time),be.end_time?Te()(be.end_time):void 0],onChange:(Qe,Le)=>{te[ye].publish_time=Le[0],te[ye].end_time=Le[1],ne([...te]),re.forEach(Ge=>{Ge.group_id===be.group_id&&(Ge.publish_time=Le[0],Ge.end_time=Le[1])}),ae([...re])}})),(Ne=E.actionTabs)!=null&&Ne.rangePickerDisabled?me.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):me.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{te.splice(ye,1),ne([...te]),re.forEach((Qe,Le)=>{Qe.group_id===be.group_id&&re.splice(Le,1)}),ae([...re])}})))}):me.createElement(Be.Z,null))))};var y=(0,de.connect)(({classroomList:b})=>({classroomList:b}))(a)},98769:function(ft,st,ee){"use strict";ee.d(st,{AD:function(){return Qe},BA:function(){return Mn},D9:function(){return lt},Hp:function(){return ae},IM:function(){return Vt},Iy:function(){return le},KM:function(){return ha},KU:function(){return Lt},MJ:function(){return he},Ne:function(){return mt},ON:function(){return Ft},Uj:function(){return Sn},VY:function(){return yt},YO:function(){return _e},YX:function(){return jt},Zn:function(){return a},_g:function(){return te},_k:function(){return Ke},c6:function(){return Ae},cr:function(){return y},eV:function(){return Ne},fi:function(){return b},gh:function(){return be},hS:function(){return cn},iA:function(){return E},j6:function(){return ne},je:function(){return He},jj:function(){return re},kS:function(){return ct},o6:function(){return ye},pO:function(){return wn},rQ:function(){return Le},sA:function(){return Ce},xm:function(){return qe},xo:function(){return rt},y8:function(){return Ge},yd:function(){return z}});var x=ee(89779),de=ee(35973),pe=ee(28706),De=ee(2453),we=ee(11320),ke=Object.defineProperty,ie=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Te=(at,ut,dt)=>ut in at?ke(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):at[ut]=dt,ze=(at,ut)=>{for(var dt in ut||(ut={}))We.call(ut,dt)&&Te(at,dt,ut[dt]);if(ie)for(var dt of ie(ut))Me.call(ut,dt)&&Te(at,dt,ut[dt]);return at},Be=(at,ut,dt)=>new Promise((At,Et)=>{var gt=bt=>{try{Ot(dt.next(bt))}catch(rn){Et(rn)}},Qt=bt=>{try{Ot(dt.throw(bt))}catch(rn){Et(rn)}},Ot=bt=>bt.done?At(bt.value):Promise.resolve(bt.value).then(gt,Qt);Ot((dt=dt.apply(at,ut)).next())});const me=()=>{(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},oe=()=>{(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},a=at=>Be(void 0,null,function*(){me(),(yield(0,x.YR)(ze({},at))).status===0&&(yield(0,pe.QH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at.coursesId}/export_couser_info.json`,query:at}))),oe()}),y=at=>Be(void 0,null,function*(){const ut=yield(0,x.yS)(ze({},at));if(ut.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_member_act_score`);else{if(ut.status===-2)return ut;ut.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_member_act_score`))}}),b=at=>Be(void 0,null,function*(){const ut=yield(0,x.W0)(ze({},at));if(ut.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_score`);else{if(ut.status===-4)return ut;ut.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_score`))}}),E=at=>Be(void 0,null,function*(){const ut=yield(0,x.Nl)(ze({},at));if(ut.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_exercise_and_other`);else{if(ut.status===-4)return ut;ut.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_exercise_and_other`))}}),z=at=>Be(void 0,null,function*(){const ut=yield(0,x.IU)(ze({},at));if(ut.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/export_star_user`);else{if(ut.status===-4)return ut;ut.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/export_star_user`))}}),te=at=>Be(void 0,null,function*(){const ut=yield(0,x.td)(ze({},at));if(ut.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_exercise_and_other`);else{if(ut.status===-2)return ut;if(ut.status===-3)(0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_exercise_and_other`);else if(ut.status===-4)return ut}}),ne=at=>Be(void 0,null,function*(){const ut=yield(0,x.QX)(ze({},at));if(ut.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_homework`);else{if(ut.status===-4)return ut;ut.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/course_total_homework`))}}),re=(at,ut)=>Be(void 0,null,function*(){const dt=yield(0,x.o_)(ze({},at));dt.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`)):dt.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`))}),ae=(at,ut)=>Be(void 0,null,function*(){const dt=yield(0,x.ZL)(ze({},at));dt.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`)):dt.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`))}),le=(at,ut)=>Be(void 0,null,function*(){const dt=yield(0,x.aP)(ze({},at));dt.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`)):dt.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`))}),he=(at,ut)=>Be(void 0,null,function*(){const dt=yield(0,x.vV)(ze({},at));dt.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`)):dt.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/${ut}`))}),ve=at=>Be(void 0,null,function*(){me(),(yield exportCourseWorkListAppendix(ze({},at))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${at.categoryId}/works_list.zip`,query:at}))),oe()}),Ce=at=>Be(void 0,null,function*(){me(),yield(0,pe.QH)("",we.Z.API_SERVER+`/api/polls/${at.categoryId}/commit_result.xlsx`),oe()}),be=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at.coursesId}/attendances/export_xlsx_data.xlsx`,query:at}))}),ye=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at.coursesId}/video_study_statics.xlsx`,query:at}))}),Ae=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at.coursesId}/export_video_study.xlsx`,query:at}))}),Ne=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at.coursesId}/export_course_students_info.xlsx`,query:at}))}),Qe=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/school_manages/students.xlsx",query:at}))}),Le=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/item_banks/export.xlsx",query:at}))}),Ge=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:at}))}),He=at=>Be(void 0,null,function*(){const ut=yield(0,x.Uy)(ze({},at));ut.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),de.history.push(`/classrooms/${at.coursesId}/exportlist/exercise_score,export_exercise_users`)):ut.status===-3&&((0,de.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),de.history.push(`/classrooms/${at.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Ke=at=>Be(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/export_records/${at.id}.xlsx`,query:at}))}),qe=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:at}))}),lt=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at==null?void 0:at.coursesId}/${at.menuKey}_statistic.xlsx?${at.checkedList.map(ut=>`course_group_id[]=${ut}`).join("&")}`,query:at}))}),mt=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/ec_years/${at==null?void 0:at.ec_year_id}/ec_training_objectives.xlsx`,query:at}))}),Vt=at=>Be(void 0,null,function*(){yield(0,pe.FH)(at==null?void 0:at.name,(0,pe.NY)({url:we.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:at}))}),cn=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/ec_years/${at==null?void 0:at.ec_year_id}/ec_courses.xlsx`,query:at}))}),rt=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/ec_years/${at==null?void 0:at.ec_year_id}/ec_graduation_requirements.xlsx`,query:at}))}),yt=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:at}))}),Lt=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/exercises/${at.categoryId}/rank_list.xlsx`,query:at}))}),ct=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:at}))}),Ft=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/examination_banks/${at.id}.json`,query:at}))}),jt=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/exercises/${at.categoryId}.json`,query:at}))}),_e=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/polls/${at==null?void 0:at.id}/commit_result.json`,query:at}))}),Sn=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+"/api/paths/get_task_pass.json",query:at}))}),wn=(at,ut)=>Be(void 0,null,function*(){yield(0,pe.FH)(ut||"",(0,pe.NY)({url:we.Z.API_SERVER+`/api/exercises/${at==null?void 0:at.exercise_id}/consult_exercise.json`,query:at}))}),ha=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/competitions/${at==null?void 0:at.identifier}/competition_commit_records/member_works.xlsx`,query:at}))}),Mn=at=>Be(void 0,null,function*(){yield(0,pe.FH)("",(0,pe.NY)({url:we.Z.API_SERVER+`/api/courses/${at==null?void 0:at.coursesId}/group_homeworks/import_group_template.xlsx`,query:at}))})},51959:function(ft,st,ee){"use strict";ee.d(st,{BU:function(){return de},Dj:function(){return x},gH:function(){return pe},vp:function(){return De}});function x(we){try{we.mozRequestFullScreen?we.mozRequestFullScreen():we.webkitRequestFullScreen&&we.webkitRequestFullScreen()}catch(ke){console.log(ke,":e")}}function de(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const pe=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function De(){var we=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,ke=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",we),window.isFullScreen?window.isFullScreen:we!=null}},78207:function(ft,st,ee){"use strict";ee.d(st,{rX:function(){return ne},pW:function(){return re},gy:function(){return ae},xY:function(){return te},O5:function(){return z},tJ:function(){return oe},o1:function(){return a},Rd:function(){return E}});var x=ee(35973),de=ee(14446),pe=ee(96074),De=ee(2453),we=ee(52262),ke=ee(28706),ie=ee(55304),We=ee(25510),Me="data:image/png;base64,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",Te=ee.p+"static/newqrcode.a8740efb.png",ze=ee(32637),Be=ee(67294),me=(le,he,ve)=>new Promise((Ce,be)=>{var ye=Qe=>{try{Ne(ve.next(Qe))}catch(Le){be(Le)}},Ae=Qe=>{try{Ne(ve.throw(Qe))}catch(Le){be(Le)}},Ne=Qe=>Qe.done?Ce(Qe.value):Promise.resolve(Qe.value).then(ye,Ae);Ne((ve=ve.apply(le,he)).next())});const oe=(le,he=!1)=>!!(a(le)&&y(he)),a=le=>(0,we.bg)()?!0:(le({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),y=(le=!1)=>{var he;const{user:ve}=(0,x.getDvaApp)()._store.getState();return(he=ve.userInfo)!=null&&he.profile_completed?!0:(de.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,ke.xg)("/account/profile/edit"),b()}}),!1)},b=()=>{de.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()}})},E=()=>{de.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"))})},z=()=>{var le;const{user:he}=(0,x.getDvaApp)()._store.getState();return(le=he.userInfo)!=null&&le.professional_certification?!0:(de.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,ke.xg)("/account/certification")}}),!1)},te=()=>(0,we.V9)()?!0:(de.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:Te,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),ne=(le,he)=>le?!0:(de.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Be.createElement("div",null,Be.createElement("p",null,he||"\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:Me,width:200}),Be.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ke.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),re=le=>{de.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(pe.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,le),"\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:We,alt:"\u4E8C\u7EF4\u7801",width:160})))})},ae=(le,he="")=>{const{shixunsDetail:{detail:ve}}=(0,x.getDvaApp)()._store.getState();if((ve==null?void 0:ve.public)===2||(ve==null?void 0:ve.public)===1||(ve==null?void 0:ve.shixun_status)===3){let Ce="";return(ve==null?void 0:ve.public)===2&&(Ce="\u5DF2\u516C\u5F00"),(ve==null?void 0:ve.public)===1&&(Ce="\u5F85\u5BA1\u6838"),(ve==null?void 0:ve.shixun_status)===3&&(Ce="\u5DF2\u5173\u95ED"),de.default.info({centered:!0,icon:Be.createElement(ie.Z,{style:{color:"#faad14"}}),width:460,title:"\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,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ce,"\uFF0C",he,"\u3002"),Be.createElement("p",null,"\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:We,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(ve==null?void 0:ve.shixun_status)===2?(de.default.confirm({centered:!0,icon:Be.createElement(ie.Z,null),title:"\u63D0\u793A",content:Be.createElement("div",null,Be.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",he,"\u3002"),Be.createElement("br",null),Be.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{de.default.confirm({width:440,centered:!0,icon:Be.createElement(ie.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){(yield le({type:"shixunsDetail/cancelRelease",payload:{id:ve==null?void 0:ve.identifier}})).status!==401&&(De.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),le({type:"shixunsDetail/getShixunsDetail",payload:{id:ve==null?void 0:ve.identifier}}),le({type:"practiceSetting/getCommonData",payload:{id:ve==null?void 0:ve.identifier}}))})})}}),!0):!1}},38780:function(ft,st){"use strict";function ee(){const x=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let de=1;de{const we=pe[De];we!==void 0&&(x[De]=we)})}return x}st.Z=ee},66367:function(ft,st,ee){"use strict";ee.d(st,{F:function(){return x},Z:function(){return de}});function x(pe){return pe!=null&&pe===pe.window}function de(pe,De){var we,ke;if(typeof window=="undefined")return 0;const ie=De?"scrollTop":"scrollLeft";let We=0;return x(pe)?We=pe[De?"pageYOffset":"pageXOffset"]:pe instanceof Document?We=pe.documentElement[ie]:(pe instanceof HTMLElement||pe)&&(We=pe[ie]),pe&&!x(pe)&&typeof We!="number"&&(We=(ke=((we=pe.ownerDocument)!==null&&we!==void 0?we:pe).documentElement)===null||ke===void 0?void 0:ke[ie]),We}},57838:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return de}});var x=ee(67294);function de(){const[,pe]=x.useReducer(De=>De+1,0);return pe}},58375:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return De}});var x=ee(96523);function de(we,ke,ie,We){const Me=ie-ke;return we/=We/2,we<1?Me/2*we*we*we+ke:Me/2*((we-=2)*we*we+2)+ke}var pe=ee(66367);function De(we){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:We,duration:Me=450}=ke,Te=ie(),ze=(0,pe.Z)(Te,!0),Be=Date.now(),me=()=>{const a=Date.now()-Be,y=de(a>Me?Me:a,ze,we,Me);(0,pe.F)(Te)?Te.scrollTo(window.pageXOffset,y):Te instanceof Document||Te.constructor.name==="HTMLDocument"?Te.documentElement.scrollTop=y:Te.scrollTop=y,a{let{children:Ge}=Le;const{getPrefixCls:He}=we.useContext(ie.E_),Ke=He("breadcrumb");return we.createElement("li",{className:`${Ke}-separator`,"aria-hidden":"true"},Ge===""?Ge:Ge||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var ze=Te,Be=function(Le,Ge){var He={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ge.indexOf(Ke)<0&&(He[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ke=Object.getOwnPropertySymbols(Le);qeGe[qe]||Ke)}function oe(Le,Ge,He,Ke){if(He==null)return null;const{className:qe,onClick:lt}=Ge,mt=Be(Ge,["className","onClick"]),Vt=Object.assign(Object.assign({},(0,De.Z)(mt,{data:!0,aria:!0})),{onClick:lt});return Ke!==void 0?we.createElement("a",Object.assign({},Vt,{className:de()(`${Le}-link`,qe),href:Ke}),He):we.createElement("span",Object.assign({},Vt,{className:de()(`${Le}-link`,qe)}),He)}function a(Le,Ge){return(Ke,qe,lt,mt,Vt)=>{if(Ge)return Ge(Ke,qe,lt,mt);const cn=me(Ke,qe);return oe(Le,Ke,cn,Vt)}}var y=function(Le,Ge){var He={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ge.indexOf(Ke)<0&&(He[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ke=Object.getOwnPropertySymbols(Le);qe{const{prefixCls:Ge,separator:He="/",children:Ke,menu:qe,overlay:lt,dropdownProps:mt,href:Vt}=Le,rt=(yt=>{if(qe||lt){const Lt=Object.assign({},mt);if(qe){const ct=qe||{},{items:Ft}=ct,jt=y(ct,["items"]);Lt.menu=Object.assign(Object.assign({},jt),{items:Ft==null?void 0:Ft.map((_e,Sn)=>{var{key:wn,title:ha,label:Mn,path:at}=_e,ut=y(_e,["key","title","label","path"]);let dt=Mn!=null?Mn:ha;return at&&(dt=we.createElement("a",{href:`${Vt}${at}`},dt)),Object.assign(Object.assign({},ut),{key:wn!=null?wn:Sn,label:dt})})})}else lt&&(Lt.overlay=lt);return we.createElement(Me.Z,Object.assign({placement:"bottom"},Lt),we.createElement("span",{className:`${Ge}-overlay-link`},yt,we.createElement(We.Z,null)))}return yt})(Ke);return rt!=null?we.createElement(we.Fragment,null,we.createElement("li",null,rt),He&&we.createElement(ze,null,He)):null},E=Le=>{const{prefixCls:Ge,children:He,href:Ke}=Le,qe=y(Le,["prefixCls","children","href"]),{getPrefixCls:lt}=we.useContext(ie.E_),mt=lt("breadcrumb",Ge);return we.createElement(b,Object.assign({},qe,{prefixCls:mt}),oe(mt,qe,He,Ke))};E.__ANT_BREADCRUMB_ITEM=!0;var z=E,te=ee(14747),ne=ee(67968),re=ee(45503);const ae=Le=>{const{componentCls:Ge,iconCls:He}=Le;return{[Ge]:Object.assign(Object.assign({},(0,te.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[He]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,te.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ge}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ge}-link`]:{[` > ${He} + span, > ${He} + a `]:{marginInlineStart:Le.marginXXS}},[`${Ge}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${He}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,ne.Z)("Breadcrumb",Le=>{const Ge=(0,re.TS)(Le,{});return[ae(Ge)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),he=function(Le,Ge){var He={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ge.indexOf(Ke)<0&&(He[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ke=Object.getOwnPropertySymbols(Le);qe{var{breadcrumbName:mt}=lt,Vt=he(lt,["breadcrumbName"]);return Object.assign(Object.assign({},Vt),{title:mt})})}),qe}function Ce(Le,Ge){return(0,we.useMemo)(()=>Le||(Ge?Ge.map(ve):null),[Le,Ge])}var be=function(Le,Ge){var He={};for(var Ke in Le)Object.prototype.hasOwnProperty.call(Le,Ke)&&Ge.indexOf(Ke)<0&&(He[Ke]=Le[Ke]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ke=Object.getOwnPropertySymbols(Le);qe{if(Ge===void 0)return Ge;let He=(Ge||"").replace(/^\//,"");return Object.keys(Le).forEach(Ke=>{He=He.replace(`:${Ke}`,Le[Ke])}),He},Ae=Le=>{const{prefixCls:Ge,separator:He="/",style:Ke,className:qe,rootClassName:lt,routes:mt,items:Vt,children:cn,itemRender:rt,params:yt={}}=Le,Lt=be(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ct,direction:Ft,breadcrumb:jt}=we.useContext(ie.E_);let _e;const Sn=ct("breadcrumb",Ge),[wn,ha]=le(Sn),Mn=Ce(Vt,mt),at=a(Sn,rt);if(Mn&&Mn.length>0){const At=[],Et=Vt||mt;_e=Mn.map((gt,Qt)=>{const{path:Ot,key:bt,type:rn,menu:Xt,overlay:$e,onClick:Re,className:Ln,separator:xe,dropdownProps:je}=gt,Ht=ye(yt,Ot);Ht!==void 0&&At.push(Ht);const et=bt!=null?bt:Qt;if(rn==="separator")return we.createElement(ze,{key:et},xe);const Ue={},Ct=Qt===Mn.length-1;Xt?Ue.menu=Xt:$e&&(Ue.overlay=$e);let{href:Pt}=gt;return At.length&&Ht!==void 0&&(Pt=`#/${At.join("/")}`),we.createElement(b,Object.assign({key:et},Ue,(0,De.Z)(gt,{data:!0,aria:!0}),{className:Ln,dropdownProps:je,href:Pt,separator:Ct?"":He,onClick:Re,prefixCls:Sn}),at(gt,yt,Et,At,Pt))})}else if(cn){const At=(0,pe.Z)(cn).length;_e=(0,pe.Z)(cn).map((Et,gt)=>{if(!Et)return Et;const Qt=gt===At-1;return(0,ke.Tm)(Et,{separator:Qt?"":He,key:gt})})}const ut=de()(Sn,jt==null?void 0:jt.className,{[`${Sn}-rtl`]:Ft==="rtl"},qe,lt,ha),dt=Object.assign(Object.assign({},jt==null?void 0:jt.style),Ke);return wn(we.createElement("nav",Object.assign({className:ut,style:dt},Lt),we.createElement("ol",null,_e)))};Ae.Item=z,Ae.Separator=ze;var Ne=Ae,Qe=Ne},84567:function(ft,st,ee){"use strict";ee.d(st,{default:function(){return le}});var x=ee(94184),de=ee.n(x),pe=ee(95860),De=ee(67294),we=ee(53124),ke=ee(98866),ie=ee(65223),Me=De.createContext(null),Te=ee(63185),ze=ee(45353),Be=ee(92429),me=function(he,ve){var Ce={};for(var be in he)Object.prototype.hasOwnProperty.call(he,be)&&ve.indexOf(be)<0&&(Ce[be]=he[be]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,be=Object.getOwnPropertySymbols(he);ye{var Ce;const{prefixCls:be,className:ye,rootClassName:Ae,children:Ne,indeterminate:Qe=!1,style:Le,onMouseEnter:Ge,onMouseLeave:He,skipGroup:Ke=!1,disabled:qe}=he,lt=me(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:mt,direction:Vt,checkbox:cn}=De.useContext(we.E_),rt=De.useContext(Me),{isFormItemInput:yt}=De.useContext(ie.aM),Lt=De.useContext(ke.Z),ct=(Ce=(rt==null?void 0:rt.disabled)||qe)!==null&&Ce!==void 0?Ce:Lt,Ft=De.useRef(lt.value);De.useEffect(()=>{rt==null||rt.registerValue(lt.value)},[]),De.useEffect(()=>{if(!Ke)return lt.value!==Ft.current&&(rt==null||rt.cancelValue(Ft.current),rt==null||rt.registerValue(lt.value),Ft.current=lt.value),()=>rt==null?void 0:rt.cancelValue(lt.value)},[lt.value]);const jt=mt("checkbox",be),[_e,Sn]=(0,Te.ZP)(jt),wn=Object.assign({},lt);rt&&!Ke&&(wn.onChange=function(){lt.onChange&<.onChange.apply(lt,arguments),rt.toggleOption&&rt.toggleOption({label:Ne,value:lt.value})},wn.name=rt.name,wn.checked=rt.value.includes(lt.value));const ha=de()(`${jt}-wrapper`,{[`${jt}-rtl`]:Vt==="rtl",[`${jt}-wrapper-checked`]:wn.checked,[`${jt}-wrapper-disabled`]:ct,[`${jt}-wrapper-in-form-item`]:yt},cn==null?void 0:cn.className,ye,Ae,Sn),Mn=de()({[`${jt}-indeterminate`]:Qe},Be.A,Sn),at=Qe?"mixed":void 0;return _e(De.createElement(ze.Z,{component:"Checkbox",disabled:ct},De.createElement("label",{className:ha,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),Le),onMouseEnter:Ge,onMouseLeave:He},De.createElement(pe.Z,Object.assign({"aria-checked":at},wn,{prefixCls:jt,className:Mn,disabled:ct,ref:ve})),Ne!==void 0&&De.createElement("span",null,Ne))))};var y=De.forwardRef(oe),b=ee(74902),E=ee(10366),z=function(he,ve){var Ce={};for(var be in he)Object.prototype.hasOwnProperty.call(he,be)&&ve.indexOf(be)<0&&(Ce[be]=he[be]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,be=Object.getOwnPropertySymbols(he);ye{const{defaultValue:Ce,children:be,options:ye=[],prefixCls:Ae,className:Ne,rootClassName:Qe,style:Le,onChange:Ge}=he,He=z(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ke,direction:qe}=De.useContext(we.E_),[lt,mt]=De.useState(He.value||Ce||[]),[Vt,cn]=De.useState([]);De.useEffect(()=>{"value"in He&&mt(He.value||[])},[He.value]);const rt=De.useMemo(()=>ye.map(ut=>typeof ut=="string"||typeof ut=="number"?{label:ut,value:ut}:ut),[ye]),yt=ut=>{cn(dt=>dt.filter(At=>At!==ut))},Lt=ut=>{cn(dt=>[].concat((0,b.Z)(dt),[ut]))},ct=ut=>{const dt=lt.indexOf(ut.value),At=(0,b.Z)(lt);dt===-1?At.push(ut.value):At.splice(dt,1),"value"in He||mt(At),Ge==null||Ge(At.filter(Et=>Vt.includes(Et)).sort((Et,gt)=>{const Qt=rt.findIndex(bt=>bt.value===Et),Ot=rt.findIndex(bt=>bt.value===gt);return Qt-Ot}))},Ft=Ke("checkbox",Ae),jt=`${Ft}-group`,[_e,Sn]=(0,Te.ZP)(Ft),wn=(0,E.Z)(He,["value","disabled"]),ha=ye.length?rt.map(ut=>De.createElement(y,{prefixCls:Ft,key:ut.value.toString(),disabled:"disabled"in ut?ut.disabled:He.disabled,value:ut.value,checked:lt.includes(ut.value),onChange:ut.onChange,className:`${jt}-item`,style:ut.style,title:ut.title},ut.label)):be,Mn={toggleOption:ct,value:lt,disabled:He.disabled,name:He.name,registerValue:Lt,cancelValue:yt},at=de()(jt,{[`${jt}-rtl`]:qe==="rtl"},Ne,Qe,Sn);return _e(De.createElement("div",Object.assign({className:at,style:Le},wn,{ref:ve}),De.createElement(Me.Provider,{value:Mn},ha)))},ne=De.forwardRef(te);var re=De.memo(ne);const ae=y;ae.Group=re,ae.__ANT_CHECKBOX=!0;var le=ae},63185:function(ft,st,ee){"use strict";ee.d(st,{C2:function(){return we}});var x=ee(14747),de=ee(45503),pe=ee(67968);const De=ke=>{const{checkboxCls:ie}=ke,We=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,x.Wf)(ke)),{display:"inline-flex",flexWrap:"wrap",columnGap:ke.marginXS,[`> ${ke.antCls}-row`]:{flex:1}}),[We]:Object.assign(Object.assign({},(0,x.Wf)(ke)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${We}`]:{marginInlineStart:0},[`&${We}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,x.Wf)(ke)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ke.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,x.oN)(ke))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ke.checkboxSize,height:ke.checkboxSize,direction:"ltr",backgroundColor:ke.colorBgContainer,border:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`,borderRadius:ke.borderRadiusSM,borderCollapse:"separate",transition:`all ${ke.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ke.checkboxSize/14*5,height:ke.checkboxSize/14*8,border:`${ke.lineWidthBold}px solid ${ke.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ke.motionDurationFast} ${ke.motionEaseInBack}, opacity ${ke.motionDurationFast}`}},"& + span":{paddingInlineStart:ke.paddingXS,paddingInlineEnd:ke.paddingXS}})},{[` ${We}:not(${We}-disabled), ${ie}:not(${ie}-disabled) `]:{[`&:hover ${ie}-inner`]:{borderColor:ke.colorPrimary}},[`${We}:not(${We}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:ke.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:ke.colorPrimary,borderColor:ke.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ke.motionDurationMid} ${ke.motionEaseOutBack} ${ke.motionDurationFast}`}}},[` ${We}-checked:not(${We}-disabled), ${ie}-checked:not(${ie}-disabled) `]:{[`&:hover ${ie}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:ke.colorBgContainer,borderColor:ke.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ke.fontSizeLG/2,height:ke.fontSizeLG/2,backgroundColor:ke.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${We}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:ke.colorBgContainerDisabled,borderColor:ke.colorBorder,"&:after":{borderColor:ke.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ke.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:ke.colorTextDisabled}}}]};function we(ke,ie){const We=(0,de.TS)(ie,{checkboxCls:`.${ke}`,checkboxSize:ie.controlInteractiveSize});return[De(We)]}st.ZP=(0,pe.Z)("Checkbox",(ke,ie)=>{let{prefixCls:We}=ie;return[we(We,ke)]})},34336:function(ft,st,ee){"use strict";ee.d(st,{default:function(){return $u}});var x=ee(97909),de=ee.n(x),pe=ee(68291),De=ee(33088),we=ee.n(De),ke=ee(26850),ie=ee.n(ke),We=ee(23082),Me=ee.n(We),Te=ee(99873),ze=ee.n(Te),Be=ee(86625),me=ee.n(Be),oe=ee(40618),a=ee.n(oe);de().extend(a()),de().extend(me()),de().extend(we()),de().extend(ie()),de().extend(Me()),de().extend(ze()),de().extend(function(se,fe){var Ee=fe.prototype,Ve=Ee.format;Ee.format=function(Rt){var Dt=(Rt||"").replace("Wo","wo");return Ve.bind(this)(Dt)}});var y={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"},b=function(fe){var Ee=y[fe];return Ee||fe.split("_")[0]},E=function(){(0,pe.ET)(!1,"Not match any format. Please help to fire a issue about this.")},z={getNow:function(){return de()()},getFixedDate:function(fe){return de()(fe,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(fe){return fe.endOf("month")},getWeekDay:function(fe){var Ee=fe.locale("en");return Ee.weekday()+Ee.localeData().firstDayOfWeek()},getYear:function(fe){return fe.year()},getMonth:function(fe){return fe.month()},getDate:function(fe){return fe.date()},getHour:function(fe){return fe.hour()},getMinute:function(fe){return fe.minute()},getSecond:function(fe){return fe.second()},addYear:function(fe,Ee){return fe.add(Ee,"year")},addMonth:function(fe,Ee){return fe.add(Ee,"month")},addDate:function(fe,Ee){return fe.add(Ee,"day")},setYear:function(fe,Ee){return fe.year(Ee)},setMonth:function(fe,Ee){return fe.month(Ee)},setDate:function(fe,Ee){return fe.date(Ee)},setHour:function(fe,Ee){return fe.hour(Ee)},setMinute:function(fe,Ee){return fe.minute(Ee)},setSecond:function(fe,Ee){return fe.second(Ee)},isAfter:function(fe,Ee){return fe.isAfter(Ee)},isValidate:function(fe){return fe.isValid()},locale:{getWeekFirstDay:function(fe){return de()().locale(b(fe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(fe,Ee){return Ee.locale(b(fe)).weekday(0)},getWeek:function(fe,Ee){return Ee.locale(b(fe)).week()},getShortWeekDays:function(fe){return de()().locale(b(fe)).localeData().weekdaysMin()},getShortMonths:function(fe){return de()().locale(b(fe)).localeData().monthsShort()},format:function(fe,Ee,Ve){return Ee.locale(b(fe)).format(Ve)},parse:function(fe,Ee,Ve){for(var Ye=b(fe),Rt=0;Rt1&&(Dt=fe.addDate(Dt,-7)),Dt}function xe(se,fe,Ee){var Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(fe){case"year":return Ee.addYear(se,Ve*10);case"quarter":case"month":return Ee.addYear(se,Ve);default:return Ee.addMonth(se,Ve)}}function je(se,fe){var Ee=fe.generateConfig,Ve=fe.locale,Ye=fe.format;return typeof Ye=="function"?Ye(se):Ee.locale.format(Ve.locale,se,Ye)}function Ht(se,fe){var Ee=fe.generateConfig,Ve=fe.locale,Ye=fe.formatList;return!se||typeof Ye[0]=="function"?null:Ee.locale.parse(Ve.locale,se,Ye)}function et(se){var fe=se.cellDate,Ee=se.mode,Ve=se.disabledDate,Ye=se.generateConfig;if(!Ve)return!1;var Rt=function(ia,sn,Dn){for(var ca=sn;ca<=Dn;){var Va=void 0;switch(ia){case"date":{if(Va=Ye.setDate(fe,ca),!Ve(Va))return!1;break}case"month":{if(Va=Ye.setMonth(fe,ca),!et({cellDate:Va,mode:"month",generateConfig:Ye,disabledDate:Ve}))return!1;break}case"year":{if(Va=Ye.setYear(fe,ca),!et({cellDate:Va,mode:"year",generateConfig:Ye,disabledDate:Ve}))return!1;break}}ca+=1}return!0};switch(Ee){case"date":case"week":return Ve(fe);case"month":{var Dt=1,an=Ye.getDate(Ye.getEndDate(fe));return Rt("date",Dt,an)}case"quarter":{var un=Math.floor(Ye.getMonth(fe)/3)*3,bn=un+2;return Rt("month",un,bn)}case"year":return Rt("month",0,11);case"decade":{var xa=Ye.getYear(fe),Bn=Math.floor(xa/Mn)*Mn,On=Bn+Mn-1;return Rt("year",Bn,On)}}}function Ue(se,fe){var Ee=fe.formatList,Ve=fe.generateConfig,Ye=fe.locale;return(0,wn.Z)(function(){if(!se)return[[""],""];for(var Rt="",Dt=[],an=0;an1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(bn.current),ca){un(Dn);return}bn.current=requestAnimationFrame(function(){un(Dn)})}var Bn=Ue(an,{formatList:Ee,generateConfig:Ve,locale:Ye}),On=(0,jt.Z)(Bn,2),aa=On[1];function ia(Dn){xa(Dn)}function sn(){var Dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;xa(null,Dn)}return(0,ae.useEffect)(function(){sn(!0)},[se]),(0,ae.useEffect)(function(){return function(){return cancelAnimationFrame(bn.current)}},[]),[aa,ia,sn]}var Pt=ee(92389),Zt=ee(96523),vn=ee(74902),Nt=ee(48130),Tt=new Map;function St(se,fe){var Ee;function Ve(){(0,Nt.Z)(se)?fe():Ee=(0,Zt.Z)(function(){Ve()})}return Ve(),function(){Zt.Z.cancel(Ee)}}function en(se,fe,Ee){if(Tt.get(se)&&cancelAnimationFrame(Tt.get(se)),Ee<=0){Tt.set(se,requestAnimationFrame(function(){se.scrollTop=fe}));return}var Ve=fe-se.scrollTop,Ye=Ve/Ee*10;Tt.set(se,requestAnimationFrame(function(){se.scrollTop+=Ye,se.scrollTop!==fe&&en(se,fe,Ee-10)}))}function Gt(se,fe){var Ee=fe.onLeftRight,Ve=fe.onCtrlLeftRight,Ye=fe.onUpDown,Rt=fe.onPageUpDown,Dt=fe.onEnter,an=se.which,un=se.ctrlKey,bn=se.metaKey;switch(an){case Pt.Z.LEFT:if(un||bn){if(Ve)return Ve(-1),!0}else if(Ee)return Ee(-1),!0;break;case Pt.Z.RIGHT:if(un||bn){if(Ve)return Ve(1),!0}else if(Ee)return Ee(1),!0;break;case Pt.Z.UP:if(Ye)return Ye(-1),!0;break;case Pt.Z.DOWN:if(Ye)return Ye(1),!0;break;case Pt.Z.PAGE_UP:if(Rt)return Rt(-1),!0;break;case Pt.Z.PAGE_DOWN:if(Rt)return Rt(1),!0;break;case Pt.Z.ENTER:if(Dt)return Dt(),!0;break}return!1}function mn(se,fe,Ee,Ve){var Ye=se;if(!Ye)switch(fe){case"time":Ye=Ve?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ye="gggg-wo";break;case"month":Ye="YYYY-MM";break;case"quarter":Ye="YYYY-[Q]Q";break;case"year":Ye="YYYY";break;default:Ye=Ee?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ye}function Qn(se,fe,Ee){var Ve=se==="time"?8:10,Ye=typeof fe=="function"?fe(Ee.getNow()).length:fe.length;return Math.max(Ve,Ye)+2}var xn=null,Un=new Set;function pa(se){return!xn&&typeof window!="undefined"&&window.addEventListener&&(xn=function(Ee){(0,vn.Z)(Un).forEach(function(Ve){Ve(Ee)})},window.addEventListener("mousedown",xn)),Un.add(se),function(){Un.delete(se),Un.size===0&&(window.removeEventListener("mousedown",xn),xn=null)}}function Kt(se){var fe=se.target;if(se.composed&&fe.shadowRoot){var Ee;return((Ee=se.composedPath)===null||Ee===void 0?void 0:Ee.call(se)[0])||fe}return fe}var $t=function(fe){return fe==="month"||fe==="date"?"year":fe},qt=function(fe){return fe==="date"?"month":fe},sa=function(fe){return fe==="month"||fe==="date"?"quarter":fe},ra=function(fe){return fe==="date"?"week":fe},Hn={year:$t,month:qt,quarter:sa,week:ra,time:null,date:null};function Oa(se,fe){return se.some(function(Ee){return Ee&&Ee.contains(fe)})}function Ta(se){var fe=se.open,Ee=se.value,Ve=se.isClickOutside,Ye=se.triggerOpen,Rt=se.forwardKeyDown,Dt=se.onKeyDown,an=se.blurToCancel,un=se.onSubmit,bn=se.onCancel,xa=se.onFocus,Bn=se.onBlur,On=se.changeOnBlur,aa=(0,ae.useState)(!1),ia=(0,jt.Z)(aa,2),sn=ia[0],Dn=ia[1],ca=(0,ae.useState)(!1),Va=(0,jt.Z)(ca,2),_a=Va[0],Xa=Va[1],tr=(0,ae.useRef)(!1),Ja=(0,ae.useRef)(!1),ja=(0,ae.useRef)(!1),co={onMouseDown:function(){Dn(!0),Ye(!0)},onKeyDown:function(qr){var bo=function(){ja.current=!0};if(Dt(qr,bo),!ja.current){switch(qr.which){case Pt.Z.ENTER:{fe?un()!==!1&&Dn(!0):Ye(!0),qr.preventDefault();return}case Pt.Z.TAB:{sn&&fe&&!qr.shiftKey?(Dn(!1),qr.preventDefault()):!sn&&fe&&!Rt(qr)&&qr.shiftKey&&(Dn(!0),qr.preventDefault());return}case Pt.Z.ESC:{Dn(!0),bn();return}}!fe&&![Pt.Z.SHIFT].includes(qr.which)?Ye(!0):sn||Rt(qr)}},onFocus:function(qr){Dn(!0),Xa(!0),xa&&xa(qr)},onBlur:function(qr){if(tr.current||!Ve(document.activeElement)){tr.current=!1;return}an?setTimeout(function(){for(var bo=document,_o=bo.activeElement;_o&&_o.shadowRoot;)_o=_o.shadowRoot.activeElement;Ve(_o)&&bn()},0):fe&&(Ye(!1),Ja.current&&un()),Xa(!1),Bn==null||Bn(qr)}};return(0,ae.useEffect)(function(){Ja.current=!1},[fe]),(0,ae.useEffect)(function(){Ja.current=!0},[Ee]),(0,ae.useEffect)(function(){return pa(function(kr){var qr=Kt(kr),bo=Ve(qr);fe&&(bo?!On&&(!_a||bo)&&Ye(!1):(tr.current=!0,(0,Zt.Z)(function(){tr.current=!1})))})}),[co,{focused:_a,typing:sn}]}function Pr(se,fe){return ae.useMemo(function(){return se||(fe?((0,pe.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(fe).map(function(Ee){var Ve=(0,jt.Z)(Ee,2),Ye=Ve[0],Rt=Ve[1];return{label:Ye,value:Rt}})):[])},[se,fe])}var zr=ee(14075);function Na(se){var fe=se.valueTexts,Ee=se.onTextChange,Ve=ae.useState(""),Ye=(0,jt.Z)(Ve,2),Rt=Ye[0],Dt=Ye[1],an=ae.useRef([]);an.current=fe;function un(xa){Dt(xa),Ee(xa)}function bn(){Dt(an.current[0])}return(0,zr.Z)(function(){fe.every(function(xa){return xa!==Rt})&&bn()},[fe.join("||")]),[Rt,un,bn]}var Xe=ae.createContext({}),Bt=Xe,xt=ee(71002);function Tn(se){var fe=se.cellRender,Ee=se.monthCellRender,Ve=se.dateRender,Ye=ae.useMemo(function(){if(fe)return fe;if(!(!Ee&&!Ve))return function(Rt,Dt){var an=Rt;return Ve&&Dt.type==="date"?Ve(an,Dt.today):Ee&&Dt.type==="month"?Ee(an,Dt.locale):Dt.originNode}},[fe,Ee,Ve]);return Ye}function pn(se,fe){for(var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ve=String(se);Ve.length=1?Ee|0:1,Dt=se;Dt<=fe;Dt+=Rt)Ye.push({label:pn(Dt,2),value:Dt,disabled:(Ve||[]).includes(Dt)});return Ye}function io(se){var fe=se.generateConfig,Ee=se.prefixCls,Ve=se.operationRef,Ye=se.activeColumnIndex,Rt=se.value,Dt=se.showHour,an=se.showMinute,un=se.showSecond,bn=se.use12Hours,xa=se.hourStep,Bn=xa===void 0?1:xa,On=se.minuteStep,aa=On===void 0?1:On,ia=se.secondStep,sn=ia===void 0?1:ia,Dn=se.disabledHours,ca=se.disabledMinutes,Va=se.disabledSeconds,_a=se.disabledTime,Xa=se.hideDisabledOptions,tr=se.onSelect,Ja=se.cellRender,ja=se.locale,co=[],kr="".concat(Ee,"-content"),qr="".concat(Ee,"-time-panel"),bo,_o=Rt?fe.getHour(Rt):-1,$o=_o,vi=Rt?fe.getMinute(Rt):-1,Ho=Rt?fe.getSecond(Rt):-1,Do=fe.getNow(),Ao=ae.useMemo(function(){if(_a){var Eo=_a(Do);return[Eo.disabledHours,Eo.disabledMinutes,Eo.disabledSeconds]}return[Dn,ca,Va]},[Dn,ca,Va,_a,Do]),Yo=(0,jt.Z)(Ao,3),ti=Yo[0],ko=Yo[1],ni=Yo[2],Mi=da(0,23,Bn,ti&&ti()),Ei=(0,wn.Z)(function(){return Mi},Mi,mr);bn&&(bo=$o>=12,$o%=12);var Xi=ae.useMemo(function(){if(!bn)return[!1,!1];var Eo=[!0,!0];return Ei.forEach(function(Ii){var ci=Ii.disabled,ji=Ii.value;ci||(ji>=12?Eo[1]=!1:Eo[0]=!1)}),Eo},[bn,Ei]),Di=(0,jt.Z)(Xi,2),Wi=Di[0],di=Di[1],Bi=ae.useMemo(function(){return bn?Ei.filter(bo?function(Eo){return Eo.value>=12}:function(Eo){return Eo.value<12}).map(function(Eo){var Ii=Eo.value%12,ci=Ii===0?"12":pn(Ii,2);return(0,Ft.Z)((0,Ft.Z)({},Eo),{},{label:ci,value:Ii})}):Ei},[bn,bo,Ei]),Ui=da(0,59,aa,ko&&ko(_o)),el=da(0,59,sn,ni&&ni(_o,vi)),Ji=To({value:Rt,generateConfig:fe,disabledMinutes:ko,disabledSeconds:ni,minutes:Ui,seconds:el,use12Hours:bn});Ve.current={onUpDown:function(Ii){var ci=co[Ye];if(ci)for(var ji=ci.units.findIndex(function(zl){return zl.value===ci.value}),al=ci.units.length,Ai=1;Ai2&&arguments[2]!==void 0?arguments[2]:!1;(Ti===Dn||Jo)&&(uu(dr),co&&co(dr),Ji&&Ji(dr,Co),kr&&!$e(un,dr,ml)&&!(aa!=null&&aa(dr))&&kr(dr))},El=function(dr){if(Ma.includes(Ti)){var Co,Jo,Tl=Ti==="date";switch(dr===Pt.Z.PAGE_UP||dr===Pt.Z.PAGE_DOWN?Jo=Tl?un.addMonth:un.addYear:Jo=Tl?un.addDate:un.addMonth,dr){case Pt.Z.LEFT:case Pt.Z.PAGE_UP:Co=Jo(fl,-1);break;case Pt.Z.RIGHT:case Pt.Z.PAGE_DOWN:Co=Jo(fl,1);break;case Pt.Z.UP:case Pt.Z.DOWN:Co=Jo(fl,Number("".concat(dr===Pt.Z.UP?"-":"").concat(Tl?ut:ce)));break}if(Co)return!(aa!=null&&aa(Co))}return!0},Xl=function(dr){if(Ai.current&&Ai.current.onKeyDown){var Co=!0,Jo=dr.which;if([Pt.Z.LEFT,Pt.Z.RIGHT,Pt.Z.UP,Pt.Z.DOWN,Pt.Z.PAGE_UP,Pt.Z.PAGE_DOWN,Pt.Z.ENTER].includes(Jo)&&(dr.preventDefault(),Jo!==Pt.Z.ENTER&&Va===0&&(Co=El(Jo))),Co)return Ai.current.onKeyDown(dr)}return(0,pe.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Vi=function(dr){Ai.current&&Ai.current.onBlur&&Ai.current.onBlur(dr)};el&&ci!=="right"&&(el.current={onKeyDown:Xl,onClose:function(){Ai.current&&Ai.current.onClose&&Ai.current.onClose()}}),ae.useEffect(function(){bn&&!tl.current&&Il(bn)},[bn]),ae.useEffect(function(){tl.current=!1},[]);var Cl,Jl=Tn({cellRender:Xi,monthCellRender:Ei,dateRender:Mi}),ai=(0,Ft.Z)((0,Ft.Z)({},se),{},{cellRender:Jl,operationRef:Ai,prefixCls:Ye,viewDate:fl,value:ml,onViewDateChange:Dl,sourceMode:Bl,onPanelChange:Wl,disabledDate:aa});switch(delete ai.onChange,delete ai.onSelect,Ti){case"decade":Cl=ae.createElement(si,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}));break;case"year":Cl=ae.createElement(Ba,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}));break;case"month":Cl=ae.createElement(ot,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}));break;case"quarter":Cl=ae.createElement(In,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}));break;case"week":Cl=ae.createElement(va,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}));break;case"time":delete ai.showTime,Cl=ae.createElement(Ro,(0,re.Z)({},ai,(0,xt.Z)(Xa)==="object"?Xa:null,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}));break;default:Xa?Cl=ae.createElement(ul,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}})):Cl=ae.createElement(zo,(0,re.Z)({},ai,{onSelect:function(dr,Co){Dl(dr),$i(dr,Co)}}))}var ql,Nl,jl=function(){var dr=un.getNow(),Co=Ut(un.getHour(dr),un.getMinute(dr),un.getSecond(dr),Wi?Ao:1,di?ti:1,Bi?ni:1),Jo=pt(un,dr,Co[0],Co[1],Co[2]);$i(Jo,"submit")};gl||(ql=qn(Ye,Ti,Ja),Xa&&Ti!=="date"?Nl=null:Nl=Ea({prefixCls:Ye,components:vi,needConfirmButton:Di,okDisabled:!ml||aa&&aa(ml),locale:an,showNow:_a,onNow:Di&&jl,onOk:function(){ml&&($i(ml,"submit",!0),$o&&$o(ml))}}));var cu;if(tr&&Ti==="date"&&Dn==="date"&&!Xa){var eu=un.getNow(),hu="".concat(Ye,"-today-btn"),ou=aa&&aa(eu);cu=ae.createElement("a",{className:mt()(hu,ou&&"".concat(hu,"-disabled")),"aria-disabled":ou,onClick:function(){ou||$i(eu,"mouse",!0)}},an.today)}return ae.createElement(Bt.Provider,{value:(0,Ft.Z)((0,Ft.Z)({},Ui),{},{mode:Ti,hideHeader:"hideHeader"in se?ja:Ui.hideHeader,hidePrevBtn:Ii&&ci==="right",hideNextBtn:Ii&&ci==="left"})},ae.createElement("div",{tabIndex:Va,className:mt()("".concat(Ye,"-panel"),Rt,(fe={},(0,ct.Z)(fe,"".concat(Ye,"-panel-has-range"),ji&&ji[0]&&ji[1]),(0,ct.Z)(fe,"".concat(Ye,"-panel-has-range-hover"),al&&al[0]&&al[1]),(0,ct.Z)(fe,"".concat(Ye,"-panel-rtl"),Ho==="rtl"),fe)),style:Dt,onKeyDown:Xl,onBlur:Vi,onMouseDown:bo},Cl,ql||Nl||cu?ae.createElement("div",{className:"".concat(Ye,"-footer")},ql,Nl,cu):null))}var er=La,Sr=ee(62709),eo={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 Lo(se){var fe,Ee=se.prefixCls,Ve=se.popupElement,Ye=se.popupStyle,Rt=se.visible,Dt=se.dropdownClassName,an=se.dropdownAlign,un=se.transitionName,bn=se.getPopupContainer,xa=se.children,Bn=se.range,On=se.popupPlacement,aa=se.direction,ia="".concat(Ee,"-dropdown"),sn=function(){return On!==void 0?On:aa==="rtl"?"bottomRight":"bottomLeft"};return ae.createElement(Sr.Z,{showAction:[],hideAction:[],popupPlacement:sn(),builtinPlacements:eo,prefixCls:ia,popupTransitionName:un,popup:Ve,popupAlign:an,popupVisible:Rt,popupClassName:mt()(Dt,(fe={},(0,ct.Z)(fe,"".concat(ia,"-range"),Bn),(0,ct.Z)(fe,"".concat(ia,"-rtl"),aa==="rtl"),fe)),popupStyle:Ye,getPopupContainer:bn},xa)}var ga=Lo;function ii(se){var fe=se.prefixCls,Ee=se.presets,Ve=se.onClick,Ye=se.onHover;return Ee.length?ae.createElement("div",{className:"".concat(fe,"-presets")},ae.createElement("ul",null,Ee.map(function(Rt,Dt){var an=Rt.label,un=Rt.value;return ae.createElement("li",{key:Dt,onClick:function(){return Ve==null?void 0:Ve(Vr(un))},onMouseEnter:function(){return Ye==null?void 0:Ye(Vr(un))},onMouseLeave:function(){return Ye==null?void 0:Ye(null)}},an)}))):null}function ei(se){var fe=se.picker,Ee=se.disabledHours,Ve=se.disabledMinutes,Ye=se.disabledSeconds;fe==="time"&&(Ee||Ve||Ye)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Fo(se,fe,Ee){var Ve=(0,xt.Z)(fe)==="object"?fe.clearIcon:Ee;return Ve||ae.createElement("span",{className:"".concat(se,"-clear-btn")})}function dl(se){var fe,Ee=se,Ve=Ee.prefixCls,Ye=Ve===void 0?"rc-picker":Ve,Rt=Ee.id,Dt=Ee.name,an=Ee.tabIndex,un=Ee.style,bn=Ee.className,xa=Ee.dropdownClassName,Bn=Ee.dropdownAlign,On=Ee.popupStyle,aa=Ee.transitionName,ia=Ee.generateConfig,sn=Ee.locale,Dn=Ee.inputReadOnly,ca=Ee.allowClear,Va=Ee.autoFocus,_a=Ee.showTime,Xa=Ee.picker,tr=Xa===void 0?"date":Xa,Ja=Ee.format,ja=Ee.use12Hours,co=Ee.value,kr=Ee.defaultValue,qr=Ee.presets,bo=Ee.open,_o=Ee.defaultOpen,$o=Ee.defaultOpenValue,vi=Ee.suffixIcon,Ho=Ee.clearIcon,Do=Ee.disabled,Ao=Ee.disabledDate,Yo=Ee.placeholder,ti=Ee.getPopupContainer,ko=Ee.pickerRef,ni=Ee.panelRender,Mi=Ee.onChange,Ei=Ee.onOpenChange,Xi=Ee.onFocus,Di=Ee.onBlur,Wi=Ee.onMouseDown,di=Ee.onMouseUp,Bi=Ee.onMouseEnter,Ui=Ee.onMouseLeave,el=Ee.onContextMenu,Ji=Ee.onClick,gl=Ee.onKeyDown,Fl=Ee.onSelect,Eo=Ee.direction,Ii=Ee.autoComplete,ci=Ii===void 0?"off":Ii,ji=Ee.inputRender,al=Ee.changeOnBlur,Ai=ae.useRef(null),tl=tr==="date"&&!!_a||tr==="time",zl=Pr(qr),Hl=Qr(mn(Ja,tr,_a,ja)),ml=ae.useRef(null),uu=ae.useRef(null),pu=ae.useRef(null),su=(0,_e.Z)(null,{value:co,defaultValue:kr}),fl=(0,jt.Z)(su,2),Il=fl[0],Dl=fl[1],du=ae.useState(Il),ru=(0,jt.Z)(du,2),Al=ru[0],Ti=ru[1],yl=ae.useRef(null),Ql=(0,_e.Z)(!1,{value:bo,defaultValue:_o,postState:function(hn){return Do?!1:hn},onChange:function(hn){Ei&&Ei(hn),!hn&&yl.current&&yl.current.onClose&&yl.current.onClose()}}),_l=(0,jt.Z)(Ql,2),Bl=_l[0],Ll=_l[1],Wl=Ue(Al,{formatList:Hl,generateConfig:ia,locale:sn}),$i=(0,jt.Z)(Wl,2),El=$i[0],Xl=$i[1],Vi=Na({valueTexts:El,onTextChange:function(hn){var Sa=Ht(hn,{locale:sn,formatList:Hl,generateConfig:ia});Sa&&(!Ao||!Ao(Sa))&&Ti(Sa)}}),Cl=(0,jt.Z)(Vi,3),Jl=Cl[0],ai=Cl[1],ql=Cl[2],Nl=function(hn){Ti(hn),Dl(hn),Mi&&!$e(ia,Il,hn)&&Mi(hn,hn?je(hn,{generateConfig:ia,locale:sn,format:Hl[0]}):"")},jl=function(hn){Do&&hn||Ll(hn)},cu=function(hn){return Bl&&yl.current&&yl.current.onKeyDown?yl.current.onKeyDown(hn):((0,pe.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},eu=function(){for(var hn=arguments.length,Sa=new Array(hn),la=0;laOn(bn);case"month":return Bn(sn)>Bn(bn);case"week":return xa(sn)>xa(bn);default:return!bt(an,sn,bn)&&an.isAfter(sn,bn)}return!1},[Rt,Dt[1],bn,fe]),ia=ae.useCallback(function(sn){if(Dt[1]||Rt&&Rt(sn))return!0;if(Dt[0]&&un)return!bt(an,sn,bn)&&an.isAfter(un,sn);if(!fe&&un)switch(Ee){case"quarter":return On(sn)0&&arguments[0]!==void 0?arguments[0]:!1,Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ur=null;Ie&&Er&&Er[0]&&Er[1]&&sn.isAfter(Er[1],Er[0])&&(Ur=Er);var Io=ja;if(ja&&(0,xt.Z)(ja)==="object"&&ja.defaultValue){var Ci=ja.defaultValue;Io=(0,Ft.Z)((0,Ft.Z)({},ja),{},{defaultValue:Ra(Ci,Ze)||void 0})}return ae.createElement(ur.Provider,{value:{inRange:!0,panelPosition:Zo,rangedValue:Mo||to,hoverRangedValue:Ur}},ae.createElement(er,(0,re.Z)({},se,Cr,{cellRender:Vl,showTime:Io,mode:Tl[Ze],generateConfig:sn,style:void 0,direction:fl,disabledDate:Ze===0?Yt:Zn,disabledTime:function(kl){return Ao?Ao(kl,Ze===0?"start":"end"):!1},className:mt()((0,ct.Z)({},"".concat(Dt,"-panel-focused"),Ze===0?!Gl:!sl)),value:Ra(to,Ze),locale:Dn,tabIndex:-1,onPanelChange:function(kl,au){Ze===0&&Wr(!0),Ze===1&&Ol(!0),ue(br(Tl,au,Ze),br(to,kl,Ze));var lu=kl;Zo==="right"&&Tl[Ze]===au&&(lu=xe(lu,au,sn,-1)),eu(lu,Ze)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Ze===0?Ra(to,1):Ra(to,0)})))}var ro=0,ri=0;if(Ze&&Ql.current&&Bl.current&&yl.current&&$i.current){ro=Ql.current.offsetWidth+Bl.current.offsetWidth;var il=$i.current.offsetLeft>ro?$i.current.offsetLeft-ro:$i.current.offsetLeft,fi=yl.current.offsetWidth,ll=$i.current.offsetWidth;fi&&ll&&ro>fi-ll-(fl==="rtl"?0:il)&&(ri=ro)}var xl=fl==="rtl"?{right:ro}:{left:ro};function wl(){var Zo,Cr=qn(Dt,Tl[Ze],Ji),Ur=Ea({prefixCls:Dt,components:pu,needConfirmButton:Al,okDisabled:!Ra(to,Ze)||Do&&Do(to[Ze]),locale:Dn,onOk:function(){var Zl=Ra(to,Ze);Zl&&(la(to,Ze),ml==null||ml(to),vt(!1,Ze,"confirm"))}});if(Ja!=="time"&&!ja){var Io=cu(Ze),Ci=xe(Io,Ja,sn),Pu=Tl[Ze],kl=Pu===Ja,au=Cu(kl?"left":!1,{pickerValue:Io,onPickerValueChange:function(Zl){eu(Zl,Ze)}}),lu=Cu("right",{pickerValue:Ci,onPickerValueChange:function(Zl){eu(xe(Zl,Ja,sn,-1),Ze)}});fl==="rtl"?Zo=ae.createElement(ae.Fragment,null,lu,kl&&au):Zo=ae.createElement(ae.Fragment,null,au,kl&&lu)}else Zo=Cu();var bu=ae.createElement("div",{className:"".concat(Dt,"-panel-layout")},ae.createElement(ii,{prefixCls:Dt,presets:Fu,onClick:function(Zl){la(Zl,null),vt(!1,Ze,"preset")},onHover:function(Zl){gi(Zl)}}),ae.createElement("div",null,ae.createElement("div",{className:"".concat(Dt,"-panels")},Zo),(Cr||Ur)&&ae.createElement("div",{className:"".concat(Dt,"-footer")},Cr,Ur)));return ni&&(bu=ni(bu)),ae.createElement("div",{className:"".concat(Dt,"-panel-container"),style:{marginLeft:ri},ref:yl,onMouseDown:function(Zl){Zl.preventDefault()}},bu)}var nu=ae.createElement("div",{className:mt()("".concat(Dt,"-range-wrapper"),"".concat(Dt,"-").concat(Ja,"-range-wrapper")),style:{minWidth:ta}},ae.createElement("div",{ref:$i,className:"".concat(Dt,"-range-arrow"),style:xl}),wl()),Du;Wi&&(Du=ae.createElement("span",{className:"".concat(Dt,"-suffix"),onMouseDown:function(Cr){Cr.preventDefault()}},Wi));var Tu=Fo(Dt,Di,di),Bu=ae.createElement("span",{onMouseDown:function(Cr){Cr.preventDefault(),Cr.stopPropagation()},onMouseUp:function(Cr){Cr.preventDefault(),Cr.stopPropagation();var Ur=ai;Vi[0]||(Ur=br(Ur,null,0)),Vi[1]||(Ur=br(Ur,null,1)),la(Ur,null),vt(!1,Ze,"clear")},className:"".concat(Dt,"-clear"),role:"button"},Tu),Ru=Di&&(Ra(ai,0)&&!Vi[0]||Ra(ai,1)&&!Vi[1]),Au={size:Qn(Ja,El[0],sn)},Su=0,iu=0;Ql.current&&_l.current&&Bl.current&&(Ze===0?iu=Ql.current.offsetWidth:(Su=ro,iu=_l.current.offsetWidth));var Lu=fl==="rtl"?{right:Su}:{left:Su},ku=function(Cr,Ur){var Io=br(to,Cr,Ze);if(Ur==="submit"||Ur!=="key"&&!Al){la(Io,Ze),Ze===0?Wr():Ol();var Ci=Ze===0?1:0;Vi[Ci]?vt(!1,!1,"confirm"):vt(!1,Ze,"confirm")}else dr(Io)};return ae.createElement(Bt.Provider,{value:{operationRef:Xl,hideHeader:Ja==="time",onDateMouseEnter:Ri,onDateMouseLeave:Rl,hideRanges:!0,onSelect:ku,open:Ie}},ae.createElement(ga,{visible:Ie,popupElement:nu,popupStyle:xa,prefixCls:Dt,dropdownClassName:Bn,dropdownAlign:aa,getPopupContainer:ia,transitionName:On,range:!0,direction:fl},ae.createElement("div",(0,re.Z)({ref:Ti,className:mt()(Dt,"".concat(Dt,"-range"),bn,(fe={},(0,ct.Z)(fe,"".concat(Dt,"-disabled"),Vi[0]&&Vi[1]),(0,ct.Z)(fe,"".concat(Dt,"-focused"),Ze===0?bl:Sl),(0,ct.Z)(fe,"".concat(Dt,"-rtl"),fl==="rtl"),fe)),style:un,onClick:Ki,onMouseEnter:tl,onMouseLeave:zl,onMouseDown:yi,onMouseUp:Ai},(0,Sn.Z)(se,{aria:!0,data:!0})),ae.createElement("div",{className:mt()("".concat(Dt,"-input"),(Ee={},(0,ct.Z)(Ee,"".concat(Dt,"-input-active"),Ze===0),(0,ct.Z)(Ee,"".concat(Dt,"-input-placeholder"),!!Oo),Ee)),ref:Ql},ae.createElement("input",(0,re.Z)({id:an,disabled:Vi[0],readOnly:Ui||typeof El[0]=="function"||!Gl,value:Oo||_r,onChange:function(Cr){xr(Cr.target.value)},autoFocus:Va,placeholder:Ra(ca,0)||"",ref:Ll},vl,Au,{autoComplete:du}))),ae.createElement("div",{className:"".concat(Dt,"-range-separator"),ref:Bl},qr),ae.createElement("div",{className:mt()("".concat(Dt,"-input"),(Ve={},(0,ct.Z)(Ve,"".concat(Dt,"-input-active"),Ze===1),(0,ct.Z)(Ve,"".concat(Dt,"-input-placeholder"),!!rl),Ve)),ref:_l},ae.createElement("input",(0,re.Z)({disabled:Vi[1],readOnly:Ui||typeof El[0]=="function"||!sl,value:rl||xo,onChange:function(Cr){Si(Cr.target.value)},placeholder:Ra(ca,1)||"",ref:Wl},tu,Au,{autoComplete:du}))),ae.createElement("div",{className:"".concat(Dt,"-active-bar"),style:(0,Ft.Z)((0,Ft.Z)({},Lu),{},{width:iu,position:"absolute"})}),Du,Ru&&Bu)))}var Rn=function(se){(0,yt.Z)(Ee,se);var fe=(0,Lt.Z)(Ee);function Ee(){var Ve;(0,Vt.Z)(this,Ee);for(var Ye=arguments.length,Rt=new Array(Ye),Dt=0;Dt{const{lineHeight:Ye}=se,Rt=Math.floor(Ee*Ye)+2,Dt=Math.max((fe-Rt)/2,0),an=Math.max(fe-Rt-Dt,0);return{padding:`${Dt}px ${Ve}px ${an}px`}},Ca=se=>{const{componentCls:fe,pickerCellCls:Ee,pickerCellInnerCls:Ve,cellHeight:Ye,motionDurationSlow:Rt,borderRadiusSM:Dt,motionDurationMid:an,cellHoverBg:un,lineWidth:bn,lineType:xa,colorPrimary:Bn,cellActiveWithRangeBg:On,colorTextLightSolid:aa,controlHeightSM:ia,cellRangeBorderColor:sn,pickerCellBorderGap:Dn,cellHoverWithRangeBg:ca,cellWidth:Va,colorTextDisabled:_a,cellBgDisabled:Xa}=se;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ye,transform:"translateY(-50%)",transition:`all ${Rt}`,content:'""'},[Ve]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ye,height:Ye,lineHeight:`${Ye}px`,borderRadius:Dt,transition:`background ${an}, border ${an}`},"&-range-hover-start, &-range-hover-end":{[Ve]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${Ee}-in-view), &:hover:not(${Ee}-selected):not(${Ee}-range-start):not(${Ee}-range-end):not(${Ee}-range-hover-start):not(${Ee}-range-hover-end)`]:{[Ve]:{background:un}},[`&-in-view${Ee}-today ${Ve}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${bn}px ${xa} ${Bn}`,borderRadius:Dt,content:'""'}},[`&-in-view${Ee}-in-range`]:{position:"relative","&::before":{background:On}},[`&-in-view${Ee}-selected ${Ve}, &-in-view${Ee}-range-start ${Ve}, &-in-view${Ee}-range-end ${Ve}`]:{color:aa,background:Bn},[`&-in-view${Ee}-range-start:not(${Ee}-range-start-single), &-in-view${Ee}-range-end:not(${Ee}-range-end-single)`]:{"&::before":{background:On}},[`&-in-view${Ee}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${Ee}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${Ee}-range-hover-start:not(${Ee}-in-range):not(${Ee}-range-start):not(${Ee}-range-end), &-in-view${Ee}-range-hover-end:not(${Ee}-in-range):not(${Ee}-range-start):not(${Ee}-range-end), &-in-view${Ee}-range-hover-start${Ee}-range-start-single, &-in-view${Ee}-range-hover-start${Ee}-range-start${Ee}-range-end${Ee}-range-end-near-hover, &-in-view${Ee}-range-hover-end${Ee}-range-start${Ee}-range-end${Ee}-range-start-near-hover, &-in-view${Ee}-range-hover-end${Ee}-range-end-single, &-in-view${Ee}-range-hover:not(${Ee}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:ia,borderTop:`${bn}px dashed ${sn}`,borderBottom:`${bn}px dashed ${sn}`,transform:"translateY(-50%)",transition:`all ${Rt}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:Dn},[`&-in-view${Ee}-in-range${Ee}-range-hover::before, &-in-view${Ee}-in-range${Ee}-range-hover-start::before, &-in-view${Ee}-in-range${Ee}-range-hover-end::before, &-in-view${Ee}-range-start${Ee}-range-hover::before, &-in-view${Ee}-range-end${Ee}-range-hover::before, &-in-view${Ee}-range-start:not(${Ee}-range-start-single)${Ee}-range-hover-start::before, &-in-view${Ee}-range-end:not(${Ee}-range-end-single)${Ee}-range-hover-end::before, ${fe}-panel > :not(${fe}-date-panel) &-in-view${Ee}-in-range${Ee}-range-hover-start::before, ${fe}-panel > :not(${fe}-date-panel) &-in-view${Ee}-in-range${Ee}-range-hover-end::before`]:{background:ca},[`&-in-view${Ee}-range-start:not(${Ee}-range-start-single):not(${Ee}-range-end) ${Ve}`]:{borderStartStartRadius:Dt,borderEndStartRadius:Dt,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${Ee}-range-end:not(${Ee}-range-end-single):not(${Ee}-range-start) ${Ve}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Dt,borderEndEndRadius:Dt},[`&-range-hover${Ee}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${Ee}-range-hover:first-child::after, tr > &-in-view${Ee}-range-hover-end:first-child::after, &-in-view${Ee}-start${Ee}-range-hover-edge-start${Ee}-range-hover-edge-start-near-range::after, &-in-view${Ee}-range-hover-edge-start:not(${Ee}-range-hover-edge-start-near-range)::after, &-in-view${Ee}-range-hover-start::after`]:{insetInlineStart:(Va-Ye)/2,borderInlineStart:`${bn}px dashed ${sn}`,borderStartStartRadius:Dt,borderEndStartRadius:Dt},[`tr > &-in-view${Ee}-range-hover:last-child::after, tr > &-in-view${Ee}-range-hover-start:last-child::after, &-in-view${Ee}-end${Ee}-range-hover-edge-end${Ee}-range-hover-edge-end-near-range::after, &-in-view${Ee}-range-hover-edge-end:not(${Ee}-range-hover-edge-end-near-range)::after, &-in-view${Ee}-range-hover-end::after`]:{insetInlineEnd:(Va-Ye)/2,borderInlineEnd:`${bn}px dashed ${sn}`,borderStartEndRadius:Dt,borderEndEndRadius:Dt},"&-disabled":{color:_a,pointerEvents:"none",[Ve]:{background:"transparent"},"&::before":{background:Xa}},[`&-disabled${Ee}-today ${Ve}::before`]:{borderColor:_a}}},ln=se=>{const{componentCls:fe,pickerCellCls:Ee,pickerCellInnerCls:Ve,pickerYearMonthCellWidth:Ye,pickerControlIconSize:Rt,cellWidth:Dt,paddingSM:an,paddingXS:un,paddingXXS:bn,colorBgContainer:xa,lineWidth:Bn,lineType:On,borderRadiusLG:aa,colorPrimary:ia,colorTextHeading:sn,colorSplit:Dn,pickerControlIconBorderWidth:ca,colorIcon:Va,textHeight:_a,motionDurationMid:Xa,colorIconHover:tr,fontWeightStrong:Ja,cellHeight:ja,pickerCellPaddingVertical:co,colorTextDisabled:kr,colorText:qr,fontSize:bo,cellHoverWithRangeBg:_o,motionDurationSlow:$o,withoutTimeCellHeight:vi,pickerQuarterPanelContentHeight:Ho,colorLink:Do,colorLinkActive:Ao,colorLinkHover:Yo,cellRangeBorderColor:ti,borderRadiusSM:ko,colorTextLightSolid:ni,cellHoverBg:Mi,timeColumnHeight:Ei,timeColumnWidth:Xi,timeCellHeight:Di,controlItemBgActive:Wi,marginXXS:di,pickerDatePanelPaddingHorizontal:Bi}=se,Ui=Dt*7+Bi*2,el=(Ui-un*2)/3-Ye-an,Ji=(Ui-un*2)/4-Ye;return{[fe]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:xa,border:`${Bn}px ${On} ${Dn}`,borderRadius:aa,outline:"none","&-focused":{borderColor:ia},"&-rtl":{direction:"rtl",[`${fe}-prev-icon, ${fe}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${fe}-next-icon, ${fe}-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:Ui},"&-header":{display:"flex",padding:`0 ${un}px`,color:sn,borderBottom:`${Bn}px ${On} ${Dn}`,"> *":{flex:"none"},button:{padding:0,color:Va,lineHeight:`${_a}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Xa}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:bo,"&:hover":{color:tr}},"&-view":{flex:"auto",fontWeight:Ja,lineHeight:`${_a}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:un},"&:hover":{color:ia}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:Rt,height:Rt,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:Rt,height:Rt,border:"0 solid currentcolor",borderBlockStartWidth:ca,borderBlockEndWidth:0,borderInlineStartWidth:ca,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(Rt/2),insetInlineStart:Math.ceil(Rt/2),display:"inline-block",width:Rt,height:Rt,border:"0 solid currentcolor",borderBlockStartWidth:ca,borderBlockEndWidth:0,borderInlineStartWidth:ca,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+co*2,color:qr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${co}px 0`,color:kr,cursor:"pointer","&-in-view":{color:qr}},Ca(se)),[`&-date-panel ${fe}-cell-in-view${fe}-cell-in-range${fe}-cell-range-hover-start ${Ve}, &-date-panel ${fe}-cell-in-view${fe}-cell-in-range${fe}-cell-range-hover-end ${Ve}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:_o,transition:`all ${$o}`,content:'""'}},[`&-date-panel ${fe}-cell-in-view${fe}-cell-in-range${fe}-cell-range-hover-start ${Ve}::after`]:{insetInlineEnd:-(Dt-ja)/2,insetInlineStart:0},[`&-date-panel ${fe}-cell-in-view${fe}-cell-in-range${fe}-cell-range-hover-end ${Ve}::after`]:{insetInlineEnd:0,insetInlineStart:-(Dt-ja)/2},[`&-range-hover${fe}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${fe}-content`]:{height:vi*4},[Ve]:{padding:`0 ${un}px`}},"&-quarter-panel":{[`${fe}-content`]:{height:Ho},[`${fe}-cell-range-hover-start::after`]:{insetInlineStart:Ji,borderInlineStart:`${Bn}px dashed ${ti}`,[`${fe}-panel-rtl &`]:{insetInlineEnd:Ji,borderInlineEnd:`${Bn}px dashed ${ti}`}},[`${fe}-cell-range-hover-end::after`]:{insetInlineEnd:Ji,borderInlineEnd:`${Bn}px dashed ${ti}`,[`${fe}-panel-rtl &`]:{insetInlineStart:Ji,borderInlineStart:`${Bn}px dashed ${ti}`}}},[`&-panel ${fe}-footer`]:{borderTop:`${Bn}px ${On} ${Dn}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${_a-2*Bn}px`,textAlign:"center","&-extra":{padding:`0 ${an}px`,lineHeight:`${_a-2*Bn}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Bn}px ${On} ${Dn}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:Do,"&:hover":{color:Yo},"&:active":{color:Ao},[`&${fe}-today-btn-disabled`]:{color:kr,cursor:"not-allowed"}},"&-decade-panel":{[Ve]:{padding:`0 ${un/2}px`},[`${fe}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${fe}-body`]:{padding:`0 ${un}px`},[Ve]:{width:Ye},[`${fe}-cell-range-hover-start::after`]:{borderStartStartRadius:ko,borderEndStartRadius:ko,borderStartEndRadius:0,borderEndEndRadius:0,[`${fe}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ko,borderEndEndRadius:ko}},[`${fe}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:ko,borderEndEndRadius:ko,[`${fe}-panel-rtl &`]:{borderStartStartRadius:ko,borderEndStartRadius:ko,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${fe}-cell-range-hover-start::after`]:{insetInlineStart:el,borderInlineStart:`${Bn}px dashed ${ti}`,[`${fe}-panel-rtl &`]:{insetInlineEnd:el,borderInlineEnd:`${Bn}px dashed ${ti}`}},[`${fe}-cell-range-hover-end::after`]:{insetInlineEnd:el,borderInlineEnd:`${Bn}px dashed ${ti}`,[`${fe}-panel-rtl &`]:{insetInlineStart:el,borderInlineStart:`${Bn}px dashed ${ti}`}}},"&-week-panel":{[`${fe}-body`]:{padding:`${un}px ${an}px`},[`${fe}-cell`]:{[`&:hover ${Ve}, &-selected ${Ve}, ${Ve}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Xa}`},"&:first-child:before":{borderStartStartRadius:ko,borderEndStartRadius:ko},"&:last-child:before":{borderStartEndRadius:ko,borderEndEndRadius:ko}},"&:hover td":{"&:before":{background:Mi}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${Ee}`]:{"&:before":{background:ia},[`&${fe}-cell-week`]:{color:new sr.C(ni).setAlpha(.5).toHexString()},[Ve]:{color:ni}}},"&-range-hover td:before":{background:Wi}}},"&-date-panel":{[`${fe}-body`]:{padding:`${un}px ${Bi}px`},[`${fe}-content`]:{width:Dt*7,th:{width:Dt,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${fe}-time-panel`]:{borderInlineStart:`${Bn}px ${On} ${Dn}`},[`${fe}-date-panel, ${fe}-time-panel`]:{transition:`opacity ${$o}`},"&-active":{[`${fe}-date-panel, ${fe}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${fe}-content`]:{display:"flex",flex:"auto",height:Ei},"&-column":{flex:"1 0 auto",width:Xi,margin:`${bn}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Xa}`,overflowX:"hidden","&::after":{display:"block",height:Ei-Di,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Bn}px ${On} ${Dn}`},"&-active":{background:new sr.C(Wi).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${fe}-time-panel-cell`]:{marginInline:di,[`${fe}-time-panel-cell-inner`]:{display:"block",width:Xi-2*di,height:Di,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Xi-Di)/2,color:qr,lineHeight:`${Di}px`,borderRadius:ko,cursor:"pointer",transition:`background ${Xa}`,"&:hover":{background:Mi}},"&-selected":{[`${fe}-time-panel-cell-inner`]:{background:Wi}},"&-disabled":{[`${fe}-time-panel-cell-inner`]:{color:kr,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${fe}-time-panel-column:after`]:{height:Ei-Di+bn*2}}}},ma=se=>{const{componentCls:fe,colorBgContainer:Ee,colorError:Ve,errorActiveShadow:Ye,colorWarning:Rt,warningActiveShadow:Dt}=se;return{[`${fe}:not(${fe}-disabled)`]:{[`&${fe}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:Ee,borderColor:Ve},[`&${fe}-focused, &:focus`]:Object.assign({},(0,Vn.M1)((0,Oi.TS)(se,{activeBorderColor:Ve,activeShadow:Ye}))),[`${fe}-active-bar`]:{background:Ve}},[`&${fe}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:Ee,borderColor:Rt},[`&${fe}-focused, &:focus`]:Object.assign({},(0,Vn.M1)((0,Oi.TS)(se,{activeBorderColor:Rt,activeShadow:Dt}))),[`${fe}-active-bar`]:{background:Rt}}}}},Fn=se=>{const{componentCls:fe,antCls:Ee,controlHeight:Ve,fontSize:Ye,paddingInline:Rt,colorBgContainer:Dt,lineWidth:an,lineType:un,colorBorder:bn,borderRadius:xa,motionDurationMid:Bn,colorBgContainerDisabled:On,colorTextDisabled:aa,colorTextPlaceholder:ia,controlHeightLG:sn,fontSizeLG:Dn,controlHeightSM:ca,paddingInlineSM:Va,paddingXS:_a,marginXS:Xa,colorTextDescription:tr,lineWidthBold:Ja,lineHeight:ja,colorPrimary:co,motionDurationSlow:kr,zIndexPopup:qr,paddingXXS:bo,paddingSM:_o,textHeight:$o,cellActiveWithRangeBg:vi,colorPrimaryBorder:Ho,sizePopupArrow:Do,borderRadiusXS:Ao,borderRadiusOuter:Yo,colorBgElevated:ti,borderRadiusLG:ko,boxShadowSecondary:ni,borderRadiusSM:Mi,colorSplit:Ei,cellHoverBg:Xi,presetsWidth:Di,presetsMaxWidth:Wi,boxShadowPopoverArrow:di,colorTextQuaternary:Bi}=se;return[{[fe]:Object.assign(Object.assign(Object.assign({},(0,Ir.Wf)(se)),pr(se,Ve,Ye,Rt)),{position:"relative",display:"inline-flex",alignItems:"center",background:Dt,lineHeight:1,border:`${an}px ${un} ${bn}`,borderRadius:xa,transition:`border ${Bn}, box-shadow ${Bn}`,"&:hover, &-focused":Object.assign({},(0,Vn.pU)(se)),"&-focused":Object.assign({},(0,Vn.M1)(se)),[`&${fe}-disabled`]:{background:On,borderColor:bn,cursor:"not-allowed",[`${fe}-suffix`]:{color:Bi}},[`&${fe}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${fe}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Vn.ik)(se)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${fe}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:ia}}},"&-large":Object.assign(Object.assign({},pr(se,sn,Dn,Rt)),{[`${fe}-input > input`]:{fontSize:Dn}}),"&-small":Object.assign({},pr(se,ca,Ye,Va)),[`${fe}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:_a/2,color:aa,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Xa}}},[`${fe}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:aa,lineHeight:1,background:Dt,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Bn}, color ${Bn}`,"> *":{verticalAlign:"top"},"&:hover":{color:tr}},[`${fe}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Dn,color:aa,fontSize:Dn,verticalAlign:"top",cursor:"default",[`${fe}-focused &`]:{color:tr},[`${fe}-range-separator &`]:{[`${fe}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${fe}-clear`]:{insetInlineEnd:Rt},"&:hover":{[`${fe}-clear`]:{opacity:1}},[`${fe}-active-bar`]:{bottom:-an,height:Ja,marginInlineStart:Rt,background:co,opacity:0,transition:`all ${kr} ease-out`,pointerEvents:"none"},[`&${fe}-focused`]:{[`${fe}-active-bar`]:{opacity:1}},[`${fe}-range-separator`]:{alignItems:"center",padding:`0 ${_a}px`,lineHeight:1},[`&${fe}-small`]:{[`${fe}-clear`]:{insetInlineEnd:Va},[`${fe}-active-bar`]:{marginInlineStart:Va}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Ir.Wf)(se)),ln(se)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:qr,[`&${fe}-dropdown-hidden`]:{display:"none"},[`&${fe}-dropdown-placement-bottomLeft`]:{[`${fe}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${fe}-dropdown-placement-topLeft`]:{[`${fe}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${Ee}-slide-up-enter${Ee}-slide-up-enter-active${fe}-dropdown-placement-topLeft, &${Ee}-slide-up-enter${Ee}-slide-up-enter-active${fe}-dropdown-placement-topRight, &${Ee}-slide-up-appear${Ee}-slide-up-appear-active${fe}-dropdown-placement-topLeft, &${Ee}-slide-up-appear${Ee}-slide-up-appear-active${fe}-dropdown-placement-topRight`]:{animationName:ya.Qt},[`&${Ee}-slide-up-enter${Ee}-slide-up-enter-active${fe}-dropdown-placement-bottomLeft, &${Ee}-slide-up-enter${Ee}-slide-up-enter-active${fe}-dropdown-placement-bottomRight, &${Ee}-slide-up-appear${Ee}-slide-up-appear-active${fe}-dropdown-placement-bottomLeft, &${Ee}-slide-up-appear${Ee}-slide-up-appear-active${fe}-dropdown-placement-bottomRight`]:{animationName:ya.fJ},[`&${Ee}-slide-up-leave${Ee}-slide-up-leave-active${fe}-dropdown-placement-topLeft, &${Ee}-slide-up-leave${Ee}-slide-up-leave-active${fe}-dropdown-placement-topRight`]:{animationName:ya.ly},[`&${Ee}-slide-up-leave${Ee}-slide-up-leave-active${fe}-dropdown-placement-bottomLeft, &${Ee}-slide-up-leave${Ee}-slide-up-leave-active${fe}-dropdown-placement-bottomRight`]:{animationName:ya.Uw},[`${fe}-panel > ${fe}-time-panel`]:{paddingTop:bo},[`${fe}-ranges`]:{marginBottom:0,padding:`${bo}px ${_o}px`,overflow:"hidden",lineHeight:`${$o-2*an-_a/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${fe}-preset > ${Ee}-tag-blue`]:{color:co,background:vi,borderColor:Ho,cursor:"pointer"},[`${fe}-ok`]:{marginInlineStart:"auto"}},[`${fe}-range-wrapper`]:{display:"flex",position:"relative"},[`${fe}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:Rt*1.5,transition:`left ${kr} ease-out`},(0,oi.r)(Do,Ao,Yo,ti,di)),[`${fe}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:ti,borderRadius:ko,boxShadow:ni,transition:`margin ${kr}`,[`${fe}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${fe}-presets`]:{display:"flex",flexDirection:"column",minWidth:Di,maxWidth:Wi,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:_a,borderInlineEnd:`${an}px ${un} ${Ei}`,li:Object.assign(Object.assign({},Ir.vS),{borderRadius:Mi,paddingInline:_a,paddingBlock:(ca-Math.round(Ye*ja))/2,cursor:"pointer",transition:`all ${kr}`,"+ li":{marginTop:Xa},"&:hover":{background:Xi}})}},[`${fe}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${fe}-panel`]:{borderWidth:`0 0 ${an}px`},"&:last-child":{[`${fe}-panel`]:{borderWidth:0}}},[`${fe}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${fe}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:bn}}}}),"&-dropdown-range":{padding:`${Do*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${fe}-separator`]:{transform:"rotate(180deg)"},[`${fe}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,ya.oN)(se,"slide-up"),(0,ya.oN)(se,"slide-down"),(0,Yr.Fm)(se,"move-up"),(0,Yr.Fm)(se,"move-down")]},$r=se=>{const{componentCls:fe,controlHeightLG:Ee,paddingXXS:Ve,padding:Ye}=se;return{pickerCellCls:`${fe}-cell`,pickerCellInnerCls:`${fe}-cell-inner`,pickerYearMonthCellWidth:Ee*1.5,pickerQuarterPanelContentHeight:Ee*1.4,pickerCellPaddingVertical:Ve+Ve/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Ye+Ve/2}},wr=se=>({cellHoverBg:se.controlItemBgHover,cellActiveWithRangeBg:se.controlItemBgActive,cellHoverWithRangeBg:new sr.C(se.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new sr.C(se.colorPrimary).lighten(20).toHexString(),cellBgDisabled:se.colorBgContainerDisabled,timeColumnWidth:se.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:se.controlHeightSM*1.5,cellHeight:se.controlHeightSM,textHeight:se.controlHeightLG,withoutTimeCellHeight:se.controlHeightLG*1.65});var Lr=(0,Jn.Z)("DatePicker",se=>{const fe=(0,Oi.TS)((0,Vn.e5)(se),$r(se));return[Fn(fe),ma(fe),(0,ka.c)(se,{focusElCls:`${se.componentCls}-focused`})]},se=>Object.assign(Object.assign(Object.assign({},(0,Vn.TM)(se)),wr(se)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:se.zIndexPopupBase+50}));function so(se,fe,Ee){return Ee!==void 0?Ee:fe==="year"&&se.lang.yearPlaceholder?se.lang.yearPlaceholder:fe==="quarter"&&se.lang.quarterPlaceholder?se.lang.quarterPlaceholder:fe==="month"&&se.lang.monthPlaceholder?se.lang.monthPlaceholder:fe==="week"&&se.lang.weekPlaceholder?se.lang.weekPlaceholder:fe==="time"&&se.timePickerLocale.placeholder?se.timePickerLocale.placeholder:se.lang.placeholder}function Fr(se,fe,Ee){return Ee!==void 0?Ee:fe==="year"&&se.lang.yearPlaceholder?se.lang.rangeYearPlaceholder:fe==="quarter"&&se.lang.quarterPlaceholder?se.lang.rangeQuarterPlaceholder:fe==="month"&&se.lang.monthPlaceholder?se.lang.rangeMonthPlaceholder:fe==="week"&&se.lang.weekPlaceholder?se.lang.rangeWeekPlaceholder:fe==="time"&&se.timePickerLocale.placeholder?se.timePickerLocale.rangePlaceholder:se.lang.rangePlaceholder}function po(se,fe){const Ee={adjustX:1,adjustY:1};switch(fe){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:Ee};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:Ee};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:Ee};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:Ee};default:return{points:se==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:Ee}}}function lr(se){return se?Array.isArray(se)?se:[se]:[]}function Nr(se){const{format:fe,picker:Ee,showHour:Ve,showMinute:Ye,showSecond:Rt,use12Hours:Dt}=se,an=lr(fe)[0],un=Object.assign({},se);return fe&&Array.isArray(fe)&&(un.format=an),an&&typeof an=="string"&&(!an.includes("s")&&Rt===void 0&&(un.showSecond=!1),!an.includes("m")&&Ye===void 0&&(un.showMinute=!1),!an.includes("H")&&!an.includes("h")&&!an.includes("K")&&!an.includes("k")&&Ve===void 0&&(un.showHour=!1),(an.includes("a")||an.includes("A"))&&Dt===void 0&&(un.use12Hours=!0)),Ee==="time"?un:(typeof an=="function"&&delete un.format,{showTime:un})}function yo(se,fe,Ee){if(se===!1)return!1;const Ve={clearIcon:fe!=null?fe:Ee};return typeof se=="object"?Object.assign(Object.assign({},Ve),se):Ve}var Uo=ee(71577);function Nn(se){return ae.createElement(Uo.ZP,Object.assign({size:"small",type:"primary"},se))}var rr={button:Nn},na=function(se,fe){var Ee={};for(var Ve in se)Object.prototype.hasOwnProperty.call(se,Ve)&&fe.indexOf(Ve)<0&&(Ee[Ve]=se[Ve]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ve=Object.getOwnPropertySymbols(se);Ye{const{prefixCls:Ye,getPopupContainer:Rt,className:Dt,placement:an,size:un,disabled:bn,bordered:xa=!0,placeholder:Bn,popupClassName:On,dropdownClassName:aa,status:ia,clearIcon:sn,allowClear:Dn,rootClassName:ca}=Ee,Va=na(Ee,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),_a=ae.useRef(null),{getPrefixCls:Xa,direction:tr,getPopupContainer:Ja}=(0,ae.useContext)(Pa.E_),ja=Xa("picker",Ye),{compactSize:co,compactItemClassnames:kr}=(0,Po.ri)(ja,tr),{format:qr,showTime:bo,picker:_o}=Ee,$o=Xa(),[vi,Ho]=Lr(ja),Do=Object.assign(Object.assign({},bo?Nr(Object.assign({format:qr,picker:_o},bo)):{}),_o==="time"?Nr(Object.assign(Object.assign({format:qr},Ee),{picker:_o})):{}),Ao=(0,Wa.Z)(di=>{var Bi;return(Bi=un!=null?un:co)!==null&&Bi!==void 0?Bi:di}),Yo=ae.useContext(Gr.Z),ti=bn!=null?bn:Yo,ko=(0,ae.useContext)(Ko.aM),{hasFeedback:ni,status:Mi,feedbackIcon:Ei}=ko,Xi=ae.createElement(ae.Fragment,null,_o==="time"?ae.createElement(Qe,null):ae.createElement(be,null),ni&&Ei);(0,ae.useImperativeHandle)(Ve,()=>({focus:()=>{var di;return(di=_a.current)===null||di===void 0?void 0:di.focus()},blur:()=>{var di;return(di=_a.current)===null||di===void 0?void 0:di.blur()}}));const[Di]=(0,uo.Z)("Calendar",cr.Z),Wi=Object.assign(Object.assign({},Di),Ee.locale);return vi(ae.createElement(Qa,Object.assign({separator:ae.createElement("span",{"aria-label":"to",className:`${ja}-separator`},ae.createElement(qe,null)),disabled:ti,ref:_a,dropdownAlign:po(tr,an),placeholder:Fr(Wi,_o,Bn),suffixIcon:Xi,prevIcon:ae.createElement("span",{className:`${ja}-prev-icon`}),nextIcon:ae.createElement("span",{className:`${ja}-next-icon`}),superPrevIcon:ae.createElement("span",{className:`${ja}-super-prev-icon`}),superNextIcon:ae.createElement("span",{className:`${ja}-super-next-icon`}),transitionName:`${$o}-slide-up`},Va,Do,{className:mt()({[`${ja}-${Ao}`]:Ao,[`${ja}-borderless`]:!xa},(0,ba.Z)(ja,(0,ba.F)(Mi,ia),ni),Ho,kr,Dt,ca),locale:Wi.lang,prefixCls:ja,getPopupContainer:Rt||Ja,generateConfig:se,components:rr,direction:tr,dropdownClassName:mt()(Ho,On||aa,ca),allowClear:yo(Dn,sn,ae.createElement(Le.Z,null))})))})}var Kr=function(se,fe){var Ee={};for(var Ve in se)Object.prototype.hasOwnProperty.call(se,Ve)&&fe.indexOf(Ve)<0&&(Ee[Ve]=se[Ve]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ve=Object.getOwnPropertySymbols(se);Ye{const{prefixCls:ia,getPopupContainer:sn,style:Dn,className:ca,rootClassName:Va,size:_a,bordered:Xa=!0,placement:tr,placeholder:Ja,popupClassName:ja,dropdownClassName:co,disabled:kr,status:qr,clearIcon:bo,allowClear:_o}=On,$o=Kr(On,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:vi,direction:Ho,getPopupContainer:Do,[xa]:Ao}=(0,ae.useContext)(Pa.E_),Yo=vi("picker",ia),{compactSize:ti,compactItemClassnames:ko}=(0,Po.ri)(Yo,Ho),ni=ae.useRef(null),{format:Mi,showTime:Ei}=On,[Xi,Di]=Lr(Yo);(0,ae.useImperativeHandle)(aa,()=>({focus:()=>{var tl;return(tl=ni.current)===null||tl===void 0?void 0:tl.focus()},blur:()=>{var tl;return(tl=ni.current)===null||tl===void 0?void 0:tl.blur()}}));const Wi={showToday:!0};let di={};un&&(di.picker=un);const Bi=un||On.picker;di=Object.assign(Object.assign(Object.assign({},di),Ei?Nr(Object.assign({format:Mi,picker:Bi},Ei)):{}),Bi==="time"?Nr(Object.assign(Object.assign({format:Mi},On),{picker:Bi})):{});const Ui=vi(),el=(0,Wa.Z)(tl=>{var zl;return(zl=_a!=null?_a:ti)!==null&&zl!==void 0?zl:tl}),Ji=ae.useContext(Gr.Z),gl=kr!=null?kr:Ji,Fl=(0,ae.useContext)(Ko.aM),{hasFeedback:Eo,status:Ii,feedbackIcon:ci}=Fl,ji=ae.createElement(ae.Fragment,null,Bi==="time"?ae.createElement(Qe,null):ae.createElement(be,null),Eo&&ci),[al]=(0,uo.Z)("DatePicker",cr.Z),Ai=Object.assign(Object.assign({},al),On.locale);return Xi(ae.createElement(En,Object.assign({ref:ni,placeholder:so(Ai,Bi,Ja),suffixIcon:ji,dropdownAlign:po(Ho,tr),prevIcon:ae.createElement("span",{className:`${Yo}-prev-icon`}),nextIcon:ae.createElement("span",{className:`${Yo}-next-icon`}),superPrevIcon:ae.createElement("span",{className:`${Yo}-super-prev-icon`}),superNextIcon:ae.createElement("span",{className:`${Yo}-super-next-icon`}),transitionName:`${Ui}-slide-up`},Wi,$o,di,{locale:Ai.lang,className:mt()({[`${Yo}-${el}`]:el,[`${Yo}-borderless`]:!Xa},(0,ba.Z)(Yo,(0,ba.F)(Ii,qr),Eo),Di,ko,Ao==null?void 0:Ao.className,ca,Va),style:Object.assign(Object.assign({},Ao==null?void 0:Ao.style),Dn),prefixCls:Yo,getPopupContainer:sn||Do,generateConfig:se,components:rr,direction:Ho,disabled:gl,dropdownClassName:mt()(Di,Va,ja||co),allowClear:yo(_o,bo,ae.createElement(Le.Z,null))})))});return bn&&(Bn.displayName=bn),Bn}const Ee=fe(),Ve=fe("week","WeekPicker"),Ye=fe("month","MonthPicker"),Rt=fe("year","YearPicker"),Dt=fe("time","TimePicker"),an=fe("quarter","QuarterPicker");return{DatePicker:Ee,WeekPicker:Ve,MonthPicker:Ye,YearPicker:Rt,TimePicker:Dt,QuarterPicker:an}}const No=null;function hi(se){const{DatePicker:fe,WeekPicker:Ee,MonthPicker:Ve,YearPicker:Ye,TimePicker:Rt,QuarterPicker:Dt}=Tr(se),an=Ua(se),un=fe;return un.WeekPicker=Ee,un.MonthPicker=Ve,un.YearPicker=Ye,un.RangePicker=an,un.TimePicker=Rt,un.QuarterPicker=Dt,un}var _i=hi;const qi=_i(te);function Pl(se){const fe=po(se.direction,se.placement);return fe.overflow.adjustY=!1,fe.overflow.adjustX=!1,Object.assign(Object.assign({},se),{dropdownAlign:fe})}const xu=(0,ne.Z)(qi,"picker",null,Pl);qi._InternalPanelDoNotUseOrYouWillBeFired=xu;const Iu=(0,ne.Z)(qi.RangePicker,"picker",null,Pl);qi._InternalRangePanelDoNotUseOrYouWillBeFired=Iu,qi.generatePicker=_i;var $u=qi},96074:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return Be}});var x=ee(94184),de=ee.n(x),pe=ee(67294),De=ee(53124),we=ee(14747),ke=ee(67968),ie=ee(45503);const We=me=>{const{componentCls:oe,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:b,textPaddingInline:E,orientationMargin:z,verticalMarginInline:te}=me;return{[oe]:Object.assign(Object.assign({},(0,we.Wf)(me)),{borderBlockStart:`${b}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:te,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${b}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${me.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${oe}-with-text`]:{display:"flex",alignItems:"center",margin:`${me.dividerHorizontalWithTextGutterMargin}px 0`,color:me.colorTextHeading,fontWeight:500,fontSize:me.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${b}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${oe}-with-text-left`]:{"&::before":{width:`${z*100}%`},"&::after":{width:`${100-z*100}%`}},[`&-horizontal${oe}-with-text-right`]:{"&::before":{width:`${100-z*100}%`},"&::after":{width:`${z*100}%`}},[`${oe}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:E},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${b}px 0 0`},[`&-horizontal${oe}-with-text${oe}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${oe}-dashed`]:{borderInlineStartWidth:b,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${oe}-with-text`]:{color:me.colorText,fontWeight:"normal",fontSize:me.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 Me=(0,ke.Z)("Divider",me=>{const oe=(0,ie.TS)(me,{dividerHorizontalWithTextGutterMargin:me.margin,dividerHorizontalGutterMargin:me.marginLG,sizePaddingEdgeHorizontal:0});return[We(oe)]},me=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:me.marginXS})),Te=function(me,oe){var a={};for(var y in me)Object.prototype.hasOwnProperty.call(me,y)&&oe.indexOf(y)<0&&(a[y]=me[y]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,y=Object.getOwnPropertySymbols(me);b{const{getPrefixCls:oe,direction:a,divider:y}=pe.useContext(De.E_),{prefixCls:b,type:E="horizontal",orientation:z="center",orientationMargin:te,className:ne,rootClassName:re,children:ae,dashed:le,plain:he,style:ve}=me,Ce=Te(me,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),be=oe("divider",b),[ye,Ae]=Me(be),Ne=z.length>0?`-${z}`:z,Qe=!!ae,Le=z==="left"&&te!=null,Ge=z==="right"&&te!=null,He=de()(be,y==null?void 0:y.className,Ae,`${be}-${E}`,{[`${be}-with-text`]:Qe,[`${be}-with-text${Ne}`]:Qe,[`${be}-dashed`]:!!le,[`${be}-plain`]:!!he,[`${be}-rtl`]:a==="rtl",[`${be}-no-default-orientation-margin-left`]:Le,[`${be}-no-default-orientation-margin-right`]:Ge},ne,re),Ke=pe.useMemo(()=>typeof te=="number"?te:/^\d+$/.test(te)?Number(te):te,[te]),qe=Object.assign(Object.assign({},Le&&{marginLeft:Ke}),Ge&&{marginRight:Ke});return ye(pe.createElement("div",Object.assign({className:He,style:Object.assign(Object.assign({},y==null?void 0:y.style),ve)},Ce,{role:"separator"}),ae&&E!=="vertical"&&pe.createElement("span",{className:`${be}-inner-text`,style:qe},ae)))}},35874:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return dt}});var x=ee(67294),de=ee(91034),pe=ee(94184),De=ee.n(pe),we=ee(87462),ke=ee(4942),ie=ee(97685),We=ee(45987),Me=ee(62709),Te=ee(71002),ze=ee(12060);function Be(At,Et,gt){var Qt=React.useRef({});return(!("value"in Qt.current)||gt(Qt.current.condition,Et))&&(Qt.current.value=At(),Qt.current.condition=Et),Qt.current.value}function me(At,Et){typeof At=="function"?At(Et):(0,Te.Z)(At)==="object"&&At&&"current"in At&&(At.current=Et)}function oe(){for(var At=arguments.length,Et=new Array(At),gt=0;gt=b.F1&><=b.F12)return!1;switch(gt){case b.ALT:case b.CAPS_LOCK:case b.CONTEXT_MENU:case b.CTRL:case b.DOWN:case b.END:case b.ESC:case b.HOME:case b.INSERT:case b.LEFT:case b.MAC_FF_META:case b.META:case b.NUMLOCK:case b.NUM_CENTER:case b.PAGE_DOWN:case b.PAGE_UP:case b.PAUSE:case b.PRINT_SCREEN:case b.RIGHT:case b.SHIFT:case b.UP:case b.WIN_KEY:case b.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Et){if(Et>=b.ZERO&&Et<=b.NINE||Et>=b.NUM_ZERO&&Et<=b.NUM_MULTIPLY||Et>=b.A&&Et<=b.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Et===0)return!0;switch(Et){case b.SPACE:case b.QUESTION_MARK:case b.NUM_PLUS:case b.NUM_MINUS:case b.NUM_PERIOD:case b.NUM_DIVISION:case b.SEMICOLON:case b.DASH:case b.EQUALS:case b.COMMA:case b.PERIOD:case b.SLASH:case b.APOSTROPHE:case b.SINGLE_QUOTE:case b.OPEN_SQUARE_BRACKET:case b.BACKSLASH:case b.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},E=b,z=function(Et){return+setTimeout(Et,16)},te=function(Et){return clearTimeout(Et)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(z=function(Et){return window.requestAnimationFrame(Et)},te=function(Et){return window.cancelAnimationFrame(Et)});var ne=0,re=new Map;function ae(At){re.delete(At)}var le=function(Et){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ne+=1;var Qt=ne;function Ot(bt){if(bt===0)ae(Qt),Et();else{var rn=z(function(){Ot(bt-1)});re.set(Qt,rn)}}return Ot(gt),Qt};le.cancel=function(At){var Et=re.get(At);return ae(Et),te(Et)};var he=le,ve=E.ESC,Ce=E.TAB;function be(At){var Et=At.visible,gt=At.triggerRef,Qt=At.onVisibleChange,Ot=At.autoFocus,bt=At.overlayRef,rn=x.useRef(!1),Xt=function(){if(Et){var xe,je;(xe=gt.current)===null||xe===void 0||(je=xe.focus)===null||je===void 0||je.call(xe),Qt==null||Qt(!1)}},$e=function(){var xe;return(xe=bt.current)!==null&&xe!==void 0&&xe.focus?(bt.current.focus(),rn.current=!0,!0):!1},Re=function(xe){switch(xe.keyCode){case ve:Xt();break;case Ce:{var je=!1;rn.current||(je=$e()),je?xe.preventDefault():Xt();break}}};x.useEffect(function(){return Et?(window.addEventListener("keydown",Re),Ot&&he($e,3),function(){window.removeEventListener("keydown",Re),rn.current=!1}):function(){rn.current=!1}},[Et])}var ye=(0,x.forwardRef)(function(At,Et){var gt=At.overlay,Qt=At.arrow,Ot=At.prefixCls,bt=(0,x.useMemo)(function(){var Xt;return typeof gt=="function"?Xt=gt():Xt=gt,Xt},[gt]),rn=oe(Et,bt==null?void 0:bt.ref);return x.createElement(x.Fragment,null,Qt&&x.createElement("div",{className:"".concat(Ot,"-arrow")}),x.cloneElement(bt,{ref:y(bt)?rn:void 0}))}),Ae=ye,Ne={adjustX:1,adjustY:1},Qe=[0,0],Le={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-4],targetOffset:Qe},top:{points:["bc","tc"],overflow:Ne,offset:[0,-4],targetOffset:Qe},topRight:{points:["br","tr"],overflow:Ne,offset:[0,-4],targetOffset:Qe},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,4],targetOffset:Qe},bottom:{points:["tc","bc"],overflow:Ne,offset:[0,4],targetOffset:Qe},bottomRight:{points:["tr","br"],overflow:Ne,offset:[0,4],targetOffset:Qe}},Ge=Le,He=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ke(At,Et){var gt,Qt=At.arrow,Ot=Qt===void 0?!1:Qt,bt=At.prefixCls,rn=bt===void 0?"rc-dropdown":bt,Xt=At.transitionName,$e=At.animation,Re=At.align,Ln=At.placement,xe=Ln===void 0?"bottomLeft":Ln,je=At.placements,Ht=je===void 0?Ge:je,et=At.getPopupContainer,Ue=At.showAction,Ct=At.hideAction,Pt=At.overlayClassName,Zt=At.overlayStyle,vn=At.visible,Nt=At.trigger,Tt=Nt===void 0?["hover"]:Nt,St=At.autoFocus,en=At.overlay,Gt=At.children,mn=At.onVisibleChange,Qn=(0,We.Z)(At,He),xn=x.useState(),Un=(0,ie.Z)(xn,2),pa=Un[0],Kt=Un[1],$t="visible"in At?vn:pa,qt=x.useRef(null),sa=x.useRef(null),ra=x.useRef(null);x.useImperativeHandle(Et,function(){return qt.current});var Hn=function(Tn){Kt(Tn),mn==null||mn(Tn)};be({visible:$t,triggerRef:ra,onVisibleChange:Hn,autoFocus:St,overlayRef:sa});var Oa=function(Tn){var pn=At.onOverlayClick;Kt(!1),pn&&pn(Tn)},Ta=function(){return x.createElement(Ae,{ref:sa,overlay:en,prefixCls:rn,arrow:Ot})},Pr=function(){return typeof en=="function"?Ta:Ta()},zr=function(){var Tn=At.minOverlayWidthMatchTrigger,pn=At.alignPoint;return"minOverlayWidthMatchTrigger"in At?Tn:!pn},Na=function(){var Tn=At.openClassName;return Tn!==void 0?Tn:"".concat(rn,"-open")},Xe=x.cloneElement(Gt,{className:De()((gt=Gt.props)===null||gt===void 0?void 0:gt.className,$t&&Na()),ref:y(Gt)?oe(ra,Gt.ref):void 0}),Bt=Ct;return!Bt&&Tt.indexOf("contextMenu")!==-1&&(Bt=["click"]),x.createElement(Me.Z,(0,we.Z)({builtinPlacements:Ht},Qn,{prefixCls:rn,ref:qt,popupClassName:De()(Pt,(0,ke.Z)({},"".concat(rn,"-show-arrow"),Ot)),popupStyle:Zt,action:Tt,showAction:Ue,hideAction:Bt,popupPlacement:xe,popupAlign:Re,popupTransitionName:Xt,popupAnimation:$e,popupVisible:$t,stretch:zr()?"minWidth":"",popup:Pr(),onPopupVisibleChange:Hn,onPopupClick:Oa,getPopupContainer:et}),Xe)}var qe=x.forwardRef(Ke),lt=qe,mt=ee(60276),Vt=ee(5663),cn=ee(10366),rt=ee(80636),yt=ee(8745),Lt=ee(96159),ct=ee(53124),Ft=ee(68508),jt=ee(76529),_e=ee(46605),Sn=ee(66748);const wn=null,ha=At=>{const{menu:Et,arrow:gt,prefixCls:Qt,children:Ot,trigger:bt,disabled:rn,dropdownRender:Xt,getPopupContainer:$e,overlayClassName:Re,rootClassName:Ln,open:xe,onOpenChange:je,visible:Ht,onVisibleChange:et,mouseEnterDelay:Ue=.15,mouseLeaveDelay:Ct=.1,autoAdjustOverflow:Pt=!0,placement:Zt="",overlay:vn,transitionName:Nt}=At,{getPopupContainer:Tt,getPrefixCls:St,direction:en}=x.useContext(ct.E_),Gt=x.useMemo(()=>{const Xe=St();return Nt!==void 0?Nt:Zt.includes("top")?`${Xe}-slide-down`:`${Xe}-slide-up`},[St,Zt,Nt]),mn=x.useMemo(()=>Zt?Zt.includes("Center")?Zt.slice(0,Zt.indexOf("Center")):Zt:en==="rtl"?"bottomRight":"bottomLeft",[Zt,en]),Qn=St("dropdown",Qt),[xn,Un]=(0,Sn.Z)(Qn),[,pa]=(0,_e.Z)(),Kt=x.Children.only(Ot),$t=(0,Lt.Tm)(Kt,{className:De()(`${Qn}-trigger`,{[`${Qn}-rtl`]:en==="rtl"},Kt.props.className),disabled:rn}),qt=rn?[]:bt;let sa;qt&&qt.includes("contextMenu")&&(sa=!0);const[ra,Hn]=(0,Vt.Z)(!1,{value:xe!=null?xe:Ht}),Oa=(0,mt.useEvent)(Xe=>{je==null||je(Xe),et==null||et(Xe),Hn(Xe)}),Ta=De()(Re,Ln,Un,{[`${Qn}-rtl`]:en==="rtl"}),Pr=(0,rt.Z)({arrowPointAtCenter:typeof gt=="object"&>.pointAtCenter,autoAdjustOverflow:Pt,offset:pa.marginXXS,arrowWidth:gt?pa.sizePopupArrow:0,borderRadius:pa.borderRadius}),zr=x.useCallback(()=>{Hn(!1)},[]),Na=()=>{let Xe;return Et!=null&&Et.items?Xe=x.createElement(Ft.default,Object.assign({},Et)):typeof vn=="function"?Xe=vn():Xe=vn,Xt&&(Xe=Xt(Xe)),Xe=x.Children.only(typeof Xe=="string"?x.createElement("span",null,Xe):Xe),x.createElement(jt.J,{prefixCls:`${Qn}-menu`,expandIcon:x.createElement("span",{className:`${Qn}-menu-submenu-arrow`},x.createElement(de.Z,{className:`${Qn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:zr,validator:Bt=>{let{mode:xt}=Bt}},Xe)};return xn(x.createElement(lt,Object.assign({alignPoint:sa},(0,cn.Z)(At,["rootClassName"]),{mouseEnterDelay:Ue,mouseLeaveDelay:Ct,visible:ra,builtinPlacements:Pr,arrow:!!gt,overlayClassName:Ta,prefixCls:Qn,getPopupContainer:$e||Tt,transitionName:Gt,trigger:qt,overlay:Na,placement:mn,onVisibleChange:Oa}),$t))};function Mn(At){return Object.assign(Object.assign({},At),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const at=(0,yt.Z)(ha,"dropdown",At=>At,Mn),ut=At=>x.createElement(at,Object.assign({},At),x.createElement("span",null));ha._InternalPanelDoNotUseOrYouWillBeFired=ut;var dt=ha},85418:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return a}});var x=ee(35874),de=ee(94184),pe=ee.n(de),De=ee(67294),we=ee(25877),ke=ee(71577),ie=ee(53124),We=ee(93421),Me=ee(4173),Te=ee(66748),ze=function(y,b){var E={};for(var z in y)Object.prototype.hasOwnProperty.call(y,z)&&b.indexOf(z)<0&&(E[z]=y[z]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,z=Object.getOwnPropertySymbols(y);te{const{getPopupContainer:b,getPrefixCls:E,direction:z}=De.useContext(ie.E_),{prefixCls:te,type:ne="default",danger:re,disabled:ae,loading:le,onClick:he,htmlType:ve,children:Ce,className:be,menu:ye,arrow:Ae,autoFocus:Ne,overlay:Qe,trigger:Le,align:Ge,open:He,onOpenChange:Ke,placement:qe,getPopupContainer:lt,href:mt,icon:Vt=De.createElement(we.Z,null),title:cn,buttonsRender:rt=rn=>rn,mouseEnterDelay:yt,mouseLeaveDelay:Lt,overlayClassName:ct,overlayStyle:Ft,destroyPopupOnHide:jt,dropdownRender:_e}=y,Sn=ze(y,["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"]),wn=E("dropdown",te),ha=`${wn}-button`,[Mn,at]=(0,Te.Z)(wn),ut={menu:ye,arrow:Ae,autoFocus:Ne,align:Ge,disabled:ae,trigger:ae?[]:Le,onOpenChange:Ke,getPopupContainer:lt||b,mouseEnterDelay:yt,mouseLeaveDelay:Lt,overlayClassName:ct,overlayStyle:Ft,destroyPopupOnHide:jt,dropdownRender:_e},{compactSize:dt,compactItemClassnames:At}=(0,Me.ri)(wn,z),Et=pe()(ha,At,be,at);"overlay"in y&&(ut.overlay=Qe),"open"in y&&(ut.open=He),"placement"in y?ut.placement=qe:ut.placement=z==="rtl"?"bottomLeft":"bottomRight";const gt=De.createElement(ke.ZP,{type:ne,danger:re,disabled:ae,loading:le,onClick:he,htmlType:ve,href:mt,title:cn},Ce),Qt=De.createElement(ke.ZP,{type:ne,danger:re,icon:Vt}),[Ot,bt]=rt([gt,Qt]);return Mn(De.createElement(We.Z.Compact,Object.assign({className:Et,size:dt,block:!0},Sn),Ot,De.createElement(x.Z,Object.assign({},ut),bt)))};Be.__ANT_BUTTON=!0;var me=Be;const oe=x.Z;oe.Button=me;var a=oe},66748:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return ze}});var x=ee(14747),de=ee(67771),pe=ee(33297),De=ee(50438),we=ee(97414),ke=ee(67968),ie=ee(45503),Me=Be=>{const{componentCls:me,menuCls:oe,colorError:a,colorTextLightSolid:y}=Be,b=`${oe}-item`;return{[`${me}, ${me}-menu-submenu`]:{[`${oe} ${b}`]:{[`&${b}-danger:not(${b}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=Be=>{const{componentCls:me,menuCls:oe,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:b,antCls:E,iconCls:z,motionDurationMid:te,dropdownPaddingVertical:ne,fontSize:re,dropdownEdgeChildPadding:ae,colorTextDisabled:le,fontSizeIcon:he,controlPaddingHorizontal:ve,colorBgElevated:Ce}=Be;return[{[me]:Object.assign(Object.assign({},(0,x.Wf)(Be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+b/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${z}-down, & > ${E}-btn-icon > ${z}-down`]:{fontSize:he}},[`${me}-wrap`]:{position:"relative",[`${E}-btn > ${z}-down`]:{fontSize:he},[`${z}-down::before`]:{transition:`transform ${te}`}},[`${me}-wrap-open`]:{[`${z}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${me}-placement-bottomLeft, &${E}-slide-down-appear${E}-slide-down-appear-active${me}-placement-bottomLeft, &${E}-slide-down-enter${E}-slide-down-enter-active${me}-placement-bottom, &${E}-slide-down-appear${E}-slide-down-appear-active${me}-placement-bottom, &${E}-slide-down-enter${E}-slide-down-enter-active${me}-placement-bottomRight, &${E}-slide-down-appear${E}-slide-down-appear-active${me}-placement-bottomRight`]:{animationName:de.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${me}-placement-topLeft, &${E}-slide-up-appear${E}-slide-up-appear-active${me}-placement-topLeft, &${E}-slide-up-enter${E}-slide-up-enter-active${me}-placement-top, &${E}-slide-up-appear${E}-slide-up-appear-active${me}-placement-top, &${E}-slide-up-enter${E}-slide-up-enter-active${me}-placement-topRight, &${E}-slide-up-appear${E}-slide-up-appear-active${me}-placement-topRight`]:{animationName:de.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${me}-placement-bottomLeft, &${E}-slide-down-leave${E}-slide-down-leave-active${me}-placement-bottom, &${E}-slide-down-leave${E}-slide-down-leave-active${me}-placement-bottomRight`]:{animationName:de.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${me}-placement-topLeft, &${E}-slide-up-leave${E}-slide-up-leave-active${me}-placement-top, &${E}-slide-up-leave${E}-slide-up-leave-active${me}-placement-topRight`]:{animationName:de.ly}})},(0,we.ZP)(Be,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${me} ${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}},[`${me}, ${me}-menu-submenu`]:{[oe]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,x.Qy)(Be)),{[`${oe}-item-group-title`]:{padding:`${ne}px ${ve}px`,color:Be.colorTextDescription,transition:`all ${te}`},[`${oe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${oe}-item-icon`]:{minWidth:re,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${oe}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${oe}-item, ${oe}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ne}px ${ve}px`,color:Be.colorText,fontWeight:"normal",fontSize:re,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,x.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Be.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${me}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${me}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${oe}-item-group-list`]:{margin:`0 ${Be.marginXS}px`,padding:0,listStyle:"none"},[`${oe}-submenu-title`]:{paddingInlineEnd:ve+Be.fontSizeSM},[`${oe}-submenu-vertical`]:{position:"relative"},[`${oe}-submenu${oe}-submenu-disabled ${me}-menu-submenu-title`]:{[`&, ${me}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Ce,cursor:"not-allowed"}},[`${oe}-submenu-selected ${me}-menu-submenu-title`]:{color:Be.colorPrimary}})}},[(0,de.oN)(Be,"slide-up"),(0,de.oN)(Be,"slide-down"),(0,pe.Fm)(Be,"move-up"),(0,pe.Fm)(Be,"move-down"),(0,De._y)(Be,"zoom-big")]]};var ze=(0,ke.Z)("Dropdown",(Be,me)=>{let{rootPrefixCls:oe}=me;const{marginXXS:a,sizePopupArrow:y,controlHeight:b,fontSize:E,lineHeight:z,paddingXXS:te,componentCls:ne,borderRadiusLG:re}=Be,ae=(b-E*z)/2,{dropdownArrowOffset:le}=(0,we.fS)({contentRadius:re}),he=(0,ie.TS)(Be,{menuCls:`${ne}-menu`,rootPrefixCls:oe,dropdownArrowDistance:y/2+a,dropdownArrowOffset:le,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:te});return[Te(he),Me(he)]},Be=>({zIndexPopup:Be.zIndexPopupBase+50}))},25378:function(ft,st,ee){"use strict";var x=ee(67294),de=ee(14075),pe=ee(57838),De=ee(74443);function we(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,x.useRef)({}),We=(0,pe.Z)(),Me=(0,De.ZP)();return(0,de.Z)(()=>{const Te=Me.subscribe(ze=>{ie.current=ze,ke&&We()});return()=>Me.unsubscribe(Te)},[]),ie.current}st.Z=we},71322:function(ft,st,ee){"use strict";ee.d(st,{D:function(){return z},Z:function(){return re}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(le,he){return de.createElement(we.Z,(0,x.Z)({},le,{ref:he,icon:De}))},ie=de.forwardRef(ke),We=ee(22751),Me=ee(91034),Te=ee(94184),ze=ee.n(Te),Be=ee(10366),oe=ae=>!isNaN(parseFloat(ae))&&isFinite(ae),a=ee(53124),y=ee(84321),b=function(ae,le){var he={};for(var ve in ae)Object.prototype.hasOwnProperty.call(ae,ve)&&le.indexOf(ve)<0&&(he[ve]=ae[ve]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,ve=Object.getOwnPropertySymbols(ae);Ce{let ae=0;return function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${le}${ae}`}})();var re=de.forwardRef((ae,le)=>{const{prefixCls:he,className:ve,trigger:Ce,children:be,defaultCollapsed:ye=!1,theme:Ae="dark",style:Ne={},collapsible:Qe=!1,reverseArrow:Le=!1,width:Ge=200,collapsedWidth:He=80,zeroWidthTriggerStyle:Ke,breakpoint:qe,onCollapse:lt,onBreakpoint:mt}=ae,Vt=b(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:cn}=(0,de.useContext)(y.Gs),[rt,yt]=(0,de.useState)("collapsed"in ae?ae.collapsed:ye),[Lt,ct]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in ae&&yt(ae.collapsed)},[ae.collapsed]);const Ft=(Mn,at)=>{"collapsed"in ae||yt(Mn),lt==null||lt(Mn,at)},jt=(0,de.useRef)();jt.current=Mn=>{ct(Mn.matches),mt==null||mt(Mn.matches),rt!==Mn.matches&&Ft(Mn.matches,"responsive")},(0,de.useEffect)(()=>{function Mn(ut){return jt.current(ut)}let at;if(typeof window!="undefined"){const{matchMedia:ut}=window;if(ut&&qe&&qe in E){at=ut(`(max-width: ${E[qe]})`);try{at.addEventListener("change",Mn)}catch(dt){at.addListener(Mn)}Mn(at)}}return()=>{try{at==null||at.removeEventListener("change",Mn)}catch(ut){at==null||at.removeListener(Mn)}}},[qe]),(0,de.useEffect)(()=>{const Mn=te("ant-sider-");return cn.addSider(Mn),()=>cn.removeSider(Mn)},[]);const _e=()=>{Ft(!rt,"clickTrigger")},{getPrefixCls:Sn}=(0,de.useContext)(a.E_),wn=()=>{const Mn=Sn("layout-sider",he),at=(0,Be.Z)(Vt,["collapsed"]),ut=rt?He:Ge,dt=oe(ut)?`${ut}px`:String(ut),At=parseFloat(String(He||0))===0?de.createElement("span",{onClick:_e,className:ze()(`${Mn}-zero-width-trigger`,`${Mn}-zero-width-trigger-${Le?"right":"left"}`),style:Ke},Ce||de.createElement(ie,null)):null,Qt={expanded:Le?de.createElement(Me.Z,null):de.createElement(We.Z,null),collapsed:Le?de.createElement(We.Z,null):de.createElement(Me.Z,null)}[rt?"collapsed":"expanded"],Ot=Ce!==null?At||de.createElement("div",{className:`${Mn}-trigger`,onClick:_e,style:{width:dt}},Ce||Qt):null,bt=Object.assign(Object.assign({},Ne),{flex:`0 0 ${dt}`,maxWidth:dt,minWidth:dt,width:dt}),rn=ze()(Mn,`${Mn}-${Ae}`,{[`${Mn}-collapsed`]:!!rt,[`${Mn}-has-trigger`]:Qe&&Ce!==null&&!At,[`${Mn}-below`]:!!Lt,[`${Mn}-zero-width`]:parseFloat(dt)===0},ve);return de.createElement("aside",Object.assign({className:rn},at,{style:bt,ref:le}),de.createElement("div",{className:`${Mn}-children`},be),Qe||Lt&&At?Ot:null)},ha=de.useMemo(()=>({siderCollapsed:rt}),[rt]);return de.createElement(z.Provider,{value:ha},wn())})},84321:function(ft,st,ee){"use strict";ee.d(st,{VY:function(){return te},$_:function(){return z},h4:function(){return E},Gs:function(){return me},ZP:function(){return ne}});var x=ee(74902),de=ee(94184),pe=ee.n(de),De=ee(10366),we=ee(67294),ke=ee(53124),ie=ee(67968),Me=re=>{const{componentCls:ae,bodyBg:le,lightSiderBg:he,lightTriggerBg:ve,lightTriggerColor:Ce}=re;return{[`${ae}-sider-light`]:{background:he,[`${ae}-sider-trigger`]:{color:Ce,background:ve},[`${ae}-sider-zero-width-trigger`]:{color:Ce,background:ve,border:`1px solid ${le}`,borderInlineStart:0}}}};const Te=re=>{const{antCls:ae,componentCls:le,colorText:he,triggerColor:ve,footerBg:Ce,triggerBg:be,headerHeight:ye,headerPadding:Ae,headerColor:Ne,footerPadding:Qe,triggerHeight:Le,zeroTriggerHeight:Ge,zeroTriggerWidth:He,motionDurationMid:Ke,motionDurationSlow:qe,fontSize:lt,borderRadius:mt,bodyBg:Vt,headerBg:cn,siderBg:rt}=re;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Vt,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${Ke}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:ve,lineHeight:`${Le}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${Ke}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ye,insetInlineEnd:-He,zIndex:1,width:He,height:Ge,color:ve,fontSize:re.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:mt,borderEndEndRadius:mt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:mt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:mt}}}}},Me(re)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:ye,padding:Ae,color:Ne,lineHeight:`${ye}px`,background:cn,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:Qe,color:he,fontSize:lt,background:Ce},[`${le}-content`]:{flex:"auto",minHeight:0}}};var ze=(0,ie.Z)("Layout",re=>[Te(re)],re=>{const{colorBgLayout:ae,controlHeight:le,controlHeightLG:he,colorText:ve,controlHeightSM:Ce,marginXXS:be,colorTextLightSolid:ye,colorBgContainer:Ae}=re,Ne=he*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${Ne}px`,headerColor:ve,footerPadding:`${Ce}px ${Ne}px`,footerBg:ae,siderBg:"#001529",triggerHeight:he+be*2,triggerBg:"#002140",triggerColor:ye,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:Ae,lightTriggerBg:Ae,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Be=function(re,ae){var le={};for(var he in re)Object.prototype.hasOwnProperty.call(re,he)&&ae.indexOf(he)<0&&(le[he]=re[he]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(re);venull,removeSider:()=>null}});function oe(re){let{suffixCls:ae,tagName:le,displayName:he}=re;return ve=>we.forwardRef((be,ye)=>we.createElement(ve,Object.assign({ref:ye,suffixCls:ae,tagName:le},be)))}const a=we.forwardRef((re,ae)=>{const{prefixCls:le,suffixCls:he,className:ve,tagName:Ce}=re,be=Be(re,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ye}=we.useContext(ke.E_),Ae=ye("layout",le),[Ne,Qe]=ze(Ae),Le=he?`${Ae}-${he}`:Ae;return Ne(we.createElement(Ce,Object.assign({className:pe()(le||Le,ve,Qe),ref:ae},be)))}),y=we.forwardRef((re,ae)=>{const{direction:le}=we.useContext(ke.E_),[he,ve]=we.useState([]),{prefixCls:Ce,className:be,rootClassName:ye,children:Ae,hasSider:Ne,tagName:Qe,style:Le}=re,Ge=Be(re,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,De.Z)(Ge,["suffixCls"]),{getPrefixCls:Ke,layout:qe}=we.useContext(ke.E_),lt=Ke("layout",Ce),[mt,Vt]=ze(lt),cn=pe()(lt,{[`${lt}-has-sider`]:typeof Ne=="boolean"?Ne:he.length>0,[`${lt}-rtl`]:le==="rtl"},qe==null?void 0:qe.className,be,ye,Vt),rt=we.useMemo(()=>({siderHook:{addSider:yt=>{ve(Lt=>[].concat((0,x.Z)(Lt),[yt]))},removeSider:yt=>{ve(Lt=>Lt.filter(ct=>ct!==yt))}}}),[]);return mt(we.createElement(me.Provider,{value:rt},we.createElement(Qe,Object.assign({ref:ae,className:cn,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Le)},He),Ae)))}),b=oe({tagName:"div",displayName:"Layout"})(y),E=oe({suffixCls:"header",tagName:"header",displayName:"Header"})(a),z=oe({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),te=oe({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ne=b},76529:function(ft,st,ee){"use strict";ee.d(st,{J:function(){return ke}});var x=ee(67294),de=ee(4173),pe=ee(60276),De=function(ie,We){var Me={};for(var Te in ie)Object.prototype.hasOwnProperty.call(ie,Te)&&We.indexOf(Te)<0&&(Me[Te]=ie[Te]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Te=Object.getOwnPropertySymbols(ie);ze{const{children:Me}=ie,Te=De(ie,["children"]),ze=x.useContext(we),Be=x.useMemo(()=>Object.assign(Object.assign({},ze),Te),[ze,Te.prefixCls,Te.mode,Te.selectable]);return x.createElement(we.Provider,{value:Be},x.createElement(de.BR,null,(0,pe.supportNodeRef)(Me)?x.cloneElement(Me,{ref:We}):Me))});st.Z=we},68508:function(ft,st,ee){"use strict";ee.d(st,{default:function(){return Mn}});var x=ee(78595),de=ee(67294),pe=ee(71322),De=ee(94184),we=ee.n(De),ke=ee(53124),ie=function(at,ut){var dt={};for(var At in at)Object.prototype.hasOwnProperty.call(at,At)&&ut.indexOf(At)<0&&(dt[At]=at[At]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,At=Object.getOwnPropertySymbols(at);Et{const{prefixCls:ut,className:dt,dashed:At}=at,Et=ie(at,["prefixCls","className","dashed"]),{getPrefixCls:gt}=de.useContext(ke.E_),Qt=gt("menu",ut),Ot=we()({[`${Qt}-item-divider-dashed`]:!!At},dt);return de.createElement(x.iz,Object.assign({className:Ot},Et))},Te=ee(37419),ze=ee(10366),Be=ee(83062),me=ee(96159),a=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),b=at=>{var ut;const{className:dt,children:At,icon:Et,title:gt,danger:Qt}=at,{prefixCls:Ot,firstLevel:bt,direction:rn,disableMenuItemTitleTooltip:Xt,inlineCollapsed:$e}=de.useContext(a),Re=Ue=>{const Ct=de.createElement("span",{className:`${Ot}-title-content`},At);return(!Et||(0,me.l$)(At)&&At.type==="span")&&At&&Ue&&bt&&typeof At=="string"?de.createElement("div",{className:`${Ot}-inline-collapsed-noicon`},At.charAt(0)):Ct},{siderCollapsed:Ln}=de.useContext(pe.D);let xe=gt;typeof gt=="undefined"?xe=bt?At:"":gt===!1&&(xe="");const je={title:xe};!Ln&&!$e&&(je.title=null,je.open=!1);const Ht=(0,Te.Z)(At).length;let et=de.createElement(x.ck,Object.assign({},(0,ze.Z)(at,["title","icon","danger"]),{className:we()({[`${Ot}-item-danger`]:Qt,[`${Ot}-item-only-child`]:(Et?Ht+1:Ht)===1},dt),title:typeof gt=="string"?gt:void 0}),(0,me.Tm)(Et,{className:we()((0,me.l$)(Et)?(ut=Et.props)===null||ut===void 0?void 0:ut.className:"",`${Ot}-item-icon`)}),Re($e));return Xt||(et=de.createElement(Be.Z,Object.assign({},je,{placement:rn==="rtl"?"left":"right",overlayClassName:`${Ot}-inline-collapsed-tooltip`}),et)),et},z=at=>{var ut;const{popupClassName:dt,icon:At,title:Et,theme:gt}=at,Qt=de.useContext(a),{prefixCls:Ot,inlineCollapsed:bt,theme:rn}=Qt,Xt=(0,x.Xl)();let $e;if(!At)$e=bt&&!Xt.length&&Et&&typeof Et=="string"?de.createElement("div",{className:`${Ot}-inline-collapsed-noicon`},Et.charAt(0)):de.createElement("span",{className:`${Ot}-title-content`},Et);else{const Ln=(0,me.l$)(Et)&&Et.type==="span";$e=de.createElement(de.Fragment,null,(0,me.Tm)(At,{className:we()((0,me.l$)(At)?(ut=At.props)===null||ut===void 0?void 0:ut.className:"",`${Ot}-item-icon`)}),Ln?Et:de.createElement("span",{className:`${Ot}-title-content`},Et))}const Re=de.useMemo(()=>Object.assign(Object.assign({},Qt),{firstLevel:!1}),[Qt]);return de.createElement(a.Provider,{value:Re},de.createElement(x.Wd,Object.assign({},(0,ze.Z)(at,["icon"]),{title:$e,popupClassName:we()(Ot,dt,`${Ot}-${gt||rn}`)})))},te=ee(25877),ne=ee(60276),re=ee(33603),ae=ee(76529),le=function(at,ut){var dt={};for(var At in at)Object.prototype.hasOwnProperty.call(at,At)&&ut.indexOf(At)<0&&(dt[At]=at[At]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,At=Object.getOwnPropertySymbols(at);Et{if(ut&&typeof ut=="object"){const At=ut,{label:Et,children:gt,key:Qt,type:Ot}=At,bt=le(At,["label","children","key","type"]),rn=Qt!=null?Qt:`tmp-${dt}`;return gt||Ot==="group"?Ot==="group"?de.createElement(x.BW,Object.assign({key:rn},bt,{title:Et}),he(gt)):de.createElement(z,Object.assign({key:rn},bt,{title:Et}),he(gt)):Ot==="divider"?de.createElement(Me,Object.assign({key:rn},bt)):de.createElement(b,Object.assign({key:rn},bt),Et)}return null}).filter(ut=>ut)}function ve(at){return de.useMemo(()=>at&&he(at),[at])}var Ce=ee(84780),be=ee(14747),ye=ee(33507),Ae=ee(67771),Ne=ee(50438),Qe=ee(67968),Le=ee(45503),He=at=>{const{componentCls:ut,motionDurationSlow:dt,horizontalLineHeight:At,colorSplit:Et,lineWidth:gt,lineType:Qt,itemPaddingInline:Ot}=at;return{[`${ut}-horizontal`]:{lineHeight:At,border:0,borderBottom:`${gt}px ${Qt} ${Et}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ut}-item, ${ut}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ot},[`> ${ut}-item:hover, > ${ut}-item-active, > ${ut}-submenu ${ut}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ut}-item, ${ut}-submenu-title`]:{transition:[`border-color ${dt}`,`background ${dt}`].join(",")},[`${ut}-submenu-arrow`]:{display:"none"}}}},qe=at=>{let{componentCls:ut,menuArrowOffset:dt}=at;return{[`${ut}-rtl`]:{direction:"rtl"},[`${ut}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ut}-rtl${ut}-vertical, ${ut}-submenu-rtl ${ut}-vertical`]:{[`${ut}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${dt})`},"&::after":{transform:`rotate(45deg) translateY(${dt})`}}}}};const lt=at=>Object.assign({},(0,be.oN)(at));var Vt=(at,ut)=>{const{componentCls:dt,itemColor:At,itemSelectedColor:Et,groupTitleColor:gt,itemBg:Qt,subMenuItemBg:Ot,itemSelectedBg:bt,activeBarHeight:rn,activeBarWidth:Xt,activeBarBorderWidth:$e,motionDurationSlow:Re,motionEaseInOut:Ln,motionEaseOut:xe,itemPaddingInline:je,motionDurationMid:Ht,itemHoverColor:et,lineType:Ue,colorSplit:Ct,itemDisabledColor:Pt,dangerItemColor:Zt,dangerItemHoverColor:vn,dangerItemSelectedColor:Nt,dangerItemActiveBg:Tt,dangerItemSelectedBg:St,itemHoverBg:en,itemActiveBg:Gt,menuSubMenuBg:mn,horizontalItemSelectedColor:Qn,horizontalItemSelectedBg:xn,horizontalItemBorderRadius:Un,horizontalItemHoverBg:pa,popupBg:Kt}=at;return{[`${dt}-${ut}, ${dt}-${ut} > ${dt}`]:{color:At,background:Qt,[`&${dt}-root:focus-visible`]:Object.assign({},lt(at)),[`${dt}-item-group-title`]:{color:gt},[`${dt}-submenu-selected`]:{[`> ${dt}-submenu-title`]:{color:Et}},[`${dt}-item-disabled, ${dt}-submenu-disabled`]:{color:`${Pt} !important`},[`${dt}-item:not(${dt}-item-selected):not(${dt}-submenu-selected)`]:{[`&:hover, > ${dt}-submenu-title:hover`]:{color:et}},[`&:not(${dt}-horizontal)`]:{[`${dt}-item:not(${dt}-item-selected)`]:{"&:hover":{backgroundColor:en},"&:active":{backgroundColor:Gt}},[`${dt}-submenu-title`]:{"&:hover":{backgroundColor:en},"&:active":{backgroundColor:Gt}}},[`${dt}-item-danger`]:{color:Zt,[`&${dt}-item:hover`]:{[`&:not(${dt}-item-selected):not(${dt}-submenu-selected)`]:{color:vn}},[`&${dt}-item:active`]:{background:Tt}},[`${dt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${dt}-item-selected`]:{color:Et,[`&${dt}-item-danger`]:{color:Nt},"a, a:hover":{color:"inherit"}},[`& ${dt}-item-selected`]:{backgroundColor:bt,[`&${dt}-item-danger`]:{backgroundColor:St}},[`${dt}-item, ${dt}-submenu-title`]:{[`&:not(${dt}-item-disabled):focus-visible`]:Object.assign({},lt(at))},[`&${dt}-submenu > ${dt}`]:{backgroundColor:mn},[`&${dt}-popup > ${dt}`]:{backgroundColor:Kt},[`&${dt}-horizontal`]:Object.assign(Object.assign({},ut==="dark"?{borderBottom:0}:{}),{[`> ${dt}-item, > ${dt}-submenu`]:{top:$e,marginTop:-$e,marginBottom:0,borderRadius:Un,"&::after":{position:"absolute",insetInline:je,bottom:0,borderBottom:`${rn}px solid transparent`,transition:`border-color ${Re} ${Ln}`,content:'""'},"&:hover, &-active, &-open":{background:pa,"&::after":{borderBottomWidth:rn,borderBottomColor:Qn}},"&-selected":{color:Qn,backgroundColor:xn,"&:hover":{backgroundColor:xn},"&::after":{borderBottomWidth:rn,borderBottomColor:Qn}}}}),[`&${dt}-root`]:{[`&${dt}-inline, &${dt}-vertical`]:{borderInlineEnd:`${$e}px ${Ue} ${Ct}`}},[`&${dt}-inline`]:{[`${dt}-sub${dt}-inline`]:{background:Ot},[`${dt}-item, ${dt}-submenu-title`]:$e&&Xt?{width:`calc(100% + ${$e}px)`}:{},[`${dt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Xt}px solid ${Et}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${xe}`,`opacity ${Ht} ${xe}`].join(","),content:'""'},[`&${dt}-item-danger`]:{"&::after":{borderInlineEndColor:Nt}}},[`${dt}-selected, ${dt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${Ln}`,`opacity ${Ht} ${Ln}`].join(",")}}}}}};const cn=at=>{const{componentCls:ut,itemHeight:dt,itemMarginInline:At,padding:Et,menuArrowSize:gt,marginXS:Qt,itemMarginBlock:Ot}=at,bt=Et+gt+Qt;return{[`${ut}-item`]:{position:"relative",overflow:"hidden"},[`${ut}-item, ${ut}-submenu-title`]:{height:dt,lineHeight:`${dt}px`,paddingInline:Et,overflow:"hidden",textOverflow:"ellipsis",marginInline:At,marginBlock:Ot,width:`calc(100% - ${At*2}px)`},[`> ${ut}-item, > ${ut}-submenu > ${ut}-submenu-title`]:{height:dt,lineHeight:`${dt}px`},[`${ut}-item-group-list ${ut}-submenu-title, ${ut}-submenu-title`]:{paddingInlineEnd:bt}}};var yt=at=>{const{componentCls:ut,iconCls:dt,itemHeight:At,colorTextLightSolid:Et,dropdownWidth:gt,controlHeightLG:Qt,motionDurationMid:Ot,motionEaseOut:bt,paddingXL:rn,itemMarginInline:Xt,fontSizeLG:$e,motionDurationSlow:Re,paddingXS:Ln,boxShadowSecondary:xe,collapsedWidth:je,collapsedIconSize:Ht}=at,et={height:At,lineHeight:`${At}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ut]:{"&-inline, &-vertical":Object.assign({[`&${ut}-root`]:{boxShadow:"none"}},cn(at))},[`${ut}-submenu-popup`]:{[`${ut}-vertical`]:Object.assign(Object.assign({},cn(at)),{boxShadow:xe})}},{[`${ut}-submenu-popup ${ut}-vertical${ut}-sub`]:{minWidth:gt,maxHeight:`calc(100vh - ${Qt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ut}-inline`]:{width:"100%",[`&${ut}-root`]:{[`${ut}-item, ${ut}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Re}`,`background ${Re}`,`padding ${Ot} ${bt}`].join(","),[`> ${ut}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ut}-sub${ut}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ut}-submenu > ${ut}-submenu-title`]:et,[`& ${ut}-item-group-title`]:{paddingInlineStart:rn}},[`${ut}-item`]:et}},{[`${ut}-inline-collapsed`]:{width:je,[`&${ut}-root`]:{[`${ut}-item, ${ut}-submenu ${ut}-submenu-title`]:{[`> ${ut}-inline-collapsed-noicon`]:{fontSize:$e,textAlign:"center"}}},[`> ${ut}-item, > ${ut}-item-group > ${ut}-item-group-list > ${ut}-item, > ${ut}-item-group > ${ut}-item-group-list > ${ut}-submenu > ${ut}-submenu-title, > ${ut}-submenu > ${ut}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$e/2}px - ${Xt}px)`,textOverflow:"clip",[` ${ut}-submenu-arrow, ${ut}-submenu-expand-icon `]:{opacity:0},[`${ut}-item-icon, ${dt}`]:{margin:0,fontSize:Ht,lineHeight:`${At}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ut}-item-icon, ${dt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ut}-item-icon, ${dt}`]:{display:"none"},"a, a:hover":{color:Et}},[`${ut}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:Ln})}}]};const Lt=at=>{const{componentCls:ut,motionDurationSlow:dt,motionDurationMid:At,motionEaseInOut:Et,motionEaseOut:gt,iconCls:Qt,iconSize:Ot,iconMarginInlineEnd:bt}=at;return{[`${ut}-item, ${ut}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${dt}`,`background ${dt}`,`padding ${dt} ${Et}`].join(","),[`${ut}-item-icon, ${Qt}`]:{minWidth:Ot,fontSize:Ot,transition:[`font-size ${At} ${gt}`,`margin ${dt} ${Et}`,`color ${dt}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${dt} ${Et}`,`margin ${dt}`,`color ${dt}`].join(",")}},[`${ut}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${ut}-item-only-child`]:{[`> ${Qt}, > ${ut}-item-icon`]:{marginInlineEnd:0}}},[`${ut}-item-disabled, ${ut}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ut}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ct=at=>{const{componentCls:ut,motionDurationSlow:dt,motionEaseInOut:At,borderRadius:Et,menuArrowSize:gt,menuArrowOffset:Qt}=at;return{[`${ut}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:at.margin,width:gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${dt} ${At}, opacity ${dt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:gt*.6,height:gt*.15,backgroundColor:"currentcolor",borderRadius:Et,transition:[`background ${dt} ${At}`,`transform ${dt} ${At}`,`top ${dt} ${At}`,`color ${dt} ${At}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Qt})`},"&::after":{transform:`rotate(-45deg) translateY(${Qt})`}}}}},Ft=at=>{const{antCls:ut,componentCls:dt,fontSize:At,motionDurationSlow:Et,motionDurationMid:gt,motionEaseInOut:Qt,paddingXS:Ot,padding:bt,colorSplit:rn,lineWidth:Xt,zIndexPopup:$e,borderRadiusLG:Re,subMenuItemBorderRadius:Ln,menuArrowSize:xe,menuArrowOffset:je,lineType:Ht,menuPanelMaskInset:et,groupTitleLineHeight:Ue,groupTitleFontSize:Ct}=at;return[{"":{[`${dt}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${dt}-submenu-hidden`]:{display:"none"}},{[dt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(at)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:At,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Et} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${dt}-item`]:{flex:"none"}},[`${dt}-item, ${dt}-submenu, ${dt}-submenu-title`]:{borderRadius:at.itemBorderRadius},[`${dt}-item-group-title`]:{padding:`${Ot}px ${bt}px`,fontSize:Ct,lineHeight:Ue,transition:`all ${Et}`},[`&-horizontal ${dt}-submenu`]:{transition:[`border-color ${Et} ${Qt}`,`background ${Et} ${Qt}`].join(",")},[`${dt}-submenu, ${dt}-submenu-inline`]:{transition:[`border-color ${Et} ${Qt}`,`background ${Et} ${Qt}`,`padding ${gt} ${Qt}`].join(",")},[`${dt}-submenu ${dt}-sub`]:{cursor:"initial",transition:[`background ${Et} ${Qt}`,`padding ${Et} ${Qt}`].join(",")},[`${dt}-title-content`]:{transition:`color ${Et}`},[`${dt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${dt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rn,borderStyle:Ht,borderWidth:0,borderTopWidth:Xt,marginBlock:Xt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lt(at)),{[`${dt}-item-group`]:{[`${dt}-item-group-list`]:{margin:0,padding:0,[`${dt}-item, ${dt}-submenu-title`]:{paddingInline:`${At*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$e,borderRadius:Re,boxShadow:"none",transformOrigin:"0 0",[`&${dt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:et},"\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:at.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:at.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:at.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:at.paddingXS},[`> ${dt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Re},Lt(at)),ct(at)),{[`${dt}-item, ${dt}-submenu > ${dt}-submenu-title`]:{borderRadius:Ln},[`${dt}-submenu-title::after`]:{transition:`transform ${Et} ${Qt}`}})}}),ct(at)),{[`&-inline-collapsed ${dt}-submenu-arrow, &-inline ${dt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${je})`},"&::after":{transform:`rotate(45deg) translateX(-${je})`}},[`${dt}-submenu-open${dt}-submenu-inline > ${dt}-submenu-title > ${dt}-submenu-arrow`]:{transform:`translateY(-${xe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${je})`},"&::before":{transform:`rotate(45deg) translateX(${je})`}}})},{[`${ut}-layout-header`]:{[dt]:{lineHeight:"inherit"}}}]};var jt=(at,ut)=>(0,Qe.Z)("Menu",At=>{if(ut===!1)return[];const{colorBgElevated:Et,colorPrimary:gt,colorTextLightSolid:Qt,controlHeightLG:Ot,fontSize:bt,darkItemColor:rn,darkDangerItemColor:Xt,darkItemBg:$e,darkSubMenuItemBg:Re,darkItemSelectedColor:Ln,darkItemSelectedBg:xe,darkDangerItemSelectedBg:je,darkItemHoverBg:Ht,darkGroupTitleColor:et,darkItemHoverColor:Ue,darkItemDisabledColor:Ct,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:vn}=At,Nt=bt/7*5,Tt=(0,Le.TS)(At,{menuArrowSize:Nt,menuHorizontalHeight:Ot*1.15,menuArrowOffset:`${Nt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Et}),St=(0,Le.TS)(Tt,{itemColor:rn,itemHoverColor:Ue,groupTitleColor:et,itemSelectedColor:Ln,itemBg:$e,popupBg:$e,subMenuItemBg:Re,itemActiveBg:"transparent",itemSelectedBg:xe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ht,itemDisabledColor:Ct,dangerItemColor:Xt,dangerItemHoverColor:Pt,dangerItemSelectedColor:Zt,dangerItemActiveBg:vn,dangerItemSelectedBg:je,menuSubMenuBg:Re,horizontalItemSelectedColor:Qt,horizontalItemSelectedBg:gt});return[Ft(Tt),He(Tt),yt(Tt),Vt(Tt,"light"),Vt(St,"dark"),qe(Tt),(0,ye.Z)(Tt),(0,Ae.oN)(Tt,"slide-up"),(0,Ae.oN)(Tt,"slide-down"),(0,Ne._y)(Tt,"zoom-big")]},At=>{const{colorPrimary:Et,colorError:gt,colorTextDisabled:Qt,colorErrorBg:Ot,colorText:bt,colorTextDescription:rn,colorBgContainer:Xt,colorFillAlter:$e,colorFillContent:Re,lineWidth:Ln,lineWidthBold:xe,controlItemBgActive:je,colorBgTextHover:Ht,controlHeightLG:et,lineHeight:Ue,colorBgElevated:Ct,marginXXS:Pt,padding:Zt,fontSize:vn,controlHeightSM:Nt,fontSizeLG:Tt,colorTextLightSolid:St,colorErrorHover:en}=At,Gt=new Ce.C(St).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:At.zIndexPopupBase+50,radiusItem:At.borderRadiusLG,itemBorderRadius:At.borderRadiusLG,radiusSubMenuItem:At.borderRadiusSM,subMenuItemBorderRadius:At.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:Et,horizontalItemHoverColor:Et,colorGroupTitle:rn,groupTitleColor:rn,colorItemTextSelected:Et,itemSelectedColor:Et,colorItemTextSelectedHorizontal:Et,horizontalItemSelectedColor:Et,colorItemBg:Xt,itemBg:Xt,colorItemBgHover:Ht,itemHoverBg:Ht,colorItemBgActive:Re,itemActiveBg:je,colorSubItemBg:$e,subMenuItemBg:$e,colorItemBgSelected:je,itemSelectedBg:je,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:xe,activeBarHeight:xe,colorActiveBarBorderSize:Ln,activeBarBorderWidth:Ln,colorItemTextDisabled:Qt,itemDisabledColor:Qt,colorDangerItemText:gt,dangerItemColor:gt,colorDangerItemTextHover:gt,dangerItemHoverColor:gt,colorDangerItemTextSelected:gt,dangerItemSelectedColor:gt,colorDangerItemBgActive:Ot,dangerItemActiveBg:Ot,colorDangerItemBgSelected:Ot,dangerItemSelectedBg:Ot,itemMarginInline:At.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:et,groupTitleLineHeight:Ue,collapsedWidth:et*2,popupBg:Ct,itemMarginBlock:Pt,itemPaddingInline:Zt,horizontalLineHeight:`${et*1.15}px`,iconSize:vn,iconMarginInlineEnd:Nt-vn,collapsedIconSize:Tt,groupTitleFontSize:vn,darkItemDisabledColor:new Ce.C(St).setAlpha(.25).toRgbString(),darkItemColor:Gt,darkDangerItemColor:gt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:St,darkItemSelectedBg:Et,darkDangerItemSelectedBg:gt,darkItemHoverBg:"transparent",darkGroupTitleColor:Gt,darkItemHoverColor:St,darkDangerItemHoverColor:en,darkDangerItemSelectedColor:St,darkDangerItemActiveBg:gt}},{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"]]})(at),_e=function(at,ut){var dt={};for(var At in at)Object.prototype.hasOwnProperty.call(at,At)&&ut.indexOf(At)<0&&(dt[At]=at[At]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,At=Object.getOwnPropertySymbols(at);Et{var dt,At;const Et=de.useContext(ae.Z),gt=Et||{},{getPrefixCls:Qt,getPopupContainer:Ot,direction:bt,menu:rn}=de.useContext(ke.E_),Xt=Qt(),{prefixCls:$e,className:Re,style:Ln,theme:xe="light",expandIcon:je,_internalDisableMenuItemTitleTooltip:Ht,inlineCollapsed:et,siderCollapsed:Ue,items:Ct,children:Pt,rootClassName:Zt,mode:vn,selectable:Nt,onClick:Tt,overflowedIndicatorPopupClassName:St}=at,en=_e(at,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Gt=(0,ze.Z)(en,["collapsedWidth"]),mn=ve(Ct)||Pt;(dt=gt.validator)===null||dt===void 0||dt.call(gt,{mode:vn});const Qn=(0,ne.useEvent)(function(){var Ta;Tt==null||Tt.apply(void 0,arguments),(Ta=gt.onClick)===null||Ta===void 0||Ta.call(gt)}),xn=gt.mode||vn,Un=Nt!=null?Nt:gt.selectable,pa=de.useMemo(()=>Ue!==void 0?Ue:et,[et,Ue]),Kt={horizontal:{motionName:`${Xt}-slide-up`},inline:(0,re.Z)(Xt),other:{motionName:`${Xt}-zoom-big`}},$t=Qt("menu",$e||gt.prefixCls),[qt,sa]=jt($t,!Et),ra=we()(`${$t}-${xe}`,rn==null?void 0:rn.className,Re);let Hn;if(typeof je=="function")Hn=je;else if(je===null||je===!1)Hn=null;else if(gt.expandIcon===null||gt.expandIcon===!1)Hn=null;else{const Ta=je!=null?je:gt.expandIcon;Hn=(0,me.Tm)(Ta,{className:we()(`${$t}-submenu-expand-icon`,(0,me.l$)(Ta)?(At=Ta.props)===null||At===void 0?void 0:At.className:"")})}const Oa=de.useMemo(()=>({prefixCls:$t,inlineCollapsed:pa||!1,direction:bt,firstLevel:!0,theme:xe,mode:xn,disableMenuItemTitleTooltip:Ht}),[$t,pa,bt,Ht,xe]);return qt(de.createElement(ae.Z.Provider,{value:null},de.createElement(a.Provider,{value:Oa},de.createElement(x.ZP,Object.assign({getPopupContainer:Ot,overflowedIndicator:de.createElement(te.Z,null),overflowedIndicatorPopupClassName:we()($t,`${$t}-${xe}`,St),mode:xn,selectable:Un,onClick:Qn},Gt,{inlineCollapsed:pa,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),Ln),className:ra,prefixCls:$t,direction:bt,defaultMotions:Kt,expandIcon:Hn,ref:ut,rootClassName:we()(Zt,sa)}),mn))))});const ha=(0,de.forwardRef)((at,ut)=>{const dt=(0,de.useRef)(null),At=de.useContext(pe.D);return(0,de.useImperativeHandle)(ut,()=>({menu:dt.current,focus:Et=>{var gt;(gt=dt.current)===null||gt===void 0||gt.focus(Et)}})),de.createElement(wn,Object.assign({ref:dt},at,At))});ha.Item=b,ha.SubMenu=z,ha.Divider=Me,ha.ItemGroup=x.BW;var Mn=ha},28452:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return Xt}});var x=ee(87462),de=ee(67294),pe={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"},De=pe,we=ee(74643),ke=function(Re,Ln){return de.createElement(we.Z,(0,x.Z)({},Re,{ref:Ln,icon:De}))},ie=de.forwardRef(ke),We=ee(81893),Me=ee(22751),Te=ee(91034),ze=ee(94184),Be=ee.n(ze),me=ee(4942),oe=ee(1413),a=ee(15671),y=ee(43144),b=ee(60136),E=ee(51630),z=`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`,te=`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`,ne="".concat(z," ").concat(te).split(/[\s\n]+/),re="aria-",ae="data-";function le($e,Re){return $e.indexOf(Re)===0}function he($e){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ln;Re===!1?Ln={aria:!0,data:!0,attr:!0}:Re===!0?Ln={aria:!0}:Ln=(0,oe.Z)({},Re);var xe={};return Object.keys($e).forEach(function(je){(Ln.aria&&(je==="role"||le(je,re))||Ln.data&&le(je,ae)||Ln.attr&&ne.includes(je))&&(xe[je]=$e[je])}),xe}var ve={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ce=ve,be=ee(81626),ye=function($e){(0,b.Z)(Ln,$e);var Re=(0,E.Z)(Ln);function Ln(){var xe;(0,a.Z)(this,Ln);for(var je=arguments.length,Ht=new Array(je),et=0;et=0||Ue.relatedTarget.className.indexOf("".concat(vn,"-item"))>=0))&&Zt(xe.getValidValue()))},xe.go=function(Ue){var Ct=xe.state.goInputText;Ct!==""&&(Ue.keyCode===Ce.ENTER||Ue.type==="click")&&(xe.setState({goInputText:""}),xe.props.quickGo(xe.getValidValue()))},xe}return(0,y.Z)(Ln,[{key:"getPageSizeOptions",value:function(){var je=this.props,Ht=je.pageSize,et=je.pageSizeOptions;return et.some(function(Ue){return Ue.toString()===Ht.toString()})?et:et.concat([Ht.toString()]).sort(function(Ue,Ct){var Pt=Number.isNaN(Number(Ue))?0:Number(Ue),Zt=Number.isNaN(Number(Ct))?0:Number(Ct);return Pt-Zt})}},{key:"render",value:function(){var je=this,Ht=this.props,et=Ht.pageSize,Ue=Ht.locale,Ct=Ht.rootPrefixCls,Pt=Ht.changeSize,Zt=Ht.quickGo,vn=Ht.goButton,Nt=Ht.selectComponentClass,Tt=Ht.buildOptionText,St=Ht.selectPrefixCls,en=Ht.disabled,Gt=this.state.goInputText,mn="".concat(Ct,"-options"),Qn=Nt,xn=null,Un=null,pa=null;if(!Pt&&!Zt)return null;var Kt=this.getPageSizeOptions();if(Pt&&Qn){var $t=Kt.map(function(qt,sa){return de.createElement(Qn.Option,{key:sa,value:qt.toString()},(Tt||je.buildOptionText)(qt))});xn=de.createElement(Qn,{disabled:en,prefixCls:St,showSearch:!1,className:"".concat(mn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(et||Kt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(sa){return sa.parentNode},"aria-label":Ue.page_size,defaultOpen:!1},$t)}return Zt&&(vn&&(pa=typeof vn=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:en,className:"".concat(mn,"-quick-jumper-button")},Ue.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},vn)),Un=de.createElement("div",{className:"".concat(mn,"-quick-jumper")},Ue.jump_to,de.createElement("input",{disabled:en,type:"text",value:Gt,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ue.page}),Ue.page,pa)),de.createElement("li",{className:"".concat(mn)},xn,Un)}}]),Ln}(de.Component);ye.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ae=ye,Ne=function(Re){var Ln,xe=Re.rootPrefixCls,je=Re.page,Ht=Re.active,et=Re.className,Ue=Re.showTitle,Ct=Re.onClick,Pt=Re.onKeyPress,Zt=Re.itemRender,vn="".concat(xe,"-item"),Nt=Be()(vn,"".concat(vn,"-").concat(je),(Ln={},(0,me.Z)(Ln,"".concat(vn,"-active"),Ht),(0,me.Z)(Ln,"".concat(vn,"-disabled"),!je),(0,me.Z)(Ln,Re.className,et),Ln)),Tt=function(){Ct(je)},St=function(mn){Pt(mn,Ct,je)},en=Zt(je,"page",de.createElement("a",{rel:"nofollow"},je));return en?de.createElement("li",{title:Ue?je.toString():null,className:Nt,onClick:Tt,onKeyPress:St,tabIndex:0},en):null},Qe=Ne;function Le(){}function Ge($e){var Re=Number($e);return typeof Re=="number"&&!Number.isNaN(Re)&&isFinite(Re)&&Math.floor(Re)===Re}var He=function(Re,Ln,xe){return xe};function Ke($e,Re,Ln){var xe=typeof $e=="undefined"?Re.pageSize:$e;return Math.floor((Ln.total-1)/xe)+1}var qe=function($e){(0,b.Z)(Ln,$e);var Re=(0,E.Z)(Ln);function Ln(xe){var je;(0,a.Z)(this,Ln),je=Re.call(this,xe),je.paginationNode=de.createRef(),je.getJumpPrevPage=function(){return Math.max(1,je.state.current-(je.props.showLessItems?3:5))},je.getJumpNextPage=function(){return Math.min(Ke(void 0,je.state,je.props),je.state.current+(je.props.showLessItems?3:5))},je.getItemIcon=function(Pt,Zt){var vn=je.props.prefixCls,Nt=Pt||de.createElement("button",{type:"button","aria-label":Zt,className:"".concat(vn,"-item-link")});return typeof Pt=="function"&&(Nt=de.createElement(Pt,(0,oe.Z)({},je.props))),Nt},je.isValid=function(Pt){var Zt=je.props.total;return Ge(Pt)&&Pt!==je.state.current&&Ge(Zt)&&Zt>0},je.shouldDisplayQuickJumper=function(){var Pt=je.props,Zt=Pt.showQuickJumper,vn=Pt.total,Nt=je.state.pageSize;return vn<=Nt?!1:Zt},je.handleKeyDown=function(Pt){(Pt.keyCode===Ce.ARROW_UP||Pt.keyCode===Ce.ARROW_DOWN)&&Pt.preventDefault()},je.handleKeyUp=function(Pt){var Zt=je.getValidValue(Pt),vn=je.state.currentInputValue;Zt!==vn&&je.setState({currentInputValue:Zt}),Pt.keyCode===Ce.ENTER?je.handleChange(Zt):Pt.keyCode===Ce.ARROW_UP?je.handleChange(Zt-1):Pt.keyCode===Ce.ARROW_DOWN&&je.handleChange(Zt+1)},je.handleBlur=function(Pt){var Zt=je.getValidValue(Pt);je.handleChange(Zt)},je.changePageSize=function(Pt){var Zt=je.state.current,vn=Ke(Pt,je.state,je.props);Zt=Zt>vn?vn:Zt,vn===0&&(Zt=je.state.current),typeof Pt=="number"&&("pageSize"in je.props||je.setState({pageSize:Pt}),"current"in je.props||je.setState({current:Zt,currentInputValue:Zt})),je.props.onShowSizeChange(Zt,Pt),"onChange"in je.props&&je.props.onChange&&je.props.onChange(Zt,Pt)},je.handleChange=function(Pt){var Zt=je.props,vn=Zt.disabled,Nt=Zt.onChange,Tt=je.state,St=Tt.pageSize,en=Tt.current,Gt=Tt.currentInputValue;if(je.isValid(Pt)&&!vn){var mn=Ke(void 0,je.state,je.props),Qn=Pt;return Pt>mn?Qn=mn:Pt<1&&(Qn=1),"current"in je.props||je.setState({current:Qn}),Qn!==Gt&&je.setState({currentInputValue:Qn}),Nt(Qn,St),Qn}return en},je.prev=function(){je.hasPrev()&&je.handleChange(je.state.current-1)},je.next=function(){je.hasNext()&&je.handleChange(je.state.current+1)},je.jumpPrev=function(){je.handleChange(je.getJumpPrevPage())},je.jumpNext=function(){je.handleChange(je.getJumpNextPage())},je.hasPrev=function(){return je.state.current>1},je.hasNext=function(){return je.state.current2?vn-2:0),Tt=2;Tt=et?Ct=et:Ct=Number(Ht),Ct}},{key:"getShowSizeChanger",value:function(){var je=this.props,Ht=je.showSizeChanger,et=je.total,Ue=je.totalBoundaryShowSizeChanger;return typeof Ht!="undefined"?Ht:et>Ue}},{key:"render",value:function(){var je=this.props,Ht=je.prefixCls,et=je.className,Ue=je.style,Ct=je.disabled,Pt=je.hideOnSinglePage,Zt=je.total,vn=je.locale,Nt=je.showQuickJumper,Tt=je.showLessItems,St=je.showTitle,en=je.showTotal,Gt=je.simple,mn=je.itemRender,Qn=je.showPrevNextJumpers,xn=je.jumpPrevIcon,Un=je.jumpNextIcon,pa=je.selectComponentClass,Kt=je.selectPrefixCls,$t=je.pageSizeOptions,qt=this.state,sa=qt.current,ra=qt.pageSize,Hn=qt.currentInputValue;if(Pt===!0&&Zt<=ra)return null;var Oa=Ke(void 0,this.state,this.props),Ta=[],Pr=null,zr=null,Na=null,Xe=null,Bt=null,xt=Nt&&Nt.goButton,Tn=Tt?1:2,pn=sa-1>0?sa-1:0,_n=sa+1Zt?Zt:sa*ra]));if(Gt){xt&&(typeof xt=="boolean"?Bt=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},vn.jump_to_confirm):Bt=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},xt),Bt=de.createElement("li",{title:St?"".concat(vn.jump_to).concat(sa,"/").concat(Oa):null,className:"".concat(Ht,"-simple-pager")},Bt));var br=this.renderPrev(pn);return de.createElement("ul",(0,x.Z)({className:Be()(Ht,"".concat(Ht,"-simple"),(0,me.Z)({},"".concat(Ht,"-disabled"),Ct),et),style:Ue,ref:this.paginationNode},Qr),Ra,br?de.createElement("li",{title:St?vn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Be()("".concat(Ht,"-prev"),(0,me.Z)({},"".concat(Ht,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},br):null,de.createElement("li",{title:St?"".concat(sa,"/").concat(Oa):null,className:"".concat(Ht,"-simple-pager")},de.createElement("input",{type:"text",value:Hn,disabled:Ct,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(Ht,"-slash")},"/"),Oa),de.createElement("li",{title:St?vn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Be()("".concat(Ht,"-next"),(0,me.Z)({},"".concat(Ht,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(_n)),Bt)}if(Oa<=3+Tn*2){var Vr={locale:vn,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:St,itemRender:mn};Oa||Ta.push(de.createElement(Qe,(0,x.Z)({},Vr,{key:"noPager",page:1,className:"".concat(Ht,"-item-disabled")})));for(var mo=1;mo<=Oa;mo+=1){var Xn=sa===mo;Ta.push(de.createElement(Qe,(0,x.Z)({},Vr,{key:mo,page:mo,active:Xn})))}}else{var ur=Tt?vn.prev_3:vn.prev_5,pt=Tt?vn.next_3:vn.next_5,Jt=mn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(xn,"prev page")),Ut=mn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Un,"next page"));Qn&&(Pr=Jt?de.createElement("li",{title:St?ur:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Be()("".concat(Ht,"-jump-prev"),(0,me.Z)({},"".concat(Ht,"-jump-prev-custom-icon"),!!xn))},Jt):null,zr=Ut?de.createElement("li",{title:St?pt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Be()("".concat(Ht,"-jump-next"),(0,me.Z)({},"".concat(Ht,"-jump-next-custom-icon"),!!Un))},Ut):null),Xe=de.createElement(Qe,{locale:vn,last:!0,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Oa,page:Oa,active:!1,showTitle:St,itemRender:mn}),Na=de.createElement(Qe,{locale:vn,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:St,itemRender:mn});var dn=Math.max(1,sa-Tn),jn=Math.min(sa+Tn,Oa);sa-1<=Tn&&(jn=1+Tn*2),Oa-sa<=Tn&&(dn=Oa-Tn*2);for(var tn=dn;tn<=jn;tn+=1){var Yn=sa===tn;Ta.push(de.createElement(Qe,{locale:vn,rootPrefixCls:Ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tn,page:tn,active:Yn,showTitle:St,itemRender:mn}))}sa-1>=Tn*2&&sa!==3&&(Ta[0]=(0,de.cloneElement)(Ta[0],{className:"".concat(Ht,"-item-after-jump-prev")}),Ta.unshift(Pr)),Oa-sa>=Tn*2&&sa!==Oa-2&&(Ta[Ta.length-1]=(0,de.cloneElement)(Ta[Ta.length-1],{className:"".concat(Ht,"-item-before-jump-next")}),Ta.push(zr)),dn!==1&&Ta.unshift(Na),jn!==Oa&&Ta.push(Xe)}var Pn=!this.hasPrev()||!Oa,ua=!this.hasNext()||!Oa,Ha=this.renderPrev(pn),ir=this.renderNext(_n);return de.createElement("ul",(0,x.Z)({className:Be()(Ht,et,(0,me.Z)({},"".concat(Ht,"-disabled"),Ct)),style:Ue,ref:this.paginationNode},Qr),Ra,Ha?de.createElement("li",{title:St?vn.prev_page:null,onClick:this.prev,tabIndex:Pn?null:0,onKeyPress:this.runIfEnterPrev,className:Be()("".concat(Ht,"-prev"),(0,me.Z)({},"".concat(Ht,"-disabled"),Pn)),"aria-disabled":Pn},Ha):null,Ta,ir?de.createElement("li",{title:St?vn.next_page:null,onClick:this.next,tabIndex:ua?null:0,onKeyPress:this.runIfEnterNext,className:Be()("".concat(Ht,"-next"),(0,me.Z)({},"".concat(Ht,"-disabled"),ua)),"aria-disabled":ua},ir):null,de.createElement(Ae,{disabled:Ct,locale:vn,rootPrefixCls:Ht,selectComponentClass:pa,selectPrefixCls:Kt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:sa,pageSize:ra,pageSizeOptions:$t,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:xt}))}}],[{key:"getDerivedStateFromProps",value:function(je,Ht){var et={};if("current"in je&&(et.current=je.current,je.current!==Ht.current&&(et.currentInputValue=et.current)),"pageSize"in je&&je.pageSize!==Ht.pageSize){var Ue=Ht.current,Ct=Ke(je.pageSize,Ht,je);Ue=Ue>Ct?Ct:Ue,"current"in je||(et.current=Ue,et.currentInputValue=Ue),et.pageSize=je.pageSize}return et}}]),Ln}(de.Component);qe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Le,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Le,locale:be.Z,style:{},itemRender:He,totalBoundaryShowSizeChanger:50};var lt=qe,mt=ee(62906),Vt=ee(53124),cn=ee(98675),rt=ee(25378),yt=ee(10110),Lt=ee(11713);const ct=$e=>de.createElement(Lt.default,Object.assign({},$e,{showSearch:!0,size:"small"})),Ft=$e=>de.createElement(Lt.default,Object.assign({},$e,{showSearch:!0,size:"middle"}));ct.Option=Lt.default.Option,Ft.Option=Lt.default.Option;var jt=ee(47673),_e=ee(14747),Sn=ee(67968),wn=ee(45503);const ha=$e=>{const{componentCls:Re}=$e;return{[`${Re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Re}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Re}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed"}}},[`&${Re}-disabled`]:{cursor:"not-allowed",[`${Re}-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}}},[`${Re}-item-link`]:{color:$e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Re}-simple-pager`]:{color:$e.colorTextDisabled},[`${Re}-jump-prev, ${Re}-jump-next`]:{[`${Re}-item-link-icon`]:{opacity:0},[`${Re}-item-ellipsis`]:{opacity:1}}},[`&${Re}-simple`]:{[`${Re}-prev, ${Re}-next`]:{[`&${Re}-disabled ${Re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Mn=$e=>{const{componentCls:Re}=$e;return{[`&${Re}-mini ${Re}-total-text, &${Re}-mini ${Re}-simple-pager`]:{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`},[`&${Re}-mini ${Re}-item`]:{minWidth:$e.itemSizeSM,height:$e.itemSizeSM,margin:0,lineHeight:`${$e.itemSizeSM-2}px`},[`&${Re}-mini:not(${Re}-disabled) ${Re}-item:not(${Re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:$e.colorBgTextHover},"&:active":{backgroundColor:$e.colorBgTextActive}},[`&${Re}-mini ${Re}-prev, &${Re}-mini ${Re}-next`]:{minWidth:$e.itemSizeSM,height:$e.itemSizeSM,margin:0,lineHeight:`${$e.itemSizeSM}px`},[`&${Re}-mini:not(${Re}-disabled)`]:{[`${Re}-prev, ${Re}-next`]:{[`&:hover ${Re}-item-link`]:{backgroundColor:$e.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:$e.colorBgTextActive},[`&${Re}-disabled:hover ${Re}-item-link`]:{backgroundColor:"transparent"}}},[` &${Re}-mini ${Re}-prev ${Re}-item-link, &${Re}-mini ${Re}-next ${Re}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`}},[`&${Re}-mini ${Re}-jump-prev, &${Re}-mini ${Re}-jump-next`]:{height:$e.itemSizeSM,marginInlineEnd:0,lineHeight:`${$e.itemSizeSM}px`},[`&${Re}-mini ${Re}-options`]:{marginInlineStart:$e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:$e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,jt.x0)($e)),{width:$e.paginationMiniQuickJumperInputWidth,height:$e.controlHeightSM})}}}},at=$e=>{const{componentCls:Re}=$e;return{[` &${Re}-simple ${Re}-prev, &${Re}-simple ${Re}-next `]:{height:$e.itemSizeSM,lineHeight:`${$e.itemSizeSM}px`,verticalAlign:"top",[`${Re}-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`}}},[`&${Re}-simple ${Re}-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"}}}}},ut=$e=>{const{componentCls:Re}=$e;return{[`${Re}-jump-prev, ${Re}-jump-next`]:{outline:0,[`${Re}-item-container`]:{position:"relative",[`${Re}-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"}},[`${Re}-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":{[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}}},[` ${Re}-prev, ${Re}-jump-prev, ${Re}-jump-next `]:{marginInlineEnd:$e.marginXS},[` ${Re}-prev, ${Re}-next, ${Re}-jump-prev, ${Re}-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}`},[`${Re}-prev, ${Re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:$e.colorText,cursor:"pointer",userSelect:"none"},[`${Re}-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 ${Re}-item-link`]:{backgroundColor:$e.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:$e.colorBgTextActive},[`&${Re}-disabled:hover`]:{[`${Re}-item-link`]:{backgroundColor:"transparent"}}},[`${Re}-slash`]:{marginInlineEnd:$e.paginationSlashMarginInlineEnd,marginInlineStart:$e.paginationSlashMarginInlineStart},[`${Re}-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,jt.ik)($e)),{width:$e.controlHeightLG*1.25,height:$e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:$e.marginXS,marginInlineEnd:$e.marginXS})}}}},dt=$e=>{const{componentCls:Re}=$e;return{[`${Re}-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(${Re}-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:Re}=$e;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)($e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Re}-total-text`]:{display:"inline-block",height:$e.itemSize,marginInlineEnd:$e.marginXS,lineHeight:`${$e.itemSize-2}px`,verticalAlign:"middle"}}),dt($e)),ut($e)),at($e)),Mn($e)),ha($e)),{[`@media only screen and (max-width: ${$e.screenLG}px)`]:{[`${Re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${$e.screenSM}px)`]:{[`${Re}-options`]:{display:"none"}}}),[`&${$e.componentCls}-rtl`]:{direction:"rtl"}}},Et=$e=>{const{componentCls:Re}=$e;return{[`${Re}${Re}-disabled:not(${Re}-mini)`]:{"&, &:hover":{[`${Re}-item-link`]:{borderColor:$e.colorBorder}},"&:focus-visible":{[`${Re}-item-link`]:{borderColor:$e.colorBorder}},[`${Re}-item, ${Re}-item-link`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,[`&:hover:not(${Re}-item-active)`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,a:{color:$e.colorTextDisabled}},[`&${Re}-item-active`]:{backgroundColor:$e.itemActiveBgDisabled}},[`${Re}-prev, ${Re}-next`]:{"&:hover button":{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder,color:$e.colorTextDisabled},[`${Re}-item-link`]:{backgroundColor:$e.colorBgContainerDisabled,borderColor:$e.colorBorder}}},[`${Re}:not(${Re}-mini)`]:{[`${Re}-prev, ${Re}-next`]:{"&:hover button":{borderColor:$e.colorPrimaryHover,backgroundColor:$e.itemBg},[`${Re}-item-link`]:{backgroundColor:$e.itemLinkBg,borderColor:$e.colorBorder},[`&:hover ${Re}-item-link`]:{borderColor:$e.colorPrimary,backgroundColor:$e.itemBg,color:$e.colorPrimary},[`&${Re}-disabled`]:{[`${Re}-item-link`]:{borderColor:$e.colorBorder,color:$e.colorTextDisabled}}},[`${Re}-item`]:{backgroundColor:$e.itemBg,border:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`,[`&:hover:not(${Re}-item-active)`]:{borderColor:$e.colorPrimary,backgroundColor:$e.itemBg,a:{color:$e.colorPrimary}},"&-active":{borderColor:$e.colorPrimary}}}}},gt=$e=>{const{componentCls:Re}=$e;return{[`${Re}:not(${Re}-disabled)`]:{[`${Re}-item`]:Object.assign({},(0,_e.Qy)($e)),[`${Re}-jump-prev, ${Re}-jump-next`]:{"&:focus-visible":Object.assign({[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}},(0,_e.oN)($e))},[`${Re}-prev, ${Re}-next`]:{[`&:focus-visible ${Re}-item-link`]:Object.assign({},(0,_e.oN)($e))}}}};var Qt=(0,Sn.Z)("Pagination",$e=>{const Re=(0,wn.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,jt.e5)($e),(0,jt.TM)($e));return[At(Re),gt(Re),$e.wireframe&&Et(Re)]},$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})),Ot=function($e,Re){var Ln={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&Re.indexOf(xe)<0&&(Ln[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,xe=Object.getOwnPropertySymbols($e);je{const{prefixCls:Re,selectPrefixCls:Ln,className:xe,rootClassName:je,style:Ht,size:et,locale:Ue,selectComponentClass:Ct,responsive:Pt,showSizeChanger:Zt}=$e,vn=Ot($e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Nt}=(0,rt.Z)(Pt),{getPrefixCls:Tt,direction:St,pagination:en={}}=de.useContext(Vt.E_),Gt=Tt("pagination",Re),[mn,Qn]=Qt(Gt),xn=Zt!=null?Zt:en.showSizeChanger,Un=de.useMemo(()=>{const Oa=de.createElement("span",{className:`${Gt}-item-ellipsis`},"\u2022\u2022\u2022"),Ta=de.createElement("button",{className:`${Gt}-item-link`,type:"button",tabIndex:-1},St==="rtl"?de.createElement(Te.Z,null):de.createElement(Me.Z,null)),Pr=de.createElement("button",{className:`${Gt}-item-link`,type:"button",tabIndex:-1},St==="rtl"?de.createElement(Me.Z,null):de.createElement(Te.Z,null)),zr=de.createElement("a",{className:`${Gt}-item-link`},de.createElement("div",{className:`${Gt}-item-container`},St==="rtl"?de.createElement(We.Z,{className:`${Gt}-item-link-icon`}):de.createElement(ie,{className:`${Gt}-item-link-icon`}),Oa)),Na=de.createElement("a",{className:`${Gt}-item-link`},de.createElement("div",{className:`${Gt}-item-container`},St==="rtl"?de.createElement(ie,{className:`${Gt}-item-link-icon`}):de.createElement(We.Z,{className:`${Gt}-item-link-icon`}),Oa));return{prevIcon:Ta,nextIcon:Pr,jumpPrevIcon:zr,jumpNextIcon:Na}},[St,Gt]),[pa]=(0,yt.Z)("Pagination",mt.Z),Kt=Object.assign(Object.assign({},pa),Ue),$t=(0,cn.Z)(et),qt=$t==="small"||!!(Nt&&!$t&&Pt),sa=Tt("select",Ln),ra=Be()({[`${Gt}-mini`]:qt,[`${Gt}-rtl`]:St==="rtl"},en==null?void 0:en.className,xe,je,Qn),Hn=Object.assign(Object.assign({},en==null?void 0:en.style),Ht);return mn(de.createElement(lt,Object.assign({},Un,vn,{style:Hn,prefixCls:Gt,selectPrefixCls:sa,className:ra,selectComponentClass:Ct||(qt?ct:Ft),locale:Kt,showSizeChanger:xn})))},Xt=rn},38703:function(ft,st,ee){"use strict";ee.d(st,{Z:function(){return Ht}});var x=ee(67294),de=ee(87725),pe=ee(18299),De=ee(16646),we=ee(73475),ke=ee(94184),ie=ee.n(ke),We=ee(10366),Me=ee(53124),Te=ee(87462),ze=ee(1413),Be=ee(45987),me={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var Ue=(0,x.useRef)([]),Ct=(0,x.useRef)(null);return(0,x.useEffect)(function(){var Pt=Date.now(),Zt=!1;Ue.current.forEach(function(vn){if(vn){Zt=!0;var Nt=vn.style;Nt.transitionDuration=".3s, .3s, .3s, .06s",Ct.current&&Pt-Ct.current<100&&(Nt.transitionDuration="0s, 0s")}}),Zt&&(Ct.current=Date.now())}),Ue.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ue){var Ct=(0,ze.Z)((0,ze.Z)({},me),Ue),Pt=Ct.className,Zt=Ct.percent,vn=Ct.prefixCls,Nt=Ct.strokeColor,Tt=Ct.strokeLinecap,St=Ct.strokeWidth,en=Ct.style,Gt=Ct.trailColor,mn=Ct.trailWidth,Qn=Ct.transition,xn=(0,Be.Z)(Ct,a);delete xn.gapPosition;var Un=Array.isArray(Zt)?Zt:[Zt],pa=Array.isArray(Nt)?Nt:[Nt],Kt=oe(),$t=St/2,qt=100-St/2,sa="M ".concat(Tt==="round"?$t:0,",").concat($t,` L `).concat(Tt==="round"?qt:100,",").concat($t),ra="0 0 100 ".concat(St),Hn=0;return x.createElement("svg",(0,Te.Z)({className:ie()("".concat(vn,"-line"),Pt),viewBox:ra,preserveAspectRatio:"none",style:en},xn),x.createElement("path",{className:"".concat(vn,"-line-trail"),d:sa,strokeLinecap:Tt,stroke:Gt,strokeWidth:mn||St,fillOpacity:"0"}),Un.map(function(Oa,Ta){var Pr=1;switch(Tt){case"round":Pr=1-St/100;break;case"square":Pr=1-St/2/100;break;default:Pr=1;break}var zr={strokeDasharray:"".concat(Oa*Pr,"px, 100px"),strokeDashoffset:"-".concat(Hn,"px"),transition:Qn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Na=pa[Ta]||pa[pa.length-1];return Hn+=Oa,x.createElement("path",{key:Ta,className:"".concat(vn,"-line-path"),d:sa,strokeLinecap:Tt,stroke:Na,strokeWidth:St,fillOpacity:"0",ref:function(Bt){Kt[Ta]=Bt},style:zr})}))},b=y,E=ee(71002),z=ee(97685),te=ee(98924),ne=0,re=(0,te.Z)();function ae(){var et;return re?(et=ne,ne+=1):et="TEST_OR_SSR",et}var le=function(et){var Ue=x.useState(),Ct=(0,z.Z)(Ue,2),Pt=Ct[0],Zt=Ct[1];return x.useEffect(function(){Zt("rc_progress_".concat(ae()))},[]),et||Pt},he=function(Ue){var Ct=Ue.bg,Pt=Ue.children;return x.createElement("div",{style:{width:"100%",height:"100%",background:Ct}},Pt)};function ve(et,Ue){return Object.keys(et).map(function(Ct){var Pt=parseFloat(Ct),Zt="".concat(Math.floor(Pt*Ue),"%");return"".concat(et[Ct]," ").concat(Zt)})}var Ce=x.forwardRef(function(et,Ue){var Ct=et.prefixCls,Pt=et.color,Zt=et.gradientId,vn=et.radius,Nt=et.style,Tt=et.ptg,St=et.strokeLinecap,en=et.strokeWidth,Gt=et.size,mn=et.gapDegree,Qn=Pt&&(0,E.Z)(Pt)==="object",xn=Qn?"#FFF":void 0,Un=Gt/2,pa=x.createElement("circle",{className:"".concat(Ct,"-circle-path"),r:vn,cx:Un,cy:Un,stroke:xn,strokeLinecap:St,strokeWidth:en,opacity:Tt===0?0:1,style:Nt,ref:Ue});if(!Qn)return pa;var Kt="".concat(Zt,"-conic"),$t=mn?"".concat(180+mn/2,"deg"):"0deg",qt=ve(Pt,(360-mn)/360),sa=ve(Pt,1),ra="conic-gradient(from ".concat($t,", ").concat(qt.join(", "),")"),Hn="linear-gradient(to ".concat(mn?"bottom":"top",", ").concat(sa.join(", "),")");return x.createElement(x.Fragment,null,x.createElement("mask",{id:Kt},pa),x.createElement("foreignObject",{x:0,y:0,width:Gt,height:Gt,mask:"url(#".concat(Kt,")")},x.createElement(he,{bg:Hn},x.createElement(he,{bg:ra}))))}),be=Ce,ye=100,Ae=function(Ue,Ct,Pt,Zt,vn,Nt,Tt,St,en,Gt){var mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Qn=Pt/100*360*((360-Nt)/360),xn=Nt===0?0:{bottom:0,top:180,left:90,right:-90}[Tt],Un=(100-Zt)/100*Ct;en==="round"&&Zt!==100&&(Un+=Gt/2,Un>=Ct&&(Un=Ct-.01));var pa=ye/2;return{stroke:typeof St=="string"?St:void 0,strokeDasharray:"".concat(Ct,"px ").concat(Ue),strokeDashoffset:Un+mn,transform:"rotate(".concat(vn+Qn+xn,"deg)"),transformOrigin:"".concat(pa,"px ").concat(pa,"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}},Ne=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Qe(et){var Ue=et!=null?et:[];return Array.isArray(Ue)?Ue:[Ue]}var Le=function(Ue){var Ct=(0,ze.Z)((0,ze.Z)({},me),Ue),Pt=Ct.id,Zt=Ct.prefixCls,vn=Ct.steps,Nt=Ct.strokeWidth,Tt=Ct.trailWidth,St=Ct.gapDegree,en=St===void 0?0:St,Gt=Ct.gapPosition,mn=Ct.trailColor,Qn=Ct.strokeLinecap,xn=Ct.style,Un=Ct.className,pa=Ct.strokeColor,Kt=Ct.percent,$t=(0,Be.Z)(Ct,Ne),qt=ye/2,sa=le(Pt),ra="".concat(sa,"-gradient"),Hn=qt-Nt/2,Oa=Math.PI*2*Hn,Ta=en>0?90+en/2:-90,Pr=Oa*((360-en)/360),zr=(0,E.Z)(vn)==="object"?vn:{count:vn,space:2},Na=zr.count,Xe=zr.space,Bt=Qe(Kt),xt=Qe(pa),Tn=xt.find(function(mo){return mo&&(0,E.Z)(mo)==="object"}),pn=Tn&&(0,E.Z)(Tn)==="object",_n=pn?"butt":Qn,Qr=Ae(Oa,Pr,0,100,Ta,en,Gt,mn,_n,Nt),Ra=oe(),br=function(){var Xn=0;return Bt.map(function(ur,pt){var Jt=xt[pt]||xt[xt.length-1],Ut=Ae(Oa,Pr,Xn,ur,Ta,en,Gt,Jt,_n,Nt);return Xn+=ur,x.createElement(be,{key:pt,color:Jt,ptg:ur,radius:Hn,prefixCls:Zt,gradientId:ra,style:Ut,strokeLinecap:_n,strokeWidth:Nt,gapDegree:en,ref:function(jn){Ra[pt]=jn},size:ye})}).reverse()},Vr=function(){var Xn=Math.round(Na*(Bt[0]/100)),ur=100/Na,pt=0;return new Array(Na).fill(null).map(function(Jt,Ut){var dn=Ut<=Xn-1?xt[0]:mn,jn=dn&&(0,E.Z)(dn)==="object"?"url(#".concat(ra,")"):void 0,tn=Ae(Oa,Pr,pt,ur,Ta,en,Gt,dn,"butt",Nt,Xe);return pt+=(Pr-tn.strokeDashoffset+Xe)*100/Pr,x.createElement("circle",{key:Ut,className:"".concat(Zt,"-circle-path"),r:Hn,cx:qt,cy:qt,stroke:jn,strokeWidth:Nt,opacity:1,style:tn,ref:function(Pn){Ra[Ut]=Pn}})})};return x.createElement("svg",(0,Te.Z)({className:ie()("".concat(Zt,"-circle"),Un),viewBox:"0 0 ".concat(ye," ").concat(ye),style:xn,id:Pt,role:"presentation"},$t),!Na&&x.createElement("circle",{className:"".concat(Zt,"-circle-trail"),r:Hn,cx:qt,cy:qt,stroke:mn,strokeLinecap:_n,strokeWidth:Tt||Nt,style:Qr}),Na?Vr():br())},Ge=Le,He={Line:b,Circle:Ge},Ke=ee(83062),qe=ee(47448);function lt(et){return!et||et<0?0:et>100?100:et}function mt(et){let{success:Ue,successPercent:Ct}=et,Pt=Ct;return Ue&&"progress"in Ue&&(Pt=Ue.progress),Ue&&"percent"in Ue&&(Pt=Ue.percent),Pt}const Vt=et=>{let{percent:Ue,success:Ct,successPercent:Pt}=et;const Zt=lt(mt({success:Ct,successPercent:Pt}));return[Zt,lt(lt(Ue)-Zt)]},cn=et=>{let{success:Ue={},strokeColor:Ct}=et;const{strokeColor:Pt}=Ue;return[Pt||qe.presetPrimaryColors.green,Ct||null]},rt=(et,Ue,Ct)=>{var Pt,Zt,vn,Nt;let Tt=-1,St=-1;if(Ue==="step"){const en=Ct.steps,Gt=Ct.strokeWidth;typeof et=="string"||typeof et=="undefined"?(Tt=et==="small"?2:14,St=Gt!=null?Gt:8):typeof et=="number"?[Tt,St]=[et,et]:[Tt=14,St=8]=et,Tt*=en}else if(Ue==="line"){const en=Ct==null?void 0:Ct.strokeWidth;typeof et=="string"||typeof et=="undefined"?St=en||(et==="small"?6:8):typeof et=="number"?[Tt,St]=[et,et]:[Tt=-1,St=8]=et}else(Ue==="circle"||Ue==="dashboard")&&(typeof et=="string"||typeof et=="undefined"?[Tt,St]=et==="small"?[60,60]:[120,120]:typeof et=="number"?[Tt,St]=[et,et]:(Tt=(Zt=(Pt=et[0])!==null&&Pt!==void 0?Pt:et[1])!==null&&Zt!==void 0?Zt:120,St=(Nt=(vn=et[0])!==null&&vn!==void 0?vn:et[1])!==null&&Nt!==void 0?Nt:120));return[Tt,St]},yt=3,Lt=et=>yt/et*100;var Ft=et=>{const{prefixCls:Ue,trailColor:Ct=null,strokeLinecap:Pt="round",gapPosition:Zt,gapDegree:vn,width:Nt=120,type:Tt,children:St,success:en,size:Gt=Nt}=et,[mn,Qn]=rt(Gt,"circle");let{strokeWidth:xn}=et;xn===void 0&&(xn=Math.max(Lt(mn),6));const Un={width:mn,height:Qn,fontSize:mn*.15+6},pa=x.useMemo(()=>{if(vn||vn===0)return vn;if(Tt==="dashboard")return 75},[vn,Tt]),Kt=Zt||Tt==="dashboard"&&"bottom"||void 0,$t=Object.prototype.toString.call(et.strokeColor)==="[object Object]",qt=cn({success:en,strokeColor:et.strokeColor}),sa=ie()(`${Ue}-inner`,{[`${Ue}-circle-gradient`]:$t}),ra=x.createElement(Ge,{percent:Vt(et),strokeWidth:xn,trailWidth:xn,strokeColor:qt,strokeLinecap:Pt,trailColor:Ct,prefixCls:Ue,gapDegree:pa,gapPosition:Kt});return x.createElement("div",{className:sa,style:Un},mn<=20?x.createElement(Ke.Z,{title:St},x.createElement("span",null,ra)):x.createElement(x.Fragment,null,ra,St))},jt=function(et,Ue){var Ct={};for(var Pt in et)Object.prototype.hasOwnProperty.call(et,Pt)&&Ue.indexOf(Pt)<0&&(Ct[Pt]=et[Pt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Pt=Object.getOwnPropertySymbols(et);Zt{let Ue=[];return Object.keys(et).forEach(Ct=>{const Pt=parseFloat(Ct.replace(/%/g,""));isNaN(Pt)||Ue.push({key:Pt,value:et[Ct]})}),Ue=Ue.sort((Ct,Pt)=>Ct.key-Pt.key),Ue.map(Ct=>{let{key:Pt,value:Zt}=Ct;return`${Zt} ${Pt}%`}).join(", ")},Sn=(et,Ue)=>{const{from:Ct=qe.presetPrimaryColors.blue,to:Pt=qe.presetPrimaryColors.blue,direction:Zt=Ue==="rtl"?"to left":"to right"}=et,vn=jt(et,["from","to","direction"]);if(Object.keys(vn).length!==0){const Nt=_e(vn);return{backgroundImage:`linear-gradient(${Zt}, ${Nt})`}}return{backgroundImage:`linear-gradient(${Zt}, ${Ct}, ${Pt})`}};var ha=et=>{const{prefixCls:Ue,direction:Ct,percent:Pt,size:Zt,strokeWidth:vn,strokeColor:Nt,strokeLinecap:Tt="round",children:St,trailColor:en=null,success:Gt}=et,mn=Nt&&typeof Nt!="string"?Sn(Nt,Ct):{backgroundColor:Nt},Qn=Tt==="square"||Tt==="butt"?0:void 0,xn={backgroundColor:en||void 0,borderRadius:Qn},Un=Zt!=null?Zt:[-1,vn||(Zt==="small"?6:8)],[pa,Kt]=rt(Un,"line",{strokeWidth:vn}),$t=Object.assign({width:`${lt(Pt)}%`,height:Kt,borderRadius:Qn},mn),qt=mt(et),sa={width:`${lt(qt)}%`,height:Kt,borderRadius:Qn,backgroundColor:Gt==null?void 0:Gt.strokeColor},ra={width:pa<0?"100%":pa,height:Kt};return x.createElement(x.Fragment,null,x.createElement("div",{className:`${Ue}-outer`,style:ra},x.createElement("div",{className:`${Ue}-inner`,style:xn},x.createElement("div",{className:`${Ue}-bg`,style:$t}),qt!==void 0?x.createElement("div",{className:`${Ue}-success-bg`,style:sa}):null)),St)},at=et=>{const{size:Ue,steps:Ct,percent:Pt=0,strokeWidth:Zt=8,strokeColor:vn,trailColor:Nt=null,prefixCls:Tt,children:St}=et,en=Math.round(Ct*(Pt/100)),Gt=Ue==="small"?2:14,mn=Ue!=null?Ue:[Gt,Zt],[Qn,xn]=rt(mn,"step",{steps:Ct,strokeWidth:Zt}),Un=Qn/Ct,pa=new Array(Ct);for(let Kt=0;Kt{const Ue=et?"100%":"-100%";return new ut.Keyframes(`antProgress${et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ue}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ue}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Qt=et=>{const{componentCls:Ue,iconCls:Ct}=et;return{[Ue]:Object.assign(Object.assign({},(0,dt.Wf)(et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:et.fontSize,marginInlineEnd:et.marginXS,marginBottom:et.marginXS},[`${Ue}-outer`]:{display:"inline-block",width:"100%"},[`&${Ue}-show-info`]:{[`${Ue}-outer`]:{marginInlineEnd:`calc(-2em - ${et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${et.paddingXS}px)`}},[`${Ue}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:et.remainingColor,borderRadius:et.lineBorderRadius},[`${Ue}-inner:not(${Ue}-circle-gradient)`]:{[`${Ue}-circle-path`]:{stroke:et.defaultColor}},[`${Ue}-success-bg, ${Ue}-bg`]:{position:"relative",backgroundColor:et.defaultColor,borderRadius:et.lineBorderRadius,transition:`all ${et.motionDurationSlow} ${et.motionEaseInOutCirc}`},[`${Ue}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:et.colorSuccess},[`${Ue}-text`]:{display:"inline-block",width:"2em",marginInlineStart:et.marginXS,color:et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ct]:{fontSize:et.fontSize}},[`&${Ue}-status-active`]:{[`${Ue}-bg::before`]:{position:"absolute",inset:0,backgroundColor:et.colorBgContainer,borderRadius:et.lineBorderRadius,opacity:0,animationName:gt(),animationDuration:et.progressActiveMotionDuration,animationTimingFunction:et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ue}-rtl${Ue}-status-active`]:{[`${Ue}-bg::before`]:{animationName:gt(!0)}},[`&${Ue}-status-exception`]:{[`${Ue}-bg`]:{backgroundColor:et.colorError},[`${Ue}-text`]:{color:et.colorError}},[`&${Ue}-status-exception ${Ue}-inner:not(${Ue}-circle-gradient)`]:{[`${Ue}-circle-path`]:{stroke:et.colorError}},[`&${Ue}-status-success`]:{[`${Ue}-bg`]:{backgroundColor:et.colorSuccess},[`${Ue}-text`]:{color:et.colorSuccess}},[`&${Ue}-status-success ${Ue}-inner:not(${Ue}-circle-gradient)`]:{[`${Ue}-circle-path`]:{stroke:et.colorSuccess}}})}},Ot=et=>{const{componentCls:Ue,iconCls:Ct}=et;return{[Ue]:{[`${Ue}-circle-trail`]:{stroke:et.remainingColor},[`&${Ue}-circle ${Ue}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ue}-circle ${Ue}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:et.circleTextColor,fontSize:et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ct]:{fontSize:`${et.fontSize/et.fontSizeSM}em`}},[`${Ue}-circle&-status-exception`]:{[`${Ue}-text`]:{color:et.colorError}},[`${Ue}-circle&-status-success`]:{[`${Ue}-text`]:{color:et.colorSuccess}}},[`${Ue}-inline-circle`]:{lineHeight:1,[`${Ue}-inner`]:{verticalAlign:"bottom"}}}},bt=et=>{const{componentCls:Ue}=et;return{[Ue]:{[`${Ue}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:et.progressStepMinWidth,marginInlineEnd:et.progressStepMarginInlineEnd,backgroundColor:et.remainingColor,transition:`all ${et.motionDurationSlow}`,"&-active":{backgroundColor:et.defaultColor}}}}}},rn=et=>{const{componentCls:Ue,iconCls:Ct}=et;return{[Ue]:{[`${Ue}-small&-line, ${Ue}-small&-line ${Ue}-text ${Ct}`]:{fontSize:et.fontSizeSM}}}};var Xt=(0,At.Z)("Progress",et=>{const Ue=et.marginXXS/2,Ct=(0,Et.TS)(et,{progressStepMarginInlineEnd:Ue,progressStepMinWidth:Ue,progressActiveMotionDuration:"2.4s"});return[Qt(Ct),Ot(Ct),bt(Ct),rn(Ct)]},et=>({circleTextColor:et.colorText,defaultColor:et.colorInfo,remainingColor:et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),$e=function(et,Ue){var Ct={};for(var Pt in et)Object.prototype.hasOwnProperty.call(et,Pt)&&Ue.indexOf(Pt)<0&&(Ct[Pt]=et[Pt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Pt=Object.getOwnPropertySymbols(et);Zt{const{prefixCls:Ct,className:Pt,rootClassName:Zt,steps:vn,strokeColor:Nt,percent:Tt=0,size:St="default",showInfo:en=!0,type:Gt="line",status:mn,format:Qn,style:xn}=et,Un=$e(et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),pa=x.useMemo(()=>{var Bt,xt;const Tn=mt(et);return parseInt(Tn!==void 0?(Bt=Tn!=null?Tn:0)===null||Bt===void 0?void 0:Bt.toString():(xt=Tt!=null?Tt:0)===null||xt===void 0?void 0:xt.toString(),10)},[Tt,et.success,et.successPercent]),Kt=x.useMemo(()=>!Ln.includes(mn)&&pa>=100?"success":mn||"normal",[mn,pa]),{getPrefixCls:$t,direction:qt,progress:sa}=x.useContext(Me.E_),ra=$t("progress",Ct),[Hn,Oa]=Xt(ra),Ta=x.useMemo(()=>{if(!en)return null;const Bt=mt(et);let xt;const Tn=Qn||(_n=>`${_n}%`),pn=Gt==="line";return Qn||Kt!=="exception"&&Kt!=="success"?xt=Tn(lt(Tt),lt(Bt)):Kt==="exception"?xt=pn?x.createElement(De.Z,null):x.createElement(we.Z,null):Kt==="success"&&(xt=pn?x.createElement(de.Z,null):x.createElement(pe.Z,null)),x.createElement("span",{className:`${ra}-text`,title:typeof xt=="string"?xt:void 0},xt)},[en,Tt,pa,Kt,Gt,ra,Qn]),Pr=Array.isArray(Nt)?Nt[0]:Nt,zr=typeof Nt=="string"||Array.isArray(Nt)?Nt:void 0;let Na;Gt==="line"?Na=vn?x.createElement(at,Object.assign({},et,{strokeColor:zr,prefixCls:ra,steps:vn}),Ta):x.createElement(ha,Object.assign({},et,{strokeColor:Pr,prefixCls:ra,direction:qt}),Ta):(Gt==="circle"||Gt==="dashboard")&&(Na=x.createElement(Ft,Object.assign({},et,{strokeColor:Pr,prefixCls:ra,progressStatus:Kt}),Ta));const Xe=ie()(ra,`${ra}-status-${Kt}`,`${ra}-${Gt==="dashboard"&&"circle"||vn&&"steps"||Gt}`,{[`${ra}-inline-circle`]:Gt==="circle"&&rt(St,"circle")[0]<=20,[`${ra}-show-info`]:en,[`${ra}-${St}`]:typeof St=="string",[`${ra}-rtl`]:qt==="rtl"},sa==null?void 0:sa.className,Pt,Zt,Oa);return Hn(x.createElement("div",Object.assign({ref:Ue,style:Object.assign(Object.assign({},sa==null?void 0:sa.style),xn),className:Xe,role:"progressbar","aria-valuenow":pa},(0,We.Z)(Un,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Na))}),Ht=je},49867:function(ft,st,ee){"use strict";ee.d(st,{N:function(){return x}});const x=de=>({color:de.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${de.motionDurationSlow}`,"&:focus, &:hover":{color:de.colorLinkHover},"&:active":{color:de.colorLinkActive}})},9430:function(ft,st,ee){"use strict";ee.d(st,{default:function(){return wu}});var x={},de="rc-table-internal-hook",pe=ee(97685),De=ee(66680),we=ee(8410),ke=ee(91881),ie=ee(67294),We=ee(73935);function Me(ue){var ge=ie.createContext(void 0),Fe=function(Ze){var nt=Ze.value,vt=Ze.children,It=ie.useRef(nt);It.current=nt;var Mt=ie.useState(function(){return{getValue:function(){return It.current},listeners:new Set}}),Wt=(0,pe.Z)(Mt,1),gn=Wt[0];return(0,we.Z)(function(){(0,We.unstable_batchedUpdates)(function(){gn.listeners.forEach(function(Yt){Yt(nt)})})},[nt]),ie.createElement(ge.Provider,{value:gn},vt)};return{Context:ge,Provider:Fe,defaultValue:ue}}function Te(ue,ge){var Fe=(0,De.Z)(typeof ge=="function"?ge:function(Yt){if(ge===void 0)return Yt;if(!Array.isArray(ge))return Yt[ge];var Zn={};return ge.forEach(function(zn){Zn[zn]=Yt[zn]}),Zn}),Ie=ie.useContext(ue==null?void 0:ue.Context),Ze=Ie||{},nt=Ze.listeners,vt=Ze.getValue,It=ie.useRef();It.current=Fe(Ie?vt():ue==null?void 0:ue.defaultValue);var Mt=ie.useState({}),Wt=(0,pe.Z)(Mt,2),gn=Wt[1];return(0,we.Z)(function(){if(!Ie)return;function Yt(Zn){var zn=Fe(Zn);(0,ke.Z)(It.current,zn,!0)||gn({})}return nt.add(Yt),function(){nt.delete(Yt)}},[Ie]),It.current}var ze=ee(87462),Be=ee(42550);function me(){var ue=ie.createContext(null);function ge(){return ie.useContext(ue)}function Fe(Ze,nt){var vt=(0,Be.Yr)(Ze),It=function(Wt,gn){var Yt=vt?{ref:gn}:{},Zn=ie.useRef(0),zn=ie.useRef(Wt),Gn=ge();return Gn!==null?ie.createElement(Ze,(0,ze.Z)({},Wt,Yt)):((!nt||nt(zn.current,Wt))&&(Zn.current+=1),zn.current=Wt,ie.createElement(ue.Provider,{value:Zn.current},ie.createElement(Ze,(0,ze.Z)({},Wt,Yt))))};return vt?ie.forwardRef(It):It}function Ie(Ze,nt){var vt=(0,Be.Yr)(Ze),It=function(Wt,gn){var Yt=vt?{ref:gn}:{};return ge(),ie.createElement(Ze,(0,ze.Z)({},Wt,Yt))};return vt?ie.memo(ie.forwardRef(It),nt):ie.memo(It,nt)}return{makeImmutable:Fe,responseImmutable:Ie,useImmutableMark:ge}}var oe=me(),a=oe.makeImmutable,y=oe.responseImmutable,b=oe.useImmutableMark,E=me(),z=E.makeImmutable,te=E.responseImmutable,ne=E.useImmutableMark,re=Me(),ae=re;function le(ue,ge){var Fe=ie.useRef(0);Fe.current+=1;var Ie=ie.useRef(ue),Ze=[];Object.keys(ue||{}).map(function(vt){var It;(ue==null?void 0:ue[vt])!==((It=Ie.current)===null||It===void 0?void 0:It[vt])&&Ze.push(vt)}),Ie.current=ue;var nt=ie.useRef([]);return Ze.length&&(nt.current=Ze),ie.useDebugValue(Fe.current),ie.useDebugValue(nt.current.join(", ")),ge&&console.log("".concat(ge,":"),Fe.current,nt.current),Fe.current}var he=null,ve=ie.memo(function(){var ue=le();return ie.createElement("h1",null,"Render Times: ",ue)});ve.displayName="RenderBlock";var Ce=ee(71002),be=ee(1413),ye=ee(4942),Ae=ee(94184),Ne=ee.n(Ae);function Qe(ue,ge,Fe){var Ie=ie.useRef({});return(!("value"in Ie.current)||Fe(Ie.current.condition,ge))&&(Ie.current.value=ue(),Ie.current.condition=ge),Ie.current.value}var Le={},Ge=[],He=function(ge){Ge.push(ge)};function Ke(ue,ge){if(0)var Fe}function qe(ue,ge){if(0)var Fe}function lt(){Le={}}function mt(ue,ge,Fe){!ge&&!Le[Fe]&&(ue(!1,Fe),Le[Fe]=!0)}function Vt(ue,ge){mt(Ke,ue,ge)}function cn(ue,ge){mt(qe,ue,ge)}Vt.preMessage=He,Vt.resetWarned=lt,Vt.noteOnce=cn;var rt=Vt;function yt(ue,ge){var Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ie=new Set;function Ze(nt,vt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Mt=Ie.has(nt);if(rt(!Mt,"Warning: There may be circular references"),Mt)return!1;if(nt===vt)return!0;if(Fe&&It>1)return!1;Ie.add(nt);var Wt=It+1;if(Array.isArray(nt)){if(!Array.isArray(vt)||nt.length!==vt.length)return!1;for(var gn=0;gn=Fe}function dt(ue,ge){return Te(ae,function(Fe){var Ie=ut(ue,ge||1,Fe.hoverStartRow,Fe.hoverEndRow);return[Ie,Fe.onHover]})}var At=function(ge){var Fe=ge.ellipsis,Ie=ge.rowType,Ze=ge.children,nt,vt=Fe===!0?{showTitle:!0}:Fe;return vt&&(vt.showTitle||Ie==="header")&&(typeof Ze=="string"||typeof Ze=="number"?nt=Ze.toString():ie.isValidElement(Ze)&&typeof Ze.props.children=="string"&&(nt=Ze.props.children)),nt};function Et(ue){var ge,Fe,Ie,Ze,nt,vt,It,Mt,Wt=ue.component,gn=ue.children,Yt=ue.ellipsis,Zn=ue.scope,zn=ue.prefixCls,Gn=ue.className,ta=ue.align,hn=ue.record,Sa=ue.render,la=ue.dataIndex,Ga=ue.renderIndex,gr=ue.shouldCellUpdate,yr=ue.index,nr=ue.rowType,Or=ue.colSpan,Xr=ue.rowSpan,Ya=ue.fixLeft,or=ue.fixRight,$a=ue.firstFixLeft,Ka=ue.lastFixLeft,qa=ue.firstFixRight,Rr=ue.lastFixRight,no=ue.appendNode,_r=ue.additionalProps,xr=_r===void 0?{}:_r,ao=ue.isSticky,ho="".concat(zn,"-cell"),Vo=Te(ae,["supportSticky","allColumnsFixedLeft"]),xo=Vo.supportSticky,Si=Vo.allColumnsFixedLeft,Pi=at(hn,la,Ga,gn,Sa,gr),Jr=(0,pe.Z)(Pi,2),Li=Jr[0],Mo=Jr[1],gi={},li=typeof Ya=="number"&&xo,pl=typeof or=="number"&&xo;li&&(gi.position="sticky",gi.left=Ya),pl&&(gi.position="sticky",gi.right=or);var Er=(ge=(Fe=(Ie=Mo==null?void 0:Mo.colSpan)!==null&&Ie!==void 0?Ie:xr.colSpan)!==null&&Fe!==void 0?Fe:Or)!==null&&ge!==void 0?ge:1,Dr=(Ze=(nt=(vt=Mo==null?void 0:Mo.rowSpan)!==null&&vt!==void 0?vt:xr.rowSpan)!==null&&nt!==void 0?nt:Xr)!==null&&Ze!==void 0?Ze:1,Ar=dt(yr,Dr),hr=(0,pe.Z)(Ar,2),Oo=hr[0],vr=hr[1],Wr=function(ki){var hl;hn&&vr(yr,yr+Dr-1),xr==null||(hl=xr.onMouseEnter)===null||hl===void 0||hl.call(xr,ki)},Bo=function(ki){var hl;hn&&vr(-1,-1),xr==null||(hl=xr.onMouseLeave)===null||hl===void 0||hl.call(xr,ki)};if(Er===0||Dr===0)return null;var vo=(It=xr.title)!==null&&It!==void 0?It:At({rowType:nr,ellipsis:Yt,children:Li}),rl=Ne()(ho,Gn,(Mt={},(0,ye.Z)(Mt,"".concat(ho,"-fix-left"),li&&xo),(0,ye.Z)(Mt,"".concat(ho,"-fix-left-first"),$a&&xo),(0,ye.Z)(Mt,"".concat(ho,"-fix-left-last"),Ka&&xo),(0,ye.Z)(Mt,"".concat(ho,"-fix-left-all"),Ka&&Si&&xo),(0,ye.Z)(Mt,"".concat(ho,"-fix-right"),pl&&xo),(0,ye.Z)(Mt,"".concat(ho,"-fix-right-first"),qa&&xo),(0,ye.Z)(Mt,"".concat(ho,"-fix-right-last"),Rr&&xo),(0,ye.Z)(Mt,"".concat(ho,"-ellipsis"),Yt),(0,ye.Z)(Mt,"".concat(ho,"-with-append"),no),(0,ye.Z)(Mt,"".concat(ho,"-fix-sticky"),(li||pl)&&ao&&xo),(0,ye.Z)(Mt,"".concat(ho,"-row-hover"),!Mo&&Oo),Mt),xr.className,Mo==null?void 0:Mo.className),nl={};ta&&(nl.textAlign=ta);var Ol=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},gi),xr.style),nl),Mo==null?void 0:Mo.style),Ri=Li;return(0,Ce.Z)(Ri)==="object"&&!Array.isArray(Ri)&&!ie.isValidElement(Ri)&&(Ri=null),Yt&&(Ka||qa)&&(Ri=ie.createElement("span",{className:"".concat(ho,"-content")},Ri)),ie.createElement(Wt,(0,ze.Z)({},Mo,xr,{className:rl,style:Ol,title:vo,scope:Zn,onMouseEnter:Wr,onMouseLeave:Bo,colSpan:Er!==1?Er:null,rowSpan:Dr!==1?Dr:null}),no,Ri)}var gt=ie.memo(Et);function Qt(ue,ge,Fe,Ie,Ze,nt){var vt=Fe[ue]||{},It=Fe[ge]||{},Mt,Wt;vt.fixed==="left"?Mt=Ie.left[Ze==="rtl"?ge:ue]:It.fixed==="right"&&(Wt=Ie.right[Ze==="rtl"?ue:ge]);var gn=!1,Yt=!1,Zn=!1,zn=!1,Gn=Fe[ge+1],ta=Fe[ue-1],hn=!(nt!=null&&nt.children);if(Ze==="rtl"){if(Mt!==void 0){var Sa=ta&&ta.fixed==="left";zn=!Sa&&hn}else if(Wt!==void 0){var la=Gn&&Gn.fixed==="right";Zn=!la&&hn}}else if(Mt!==void 0){var Ga=Gn&&Gn.fixed==="left";gn=!Ga&&hn}else if(Wt!==void 0){var gr=ta&&ta.fixed==="right";Yt=!gr&&hn}return{fixLeft:Mt,fixRight:Wt,lastFixLeft:gn,firstFixRight:Yt,lastFixRight:Zn,firstFixLeft:zn,isSticky:Ie.isSticky}}var Ot=ie.createContext({}),bt=Ot;function rn(ue){var ge=ue.className,Fe=ue.index,Ie=ue.children,Ze=ue.colSpan,nt=Ze===void 0?1:Ze,vt=ue.rowSpan,It=ue.align,Mt=Te(ae,["prefixCls","direction"]),Wt=Mt.prefixCls,gn=Mt.direction,Yt=ie.useContext(bt),Zn=Yt.scrollColumnIndex,zn=Yt.stickyOffsets,Gn=Yt.flattenColumns,ta=Yt.columns,hn=Fe+nt-1,Sa=hn+1===Zn?nt+1:nt,la=Qt(Fe,Fe+Sa-1,Gn,zn,gn,ta==null?void 0:ta[Fe]);return ie.createElement(gt,(0,ze.Z)({className:ge,index:Fe,component:"td",prefixCls:Wt,record:null,dataIndex:null,align:It,colSpan:Sa,rowSpan:vt,render:function(){return Ie}},la))}var Xt=ee(45987),$e=["children"];function Re(ue){var ge=ue.children,Fe=(0,Xt.Z)(ue,$e);return ie.createElement("tr",Fe,ge)}function Ln(ue){var ge=ue.children;return ge}Ln.Row=Re,Ln.Cell=rn;var xe=Ln;function je(ue){var ge=ue.children,Fe=ue.stickyOffsets,Ie=ue.flattenColumns,Ze=ue.columns,nt=Te(ae,"prefixCls"),vt=Ie.length-1,It=Ie[vt],Mt=ie.useMemo(function(){return{stickyOffsets:Fe,flattenColumns:Ie,scrollColumnIndex:It!=null&&It.scrollbar?vt:null,columns:Ze}},[It,Ie,vt,Fe,Ze]);return ie.createElement(bt.Provider,{value:Mt},ie.createElement("tfoot",{className:"".concat(nt,"-summary")},ge))}var Ht=te(je),et=xe;function Ue(ue){var ge=ie.useRef();ge.current=ue;var Fe=ie.useCallback(function(){for(var Ie,Ze=arguments.length,nt=new Array(Ze),vt=0;vt3&&arguments[3]!==void 0?arguments[3]:!1;return ge.length&&Ie&&Fe===void 0&&!get(ue,ge.slice(0,-1))?ue:Kt(ue,ge,Fe,Ie)}function qt(ue){return _typeof(ue)==="object"&&ue!==null&&Object.getPrototypeOf(ue)===Object.prototype}function sa(ue){return Array.isArray(ue)?[]:{}}var ra=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Hn(){for(var ue=arguments.length,ge=new Array(ue),Fe=0;Fe