You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

367 lines
1.3 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[292],{89489:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},59477:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},26227:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},49198:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},41464:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},87169:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},52671:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},8657:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},56082:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},33853:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},12893:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},15075:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},32134:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},43531:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},38819:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ve,We){return de.createElement(ze.Z,(0,b.Z)({},Ve,{ref:We,icon:Ae}))},le=de.forwardRef(Me),st=le},88010:function(Qt,Gt){"use strict";Gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},43809:function(Qt,Gt){"use strict";Gt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},7761:function(Qt,Gt){"use strict";Gt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},84287:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Me=(et,Ve,We)=>Ve in et?de(et,Ve,{enumerable:!0,configurable:!0,writable:!0,value:We}):et[Ve]=We,le=(et,Ve)=>{for(var We in Ve||(Ve={}))Ae.call(Ve,We)&&Me(et,We,Ve[We]);if(Be)for(var We of Be(Ve))ze.call(Ve,We)&&Me(et,We,Ve[We]);return et};const st=et=>React.createElement("svg",le({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},et),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},86087:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Me=(et,Ve,We)=>Ve in et?de(et,Ve,{enumerable:!0,configurable:!0,writable:!0,value:We}):et[Ve]=We,le=(et,Ve)=>{for(var We in Ve||(Ve={}))Ae.call(Ve,We)&&Me(et,We,Ve[We]);if(Be)for(var We of Be(Ve))ze.call(Ve,We)&&Me(et,We,Ve[We]);return et};const st=et=>React.createElement("svg",le({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},et),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},74413:function(){"use strict";function Qt(se,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=se,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(Qt.prototype,"name",{get:function(){return this._name},set:function(se){if(typeof se!="string"||se==="")throw new Error("Shape name must be a valid string.");this._name=se}}),Object.defineProperty(Qt.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(se){if(typeof se!="number"||isNaN(se))throw new Error("The default value must be a real number, not: "+se);this._defaultValue=se}}),Object.defineProperty(Qt.prototype,"minimum",{get:function(){return this._minimum},set:function(se){if(typeof se!="number"||isNaN(se))throw new Error("Minimum must be a real number, not: "+se);this._minimum=se}}),Object.defineProperty(Qt.prototype,"maximum",{get:function(){return this._maximum},set:function(se){if(typeof se!="number"||isNaN(se))throw new Error("Maximum must be a real number, not: "+se);this._maximum=se}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(se,E){var a=go.Shape._FigureParameters[se];return a?a[E]:null},go.Shape.setFigureParameter=function(se,E,a){if(!(a instanceof Qt))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[se];x||(x=[],go.Shape._FigureParameters[se]=x),x[E]=a};var Gt=[];function ee(se,E){var a=Gt.pop();return a===void 0?new go.Point(se,E):(a.x=se,a.y=E,a)}function b(){var se=Gt.pop();return se===void 0?new go.Point:se}function de(se){Gt.push(se)}function Be(se,E,a,x,y,z,ne,re,ue){ue||(ue=new go.Point);var ie=se-a,ve=y-ne,be=NaN,je=NaN;if(ie===0)if(ve===0)se===a&&(be=se,je=E);else{var De=(z-re)/ve,He=z-De*y;be=se,je=De*be+He}else if(ve===0){var he=(E-x)/ie,Xe=E-he*se;be=y,je=he*be+Xe}else{var he=(E-x)/ie,De=(z-re)/ve,Xe=E-he*se,He=z-De*y;be=(He-Xe)/(he-De),je=he*be+Xe}return ue.x=be,ue.y=je,ue}function Ae(se,E,a,x,y,z,ne,re,ue,ie,ve,be,je,De){var He=1-ue,he=ue,Xe=se*He+a*he,Ke=E*He+x*he,St=a*He+y*he,Le=x*He+z*he,ot=y*He+ne*he,lt=z*He+re*he,gt=Xe*He+St*he,ft=Ke*He+Le*he,ln=St*He+ot*he,xt=Le*He+lt*he,nn=gt*He+ln*he,En=ft*He+xt*he;ie.x=Xe,ie.y=Ke,ve.x=gt,ve.y=ft,be.x=nn,be.y=En,je.x=ln,je.y=xt,De.x=ot,De.y=lt}var ze=new go.Spot(.156,.156),Me=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Qt("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*le,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(se,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(se,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(se,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(se,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(se,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(se,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=ze,y.spot2=Me,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(se,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(se,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,le*E,0,E,(1-le)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,le*a,(1-le)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(se,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,le*a,le*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(se,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-le)*E,0,0,(1-le)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(se,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Qt("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Qt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)?x=10:x<-E?x=-E:x>E&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.setFigureParameter("Trapezoid1",0,new Qt("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Qt("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)?x=20:x<-E?x=-E/2:x>E&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}}),go.Shape.setFigureParameter("ManualOperation",0,new Qt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)?x=10:x<-E?x=-E/2:x>E&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y<E/2&&z.setSpots(y/E,0,(E-y)/E,1),z}});var st=[];function et(){var se=st.pop();return se===void 0?[]:se}function Ve(se){se.length=0,st.push(se)}function We(se){for(var E=et(),a=.5,x=.5,y=Math.PI*1.5,z=0,ne=0;ne<se;ne++)z=2*Math.PI/se*ne+y,E[ne]=new go.Point(x+a*Math.cos(z),x+a*Math.sin(z));return E.push(E[0]),E}function Je(se){var E=Ye(se),a=et();a[0]=E[0];for(var x=1,y=1;x<E.length;x+=2,y+=3)a[y]=E[x],a[y+1]=E[x],a[y+2]=E[x+1];return Ve(E),a}function Ye(se){for(var E=We(se),a=et(),x=Math.floor(E.length/2),y=E.length-1,z=se%2===0?2:1,ne=0;ne<y;ne++){var re=E[ne],ue=E[ne+1],ie=E[(x+ne-1)%y],ve=E[(x+ne+z)%y];a[ne*2]=re,a[ne*2+1]=Be(re.x,re.y,ie.x,ie.y,ue.x,ue.y,ve.x,ve.y,new go.Point)}return a[a.length]=a[0],Ve(E),a}go.Shape.defineFigureGenerator("Pentagon",function(se,E,a){var x=We(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<5;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(se,E,a){var x=We(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<6;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(se,E,a){var x=We(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<7;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(se,E,a){var x=We(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<8;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(se,E,a){var x=We(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<9;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(se,E,a){var x=We(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<10;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(se,E,a){var x=We(12),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<12;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(se,E,a){var x=Ye(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<10;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(se,E,a){var x=Ye(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<12;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(se,E,a){var x=Ye(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<14;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(se,E,a){var x=Ye(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<16;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(se,E,a){var x=Ye(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<18;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(se,E,a){var x=Ye(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<20;ne++)z.add(new go.PathSegment(go.PathSegment.Line,x[ne].x*E,x[ne].y*a));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*E,x[0].y*a).close()),Ve(x),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(se,E,a){var x=Je(5),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<x.length;ne+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ne+2].x*E,x[ne+2].y*a,x[ne].x*E,x[ne].y*a,x[ne+1].x*E,x[ne+1].y*a));return z.segments.last().close(),Ve(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(se,E,a){var x=Je(6),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<x.length;ne+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ne+2].x*E,x[ne+2].y*a,x[ne].x*E,x[ne].y*a,x[ne+1].x*E,x[ne+1].y*a));return z.segments.last().close(),Ve(x),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(se,E,a){var x=Je(7),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<x.length;ne+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ne+2].x*E,x[ne+2].y*a,x[ne].x*E,x[ne].y*a,x[ne+1].x*E,x[ne+1].y*a));return z.segments.last().close(),Ve(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(se,E,a){var x=Je(8),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<x.length;ne+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ne+2].x*E,x[ne+2].y*a,x[ne].x*E,x[ne].y*a,x[ne+1].x*E,x[ne+1].y*a));return z.segments.last().close(),Ve(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(se,E,a){var x=Je(9),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<x.length;ne+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ne+2].x*E,x[ne+2].y*a,x[ne].x*E,x[ne].y*a,x[ne+1].x*E,x[ne+1].y*a));return z.segments.last().close(),Ve(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(se,E,a){var x=Je(10),y=new go.Geometry,z=new go.PathFigure(x[0].x*E,x[0].y*a,!0);y.add(z);for(var ne=1;ne<x.length;ne+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ne+2].x*E,x[ne+2].y*a,x[ne].x*E,x[ne].y*a,x[ne+1].x*E,x[ne+1].y*a));return z.segments.last().close(),Ve(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new Qt("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Qt("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(se,E,a){var x=se?se.parameter1:NaN,y=se?se.parameter2:NaN;isNaN(x)&&(x=8),isNaN(y)&&(y=8);var z=new go.Geometry,ne=new go.PathFigure(0,0,!0);return z.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x<E/2&&y<a/2&&(ne.add(new go.PathSegment(go.PathSegment.Move,x,y)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a-y)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,a-y)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,y).close())),z.setSpots(0,0,1,1,x,y,-x,-y),z}),go.Shape.setFigureParameter("Ring",0,new Qt("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var y=E/2,z=new go.Geometry,ne=new go.PathFigure(E,E/2,!0);z.add(ne),ne.add(new go.PathSegment(go.PathSegment.Arc,0,360,y,y,y,y).close());var re=Math.max(y-x,0);return re>0&&(ne.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),ne.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=ze,z.spot2=Me,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(se,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Qt("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Qt("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(se,E,a){var x=se?se.parameter1:NaN,y=se?se.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var ne=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,ne,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(se,E,a){var x=le/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Qt("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Qt("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new Qt("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(se,E,a){var x=se?se.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,ne=a/2,re=Math.atan2(a,E),ue=x-Math.min(Math.cos(re)*x/2,z),ie=x-Math.min(Math.sin(re)*x/2,ne),y=new go.Geometry,ve=new go.PathFigure(ue,0,!0);return y.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),ve.add(new go.PathSegment(go.PathSegment.Line,E-ue,0)),ve.add(new go.PathSegment(go.PathSegment.Line,E,ie)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*E,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,E,a-ie)),ve.add(new go.PathSegment(go.PathSegment.Line,E-ue,a)),ve.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),ve.add(new go.PathSegment(go.PathSegment.Line,ue,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,a-ie)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ie).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new Qt("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new Qt("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new Qt("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,le*E,0,E,(.5-le/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+le/2)*a,le*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,ne=.3,re=0,ue=z*le;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ue+re)*a,(.5-ue+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ue+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ue+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ue+re)*a,(.5+ue+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ue+ne)*E,(.5-z+re)*a,(.5-z+ne+.05)*E,(.5-ue+re-.02)*a)),z=.2,ne=0,re=-.3,ue=z*le,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ue+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ue+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ue+re)*a,(.5+ue+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ue+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ue+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ue+re)*a,(.5-ue+ne)*E,(.5+z+re)*a)),z=.2,ne=-.3,re=0,ue=z*le,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne-.05)*E,(.5-ue+re-.02)*a,(.5+ue+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ue+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ue+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ue+re)*a,(.5-ue+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ue+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ue+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,ne=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(ne+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ne,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((ne+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ne,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(se,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(se,E,a){var x=new go.Geometry,y=le*.5,z=.5,ne=.5,re=.5,ue=new go.PathFigure(ne*E,(re-z)*a);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),z=.4,y=le*.4;var ie=b(),ve=b(),be=b(),je=b();Ae(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.42,ie,ve,be,je,je);var De=b(),He=b(),he=b();Ae(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.58,je,je,he,De,He);var Xe=b(),Ke=b(),St=b();Ae(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.42,Xe,Ke,St,je,je);var Le=b(),ot=b(),lt=b();return Ae(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.58,je,je,lt,Le,ot),ue.add(new go.PathSegment(go.PathSegment.Move,lt.x*E,lt.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,Le.x*E,Le.y*a,ot.x*E,ot.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,be.x*E,be.y*a,ie.x*E,ie.y*a,ve.x*E,ve.y*a)),ue.add(new go.PathSegment(go.PathSegment.Line,lt.x*E,lt.y*a).close()),ue.add(new go.PathSegment(go.PathSegment.Move,St.x*E,St.y*a)),ue.add(new go.PathSegment(go.PathSegment.Line,he.x*E,he.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,De.x*E,De.y*a,He.x*E,He.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,St.x*E,St.y*a,Xe.x*E,Xe.y*a,Ke.x*E,Ke.y*a).close()),de(ie),de(ve),de(be),de(je),de(De),de(He),de(he),de(Xe),de(Ke),de(St),de(Le),de(ot),de(lt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Qt("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(se,E,a){var x=new go.Geometry,y=le*.4,z=.4,ne=.5,re=.5,ue=b(),ie=b(),ve=b(),be=b(),je=new go.PathFigure((ne-z)*E,re*a,!1);x.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),Ae(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.44,ve,be,ie,ue,ue),je.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,ve.x*E,ve.y*a,be.x*E,be.y*a));var De=ee(ie.x,ie.y);Ae(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.56,ue,ue,ie,ve,be);var He=ee(ie.x,ie.y);je.add(new go.PathSegment(go.PathSegment.Line,(De.x*.1+.95*.9)*E,De.y*.1*a)),je.add(new go.PathSegment(go.PathSegment.Line,.85*E,De.y*.1*a)),je.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),je.add(new go.PathSegment(go.PathSegment.Line,E,0)),je.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),je.add(new go.PathSegment(go.PathSegment.Line,(He.x*.1+.9)*E,.15*a)),je.add(new go.PathSegment(go.PathSegment.Line,(He.x*.1+.9)*E,(He.y*.1+.05*.9)*a)),je.add(new go.PathSegment(go.PathSegment.Line,He.x*E,He.y*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,ve.x*E,ve.y*a,be.x*E,be.y*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),z=.35,y=le*.35;var he=new go.PathFigure(ne*E,(re-z)*a,!1);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a));var Xe=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(Xe),de(ue),de(ie),de(ve),de(be),de(De),de(He),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(se,E,a){var x=new go.Geometry,y=.375,z=0,ne=-.125,re=y*le,ue=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a,(.5+re+z)*E,(.5-y+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,(.5+y+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,ne=-.125,re=y*le;var ue=new go.PathFigure((1-.5+y+z)*E,(.5+ne)*a,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a,(.5+re+z)*E,(.5+y+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a,(.5-re+z)*E,(.5-y+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a));var ue=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);return x.add(ue),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(se,E,a){var x=se?se.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(se,E,a){var x=se?se.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(se,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(se,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(se,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Qt("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Qt("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.3);var y=se?se.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,ne=(.5-y/2)*a,re=(.5+y/2)*a,ue=new go.Geometry,ie=new go.PathFigure(0,ne,!0);ue.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,re)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ue.spot1=new go.Spot(0,ne/a);var ve=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ue.spot2=new go.Spot(ve.x,ve.y),de(ve),ue}),go.Shape.setFigureParameter("Arrow2",0,new Qt("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Qt("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=se?se.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,ne=(a-y)/2,re=ne+y,ue=new go.Geometry,ie=new go.PathFigure(0,ne,!0);ue.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,re)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ue.spot1=new go.Spot(0,ne/a);var ve=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ue.spot2=new go.Spot(ve.x,ve.y),de(ve),ue}),go.Shape.defineFigureGenerator("Chevron",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Qt("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ue=Be(0,.5,.3,0,0,y/a,.1,y/a,b());return ne.spot1=new go.Spot(ue.x,ue.y),ue=Be(.7,1,1,.5,0,z/a,1,z/a,ue),ne.spot2=new go.Spot(ue.x,ue.y),de(ue),ne}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Qt("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Qt("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=40);var y=se?se.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ue=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ue=a):(z=0,ne=a,re=0,ue=a));var ie=new go.Geometry,ve=new go.PathFigure(E,.5*a,!0);ie.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,ue)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*E,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*E,ue)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var be=Be(0,.5,.3,re/a,0,z/a,1,z/a,b());return ie.spot1=new go.Spot(be.x,be.y),be=Be(.7,ue/a,1,.5,0,ne/a,1,ne/a,be),ie.spot2=new go.Spot(be.x,be.y),de(be),ie}),go.Shape.setFigureParameter("IBeamArrow",0,new Qt("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(0,y/a);var ue=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ue.x,ue.y),de(ue),ne}),go.Shape.setFigureParameter("IBeamArrow2",0,new Qt("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Qt("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=40);var y=se?se.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ue=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ue=a):(z=0,ne=a,re=0,ue=a));var ie=new go.Geometry,ve=new go.PathFigure(E,.5*a,!0);ie.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,ue)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*E,ue)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ue)),ve.add(new go.PathSegment(go.PathSegment.Line,0,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ie.spot1=new go.Spot(0,z/a);var be=Be(.7,ue/a,1,.5,0,ne/a,1,ne/a,b());return ie.spot2=new go.Spot(be.x,be.y),de(be),ie}),go.Shape.setFigureParameter("Pointer",0,new Qt("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var ne=Be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),de(ne),y}),go.Shape.setFigureParameter("RoundedPointer",0,new Qt("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var ne=Be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),de(ne),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new Qt("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,.3);var ue=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ue.x,ue.y),de(ue),ne}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Qt("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,y/a);var ue=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ue.x,ue.y),de(ue),ne}),go.Shape.setFigureParameter("SquareArrow",0,new Qt("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(se,E,a){var x=new go.Geometry,y=le*.5,z=le*.1,ne=new go.PathFigure(0,.9*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=le*.5,ne=new go.PathFigure(0,x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,le*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,le*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-le*x,(.5+z)*E,1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-le*x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-le*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-le*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=le*.5,ne=new go.PathFigure(0,a-x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,le*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,le*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-le*x,(.5+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-le*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-le*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-le*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=le*.5,ne=new go.PathFigure(x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-le*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-le*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,le*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,le*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+le*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+le*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=le*.5,ne=new go.PathFigure(E-x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-le*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-le*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,le*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,le*x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-le*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-le*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(se,E,a){var x=new go.Geometry,y=.2,z=.1,ne=le*y,re=le*z,ue=.5,ie=.1,ve=new go.PathFigure(ue*E,(ie+z)*a,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ue-y)*E,ie*a,(ue-ne)*E,(ie+z)*a,(ue-y)*E,(ie+re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-z)*a,(ue-y)*E,(ie-re)*a,(ue-ne)*E,(ie-z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ue+y)*E,ie*a,(ue+ne)*E,(ie-z)*a,(ue+y)*E,(ie-re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+z)*a,(ue+y)*E,(ie+re)*a,(ue+ne)*E,(ie+z)*a));var be=.05,je=le*be;ue=.05,ie=.25;var De=new go.PathFigure(.5*E,.2*a,!0);return x.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ue=.95,ie=.25,De.add(new go.PathSegment(go.PathSegment.Bezier,(ue+be)*E,ie*a,(ue+je)*E,(ie-be)*a,(ue+be)*E,(ie-je)*a)),De.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),De.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),De.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),be=.025,je=le*be,ue=.825,ie=.35,De.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-be)*a,(ue+be)*E,(ie-je)*a,(ue+je)*E,(ie-be)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue-be)*E,ie*a,(ue-je)*E,(ie-be)*a,(ue-be)*E,(ie-je)*a)),De.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),De.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),De.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),be=.05,je=le*be,ue=.5,ie=.7,De.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-be)*a,(ue+be)*E,(ie-je)*a,(ue+je)*E,(ie-be)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue-be)*E,ie*a,(ue-je)*E,(ie-be)*a,(ue-be)*E,(ie-je)*a)),De.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),De.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),De.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),be=.025,je=le*be,ue=.175,ie=.35,De.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-be)*a,(ue+be)*E,(ie-je)*a,(ue+je)*E,(ie-be)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue-be)*E,ie*a,(ue-je)*E,(ie-be)*a,(ue-be)*E,(ie-je)*a)),De.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),De.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),De.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),be=.05,je=le*be,ue=.05,ie=.25,De.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-be)*a,(ue-be)*E,(ie-je)*a,(ue-je)*E,(ie-be)*a)),De.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Qt("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(se,E,a){var x=se?se.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(se,E,a){var x=new go.Geometry,y=le*.5,z=le*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(se,E,a){var x=new go.Geometry,y=le*.5,z=le*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=le*.2,ne=new go.PathFigure(0,.2*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(se,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var ne=new go.PathFigure(E,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN,z=se?se.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(se,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ne=le*.5,re=.5,ue=new go.PathFigure(E,re*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+ne)*a,(re+ne)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-ne)*E,a,0,(re+ne)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-ne)*a,(re-ne)*E,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+ne)*E,0,E,(re-ne)*a));var ie=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ie.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(se,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(se,E,a){var x=new go.Geometry,y=le*.5,z=.5,ne=new go.PathFigure(.5*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(se,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(se,E,a){var x=new go.Geometry,y=le*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(se,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN,z=se?se.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN,z=se?se.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure((1-y)*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(se,E,a){var x=new go.Geometry,y=se?se.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(se,E,a){var x=new go.Geometry,y=le*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(se,E,a){var x=new go.Geometry,y=le*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ue=new go.PathFigure(.8*E,.75*a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(se,E,a){var x=new go.Geometry,y=le*.1,z=.1,ne=.9,re=.5,ue=new go.PathFigure(.8*E,.5*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,a)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ie=new go.PathFigure((ne+z)*E,re*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(se,E,a){var x=new go.Geometry,y=le*.5,z=le*.4,ne=le*.1,re=.1,ue=.9,ie=.5,ve=new go.PathFigure(.8*E,.5*a,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var be=new go.PathFigure((ue+re)*E,ie*a,!0);return x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+re)*a,(ue+re)*E,(ie+ne)*a,(ue+ne)*E,(ie+re)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*E,ie*a,(ue-ne)*E,(ie+re)*a,(ue-re)*E,(ie+ne)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-re)*a,(ue-re)*E,(ie-ne)*a,(ue-ne)*E,(ie-re)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*E,ie*a,(ue+ne)*E,(ie-re)*a,(ue+re)*E,(ie-ne)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(se,E,a){var x=new go.Geometry,y=.5,z=le*y,ne=0,re=.5,ue=new go.PathFigure(.8*E,.5*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=le*.1,ne=.9,re=.5;var ie=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(se,E,a){var x=new go.Geometry,y=.5,z=le*y,ne=0,re=.5,ue=new go.PathFigure(0,0,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(ne+z+z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(se,E,a){var x=new go.Geometry,y=.5,z=le*y,ne=.2,re=.5,ue=new go.PathFigure(.1*E,0,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=le*.1,ne=.9,re=.5;var ve=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(se,E,a){var x=new go.Geometry,y=.5,z=le*y,ne=.2,re=.5,ue=new go.PathFigure(.1*E,0,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.2*E,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z)*E,(re-y)*a,.9*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(se,E,a){var x=new go.Geometry,y=le*.1,z=.1,ne=.1,re=.5,ue=new go.PathFigure((ne-y*.5)*E,a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.3,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.5,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.9,ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y*.5)*E,a,(ne+z)*E,0,(ne+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(se,E,a){var x=new go.Geometry,y=le*.5,z=.5,ne=.5,re=.5,ue=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Move,(ne-z+.1)*E,re*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z-.1)*E,re*a,ne*E,(re-z)*a,ne*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(se,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var ne=le*.8,re=.8,ue=0,ie=.5,ve=(y-E)/2,be=(z-a)/2,je=new go.PathFigure(ue*E+ve,(ie+re)*a+be,!0);x.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*E+ve,ie*a+be,(ue-ne)*E+ve,(ie+re)*a+be,(ue-re)*E+ve,(ie+ne)*a+be)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie-re)*a+be,(ue-re)*E+ve,(ie-ne)*a+be,(ue-ne)*E+ve,(ie-re)*a+be)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re+ne*.5)*E+ve,ie*a+be,ue*E+ve,(ie-re)*a+be,(ue-re+ne*.5)*E+ve,(ie-ne)*a+be)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie+re)*a+be,(ue-re+ne*.5)*E+ve,(ie+ne)*a+be,ue*E+ve,(ie+re)*a+be).close()),ne=le*.4,re=.4,ue=.2,ie=.5;var De=new go.PathFigure(ue*E+ve,(ie+re)*a+be,!0);x.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*E+ve,ie*a+be,(ue-ne)*E+ve,(ie+re)*a+be,(ue-re)*E+ve,(ie+ne)*a+be)),De.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie-re)*a+be,(ue-re)*E+ve,(ie-ne)*a+be,(ue-ne)*E+ve,(ie-re)*a+be)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re+ne*.5)*E+ve,ie*a+be,ue*E+ve,(ie-re)*a+be,(ue-re+ne*.5)*E+ve,(ie-ne)*a+be)),De.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie+re)*a+be,(ue-re+ne*.5)*E+ve,(ie+ne)*a+be,ue*E+ve,(ie+re)*a+be).close()),ne=le*.2,re=.2,ue=.5,ie=.5;var He=new go.PathFigure((ue-re)*E+ve,ie*a+be,!0);x.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie-re)*a+be,(ue-re)*E+ve,(ie-ne)*a+be,(ue-ne)*E+ve,(ie-re)*a+be)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*E+ve,ie*a+be,(ue+ne)*E+ve,(ie-re)*a+be,(ue+re)*E+ve,(ie-ne)*a+be)),He.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie+re)*a+be,(ue+re)*E+ve,(ie+ne)*a+be,(ue+ne)*E+ve,(ie+re)*a+be)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*E+ve,ie*a+be,(ue-ne)*E+ve,(ie+re)*a+be,(ue-re)*E+ve,(ie+ne)*a+be)),ne=le*.4,re=.4,ue=.8,ie=.5;var he=new go.PathFigure(ue*E+ve,(ie-re)*a+be,!0);x.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*E+ve,ie*a+be,(ue+ne)*E+ve,(ie-re)*a+be,(ue+re)*E+ve,(ie-ne)*a+be)),he.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie+re)*a+be,(ue+re)*E+ve,(ie+ne)*a+be,(ue+ne)*E+ve,(ie+re)*a+be)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re-ne*.5)*E+ve,ie*a+be,ue*E+ve,(ie+re)*a+be,(ue+re-ne*.5)*E+ve,(ie+ne)*a+be)),he.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie-re)*a+be,(ue+re-ne*.5)*E+ve,(ie-ne)*a+be,ue*E+ve,(ie-re)*a+be).close()),ne=le*.8,re=.8,ue=1,ie=.5;var Xe=new go.PathFigure(ue*E+ve,(ie-re)*a+be,!0);return x.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*E+ve,ie*a+be,(ue+ne)*E+ve,(ie-re)*a+be,(ue+re)*E+ve,(ie-ne)*a+be)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie+re)*a+be,(ue+re)*E+ve,(ie+ne)*a+be,(ue+ne)*E+ve,(ie+re)*a+be)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re-ne*.5)*E+ve,ie*a+be,ue*E+ve,(ie+re)*a+be,(ue+re-ne*.5)*E+ve,(ie+ne)*a+be)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+ve,(ie-re)*a+be,(ue+re-ne*.5)*E+ve,(ie-ne)*a+be,ue*E+ve,(ie-re)*a+be).close()),x}),go.Shape.defineFigureGenerator("Email",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var ne=new go.PathFigure(.6*E,a,!0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(se,E,a){var x=new go.Geometry,y=le*.4,z=.4,ne=.5,re=.5,ue=b(),ie=b(),ve=b(),be=b();Ae(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ue,ue,ie,ve,be);var je=ee(ie.x,ie.y),De=new go.PathFigure(ie.x*E,ie.y*a,!0);x.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,ve.x*E,ve.y*a,be.x*E,be.y*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),Ae(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,ve,be,ie,ue,ue),De.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,ve.x*E,ve.y*a,be.x*E,be.y*a)),y=le*.3,z=.3,Ae(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,ve,be,ie,ue,ue),De.add(new go.PathSegment(go.PathSegment.Line,ie.x*E,ie.y*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,be.x*E,be.y*a,ve.x*E,ve.y*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Ae(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ue,ue,ie,ve,be),De.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,be.x*E,be.y*a,ve.x*E,ve.y*a).close());var De=new go.PathFigure(.45*E,0,!0);return x.add(De),De.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),De.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),De.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),de(ue),de(ie),de(ve),de(be),de(je),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(ne,re,ue){ne.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ue)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ue)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ue)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ue)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(se,E,a){var x=new go.Geometry,y=.5,z=0,ne=0,re=y*le,ue=.4*Math.SQRT2/2+.5,ie=.5-.5*Math.SQRT2/2,ve=1,be=.5,je=.5,De=0,He=new go.PathFigure(ue*E,(1-ie)*a,!1);return x.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,ve*E,be*a,ve*E,.7*a,ve*E,be*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,(je+z)*E,(De+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,.9*a)),He.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),He.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),He.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var ne=.5-.285,re=.5,ue=ne,ie=Math.PI/4,ve=4*(1-Math.cos(ie))/(3*Math.sin(ie)),be=ve*.5,je=ne,De=ne,He=ve*je,he=ve*De;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-je)*E,ue*a,(re-(He+je)/2)*E,(ue+(De+he)/2)*a,(re-je)*E,(ue+he)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ue-De)*a,(re-je)*E,(ue-he)*a,(re-He)*E,(ue-De)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+je)*E,ue*a,(re+He)*E,(ue-De)*a,(re+je)*E,(ue-he)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+je)*E,(ue+he)*a,(re+(He+je)/2)*E,(ue+(De+he)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Xe=new go.PathFigure(.2*E,a,!1);x.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Ke=new go.PathFigure(.8*E,a,!1);return x.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(.1*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var ne=new go.PathFigure(.675*E,.575*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(se,E,a){var x=new go.Geometry,y=.5,z=le*.5,ne=new go.PathFigure(E,y*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var ne=new go.PathFigure(0,.6*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var ne=.1,re=le*.1,ue=.2,ie=.9,ve=new go.PathFigure((ue-ne)*E,ie*a,!0);x.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-ne)*a,(ue-ne)*E,(ie-re)*a,(ue-re)*E,(ie-ne)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ne)*E,ie*a,(ue+re)*E,(ie-ne)*a,(ue+ne)*E,(ie-re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+ne)*a,(ue+ne)*E,(ie+re)*a,(ue+re)*E,(ie+ne)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ne)*E,ie*a,(ue-re)*E,(ie+ne)*a,(ue-ne)*E,(ie+re)*a).close()),ne=.1,re=le*.1,ue=.8,ie=.9;var be=new go.PathFigure((ue-ne)*E,ie*a,!0);return x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-ne)*a,(ue-ne)*E,(ie-re)*a,(ue-re)*E,(ie-ne)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue+ne)*E,ie*a,(ue+re)*E,(ie-ne)*a,(ue+ne)*E,(ie-re)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+ne)*a,(ue+ne)*E,(ie+re)*a,(ue+re)*E,(ie+ne)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ue-ne)*E,ie*a,(ue-re)*E,(ie+ne)*a,(ue-ne)*E,(ie+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var ne=new go.PathFigure(.5*E,.8*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ue=.1,ie=le*.1,ve=.1,be=.9,je=new go.PathFigure((ve-ue)*E,be*a,!0);x.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ve*E,(be-ue)*a,(ve-ue)*E,(be-ie)*a,(ve-ie)*E,(be-ue)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ue)*E,be*a,(ve+ie)*E,(be-ue)*a,(ve+ue)*E,(be-ie)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,ve*E,(be+ue)*a,(ve+ue)*E,(be+ie)*a,(ve+ie)*E,(be+ue)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ue)*E,be*a,(ve-ie)*E,(be+ue)*a,(ve-ue)*E,(be+ie)*a)),ue=.1,ie=le*.1,ve=.4,be=.9;var De=new go.PathFigure((ve-ue)*E,be*a,!0);return x.add(De),De.add(new go.PathSegment(go.PathSegment.Bezier,ve*E,(be-ue)*a,(ve-ue)*E,(be-ie)*a,(ve-ie)*E,(be-ue)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ue)*E,be*a,(ve+ie)*E,(be-ue)*a,(ve+ue)*E,(be-ie)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,ve*E,(be+ue)*a,(ve+ue)*E,(be+ie)*a,(ve+ie)*E,(be+ue)*a)),De.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ue)*E,be*a,(ve-ie)*E,(be+ue)*a,(ve-ue)*E,(be+ie)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var ne=new go.PathFigure(.55*E,.4*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var ve=.05,be=le*.05,je=.175,De=.95,re=new go.PathFigure((je-ve)*E,De*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De-ve)*a,(je-ve)*E,(De-be)*a,(je-be)*E,(De-ve)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(je+ve)*E,De*a,(je+be)*E,(De-ve)*a,(je+ve)*E,(De-be)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De+ve)*a,(je+ve)*E,(De+be)*a,(je+be)*E,(De+ve)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(je-ve)*E,De*a,(je-be)*E,(De+ve)*a,(je-ve)*E,(De+be)*a));var ve=.05,be=le*.05,je=.375,De=.95,ue=new go.PathFigure((je-ve)*E,De*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De-ve)*a,(je-ve)*E,(De-be)*a,(je-be)*E,(De-ve)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(je+ve)*E,De*a,(je+be)*E,(De-ve)*a,(je+ve)*E,(De-be)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De+ve)*a,(je+ve)*E,(De+be)*a,(je+be)*E,(De+ve)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(je-ve)*E,De*a,(je-be)*E,(De+ve)*a,(je-ve)*E,(De+be)*a));var ve=.05,be=le*.05,je=.625,De=.95,ie=new go.PathFigure((je-ve)*E,De*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De-ve)*a,(je-ve)*E,(De-be)*a,(je-be)*E,(De-ve)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(je+ve)*E,De*a,(je+be)*E,(De-ve)*a,(je+ve)*E,(De-be)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De+ve)*a,(je+ve)*E,(De+be)*a,(je+be)*E,(De+ve)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(je-ve)*E,De*a,(je-be)*E,(De+ve)*a,(je-ve)*E,(De+be)*a));var ve=.05,be=le*.05,je=.825,De=.95,He=new go.PathFigure((je-ve)*E,De*a,!0);x.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De-ve)*a,(je-ve)*E,(De-be)*a,(je-be)*E,(De-ve)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,(je+ve)*E,De*a,(je+be)*E,(De-ve)*a,(je+ve)*E,(De-be)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,je*E,(De+ve)*a,(je+ve)*E,(De+be)*a,(je+be)*E,(De+ve)*a)),He.add(new go.PathSegment(go.PathSegment.Bezier,(je-ve)*E,De*a,(je-be)*E,(De+ve)*a,(je-ve)*E,(De+be)*a).close());var he=new go.PathFigure(0,a,!1);return x.add(he),he.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(.15*E,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ue=le*.05,ie=.35,ve=.775,be=new go.PathFigure((ie-re)*E,ve*a,!0);return x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ve-re)*a,(ie-re)*E,(ve-ue)*a,(ie-ue)*E,(ve-re)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ve*a,(ie+ue)*E,(ve-re)*a,(ie+re)*E,(ve-ue)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ve+re)*a,(ie+re)*E,(ve+ue)*a,(ie+ue)*E,(ve+re)*a)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ve*a,(ie-ue)*E,(ve+re)*a,(ie-re)*E,(ve+ue)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(se,E,a){var x=new go.Geometry,y=.3,z=le*.3,ne=.5,re=.7,ue=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ie=new go.PathFigure(0,.7*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(se,E,a){var x=new go.Geometry,y=.5,z=le*.5,ne=.5,re=.5,ue=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ie=new go.PathFigure(.15*E,.5*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(se,E,a){var x=new go.Geometry,y=.5,z=le*.5,ne=.5,re=.5,ue=new go.PathFigure((ne-y)*E,re*a,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),y=.05,z=le*.05,ne=.5,re=.8;var ie=new go.PathFigure((ne-y)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(se,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var ne=new go.PathFigure(.402*E,.85*a,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ue=new go.PathFigure(.5*E,.1*a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var ne=new go.PathFigure(E*.408,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ue=new go.PathFigure(E*.816,a,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ue.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ue.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var ne=new go.PathFigure(E*.055,.13*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ue=new go.PathFigure(E*1,0,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ue.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var ne=new go.PathFigure(E*.11,a*.1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ue=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(se,E,a){var x=new go.Geometry,y=8,z=y*le,ne=new go.PathFigure(y,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ue=new go.PathFigure(E*.83,a*1,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ie=new go.PathFigure(E*.78,a*.05,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(se,E,a){var x=se?se.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*le,z=a*.8,ne=new go.Geometry,re=new go.PathFigure(x,0,!0);return ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(ne.spot1=new go.Spot(0,0,y,y),ne.spot2=new go.Spot(1,.8,-y,-y)):(ne.spot1=go.Spot.TopLeft,ne.spot2=new go.Spot(1,.8)),ne}),go.Shape.defineFigureGenerator("Repeat",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(se,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var ne=new go.PathFigure(E*.28,a*.37,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(se,E,a){var x=new go.Geometry,y=15,z=y*le,ne=new go.PathFigure(E*.62,a*.475,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.4,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.5,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(se,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727: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 Qt={},Gt="5.0",ee={},b=null,de=!1,Be=!1,Ae=null,ze=!1,Me=null,le=null,st=0;st<arguments.length;st++){var et=arguments[st];if(et!==null)switch(typeof et){case"number":Gt=et.toFixed(1);break;case"string":et.match(new RegExp("^[0-9]\\.[0-9]+$"))?Gt=et:Ae=et;break;case"object":typeof et.is3D!="undefined"?b=et:ee=et;break;case"boolean":de=et,Be=!0;break}}b===null&&(b={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!Be&&(de=!0)),Ae!==null&&ee.id===void 0&&(ee.id=Ae);var Ve="",We="",Je=!1,Ye=null,se=null,E=null,a=!1,x=null,y=null,z=null,ne=null,re=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var ue=function($e){return parseFloat($e)>4?parseFloat($e):5};Qt.setHTML5Codebase=function($e,dt){le=$e,xt($e,dt)},Qt.setJavaCodebase=Qt.setJavaCodebaseVersion=Qt.isCompiledInstalled=Qt.setPreCompiledScriptPath=Qt.setPreCompiledResourcePath=function(){},Qt.setHTML5CodebaseVersion=function($e,dt){var on=parseFloat($e);if(on!==NaN&&on<5){console.log("The GeoGebra HTML5 codebase version "+on+" is deprecated. Using version latest instead.");return}Me=$e,ln($e,dt)},Qt.getHTML5CodebaseVersion=function(){return se},Qt.getParameters=function(){return ee},Qt.setFontsCSSURL=function($e){ne=$e},Qt.setGiacJSURL=function($e){},Qt.setJNLPFile=function($e){Ve=$e},Qt.setJNLPBaseDir=function($e){},Qt.inject=function(){function $e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var dt="auto",on=ee.id,Yn,Zt=!1,On=0;On<arguments.length;On++){var _e=arguments[On];typeof _e=="string"?(_e=_e.toLowerCase(),_e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?dt=_e:on=arguments[On]):typeof _e=="boolean"?Zt=_e:_e instanceof HTMLElement&&(Yn=_e)}ct();function ct(){if(!ze){setTimeout(ct,200);return}dt=gt(dt);var kt=Yn||document.getElementById(on);if(!kt){console.log("possibly bug on ajax loading? ");return}if(Qt.removeExistingApplet(kt,!1),ee.width===void 0&&kt.clientWidth&&(ee.width=kt.clientWidth),ee.height===void 0&&kt.clientHeight&&(ee.height=kt.clientHeight),!(ee.width&&ee.height)&&dt==="html5"&&(delete ee.width,delete ee.height),Ye=dt,dt==="screenshot")Ke(kt,ee);else{var mt=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?mt=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(mt=(!ie()||$e())&&ve()),mt?(Ye="screenshot",Le(kt,ee,Zt,dt)):Xe(kt,ee,Zt)}}};function ie(){try{return window.self!==window.top}catch($e){return!0}}function ve(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Qt.getViews=function(){return b},Qt.isJavaInstalled=function(){return!1};var be=function($e){var dt=function(On){var _e=JSON.parse(On),ct=function(It){return It.type=="G"||It.type=="E"},kt=_e.elements?_e.elements.filter(ct)[0]:_e;if(!kt||!kt.url){on();return}ee.fileName=kt.url,je(kt.settings||{}),b.is3D=!0;var mt="https://www.geogebra.org/images/";Qt.setPreviewImage(x||kt.previewUrl,mt+"GeoGebra_loading.png",mt+"applet_play.png"),$e()},on=function(){ee.onError&&ee.onError(),nn("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Yn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Zt="/materials/"+ee.material_id+"?scope=basic";De("https://"+Yn+"/api/proxy.php?path="+encodeURIComponent(Zt),dt,on)};function je($e){var dt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(on){$e[on]=!!$e[on]}),dt.forEach(function(on){ee[on]===void 0&&$e[on]!==void 0&&(ee[on]=$e[on])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function De($e,dt,on){var Yn=new XMLHttpRequest;Yn.open("GET",$e),Yn.onload=function(){dt(Yn.responseText)},Yn.onerror=on,Yn.send()}Qt.isHTML5Installed=function(){return!0},Qt.getLoadedAppletType=function(){return Ye},Qt.setPreviewImage=function($e,dt,on){x=$e,y=dt,z=on},Qt.removeExistingApplet=function($e,dt){var on;typeof $e=="string"&&($e=document.getElementById($e)),Ye=null;var Yn=null;for(on=0;on<$e.childNodes.length;on++){var Zt=$e.childNodes[on],On=Zt.className;On==="applet_screenshot"?dt?(Zt.style.display="block",Ye="screenshot"):Zt.style.display="none":On!=="applet_scaler prerender"&&($e.removeChild(Zt),Yn=On&&On.indexOf("appletParameters")!=-1?Zt.id:null,on--)}var _e=ee.id!==void 0?ee.id:Yn,ct=window[_e];ct&&typeof ct.getBase64=="function"&&(ct.remove(),window[_e]=null)},Qt.refreshHitPoints=function(){if(ue(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var $e=Qt.getAppletObject();return $e&&typeof $e.recalculateEnvironments=="function"?($e.recalculateEnvironments(),!0):!1},Qt.startAnimation=function(){var $e=Qt.getAppletObject();return $e&&typeof $e.startAnimation=="function"?($e.startAnimation(),!0):!1},Qt.stopAnimation=function(){var $e=Qt.getAppletObject();return $e&&typeof $e.stopAnimation=="function"?($e.stopAnimation(),!0):!1},Qt.getAppletObject=function(){var $e=ee.id!==void 0?ee.id:"ggbApplet";return window[$e]},Qt.resize=function(){};var He=function($e,dt,on){var Yn=document.createElement("param");Yn.setAttribute("name",dt),Yn.setAttribute("value",on),$e.appendChild(Yn)},he=function($e){return $e&&$e!=="false"},Xe=function($e,dt,on){ue(se)<=4.2&&(on=!0);var Yn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==se||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Yn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Zt=document.createElement("div");Zt.classList.add("appletParameters","notranslate");var On=dt.width,_e=dt.height;if(dt.disableAutoScale=dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():dt.disableAutoScale,dt.width!==void 0)if(ue(se)<=4.4)he(dt.showToolBar)&&(dt.height-=7),he(dt.showAlgebraInput)&&(dt.height-=37),dt.width<605&&he(dt.showToolBar)&&(dt.width=605,On=605);else{var ct=100;(he(dt.showToolBar)||he(dt.showMenuBar))&&(dt.hasOwnProperty("customToolBar")&&(dt.customToolbar=dt.customToolBar),ct=he(dt.showMenuBar)?245:155),On<ct&&(dt.width=ct,On=ct)}Zt.style.border="none",Zt.style.display="inline-block";for(var kt in dt)dt.hasOwnProperty(kt)&&kt!=="appletOnLoad"&&Zt.setAttribute("data-param-"+kt,dt[kt]);ne&&Zt.setAttribute("data-param-fontscssurl",ne),Qt.resize=function(){GGBAppletUtils.responsiveResize($e,dt)},window.addEventListener("resize",function(ke){Qt.resize()});var mt=typeof dt.appletOnLoad=="function"?dt.appletOnLoad:function(){};if(!on&&dt.width!==void 0){dt.hasOwnProperty("showSplash")||Zt.setAttribute("data-param-showSplash","false");var It=$e.querySelector(".applet_scaler.prerender"),ut=It!==null;if(ut)var at=It.querySelector(".ggb_preview");else{var at=lt(On,_e,dt.borderColor,!1);It=document.createElement("div"),It.className="applet_scaler",It.style.position="relative",It.style.display="block",It.style.width=On+"px",It.style.height=_e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(It,"66%"),ue(se)>=5?(dt.appletOnLoad=function(ke){var ht=$e.querySelector(".ggb_preview");ht&&ht.parentNode.removeChild(ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(It),window.GGBT_wsf_view&&$(window).trigger("resize"),mt(ke)},ut||It.appendChild(at)):Zt.appendChild(at),It.appendChild(Zt),ut||$e.appendChild(It),setTimeout(function(){Qt.resize()},1)}else{var Ie=document.createElement("div");Ie.className="applet_scaler",Ie.style.position="relative",Ie.style.display="block",Ie.appendChild(Zt),$e.appendChild(Ie),dt.appletOnLoad=function(ke){Qt.resize(),mt(ke)}}function fe(ke,ht){ht&&typeof ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ke,ht.appletOnLoad):renderGGBElement(ke),nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ht)}function qe(ke,ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ke,params:ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Sn){fe(Sn.article,Sn.params)}),html5AppletsToProcess=null)},ue(se)<5&&(ke.className+=" geogebraweb")):fe(ke,ht)}if(Yn){scriptLoadStarted=!0;for(var At=0;At<Zt.childNodes.length;At++){var Oe=Zt.childNodes[At].tagName;Oe==="TABLE"&&(Zt.removeChild(Zt.childNodes[At]),At--)}if(ggbHTML5LoadedScript!==null){var Ne=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ne!=null&&Ne.parentNode.removeChild(Ne)}var Ct=document.createElement("script"),tt=function(){qe(Zt,dt)};Ct.src=We+E,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=se,ggbHTML5LoadedScript=Ct.src,nn("GeoGebra HTML5 codebase loaded: '"+We+"'.",dt),!le&&(!Me||Me=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),tt()):We.requirejs?__webpack_require__.e(4184).then(function(){var ke=[__webpack_require__(74620)];tt.apply(null,ke)}.bind(this)).catch(__webpack_require__.oe):(Ct.onload=tt,$e.appendChild(Ct))}else qe(Zt,dt);dt.height=_e,dt.width=On},Ke=function($e,dt,on){var Yn=lt(dt.width,dt.height,dt.borderColor,on),Zt=document.createElement("div");Zt.style.position="relative",Zt.style.display="block",Zt.style.width=dt.width+"px",Zt.style.height=dt.height+"px",Zt.className="applet_screenshot applet_scaler"+(on?" applet_screenshot_play":""),Zt.appendChild(Yn);var On=GGBAppletUtils.getScale(dt,$e,on);on?($e.appendChild(ot()),window.GGBT_wsf_view||($e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Zt,"66%"),$e.appendChild(Zt),On!==1&&!isNaN(On)&&(GGBAppletUtils.scaleElement(Zt,On),Zt.style.width=dt.width+"px",Zt.style.height=dt.height+"px",Zt.parentNode.style.width=dt.width*On+"px",Zt.parentNode.style.height=dt.height*On+"px"),Qt.resize=function(){St($e,Yn,Zt,on)},window.addEventListener("resize",function(_e){Qt.resize()}),Qt.resize()};function St($e,dt,on,Yn){if($e.contains(dt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if($e.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition($e)}var Zt=GGBAppletUtils.getScale(ee,$e,Yn);on.parentNode!==null&&(!isNaN(Zt)&&Zt!==1?(GGBAppletUtils.scaleElement(on,Zt),on.parentNode.style.width=ee.width*Zt+"px",on.parentNode.style.height=ee.height*Zt+"px"):(GGBAppletUtils.scaleElement(on,1),on.parentNode.style.width=ee.width+"px",on.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter($e),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Qt.onExitFullscreen=function($e,dt){dt.appendChild($e)};var Le=function($e,dt,on,Yn){Ke($e,dt,!0);for(var Zt=function(){var ct=[];for(_e=0;_e<$e.childNodes.length;_e++)ct.push($e.childNodes[_e]);if(window.GGBT_wsf_view){var kt=window.GGBT_wsf_view.renderFullScreen($e,dt.id),mt=document.getElementById("fullscreencontainer"),It=jQuery($e).find(".fullscreencontent");It.length>0?(kt.remove(),It.attr("id","fullscreencontent").show(),jQuery(mt).append(It),window.dispatchEvent(new Event("resize"))):Xe(kt,dt,!1),window.GGBT_wsf_view.launchFullScreen(mt)}else Ye=Yn,Xe($e,dt,!1);if(!window.GGBT_wsf_view)for(_e=0;_e<ct.length;_e++)$e.removeChild(ct[_e])},On=$e.getElementsByClassName("ggb_preview_play"),_e=0;_e<On.length;_e++)On[_e].addEventListener("click",Zt,!1),On[_e].addEventListener("ontouchstart",Zt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload($e),ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ot=function(){var $e=document.createElement("div");if($e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var dt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',on=document.createElement("style");on.styleSheet?on.styleSheet.cssText=dt:on.appendChild(document.createTextNode(dt)),document.getElementsByTagName("head")[0].appendChild(on)}return $e},lt=function($e,dt,on,Yn){var Zt=document.createElement("div");Zt.className="ggb_preview",Zt.style.position="absolute",Zt.style.zIndex="90",Zt.style.width=$e-2+"px",Zt.style.height=dt-2+"px",Zt.style.top="0px",Zt.style.left="0px",Zt.style.overflow="hidden",Zt.style.backgroundColor="white";var On="lightgrey";on!==void 0&&(on==="none"?On="transparent":On=on),Zt.style.border="1px solid "+On;var _e=document.createElement("img");if(_e.style.position="relative",_e.style.zIndex="1000",_e.style.top="-1px",_e.style.left="-1px",x!==null&&_e.setAttribute("src",x),_e.style.opacity=.7,y!==null){var ct,kt,mt;if(!Yn){ct=document.createElement("img"),ct.style.position="absolute",ct.style.zIndex="1001",ct.style.opacity=1,_e.style.opacity=.3,kt=360,kt>$e/4*3&&(kt=$e/4*3),mt=kt/5.8,ct.setAttribute("src",y),ct.setAttribute("width",kt),ct.setAttribute("height",mt);var It=($e-kt)/2,ut=(dt-mt)/2;ct.style.left=It+"px",ct.style.top=ut+"px",Zt.appendChild(ct)}}return Zt.appendChild(_e),Zt},gt=function($e){return $e=$e.toLowerCase(),$e==="html5"||$e==="screenshot"?$e:"html5"},ft=["web","webSimple","web3d","tablet","tablet3d","phone"],ln=function($e,dt){if(se=$e,dt){xt(se,!0);return}var on=!de;if(on){var Yn=ue(se);!isNaN(Yn)&&Yn<4.4&&(on=!1)}var Zt,On;window.location.protocol.substr(0,4)==="http"?Zt=window.location.protocol:Zt="http:";var _e=se.indexOf("//");_e>0?On=se:_e===0?On=Zt+se:On="https://www.geogebra.org/apps/5.2.814.0/";for(var ct in ft)if(se.slice(ft[ct].length*-1)===ft[ct]||se.slice((ft[ct].length+1)*-1)===ft[ct]+"/"){xt(On,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&on&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!he(ee.showToolBar)&&!he(ee.showMenuBar)&&!he(ee.showAlgebraInput)&&!he(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?On+="webSimple/":On+="web3d/",xt(On,!1)},xt=function($e,dt){if($e.requirejs){We=$e;return}$e.slice(-1)!=="/"&&($e+="/"),We=$e,dt===null&&(dt=$e.indexOf("http")===-1),Je=dt,E="web.nocache.js",a=!1;var on=We.split("/");on.length>1&&(!dt&&on[on.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):ft.indexOf(on[on.length-2])>=0&&(E=on[on.length-2]+".nocache.js")),on=$e.split("/"),se=on[on.length-3],se.substr(0,4)==="test"?se=se.substr(4,1)+"."+se.substr(5,1):(se.substr(0,3)==="war"||se.substr(0,4)==="beta")&&(se="5.0");var Yn=parseFloat(se);Yn!==NaN&&Yn<5&&$e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yn+" is deprecated. Using version latest instead."),ln("5.0",dt))},nn=function($e,dt){window.console&&window.console.log&&(!dt||typeof dt.showLogging=="undefined"||dt.showLogging&&dt.showLogging!=="false")&&console.log($e)};ee.material_id!==void 0?be(En):En();function En(){var $e=Gt;Me!==null?$e=Me:parseFloat($e)<5&&($e="5.0"),ln($e,!1),le!==null&&xt(le,Je),ze=!0}return Qt},GGBAppletUtils=function(){"use strict";function Qt(){return window.GGBT_wsf_edit!==void 0}function Gt(ze,Me){Me!=1?(ze.style.transformOrigin="0% 0% 0px",ze.style.webkitTransformOrigin="0% 0% 0px",ze.style.transform="scale("+Me+","+Me+")",ze.style.webkitTransform="scale("+Me+","+Me+")",ze.style.maxWidth="initial",ze.querySelector(".ggb_preview")!==null&&(ze.querySelector(".ggb_preview").style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ze.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ze.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ze.style.transform="none",ze.style.webkitTransform="none")}function ee(ze,Me,le,st,et,Ve){var We=null;if(Ve!=null&&Ve!="")for(var Je=ze.parentNode;Je!=null;)if((" "+Je.className+" ").indexOf(" "+Ve+" ")>-1){We=Je;break}else Je=Je.parentNode;var Ye=0,se=0,E=0,a=0,x=0,y=0,z=0;if(We)Ye=We.offsetWidth,se=Math.max(st?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ye=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ye):(Ye=window.innerWidth,se=window.innerHeight,E=window.innerWidth),ze){var ne=ze.getBoundingClientRect();ne.left>0&&ne.left<=Ye&&(et===void 0||!et)&&(document.dir==="rtl"?(x=Ye-ne.width-ne.left,y=E<=480?10:30):(y=ne.left,x=E<=480?10:30),a=y+x)}if(ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=ze.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return ze&&((le===void 0||!le)&&Me>0&&Me+a<Ye?Ye=Me:Ye-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(se-=z)),{width:Ye,height:se}}function b(ze,Me,le,st,et){if(ze.isScreenshoGenerator)return 1;var Ve=st!==void 0&&st,We=ze.noScaleMargin!=null&&ze.noScaleMargin,Je=function(re){return re&&re!=="false"},Ye=Je(ze.autoHeight),se=ee(Me,ze.width,le,Ye,Ve&&window.GGBT_wsf_view||We,et),E=parseInt(se.width),a=ze.width,x=ze.height;if(a===void 0){var y=Me.querySelector(".appletParameters");y&&(a=y.offsetWidth,x=y.offsetHeight)}var z=E/a,ne=Ve?1:se.height/x;return le!==void 0&&!le&&(z=Math.min(1,z),ne=Math.min(1,ne)),Math.min(z,ne)}function de(ze,Me,le){var st=1,et,Ve=!1;if(ze.hasOwnProperty("allowUpscale")&&(Ve=ze.allowUpscale),ze.hasOwnProperty("scale")&&(st=parseFloat(ze.scale),(isNaN(st)||st===null||st===0)&&(st=1),st>1&&(Ve=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ve=!0),!(ze.hasOwnProperty("disableAutoScale")&&ze.disableAutoScale))et=b(ze,Me,Ve,le,ze.scaleContainerClass);else return st;return Ve&&(!ze.hasOwnProperty("scale")||st===1)?et:Math.min(st,et)}function Be(ze){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),st=ze.getBoundingClientRect(),et=(Me-st.width)/2,Ve=(le-st.height)/2;Ve<0&&(Ve=0),ze.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(et<40?ze.style.left="40px":ze.style.left=et+"px",ze.style.top=Ve+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ve<40?ze.style.top="40px":ze.style.top=Ve+"px",ze.style.left=et+"px")}function Ae(ze,Me){var le=ze.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ze)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var st=de(Me,ze);Qt()&&le.setAttribute("data-param-scale",st);for(var et=null,Ve=0;Ve<ze.childNodes.length;Ve++)if(ze.childNodes[Ve].className!==void 0&&ze.childNodes[Ve].className.match(/^applet_scaler/)){et=ze.childNodes[Ve];break}if(et!==null&&et.querySelector(".noscale")!==null)return;var We=Me.id!==void 0?Me.id:"ggbApplet",Je=window[We];(Je==null||!Je.recalculateEnvironments)&&et!==null&&!et.className.match(/fullscreen/)&&(et.parentNode.style.transform="",!isNaN(st)&&st!==1?(et.parentNode.style.width=Me.width*st+"px",et.parentNode.style.height=Me.height*st+"px",Gt(et,st)):(Gt(et,1),et.parentNode.style.width=Me.width+"px",et.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Be(ze),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ae,isFlexibleWorksheetEditor:Qt,positionCenter:Be,getScale:de,scaleElement:Gt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Qt=n.location.search;return Qt.indexOf(J)!=-1||Qt.indexOf(K)!=-1}function q(Qt,Gt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Qt){var Gt=s[L].bindings;s[L].bindings=function(){for(var ee=Gt?Gt():{},b=Qt[webModule.__softPermutationId],de=O;de<b.length;de++){var Be=b[de];ee[Be[O]]=Be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var Qt=o.createElement(Q);if(Qt.id=L,Qt.style.cssText=R+S,Qt.tabIndex=-1,o.body.appendChild(Qt),t=Qt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Gt=document.compatMode==U?V:W;t.write(Gt+X),t.close()}}}function w(Qt){function Gt(b){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Be=de();if(Be){b();return}function Ae(){if(!Be){if(!de())return;Be=!0,b(),o.removeEventListener&&o.removeEventListener(Z,Ae,!1),ze&&clearInterval(ze)}}o.addEventListener&&o.addEventListener(Z,Ae,!1);var ze=setInterval(function(){Ae()},$)}function ee(b){var de=u(),Be=de.body,Ae=de.createElement(_);Ae.language=ab,Ae.crossOrigin=W,Ae.src=b,webModule.__errFn&&(Ae.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),Be.appendChild(Ae)}Gt(function(){ee(Qt)})}webModule.__startLoadingFragment=function(Qt){return C(Qt)},webModule.__installRunAsyncCode=function(Qt){var Gt=u(),ee=Gt.body,b=Gt.createElement(_);b.language=ab,b.text=Qt,ee.appendChild(b),ee.removeChild(b)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=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(Qt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Qt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Qt){var Gt=c[Qt];return Gt==null?null:Gt},r=d,webModule.__errFn=e}function B(){function Qt(ze){var Me=ze.lastIndexOf(rb);Me==-1&&(Me=ze.length);var le=ze.indexOf(sb);le==-1&&(le=ze.length);var st=ze.lastIndexOf(tb,Math.min(le,Me));return st>=O?ze.substring(O,st+P):W}function Gt(ze){if(!ze.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=ze+vb,ze=Qt(Me.src)}return ze}function ee(){var ze=__gwt_getMetaProperty(wb);return ze!=null?ze:W}function b(){for(var ze=o.getElementsByTagName(_),Me=O;Me<ze.length;++Me)if(ze[Me].src.indexOf(xb)!=-1)return Qt(ze[Me].src);return W}function de(){var ze=o.getElementsByTagName(yb);return ze.length>O?ze[ze.length-P].href:W}function Be(){var ze=o.location;return ze.href==ze.protocol+zb+ze.host+ze.pathname+ze.search+ze.hash}var Ae=ee();return Ae==W&&(Ae=b()),Ae==W&&(Ae=de()),Ae==W&&Be()&&(Ae=Qt(o.location.href)),Ae=Gt(Ae),Ae}function C(Qt){return Qt.match(/^\//)||Qt.match(/^[a-zA-Z]+:\/\//)?Qt:webModule.__moduleBase+Qt}function D(){var Qt=[],Gt=O,ee=[],b=[];function de(ze){var Me=b[ze](),le=ee[ze];if(Me in le)return Me;var st=[];for(var et in le)st[le[et]]=et;throw r&&r(ze,st,Me),null}if(__gwt_isKnownPropertyValue=function(ze,Me){return Me in ee[ze]},webModule.__getPropMap=function(){var ze={};for(var Me in ee)ee.hasOwnProperty(Me)&&(ze[Me]=de(Me));return ze},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ae=Be.indexOf(Db);Ae!=-1&&(Gt=parseInt(Be.substring(Ae+P),$),Be=Be.substring(O,Ae))}catch(ze){}return webModule.__softPermutationId=Gt,C(Be+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})()},77903:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Ax:function(){return Ae},Ds:function(){return ze},KI:function(){return le},SI:function(){return Be},f1:function(){return de}});var b=ee(3294);function de(st){let et=!0;if(st.length>0){for(let Ve=0;Ve<st.length;Ve++)if(st[Ve].compile_success==0||!st[Ve].compile_success){et=!1;break}}else et=!1;return et}function Be(st,et=""){let Ve=[];for(let We=0;We<st.length;We++){let Je=st[We],Ye=et?`${et}/${Je.name}`:`${Je.name}`;Ve.push({title:Je.name,type:Je.type,isLeaf:Je.type!=="tree",key:Ye})}return Ve}function Ae(st,et,Ve){for(let We=0;We<st.length;We++){let Je=st[We];if(Je.key===et){Je.children=Ve;break}Je.children&&Ae(Je.children,et,Ve)}return st}function ze(st,et,Ve){let We;return function(){let Je=this,Ye=arguments,se=function(){We=null,Ve||st.apply(Je,Ye)},E=Ve&&!We;clearTimeout(We),We=setTimeout(se,et),E&&st.apply(Je,Ye)}}const Me=!0,le=b.Z.API_SERVER},36061:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return x}});var b=ee(59301),de=ee(17574),Be=ee(16149),Ae={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},ze=Object.defineProperty,Me=Object.defineProperties,le=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,We=(y,z,ne)=>z in y?ze(y,z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):y[z]=ne,Je=(y,z)=>{for(var ne in z||(z={}))et.call(z,ne)&&We(y,ne,z[ne]);if(st)for(var ne of st(z))Ve.call(z,ne)&&We(y,ne,z[ne]);return y},Ye=(y,z)=>Me(y,le(z)),se=(y,z)=>{var ne={};for(var re in y)et.call(y,re)&&z.indexOf(re)<0&&(ne[re]=y[re]);if(y!=null&&st)for(var re of st(y))z.indexOf(re)<0&&Ve.call(y,re)&&(ne[re]=y[re]);return ne},E=(y,z,ne)=>new Promise((re,ue)=>{var ie=je=>{try{be(ne.next(je))}catch(De){ue(De)}},ve=je=>{try{be(ne.throw(je))}catch(De){ue(De)}},be=je=>je.done?re(je.value):Promise.resolve(je.value).then(ie,ve);be((ne=ne.apply(y,z)).next())}),x=y=>{var z=y,{value:ne,onChange:re,defaultValue:ue,disabled:ie}=z,ve=se(z,["value","onChange","defaultValue","disabled"]);const[be,je]=(0,b.useState)([]),[De,He]=(0,b.useState)("1");(0,b.useEffect)(()=>{he()},[]);const he=()=>E(void 0,null,function*(){const St=yield(0,Be.NZ)({});if(St!=null&&St.data){const Le=[{title:b.createElement("div",{title:"\u6839\u76EE\u5F55",className:Ae.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Xe(St.data||[])}];je(Le),He("2")}}),Xe=St=>{function Le(ot){const lt=ot.children,gt=Array.isArray(lt)&&lt.length>0,ft=ot==null?void 0:ot.group_id;return{title:b.createElement("div",{title:ot==null?void 0:ot.name,className:Ae.name},ot==null?void 0:ot.name),value:ft,key:ft,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:gt?lt==null?void 0:lt.map(ln=>Le(ln)):[]}}return St==null?void 0:St.map(ot=>Le(ot))},Ke=ue?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:ne,defaultExpandedKeys:ne};return b.createElement("div",{className:Ae.customTree},b.createElement(de.default,Je(Ye(Je({key:De},Ke),{showIcon:!0,treeData:be,onSelect:re,disabled:ie}),ve)))}},85786:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Ae}});var b=ee(59301),de={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Ae=({number:ze,active:Me,className:le})=>b.createElement("div",{className:`${de.digitalLabel} ${Me?de.active:""} ${le}`},ze)},57647:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return y}});var b=ee(59301),de=ee(17574),Be={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Ae=ee(73631),ze=ee(5623),Me=ee(16149),le=Object.defineProperty,st=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ye=(z,ne,re)=>ne in z?le(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,se=(z,ne)=>{for(var re in ne||(ne={}))We.call(ne,re)&&Ye(z,re,ne[re]);if(Ve)for(var re of Ve(ne))Je.call(ne,re)&&Ye(z,re,ne[re]);return z},E=(z,ne)=>st(z,et(ne)),a=(z,ne,re)=>new Promise((ue,ie)=>{var ve=De=>{try{je(re.next(De))}catch(He){ie(He)}},be=De=>{try{je(re.throw(De))}catch(He){ie(He)}},je=De=>De.done?ue(De.value):Promise.resolve(De.value).then(ve,be);je((re=re.apply(z,ne)).next())}),y=({value:z,onChange:ne,scrollId:re})=>{const[ue,ie]=(0,b.useState)([]);(0,b.useEffect)(()=>{ve()},[]);const ve=()=>a(void 0,null,function*(){const Xe=yield(0,Me.NZ)({});if(Xe!=null&&Xe.data){const Ke=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:Ae,className:Be.folderIcon}),isLeaf:!1,children:be(Xe.data||[])}];ie(Ke)}}),be=Xe=>Xe.map(Ke=>({title:Ke.name,key:Ke.group_id,icon:b.createElement("img",{src:Ae,className:Be.folderIcon}),isLeaf:Ke.children.length===0,children:be(Ke.children)})),je=(Xe,Ke,St)=>Xe.map(Le=>Le.key===Ke?se(se({},Le),St):Le.children?E(se({},Le),{children:je(Le.children,Ke,St)}):Le),De=(Xe,Ke,St)=>Xe.map(Le=>{if(Le.key===Ke)return E(se({},Le),{icon:St?b.createElement("img",{src:ze,className:Be.folderIcon}):b.createElement("img",{src:Ae,className:Be.folderIcon})});if(Le.children)return E(se({},Le),{children:De(Le.children,Ke,St)})}),He=(Xe,Ke)=>{ie(St=>De(St,Ke.node.key,Ke.expanded))},he=z?{selectedKeys:z,defaultExpandedKeys:z}:{};return ue.length>0&&b.createElement("div",{id:re||""},b.createElement(de.default,se({showLine:{showLeafIcon:!1},showIcon:!0,treeData:ue,className:Be.folderWrapper,onSelect:ne,onExpand:He},he)))}},32570:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Me}});var b=ee(60324),de={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Be=ee(32637),Ae=ee(59301),Me=({type:le,style:st})=>{const et=Ae.createElement("div",{className:de.wrap,onClick:Ve=>{Ve.preventDefault(),Ve.stopPropagation()}},Ae.createElement("p",null,le==="shixun"||le==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ae.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",le==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ae.createElement("div",{className:de.contact},Ae.createElement("div",{className:de.img},Ae.createElement("img",{src:Be,width:"124px",height:"124px"})),Ae.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ae.createElement(b.Z,{content:et},Ae.createElement("span",{className:de.text,style:st},"\u9AD8\u6D88\u8017"))}},73524:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return We}});var b=ee(59301),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=ee(92310),Ae=ee.n(Be),ze=ee(71418),Me=ee(2859),le=ee(99064),st=ee(955),et=(Je,Ye,se)=>new Promise((E,a)=>{var x=ne=>{try{z(se.next(ne))}catch(re){a(re)}},y=ne=>{try{z(se.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((se=se.apply(Je,Ye)).next())}),We=({data:Je,className:Ye,fullWidth:se,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const ne=(0,b.useRef)(null),re=(0,b.useRef)(null),ue=(0,b.useRef)(null),ie=(0,b.useRef)(null),[ve,be]=(0,b.useState)(!1),[je,De]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ue.current||(ue.current=document.createElement("style"),document.head.appendChild(ue.current)),Je!=null&&Je.visible?(document.body.setAttribute("data-custom","y-hidden"),ue.current.innerHTML=" html { overflow-y: hidden; }",Je!=null&&Je.src&&He()):(document.body.removeAttribute("data-custom"),ue.current&&(document.head.removeChild(ue.current),ue.current=null))},[Je==null?void 0:Je.visible]);const He=()=>et(void 0,null,function*(){be(!0),De("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,st.ZJ)(Je==null?void 0:Je.src);ne.current.src="",ne.current.src=Le,ne.current.onload=function(){St()},be(!1),De("")}),he=()=>{document.body.removeAttribute("data-custom"),ue.current.innerHTML=" ",a()},Xe=Le=>et(void 0,null,function*(){be(!0),De("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ot=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Je.title,file:Le.dataUrl}});ot!=null&&ot.id&&!z?(yield(0,le.ZP)(`/api/attachments/${Je.id}/add_subitem.json`,{method:"post",body:{subitem_id:ot==null?void 0:ot.id,settings:JSON.stringify(Le.state)}})).status===0&&x():ot!=null&&ot.id&&x(ot),document.body.removeAttribute("data-custom"),ue.current.innerHTML=" ",be(!1),De("")}),Ke=()=>{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(lt=>{const gt=document.querySelector(lt.name);gt&&gt.setAttribute("title",lt.title)})},St=()=>{re.current=new Me.hP(ne.current),re.current.targetRoot=ie.current,re.current.addEventListener("render",Xe),re.current.addEventListener("beforeclose",he),y&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),Je!=null&&Je.snapshotData&&re.current.restoreState(Je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ke()},300)};return b.createElement(b.Fragment,null,(Je==null?void 0:Je.visible)&&b.createElement(ze.Z,{spinning:ve,tip:je,style:{position:"absolute"}},b.createElement("div",{ref:ie,className:Ae()(de.imageDimensions,Ye,se?de.fullWidth:""),style:E},b.createElement("img",{className:de.img,ref:ne}))))}},14791:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Ie},$:function(){return at}});var b=ee(59301),de={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Be=ee(92310),Ae=ee.n(Be),ze=ee(78241),Me=ee(8591),le=ee(43418),st=ee(5871),et=ee(95237),Ve=ee(24905),We=ee(38854),Je=ee(54580),Ye=ee(3113),se=ee(93948),E=ee(19842),a=ee(92832),x=ee(5112),y=ee(6848),z=ee(43604),ne=ee(29458),re=ee(3294),ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6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ZJIJJqJ4H18sBtyRxrPZOa2EK2+y9OApFE/QhstgCXf3t9d3IDACSy7UGcBCJJqgist+KW3JV2NZdJJarI1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",je=ee(99064),De=ee(57647),He=ee(5623),he=ee(50304),Xe=ee(59879),Ke=ee(28451),St=ee(15342),Le=ee.n(St),ot=(fe,qe,At)=>new Promise((Oe,Ne)=>{var Ct=ht=>{try{ke(At.next(ht))}catch(Sn){Ne(Sn)}},tt=ht=>{try{ke(At.throw(ht))}catch(Sn){Ne(Sn)}},ke=ht=>ht.done?Oe(ht.value):Promise.resolve(ht.value).then(Ct,tt);ke((At=At.apply(fe,qe)).next())}),gt=b.memo(({tagName:fe="div",value:qe="",className:At,style:Oe={},onBlur:Ne,id:Ct})=>{const tt=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!tt.current)return;ot(void 0,null,function*(){const Sn=tt.current;Sn.innerHTML="";const rn=qe==null?void 0:qe.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const an of rn)if(an.startsWith("$$")&&an.endsWith("$$")||an.startsWith("`$$")&&an.endsWith("$$`")){const mn=an.startsWith("`$$")?an.slice(3,-3):an.slice(2,-2),cn=document.createElement("span");cn.setAttribute("contentEditable","false"),cn.setAttribute("title",an),cn.className="edu_latex",Sn.appendChild(cn),Le().render(mn,cn,{throwOnError:!1})}else{const mn=an==null?void 0:an.replace(/<[^>]*>/g,cn=>cn.startsWith("<img")?cn:cn.replace(/</g,"&lt;"));Sn.insertAdjacentHTML("beforeend",mn)}})},[Ct]);const ke=()=>{var ht,Sn;if(Ne&&tt.current){const an=tt.current.cloneNode(!0),mn=an.querySelectorAll("span.edu_latex");for(let cn of mn){const Te=cn.getAttribute("title"),Ft=document.createTextNode(Te||""),zt=cn;(Sn=(ht=zt.parentNode)==null?void 0:ht.replaceChild)==null||Sn.call(ht,Ft,zt)}Ne(an.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(fe,{ref:tt,contentEditable:!0,className:At,style:Oe,onBlur:ke}))}),ft=ee(24065),ln=ee(34604),xt=Object.defineProperty,nn=Object.defineProperties,En=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Yn=(fe,qe,At)=>qe in fe?xt(fe,qe,{enumerable:!0,configurable:!0,writable:!0,value:At}):fe[qe]=At,Zt=(fe,qe)=>{for(var At in qe||(qe={}))dt.call(qe,At)&&Yn(fe,At,qe[At]);if($e)for(var At of $e(qe))on.call(qe,At)&&Yn(fe,At,qe[At]);return fe},On=(fe,qe)=>nn(fe,En(qe)),_e=(fe,qe,At)=>new Promise((Oe,Ne)=>{var Ct=ht=>{try{ke(At.next(ht))}catch(Sn){Ne(Sn)}},tt=ht=>{try{ke(At.throw(ht))}catch(Sn){Ne(Sn)}},ke=ht=>ht.done?Oe(ht.value):Promise.resolve(ht.value).then(Ct,tt);ke((At=At.apply(fe,qe)).next())});const ct=fe=>{fe.preventDefault();let At=(fe.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,At)},kt=fe=>{fe.key==="Enter"&&fe.preventDefault()},mt=({children:fe,style:qe})=>b.createElement("div",{className:de.leftBox,style:qe,onPaste:ct},fe),It=({children:fe,style:qe,className:At})=>b.createElement("div",{className:Ae()(de.rightBox,At),style:qe,onPaste:ct},fe),ut=({className:fe,style:qe={},width:At=1200,onCancel:Oe=()=>{},onSuccess:Ne=()=>{},gather:Ct={},mode:tt=1,stickyTop:ke=0,subDisciplineId:ht=[],hideWordFeatures:Sn,dataSource:rn=[],customLeftHeadNode:an,customRightHeadNode:mn,customLeftContent:cn,hideRecognition:Te=!1,onExchange:Ft,isSingleSelection:zt=!1,underpinBackgroundStyle:wt={},headExtraNode:Rt,isRefreshItemBank:un=!1,okText:dn="\u786E\u5B9A\u5BFC\u5165"})=>{var _n;const[Vn,va]=(0,b.useState)(1),[La,Na]=(0,b.useState)(0),[rr,Ka]=(0,b.useState)(""),[Ea,yr]=(0,b.useState)(!1),[Xt,jn]=(0,b.useState)([]),[Qn,Ia]=(0,b.useState)([]),[Ge,Ot]=(0,b.useState)(!1),[_t,Vt]=(0,b.useState)(!1),[Wt,Nn]=(0,b.useState)(!1),[Bn,vt]=(0,b.useState)(!1),[Bt,pt]=(0,b.useState)([]),[vn,Hn]=(0,b.useState)(1),[In,Ta]=(0,b.useState)(!1),[Pa,Rn]=(0,b.useState)(!1),[ya,ba]=(0,b.useState)(!0),[wn,mr]=(0,b.useState)(0),[Er,Jr]=(0,b.useState)(1),[pr,Qe]=(0,b.useState)(""),[Pn,qt]=(0,b.useState)([]),[Dn,Gn]=(0,b.useState)(0),[ra,Xn]=(0,b.useState)(0),[$n,sr]=(0,b.useState)(0),[sa,Cn]=(0,b.useState)(0),[dr,Nr]=(0,b.useState)(0),[Zr]=ze.default.useForm(),[Ir]=ze.default.useForm(),ha=(0,b.useRef)(null),za=(0,b.useRef)(null),or=(0,b.useRef)(),Fa=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xr=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{rn!=null&&rn.length&&Tr(rn)},[rn]),(0,b.useEffect)(()=>{Vn===2&&ha.current.focus()},[Vn]),(0,b.useEffect)(()=>{Wt&&Fr()},[Wt]);const qr=()=>{if(Vn===1){Me.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}le.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>_e(void 0,null,function*(){va(1)})})},Fr=()=>_e(void 0,null,function*(){const we=yield(0,je.ZP)("/api/disciplines.json",{method:"get",params:{source:tt===1?"new_question":"subject"}});pt(we.disciplines||[])}),io=we=>{const fn=[],Wn=(fa,yn)=>{fa.length>=2&&fn.push(fa.join(""));for(let wa=yn;wa<we.length;wa++)fa.push(we[wa]),Wn(fa,wa+1),fa.pop()};return Wn([],0),fn},lr=we=>(we=we||"",we=String(we),we=we.replace(/\s+/g,""),we),ko=we=>(we=we||"",we=String(we),we=we.replace(/<div>/g,""),we=we.replace(/<br>/g,`
`),we=we.replace(/<\/div>/g,`
`),we=pi(we),we),ui=we=>we.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),pi=we=>we.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),yo=we=>{var fn;const Wn=we.clipboardData;if(Wn){const fa=Wn.types.toString(),yn=Wn.items;if(fa==="Files"||Wn.types.indexOf("Files")>-1){we.preventDefault();try{let wa=yn[1];((fn=yn[0])==null?void 0:fn.kind)==="file"&&(wa=yn[0]);const na=wa.getAsFile();(0,Ke.I)(na,Un=>{var pa;if(Un.id){if(((pa=na==null?void 0:na.type)==null?void 0:pa.indexOf("image"))>-1){const Sa=`<img src='${re.Z.API_SERVER}${Un.url}'>`;document.execCommand("insertText",!1,Sa)}}else(Un==null?void 0:Un.status)===401&&(document.location.href="/user/login")})}catch(wa){Me.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Eo(we,fn){return _e(this,null,function*(){if(typeof we=="string")return yield fn(we);if(typeof we!="object"||we===null)return we;if(Array.isArray(we))return yield Promise.all(we.map(yn=>_e(this,null,function*(){return yield Eo(yn,fn)})));const Wn={};for(const fa in we)if(Object.prototype.hasOwnProperty.call(we,fa)){const yn=we[fa];typeof yn=="string"?Wn[fa]=yield fn(yn):typeof yn=="object"?Wn[fa]=yield Eo(yn,fn):Wn[fa]=yn}return Wn})}const Yo=()=>_e(void 0,null,function*(){var we;yr(!0),Ka("\u5904\u7406\u4E2D"),yield new Promise(fa=>setTimeout(fa,1e3));let fn=(we=za.current)==null?void 0:we.querySelectorAll('[data-text="edit"]'),Wn="";try{fn.forEach(function(fa){var yn,wa,na,Un;const pa=fa.cloneNode(!0),Sa=pa.querySelectorAll("span.edu_latex");for(let ur of Sa){const $a=ur.getAttribute("title"),_o=document.createTextNode($a),co=ur;(wa=(yn=co.parentNode)==null?void 0:yn.replaceChild)==null||wa.call(yn,_o,co)}const Wa=pa.querySelectorAll("span[style]");for(let ur of Wa)if(ur.style.fontFamily){const $a=ur.innerHTML,_o=document.createTextNode($a),co=ur;(Un=(na=co.parentNode)==null?void 0:na.replaceChild)==null||Un.call(na,_o,co)}pa==null||pa.childNodes.forEach(function(ur){ur.nodeType===Node.ELEMENT_NODE&&ur.localName!=="h5"&&ur.localName!=="h4"?Wn+=`<p>${ur.innerHTML}</p>`:ur.nodeType===Node.TEXT_NODE&&(Wn+=`<p>${ur.textContent}</p>`)})}),Va("/api/intelligent_imports/import.json",{html:pi(Wn)})}catch(fa){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",fa)}}),Fo=we=>{let fn=we.filter(Wn=>!!(Wn!=null&&Wn.type));return fn=fn.map(Wn=>{var fa;const yn=(fa=ji.find(na=>na.id===(Wn==null?void 0:Wn.type)))==null?void 0:fa.deal,wa=On(Zt({},Wn),{id:String(Math.random()).slice(-6),knowledgePoint:lr(Wn==null?void 0:Wn.knowledgePoint)});return yn?yn(wa):wa}),fn},Ao=()=>{if(Vn===1){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}le.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Yo})},eo=()=>b.createElement("div",{className:de.row},b.createElement("div",{className:de.leftLayout},b.createElement(mt,{style:{height:675}},Vn===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>va(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:de.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:ie}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),Vn===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{ha.current.innerHTML||va(1)},ref:ha,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:de.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:de.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:ve}),b.createElement("span",null,"\u9884\u89C8\u533A")))),Pr=(we,fn,Wn,fa)=>{var yn;console.log(we,fn,Wn,fa,"onDataChange\u4FEE\u6539\u6570\u503C");const wa=JSON.parse(JSON.stringify(Qn));fa===void 0?wa[fn][we]=Wn:wa[fn].questions[fa][we]=Wn;const na=Zt({},wa[fn]),Un=(yn=ji.find(pa=>pa.id===(na==null?void 0:na.type)))==null?void 0:yn.deal;wa[fn]=Un(na),Ia(wa)},To=(we,fn,Wn)=>{var fa;const yn=Wn!==void 0,wa=(fa=ji.find(pa=>pa.id===(we==null?void 0:we.type)))==null?void 0:fa.type,na=`${fn+1}.${Wn===void 0?"":Wn+1+"."}`,Un=`${(we==null?void 0:we.type)==="7"?"{{":""}${na}\u3010${wa}\u3011${(we==null?void 0:we.question)||""}`;return b.createElement(b.Fragment,null,yn&&b.createElement("h4",{contentEditable:!0}),b.createElement(gt,{id:we==null?void 0:we.id,tagName:"div",value:Un}))},vi=(we,fn)=>_e(void 0,null,function*(){var Wn;const fa=yield Ft(we,fn),yn=(Wn=fa==null?void 0:fa.data)==null?void 0:Wn.content;if(yn!=null&&yn.length){const wa=Fo(yn)[0];Xt.splice(fn,1,wa),Qn.splice(fn,1,wa),jn([...Xt]),Ia([...Qn])}}),Oo=(we,fn,Wn)=>{var fa;const yn=Wn!==void 0,wa=(fa=ji.find(Un=>Un.id===(we==null?void 0:we.type)))==null?void 0:fa.type,na=`${fn+1}.${Wn===void 0?"":Wn+1+"."}`;return yn?b.createElement("div",{style:{padding:"10px 18px"}},`${na}\u3010${wa}\u3011`,b.createElement(gt,{id:we==null?void 0:we.id,tagName:"span",className:de.edit,onBlur:Un=>Pr("question",fn,Un,Wn),value:(we==null?void 0:we.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:de.actionHead},b.createElement("div",{className:"c-light-primary"},`${na}\u3010${wa}\u3011`),tt!==1&&b.createElement(st.Z,{disabled:(we==null?void 0:we.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Un=>Pr("score",fn,Un,Wn),value:we==null?void 0:we.score}),b.createElement(et.Z,{align:"middle",style:{marginLeft:"auto"}},!!Ft&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>vi(we,fn)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(Ve.default,{onChange:Un=>Pr("checked",fn,Un.target.checked,Wn),checked:!!(we!=null&&we.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(gt,{id:we==null?void 0:we.id,tagName:"div",style:{padding:"10px 18px"},className:de.edit,onBlur:Un=>Pr("question",fn,Un,Wn),value:we==null?void 0:we.question}))},br=(we,fn,Wn)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(we==null?void 0:we.type)&&b.createElement(gt,{id:we==null?void 0:we.id,value:`\u7B54\u6848\uFF1A${fn||""}`,tagName:"p"}),!Wn&&b.createElement(gt,{id:we==null?void 0:we.id,value:`\u96BE\u5EA6\uFF1A${(we==null?void 0:we.difficulty)||""}`,tagName:"p"}),(we==null?void 0:we.type)!=="7"&&b.createElement(gt,{id:we==null?void 0:we.id,value:`\u89E3\u6790\uFF1A${(we==null?void 0:we.analyze)||""}`,tagName:"p"}),!Wn&&b.createElement(gt,{id:we==null?void 0:we.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(we==null?void 0:we.knowledgePoint)||""}`,tagName:"p"})),ai=(we,fn,Wn,fa)=>{const yn=fa!==void 0,wa=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],na=yn&&!we.last&&!we.errorMsg?{marginBottom:10}:{},Un=wa.map(pa=>({key:pa,label:pa,onClick:()=>Pr("difficulty",Wn,pa,fa)}));return b.createElement("div",{className:de.liWrap,style:na},["4"].includes(we==null?void 0:we.type)&&b.createElement("div",{className:de.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(gt,{id:we==null?void 0:we.id,tagName:"div",className:`${de.edit} c-black`,onBlur:pa=>Pr("answer",Wn,[pa],fa),value:fn})),!yn&&b.createElement("div",{className:de.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(We.Z,{menu:{items:Un}},b.createElement("span",{className:"c-light-primary"},we==null?void 0:we.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(we==null?void 0:we.type)!=="7"&&b.createElement("div",{className:de.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(gt,{id:we==null?void 0:we.id,tagName:"div",className:`${de.edit} c-grey-333`,onBlur:pa=>Pr("analyze",Wn,pa,fa),value:we==null?void 0:we.analyze})),!yn&&b.createElement("div",{onKeyDown:kt,className:de.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(gt,{id:we==null?void 0:we.id,tagName:"div",value:(we==null?void 0:we.knowledgePoint)||"",className:`${de.edit} c-grey-333`,onBlur:pa=>Pr("knowledgePoint",Wn,lr(ko(pa)),fa)})))},zr=we=>b.createElement(b.Fragment,null,typeof(we==null?void 0:we.errorMsg)=="string"&&!!(we!=null&&we.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,we==null?void 0:we.errorMsg))),Lo=we=>b.createElement(b.Fragment,null,typeof(we==null?void 0:we.errorMsg)=="string"&&!!(we!=null&&we.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,we==null?void 0:we.errorMsg))),ao=(we,fn,Wn,fa)=>{let yn="flex";return(zt&&wn!==fa||Ge&&!(Wn!=null&&Wn.errorMsg))&&(yn="none"),b.createElement("div",{className:de.row,style:{display:yn}},b.createElement("div",{className:de.leftLayout},cn||b.createElement(mt,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:de.question},we))),b.createElement("div",{className:de.rightLayout},b.createElement(It,{className:Wn!=null&&Wn.errorMsg?de.error:""},fn)))},ji=[{id:"0",type:"\u5355\u9009\u9898",element:(we,fn,Wn)=>{var fa,yn;const wa=Wn!==void 0;let na=(fa=we==null?void 0:we.answer)==null?void 0:fa[0];const Un=b.createElement(b.Fragment,null,To(we,fn,Wn),(yn=we==null?void 0:we.options)==null?void 0:yn.map((ur,$a)=>b.createElement(gt,{id:we==null?void 0:we.id,key:$a,value:`${Fa[$a]}.${ur}`,tagName:"p"})),br(we,na,wa),zr(we));let pa=wa?we:Qn[fn];const Sa=pa==null?void 0:pa.options,Wa=b.createElement(b.Fragment,null,Oo(pa,fn,Wn),Sa==null?void 0:Sa.map((ur,$a)=>{var _o;return b.createElement("div",{key:$a,className:de.option},b.createElement("aside",{className:((_o=pa==null?void 0:pa.answer)==null?void 0:_o[0])===Fa[$a]?de.active:"",onClick:()=>Pr("answer",fn,[Fa[$a]],Wn)},Fa[$a]),b.createElement(gt,{id:pa==null?void 0:pa.id,tagName:"div",className:`${de.text}`,onBlur:co=>{Sa[$a]=co,Pr("options",fn,Sa,Wn)},value:ur}))}),ai(pa,"",fn,Wn),Lo(pa));return wa?[Un,Wa]:ao(Un,Wa,pa,fn)},deal:we=>{var fn,Wn,fa;we.score=we.score===void 0?2:we.score;let yn=lr((fn=we==null?void 0:we.answer)==null?void 0:fn[0]).toUpperCase();we.answer=yn?[yn]:[];let wa=[];if(!(we!=null&&we.options))wa.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{we.options=(Wn=we.options)==null?void 0:Wn.slice(0,8);const na=we.options.map(pa=>pa==null?void 0:pa.trim().replace(/^\s+|\s+$/g,""));new Set(na).size!==na.length&&wa.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return yn||wa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),yn&&(Fa.slice(0,((fa=we==null?void 0:we.options)==null?void 0:fa.length)||8).includes(yn)||wa.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),lr(we==null?void 0:we.question)||wa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=wa.join(`
`),we}},{id:"1",type:"\u591A\u9009\u9898",element:(we,fn,Wn)=>{var fa,yn;const wa=Wn!==void 0;let na=(fa=we==null?void 0:we.answer)==null?void 0:fa[0];const Un=b.createElement(b.Fragment,null,To(we,fn,Wn),(yn=we==null?void 0:we.options)==null?void 0:yn.map((ur,$a)=>b.createElement(gt,{id:we==null?void 0:we.id,key:$a,value:`${Fa[$a]}.${ur}`,tagName:"p"})),br(we,na,wa),zr(we));let pa=wa?we:Qn[fn];const Sa=pa==null?void 0:pa.options,Wa=b.createElement(b.Fragment,null,Oo(pa,fn,Wn),Sa==null?void 0:Sa.map((ur,$a)=>{var _o,co;return b.createElement("div",{key:$a,className:de.option},b.createElement("aside",{className:(co=(_o=pa==null?void 0:pa.answer)==null?void 0:_o[0])!=null&&co.includes(Fa[$a])?de.active:"",onClick:()=>{var Vo;let ci=((Vo=pa==null?void 0:pa.answer)==null?void 0:Vo[0])||"";const Gi=Fa[$a];ci.includes(Gi)?ci=ci.replace(new RegExp(Gi,"g"),""):ci+=Gi,ci=ci.split("").sort().join(""),Pr("answer",fn,[ci],Wn)}},Fa[$a]),b.createElement(gt,{id:pa==null?void 0:pa.id,tagName:"div",className:`${de.text}`,onBlur:Vo=>{Sa[$a]=Vo,Pr("options",fn,Sa,Wn)},value:ur}))}),ai(pa,"",fn,Wn),Lo(pa));return wa?[Un,Wa]:ao(Un,Wa,pa,fn)},deal:we=>{var fn,Wn,fa;we.score=we.score===void 0?2:we.score;let yn=lr((fn=we==null?void 0:we.answer)==null?void 0:fn[0]).toUpperCase().split("").sort().join("");we.answer=yn?[yn]:[];let wa=[];if(!(we!=null&&we.options))wa.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{we.options=(Wn=we.options)==null?void 0:Wn.slice(0,8);const na=we.options.map(pa=>pa==null?void 0:pa.trim().replace(/^\s+|\s+$/g,""));new Set(na).size!==na.length&&wa.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(yn||wa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),yn){const na=Fa.slice(0,((fa=we==null?void 0:we.options)==null?void 0:fa.length)||8);io(na).includes(yn)||wa.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return lr(we==null?void 0:we.question)||wa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=wa.join(`
`),we}},{id:"2",type:"\u5224\u65AD\u9898",element:(we,fn,Wn)=>{var fa,yn;const wa=Wn!==void 0;let na=(fa=we==null?void 0:we.answer)==null?void 0:fa[0];const Un=b.createElement(b.Fragment,null,To(we,fn,Wn),br(we,na,wa),zr(we));let pa=wa?we:Qn[fn];const Sa=["\u6B63\u786E","\u9519\u8BEF"];let Wa=((yn=pa==null?void 0:pa.answer)==null?void 0:yn[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Wa)?Wa="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Wa)&&(Wa="\u9519\u8BEF");const ur=b.createElement(b.Fragment,null,Oo(pa,fn,Wn),Sa==null?void 0:Sa.map(($a,_o)=>b.createElement("div",{key:_o,className:de.option},b.createElement("aside",{style:{borderRadius:2},className:Wa===$a?de.active:"",onClick:()=>Pr("answer",fn,[$a],Wn)},$a==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${de.text}`},$a))),ai(pa,"",fn,Wn),Lo(pa));return wa?[Un,ur]:ao(Un,ur,pa,fn)},deal:we=>{var fn;we.score=we.score===void 0?2:we.score;let Wn=lr((fn=we==null?void 0:we.answer)==null?void 0:fn[0]);we.answer=Wn?[Wn]:[];let fa=[];return Wn||fa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Wn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Wn)&&fa.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),lr(we==null?void 0:we.question)||fa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=fa.join(`
`),we}},{id:"3",type:"\u586B\u7A7A\u9898",element:(we,fn,Wn)=>{var fa,yn;const wa=Wn!==void 0,na=b.createElement(b.Fragment,null,To(we,fn,Wn),(fa=we==null?void 0:we.answer)==null?void 0:fa.map((Sa,Wa)=>b.createElement(gt,{id:we==null?void 0:we.id,key:Wa,tagName:"p",value:`\u7B54\u6848${Wa+1}\uFF1A${Sa.text||""}`})),br(we,"",wa),zr(we));let Un=wa?we:Qn[fn];const pa=b.createElement(b.Fragment,null,Oo(Un,fn,Wn),(yn=Un==null?void 0:Un.answer)==null?void 0:yn.map((Sa,Wa)=>b.createElement("div",{key:Wa,className:de.option},b.createElement("aside",{className:de.fill},"\u586B\u7A7A\u9879",Wa+1),Sa.model===1&&b.createElement(gt,{id:Un==null?void 0:Un.id,tagName:"div",onBlur:ur=>{Un.answer[Wa].latex=ko(ur),Pr("answer",fn,Un.answer,Wn)},className:`${de.text}`,value:Sa.latex}),Sa.model===2&&b.createElement(Xe.Z,{value:Sa.latex,onChange:ur=>{Un.answer[Wa].latex=ur,Pr("answer",fn,Un.answer,Wn)}}))),ai(Un,"",fn,Wn),Lo(Un));return wa?[na,pa]:ao(na,pa,Un,fn)},deal:we=>{var fn,Wn,fa,yn;we.score=we.score===void 0?2:we.score,we.question=(fn=we.question)==null?void 0:fn.replaceAll("\u2581","_");const wa=(Wn=we.answer)==null?void 0:Wn.map(Un=>{if(Object.prototype.toString.call(Un)==="[object Object]")return Un;const pa={model:1,text:Un,latex:Un};return Un.startsWith("$$")&&Un.endsWith("$$")||Un.startsWith("`$$")&&Un.endsWith("$$`")?(pa.model=2,pa.latex=Un.slice(2,-2)):pa.latex=ko(Un),pa});we.answer=wa;let na=[];return wa||na.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),lr(we==null?void 0:we.question)?we!=null&&we.question.includes("_")?(fa=we==null?void 0:we.answer)!=null&&fa.length&&((we==null?void 0:we.question.match(/_+/g))||[]).length!==((yn=we==null?void 0:we.answer)==null?void 0:yn.length)&&na.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):na.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):na.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=na.join(`
`),we}},{id:"4",type:"\u7B80\u7B54\u9898",element:(we,fn,Wn)=>{var fa,yn;const wa=Wn!==void 0;let na=(fa=we==null?void 0:we.answer)==null?void 0:fa[0];const Un=b.createElement(b.Fragment,null,To(we,fn,Wn),br(we,na,wa),zr(we));let pa=wa?we:Qn[fn];const Sa=b.createElement(b.Fragment,null,Oo(pa,fn,Wn),ai(pa,(yn=pa==null?void 0:pa.answer)==null?void 0:yn[0],fn,Wn),Lo(pa));return wa?[Un,Sa]:ao(Un,Sa,pa,fn)},deal:we=>{we.score=we.score===void 0?5:we.score;let fn=[];return lr(we==null?void 0:we.question)||fn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),we.errorMsg=fn.join(`
`),we}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(we,fn)=>{var Wn,fa;const yn=Qn[fn],wa=xr.slice(0,4).map(na=>({key:na,label:na,onClick:()=>Pr("platform",fn,na)}));return b.createElement("div",{className:de.row,style:{display:Ge?yn!=null&&yn.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:de.leftLayout},b.createElement(mt,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:de.question},To(we,fn),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(we==null?void 0:we.description)||""}`,tagName:"p"}),br(we),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${we==null?void 0:we.timeLimit}`,tagName:"p"}),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(we==null?void 0:we.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(gt,{id:we==null?void 0:we.id,value:(we==null?void 0:we.code)||"",tagName:"div"}),(Wn=we==null?void 0:we.inputs)==null?void 0:Wn.map((na,Un)=>{var pa;return b.createElement(b.Fragment,{key:Un},b.createElement("h4",null),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Un+1})\u8F93\u5165\uFF1A${na||""}`,tagName:"div"}),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Un+1})\u8F93\u51FA\uFF1A${((pa=we==null?void 0:we.outputs)==null?void 0:pa[Un])||""}`,tagName:"div"}))}),zr(we)))),b.createElement("div",{className:de.rightLayout},b.createElement(It,{className:yn!=null&&yn.errorMsg?de.error:""},Oo(yn,fn),b.createElement("div",{className:de.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:de.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:yn==null?void 0:yn.description,tagName:"div",onBlur:na=>Pr("description",fn,na)}))),ai(yn,"",fn),b.createElement("div",{className:de.liWrap},b.createElement("div",{className:de.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:yn==null?void 0:yn.timeLimit,tagName:"div",onBlur:na=>Pr("timeLimit",fn,ko(na))})),b.createElement("div",{className:de.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(We.Z,{menu:{items:wa}},b.createElement("span",{className:"c-light-primary"},yn==null?void 0:yn.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:de.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:(yn==null?void 0:yn.code)||"",onBlur:na=>Pr("code",fn,ko(na)),tagName:"div"}))),(fa=yn==null?void 0:yn.inputs)==null?void 0:fa.map((na,Un)=>{var pa;return b.createElement("div",{className:de.liWrap,key:Un},b.createElement("div",{className:de.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Un+1,")\u8F93\u5165\uFF1A"),b.createElement(gt,{id:yn==null?void 0:yn.id,value:na||"",className:de.edit,onBlur:Sa=>{const Wa=[...(yn==null?void 0:yn.inputs)||[]];Wa[Un]=ko(Sa),Pr("inputs",fn,Wa)},tagName:"div"})),b.createElement("div",{className:de.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Un+1,")\u8F93\u51FA\uFF1A"),b.createElement(gt,{id:yn==null?void 0:yn.id,value:((pa=yn==null?void 0:yn.outputs)==null?void 0:pa[Un])||"",className:de.edit,onBlur:Sa=>{const Wa=[...(yn==null?void 0:yn.outputs)||[]];Wa[Un]=ko(Sa),Pr("outputs",fn,Wa)},tagName:"div"})))}),Lo(yn))))},deal:we=>{var fn,Wn,fa;we.score=we.score===void 0?10:we.score,we.code=(fn=we.code)==null?void 0:fn.trim();let yn=[];lr(we==null?void 0:we.question)?((Wn=we==null?void 0:we.question)==null?void 0:Wn.length)>60&&yn.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),lr(we==null?void 0:we.description)||yn.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const wa=lr(String((we==null?void 0:we.timeLimit)||""));if(we.timeLimit=wa,(!wa||wa&&!["3","4","5","6","7","8","9","10"].includes(wa))&&yn.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),we.platform=lr(we==null?void 0:we.platform),we!=null&&we.platform){const na=["c","c++","java","python"],Un=(fa=we==null?void 0:we.platform)==null?void 0:fa.toLowerCase(),pa=na.findIndex(Sa=>Sa===Un);pa>-1?we.platform=xr[pa]:yn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else yn.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(we!=null&&we.inputs)||!(we!=null&&we.outputs))we.inputs=[],we.outputs=[],yn.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const na=Math.min(we.inputs.length,we.outputs.length);we.inputs=we.inputs.slice(0,na),we.outputs=we.outputs.slice(0,na),we.outputs.some(Un=>!lr(Un))&&yn.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return we.errorMsg=yn.join(`
`),we}},{id:"7",type:"\u7EC4\u5408\u9898",element:(we,fn)=>{var Wn,fa;const yn=Qn[fn];return b.createElement("div",{className:de.row,style:{display:Ge?yn!=null&&yn.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:de.leftLayout},b.createElement(mt,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:de.question},To(we,fn),br(we),(Wn=we==null?void 0:we.questions)==null?void 0:Wn.map((wa,na)=>{var Un;const pa=(Un=ji.find(Sa=>Sa.id===(wa==null?void 0:wa.type)))==null?void 0:Un.element;return b.createElement(b.Fragment,{key:`left-${we.id}-${na}`},pa(wa,fn,na)[0])}),zr(we),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:de.rightLayout},b.createElement(It,{className:yn!=null&&yn.errorMsg?de.error:""},Oo(yn,fn),ai(yn,"",fn),(fa=yn==null?void 0:yn.questions)==null?void 0:fa.map((wa,na)=>{var Un;const pa=(Un=ji.find(Sa=>Sa.id===(wa==null?void 0:wa.type)))==null?void 0:Un.element;return b.createElement(b.Fragment,{key:`right-${yn.id}-${na}`},pa(wa,fn,na)[1])}),Lo(yn))))},deal:we=>{var fn,Wn,fa,yn,wa;const na=Fo,Un=[...ji],pa=Un.findIndex($a=>$a.id==="0"),Sa=Un.findIndex($a=>$a.id==="1");if(pa!==-1){const $a=Un[pa].deal;Un[pa].deal=_o=>{const co=$a(_o);return co.errorMsg&&(co.errorMsg=co.errorMsg.split(`
`).filter(Vo=>Vo!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),co}}if(Sa!==-1){const $a=Un[Sa].deal;Un[Sa].deal=_o=>{const co=$a(_o);return co.errorMsg&&(co.errorMsg=co.errorMsg.split(`
`).filter(Vo=>Vo!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),co}}we.questions=(fn=we.questions)!=null&&fn.length?Fo(we.questions.slice(0,20)):[],we.questions=(Wn=we.questions)==null?void 0:Wn.map(($a,_o)=>{var co;if($a.type==="0"||$a.type==="1"){const Vo=(co=$a.options)==null?void 0:co.map(ci=>ci==null?void 0:ci.trim().replace(/^\s+|\s+$/g,""));Vo&&new Set(Vo).size!==Vo.length&&($a.errorMsg=($a.errorMsg?$a.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return On(Zt({},$a),{last:_o===we.questions.length-1})});const Wa=(fa=we.questions)==null?void 0:fa.reduce(($a,_o)=>{const co=parseFloat(_o.score);return isNaN(co)?$a:$a+co},0);we.score=Wa;let ur=[];return(yn=we.questions)!=null&&yn.length?we.errorMsg=((wa=we.questions)==null?void 0:wa.findIndex($a=>!!$a.errorMsg))>-1:ur.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),lr(we==null?void 0:we.question)||ur.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ur.length&&(we.errorMsg=ur.join(`
`)),we}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(we,fn)=>{var Wn,fa;const yn=Qn[fn],wa=xr.map(na=>({key:na,label:na,onClick:()=>Pr("platform",fn,na)}));return b.createElement("div",{className:de.row,style:{display:Ge?yn!=null&&yn.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:de.leftLayout},b.createElement(mt,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:de.question},To(we,fn),br(we),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${we==null?void 0:we.timeLimit}`,tagName:"p"}),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(we==null?void 0:we.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(gt,{id:we==null?void 0:we.id,value:(we==null?void 0:we.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(we==null?void 0:we.input)||""}`,tagName:"p"}),b.createElement(gt,{id:we==null?void 0:we.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(we==null?void 0:we.output)||""}`,tagName:"p"}),(Wn=we==null?void 0:we.answer)==null?void 0:Wn.map((na,Un)=>b.createElement(gt,{key:Un,id:we==null?void 0:we.id,value:`\u7B54\u6848${Un+1}\uFF1A${na||""}`,tagName:"p"})),zr(we)))),b.createElement("div",{className:de.rightLayout},b.createElement(It,{className:yn!=null&&yn.errorMsg?de.error:""},Oo(yn,fn),ai(yn,"",fn),b.createElement("div",{className:de.liWrap},b.createElement("div",{className:de.li,onKeyDown:kt},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:yn==null?void 0:yn.timeLimit,tagName:"div",onBlur:na=>Pr("timeLimit",fn,ko(na))})),b.createElement("div",{className:de.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(We.Z,{menu:{items:wa}},b.createElement("span",{className:"c-light-primary"},yn==null?void 0:yn.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:de.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:(yn==null?void 0:yn.code)||"",onBlur:na=>Pr("code",fn,ko(na)),tagName:"div"})),b.createElement("div",{className:de.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:(yn==null?void 0:yn.input)||"",onBlur:na=>Pr("input",fn,ko(na)),tagName:"div"})),b.createElement("div",{className:de.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(gt,{className:de.edit,id:yn==null?void 0:yn.id,value:(yn==null?void 0:yn.output)||"",onBlur:na=>Pr("output",fn,ko(na)),tagName:"div"}))),b.createElement("div",{className:de.liWrap},(fa=yn==null?void 0:yn.answer)==null?void 0:fa.map((na,Un)=>b.createElement("div",{className:de.li,key:Un},b.createElement("aside",null,"\u7B54\u6848",Un+1,"\uFF1A"),b.createElement(gt,{id:yn==null?void 0:yn.id,value:na||"",className:de.edit,onBlur:pa=>{const Sa=[...(yn==null?void 0:yn.answer)||[]];Sa[Un]=ko(pa),Pr("output",fn,Sa)},tagName:"div"})))),Lo(yn))))},deal:we=>{var fn,Wn,fa,yn,wa,na,Un,pa;we.score=we.score===void 0?10:we.score,we.code=(fa=(Wn=(fn=we.code)==null?void 0:fn.trim())==null?void 0:Wn.replace(/@_@/g,"@\u2581@"))==null?void 0:fa.replace(/@__@/g,"@\u2581\u2581@");let Sa=[];if(lr(we==null?void 0:we.question)||Sa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),lr(we==null?void 0:we.code)?/@▁@|@▁▁@/.test(we==null?void 0:we.code)?(yn=we==null?void 0:we.answer)!=null&&yn.length&&((wa=we==null?void 0:we.code.match(/@▁@|@▁▁@/g))==null?void 0:wa.length)!==((na=we==null?void 0:we.answer)==null?void 0:na.length)&&Sa.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Sa.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Sa.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),we!=null&&we.answer?(Un=we.answer)!=null&&Un.some(ur=>!lr(ur))&&Sa.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Sa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),we.platform=lr(we==null?void 0:we.platform),we!=null&&we.platform){const ur=["c","c++","java","python","javascript","ruby"],$a=(pa=we==null?void 0:we.platform)==null?void 0:pa.toLowerCase(),_o=ur.findIndex(co=>co===$a);_o>-1?we.platform=xr[_o]:Sa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Sa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");lr(we==null?void 0:we.output)||Sa.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Wa=lr(String((we==null?void 0:we.timeLimit)||""));return we.timeLimit=Wa,(!Wa||Wa&&!["3","4","5","6","7","8","9","10"].includes(Wa))&&Sa.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),we.errorMsg=Sa.join(`
`),we}}],cl=()=>b.createElement(b.Fragment,null,Xt.filter(we=>{var fn;return!!((fn=ji.find(fa=>fa.id===(we==null?void 0:we.type)))==null?void 0:fn.element)}).map((we,fn)=>{var Wn;const fa=(Wn=ji.find(yn=>yn.id===(we==null?void 0:we.type)))==null?void 0:Wn.element;return b.createElement(b.Fragment,{key:we.id},fa(we,fn))})),Cl=()=>_e(void 0,null,function*(){const we=Qn.filter(fn=>!fn.checked);if(Vn!==3||!we.length){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}Zr.setFieldsValue({sub_discipline_id:ht}),Nn(!0)}),Tr=we=>_e(void 0,null,function*(){const fn=Fo(we);jn(fn),Ia(JSON.parse(JSON.stringify(fn))),va(3),yr(!1),Ta(!1),Ot(!1)});(0,b.useEffect)(()=>{if(ya)return;const we=()=>{Na(fn=>fn>=90?(clearInterval(or.current),90):fn+1)};return or.current=setInterval(we,5e4/90),()=>clearInterval(or.current)},[ya]);const Va=(we,fn)=>{ba(!1);const Wn=new FormData;Object.keys(fn).forEach(yn=>{Wn.append(yn,fn[yn])});const fa=new window.XMLHttpRequest;fa.withCredentials=!0,fa.addEventListener("load",function(yn){return _e(this,null,function*(){var wa,na;try{const Un=JSON.parse((wa=yn==null?void 0:yn.target)==null?void 0:wa.response);if(ba(!0),Na(100),yield new Promise(pa=>setTimeout(()=>pa(),780)),Un.status===0){if(!((na=Un==null?void 0:Un.data)!=null&&na.length)){Me.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),yr(!1);return}Tr((Un==null?void 0:Un.data)||[])}else yr(!1),Me.ZP.warning(Un==null?void 0:Un.message)}catch(Un){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Un)}})}),fa.addEventListener("error",()=>{yr(!1)}),fa.open("POST",`${re.Z.API_SERVER}${we}`),fa.send(Wn)},ja=we=>_e(void 0,null,function*(){const fn=we.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(fn)==-1?(Me.ZP.error(`${we.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(yr(!0),Ka("\u5904\u7406\u4E2D"),Va("/api/intelligent_imports/import.json",{file:we}),Promise.reject())}),Ya=we=>_e(void 0,null,function*(){const fn=we.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(fn)==-1?(Me.ZP.warning("\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"),Promise.reject()):we.size/1024/1024>200?(Me.ZP.warning("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E200M"),Promise.reject()):(Pn!=null&&Pn.length?le.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u5355\u6B21\u51FA\u9898\u53EA\u652F\u6301\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6/\u4E00\u5F20\u56FE\u7247\uFF0C\u518D\u6B21\u4E0A\u4F20\u4F1A\u66FF\u6362\u5F53\u524D\u5DF2\u4E0A\u4F20\u7684\u5185\u5BB9\u3002",onOk:()=>qt([we])}):qt([we]),Promise.reject())});let so=[{key:1,label:b.createElement(Je.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:ja},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,ft.Ny)()||(0,ft.$O)())&&so.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Ta(!0)}});const Zo=[Qn.length,(_n=Qn.filter(we=>!!(we!=null&&we.errorMsg)))==null?void 0:_n.length];return b.createElement("div",{className:Ae()(de.intelligentBox,"intelligent-body-curb",fe),style:On(Zt({},qe),{width:At}),ref:za},b.createElement("div",{className:de.underpin},b.createElement("b",{style:wt}),b.createElement("b",{style:wt})),b.createElement("div",{className:de.head,style:{top:ke}},b.createElement("div",{className:de.leftLayout},an||b.createElement(b.Fragment,null,b.createElement(et.Z,{align:"middle"},b.createElement("div",{className:de.title},"\u8BD5\u9898\u7F16\u8F91"),!Sn&&b.createElement(ne.op,{href:`${re.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(ne.op,{onClick:qr,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Sn&&b.createElement(We.Z,{overlayClassName:de.menu,menu:{items:so}},b.createElement(ne.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Rt&&Rt),b.createElement("div",{className:de.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(et.Z,{className:de.rightLayout,style:{alignItems:"start"}},mn||b.createElement(b.Fragment,null,b.createElement("div",{className:de.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Vn)&&b.createElement(Ve.default,{className:"ml20",checked:Ge,onChange:we=>Ot(we.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Vn)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},Zo[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Zo[1]),"\u9898")),zt&&b.createElement("div",{className:de.tabs},Xt==null?void 0:Xt.map((we,fn)=>b.createElement("div",{onClick:()=>{mr(fn)},className:wn===fn&&de.active,key:fn},"\u65B0\u9898",fn+1)))),b.createElement("div",{className:de.centerBox},b.createElement("img",{className:"mb10",src:be,width:56}),!Te&&b.createElement(ne.op,{onClick:Ao},"\u8BC6\u522B"))),[1,2].includes(Vn)&&eo(),[3].includes(Vn)&&cl(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:de.buttonFixed},b.createElement("div",{className:de.buttonWrap},b.createElement(Ye.ZP,{size:"middle",className:`${de.button} mr20`,onClick:Oe},"\u53D6\u6D88"),b.createElement(Ye.ZP,{size:"middle",type:"primary",className:`${de.button}`,onClick:Cl},dn))),b.createElement(le.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Ea,title:null,footer:null,width:320,afterClose:()=>Na(0)},b.createElement(et.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},rr,b.createElement("span",{className:de.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(se.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:La}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},La,"%")))),b.createElement(le.default,{centered:!0,open:Wt,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:_t,width:480,onCancel:()=>Nn(!1),onOk:()=>Zr.submit(),afterClose:()=>{Zr.resetFields()}},b.createElement(ze.default,{style:{maxHeight:550},form:Zr,layout:"horizontal",colon:!1,size:"large",onFinish:we=>_e(void 0,null,function*(){var fn,Wn,fa,yn,wa;const na=Qn.filter(Sa=>!Sa.checked&&!Sa.errorMsg);Vt(!0);const Un=()=>_e(void 0,null,function*(){var Sa,Wa;const ur=yield(0,je.ZP)("/api/intelligent_imports/save.json",{method:"post",body:On(Zt(Zt({},Ct),we),{list:na,mode:tt})});ur.status===0&&(un&&((Sa=ur==null?void 0:ur.data)!=null&&Sa.success)&&window.location.pathname==="/problemset"&&(ln.Z.publish("refresh-item-bank",we.group_id),yield new Promise($a=>setTimeout(()=>$a(),1500))),Me.ZP.success(`\u6210\u529F\u5BFC\u5165${(Wa=ur==null?void 0:ur.data)==null?void 0:Wa.success}\u9053\u8BD5\u9898`,3),Ne(),Nn(!1)),Vt(!1)});if(tt!==1){yield Un();return}const pa=yield(0,je.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Qn,mode:tt}});if(pa.status===0){if(!((fn=pa==null?void 0:pa.data)!=null&&fn.error_size)){yield Un();return}le.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{Vt(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(Wn=pa==null?void 0:pa.data)==null?void 0:Wn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(fa=pa==null?void 0:pa.data)==null?void 0:fa.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(wa=(yn=pa==null?void 0:pa.data)==null?void 0:yn.index)==null?void 0:wa.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Un})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(ze.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:Bt})),tt===1&&b.createElement(ze.default.Item,{label:b.createElement(et.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>vt(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:He}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(De.Z,{key:vn})))),b.createElement(le.default,{centered:!0,open:Bn,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Pa,onCancel:()=>vt(!1),onOk:()=>Ir.submit(),afterClose:()=>{Ir.resetFields()}},b.createElement(ze.default,{style:{maxHeight:550},form:Ir,layout:"horizontal",colon:!1,size:"large",onFinish:we=>_e(void 0,null,function*(){var fn;Rn(!0),(yield(0,je.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:we.name,parent_id:(fn=we==null?void 0:we.parent_id)==null?void 0:fn[0]}})).status===0?(Hn(vn+1),setTimeout(()=>{Me.ZP.success("\u64CD\u4F5C\u6210\u529F"),vt(!1),Rn(!1)},1e3)):Rn(!1)})},b.createElement(ze.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(ze.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(De.Z,null)))),b.createElement(le.default,{centered:!0,open:In,title:"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898",width:814,okText:"\u751F\u6210\u8BD5\u9898",onCancel:()=>Ta(!1),onOk:()=>{if(Er===1&&!lr(pr)){Me.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(Er===2&&!lr(pr)&&!(Pn!=null&&Pn.length)){Me.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const we=[{name:"\u5355\u9009\u9898",num:Dn||0},{name:"\u591A\u9009\u9898",num:ra||0},{name:"\u5224\u65AD\u9898",num:$n||0},{name:"\u586B\u7A7A\u9898",num:sa||0},{name:"\u7B80\u7B54\u9898",num:dr||0}];if(we.reduce((fa,yn)=>fa+yn.num,0)===0){Me.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}console.log(Er,Dn,ra),yr(!0),Ka("\u5904\u7406\u4E2D");const Wn={type:Er,query:pr,item_types:JSON.stringify(we)};Er===2&&(Wn.file=(Pn==null?void 0:Pn[0])||null),Va("/api/intelligent_imports/large_model_intelligent_qa.json",Wn)}},b.createElement(et.Z,{align:"middle",className:"mb10 c-black"},b.createElement("div",{className:"mr10"},"\u51FA\u9898\u8981\u6C42"),b.createElement(x.ZP.Group,{value:Er,onChange:we=>Jr(we.target.value)},b.createElement(x.ZP,{value:1,className:"c-black"},"\u6839\u636E\u77E5\u8BC6\u70B9\u51FA\u9898"),b.createElement(x.ZP,{value:2,className:"ml40 c-black"},"\u6839\u636E\u6750\u6599\u51FA\u9898"))),b.createElement(a.default.TextArea,{style:{height:120},className:"mb20",value:pr,placeholder:Er===1?"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\uFF0C\u591A\u4E2A\u77E5\u8BC6\u70B9\u7528\u201C\u3001\u201D\u5206\u9694\u5F00":"\u8BF7\u5148\u63D0\u4F9B\u60A8\u51FA\u9898\u4F9D\u636E\u7684\u6750\u6599\uFF0C\u53EF\u4EE5\u76F4\u63A5\u590D\u5236\u6750\u6599\u5185\u5BB9\u7C98\u8D34\u5728\u6B64\u533A\u57DF\uFF0C\u4E5F\u53EF\u70B9\u51FB\u4E0B\u65B9\u4E0A\u4F20\u6750\u6599\u6309\u94AE\u4E0A\u4F20\u672C\u5730\u6750\u6599\u6587\u6863",onChange:we=>{Qe(we.target.value)}}),Er===2&&b.createElement(b.Fragment,null,b.createElement(Je.default,{accept:".doc,.docx,.pdf,.png,.jpg",maxCount:1,fileList:Pn,beforeUpload:Ya,className:"mb20",onRemove:()=>qt([])},b.createElement(y.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(ne.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{style:{height:20}})),b.createElement(et.Z,{align:"middle",className:"c-black"},b.createElement("div",{className:"mb10"},"\u51FA\u9898\u6570\u91CF"),b.createElement(et.Z,{gutter:16},b.createElement(z.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(st.Z,{min:0,max:10,value:Dn,onChange:Gn,style:{marginLeft:"8px"}})),b.createElement(z.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(st.Z,{min:0,max:10,value:ra,onChange:Xn,style:{marginLeft:"8px"}})),b.createElement(z.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(st.Z,{min:0,max:10,value:$n,onChange:sr,style:{marginLeft:"8px"}})),b.createElement(z.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(st.Z,{min:0,max:10,value:sa,onChange:Cn,style:{marginLeft:"8px"}})),b.createElement(z.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(st.Z,{min:0,max:10,value:dr,onChange:Nr,style:{marginLeft:"8px"}}))))))},at=ue;var Ie=ut},59879:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=ee(88010),Be=ee(48136),Ae=ee(41588),ze=ee(43418),Me=ee(59301);const le=(0,b.forwardRef)(({callback:st,width:et,onChange:Ve,disabled:We,readOnly:Je,type:Ye="",value:se="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,ne]=(0,b.useState)(0),[re,ue]=(0,b.useState)(0),[ie,ve]=(0,b.useState)(!1),be=()=>{var he=document.createElement("div");he.innerHTML=x.current.getValue();var Xe=he.innerText;return st&&st(Xe),Xe};(0,b.useImperativeHandle)(a,()=>({getData:be}));const je=he=>{he.preventDefault();const Xe=he.clientX-z,Ke=he.clientY-re;document.body.onmousemove=St=>{let Le=St.clientX-Xe,ot=St.clientY-Ke;const lt=document.getElementsByClassName("markdown-popup-form")[0],gt=window.innerWidth-lt.offsetWidth,ft=window.innerHeight-lt.offsetHeight;Le=Math.max(0,Math.min(Le,gt)),ot=Math.max(0,Math.min(ot,ft)),De(St.clientX,St.clientY,Xe,Ke)&&(ne(Le),ue(ot))},document.body.onmouseup=function(){document.body.onmousemove=null}},De=(he,Xe,Ke,St)=>{const Le=document.body.clientHeight,ot=document.body.clientWidth;return he<20&&Ke>he||he>ot-20&&Ke<he||Xe<20&&St>Xe||Xe>Le-20&&St<Xe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,b.useEffect)(()=>{ie&&setTimeout(()=>{const he=document.getElementsByClassName("markdown-popup-form")[0],Xe=window.innerWidth/2-he.offsetWidth/2,Ke=window.innerHeight/2-he.offsetHeight/2;ne(Xe),ue(Ke)},0)},[ie]);const He=()=>{We||Je||ve(!0)};return Me.createElement("div",{style:E},Me.createElement("div",{style:{width:et||"100%",position:"relative"},className:`${de.Z.mathFillWrap} ${We||Je?"cursorDefault":""}`,onClick:()=>He()},Me.createElement("math-field",{disabled:We,locale:"zh_cn",class:`${de.Z.mathField} ${Ye}`,readOnly:Je,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:se?18:14},value:se||""})),Me.createElement(ze.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Me.createElement("div",{style:{cursor:"move"},onMouseDown:je},"\u8F93\u5165\u516C\u5F0F"),open:ie,onOk:()=>{const he=y.current.getData();x.current.setValue(he),Ve(he),ve(!1)},onCancel:()=>{ve(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Me.createElement(Ae.Z,{value:se,ref:y,onChange:Ve,showSaveButton:!1})))});Gt.Z=le},41588:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=ee(95237),Be=ee(43604),Ae=ee(99313),ze=ee(3113),Me=ee(85149),le=ee(88010),st=ee(48136),et=ee(59301);const Ve=(0,b.forwardRef)(({callback:We,showSaveButton:Je,value:Ye=""},se)=>{const E=(0,b.useRef)(),a=[{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 "}]}]}],x=[{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}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:et.createElement(de.Z,{className:le.Z.lists,gutter:[10,10]},a.map((re,ue)=>et.createElement(Be.Z,{flex:"110px",className:le.Z.item},et.createElement("div",null,et.createElement(Me.Z,{value:`$$${re.value}$$`}),re.name),et.createElement("div",{className:le.Z.children},re.children.map((ie,ve)=>et.createElement("div",{key:ve},et.createElement("h1",null,ie.name),et.createElement(de.Z,{gutter:[10,10]},ie.data.map((be,je)=>et.createElement(Be.Z,{key:je,onClick:()=>y(be),className:le.Z.diamond},et.createElement(Me.Z,{value:"`$$"+be.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:et.createElement(de.Z,{className:le.Z.lists,gutter:[10,10]},x.map((re,ue)=>et.createElement(Be.Z,{flex:"110px",className:le.Z.item},et.createElement("div",null,et.createElement(Me.Z,{value:"`$$"+re.value+"$$`"}),re.name),et.createElement("div",{className:le.Z.children},re.children.map((ie,ve)=>et.createElement("div",{key:ve},ie.name&&et.createElement("h1",null,ie.name),et.createElement(de.Z,{gutter:[10,10]},ie.data.map((be,je)=>et.createElement(Be.Z,{key:je,onClick:()=>y(be),className:le.Z.diamond},et.createElement(Me.Z,{value:"`$$"+be.value+"$$`"}))))))))))}],ne=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ue=re.innerText;return We&&We(ue),ue};return(0,b.useImperativeHandle)(se,()=>({getData:ne})),et.createElement("div",{className:le.Z.mathWrap},et.createElement(Ae.default,{defaultActiveKey:"1",items:z}),et.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ye||""),Je&&et.createElement("div",{className:le.Z.button},et.createElement(ze.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Gt.Z=Ve},87198:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Je}});var b=ee(59301),de=ee(78241),Be=ee(43418),Ae=ee(92832),ze=ee(87169),Me=ee(99064),le={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},st=ee(86918),et=ee(59301),Ve=(Ye,se,E)=>new Promise((a,x)=>{var y=re=>{try{ne(E.next(re))}catch(ue){x(ue)}},z=re=>{try{ne(E.throw(re))}catch(ue){x(ue)}},ne=re=>re.done?a(re.value):Promise.resolve(re.value).then(y,z);ne((E=E.apply(Ye,se)).next())}),Je=({type:Ye="subject",open:se,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=de.default.useForm(),[z,ne]=(0,b.useState)([]),[re,ue]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ie=()=>Ve(void 0,null,function*(){if(Ye){const ve=yield(0,Me.ZP)("/api/disciplines.json",{method:"get",params:{source:Ye}});ne(ve.disciplines||[])}});return et.createElement(Be.default,{title:et.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:se,width:558,centered:!0,className:le.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(ve=>Ve(void 0,null,function*(){const be=yield(0,Me.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:ve==null?void 0:ve.name,sub_discipline_id:x}});(be==null?void 0:be.status)===0&&a({name:ve==null?void 0:ve.name,id:be==null?void 0:be.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},et.createElement("div",{className:le.publicQuestContent},et.createElement("div",{className:le.public_tips},et.createElement(ze.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),et.createElement(de.default,{labelAlign:"left",form:y,colon:!1},et.createElement(de.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},et.createElement(Ae.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),et.createElement(st.Z,{open:re,onCancel:()=>{ue(!1)}})))}},67248:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Q:function(){return et},Z:function(){return We}});var b=ee(59301),de={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Be=ee(92310),Ae=ee.n(Be),ze=ee(43418),Me=ee(8591),le=ee(24905),st=(Je,Ye,se)=>new Promise((E,a)=>{var x=ne=>{try{z(se.next(ne))}catch(re){a(re)}},y=ne=>{try{z(se.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((se=se.apply(Je,Ye)).next())});const et=({title:Je="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ye=[],visible:se,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[ne,re]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{se&&z(Ye)},[se]),b.createElement(ze.default,{centered:!0,open:se,title:Je,confirmLoading:ne,width:564,onOk:()=>st(void 0,null,function*(){if(!y.length){Me.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}re(!0),yield x(y),re(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(le.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ue=>{z(ue)}})))};var We=({title:Je="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ye,style:se={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:de.c},"C"),"C++":b.createElement("div",{className:de.cpp},"C++"),Java:b.createElement("div",{className:de.java},"Java"),Python:b.createElement("div",{className:de.python},"Python")};return b.createElement("div",{className:Ae()(de.tags,Ye),style:se},!!Je&&b.createElement("div",{className:de.text},Je),b.createElement("div",{className:de.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${de.edit}`}))}},90502:function(Qt,Gt,ee){"use strict";ee.d(Gt,{t:function(){return ut}});var b=ee(59301),de=ee(92832),Be=ee(78241),Ae=ee(43418),ze=ee(95237),Me=ee(43604),le=ee(5871),st=ee(57809),et=ee(5112),Ve=ee(41984),We=ee(89070),Je=ee(43809),Ye=ee(8591),se=ee(3113),E=ee(71418),a=ee(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=ee(99064),z=ee(88264),ne=ee(12290),re=ee(56102),ue=ee(74440),ie=ee(59301),ve=Object.defineProperty,be=Object.defineProperties,je=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Xe=(at,Ie,fe)=>Ie in at?ve(at,Ie,{enumerable:!0,configurable:!0,writable:!0,value:fe}):at[Ie]=fe,Ke=(at,Ie)=>{for(var fe in Ie||(Ie={}))He.call(Ie,fe)&&Xe(at,fe,Ie[fe]);if(De)for(var fe of De(Ie))he.call(Ie,fe)&&Xe(at,fe,Ie[fe]);return at},St=(at,Ie)=>be(at,je(Ie)),Le=(at,Ie,fe)=>new Promise((qe,At)=>{var Oe=tt=>{try{Ct(fe.next(tt))}catch(ke){At(ke)}},Ne=tt=>{try{Ct(fe.throw(tt))}catch(ke){At(ke)}},Ct=tt=>tt.done?qe(tt.value):Promise.resolve(tt.value).then(Oe,Ne);Ct((fe=fe.apply(at,Ie)).next())}),lt=({buttonProps:at,buttonText:Ie,form:fe,hackIdentifier:qe="",answerKey:At,data:Oe})=>{const[Ne,Ct]=(0,b.useState)(!1),[tt,ke]=(0,b.useState)(!1),[ht,Sn]=(0,b.useState)(!1),[rn,an]=(0,b.useState)({}),[mn,cn]=(0,b.useState)(""),[Te,Ft]=(0,b.useState)(""),zt=(0,b.useRef)(qe),wt=(0,b.useRef)(""),Rt=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ht&&Vn()},[ht]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const un=()=>new Date().getTime(),dn=Oe==null?void 0:Oe.code,_n=()=>{var Na,rr;let Ka=dn?Oe==null?void 0:Oe.code:(Na=fe.getFieldValue("hack_codes"))==null?void 0:Na.code,Ea=dn?Oe==null?void 0:Oe.answer_content:fe.getFieldValue(At),yr=dn?Oe==null?void 0:Oe.input:(rr=fe.getFieldValue("hack_sets"))==null?void 0:rr.input;Ea==null||Ea.forEach(Xt=>{const jn=Xt.value||Xt.answer_text||"";Ka=Ka.replace(/(@▁@|@▁▁@)/,jn)}),Ft(yr),cn(Ka),an({}),Sn(!0)},Vn=()=>Le(void 0,null,function*(){var Na,rr,Ka,Ea;const yr=un(),Xt=dn?Oe==null?void 0:Oe.time_limit:(Na=fe.getFieldsValue())==null?void 0:Na.hack.time_limit,jn=dn?(rr=Oe==null?void 0:Oe.answer_content)==null?void 0:rr.length:(Ea=(Ka=fe.getFieldsValue())==null?void 0:Ka.standard_answers)==null?void 0:Ea.length;Ct(!0),yield(0,z.bM)(wt.current,{test_hack_code:mn,test_input:Te});function Qn(){return Le(this,null,function*(){const{status:Ia,data:Ge}=yield(0,z.rX)(wt.current,"submit"),_t=un()-yr>(Xt+3)*1e3*jn;if(Rt.current){if(_t){Ye.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Ct(!1);return}if(Ia===0){Ct(!1),an(St(Ke({},Ge),{showText:!0}));return}setTimeout(Qn,1e3)}})}Qn()}),va=()=>Le(void 0,null,function*(){var Na,rr,Ka,Ea,yr,Xt,jn;if(!Oe){try{yield fe.validateFields()}catch(Ot){(Ka=(rr=(Na=Ot==null?void 0:Ot.errorFields)==null?void 0:Na[0])==null?void 0:rr.name)!=null&&Ka.includes("standard_answers")?Ye.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ye.ZP.error(Ot.errorFields[0].errors[0]),fe.scrollToField(Ot.errorFields[0].name,{behavior:"smooth",block:"center"});return}ke(!0);let Ia="";const Ge=fe.getFieldsValue();zt.current?Ia=yield(0,y.ZP)(`/api/problems/${zt.current}.json`,{method:"put",body:St(Ke({},Ge),{hack:St(Ke({},Ge==null?void 0:Ge.hack),{sub_discipline_id:(jn=(Xt=Ge==null?void 0:Ge.hack)==null?void 0:Xt.sub_discipline_id)==null?void 0:jn[1],difficult:Ge.difficulty,item_banks_group_id:Ge.item_banks_group_id}),hack_codes:St(Ke({},Ge.hack_codes),{code:a.Base64.encode(Ge.hack_codes.code)}),update_hack_sets:[Ke({},Ge.hack_sets)],is_blank:!0})}):(Ia=yield(0,y.ZP)("/api/problems.json",{method:"post",body:St(Ke({},Ge),{hack:St(Ke({},Ge==null?void 0:Ge.hack),{sub_discipline_id:(yr=(Ea=Ge==null?void 0:Ge.hack)==null?void 0:Ea.sub_discipline_id)==null?void 0:yr[1],difficult:Ge.difficulty,item_banks_group_id:Ge.item_banks_group_id}),hack_codes:St(Ke({},Ge.hack_codes),{code:a.Base64.encode(Ge.hack_codes.code)}),hack_sets:[Ke({},Ge.hack_sets)],is_blank:!0})}),zt.current=Ia==null?void 0:Ia.identifier,sessionStorage.projectFill=Ia==null?void 0:Ia.identifier)}const Qn=yield(0,y.ZP)(`/api/problems/${zt.current}/start.json`,{method:"get"});if((Qn==null?void 0:Qn.status)===0){wt.current=Qn==null?void 0:Qn.identifier,Rt.current=!0,ke(!1),_n();return}ke(!1)}),La=Na=>{const{status:rr,error_msg:Ka,execute_time:Ea,output:yr,input:Xt,expected_output:jn}=Na;let Qn=null;switch(rr){case ue.h.OK:Qn=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ea/1e3,"\u79D2"),ie.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ue.h.NOMATCH:Qn=ie.createElement(ie.Fragment,null,ie.createElement("div",null,"\u8F93\u5165\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Xt),ie.createElement("div",null,"\u8F93\u51FA\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},yr&&a.Base64.decode(yr)),ie.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},jn&&a.Base64.decode(jn)));break;case ue.h.EXECUTEFAILURE:Qn=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ie.createElement("pre",null,Xt)),ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ie.createElement("pre",{className:"error"},a.Base64.decode(Ka)));break;case ue.h.COMPILEFAILURE:Qn=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ie.createElement("pre",null,Xt)),ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ie.createElement("pre",{className:"error"},a.Base64.decode(Ka)));break;case ue.h.PODFAILURE:Qn=ie.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ue.h.TIMEOUT:Qn=ie.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ie.createElement(ie.Fragment,null," ",Qn," ")};return ie.createElement("div",null,ie.createElement(se.ZP,St(Ke({loading:tt},at),{onClick:va}),Ie),ie.createElement(Ae.default,{open:ht,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ne,cancelButtonProps:{style:{display:"none"}},onOk:()=>Vn(),onCancel:()=>{Rt.current=!1,Sn(!1)}},ie.createElement("div",{className:x.result},ie.createElement("div",{className:x.left},ie.createElement("div",{className:"mb20"},ie.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Oe&&ie.createElement(re.CopyToClipboard,{text:mn,onCopy:()=>Ye.ZP.success("\u590D\u5236\u6210\u529F")},ie.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ie.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ie.createElement(ne.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:mn,onChange:Na=>cn(Na)})),ie.createElement("div",{className:x.right},ie.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ie.createElement("div",{className:x.box},ie.createElement("div",{className:x.li},ie.createElement(de.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Te,onChange:Na=>Ft(Na.target.value),bordered:!1,style:{height:180}}))),ie.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ie.createElement("div",{className:x.box},ie.createElement(E.Z,{spinning:Ne,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ie.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},La(rn))))))))},gt=ee(87169),ft=ee(59301),ln=Object.defineProperty,xt=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,En=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,on=(at,Ie,fe)=>Ie in at?ln(at,Ie,{enumerable:!0,configurable:!0,writable:!0,value:fe}):at[Ie]=fe,Yn=(at,Ie)=>{for(var fe in Ie||(Ie={}))$e.call(Ie,fe)&&on(at,fe,Ie[fe]);if(En)for(var fe of En(Ie))dt.call(Ie,fe)&&on(at,fe,Ie[fe]);return at},Zt=(at,Ie)=>xt(at,nn(Ie)),On=(at,Ie)=>{var fe={};for(var qe in at)$e.call(at,qe)&&Ie.indexOf(qe)<0&&(fe[qe]=at[qe]);if(at!=null&&En)for(var qe of En(at))Ie.indexOf(qe)<0&&dt.call(at,qe)&&(fe[qe]=at[qe]);return fe};const{TextArea:_e}=de.default,ct=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],kt=({value:at,onChange:Ie})=>ft.createElement(Switch,{checked:at,onChange:fe=>{Ie(fe)}}),mt="@\u2581@",It="@\u2581\u2581@",ut=({questionTitlePlaceholder:at,form:Ie,scoreByBlank:fe=!1,hackidentifier:qe,answerKey:At})=>{const[Oe,Ne]=(0,b.useState)(!1),[Ct,tt]=(0,b.useState)(!1),ht=(0,We.useParams)().type==="edit",Sn=(wt,Rt)=>{const un=Rt.line;let dn=0;for(let Vn=0;Vn<un;Vn++)dn+=wt.getLine(Vn).split(mt).length-1;for(let Vn=0;Vn<un;Vn++)dn+=wt.getLine(Vn).split(It).length-1;const _n=wt.getLine(un).substring(0,Rt.ch);return dn+=_n.split(mt).length-1,dn+=_n.split(It).length-1,dn},rn=(wt,Rt,un,dn)=>{const _n=wt.getRange(Rt.from,Rt.to);let Vn=0;if(Rt.text.forEach(va=>{Vn+=va.split(mt).length-1}),Rt.text.forEach(va=>{Vn+=va.split(It).length-1}),Rt.origin!=="setValue"){if(_n&&(_n.indexOf(mt)!==-1||_n.indexOf(It)!==-1)){const va=_n.split(mt).length-1+_n.split(It).length-1,La=Sn(wt,Rt.from);if(console.log(`\u5220\u9664${va}\u4E2A\uFF0C \u524D\u9762\u6709${La}\u4E2A\uFF0C\u65B0\u589E${Vn}\u4E2A`),va>1){const Na=Array.from({length:va},(rr,Ka)=>La+Ka);dn(Na)}else dn(La)}else if(Vn>0){const va=Sn(wt,Rt.from);console.log(`\u65B0\u589E${Vn}\u4E2A\uFF0C\u4E4B\u524D\u6709${va}\u4E2A`),un(Vn,va)}}},an=()=>{const wt=Ie.getFieldValue(At);Ie.setFieldsValue({[At]:wt==null?void 0:wt.map((Rt,un)=>Zt(Yn({},Rt),{position:un+1}))})},mn=(0,b.useRef)(),cn=(wt,Rt)=>{for(let un=0;un<wt;un++)mn.current({position:null,answer_text:""},Rt+un);an()},Te=(0,b.useRef)(),Ft=wt=>{Te.current(wt),an()},zt=Be.default.useWatch(At,Ie);return ft.createElement("div",{className:Je.Z.wrap},ft.createElement(Be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},ft.createElement(Ve.h,{scrollId:"name",watch:!0,height:140})),ft.createElement("div",{className:Je.Z.questionTitleEditorWrap},ft.createElement(Be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},ft.createElement(Ve.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(wt,Rt)=>{const un=Ie.getFieldValue(At);console.log("--preAnswerData",un,Rt),Ie.setFieldsValue({[At]:un==null?void 0:un.map((dn,_n)=>{var Vn;return Zt(Yn({},dn),{position:_n+1,multi_line:(Vn=Rt==null?void 0:Rt[_n])==null?void 0:Vn.multiLine})})})},placeholder:at,onCMBeforeChange:(wt,Rt)=>{rn(wt,Rt,cn,Ft)}}))),ft.createElement(Be.default.List,{name:At,rules:[{validator(wt,Rt){if(!(Rt!=null&&Rt.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const un of Rt){const{answer_text:dn}=un||{};if((dn==null?void 0:dn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(wt,{add:Rt,remove:un},{errors:dn})=>(mn.current=Rt,Te.current=un,ft.createElement(ft.Fragment,null,ft.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ft.createElement(Be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),ft.createElement("div",{onClick:()=>{Ae.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:ft.createElement("div",null,ft.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",ft.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),ft.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},ft.createElement(gt.Z,{style:{marginRight:3,color:"#3061D0"}}),ft.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),wt.map((_n,Vn)=>{var va=_n,{key:La,name:Na}=va,rr=On(va,["key","name"]),Ka,Ea;return ft.createElement(ze.Z,{className:"mb20",key:La,align:"middle",wrap:!1},ft.createElement(Me.Z,{flex:"0 0 auto",className:`${Je.Z.blankIndex}`},"\u586B\u7A7A\u9879",Vn+1),ft.createElement(Me.Z,{flex:1},ft.createElement(ze.Z,{align:"top",justify:"space-between",wrap:!1},ft.createElement(Me.Z,null,ft.createElement(Be.default.Item,Zt(Yn({},rr),{name:[Na,"answer_text"],noStyle:!0}),(Ka=zt==null?void 0:zt[Na])!=null&&Ka.multi_line||(Ea=zt==null?void 0:zt[Na])!=null&&Ea.multiLine?ft.createElement(_e,{spellCheck:!1,style:{marginLeft:10,width:550}}):ft.createElement(de.default,{style:{marginLeft:10,width:550},className:Je.Z.blankInput,size:"large",maxLength:1e3,onBlur:yr=>{}}))),fe&&ft.createElement(Me.Z,{flex:"224px"},ft.createElement(Be.default.Item,Zt(Yn({},rr),{name:[Na,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ft.createElement(le.Z,{size:"large",className:Je.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),ft.createElement("div",{onClick:()=>Ne(!0)},ft.createElement(Be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ft.createElement(Ve.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Oe}))),ft.createElement(Be.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},ft.createElement(st.default,{size:"large"},ct.map(wt=>ft.createElement(st.default.Option,{key:wt.title,value:wt.key}," ",wt.title)))),ft.createElement(Be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},ft.createElement(Be.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},ft.createElement(le.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),ft.createElement("span",{className:"ml10 font14"},"\u79D2")),ft.createElement(Be.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ft.createElement(et.ZP.Group,{style:{marginTop:-10}},ft.createElement(et.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ft.createElement(et.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ft.createElement(et.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),ft.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),ft.createElement("div",{style:{background:"#F6F7F9",padding:15}},ft.createElement(Be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},ft.createElement(_e,{rows:4})),ft.createElement(Be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ft.createElement(_e,{rows:4}))),ft.createElement(lt,{form:Ie,answerKey:At,hackIdentifier:qe,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:ft.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},65357:function(Qt,Gt,ee){"use strict";ee.d(Gt,{u:function(){return ie}});var b=ee(59301),de=ee(95237),Be=ee(43604),Ae=ee(6848),ze=ee(78241),Me=ee(43809),le=ee(32134),st=ee(12893),et=ee(41984),Ve=ee(59301),We=Object.defineProperty,Je=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(ve,be,je)=>be in ve?We(ve,be,{enumerable:!0,configurable:!0,writable:!0,value:je}):ve[be]=je,y=(ve,be)=>{for(var je in be||(be={}))E.call(be,je)&&x(ve,je,be[je]);if(se)for(var je of se(be))a.call(be,je)&&x(ve,je,be[je]);return ve},z=(ve,be)=>Je(ve,Ye(be)),ne=(ve,be)=>{var je={};for(var De in ve)E.call(ve,De)&&be.indexOf(De)<0&&(je[De]=ve[De]);if(ve!=null&&se)for(var De of se(ve))be.indexOf(De)<0&&a.call(ve,De)&&(je[De]=ve[De]);return je};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ue=({value:ve,onChange:be,choiceTextKey:je,answerKey:De,index:He,isEdit:he,setInputActive:Xe,form:Ke,choiceOptionsPath:St,allowChangeMode:Le,showAddIcon:ot,addItem:lt,deleteItem:gt})=>{console.log(ve,"value");const ft=(ve==null?void 0:ve[De])===1,ln=()=>{const nn=Ke.getFieldValue(St);Ke.setFieldValue(St,nn.map(En=>z(y({},En),{[De]:0})))},xt=()=>{ft?be(z(y({},ve),{[De]:0})):(Le||ln(),be(z(y({},ve),{[De]:1})))};return Ve.createElement(de.Z,{className:Me.Z.choiceWrap,align:"middle",wrap:!1},Ve.createElement(Be.Z,{onClick:xt,className:`${Me.Z.choiceIndex} ${ft?Me.Z.activeAnswer:""}`},re[He]),Ve.createElement(Be.Z,{flex:1,className:`${Me.Z.editorWrap} ml15`,onClick:Xe},Ve.createElement(et.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:he,value:ve==null?void 0:ve[je],onChange:nn=>{be(z(y({},ve),{[je]:nn}))}})),Ve.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Ve.createElement("div",{onClick:xt,className:`${Me.Z.setAnswerBtn} ${ft?Me.Z.activeAnswer:""}`},ft?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Ve.createElement(Be.Z,{className:Me.Z.actionWrapper},Ve.createElement(Ae.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Ve.createElement(le.Z,{className:Me.Z.addIcon,onClick:lt,style:{visibility:ot?"visible":"hidden"}})),Ve.createElement(Ae.Z,{title:"\u5220\u9664"},Ve.createElement(st.Z,{className:Me.Z.deleteIcon,onClick:gt,style:{visibility:He>1?"visible":"hidden"}}))))},ie=({questionTitlePlaceholder:ve,titleKey:be,choiceKey:je,analysisKey:De,choiceTextKey:He,answerKey:he,choiceOptionsPath:Xe,allowChangeMode:Ke=!0,form:St,showAnalysis:Le=!0})=>{const[ot,lt]=(0,b.useState)(),[gt,ft]=(0,b.useState)(!1);return Ve.createElement("div",{className:Me.Z.wrap},Ve.createElement("div",{className:Me.Z.questionTitleEditorWrap},Ve.createElement(ze.default.Item,{label:"\u9898\u5E72",name:be,labelCol:{span:24},rules:[{required:!0}]},Ve.createElement(et.h,{scrollId:Array.isArray(be)?be.join("_"):`${be}`,watch:!0,height:140,placeholder:ve}))),Ve.createElement(ze.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Ve.createElement(ze.default.List,{name:je,rules:[{validator(ln,xt){const nn=xt.some($e=>$e[he]===1),En=xt.findIndex($e=>{var dt;return((dt=$e[He])==null?void 0:dt.length)<=0});return En!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[En]}\u9009\u9879\u7684\u5185\u5BB9`)):nn?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ln,{add:xt,remove:nn})=>Ve.createElement("div",{id:Array.isArray(Xe)?Xe.join("_"):`${Xe}`},ln.map((En,$e)=>{var dt=En,{key:on,name:Yn}=dt,Zt=ne(dt,["key","name"]);const On=ot===on,_e=()=>{lt(on)},ct=$e<7&&$e===ln.length-1,kt=()=>xt({[He]:"",[he]:0}),mt=()=>nn(Yn);return Ve.createElement(ze.default.Item,z(y({},Zt),{key:on,name:Yn,className:Me.Z.choiceListWrap,rules:[{validator(It,ut){return ut!=null&&ut.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[$e]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),Ve.createElement(ue,{choiceTextKey:He,answerKey:he,index:$e,isEdit:On,setInputActive:_e,form:St,choiceOptionsPath:Xe,allowChangeMode:Ke,showAddIcon:ct,addItem:kt,deleteItem:mt}))}),ln.length<8&&Ve.createElement("div",{className:`${Me.Z.addBtn} mb30`,onClick:()=>xt({[He]:"",[he]:0})},"\u6DFB\u52A0\u9009\u9879"))),Le&&Ve.createElement("div",{onClick:()=>ft(!0)},Ve.createElement(ze.default.Item,{name:De,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ve.createElement(et.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:gt}))))}},70472:function(Qt,Gt,ee){"use strict";ee.d(Gt,{u:function(){return Ke}});var b=ee(59301),de=ee(43418),Be=ee(95237),Ae=ee(43604),ze=ee(92832),Me=ee(6848),le=ee(78673),st=ee(78241),et=ee(5112),Ve=ee(5871),We=ee(41984),Je=ee(12893),Ye=ee(61485),se=ee(43809),E=ee(59879),a=ee(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ie=(St,Le,ot)=>Le in St?x(St,Le,{enumerable:!0,configurable:!0,writable:!0,value:ot}):St[Le]=ot,ve=(St,Le)=>{for(var ot in Le||(Le={}))re.call(Le,ot)&&ie(St,ot,Le[ot]);if(ne)for(var ot of ne(Le))ue.call(Le,ot)&&ie(St,ot,Le[ot]);return St},be=(St,Le)=>y(St,z(Le)),je=(St,Le)=>{var ot={};for(var lt in St)re.call(St,lt)&&Le.indexOf(lt)<0&&(ot[lt]=St[lt]);if(St!=null&&ne)for(var lt of ne(St))Le.indexOf(lt)<0&&ue.call(St,lt)&&(ot[lt]=St[lt]);return ot};const De=({value:St,onChange:Le})=>{const ot=gt=>{de.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:se.Z.modal,onOk:()=>{const ft=[...St];ft.splice(gt,1),Le(ft)}})},lt=()=>{const gt=[...St];gt.push(""),Le(gt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ae.Z,{flex:1},St==null?void 0:St.map((gt,ft)=>a.createElement(Be.Z,{key:`${gt}_${ft}`,className:"mb20"},a.createElement(ze.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:gt,autoSize:{maxRows:3},maxLength:1e3,onBlur:ln=>{const xt=[...St],nn=ln.target.value.trim();xt[ft]=nn,Le(xt)}}),a.createElement(Me.Z,{title:"\u5220\u9664"},a.createElement(Je.Z,{className:se.Z.deleteIcon,style:{marginLeft:15,visibility:ft>0?"visible":"hidden"},onClick:()=>ot(ft)}))))),a.createElement(Ae.Z,null,a.createElement("div",{className:`${se.Z.addBtn}`,onClick:()=>{lt()}},"\u65B0\u589E\u7B54\u6848")))},He=({value:St,onChange:Le})=>{const ot=gt=>{de.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:se.Z.modal,onOk:()=>{const ft=[...St];ft.splice(gt,1),Le(ft)}})},lt=()=>{const gt=[...St];gt.push(""),Le(gt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ae.Z,{flex:1},St==null?void 0:St.map((gt,ft)=>a.createElement(Be.Z,{key:`${gt}_${ft}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:gt,style:{flex:1},onChange:ln=>{const xt=[...St];xt[ft]=ln,Le(xt)}}),a.createElement(Me.Z,{title:"\u5220\u9664"},a.createElement(Je.Z,{className:se.Z.deleteIcon,style:{marginLeft:15,visibility:ft>0?"visible":"hidden"},onClick:()=>ot(ft)}))))),a.createElement(Ae.Z,null,a.createElement("div",{className:`${se.Z.addBtn}`,onClick:()=>{lt()}},"\u65B0\u589E\u7B54\u6848")))},he=({value:St=!0,onChange:Le})=>a.createElement(le.Z,{checked:!St,onChange:ot=>{Le(!ot)}}),Xe="\u2581",Ke=({questionTitlePlaceholder:St,form:Le,scoreByBlank:ot=!1,answerKey:lt})=>{const[gt,ft]=(0,b.useState)(!1),ln=(Zt,On)=>{const _e=On.line;let ct=0;for(let mt=0;mt<_e;mt++)ct+=Zt.getLine(mt).split(Xe).length-1;const kt=Zt.getLine(_e).substring(0,On.ch);return ct+=kt.split(Xe).length-1,ct},xt=(Zt,On,_e,ct)=>{const kt=Zt.getRange(On.from,On.to);let mt=0;if(On.text.forEach(It=>{mt+=It.split(Xe).length-1}),On.origin!=="setValue"){if(kt&&kt.indexOf(Xe)!==-1){const It=kt.split(Xe).length-1,ut=ln(Zt,On.from);if(console.log(`\u5220\u9664${It}\u4E2A\uFF0C \u524D\u9762\u6709${ut}\u4E2A\uFF0C\u65B0\u589E${mt}\u4E2A`),It>1){const at=Array.from({length:It},(Ie,fe)=>ut+fe);ct(at)}else ct(ut)}else if(mt>0){const It=ln(Zt,On.from);console.log(`\u65B0\u589E${mt}\u4E2A\uFF0C\u4E4B\u524D\u6709${It}\u4E2A`),_e(mt,It)}}},nn=()=>{const Zt=Le.getFieldValue(lt);Le.setFieldsValue({[lt]:Zt.map((On,_e)=>be(ve({},On),{position:_e+1}))})},En=(0,b.useRef)(),$e=(Zt,On)=>{for(let _e=0;_e<Zt;_e++)En.current({position:null,answer_text:[""],model:1},On+_e);nn()},dt=(0,b.useRef)(),on=Zt=>{dt.current(Zt),nn()},Yn=st.default.useWatch(lt,Le);return a.createElement("div",{className:se.Z.wrap},a.createElement("div",{className:se.Z.questionTitleEditorWrap},a.createElement(st.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:St,showNullButton:!0,onCMBeforeChange:(Zt,On)=>{xt(Zt,On,$e,on)}}))),a.createElement(st.default.List,{name:lt,rules:[{validator(Zt,On){if(!(On!=null&&On.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const _e of On){const{answer_text:ct}=_e||{};if(ct!=null&&ct.some(kt=>(kt==null?void 0:kt.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Zt,{add:On,remove:_e},{errors:ct})=>(En.current=On,dt.current=_e,a.createElement(a.Fragment,null,a.createElement(st.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Zt!=null&&Zt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Zt.map((kt,mt)=>{var It=kt,{key:ut,name:at}=It,Ie=je(It,["key","name"]),fe,qe;return a.createElement("div",{style:{marginBottom:10},key:ut},a.createElement(Be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Ae.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${se.Z.blankIndex}`},"\u586B\u7A7A\u9879",mt+1),a.createElement(st.default.Item,be(ve({},Ie),{name:[at,"model"],noStyle:!0}),a.createElement(et.ZP.Group,{onChange:()=>{const At=Le.getFieldValue(lt);Le.setFieldsValue({[lt]:At.map((Oe,Ne)=>be(ve({},Oe),{answer_text:at===Ne?[""]:Oe.answer_text}))})}},a.createElement(et.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ye.Z,null))),a.createElement(et.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ye.Z,null)))))),a.createElement(Be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Ae.Z,{flex:1},a.createElement(Be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Ae.Z,{flex:1},a.createElement(st.default.Item,be(ve({},Ie),{name:[at,"answer_text"],noStyle:!0}),((qe=(fe=Le.getFieldValue(lt))==null?void 0:fe[at])==null?void 0:qe.model)===1?a.createElement(De,null):a.createElement(He,null))),ot&&a.createElement(Ae.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(st.default.Item,be(ve({},Ie),{name:[at,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:se.Z.blankInputNumberWrapper}),a.createElement(Ve.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(st.default.Item,be(ve({},Ie),{name:[at,"position"],noStyle:!0}),a.createElement(ze.default,{type:"hidden"})))))})))),a.createElement(Be.Z,{align:"middle"},a.createElement(st.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(le.Z,null)),a.createElement(Ae.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(Be.Z,{align:"middle"},a.createElement(st.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(le.Z,null)),a.createElement(Ae.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Yn==null?void 0:Yn.length)>1&&a.createElement(Be.Z,{align:"middle",className:(Yn==null?void 0:Yn.length)>1?"mb30":`${se.Z.hide}`},a.createElement(st.default.Item,{name:"is_ordered"},a.createElement(he,null)),a.createElement(Ae.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>ft(!0)},a.createElement(st.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:gt}))))}},11832:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return ne}});var b=ee(59301),de=ee(95237),Be=ee(43604),Ae=ee(78241),ze=ee(43809),Me=ee(41984),le=ee(59301),st=Object.defineProperty,et=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,se=(re,ue,ie)=>ue in re?st(re,ue,{enumerable:!0,configurable:!0,writable:!0,value:ie}):re[ue]=ie,E=(re,ue)=>{for(var ie in ue||(ue={}))Je.call(ue,ie)&&se(re,ie,ue[ie]);if(We)for(var ie of We(ue))Ye.call(ue,ie)&&se(re,ie,ue[ie]);return re},a=(re,ue)=>et(re,Ve(ue)),x=(re,ue)=>{var ie={};for(var ve in re)Je.call(re,ve)&&ue.indexOf(ve)<0&&(ie[ve]=re[ve]);if(re!=null&&We)for(var ve of We(re))ue.indexOf(ve)<0&&Ye.call(re,ve)&&(ie[ve]=re[ve]);return ie};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ue,form:ie})=>{const ve=(re==null?void 0:re.is_answer)===1,be=re==null?void 0:re.choice_text,je=()=>{const De=ie.getFieldsValue().choices.map(He=>({choice_text:He.choice_text,is_answer:0}));ie.setFieldsValue({choices:De}),ue(a(E({},re),{is_answer:1}))};return le.createElement(de.Z,{className:ze.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},le.createElement(Be.Z,{onClick:je,className:`${ze.Z.choiceIndex} ${ze.Z.judgementIndex} ${ve?ze.Z.activeAnswer:""}`},y[be]),le.createElement(Be.Z,{flex:1,className:`${ze.Z.editorWrap} ml15`},le.createElement("div",{className:`${ze.Z.inputBorder} ${ze.Z.placeholder} ${ve?ze.Z.activeJudgementAnswer:""}`},be)),le.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},le.createElement("div",{onClick:je,className:`${ze.Z.setAnswerBtn} ${ve?ze.Z.activeAnswer:""}`},ve?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ne=({questionTitlePlaceholder:re,choiceKey:ue,form:ie})=>{const[ve,be]=(0,b.useState)(!1);return le.createElement("div",{className:ze.Z.wrap},le.createElement("div",{className:ze.Z.questionTitleEditorWrap},le.createElement(Ae.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},le.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),le.createElement(Ae.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},le.createElement(Ae.default.List,{name:"choices",rules:[{validator(je,De){return De.some(he=>(he==null?void 0:he.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},je=>le.createElement("div",{id:"choices"},je.map(De=>{var He=De,{key:he,name:Xe}=He,Ke=x(He,["key","name"]);return le.createElement(Ae.default.Item,a(E({},Ke),{key:he,name:Xe,noStyle:!0}),le.createElement(z,{form:ie}))})))),le.createElement("div",{onClick:()=>be(!0)},le.createElement(Ae.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},le.createElement(Me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ve}))))}},41984:function(Qt,Gt,ee){"use strict";ee.d(Gt,{h:function(){return E},x:function(){return a}});var b=ee(12290),de=ee(43809),Be=ee(85149),Ae=ee(59301),ze=Object.defineProperty,Me=Object.defineProperties,le=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,We=(x,y,z)=>y in x?ze(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,Je=(x,y)=>{for(var z in y||(y={}))et.call(y,z)&&We(x,z,y[z]);if(st)for(var z of st(y))Ve.call(y,z)&&We(x,z,y[z]);return x},Ye=(x,y)=>Me(x,le(y)),se=(x,y)=>{var z={};for(var ne in x)et.call(x,ne)&&y.indexOf(ne)<0&&(z[ne]=x[ne]);if(x!=null&&st)for(var ne of st(x))y.indexOf(ne)<0&&Ve.call(x,ne)&&(z[ne]=x[ne]);return z};const E=x=>{var y=x,{value:z,onChange:ne,scrollId:re}=y,ue=se(y,["value","onChange","scrollId"]);return Ae.createElement("div",{id:re||""},Ae.createElement(b.Z,Ye(Je({},ue),{defaultValue:z,onChange:(ie,ve)=>{ve!=null&&ve.length?ne(ie,ve):ne(ie)}})))},a=({value:x,onChange:y,placeholder:z,height:ne=140,isEdit:re,miniToolbar:ue,watch:ie=!0})=>re?Ae.createElement(b.Z,{watch:ie,isFocus:!0,height:ne||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ue}):Ae.createElement("div",{style:{cursor:"pointer"}},x?Ae.createElement(Be.Z,{className:de.Z.inputBorder,value:x}):Ae.createElement("div",{className:`${de.Z.inputBorder} ${de.Z.placeholder} inputBorderError`},z))},35173:function(Qt,Gt,ee){"use strict";ee.d(Gt,{W:function(){return He}});var b=ee(59301),de=ee(8591),Be=ee(12563),Ae=ee(78241),ze=ee(78673),Me=ee(95237),le=ee(43604),st=ee(6848),et=ee(92832),Ve=ee(5871),We=ee(43809),Je=ee(41984),Ye=ee(12290),se=ee(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(he,Xe,Ke)=>Xe in he?E(he,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):he[Xe]=Ke,ue=(he,Xe)=>{for(var Ke in Xe||(Xe={}))z.call(Xe,Ke)&&re(he,Ke,Xe[Ke]);if(y)for(var Ke of y(Xe))ne.call(Xe,Ke)&&re(he,Ke,Xe[Ke]);return he},ie=(he,Xe)=>a(he,x(Xe)),ve=(he,Xe)=>{var Ke={};for(var St in he)z.call(he,St)&&Xe.indexOf(St)<0&&(Ke[St]=he[St]);if(he!=null&&y)for(var St of y(he))Xe.indexOf(St)<0&&ne.call(he,St)&&(Ke[St]=he[St]);return Ke};const be=he=>{var Xe=he,{value:Ke,onChange:St}=Xe,Le=ve(Xe,["value","onChange"]);const ot=lt=>{St([lt])};return b.createElement(Ye.Z,ie(ue({},Le),{defaultValue:Ke==null?void 0:Ke[0],onChange:ot}))},je=he=>{if(!he)return!1;if(/^s*$/.test(he)||he.trim()===""){de.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Xe=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return he==="|"?(de.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},De=({value:he=[],onClose:Xe})=>b.createElement(Be.default,{closable:!0,onClose:Xe,className:We.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},he.join(" \u6216 "))),He=({questionTitlePlaceholder:he,form:Xe,showKeywords:Ke,isMustKeyWords:St=Ke})=>{const[Le,ot]=(0,b.useState)(!1),[lt,gt]=(0,b.useState)(""),ft=Ae.default.useWatch("use_keywords",Xe),ln=Ae.default.useWatch("question_score",Xe);return b.createElement("div",{className:We.Z.wrap},b.createElement("div",{className:We.Z.questionTitleEditorWrap},b.createElement(Ae.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(Je.h,{scrollId:"name",watch:!0,height:140,placeholder:he}))),b.createElement(Ae.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(be,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ke&&!St&&b.createElement(Ae.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(ze.Z,{defaultChecked:!0})),Ke&&St&&b.createElement(Me.Z,{align:"middle",className:"mb30"},b.createElement(Ae.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(ze.Z,null)),b.createElement(le.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(le.Z,null,b.createElement(st.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(se.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ft||!St)&&b.createElement(Ae.default.List,{name:"keywords",rules:[{validator(xt,nn){return St?nn!=null&&nn.length?(nn==null?void 0:nn.reduce(($e,dt)=>$e+dt.score,0))>parseFloat(ln)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(xt,{add:nn,remove:En})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${We.Z.title} mb10`},St?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Me.Z,{align:"middle",className:"font14 mb30"},b.createElement(le.Z,{flex:1},b.createElement(et.default,{value:lt,onChange:$e=>{gt($e.target.value)},maxLength:50,allowClear:!0,onPressEnter:$e=>{var dt,on,Yn,Zt;const On=`${(dt=$e.target)==null?void 0:dt.value}`,_e=(Yn=(on=On==null?void 0:On.split("|"))==null?void 0:on.filter(mt=>!!mt))==null?void 0:Yn.map(mt=>mt==null?void 0:mt.trim()),ct=Xe.getFieldValue("keywords"),kt=((Zt=ct==null?void 0:ct.map(mt=>mt==null?void 0:mt.keyword))==null?void 0:Zt.flat())||[];for(const mt of _e)if(kt.includes(mt)){de.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}je(On)&&(nn({keyword:_e,score:1}),gt(""))},className:We.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(le.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),xt.map($e=>{var dt=$e,{key:on,name:Yn}=dt,Zt=ve(dt,["key","name"]);return b.createElement(Me.Z,{key:on,className:"mb20",style:{marginRight:148}},b.createElement(le.Z,{flex:1},b.createElement(Me.Z,{align:"middle",justify:"space-between"},b.createElement(Ae.default.Item,ie(ue({},Zt),{name:[Yn,"keyword"]}),b.createElement(De,{onClose:()=>En(Yn)})),St&&b.createElement(Ae.default.Item,ie(ue({},Zt),{name:[Yn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:We.Z.blankInputNumberWrapper}),b.createElement(Ve.Z,{className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>ot(!0)},b.createElement(Ae.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Je.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Le}))))}},27693:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return ze}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},de=ee(78241),Be=ee(59301),ze=({text:Me,name:le="question_score"})=>{const st=({value:et})=>Be.createElement("div",{className:b.text},Be.createElement("span",{className:b.sup},"*"),Be.createElement("span",{className:"mr10"},"\u5206\u503C"),Be.createElement("span",null,et||"--"),Be.createElement("span",{className:"c-grey-999"},Me));return Be.createElement(de.default.Item,{noStyle:!0,name:le},Be.createElement(st,null))}},79669:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return je},P:function(){return ie}});var b=ee(59301),de=ee(78241),Be=ee(43418),Ae=ee(5112),ze=ee(92832),Me=ee(1710),le={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},st=ee(49692),et=Object.defineProperty,Ve=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,E=(De,He,he)=>He in De?et(De,He,{enumerable:!0,configurable:!0,writable:!0,value:he}):De[He]=he,a=(De,He)=>{for(var he in He||(He={}))Ye.call(He,he)&&E(De,he,He[he]);if(Je)for(var he of Je(He))se.call(He,he)&&E(De,he,He[he]);return De},x=(De,He)=>Ve(De,We(He)),y=(De,He)=>{var he={};for(var Xe in De)Ye.call(De,Xe)&&He.indexOf(Xe)<0&&(he[Xe]=De[Xe]);if(De!=null&&Je)for(var Xe of Je(De))He.indexOf(Xe)<0&&se.call(De,Xe)&&(he[Xe]=De[Xe]);return he},z=(De,He,he)=>new Promise((Xe,Ke)=>{var St=lt=>{try{ot(he.next(lt))}catch(gt){Ke(gt)}},Le=lt=>{try{ot(he.throw(lt))}catch(gt){Ke(gt)}},ot=lt=>lt.done?Xe(lt.value):Promise.resolve(lt.value).then(St,Le);ot((he=he.apply(De,He)).next())});const ne=({studentNames:De,total:He})=>{const he=["","\u4E00","\u4E24","\u4E09"];return He>3?b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:le.orangeColor},De==null?void 0:De.join("\u3001")),"\u7B49",b.createElement("span",{className:le.orangeColor},He),"\u540D\u5B66\u751F"):b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:le.orangeColor},De==null?void 0:De.join("\u3001")),he[He],"\u540D\u5B66\u751F")},re=({used:De,copy:He,canNotCopy:he,studentNames:Xe,studentCount:Ke,inPaper:St,is_random:Le=!1,position:ot=""})=>{const lt=()=>{if(He>0&&he>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:le.orangeColor},He),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:le.orangeColor},he),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(He>0&&he===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:le.orangeColor},He),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(He===0&&he>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:le.orangeColor},he),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},gt=ot||(St?"\u8BD5\u5377":"\u8BFE\u7A0B");return b.createElement("span",null,b.createElement(ne,{studentNames:Xe,total:Ke}),"\u5B66\u4E60\u8FC7",gt,"\u4E2D\u7684",b.createElement("span",{className:le.orangeColor},De),"\u4E2A\u9879\u76EE\uFF0C",lt(),"\u3002\u8BF7\u9009\u62E9",Le?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},ue=({onCancel:De,onOk:He,visible:he,inPaper:Xe,renderData:Ke,type:St,isMultipleCourse:Le=!1})=>{const[ot]=de.default.useForm(),[lt,gt]=(0,b.useState)(1),[ft,ln]=(0,b.useState)(!1),xt=(0,b.useMemo)(()=>(Ke==null?void 0:Ke.total_num)===1&&(Ke==null?void 0:Ke.can_copy_num)===1,[Ke]),nn=(0,b.useMemo)(()=>{var En;return(En=Ke==null?void 0:Ke.course_data_list)==null?void 0:En.filter($e=>$e.is_show)},[Ke]);return b.createElement(b.Fragment,null,xt?b.createElement(Be.default,{centered:!0,closable:!0,open:he,destroyOnClose:!0,title:"\u63D0\u793A",className:le.antdModal,width:682,confirmLoading:ft,onCancel:De,onOk:()=>z(void 0,null,function*(){var En;ln(!0);let $e=lt;if(Le){const dt=a({},ot.getFieldsValue());$e=(En=Ke==null?void 0:Ke.course_data_list)==null?void 0:En.map(on=>dt[on.id]!==void 0?x(a({},on),{is_copy:dt[on.id]}):on)}yield He($e),ln(!1)})},b.createElement("div",{className:le.content,style:{marginBottom:20}},Le?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":b.createElement(b.Fragment,null,b.createElement(ne,{studentNames:Ke==null?void 0:Ke.student_names,total:Ke==null?void 0:Ke.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),Le?b.createElement(de.default,{form:ot,preserve:!1},nn==null?void 0:nn.map(En=>b.createElement(b.Fragment,{key:En.id},b.createElement("h3",{className:"ml15 mb5"},En.name),b.createElement(de.default.Item,{name:En.id,initialValue:1},b.createElement(Ae.ZP.Group,{className:le.content},b.createElement(Ae.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),b.createElement(Ae.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):b.createElement(Ae.ZP.Group,{value:lt,onChange:En=>gt(En.target.value),className:le.content,style:{marginBottom:30}},b.createElement(Ae.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),b.createElement(Ae.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),b.createElement("div",null,b.createElement("div",{className:le.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),b.createElement("div",{className:le.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),b.createElement("div",{className:`${le.content} ${le.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):b.createElement(Be.default,{centered:!0,closable:!0,destroyOnClose:!0,open:he,confirmLoading:ft,title:"\u63D0\u793A",width:682,onCancel:De,onOk:()=>z(void 0,null,function*(){var En;ln(!0);let $e=0;if(Le){const dt=a({},ot.getFieldsValue());$e=(En=Ke==null?void 0:Ke.course_data_list)==null?void 0:En.map(on=>dt[on.id]!==void 0?x(a({},on),{is_use:dt[on.id]}):on)}yield He($e),ln(!1)})},b.createElement("div",{className:le.content},b.createElement(ne,{studentNames:Ke==null?void 0:Ke.student_names,total:Ke==null?void 0:Ke.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Le?b.createElement(de.default,{form:ot,preserve:!1},b.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),nn==null?void 0:nn.map(En=>b.createElement(b.Fragment,{key:En.id},b.createElement("h3",{className:"ml15 mb5"},En.name),b.createElement(de.default.Item,{name:En.id,initialValue:1},b.createElement(Ae.ZP.Group,{className:le.content},b.createElement(Ae.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),b.createElement(Ae.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):b.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",b.createElement("span",{className:le.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},ie=function(){const[De,He]=(0,b.useState)(!1),[he,Xe]=(0,b.useState)();return[De,()=>He(!1),he,Le=>z(this,null,function*(){var ot;const lt=Le,{isImportMultipleCourse:gt=!1}=lt,ft=y(lt,["isImportMultipleCourse"]);console.log(Le);const ln=(Le==null?void 0:Le.result)||(yield(0,st.Tr)(ft));return"status"in ln?!1:gt?((ot=ln==null?void 0:ln.course_data_list)==null?void 0:ot.some(nn=>nn.is_show))?(Xe(ln),He(!0),!0):ln.course_data_list||[]:ln.student_count===0?!1:(Xe(ln),He(!0),!0)})]},ve=De=>{const[He]=de.default.useForm(),[he,Xe]=(0,b.useState)(!1),{onCancel:Ke,onOk:St,visible:Le,inPaper:ot=!1,renderData:lt,type:gt,isMultipleCourse:ft=!1,position:ln}=De;let xt=(0,b.useMemo)(()=>ot?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:le.tableCell,render($e,dt){return b.createElement("a",{href:`/shixuns/${dt.identifier}/challenges`,target:"_blank"},$e)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:($e,dt)=>b.createElement(b.Fragment,null,b.createElement(de.default.Item,{name:[`${gt==="subject"?dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_copy"],initialValue:1},b.createElement(Ae.ZP.Group,null,b.createElement(Ae.ZP,{value:1},"\u662F"),b.createElement(Ae.ZP,{value:0},"\u5426"))),b.createElement(de.default.Item,{name:[`${gt==="subject"?dt==null?void 0:dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(ze.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:le.tableCell,render($e,dt){return b.createElement("a",{href:`/shixuns/${dt.identifier}/challenges`,target:"_blank"},$e)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:($e,dt)=>b.createElement(de.default.Item,{name:[`${gt==="subject"?dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_use"],initialValue:1},b.createElement(Ae.ZP.Group,null,b.createElement(Ae.ZP,{value:1},"\u662F"),b.createElement(Ae.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:($e,dt)=>b.createElement(de.default.Item,{name:[`${gt==="subject"?dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_copy"],initialValue:1},b.createElement(Ae.ZP.Group,null,b.createElement(Ae.ZP,{value:1},"\u662F"),b.createElement(Ae.ZP,{value:0},"\u5426")))}],[ot]),nn=(0,b.useMemo)(()=>ot?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:le.tableCell,align:"center",ellipsis:!0,render:($e,dt)=>b.createElement(b.Fragment,null,b.createElement("a",{href:`/shixuns/${dt.identifier}/challenges`,target:"_blank"},$e),b.createElement(de.default.Item,{name:[`${gt==="subject"?dt==null?void 0:dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(ze.default,{type:"hidden"})),b.createElement(de.default.Item,{name:[`${gt==="subject"?dt==null?void 0:dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(ze.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:le.tableCell,ellipsis:!0,align:"center",render:($e,dt)=>b.createElement("a",{href:`/shixuns/${dt.identifier}/challenges`,target:"_blank"},$e)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:($e,dt)=>b.createElement(b.Fragment,null,b.createElement(de.default.Item,{name:[`${gt==="subject"?dt==null?void 0:dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_use"],initialValue:0},b.createElement(Ae.ZP.Group,null,b.createElement(Ae.ZP,{value:1},"\u662F"),b.createElement(Ae.ZP,{value:0},"\u5426"))),b.createElement(de.default.Item,{name:[`${gt==="subject"?dt==null?void 0:dt.stage_shixun_id:dt.shixun_course_id||dt.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(ze.default,{type:"hidden"})))}],[ot]);if(ft){const $e={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:le.tableCell,render:(dt,on)=>b.createElement("a",{href:`/classrooms/${on.course_id}`},dt)};xt=[$e,...xt],nn=[$e,...nn]}const En=(0,b.useMemo)(()=>re({used:lt==null?void 0:lt.repeat_shixun_num,copy:lt==null?void 0:lt.can_copy_num,canNotCopy:lt==null?void 0:lt.no_copy_num,studentNames:lt==null?void 0:lt.student_names,studentCount:lt==null?void 0:lt.student_count,is_random:lt==null?void 0:lt.is_random,inPaper:ot,position:ln}),[lt,ot,ln]);return b.createElement(Be.default,{title:"\u63D0\u793A",centered:!0,open:Le,confirmLoading:he,onOk:()=>z(void 0,null,function*(){Xe(!0);const $e=He.getFieldsValue(),dt=Object.keys($e).map(on=>({id:parseInt(on.split("_")[0]),course_id:parseInt(on.split("_")[1]),is_use:$e[on].is_use,is_copy:$e[on].is_copy}));yield St(dt),Xe(!1)}),onCancel:Ke,width:880,okText:"\u786E\u8BA4",className:le.antdModal,destroyOnClose:!0},b.createElement(de.default,{form:He,preserve:!1},b.createElement("div",{className:le.brief},En),b.createElement("div",{style:{marginBottom:30}},b.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),b.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),b.createElement("div",{className:le.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(lt==null?void 0:lt.can_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:le.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(Me.default,{columns:xt,className:le.antdTable,dataSource:lt==null?void 0:lt.can_copy_list,rowKey:gt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(lt==null?void 0:lt.no_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:le.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(Me.default,{columns:nn,className:le.antdTable,dataSource:lt==null?void 0:lt.no_copy_list,rowKey:gt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(lt==null?void 0:lt.no_use_list.length)>0&&(lt==null?void 0:lt.no_use_list.map($e=>b.createElement("div",{key:gt==="subject"?$e.stage_shixun_id:$e.shixun_course_id||$e.id},b.createElement(de.default.Item,{name:[`${gt==="subject"?$e==null?void 0:$e.stage_shixun_id:$e.shixun_course_id||$e.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(ze.default,{type:"hidden"})),b.createElement(de.default.Item,{name:[`${gt==="subject"?$e==null?void 0:$e.stage_shixun_id:$e.shixun_course_id||$e.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(ze.default,{type:"hidden"})))))))};var je=De=>{const{modalType:He}=De;return He==="multiple"?b.createElement(ve,a({},De)):b.createElement(ue,a({},De))}},82438:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return st}});var b=ee(59301),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"},Be=ee(43418),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Me=(et,Ve,We)=>new Promise((Je,Ye)=>{var se=x=>{try{a(We.next(x))}catch(y){Ye(y)}},E=x=>{try{a(We.throw(x))}catch(y){Ye(y)}},a=x=>x.done?Je(x.value):Promise.resolve(x.value).then(se,E);a((We=We.apply(et,Ve)).next())}),st=({type:et,resdata:Ve,onok:We,oktext:Je,okloading:Ye})=>{const[se,E]=(0,b.useState)(!1),{can_copy_list:a,can_copy_num:x,challenge_type:y,course_data_list:z,no_copy_list:ne,no_copy_num:re,no_use_list:ue,no_use_num:ie,repeat_shixun_num:ve,student_count:be,total_num:je,use_num:De}=Ve;let He=x>0||et==="exercise";(0,b.useEffect)(()=>{(Ve==null?void 0:Ve.student_count)>0&&E(!0)},[Ve]),console.log("---11",Ye),(0,b.useEffect)(()=>{Ye||E(!1)},[Ye]);const he=()=>{if(et==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:de.orangeColor},De),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.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(et==="exercise"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:de.orangeColor},De),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(et==="shixun"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.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(et==="shixun"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(et==="subject"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:de.orangeColor},De),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.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(et==="subject"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:de.orangeColor},be)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:de.orangeColor},De)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(et==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:de.orangeColor},De),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.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(et==="shixunpush"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:de.orangeColor},De),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.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(et==="shixunpush"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:de.orangeColor},be),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:de.orangeColor},De),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:de.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Xe=()=>{if(et==="exercise"||et==="subject"||et==="exercisepush"||et==="shixunpush")return b.createElement("div",{style:{marginTop:20}},re>0&&b.createElement("div",null,b.createElement("span",{className:de.flex},b.createElement("img",{src:ze,style:{width:14}}),b.createElement("span",{className:de.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:de.statusbody},et==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.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"),(et==="subject"||et==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",He&&b.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"),et==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",He&&b.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"),b.createElement("div",null,ne==null?void 0:ne.map((Ke,St)=>b.createElement("a",{href:`/shixuns/${Ke.identifier}/challenges`,target:"_blank"},"\u300A",Ke==null?void 0:Ke.name,"\u300B",St+1!==re&&"\u3001"))))),x>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:de.flex},b.createElement("img",{src:Ae,style:{width:14}}),b.createElement("span",{className:de.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:de.statusbody},et==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(et==="subject"||et==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),et==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),b.createElement("div",null,a==null?void 0:a.map((Ke,St)=>b.createElement("a",{href:`/shixuns/${Ke.identifier}/challenges`,target:"_blank"},"\u300A",Ke==null?void 0:Ke.name,"\u300B",St+1!==x&&"\u3001"))))));if(et==="shixun")return b.createElement("div",{style:{marginTop:20}},x>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return b.createElement(Be.default,{open:se,onCancel:()=>{E(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!He&&"none"}},zIndex:1003,confirmLoading:Ye,okText:He?Je:"\u6211\u77E5\u9053\u4E86",onOk:()=>Me(void 0,null,function*(){He?yield We([...a,...ue]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},he(),Xe()))}},97692:function(Qt,Gt,ee){"use strict";ee.d(Gt,{h:function(){return re}});var b=ee(59301),de=ee(57809),Be=ee(78241),Ae=ee(3113),ze=ee(89780),Me=ee.n(ze),le=ee(37036),st=ee(95625),et=Object.defineProperty,Ve=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,E=(ue,ie,ve)=>ie in ue?et(ue,ie,{enumerable:!0,configurable:!0,writable:!0,value:ve}):ue[ie]=ve,a=(ue,ie)=>{for(var ve in ie||(ie={}))Ye.call(ie,ve)&&E(ue,ve,ie[ve]);if(Je)for(var ve of Je(ie))se.call(ie,ve)&&E(ue,ve,ie[ve]);return ue},x=(ue,ie)=>Ve(ue,We(ie));const y=de.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ne={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"]};Gt.Z=({callback:ue,onCancel:ie})=>{const[ve,be]=(0,b.useState)("python");function je(He){be(ne[He][1])}function De(He){ue(He)}return b.createElement(Be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:De,style:{width:500}}),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(de.default,{getPopupContainer:He=>He.parentNode,onChange:je},Object.keys(ne).map(He=>b.createElement(y,{key:He,value:He},ne[He][0])))),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:ve})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ae.ZP,{type:"ghost",onClick:ie},"\u53D6\u6D88")))};function re({value:ue,onChange:ie,mode:ve,options:be={}}){const je=(0,b.useRef)(),[De,He]=(0,b.useState)();return(0,b.useEffect)(()=>{if(De){let he=function(Xe){const Ke=Xe.getValue();ie&&ie(Ke)};return De.on("change",he),()=>{De.off("change",he)}}},[De,ie]),(0,b.useEffect)(()=>{De&&De.setOption("mode",ve)},[De,ve]),(0,b.useEffect)(()=>{De&&(ue!==De.getValue()||ue==="")&&setTimeout(()=>{De.setValue(ue||"")},300)},[De,ue]),(0,b.useEffect)(()=>{if(je.current&&!De){const he=Me().fromTextArea(je.current,a({mode:ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},be));He(he)}},[je.current,De]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:je}))}},12290:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Bn}});var b=ee(59301),de=ee(89780),Be=ee.n(de),Ae=ee(76374),ze=ee(37036),Me=ee(6313),le=ee(25717),st=ee(99498),et=ee(25419),Ve=ee(67549),We=ee(85149),Je=({value:vt="",className:Bt,showTextOnly:pt,showLines:vn,style:Hn={}})=>{const In=(0,b.useMemo)(()=>"",[vt]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:In}}))},Ye=ee(59301),se=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(vt,Bt,pt)=>Bt in vt?se(vt,Bt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):vt[Bt]=pt,re=(vt,Bt)=>{for(var pt in Bt||(Bt={}))y.call(Bt,pt)&&ne(vt,pt,Bt[pt]);if(x)for(var pt of x(Bt))z.call(Bt,pt)&&ne(vt,pt,Bt[pt]);return vt},ue=(vt,Bt)=>E(vt,a(Bt));let ie=[{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 ve({onActionCallback:vt,title:Bt,icon:pt,actionName:vn,className:Hn="",children:In}){function Ta(){vt(vn)}return Ye.createElement("a",{title:Bt,className:Hn,onClick:Ta},Ye.createElement("i",{className:`${pt}`}),In)}var be=({watch:vt,showNullButton:Bt,showNullProgramButton:pt,onActionCallback:vn,fullScreen:Hn,insertTemp:In,hidetoolBar:Ta,extraUse:Pa})=>{const Rn=[...ie,{title:`${vt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${vt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ye.createElement("ul",{className:"markdown-toolbar-container"},!Ta&&Rn.map((ya,ba)=>Ye.createElement("li",{key:ba},ya.actionName?Ye.createElement(ve,ue(re({},ya),{onActionCallback:vn})):Ye.createElement("span",{className:"v-line"}))),Bt?Ye.createElement("li",null,Ye.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:vn},Ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pt?Ye.createElement(Ye.Fragment,null,Ye.createElement("li",null,Ye.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:vn},Ye.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ye.createElement("li",null,Ye.createElement(ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:vn},Ye.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,In&&Ye.createElement("li",null,Ye.createElement(ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${In}`,onActionCallback:vn},Ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Pa&&Ye.createElement("li",null,Pa),Ye.createElement("li",{className:"btn-full-screen"},Ye.createElement(ve,{icon:`${Hn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Hn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:vn})))},je=ee(79346),De=ee(78241),He=ee(92832),he=ee(3113),Xe=Object.defineProperty,Ke=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,gt=(vt,Bt,pt)=>Bt in vt?Xe(vt,Bt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):vt[Bt]=pt,ft=(vt,Bt)=>{for(var pt in Bt||(Bt={}))ot.call(Bt,pt)&&gt(vt,pt,Bt[pt]);if(Le)for(var pt of Le(Bt))lt.call(Bt,pt)&&gt(vt,pt,Bt[pt]);return vt},ln=(vt,Bt)=>Ke(vt,St(Bt));const xt={labelCol:{span:4},wrapperCol:{span:20}};var nn=({callback:vt,onCancel:Bt})=>{function pt(vn){vt(vn)}return b.createElement(De.default,ln(ft({},xt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pt,style:{width:500}}),b.createElement(De.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(He.default,null)),b.createElement(De.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(He.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(he.ZP,{type:"ghost",onClick:Bt},"\u53D6\u6D88")))},En=ee(97692),$e=ee(28451),dt=ee(43418),on=ee(95237),Yn=ee(73524),Zt=ee(59301),On=({callback:vt,onCancel:Bt})=>{const pt=document.createElement("canvas"),vn=pt.getContext("2d");pt.width=1e3,pt.height=800,vn.fillStyle="#ffffff",vn.fillRect(0,0,pt.width,pt.height);const Hn=pt.toDataURL("image/png");return Zt.createElement(dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Zt.createElement(on.Z,{style:{height:"100vh"}},Zt.createElement(Yn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Hn,visible:!0,title:String(Date.now())},onOk:In=>{vt({src:In.url})},onClose:Bt})))},_e=ee(12378);function ct(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ct,go.CommandHandler),ct.prototype.canAlignSelection=function(){var vt=this.diagram;return!(vt===null||vt.isReadOnly||vt.isModelReadOnly||vt.selection.count<2)},ct.prototype.alignLeft=function(){var vt=this.diagram;vt.startTransaction("aligning left");var Bt=1/0;vt.selection.each(function(pt){pt instanceof go.Link||(Bt=Math.min(pt.position.x,Bt))}),vt.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(Bt,pt.position.y))}),vt.commitTransaction("aligning left")},ct.prototype.alignRight=function(){var vt=this.diagram;vt.startTransaction("aligning right");var Bt=-1/0;vt.selection.each(function(pt){if(!(pt instanceof go.Link)){var vn=pt.actualBounds.x+pt.actualBounds.width;Bt=Math.max(vn,Bt)}}),vt.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(Bt-pt.actualBounds.width,pt.position.y))}),vt.commitTransaction("aligning right")},ct.prototype.alignTop=function(){var vt=this.diagram;vt.startTransaction("alignTop");var Bt=1/0;vt.selection.each(function(pt){pt instanceof go.Link||(Bt=Math.min(pt.position.y,Bt))}),vt.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(pt.position.x,Bt))}),vt.commitTransaction("alignTop")},ct.prototype.alignBottom=function(){var vt=this.diagram;vt.startTransaction("aligning bottom");var Bt=-1/0;vt.selection.each(function(pt){if(!(pt instanceof go.Link)){var vn=pt.actualBounds.y+pt.actualBounds.height;Bt=Math.max(vn,Bt)}}),vt.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(pt.actualBounds.x,Bt-pt.actualBounds.height))}),vt.commitTransaction("aligning bottom")},ct.prototype.alignCenterX=function(){var vt=this.diagram,Bt=vt.selection.first();if(Bt){vt.startTransaction("aligning Center X");var pt=Bt.actualBounds.x+Bt.actualBounds.width/2;vt.selection.each(function(vn){vn instanceof go.Link||vn.move(new go.Point(pt-vn.actualBounds.width/2,vn.actualBounds.y))}),vt.commitTransaction("aligning Center X")}},ct.prototype.alignCenterY=function(){var vt=this.diagram,Bt=vt.selection.first();if(Bt){vt.startTransaction("aligning Center Y");var pt=Bt.actualBounds.y+Bt.actualBounds.height/2;vt.selection.each(function(vn){vn instanceof go.Link||vn.move(new go.Point(vn.actualBounds.x,pt-vn.actualBounds.height/2))}),vt.commitTransaction("aligning Center Y")}},ct.prototype.alignColumn=function(vt){var Bt=this.diagram;Bt.startTransaction("align Column"),vt===void 0&&(vt=0),vt=parseFloat(vt);var pt=new Array;Bt.selection.each(function(Pa){Pa instanceof go.Link||pt.push(Pa)});for(var vn=0;vn<pt.length-1;vn++){var Hn=pt[vn],In=Hn.actualBounds.y+Hn.actualBounds.height+vt,Ta=pt[vn+1];Ta.move(new go.Point(Hn.actualBounds.x,In))}Bt.commitTransaction("align Column")},ct.prototype.alignRow=function(vt){vt===void 0&&(vt=0),vt=parseFloat(vt);var Bt=this.diagram;Bt.startTransaction("align Row");var pt=new Array;Bt.selection.each(function(Pa){Pa instanceof go.Link||pt.push(Pa)});for(var vn=0;vn<pt.length-1;vn++){var Hn=pt[vn],In=Hn.actualBounds.x+Hn.actualBounds.width+vt,Ta=pt[vn+1];Ta.move(new go.Point(In,Hn.actualBounds.y))}Bt.commitTransaction("align Row")},ct.prototype.canRotate=function(vt){var Bt=this.diagram;return!(Bt===null||Bt.isReadOnly||Bt.isModelReadOnly||Bt.selection.count<1)},ct.prototype.rotate=function(vt){vt===void 0&&(vt=90);var Bt=this.diagram;Bt.startTransaction("rotate "+vt.toString());var Bt=this.diagram;Bt.selection.each(function(pt){pt instanceof go.Link||pt instanceof go.Group||(pt.angle+=vt)}),Bt.commitTransaction("rotate "+vt.toString())},ct.prototype.pullToFront=function(){var vt=this.diagram;vt.startTransaction("pullToFront");var Bt=new go.Map;vt.selection.each(function(pt){Bt.set(pt.layer,0)}),Bt.iteratorKeys.each(function(pt){var vn=0;pt.parts.each(function(Hn){if(!Hn.isSelected){var In=Hn.zOrder;isNaN(In)?Hn.zOrder=0:vn=Math.max(vn,In)}}),Bt.set(pt,vn)}),vt.selection.each(function(pt){ct._assignZOrder(pt,Bt.get(pt.layer)+1)}),vt.commitTransaction("pullToFront")},ct.prototype.pushToBack=function(){var vt=this.diagram;vt.startTransaction("pushToBack");var Bt=new go.Map;vt.selection.each(function(pt){Bt.set(pt.layer,0)}),Bt.iteratorKeys.each(function(pt){var vn=0;pt.parts.each(function(Hn){if(!Hn.isSelected){var In=Hn.zOrder;isNaN(In)?Hn.zOrder=0:vn=Math.min(vn,In)}}),Bt.set(pt,vn)}),vt.selection.each(function(pt){ct._assignZOrder(pt,Bt.get(pt.layer)-1-ct._findGroupDepth(pt))}),vt.commitTransaction("pushToBack")},ct._assignZOrder=function(vt,Bt,pt){pt===void 0&&(pt=vt),vt.layer===pt.layer&&(vt.zOrder=Bt),vt instanceof go.Group&&vt.memberParts.each(function(vn){ct._assignZOrder(vn,Bt+1,pt)})},ct._findGroupDepth=function(vt){if(vt instanceof go.Group){var Bt=0;return vt.memberParts.each(function(pt){Bt=Math.max(Bt,ct._findGroupDepth(pt))}),Bt+1}else return 0},ct.prototype.doKeyDown=function(){var vt=this.diagram;if(vt!==null){var Bt=vt.lastInput;if(Bt.key==="Up"||Bt.key==="Down"||Bt.key==="Left"||Bt.key==="Right"){var pt=this.arrowKeyBehavior;if(pt==="none")return;if(pt==="select"){this._arrowKeySelect();return}else if(pt==="move"){this._arrowKeyMove();return}else if(pt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},ct.prototype._getAllParts=function(){var vt=new Array;return this.diagram.nodes.each(function(Bt){vt.push(Bt)}),this.diagram.parts.each(function(Bt){vt.push(Bt)}),vt},ct.prototype._arrowKeyMove=function(){var vt=this.diagram,Bt=vt.lastInput,pt=0,vn=0;if(Bt.control||Bt.meta)pt=1,vn=1;else if(vt.grid!==null){var Hn=vt.grid.gridCellSize;vn=Hn.width,pt=Hn.height}vt.startTransaction("arrowKeyMove"),vt.selection.each(function(In){Bt.key==="Up"?In.move(new go.Point(In.actualBounds.x,In.actualBounds.y-pt)):Bt.key==="Down"?In.move(new go.Point(In.actualBounds.x,In.actualBounds.y+pt)):Bt.key==="Left"?In.move(new go.Point(In.actualBounds.x-vn,In.actualBounds.y)):Bt.key==="Right"&&In.move(new go.Point(In.actualBounds.x+vn,In.actualBounds.y))}),vt.commitTransaction("arrowKeyMove")},ct.prototype._arrowKeySelect=function(){var vt=this.diagram,Bt=vt.lastInput,pt=null;Bt.key==="Up"?pt=this._findNearestPartTowards(270):Bt.key==="Down"?pt=this._findNearestPartTowards(90):Bt.key==="Left"?pt=this._findNearestPartTowards(180):Bt.key==="Right"&&(pt=this._findNearestPartTowards(0)),pt!==null&&(Bt.shift?pt.isSelected=!0:Bt.control||Bt.meta?pt.isSelected=!pt.isSelected:vt.select(pt))},ct.prototype._findNearestPartTowards=function(vt){var Bt=this.diagram.selection.first();if(Bt===null)return null;for(var pt=Bt.actualBounds.center,vn=this._getAllParts(),Hn=1/0,In=Bt,Ta=0;Ta<vn.length;Ta++){var Pa=vn[Ta];if(Pa!==Bt&&Pa.canSelect()){var Rn=Pa.actualBounds.center,ya=pt.directionPoint(Rn),ba=this._angleCloseness(ya,vt);if(ba<=45){var wn=pt.distanceSquaredPoint(Rn);wn*=1+Math.sin(ba*Math.PI/180),wn<Hn&&(Hn=wn,In=Pa)}}}return In},ct.prototype._angleCloseness=function(vt,Bt){return Math.min(Math.abs(Bt-vt),Math.min(Math.abs(Bt+360-vt),Math.abs(Bt-360-vt)))},ct.prototype._arrowKeyTree=function(){var vt=this.diagram,Bt=vt.selection.first();if(Bt instanceof go.Node){var pt=vt.lastInput;if(pt.key==="Right"){if(!Bt.isTreeLeaf)if(!Bt.isTreeExpanded)vt.commandHandler.canExpandTree(Bt)&&vt.commandHandler.expandTree(Bt);else{var vn=this._sortTreeChildrenByY(Bt).first();vn!==null&&vt.select(vn)}}else if(pt.key==="Left")if(!Bt.isTreeLeaf&&Bt.isTreeExpanded)vt.commandHandler.canCollapseTree(Bt)&&vt.commandHandler.collapseTree(Bt);else{var Hn=Bt.findTreeParentNode();Hn!==null&&vt.select(Hn)}else if(pt.key==="Up"){var Hn=Bt.findTreeParentNode();if(Hn!==null){var In=this._sortTreeChildrenByY(Hn),Ta=In.indexOf(Bt);if(Ta>0){for(var Pa=In.elt(Ta-1);Pa!==null&&Pa.isTreeExpanded&&!Pa.isTreeLeaf;){var Rn=this._sortTreeChildrenByY(Pa);Pa=Rn.last()}Pa!==null&&vt.select(Pa)}else vt.select(Hn)}}else if(pt.key==="Down")if(Bt.isTreeExpanded&&!Bt.isTreeLeaf){var vn=this._sortTreeChildrenByY(Bt).first();vn!==null&&vt.select(vn)}else for(;Bt!==null;){var Hn=Bt.findTreeParentNode();if(Hn===null)break;var In=this._sortTreeChildrenByY(Hn),Ta=In.indexOf(Bt);if(Ta<In.length-1){vt.select(In.elt(Ta+1));break}else Bt=Hn}var ya=vt.selection.first();ya!==null&&vt.scrollToRect(ya.actualBounds)}},ct.prototype._sortTreeChildrenByY=function(vt){var Bt=new go.List().addAll(vt.findTreeChildrenNodes());return Bt.sort(function(pt,vn){var Hn=pt.location,In=vn.location;return Hn.y<In.y?-1:Hn.y>In.y?1:Hn.x<In.x?-1:Hn.x>In.x?1:0}),Bt},ct.prototype.copyToClipboard=function(vt){go.CommandHandler.prototype.copyToClipboard.call(this,vt),this._lastPasteOffset.set(this.pasteOffset)},ct.prototype.pasteFromClipboard=function(){var vt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(vt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),vt},Object.defineProperty(ct.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(vt){if(vt!=="move"&&vt!=="select"&&vt!=="scroll"&&vt!=="tree"&&vt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+vt);this._arrowKeyBehavior=vt}}),Object.defineProperty(ct.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(vt){if(!(vt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+vt);this._pasteOffset.set(vt)}});var kt=ct,mt=ee(74413),It=ee(43604),ut=ee(99064),at={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ie=ee(59301),fe=(vt,Bt,pt)=>new Promise((vn,Hn)=>{var In=Rn=>{try{Pa(pt.next(Rn))}catch(ya){Hn(ya)}},Ta=Rn=>{try{Pa(pt.throw(Rn))}catch(ya){Hn(ya)}},Pa=Rn=>Rn.done?vn(Rn.value):Promise.resolve(Rn.value).then(In,Ta);Pa((pt=pt.apply(vt,Bt)).next())});function qe({onCancel:vt,callback:Bt}){let pt=(0,b.useRef)(),vn=(0,b.useRef)(),Hn=(0,b.useRef)(),In=(0,b.useRef)(!1);const Ta=(0,b.useRef)(!1),[Pa,Rn]=(0,b.useState)(0);function ya(){const wn=_e.bx.make,mr={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"};pt.current=new _e.S0(vn.current,{padding:20,grid:wn(_e.s_,"Grid",wn(_e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),wn(_e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ha=>{var za=ha.diagram.commandHandler.addTopLevelParts(ha.diagram.selection,!0);za||ha.diagram.currentTool.doCancel()},commandHandler:wn(kt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ha=>{var za=ha.subject;za.location=za.location.copy().snapToGridPoint(ha.diagram.grid.gridOrigin,ha.diagram.grid.gridCellSize),setTimeout(()=>{ha.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ha=>{var za=ha.subject;setTimeout(()=>{ha.diagram.commandHandler.editTextBlock()})},LinkRelinked:ha=>{var za=ha.parameter.part;za.invalidateConnectedLinks();var or=ha.subject;ha.diagram.toolManager.linkingTool.isForwards?or.toNode.invalidateConnectedLinks():or.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pt.current.nodeTemplate=wn(_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),wn(_e.bn,{name:"SHAPE",fill:mr.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")),wn(_e.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),wn(_e.al,{margin:1,textAlign:"center",overflow:_e.al.OverflowEllipsis,editable:!0},new _e.KX("text").makeTwoWay(),new _e.KX("stroke","color"))),pt.current.nodeTemplate.toolTip=wn("ToolTip",wn(_e.s_,"Vertical",{maxSize:new _e.$u(200,NaN)},wn(_e.al,{font:"bold 10pt sans-serif",textAlign:"center"},new _e.KX("text")),wn(_e.al,{font:"10pt sans-serif",textAlign:"center"},new _e.KX("text","details"))));function Er(ha,za){var or=(Fa,xr)=>{Fa.handled=!0,Fa.diagram.model.commit(qr=>{var Fr=xr.part.adornedPart,io=new _e.E9().setRectSpot(Fr.actualBounds,ha);io.subtract(Fr.location),io.scale(2,2),io.x+=Math.sign(io.x)*130,io.y+=Math.sign(io.y)*130,io.add(Fr.location),io.snapToGridPoint(Fa.diagram.grid.gridOrigin,Fa.diagram.grid.gridCellSize);var lr=qr.copyNodeData(Fr.data);qr.setGroupKeyForNodeData(lr,qr.getGroupKeyForNodeData(Fr.data)),qr.addNodeData(lr);var ko={from:Fr.key,to:qr.getKeyForNodeData(lr)};qr.addLinkData(ko);var ui=Fa.diagram.findNodeForData(lr);ui.location=io,Fa.diagram.select(ui),setTimeout(()=>{Fa.diagram.commandHandler.editTextBlock()},20)})};return wn(_e.bn,{figure:za,alignment:ha,alignmentFocus:ha.opposite(),width:ha.equals(_e.z6.Top)||ha.equals(_e.z6.Bottom)?25:18,height:ha.equals(_e.z6.Top)||ha.equals(_e.z6.Bottom)?18:25,fill:"orange",stroke:mr.white,strokeWidth:4,mouseEnter:(Fa,xr)=>xr.fill="dodgerblue",mouseLeave:(Fa,xr)=>xr.fill="orange",isActionable:!0,click:or,contextClick:or})}function Jr(ha){return wn(_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,or)=>or.fill="dodgerblue",mouseLeave:(za,or)=>or.fill="orange",click:(za,or)=>{za.diagram.commandHandler.showContextMenu(or.part.adornedPart)}},ha||{})}pt.current.nodeTemplate.selectionAdornmentTemplate=wn(_e.uz,"Spot",wn(_e.Vm,{padding:10}),Er(_e.z6.Top,"TriangleUp"),Er(_e.z6.Left,"TriangleLeft"),Er(_e.z6.Right,"TriangleRight"),Er(_e.z6.Bottom,"TriangleDown"),Jr({alignment:new _e.z6(.75,0)}));function pr(ha,za){return(or,Fa)=>{or.handled=!0,or.diagram.model.commit(xr=>{xr.set(Fa.part.adornedPart.data,ha,za)})}}function Qe(ha,za){return za||(za="color"),wn(_e.bn,{width:16,height:16,stroke:"lightgray",fill:ha,margin:1,background:"transparent",mouseEnter:(or,Fa)=>Fa.stroke="dodgerblue",mouseLeave:(or,Fa)=>Fa.stroke="lightgray",click:pr(za,ha),contextClick:pr(za,ha)})}function Pn(){return[wn("ContextMenuButton",wn(_e.s_,"Horizontal",Qe(mr.white,"fill"),Qe(mr.beige,"fill"),Qe(mr.extralightblue,"fill"),Qe(mr.extralightred,"fill"))),wn("ContextMenuButton",wn(_e.s_,"Horizontal",Qe(mr.lightgray,"fill"),Qe(mr.lightgreen,"fill"),Qe(mr.lightblue,"fill"),Qe(mr.lightred,"fill")))]}function qt(){return[wn("ContextMenuButton",wn(_e.s_,"Horizontal",Qe(mr.black),Qe(mr.green),Qe(mr.blue),Qe(mr.red))),wn("ContextMenuButton",wn(_e.s_,"Horizontal",Qe(mr.white),Qe(mr.magenta),Qe(mr.purple),Qe(mr.orange)))]}function Dn(ha,za){return za||(za="thickness"),wn(_e.bn,"LineH",{width:16,height:16,strokeWidth:ha,margin:1,background:"transparent",mouseEnter:(or,Fa)=>Fa.background="dodgerblue",mouseLeave:(or,Fa)=>Fa.background="transparent",click:pr(za,ha),contextClick:pr(za,ha)})}function Gn(ha,za){return za||(za="dash"),wn(_e.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ha,margin:1,background:"transparent",mouseEnter:(or,Fa)=>Fa.background="dodgerblue",mouseLeave:(or,Fa)=>Fa.background="transparent",click:pr(za,ha),contextClick:pr(za,ha)})}function ra(){return[wn("ContextMenuButton",wn(_e.s_,"Horizontal",Dn(1),Dn(2),Dn(3),Dn(4))),wn("ContextMenuButton",wn(_e.s_,"Horizontal",Gn(null),Gn([2,4]),Gn([4,4])))]}function Xn(ha,za){return za||(za="figure"),wn(_e.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ha,margin:1,background:"transparent",mouseEnter:(or,Fa)=>Fa.fill="dodgerblue",mouseLeave:(or,Fa)=>Fa.fill="lightgray",click:pr(za,ha),contextClick:pr(za,ha)})}pt.current.nodeTemplate.contextMenu=wn("ContextMenu",wn("ContextMenuButton",wn(_e.s_,"Horizontal",Xn("Rectangle"),Xn("RoundedRectangle"),Xn("Ellipse"),Xn("Diamond"))),wn("ContextMenuButton",wn(_e.s_,"Horizontal",Xn("Parallelogram2"),Xn("ManualOperation"),Xn("Procedure"),Xn("Cylinder1"))),wn("ContextMenuButton",wn(_e.s_,"Horizontal",Xn("Terminator"),Xn("CreateRequest"),Xn("Document"),Xn("TriangleDown"))),Pn(),qt(),ra()),pt.current.groupTemplate=wn(_e.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:_e.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ha,za)=>{var or=za.addMembers(za.diagram.selection,!0);or||za.diagram.currentTool.doCancel()},avoidable:!1},new _e.KX("location","loc",_e.E9.parse).makeTwoWay(_e.E9.stringify),wn(_e.s_,"Auto",{name:"BODY"},wn(_e.bn,{parameter1:10,fill:mr.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")),wn(_e.Vm,{background:"transparent",margin:20})),wn(_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"))),pt.current.groupTemplate.selectionAdornmentTemplate=wn(_e.uz,"Spot",wn(_e.s_,"Auto",wn(_e.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),wn(_e.Vm,{margin:1.5})),Jr({alignment:_e.z6.TopRight,alignmentFocus:_e.z6.BottomRight})),pt.current.groupTemplate.contextMenu=wn("ContextMenu",Pn(),qt(),ra()),pt.current.linkTemplate=wn(_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",ha=>ha>=1?10:0),new _e.KX("toShortLength","dir",ha=>ha>=1?10:0),new _e.KX("points").makeTwoWay(),wn(_e.bn,{strokeWidth:2},new _e.KX("stroke","color"),new _e.KX("strokeWidth","thickness"),new _e.KX("strokeDashArray","dash")),wn(_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",ha=>ha===1)),wn(_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",ha=>ha>=1),new _e.KX("width","thickness",ha=>7+3*ha),new _e.KX("height","thickness",ha=>7+3*ha),new _e.KX("segmentOffset","thickness",ha=>new _e.E9(-15,4+1.5*ha))),wn(_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",ha=>ha===2),new _e.KX("width","thickness",ha=>7+3*ha),new _e.KX("height","thickness",ha=>7+3*ha),new _e.KX("segmentOffset","thickness",ha=>new _e.E9(-15,4+1.5*ha))),wn(_e.al,{alignmentFocus:new _e.z6(0,1,-4,0),editable:!0},new _e.KX("text").makeTwoWay(),new _e.KX("stroke","color"))),pt.current.linkTemplate.selectionAdornmentTemplate=wn(_e.uz,wn(_e.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:$n(2)},new _e.KX("pathPattern","thickness",$n)),Jr({alignmentFocus:new _e.z6(0,0,-6,-4)}));function $n(ha){return wn(_e.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ha+4).toString()+" H3"})}function sr(ha){var za="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ha===0?za="M0 0 M16 16 M0 8 L16 8":ha===2&&(za="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),wn(_e.bn,{geometryString:za,margin:2,background:"transparent",mouseEnter:(or,Fa)=>Fa.background="dodgerblue",mouseLeave:(or,Fa)=>Fa.background="transparent",click:pr("dir",ha),contextClick:pr("dir",ha)})}function sa(ha){var za=(or,Fa)=>{or.handled=!0,or.diagram.model.commit(xr=>{var qr=Fa.part.adornedPart;xr.set(qr.data,ha?"toSpot":"fromSpot",_e.z6.stringify(_e.z6.AllSides)),(ha?qr.toNode:qr.fromNode).invalidateConnectedLinks()})};return wn(_e.bn,{width:12,height:12,fill:"transparent",mouseEnter:(or,Fa)=>Fa.background="dodgerblue",mouseLeave:(or,Fa)=>Fa.background="transparent",click:za,contextClick:za})}function Cn(ha,za){var or=0,Fa=_e.z6.RightSide;ha.equals(_e.z6.Top)?(or=270,Fa=_e.z6.TopSide):ha.equals(_e.z6.Left)?(or=180,Fa=_e.z6.LeftSide):ha.equals(_e.z6.Bottom)&&(or=90,Fa=_e.z6.BottomSide),za||(or-=180);var xr=(qr,Fr)=>{qr.handled=!0,qr.diagram.model.commit(io=>{var lr=Fr.part.adornedPart;io.set(lr.data,za?"toSpot":"fromSpot",_e.z6.stringify(Fa)),(za?lr.toNode:lr.fromNode).invalidateConnectedLinks()})};return wn(_e.bn,{alignment:ha,alignmentFocus:ha.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:or,background:"transparent",mouseEnter:(qr,Fr)=>Fr.background="dodgerblue",mouseLeave:(qr,Fr)=>Fr.background="transparent",click:xr,contextClick:xr})}pt.current.linkTemplate.contextMenu=wn("ContextMenu",qt(),ra(),wn("ContextMenuButton",wn(_e.s_,"Horizontal",sr(0),sr(1),sr(2))),wn("ContextMenuButton",wn(_e.s_,"Horizontal",wn(_e.s_,"Spot",sa(!1),Cn(_e.z6.Top,!1),Cn(_e.z6.Left,!1),Cn(_e.z6.Right,!1),Cn(_e.z6.Bottom,!1)),wn(_e.s_,"Spot",{margin:new _e.Zt(0,0,0,2)},sa(!0),Cn(_e.z6.Top,!0),Cn(_e.z6.Left,!0),Cn(_e.z6.Right,!0),Cn(_e.z6.Bottom,!0)))));const dr=`{ "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 Nr=["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 Zr(ha){return console.log("shapeName:",ha),Nr.indexOf(ha)>=0}var Ir=new _e.YI(Hn.current,{maxSelectionCount:1,linkTemplate:wn(_e.rU,{locationSpot:_e.z6.Center,selectionAdornmentTemplate:wn(_e.uz,"Link",{locationSpot:_e.z6.Center},wn(_e.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),wn(_e.bn,{toArrow:"Standard",stroke:null}))},{routing:_e.rU.AvoidsNodes,curve:_e.rU.JumpOver,corner:5,toShortLength:4},new _e.KX("points"),wn(_e.bn,{isPanelMain:!0,strokeWidth:2}),wn(_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(ha=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ha.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pt.current.addDiagramListener("TextEdited",function(ha){var za;const or=ha.subject.part;var Fa=(za=document.activeElement)==null?void 0:za.value;typeof Fa=="string"&&Fa.trim()===""&&pt.current.model.commit(function(xr){xr.set(or.data,"text","\u672A\u547D\u540D"),pt.current.commandHandler.stopCommand()},"increment")}),Ir.nodeTemplate=wn(_e.NB,"Auto",{locationSpot:_e.z6.Center},new _e.KX("location","location",_e.E9.parse).makeTwoWay(_e.E9.stringify),wn(_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")),wn(_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(()=>{pt.current.grid=wn(_e.s_,"Grid",wn(_e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),wn(_e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pt.current.grid.visible=!0,pt.current.grid.gridCellStroke="darkgray",pt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pt.current,pt.current}const ba=()=>fe(this,null,function*(){var wn=pt.current.makeImage();const mr=yield(0,ut.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:wn.src}});Bt({src:mr.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{ya()},500),Rn(Pa+1),()=>{pt.current=null}),[]),Ie.createElement("div",{ref:Ta,className:In.current?`${at.maxH60} body-overflow-initial`:"body-overflow-initial"},Ie.createElement(dt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Pa,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ie.createElement(on.Z,null,Ie.createElement(It.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ie.createElement(It.Z,{onClick:()=>{var wn,mr,Er=pt.current.selection.first();if(In.current=!In.current,document.activeElement&&Er){let Jr=(mr=(wn=document.activeElement)==null?void 0:wn.value)==null?void 0:mr.trim();typeof Jr=="string"&&pt.current.model.commit(function(pr){pr.set(Er.data,"text",Jr||"\u672A\u547D\u540D"),pt.current.commandHandler.stopCommand()},"increment")}Rn(Pa+1)}},Ie.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:vt},Ie.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:at.flowChartWrp},Ie.createElement("div",{style:{display:"flex",height:"100%"}},Ie.createElement("div",{style:{width:"300px",height:"100%"}},Ie.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ie.createElement("div",{style:{height:"calc(100% - 50px)"},className:at.myPaletteDiv,ref:Hn})),Ie.createElement("div",{style:{flex:1,position:"relative"}},Ie.createElement("div",{ref:vn,style:{height:"80vh"}}))),Ie.createElement("div",{className:"tr"},Ie.createElement(he.ZP,{size:"large",onClick:ba,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var At=qe,Oe=ee(5112),Ne=ee(5871);const Ct=Oe.ZP.Group,tt={margin:"0 8px"};var ke=({callback:vt,onCancel:Bt})=>{function pt(vn){vt(vn)}return b.createElement(De.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pt},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:tt},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:tt},"\u884C\u6570"),b.createElement(De.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Ne.Z,null)),b.createElement("span",{style:tt},"\u5217\u6570"),b.createElement(De.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Ne.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:tt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(De.default.Item,{name:"align"},b.createElement(Ct,null,b.createElement(Oe.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Oe.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Oe.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Oe.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(he.ZP,{type:"ghost",onClick:Bt},"\u53D6\u6D88")))},ht=ee(78673),Sn=ee(80727),rn=ee.n(Sn),mn=(0,b.forwardRef)(({use3d:vt,width:Bt,height:pt,callback:vn,showSaveButton:Hn},In)=>{const Ta=(0,b.useRef)(),Pa=(0,b.useRef)(),[Rn,ya]=(0,b.useState)(!1),ba=(0,b.useRef)({id:Ta,appName:"graphing",width:Bt||1e3,height:pt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Pa.current=new(rn())(ba.current,!0),window.onload=function(){Pa.current.inject("applet_container")}},[]);const wn=()=>{var mr=window.ggbApplet.getPNGBase64(1,!0,72);return vn&&vn(mr),mr};return(0,b.useEffect)(()=>{ba.current.appName=Rn?"3D":"graphing",Pa.current.inject("applet_container")},[Rn]),(0,b.useEffect)(()=>{ya(vt)},[vt]),(0,b.useImperativeHandle)(In,()=>({getImgData:wn})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ta}),b.createElement(on.Z,{align:"middle"},b.createElement(It.Z,{flex:1},b.createElement(ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Rn,onChange:mr=>ya(mr)})),b.createElement(It.Z,null,b.createElement(he.ZP,{size:"large",onClick:wn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),cn=ee(41588),Te=ee(1012),Ft=ee(8591);const zt="link",wt="upload-image",Rt="add-flowchart",un="draw-image",dn="add-flowchart",_n="code-block",Vn="add-table",va="------------",La={default:va,left:`:${va}`,center:`:${va}:`,right:`${va}:`};var Na=ee(58856),rr=(vt,Bt,pt)=>new Promise((vn,Hn)=>{var In=Rn=>{try{Pa(pt.next(Rn))}catch(ya){Hn(ya)}},Ta=Rn=>{try{Pa(pt.throw(Rn))}catch(ya){Hn(ya)}},Pa=Rn=>Rn.done?vn(Rn.value):Promise.resolve(Rn.value).then(In,Ta);Pa((pt=pt.apply(vt,Bt)).next())});function Ka(){}let Ea=0;const yr=1e4,Xt="\u2581",jn="@\u2581\u2581@",Qn="@\u2581@",Ia=`
**\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`,Ge=["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 Ot(vt){return/^\d+$/.test(vt)?`${vt}px`:vt}const Vt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wt={[Vt+"-B"]:"bold",[Vt+"-I"]:"italic"},Nn={[zt]:"\u6DFB\u52A0\u94FE\u63A5",[_n]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wt]:"\u6DFB\u52A0\u56FE\u7247",[un]:"\u6DFB\u52A0\u753B\u56FE",[Rt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Bn=({defaultValue:vt="",onChange:Bt,width:pt="100%",height:vn=400,miniToolbar:Hn=!1,isFocus:In=!1,watch:Ta,insertTemp:Pa,mode:Rn="markdown",id:ya="markdown-editor-id",showResizeBar:ba=!1,noStorage:wn=!1,showNullButton:mr=!1,showNullProgramButton:Er=!1,hidetoolBar:Jr=!1,fullScreen:pr=!1,onBlur:Qe,onCMBeforeChange:Pn,onFullScreen:qt,className:Dn="",disablePaste:Gn=!1,disabled:ra=!1,disabledFill:Xn=!1,placeholder:$n="",values:sr="",extraUse:sa})=>{const[Cn,dr]=(0,b.useState)(null),[Nr,Zr]=(0,b.useState)(vt),[Ir,ha]=(0,b.useState)(Ta),[za,or]=(0,b.useState)(pr),[Fa,xr]=(0,b.useState)(""),[qr,Fr]=(0,b.useState)(0),[io,lr]=(0,b.useState)(vn),[ko,ui]=(0,b.useState)(!1),pi=(0,b.useRef)((0,Te.Z)()),yo=(0,b.useRef)(!1),Eo=(0,b.useRef)(),[Yo,Fo]=(0,b.useState)(0),[Ao,eo]=(0,b.useState)(0),Pr=(0,b.useRef)(),To=(0,b.useRef)(),vi=(0,b.useRef)(),Oo=(0,b.useRef)(),br=()=>rr(void 0,null,function*(){var Tr;const Va=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:pi.current}});(Tr=Va==null?void 0:Va.attachments)!=null&&Tr.length&&(console.log("cm:",Cn,Pr),Va.attachments.map(ja=>{ja.content_type.indexOf("image")>-1?Cn.replaceSelection(`![,](/api/attachments/${ja.id}?type=${ja.content_type})`):ja.content_type.indexOf("video")>-1?Cn.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ja.content_type.indexOf("pdf")>-1?Cn.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ja.id}?type=${ja.content_type}&disposition=inline" target="_blank">${ja.name}</a>`):Cn.replaceSelection(`[${ja.name}](${ENV.API_SERVER}/api/attachments/${ja.id}?type=${ja.content_type})`)}))});(0,b.useEffect)(()=>{const Tr=window.scrollY||window.pageYOffset;Zr(sr),Cn==null||Cn.setValue(sr),window.scrollTo(0,Tr)},[sr]),(0,b.useEffect)(()=>{qt==null||qt(za)},[za]),(0,b.useEffect)(()=>{if(Pr.current){let Tr=function(ja,Ya){var so;if(Gn){Ya.preventDefault();return}const Zo=Ya.clipboardData;if(Zo){const we=Zo.types.toString(),fn=Zo.items;if(we==="Files"||Zo.types.indexOf("Files")>-1){if(Ya.preventDefault(),Rn=="stex")return;try{let Wn=fn[1];((so=fn[0])==null?void 0:so.kind)==="file"&&(Wn=fn[0]);const fa=Wn.getAsFile(),yn=fa.name.split(".").pop();(0,$e.I)(fa,wa=>{var na,Un,pa;wa.id?((na=fa==null?void 0:fa.type)==null?void 0:na.indexOf("image"))>-1?Va.replaceSelection(`<img width="100%" src="/api/attachments/${wa.id}?type=${wa.content_type})" alt="" />`):((Un=fa==null?void 0:fa.type)==null?void 0:Un.indexOf("video"))>-1?Va.replaceSelection(`<video width="100%" controls src="/api/attachments/${wa.id}"></video>`):((pa=fa==null?void 0:fa.type)==null?void 0:pa.indexOf("pdf"))>-1?Va.replaceSelection(`<a href="/api/attachments/${wa.id}?type=${fa.type}&disposition=inline" target="_blank">${fa.name}</a>`):Ge.includes(yn)?Va.replaceSelection(`<a href="/api/attachments/${wa.id}?type=office&disposition=inline" target="_blank">${fa.name}</a>`):Va.replaceSelection(`[${fa.name}](/api/attachments/${wa.id}?type=${wa.content_type})`):(wa==null?void 0:wa.status)===401&&(Ft.ZP.warning((wa==null?void 0:wa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Wn){Ft.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Va=Be().fromTextArea(Pr.current,{mode:Rn,lineNumbers:!Hn,lineWrapping:!0,value:vt,autoCloseTags:!Er,autoCloseBrackets:!0});return Va.on("keyup",function(ja,Ya){Ya.keyCode===8&&(ja.getValue()==""?Va.setOption("placeholder",$n):Va.setOption("placeholder",null))}),Va.on("keydown",function(ja,Ya){if(Ya.keyCode===8){var so=zr(ja);so&&Ya.preventDefault()}}),In&&Va.focus(),Va.on("paste",Tr),Va.on("dragleave",function(ja,Ya){To.current.classList.remove("mouse-hover-md")}),ra&&Va.on("beforeChange",function(ja,Ya){(Ya.origin==="paste"||Ya.origin==="+input")&&Ya.cancel()}),dr(Va),()=>{Va.off("paste",Tr)}}},[]);const ai=(0,b.useCallback)(()=>{if(To.current)try{}catch(Tr){console.log(Tr,"---- to set md editor body height")}},[io,To,za]);(0,b.useEffect)(()=>{function Tr(){let Va=new Ae.Z(ja=>{for(let Ya of ja)(Ya.target.offsetHeight>0||Ya.target.offsetWidth>0)&&(ai(),Cn.setSize("100%","100%"),Cn.refresh())});return Va.observe(Pr.current.parentElement),Va}if(Cn){const Va=Tr();return()=>{var ja,Ya;(ja=Pr.current)!=null&&ja.parentElement&&Va.unobserve((Ya=Pr.current)==null?void 0:Ya.parentElement)}}},[Cn,ai]),(0,b.useEffect)(()=>{if(Cn){let Tr=[];for(const[Va,ja]of Object.entries(Wt)){let Ya={[Va]:()=>{Lo(ja)}};Tr.push(Ya),Cn.addKeyMap(Ya)}return Eo.current=setInterval(()=>{yo.current&&br()},4e3),()=>{clearInterval(Eo.current);for(let Va of Tr)Cn.removeKeyMap(Va)}}},[Cn]),(0,b.useEffect)(()=>{pr!==za&&or(pr)},[pr]),(0,Na.Z)(()=>{if(!wn&&qr>0){let Tr=new Date().getTime(),Va=window.sessionStorage.getItem(ya);Tr>=qr+yr&&(!Va||Va!==Nr)&&(window.sessionStorage.setItem(ya,Nr),ui(!0))}},yr),(0,b.useEffect)(()=>{ha(Ta)},[Cn,Ta]),(0,b.useEffect)(()=>{Cn&&In&&Cn.focus()},[Cn,In]),(0,b.useEffect)(()=>{if(Ir&&Cn){let Tr=function(ja){let Ya=ja.target;if(Oo.current){let so=Ya.scrollTop/Ya.scrollHeight;Oo.current.scrollTop=Oo.current.scrollHeight*so}};const Va=Cn.getScrollerElement();return Va.addEventListener("scroll",Tr),()=>{Va.removeEventListener("scroll",Tr)}}},[Cn,Ir]),(0,b.useEffect)(()=>{if(Cn&&Pn){let Tr=function(Va,ja){Pn(Va,ja)};return Cn.on("beforeChange",Tr),()=>{Cn.off("beforeChange",Tr)}}},[Cn,Pn]),(0,b.useEffect)(()=>{if(Cn&&Qe){let Tr=function(){Qe(Cn.getValue())};return Cn.on("blur",Tr),()=>{Cn.off("blur",Tr)}}},[Cn,Qe]);function zr(Tr,Va){var ja=Tr.getDoc(),Ya=ja.getCursor(),so=ja.getLine(Ya.line),Zo=so.charAt(Ya.ch-1),we=so.lastIndexOf("@\u2581@",Ya.ch),fn=so.lastIndexOf("@\u2581\u2581@",Ya.ch),Wn=we>fn?we:fn,fa=we>fn?3:4;if(jn.indexOf(Zo)===-1)return null;if(console.log("change1:",Va,Tr,so,Ya,Wn,we,fn,Zo),Wn>=0&&Ya.ch-Wn<5){var yn=Wn+fa;return ja.replaceRange("",{line:Ya.line,ch:Wn},{line:Ya.line,ch:yn}),{line:Ya.line,ch:yn}}return null}(0,b.useEffect)(()=>{if(Cn){let Tr=function(Va,ja){const Ya=Va.getValue();Zr(Ya),Fr(new Date().getTime()),Va.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Bt&&(Er?Bt(Ya,Bi(Ya)):Bt(Ya))};return Cn.on("change",Tr),()=>{Cn.off("change",Tr)}}},[Cn,Bt]),(0,b.useEffect)(()=>{if(Cn)if(vt==null)Cn.setValue(""),Zr("");else{const Tr=window.scrollY||window.pageYOffset;vt!==Cn.getValue()&&(Cn.setValue(vt),Zr(vt),Cn.setCursor(ra?1:Cn.lineCount(),0),window.scrollTo(0,Tr))}},[Cn,vt]);const Lo=(0,b.useCallback)(Tr=>{const Va=Cn.getCursor(),ja=Cn.getSelection();let Ya=ja.split(`
`);switch(Tr){case"bold":return Cn.replaceSelection("**"+ja+"**"),ja===""&&Cn.setCursor(Va.line,Va.ch+2),Cn.focus();case"italic":return Cn.replaceSelection("*"+ja+"*"),ja===""&&Cn.setCursor(Va.line,Va.ch+1),Cn.focus();case"code":return Cn.replaceSelection("`"+ja+"`"),ja===""&&Cn.setCursor(Va.line,Va.ch+1),Cn.focus();case"inline-latex":return xr("inline-latex"),Cn.focus();case"latex":return Cn.replaceSelection("```latex\n"+ja+"\n```"),Cn.setCursor(Va.line+1,ja.length+1),Cn.focus();case"line-break":return Cn.replaceSelection(`<br/>
`),Cn.focus();case"list-ul":return ja===""?Cn.replaceSelection("- "+ja):Cn.replaceSelection(Ya.map(so=>so===""?"":`- ${so}`).join(`
`)),Cn.focus();case"list-ol":return ja===""?Cn.replaceSelection("1. "+ja):Cn.replaceSelection(Ya.map((so,Zo)=>so===""?"":`${Zo+1}. ${so}`).join(`
`)),Cn.focus();case"add-null-ch":return ja===""&&Cn.setCursor(Va.line,Va.ch),Cn.replaceSelection(Xt),Cn.focus();case"add-signal":return ja===""&&Cn.setCursor(Va.line,Va.ch),Cn.replaceSelection(Qn),Cn.focus();case"add-multiple":return ja===""&&Cn.setCursor(Va.line,Va.ch),Cn.replaceSelection(jn),Cn.focus();case"inster-template-1":return ja===""&&Cn.setCursor(Va.line,Va.ch),Cn.replaceSelection(Ia),Cn.focus();case"eraser":return Cn.setValue(""),Cn.focus();case"trigger-watch":return ha(!Ir),Cn.focus();case"trigger-full-screen":return or(!za),Cn.focus();case zt:xr(zt);return;case _n:xr(_n);return;case wt:xr(wt);return;case un:xr(un);return;case"maths-latex":xr("maths-latex");return;case Rt:xr(Rt);return;case Vn:xr(Vn);return;default:throw new Error}},[Cn,Ir,za]),ao=(0,b.useCallback)((Tr,Va)=>{var ja,Ya,so,Zo,we,fn;switch(xr(""),Fa){case zt:const{title:na,link:Un}=Tr;return Cn.replaceSelection(`[${na}](${Un})`),Cn.focus();case _n:const{language:pa,content:Sa}=Tr;return Cn.replaceSelection(["```"+pa,Sa,"```"].join(`
`)),Cn.focus();case"maths-latex":for(var Wn=atob(Tr),fa=new Uint8Array(Wn.length),yn=0;yn<Wn.length;yn++)fa[yn]=Wn.charCodeAt(yn);var wa=new Blob([fa],{type:"image/png"});(0,$e.I)(wa,al=>{al.id?Cn.replaceSelection(`![,](/api/attachments/${al.id}?type=${al.content_type})`):(al==null?void 0:al.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Cn.replaceSelection("`$$"+Tr+"$$`");break;case wt:case un:case dn:const{src:Wa,alt:ur}=Tr,$a=Va,_o=(so=(Ya=(ja=$a==null?void 0:$a.name)==null?void 0:ja.split("."))==null?void 0:Ya.pop)==null?void 0:so.call(Ya);return((Zo=$a==null?void 0:$a.type)==null?void 0:Zo.indexOf("image"))>-1||!($a!=null&&$a.type)?$a.align||$a.width?Cn.replaceSelection(`<p style="text-align:${$a.align||"initial"}"><img width="${$a.width?$a.width+"%":"initial"}" src="${Wa}" alt="${ur||""}" /></p>`):Cn.replaceSelection(`<img width="100%" src="${Wa}" alt="${ur||""}" />`):((we=$a==null?void 0:$a.type)==null?void 0:we.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="${Wa}"></video>`):((fn=$a==null?void 0:$a.type)==null?void 0:fn.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="${Wa}?type=${$a.type}&disposition=inline" target="_blank">${$a.name}</a>`):Ge.includes(_o)?Cn.replaceSelection(`<a href="${Wa}?type=office&disposition=inline" target="_blank">${$a.name}</a>`):Cn.replaceSelection(`[${$a.name}](${Wa})`),Cn.focus();case Vn:const{row:co,col:Vo,align:ci}=Tr;let Gi=`
`;for(let al=0;al<co;al++){let Zl=[],Al=[];for(let ho=0;ho<Vo;ho++)al===1&&Al.push(La[ci]),Zl.push(" ");al===1&&(Gi+=`| ${Al.join(" | ")} |
`),Gi+=`| ${Zl.join(Vo===1?"":" | ")} |
`}return Cn.replaceSelection(Gi+`
`),Cn.focus();default:throw new Error}},[Cn,Fa]),si=(0,b.useMemo)(()=>{switch(Fa){case zt:return b.createElement(nn,{callback:ao,onCancel:hi});case _n:return b.createElement(En.Z,{callback:ao,onCancel:hi});case wt:return b.createElement($e.Z,{callback:ao,onCancel:hi});case Rt:return b.createElement(At,{callback:ao,onCancel:hi});case Vn:return b.createElement(ke,{callback:ao,onCancel:hi});case"maths-latex":return b.createElement(mn,{showSaveButton:!0,callback:ao});case"inline-latex":return b.createElement(cn.Z,{showSaveButton:!0,callback:ao});default:return null}},[Fa]);function hi(){xr("")}(0,b.useEffect)(()=>{if(vi.current){let Tr=function(we){so=!0,Zo=we.pageY},Va=function(){so=!1},ja=function(we){if(so){let fn=we.pageY-Zo;fn<0&&(fn=0),fn>300&&(fn=300);let Wn=vn+fn+"px";lr(Wn)}},Ya=vi.current,so=!1,Zo=0;return Ya.addEventListener("mousedown",Tr),document.addEventListener("mousemove",ja),document.addEventListener("mouseup",Va),()=>{Ya.removeEventListener("mousedown",Tr),document.removeEventListener("mousemove",ja),document.removeEventListener("mouseup",Va)}}},[Cn,vi]),(0,b.useEffect)(()=>{lr(vn)},[vn]);const Qi=Ot(pt),tl=Ot(io),nl={width:Qi,height:tl},Uo=(0,b.useMemo)(()=>{if(qr){let Tr=new Date(qr),Va=Tr.getHours(),ja=Tr.getMinutes(),Ya=Tr.getSeconds();return Va=Va<10?"0"+Va:Va,ja=ja<10?"0"+ja:ja,Ya=Ya<10?"0"+Ya:Ya,`${Va}:${ja}:${Ya}`}return 0},[qr]),Bi=Tr=>{const Va=[];if(Er){let ja=-1;Tr=Tr.replace(/(@▁▁@|@▁@)/g,function(Ya,so,Zo){Va.push({multiLine:Ya!==Qn})})}return Va};function gl(){window.sessionStorage.removeItem(ya),ui(!1),Fr(0)}function ji(){ui(!1),Fr(0),Cn.setValue(window.sessionStorage.getItem(ya))}(0,b.useEffect)(()=>{Nn[Fa]&&Fa!==un&&Fa!==Rt&&setTimeout(()=>{const Tr=document.getElementsByClassName("markdown-popup-form")[0],Va=window.innerWidth/2-Tr.offsetWidth/2,ja=window.innerHeight/2-Tr.offsetHeight/2;Fo(Va),eo(ja)},0)},[Fa]);const cl=Tr=>{Tr.preventDefault();const Va=Tr.clientX-Yo,ja=Tr.clientY-Ao;document.body.onmousemove=Ya=>{let so=Ya.clientX-Va,Zo=Ya.clientY-ja;const we=document.getElementsByClassName("markdown-popup-form")[0],fn=window.innerWidth-we.offsetWidth,Wn=window.innerHeight-we.offsetHeight;so=Math.max(0,Math.min(so,fn)),Zo=Math.max(0,Math.min(Zo,Wn)),Cl(Ya.clientX,Ya.clientY,Va,ja)&&(Fo(so),eo(Zo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Cl=(Tr,Va,ja,Ya)=>{const so=document.body.clientHeight,Zo=document.body.clientWidth;return Tr<20&&ja>Tr||Tr>Zo-20&&ja<Tr||Va<20&&Ya>Va||Va>so-20&&Ya<Va?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:To},b.createElement("div",{className:`markdown-editor-container ${Dn} ${Ir?"on-preview":""} ${Hn?"mini":""} ${za?"full-screen":""}`,style:nl},b.createElement(be,{insertTemp:Pa,watch:Ir,fullScreen:za,showNullButton:mr,showNullProgramButton:Er,onActionCallback:Lo,hidetoolBar:Jr,extraUse:sa}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Pr,placeholder:$n})),Ir?b.createElement("div",{ref:Oo,className:"preview-container"},Rn==="stex"&&b.createElement(Je,{value:Nr}),Rn!=="stex"&&b.createElement(We.Z,{disabledFill:Xn,showProgramFill:Er,value:Nr})):null))),ba?b.createElement("a",{ref:vi,className:"editor-resize"}):null,Fa===un&&b.createElement(On,{callback:ao,onCancel:hi}),Fa===Rt&&b.createElement(At,{callback:ao,onCancel:hi}),b.createElement(je.Z,null,Nn[Fa]&&Fa!==un&&Fa!==Rt?b.createElement(dt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Yo,top:Ao},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:cl},Nn[Fa]),open:!0,onCancel:hi,footer:null,destroyOnClose:!0,width:Fa===Rt?"1200px":null,height:Fa===Rt?"80vh":null,className:"markdown-popup-form"},si):null))}},28451:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return ve},I:function(){return je}});var b=ee(78241),de=ee(8591),Be=ee(92832),Ae=ee(81327),ze=ee(5871),Me=ee(5112),le=ee(3113),st=ee(77903),et=ee(59301),Ve=ee(24065),We=ee(59301),Je=Object.defineProperty,Ye=Object.defineProperties,se=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(De,He,he)=>He in De?Je(De,He,{enumerable:!0,configurable:!0,writable:!0,value:he}):De[He]=he,z=(De,He)=>{for(var he in He||(He={}))a.call(He,he)&&y(De,he,He[he]);if(E)for(var he of E(He))x.call(He,he)&&y(De,he,He[he]);return De},ne=(De,He)=>Ye(De,se(He));const{useForm:re}=b.default,ue={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var ve=({callback:De,onCancel:He})=>{const[he]=re();let Xe=(0,et.useRef)();function Ke(ot){Xe.current.width=he.getFieldValue("width"),Xe.current.align=he.getFieldValue("align"),De(ot,Xe.current)}function St(ot,lt){if(ot.status===-1){de.ZP.error(ot.message);return}he.setFieldsValue({src:`/api/attachments/${ot.id}`,type:lt.type})}function Le(ot){let lt=ot.target.files[0];Xe.current=lt,je(lt,St)}return We.createElement(b.default,ne(z({form:he},ie),{className:"upload-image-panel",onFinish:Ke,style:{width:470,overflow:"hidden"}}),We.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Be.default,{style:ue})),We.createElement(be,{onFileChange:Le}))),We.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Be.default,{style:{width:264}})),We.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Ae.Z,null,We.createElement(b.default.Item,{name:"width",style:{margin:0}},We.createElement(ze.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(Me.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"}]})),We.createElement("aside",null,We.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(le.ZP,{type:"default",onClick:He},"\u53D6\u6D88"))))};function be({onFileChange:De}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:De}))}function je(De,He){if(!De)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ve.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let he=new FormData;he.append("editormd-image-file",De),he.append("file_param_name","editormd-image-file"),he.append("byxhr","true");var Xe=new window.XMLHttpRequest;Xe.withCredentials=!0,Xe.addEventListener("load",function(Ke){He(JSON.parse(Ke.target.responseText),De)},!1),Xe.addEventListener("error",function(Ke){console.error(Ke)},!1),Xe.open("POST",`${st.KI}/api/attachments.json`),Xe.send(he)}},79346:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Be}});var b=ee(59301),de=ee(4676);class Be extends b.Component{constructor(ze){super(ze);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:ze}=this.props;return(0,de.createPortal)(ze,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},33847:function(Qt,Gt,ee){"use strict";ee.d(Gt,{i:function(){return ue},Z:function(){return ve}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___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MRmnNz1cjLVawDFru3Zc+C62+QKnYsN7s14F1YyWSbRXkxS96d0XOEzd06QeKtBzZT7jRhrs3d6NUDELaXAqCrgjiVuJuljyLJyzZkkZxtE3YkdSyKAlHFkx1TMVtu1OW+QbAPzz/n5AWJ8WAzLF9A65+dzs3A2uioOjkFIeZ63u1PzFNRdFfmYPqvl5fc0d1c4k8SwiavhxzHSG4J5+cQZuyvLyzwSSBt8BZJgESwsN65snmj3gzR3xh6YujGOSVMPo8sxK8dcHWudc6Z4dWVJZIv5Bn93p40Y84KdYpJzQ/Dz6PHEvcoaIfGP2VMyv4CglP/0qgjYNKAh2oH6vANrJ4kejl6qIReYrwtzgmT/LwknSFTisazUUITWNi5vmiDaDdydqHxIGNgGycki263pBtRjDLMbY1MhICnprTPJluBONyjvj7tAPq5cMEjq+x8ZJJ5AcRDceZL3LHhhINn/lUUySVsXSIJlbgvNCx4WHv3+VWPXvL6sZt8/v/t/ZcDiwhxFgaLp8YdFs4Dx64oxwbfTrmwDrBivpR4DVDQDF/VqYsf+ef3L5SDvAGCVcy/4GKCimrho1yv3tWdR3xgzD9ssC8H6ko8BKpqBi3q1I77sXvBef9M0HX3kxwAV1cRFu95PALhFw2OAimbgol7tB5BbNDwGqKgmLtr1nhJaFw2PASqagYt6db45jhQNMf0Xi7mnon7V4+sfxQIFJqFMNES/v3D+oyz8+Jp/jgX+AT+bS/shEzsoAAAAAElFTkSuQmCC",re=ee(59301);const ue=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:et,swimg:Ve},{name:"101\u8BA1\u5212",ptimg:We,swimg:Je},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Ye,swimg:se},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:E,swimg:a},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:x,swimg:y},{name:"\u519B\u961F\u4E00\u6D41",ptimg:z,swimg:ne}];var ve=({className:be,dataSource:je=[],col:De=4,right:He,bottom:he=23,precision:Xe=0,wrapWidth:Ke=1200,trackEventItems:St,loading:Le,onRemove:ot=()=>{},isCurrent:lt=!0,showAlias:gt=!1})=>{const ft=Math.floor((Ke-(De-1)*He)/De),ln=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(xt=>(window.ENV==="build"&&(xt.ptimg=`/react/build${xt.ptimg}`,xt.swimg=`/react/build${xt.swimg}`),xt));return re.createElement(de.Z,{spinning:Le},re.createElement("div",{className:ze()(b.list,be)},!!(je!=null&&je.length)&&(je==null?void 0:je.map((xt,nn)=>{var En;const{name:$e,id:dt,identifier:on,featured:Yn,school_name:Zt,image_url:On,excellent:_e,is_plan:ct}=xt;return re.createElement("div",{key:dt,className:b.wrap,style:{width:ft,marginRight:(1+nn)%De===0?0:He+Xe,marginBottom:he}},re.createElement("a",{className:b.li,onClick:kt=>{kt.preventDefault(),kt.stopPropagation(),St&&(0,Me.L9)([St]),(0,Me.xg)(`/paths/${on}`)}},re.createElement("div",{className:b.img},re.createElement("img",{className:b.cover,src:`${On}`}),lt&&(0,st.bg)()&&(xt==null?void 0:xt.studying)&&re.createElement("div",{className:`${b.movebq} user-path-items`,onClick:kt=>{kt.stopPropagation(),ot(xt)}},re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(En=xt==null?void 0:xt.subject_tags)==null?void 0:En.map((kt,mt)=>{var It,ut;if(mt===0){const Ie=(It=ln.find(fe=>fe.name==kt))==null?void 0:It.swimg;return re.createElement("img",{className:b.sign,src:Ie,style:{left:"-4px"}})}const at=(ut=ln.find(Ie=>Ie.name==kt))==null?void 0:ut.ptimg;return re.createElement("img",{className:b.sign,src:at,style:{left:`${48+52*(mt-1)+2*mt}px`}})}),re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(xt==null?void 0:xt.excellent)&&re.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),re.createElement("div",{className:b.name},re.createElement(Be.Z,{title:gt&&(xt!=null&&xt.excellent_alias_name)?re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${$e}`,re.createElement("br",null),re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${xt==null?void 0:xt.excellent_alias_name}`)):$e},re.createElement("span",{className:b.e},gt&&(xt==null?void 0:xt.excellent_alias_name)||$e))),re.createElement("div",{className:b.tags},re.createElement("div",null,re.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),re.createElement("span",null,xt.stages_count))),re.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),re.createElement("span",null,xt.members_count)))))))})),!je.length&&re.createElement(le.Z,null)))}},29458:function(Qt,Gt,ee){"use strict";ee.d(Gt,{jL:function(){return ze},w9:function(){return xt},QD:function(){return cn},cQ:function(){return ot.Z},op:function(){return ke},O5:function(){return Ia},_b:function(){return un},t7:function(){return y},Gi:function(){return Yn},YG:function(){return dt},qp:function(){return We},vr:function(){return zt},qE:function(){return rn},Je:function(){return re},wb:function(){return Le},cq:function(){return mt},tp:function(){return se}});var b=ee(59301),de={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSs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7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ze=({dataSource:Ge=[],img:Ot,imgWidth:_t=346,title:Vt,sunTitle:Wt,bannerExtraContent:Nn})=>b.createElement("div",{className:de.banner},b.createElement("div",{className:de.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Vt),b.createElement("span",null,Wt)),Ge.length>0&&b.createElement("div",{className:de.btns},Ge.map((Bn,vt)=>b.createElement("div",{key:vt,onClick:Bn.click},Bn.name,Bn.sign?b.createElement("img",{src:Be,width:39}):null))),Nn),Ot&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:Ot,width:_t}))),Me={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},le=ee(92310),st=ee.n(le),et=ee(89392),We=({dataSource:Ge=[],value:Ot,onChange:_t,onTitleChange:Vt,className:Wt,title:Nn,titleWidth:Bn=41,style:vt={},fontColor:Bt="#6A7283",showCount:pt})=>{const[vn,Hn]=(0,b.useState)(0),[In,Ta]=(0,b.useState)(!1),Pa=(0,b.useRef)(null),Rn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var ya;Ge.length!==0&&(((ya=Pa==null?void 0:Pa.current)==null?void 0:ya.clientHeight)>97?Hn(1):Hn(0)),Ge.length===0&&Hn(0),Ta(!1)},[Ge]),b.createElement("div",{className:st()(Me.row,Wt),style:vt},b.createElement("div",{onClick:(0,et.throttle)(()=>Vt==null?void 0:Vt(),2e3),style:{width:Bn,marginTop:In?12:4},className:`${Me.title} ${Vt?"current":""}`},Nn),b.createElement("div",{className:In?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},b.createElement("div",{className:Me.bar,ref:Rn,style:vn>0?{height:vn===1?97:"auto",overflow:vn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Me.tag,ref:Pa},Ge==null?void 0:Ge.map(ya=>b.createElement("span",{onClick:()=>_t(ya.id),key:ya.id,style:{color:Bt},className:Ot===ya.id?Me.active:""},b.createElement("span",{title:ya.name,className:Me.name},ya.name),!!pt&&b.createElement("span",{className:Me.num},ya.count))))),!!vn&&b.createElement(b.Fragment,null,vn===1?b.createElement("div",{onClick:()=>{var ya;Hn(2),((ya=Pa==null?void 0:Pa.current)==null?void 0:ya.clientHeight)>245?Ta(!0):Ta(!1)},className:Me.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Rn.current.scrollTop=0,Hn(1),Ta(!1)},className:Me.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},se=({dataSource:Ge=[],value:Ot,onChange:_t,className:Vt,style:Wt={}})=>b.createElement("div",{style:Wt,className:st()(Je.tabs,Vt)},Ge.map(Nn=>b.createElement("span",{onClick:()=>_t(Nn.id),className:Ot===Nn.id?Je.active:"",key:Nn.id},Nn.name))),E={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},a=ee(92832),y=({dataSource:Ge=[],value:Ot="",onChange:_t,onInputChange:Vt=()=>{},className:Wt,style:Nn={},placeholder:Bn,allowClear:vt=!1})=>{var Bt;const[pt,vn]=(0,b.useState)(""),[Hn,In]=(0,b.useState)("");(0,b.useEffect)(()=>{var Rn;let ya=Ot;(Rn=JSON.stringify(Ot))!=null&&Rn.includes("{")&&(vn(Ot.id),ya=Ot.value||"");try{In(decodeURIComponent(ya||""))}catch(ba){In(decodeURIComponent(ya||""))}},[Ot]);const Ta=()=>{_t(encodeURIComponent(Hn),pt||null)},Pa=Rn=>{Rn!==pt&&(vn(Rn),_t(encodeURIComponent(Hn),Rn))};return b.createElement("div",{className:st()(E.input,Wt),style:Nn},!!Ge.length&&b.createElement("div",{className:E.dropdown},b.createElement("div",{className:E.text},(Bt=Ge.find(Rn=>Rn.id===pt))==null?void 0:Bt.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:E.b1}),b.createElement("b",{className:E.b2})),b.createElement("div",{className:E.menu},Ge.map((Rn,ya)=>b.createElement("div",{key:ya,onClick:()=>Pa(Rn.id)},Rn.name)))),b.createElement(a.default,{onPressEnter:Ta,value:Hn,onChange:Rn=>{In(Rn.target.value),Vt(encodeURIComponent(Rn.target.value),pt||null)},bordered:!1,placeholder:Bn}),b.createElement("i",{onClick:Ta,className:"iconfont icon-sousuo9 font14 pl10 current"}))},z={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},re=({value:Ge,onChange:Ot,className:_t,total:Vt,pageSize:Wt,style:Nn={}})=>{const Bn=Ge<2,vt=Ge>=Math.ceil(Vt/Wt);return Vt<=Wt?b.createElement(b.Fragment,null):b.createElement("div",{className:st()(z.quickPager,_t),style:Nn},b.createElement("div",{onClick:()=>{Bn||Ot(Ge-1,"prev")},className:Bn?z.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{vt||Ot(Ge+1,"next")},className:vt?z.disabled:""},"\u4E0B\u4E00\u9875"))},ue={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ie=ee(71418),ve=ee(6848),be=ee(13570),je=ee(3294),De=ee(955),He=ee(96908),he=ee(57177),Xe=ee(81378),Ke=ee(8797),Le=({className:Ge,dataSource:Ot=[],col:_t=4,right:Vt,bottom:Wt=23,precision:Nn=0,wrapWidth:Bn=1200,trackEventItems:vt,loading:Bt})=>{const pt=Math.floor((Bn-(_t-1)*Vt)/_t);return b.createElement(ie.Z,{spinning:Bt},b.createElement("div",{className:st()(ue.list,Ge)},!!Ot.length&&Ot.map((vn,Hn)=>{const{name:In,id:Ta,identifier:Pa,power:Rn,cover_image_id:ya,pic:ba}=vn;return b.createElement("div",{className:ue.wrap,key:Ta,style:{width:pt,marginRight:(1+Hn)%_t===0?0:Vt+Nn,marginBottom:Wt}},b.createElement("a",{target:"_blank",href:`/shixuns/${Pa}/challenges`,className:ue.li,onClick:wn=>{wn.preventDefault(),vt&&(0,De.L9)([vt]),Rn&&(0,De.xg)(`/shixuns/${Pa}/challenges`)}},b.createElement("div",{className:ue.img},b.createElement("img",{className:ue.cover,src:`${ba}`}),vn.is_jupyter&&b.createElement("img",{className:ue.sign,src:He}),vn.is_jupyter_lab&&b.createElement("img",{className:ue.sign,src:he}),vn.is_unity_3d&&b.createElement("img",{className:ue.sign,src:Xe})),b.createElement("div",{className:ue.name},b.createElement(ve.Z,{title:In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:ue.e},In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:ue.tags},b.createElement(ve.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,vn.challenges_count))),!!vn.myshixuns_count&&b.createElement(ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,vn.myshixuns_count))),b.createElement(ve.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,vn.level))),b.createElement("div",{className:ue.rate},b.createElement(be.Z,{allowHalf:!0,disabled:!0,defaultValue:vn.score_info}),b.createElement("span",null,"\xA0",vn.score_info?`${vn.score_info}\u5206`:"5\u5206")))),!Rn&&b.createElement("div",{className:ue.lockWrap},b.createElement("img",{src:`${je.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ot.length&&b.createElement(Ke.Z,null)))},ot=ee(33847),lt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"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qN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ft=ee(59301),xt=({className:Ge,dataSource:Ot=[],col:_t=4,right:Vt,bottom:Wt=23,precision:Nn=0,wrapWidth:Bn=1200,trackEventItems:vt,loading:Bt})=>{const pt=Math.floor((Bn-(_t-1)*Vt)/_t);return ft.createElement(ie.Z,{spinning:Bt},ft.createElement("div",{className:st()(lt.list,Ge)},!!Ot.length&&Ot.map((vn,Hn)=>{const{subject_identifier:In,id:Ta,identifier:Pa,power:Rn}=vn,ya=vn.is_public!=0&&vn.is_public;return ft.createElement("div",{className:lt.wrap,key:Ta,style:{width:pt,marginRight:(1+Hn)%_t===0?0:Vt+Nn,marginBottom:Wt}},ft.createElement("a",{className:lt.li,onClick:ba=>{ba.preventDefault(),vt&&(0,De.L9)([vt]),(0,De.xg)(vn.first_category_url)}},ft.createElement("div",{className:lt.top},ft.createElement(ve.Z,{title:vn.name},ft.createElement("div",{className:lt.name},vn.name)),ft.createElement("img",{className:lt.img,src:je.Z.IMG_SERVER+"/images/"+vn.avatar_url}),ft.createElement("div",{className:lt.text,title:vn.creator},vn.creator),In&&ft.createElement("div",{className:lt.btns},ft.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ft.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ya&&ft.createElement("div",{className:lt.sign},"\u516C\u5F00")),ft.createElement("div",{className:lt.bottom},vn.visits>0&&ft.createElement(ve.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-liulanyan"}),ft.createElement("span",null,vn.visits))),vn.course_members_count>0&&ft.createElement(ve.Z,{title:"\u6210\u5458",placement:"bottom"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-chengyuan"}),vn.course_members_count)),vn.tasks_count>0&&ft.createElement(ve.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ft.createElement("span",null,ft.createElement("i",{className:"iconfont icon-zuoye"}),vn.tasks_count)),vn.is_end?ft.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ft.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!vn.is_accessible&&ft.createElement("div",{className:lt.lockWrap},ft.createElement("img",{src:`${je.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ft.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ot.length&&ft.createElement(Ke.Z,null)))},nn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},En=ee(89070),dt=({dataSource:Ge=[],value:Ot,onChange:_t,className:Vt,style:Wt={},tabBarExtraContent:Nn})=>b.createElement("div",{className:st()(nn.tabs,Vt),style:Wt},b.createElement("div",{className:nn.tabsWrap},Ge.map((Bn,vt)=>b.createElement("aside",{className:nn.tab,onClick:()=>{_t(Bn.id),Bn.link&&En.history.push(Bn.link)},key:vt},b.createElement("div",{className:Ot===Bn.id?nn.active:""},Bn.name),(Bn==null?void 0:Bn.resetCount)==null&&(Bn==null?void 0:Bn.total)!==void 0&&b.createElement("span",null,"\uFF08",Bn==null?void 0:Bn.total,"\uFF09"),(Bn==null?void 0:Bn.resetCount)!==void 0&&(Bn==null?void 0:Bn.total)!==void 0&&b.createElement(ve.Z,{title:(Bn==null?void 0:Bn.tip)!=null?Bn==null?void 0:Bn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Bn==null?void 0:Bn.resetCount),"/",b.createElement("span",null,Bn==null?void 0:Bn.total),"\uFF09"))))),b.createElement("div",{className:nn.tabBar},Nn)),Yn=({className:Ge,style:Ot={},children:_t})=>b.createElement("div",{className:st()(Ge),style:Ot},_t),Zt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},On=ee(38854),_e=ee(20834);const ct=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var mt=({sortValue:Ge,dropValue:Ot,className:_t,onSort:Vt,onDrop:Wt,dataSource:Nn=ct})=>{var Bn;return b.createElement("div",{className:st()(Zt.orderWrap,_t)},b.createElement(On.Z,{dropdownRender:()=>b.createElement(_e.default,null,Nn.map((vt,Bt)=>b.createElement(_e.default.Item,{key:Bt,onClick:()=>Wt(vt.id)},vt.name)))},b.createElement("span",{className:Zt.orderTextWrap},(Bn=Nn.find(vt=>Ot===vt.id))==null?void 0:Bn.name)),b.createElement("span",{className:Zt.orderIconWrap},b.createElement("span",{className:Zt.orderAsc},b.createElement("i",{className:Ge==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zt.cursorPointer} ${Zt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zt.cursorPointer}`,onClick:()=>Vt(Ge==="asc"?"desc":"asc")})),b.createElement("span",{className:Zt.orderDesc},b.createElement("i",{className:Ge==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zt.cursorPointer} ${Zt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zt.cursorPointer}`,onClick:()=>Vt(Ge==="asc"?"desc":"asc")}))))},It={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ut=ee(3113),at=Object.defineProperty,Ie=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,At=(Ge,Ot,_t)=>Ot in Ge?at(Ge,Ot,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ge[Ot]=_t,Oe=(Ge,Ot)=>{for(var _t in Ot||(Ot={}))fe.call(Ot,_t)&&At(Ge,_t,Ot[_t]);if(Ie)for(var _t of Ie(Ot))qe.call(Ot,_t)&&At(Ge,_t,Ot[_t]);return Ge},Ne=(Ge,Ot)=>{var _t={};for(var Vt in Ge)fe.call(Ge,Vt)&&Ot.indexOf(Vt)<0&&(_t[Vt]=Ge[Vt]);if(Ge!=null&&Ie)for(var Vt of Ie(Ge))Ot.indexOf(Vt)<0&&qe.call(Ge,Vt)&&(_t[Vt]=Ge[Vt]);return _t},Ct=(Ge,Ot,_t)=>new Promise((Vt,Wt)=>{var Nn=Bt=>{try{vt(_t.next(Bt))}catch(pt){Wt(pt)}},Bn=Bt=>{try{vt(_t.throw(Bt))}catch(pt){Wt(pt)}},vt=Bt=>Bt.done?Vt(Bt.value):Promise.resolve(Bt.value).then(Nn,Bn);vt((_t=_t.apply(Ge,Ot)).next())}),ke=Ge=>{var Ot=Ge,{className:_t,style:Vt,children:Wt,loading:Nn=!1,openLoading:Bn,onClick:vt=()=>{},size:Bt="middle",shape:pt="round"}=Ot,vn=Ne(Ot,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Hn,In]=(0,b.useState)(!1);return b.createElement(ut.ZP,Oe({onClick:(0,et.throttle)(Ta=>Ct(void 0,null,function*(){Bn&&In(!0);try{yield vt(Ta)}catch(Pa){console.log("error",Pa)}Bn&&In(!1)}),2e3,{leading:!0,trailing:!1}),className:st()(It.btn,It[`${Bt}-${pt}`],_t),style:Vt,size:Bt,shape:pt,loading:Hn||Nn},vn),Wt)},ht={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},rn=({className:Ge,style:Ot,children:_t=null,onClick:Vt,title:Wt})=>b.createElement("div",{className:st()(ht.head,Ge),style:Ot},b.createElement("span",{className:"primary-hover",onClick:Vt},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Wt},Wt),b.createElement("div",{className:ht.node},_t)),an={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},cn=({confirmShow:Ge=!0,confirmTitle:Ot,confirmClick:_t,cancelShow:Vt=!0,cancelTitle:Wt,cancelClick:Nn,className:Bn,style:vt,confirmLoading:Bt=!1})=>b.createElement("div",{className:st()(an.btns,Bn),style:vt},Ge&&b.createElement(ut.ZP,{loading:Bt,onClick:_t,type:"primary",className:an.confirm},Ot),Vt&&b.createElement(ut.ZP,{onClick:Nn,className:an.cancel},Wt)),Te={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},zt=({className:Ge,style:Ot={},LeftContent:_t,children:Vt,RightContent:Wt})=>b.createElement("div",{className:st()(Te.fixedBottom,Ge),style:Ot},b.createElement("div",{className:Te.wrap},b.createElement("div",{className:Te.left},_t),b.createElement("div",{className:Te.center},Vt),b.createElement("div",{className:Te.right},Wt))),wt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},un=({className:Ge,style:Ot={},dataSource:_t=[]})=>b.createElement("div",{className:st()(wt.crumbs,Ge),style:Ot},_t.map((Vt,Wt)=>Wt<_t.length-1?b.createElement(b.Fragment,{key:Wt},Vt.path||Vt.onClick?b.createElement("span",{className:wt.hover,onClick:Vt!=null&&Vt.onClick?Vt.onClick:()=>En.history.push(Vt.path)},Vt.name):b.createElement("span",null,Vt.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Wt,style:{color:"#5F6368"}},Vt.name))),dn=ee(31797),_n=Object.defineProperty,Vn=Object.defineProperties,va=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,Ka=(Ge,Ot,_t)=>Ot in Ge?_n(Ge,Ot,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Ge[Ot]=_t,Ea=(Ge,Ot)=>{for(var _t in Ot||(Ot={}))Na.call(Ot,_t)&&Ka(Ge,_t,Ot[_t]);if(La)for(var _t of La(Ot))rr.call(Ot,_t)&&Ka(Ge,_t,Ot[_t]);return Ge},yr=(Ge,Ot)=>Vn(Ge,va(Ot)),Xt=(Ge,Ot)=>{var _t={};for(var Vt in Ge)Na.call(Ge,Vt)&&Ot.indexOf(Vt)<0&&(_t[Vt]=Ge[Vt]);if(Ge!=null&&La)for(var Vt of La(Ge))Ot.indexOf(Vt)<0&&rr.call(Ge,Vt)&&(_t[Vt]=Ge[Vt]);return _t};const{Countdown:jn}=dn.default;var Ia=Ge=>{var Ot=Ge,{onChange:_t}=Ot,Vt=Xt(Ot,["onChange"]);const[Wt,Nn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Wt=="number"&&Wt>=0&&_t(Wt)},[Wt]);const Bn=vt=>{const Bt=Math.floor(vt/1e3);Nn(Bt)};return b.createElement(jn,yr(Ea({},Vt),{onChange:Bn}))}},58856:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return de}});var b=ee(59301);function de(Be,Ae){const ze=(0,b.useRef)();(0,b.useEffect)(()=>{ze.current=Be}),(0,b.useEffect)(()=>{function Me(){ze.current()}if(Ae!==null){let le=setInterval(Me,Ae);return()=>clearInterval(le)}},[Ae])}},96716:function(Qt,Gt,ee){"use strict";ee.r(Gt),ee.d(Gt,{default:function(){return kr}});var b=ee(59301),de=ee(89070),Be=ee(78241),Ae=ee(8591),ze=ee(66104),Me=ee(92832),le=ee(19842),st=ee(24905),et=ee(5112),Ve=ee(5871),We=ee(3113),Je={flex_box_center:"flex_box_center___aPGWN",flex_space_between:"flex_space_between___MQNX5",flex_box_vertical_center:"flex_box_vertical_center___Z7QdK",flex_box_center_end:"flex_box_center_end___JQl5O",flex_box_column:"flex_box_column___IhYhx",bg:"bg___Kg8x_",title:"title___UhsVG",titleLeft:"titleLeft___NPVwn",titleRight:"titleRight___UGtmZ",formWrap:"formWrap___Jowb2",baseLineHeight:"baseLineHeight___N68WX",radioBtnWrapper:"radioBtnWrapper___bX7Pi",radiogroup:"radiogroup___ukf8u",easy:"easy___ZHYPU",medium:"medium___piewx",hard:"hard___HMXyt",selectdiv:"selectdiv___gkuBG",divitem:"divitem___vNm0q",bottmodiv:"bottmodiv___assW5",cancelBtn:"cancelBtn___Nl6Pi",confirmBtn:"confirmBtn___BNoFU",baseFormItem:"baseFormItem___ILZ2V",cascaderPopup:"cascaderPopup___QPxW3",addQuestionBtn:"addQuestionBtn___OjehS",concat:"concat___kliXB"},Ye=ee(43418),se=ee(5083),E=ee(61186),a=ee.n(E),x=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())});const y=({user:ce,dispatch:pe,classroomList:Pe,onModalOk:Lt,setsubloading:tn})=>{const Aa=(0,de.useParams)(),[ma,Tn]=(0,b.useState)(),[jt,Jn]=(0,b.useState)(!1);function Fn(bt){return bt&&bt<a()().subtract(1,"days")}return b.createElement(Ye.default,{title:"\u6E29\u99A8\u63D0\u793A",afterClose:()=>{Jn(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:Pe.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(jt){Ae.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}tn(!1),pe({type:"classroomList/setActionTabs",payload:{}})}},b.createElement("div",null,b.createElement("span",null,"EduCoder\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),b.createElement("br",null),b.createElement(se.default,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:Fn,format:"YYYY-MM-DD HH:mm:ss",onChange:(bt,sn)=>{Tn(sn)},showTime:{defaultValue:a()("00:00:00","HH:mm:ss")}}),b.createElement("br",null),b.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),b.createElement("br",null),b.createElement("div",{style:{textAlign:"end"}},b.createElement(We.ZP,{loading:jt,type:"primary",onClick:()=>x(void 0,null,function*(){Jn(!0),Lt(ma,()=>{pe({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var z=(0,de.connect)(({user:ce,classroomList:pe})=>({user:ce,classroomList:pe}))(y),ne=ee(99064),re=ee(32134),ue=ee(12893),ie={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},ve=ee(57809),be=Object.defineProperty,je=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,he=(ce,pe,Pe)=>pe in ce?be(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Xe=(ce,pe)=>{for(var Pe in pe||(pe={}))De.call(pe,Pe)&&he(ce,Pe,pe[Pe]);if(je)for(var Pe of je(pe))He.call(pe,Pe)&&he(ce,Pe,pe[Pe]);return ce},Ke=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),Le=({setitem:ce,item:pe,rz:Pe})=>{var Lt,tn,Aa,ma,Tn,jt,Jn,Fn;let[bt,sn]=(0,b.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[An]=Be.default.useForm(),[ia,Zn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Pe&&!ia&&(bt.zydatas=Pe,sn(Xe({},bt)),Zn(!0),pe!=null&&pe.ec_course_id&&xa())},[pe,Pe,ia]),console.log(bt,"params");function xa(){return Ke(this,null,function*(){yield ta(pe==null?void 0:pe.ec_major_school_id),yield la(pe==null?void 0:pe.ec_year_id),yield Ua(pe==null?void 0:pe.ec_course_id),An.setFieldsValue({ec_course_id:pe==null?void 0:pe.ec_course_id,ec_major_school_id:pe==null?void 0:pe.ec_major_school_id,ec_point_ids:pe==null?void 0:pe.ec_point_ids,ec_year_id:pe==null?void 0:pe.ec_year_id})})}function ta(bn){return Ke(this,null,function*(){const Ca=yield(0,ne.ZP)(`/api/ec_major_schools/${bn}/ec_years/get_year_list.json`,{method:"get"});bt.jbdatas=Ca==null?void 0:Ca.data,sn(Xe({},bt)),An.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function la(bn){return Ke(this,null,function*(){const Ca=yield(0,ne.ZP)(`/api/ec_years/${bn}/ec_courses/get_courses.json`,{method:"get"});bt.kcdatas=Ca==null?void 0:Ca.data,sn(Xe({},bt)),An.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Ua=bn=>Ke(void 0,null,function*(){const Ca=yield(0,ne.ZP)(`/api/ec_courses/${bn}/ec_points.json`,{method:"get",params:{ec_course_id:bn}});bt.zsdatas=Ca==null?void 0:Ca.data,sn(Xe({},bt))});return b.createElement("div",{className:ie.from},b.createElement(Be.default,{form:An,layout:"inline",onValuesChange:bn=>{console.log("----",bn),bn.ec_major_school_id&&(bt.jbdatas=[],bt.kcdatas=[],bt.zsdatas=[],sn(Xe({},bt)),ta(bn.ec_major_school_id)),bn.ec_year_id&&(bt.kcdatas=[],bt.zsdatas=[],sn(Xe({},bt)),la(bn.ec_year_id)),bn.ec_course_id&&(bt.zsdatas=[],sn(Xe({},bt)),Ua(bn.ec_course_id))},onFinish:bn=>Ke(void 0,null,function*(){ce(bn)})},b.createElement(Be.default.Item,{name:"ec_major_school_id"},b.createElement(ve.default,{style:{width:160},disabled:((Lt=bt.zydatas)==null?void 0:Lt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(tn=bt==null?void 0:bt.zydatas)==null?void 0:tn.map((bn,Ca)=>b.createElement(ve.default.Option,{key:Ca,value:bn==null?void 0:bn.ec_major_school_id},bn==null?void 0:bn.name)))),b.createElement(Be.default.Item,{name:"ec_year_id"},b.createElement(ve.default,{style:{width:160},disabled:((Aa=bt.jbdatas)==null?void 0:Aa.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(ma=bt==null?void 0:bt.jbdatas)==null?void 0:ma.map((bn,Ca)=>b.createElement(ve.default.Option,{key:Ca,value:bn==null?void 0:bn.ec_year_id},bn==null?void 0:bn.year)))),b.createElement(Be.default.Item,{name:"ec_course_id"},b.createElement(ve.default,{style:{width:208},disabled:((Tn=bt.kcdatas)==null?void 0:Tn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(jt=bt==null?void 0:bt.kcdatas)==null?void 0:jt.map((bn,Ca)=>b.createElement(ve.default.Option,{key:Ca,value:bn==null?void 0:bn.id},bn==null?void 0:bn.name)))),b.createElement(Be.default.Item,{name:"ec_point_ids"},b.createElement(ve.default,{onChange:()=>{An.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((Jn=bt.zsdatas)==null?void 0:Jn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Fn=bt==null?void 0:bt.zsdatas)==null?void 0:Fn.map((bn,Ca)=>b.createElement(ve.default.Option,{key:Ca,value:bn==null?void 0:bn.id},bn==null?void 0:bn.name))))))},ot=Object.defineProperty,lt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,nn=(ce,pe,Pe)=>pe in ce?ot(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,En=(ce,pe)=>{for(var Pe in pe||(pe={}))ln.call(pe,Pe)&&nn(ce,Pe,pe[Pe]);if(ft)for(var Pe of ft(pe))xt.call(pe,Pe)&&nn(ce,Pe,pe[Pe]);return ce},$e=(ce,pe)=>lt(ce,gt(pe)),dt=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())});const on=({user:ce,exercise_id:pe=null,homework_common_id:Pe=null,setitem:Lt})=>{var tn,Aa,ma;let[Tn,jt]=(0,b.useState)([{id:Math.random()}]),[Jn,Fn]=(0,b.useState)(null);function bt(){return dt(this,null,function*(){var An,ia,Zn,xa;let ta=yield(0,ne.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:pe,homework_common_id:Pe}});if(((An=ta==null?void 0:ta.data)==null?void 0:An.length)>0){let la=[];(ia=ta==null?void 0:ta.data)==null||ia.map(Ua=>{var bn;(bn=Ua==null?void 0:Ua.ec_point_ids)==null||bn.map(Ca=>{la.push(Ca)})}),Lt($e(En({},(Zn=ta==null?void 0:ta.data)==null?void 0:Zn[0]),{ec_point_ids:la})),jt((xa=ta==null?void 0:ta.data)==null?void 0:xa.map(Ua=>$e(En({},Ua),{id:Math.random()})))}})}(0,b.useEffect)(()=>{var An,ia;(ia=(An=ce==null?void 0:ce.userInfo)==null?void 0:An.course)!=null&&ia.course_school_id&&sn()},[(Aa=(tn=ce==null?void 0:ce.userInfo)==null?void 0:tn.course)==null?void 0:Aa.course_school_id]);function sn(){return dt(this,null,function*(){var An,ia;const Zn=yield(0,ne.ZP)(`/api/schools/${(ia=(An=ce==null?void 0:ce.userInfo)==null?void 0:An.course)==null?void 0:ia.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Fn(Zn==null?void 0:Zn.data),(Pe||pe)&&bt()})}return console.log(Tn,Jn,"datas"),b.createElement("div",{style:{display:(ma=ce.userInfo.course)!=null&&ma.is_openengineering?"":"none"}},b.createElement("div",{className:ie.wrap},b.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",b.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),b.createElement("div",{className:ie.itemWarp},Tn==null?void 0:Tn.map((An,ia)=>b.createElement("div",{key:An.id,style:{display:"flex",alignItems:"center",marginBottom:20}},b.createElement(Le,{rz:Jn,item:An,setitem:Zn=>{Zn=En(En({},Tn==null?void 0:Tn[ia]),Zn),Tn.splice(ia,1,Zn),jt([...Tn]);let xa=[];Tn==null||Tn.map(ta=>{var la;(la=ta==null?void 0:ta.ec_point_ids)==null||la.map(Ua=>{xa.push(Ua)})}),Lt($e(En({},Zn),{ec_point_ids:xa}))}}),b.createElement(re.Z,{className:ie.addIcon,onClick:()=>{Tn.push({id:Math.random()}),jt([...Tn])}}),ia!=0&&b.createElement(ue.Z,{className:ie.deleteIcon,onClick:()=>{Tn.splice(ia,1);let Zn=[];Tn==null||Tn.map(xa=>{var ta;(ta=xa==null?void 0:xa.ec_point_ids)==null||ta.map(la=>{Zn.push(la)})}),Lt($e(En({},Tn[ia-1]),{ec_point_ids:Zn})),jt([...Tn])}}))))))};var Yn=(0,de.connect)(({user:ce})=>({user:ce}))(on),Zt=ee(20834),On=ee(71418),_e=ee(38854),ct=ee(6848),kt=ee(43428),mt={flex_box_center:"flex_box_center___zCnVx",flex_space_between:"flex_space_between___BBiQD",flex_box_vertical_center:"flex_box_vertical_center___KzPui",flex_box_center_end:"flex_box_center_end___zJokd",flex_box_column:"flex_box_column___Grsys",moreSpan:"moreSpan___VJeLv",bg:"bg___oBBHW",title:"title___xV4Rt",bottomdiv:"bottomdiv___rPfwr",spanBtn:"spanBtn___eJxID",addQuestionBtn:"addQuestionBtn___RPRiP",saveBtn:"saveBtn___y9nNf",left:"left___Q3Qf4",leftAction:"leftAction___GT9yG",Button:"Button___r00OP",iconWrapper:"iconWrapper___wofW_",up:"up___a9RQm",down:"down___x6RAl",disabled:"disabled___mkEME",titleleft:"titleleft___WZ83K",more_style:"more_style___ZXYnN",qcount:"qcount___o6F1k",score:"score___Gy6jr",qtitle:"qtitle___KF7pa",qcountclick:"qcountclick___kvoyc",right:"right___Nfa70",edit:"edit___RVRSb",delete:"delete___J9BAT",yuanti:"yuanti___ljq8l",tianjia:"tianjia___s7Zu2",shixun:"shixun___YkjdZ",scoreByBlankRadio:"scoreByBlankRadio___QYQY5",modalconfirm:"modalconfirm___dmWFe",scoremodal:"scoremodal___CDA7w",close:"close___jdUWv",content:"content___HPqUf",items:"items___YkyQL",bottom:"bottom___mzpp4",yes:"yes___Xio6z",no:"no___hbicD",formcenter:"formcenter___kN8Ax",radiogroup:"radiogroup___htjtc",easy:"easy____g1mR",medium:"medium___vPAsn",hard:"hard___c6tcf",formcenterselect:"formcenterselect___B88vb",selectitems1:"selectitems1___Dzpho",selectitems:"selectitems___wUGKF",morebottom:"morebottom___F5cFQ",scoreinput:"scoreinput___S9Fbv",shake:"shake___IYp2E",titleTooltip:"titleTooltip___J0i26",exercise_styles:"exercise_styles___BJAZm"},It=ee(955),ut=ee(8797),at=ee(67248),Ie=ee(78113),fe=ee(85149),qe=ee(59301),At=Object.defineProperty,Oe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,ht=(ce,pe,Pe)=>pe in ce?At(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Sn=(ce,pe)=>{for(var Pe in pe||(pe={}))tt.call(pe,Pe)&&ht(ce,Pe,pe[Pe]);if(Ct)for(var Pe of Ct(pe))ke.call(pe,Pe)&&ht(ce,Pe,pe[Pe]);return ce},rn=(ce,pe)=>Oe(ce,Ne(pe)),an=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),cn=({Itemid:ce,setqitem:pe,qitem:Pe,data:Lt,getdata:tn,bigitem:Aa,setBigqitem:ma,isedit:Tn,handleEditing:jt})=>{const[Jn,Fn]=(0,b.useState)([]),[bt,sn]=(0,b.useState)(!1),An=(Zn,xa,ta)=>{const la=Array.from(Zn),[Ua]=la.splice(xa,1);return la.splice(ta,0,Ua),la};(0,b.useEffect)(()=>{Lt.length>0&&Fn([...Lt])},[Lt]);const ia=(Zn,xa)=>an(void 0,null,function*(){if(!Zn.destination)return;if(Tn){jt();return}const ta=An(xa,Zn.source.index,Zn.destination.index);sn(!0);let la=yield(0,ne.ZP)(`/api/exercises/${ce}/adjust_position.json`,{method:"post",body:{id:ce,question_ids:ta==null?void 0:ta.map(Ua=>Ua.question_id)}});sn(!1),la.status===0&&tn({id:xa==null?void 0:xa[Zn.source.index].question_id})});return qe.createElement("div",null,qe.createElement(Ie.Z5,{onDragEnd:Zn=>ia(Zn,Jn)},qe.createElement(Ie.bK,{droppableId:"droppable"},(Zn,xa)=>qe.createElement("div",Sn({ref:Zn.innerRef},Zn.droppableProps),qe.createElement(On.Z,{spinning:bt},Jn.map((ta,la)=>qe.createElement(Ie._l,{key:la,draggableId:la.toString(),index:la},(Ua,bn)=>{var Ca,Ha;return qe.createElement("aside",Sn(Sn({ref:Ua.innerRef},Ua.draggableProps),Ua.dragHandleProps),qe.createElement(ct.Z,{title:qe.createElement(fe.Z,{value:(ta==null?void 0:ta.question_type)===8?(Ca=ta==null?void 0:ta.program_attr)==null?void 0:Ca.description:ta.question_title}),color:"#fff",placement:"left",overlayClassName:mt.titleTooltip},qe.createElement("div",{onClick:()=>{if(Tn){jt();return}pe(rn(Sn({},ta),{index:la+1})),ma(Aa),(0,It.Vf)("#question-scroll-id")},className:`${mt.qcount} ${ta.question_id===(Pe==null?void 0:Pe.question_id)?mt.qcountclick:""}`},qe.createElement("span",{className:mt.score},ta==null?void 0:ta.question_score,"\u5206"),qe.createElement("span",{className:mt.qtitle},la+1,"\u3001",qe.createElement(fe.Z,{value:(ta==null?void 0:ta.question_type)===8?(Ha=ta==null?void 0:ta.program_attr)==null?void 0:Ha.description:ta.question_title,showTextOnly:!0})))))}))),Zn.placeholder))))},Te=ee(95237),Ft=ee(65357),zt=ee(78673),wt=ee(61485),Rt=ee(87198),un=ee(59301),dn=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),Vn=({form:ce,TagDiscipline:pe,exerciseitem:Pe,qitem:Lt,getTagData:tn})=>{var Aa;const[ma,Tn]=(0,b.useState)(!0),[jt,Jn]=(0,b.useState)(!1),[Fn,bt]=(0,b.useState)(""),[sn,An]=(0,b.useState)([]),[ia,Zn]=(0,b.useState)([]),[xa,ta]=(0,b.useState)(0);(0,b.useEffect)(()=>{Ua()},[]);const la=bn=>dn(void 0,null,function*(){const Ca=yield(0,ne.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:bn==null?void 0:bn.sub_discipline_id}});Zn(Ca==null?void 0:Ca.tag_disciplines)}),Ua=()=>dn(void 0,null,function*(){const bn=yield(0,ne.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});An(bn.disciplines||[]),Lt!=null&&Lt.sub_discipline_id&&la(Lt),ta(Lt!=null&&Lt.sub_discipline_id?1:0),ce.setFieldsValue({difficulty:Lt.difficulty||2,tag_discipline_ids:Lt.tag_discipline_ids,repeat_answer:!Lt.repeat_answer,sub_discipline_id:Lt!=null&&Lt.sub_discipline_id?[Lt==null?void 0:Lt.discipline_id,Lt==null?void 0:Lt.sub_discipline_id]:[]})});return un.createElement("div",null,un.createElement("div",{style:{marginTop:30,height:ma?"100%":"0px",overflow:"hidden"}},un.createElement(Be.default.Item,{className:mt.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},un.createElement(et.ZP.Group,{className:mt.radiogroup},un.createElement(et.ZP.Button,{className:mt.easy,value:1},"\u7B80\u5355"),un.createElement(et.ZP.Button,{className:mt.medium,value:2},"\u9002\u4E2D"),un.createElement(et.ZP.Button,{className:mt.hard,value:3},"\u56F0\u96BE"))),un.createElement(Be.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:mt.formcenterselect},un.createElement(le.Z,{className:mt.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:sn,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(bn,Ca)=>{ce.setFieldsValue({sub_discipline_id:bn,tag_discipline_ids:[]}),ta(bn?bn.length:0),(bn==null?void 0:bn.length)>0&&(la({sub_discipline_id:bn[1]}),bn[1]==(Lt==null?void 0:Lt.sub_discipline_id)&&ce.setFieldValue("tag_discipline_ids",Lt.tag_discipline_ids))},onClear:()=>{Zn([]),ce.setFieldValue("tag_discipline_ids",[]),ta(0)}})),un.createElement(Be.default.Item,{className:mt.formcenterselect},un.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},un.createElement(Be.default.Item,{name:"tag_discipline_ids"},un.createElement(ve.default,{className:mt.selectitems,disabled:xa===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(bn,Ca)=>Ca.key.indexOf(bn.toLowerCase())>=0},ia==null?void 0:ia.map(bn=>un.createElement(ve.default.Option,{key:bn.name+bn.id,value:bn.id},un.createElement("div",{style:{display:"flex",alignItems:"center"}},un.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},bn.name),(bn==null?void 0:bn.type)==="personal"&&un.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),xa>0&&un.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},un.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),un.createElement("a",{onClick:()=>{Jn(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),un.createElement(Be.default.Item,{className:mt.formcenterselect},un.createElement("div",{style:{display:"flex",alignItems:"center"}},un.createElement(Be.default.Item,{name:"repeat_answer",valuePropName:"checked"},un.createElement(zt.Z,null)),un.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"48px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",un.createElement(ct.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},un.createElement(wt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),un.createElement(Rt.Z,{open:jt,subDisciplineId:(Aa=ce.getFieldValue("sub_discipline_id"))==null?void 0:Aa[1],onCancel:()=>{Jn(!1)},onOkClick:bn=>{Zn(Ca=>[...Ca,bn]),ce.setFieldValue("tag_discipline_ids",[...ce.getFieldValue("tag_discipline_ids"),bn==null?void 0:bn.id])}}))},va=ee(59301),La=Object.defineProperty,Na=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,Xt=(ce,pe,Pe)=>pe in ce?La(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,jn=(ce,pe)=>{for(var Pe in pe||(pe={}))Ea.call(pe,Pe)&&Xt(ce,Pe,pe[Pe]);if(Ka)for(var Pe of Ka(pe))yr.call(pe,Pe)&&Xt(ce,Pe,pe[Pe]);return ce},Qn=(ce,pe)=>Na(ce,rr(pe)),Ia=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),Ot=({qitem:ce,setisedit:pe,TagDiscipline:Pe,exerciseitem:Lt,seveeditor:tn,deleteitem:Aa,getTagData:ma,init:Tn,showTip:jt=!1})=>{var Jn;const[Fn]=Be.default.useForm();(0,b.useEffect)(()=>{var sn;Fn.setFieldsValue(Qn(jn({},ce),{name:ce==null?void 0:ce.question_title,choices:(sn=ce==null?void 0:ce.question_choices)==null?void 0:sn.map(An=>Qn(jn({},An),{standard_boolean:An!=null&&An.standard_boolean?1:0})),repeat_answer:!(ce!=null&&ce.repeat_answer)}))},[ce]);const bt=sn=>{if(!(sn!=null&&sn.length))return!1;const An=sn.map(Zn=>{var xa;return(xa=Zn.choice_text)==null?void 0:xa.trim().replace(/^\s+|\s+$/g,"")});return new Set(An).size!==An.length};return va.createElement("div",null,va.createElement(Be.default,{form:Fn,colon:!1,onFinish:sn=>{var An,ia,Zn,xa,ta;if(bt(sn.choices)){Ae.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let la=(ia=(An=sn==null?void 0:sn.choices)==null?void 0:An.map)==null?void 0:ia.call(An,(bn,Ca)=>{if((bn==null?void 0:bn.standard_boolean)===1)return Ca+1}),Ua=Qn(jn({},sn),{item_type:ce==null?void 0:ce.question_type,question_choices:(xa=(Zn=sn==null?void 0:sn.choices)==null?void 0:Zn.map)==null?void 0:xa.call(Zn,bn=>bn.choice_text),standard_answers:la.filter(bn=>bn),choices:(ta=sn==null?void 0:sn.choices)==null?void 0:ta.map(bn=>Qn(jn({},bn),{is_answer:bn.standard_boolean}))});tn(jn(jn({},ce),Ua))},onFinishFailed:sn=>Ia(void 0,null,function*(){var An,ia;Ae.ZP.error(sn.errorFields[0].errors[0]),Fn.scrollToField((ia=(An=sn==null?void 0:sn.errorFields)==null?void 0:An[0])==null?void 0:ia.name,{behavior:"smooth",block:"center"})})},va.createElement("div",{style:{display:"flex",alignItems:"center"}},va.createElement("div",{style:{flex:1}},va.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),va.createElement("span",null,(ce==null?void 0:ce.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((Jn=Lt==null?void 0:Lt.exercise)==null?void 0:Jn.exercise_status)==1&&!(ce!=null&&ce.isadd)&&va.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Aa()}},va.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),va.createElement(We.ZP,{onClick:()=>{var sn;ce.isadd?(pe(!1),Tn()):(Fn.setFieldsValue(Qn(jn({},ce),{name:ce==null?void 0:ce.question_title,choices:(sn=ce==null?void 0:ce.question_choices)==null?void 0:sn.map(An=>Qn(jn({},An),{standard_boolean:An!=null&&An.standard_boolean?1:0})),repeat_answer:!(ce!=null&&ce.repeat_answer)})),pe(!1))}},"\u53D6\u6D88"),va.createElement(ct.Z,{overlayClassName:mt.shake,open:jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:va.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},va.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},va.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>Ia(void 0,null,function*(){Fn.submit()})},"\u4FDD\u5B58"))),va.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},va.createElement(Te.Z,{align:"middle"},va.createElement(Be.default.Item,{className:mt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},va.createElement(Ve.Z,{onBlur:sn=>{sn.target.value==="0"&&Ae.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),va.createElement(Ft.u,{form:Fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"question_title",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),va.createElement(Vn,{getTagData:ma,qitem:ce,exerciseitem:Lt,TagDiscipline:Pe,form:Fn}))))},_t=ee(70472),Vt=ee(27693),Wt=ee(59301),Nn=Object.defineProperty,Bn=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Hn=(ce,pe,Pe)=>pe in ce?Nn(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,In=(ce,pe)=>{for(var Pe in pe||(pe={}))pt.call(pe,Pe)&&Hn(ce,Pe,pe[Pe]);if(Bt)for(var Pe of Bt(pe))vn.call(pe,Pe)&&Hn(ce,Pe,pe[Pe]);return ce},Ta=(ce,pe)=>Bn(ce,vt(pe)),Pa=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),ya=({qitem:ce,TagDiscipline:pe,exerciseitem:Pe,setisedit:Lt,seveeditor:tn,deleteitem:Aa,getTagData:ma,init:Tn,showTip:jt=!1})=>{var Jn;const[Fn]=Be.default.useForm(),bt=Be.default.useWatch("use_blank_score",Fn);return(0,b.useEffect)(()=>{Fn.setFieldsValue(Ta(In({},ce),{standard_answers:ce.standard_answers||[],name:ce.question_title,repeat_answer:!ce.repeat_answer}))},[ce]),Wt.createElement("div",null,Wt.createElement(Be.default,{form:Fn,colon:!1,onValuesChange:(sn,An)=>{var ia,Zn,xa,ta;if(sn!=null&&sn.standard_answers||sn!=null&&sn.use_blank_score){let la=((ia=Fn.getFieldValue("standard_answers"))==null?void 0:ia.length)>0&&((xa=(Zn=Fn.getFieldValue("standard_answers"))==null?void 0:Zn.map(Ua=>Ua.score))==null?void 0:xa.filter(Ua=>Ua));(la==null?void 0:la.length)>0&&Fn.setFieldsValue({question_score:(la==null?void 0:la.length)>0&&((ta=la.reduce((Ua,bn)=>Ua+bn))==null?void 0:ta.toFixed(1))})}},onFinish:sn=>{tn(Ta(In(In({},ce),sn),{item_type:ce==null?void 0:ce.question_type,standard_answers:sn.standard_answers,question_title:sn.name}))},onFinishFailed:sn=>Pa(void 0,null,function*(){var An,ia;sn.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,It.pE)(),Ae.ZP.error(sn.errorFields[0].errors[0]),Fn.scrollToField((ia=(An=sn==null?void 0:sn.errorFields)==null?void 0:An[0])==null?void 0:ia.name,{behavior:"smooth",block:"center"})})},Wt.createElement("div",{style:{display:"flex",alignItems:"center"}},Wt.createElement("div",{style:{flex:1}},Wt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wt.createElement("span",null,"\u586B\u7A7A\u9898")),((Jn=Pe==null?void 0:Pe.exercise)==null?void 0:Jn.exercise_status)==1&&!(ce!=null&&ce.isadd)&&Wt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Aa()}},Wt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wt.createElement(We.ZP,{onClick:()=>{ce.isadd?(Lt(!1),Tn()):(Fn.setFieldsValue(Ta(In({},ce),{standard_answers:ce.standard_answers||[],name:ce.question_title,repeat_answer:!ce.repeat_answer})),Lt(!1))}},"\u53D6\u6D88"),Wt.createElement(ct.Z,{overlayClassName:mt.shake,open:jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wt.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Wt.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{Fn.submit()}},"\u4FDD\u5B58"))),Wt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wt.createElement(Te.Z,{align:"middle"},bt?Wt.createElement(Vt.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Wt.createElement(Be.default.Item,{key:2,className:mt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Wt.createElement(Ve.Z,{onBlur:sn=>{sn.target.value==="0"&&Ae.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),Wt.createElement(Be.default.Item,{name:"use_blank_score",noStyle:!0},Wt.createElement(et.ZP.Group,{className:mt.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Wt.createElement(ct.Z,{overlayInnerStyle:{width:460},title:Wt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Wt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Wt.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Wt.createElement(_t.u,{form:Fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:bt,answerKey:"standard_answers"}),Wt.createElement(Vn,{getTagData:ma,qitem:ce,exerciseitem:Pe,TagDiscipline:pe,form:Fn}))))},ba=ee(11832),wn=ee(59301),mr=Object.defineProperty,Er=Object.defineProperties,Jr=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,qt=(ce,pe,Pe)=>pe in ce?mr(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Dn=(ce,pe)=>{for(var Pe in pe||(pe={}))Qe.call(pe,Pe)&&qt(ce,Pe,pe[Pe]);if(pr)for(var Pe of pr(pe))Pn.call(pe,Pe)&&qt(ce,Pe,pe[Pe]);return ce},Gn=(ce,pe)=>Er(ce,Jr(pe)),ra=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),$n=({qitem:ce,setisedit:pe,TagDiscipline:Pe,exerciseitem:Lt,seveeditor:tn,deleteitem:Aa,getTagData:ma,init:Tn,showTip:jt=!1})=>{var Jn;const[Fn]=Be.default.useForm();return(0,b.useEffect)(()=>{var bt;Fn.setFieldsValue(Gn(Dn({},ce),{name:ce.question_title,repeat_answer:!ce.repeat_answer,choices:(bt=ce==null?void 0:ce.question_choices)==null?void 0:bt.map(sn=>Gn(Dn({},sn),{is_answer:sn!=null&&sn.standard_boolean?1:0}))}))},[ce]),wn.createElement("div",null,wn.createElement(Be.default,{form:Fn,colon:!1,onFinish:bt=>{var sn,An,ia,Zn;let xa=(An=(sn=bt==null?void 0:bt.choices)==null?void 0:sn.map)==null?void 0:An.call(sn,(ta,la)=>{if((ta==null?void 0:ta.is_answer)===1)return la+1});tn(Gn(Dn(Dn({},ce),bt),{question_title:bt.name,standard_answers:xa.filter(ta=>ta),question_choices:(Zn=(ia=bt==null?void 0:bt.choices)==null?void 0:ia.map)==null?void 0:Zn.call(ia,ta=>ta.choice_text)}))},onFinishFailed:bt=>ra(void 0,null,function*(){var sn,An;Ae.ZP.error(bt.errorFields[0].errors[0]),Fn.scrollToField((An=(sn=bt==null?void 0:bt.errorFields)==null?void 0:sn[0])==null?void 0:An.name,{behavior:"smooth",block:"center"})})},wn.createElement("div",{style:{display:"flex",alignItems:"center"}},wn.createElement("div",{style:{flex:1}},wn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),wn.createElement("span",null,"\u5224\u65AD\u9898")),((Jn=Lt==null?void 0:Lt.exercise)==null?void 0:Jn.exercise_status)==1&&!(ce!=null&&ce.isadd)&&wn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Aa()}},wn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),wn.createElement(We.ZP,{onClick:()=>{var bt;ce.isadd?(pe(!1),Tn()):(Fn.setFieldsValue(Gn(Dn({},ce),{name:ce.question_title,repeat_answer:!ce.repeat_answer,choices:(bt=ce==null?void 0:ce.question_choices)==null?void 0:bt.map(sn=>Gn(Dn({},sn),{is_answer:sn!=null&&sn.standard_boolean?1:0}))})),pe(!1))}},"\u53D6\u6D88"),wn.createElement(ct.Z,{overlayClassName:mt.shake,open:jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:wn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},wn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},wn.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{Fn.submit()}},"\u4FDD\u5B58"))),wn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},wn.createElement(Be.default.Item,{className:mt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},wn.createElement(Ve.Z,{onBlur:bt=>{bt.target.value==="0"&&Ae.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),wn.createElement(ba.Z,{form:Fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),wn.createElement(Vn,{getTagData:ma,qitem:ce,exerciseitem:Lt,TagDiscipline:Pe,form:Fn}))))},sr=ee(36381),sa={wrap:"wrap___m6v_p",deleteIcon:"deleteIcon___hdYRw",keywordTag:"keywordTag___BLtdn",questionTitleEditorWrap:"questionTitleEditorWrap___fdaK7",choiceWrap:"choiceWrap___wkyUO",choiceIndex:"choiceIndex___tExMq",judgementIndex:"judgementIndex___RMhzJ",setAnswerBtn:"setAnswerBtn___bisIK",activeAnswer:"activeAnswer___MnyyC",activeJudgementAnswer:"activeJudgementAnswer___grGX5",actionWrapper:"actionWrapper___LUawU",addIcon:"addIcon___ckXqe",inputBorder:"inputBorder___nuo0O",placeholder:"placeholder___Dhdir",blankWrapper:"blankWrapper___cnidV",blankInput:"blankInput___iZ5BF",blankInputNumberWrapper:"blankInputNumberWrapper___zlXQc",addBtn:"addBtn___OdgAm",blankIndex:"blankIndex___g4Y7d",baseInputWrapper:"baseInputWrapper___DCOHd",collapseWrapper:"collapseWrapper___SyLrk",panelHeader:"panelHeader___E0il1",open:"open___IFH3V",close:"close___YpIA9",hide:"hide___Nl1W6",scoreByBlankRadio:"scoreByBlankRadio___jpG4i"},Cn=ee(12290),dr=Object.defineProperty,Nr=Object.defineProperties,Zr=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,ha=Object.prototype.hasOwnProperty,za=Object.prototype.propertyIsEnumerable,or=(ce,pe,Pe)=>pe in ce?dr(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Fa=(ce,pe)=>{for(var Pe in pe||(pe={}))ha.call(pe,Pe)&&or(ce,Pe,pe[Pe]);if(Ir)for(var Pe of Ir(pe))za.call(pe,Pe)&&or(ce,Pe,pe[Pe]);return ce},xr=(ce,pe)=>Nr(ce,Zr(pe)),qr=(ce,pe)=>{var Pe={};for(var Lt in ce)ha.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&Ir)for(var Lt of Ir(ce))pe.indexOf(Lt)<0&&za.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe};const Fr=ce=>{var pe=ce,{value:Pe,onChange:Lt,scrollId:tn}=pe,Aa=qr(pe,["value","onChange","scrollId"]);return b.createElement("div",{id:tn||""},b.createElement(Cn.Z,xr(Fa({},Aa),{defaultValue:Pe,onChange:(ma,Tn)=>{console.log("a:",ma,Tn),Tn!=null&&Tn.length?Lt(ma,Tn):Lt(ma)}})))},io=({value:ce,onChange:pe,placeholder:Pe,height:Lt=140,isEdit:tn})=>tn?b.createElement(Cn.Z,{watch:!0,isFocus:!0,height:Lt,placeholder:Pe,defaultValue:ce,onChange:pe}):b.createElement("div",{style:{cursor:"pointer"}},ce?b.createElement(fe.Z,{className:sa.inputBorder,value:ce}):b.createElement("div",{className:`${sa.inputBorder} ${sa.placeholder}`},Pe));var lr=ee(43604),ko=Object.defineProperty,ui=Object.defineProperties,pi=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,Yo=Object.prototype.propertyIsEnumerable,Fo=(ce,pe,Pe)=>pe in ce?ko(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Ao=(ce,pe)=>{for(var Pe in pe||(pe={}))Eo.call(pe,Pe)&&Fo(ce,Pe,pe[Pe]);if(yo)for(var Pe of yo(pe))Yo.call(pe,Pe)&&Fo(ce,Pe,pe[Pe]);return ce},eo=(ce,pe)=>ui(ce,pi(pe)),Pr=(ce,pe)=>{var Pe={};for(var Lt in ce)Eo.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&yo)for(var Lt of yo(ce))pe.indexOf(Lt)<0&&Yo.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe};const To=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vi=({value:ce,onChange:pe,choiceTextKey:Pe,answerKey:Lt,index:tn,isEdit:Aa,setInputActive:ma,form:Tn,choiceOptionsPath:jt,allowChangeMode:Jn,showAddIcon:Fn,addItem:bt,deleteItem:sn})=>{const An=(ce==null?void 0:ce[Lt])===1,ia=()=>{const xa=Tn.getFieldValue(jt);Tn.setFieldValue(jt,xa.map(ta=>eo(Ao({},ta),{[Lt]:0})))},Zn=()=>{An?pe(eo(Ao({},ce),{[Lt]:0})):(Jn||ia(),pe(eo(Ao({},ce),{[Lt]:1})))};return b.createElement(Te.Z,{className:sa.choiceWrap,align:"middle",wrap:!1},b.createElement(lr.Z,{onClick:Zn,className:`${sa.choiceIndex} ${An?sa.activeAnswer:""}`},To[tn]),b.createElement(lr.Z,{flex:1,className:`${sa.editorWrap} ml15`,onClick:ma},b.createElement(io,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Aa,value:ce==null?void 0:ce[Pe],onChange:xa=>{pe(eo(Ao({},ce),{[Pe]:xa}))}})),b.createElement(lr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Zn,className:`${sa.setAnswerBtn} ${An?sa.activeAnswer:""}`},An?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(lr.Z,{className:sa.actionWrapper},b.createElement(ct.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(re.Z,{className:sa.addIcon,onClick:bt,style:{visibility:Fn?"visible":"hidden"}})),b.createElement(ct.Z,{title:"\u5220\u9664"},b.createElement(ue.Z,{className:sa.deleteIcon,onClick:sn,style:{visibility:tn>1?"visible":"hidden"}}))))},Oo=({questionTitlePlaceholder:ce,titleKey:pe,choiceKey:Pe,analysisKey:Lt,choiceTextKey:tn,answerKey:Aa,choiceOptionsPath:ma,allowChangeMode:Tn=!0,form:jt,showAnalysis:Jn=!0})=>{const[Fn,bt]=(0,b.useState)(),[sn,An]=(0,b.useState)(!1);return b.createElement("div",{className:sa.wrap},b.createElement("div",{className:sa.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:pe,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Fr,{scrollId:Array.isArray(pe)?pe.join("_"):`${pe}`,watch:!0,height:140,placeholder:ce}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(Be.default.List,{name:Pe,rules:[{validator(ia,Zn){const xa=Zn.some(la=>la[Aa]===1),ta=Zn.findIndex(la=>{var Ua;return((Ua=la[tn])==null?void 0:Ua.length)<=0});return ta!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${To[ta]}\u9009\u9879\u7684\u5185\u5BB9`)):xa?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ia,{add:Zn,remove:xa})=>b.createElement("div",{id:Array.isArray(ma)?ma.join("_"):`${ma}`},ia.map((ta,la)=>{var Ua=ta,{key:bn,name:Ca}=Ua,Ha=Pr(Ua,["key","name"]);const Yr=Fn===bn,cr=()=>{bt(bn)},ii=la<7&&la===ia.length-1,Za=()=>Zn({[tn]:"",[Aa]:0}),bo=()=>xa(Ca);return b.createElement(Be.default.Item,eo(Ao({},Ha),{key:bn,name:Ca,noStyle:!0}),b.createElement(vi,{choiceTextKey:tn,answerKey:Aa,index:la,isEdit:Yr,setInputActive:cr,form:jt,choiceOptionsPath:ma,allowChangeMode:Tn,showAddIcon:ii,addItem:Za,deleteItem:bo}))}),ia.length<8&&b.createElement("div",{className:`${sa.addBtn} mb30`,onClick:()=>Zn({[tn]:"",[Aa]:0})},"\u6DFB\u52A0\u9009\u9879"))),Jn&&b.createElement("div",{onClick:()=>An(!0)},b.createElement(Be.default.Item,{name:Lt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(io,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:sn}))))};var br=ee(59301),ai=Object.defineProperty,zr=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,si=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,Qi=(ce,pe,Pe)=>pe in ce?ai(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,tl=(ce,pe)=>{for(var Pe in pe||(pe={}))si.call(pe,Pe)&&Qi(ce,Pe,pe[Pe]);if(ao)for(var Pe of ao(pe))hi.call(pe,Pe)&&Qi(ce,Pe,pe[Pe]);return ce},nl=(ce,pe)=>zr(ce,Lo(pe)),Uo=(ce,pe)=>{var Pe={};for(var Lt in ce)si.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&ao)for(var Lt of ao(ce))pe.indexOf(Lt)<0&&hi.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe};const Bi=({value:ce,onChange:pe})=>{const Pe=tn=>{Ye.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:sa.modal,onOk:()=>{const Aa=[...ce];Aa.splice(tn,1),pe(Aa)}})},Lt=()=>{const tn=[...ce];tn.push(""),pe(tn)};return br.createElement(Te.Z,{className:"ml20"},br.createElement(lr.Z,{flex:1},ce==null?void 0:ce.map((tn,Aa)=>br.createElement(Te.Z,{key:`${tn}_${Aa}`,align:"middle",className:"mb20"},br.createElement(Me.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:tn,autoSize:{maxRows:3},maxLength:1e3,onBlur:ma=>{const Tn=[...ce],jt=ma.target.value.trim();Tn[Aa]=jt,pe(Tn)}}),br.createElement(ct.Z,{title:"\u5220\u9664"},br.createElement(ue.Z,{className:sa.deleteIcon,style:{marginLeft:15,visibility:Aa>0?"visible":"hidden"},onClick:()=>Pe(Aa)}))))),br.createElement(lr.Z,null,br.createElement("div",{className:`${sa.addBtn}`,onClick:()=>{Lt()}},"\u65B0\u589E\u7B54\u6848")))},gl=({value:ce=!0,onChange:pe})=>br.createElement(zt.Z,{checked:!ce,onChange:Pe=>{pe(!Pe)}}),ji="\u2581",cl=({questionTitlePlaceholder:ce,form:pe,name:Pe,scoreByBlank:Lt,answerKey:tn,titleKey:Aa="name",analysisKey:ma="analysis",isOrdered:Tn="is_ordered"})=>{var jt,Jn;const[Fn,bt]=(0,b.useState)(!1),sn=(bn,Ca)=>{const Ha=Ca.line;let Yr=0;for(let ii=0;ii<Ha;ii++)Yr+=bn.getLine(ii).split(ji).length-1;const cr=bn.getLine(Ha).substring(0,Ca.ch);return Yr+=cr.split(ji).length-1,Yr},An=(bn,Ca,Ha,Yr)=>{const cr=bn.getRange(Ca.from,Ca.to);let ii=0;if(Ca.text.forEach(Za=>{ii+=Za.split(ji).length-1}),Ca.origin!=="setValue"){if(cr&&cr.indexOf(ji)!==-1){const Za=cr.split(ji).length-1,bo=sn(bn,Ca.from);if(console.log(`\u5220\u9664${Za}\u4E2A\uFF0C \u524D\u9762\u6709${bo}\u4E2A\uFF0C\u65B0\u589E${ii}\u4E2A`),Za>1){const Cr=Array.from({length:Za},(to,So)=>bo+So);Yr(Cr)}else Yr(bo)}else if(ii>0){const Za=sn(bn,Ca.from);console.log(`\u65B0\u589E${ii}\u4E2A\uFF0C\u4E4B\u524D\u6709${Za}\u4E2A`),Ha(ii,Za)}}},ia=()=>{const bn=pe.getFieldValue(["sub_item_banks",...tn]);pe.setFieldValue(["sub_item_banks",...tn],bn==null?void 0:bn.map((Ca,Ha)=>nl(tl({},Ca),{position:Ha+1})))},Zn=(0,b.useRef)(),xa=(bn,Ca)=>{for(let Ha=0;Ha<bn;Ha++)Zn.current({position:null,answer_text:[""]},Ca+Ha);ia()},ta=(0,b.useRef)(),la=bn=>{ta.current(bn),ia()},Ua=(Jn=(jt=pe.getFieldValue("sub_item_banks"))==null?void 0:jt[tn==null?void 0:tn[0]])==null?void 0:Jn[tn==null?void 0:tn[1]];return console.log(pe==null?void 0:pe.getFieldValue(["sub_item_banks",...Lt])),br.createElement("div",{className:sa.wrap},br.createElement("div",{className:sa.questionTitleEditorWrap},br.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Aa,labelCol:{span:24},rules:[{required:!0}]},br.createElement(Fr,{scrollId:"name",watch:!0,height:140,placeholder:ce,showNullButton:!0,onCMBeforeChange:(bn,Ca)=>{An(bn,Ca,xa,la)}}))),br.createElement(Be.default.List,{name:tn,rules:[{validator(bn,Ca){if((Ca==null?void 0:Ca.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ha of Ca){const{answer_text:Yr}=Ha||{};if(Yr!=null&&Yr.some(cr=>(cr==null?void 0:cr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(bn,{add:Ca,remove:Ha},{errors:Yr})=>(Zn.current=Ca,ta.current=Ha,br.createElement(br.Fragment,null,br.createElement(Be.default.Item,{label:br.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(bn!=null&&bn.length)&&br.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),bn.map((cr,ii)=>{var Za=cr,{key:bo,name:Cr}=Za,to=Uo(Za,["key","name"]);return br.createElement(Te.Z,{className:"mb20",key:bo,align:"top"},br.createElement(lr.Z,{flex:"0 0 auto",className:`${sa.blankIndex} pt5`},"\u586B\u7A7A\u9879",ii+1),br.createElement(lr.Z,{flex:1},br.createElement(Te.Z,{align:"top",justify:"space-between"},br.createElement(lr.Z,{flex:1},br.createElement(Be.default.Item,nl(tl({},to),{name:[Cr,"answer_text"],noStyle:!0}),br.createElement(Bi,null))),(pe==null?void 0:pe.getFieldValue(["sub_item_banks",...Lt]))&&br.createElement(lr.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},br.createElement(Be.default.Item,nl(tl({},to),{name:[Cr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:sa.blankInputNumberWrapper}),br.createElement(Ve.Z,{onChange:()=>{var So,Ei;let mi=pe==null?void 0:pe.getFieldValue(["sub_item_banks",tn==null?void 0:tn[0],"standard_answers"]),hr=0;for(let po in mi)(So=mi[po])!=null&&So.score&&(hr+=Number((Ei=mi[po])==null?void 0:Ei.score));pe==null||pe.setFieldValue(["sub_item_banks",tn==null?void 0:tn[0],"question_score"],hr)},className:sa.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),br.createElement(Be.default.Item,nl(tl({},to),{name:[Cr,"position"],noStyle:!0}),br.createElement(Me.default,{type:"hidden"}))))})))),br.createElement(Te.Z,{align:"middle"},br.createElement(Be.default.Item,{name:[Pe,"downcase"],valuePropName:"checked"},br.createElement(zt.Z,null)),br.createElement(lr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),br.createElement(Te.Z,{align:"middle"},br.createElement(Be.default.Item,{name:[Pe,"no_space"],valuePropName:"checked"},br.createElement(zt.Z,null)),br.createElement(lr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ua==null?void 0:Ua.length)>1&&br.createElement(Te.Z,{align:"middle",className:(Ua==null?void 0:Ua.length)>1?"mb30":`${sa.hide}`},br.createElement(Be.default.Item,{name:Tn},br.createElement(gl,null)),br.createElement(lr.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),br.createElement("div",{onClick:()=>bt(!0)},br.createElement(Be.default.Item,{name:ma,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},br.createElement(io,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Fn}))))};var Cl=Object.defineProperty,Tr=Object.defineProperties,Va=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,Ya=Object.prototype.hasOwnProperty,so=Object.prototype.propertyIsEnumerable,Zo=(ce,pe,Pe)=>pe in ce?Cl(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,we=(ce,pe)=>{for(var Pe in pe||(pe={}))Ya.call(pe,Pe)&&Zo(ce,Pe,pe[Pe]);if(ja)for(var Pe of ja(pe))so.call(pe,Pe)&&Zo(ce,Pe,pe[Pe]);return ce},fn=(ce,pe)=>Tr(ce,Va(pe)),Wn=(ce,pe)=>{var Pe={};for(var Lt in ce)Ya.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&ja)for(var Lt of ja(ce))pe.indexOf(Lt)<0&&so.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe};const fa={\u6B63\u786E:"T",\u9519\u8BEF:"F"},yn=({value:ce,onChange:pe,form:Pe,choiceKey:Lt})=>{const tn=(ce==null?void 0:ce.is_answer)===1,Aa=ce==null?void 0:ce.choice_text,ma=()=>{var Tn;const jt=(Tn=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",...Lt]))==null?void 0:Tn.map(Jn=>({choice_text:Jn.choice_text,is_answer:0}));Pe==null||Pe.setFieldValue(["sub_item_banks",...Lt],jt),pe(fn(we({},ce),{is_answer:1}))};return b.createElement(Te.Z,{className:sa.choiceWrap,align:"middle",wrap:!1},b.createElement(lr.Z,{onClick:ma,className:`${sa.choiceIndex} ${sa.judgementIndex} ${tn?sa.activeAnswer:""}`},fa[Aa]),b.createElement(lr.Z,{flex:1,className:`${sa.editorWrap} ml15`},b.createElement("div",{className:`${sa.inputBorder} ${sa.placeholder} ${tn?sa.activeJudgementAnswer:""}`},Aa)),b.createElement(lr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:ma,className:`${sa.setAnswerBtn} ${tn?sa.activeAnswer:""}`},tn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},wa=({questionTitlePlaceholder:ce,choiceKey:pe="choices",form:Pe,titleKey:Lt="name",analysisKey:tn="analysis"})=>{const[Aa,ma]=(0,b.useState)(!1);return b.createElement("div",{className:sa.wrap},b.createElement("div",{className:sa.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Lt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Fr,{scrollId:"name",watch:!0,height:140,placeholder:ce}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Be.default.List,{name:pe,rules:[{validator(Tn,jt){return jt.some(Fn=>(Fn==null?void 0:Fn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Tn=>b.createElement("div",{id:"choices"},Tn.map(jt=>{var Jn=jt,{key:Fn,name:bt}=Jn,sn=Wn(Jn,["key","name"]);return b.createElement(Be.default.Item,fn(we({},sn),{key:Fn,name:bt,noStyle:!0}),b.createElement(yn,{form:Pe,choiceKey:pe}))})))),b.createElement("div",{onClick:()=>ma(!0)},b.createElement(Be.default.Item,{name:tn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(io,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Aa}))))};var na=ee(12563),Un=Object.defineProperty,pa=Object.defineProperties,Sa=Object.getOwnPropertyDescriptors,Wa=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,_o=(ce,pe,Pe)=>pe in ce?Un(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,co=(ce,pe)=>{for(var Pe in pe||(pe={}))ur.call(pe,Pe)&&_o(ce,Pe,pe[Pe]);if(Wa)for(var Pe of Wa(pe))$a.call(pe,Pe)&&_o(ce,Pe,pe[Pe]);return ce},Vo=(ce,pe)=>pa(ce,Sa(pe)),ci=(ce,pe)=>{var Pe={};for(var Lt in ce)ur.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&Wa)for(var Lt of Wa(ce))pe.indexOf(Lt)<0&&$a.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe};const Gi=ce=>{var pe=ce,{value:Pe,onChange:Lt}=pe,tn=ci(pe,["value","onChange"]);const Aa=ma=>{Lt([ma])};return b.createElement(Cn.Z,Vo(co({},tn),{defaultValue:Pe==null?void 0:Pe[0],onChange:Aa}))},al=ce=>{if(!ce)return!1;let pe=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ce==="|"?(Ae.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Zl=({value:ce=[],onClose:pe})=>b.createElement(na.default,{closable:!0,onClose:pe,className:sa.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ce.join(" \u6216 "))),Al=({questionTitlePlaceholder:ce,form:pe,showKeywords:Pe,isMustKeyWords:Lt=Pe,titleKey:tn="name",analysisKey:Aa="analysis",answerTexts:ma="answer_texts",keywords:Tn="keywords",useKeywords:jt="use_keywords",indexs:Jn})=>{var Fn,bt,sn,An;const[ia,Zn]=(0,b.useState)(!1),[xa,ta]=(0,b.useState)(""),la=(bt=(Fn=pe.getFieldValue("sub_item_banks"))==null?void 0:Fn[jt==null?void 0:jt[0]])==null?void 0:bt[jt==null?void 0:jt[1]],Ua=(An=(sn=pe.getFieldValue("sub_item_banks"))==null?void 0:sn[jt==null?void 0:jt[0]])==null?void 0:An.question_score;return b.createElement("div",{className:sa.wrap},b.createElement("div",{className:sa.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:tn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Fr,{scrollId:"name",watch:!0,height:140,placeholder:ce}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:ma,labelCol:{span:24}},b.createElement(Gi,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Pe&&!Lt&&b.createElement(Be.default.Item,{hidden:!0,name:jt,valuePropName:"checked"},b.createElement(zt.Z,{defaultChecked:!0})),Pe&&Lt&&b.createElement(Te.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:jt,valuePropName:"checked"},b.createElement(zt.Z,null)),b.createElement(lr.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(lr.Z,null,b.createElement(ct.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(wt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(la||!Lt)&&b.createElement(Be.default.List,{name:Tn,rules:[{validator(bn,Ca){return Lt?Ca!=null&&Ca.length?(Ca==null?void 0:Ca.reduce((Yr,cr)=>Yr+cr.score,0))>parseFloat(Ua)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(bn,{add:Ca,remove:Ha})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${sa.title} mb10`},Lt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Te.Z,{align:"middle",className:"font14 mb30"},b.createElement(lr.Z,{flex:1},b.createElement(Me.default,{value:xa,onChange:Yr=>{ta(Yr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Yr=>{var cr,ii,Za,bo;const Cr=`${(cr=Yr.target)==null?void 0:cr.value}`,to=(Za=(ii=Cr==null?void 0:Cr.split("|"))==null?void 0:ii.filter(mi=>!!mi))==null?void 0:Za.map(mi=>mi==null?void 0:mi.trim()),So=pe.getFieldValue(["sub_item_banks",...Tn]),Ei=((bo=So==null?void 0:So.map(mi=>mi==null?void 0:mi.keyword))==null?void 0:bo.flat())||[];for(const mi of to)if(Ei.includes(mi)){Ae.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}al(Cr)&&(Ca({keyword:to,score:1}),ta(""))},className:sa.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(lr.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),bn.map(Yr=>{var cr=Yr,{key:ii,name:Za}=cr,bo=ci(cr,["key","name"]);return b.createElement(Te.Z,{key:ii,className:"mb20",style:{marginRight:148}},b.createElement(lr.Z,{flex:1},b.createElement(Te.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,Vo(co({},bo),{name:[Za,"keyword"]}),b.createElement(Zl,{onClose:()=>Ha(Za)})),Lt&&b.createElement(Be.default.Item,Vo(co({},bo),{name:[Za,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:sa.blankInputNumberWrapper}),b.createElement(Ve.Z,{className:sa.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Zn(!0)},b.createElement(Be.default.Item,{name:Aa,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(io,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ia}))))};var ho=ee(59301),Pl=Object.defineProperty,eu=Object.defineProperties,Nl=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,su=(ce,pe,Pe)=>pe in ce?Pl(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,mu=(ce,pe)=>{for(var Pe in pe||(pe={}))tu.call(pe,Pe)&&su(ce,Pe,pe[Pe]);if(xl)for(var Pe of xl(pe))Qu.call(pe,Pe)&&su(ce,Pe,pe[Pe]);return ce},Yu=(ce,pe)=>eu(ce,Nl(pe)),El=(ce,pe)=>{var Pe={};for(var Lt in ce)tu.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&xl)for(var Lt of xl(ce))pe.indexOf(Lt)<0&&Qu.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe};const{Panel:Ru}=sr.default,Mu=({questionTitlePlaceholder:ce,choiceKey:pe,form:Pe,withScore:Lt})=>{const tn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[Aa,ma]=(0,b.useState)(),[Tn,jt]=(0,b.useState)([]),Jn=bt=>{jt(bt)},Fn=({value:bt})=>ho.createElement("div",{style:{width:150,paddingLeft:11}},bt);return ho.createElement("div",{className:sa.wrap},ho.createElement("div",{className:sa.questionTitleEditorWrap},ho.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ho.createElement(Fr,{scrollId:"name",watch:!0,height:140,placeholder:ce}))),ho.createElement(Be.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),ho.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(bt,sn){return sn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(bt,{add:sn,remove:An,move:ia})=>{const Zn=Pe.getFieldValue("sub_item_banks");return ho.createElement(ho.Fragment,null,ho.createElement(sr.default,{className:bt.length>0?sa.collapseWrapper:"",bordered:!1,activeKey:Tn,onChange:Jn,expandIcon:({isActive:xa})=>ho.createElement("i",{className:`iconfont icon-weizhankai ${xa?sa.open:sa.close}`,style:{fontSize:14,transition:"all .2s"}})},bt.map((xa,ta)=>{var la=xa,{key:Ua,name:bn}=la,Ca=El(la,["key","name"]),Ha,Yr,cr,ii,Za,bo,Cr,to,So,Ei,mi,hr,po,Vi;return ho.createElement(Ru,{className:sa.panel,forceRender:!0,header:ho.createElement("div",{className:sa.panelHeader},"\u7B2C",ta+1,"\u5C0F\u9898",ho.createElement("span",null,"\uFF08",((Ha=Zn==null?void 0:Zn[bn])==null?void 0:Ha.question_type)==0?"\u5355\u9009\u9898":((Yr=Zn==null?void 0:Zn[bn])==null?void 0:Yr.question_type)==1?"\u591A\u9009\u9898":((cr=Zn==null?void 0:Zn[bn])==null?void 0:cr.question_type)==3?"\u586B\u7A7A\u9898":((ii=Zn==null?void 0:Zn[bn])==null?void 0:ii.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:bn,extra:ho.createElement(Te.Z,{align:"middle",onClick:Ri=>Ri.stopPropagation()},((Za=Zn==null?void 0:Zn[bn])==null?void 0:Za.question_type)==3&&ho.createElement(ho.Fragment,null,ho.createElement(et.ZP.Group,{defaultValue:(bo=Zn==null?void 0:Zn[bn])==null?void 0:bo.use_blank_score,className:mt.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Ri=>{var ea,Co,Mi,jo,Fi;if(Pe==null||Pe.setFieldValue(["sub_item_banks",bn,"use_blank_score"],(ea=Ri==null?void 0:Ri.target)==null?void 0:ea.value),(Co=Ri==null?void 0:Ri.target)!=null&&Co.value){let ki=0;for(let ri in(Mi=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",bn]))==null?void 0:Mi.standard_answers)ki+=Number((Fi=(jo=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",bn]))==null?void 0:jo.standard_answers[ri])==null?void 0:Fi.score);Pe==null||Pe.setFieldValue(["sub_item_banks",bn,"question_score"],ki||"")}ma(new Date)}}),ho.createElement(ct.Z,{overlayInnerStyle:{width:460},title:ho.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",ho.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},ho.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),Lt&&ho.createElement(Be.default.Item,Yu(mu({},Ca),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[bn,"question_score"],className:sa.blankInputNumberWrapper}),((Cr=Zn==null?void 0:Zn[bn])==null?void 0:Cr.question_type)==3&&((to=Zn==null?void 0:Zn[bn])!=null&&to.use_blank_score)?ho.createElement(Fn,null):ho.createElement(Ve.Z,{className:sa.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),ho.createElement(Te.Z,{align:"middle",className:"pl40",style:{width:82}},ta!==0&&ho.createElement("div",{onClick:()=>{var Ri;ia(ta,ta-1);const ea=(Ri=Pe.getFieldValue("sub_item_banks"))==null?void 0:Ri.map((Co,Mi)=>(bt.map((jo,Fi)=>{Mi===Fi&&(Co.q_position=Number(jo.name)+1)}),Co));Pe.setFieldValue("sub_item_banks",ea)}},ho.createElement(ct.Z,{title:"\u4E0A\u79FB"},ho.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),ta<bt.length-1&&ho.createElement("div",{onClick:()=>{var Ri;ia(ta,ta+1);const ea=(Ri=Pe.getFieldValue("sub_item_banks"))==null?void 0:Ri.map((Co,Mi)=>(bt.map((jo,Fi)=>{Mi===Fi&&(Co.q_position=Number(jo.name)+1)}),Co));Pe.setFieldValue("sub_item_banks",ea)},className:ta===0?"":"ml10"},ho.createElement(ct.Z,{title:"\u4E0B\u79FB"},ho.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),ho.createElement(ct.Z,{title:"\u5220\u9664"},ho.createElement(ue.Z,{className:`${sa.deleteIcon} ml40`,onClick:()=>An(bn)})))},ho.createElement(Be.default.Item,Yu(mu({},Ca),{name:bn}),(((So=Zn==null?void 0:Zn[bn])==null?void 0:So.question_type)==0||((Ei=Zn==null?void 0:Zn[bn])==null?void 0:Ei.question_type)==1)&&ho.createElement(Oo,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((mi=Zn==null?void 0:Zn[bn])==null?void 0:mi.question_type)==1,form:Pe,choiceKey:[bn,"choices"],titleKey:[bn,"name"],analysisKey:[bn,"analysis"],choiceOptionsPath:["sub_item_banks",bn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((hr=Zn==null?void 0:Zn[bn])==null?void 0:hr.question_type)==3&&ho.createElement(cl,{form:Pe,name:bn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[bn,"use_blank_score"],titleKey:[bn,"name"],analysisKey:[bn,"analysis"],isOrdered:[bn,"is_ordered"],answerKey:[bn,"standard_answers"],key:Aa}),((po=Zn==null?void 0:Zn[bn])==null?void 0:po.question_type)==2&&ho.createElement(wa,{form:Pe,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[bn,"name"],analysisKey:[bn,"analysis"],choiceKey:[bn,"choices"]}),((Vi=Zn==null?void 0:Zn[bn])==null?void 0:Vi.question_type)==4&&ho.createElement(Al,{showKeywords:!0,isMustKeyWords:!0,form:Pe,titleKey:[bn,"name"],analysisKey:[bn,"analysis"],answerTexts:[bn,"answer_texts"],useKeywords:[bn,"use_keywords"],keywords:[bn,"keywords"],indexs:bn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),bt.length<20&&ho.createElement(_e.Z,{menu:{items:[{label:ho.createElement("div",{onClick:()=>{sn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),jt([bt==null?void 0:bt.length,...Tn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:ho.createElement("div",{onClick:()=>{sn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),jt([bt==null?void 0:bt.length,...Tn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:ho.createElement("div",{onClick:()=>{sn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),jt([bt==null?void 0:bt.length,...Tn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:ho.createElement("div",{onClick:()=>{sn({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),jt([bt==null?void 0:bt.length,...Tn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:ho.createElement("div",{onClick:()=>{sn({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),jt([bt==null?void 0:bt.length,...Tn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(xa=>xa.show).map(xa=>({label:xa.label,key:xa.key}))}},ho.createElement("div",{className:`${sa.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var rl=ee(59301),ku=Object.defineProperty,nu=Object.defineProperties,Ju=Object.getOwnPropertyDescriptors,bu=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,_u=(ce,pe,Pe)=>pe in ce?ku(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,yl=(ce,pe)=>{for(var Pe in pe||(pe={}))Tu.call(pe,Pe)&&_u(ce,Pe,pe[Pe]);if(bu)for(var Pe of bu(pe))Xu.call(pe,Pe)&&_u(ce,Pe,pe[Pe]);return ce},Wi=(ce,pe)=>nu(ce,Ju(pe)),Zu=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),au=({qitem:ce,setisedit:pe,TagDiscipline:Pe,exerciseitem:Lt,seveeditor:tn,deleteitem:Aa,getTagData:ma,init:Tn,showTip:jt=!1})=>{var Jn;const[Fn]=Be.default.useForm();(0,b.useEffect)(()=>{var sn;Fn.setFieldsValue(Wi(yl({},ce),{name:ce.question_title,sub_item_banks:(sn=ce.sub_exercise_questions)==null?void 0:sn.map(An=>{var ia;return Wi(yl({},An),{name:An.question_title,choices:(ia=An==null?void 0:An.question_choices)==null?void 0:ia.map(Zn=>Wi(yl({},Zn),{is_answer:Zn!=null&&Zn.standard_boolean?1:0}))})}),repeat_answer:!ce.repeat_answer}))},[ce]);const bt=sn=>{if(!(sn!=null&&sn.length))return!1;const An=sn.map(Zn=>{var xa;return(xa=Zn.choice_text)==null?void 0:xa.trim().replace(/^\s+|\s+$/g,"")});return new Set(An).size!==An.length};return rl.createElement("div",null,rl.createElement(Be.default,{form:Fn,colon:!1,onValuesChange:(sn,An)=>{var ia,Zn,xa,ta;if(sn!=null&&sn.sub_item_banks){let la=((ia=Fn.getFieldValue("sub_item_banks"))==null?void 0:ia.length)>0&&((xa=(Zn=Fn.getFieldValue("sub_item_banks"))==null?void 0:Zn.map(Ua=>{var bn;if(Ua.question_type==3&&(Ua!=null&&Ua.use_blank_score)){let Ca=0;for(let Ha in Ua==null?void 0:Ua.standard_answers)Ca+=Number((bn=Ua==null?void 0:Ua.standard_answers[Ha])==null?void 0:bn.score);return Ca}else return Ua.question_score}))==null?void 0:xa.filter(Ua=>Ua));(la==null?void 0:la.length)>0&&Fn.setFieldsValue({question_score:(ta=parseFloat(la.reduce((Ua,bn)=>parseFloat(Ua)+parseFloat(bn))))==null?void 0:ta.toFixed(1)})}},onFinish:sn=>{var An,ia;if((An=sn.sub_item_banks)==null?void 0:An.some(xa=>xa.question_type===0||xa.question_type===1?bt(xa.choices):!1)){Ae.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}tn(Wi(yl(yl({},ce),sn),{question_title:sn.name,sub_questions:(ia=sn==null?void 0:sn.sub_item_banks)==null?void 0:ia.map(xa=>{var ta,la,Ua,bn;return(xa==null?void 0:xa.question_type)==3?Wi(yl({},xa),{question_title:xa.name,item_type:xa==null?void 0:xa.question_type}):Wi(yl({},xa),{question_title:xa.name,question_choices:(la=(ta=xa==null?void 0:xa.choices)==null?void 0:ta.map)==null?void 0:la.call(ta,Ca=>Ca.choice_text),standard_answers:(bn=(Ua=xa==null?void 0:xa.choices)==null?void 0:Ua.map)==null?void 0:bn.call(Ua,(Ca,Ha)=>(Ca==null?void 0:Ca.is_answer)===1&&Ha+1).filter(Ca=>Ca),item_type:xa==null?void 0:xa.question_type})})}))},onFinishFailed:sn=>Zu(void 0,null,function*(){var An,ia;Ae.ZP.error(sn.errorFields[0].errors[0]),Fn.scrollToField((ia=(An=sn==null?void 0:sn.errorFields)==null?void 0:An[0])==null?void 0:ia.name,{behavior:"smooth",block:"center"})})},rl.createElement("div",{style:{display:"flex",alignItems:"center"}},rl.createElement("div",{style:{flex:1}},rl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),rl.createElement("span",null,"\u7EC4\u5408\u9898")),((Jn=Lt==null?void 0:Lt.exercise)==null?void 0:Jn.exercise_status)==1&&!(ce!=null&&ce.isadd)&&rl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Aa()}},rl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),rl.createElement(We.ZP,{onClick:()=>{var sn;ce.isadd?(pe(!1),Tn()):(Fn.setFieldsValue(Wi(yl({},ce),{name:ce.question_title,sub_item_banks:(sn=ce.sub_exercise_questions)==null?void 0:sn.map(An=>{var ia;return Wi(yl({},An),{name:An.question_title,choices:(ia=An==null?void 0:An.question_choices)==null?void 0:ia.map(Zn=>Wi(yl({},Zn),{is_answer:Zn!=null&&Zn.standard_boolean?1:0}))})}),repeat_answer:!ce.repeat_answer})),pe(!1))}},"\u53D6\u6D88"),rl.createElement(ct.Z,{overlayClassName:mt.shake,open:jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:rl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},rl.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},rl.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Fn.submit()}},"\u4FDD\u5B58"))),rl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},rl.createElement(Vt.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),rl.createElement(Mu,{form:Fn,withScore:!0,choiceKey:"",questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),rl.createElement(Vn,{getTagData:ma,qitem:ce,exerciseitem:Lt,TagDiscipline:Pe,form:Fn}))))},wi=ee(59301),Cu=Object.defineProperty,zu=Object.defineProperties,rs=Object.getOwnPropertyDescriptors,Il=Object.getOwnPropertySymbols,Hu=Object.prototype.hasOwnProperty,xu=Object.prototype.propertyIsEnumerable,Fu=(ce,pe,Pe)=>pe in ce?Cu(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Fl=(ce,pe)=>{for(var Pe in pe||(pe={}))Hu.call(pe,Pe)&&Fu(ce,Pe,pe[Pe]);if(Il)for(var Pe of Il(pe))xu.call(pe,Pe)&&Fu(ce,Pe,pe[Pe]);return ce},zl=(ce,pe)=>zu(ce,rs(pe)),os=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),ju=({qitem:ce,setqitem:pe,setisedit:Pe,TagDiscipline:Lt,exerciseitem:tn,seveeditor:Aa,deleteitem:ma,showTip:Tn})=>{var jt,Jn;const[Fn]=Be.default.useForm();return(0,b.useEffect)(()=>{var bt,sn;Fn.setFieldsValue(zl(Fl({},ce),{name:ce==null?void 0:ce.question_title,choices:(bt=ce==null?void 0:ce.question_choices)==null?void 0:bt.map(An=>zl(Fl({},An),{standard_boolean:An!=null&&An.standard_boolean?1:0})),repeat_answer:!(ce!=null&&ce.repeat_answer)})),ce.shixun=(sn=ce==null?void 0:ce.shixun)==null?void 0:sn.map(An=>zl(Fl({},An),{defaultscore:An.challenge_score}))},[]),wi.createElement("div",null,wi.createElement(Be.default,{form:Fn,colon:!1,onFinish:bt=>{var sn,An;let ia=zl(Fl({},bt),{question_scores:(sn=ce==null?void 0:ce.shixun)==null?void 0:sn.map(Zn=>Zn.challenge_score),item_type:ce==null?void 0:ce.question_type,choices:(An=bt==null?void 0:bt.choices)==null?void 0:An.map(Zn=>zl(Fl({},Zn),{is_answer:Zn.standard_boolean}))});Aa(Fl(Fl({},ce),ia))},onFinishFailed:bt=>os(void 0,null,function*(){var sn,An;Ae.ZP.error(bt.errorFields[0].errors[0]),Fn.scrollToField((An=(sn=bt==null?void 0:bt.errorFields)==null?void 0:sn[0])==null?void 0:An.name,{behavior:"smooth",block:"center"})})},wi.createElement("div",{style:{display:"flex",alignItems:"center"}},wi.createElement("div",{style:{flex:1}},wi.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),wi.createElement("span",null,"\u5B9E\u8BAD\u9898")),((jt=tn==null?void 0:tn.exercise)==null?void 0:jt.exercise_status)==1&&!(ce!=null&&ce.isadd)&&wi.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{ma()}},wi.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),wi.createElement(We.ZP,{onClick:()=>{var bt,sn;Fn.setFieldsValue(zl(Fl({},ce),{name:ce==null?void 0:ce.question_title,choices:(bt=ce==null?void 0:ce.question_choices)==null?void 0:bt.map(An=>zl(Fl({},An),{standard_boolean:An!=null&&An.standard_boolean?1:0})),repeat_answer:!(ce!=null&&ce.repeat_answer)})),ce.shixun=(sn=ce==null?void 0:ce.shixun)==null?void 0:sn.map(An=>zl(Fl({},An),{challenge_score:An.defaultscore})),pe(Fl({},ce)),Pe(!1)}},"\u53D6\u6D88"),wi.createElement(ct.Z,{overlayClassName:mt.shake,open:Tn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:wi.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},wi.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},wi.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>os(void 0,null,function*(){var bt,sn,An;if(((sn=(bt=ce==null?void 0:ce.shixun)==null?void 0:bt.map)==null?void 0:sn.call(bt,ia=>ia.challenge_score).filter(ia=>ia).length)<((An=ce==null?void 0:ce.shixun)==null?void 0:An.length)){Ae.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}Fn.submit()})},"\u4FDD\u5B58"))),wi.createElement(Vt.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),wi.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},wi.createElement(Cn.Z,{watch:!0,height:140,placeholder:"",defaultValue:ce.question_title}))),wi.createElement(Te.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},wi.createElement("div",null,wi.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),wi.createElement("a",{href:`/shixuns/${ce==null?void 0:ce.shixun_identifier}/challenges?exercise=true`,target:"_blank"},wi.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(Jn=ce==null?void 0:ce.shixun)==null?void 0:Jn.map((bt,sn)=>wi.createElement("div",{style:{display:"flex",marginBottom:20}},wi.createElement("div",{style:{flex:1}},sn+1,"\u3001",bt.challenge_name),wi.createElement("div",null,wi.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",wi.createElement(Ve.Z,{precision:1,value:bt==null?void 0:bt.challenge_score,onChange:An=>{const ia=JSON.parse(JSON.stringify((ce==null?void 0:ce.shixun)||[]));ia[sn].challenge_score=An;const Zn=ia.every(ta=>!ta.challenge_score),xa=parseFloat(ia==null?void 0:ia.map(ta=>ta.challenge_score).reduce((ta,la)=>parseFloat(ta||0)+parseFloat(la||0)));Fn.setFieldsValue({question_score:Zn?"":xa.toFixed(1)}),pe(zl(Fl({},ce),{shixun:ia}))},max:200,min:.1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))},Ar={flex_box_center:"flex_box_center___Vhtb1",flex_space_between:"flex_space_between___k2ZrJ",flex_box_vertical_center:"flex_box_vertical_center___tn6Db",flex_box_center_end:"flex_box_center_end___k3eNX",flex_box_column:"flex_box_column___rsWbi",warp:"warp___UlRJc",indexTag:"indexTag___rjJ1u",normalWrap:"normalWrap___Qm4zY",redio:"redio___VW3yr",redioitem:"redioitem___jAPlJ",redioitemyes:"redioitemyes___VoiQ1",title:"title___Dt2dl",titleyes:"titleyes___Fjh3a",yestag:"yestag___CXrPv",checkbox:"checkbox___CgMU_",checkboxitem:"checkboxitem___PpJ9n",checkboxitemyes:"checkboxitemyes___pCfvZ",bottom:"bottom___BqrmJ",bottomitem:"bottomitem___Qk2rG",left:"left___l29lW",right:"right___nB1XE",completion:"completion___y1m7L",content:"content___AmQy4",items:"items___lIt8e",simple:"simple___zxJLH",shixunWrapper:"shixunWrapper___kAYdL",shixun:"shixun___UE6xS",score:"score___Px5Fq",qtitle:"qtitle___wG7Nn",program:"program___gzKdL",combination:"combination___R0ysn",qtype:"qtype___U0Suy",divname:"divname___guDo9"},Bu=ee(1710),Yl=ee(59879),Hl=ee(24334),Xa=ee(59301);const du=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],es=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var wu=({qitem:ce,exercise:pe})=>{var Pe,Lt,tn,Aa,ma,Tn,jt,Jn,Fn,bt,sn,An,ia,Zn,xa,ta,la,Ua,bn,Ca,Ha,Yr,cr,ii;return Xa.createElement("div",{className:Ar.warp},((ce==null?void 0:ce.question_type)===0||(ce==null?void 0:ce.question_type)===2)&&Xa.createElement("div",{className:Ar.normalWrap},(Pe=ce==null?void 0:ce.question_choices)==null?void 0:Pe.map((Za,bo)=>Xa.createElement("div",{className:Ar.redio},!(Za!=null&&Za.standard_boolean)&&Xa.createElement("span",{className:Ar.redioitem}),(Za==null?void 0:Za.standard_boolean)&&Xa.createElement("i",{className:`${Ar.redioitemyes} icon-duigou1`}),Xa.createElement("span",{className:`${Za!=null&&Za.standard_boolean?Ar.titleyes:Ar.title} ${Ar.indexTag}`},(ce==null?void 0:ce.question_type)===0?du[bo]:""),Xa.createElement(fe.Z,{className:Za!=null&&Za.standard_boolean?Ar.titleyes:Ar.title,value:Za==null?void 0:Za.choice_text}),(Za==null?void 0:Za.standard_boolean)&&Xa.createElement("div",{className:Ar.yestag},"\u6B63\u786E\u7B54\u6848")))),(ce==null?void 0:ce.question_type)===1&&Xa.createElement("div",{className:Ar.normalWrap},(Lt=ce==null?void 0:ce.question_choices)==null?void 0:Lt.map((Za,bo)=>Xa.createElement("div",{className:Ar.checkbox},!(Za!=null&&Za.standard_boolean)&&Xa.createElement("span",{className:Ar.checkboxitem}),(Za==null?void 0:Za.standard_boolean)&&Xa.createElement("i",{className:`${Ar.checkboxitemyes} icon-duigou1`}),Xa.createElement("span",{className:`${Za!=null&&Za.standard_boolean?Ar.titleyes:Ar.title} ${Ar.indexTag}`},du[bo]),Xa.createElement(fe.Z,{className:Za!=null&&Za.standard_boolean?Ar.titleyes:Ar.title,value:Za==null?void 0:Za.choice_text}),(Za==null?void 0:Za.standard_boolean)&&Xa.createElement("div",{className:Ar.yestag},"\u6B63\u786E\u7B54\u6848")))),(ce==null?void 0:ce.question_type)===3&&Xa.createElement("div",{className:Ar.completion},(tn=ce==null?void 0:ce.standard_answers)==null?void 0:tn.map((Za,bo)=>{var Cr;return Xa.createElement(Te.Z,{align:"top"},Xa.createElement("span",{className:Ar.title},"\u586B\u7A7A\u9879",bo+1),Xa.createElement("div",{className:Ar.content},(Cr=Za.answer_text)==null?void 0:Cr.map((to,So)=>Xa.createElement("div",{key:So,className:Ar.items,style:(Za==null?void 0:Za.model)===2?{border:0,padding:0}:{}},(Za==null?void 0:Za.model)===1?Xa.createElement("pre",{className:"mb0"},to):Xa.createElement(Yl.Z,{value:to,disabled:!0})))))})),(ce==null?void 0:ce.question_type)===4&&Xa.createElement("div",{className:Ar.simple},Xa.createElement("div",{className:Ar.title},"\u53C2\u8003\u7B54\u6848"),Xa.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Aa=ce==null?void 0:ce.answer_texts)!=null&&Aa[0]?Xa.createElement(fe.Z,{className:Ar.content,value:(ma=ce==null?void 0:ce.answer_texts)==null?void 0:ma[0]}):Xa.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),Xa.createElement("div",{className:"mt20 "},Xa.createElement("span",{className:Ar.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),Xa.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},ce!=null&&ce.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(ce==null?void 0:ce.question_type)===5&&Xa.createElement("div",{className:Ar.shixunWrapper},(Tn=ce==null?void 0:ce.shixun)==null?void 0:Tn.map((Za,bo)=>{var Cr,to;return Xa.createElement("div",null,Xa.createElement("div",{key:bo,className:`${Ar.shixun} mb30`},Xa.createElement("span",{className:Ar.score},"\uFF08",Za==null?void 0:Za.challenge_score,"\u5206\uFF09"),Xa.createElement("span",{className:Ar.qtitle},(ce==null?void 0:ce.index)+"."+(bo+1),"\u3001",Za==null?void 0:Za.challenge_name)),((to=(Cr=pe==null?void 0:pe.editData)==null?void 0:Cr.exercise)==null?void 0:to.show_challenge_task_pass)&&Xa.createElement(fe.Z,{className:Ar.content,value:(Za==null?void 0:Za.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ce==null?void 0:ce.question_type)===6&&Xa.createElement("div",{className:Ar.program,style:{border:!((Jn=(jt=pe==null?void 0:pe.editData)==null?void 0:jt.exercise)!=null&&Jn.show_hack_sets)&&!((bt=(Fn=pe==null?void 0:pe.editData)==null?void 0:Fn.exercise)!=null&&bt.show_hack_description)&&"none"}},((An=(sn=pe==null?void 0:pe.editData)==null?void 0:sn.exercise)==null?void 0:An.show_hack_sets)&&Xa.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},Xa.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},Xa.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),Xa.createElement(Bu.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Za,bo,Cr)=>Cr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Za,bo,Cr)=>Xa.createElement(ct.Z,{title:Xa.createElement("pre",null,Za)},Xa.createElement("div",{className:Ar.divname},Za))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Za,bo,Cr)=>Xa.createElement(ct.Z,{title:Xa.createElement("pre",null,Za)}," ",Xa.createElement("div",{className:Ar.divname},Za))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ce==null?void 0:ce.hack_sets})),((Zn=(ia=pe==null?void 0:pe.editData)==null?void 0:ia.exercise)==null?void 0:Zn.show_hack_description)&&Xa.createElement("div",null,Xa.createElement(fe.Z,{className:Ar.content,value:(ce==null?void 0:ce.description)||"- -"}))),(ce==null?void 0:ce.question_type)===7&&((xa=ce==null?void 0:ce.sub_exercise_questions)==null?void 0:xa.map((Za,bo)=>{var Cr,to,So,Ei,mi,hr;return Xa.createElement("div",{key:bo},Xa.createElement("div",{className:Ar.combination},Xa.createElement("span",{className:Ar.score},Za==null?void 0:Za.question_score,"\u5206"),Xa.createElement("span",{className:Ar.qtype},(Cr=es.find(po=>po.type==Za.question_type))==null?void 0:Cr.name),Xa.createElement("span",{className:Ar.qtitle},bo+1,"\u3001",Za==null?void 0:Za.question_title)),(Za.question_type===0||Za.question_type===2)&&Xa.createElement("div",{className:Ar.warp,style:{padding:"30px 58px",paddingBottom:0}},Xa.createElement("div",null,(to=Za==null?void 0:Za.question_choices)==null?void 0:to.map((po,Vi)=>Xa.createElement("div",{className:Ar.redio,key:Vi},!(po!=null&&po.standard_boolean)&&Xa.createElement("span",{className:Ar.redioitem}),(po==null?void 0:po.standard_boolean)&&Xa.createElement("i",{className:`${Ar.redioitemyes} icon-duigou1`}),Za.question_type===2&&Xa.createElement("span",{className:`${po!=null&&po.standard_boolean?Ar.titleyes:Ar.title} ${Ar.indexTag}`},du[Vi]),Xa.createElement(fe.Z,{className:po!=null&&po.standard_boolean?Ar.titleyes:Ar.title,value:po==null?void 0:po.choice_text}),(po==null?void 0:po.standard_boolean)&&Xa.createElement("div",{className:Ar.yestag},"\u6B63\u786E\u7B54\u6848"))))),Za.question_type===1&&Xa.createElement("div",{className:Ar.normalWrap},(So=Za==null?void 0:Za.question_choices)==null?void 0:So.map((po,Vi)=>Xa.createElement("div",{className:Ar.checkbox,key:Vi},!(po!=null&&po.standard_boolean)&&Xa.createElement("span",{className:Ar.checkboxitem}),(po==null?void 0:po.standard_boolean)&&Xa.createElement("i",{className:`${Ar.checkboxitemyes} icon-duigou1`}),Xa.createElement("span",{className:`${po!=null&&po.standard_boolean?Ar.titleyes:Ar.title} ${Ar.indexTag}`},du[Vi]),Xa.createElement(fe.Z,{className:po!=null&&po.standard_boolean?Ar.titleyes:Ar.title,value:po==null?void 0:po.choice_text}),(po==null?void 0:po.standard_boolean)&&Xa.createElement("div",{className:Ar.yestag},"\u6B63\u786E\u7B54\u6848")))),Za.question_type===3&&Xa.createElement("div",{className:Ar.completion},(Ei=Za==null?void 0:Za.standard_answers)==null?void 0:Ei.map((po,Vi)=>{var Ri;return Xa.createElement(Te.Z,{align:"top"},Xa.createElement("span",{className:Ar.title},"\u586B\u7A7A\u9879",Vi+1),Xa.createElement("div",{className:Ar.content},(Ri=po.answer_text)==null?void 0:Ri.map((ea,Co)=>Xa.createElement("div",{key:Co,className:Ar.items},Xa.createElement("pre",{className:"mb0"},ea)))))})),Za.question_type===4&&Xa.createElement("div",{className:Ar.simple},Xa.createElement("div",{className:Ar.title},"\u53C2\u8003\u7B54\u6848"),Xa.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(mi=Za==null?void 0:Za.answer_texts)!=null&&mi[0]?Xa.createElement(fe.Z,{className:Ar.content,value:(hr=Za==null?void 0:Za.answer_texts)==null?void 0:hr[0]}):Xa.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),Xa.createElement("div",{className:"mt20 "},Xa.createElement("span",{className:Ar.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),Xa.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Za!=null&&Za.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(ce==null?void 0:ce.question_type)===8&&Xa.createElement("div",null,Xa.createElement(fe.Z,{disabledFill:!0,className:Ar.content,showProgramFill:!0,value:Hl.Base64.decode(((ta=ce==null?void 0:ce.program_attr)==null?void 0:ta.code)||"")})),((ce==null?void 0:ce.question_type)<=4||[6,8].includes(ce==null?void 0:ce.question_type))&&Xa.createElement("div",{className:Ar.bottom},Xa.createElement("div",{className:`${Ar.bottomitem} mb30`},Xa.createElement("span",{className:Ar.left},"\u89E3\u6790"),Xa.createElement("span",{className:Ar.right},ce!=null&&ce.analysis?Xa.createElement(fe.Z,{value:ce==null?void 0:ce.analysis}):Xa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),Xa.createElement("div",{className:`${Ar.bottomitem} mb30`},Xa.createElement("span",{className:Ar.left},"\u96BE\u5EA6"),Xa.createElement("span",{className:Ar.right},(ce==null?void 0:ce.difficulty)===1?"\u7B80\u5355":(ce==null?void 0:ce.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Xa.createElement("div",{className:Ar.bottomitem},Xa.createElement("span",{className:Ar.left},"\u77E5\u8BC6\u70B9"),Xa.createElement(ct.Z,{title:((la=ce==null?void 0:ce.tag_discipline_names)==null?void 0:la.length)<=0||((Ua=ce==null?void 0:ce.tag_discipline_names)==null?void 0:Ua.length)==1&&["-"].includes(ce==null?void 0:ce.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Ca=(bn=ce==null?void 0:ce.tag_discipline_names)==null?void 0:bn.join("\uFF1B"))==null?void 0:Ca.toString()},Xa.createElement("span",{className:Ar.right},((Ha=ce==null?void 0:ce.tag_discipline_names)==null?void 0:Ha.length)<=0?Xa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Yr=ce==null?void 0:ce.tag_discipline_names)==null?void 0:Yr.length)==1&&["-"].includes(ce==null?void 0:ce.tag_discipline_names[0])?Xa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(ii=(cr=ce==null?void 0:ce.tag_discipline_names)==null?void 0:cr.join("\uFF1B"))==null?void 0:ii.toString())))))},ts=ee(42609),cu=ee(35173),Yi=ee(59301),ls=Object.defineProperty,us=Object.defineProperties,ss=Object.getOwnPropertyDescriptors,Gu=Object.getOwnPropertySymbols,Jl=Object.prototype.hasOwnProperty,Xl=Object.prototype.propertyIsEnumerable,ru=(ce,pe,Pe)=>pe in ce?ls(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,fu=(ce,pe)=>{for(var Pe in pe||(pe={}))Jl.call(pe,Pe)&&ru(ce,Pe,pe[Pe]);if(Gu)for(var Pe of Gu(pe))Xl.call(pe,Pe)&&ru(ce,Pe,pe[Pe]);return ce},Wu=(ce,pe)=>us(ce,ss(pe)),me=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),ye=({qitem:ce,setisedit:pe,TagDiscipline:Pe,exerciseitem:Lt,seveeditor:tn,deleteitem:Aa,getTagData:ma,init:Tn,showTip:jt=!1})=>{var Jn;const[Fn]=Be.default.useForm();return(0,b.useEffect)(()=>{Fn.setFieldsValue(Wu(fu({},ce),{name:ce.question_title,answer_texts:ce.answer_texts,repeat_answer:!ce.repeat_answer}))},[ce]),Yi.createElement("div",null,Yi.createElement(Be.default,{form:Fn,colon:!1,onFinish:bt=>{tn(Wu(fu(fu({},ce),bt),{answer_texts:bt==null?void 0:bt.answer_texts,question_title:bt==null?void 0:bt.name}))},onFinishFailed:bt=>me(void 0,null,function*(){var sn,An;Ae.ZP.error(bt.errorFields[0].errors[0]),Fn.scrollToField((An=(sn=bt==null?void 0:bt.errorFields)==null?void 0:sn[0])==null?void 0:An.name,{behavior:"smooth",block:"center"})})},Yi.createElement("div",{style:{display:"flex",alignItems:"center"}},Yi.createElement("div",{style:{flex:1}},Yi.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Yi.createElement("span",null,"\u7B80\u7B54\u9898")),((Jn=Lt==null?void 0:Lt.exercise)==null?void 0:Jn.exercise_status)==1&&!(ce!=null&&ce.isadd)&&Yi.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Aa()}},Yi.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Yi.createElement(We.ZP,{onClick:()=>{ce.isadd?(pe(!1),Tn()):(Fn.setFieldsValue(Wu(fu({},ce),{name:ce==null?void 0:ce.question_title,answer_texts:ce.answer_texts||[],repeat_answer:!(ce!=null&&ce.repeat_answer)})),pe(!1))}},"\u53D6\u6D88"),Yi.createElement(ct.Z,{overlayClassName:mt.shake,open:jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Yi.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Yi.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Yi.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{Fn.submit()}},"\u4FDD\u5B58"))),Yi.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Yi.createElement(Be.default.Item,{className:mt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Yi.createElement(Ve.Z,{onBlur:bt=>{bt.target.value==="0"&&Ae.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Yi.createElement(cu.W,{form:Fn,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),Yi.createElement(Vn,{getTagData:ma,qitem:ce,exerciseitem:Lt,TagDiscipline:Pe,form:Fn}))))},nt=ee(59301),it=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),Kt=({setScoreShow:ce,ScoreShow:pe,exerciseitem:Pe,getdata:Lt})=>{var tn,Aa,ma;const[Tn,jt]=(0,b.useState)(!1);function Jn(){return it(this,null,function*(){var Fn,bt,sn;let An=(bt=(Fn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Fn.filter(Zn=>Zn.Singlequestion))==null?void 0:bt.map(Zn=>({question_type:Zn.question_type,score:Zn.Singlequestion})),ia=yield(0,ne.ZP)(`/api/exercises/${(sn=Pe==null?void 0:Pe.exercise)==null?void 0:sn.id}/batch_set_score.json`,{method:"POST",body:{question_arr:An}});(ia==null?void 0:ia.status)===0&&Lt()})}return nt.createElement("div",null,pe&&nt.createElement(Ye.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:pe,width:640,centered:!0,zIndex:10,className:mt.scoremodal,onCancel:()=>{ce(!1)},onOk:()=>{var Fn,bt,sn;if(Pe!=null&&Pe.use_blank_score&&((sn=(bt=(Fn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Fn.filter(An=>An.name==="\u586B\u7A7A\u9898"))==null?void 0:bt[0])!=null&&sn.Singlequestion)){jt(!0);return}Jn(),ce(!1)}},nt.createElement("div",{className:"c-black"},"\u603B\u5206",nt.createElement("span",{className:"ml10 c-light-primary"},(Pe==null?void 0:Pe.exercise_question_types.length)>0&&((tn=Pe==null?void 0:Pe.exercise_types)==null?void 0:tn.q_scores))),nt.createElement("div",{className:mt.content},nt.createElement("span",null,"\u9898\u578B\u540D\u79F0"),nt.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),nt.createElement("span",null,"\u9898\u578B\u603B\u5206"),nt.createElement("span",null,"\u64CD\u4F5C")),(ma=(Aa=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Aa.filter(Fn=>Fn.name!=="\u5B9E\u8BAD\u9898"&&Fn.name!=="\u7EC4\u5408\u9898"))==null?void 0:ma.map(Fn=>{var bt;return nt.createElement("div",{className:mt.items},nt.createElement("span",null,Fn==null?void 0:Fn.name),nt.createElement("span",null,(bt=Fn==null?void 0:Fn.items)==null?void 0:bt.length),nt.createElement("span",null,Fn==null?void 0:Fn.score),nt.createElement("span",null,"\u6BCF\u9898",nt.createElement(Ve.Z,{max:100,precision:1,min:.1,onChange:sn=>{Fn.Singlequestion=sn},style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),nt.createElement(Ye.default,{title:!1,footer:!1,centered:!0,zIndex:20,open:Tn,width:640,closable:!1,className:mt.scoremodal},nt.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",nt.createElement("span",{style:{color:"#FA6400"}},"\u6309\u7A7A\u7ED9\u5206"),"\u7684\u5C0F\u9898\uFF0C\u82E5\u6279\u91CF\u8BBE\u7F6E\u5206\u503C\u4F1A\u7EDF\u4E00\u5C06\u586B\u7A7A\u9898\u6539\u4E3A\u6309\u9898\u7ED9\u5206"),nt.createElement("div",{className:mt.bottom},nt.createElement(We.ZP,{className:mt.no,onClick:()=>{jt(!1)}},"\u53D6\u6D88"),nt.createElement(We.ZP,{className:mt.yes,onClick:()=>{Jn(),jt(!1),ce(!1)}},"\u786E\u8BA4"))))},kn=ee(99313),Mn=ee(98228),oa=ee(58421),Ba={flex_box_center:"flex_box_center___aDsO9",flex_space_between:"flex_space_between___5V4Xk",flex_box_vertical_center:"flex_box_vertical_center___rNdEP",flex_box_center_end:"flex_box_center_end___cKjnr",flex_box_column:"flex_box_column___glFYD",scoremodal:"scoremodal___PfqOf",selectWrapper:"selectWrapper___Mtqcz",selectWrappers:"selectWrappers___uX2K9",allqingchu:"allqingchu___IqL8g",title:"title___UgYfD",score:"score___LjJmD",close:"close___I0jAO",content:"content___4u86F",items:"items___mK2L5",bottom:"bottom___vQTEm",yes:"yes___j81JQ",no:"no___kiUH4",titlecount:"titlecount___lliQr",add:"add___QhDj8",search:"search___QCCaL",searchIcon:"searchIcon___oXRH5",tabWrap:"tabWrap___Cu_4D",previewModal:"previewModal___BVDlS"},ga=ee(26422),gn={flex_box_center:"flex_box_center___zojHa",flex_space_between:"flex_space_between___wmLZ4",flex_box_vertical_center:"flex_box_vertical_center___DszWW",flex_box_center_end:"flex_box_center_end___mVCv5",flex_box_column:"flex_box_column___fbC9t",warp:"warp___isAcM",shixunbutton:"shixunbutton___h3Ybb",redio:"redio___xDffb",redioitem:"redioitem___FFPtq",redioitemyes:"redioitemyes___pF7ID",title:"title___mnPZc",titleyes:"titleyes___wrtWQ",yestag:"yestag___D4krY",qcount:"qcount___W5pwO",score:"score___eKQzl",qtitle:"qtitle___lb8MD",checkbox:"checkbox___QpUm4",checkboxitem:"checkboxitem___Wm2SH",checkboxitemyes:"checkboxitemyes___VVVTe",bottom:"bottom___Mn_Bw",bottomitem:"bottomitem___JTyHT",left:"left___nQqpo",right:"right___v58qy",completion:"completion___BnZSp",content:"content___MU8hZ",items:"items___a7i54",simple:"simple___GDw3K",shixun:"shixun___DGzTe",combination:"combination___AG9cr"};const Da=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Ln=({qitem:ce})=>{var pe,Pe,Lt,tn,Aa,ma,Tn,jt,Jn,Fn;return b.createElement("div",{className:gn.warp},b.createElement("div",{className:gn.mainPart},b.createElement("div",{className:gn.qcount},(ce==null?void 0:ce.question_type)===8&&b.createElement(fe.Z,{className:gn.content,showProgramFill:!0,value:(pe=ce==null?void 0:ce.program_attr)==null?void 0:pe.description}),(ce==null?void 0:ce.question_type)!=8&&b.createElement(fe.Z,{className:gn.qtitle,value:(ce==null?void 0:ce.name)||(ce==null?void 0:ce.title)})),((ce==null?void 0:ce.question_type)===0||(ce==null?void 0:ce.question_type)===2)&&b.createElement("div",null,(Pe=ce==null?void 0:ce.choices)==null?void 0:Pe.map((bt,sn)=>b.createElement("div",{className:gn.redio},!(bt!=null&&bt.is_answer)&&b.createElement("span",{className:gn.redioitem}),(bt==null?void 0:bt.is_answer)&&b.createElement("i",{className:`${gn.redioitemyes} icon-duigou1`}),b.createElement(fe.Z,{className:bt!=null&&bt.is_answer?gn.titleyes:gn.title,value:Da[sn]+(bt==null?void 0:bt.choice_text)}),(bt==null?void 0:bt.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ce==null?void 0:ce.question_type)===1&&b.createElement("div",null,(Lt=ce==null?void 0:ce.choices)==null?void 0:Lt.map((bt,sn)=>b.createElement("div",{className:gn.checkbox},!(bt!=null&&bt.is_answer)&&b.createElement("span",{className:gn.checkboxitem}),(bt==null?void 0:bt.is_answer)&&b.createElement("i",{className:`${gn.checkboxitemyes} icon-duigou1`}),b.createElement(fe.Z,{className:bt!=null&&bt.is_answer?gn.titleyes:gn.title,value:Da[sn]+(bt==null?void 0:bt.choice_text)}),(bt==null?void 0:bt.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ce==null?void 0:ce.question_type)===3&&b.createElement("div",{className:gn.completion},(tn=ce==null?void 0:ce.standard_answer)==null?void 0:tn.map((bt,sn)=>{var An;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:gn.title},"\u586B\u7A7A\u9879",sn+1),b.createElement("div",{className:gn.content},(An=bt==null?void 0:bt.answer_text)==null?void 0:An.map((ia,Zn)=>b.createElement("div",{className:gn.items},ia))))})),(ce==null?void 0:ce.question_type)===4&&b.createElement("div",{className:gn.simple},b.createElement("div",{className:gn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Aa=ce==null?void 0:ce.answer_texts)!=null&&Aa[0]?b.createElement(fe.Z,{className:gn.content,value:(ma=ce==null?void 0:ce.answer_texts)==null?void 0:ma[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(ce==null?void 0:ce.question_type)===5&&((Tn=ce==null?void 0:ce.challenge_names)==null?void 0:Tn.map((bt,sn)=>b.createElement("div",{className:gn.shixun},b.createElement("span",{className:gn.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,It.EM)(sn+1),"\u9898"),bt)))),(ce==null?void 0:ce.question_type)===6&&b.createElement("div",{className:gn.simple},b.createElement(fe.Z,{className:gn.content,value:((jt=ce==null?void 0:ce.program_attr)==null?void 0:jt.description)||"- -"})),(ce==null?void 0:ce.question_type)===7&&((Jn=ce==null?void 0:ce.sub_item_banks)==null?void 0:Jn.map((bt,sn)=>{var An,ia,Zn,xa,ta;return b.createElement("div",null,b.createElement("div",{className:gn.combination},b.createElement("span",{className:gn.qtitle},bt==null?void 0:bt.name)),b.createElement("div",{className:gn.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((bt==null?void 0:bt.item_type)=="SINGLE"||(bt==null?void 0:bt.item_type)=="JUDGMENT")&&((An=bt==null?void 0:bt.choices)==null?void 0:An.map((la,Ua)=>b.createElement("div",{className:gn.redio},!(la!=null&&la.is_answer)&&b.createElement("span",{className:gn.redioitem}),(la==null?void 0:la.is_answer)&&b.createElement("i",{className:`${gn.redioitemyes} icon-duigou1`}),b.createElement(fe.Z,{className:la!=null&&la.is_answer?gn.titleyes:gn.title,value:Da[Ua]+(la==null?void 0:la.choice_text)}),(la==null?void 0:la.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(bt==null?void 0:bt.item_type)=="MULTIPLE"&&((ia=bt==null?void 0:bt.choices)==null?void 0:ia.map((la,Ua)=>b.createElement("div",{className:gn.checkbox},!(la!=null&&la.is_answer)&&b.createElement("span",{className:gn.checkboxitem}),(la==null?void 0:la.is_answer)&&b.createElement("i",{className:`${gn.checkboxitemyes} icon-duigou1`}),b.createElement(fe.Z,{className:la!=null&&la.is_answer?gn.titleyes:gn.title,value:Da[Ua]+(la==null?void 0:la.choice_text)}),(la==null?void 0:la.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(bt==null?void 0:bt.item_type)=="COMPLETION"&&b.createElement("div",{className:gn.completion},(Zn=bt==null?void 0:bt.standard_answer)==null?void 0:Zn.map((la,Ua)=>{var bn;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:gn.title},"\u586B\u7A7A\u9879",Ua+1),b.createElement("div",{className:gn.content},(bn=la==null?void 0:la.answer_text)==null?void 0:bn.map((Ca,Ha)=>b.createElement("div",{className:gn.items},Ca))))})),(bt==null?void 0:bt.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:gn.simple},b.createElement("div",{className:gn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xa=bt==null?void 0:bt.answer_texts)!=null&&xa[0]?b.createElement(fe.Z,{className:gn.content,value:(ta=bt==null?void 0:bt.answer_texts)==null?void 0:ta[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(ce==null?void 0:ce.question_type)===8&&b.createElement("div",null,b.createElement(fe.Z,{disabledFill:!0,className:gn.content,showProgramFill:!0,value:Hl.Base64.decode(((Fn=ce==null?void 0:ce.program_attr)==null?void 0:Fn.code)||"")})),(ce==null?void 0:ce.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(ce==null?void 0:ce.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(ce==null?void 0:ce.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(ce==null?void 0:ce.study_count)||"0"))),b.createElement("a",{className:gn.shixunbutton,href:`/shixuns/${ce==null?void 0:ce.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((ce==null?void 0:ce.question_type)<=4||[6,8].includes(ce==null?void 0:ce.question_type))&&b.createElement("div",{className:gn.bottom},b.createElement("div",{className:gn.bottomitem},b.createElement("span",{className:gn.left},"\u89E3\u6790"),b.createElement("span",{className:gn.right},ce!=null&&ce.analysis?b.createElement(fe.Z,{value:ce==null?void 0:ce.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:gn.bottomitem},b.createElement("span",{className:gn.left},"\u96BE\u5EA6"),b.createElement("span",{className:gn.right},(ce==null?void 0:ce.difficulty)===1?"\u7B80\u5355":(ce==null?void 0:ce.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:gn.bottomitem},b.createElement("span",{className:gn.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:gn.right},ce!=null&&ce.tag_discipline?ce==null?void 0:ce.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},da=ee(86087),Ma=ee(84287),Br=ee(79669),vr=ee(32570),wr=ee(16149),Hr=ee(82438),Or=ee(49692),zn=ee(59301),$o=Object.defineProperty,fo=Object.defineProperties,Go=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,zi=(ce,pe,Pe)=>pe in ce?$o(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,ro=(ce,pe)=>{for(var Pe in pe||(pe={}))oi.call(pe,Pe)&&zi(ce,Pe,pe[Pe]);if(qo)for(var Pe of qo(pe))Si.call(pe,Pe)&&zi(ce,Pe,pe[Pe]);return ce},Ro=(ce,pe)=>fo(ce,Go(pe)),zo=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())});const Di=({setScoreShow:ce,ScoreShow:pe,onOk:Pe,isshixuns:Lt,isloadings:tn,dispatch:Aa,shixunsDetail:ma,exercise:Tn})=>{var jt,Jn,Fn;let[bt,sn]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]}),[An,ia]=(0,b.useState)([]),[Zn,xa]=(0,b.useState)([]),[ta,la]=(0,b.useState)([]),[Ua,bn]=(0,b.useState)([]);const[Ca,Ha]=(0,b.useState)(!1),[Yr]=Be.default.useForm(),[cr,ii]=(0,b.useState)(),[Za,bo]=(0,b.useState)(!1);let[Cr,to]=(0,b.useState)(Lt);const[So,Ei]=(0,b.useState)([]),[mi,hr]=(0,b.useState)(!0),[po,Vi]=(0,b.useState)([]),[Ri,ea]=(0,b.useState)(0),[Co,Mi]=(0,b.useState)([]),jo=[{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}],[Fi,ki]=(0,b.useState)({});(0,b.useEffect)(()=>{var ua,qa,Wo,uo,xo,Xo,$i,Ai,fl,el;(((Wo=(qa=(ua=Tn==null?void 0:Tn.editData)==null?void 0:ua.exercise)==null?void 0:qa.exist_item_bank_ids)==null?void 0:Wo.length)>0||((Xo=(xo=(uo=Tn==null?void 0:Tn.editData)==null?void 0:uo.exercise)==null?void 0:xo.exist_item_bank_shixun_ids)==null?void 0:Xo.length)>0)&&Mi([...(Ai=($i=Tn==null?void 0:Tn.editData)==null?void 0:$i.exercise)==null?void 0:Ai.exist_item_bank_ids,...(el=(fl=Tn==null?void 0:Tn.editData)==null?void 0:fl.exercise)==null?void 0:el.exist_item_bank_shixun_ids])},[(Jn=(jt=Tn==null?void 0:Tn.editData)==null?void 0:jt.exercise)==null?void 0:Jn.exist_item_bank_ids]);const ri=(0,b.useRef)(new Set),il=(0,b.useRef)(new Set);let[ll,jl]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const Oi=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],dl=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Bl=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Gl,No]=(0,b.useState)(!1),Pi=()=>{Yr.resetFields(),Cr=!1,to(!1),No(!1),Yr.submit()};(0,b.useEffect)(()=>{Ri>0&&setTimeout(()=>{ea(0)},2e3)},[Ri]),(0,b.useEffect)(()=>{pe&&(Yr.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),mi&&Cr&&(Yr.setFieldsValue({item_type:"SHIXUN"}),bt.item_type="SHIXUN",sn(ro({},bt)),hr(!1)),Ui(bt),hl(),Zi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[pe]);function Ui(ua){return zo(this,null,function*(){var qa,Wo,uo;if(Ha(!0),sn(ua),(ta==null?void 0:ta.length)<=0&&ua.type==="5"){bn([]),Ha(!1);return}let xo=ua.type==="5"?ta==null?void 0:ta.filter(Ai=>!So.includes(Ai)):null,Xo=ua.type==="5"?ta==null?void 0:ta.filter(Ai=>So.includes(Ai)):null;ua.group_id=((qa=ua.group_id)==null?void 0:qa.map(Ai=>Ai==null?void 0:Ai.value))||null;let $i=yield(0,ne.ZP)("/api/item_banks.json",{method:"get",params:Ro(ro({},ua),{discipline_id:((Wo=ua==null?void 0:ua.courseid)==null?void 0:Wo[0])||null,sub_discipline_id:((uo=ua==null?void 0:ua.courseid)==null?void 0:uo[1])||null,ids:xo,shixun_ids:Xo,keyword:ua.keyword?encodeURIComponent(ua.keyword):ua.keyword,include_shixuns:!0,type:ua.type==="5"?null:ua.type,clazz:ua.type==="3"?"ItemBanksGroup":null})});bn($i),Ha(!1)})}function Zi(ua){return zo(this,null,function*(){var qa;let Wo=yield(0,ne.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:ua}),uo=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(qa=Wo==null?void 0:Wo.data)==null?void 0:qa.map(xo=>({title:xo.name,id:xo.id,pid:xo.id,value:xo.id,key:xo.id,isLeaf:!xo.have_child}))}];Vi(uo)})}function hl(){return zo(this,null,function*(){let ua=yield(0,ne.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:bt.type==="5"?null:bt.type,clazz:"ItemBanksGroup"}});ia((0,ga.L)(ua==null?void 0:ua.disciplines))})}function ul(ua){return zo(this,null,function*(){var qa,Wo,uo,xo;Ha(!0);let Xo=(qa=ua.list)==null?void 0:qa.filter(fl=>!So.includes(fl)),$i=(Wo=ua.list)==null?void 0:Wo.filter(fl=>So.includes(fl));if(Xo.length===0&&$i.length===0){Ha(!1),bn([]);return}let Ai=yield(0,ne.ZP)("/api/item_banks.json",{method:"get",params:Ro(ro({},ua),{discipline_id:((uo=ua==null?void 0:ua.courseid)==null?void 0:uo[0])||null,sub_discipline_id:((xo=ua==null?void 0:ua.courseid)==null?void 0:xo[1])||null,ids:Xo,shixun_ids:$i,type:ua.type==="5"?null:ua.type,clazz:ua.type==="3"?"ItemBanksGroup":null})});Ha(!1),bn(Ai)})}const sl=(0,de.useParams)(),[wl,Rl,ml,qi]=(0,Br.P)(),Wl=ua=>zo(void 0,null,function*(){const qa=yield Aa({type:"shixunsDetail/release",payload:{id:ua}});let Wo=qa==null?void 0:qa.tag_position,uo=(qa==null?void 0:qa.evaluation_set_position)||[],xo=qa.status;return xo===0?(Ae.ZP.success("\u53D1\u5E03\u6210\u529F"),Ui(bt),!0):(xo===2?Ae.ZP.error(`\u7B2C${uo.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):xo===3?Ae.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Wo.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Ae.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Jo=ua=>(ua==null?void 0:ua.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",vu=(ua,qa,Wo)=>ua.map(uo=>uo.key===qa?ro(ro({},uo),Wo):uo.children?Ro(ro({},uo),{children:vu(uo.children,qa,Wo)}):uo),pu=ua=>zo(void 0,null,function*(){const{key:qa}=ua;let Wo=bt.type;const uo=yield(0,wr.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(qa),type:Wo}),{data:xo,total_count:Xo}=uo||{};Xo>0&&Vi($i=>vu($i,qa,{children:xo.map(Ai=>({title:Ai.name,id:Ai.id,pid:Ai.id,value:Ai.id,key:Ai.id,isLeaf:!Ai.have_child}))}))});function Kl(ua){console.log("----",bt),ua==="1"&&(ll.gg=ro({},bt)),ua==="2"&&(ll.scj=ro({},bt)),ua==="3"&&(ll.ttgx=ro({},bt)),ua==="0"&&(ll.wcjd=ro({},bt)),ua==="5"&&(ll.yx=ro({},bt)),jl(ro({},ll))}function gu(){bt.type==="1"&&(bt=ll.gg),bt.type==="2"&&(bt=ll.scj),bt.type==="3"&&(bt=ll.ttgx),bt.type==="0"&&(bt=ll.wcjd),bt.type==="5"&&(bt=ll.yx),(bt==null?void 0:bt.item_type)==="SHIXUN"?(Cr=!0,to(!0)):(Cr=!1,to(!1)),Yr.setFieldsValue(ro({},bt)),sn(ro({},bt)),Ui(ro({},bt))}return zn.createElement("div",null,zn.createElement(Ye.default,{title:!1,footer:!1,open:pe,width:1200,centered:!0,className:Ba.scoremodal,onCancel:()=>{ce(!1)}},zn.createElement("div",{style:{display:"flex",alignItems:"center"}},zn.createElement("div",{className:Ba.title},"\u9898\u5E93\u9009\u9898")),zn.createElement(kn.default,{className:Ba.tabWrap,activeKey:bt.type,onChange:ua=>{ua==="3"?(bt.show_all_share=!0,Zi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):bt.show_all_share=null,ua==="0"&&Zi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Kl(bt.type),bt.type=ua,(bt==null?void 0:bt.item_type)==="SHIXUN"&&bt.type!=="5"&&(Cr=!0,to(!0)),No(!1),bt.type==="5"&&(Cr=!1,to(!1)),gu(),hl()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:zn.createElement("div",null,"\u5DF2\u9009",ta.length>0&&zn.createElement("span",{className:Ba.titlecount},ta.length),Ri>0&&zn.createElement("span",{className:Ba.add},"+",Ri)),key:"5"}]}),zn.createElement(Be.default,{layout:"inline",form:Yr,onValuesChange:(ua,qa)=>{var Wo,uo;const xo=Object.values(qa).some($i=>$i!==null&&$i!==""&&$i!==void 0),Xo=qa.keyword==="";if(No(xo||!Xo),bt.page=1,bt.keyword=(uo=(Wo=bt.keyword)==null?void 0:Wo.replace)==null?void 0:uo.call(Wo,/^\s+|\s+$/g,""),(qa==null?void 0:qa.item_type)==="SHIXUN"){if(bt.type==="5"?to(!1):to(!0),ua.keyword||ua.keyword==="")return;Yr.submit()}else{if(ua!=null&&ua.courseid&&Yr.setFieldsValue({tag_discipline_id:""}),to(!1),ua.keyword||ua.keyword==="")return;Yr.submit()}},onFinish:ua=>{var qa;bt.type==="3"&&(!ua.group_id||((qa=ua==null?void 0:ua.group_id)==null?void 0:qa.length)===0)?bt.show_all_share=!0:bt.show_all_share=null,sn(ro(ro({},bt),ua)),Ui(ro(ro({},bt),ua))}},zn.createElement(Be.default.Item,{name:"item_type"},zn.createElement(ve.default,{className:Ba.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},jo.map(ua=>zn.createElement(ve.default.Option,{key:ua.value},ua.name)))),zn.createElement(Be.default.Item,{name:"courseid"},zn.createElement(le.Z,{className:Ba.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:An})),!Cr&&zn.createElement(Be.default.Item,{name:"tag_discipline_id"},zn.createElement(ve.default,{className:Ba.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Fn=Ua==null?void 0:Ua.tag_disciplines)==null?void 0:Fn.map(ua=>zn.createElement(ve.default.Option,{key:ua.id},ua.name)))),zn.createElement(Be.default.Item,{name:Cr?"diff":"difficulty"},zn.createElement(ve.default,{className:Ba.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Cr&&Oi.map(ua=>zn.createElement(ve.default.Option,{key:ua.value},ua.name)),Cr&&dl.map(ua=>zn.createElement(ve.default.Option,{key:ua.value},ua.name)))),Cr&&zn.createElement(Be.default.Item,{name:"shixun_publish_status"},zn.createElement(ve.default,{className:Ba.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Bl.map(ua=>zn.createElement(ve.default.Option,{key:ua.value},ua.name)))),(bt.type==="3"||bt.type==="0")&&!Cr&&zn.createElement(Be.default.Item,{name:"group_id"},zn.createElement(Mn.default,{treeDataSimpleMode:!0,style:{width:118},className:Ba.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(ua,qa)=>qa.title.toUpperCase().indexOf(ua.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:pu,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:po})),Gl&&zn.createElement("span",{className:Ba.allqingchu,onClick:Pi},zn.createElement("i",{className:"iconfont icon-guanbi4"}),zn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),zn.createElement(Be.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},zn.createElement(Me.default.Search,{className:Ba.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:zn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Ba.searchIcon}`,onClick:()=>Yr.submit()}),onSearch:ua=>{Yr.submit()}}))),zn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},zn.createElement("div",{onClick:()=>{bt.updated_at==="asc"?bt.updated_at="desc":bt.updated_at="asc",sn(Ro(ro({},bt),{page:1})),Ui(Ro(ro({},bt),{page:1}))}}," ",bt.updated_at?zn.createElement("img",{src:bt.updated_at==="asc"?da.Z:Ma.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):zn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),zn.createElement("div",{onClick:()=>{bt.quotes==="asc"?bt.quotes="desc":bt.quotes="asc",sn(Ro(ro({},bt),{page:1})),Ui(Ro(ro({},bt),{page:1}))},style:{marginLeft:20}}," ",bt.quotes?zn.createElement("img",{src:bt.quotes==="asc"?da.Z:Ma.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):zn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),zn.createElement(Bu.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Ua==null?void 0:Ua.items)||(Ua==null?void 0:Ua.shixun_list),pagination:!1,loading:Ca,rowKey:ua=>ua.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Zn,...Co],getCheckboxProps:ua=>({disabled:ua.shixun_tag_num===1||(Co==null?void 0:Co.find(qa=>ua.id===qa))}),onSelect(ua,qa,Wo){if(qa)Cr&&Ei([...So,ua.id]),xa([...Zn,ua.id]),ua.identifier?ri.current.add(ua.id):il.current.add(ua.id),ea(1),la([...ta,ua.id]);else{ua.identifier?ri.current.delete(ua.id):il.current.delete(ua.id);let uo=ta.filter(xo=>xo!==ua.id);if(xa(uo),la(uo),Cr){let xo=So.filter(Xo=>Xo!==ua.id);Ei([...xo])}if(bt.type==="5"){ul(Ro(ro({},bt),{list:[...uo]}));return}}},onSelectAll(ua,qa,Wo){if(ua){const uo=Wo.map(xo=>xo.id);Cr&&Ei([...So,...uo]),xa([...Zn,...uo]),la([...ta,...uo]);for(const xo of Wo)xo.identifier?ri.current.add(xo.id):il.current.add(xo.id)}else{const uo=Wo.map(Xo=>Xo.id),xo=Zn.filter(Xo=>!uo.some($i=>$i===Xo));if(xa([...xo]),la([...xo]),Cr){let Xo=So.filter($i=>!uo.some(Ai=>Ai===$i.id));Ei([...Xo])}bt.type==="5"&&ul(Ro(ro({},bt),{list:[...xo]}));for(const Xo of uo)Xo.identifier?ri.current.delete(Xo):il.current.delete(Xo)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(ua,qa,Wo)=>{var uo,xo;return zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("div",null,Cr||qa!=null&&qa.challenge_names?"\u5B9E\u8BAD\u9898":(xo=(uo=jo==null?void 0:jo.filter(Xo=>Xo.value===ua))==null?void 0:uo[0])==null?void 0:xo.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Cr?"30%":"60%",key:"name",render:(ua,qa,Wo)=>{var uo;return zn.createElement("div",{style:{display:"flex",alignItems:"center"}},zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("span",null,zn.createElement(fe.Z,{key:1,showLines:1,showTextOnly:!0,value:Cr||qa!=null&&qa.challenge_names?qa!=null&&qa.title||ua===null?"--":ua:(qa==null?void 0:qa.item_type)=="BPROGRAM"?(uo=qa==null?void 0:qa.program_attr)==null?void 0:uo.description:ua}))),(qa==null?void 0:qa.high_resources_consume)&&zn.createElement(vr.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Cr,render:(ua,qa,Wo)=>{var uo;return zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("span",null,ua?(uo=ua==null?void 0:ua.split("\u3001"))==null?void 0:uo[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Cr,render:(ua,qa,Wo)=>zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("span",null,ua||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(ua,qa,Wo)=>{var uo,xo,Xo,$i;return zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("div",null,Cr||qa!=null&&qa.challenge_names?(qa==null?void 0:qa.level)||((xo=(uo=Oi==null?void 0:Oi.filter(Ai=>Ai.value===ua))==null?void 0:uo[0])==null?void 0:xo.name):($i=(Xo=Oi==null?void 0:Oi.filter(Ai=>Ai.value===ua))==null?void 0:Xo[0])==null?void 0:$i.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Cr,render:(ua,qa,Wo)=>zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("div",null,ua||"- -"))},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Cr,render:(ua,qa,Wo)=>zn.createElement("span",null,ua||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(ua,qa,Wo)=>zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("div",null,Cr||qa!=null&&qa.challenge_names?(qa==null?void 0:qa.study_count)||(qa==null?void 0:qa.stu_num):ua))},{title:zn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",zn.createElement(ct.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},zn.createElement(wt.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Cr,render:(ua,qa,Wo)=>zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("div",null,ua||"- -"))},{title:zn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",zn.createElement(ct.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},zn.createElement(wt.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Cr,render:(ua,qa,Wo)=>zn.createElement("span",null,ua||"- -")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(ua,qa,Wo)=>zn.createElement(ct.Z,{title:Jo(qa)},zn.createElement("div",{style:{flex:1,textAlign:"start"}},zn.createElement("a",{onClick:()=>{var uo,xo;ii(Ro(ro({},qa),{question_type:Cr||qa!=null&&qa.challenge_names?5:(xo=(uo=jo==null?void 0:jo.filter(Xo=>Xo.value===(qa==null?void 0:qa.item_type)))==null?void 0:uo[0])==null?void 0:xo.question_type})),bo(!0)}},"\u67E5\u770B"),(qa==null?void 0:qa.shixun_tag_num)===1&&zn.createElement("a",{style:{marginLeft:10},onClick:()=>{Ye.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:zn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",zn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${qa==null?void 0:qa.identifier}/challenges`)}},(qa==null?void 0:qa.shixun_name)||"--"),"\uFF1F"),onOk:()=>zo(void 0,null,function*(){if(!Wl(qa==null?void 0:qa.identifier))return new Promise((uo,xo)=>{xo()})})})}},"\u53D1\u5E03")))}].filter(ua=>!ua.hidden)}),zn.createElement(oa.Z,{current:bt.page,total:(Ua==null?void 0:Ua.items_count)||(Ua==null?void 0:Ua.shixuns_count),style:{marginBottom:20},defaultPageSize:bt.per_page,showTotal:ua=>zn.createElement("span",null,"\u5171\xA0",zn.createElement("span",{style:{color:"#165DFF"}},ua),"\xA0\u6761\u6570\u636E"),pageSize:bt.per_page,onChange:(ua,qa)=>{bt.page=ua,bt.per_page=qa,sn(ro({},bt)),Ui(ro({},bt))}}),zn.createElement("div",{className:Ba.bottom},zn.createElement(We.ZP,{className:Ba.no,onClick:()=>{ce(!1)}},"\u53D6\u6D88"),zn.createElement(We.ZP,{loading:tn,style:{width:tn&&75},className:Ba.yes,onClick:()=>zo(void 0,null,function*(){if((ta==null?void 0:ta.length)<=0){Ae.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let ua=yield(0,Or.Tr)({id:[...ta==null?void 0:ta.filter(qa=>So.includes(qa))],course_id:sl.coursesId,type:"shixun"});(ua==null?void 0:ua.student_count)===0?Pe([...il.current],[...ta==null?void 0:ta.filter(qa=>So.includes(qa))],!0,ta==null?void 0:ta.length):ki(ua)})},"\u786E\u8BA4"))),zn.createElement(Ye.default,{open:Za,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Ba.previewModal,width:1e3,centered:!0,onCancel:()=>{bo(!1)},onOk:()=>{bo(!1)}},zn.createElement(Ln,{qitem:cr})),zn.createElement(Hr.Z,{resdata:Fi,type:"exercise",okloading:tn,oktext:(Fi==null?void 0:Fi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ua=>zo(void 0,null,function*(){const qa=[],Wo=[];for(const uo of Fi==null?void 0:Fi.can_copy_list)qa.push(uo.id);Rl(),yield Pe([...il.current],[...ri.current].filter(uo=>!Wo.includes(uo)),!0,ta==null?void 0:ta.length,qa)})}))};var Ii=(0,de.connect)(({shixunsDetail:ce,exercise:pe})=>({shixunsDetail:ce,exercise:pe}))(Di),fi=ee(90502),Mo=ee(59301),ol=Object.defineProperty,Xi=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Pt=(ce,pe,Pe)=>pe in ce?ol(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Et=(ce,pe)=>{for(var Pe in pe||(pe={}))Ue.call(pe,Pe)&&Pt(ce,Pe,pe[Pe]);if(Ce)for(var Pe of Ce(pe))rt.call(pe,Pe)&&Pt(ce,Pe,pe[Pe]);return ce},$t=(ce,pe)=>Xi(ce,Ee(pe)),Yt=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())}),xn=({qitem:ce,TagDiscipline:pe,exerciseitem:Pe,setisedit:Lt,seveeditor:tn,deleteitem:Aa,getTagData:ma,init:Tn,showTip:jt=!1})=>{var Jn;const[Fn]=Be.default.useForm(),bt=!0;return(0,b.useEffect)(()=>{var sn,An,ia;Fn.setFieldsValue($t(Et({},ce),{standard_answers:ce.standard_answer,difficulty:(ce==null?void 0:ce.difficult)||2,item_banks_group_id:ce.item_banks_group_id,hack:$t(Et({},ce),{time_limit:(ce==null?void 0:ce.time_limit)||3}),hack_codes:{language:(sn=ce==null?void 0:ce.program_attr)==null?void 0:sn.language,code:Hl.Base64.decode(((An=ce==null?void 0:ce.program_attr)==null?void 0:An.code)||"")},hack_sets:Et({},(ia=ce==null?void 0:ce.hack_sets)==null?void 0:ia[0]),repeat_answer:!ce.repeat_answer}))},[ce]),Mo.createElement("div",null,Mo.createElement(Be.default,{form:Fn,colon:!1,onValuesChange:(sn,An)=>{var ia,Zn,xa,ta;if(sn!=null&&sn.standard_answers){let la=((ia=Fn.getFieldValue("standard_answers"))==null?void 0:ia.length)>0&&((xa=(Zn=Fn.getFieldValue("standard_answers"))==null?void 0:Zn.map(Ua=>Ua.score))==null?void 0:xa.filter(Ua=>Ua));(la==null?void 0:la.length)>0&&Fn.setFieldsValue({question_score:(la==null?void 0:la.length)>0&&((ta=la.reduce((Ua,bn)=>Ua+bn))==null?void 0:ta.toFixed(1))})}},onFinish:sn=>{var An;tn($t(Et(Et({},ce),sn),{item_type:ce==null?void 0:ce.question_type,standard_answers:(An=sn.standard_answers)==null?void 0:An.map((ia,Zn)=>$t(Et({},ia),{position:Zn+1})),hack_codes:$t(Et({},sn.hack_codes),{code:Hl.Base64.encode(sn.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:sn=>Yt(void 0,null,function*(){var An,ia;Ae.ZP.error(sn.errorFields[0].errors[0]),Fn.scrollToField((ia=(An=sn==null?void 0:sn.errorFields)==null?void 0:An[0])==null?void 0:ia.name,{behavior:"smooth",block:"center"})})},Mo.createElement("div",{style:{display:"flex",alignItems:"center"}},Mo.createElement("div",{style:{flex:1}},Mo.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Mo.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((Jn=Pe==null?void 0:Pe.exercise)==null?void 0:Jn.exercise_status)==1&&!(ce!=null&&ce.isadd)&&Mo.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Aa()}},Mo.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Mo.createElement(We.ZP,{onClick:()=>{var sn,An,ia,Zn;ce.isadd?(Lt(!1),Tn()):(Fn.setFieldsValue($t(Et({},ce),{standard_answers:ce.standard_answer,difficulty:ce.difficult,item_banks_group_id:ce.item_banks_group_id,hack:$t(Et({},ce),{sub_discipline_id:(sn=Pe==null?void 0:Pe.exercise)==null?void 0:sn.sub_discipline_id,tag_discipline_ids:[]}),hack_codes:{language:(An=ce==null?void 0:ce.program_attr)==null?void 0:An.language,code:Hl.Base64.decode((ia=ce==null?void 0:ce.program_attr)==null?void 0:ia.code)},hack_sets:Et({},(Zn=ce==null?void 0:ce.hack_sets)==null?void 0:Zn[0]),repeat_answer:!ce.repeat_answer})),Lt(!1))}},"\u53D6\u6D88"),Mo.createElement(ct.Z,{overlayClassName:mt.shake,open:jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Mo.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Mo.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Mo.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{Fn.submit()}},"\u4FDD\u5B58"))),Mo.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Mo.createElement(Vt.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Mo.createElement(fi.t,{form:Fn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:bt,hackidentifier:ce==null?void 0:ce.hack_identifier,answerKey:"standard_answers"}),Mo.createElement(Vn,{getTagData:ma,qitem:ce,exerciseitem:Pe,TagDiscipline:pe,form:Fn}))))},pn=ee(3294),hn=ee(88918),qn=ee(94941),aa=ee(89392),ca=ee(36061),Oa=ee(14791),Ht=ee(59301),Ja=Object.defineProperty,_a=Object.defineProperties,nr=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,jr=(ce,pe,Pe)=>pe in ce?Ja(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,_r=(ce,pe)=>{for(var Pe in pe||(pe={}))Kr.call(pe,Pe)&&jr(ce,Pe,pe[Pe]);if(Rr)for(var Pe of Rr(pe))Dr.call(pe,Pe)&&jr(ce,Pe,pe[Pe]);return ce},er=(ce,pe)=>_a(ce,nr(pe)),tr=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())});const{confirm:fr}=Ye.default,Ga=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],ar=({user:ce,dispatch:pe,itemid:Pe,setisedits:Lt,exercise:tn,setitemid:Aa})=>{var ma,Tn,jt,Jn,Fn,bt,sn,An,ia,Zn,xa,ta,la,Ua,bn,Ca,Ha,Yr,cr,ii,Za,bo,Cr,to,So,Ei,mi;const[hr,po]=(0,b.useState)(),[Vi,Ri]=(0,b.useState)(!1),[ea,Co]=(0,b.useState)(),[Mi,jo]=(0,b.useState)(),Fi=(0,b.useRef)(),ki=(0,b.useRef)(),[ri,il]=(0,b.useState)(),[ll,jl]=(0,b.useState)(!1),[Oi,dl]=(0,b.useState)(!1),[Bl,Gl]=(0,b.useState)(),[No,Pi]=(0,b.useState)(!1),[Ui,Zi]=(0,b.useState)(!1),[hl,ul]=(0,b.useState)(!1),[sl,wl]=(0,b.useState)(!1),[Rl,ml]=(0,b.useState)(!1),[qi,Wl]=(0,b.useState)(!1),Jo=(0,de.useParams)(),[vu,pu]=(0,b.useState)(!1),[Kl]=Be.default.useForm(),[gu,ua]=(0,b.useState)(!1),[qa,Wo]=(0,b.useState)(!1),[uo,xo]=(0,b.useState)(!1),[Xo,$i]=(0,b.useState)(!1),Ai=(0,b.useRef)();(0,b.useEffect)(()=>{Pe&&el()},[Pe]),(0,b.useEffect)(()=>{Lt(Oi)},[Oi]),(0,b.useEffect)(()=>{ea!=null&&ea.question_id&&(jo(ea==null?void 0:ea.question_score),ki.current=ea==null?void 0:ea.question_id)},[ea]);const fl=Qa=>tr(void 0,null,function*(){let oo=yield pe({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:Qa}});pe({type:"globalSetting/footerToggle",payload:!1}),Gl(oo)});function el(){return tr(this,null,function*(){var Qa,oo,Qo,di,ti,Ko;jl(!0),Ri(!0);const Li=yield pe({type:"exercise/editExercise",payload:{categoryId:Pe}});jl(!1),Ri(!1),po(Li),ml(!1),(Qa=Li==null?void 0:Li.exercise)!=null&&Qa.sub_discipline_id&&fl((oo=Li==null?void 0:Li.exercise)==null?void 0:oo.sub_discipline_id),Co(er(_r({},(ti=(di=(Qo=Li==null?void 0:Li.exercise_question_types)==null?void 0:Qo[0])==null?void 0:di.items)==null?void 0:ti[0]),{index:1})),il(er(_r({},(Ko=Li==null?void 0:Li.exercise_question_types)==null?void 0:Ko[0]),{indexs:1}))})}function Ml(Qa,oo=!0){return tr(this,null,function*(){var Qo,di,ti,Ko;oo&&(jl(!0),Ri(!0));const Li=yield pe({type:"exercise/editExercise",payload:{categoryId:Pe}});po(Li);let Ki=[];(Qo=Li==null?void 0:Li.exercise_question_types)==null||Qo.map(Ol=>{var Ul;(Ul=Ol==null?void 0:Ol.items)==null||Ul.map((Eu,Du)=>{Ki.push(er(_r({},Eu),{index:Du+1}))})});let bl=(di=Ki.filter(Ol=>Ol.question_id===(Qa==null?void 0:Qa.id)))==null?void 0:di[0],Su=(Ko=((ti=Li==null?void 0:Li.exercise_question_types)==null?void 0:ti.map((Ol,Ul)=>{if((bl==null?void 0:bl.question_type)===(Ol==null?void 0:Ol.question_type))return er(_r({},Ol),{indexs:Ul+1})})).filter(Ol=>Ol))==null?void 0:Ko[0];il(_r({},Su)),Co(_r({},bl)),jo(bl==null?void 0:bl.question_score),jl(!1),Ri(!1),ml(!1)})}function ou(Qa){return tr(this,null,function*(){var oo;let Qo=er(_r({},Qa),{repeat_answer:!Qa.repeat_answer,difficulty:(Qa==null?void 0:Qa.difficulty)||2,item_type:Qa.question_type,sub_discipline_id:((oo=Qa==null?void 0:Qa.sub_discipline_id)==null?void 0:oo[1])||"",tag_discipline_ids:[],hack:er(_r({},Qa==null?void 0:Qa.hack),{difficult:(Qa==null?void 0:Qa.difficulty)||2}),hack_identifier:sessionStorage.projectFill});Qa.tag_discipline_ids&&(Qo.tag_discipline_ids=Array.isArray(Qa.tag_discipline_ids)?Qa.tag_discipline_ids:[Qa.tag_discipline_ids]);let di=Rl?`/api/exercises/${Pe}/exercise_questions`:`/api/exercise_questions/${Qa==null?void 0:Qa.question_id}.json`;if((Qa==null?void 0:Qa.is_my)===1){const ti=fr({title:"\u63D0\u793A",content:Ht.createElement("div",null,Ht.createElement("p",null,"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F"),Ht.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{ti.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>tr(this,null,function*(){Qo.is_cover=1;let Ko=yield(0,ne.ZP)(di,{method:Rl?"post":"PUT",body:_r({},Qo)});(Ko==null?void 0:Ko.status)===0&&(dl(!1),Ml({id:(Ko==null?void 0:Ko.exercise_question_id)||(Qa==null?void 0:Qa.question_id)})),ti.destroy()}),onCancel:()=>tr(this,null,function*(){let Ko=yield(0,ne.ZP)(di,{method:Rl?"post":"PUT",body:_r({},Qo)});(Ko==null?void 0:Ko.status)===0&&(dl(!1),Ml({id:(Ko==null?void 0:Ko.exercise_question_id)||(Qa==null?void 0:Qa.question_id)})),ti.destroy()})})}else{let ti=yield(0,ne.ZP)(di,{method:Rl?"post":"PUT",body:_r({},Qo)});(ti==null?void 0:ti.status)===0&&(dl(!1),Ml({id:(ti==null?void 0:ti.exercise_question_id)||(Qa==null?void 0:Qa.question_id)}))}(0,It.Vf)("#question-scroll-id")})}function ei(Qa){return tr(this,null,function*(){var oo,Qo;Ri(!0);let di=yield(0,ne.ZP)(`/api/exercises/${Pe}/sort_question_type.json`,{method:"post",body:{question_type:Qa}});if(Ri(!1),(di==null?void 0:di.status)===0){const ti=yield pe({type:"exercise/editExercise",payload:{categoryId:Pe}});po(ti),ml(!1),(oo=ti==null?void 0:ti.exercise)!=null&&oo.sub_discipline_id&&fl((Qo=ti==null?void 0:ti.exercise)==null?void 0:Qo.sub_discipline_id)}})}const Hi=(Qa,oo,Qo)=>tr(void 0,null,function*(){var di;if(Qa.length===0){Ae.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Qo();return}const ti={id:Jo==null?void 0:Jo.exerciseId,file:(di=Qa[0])==null?void 0:di.file,sub_discipline_id:oo};Vl(ti,`${pn.Z.API_SERVER}/api/courses/${Jo==null?void 0:Jo.coursesId}/exercises/import_exercise.json`,Ko=>{var Li;if((Ko==null?void 0:Ko.status)===0){const Ki={};(Li=Ko==null?void 0:Ko.fail)==null||Li.forEach($l=>{var Su;((Su=Object.keys(Ki))==null?void 0:Su.includes($l.message))?Ki[$l.message]=Ki[$l.message]+1:Ki[$l.message]=1});let bl=`\u6210\u529F\u5BFC\u5165${Ko==null?void 0:Ko.success}\u6761`;Object.keys(Ki).forEach($l=>{bl=bl+`,${$l}${Ki[$l]}\u6761`}),Ae.ZP.success(bl),Pi(!1),el()}(Ko==null?void 0:Ko.status)===-1&&(Ae.ZP.error(Ko==null?void 0:Ko.message),Qo())})}),Dl=(Qa,oo)=>tr(void 0,null,function*(){const Qo=yield(0,qn.zR)({score:(0,aa.round)(Qa,1),question_id:oo==null?void 0:oo.question_id});if((Qo==null?void 0:Qo.status)===0){Ae.ZP.success("\u4FEE\u6539\u6210\u529F"),Ml({id:ki.current},!1);return}(Qo==null?void 0:Qo.status)===-1&&jo(oo==null?void 0:oo.question_score)}),Sl=()=>{$i(!0)};(0,b.useEffect)(()=>{if(Xo){const Qa=setTimeout(()=>{$i(!1)},2e3);return()=>clearTimeout(Qa)}},[Xo]);const Vl=(Qa,oo,Qo,di,ti)=>{const Ko=new FormData;Object.keys(Qa).forEach(Ki=>{Ko.append(Ki,Qa[Ki])});const Li=new window.XMLHttpRequest;return Li.withCredentials=!0,Li.addEventListener("load",function(Ki){var bl;Qo(JSON.parse((bl=Ki==null?void 0:Ki.target)==null?void 0:bl.response))},!1),Li.addEventListener("error",function(Ki){ti&&ti(Ki)},!1),Li.upload.onprogress=Ki=>{di&&di(Ki)},Li.open("POST",oo),Li.send(Ko),Li};function kl(){return tr(this,null,function*(){Ye.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:mt.modalconfirm,onOk:()=>tr(this,null,function*(){if(ea.question_id){let Qa=yield(0,ne.ZP)(`/api/exercise_questions/${ea.question_id}.json`,{method:"delete"});(Qa==null?void 0:Qa.status)===0&&(el(),dl(!1))}else Co({}),dl(!1),el()}),cancelText:"\u53D6\u6D88"})})}const Ku=Qa=>tr(void 0,null,function*(){return yield(0,ne.ZP)(`/api/exercises/${Pe}/select_questions.json`,{method:"post",body:_r({},Qa)})}),{overflow:Vu,handleMouseEnter:$u,handleMouseLeave:hu}=(0,hn.I)(),Es=(Qa,oo)=>Ht.createElement(Zt.default,null,Ht.createElement(Zt.default.Item,{key:"0",onClick:()=>vs(Qa==null?void 0:Qa.question_type)},Ht.createElement("span",{className:mt.moreSpan},"\u65B0\u589E")),Ht.createElement(Zt.default.Item,{key:"1",disabled:oo===0,onClick:()=>tr(void 0,null,function*(){if(oo===0)return;if(Oi){Sl();return}let Qo=(0,It.rz)(hr==null?void 0:hr.exercise_question_types,oo,oo-1);yield ei(Qo.map(di=>di.name))})},Ht.createElement("span",{className:mt.moreSpan},"\u4E0A\u79FB")),Ht.createElement(Zt.default.Item,{key:"2",disabled:oo===(hr==null?void 0:hr.exercise_question_types.length)-1,onClick:()=>tr(void 0,null,function*(){if(oo===(hr==null?void 0:hr.exercise_question_types.length)-1)return;if(Oi){Sl();return}let Qo=(0,It.rz)(hr==null?void 0:hr.exercise_question_types,oo,oo+1);yield ei(Qo.map(di=>di.name))})},Ht.createElement("span",{className:mt.moreSpan},"\u4E0B\u79FB")),Ht.createElement(Zt.default.Item,{key:"3",onClick:()=>{var Qo;Kl.setFieldsValue({name:Qa.name,item_type_en:(Qo=Ga.find(di=>di.id==Qa.question_type))==null?void 0:Qo.nameType}),ua(!0)}},Ht.createElement("span",{className:mt.moreSpan},"\u91CD\u547D\u540D"))),vs=Qa=>{var oo,Qo,di,ti,Ko,Li,Ki,bl,$l,Su,Ol,Ul,Eu,Du,ps,hs,yi,Ur,Io,bi,Ji,Pu,Ql,iu;if(Oi){Sl();return}if(ml(!0),Qa===5){ul(!0),wl(!0);return}if(Qa===6){let ql=(Qo=(oo=tn==null?void 0:tn.editData)==null?void 0:oo.exercise)!=null&&Qo.set_question_sub_discipline?`/problems/newcreate?express_id=${(di=hr==null?void 0:hr.exercise)==null?void 0:di.id}&callback_url=/classrooms/${Jo.coursesId}/exercise/add/${Pe}?type=2&discipline_id=${(Ko=(ti=tn==null?void 0:tn.editData)==null?void 0:ti.exercise)==null?void 0:Ko.discipline_id}&sub_discipline_id=${(Ki=(Li=tn==null?void 0:tn.editData)==null?void 0:Li.exercise)==null?void 0:Ki.sub_discipline_id}`:`/problems/newcreate?express_id=${(bl=hr==null?void 0:hr.exercise)==null?void 0:bl.id}&callback_url=/classrooms/${Jo.coursesId}/exercise/add/${Pe}?type=2`;de.history.push(ql);return}dl(!0),Co(Qa===2?{question_type:Qa,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",question_title:"",tag_discipline_ids:[],discipline_id:(Su=($l=tn==null?void 0:tn.editData)==null?void 0:$l.exercise)!=null&&Su.set_question_sub_discipline?(Ul=(Ol=tn==null?void 0:tn.editData)==null?void 0:Ol.exercise)==null?void 0:Ul.discipline_id:0,sub_discipline_id:(Du=(Eu=tn==null?void 0:tn.editData)==null?void 0:Eu.exercise)!=null&&Du.set_question_sub_discipline?(hs=(ps=tn==null?void 0:tn.editData)==null?void 0:ps.exercise)==null?void 0:hs.sub_discipline_id:0,analysis:""}:{question_type:Qa,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],is_ordered:!0,question_title:"",use_keywords:!1,keywords:[],use_blank_score:!0,allow_student_debug:!1,submit_rule:1,discipline_id:(Ur=(yi=tn==null?void 0:tn.editData)==null?void 0:yi.exercise)!=null&&Ur.set_question_sub_discipline?(bi=(Io=tn==null?void 0:tn.editData)==null?void 0:Io.exercise)==null?void 0:bi.discipline_id:0,sub_discipline_id:(Pu=(Ji=tn==null?void 0:tn.editData)==null?void 0:Ji.exercise)!=null&&Pu.set_question_sub_discipline?(iu=(Ql=tn==null?void 0:tn.editData)==null?void 0:Ql.exercise)==null?void 0:iu.sub_discipline_id:0,downcase:!0,no_space:!0})},ds=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Pi(!0)}},{key:2,label:Ht.createElement("div",null,Ht.createElement("img",{width:26,style:{position:"absolute",top:-2},src:Oa.$}),Ht.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(Oi){Sl();return}Wo(!0)}}];return console.log(ri==null?void 0:ri.question_type,ea==null?void 0:ea.question_type),Ht.createElement("div",null,Ht.createElement(On.Z,{spinning:ll},Ht.createElement("div",{className:mt.bg},((ma=hr==null?void 0:hr.exercise_types)==null?void 0:ma.q_counts)===0&&!Oi&&Ht.createElement(ut.Z,{styles:{marginTop:180},customText:Ht.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Ht.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((Tn=hr==null?void 0:hr.exercise_types)==null?void 0:Tn.q_counts)>0||Oi)&&Ht.createElement("div",{style:{textAlign:"center"}},Ht.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Ht.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Ht.createElement("div",{className:mt.left},Ht.createElement("div",{className:mt.leftAction},((jt=hr==null?void 0:hr.exercise)==null?void 0:jt.exercise_status)===1&&Ht.createElement(We.ZP,{onClick:()=>{if(Oi){Sl();return}Zi(!0)},className:mt.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Ht.createElement("div",{className:mt.scrollWrapper,style:{overflow:Vu},onMouseEnter:$u,onMouseLeave:hu},(Jn=hr==null?void 0:hr.exercise_question_types)==null?void 0:Jn.map((Qa,oo)=>Ht.createElement("div",{key:oo,className:"mb30"},Ht.createElement("div",{className:mt.title},Ht.createElement("div",{className:mt.titleleft},Ht.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,It.EM)(oo+1),"\u3001\u3010",Qa.name,"\u3011"),Ht.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",Qa.count,"\u5C0F\u9898\uFF0C\u5171",Qa.score,"\u5206\uFF09")),Ht.createElement(_e.Z,{dropdownRender:()=>Es(Qa,oo),placement:"bottomLeft"},Ht.createElement("div",{className:mt.more_style},Ht.createElement("i",{className:"iconfont icon-sandian font12"})))),Ht.createElement(cn,{handleEditing:Sl,isedit:Oi,setBigqitem:il,bigitem:er(_r({},Qa),{indexs:oo+1}),setqitem:Qo=>tr(void 0,null,function*(){var di;(di=Fi.current)==null||di.blur(),Co(Qo)}),qitem:ea,Itemid:Pe,getdata:Ml,data:Qa.items})))))),Ht.createElement("div",{id:"question-scroll-id",style:{overflow:Oi?"hidden":"auto"},className:mt.right},!(ea!=null&&ea.isadd)&&Ht.createElement("div",{className:mt.title},!Oi&&Ht.createElement("div",{style:{flex:1}},Ht.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(ri==null?void 0:ri.indexs)&&(0,It.EM)(ri==null?void 0:ri.indexs),"\u3001\u3010",ri==null?void 0:ri.name,"\u3011"),Ht.createElement(ct.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Ht.createElement("i",{className:`${mt.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var Qa;Kl.setFieldsValue({name:ri.name,item_type_en:(Qa=Ga.find(oo=>oo.id==ri.question_type))==null?void 0:Qa.nameType}),ua(!0)}})),Ht.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",ri==null?void 0:ri.count,"\u5C0F\u9898\uFF0C\u5171",ri==null?void 0:ri.score,"\u5206\uFF09"),(ea==null?void 0:ea.question_type)===6&&Ht.createElement("span",{onClick:()=>{Ye.default.destroyAll(),xo(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(ea==null?void 0:ea.question_type)===5&&Ht.createElement(st.default,{defaultChecked:(bt=(Fn=tn==null?void 0:tn.editData)==null?void 0:Fn.exercise)==null?void 0:bt.show_challenge_task_pass,onChange:Qa=>tr(void 0,null,function*(){let oo=yield(0,ne.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:Qa.target.checked}});(oo==null?void 0:oo.status)===0&&(Ae.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ml({id:ki.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),(ea==null?void 0:ea.question_type)===6&&Ht.createElement("span",{style:{marginLeft:20},onClick:()=>{var Qa,oo,Qo,di;Ye.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Ht.createElement("div",null,(ea==null?void 0:ea.question_type)===6&&Ht.createElement(st.default,{defaultChecked:(oo=(Qa=tn==null?void 0:tn.editData)==null?void 0:Qa.exercise)==null?void 0:oo.show_hack_sets,onChange:ti=>tr(void 0,null,function*(){let Ko=yield(0,ne.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_hack_sets:ti.target.checked}});(Ko==null?void 0:Ko.status)===0&&(Ae.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ye.default.destroyAll(),Ml({id:ki.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Ht.createElement("br",null),(ea==null?void 0:ea.question_type)===6&&Ht.createElement(st.default,{defaultChecked:(di=(Qo=tn==null?void 0:tn.editData)==null?void 0:Qo.exercise)==null?void 0:di.show_hack_description,onChange:ti=>tr(void 0,null,function*(){let Ko=yield(0,ne.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_hack_description:ti.target.checked}});(Ko==null?void 0:Ko.status)===0&&(Ae.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ye.default.destroyAll(),Ml({id:ki.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),Ht.createElement("div",{style:{display:"flex",alignItems:"center"}},(ea==null?void 0:ea.question_type)===5&&!Oi&&Ht.createElement("a",{className:mt.shixun,href:`/shixuns/${ea==null?void 0:ea.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Ht.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"),!Oi&&((sn=hr==null?void 0:hr.exercise)==null?void 0:sn.exercise_status)==1&&[0,1,2,4,6].includes(ea==null?void 0:ea.question_type)&&Ht.createElement(Be.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Ht.createElement(Ve.Z,{precision:1,ref:Fi,onChange:Qa=>jo(Qa),value:Mi,onBlur:Qa=>{Dl(Qa.target.value,ea)}})),!Oi&&((An=hr==null?void 0:hr.exercise)==null?void 0:An.exercise_status)==1&&Ht.createElement(ct.Z,{title:"\u5220\u9664"},Ht.createElement("i",{onClick:()=>{kl()},style:{marginRight:20},className:`${mt.delete} iconfont icon-shanchu13 mr8 ml8 `})),(ea==null?void 0:ea.question_type)!==5&&!Oi&&Ht.createElement(Ht.Fragment,null,(ea==null?void 0:ea.is_my)==1&&Ht.createElement(ct.Z,{title:"\u67E5\u770B\u539F\u9898"},Ht.createElement("i",{className:`${mt.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{(ea==null?void 0:ea.question_type)==6?window.open(`/problems/newedit/${ea==null?void 0:ea.item_bank_hack_identifier}`):(ea==null?void 0:ea.question_type)==8?window.open(`/problemset/edit/${ea==null?void 0:ea.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${ea==null?void 0:ea.item_bank_id}`)}})),Ht.createElement(ct.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},Ht.createElement("i",{className:`${mt.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Ai.current=[],Ye.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u6211\u7684\u9898\u5E93",maskClosable:!0,className:"custom-modal-divider",icon:null,content:Ht.createElement("div",{className:`font14 ${mt.overflow}`,style:{maxHeight:500,overflow:"auto"}},Ht.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),Ht.createElement(On.Z,{spinning:!1},Ht.createElement(ca.Z,{defaultValue:!0,value:Ai.current,onChange:Qa=>Ai.current=Qa}))),onOk:()=>tr(void 0,null,function*(){var Qa;(0,qn.$l)({id:ea==null?void 0:ea.question_id,group_id:((Qa=Ai==null?void 0:Ai.current)==null?void 0:Qa[0])||""}).then(oo=>{(oo==null?void 0:oo.status)==0&&(Ae.ZP.success("\u52A0\u5165\u6210\u529F"),el())})})})}}))),!Oi&&(((ia=hr==null?void 0:hr.exercise)==null?void 0:ia.exercise_status)==1||((Zn=hr==null?void 0:hr.exercise)==null?void 0:Zn.exercise_status)==2&&((ta=(xa=ce.userInfo)==null?void 0:xa.course)==null?void 0:ta.course_role)!=15||((la=hr==null?void 0:hr.exercise)==null?void 0:la.exercise_status)==3&&((bn=(Ua=ce.userInfo)==null?void 0:Ua.course)==null?void 0:bn.course_role)!=15||((Ca=hr==null?void 0:hr.exercise)==null?void 0:Ca.exercise_status)==4&&((Yr=(Ha=ce.userInfo)==null?void 0:Ha.course)==null?void 0:Yr.course_role)!=15)&&Ht.createElement(ct.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Ht.createElement("i",{onClick:()=>{(ea==null?void 0:ea.question_type)===6?de.history.push(`/problems/newedit/${ea==null?void 0:ea.hack_identifier}?type=exercises&express_id=${Jo.exerciseId}&question_id=${ea==null?void 0:ea.question_id}&score=${ea==null?void 0:ea.question_score}&exercise=true&callback_url=/classrooms/${Jo.coursesId}/exercise/add/${Pe}?type=2`):dl(!0)},className:`${mt.edit} iconfont icon-bianji_Hover ml8`})))),!Oi&&Ht.createElement("div",null,Ht.createElement("div",{className:mt.qcount},Ht.createElement("span",{className:mt.score},ea==null?void 0:ea.question_score,"\u5206"),Ht.createElement(fe.Z,{className:mt.qtitle,value:(ea==null?void 0:ea.index)+`\u3001${(ea==null?void 0:ea.question_type)==8?(cr=ea==null?void 0:ea.program_attr)==null?void 0:cr.description:ea==null?void 0:ea.question_title}`}),(ea==null?void 0:ea.high_resources_consume)&&Ht.createElement(vr.Z,{type:"shixun",style:{marginLeft:10}})),(ea==null?void 0:ea.question_type)===6&&Ht.createElement(at.Z,{onEdit:()=>xo(1),className:"mt10",dataSource:(ea==null?void 0:ea.languages)||[]}),Ht.createElement(wu,{exercise:tn,TagDiscipline:Bl,qitem:ea})),Oi&&Ht.createElement("div",null,(ea==null?void 0:ea.question_type)<=1&&Ht.createElement(Ot,{deleteitem:kl,getTagData:fl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,init:el,showTip:Xo}),(ea==null?void 0:ea.question_type)===5&&Ht.createElement(ju,{setqitem:Co,deleteitem:kl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,showTip:Xo}),(ea==null?void 0:ea.question_type)===3&&Ht.createElement(ya,{deleteitem:kl,getTagData:fl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,init:el,showTip:Xo}),(ea==null?void 0:ea.question_type)===2&&Ht.createElement($n,{deleteitem:kl,getTagData:fl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,init:el,showTip:Xo}),(ea==null?void 0:ea.question_type)===4&&Ht.createElement(ye,{deleteitem:kl,getTagData:fl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,init:el,showTip:Xo}),(ea==null?void 0:ea.question_type)===7&&Ht.createElement(au,{deleteitem:kl,getTagData:fl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,init:el,showTip:Xo}),(ea==null?void 0:ea.question_type)===8&&Ht.createElement(xn,{deleteitem:kl,getTagData:fl,seveeditor:ou,exerciseitem:hr,TagDiscipline:Bl,setisedit:dl,qitem:ea,init:el,showTip:Xo}))))))),Ht.createElement("div",{className:mt.bottomdiv},Ht.createElement("div",{className:mt.exercise_styles},((ii=hr==null?void 0:hr.exercise)==null?void 0:ii.exercise_status)==1&&Ht.createElement(Ht.Fragment,null,Ht.createElement("span",{className:mt.spanBtn,onClick:()=>{if(Oi){Sl();return}ul(!0),wl(!1)}},"\u9898\u5E93\u9009\u9898"),Ht.createElement(_e.Z,{menu:{items:ds}},Ht.createElement("span",{className:mt.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Ht.createElement("span",{className:mt.spanBtn,onClick:()=>tr(void 0,null,function*(){var Qa;let oo=yield(0,ne.ZP)(`/api/exercises/${Jo==null?void 0:Jo.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:Jo==null?void 0:Jo.coursesId,categoryId:Jo==null?void 0:Jo.exerciseId}});(oo==null?void 0:oo.status)!=-1&&window.open(`/classrooms/${Jo==null?void 0:Jo.coursesId}/exercise/${Jo==null?void 0:Jo.exerciseId}/${(Qa=ce.userInfo)==null?void 0:Qa.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Ht.createElement("span",{className:mt.spanBtn,onClick:()=>{window.open(`/classrooms/${Jo==null?void 0:Jo.coursesId}/exercise/${Jo==null?void 0:Jo.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),Ga==null?void 0:Ga.map(Qa=>Ht.createElement(We.ZP,{className:mt.addQuestionBtn,key:Qa.id,type:"primary",onClick:()=>{vs(Qa.id)}},Qa.name))),((Za=hr==null?void 0:hr.exercise)==null?void 0:Za.exercise_status)!=1&&Ht.createElement(Ht.Fragment,null,Ht.createElement("span",{style:{width:"1022px"}})),Ht.createElement("span",{className:mt.saveBtn,onClick:()=>{var Qa,oo,Qo;if(Oi){Sl();return}let di=(oo=(Qa=hr==null?void 0:hr.exercise_question_types)==null?void 0:Qa.filter(Ko=>Ko.question_type===5)[0])==null?void 0:oo.items,ti=0;di==null||di.map(Ko=>{Ko.high_resources_consume&&(ti=ti+1)}),console.log(ti),ti>0?pe({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:ti,fn:()=>{var Ko;((Ko=hr==null?void 0:hr.exercise)==null?void 0:Ko.exercise_status)==1?(Ae.ZP.success("\u4FDD\u5B58\u6210\u529F"),de.history.push(`/classrooms/${Jo==null?void 0:Jo.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Wl(!1)):de.history.back()}}}):((Qo=hr==null?void 0:hr.exercise)==null?void 0:Qo.exercise_status)==1?(Ae.ZP.success("\u4FDD\u5B58\u6210\u529F"),de.history.push(`/classrooms/${Jo==null?void 0:Jo.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Wl(!1)):de.history.back()}},Ht.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Ht.createElement(Kt,{setScoreShow:Zi,ScoreShow:Ui,exerciseitem:hr,getdata:el}),hl&&Ht.createElement(Ii,{setScoreShow:ul,isshixuns:sl,isloadings:vu,ScoreShow:hl,onOk:(Qa,oo,Qo,di,ti)=>tr(void 0,null,function*(){pu(!0);let Li=yield Ku({exam_id:Pe,item_bank_ids:Qa,shixun_ids:oo,shixun_copy_ids:ti});pu(!1),(Li==null?void 0:Li.status)===0&&Ye.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{el()},onCancel:()=>{ul(!1),el()}})})}),Ht.createElement(ts.Z,{sub_discipline_id:(bo=hr==null?void 0:hr.exercise)!=null&&bo.sub_discipline_id?[(Cr=hr==null?void 0:hr.exercise)==null?void 0:Cr.discipline_id,(to=hr==null?void 0:hr.exercise)==null?void 0:to.sub_discipline_id]:[],visible:No,onCancel:()=>Pi(!1),onOk:Hi}),Ht.createElement(Ye.default,{title:"\u63D0\u793A",open:qi,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Ht.createElement("div",null,Ht.createElement(We.ZP,{onClick:()=>{Wl(!1),de.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),Ht.createElement(We.ZP,{type:"primary",onClick:()=>{de.history.push(`/classrooms/${Jo==null?void 0:Jo.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Wl(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Wl(!1)}},Ht.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),Ht.createElement(Ye.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:gu,width:500,onOk:()=>Kl.submit(),onCancel:()=>ua(!1)},Ht.createElement(Be.default,{form:Kl,initialValues:{},onFinish:Qa=>tr(void 0,null,function*(){(yield(0,qn.RK)(_r({id:Pe},Qa))).status==0&&(Ae.ZP.success("\u4FEE\u6539\u6210\u529F"),el(),ua(!1))})},Ht.createElement(Be.default.Item,{name:"name",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(Qa,oo){var Qo,di,ti,Ko;const Li=(Qo=Ga==null?void 0:Ga.find(Ki=>Ki.nameType==Kl.getFieldValue("item_type_en")))==null?void 0:Qo.id;return(Ko=(ti=(di=hr==null?void 0:hr.exercise_question_types)==null?void 0:di.filter(Ki=>Ki.question_type!=Li))==null?void 0:ti.map(Ki=>Ki==null?void 0:Ki.name))!=null&&Ko.includes(oo)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},Ht.createElement(Me.default,{size:"large",maxLength:10,showCount:!0})),Ht.createElement(Be.default.Item,{hidden:!0,name:"item_type_en"},Ht.createElement(Me.default,{size:"large"})))),Ht.createElement(kt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:qa},Ht.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Ht.createElement(Oa.Z,{stickyTop:-24,subDisciplineId:(So=hr==null?void 0:hr.exercise)!=null&&So.sub_discipline_id?[(Ei=hr==null?void 0:hr.exercise)==null?void 0:Ei.discipline_id,(mi=hr==null?void 0:hr.exercise)==null?void 0:mi.sub_discipline_id]:[],onCancel:()=>Wo(!1),mode:3,gather:{exercise_id:Pe},onSuccess:()=>{Wo(!1),el()}}),Ht.createElement("div",{style:{height:70}})),Ht.createElement(at.Q,{visible:!!uo,setVisible:xo,tip:uo===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:uo===1?ea==null?void 0:ea.languages:[],onOk:Qa=>tr(void 0,null,function*(){const oo={languages:Qa};uo===1?oo.hack_id=ea==null?void 0:ea.hack_id:oo.exercise_id=Pe,(yield(0,ne.ZP)("/api/problems/update_languages.json",{method:"post",body:oo})).status===0&&(Ae.ZP.success("\u4FEE\u6539\u6210\u529F"),Ml({id:ki.current}),xo(!1))})}))};var Gr=(0,de.connect)(({user:ce,exercise:pe,dispatch:Pe})=>({user:ce,exercise:pe,dispatch:Pe}))(ar),Po=ee(85786),lo=ee(15730),Lr=ee(73157),vo=ee(87169),Bo=ee(86918),ka=ee(59301),wo=Object.defineProperty,Ci=Object.defineProperties,Do=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertySymbols,xi=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,gi=(ce,pe,Pe)=>pe in ce?wo(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,Ho=(ce,pe)=>{for(var Pe in pe||(pe={}))xi.call(pe,Pe)&&gi(ce,Pe,pe[Pe]);if(Qr)for(var Pe of Qr(pe))Vr.call(pe,Pe)&&gi(ce,Pe,pe[Pe]);return ce},_i=(ce,pe)=>Ci(ce,Do(pe)),Xr=(ce,pe)=>{var Pe={};for(var Lt in ce)xi.call(ce,Lt)&&pe.indexOf(Lt)<0&&(Pe[Lt]=ce[Lt]);if(ce!=null&&Qr)for(var Lt of Qr(ce))pe.indexOf(Lt)<0&&Vr.call(ce,Lt)&&(Pe[Lt]=ce[Lt]);return Pe},Mr=(ce,pe,Pe)=>new Promise((Lt,tn)=>{var Aa=jt=>{try{Tn(Pe.next(jt))}catch(Jn){tn(Jn)}},ma=jt=>{try{Tn(Pe.throw(jt))}catch(Jn){tn(Jn)}},Tn=jt=>jt.done?Lt(jt.value):Promise.resolve(jt.value).then(Aa,ma);Tn((Pe=Pe.apply(ce,pe)).next())});const $r=ce=>{var pe=ce,{classroomList:Pe,globalSetting:Lt,problemset:tn,loading:Aa,exercise:ma,user:Tn,dispatch:jt}=pe,Jn=Xr(pe,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),Fn,bt,sn,An,ia,Zn,xa,ta,la,Ua,bn,Ca,Ha,Yr;const cr=(0,de.useParams)(),[ii,Za]=(0,b.useState)(!1),{userInfo:bo}=Tn,[Cr]=Be.default.useForm();let[to,So]=(0,b.useState)({});const[Ei,mi]=(0,b.useState)(1),[hr,po]=(0,b.useState)(""),[Vi]=(0,de.useSearchParams)(),[Ri,ea]=(0,b.useState)(!1),[Co,Mi]=(0,b.useState)(!1),[jo,Fi]=(0,b.useState)(!1),[ki,ri]=(0,b.useState)(""),[il,ll]=(0,b.useState)(!1),[jl,Oi]=(0,b.useState)(!1);(0,b.useEffect)(()=>{jt({type:"problemset/getEditDisciplines",payload:{source:"new_question",identifier:cr==null?void 0:cr.coursesId}}),jt({type:"globalSetting/footerToggle",payload:!1}),Cr.setFieldsValue({difficulty:2,courseid:[]})},[]),(0,b.useEffect)(()=>{cr.exerciseId&&Mr(void 0,null,function*(){var No,Pi,Ui;const Zi=yield jt({type:"exercise/editExercise",payload:{categoryId:cr.exerciseId}});(Zi==null?void 0:Zi.status)!==-1&&(((No=Zi==null?void 0:Zi.exercise)==null?void 0:No.exercise_status)===2||((Pi=Zi==null?void 0:Zi.exercise)==null?void 0:Pi.exercise_status)===3||((Ui=Zi==null?void 0:Zi.exercise)==null?void 0:Ui.exercise_status)===4?Fi(!0):Fi(!1))})},[cr]),(0,b.useEffect)(()=>{if(cr.exerciseId){let No=ma.editData.exercise;Oi(No==null?void 0:No.set_question_sub_discipline),Cr.setFieldsValue(_i(Ho({},No),{courseid:No!=null&&No.sub_discipline_id?[No==null?void 0:No.discipline_id,No==null?void 0:No.sub_discipline_id]:[]}))}},[ma]),(0,b.useEffect)(()=>{Vi.get("type")==="2"&&(po(cr.exerciseId),mi(2))},[Vi.get("type")]),(0,b.useEffect)(()=>{var No;let Pi=(No=tn==null?void 0:tn.disciplinesData)==null?void 0:No.checked;Pi!=null&&Pi.sub_discipline_id&&Cr.setFieldsValue({courseid:[Pi==null?void 0:Pi.discipline_id,Pi==null?void 0:Pi.sub_discipline_id]})},[(Fn=tn==null?void 0:tn.disciplinesData)==null?void 0:Fn.checked]);function dl(No,Pi){return Mr(this,null,function*(){var Ui,Zi,hl,ul;yield Cr.validateFields();const sl=Cr.getFieldsValue(),{courseid:wl}=sl,[Rl,ml]=wl;sl.sub_discipline_id=ml,sl.is_md=!0,sl.time=parseInt(sl.time)>9999?9999:sl.time;const qi=yield jt({type:"exercise/addExercise",payload:Ho(Ho({},sl),cr)});qi.status===0?(yield(0,ne.ZP)(`/api/courses/${cr==null?void 0:cr.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:cr==null?void 0:cr.coursesId,id:(Ui=qi==null?void 0:qi.data)==null?void 0:Ui.exercise_id,time:No}}),Gl((Zi=qi.data)==null?void 0:Zi.exercise_id),po((hl=qi==null?void 0:qi.data)==null?void 0:hl.exercise_id),mi(2),ea(!1),de.history.replace(`/classrooms/${cr.coursesId}/exercise/add/${(ul=qi.data)==null?void 0:ul.exercise_id}?type=2`)):Ae.ZP.error(qi.message),Pi()})}function Bl(No){So(Ho({},No))}function Gl(No){return Mr(this,null,function*(){if(!(to!=null&&to.ec_point_ids))return;const Pi=Ho({},to);delete Pi.id;let Ui=yield(0,ne.ZP)(`/api/ec_courses/${to==null?void 0:to.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Ho({exercise_id:No},Pi)})})}return ka.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},ka.createElement("section",{className:"edu-container"},ka.createElement("section",{className:"animated fadeIn"},ka.createElement("aside",{className:"mt10"},bo&&ka.createElement(ze.Z,{separator:">"},ka.createElement(ze.Z.Item,null,ka.createElement(de.Link,{to:`/classrooms/${cr.coursesId}/exercise`},(bt=bo==null?void 0:bo.course)==null?void 0:bt.course_name)),ka.createElement(ze.Z.Item,null,ka.createElement(de.Link,{to:`/classrooms/${cr.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),ka.createElement(ze.Z.Item,null,cr.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),cr.exerciseId&&ka.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},ka.createElement(vo.Z,{style:{marginRight:5,color:"#E99237"}}),ka.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),ka.createElement("span",{className:Je.addQuestionBtn,onClick:()=>{jt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[cr.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),ka.createElement(Lr.Z,{haveInit:!0,init:()=>{ri(new Date)}}),ka.createElement("div",{className:"bg-white"},ka.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},ka.createElement("div",{onClick:()=>{if(Co){Ae.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}mi(1)},className:Ei===1?Je.selectdiv:Je.divitem},ka.createElement(Po.Z,{number:1,active:Ei===1,className:"mr10"}),ka.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),ka.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),ka.createElement("div",{onClick:()=>{if(!cr.exerciseId&&!hr){Ae.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}mi(2),!hr&&po(cr.exerciseId)},className:Ei!==1?Je.selectdiv:Je.divitem},ka.createElement(Po.Z,{number:2,active:Ei!==1,className:"mr10"}),ka.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Ei===2&&ka.createElement("div",{className:"tc"},ka.createElement(lo.Z,{defaultValue:(An=(sn=ma==null?void 0:ma.editData)==null?void 0:sn.exercise)==null?void 0:An.exercise_name,onFinish:No=>Mr(void 0,null,function*(){var Pi,Ui,Zi,hl,ul,sl,wl,Rl,ml,qi,Wl,Jo;return No.trim()===((Ui=(Pi=ma==null?void 0:ma.editData)==null?void 0:Pi.exercise)==null?void 0:Ui.exercise_name)?!0:(yield(0,qn.wy)({exercise_name:No,exercise_description:(hl=(Zi=ma==null?void 0:ma.editData)==null?void 0:Zi.exercise)==null?void 0:hl.exercise_description,sub_discipline_id:(sl=(ul=ma==null?void 0:ma.editData)==null?void 0:ul.exercise)==null?void 0:sl.sub_discipline_id,time:(Rl=(wl=ma==null?void 0:ma.editData)==null?void 0:wl.exercise)==null?void 0:Rl.time,exerciseId:(qi=(ml=ma.editData)==null?void 0:ml.exercise)==null?void 0:qi.id,difficulty:(Jo=(Wl=ma.editData)==null?void 0:Wl.exercise)==null?void 0:Jo.difficulty})).status===0?(Cr.setFieldValue("exercise_name",No),!0):!1})}),ka.createElement("div",{style:{fontSize:14}},ka.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",ka.createElement("span",{style:{color:"#000000",marginLeft:8}},((Zn=(ia=ma==null?void 0:ma.editData)==null?void 0:ia.exercise)==null?void 0:Zn.time)||"\u4E0D\u9650")),ka.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",ka.createElement("span",{style:{color:"#000000",marginLeft:8}},((ta=(xa=ma==null?void 0:ma.editData)==null?void 0:xa.exercise)==null?void 0:ta.difficulty)===1?"\u7B80\u5355":((Ua=(la=ma==null?void 0:ma.editData)==null?void 0:la.exercise)==null?void 0:Ua.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ka.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",ka.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ca=(bn=ma==null?void 0:ma.editData)==null?void 0:bn.exercise_types)==null?void 0:Ca.q_counts)||0)),ka.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",ka.createElement("span",{style:{color:"#000000",marginLeft:8}},(Yr=(Ha=ma==null?void 0:ma.editData)==null?void 0:Ha.exercise_types)==null?void 0:Yr.q_scores))))),Ei===1&&ka.createElement("div",null,ka.createElement("section",{className:[Je.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},ka.createElement(Be.default,{form:Cr,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:No=>Mr(void 0,null,function*(){var Pi,Ui,Zi,hl,ul;if(Za(!0),ea(!0),cr.exerciseId){No.exerciseId=(Ui=(Pi=ma.editData)==null?void 0:Pi.exercise)==null?void 0:Ui.id,No.sub_discipline_id=No.courseid[No.courseid.length-1],yield(0,qn.wy)(_i(Ho({},No),{set_question_sub_discipline:jl})),mi(2),Gl(cr==null?void 0:cr.exerciseId),po(cr.exerciseId),Za(!1),ea(!1);return}const sl=yield(0,ne.ZP)(`/api/courses/${cr==null?void 0:cr.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:cr==null?void 0:cr.coursesId}});if(sl!=null&&sl.alert)jt({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{const{courseid:wl}=No,[Rl,ml]=wl;No.sub_discipline_id=ml,No.is_md=!0,No.time=parseInt(No.time)>9999?9999:No.time,No.set_question_sub_discipline=jl;const qi=yield jt({type:"exercise/addExercise",payload:_i(Ho(Ho({},No),cr),{category_id:Vi.get("catalogue")||null})});qi.status===0&&(Gl((Zi=qi.data)==null?void 0:Zi.exercise_id),de.history.replace(`/classrooms/${cr.coursesId}/exercise/add/${(hl=qi.data)==null?void 0:hl.exercise_id}?type=2`),po((ul=qi==null?void 0:qi.data)==null?void 0:ul.exercise_id),mi(2)),ea(!1)}Za(!1)}),className:Je.formWrap},ka.createElement(Be.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Je.baseLineHeight,rules:[{required:!0,validator:(No,Pi)=>{var Ui;return((Ui=Pi==null?void 0:Pi.replaceAll(" ",""))==null?void 0:Ui.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},ka.createElement(Me.default,{maxLength:60,className:Je.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),ka.createElement(Be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"courseid",className:Je.baseLineHeight},ka.createElement(le.Z,{disabled:jo,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:tn.courseOptions,className:Je.baseFormItem,size:"large",popupClassName:Je.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},allowClear:!0})),ka.createElement("div",{className:Je.concat},ka.createElement("div",null,ka.createElement(st.default,{checked:jl,onChange:No=>{Oi(No.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),ka.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",ka.createElement("a",{onClick:()=>ll(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),ka.createElement(Be.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Je.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},ka.createElement(et.ZP.Group,{className:Je.radiogroup,disabled:jo},ka.createElement(et.ZP.Button,{className:Je.easy,value:1},"\u7B80\u5355"),ka.createElement(et.ZP.Button,{className:Je.medium,value:2},"\u9002\u4E2D"),ka.createElement(et.ZP.Button,{className:Je.hard,value:3},"\u56F0\u96BE"))),ka.createElement(Be.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Je.baseLineHeight},ka.createElement("div",{style:{display:"flex",width:"100%"}},ka.createElement(Be.default.Item,{name:"time",noStyle:!0},ka.createElement(Ve.Z,{disabled:jo,min:1,max:9999,className:Je.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),ka.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),ka.createElement(Be.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},ka.createElement(Me.default.TextArea,{disabled:jo,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),ka.createElement(Yn,{exercise_id:cr==null?void 0:cr.exerciseId,setitem:Bl})),ka.createElement("div",{className:Je.bottmodiv},ka.createElement(We.ZP,{className:`${Je.cancelBtn}`,type:"primary",onClick:()=>{de.history.back()}},"\u53D6\u6D88"),ka.createElement(We.ZP,{loading:Ri,onClick:()=>{Cr.validateFields(),Cr.submit()},type:"primary",className:`${Je.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),ka.createElement(z,{setsubloading:ea,onModalOk:dl})),Ei===2&&ka.createElement("div",null,ka.createElement(Gr,{key:ki,setisedits:Mi,setitemid:po,itemid:hr}))),ka.createElement(Bo.Z,{open:il,onCancel:()=>{ll(!1)}}))};var kr=(0,de.connect)(({classroomList:ce,loading:pe,user:Pe,problemset:Lt,globalSetting:tn,exercise:Aa})=>({classroomList:ce,globalSetting:tn,problemset:Lt,user:Pe,exercise:Aa,loading:pe.effects}))($r)},42609:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return E}});var b=ee(59301),de=ee(8591),Be=ee(43418),Ae=ee(19842),ze=ee(54580),Me=ee(3113),le=ee(3294),st=ee(955),et=ee(99064),Ve=ee(89070),We={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},Je=ee(59301),Ye=(a,x,y)=>new Promise((z,ne)=>{var re=ve=>{try{ie(y.next(ve))}catch(be){ne(be)}},ue=ve=>{try{ie(y.throw(ve))}catch(be){ne(be)}},ie=ve=>ve.done?z(ve.value):Promise.resolve(ve.value).then(re,ue);ie((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[ne,re]=(0,b.useState)([]),[ue,ie]=(0,b.useState)(!1),ve=(0,Ve.useParams)(),[be,je]=(0,b.useState)([]),[De,He]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?he():(He([]),re([]),ie(!1))},[a]);const he=()=>Ye(void 0,null,function*(){const lt=yield(0,et.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});je(lt.disciplines||[]),He((z==null?void 0:z.length)>0?z:[])}),Xe=()=>{if((De==null?void 0:De.length)===0)return de.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",De),ie(!0),x(ne,De[1],()=>{ie(!1)})},Ke=()=>{y()},St=()=>{const lt=`${le.Z.API_SERVER}/api/courses/${ve.coursesId}/exercises/down_template`;(0,st.Nd)(null,lt)},Le=lt=>{const gt={name:lt.name,uid:lt.uid,file:lt};return re([gt]),!1},ot=()=>{re([])};return Je.createElement(Be.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:Xe,centered:!0,wrapClassName:We.customModal,onCancel:Ke,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:We.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ue},Je.createElement("div",{className:We.content},Je.createElement("aside",null,Je.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),Je.createElement("ul",null,Je.createElement("li",null,Je.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),Je.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:St},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),Je.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:St,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),Je.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),Je.createElement("li",{className:We.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),Je.createElement("li",{className:We.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),Je.createElement("li",{className:We.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),Je.createElement("li",{className:We.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),Je.createElement("aside",{style:{marginTop:22}},Je.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),Je.createElement("ul",{style:{flex:1}},Je.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&Je.createElement(Je.Fragment,null,Je.createElement(Ae.Z,{value:De,className:We.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:be,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(lt,gt)=>{He(lt||[])}}),Je.createElement("br",null),Je.createElement(ze.default,{action:`${le.Z.API_SERVER}/api/attachments.json`,beforeUpload:Le,onRemove:ot,withCredentials:!0,fileList:ne,accept:".xls,.xlsx",showUploadList:!1},Je.createElement(Me.ZP,{className:We.upload,type:"primary",icon:Je.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),ne.map((lt,gt)=>Je.createElement("div",{key:gt,className:We.fileList},Je.createElement("span",{className:We.fileName},lt==null?void 0:lt.name),Je.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:ot})))))))}},73157:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=ee(43418),Be=ee(99064),Ae=ee(89070),ze=ee(59301),Me=(st,et,Ve)=>new Promise((We,Je)=>{var Ye=a=>{try{E(Ve.next(a))}catch(x){Je(x)}},se=a=>{try{E(Ve.throw(a))}catch(x){Je(x)}},E=a=>a.done?We(a.value):Promise.resolve(a.value).then(Ye,se);E((Ve=Ve.apply(st,et)).next())});const le=({exercise:st,dispatch:et,init:Ve,haveInit:We=!1})=>{const Je=(0,Ae.useParams)(),[Ye,se]=(0,b.useState)(!1);let[E,a]=(0,b.useState)();const[x,y]=(0,b.useState)(!1),[z,ne]=(0,b.useState)(!1);(0,b.useEffect)(()=>{st.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&re()},[st.actionTabs]);function re(){return Me(this,null,function*(){var ue,ie;let ve=yield(0,Be.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:st.actionTabs.selectArrs}});if(((ue=ve==null?void 0:ve.cover_exercises)==null?void 0:ue.length)>0)se(!0),a((ie=ve==null?void 0:ve.cover_exercises)==null?void 0:ie[0]);else{let be=yield(0,Be.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:st.actionTabs.selectArrs}});et({type:"exercise/setActionTabs",payload:{key:""}}),(be==null?void 0:be.status)===0&&(We&&Ve(),de.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Ae.history.push("/paperlibrary")}}))}})}return ze.createElement("div",null,ze.createElement(de.default,{open:Ye,centered:!0,onCancel:ue=>Me(void 0,null,function*(){if(ue.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){y(!0);let ie=yield(0,Be.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:st.actionTabs.selectArrs,update:1}});et({type:"exercise/setActionTabs",payload:{key:""}}),y(!1),(ie==null?void 0:ie.status)===0&&(We&&Ve(),se(!1),de.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Ae.history.push("/paperlibrary")}}))}else se(!1)}),cancelButtonProps:{loading:x},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:z},onOk:()=>Me(void 0,null,function*(){ne(!0);let ue=yield(0,Be.ZP)(`/api/courses/${Je==null?void 0:Je.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:st.actionTabs.selectArrs}});ne(!1),(ue==null?void 0:ue.status)===0&&(We&&Ve(),et({type:"exercise/setActionTabs",payload:{key:""}}),se(!1),de.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Ae.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},ze.createElement("div",null,ze.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),ze.createElement("div",null,ze.createElement("div",null,"\u8BD5\u5377\uFF1A",E==null?void 0:E.origin_exercise_nam),ze.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",ze.createElement("a",{href:`/paperlibrary/see/${E==null?void 0:E.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},E==null?void 0:E.examination_bank_name))))))};Gt.Z=(0,Ae.connect)(({exercise:st})=>({exercise:st}))(le)},74440:function(Qt,Gt,ee){"use strict";ee.d(Gt,{h:function(){return b}});var b=(de=>(de[de.NOMATCH=-1]="NOMATCH",de[de.OK=0]="OK",de[de.TIMEOUT=2]="TIMEOUT",de[de.PODFAILURE=3]="PODFAILURE",de[de.COMPILEFAILURE=4]="COMPILEFAILURE",de[de.EXECUTEFAILURE=5]="EXECUTEFAILURE",de[de.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",de))(b||{})},88264:function(Qt,Gt,ee){"use strict";ee.d(Gt,{H7:function(){return E},MK:function(){return se},MU:function(){return Ve},X6:function(){return Je},bM:function(){return et},fi:function(){return a},fu:function(){return st},n4:function(){return x},rX:function(){return Ye},vl:function(){return y},zO:function(){return We}});var b=ee(99064),de=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Me=(z,ne,re)=>ne in z?de(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,le=(z,ne)=>{for(var re in ne||(ne={}))Ae.call(ne,re)&&Me(z,re,ne[re]);if(Be)for(var re of Be(ne))ze.call(ne,re)&&Me(z,re,ne[re]);return z};function st(z,ne){return(0,b.U2)(`myproblems/${z}.json`,le({hidePopLogin:!0},ne||{}))}function et(z,ne){return(0,b.v_)(`myproblems/${z}/code_submit.json`,ne)}function Ve(z,ne){return(0,b.v_)(`myproblems/${z}/code_debug.json`,ne)}function We(z,ne){return ne.language&&(ne.language=encodeURIComponent(ne.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,ne)}function Je(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ye(z,ne){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:ne})}function se(z,ne){return(0,b.v_)(`myproblems/${z}/add_notes.json`,ne)}function E(z,ne){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,ne)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,ne){return(0,b.v_)(`myproblems/${z}/update_code.json`,ne)}function y(z,ne){return(0,b.v_)(`discusses/${z}/plus.json`,ne)}},15730:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=ee(6848),Be=ee(92832),Ae=ee(8591),ze=ee(7761),Me=ee(59301),le=(et,Ve,We)=>new Promise((Je,Ye)=>{var se=x=>{try{a(We.next(x))}catch(y){Ye(y)}},E=x=>{try{a(We.throw(x))}catch(y){Ye(y)}},a=x=>x.done?Je(x.value):Promise.resolve(x.value).then(se,E);a((We=We.apply(et,Ve)).next())});const st=({defaultValue:et,onFinish:Ve})=>{const[We,Je]=(0,b.useState)(!1),[Ye,se]=(0,b.useState)(et);return(0,b.useEffect)(()=>{se(et)},[et]),Me.createElement("div",null,We?Me.createElement(Be.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ye,onChange:E=>{se(E.target.value)},onBlur:()=>le(void 0,null,function*(){var E;if(((E=Ye==null?void 0:Ye.replaceAll(" ",""))==null?void 0:E.length)<=0){Ae.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ve(Ye))&&Je(!1)}),onPressEnter:()=>le(void 0,null,function*(){var E;if(((E=Ye==null?void 0:Ye.replaceAll(" ",""))==null?void 0:E.length)<=0){Ae.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ve(Ye))&&Je(!1)})}):Me.createElement("div",{className:ze.Z.title},Ye,Me.createElement(de.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Me.createElement("i",{className:`${ze.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Je(!0)}))))};Gt.Z=st},86918:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Ve}});var b=ee(43418),de={ul:"ul___TdfYY"},Be=ee(32637),Ae=ee(59301),ze=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,st=(We,Je)=>{var Ye={};for(var se in We)Me.call(We,se)&&Je.indexOf(se)<0&&(Ye[se]=We[se]);if(We!=null&&ze)for(var se of ze(We))Je.indexOf(se)<0&&le.call(We,se)&&(Ye[se]=We[se]);return Ye},Ve=We=>{var Je=We,{open:Ye,onCancel:se}=Je,E=st(Je,["open","onCancel"]);return Ae.createElement(b.default,{centered:!0,open:Ye,title:Ae.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:se,footer:null},Ae.createElement("div",null,Ae.createElement("div",{className:"tc"},Ae.createElement("img",{className:"mt10",src:Be,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ae.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ae.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ae.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ae.createElement("ul",{className:de.ul},Ae.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ae.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ae.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},88918:function(Qt,Gt,ee){"use strict";ee.d(Gt,{I:function(){return de}});var b=ee(59301);const de=()=>{const[Be,Ae]=(0,b.useState)("hidden");return{overflow:Be,handleMouseEnter:()=>Ae("auto"),handleMouseLeave:()=>Ae("hidden")}}},50371:function(Qt,Gt){"use strict";function ee(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let de=1;de<arguments.length;de++){const Be=de<0||arguments.length<=de?void 0:arguments[de];Be&&Object.keys(Be).forEach(Ae=>{const ze=Be[Ae];ze!==void 0&&(b[Ae]=ze)})}return b}Gt.Z=ee},77578:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return b}});const b=de=>de?typeof de=="function"?de():de:null},13845:function(Qt,Gt,ee){"use strict";ee.d(Gt,{F:function(){return b},Z:function(){return de}});function b(Be){return Be!=null&&Be===Be.window}function de(Be,Ae){var ze,Me;if(typeof window=="undefined")return 0;const le=Ae?"scrollTop":"scrollLeft";let st=0;return b(Be)?st=Be[Ae?"pageYOffset":"pageXOffset"]:Be instanceof Document?st=Be.documentElement[le]:(Be instanceof HTMLElement||Be)&&(st=Be[le]),Be&&!b(Be)&&typeof st!="number"&&(st=(Me=((ze=Be.ownerDocument)!==null&&ze!==void 0?ze:Be).documentElement)===null||Me===void 0?void 0:Me[le]),st}},56762:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return de}});var b=ee(59301);function de(){const[,Be]=b.useReducer(Ae=>Ae+1,0);return Be}},68031:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Ae}});var b=ee(16089);function de(ze,Me,le,st){const et=le-Me;return ze/=st/2,ze<1?et/2*ze*ze*ze+Me:et/2*((ze-=2)*ze*ze+2)+Me}var Be=ee(13845);function Ae(ze){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:le=()=>window,callback:st,duration:et=450}=Me,Ve=le(),We=(0,Be.Z)(Ve,!0),Je=Date.now(),Ye=()=>{const E=Date.now()-Je,a=de(E>et?et:E,We,ze,et);(0,Be.F)(Ve)?Ve.scrollTo(window.pageXOffset,a):Ve instanceof Document||Ve.constructor.name==="HTMLDocument"?Ve.documentElement.scrollTop=a:Ve.scrollTop=a,E<et?(0,b.Z)(Ye):typeof st=="function"&&st()};(0,b.Z)(Ye)}},66104:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return St}});var b=ee(92310),de=ee.n(b),Be=ee(11592),Ae=ee(26112),ze=ee(59301),Me=ee(92343),le=ee(36355),st=ee(84105),et=ee(91857);const Ve=Le=>{let{children:ot}=Le;const{getPrefixCls:lt}=ze.useContext(le.E_),gt=lt("breadcrumb");return ze.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},ot===""?ot:ot||"/")};Ve.__ANT_BREADCRUMB_SEPARATOR=!0;var We=Ve,Je=function(Le,ot){var lt={};for(var gt in Le)Object.prototype.hasOwnProperty.call(Le,gt)&&ot.indexOf(gt)<0&&(lt[gt]=Le[gt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,gt=Object.getOwnPropertySymbols(Le);ft<gt.length;ft++)ot.indexOf(gt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Le,gt[ft])&&(lt[gt[ft]]=Le[gt[ft]]);return lt};function Ye(Le,ot){if(Le.title===void 0||Le.title===null)return null;const lt=Object.keys(ot).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${lt})`,"g"),(gt,ft)=>ot[ft]||gt)}function se(Le,ot,lt,gt){if(lt==null)return null;const{className:ft,onClick:ln}=ot,xt=Je(ot,["className","onClick"]),nn=Object.assign(Object.assign({},(0,Ae.Z)(xt,{data:!0,aria:!0})),{onClick:ln});return gt!==void 0?ze.createElement("a",Object.assign({},nn,{className:de()(`${Le}-link`,ft),href:gt}),lt):ze.createElement("span",Object.assign({},nn,{className:de()(`${Le}-link`,ft)}),lt)}function E(Le,ot){return(gt,ft,ln,xt,nn)=>{if(ot)return ot(gt,ft,ln,xt);const En=Ye(gt,ft);return se(Le,gt,En,nn)}}var a=function(Le,ot){var lt={};for(var gt in Le)Object.prototype.hasOwnProperty.call(Le,gt)&&ot.indexOf(gt)<0&&(lt[gt]=Le[gt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,gt=Object.getOwnPropertySymbols(Le);ft<gt.length;ft++)ot.indexOf(gt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Le,gt[ft])&&(lt[gt[ft]]=Le[gt[ft]]);return lt};const x=Le=>{const{prefixCls:ot,separator:lt="/",children:gt,menu:ft,overlay:ln,dropdownProps:xt,href:nn}=Le,$e=(dt=>{if(ft||ln){const on=Object.assign({},xt);if(ft){const Yn=ft||{},{items:Zt}=Yn,On=a(Yn,["items"]);on.menu=Object.assign(Object.assign({},On),{items:Zt==null?void 0:Zt.map((_e,ct)=>{var{key:kt,title:mt,label:It,path:ut}=_e,at=a(_e,["key","title","label","path"]);let Ie=It!=null?It:mt;return ut&&(Ie=ze.createElement("a",{href:`${nn}${ut}`},Ie)),Object.assign(Object.assign({},at),{key:kt!=null?kt:ct,label:Ie})})})}else ln&&(on.overlay=ln);return ze.createElement(et.Z,Object.assign({placement:"bottom"},on),ze.createElement("span",{className:`${ot}-overlay-link`},dt,ze.createElement(st.Z,null)))}return dt})(gt);return $e!=null?ze.createElement(ze.Fragment,null,ze.createElement("li",null,$e),lt&&ze.createElement(We,null,lt)):null},y=Le=>{const{prefixCls:ot,children:lt,href:gt}=Le,ft=a(Le,["prefixCls","children","href"]),{getPrefixCls:ln}=ze.useContext(le.E_),xt=ln("breadcrumb",ot);return ze.createElement(x,Object.assign({},ft,{prefixCls:xt}),se(xt,ft,lt,gt))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,ne=ee(17313),re=ee(83116),ue=ee(37613);const ie=Le=>{const{componentCls:ot,iconCls:lt}=Le;return{[ot]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[lt]:{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,ne.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${ot}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${ot}-link`]:{[`
> ${lt} + span,
> ${lt} + a
`]:{marginInlineStart:Le.marginXXS}},[`${ot}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${lt}`]:{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 ve=(0,re.Z)("Breadcrumb",Le=>{const ot=(0,ue.TS)(Le,{});return[ie(ot)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),be=function(Le,ot){var lt={};for(var gt in Le)Object.prototype.hasOwnProperty.call(Le,gt)&&ot.indexOf(gt)<0&&(lt[gt]=Le[gt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,gt=Object.getOwnPropertySymbols(Le);ft<gt.length;ft++)ot.indexOf(gt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Le,gt[ft])&&(lt[gt[ft]]=Le[gt[ft]]);return lt};function je(Le){const{breadcrumbName:ot,children:lt}=Le,gt=be(Le,["breadcrumbName","children"]),ft=Object.assign({title:ot},gt);return lt&&(ft.menu={items:lt.map(ln=>{var{breadcrumbName:xt}=ln,nn=be(ln,["breadcrumbName"]);return Object.assign(Object.assign({},nn),{title:xt})})}),ft}function De(Le,ot){return(0,ze.useMemo)(()=>Le||(ot?ot.map(je):null),[Le,ot])}var He=function(Le,ot){var lt={};for(var gt in Le)Object.prototype.hasOwnProperty.call(Le,gt)&&ot.indexOf(gt)<0&&(lt[gt]=Le[gt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,gt=Object.getOwnPropertySymbols(Le);ft<gt.length;ft++)ot.indexOf(gt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Le,gt[ft])&&(lt[gt[ft]]=Le[gt[ft]]);return lt};const he=(Le,ot)=>{if(ot===void 0)return ot;let lt=(ot||"").replace(/^\//,"");return Object.keys(Le).forEach(gt=>{lt=lt.replace(`:${gt}`,Le[gt])}),lt},Xe=Le=>{const{prefixCls:ot,separator:lt="/",style:gt,className:ft,rootClassName:ln,routes:xt,items:nn,children:En,itemRender:$e,params:dt={}}=Le,on=He(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Yn,direction:Zt,breadcrumb:On}=ze.useContext(le.E_);let _e;const ct=Yn("breadcrumb",ot),[kt,mt]=ve(ct),It=De(nn,xt),ut=E(ct,$e);if(It&&It.length>0){const fe=[],qe=nn||xt;_e=It.map((At,Oe)=>{const{path:Ne,key:Ct,type:tt,menu:ke,overlay:ht,onClick:Sn,className:rn,separator:an,dropdownProps:mn}=At,cn=he(dt,Ne);cn!==void 0&&fe.push(cn);const Te=Ct!=null?Ct:Oe;if(tt==="separator")return ze.createElement(We,{key:Te},an);const Ft={},zt=Oe===It.length-1;ke?Ft.menu=ke:ht&&(Ft.overlay=ht);let{href:wt}=At;return fe.length&&cn!==void 0&&(wt=`#/${fe.join("/")}`),ze.createElement(x,Object.assign({key:Te},Ft,(0,Ae.Z)(At,{data:!0,aria:!0}),{className:rn,dropdownProps:mn,href:wt,separator:zt?"":lt,onClick:Sn,prefixCls:ct}),ut(At,dt,qe,fe,wt))})}else if(En){const fe=(0,Be.Z)(En).length;_e=(0,Be.Z)(En).map((qe,At)=>{if(!qe)return qe;const Oe=At===fe-1;return(0,Me.Tm)(qe,{separator:Oe?"":lt,key:At})})}const at=de()(ct,On==null?void 0:On.className,{[`${ct}-rtl`]:Zt==="rtl"},ft,ln,mt),Ie=Object.assign(Object.assign({},On==null?void 0:On.style),gt);return kt(ze.createElement("nav",Object.assign({className:at,style:Ie},on),ze.createElement("ol",null,_e)))};Xe.Item=z,Xe.Separator=We;var Ke=Xe,St=Ke},19842:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return Ia}});var b=ee(26407),de=ee(59301),Be=ee(33853),Ae=ee(58617),ze=ee(38819),Me=ee(92310),le=ee.n(Me),st=ee(92413),et=ee(33606),Ve=ee(37061),We=ee(77861),Je=ee(17115),Ye=ee(90782),se=ee(6089),E=ee(18929),a=de.createContext(null),x=a,y=ee(39559),z=ee(400),ne=ee(33708),re="__rc_cascader_search_mark__",ue=function(Ot,_t,Vt){var Wt=Vt.label;return _t.some(function(Nn){return String(Nn[Wt]).toLowerCase().includes(Ot.toLowerCase())})},ie=function(Ot,_t,Vt,Wt){return _t.map(function(Nn){return Nn[Wt.label]}).join(" / ")},ve=function(Ge,Ot,_t,Vt,Wt,Nn){var Bn=Wt.filter,vt=Bn===void 0?ue:Bn,Bt=Wt.render,pt=Bt===void 0?ie:Bt,vn=Wt.limit,Hn=vn===void 0?50:vn,In=Wt.sort;return de.useMemo(function(){var Ta=[];if(!Ge)return[];function Pa(Rn,ya){var ba=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Rn.forEach(function(wn){if(!(!In&&Hn!==!1&&Hn>0&&Ta.length>=Hn)){var mr=[].concat((0,b.Z)(ya),[wn]),Er=wn[_t.children],Jr=ba||wn.disabled;if((!Er||Er.length===0||Nn)&&vt(Ge,mr,{label:_t.label})){var pr;Ta.push((0,ne.Z)((0,ne.Z)({},wn),{},(pr={disabled:Jr},(0,z.Z)(pr,_t.label,pt(Ge,mr,Vt,_t)),(0,z.Z)(pr,re,mr),(0,z.Z)(pr,_t.children,void 0),pr)))}Er&&Pa(wn[_t.children],mr,Jr)}})}return Pa(Ot,[]),In&&Ta.sort(function(Rn,ya){return In(Rn[re],ya[re],Ge,_t)}),Hn!==!1&&Hn>0?Ta.slice(0,Hn):Ta},[Ge,Ot,_t,Vt,pt,Nn,vt,In,Hn])},be="__RC_CASCADER_SPLIT__",je="SHOW_PARENT",De="SHOW_CHILD";function He(Ge){return Ge.join(be)}function he(Ge){return Ge.map(He)}function Xe(Ge){return Ge.split(be)}function Ke(Ge){var Ot=Ge||{},_t=Ot.label,Vt=Ot.value,Wt=Ot.children,Nn=Vt||"value";return{label:_t||"label",value:Nn,key:Nn,children:Wt||"children"}}function St(Ge,Ot){var _t,Vt;return(_t=Ge.isLeaf)!==null&&_t!==void 0?_t:!((Vt=Ge[Ot.children])!==null&&Vt!==void 0&&Vt.length)}function Le(Ge){var Ot=Ge.parentElement;if(Ot){var _t=Ge.offsetTop-Ot.offsetTop;_t-Ot.scrollTop<0?Ot.scrollTo({top:_t}):_t+Ge.offsetHeight-Ot.scrollTop>Ot.offsetHeight&&Ot.scrollTo({top:_t+Ge.offsetHeight-Ot.offsetHeight})}}function ot(Ge,Ot){return Ge.map(function(_t){var Vt;return(Vt=_t[re])===null||Vt===void 0?void 0:Vt.map(function(Wt){return Wt[Ot.value]})})}function lt(Ge,Ot,_t){var Vt=new Set(Ge),Wt=Ot();return Ge.filter(function(Nn){var Bn=Wt[Nn],vt=Bn?Bn.parent:null,Bt=Bn?Bn.children:null;return Bn&&Bn.node.disabled?!0:_t===De?!(Bt&&Bt.some(function(pt){return pt.key&&Vt.has(pt.key)})):!(vt&&!vt.node.disabled&&Vt.has(vt.key))})}function gt(Ge,Ot,_t){for(var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Wt=Ot,Nn=[],Bn=function(){var pt,vn,Hn,In=Ge[vt],Ta=(pt=Wt)===null||pt===void 0?void 0:pt.findIndex(function(Rn){var ya=Rn[_t.value];return Vt?String(ya)===String(In):ya===In}),Pa=Ta!==-1?(vn=Wt)===null||vn===void 0?void 0:vn[Ta]:null;Nn.push({value:(Hn=Pa==null?void 0:Pa[_t.value])!==null&&Hn!==void 0?Hn:In,index:Ta,option:Pa}),Wt=Pa==null?void 0:Pa[_t.children]},vt=0;vt<Ge.length;vt+=1)Bn();return Nn}var ft=function(Ge,Ot,_t,Vt,Wt){return de.useMemo(function(){var Nn=Wt||function(Bn){var vt=Vt?Bn.slice(-1):Bn,Bt=" / ";return vt.every(function(pt){return["string","number"].includes((0,y.Z)(pt))})?vt.join(Bt):vt.reduce(function(pt,vn,Hn){var In=de.isValidElement(vn)?de.cloneElement(vn,{key:Hn}):vn;return Hn===0?[In]:[].concat((0,b.Z)(pt),[Bt,In])},[])};return Ge.map(function(Bn){var vt,Bt,pt=gt(Bn,Ot,_t),vn=Nn(pt.map(function(In){var Ta,Pa=In.option,Rn=In.value;return(Ta=Pa==null?void 0:Pa[_t.label])!==null&&Ta!==void 0?Ta:Rn}),pt.map(function(In){var Ta=In.option;return Ta})),Hn=He(Bn);return{label:vn,value:Hn,key:Hn,valueCells:Bn,disabled:(vt=pt[pt.length-1])===null||vt===void 0||(Bt=vt.option)===null||Bt===void 0?void 0:Bt.disabled}})},[Ge,Ot,_t,Wt,Vt])},ln=ee(71430),xt=function(Ge,Ot){var _t=de.useRef({options:null,info:null}),Vt=de.useCallback(function(){return _t.current.options!==Ge&&(_t.current.options=Ge,_t.current.info=(0,ln.I8)(Ge,{fieldNames:Ot,initWrapper:function(Nn){return(0,ne.Z)((0,ne.Z)({},Nn),{},{pathKeyEntities:{}})},processEntity:function(Nn,Bn){var vt=Nn.nodes.map(function(Bt){return Bt[Ot.value]}).join(be);Bn.pathKeyEntities[vt]=Nn,Nn.key=vt}})),_t.current.info.pathKeyEntities},[Ot,Ge]);return Vt},nn=function(Ge,Ot){return de.useCallback(function(_t){var Vt=[],Wt=[];return _t.forEach(function(Nn){var Bn=gt(Nn,Ge,Ot);Bn.every(function(vt){return vt.option})?Wt.push(Nn):Vt.push(Nn)}),[Wt,Vt]},[Ge,Ot])},En=ee(48736);function $e(Ge){return de.useMemo(function(){if(!Ge)return[!1,{}];var Ot={matchInputWidth:!0,limit:50};return Ge&&(0,y.Z)(Ge)==="object"&&(Ot=(0,ne.Z)((0,ne.Z)({},Ot),Ge)),Ot.limit<=0&&delete Ot.limit,[!0,Ot]},[Ge])}var dt=de.memo(function(Ge){var Ot=Ge.children;return Ot},function(Ge,Ot){return!Ot.open}),on=dt;function Yn(Ge){var Ot,_t=Ge.prefixCls,Vt=Ge.checked,Wt=Ge.halfChecked,Nn=Ge.disabled,Bn=Ge.onClick,vt=Ge.disableCheckbox,Bt=de.useContext(x),pt=Bt.checkable,vn=typeof pt!="boolean"?pt:null;return de.createElement("span",{className:le()("".concat(_t),(Ot={},(0,z.Z)(Ot,"".concat(_t,"-checked"),Vt),(0,z.Z)(Ot,"".concat(_t,"-indeterminate"),!Vt&&Wt),(0,z.Z)(Ot,"".concat(_t,"-disabled"),Nn||vt),Ot)),onClick:Bn},vn)}var Zt="__cascader_fix_label__";function On(Ge){var Ot=Ge.prefixCls,_t=Ge.multiple,Vt=Ge.options,Wt=Ge.activeValue,Nn=Ge.prevValuePath,Bn=Ge.onToggleOpen,vt=Ge.onSelect,Bt=Ge.onActive,pt=Ge.checkedSet,vn=Ge.halfCheckedSet,Hn=Ge.loadingKeys,In=Ge.isSelectable,Ta=Ge.searchValue,Pa="".concat(Ot,"-menu"),Rn="".concat(Ot,"-menu-item"),ya=de.useContext(x),ba=ya.fieldNames,wn=ya.changeOnSelect,mr=ya.expandTrigger,Er=ya.expandIcon,Jr=ya.loadingIcon,pr=ya.dropdownMenuColumnStyle,Qe=mr==="hover",Pn=de.useMemo(function(){return Vt.map(function(qt){var Dn,Gn=qt.disabled,ra=qt.disableCheckbox,Xn=qt[re],$n=(Dn=qt[Zt])!==null&&Dn!==void 0?Dn:qt[ba.label],sr=qt[ba.value],sa=St(qt,ba),Cn=Xn?Xn.map(function(ha){return ha[ba.value]}):[].concat((0,b.Z)(Nn),[sr]),dr=He(Cn),Nr=Hn.includes(dr),Zr=pt.has(dr),Ir=vn.has(dr);return{disabled:Gn,label:$n,value:sr,isLeaf:sa,isLoading:Nr,checked:Zr,halfChecked:Ir,option:qt,disableCheckbox:ra,fullPath:Cn,fullPathKey:dr}})},[Vt,pt,ba,vn,Hn,Nn]);return de.createElement("ul",{className:Pa,role:"menu"},Pn.map(function(qt){var Dn,Gn=qt.disabled,ra=qt.label,Xn=qt.value,$n=qt.isLeaf,sr=qt.isLoading,sa=qt.checked,Cn=qt.halfChecked,dr=qt.option,Nr=qt.fullPath,Zr=qt.fullPathKey,Ir=qt.disableCheckbox,ha=function(){if(!(Gn||Ta)){var xr=(0,b.Z)(Nr);Qe&&$n&&xr.pop(),Bt(xr)}},za=function(){In(dr)&&vt(Nr,$n)},or;return typeof dr.title=="string"?or=dr.title:typeof ra=="string"&&(or=ra),de.createElement("li",{key:Zr,className:le()(Rn,(Dn={},(0,z.Z)(Dn,"".concat(Rn,"-expand"),!$n),(0,z.Z)(Dn,"".concat(Rn,"-active"),Wt===Xn||Wt===Zr),(0,z.Z)(Dn,"".concat(Rn,"-disabled"),Gn),(0,z.Z)(Dn,"".concat(Rn,"-loading"),sr),Dn)),style:pr,role:"menuitemcheckbox",title:or,"aria-checked":sa,"data-path-key":Zr,onClick:function(){ha(),!Ir&&(!_t||$n)&&za()},onDoubleClick:function(){wn&&Bn(!1)},onMouseEnter:function(){Qe&&ha()},onMouseDown:function(xr){xr.preventDefault()}},_t&&de.createElement(Yn,{prefixCls:"".concat(Ot,"-checkbox"),checked:sa,halfChecked:Cn,disabled:Gn||Ir,disableCheckbox:Ir,onClick:function(xr){Ir||(xr.stopPropagation(),za())}}),de.createElement("div",{className:"".concat(Rn,"-content")},ra),!sr&&Er&&!$n&&de.createElement("div",{className:"".concat(Rn,"-expand-icon")},Er),sr&&Jr&&de.createElement("div",{className:"".concat(Rn,"-loading-icon")},Jr))}))}var _e=function(){var Ge=(0,We.lk)(),Ot=Ge.multiple,_t=Ge.open,Vt=de.useContext(x),Wt=Vt.values,Nn=de.useState([]),Bn=(0,et.Z)(Nn,2),vt=Bn[0],Bt=Bn[1];return de.useEffect(function(){if(_t&&!Ot){var pt=Wt[0];Bt(pt||[])}},[_t]),[vt,Bt]},ct=ee(10228),kt=function(Ge,Ot,_t,Vt,Wt,Nn){var Bn=(0,We.lk)(),vt=Bn.direction,Bt=Bn.searchValue,pt=Bn.toggleOpen,vn=Bn.open,Hn=vt==="rtl",In=de.useMemo(function(){for(var pr=-1,Qe=Ot,Pn=[],qt=[],Dn=Vt.length,Gn=ot(Ot,_t),ra=function(dr){var Nr=Qe.findIndex(function(Zr,Ir){return(Gn[Ir]?He(Gn[Ir]):Zr[_t.value])===Vt[dr]});if(Nr===-1)return"break";pr=Nr,Pn.push(pr),qt.push(Vt[dr]),Qe=Qe[pr][_t.children]},Xn=0;Xn<Dn&&Qe;Xn+=1){var $n=ra(Xn);if($n==="break")break}for(var sr=Ot,sa=0;sa<Pn.length-1;sa+=1)sr=sr[Pn[sa]][_t.children];return[qt,pr,sr,Gn]},[Vt,_t,Ot]),Ta=(0,et.Z)(In,4),Pa=Ta[0],Rn=Ta[1],ya=Ta[2],ba=Ta[3],wn=function(Qe){Wt(Qe)},mr=function(Qe){var Pn=ya.length,qt=Rn;qt===-1&&Qe<0&&(qt=Pn);for(var Dn=0;Dn<Pn;Dn+=1){qt=(qt+Qe+Pn)%Pn;var Gn=ya[qt];if(Gn&&!Gn.disabled){var ra=Pa.slice(0,-1).concat(ba[qt]?He(ba[qt]):Gn[_t.value]);wn(ra);return}}},Er=function(){if(Pa.length>1){var Qe=Pa.slice(0,-1);wn(Qe)}else pt(!1)},Jr=function(){var Qe,Pn=((Qe=ya[Rn])===null||Qe===void 0?void 0:Qe[_t.children])||[],qt=Pn.find(function(Gn){return!Gn.disabled});if(qt){var Dn=[].concat((0,b.Z)(Pa),[qt[_t.value]]);wn(Dn)}};de.useImperativeHandle(Ge,function(){return{onKeyDown:function(Qe){var Pn=Qe.which;switch(Pn){case ct.Z.UP:case ct.Z.DOWN:{var qt=0;Pn===ct.Z.UP?qt=-1:Pn===ct.Z.DOWN&&(qt=1),qt!==0&&mr(qt);break}case ct.Z.LEFT:{if(Bt)break;Hn?Jr():Er();break}case ct.Z.RIGHT:{if(Bt)break;Hn?Er():Jr();break}case ct.Z.BACKSPACE:{Bt||Er();break}case ct.Z.ENTER:{if(Pa.length){var Dn=ya[Rn],Gn=(Dn==null?void 0:Dn[re])||[];Gn.length?Nn(Gn.map(function(ra){return ra[_t.value]}),Gn[Gn.length-1]):Nn(Pa,ya[Rn])}break}case ct.Z.ESC:pt(!1),vn&&Qe.stopPropagation()}},onKeyUp:function(){}}})},mt=de.forwardRef(function(Ge,Ot){var _t,Vt,Wt,Nn,Bn=(0,We.lk)(),vt=Bn.prefixCls,Bt=Bn.multiple,pt=Bn.searchValue,vn=Bn.toggleOpen,Hn=Bn.notFoundContent,In=Bn.direction,Ta=Bn.open,Pa=de.useRef(),Rn=In==="rtl",ya=de.useContext(x),ba=ya.options,wn=ya.values,mr=ya.halfValues,Er=ya.fieldNames,Jr=ya.changeOnSelect,pr=ya.onSelect,Qe=ya.searchOptions,Pn=ya.dropdownPrefixCls,qt=ya.loadData,Dn=ya.expandTrigger,Gn=Pn||vt,ra=de.useState([]),Xn=(0,et.Z)(ra,2),$n=Xn[0],sr=Xn[1],sa=function(Eo){if(!(!qt||pt)){var Yo=gt(Eo,ba,Er),Fo=Yo.map(function(Pr){var To=Pr.option;return To}),Ao=Fo[Fo.length-1];if(Ao&&!St(Ao,Er)){var eo=He(Eo);sr(function(Pr){return[].concat((0,b.Z)(Pr),[eo])}),qt(Fo)}}};de.useEffect(function(){$n.length&&$n.forEach(function(yo){var Eo=Xe(yo),Yo=gt(Eo,ba,Er,!0).map(function(Ao){var eo=Ao.option;return eo}),Fo=Yo[Yo.length-1];(!Fo||Fo[Er.children]||St(Fo,Er))&&sr(function(Ao){return Ao.filter(function(eo){return eo!==yo})})})},[ba,$n,Er]);var Cn=de.useMemo(function(){return new Set(he(wn))},[wn]),dr=de.useMemo(function(){return new Set(he(mr))},[mr]),Nr=_e(),Zr=(0,et.Z)(Nr,2),Ir=Zr[0],ha=Zr[1],za=function(Eo){ha(Eo),sa(Eo)},or=function(Eo){var Yo=Eo.disabled,Fo=St(Eo,Er);return!Yo&&(Fo||Jr||Bt)},Fa=function(Eo,Yo){var Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;pr(Eo),!Bt&&(Yo||Jr&&(Dn==="hover"||Fo))&&vn(!1)},xr=de.useMemo(function(){return pt?Qe:ba},[pt,Qe,ba]),qr=de.useMemo(function(){for(var yo=[{options:xr}],Eo=xr,Yo=ot(Eo,Er),Fo=function(){var To=Ir[Ao],vi=Eo.find(function(br,ai){return(Yo[ai]?He(Yo[ai]):br[Er.value])===To}),Oo=vi==null?void 0:vi[Er.children];if(!(Oo!=null&&Oo.length))return"break";Eo=Oo,yo.push({options:Oo})},Ao=0;Ao<Ir.length;Ao+=1){var eo=Fo();if(eo==="break")break}return yo},[xr,Ir,Er]),Fr=function(Eo,Yo){or(Yo)&&Fa(Eo,St(Yo,Er),!0)};kt(Ot,xr,Er,Ir,za,Fr),de.useEffect(function(){for(var yo=0;yo<Ir.length;yo+=1){var Eo,Yo=Ir.slice(0,yo+1),Fo=He(Yo),Ao=(Eo=Pa.current)===null||Eo===void 0?void 0:Eo.querySelector('li[data-path-key="'.concat(Fo.replace(/\\{0,2}"/g,'\\"'),'"]'));Ao&&Le(Ao)}},[Ir]);var io=!((_t=qr[0])!==null&&_t!==void 0&&(Vt=_t.options)!==null&&Vt!==void 0&&Vt.length),lr=[(Wt={},(0,z.Z)(Wt,Er.value,"__EMPTY__"),(0,z.Z)(Wt,Zt,Hn),(0,z.Z)(Wt,"disabled",!0),Wt)],ko=(0,ne.Z)((0,ne.Z)({},Ge),{},{multiple:!io&&Bt,onSelect:Fa,onActive:za,onToggleOpen:vn,checkedSet:Cn,halfCheckedSet:dr,loadingKeys:$n,isSelectable:or}),ui=io?[{options:lr}]:qr,pi=ui.map(function(yo,Eo){var Yo=Ir.slice(0,Eo),Fo=Ir[Eo];return de.createElement(On,(0,st.Z)({key:Eo},ko,{searchValue:pt,prefixCls:Gn,options:yo.options,prevValuePath:Yo,activeValue:Fo}))});return de.createElement(on,{open:Ta},de.createElement("div",{className:le()("".concat(Gn,"-menus"),(Nn={},(0,z.Z)(Nn,"".concat(Gn,"-menu-empty"),io),(0,z.Z)(Nn,"".concat(Gn,"-rtl"),Rn),Nn)),ref:Pa},pi))}),It=mt;function ut(Ge){var Ot=Ge.onPopupVisibleChange,_t=Ge.popupVisible,Vt=Ge.popupClassName,Wt=Ge.popupPlacement;warning(!Ot,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(_t===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Vt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Wt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function at(Ge,Ot){if(Ge){var _t=function Vt(Wt){for(var Nn=0;Nn<Wt.length;Nn++){var Bn=Wt[Nn];if(Bn[Ot==null?void 0:Ot.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Bn[Ot==null?void 0:Ot.children])&&Vt(Bn[Ot==null?void 0:Ot.children]))return!0}};_t(Ge)}}var Ie=null,fe=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function qe(Ge){return Array.isArray(Ge)&&Array.isArray(Ge[0])}function At(Ge){return Ge?qe(Ge)?Ge:(Ge.length===0?[]:[Ge]).map(function(Ot){return Array.isArray(Ot)?Ot:[Ot]}):[]}var Oe=de.forwardRef(function(Ge,Ot){var _t=Ge.id,Vt=Ge.prefixCls,Wt=Vt===void 0?"rc-cascader":Vt,Nn=Ge.fieldNames,Bn=Ge.defaultValue,vt=Ge.value,Bt=Ge.changeOnSelect,pt=Ge.onChange,vn=Ge.displayRender,Hn=Ge.checkable,In=Ge.autoClearSearchValue,Ta=In===void 0?!0:In,Pa=Ge.searchValue,Rn=Ge.onSearch,ya=Ge.showSearch,ba=Ge.expandTrigger,wn=Ge.options,mr=Ge.dropdownPrefixCls,Er=Ge.loadData,Jr=Ge.popupVisible,pr=Ge.open,Qe=Ge.popupClassName,Pn=Ge.dropdownClassName,qt=Ge.dropdownMenuColumnStyle,Dn=Ge.popupPlacement,Gn=Ge.placement,ra=Ge.onDropdownVisibleChange,Xn=Ge.onPopupVisibleChange,$n=Ge.expandIcon,sr=$n===void 0?">":$n,sa=Ge.loadingIcon,Cn=Ge.children,dr=Ge.dropdownMatchSelectWidth,Nr=dr===void 0?!1:dr,Zr=Ge.showCheckedStrategy,Ir=Zr===void 0?je:Zr,ha=(0,Ve.Z)(Ge,fe),za=(0,Je.ZP)(_t),or=!!Hn,Fa=(0,E.Z)(Bn,{value:vt,postState:At}),xr=(0,et.Z)(Fa,2),qr=xr[0],Fr=xr[1],io=de.useMemo(function(){return Ke(Nn)},[JSON.stringify(Nn)]),lr=de.useMemo(function(){return wn||[]},[wn]),ko=xt(lr,io),ui=de.useCallback(function(Va){var ja=ko();return Va.map(function(Ya){var so=ja[Ya].nodes;return so.map(function(Zo){return Zo[io.value]})})},[ko,io]),pi=(0,E.Z)("",{value:Pa,postState:function(ja){return ja||""}}),yo=(0,et.Z)(pi,2),Eo=yo[0],Yo=yo[1],Fo=function(ja,Ya){Yo(ja),Ya.source!=="blur"&&Rn&&Rn(ja)},Ao=$e(ya),eo=(0,et.Z)(Ao,2),Pr=eo[0],To=eo[1],vi=ve(Eo,lr,io,mr||Wt,To,Bt),Oo=nn(lr,io),br=de.useMemo(function(){var Va=Oo(qr),ja=(0,et.Z)(Va,2),Ya=ja[0],so=ja[1];if(!or||!qr.length)return[Ya,[],so];var Zo=he(Ya),we=ko(),fn=(0,Ye.S)(Zo,!0,we),Wn=fn.checkedKeys,fa=fn.halfCheckedKeys;return[ui(Wn),ui(fa),so]},[or,qr,ko,ui,Oo]),ai=(0,et.Z)(br,3),zr=ai[0],Lo=ai[1],ao=ai[2],si=de.useMemo(function(){var Va=he(zr),ja=lt(Va,ko,Ir);return[].concat((0,b.Z)(ao),(0,b.Z)(ui(ja)))},[zr,ko,ui,ao,Ir]),hi=ft(si,lr,io,or,vn),Qi=(0,se.Z)(function(Va){if(Fr(Va),pt){var ja=At(Va),Ya=ja.map(function(we){return gt(we,lr,io).map(function(fn){return fn.option})}),so=or?ja:ja[0],Zo=or?Ya:Ya[0];pt(so,Zo)}}),tl=(0,se.Z)(function(Va){if((!or||Ta)&&Yo(""),!or)Qi(Va);else{var ja=He(Va),Ya=he(zr),so=he(Lo),Zo=Ya.includes(ja),we=ao.some(function(Sa){return He(Sa)===ja}),fn=zr,Wn=ao;if(we&&!Zo)Wn=ao.filter(function(Sa){return He(Sa)!==ja});else{var fa=Zo?Ya.filter(function(Sa){return Sa!==ja}):[].concat((0,b.Z)(Ya),[ja]),yn=ko(),wa;if(Zo){var na=(0,Ye.S)(fa,{checked:!1,halfCheckedKeys:so},yn);wa=na.checkedKeys}else{var Un=(0,Ye.S)(fa,!0,yn);wa=Un.checkedKeys}var pa=lt(wa,ko,Ir);fn=ui(pa)}Qi([].concat((0,b.Z)(Wn),(0,b.Z)(fn)))}}),nl=function(ja,Ya){if(Ya.type==="clear"){Qi([]);return}var so=Ya.values[0],Zo=so.valueCells;tl(Zo)},Uo=pr!==void 0?pr:Jr,Bi=Pn||Qe,gl=Gn||Dn,ji=function(ja){ra==null||ra(ja),Xn==null||Xn(ja)},cl=de.useMemo(function(){return{options:lr,fieldNames:io,values:zr,halfValues:Lo,changeOnSelect:Bt,onSelect:tl,checkable:Hn,searchOptions:vi,dropdownPrefixCls:mr,loadData:Er,expandTrigger:ba,expandIcon:sr,loadingIcon:sa,dropdownMenuColumnStyle:qt}},[lr,io,zr,Lo,Bt,tl,Hn,vi,mr,Er,ba,sr,sa,qt]),Cl=!(Eo?vi:lr).length,Tr=Eo&&To.matchInputWidth||Cl?{}:{minWidth:"auto"};return de.createElement(x.Provider,{value:cl},de.createElement(We.Ac,(0,st.Z)({},ha,{ref:Ot,id:za,prefixCls:Wt,autoClearSearchValue:Ta,dropdownMatchSelectWidth:Nr,dropdownStyle:Tr,displayValues:hi,onDisplayValuesChange:nl,mode:or?"multiple":void 0,searchValue:Eo,onSearch:Fo,showSearch:Pr,OptionList:It,emptyOptions:Cl,open:Uo,dropdownClassName:Bi,placement:gl,onDropdownVisibleChange:ji,getRawInputElement:function(){return Cn}})))});Oe.SHOW_PARENT=je,Oe.SHOW_CHILD=De;var Ne=Oe,Ct=Ne,tt=ee(2738),ke=ee(62892),ht=ee(53487),Sn=ee(19080),rn=ee(36355),an=ee(93891),mn=ee(1684),cn=ee(19716),Te=ee(32441),Ft=ee(14154),zt=ee(58582),wt=ee(84443),Rt=ee(66339),un=ee(33234),dn=ee(98447),_n=ee(17313),Vn=ee(74207),va=ee(83116);const La=Ge=>{const{prefixCls:Ot,componentCls:_t,antCls:Vt}=Ge,Wt=`${_t}-menu-item`,Nn=`
&${Wt}-expand ${Wt}-expand-icon,
${Wt}-loading-icon
`;return[{[_t]:{width:Ge.controlWidth}},{[`${_t}-dropdown`]:[(0,dn.C2)(`${Ot}-checkbox`,Ge),{[`&${Vt}-select-dropdown`]:{padding:0}},{[_t]:{"&-checkbox":{top:0,marginInlineEnd:Ge.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${_t}-menu-empty`]:{[`${_t}-menu`]:{width:"100%",height:"auto",[Wt]:{color:Ge.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ge.controlItemWidth,height:Ge.dropdownHeight,margin:0,padding:Ge.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorSplit}`},"&-item":Object.assign(Object.assign({},_n.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ge.optionPadding,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`,borderRadius:Ge.borderRadiusSM,"&:hover":{background:Ge.controlItemBgHover},"&-disabled":{color:Ge.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Nn]:{color:Ge.colorTextDisabled}},[`&-active:not(${Wt}-disabled)`]:{"&, &:hover":{fontWeight:Ge.optionSelectedFontWeight,backgroundColor:Ge.optionSelectedBg}},"&-content":{flex:"auto"},[Nn]:{marginInlineStart:Ge.paddingXXS,color:Ge.colorTextDescription,fontSize:Ge.fontSizeIcon},"&-keyword":{color:Ge.colorHighlight}})}}}]},{[`${_t}-dropdown-rtl`]:{direction:"rtl"}},(0,Vn.c)(Ge)]};var Na=(0,va.Z)("Cascader",Ge=>[La(Ge)],Ge=>{const Ot=Math.round((Ge.controlHeight-Ge.fontSize*Ge.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ge.controlItemBgActive,optionSelectedFontWeight:Ge.fontWeightStrong,optionPadding:`${Ot}px ${Ge.paddingSM}px`,menuPadding:Ge.paddingXXS}}),rr=function(Ge,Ot){var _t={};for(var Vt in Ge)Object.prototype.hasOwnProperty.call(Ge,Vt)&&Ot.indexOf(Vt)<0&&(_t[Vt]=Ge[Vt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Vt=Object.getOwnPropertySymbols(Ge);Wt<Vt.length;Wt++)Ot.indexOf(Vt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Vt[Wt])&&(_t[Vt[Wt]]=Ge[Vt[Wt]]);return _t};const{SHOW_CHILD:Ka,SHOW_PARENT:Ea}=Ct;function yr(Ge,Ot,_t){const Vt=Ge.toLowerCase().split(Ot).reduce((Bn,vt,Bt)=>Bt===0?[vt]:[].concat((0,b.Z)(Bn),[Ot,vt]),[]),Wt=[];let Nn=0;return Vt.forEach((Bn,vt)=>{const Bt=Nn+Bn.length;let pt=Ge.slice(Nn,Bt);Nn=Bt,vt%2===1&&(pt=de.createElement("span",{className:`${_t}-menu-item-keyword`,key:`separator-${vt}`},pt)),Wt.push(pt)}),Wt}const Xt=(Ge,Ot,_t,Vt)=>{const Wt=[],Nn=Ge.toLowerCase();return Ot.forEach((Bn,vt)=>{vt!==0&&Wt.push(" / ");let Bt=Bn[Vt.label];const pt=typeof Bt;(pt==="string"||pt==="number")&&(Bt=yr(String(Bt),Nn,_t)),Wt.push(Bt)}),Wt},jn=de.forwardRef((Ge,Ot)=>{const{prefixCls:_t,size:Vt,disabled:Wt,className:Nn,rootClassName:Bn,multiple:vt,bordered:Bt=!0,transitionName:pt,choiceTransitionName:vn="",popupClassName:Hn,dropdownClassName:In,expandIcon:Ta,placement:Pa,showSearch:Rn,allowClear:ya=!0,notFoundContent:ba,direction:wn,getPopupContainer:mr,status:Er,showArrow:Jr,builtinPlacements:pr,style:Qe}=Ge,Pn=rr(Ge,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),qt=(0,tt.Z)(Pn,["suffixIcon"]),{getPopupContainer:Dn,getPrefixCls:Gn,renderEmpty:ra,direction:Xn,popupOverflow:$n,cascader:sr}=de.useContext(rn.E_),sa=wn||Xn,Cn=sa==="rtl",{status:dr,hasFeedback:Nr,isFormItemInput:Zr,feedbackIcon:Ir}=de.useContext(Te.aM),ha=(0,Sn.F)(dr,Er),za=ba||(ra==null?void 0:ra("Cascader"))||de.createElement(an.Z,{componentName:"Cascader"}),or=Gn(),Fa=Gn("select",_t),xr=Gn("cascader",_t),[qr,Fr]=(0,Ft.Z)(Fa),[io]=Na(xr),{compactSize:lr,compactItemClassnames:ko}=(0,un.ri)(Fa,wn),ui=le()(Hn||In,`${xr}-dropdown`,{[`${xr}-dropdown-rtl`]:sa==="rtl"},Bn,Fr),pi=de.useMemo(()=>{if(!Rn)return Rn;let ao={render:Xt};return typeof Rn=="object"&&(ao=Object.assign(Object.assign({},ao),Rn)),ao},[Rn]),yo=(0,cn.Z)(ao=>{var si;return(si=Vt!=null?Vt:lr)!==null&&si!==void 0?si:ao}),Eo=de.useContext(mn.Z),Yo=Wt!=null?Wt:Eo;let Fo=Ta;Ta||(Fo=Cn?de.createElement(Be.Z,null):de.createElement(ze.Z,null));const Ao=de.createElement("span",{className:`${Fa}-menu-item-loading-icon`},de.createElement(Ae.Z,{spin:!0})),eo=de.useMemo(()=>vt?de.createElement("span",{className:`${xr}-checkbox-inner`}):!1,[vt]),Pr=(0,wt.Z)(Ge.suffixIcon,Jr),{suffixIcon:To,removeIcon:vi,clearIcon:Oo}=(0,Rt.Z)(Object.assign(Object.assign({},Ge),{hasFeedback:Nr,feedbackIcon:Ir,showSuffixIcon:Pr,multiple:vt,prefixCls:Fa,componentName:"Cascader"})),br=de.useMemo(()=>Pa!==void 0?Pa:Cn?"bottomRight":"bottomLeft",[Pa,Cn]),ai=(0,zt.Z)(pr,$n),zr=ya===!0?{clearIcon:Oo}:ya,Lo=de.createElement(Ct,Object.assign({prefixCls:Fa,className:le()(!_t&&xr,{[`${Fa}-lg`]:yo==="large",[`${Fa}-sm`]:yo==="small",[`${Fa}-rtl`]:Cn,[`${Fa}-borderless`]:!Bt,[`${Fa}-in-form-item`]:Zr},(0,Sn.Z)(Fa,ha,Nr),ko,sr==null?void 0:sr.className,Nn,Bn,Fr),disabled:Yo,style:Object.assign(Object.assign({},sr==null?void 0:sr.style),Qe)},qt,{builtinPlacements:ai,direction:sa,placement:br,notFoundContent:za,allowClear:zr,showSearch:pi,expandIcon:Fo,suffixIcon:To,removeIcon:vi,loadingIcon:Ao,checkable:eo,dropdownClassName:ui,dropdownPrefixCls:_t||xr,choiceTransitionName:(0,ke.m)(or,"",vn),transitionName:(0,ke.m)(or,"slide-up",pt),getPopupContainer:mr||Dn,ref:Ot}));return io(qr(Lo))}),Qn=(0,ht.Z)(jn);jn.SHOW_PARENT=Ea,jn.SHOW_CHILD=Ka,jn._InternalPanelDoNotUseOrYouWillBeFired=Qn;var Ia=jn},24905:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return ve}});var b=ee(92310),de=ee.n(b),Be=ee(5630),Ae=ee(59301),ze=ee(36355),Me=ee(1684),le=ee(32441),et=Ae.createContext(null),Ve=ee(98447),We=ee(14088),Je=ee(4572),Ye=function(be,je){var De={};for(var He in be)Object.prototype.hasOwnProperty.call(be,He)&&je.indexOf(He)<0&&(De[He]=be[He]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,He=Object.getOwnPropertySymbols(be);he<He.length;he++)je.indexOf(He[he])<0&&Object.prototype.propertyIsEnumerable.call(be,He[he])&&(De[He[he]]=be[He[he]]);return De};const se=(be,je)=>{var De;const{prefixCls:He,className:he,rootClassName:Xe,children:Ke,indeterminate:St=!1,style:Le,onMouseEnter:ot,onMouseLeave:lt,skipGroup:gt=!1,disabled:ft}=be,ln=Ye(be,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:xt,direction:nn,checkbox:En}=Ae.useContext(ze.E_),$e=Ae.useContext(et),{isFormItemInput:dt}=Ae.useContext(le.aM),on=Ae.useContext(Me.Z),Yn=(De=($e==null?void 0:$e.disabled)||ft)!==null&&De!==void 0?De:on,Zt=Ae.useRef(ln.value);Ae.useEffect(()=>{$e==null||$e.registerValue(ln.value)},[]),Ae.useEffect(()=>{if(!gt)return ln.value!==Zt.current&&($e==null||$e.cancelValue(Zt.current),$e==null||$e.registerValue(ln.value),Zt.current=ln.value),()=>$e==null?void 0:$e.cancelValue(ln.value)},[ln.value]);const On=xt("checkbox",He),[_e,ct]=(0,Ve.ZP)(On),kt=Object.assign({},ln);$e&&!gt&&(kt.onChange=function(){ln.onChange&&ln.onChange.apply(ln,arguments),$e.toggleOption&&$e.toggleOption({label:Ke,value:ln.value})},kt.name=$e.name,kt.checked=$e.value.includes(ln.value));const mt=de()(`${On}-wrapper`,{[`${On}-rtl`]:nn==="rtl",[`${On}-wrapper-checked`]:kt.checked,[`${On}-wrapper-disabled`]:Yn,[`${On}-wrapper-in-form-item`]:dt},En==null?void 0:En.className,he,Xe,ct),It=de()({[`${On}-indeterminate`]:St},Je.A,ct),ut=St?"mixed":void 0;return _e(Ae.createElement(We.Z,{component:"Checkbox",disabled:Yn},Ae.createElement("label",{className:mt,style:Object.assign(Object.assign({},En==null?void 0:En.style),Le),onMouseEnter:ot,onMouseLeave:lt},Ae.createElement(Be.Z,Object.assign({"aria-checked":ut},kt,{prefixCls:On,className:It,disabled:Yn,ref:je})),Ke!==void 0&&Ae.createElement("span",null,Ke))))};var a=Ae.forwardRef(se),x=ee(26407),y=ee(2738),z=function(be,je){var De={};for(var He in be)Object.prototype.hasOwnProperty.call(be,He)&&je.indexOf(He)<0&&(De[He]=be[He]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,He=Object.getOwnPropertySymbols(be);he<He.length;he++)je.indexOf(He[he])<0&&Object.prototype.propertyIsEnumerable.call(be,He[he])&&(De[He[he]]=be[He[he]]);return De};const ne=(be,je)=>{const{defaultValue:De,children:He,options:he=[],prefixCls:Xe,className:Ke,rootClassName:St,style:Le,onChange:ot}=be,lt=z(be,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:gt,direction:ft}=Ae.useContext(ze.E_),[ln,xt]=Ae.useState(lt.value||De||[]),[nn,En]=Ae.useState([]);Ae.useEffect(()=>{"value"in lt&&xt(lt.value||[])},[lt.value]);const $e=Ae.useMemo(()=>he.map(at=>typeof at=="string"||typeof at=="number"?{label:at,value:at}:at),[he]),dt=at=>{En(Ie=>Ie.filter(fe=>fe!==at))},on=at=>{En(Ie=>[].concat((0,x.Z)(Ie),[at]))},Yn=at=>{const Ie=ln.indexOf(at.value),fe=(0,x.Z)(ln);Ie===-1?fe.push(at.value):fe.splice(Ie,1),"value"in lt||xt(fe),ot==null||ot(fe.filter(qe=>nn.includes(qe)).sort((qe,At)=>{const Oe=$e.findIndex(Ct=>Ct.value===qe),Ne=$e.findIndex(Ct=>Ct.value===At);return Oe-Ne}))},Zt=gt("checkbox",Xe),On=`${Zt}-group`,[_e,ct]=(0,Ve.ZP)(Zt),kt=(0,y.Z)(lt,["value","disabled"]),mt=he.length?$e.map(at=>Ae.createElement(a,{prefixCls:Zt,key:at.value.toString(),disabled:"disabled"in at?at.disabled:lt.disabled,value:at.value,checked:ln.includes(at.value),onChange:at.onChange,className:`${On}-item`,style:at.style,title:at.title},at.label)):He,It={toggleOption:Yn,value:ln,disabled:lt.disabled,name:lt.name,registerValue:on,cancelValue:dt},ut=de()(On,{[`${On}-rtl`]:ft==="rtl"},Ke,St,ct);return _e(Ae.createElement("div",Object.assign({className:ut,style:Le},kt,{ref:je}),Ae.createElement(et.Provider,{value:It},mt)))},re=Ae.forwardRef(ne);var ue=Ae.memo(re);const ie=a;ie.Group=ue,ie.__ANT_CHECKBOX=!0;var ve=ie},98447:function(Qt,Gt,ee){"use strict";ee.d(Gt,{C2:function(){return ze}});var b=ee(17313),de=ee(37613),Be=ee(83116);const Ae=Me=>{const{checkboxCls:le}=Me,st=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,b.Wf)(Me)),{display:"inline-flex",flexWrap:"wrap",columnGap:Me.marginXS,[`> ${Me.antCls}-row`]:{flex:1}}),[st]:Object.assign(Object.assign({},(0,b.Wf)(Me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${st}`]:{marginInlineStart:0},[`&${st}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,b.Wf)(Me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Me.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,b.oN)(Me))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Me.checkboxSize,height:Me.checkboxSize,direction:"ltr",backgroundColor:Me.colorBgContainer,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,borderCollapse:"separate",transition:`all ${Me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Me.checkboxSize/14*5,height:Me.checkboxSize/14*8,border:`${Me.lineWidthBold}px solid ${Me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Me.motionDurationFast} ${Me.motionEaseInBack}, opacity ${Me.motionDurationFast}`}},"& + span":{paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS}})},{[`
${st}:not(${st}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Me.colorPrimary}},[`${st}:not(${st}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Me.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Me.colorPrimary,borderColor:Me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Me.motionDurationMid} ${Me.motionEaseOutBack} ${Me.motionDurationFast}`}}},[`
${st}-checked:not(${st}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Me.colorBgContainer,borderColor:Me.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Me.fontSizeLG/2,height:Me.fontSizeLG/2,backgroundColor:Me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${st}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,"&:after":{borderColor:Me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Me.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Me.colorTextDisabled}}}]};function ze(Me,le){const st=(0,de.TS)(le,{checkboxCls:`.${Me}`,checkboxSize:le.controlInteractiveSize});return[Ae(st)]}Gt.ZP=(0,Be.Z)("Checkbox",(Me,le)=>{let{prefixCls:st}=le;return[ze(st,Me)]})},36381:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return kt}});var b=ee(38819),de=ee(92310),Be=ee.n(de),Ae=ee(92413),ze=ee(26407),Me=ee(33606),le=ee(39559),st=ee(18929),et=ee(48736),Ve=ee(59301),We=ee(37061),Je=ee(11592),Ye=ee(400),se=ee(77900),E=ee(10228),a=Ve.forwardRef(function(mt,It){var ut=mt.prefixCls,at=mt.forceRender,Ie=mt.className,fe=mt.style,qe=mt.children,At=mt.isActive,Oe=mt.role,Ne=Ve.useState(At||at),Ct=(0,Me.Z)(Ne,2),tt=Ct[0],ke=Ct[1];return Ve.useEffect(function(){(at||At)&&ke(!0)},[at,At]),tt?Ve.createElement("div",{ref:It,className:Be()("".concat(ut,"-content"),(0,Ye.Z)((0,Ye.Z)({},"".concat(ut,"-content-active"),At),"".concat(ut,"-content-inactive"),!At),Ie),style:fe,role:Oe},Ve.createElement("div",{className:"".concat(ut,"-content-box")},qe)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=Ve.forwardRef(function(mt,It){var ut=mt.showArrow,at=ut===void 0?!0:ut,Ie=mt.headerClass,fe=mt.isActive,qe=mt.onItemClick,At=mt.forceRender,Oe=mt.className,Ne=mt.prefixCls,Ct=mt.collapsible,tt=mt.accordion,ke=mt.panelKey,ht=mt.extra,Sn=mt.header,rn=mt.expandIcon,an=mt.openMotion,mn=mt.destroyInactivePanel,cn=mt.children,Te=(0,We.Z)(mt,y),Ft=Ct==="disabled",zt=Ct==="header",wt=Ct==="icon",Rt=ht!=null&&typeof ht!="boolean",un=function(){qe==null||qe(ke)},dn=function(rr){(rr.key==="Enter"||rr.keyCode===E.Z.ENTER||rr.which===E.Z.ENTER)&&un()},_n=typeof rn=="function"?rn(mt):Ve.createElement("i",{className:"arrow"});_n&&(_n=Ve.createElement("div",{className:"".concat(Ne,"-expand-icon"),onClick:["header","icon"].includes(Ct)?un:void 0},_n));var Vn=Be()((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Ne,"-item"),!0),"".concat(Ne,"-item-active"),fe),"".concat(Ne,"-item-disabled"),Ft),Oe),va=Be()(Ie,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Ne,"-header"),!0),"".concat(Ne,"-header-collapsible-only"),zt),"".concat(Ne,"-icon-collapsible-only"),wt)),La={className:va,"aria-expanded":fe,"aria-disabled":Ft,onKeyDown:dn};return!zt&&!wt&&(La.onClick=un,La.role=tt?"tab":"button",La.tabIndex=Ft?-1:0),Ve.createElement("div",(0,Ae.Z)({},Te,{ref:It,className:Vn}),Ve.createElement("div",La,at&&_n,Ve.createElement("span",{className:"".concat(Ne,"-header-text"),onClick:Ct==="header"?un:void 0},Sn),Rt&&Ve.createElement("div",{className:"".concat(Ne,"-extra")},ht)),Ve.createElement(se.default,(0,Ae.Z)({visible:fe,leavedClassName:"".concat(Ne,"-content-hidden")},an,{forceRender:At,removeOnLeave:mn}),function(Na,rr){var Ka=Na.className,Ea=Na.style;return Ve.createElement(x,{ref:rr,prefixCls:Ne,className:Ka,style:Ea,isActive:fe,forceRender:At,role:tt?"tabpanel":void 0},cn)}))}),ne=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ue=function(It,ut){var at=ut.prefixCls,Ie=ut.accordion,fe=ut.collapsible,qe=ut.destroyInactivePanel,At=ut.onItemClick,Oe=ut.activeKey,Ne=ut.openMotion,Ct=ut.expandIcon;return It.map(function(tt,ke){var ht=tt.children,Sn=tt.label,rn=tt.key,an=tt.collapsible,mn=tt.onItemClick,cn=tt.destroyInactivePanel,Te=(0,We.Z)(tt,re),Ft=String(rn!=null?rn:ke),zt=an!=null?an:fe,wt=cn!=null?cn:qe,Rt=function(_n){zt!=="disabled"&&(At(_n),mn==null||mn(_n))},un=!1;return Ie?un=Oe[0]===Ft:un=Oe.indexOf(Ft)>-1,Ve.createElement(ne,(0,Ae.Z)({},Te,{prefixCls:at,key:Ft,panelKey:Ft,isActive:un,accordion:Ie,openMotion:Ne,expandIcon:Ct,header:Sn,collapsible:zt,onItemClick:Rt,destroyInactivePanel:wt}),ht)})},ie=function(It,ut,at){if(!It)return null;var Ie=at.prefixCls,fe=at.accordion,qe=at.collapsible,At=at.destroyInactivePanel,Oe=at.onItemClick,Ne=at.activeKey,Ct=at.openMotion,tt=at.expandIcon,ke=It.key||String(ut),ht=It.props,Sn=ht.header,rn=ht.headerClass,an=ht.destroyInactivePanel,mn=ht.collapsible,cn=ht.onItemClick,Te=!1;fe?Te=Ne[0]===ke:Te=Ne.indexOf(ke)>-1;var Ft=mn!=null?mn:qe,zt=function(un){Ft!=="disabled"&&(Oe(un),cn==null||cn(un))},wt={key:ke,panelKey:ke,header:Sn,headerClass:rn,isActive:Te,prefixCls:Ie,destroyInactivePanel:an!=null?an:At,openMotion:Ct,accordion:fe,children:It.props.children,onItemClick:zt,expandIcon:tt,collapsible:Ft};return typeof It.type=="string"?It:(Object.keys(wt).forEach(function(Rt){typeof wt[Rt]=="undefined"&&delete wt[Rt]}),Ve.cloneElement(It,wt))};function ve(mt,It,ut){return Array.isArray(mt)?ue(mt,ut):(0,Je.Z)(It).map(function(at,Ie){return ie(at,Ie,ut)})}var be=ve,je=ee(26112);function De(mt){var It=mt;if(!Array.isArray(It)){var ut=(0,le.Z)(It);It=ut==="number"||ut==="string"?[It]:[]}return It.map(function(at){return String(at)})}var He=Ve.forwardRef(function(mt,It){var ut=mt.prefixCls,at=ut===void 0?"rc-collapse":ut,Ie=mt.destroyInactivePanel,fe=Ie===void 0?!1:Ie,qe=mt.style,At=mt.accordion,Oe=mt.className,Ne=mt.children,Ct=mt.collapsible,tt=mt.openMotion,ke=mt.expandIcon,ht=mt.activeKey,Sn=mt.defaultActiveKey,rn=mt.onChange,an=mt.items,mn=Be()(at,Oe),cn=(0,st.Z)([],{value:ht,onChange:function(dn){return rn==null?void 0:rn(dn)},defaultValue:Sn,postState:De}),Te=(0,Me.Z)(cn,2),Ft=Te[0],zt=Te[1],wt=function(dn){return zt(function(){if(At)return Ft[0]===dn?[]:[dn];var _n=Ft.indexOf(dn),Vn=_n>-1;return Vn?Ft.filter(function(va){return va!==dn}):[].concat((0,ze.Z)(Ft),[dn])})};(0,et.ZP)(!Ne,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Rt=be(an,Ne,{prefixCls:at,accordion:At,openMotion:tt,expandIcon:ke,collapsible:Ct,destroyInactivePanel:fe,onItemClick:wt,activeKey:Ft});return Ve.createElement("div",(0,Ae.Z)({ref:It,className:mn,style:qe,role:At?"tablist":void 0},(0,je.Z)(mt,{aria:!0,data:!0})),Rt)}),he=Object.assign(He,{Panel:ne}),Xe=he,Ke=he.Panel,St=ee(2738),Le=ee(62892),ot=ee(92343),lt=ee(36355),gt=ee(19716),ln=Ve.forwardRef((mt,It)=>{const{getPrefixCls:ut}=Ve.useContext(lt.E_),{prefixCls:at,className:Ie,showArrow:fe=!0}=mt,qe=ut("collapse",at),At=Be()({[`${qe}-no-arrow`]:!fe},Ie);return Ve.createElement(Xe.Panel,Object.assign({ref:It},mt,{prefixCls:qe,className:At}))}),xt=ee(17313),nn=ee(8378),En=ee(83116),$e=ee(37613);const dt=mt=>{const{componentCls:It,contentBg:ut,padding:at,headerBg:Ie,headerPadding:fe,collapseHeaderPaddingSM:qe,collapseHeaderPaddingLG:At,collapsePanelBorderRadius:Oe,lineWidth:Ne,lineType:Ct,colorBorder:tt,colorText:ke,colorTextHeading:ht,colorTextDisabled:Sn,fontSize:rn,fontSizeLG:an,lineHeight:mn,marginSM:cn,paddingSM:Te,paddingLG:Ft,paddingXS:zt,motionDurationSlow:wt,fontSizeIcon:Rt,contentPadding:un}=mt,dn=`${Ne}px ${Ct} ${tt}`;return{[It]:Object.assign(Object.assign({},(0,xt.Wf)(mt)),{backgroundColor:Ie,border:dn,borderBottom:0,borderRadius:`${Oe}px`,"&-rtl":{direction:"rtl"},[`& > ${It}-item`]:{borderBottom:dn,"&:last-child":{[`
&,
& > ${It}-header`]:{borderRadius:`0 0 ${Oe}px ${Oe}px`}},[`> ${It}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:fe,color:ht,lineHeight:mn,cursor:"pointer",transition:`all ${wt}, visibility 0s`,[`> ${It}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${It}-expand-icon`]:{height:rn*mn,display:"flex",alignItems:"center",paddingInlineEnd:cn},[`${It}-arrow`]:Object.assign(Object.assign({},(0,xt.Ro)()),{fontSize:Rt,svg:{transition:`transform ${wt}`}}),[`${It}-header-text`]:{marginInlineEnd:"auto"}},[`${It}-header-collapsible-only`]:{cursor:"default",[`${It}-header-text`]:{flex:"none",cursor:"pointer"}},[`${It}-icon-collapsible-only`]:{cursor:"default",[`${It}-expand-icon`]:{cursor:"pointer"}}},[`${It}-content`]:{color:ke,backgroundColor:ut,borderTop:dn,[`& > ${It}-content-box`]:{padding:un},"&-hidden":{display:"none"}},"&-small":{[`> ${It}-item`]:{[`> ${It}-header`]:{padding:qe,paddingInlineStart:zt,[`> ${It}-expand-icon`]:{marginInlineStart:Te-zt}},[`> ${It}-content > ${It}-content-box`]:{padding:Te}}},"&-large":{[`> ${It}-item`]:{fontSize:an,[`> ${It}-header`]:{padding:At,paddingInlineStart:at,[`> ${It}-expand-icon`]:{height:an*mn,marginInlineStart:Ft-at}},[`> ${It}-content > ${It}-content-box`]:{padding:Ft}}},[`${It}-item:last-child`]:{[`> ${It}-content`]:{borderRadius:`0 0 ${Oe}px ${Oe}px`}},[`& ${It}-item-disabled > ${It}-header`]:{"\n &,\n & > .arrow\n ":{color:Sn,cursor:"not-allowed"}},[`&${It}-icon-position-end`]:{[`& > ${It}-item`]:{[`> ${It}-header`]:{[`${It}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:cn}}}}})}},on=mt=>{const{componentCls:It}=mt,ut=`> ${It}-item > ${It}-header ${It}-arrow svg`;return{[`${It}-rtl`]:{[ut]:{transform:"rotate(180deg)"}}}},Yn=mt=>{const{componentCls:It,headerBg:ut,paddingXXS:at,colorBorder:Ie}=mt;return{[`${It}-borderless`]:{backgroundColor:ut,border:0,[`> ${It}-item`]:{borderBottom:`1px solid ${Ie}`},[`
> ${It}-item:last-child,
> ${It}-item:last-child ${It}-header
`]:{borderRadius:0},[`> ${It}-item:last-child`]:{borderBottom:0},[`> ${It}-item > ${It}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${It}-item > ${It}-content > ${It}-content-box`]:{paddingTop:at}}}},Zt=mt=>{const{componentCls:It,paddingSM:ut}=mt;return{[`${It}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${It}-item`]:{borderBottom:0,[`> ${It}-content`]:{backgroundColor:"transparent",border:0,[`> ${It}-content-box`]:{paddingBlock:ut}}}}}};var On=(0,En.Z)("Collapse",mt=>{const It=(0,$e.TS)(mt,{collapseHeaderPaddingSM:`${mt.paddingXS}px ${mt.paddingSM}px`,collapseHeaderPaddingLG:`${mt.padding}px ${mt.paddingLG}px`,collapsePanelBorderRadius:mt.borderRadiusLG});return[dt(It),Yn(It),Zt(It),on(It),(0,nn.Z)(It)]},mt=>({headerPadding:`${mt.paddingSM}px ${mt.padding}px`,headerBg:mt.colorFillAlter,contentPadding:`${mt.padding}px 16px`,contentBg:mt.colorBgContainer})),ct=Object.assign(Ve.forwardRef((mt,It)=>{const{getPrefixCls:ut,direction:at,collapse:Ie}=Ve.useContext(lt.E_),{prefixCls:fe,className:qe,rootClassName:At,style:Oe,bordered:Ne=!0,ghost:Ct,size:tt,expandIconPosition:ke="start",children:ht,expandIcon:Sn}=mt,rn=(0,gt.Z)(dn=>{var _n;return(_n=tt!=null?tt:dn)!==null&&_n!==void 0?_n:"middle"}),an=ut("collapse",fe),mn=ut(),[cn,Te]=On(an),Ft=Ve.useMemo(()=>ke==="left"?"start":ke==="right"?"end":ke,[ke]),zt=function(){let dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _n=Sn?Sn(dn):Ve.createElement(b.Z,{rotate:dn.isActive?90:void 0});return(0,ot.Tm)(_n,()=>({className:Be()(_n.props.className,`${an}-arrow`)}))},wt=Be()(`${an}-icon-position-${Ft}`,{[`${an}-borderless`]:!Ne,[`${an}-rtl`]:at==="rtl",[`${an}-ghost`]:!!Ct,[`${an}-${rn}`]:rn!=="middle"},Ie==null?void 0:Ie.className,qe,At,Te),Rt=Object.assign(Object.assign({},(0,Le.Z)(mn)),{motionAppear:!1,leavedClassName:`${an}-content-hidden`}),un=Ve.useMemo(()=>ht?(0,Je.Z)(ht).map((dn,_n)=>{var Vn,va;if(!((Vn=dn.props)===null||Vn===void 0)&&Vn.disabled){const La=(va=dn.key)!==null&&va!==void 0?va:String(_n),{disabled:Na,collapsible:rr}=dn.props,Ka=Object.assign(Object.assign({},(0,St.Z)(dn.props,["disabled"])),{key:La,collapsible:rr!=null?rr:Na?"disabled":void 0});return(0,ot.Tm)(dn,Ka)}return dn}):null,[ht]);return cn(Ve.createElement(Xe,Object.assign({ref:It,openMotion:Rt},(0,St.Z)(mt,["rootClassName"]),{expandIcon:zt,prefixCls:an,className:wt,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),Oe)}),un))}),{Panel:ln}),kt=ct},5083:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return Wu}});var b=ee(61186),de=ee.n(b),Be=ee(48736),Ae=ee(90111),ze=ee.n(Ae),Me=ee(58319),le=ee.n(Me),st=ee(23250),et=ee.n(st),Ve=ee(74959),We=ee.n(Ve),Je=ee(10238),Ye=ee.n(Je),se=ee(33656),E=ee.n(se);de().extend(E()),de().extend(Ye()),de().extend(ze()),de().extend(le()),de().extend(et()),de().extend(We()),de().extend(function(me,Se){var ye=Se.prototype,nt=ye.format;ye.format=function(en){var Kt=(en||"").replace("Wo","wo");return nt.bind(this)(Kt)}});var a={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},x=function(Se){var ye=a[Se];return ye||Se.split("_")[0]},y=function(){(0,Be.ET)(!1,"Not match any format. Please help to fire a issue about this.")},z={getNow:function(){return de()()},getFixedDate:function(Se){return de()(Se,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(Se){return Se.endOf("month")},getWeekDay:function(Se){var ye=Se.locale("en");return ye.weekday()+ye.localeData().firstDayOfWeek()},getYear:function(Se){return Se.year()},getMonth:function(Se){return Se.month()},getDate:function(Se){return Se.date()},getHour:function(Se){return Se.hour()},getMinute:function(Se){return Se.minute()},getSecond:function(Se){return Se.second()},addYear:function(Se,ye){return Se.add(ye,"year")},addMonth:function(Se,ye){return Se.add(ye,"month")},addDate:function(Se,ye){return Se.add(ye,"day")},setYear:function(Se,ye){return Se.year(ye)},setMonth:function(Se,ye){return Se.month(ye)},setDate:function(Se,ye){return Se.date(ye)},setHour:function(Se,ye){return Se.hour(ye)},setMinute:function(Se,ye){return Se.minute(ye)},setSecond:function(Se,ye){return Se.second(ye)},isAfter:function(Se,ye){return Se.isAfter(ye)},isValidate:function(Se){return Se.isValid()},locale:{getWeekFirstDay:function(Se){return de()().locale(x(Se)).localeData().firstDayOfWeek()},getWeekFirstDate:function(Se,ye){return ye.locale(x(Se)).weekday(0)},getWeek:function(Se,ye){return ye.locale(x(Se)).week()},getShortWeekDays:function(Se){return de()().locale(x(Se)).localeData().weekdaysMin()},getShortMonths:function(Se){return de()().locale(x(Se)).localeData().monthsShort()},format:function(Se,ye,nt){return ye.locale(x(Se)).format(nt)},parse:function(Se,ye,nt){for(var it=x(Se),en=0;en<nt.length;en+=1){var Kt=nt[en],kn=ye;if(Kt.includes("wo")||Kt.includes("Wo")){for(var Mn=kn.split("-")[0],oa=kn.split("-")[1],Ba=de()(Mn,"YYYY").startOf("year").locale(it),ga=0;ga<=52;ga+=1){var gn=Ba.add(ga,"week");if(gn.format("Wo")===oa)return gn}return y(),null}var Da=de()(kn,Kt,!0).locale(it);if(Da.isValid())return Da}return ye&&y(),null}}},ne=z,re=ee(53487),ue=ee(92413),ie=ee(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},be=ve,je=ee(7657),De=function(Se,ye){return ie.createElement(je.Z,(0,ue.Z)({},Se,{ref:ye,icon:be}))},He=ie.forwardRef(De),he=He,Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Ke=Xe,St=function(Se,ye){return ie.createElement(je.Z,(0,ue.Z)({},Se,{ref:ye,icon:Ke}))},Le=ie.forwardRef(St),ot=Le,lt=ee(19248),gt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ft=gt,ln=function(Se,ye){return ie.createElement(je.Z,(0,ue.Z)({},Se,{ref:ye,icon:ft}))},xt=ie.forwardRef(ln),nn=xt,En=ee(92310),$e=ee.n(En),dt=ee(6909),on=ee(4771),Yn=ee(25314),Zt=ee(9427),On=ee(25440),_e=ee(400),ct=ee(33708),kt=ee(33606),mt=ee(18929),It=ee(26112),ut=ee(80547),at=ee(13697),Ie=10,fe=Ie*10,qe=7;function At(me,Se){if(!me&&!Se)return!0;if(!me||!Se)return!1}function Oe(me,Se,ye){var nt=At(Se,ye);if(typeof nt=="boolean")return nt;var it=Math.floor(me.getYear(Se)/10),en=Math.floor(me.getYear(ye)/10);return it===en}function Ne(me,Se,ye){var nt=At(Se,ye);return typeof nt=="boolean"?nt:me.getYear(Se)===me.getYear(ye)}function Ct(me,Se){var ye=Math.floor(me.getMonth(Se)/3);return ye+1}function tt(me,Se,ye){var nt=At(Se,ye);return typeof nt=="boolean"?nt:Ne(me,Se,ye)&&Ct(me,Se)===Ct(me,ye)}function ke(me,Se,ye){var nt=At(Se,ye);return typeof nt=="boolean"?nt:Ne(me,Se,ye)&&me.getMonth(Se)===me.getMonth(ye)}function ht(me,Se,ye){var nt=At(Se,ye);return typeof nt=="boolean"?nt:me.getYear(Se)===me.getYear(ye)&&me.getMonth(Se)===me.getMonth(ye)&&me.getDate(Se)===me.getDate(ye)}function Sn(me,Se,ye){var nt=At(Se,ye);return typeof nt=="boolean"?nt:me.getHour(Se)===me.getHour(ye)&&me.getMinute(Se)===me.getMinute(ye)&&me.getSecond(Se)===me.getSecond(ye)}function rn(me,Se,ye,nt){var it=At(ye,nt);return typeof it=="boolean"?it:Ne(me,ye,nt)&&me.locale.getWeek(Se,ye)===me.locale.getWeek(Se,nt)}function an(me,Se,ye){return ht(me,Se,ye)&&Sn(me,Se,ye)}function mn(me,Se,ye,nt){return!Se||!ye||!nt?!1:!ht(me,Se,nt)&&!ht(me,ye,nt)&&me.isAfter(nt,Se)&&me.isAfter(ye,nt)}function cn(me,Se,ye){var nt=Se.locale.getWeekFirstDay(me),it=Se.setDate(ye,1),en=Se.getWeekDay(it),Kt=Se.addDate(it,nt-en);return Se.getMonth(Kt)===Se.getMonth(ye)&&Se.getDate(Kt)>1&&(Kt=Se.addDate(Kt,-7)),Kt}function Te(me,Se,ye){var nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Se){case"year":return ye.addYear(me,nt*10);case"quarter":case"month":return ye.addYear(me,nt);default:return ye.addMonth(me,nt)}}function Ft(me,Se){var ye=Se.generateConfig,nt=Se.locale,it=Se.format;return typeof it=="function"?it(me):ye.locale.format(nt.locale,me,it)}function zt(me,Se){var ye=Se.generateConfig,nt=Se.locale,it=Se.formatList;return!me||typeof it[0]=="function"?null:ye.locale.parse(nt.locale,me,it)}function wt(me){var Se=me.cellDate,ye=me.mode,nt=me.disabledDate,it=me.generateConfig;if(!nt)return!1;var en=function(Ra,Ln,da){for(var Ma=Ln;Ma<=da;){var Br=void 0;switch(Ra){case"date":{if(Br=it.setDate(Se,Ma),!nt(Br))return!1;break}case"month":{if(Br=it.setMonth(Se,Ma),!wt({cellDate:Br,mode:"month",generateConfig:it,disabledDate:nt}))return!1;break}case"year":{if(Br=it.setYear(Se,Ma),!wt({cellDate:Br,mode:"year",generateConfig:it,disabledDate:nt}))return!1;break}}Ma+=1}return!0};switch(ye){case"date":case"week":return nt(Se);case"month":{var Kt=1,kn=it.getDate(it.getEndDate(Se));return en("date",Kt,kn)}case"quarter":{var Mn=Math.floor(it.getMonth(Se)/3)*3,oa=Mn+2;return en("month",Mn,oa)}case"year":return en("month",0,11);case"decade":{var Ba=it.getYear(Se),ga=Math.floor(Ba/Ie)*Ie,gn=ga+Ie-1;return en("year",ga,gn)}}}function Rt(me,Se){var ye=Se.formatList,nt=Se.generateConfig,it=Se.locale;return(0,ut.Z)(function(){if(!me)return[[""],""];for(var en="",Kt=[],kn=0;kn<ye.length;kn+=1){var Mn=ye[kn],oa=Ft(me,{generateConfig:nt,locale:it,format:Mn});Kt.push(oa),kn===0&&(en=oa)}return[Kt,en]},[me,ye,it],function(en,Kt){return!an(nt,en[0],Kt[0])||!(0,at.Z)(en[1],Kt[1],!0)||!(0,at.Z)(en[2],Kt[2],!0)})}function un(me,Se){var ye=Se.formatList,nt=Se.generateConfig,it=Se.locale,en=(0,ie.useState)(null),Kt=(0,kt.Z)(en,2),kn=Kt[0],Mn=Kt[1],oa=(0,ie.useRef)(null);function Ba(da){var Ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(oa.current),Ma){Mn(da);return}oa.current=requestAnimationFrame(function(){Mn(da)})}var ga=Rt(kn,{formatList:ye,generateConfig:nt,locale:it}),gn=(0,kt.Z)(ga,2),Da=gn[1];function Ra(da){Ba(da)}function Ln(){var da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ba(null,da)}return(0,ie.useEffect)(function(){Ln(!0)},[me]),(0,ie.useEffect)(function(){return function(){return cancelAnimationFrame(oa.current)}},[]),[Da,Ra,Ln]}var dn=ee(10228),_n=ee(16089),Vn=ee(26407),va=ee(29194),La=new Map;function Na(me,Se){var ye;function nt(){(0,va.Z)(me)?Se():ye=(0,_n.Z)(function(){nt()})}return nt(),function(){_n.Z.cancel(ye)}}function rr(me,Se,ye){if(La.get(me)&&cancelAnimationFrame(La.get(me)),ye<=0){La.set(me,requestAnimationFrame(function(){me.scrollTop=Se}));return}var nt=Se-me.scrollTop,it=nt/ye*10;La.set(me,requestAnimationFrame(function(){me.scrollTop+=it,me.scrollTop!==Se&&rr(me,Se,ye-10)}))}function Ka(me,Se){var ye=Se.onLeftRight,nt=Se.onCtrlLeftRight,it=Se.onUpDown,en=Se.onPageUpDown,Kt=Se.onEnter,kn=me.which,Mn=me.ctrlKey,oa=me.metaKey;switch(kn){case dn.Z.LEFT:if(Mn||oa){if(nt)return nt(-1),!0}else if(ye)return ye(-1),!0;break;case dn.Z.RIGHT:if(Mn||oa){if(nt)return nt(1),!0}else if(ye)return ye(1),!0;break;case dn.Z.UP:if(it)return it(-1),!0;break;case dn.Z.DOWN:if(it)return it(1),!0;break;case dn.Z.PAGE_UP:if(en)return en(-1),!0;break;case dn.Z.PAGE_DOWN:if(en)return en(1),!0;break;case dn.Z.ENTER:if(Kt)return Kt(),!0;break}return!1}function Ea(me,Se,ye,nt){var it=me;if(!it)switch(Se){case"time":it=nt?"hh:mm:ss a":"HH:mm:ss";break;case"week":it="gggg-wo";break;case"month":it="YYYY-MM";break;case"quarter":it="YYYY-[Q]Q";break;case"year":it="YYYY";break;default:it=ye?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return it}function yr(me,Se,ye){var nt=me==="time"?8:10,it=typeof Se=="function"?Se(ye.getNow()).length:Se.length;return Math.max(nt,it)+2}var Xt=null,jn=new Set;function Qn(me){return!Xt&&typeof window!="undefined"&&window.addEventListener&&(Xt=function(ye){(0,Vn.Z)(jn).forEach(function(nt){nt(ye)})},window.addEventListener("mousedown",Xt)),jn.add(me),function(){jn.delete(me),jn.size===0&&(window.removeEventListener("mousedown",Xt),Xt=null)}}function Ia(me){var Se=me.target;if(me.composed&&Se.shadowRoot){var ye;return((ye=me.composedPath)===null||ye===void 0?void 0:ye.call(me)[0])||Se}return Se}var Ge=function(Se){return Se==="month"||Se==="date"?"year":Se},Ot=function(Se){return Se==="date"?"month":Se},_t=function(Se){return Se==="month"||Se==="date"?"quarter":Se},Vt=function(Se){return Se==="date"?"week":Se},Wt={year:Ge,month:Ot,quarter:_t,week:Vt,time:null,date:null};function Nn(me,Se){return me.some(function(ye){return ye&&ye.contains(Se)})}function Bn(me){var Se=me.open,ye=me.value,nt=me.isClickOutside,it=me.triggerOpen,en=me.forwardKeyDown,Kt=me.onKeyDown,kn=me.blurToCancel,Mn=me.onSubmit,oa=me.onCancel,Ba=me.onFocus,ga=me.onBlur,gn=me.changeOnBlur,Da=(0,ie.useState)(!1),Ra=(0,kt.Z)(Da,2),Ln=Ra[0],da=Ra[1],Ma=(0,ie.useState)(!1),Br=(0,kt.Z)(Ma,2),vr=Br[0],wr=Br[1],Hr=(0,ie.useRef)(!1),Or=(0,ie.useRef)(!1),zn=(0,ie.useRef)(!1),$o={onMouseDown:function(){da(!0),it(!0)},onKeyDown:function(Go){var qo=function(){zn.current=!0};if(Kt(Go,qo),!zn.current){switch(Go.which){case dn.Z.ENTER:{Se?Mn()!==!1&&da(!0):it(!0),Go.preventDefault();return}case dn.Z.TAB:{Ln&&Se&&!Go.shiftKey?(da(!1),Go.preventDefault()):!Ln&&Se&&!en(Go)&&Go.shiftKey&&(da(!0),Go.preventDefault());return}case dn.Z.ESC:{da(!0),oa();return}}!Se&&![dn.Z.SHIFT].includes(Go.which)?it(!0):Ln||en(Go)}},onFocus:function(Go){da(!0),wr(!0),Ba&&Ba(Go)},onBlur:function(Go){if(Hr.current||!nt(document.activeElement)){Hr.current=!1;return}kn?setTimeout(function(){for(var qo=document,oi=qo.activeElement;oi&&oi.shadowRoot;)oi=oi.shadowRoot.activeElement;nt(oi)&&oa()},0):Se&&(it(!1),Or.current&&Mn()),wr(!1),ga==null||ga(Go)}};return(0,ie.useEffect)(function(){Or.current=!1},[Se]),(0,ie.useEffect)(function(){Or.current=!0},[ye]),(0,ie.useEffect)(function(){return Qn(function(fo){var Go=Ia(fo),qo=nt(Go);Se&&(qo?!gn&&(!vr||qo)&&it(!1):(Hr.current=!0,(0,_n.Z)(function(){Hr.current=!1})))})}),[$o,{focused:vr,typing:Ln}]}function vt(me,Se){return ie.useMemo(function(){return me||(Se?((0,Be.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Se).map(function(ye){var nt=(0,kt.Z)(ye,2),it=nt[0],en=nt[1];return{label:it,value:en}})):[])},[me,Se])}var Bt=ee(34280);function pt(me){var Se=me.valueTexts,ye=me.onTextChange,nt=ie.useState(""),it=(0,kt.Z)(nt,2),en=it[0],Kt=it[1],kn=ie.useRef([]);kn.current=Se;function Mn(Ba){Kt(Ba),ye(Ba)}function oa(){Kt(kn.current[0])}return(0,Bt.Z)(function(){Se.every(function(Ba){return Ba!==en})&&oa()},[Se.join("||")]),[en,Mn,oa]}var vn=ie.createContext({}),Hn=vn,In=ee(39559);function Ta(me){var Se=me.cellRender,ye=me.monthCellRender,nt=me.dateRender,it=ie.useMemo(function(){if(Se)return Se;if(!(!ye&&!nt))return function(en,Kt){var kn=en;return nt&&Kt.type==="date"?nt(kn,Kt.today):ye&&Kt.type==="month"?ye(kn,Kt.locale):Kt.originNode}},[Se,ye,nt]);return it}function Pa(me,Se){for(var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",nt=String(me);nt.length<Se;)nt="".concat(ye).concat(me);return nt}var Rn=function(){for(var Se=arguments.length,ye=new Array(Se),nt=0;nt<Se;nt++)ye[nt]=arguments[nt];return ye};function ya(me){return me==null?[]:Array.isArray(me)?me:[me]}function ba(me,Se){return me?me[Se]:null}function wn(me,Se,ye){var nt=[ba(me,0),ba(me,1)];return nt[ye]=typeof Se=="function"?Se(nt[ye]):Se,!nt[0]&&!nt[1]?null:nt}function mr(me){return typeof me=="function"?me():me}function Er(me){var Se=me.cellPrefixCls,ye=me.generateConfig,nt=me.rangedValue,it=me.hoverRangedValue,en=me.isInView,Kt=me.isSameCell,kn=me.offsetCell,Mn=me.today,oa=me.value;function Ba(ga){var gn,Da=kn(ga,-1),Ra=kn(ga,1),Ln=ba(nt,0),da=ba(nt,1),Ma=ba(it,0),Br=ba(it,1),vr=mn(ye,Ma,Br,ga);function wr(Go){return Kt(Ln,Go)}function Hr(Go){return Kt(da,Go)}var Or=Kt(Ma,ga),zn=Kt(Br,ga),$o=(vr||zn)&&(!en(Da)||Hr(Da)),fo=(vr||Or)&&(!en(Ra)||wr(Ra));return gn={},(0,_e.Z)(gn,"".concat(Se,"-in-view"),en(ga)),(0,_e.Z)(gn,"".concat(Se,"-in-range"),mn(ye,Ln,da,ga)),(0,_e.Z)(gn,"".concat(Se,"-range-start"),wr(ga)),(0,_e.Z)(gn,"".concat(Se,"-range-end"),Hr(ga)),(0,_e.Z)(gn,"".concat(Se,"-range-start-single"),wr(ga)&&!da),(0,_e.Z)(gn,"".concat(Se,"-range-end-single"),Hr(ga)&&!Ln),(0,_e.Z)(gn,"".concat(Se,"-range-start-near-hover"),wr(ga)&&(Kt(Da,Ma)||mn(ye,Ma,Br,Da))),(0,_e.Z)(gn,"".concat(Se,"-range-end-near-hover"),Hr(ga)&&(Kt(Ra,Br)||mn(ye,Ma,Br,Ra))),(0,_e.Z)(gn,"".concat(Se,"-range-hover"),vr),(0,_e.Z)(gn,"".concat(Se,"-range-hover-start"),Or),(0,_e.Z)(gn,"".concat(Se,"-range-hover-end"),zn),(0,_e.Z)(gn,"".concat(Se,"-range-hover-edge-start"),$o),(0,_e.Z)(gn,"".concat(Se,"-range-hover-edge-end"),fo),(0,_e.Z)(gn,"".concat(Se,"-range-hover-edge-start-near-range"),$o&&Kt(Da,da)),(0,_e.Z)(gn,"".concat(Se,"-range-hover-edge-end-near-range"),fo&&Kt(Ra,Ln)),(0,_e.Z)(gn,"".concat(Se,"-today"),Kt(Mn,ga)),(0,_e.Z)(gn,"".concat(Se,"-selected"),Kt(oa,ga)),gn}return Ba}var Jr=ie.createContext({}),pr=Jr;function Qe(me,Se,ye,nt,it){var en=me.setHour(Se,ye);return en=me.setMinute(en,nt),en=me.setSecond(en,it),en}function Pn(me,Se,ye){if(!ye)return Se;var nt=Se;return nt=me.setHour(nt,me.getHour(ye)),nt=me.setMinute(nt,me.getMinute(ye)),nt=me.setSecond(nt,me.getSecond(ye)),nt}function qt(me,Se,ye,nt,it,en){var Kt=Math.floor(me/nt)*nt;if(Kt<me)return[Kt,60-it,60-en];var kn=Math.floor(Se/it)*it;if(kn<Se)return[Kt,kn,60-en];var Mn=Math.floor(ye/en)*en;return[Kt,kn,Mn]}function Dn(me,Se){var ye=me.getYear(Se),nt=me.getMonth(Se)+1,it=me.getEndDate(me.getFixedDate("".concat(ye,"-").concat(nt,"-01"))),en=me.getDate(it),Kt=nt<10?"0".concat(nt):"".concat(nt);return"".concat(ye,"-").concat(Kt,"-").concat(en)}function Gn(me){for(var Se=me.prefixCls,ye=me.disabledDate,nt=me.onSelect,it=me.picker,en=me.rowNum,Kt=me.colNum,kn=me.prefixColumn,Mn=me.rowClassName,oa=me.baseDate,Ba=me.getCellClassName,ga=me.getCellText,gn=me.getCellNode,Da=me.getCellDate,Ra=me.generateConfig,Ln=me.titleCell,da=me.headerCells,Ma=ie.useContext(Hn),Br=Ma.onDateMouseEnter,vr=Ma.onDateMouseLeave,wr=Ma.mode,Hr="".concat(Se,"-cell"),Or=[],zn=0;zn<en;zn+=1){for(var $o=[],fo=void 0,Go=function(){var Si,zi=zn*Kt+qo,ro=Da(oa,zi),Ro=wt({cellDate:ro,mode:wr,disabledDate:ye,generateConfig:Ra});qo===0&&(fo=ro,kn&&$o.push(kn(fo)));var zo=Ln&&Ln(ro),Di=ie.createElement("div",{className:"".concat(Hr,"-inner")},ga(ro));$o.push(ie.createElement("td",{key:qo,title:zo,className:$e()(Hr,(0,ct.Z)((Si={},(0,_e.Z)(Si,"".concat(Hr,"-disabled"),Ro),(0,_e.Z)(Si,"".concat(Hr,"-start"),ga(ro)===1||it==="year"&&Number(zo)%10===0),(0,_e.Z)(Si,"".concat(Hr,"-end"),zo===Dn(Ra,ro)||it==="year"&&Number(zo)%10===9),Si),Ba(ro))),onClick:function(){Ro||nt(ro)},onMouseEnter:function(){!Ro&&Br&&Br(ro)},onMouseLeave:function(){!Ro&&vr&&vr(ro)}},gn?gn(ro,Di):Di))},qo=0;qo<Kt;qo+=1)Go();Or.push(ie.createElement("tr",{key:zn,className:Mn&&Mn(fo)},$o))}return ie.createElement("div",{className:"".concat(Se,"-body")},ie.createElement("table",{className:"".concat(Se,"-content")},da&&ie.createElement("thead",null,ie.createElement("tr",null,da)),ie.createElement("tbody",null,Or)))}function ra(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.prefixColumn,it=me.locale,en=me.rowCount,Kt=me.viewDate,kn=me.value,Mn=me.cellRender,oa=me.isSameCell,Ba=ie.useContext(pr),ga=Ba.rangedValue,gn=Ba.hoverRangedValue,Da=cn(it.locale,ye,Kt),Ra="".concat(Se,"-cell"),Ln=ye.locale.getWeekFirstDay(it.locale),da=ye.getNow(),Ma=[],Br=it.shortWeekDays||(ye.locale.getShortWeekDays?ye.locale.getShortWeekDays(it.locale):[]);nt&&Ma.push(ie.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var vr=0;vr<qe;vr+=1)Ma.push(ie.createElement("th",{key:vr},Br[(vr+Ln)%qe]));var wr=Er({cellPrefixCls:Ra,today:da,value:kn,generateConfig:ye,rangedValue:nt?null:ga,hoverRangedValue:nt?null:gn,isSameCell:oa||function(Or,zn){return ht(ye,Or,zn)},isInView:function(zn){return ke(ye,zn,Kt)},offsetCell:function(zn,$o){return ye.addDate(zn,$o)}}),Hr=Mn?function(Or,zn){return Mn(Or,{originNode:zn,today:da,type:"date",locale:it})}:void 0;return ie.createElement(Gn,(0,ue.Z)({},me,{rowNum:en,colNum:qe,baseDate:Da,getCellNode:Hr,getCellText:ye.getDate,getCellClassName:wr,getCellDate:ye.addDate,titleCell:function(zn){return Ft(zn,{locale:it,format:"YYYY-MM-DD",generateConfig:ye})},headerCells:Ma}))}var Xn=ra,$n={visibility:"hidden"};function sr(me){var Se=me.prefixCls,ye=me.prevIcon,nt=ye===void 0?"\u2039":ye,it=me.nextIcon,en=it===void 0?"\u203A":it,Kt=me.superPrevIcon,kn=Kt===void 0?"\xAB":Kt,Mn=me.superNextIcon,oa=Mn===void 0?"\xBB":Mn,Ba=me.onSuperPrev,ga=me.onSuperNext,gn=me.onPrev,Da=me.onNext,Ra=me.children,Ln=ie.useContext(Hn),da=Ln.hideNextBtn,Ma=Ln.hidePrevBtn;return ie.createElement("div",{className:Se},Ba&&ie.createElement("button",{type:"button",onClick:Ba,tabIndex:-1,className:"".concat(Se,"-super-prev-btn"),style:Ma?$n:{}},kn),gn&&ie.createElement("button",{type:"button",onClick:gn,tabIndex:-1,className:"".concat(Se,"-prev-btn"),style:Ma?$n:{}},nt),ie.createElement("div",{className:"".concat(Se,"-view")},Ra),Da&&ie.createElement("button",{type:"button",onClick:Da,tabIndex:-1,className:"".concat(Se,"-next-btn"),style:da?$n:{}},en),ga&&ie.createElement("button",{type:"button",onClick:ga,tabIndex:-1,className:"".concat(Se,"-super-next-btn"),style:da?$n:{}},oa))}var sa=sr;function Cn(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.locale,it=me.viewDate,en=me.onNextMonth,Kt=me.onPrevMonth,kn=me.onNextYear,Mn=me.onPrevYear,oa=me.onYearClick,Ba=me.onMonthClick,ga=ie.useContext(Hn),gn=ga.hideHeader;if(gn)return null;var Da="".concat(Se,"-header"),Ra=nt.shortMonths||(ye.locale.getShortMonths?ye.locale.getShortMonths(nt.locale):[]),Ln=ye.getMonth(it),da=ie.createElement("button",{type:"button",key:"year",onClick:oa,tabIndex:-1,className:"".concat(Se,"-year-btn")},Ft(it,{locale:nt,format:nt.yearFormat,generateConfig:ye})),Ma=ie.createElement("button",{type:"button",key:"month",onClick:Ba,tabIndex:-1,className:"".concat(Se,"-month-btn")},nt.monthFormat?Ft(it,{locale:nt,format:nt.monthFormat,generateConfig:ye}):Ra[Ln]),Br=nt.monthBeforeYear?[Ma,da]:[da,Ma];return ie.createElement(sa,(0,ue.Z)({},me,{prefixCls:Da,onSuperPrev:Mn,onPrev:Kt,onNext:en,onSuperNext:kn}),Br)}var dr=Cn,Nr=6;function Zr(me){var Se=me.prefixCls,ye=me.panelName,nt=ye===void 0?"date":ye,it=me.keyboardConfig,en=me.active,Kt=me.operationRef,kn=me.generateConfig,Mn=me.value,oa=me.viewDate,Ba=me.onViewDateChange,ga=me.onPanelChange,gn=me.onSelect,Da="".concat(Se,"-").concat(nt,"-panel");Kt.current={onKeyDown:function(Ma){return Ka(Ma,(0,ct.Z)({onLeftRight:function(vr){gn(kn.addDate(Mn||oa,vr),"key")},onCtrlLeftRight:function(vr){gn(kn.addYear(Mn||oa,vr),"key")},onUpDown:function(vr){gn(kn.addDate(Mn||oa,vr*qe),"key")},onPageUpDown:function(vr){gn(kn.addMonth(Mn||oa,vr),"key")}},it))}};var Ra=function(Ma){var Br=kn.addYear(oa,Ma);Ba(Br),ga(null,Br)},Ln=function(Ma){var Br=kn.addMonth(oa,Ma);Ba(Br),ga(null,Br)};return ie.createElement("div",{className:$e()(Da,(0,_e.Z)({},"".concat(Da,"-active"),en))},ie.createElement(dr,(0,ue.Z)({},me,{prefixCls:Se,value:Mn,viewDate:oa,onPrevYear:function(){Ra(-1)},onNextYear:function(){Ra(1)},onPrevMonth:function(){Ln(-1)},onNextMonth:function(){Ln(1)},onMonthClick:function(){ga("month",oa)},onYearClick:function(){ga("year",oa)}})),ie.createElement(Xn,(0,ue.Z)({},me,{onSelect:function(Ma){return gn(Ma,"mouse")},prefixCls:Se,value:Mn,viewDate:oa,rowCount:Nr})))}var Ir=Zr;function ha(me){var Se=ie.useContext(Hn),ye=Se.hideHeader;if(ye)return null;var nt=me.prefixCls,it=me.generateConfig,en=me.locale,Kt=me.value,kn=me.format,Mn="".concat(nt,"-header");return ie.createElement(sa,{prefixCls:Mn},Kt?Ft(Kt,{locale:en,format:kn,generateConfig:it}):"\xA0")}var za=ha;function or(me){var Se=me.value,ye=me.generateConfig,nt=me.disabledMinutes,it=me.disabledSeconds,en=me.minutes,Kt=me.seconds,kn=me.use12Hours,Mn=function(Ba,ga,gn,Da){var Ra=ye.getNow(),Ln=Se||Ra,da=ga<0?ye.getHour(Ra):ga,Ma=gn<0?ye.getMinute(Ra):gn,Br=Da<0?ye.getSecond(Ra):Da,vr=nt&&nt(da);if(vr!=null&&vr.includes(Ma)){var wr=en.find(function(zn){return!vr.includes(zn.value)});if(wr)Ma=wr.value;else return null}var Hr=it&&it(da,Ma);if(Hr!=null&&Hr.includes(Br)){var Or=Kt.find(function(zn){return!Hr.includes(zn.value)});if(Or)Br=Or.value;else return null}return Ln=Qe(ye,Ln,!kn||!Ba?da:da+12,Ma,Br),Ln};return Mn}function Fa(me){var Se=me.prefixCls,ye=me.units,nt=me.onSelect,it=me.value,en=me.active,Kt=me.hideDisabledOptions,kn=me.info,Mn=me.type,oa="".concat(Se,"-cell"),Ba=ie.useContext(Hn),ga=Ba.open,gn=(0,ie.useRef)(null),Da=(0,ie.useRef)(new Map),Ra=(0,ie.useRef)();return(0,ie.useLayoutEffect)(function(){var Ln=Da.current.get(it);Ln&&ga!==!1&&rr(gn.current,Ln.offsetTop,120)},[it]),(0,ie.useLayoutEffect)(function(){if(ga){var Ln=Da.current.get(it);Ln&&(Ra.current=Na(Ln,function(){rr(gn.current,Ln.offsetTop,0)}))}return function(){var da;(da=Ra.current)===null||da===void 0||da.call(Ra)}},[ga]),ie.createElement("ul",{className:$e()("".concat(Se,"-column"),(0,_e.Z)({},"".concat(Se,"-column-active"),en)),ref:gn,style:{position:"relative"}},ye.map(function(Ln){var da;return Kt&&Ln.disabled?null:ie.createElement("li",{key:Ln.value,ref:function(Br){Da.current.set(Ln.value,Br)},className:$e()(oa,(da={},(0,_e.Z)(da,"".concat(oa,"-disabled"),Ln.disabled),(0,_e.Z)(da,"".concat(oa,"-selected"),it===Ln.value),da)),onClick:function(){Ln.disabled||nt(Ln.value)}},kn.cellRender?kn.cellRender(Ln.value,{today:kn.today,locale:kn.locale,originNode:ie.createElement("div",{className:"".concat(oa,"-inner")},Ln.label),type:"time",subType:Mn}):ie.createElement("div",{className:"".concat(oa,"-inner")},Ln.label))}))}var xr=Fa;function qr(me,Se){if(me.length!==Se.length)return!0;for(var ye=0;ye<me.length;ye+=1)if(me[ye].disabled!==Se[ye].disabled)return!0;return!1}function Fr(me,Se,ye,nt){for(var it=[],en=ye>=1?ye|0:1,Kt=me;Kt<=Se;Kt+=en)it.push({label:Pa(Kt,2),value:Kt,disabled:(nt||[]).includes(Kt)});return it}function io(me){var Se=me.generateConfig,ye=me.prefixCls,nt=me.operationRef,it=me.activeColumnIndex,en=me.value,Kt=me.showHour,kn=me.showMinute,Mn=me.showSecond,oa=me.use12Hours,Ba=me.hourStep,ga=Ba===void 0?1:Ba,gn=me.minuteStep,Da=gn===void 0?1:gn,Ra=me.secondStep,Ln=Ra===void 0?1:Ra,da=me.disabledHours,Ma=me.disabledMinutes,Br=me.disabledSeconds,vr=me.disabledTime,wr=me.hideDisabledOptions,Hr=me.onSelect,Or=me.cellRender,zn=me.locale,$o=[],fo="".concat(ye,"-content"),Go="".concat(ye,"-time-panel"),qo,oi=en?Se.getHour(en):-1,Si=oi,zi=en?Se.getMinute(en):-1,ro=en?Se.getSecond(en):-1,Ro=Se.getNow(),zo=ie.useMemo(function(){if(vr){var pn=vr(Ro);return[pn.disabledHours,pn.disabledMinutes,pn.disabledSeconds]}return[da,Ma,Br]},[da,Ma,Br,vr,Ro]),Di=(0,kt.Z)(zo,3),Ii=Di[0],fi=Di[1],Mo=Di[2],ol=Fr(0,23,ga,Ii&&Ii()),Xi=(0,ut.Z)(function(){return ol},ol,qr);oa&&(qo=Si>=12,Si%=12);var Ee=ie.useMemo(function(){if(!oa)return[!1,!1];var pn=[!0,!0];return Xi.forEach(function(hn){var qn=hn.disabled,aa=hn.value;qn||(aa>=12?pn[1]=!1:pn[0]=!1)}),pn},[oa,Xi]),Ce=(0,kt.Z)(Ee,2),Ue=Ce[0],rt=Ce[1],Pt=ie.useMemo(function(){return oa?Xi.filter(qo?function(pn){return pn.value>=12}:function(pn){return pn.value<12}).map(function(pn){var hn=pn.value%12,qn=hn===0?"12":Pa(hn,2);return(0,ct.Z)((0,ct.Z)({},pn),{},{label:qn,value:hn})}):Xi},[oa,qo,Xi]),Et=Fr(0,59,Da,fi&&fi(oi)),$t=Fr(0,59,Ln,Mo&&Mo(oi,zi)),Yt=or({value:en,generateConfig:Se,disabledMinutes:fi,disabledSeconds:Mo,minutes:Et,seconds:$t,use12Hours:oa});nt.current={onUpDown:function(hn){var qn=$o[it];if(qn)for(var aa=qn.units.findIndex(function(Ja){return Ja.value===qn.value}),ca=qn.units.length,Oa=1;Oa<ca;Oa+=1){var Ht=qn.units[(aa+hn*Oa+ca)%ca];if(Ht.disabled!==!0){qn.onSelect(Ht.value);break}}}};function Ut(pn,hn,qn,aa,ca){pn!==!1&&$o.push({node:ie.cloneElement(hn,{prefixCls:Go,value:qn,active:it===$o.length,onSelect:ca,units:aa,hideDisabledOptions:wr}),onSelect:ca,value:qn,units:aa})}Ut(Kt,ie.createElement(xr,{key:"hour",type:"hour",info:{today:Ro,locale:zn,cellRender:Or}}),Si,Pt,function(pn){Hr(Yt(qo,pn,zi,ro),"mouse")}),Ut(kn,ie.createElement(xr,{key:"minute",type:"minute",info:{today:Ro,locale:zn,cellRender:Or}}),zi,Et,function(pn){Hr(Yt(qo,Si,pn,ro),"mouse")}),Ut(Mn,ie.createElement(xr,{key:"second",type:"second",info:{today:Ro,locale:zn,cellRender:Or}}),ro,$t,function(pn){Hr(Yt(qo,Si,zi,pn),"mouse")});var xn=-1;return typeof qo=="boolean"&&(xn=qo?1:0),Ut(oa===!0,ie.createElement(xr,{key:"meridiem",type:"meridiem",info:{today:Ro,locale:zn,cellRender:Or}}),xn,[{label:"AM",value:0,disabled:Ue},{label:"PM",value:1,disabled:rt}],function(pn){Hr(Yt(!!pn,Si,zi,ro),"mouse")}),ie.createElement("div",{className:fo},$o.map(function(pn){var hn=pn.node;return hn}))}var lr=io,ko=function(Se){return Se.filter(function(ye){return ye!==!1}).length};function ui(me){var Se=me.generateConfig,ye=me.format,nt=ye===void 0?"HH:mm:ss":ye,it=me.prefixCls,en=me.active,Kt=me.operationRef,kn=me.showHour,Mn=me.showMinute,oa=me.showSecond,Ba=me.use12Hours,ga=Ba===void 0?!1:Ba,gn=me.onSelect,Da=me.value,Ra="".concat(it,"-time-panel"),Ln=ie.useRef(),da=ie.useState(-1),Ma=(0,kt.Z)(da,2),Br=Ma[0],vr=Ma[1],wr=ko([kn,Mn,oa,ga]);return Kt.current={onKeyDown:function(Or){return Ka(Or,{onLeftRight:function($o){vr((Br+$o+wr)%wr)},onUpDown:function($o){Br===-1?vr(0):Ln.current&&Ln.current.onUpDown($o)},onEnter:function(){gn(Da||Se.getNow(),"key"),vr(-1)}})},onBlur:function(){vr(-1)}},ie.createElement("div",{className:$e()(Ra,(0,_e.Z)({},"".concat(Ra,"-active"),en))},ie.createElement(za,(0,ue.Z)({},me,{format:nt,prefixCls:it})),ie.createElement(lr,(0,ue.Z)({},me,{prefixCls:it,activeColumnIndex:Br,operationRef:Ln})))}var pi=ui,yo=Rn("date","time");function Eo(me){var Se=me.prefixCls,ye=me.operationRef,nt=me.generateConfig,it=me.value,en=me.defaultValue,Kt=me.disabledTime,kn=me.showTime,Mn=me.onSelect,oa=me.cellRender,Ba="".concat(Se,"-datetime-panel"),ga=ie.useState(null),gn=(0,kt.Z)(ga,2),Da=gn[0],Ra=gn[1],Ln=ie.useRef({}),da=ie.useRef({}),Ma=(0,In.Z)(kn)==="object"?(0,ct.Z)({},kn):{};function Br(Or){var zn=yo.indexOf(Da)+Or,$o=yo[zn]||null;return $o}var vr=function(zn){da.current.onBlur&&da.current.onBlur(zn),Ra(null)};ye.current={onKeyDown:function(zn){if(zn.which===dn.Z.TAB){var $o=Br(zn.shiftKey?-1:1);return Ra($o),$o&&zn.preventDefault(),!0}if(Da){var fo=Da==="date"?Ln:da;return fo.current&&fo.current.onKeyDown&&fo.current.onKeyDown(zn),!0}return[dn.Z.LEFT,dn.Z.RIGHT,dn.Z.UP,dn.Z.DOWN].includes(zn.which)?(Ra("date"),!0):!1},onBlur:vr,onClose:vr};var wr=function(zn,$o){var fo=zn;$o==="date"&&!it&&Ma.defaultValue?(fo=nt.setHour(fo,nt.getHour(Ma.defaultValue)),fo=nt.setMinute(fo,nt.getMinute(Ma.defaultValue)),fo=nt.setSecond(fo,nt.getSecond(Ma.defaultValue))):$o==="time"&&!it&&en&&(fo=nt.setYear(fo,nt.getYear(en)),fo=nt.setMonth(fo,nt.getMonth(en)),fo=nt.setDate(fo,nt.getDate(en))),Mn&&Mn(fo,"mouse")},Hr=Kt?Kt(it||null):{};return ie.createElement("div",{className:$e()(Ba,(0,_e.Z)({},"".concat(Ba,"-active"),Da))},ie.createElement(Ir,(0,ue.Z)({},me,{cellRender:oa,operationRef:Ln,active:Da==="date",onSelect:function(zn){wr(Pn(nt,zn,!it&&(0,In.Z)(kn)==="object"?kn.defaultValue:null),"date")}})),ie.createElement(pi,(0,ue.Z)({},me,{cellRender:oa?function(Or,zn){return oa(Or,(0,ct.Z)((0,ct.Z)({},zn),{},{type:"time"}))}:void 0,format:void 0},Ma,Hr,{disabledTime:null,defaultValue:void 0,operationRef:da,active:Da==="time",onSelect:function(zn){wr(zn,"time")}})))}var Yo=Eo;function Fo(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.viewDate,it=me.onPrevDecades,en=me.onNextDecades,Kt=ie.useContext(Hn),kn=Kt.hideHeader;if(kn)return null;var Mn="".concat(Se,"-header"),oa=ye.getYear(nt),Ba=Math.floor(oa/fe)*fe,ga=Ba+fe-1;return ie.createElement(sa,(0,ue.Z)({},me,{prefixCls:Mn,onSuperPrev:it,onSuperNext:en}),Ba,"-",ga)}var Ao=Fo,eo=3,Pr=4;function To(me){var Se=Ie-1,ye=me.prefixCls,nt=me.viewDate,it=me.generateConfig,en=me.cellRender,Kt=me.locale,kn="".concat(ye,"-cell"),Mn=it.getYear(nt),oa=Math.floor(Mn/Ie)*Ie,Ba=Math.floor(Mn/fe)*fe,ga=Ba+fe-1,gn=it.setYear(nt,Ba-Math.ceil((eo*Pr*Ie-fe)/2)),Da=function(da){var Ma,Br=it.getYear(da),vr=Br+Se;return Ma={},(0,_e.Z)(Ma,"".concat(kn,"-in-view"),Ba<=Br&&vr<=ga),(0,_e.Z)(Ma,"".concat(kn,"-selected"),Br===oa),Ma},Ra=en?function(Ln,da){return en(Ln,{originNode:da,today:it.getNow(),type:"decade",locale:Kt})}:void 0;return ie.createElement(Gn,(0,ue.Z)({},me,{rowNum:Pr,colNum:eo,baseDate:gn,getCellNode:Ra,getCellText:function(da){var Ma=it.getYear(da);return"".concat(Ma,"-").concat(Ma+Se)},getCellClassName:Da,getCellDate:function(da,Ma){return it.addYear(da,Ma*Ie)}}))}var vi=To;function Oo(me){var Se=me.prefixCls,ye=me.onViewDateChange,nt=me.generateConfig,it=me.viewDate,en=me.operationRef,Kt=me.onSelect,kn=me.onPanelChange,Mn="".concat(Se,"-decade-panel");en.current={onKeyDown:function(gn){return Ka(gn,{onLeftRight:function(Ra){Kt(nt.addYear(it,Ra*Ie),"key")},onCtrlLeftRight:function(Ra){Kt(nt.addYear(it,Ra*fe),"key")},onUpDown:function(Ra){Kt(nt.addYear(it,Ra*Ie*eo),"key")},onEnter:function(){kn("year",it)}})}};var oa=function(gn){var Da=nt.addYear(it,gn*fe);ye(Da),kn(null,Da)},Ba=function(gn){Kt(gn,"mouse"),kn("year",gn)};return ie.createElement("div",{className:Mn},ie.createElement(Ao,(0,ue.Z)({},me,{prefixCls:Se,onPrevDecades:function(){oa(-1)},onNextDecades:function(){oa(1)}})),ie.createElement(vi,(0,ue.Z)({},me,{prefixCls:Se,onSelect:Ba})))}var br=Oo;function ai(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.locale,it=me.viewDate,en=me.onNextYear,Kt=me.onPrevYear,kn=me.onYearClick,Mn=ie.useContext(Hn),oa=Mn.hideHeader;if(oa)return null;var Ba="".concat(Se,"-header");return ie.createElement(sa,(0,ue.Z)({},me,{prefixCls:Ba,onSuperPrev:Kt,onSuperNext:en}),ie.createElement("button",{type:"button",onClick:kn,className:"".concat(Se,"-year-btn")},Ft(it,{locale:nt,format:nt.yearFormat,generateConfig:ye})))}var zr=ai,Lo=3,ao=4;function si(me){var Se=me.prefixCls,ye=me.locale,nt=me.value,it=me.viewDate,en=me.generateConfig,Kt=me.cellRender,kn=ie.useContext(pr),Mn=kn.rangedValue,oa=kn.hoverRangedValue,Ba="".concat(Se,"-cell"),ga=Er({cellPrefixCls:Ba,value:nt,generateConfig:en,rangedValue:Mn,hoverRangedValue:oa,isSameCell:function(da,Ma){return ke(en,da,Ma)},isInView:function(){return!0},offsetCell:function(da,Ma){return en.addMonth(da,Ma)}}),gn=ye.shortMonths||(en.locale.getShortMonths?en.locale.getShortMonths(ye.locale):[]),Da=en.setMonth(it,0),Ra=Kt?function(Ln,da){return Kt(Ln,{originNode:da,locale:ye,today:en.getNow(),type:"month"})}:void 0;return ie.createElement(Gn,(0,ue.Z)({},me,{rowNum:ao,colNum:Lo,baseDate:Da,getCellNode:Ra,getCellText:function(da){return ye.monthFormat?Ft(da,{locale:ye,format:ye.monthFormat,generateConfig:en}):gn[en.getMonth(da)]},getCellClassName:ga,getCellDate:en.addMonth,titleCell:function(da){return Ft(da,{locale:ye,format:"YYYY-MM",generateConfig:en})}}))}var hi=si;function Qi(me){var Se=me.prefixCls,ye=me.operationRef,nt=me.onViewDateChange,it=me.generateConfig,en=me.value,Kt=me.viewDate,kn=me.onPanelChange,Mn=me.onSelect,oa="".concat(Se,"-month-panel");ye.current={onKeyDown:function(gn){return Ka(gn,{onLeftRight:function(Ra){Mn(it.addMonth(en||Kt,Ra),"key")},onCtrlLeftRight:function(Ra){Mn(it.addYear(en||Kt,Ra),"key")},onUpDown:function(Ra){Mn(it.addMonth(en||Kt,Ra*Lo),"key")},onEnter:function(){kn("date",en||Kt)}})}};var Ba=function(gn){var Da=it.addYear(Kt,gn);nt(Da),kn(null,Da)};return ie.createElement("div",{className:oa},ie.createElement(zr,(0,ue.Z)({},me,{prefixCls:Se,onPrevYear:function(){Ba(-1)},onNextYear:function(){Ba(1)},onYearClick:function(){kn("year",Kt)}})),ie.createElement(hi,(0,ue.Z)({},me,{prefixCls:Se,onSelect:function(gn){Mn(gn,"mouse"),kn("date",gn)}})))}var tl=Qi;function nl(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.locale,it=me.viewDate,en=me.onNextYear,Kt=me.onPrevYear,kn=me.onYearClick,Mn=ie.useContext(Hn),oa=Mn.hideHeader;if(oa)return null;var Ba="".concat(Se,"-header");return ie.createElement(sa,(0,ue.Z)({},me,{prefixCls:Ba,onSuperPrev:Kt,onSuperNext:en}),ie.createElement("button",{type:"button",onClick:kn,className:"".concat(Se,"-year-btn")},Ft(it,{locale:nt,format:nt.yearFormat,generateConfig:ye})))}var Uo=nl,Bi=4,gl=1;function ji(me){var Se=me.prefixCls,ye=me.locale,nt=me.value,it=me.viewDate,en=me.generateConfig,Kt=me.cellRender,kn=ie.useContext(pr),Mn=kn.rangedValue,oa=kn.hoverRangedValue,Ba="".concat(Se,"-cell"),ga=Er({cellPrefixCls:Ba,value:nt,generateConfig:en,rangedValue:Mn,hoverRangedValue:oa,isSameCell:function(Ln,da){return tt(en,Ln,da)},isInView:function(){return!0},offsetCell:function(Ln,da){return en.addMonth(Ln,da*3)}}),gn=en.setDate(en.setMonth(it,0),1),Da=Kt?function(Ra,Ln){return Kt(Ra,{originNode:Ln,locale:ye,today:en.getNow(),type:"quarter"})}:void 0;return ie.createElement(Gn,(0,ue.Z)({},me,{rowNum:gl,colNum:Bi,baseDate:gn,getCellNode:Da,getCellText:function(Ln){return Ft(Ln,{locale:ye,format:ye.quarterFormat||"[Q]Q",generateConfig:en})},getCellClassName:ga,getCellDate:function(Ln,da){return en.addMonth(Ln,da*3)},titleCell:function(Ln){return Ft(Ln,{locale:ye,format:"YYYY-[Q]Q",generateConfig:en})}}))}var cl=ji;function Cl(me){var Se=me.prefixCls,ye=me.operationRef,nt=me.onViewDateChange,it=me.generateConfig,en=me.value,Kt=me.viewDate,kn=me.onPanelChange,Mn=me.onSelect,oa="".concat(Se,"-quarter-panel");ye.current={onKeyDown:function(gn){return Ka(gn,{onLeftRight:function(Ra){Mn(it.addMonth(en||Kt,Ra*3),"key")},onCtrlLeftRight:function(Ra){Mn(it.addYear(en||Kt,Ra),"key")},onUpDown:function(Ra){Mn(it.addYear(en||Kt,Ra),"key")}})}};var Ba=function(gn){var Da=it.addYear(Kt,gn);nt(Da),kn(null,Da)};return ie.createElement("div",{className:oa},ie.createElement(Uo,(0,ue.Z)({},me,{prefixCls:Se,onPrevYear:function(){Ba(-1)},onNextYear:function(){Ba(1)},onYearClick:function(){kn("year",Kt)}})),ie.createElement(cl,(0,ue.Z)({},me,{prefixCls:Se,onSelect:function(gn){Mn(gn,"mouse")}})))}var Tr=Cl;function Va(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.locale,it=me.value,en=me.disabledDate,Kt=me.onSelect,kn=ie.useContext(pr),Mn=kn.rangedValue,oa=kn.hoverRangedValue,Ba=ie.useContext(Hn),ga=Ba.onDateMouseEnter,gn=Ba.onDateMouseLeave,Da=(oa==null?void 0:oa[0])||(Mn==null?void 0:Mn[0]),Ra=(oa==null?void 0:oa[1])||(Mn==null?void 0:Mn[1]),Ln="".concat(Se,"-cell"),da=function(wr){var Hr=wt({cellDate:wr,mode:"week",disabledDate:en,generateConfig:ye});return ie.createElement("td",{key:"week",className:$e()(Ln,"".concat(Ln,"-week")),onClick:function(){Hr||Kt(wr,"mouse")},onMouseEnter:function(){!Hr&&ga&&ga(wr)},onMouseLeave:function(){!Hr&&gn&&gn(wr)}},ie.createElement("div",{className:"".concat(Ln,"-inner")},ye.locale.getWeek(nt.locale,wr)))},Ma="".concat(Se,"-week-panel-row"),Br=function(wr){var Hr,Or=rn(ye,nt.locale,Da,wr),zn=rn(ye,nt.locale,Ra,wr);return $e()(Ma,(Hr={},(0,_e.Z)(Hr,"".concat(Ma,"-selected"),!Mn&&rn(ye,nt.locale,it,wr)),(0,_e.Z)(Hr,"".concat(Ma,"-range-start"),Or),(0,_e.Z)(Hr,"".concat(Ma,"-range-end"),zn),(0,_e.Z)(Hr,"".concat(Ma,"-range-hover"),!Or&&!zn&&mn(ye,Da,Ra,wr)),Hr))};return ie.createElement(Ir,(0,ue.Z)({},me,{panelName:"week",prefixColumn:da,rowClassName:Br,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var ja=Va,Ya=10;function so(me){var Se=me.prefixCls,ye=me.generateConfig,nt=me.viewDate,it=me.onPrevDecade,en=me.onNextDecade,Kt=me.onDecadeClick,kn=ie.useContext(Hn),Mn=kn.hideHeader;if(Mn)return null;var oa="".concat(Se,"-header"),Ba=ye.getYear(nt),ga=Math.floor(Ba/Ya)*Ya,gn=ga+Ya-1;return ie.createElement(sa,(0,ue.Z)({},me,{prefixCls:oa,onSuperPrev:it,onSuperNext:en}),ie.createElement("button",{type:"button",onClick:Kt,className:"".concat(Se,"-decade-btn")},ga,"-",gn))}var Zo=so,we=3,fn=4;function Wn(me){var Se=me.prefixCls,ye=me.value,nt=me.viewDate,it=me.locale,en=me.generateConfig,Kt=me.cellRender,kn=ie.useContext(pr),Mn=kn.rangedValue,oa=kn.hoverRangedValue,Ba="".concat(Se,"-cell"),ga=en.getYear(nt),gn=Math.floor(ga/Ya)*Ya,Da=gn+Ya-1,Ra=en.setYear(nt,gn-Math.ceil((we*fn-Ya)/2)),Ln=en.getNow(),da=function(wr){var Hr=en.getYear(wr);return gn<=Hr&&Hr<=Da},Ma=Er({cellPrefixCls:Ba,value:ye,generateConfig:en,rangedValue:Mn,hoverRangedValue:oa,isSameCell:function(wr,Hr){return Ne(en,wr,Hr)},isInView:da,offsetCell:function(wr,Hr){return en.addYear(wr,Hr)}}),Br=Kt?function(vr,wr){return Kt(vr,{originNode:wr,today:Ln,type:"year",locale:it})}:void 0;return ie.createElement(Gn,(0,ue.Z)({},me,{rowNum:fn,colNum:we,baseDate:Ra,getCellNode:Br,getCellText:en.getYear,getCellClassName:Ma,getCellDate:en.addYear,titleCell:function(wr){return Ft(wr,{locale:it,format:"YYYY",generateConfig:en})}}))}var fa=Wn;function yn(me){var Se=me.prefixCls,ye=me.operationRef,nt=me.onViewDateChange,it=me.generateConfig,en=me.value,Kt=me.viewDate,kn=me.sourceMode,Mn=me.onSelect,oa=me.onPanelChange,Ba="".concat(Se,"-year-panel");ye.current={onKeyDown:function(Da){return Ka(Da,{onLeftRight:function(Ln){Mn(it.addYear(en||Kt,Ln),"key")},onCtrlLeftRight:function(Ln){Mn(it.addYear(en||Kt,Ln*Ya),"key")},onUpDown:function(Ln){Mn(it.addYear(en||Kt,Ln*we),"key")},onEnter:function(){oa(kn==="date"?"date":"month",en||Kt)}})}};var ga=function(Da){var Ra=it.addYear(Kt,Da*10);nt(Ra),oa(null,Ra)};return ie.createElement("div",{className:Ba},ie.createElement(Zo,(0,ue.Z)({},me,{prefixCls:Se,onPrevDecade:function(){ga(-1)},onNextDecade:function(){ga(1)},onDecadeClick:function(){oa("decade",Kt)}})),ie.createElement(fa,(0,ue.Z)({},me,{prefixCls:Se,onSelect:function(Da){oa(kn==="date"?"date":"month",Da),Mn(Da,"mouse")}})))}var wa=yn;function na(me,Se,ye){return ye?ie.createElement("div",{className:"".concat(me,"-footer-extra")},ye(Se)):null}function Un(me){var Se=me.prefixCls,ye=me.components,nt=ye===void 0?{}:ye,it=me.needConfirmButton,en=me.onNow,Kt=me.onOk,kn=me.okDisabled,Mn=me.showNow,oa=me.locale,Ba,ga;if(it){var gn=nt.button||"button";en&&Mn!==!1&&(Ba=ie.createElement("li",{className:"".concat(Se,"-now")},ie.createElement("a",{className:"".concat(Se,"-now-btn"),onClick:en},oa.now))),ga=it&&ie.createElement("li",{className:"".concat(Se,"-ok")},ie.createElement(gn,{disabled:kn,onClick:Kt},oa.ok))}return!Ba&&!ga?null:ie.createElement("ul",{className:"".concat(Se,"-ranges")},Ba,ga)}var pa=["date","month"];function Sa(me){var Se,ye=me,nt=ye.prefixCls,it=nt===void 0?"rc-picker":nt,en=ye.className,Kt=ye.style,kn=ye.locale,Mn=ye.generateConfig,oa=ye.value,Ba=ye.defaultValue,ga=ye.pickerValue,gn=ye.defaultPickerValue,Da=ye.disabledDate,Ra=ye.mode,Ln=ye.picker,da=Ln===void 0?"date":Ln,Ma=ye.tabIndex,Br=Ma===void 0?0:Ma,vr=ye.showNow,wr=ye.showTime,Hr=ye.showToday,Or=ye.renderExtraFooter,zn=ye.hideHeader,$o=ye.onSelect,fo=ye.onChange,Go=ye.onPanelChange,qo=ye.onMouseDown,oi=ye.onPickerValueChange,Si=ye.onOk,zi=ye.components,ro=ye.direction,Ro=ye.hourStep,zo=Ro===void 0?1:Ro,Di=ye.minuteStep,Ii=Di===void 0?1:Di,fi=ye.secondStep,Mo=fi===void 0?1:fi,ol=ye.dateRender,Xi=ye.monthCellRender,Ee=ye.cellRender,Ce=da==="date"&&!!wr||da==="time",Ue=24%zo===0,rt=60%Ii===0,Pt=60%Mo===0,Et=ie.useContext(Hn),$t=Et.operationRef,Yt=Et.onSelect,Ut=Et.hideRanges,xn=Et.defaultOpenValue,pn=ie.useContext(pr),hn=pn.inRange,qn=pn.panelPosition,aa=pn.rangedValue,ca=pn.hoverRangedValue,Oa=ie.useRef({}),Ht=ie.useRef(!0),Ja=(0,mt.Z)(null,{value:oa,defaultValue:Ba,postState:function(pe){return!pe&&xn&&da==="time"?xn:pe}}),_a=(0,kt.Z)(Ja,2),nr=_a[0],Rr=_a[1],Kr=(0,mt.Z)(null,{value:ga,defaultValue:gn||nr,postState:function(pe){var Pe=Mn.getNow();if(!pe)return Pe;if(!nr&&wr){var Lt=(0,In.Z)(wr)==="object"?wr.defaultValue:Ba;return Pn(Mn,Array.isArray(pe)?pe[0]:pe,Lt||Pe)}return Array.isArray(pe)?pe[0]:pe}}),Dr=(0,kt.Z)(Kr,2),jr=Dr[0],_r=Dr[1],er=function(pe){_r(pe),oi&&oi(pe)},tr=function(pe){var Pe=Wt[da];return Pe?Pe(pe):pe},fr=(0,mt.Z)(function(){return da==="time"?"time":tr("date")},{value:Ra}),Ga=(0,kt.Z)(fr,2),ar=Ga[0],Gr=Ga[1];ie.useEffect(function(){Gr(da)},[da]);var Po=ie.useState(function(){return ar}),lo=(0,kt.Z)(Po,2),Lr=lo[0],vo=lo[1],Bo=function(pe,Pe){var Lt=tr(pe||ar);vo(ar),Gr(Lt),Go&&(ar!==Lt||an(Mn,jr,jr))&&Go(Pe,Lt)},ka=function(pe,Pe){var Lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(ar===da||Lt)&&(Rr(pe),$o&&$o(pe),Yt&&Yt(pe,Pe),fo&&!an(Mn,pe,nr)&&!(Da!=null&&Da(pe))&&fo(pe))},wo=function(pe){if(pa.includes(ar)){var Pe,Lt,tn=ar==="date";switch(pe===dn.Z.PAGE_UP||pe===dn.Z.PAGE_DOWN?Lt=tn?Mn.addMonth:Mn.addYear:Lt=tn?Mn.addDate:Mn.addMonth,pe){case dn.Z.LEFT:case dn.Z.PAGE_UP:Pe=Lt(jr,-1);break;case dn.Z.RIGHT:case dn.Z.PAGE_DOWN:Pe=Lt(jr,1);break;case dn.Z.UP:case dn.Z.DOWN:Pe=Lt(jr,Number("".concat(pe===dn.Z.UP?"-":"").concat(tn?qe:Lo)));break}if(Pe)return!(Da!=null&&Da(Pe))}return!0},Ci=function(pe){if(Oa.current&&Oa.current.onKeyDown){var Pe=!0,Lt=pe.which;if([dn.Z.LEFT,dn.Z.RIGHT,dn.Z.UP,dn.Z.DOWN,dn.Z.PAGE_UP,dn.Z.PAGE_DOWN,dn.Z.ENTER].includes(Lt)&&(pe.preventDefault(),Lt!==dn.Z.ENTER&&Br===0&&(Pe=wo(Lt))),Pe)return Oa.current.onKeyDown(pe)}return(0,Be.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Do=function(pe){Oa.current&&Oa.current.onBlur&&Oa.current.onBlur(pe)};$t&&qn!=="right"&&($t.current={onKeyDown:Ci,onClose:function(){Oa.current&&Oa.current.onClose&&Oa.current.onClose()}}),ie.useEffect(function(){oa&&!Ht.current&&_r(oa)},[oa]),ie.useEffect(function(){Ht.current=!1},[]);var Qr,xi=Ta({cellRender:Ee,monthCellRender:Xi,dateRender:ol}),Vr=(0,ct.Z)((0,ct.Z)({},me),{},{cellRender:xi,operationRef:Oa,prefixCls:it,viewDate:jr,value:nr,onViewDateChange:er,sourceMode:Lr,onPanelChange:Bo,disabledDate:Da});switch(delete Vr.onChange,delete Vr.onSelect,ar){case"decade":Qr=ie.createElement(br,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}));break;case"year":Qr=ie.createElement(wa,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}));break;case"month":Qr=ie.createElement(tl,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}));break;case"quarter":Qr=ie.createElement(Tr,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}));break;case"week":Qr=ie.createElement(ja,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}));break;case"time":delete Vr.showTime,Qr=ie.createElement(pi,(0,ue.Z)({},Vr,(0,In.Z)(wr)==="object"?wr:null,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}));break;default:wr?Qr=ie.createElement(Yo,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}})):Qr=ie.createElement(Ir,(0,ue.Z)({},Vr,{onSelect:function(pe,Pe){er(pe),ka(pe,Pe)}}))}var gi,Ho,_i=function(){var pe=Mn.getNow(),Pe=qt(Mn.getHour(pe),Mn.getMinute(pe),Mn.getSecond(pe),Ue?zo:1,rt?Ii:1,Pt?Mo:1),Lt=Qe(Mn,pe,Pe[0],Pe[1],Pe[2]);ka(Lt,"submit")};Ut||(gi=na(it,ar,Or),wr&&ar!=="date"?Ho=null:Ho=Un({prefixCls:it,components:zi,needConfirmButton:Ce,okDisabled:!nr||Da&&Da(nr),locale:kn,showNow:vr,onNow:Ce&&_i,onOk:function(){nr&&(ka(nr,"submit",!0),Si&&Si(nr))}}));var Xr;if(Hr&&ar==="date"&&da==="date"&&!wr){var Mr=Mn.getNow(),$r="".concat(it,"-today-btn"),kr=Da&&Da(Mr);Xr=ie.createElement("a",{className:$e()($r,kr&&"".concat($r,"-disabled")),"aria-disabled":kr,onClick:function(){kr||ka(Mr,"mouse",!0)}},kn.today)}return ie.createElement(Hn.Provider,{value:(0,ct.Z)((0,ct.Z)({},Et),{},{mode:ar,hideHeader:"hideHeader"in me?zn:Et.hideHeader,hidePrevBtn:hn&&qn==="right",hideNextBtn:hn&&qn==="left"})},ie.createElement("div",{tabIndex:Br,className:$e()("".concat(it,"-panel"),en,(Se={},(0,_e.Z)(Se,"".concat(it,"-panel-has-range"),aa&&aa[0]&&aa[1]),(0,_e.Z)(Se,"".concat(it,"-panel-has-range-hover"),ca&&ca[0]&&ca[1]),(0,_e.Z)(Se,"".concat(it,"-panel-rtl"),ro==="rtl"),Se)),style:Kt,onKeyDown:Ci,onBlur:Do,onMouseDown:qo},Qr,gi||Ho||Xr?ie.createElement("div",{className:"".concat(it,"-footer")},gi,Ho,Xr):null))}var Wa=Sa,ur=ee(35593),$a={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 _o(me){var Se,ye=me.prefixCls,nt=me.popupElement,it=me.popupStyle,en=me.visible,Kt=me.dropdownClassName,kn=me.dropdownAlign,Mn=me.transitionName,oa=me.getPopupContainer,Ba=me.children,ga=me.range,gn=me.popupPlacement,Da=me.direction,Ra="".concat(ye,"-dropdown"),Ln=function(){return gn!==void 0?gn:Da==="rtl"?"bottomRight":"bottomLeft"};return ie.createElement(ur.Z,{showAction:[],hideAction:[],popupPlacement:Ln(),builtinPlacements:$a,prefixCls:Ra,popupTransitionName:Mn,popup:nt,popupAlign:kn,popupVisible:en,popupClassName:$e()(Kt,(Se={},(0,_e.Z)(Se,"".concat(Ra,"-range"),ga),(0,_e.Z)(Se,"".concat(Ra,"-rtl"),Da==="rtl"),Se)),popupStyle:it,getPopupContainer:oa},Ba)}var co=_o;function Vo(me){var Se=me.prefixCls,ye=me.presets,nt=me.onClick,it=me.onHover;return ye.length?ie.createElement("div",{className:"".concat(Se,"-presets")},ie.createElement("ul",null,ye.map(function(en,Kt){var kn=en.label,Mn=en.value;return ie.createElement("li",{key:Kt,onClick:function(){return nt==null?void 0:nt(mr(Mn))},onMouseEnter:function(){return it==null?void 0:it(mr(Mn))},onMouseLeave:function(){return it==null?void 0:it(null)}},kn)}))):null}function ci(me){var Se=me.picker,ye=me.disabledHours,nt=me.disabledMinutes,it=me.disabledSeconds;Se==="time"&&(ye||nt||it)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Gi(me,Se,ye){var nt=(0,In.Z)(Se)==="object"?Se.clearIcon:ye;return nt||ie.createElement("span",{className:"".concat(me,"-clear-btn")})}function al(me){var Se,ye=me,nt=ye.prefixCls,it=nt===void 0?"rc-picker":nt,en=ye.id,Kt=ye.name,kn=ye.tabIndex,Mn=ye.style,oa=ye.className,Ba=ye.dropdownClassName,ga=ye.dropdownAlign,gn=ye.popupStyle,Da=ye.transitionName,Ra=ye.generateConfig,Ln=ye.locale,da=ye.inputReadOnly,Ma=ye.allowClear,Br=ye.autoFocus,vr=ye.showTime,wr=ye.picker,Hr=wr===void 0?"date":wr,Or=ye.format,zn=ye.use12Hours,$o=ye.value,fo=ye.defaultValue,Go=ye.presets,qo=ye.open,oi=ye.defaultOpen,Si=ye.defaultOpenValue,zi=ye.suffixIcon,ro=ye.clearIcon,Ro=ye.disabled,zo=ye.disabledDate,Di=ye.placeholder,Ii=ye.getPopupContainer,fi=ye.pickerRef,Mo=ye.panelRender,ol=ye.onChange,Xi=ye.onOpenChange,Ee=ye.onFocus,Ce=ye.onBlur,Ue=ye.onMouseDown,rt=ye.onMouseUp,Pt=ye.onMouseEnter,Et=ye.onMouseLeave,$t=ye.onContextMenu,Yt=ye.onClick,Ut=ye.onKeyDown,xn=ye.onSelect,pn=ye.direction,hn=ye.autoComplete,qn=hn===void 0?"off":hn,aa=ye.inputRender,ca=ye.changeOnBlur,Oa=ie.useRef(null),Ht=Hr==="date"&&!!vr||Hr==="time",Ja=vt(Go),_a=ya(Ea(Or,Hr,vr,zn)),nr=ie.useRef(null),Rr=ie.useRef(null),Kr=ie.useRef(null),Dr=(0,mt.Z)(null,{value:$o,defaultValue:fo}),jr=(0,kt.Z)(Dr,2),_r=jr[0],er=jr[1],tr=ie.useState(_r),fr=(0,kt.Z)(tr,2),Ga=fr[0],ar=fr[1],Gr=ie.useRef(null),Po=(0,mt.Z)(!1,{value:qo,defaultValue:oi,postState:function(Ha){return Ro?!1:Ha},onChange:function(Ha){Xi&&Xi(Ha),!Ha&&Gr.current&&Gr.current.onClose&&Gr.current.onClose()}}),lo=(0,kt.Z)(Po,2),Lr=lo[0],vo=lo[1],Bo=Rt(Ga,{formatList:_a,generateConfig:Ra,locale:Ln}),ka=(0,kt.Z)(Bo,2),wo=ka[0],Ci=ka[1],Do=pt({valueTexts:wo,onTextChange:function(Ha){var Yr=zt(Ha,{locale:Ln,formatList:_a,generateConfig:Ra});Yr&&(!zo||!zo(Yr))&&ar(Yr)}}),Qr=(0,kt.Z)(Do,3),xi=Qr[0],Vr=Qr[1],gi=Qr[2],Ho=function(Ha){ar(Ha),er(Ha),ol&&!an(Ra,_r,Ha)&&ol(Ha,Ha?Ft(Ha,{generateConfig:Ra,locale:Ln,format:_a[0]}):"")},_i=function(Ha){Ro&&Ha||vo(Ha)},Xr=function(Ha){return Lr&&Gr.current&&Gr.current.onKeyDown?Gr.current.onKeyDown(Ha):((0,Be.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Mr=function(){for(var Ha=arguments.length,Yr=new Array(Ha),cr=0;cr<Ha;cr++)Yr[cr]=arguments[cr];Yt==null||Yt.apply(void 0,Yr),Oa.current&&(Oa.current.focus(),_i(!0))},$r=function(Ha){ca&&Ho(Ga),Ce==null||Ce(Ha)},kr=Bn({blurToCancel:Ht,open:Lr,value:xi,triggerOpen:_i,forwardKeyDown:Xr,isClickOutside:function(Ha){return!Nn([nr.current,Rr.current,Kr.current],Ha)},onSubmit:function(){return!Ga||zo&&zo(Ga)?!1:(Ho(Ga),_i(!1),gi(),!0)},onCancel:function(){_i(!1),ar(_r),gi()},onKeyDown:function(Ha,Yr){Ut==null||Ut(Ha,Yr)},onFocus:Ee,onBlur:$r,changeOnBlur:ca}),ce=(0,kt.Z)(kr,2),pe=ce[0],Pe=ce[1],Lt=Pe.focused,tn=Pe.typing;ie.useEffect(function(){Lr||(ar(_r),!wo.length||wo[0]===""?Vr(""):Ci!==xi&&gi())},[Lr,wo]),ie.useEffect(function(){Lr||gi()},[Hr]),ie.useEffect(function(){ar(_r)},[_r]),fi&&(fi.current={focus:function(){var Ha;(Ha=Oa.current)===null||Ha===void 0||Ha.focus()},blur:function(){var Ha;(Ha=Oa.current)===null||Ha===void 0||Ha.blur()}});var Aa=un(xi,{formatList:_a,generateConfig:Ra,locale:Ln}),ma=(0,kt.Z)(Aa,3),Tn=ma[0],jt=ma[1],Jn=ma[2],Fn=(0,ct.Z)((0,ct.Z)({},me),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),bt=ie.createElement("div",{className:"".concat(it,"-panel-layout")},ie.createElement(Vo,{prefixCls:it,presets:Ja,onClick:function(Ha){Ho(Ha),_i(!1)}}),ie.createElement(Wa,(0,ue.Z)({},Fn,{generateConfig:Ra,className:$e()((0,_e.Z)({},"".concat(it,"-panel-focused"),!tn)),value:Ga,locale:Ln,tabIndex:-1,onSelect:function(Ha){xn==null||xn(Ha),ar(Ha)},direction:pn,onPanelChange:function(Ha,Yr){var cr=me.onPanelChange;Jn(!0),cr==null||cr(Ha,Yr)}})));Mo&&(bt=Mo(bt));var sn=ie.createElement("div",{className:"".concat(it,"-panel-container"),ref:nr,onMouseDown:function(Ha){Ha.preventDefault()}},bt),An;zi&&(An=ie.createElement("span",{className:"".concat(it,"-suffix"),onMouseDown:function(Ha){Ha.preventDefault()}},zi));var ia=Gi(it,Ma,ro),Zn=ie.createElement("span",{onMouseDown:function(Ha){Ha.preventDefault(),Ha.stopPropagation()},onMouseUp:function(Ha){Ha.preventDefault(),Ha.stopPropagation(),Ho(null),_i(!1)},className:"".concat(it,"-clear"),role:"button"},ia),xa=!!Ma&&_r&&!Ro,ta=(0,ct.Z)((0,ct.Z)((0,ct.Z)({id:en,tabIndex:kn,disabled:Ro,readOnly:da||typeof _a[0]=="function"||!tn,value:Tn||xi,onChange:function(Ha){Vr(Ha.target.value)},autoFocus:Br,placeholder:Di,ref:Oa,title:xi},pe),{},{size:yr(Hr,_a[0],Ra),name:Kt},(0,It.Z)(me,{aria:!0,data:!0})),{},{autoComplete:qn}),la=aa?aa(ta):ie.createElement("input",ta),Ua=function(Ha,Yr){(Yr==="submit"||Yr!=="key"&&!Ht)&&(Ho(Ha),_i(!1))},bn=pn==="rtl"?"bottomRight":"bottomLeft";return ie.createElement(Hn.Provider,{value:{operationRef:Gr,hideHeader:Hr==="time",onSelect:Ua,open:Lr,defaultOpenValue:Si,onDateMouseEnter:jt,onDateMouseLeave:Jn}},ie.createElement(co,{visible:Lr,popupElement:sn,popupStyle:gn,prefixCls:it,dropdownClassName:Ba,dropdownAlign:ga,getPopupContainer:Ii,transitionName:Da,popupPlacement:bn,direction:pn},ie.createElement("div",{ref:Kr,className:$e()(it,oa,(Se={},(0,_e.Z)(Se,"".concat(it,"-disabled"),Ro),(0,_e.Z)(Se,"".concat(it,"-focused"),Lt),(0,_e.Z)(Se,"".concat(it,"-rtl"),pn==="rtl"),Se)),style:Mn,onMouseDown:Ue,onMouseUp:rt,onMouseEnter:Pt,onMouseLeave:Et,onContextMenu:$t,onClick:Mr},ie.createElement("div",{className:$e()("".concat(it,"-input"),(0,_e.Z)({},"".concat(it,"-input-placeholder"),!!Tn)),ref:Rr},la,An,xa&&Zn))))}var Zl=function(me){(0,Zt.Z)(ye,me);var Se=(0,On.Z)(ye);function ye(){var nt;(0,dt.Z)(this,ye);for(var it=arguments.length,en=new Array(it),Kt=0;Kt<it;Kt++)en[Kt]=arguments[Kt];return nt=Se.call.apply(Se,[this].concat(en)),(0,_e.Z)((0,Yn.Z)(nt),"pickerRef",ie.createRef()),(0,_e.Z)((0,Yn.Z)(nt),"focus",function(){nt.pickerRef.current&&nt.pickerRef.current.focus()}),(0,_e.Z)((0,Yn.Z)(nt),"blur",function(){nt.pickerRef.current&&nt.pickerRef.current.blur()}),nt}return(0,on.Z)(ye,[{key:"render",value:function(){return ie.createElement(al,(0,ue.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),ye}(ie.Component),Al=Zl;function ho(me,Se){var ye=me.picker,nt=me.locale,it=me.selectedValue,en=me.disabledDate,Kt=me.disabled,kn=me.generateConfig,Mn=ba(it,0),oa=ba(it,1);function Ba(Ln){return kn.locale.getWeekFirstDate(nt.locale,Ln)}function ga(Ln){var da=kn.getYear(Ln),Ma=kn.getMonth(Ln);return da*100+Ma}function gn(Ln){var da=kn.getYear(Ln),Ma=Ct(kn,Ln);return da*10+Ma}var Da=ie.useCallback(function(Ln){if(Kt[0]||en&&en(Ln))return!0;if(Kt[1]&&oa)return!ht(kn,Ln,oa)&&kn.isAfter(Ln,oa);if(!Se&&oa)switch(ye){case"quarter":return gn(Ln)>gn(oa);case"month":return ga(Ln)>ga(oa);case"week":return Ba(Ln)>Ba(oa);default:return!ht(kn,Ln,oa)&&kn.isAfter(Ln,oa)}return!1},[en,Kt[1],oa,Se]),Ra=ie.useCallback(function(Ln){if(Kt[1]||en&&en(Ln))return!0;if(Kt[0]&&Mn)return!ht(kn,Ln,oa)&&kn.isAfter(Mn,Ln);if(!Se&&Mn)switch(ye){case"quarter":return gn(Ln)<gn(Mn);case"month":return ga(Ln)<ga(Mn);case"week":return Ba(Ln)<Ba(Mn);default:return!ht(kn,Ln,Mn)&&kn.isAfter(Mn,Ln)}return!1},[en,Kt[0],Mn,Se]);return[Da,Ra]}var Pl=ee(70425),eu=ee(6089);function Nl(me,Se,ye,nt,it,en,Kt,kn,Mn,oa){var Ba=ie.useState(!1),ga=(0,kt.Z)(Ba,2),gn=ga[0],Da=ga[1],Ra=(0,Pl.useMergedState)(me||!1,{value:Se}),Ln=(0,kt.Z)(Ra,2),da=Ln[0],Ma=Ln[1],Br=(0,Pl.useMergedState)(me||!1,{value:Se,onChange:function(zo){oa==null||oa(zo)}}),vr=(0,kt.Z)(Br,2),wr=vr[0],Hr=vr[1],Or=(0,Pl.useMergedState)(0,{value:ye}),zn=(0,kt.Z)(Or,2),$o=zn[0],fo=zn[1],Go=ie.useState(null),qo=(0,kt.Z)(Go,2),oi=qo[0],Si=qo[1];ie.useEffect(function(){wr&&Da(!0)},[wr]);var zi=function(zo){return zo===0?1:0},ro=(0,eu.Z)(function(Ro,zo,Di){if(zo===!1)Hr(Ro);else if(Ro){fo(zo),Hr(Ro);var Ii=zi(zo);!wr||![Kt,kn][Ii]?Si(Ii):(Da(!1),oi!==null&&Si(null))}else if(Di==="confirm"||Di==="blur"&&nt){var fi=da?zi(zo):oi;fi!==null&&(Da(!1),fo(fi)),Si(null),fi!==null&&!Mn[fi]?(0,_n.Z)(function(){var Mo,ol=[it,en][fi];(Mo=ol.current)===null||Mo===void 0||Mo.focus()}):Hr(!1)}else Hr(!1),Ma(!1)});return[wr,$o,gn,ro]}function xl(me,Se,ye,nt){var it=Te(me,ye,nt,1);function en(Kt){return Kt(me,Se)?"same":Kt(it,Se)?"closing":"far"}switch(ye){case"year":return en(function(Kt,kn){return Oe(nt,Kt,kn)});case"quarter":case"month":return en(function(Kt,kn){return Ne(nt,Kt,kn)});default:return en(function(Kt,kn){return ke(nt,Kt,kn)})}}function tu(me,Se,ye,nt){var it=ba(me,0),en=ba(me,1);if(Se===0)return it;if(it&&en){var Kt=xl(it,en,ye,nt);switch(Kt){case"same":return it;case"closing":return it;default:return Te(en,ye,nt,-1)}}return it}function Qu(me){var Se=me.values,ye=me.picker,nt=me.defaultDates,it=me.generateConfig,en=ie.useState(function(){return[ba(nt,0),ba(nt,1)]}),Kt=(0,kt.Z)(en,2),kn=Kt[0],Mn=Kt[1],oa=ie.useState(null),Ba=(0,kt.Z)(oa,2),ga=Ba[0],gn=Ba[1],Da=ba(Se,0),Ra=ba(Se,1);function Ln(Ma){return kn[Ma]?kn[Ma]:ba(ga,Ma)||tu(Se,Ma,ye,it)||Da||Ra||it.getNow()}function da(Ma,Br){if(Ma){var vr=wn(ga,Ma,Br);Mn(wn(kn,null,Br)||[null,null]);var wr=(Br+1)%2;ba(Se,wr)||(vr=wn(vr,Ma,wr)),gn(vr)}else(Da||Ra)&&gn(null)}return[Ln,da]}function su(me,Se){return me&&me[0]&&me[1]&&Se.isAfter(me[0],me[1])?[me[1],me[0]]:me}function mu(me,Se,ye,nt){return!!(me||nt&&nt[Se]||ye[(Se+1)%2])}function Yu(me){var Se,ye,nt,it=me,en=it.prefixCls,Kt=en===void 0?"rc-picker":en,kn=it.id,Mn=it.style,oa=it.className,Ba=it.popupStyle,ga=it.dropdownClassName,gn=it.transitionName,Da=it.dropdownAlign,Ra=it.getPopupContainer,Ln=it.generateConfig,da=it.locale,Ma=it.placeholder,Br=it.autoFocus,vr=it.disabled,wr=it.format,Hr=it.picker,Or=Hr===void 0?"date":Hr,zn=it.showTime,$o=it.use12Hours,fo=it.separator,Go=fo===void 0?"~":fo,qo=it.value,oi=it.defaultValue,Si=it.defaultPickerValue,zi=it.open,ro=it.defaultOpen,Ro=it.disabledDate,zo=it.disabledTime,Di=it.dateRender,Ii=it.monthCellRender,fi=it.cellRender,Mo=it.panelRender,ol=it.presets,Xi=it.ranges,Ee=it.allowEmpty,Ce=it.allowClear,Ue=it.suffixIcon,rt=it.clearIcon,Pt=it.pickerRef,Et=it.inputReadOnly,$t=it.mode,Yt=it.renderExtraFooter,Ut=it.onChange,xn=it.onOpenChange,pn=it.onPanelChange,hn=it.onCalendarChange,qn=it.onFocus,aa=it.onBlur,ca=it.onMouseDown,Oa=it.onMouseUp,Ht=it.onMouseEnter,Ja=it.onMouseLeave,_a=it.onClick,nr=it.onOk,Rr=it.onKeyDown,Kr=it.components,Dr=it.order,jr=it.direction,_r=it.activePickerIndex,er=it.autoComplete,tr=er===void 0?"off":er,fr=it.changeOnBlur,Ga=Or==="date"&&!!zn||Or==="time",ar=(0,ie.useRef)(null),Gr=(0,ie.useRef)(null),Po=(0,ie.useRef)(null),lo=(0,ie.useRef)(null),Lr=(0,ie.useRef)(null),vo=(0,ie.useRef)(null),Bo=(0,ie.useRef)(null),ka=(0,ie.useRef)(null),wo=ya(Ea(wr,Or,zn,$o)),Ci=(0,ie.useRef)(null),Do=ie.useMemo(function(){return Array.isArray(vr)?vr:[vr||!1,vr||!1]},[vr]),Qr=(0,mt.Z)(null,{value:qo,defaultValue:oi,postState:function(Ur){return Or==="time"&&!Dr?Ur:su(Ur,Ln)}}),xi=(0,kt.Z)(Qr,2),Vr=xi[0],gi=xi[1],Ho=Qu({values:Vr,picker:Or,defaultDates:Si,generateConfig:Ln}),_i=(0,kt.Z)(Ho,2),Xr=_i[0],Mr=_i[1],$r=(0,mt.Z)(Vr,{postState:function(Ur){var Io=Ur;if(Do[0]&&Do[1])return Io;for(var bi=0;bi<2;bi+=1)Do[bi]&&!Io&&!ba(Io,bi)&&!ba(Ee,bi)&&(Io=wn(Io,Ln.getNow(),bi));return Io}}),kr=(0,kt.Z)($r,2),ce=kr[0],pe=kr[1],Pe=(0,mt.Z)([Or,Or],{value:$t}),Lt=(0,kt.Z)(Pe,2),tn=Lt[0],Aa=Lt[1];(0,ie.useEffect)(function(){Aa([Or,Or])},[Or]);var ma=function(Ur,Io){Aa(Ur),pn&&pn(Io,Ur)},Tn=Nl(ro,zi,_r,fr,vo,Bo,ba(ce,0),ba(ce,1),Do,xn),jt=(0,kt.Z)(Tn,4),Jn=jt[0],Fn=jt[1],bt=jt[2],sn=jt[3],An=Jn&&Fn===0,ia=Jn&&Fn===1,Zn=ho({picker:Or,selectedValue:ce,locale:da,disabled:Do,disabledDate:Ro,generateConfig:Ln},!Jn||bt),xa=(0,kt.Z)(Zn,2),ta=xa[0],la=xa[1],Ua=(0,ie.useState)(0),bn=(0,kt.Z)(Ua,2),Ca=bn[0],Ha=bn[1];(0,ie.useEffect)(function(){!Jn&&ar.current&&Ha(ar.current.offsetWidth)},[Jn]);function Yr(yi){sn(!0,yi,"open"),(0,_n.Z)(function(){var Ur,Io=[vo,Bo][yi];(Ur=Io.current)===null||Ur===void 0||Ur.focus()},0)}function cr(yi,Ur){var Io=yi,bi=ba(Io,0),Ji=ba(Io,1);bi&&Ji&&Ln.isAfter(bi,Ji)&&(Or==="week"&&!rn(Ln,da.locale,bi,Ji)||Or==="quarter"&&!tt(Ln,bi,Ji)||Or!=="week"&&Or!=="quarter"&&Or!=="time"&&!ht(Ln,bi,Ji)?Ur===0?(Io=[bi,null],Ji=null):(bi=null,Io=[null,Ji]):(Or!=="time"||Dr!==!1)&&(Io=su(Io,Ln))),pe(Io);var Pu=Io&&Io[0]?Ft(Io[0],{generateConfig:Ln,locale:da,format:wo[0]}):"",Ql=Io&&Io[1]?Ft(Io[1],{generateConfig:Ln,locale:da,format:wo[0]}):"";if(hn){var iu={range:Ur===0?"start":"end"};hn(Io,[Pu,Ql],iu)}var ql=mu(bi,0,Do,Ee),cs=mu(Ji,1,Do,Ee),Uu=Io===null||ql&&cs;Uu&&(gi(Io),Ut&&(!an(Ln,ba(Vr,0),bi)||!an(Ln,ba(Vr,1),Ji))&&Ut(Io,[Pu,Ql]))}var ii=function(Ur){return Jn&&Ci.current&&Ci.current.onKeyDown?Ci.current.onKeyDown(Ur):((0,Be.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Za={formatList:wo,generateConfig:Ln,locale:da},bo=Rt(ba(ce,0),Za),Cr=(0,kt.Z)(bo,2),to=Cr[0],So=Cr[1],Ei=Rt(ba(ce,1),Za),mi=(0,kt.Z)(Ei,2),hr=mi[0],po=mi[1],Vi=function(Ur,Io){var bi=zt(Ur,{locale:da,formatList:wo,generateConfig:Ln}),Ji=Io===0?ta:la;bi&&!Ji(bi)&&(pe(wn(ce,bi,Io)),Mr(bi,Io))},Ri=pt({valueTexts:to,onTextChange:function(Ur){return Vi(Ur,0)}}),ea=(0,kt.Z)(Ri,3),Co=ea[0],Mi=ea[1],jo=ea[2],Fi=pt({valueTexts:hr,onTextChange:function(Ur){return Vi(Ur,1)}}),ki=(0,kt.Z)(Fi,3),ri=ki[0],il=ki[1],ll=ki[2],jl=(0,ie.useState)(null),Oi=(0,kt.Z)(jl,2),dl=Oi[0],Bl=Oi[1],Gl=(0,ie.useState)(null),No=(0,kt.Z)(Gl,2),Pi=No[0],Ui=No[1],Zi=un(Co,{formatList:wo,generateConfig:Ln,locale:da}),hl=(0,kt.Z)(Zi,3),ul=hl[0],sl=hl[1],wl=hl[2],Rl=un(ri,{formatList:wo,generateConfig:Ln,locale:da}),ml=(0,kt.Z)(Rl,3),qi=ml[0],Wl=ml[1],Jo=ml[2],vu=function(Ur){Ui(wn(ce,Ur,Fn)),Fn===0?sl(Ur):Wl(Ur)},pu=function(){Ui(wn(ce,null,Fn)),Fn===0?wl():Jo()},Kl=ie.useState(Jn),gu=(0,kt.Z)(Kl,2),ua=gu[0],qa=gu[1];ie.useEffect(function(){qa(Jn)},[Jn]);var Wo=function(Ur){if(fr&&ua){var Io=ba(ce,Fn);Io&&cr(ce,Fn)}return aa==null?void 0:aa(Ur)},uo=function(Ur,Io){return{blurToCancel:!fr&&Ga,forwardKeyDown:ii,onBlur:Wo,isClickOutside:function(Ji){return!Nn([Gr.current,Po.current,lo.current,ar.current],Ji)},onFocus:function(Ji){qn&&qn(Ji)},triggerOpen:function(Ji){Ji?sn(Ji,Ur,"open"):sn(Ji,ba(ce,Ur)?Ur:!1,"blur")},onSubmit:function(){if(!ce||Ro&&Ro(ce[Ur]))return!1;cr(ce,Ur),Io(),sn(!1,Fn,"confirm")},onCancel:function(){sn(!1,Ur,"cancel"),pe(Vr),Io()}}},xo={onKeyDown:function(Ur,Io){Rr==null||Rr(Ur,Io)},changeOnBlur:fr},Xo=Bn((0,ct.Z)((0,ct.Z)({},uo(0,jo)),{},{open:An,value:Co},xo)),$i=(0,kt.Z)(Xo,2),Ai=$i[0],fl=$i[1],el=fl.focused,Ml=fl.typing,ou=Bn((0,ct.Z)((0,ct.Z)({},uo(1,ll)),{},{open:ia,value:ri},xo)),ei=(0,kt.Z)(ou,2),Hi=ei[0],Dl=ei[1],Sl=Dl.focused,Vl=Dl.typing,kl=function(Ur){_a&&_a(Ur),!Jn&&!vo.current.contains(Ur.target)&&!Bo.current.contains(Ur.target)&&(Do[0]?Do[1]||Yr(1):Yr(0))},Ku=function(Ur){ca&&ca(Ur),Jn&&(el||Sl)&&!vo.current.contains(Ur.target)&&!Bo.current.contains(Ur.target)&&Ur.preventDefault()},Vu=Vr&&Vr[0]?Ft(Vr[0],{locale:da,format:"YYYYMMDDHHmmss",generateConfig:Ln}):"",$u=Vr&&Vr[1]?Ft(Vr[1],{locale:da,format:"YYYYMMDDHHmmss",generateConfig:Ln}):"";(0,ie.useEffect)(function(){Jn||(pe(Vr),!to.length||to[0]===""?Mi(""):So!==Co&&jo(),!hr.length||hr[0]===""?il(""):po!==ri&&ll())},[Jn,to,hr]),(0,ie.useEffect)(function(){pe(Vr)},[Vu,$u]);var hu=Ta({cellRender:fi,monthCellRender:Ii,dateRender:Di}),Es=ie.useMemo(function(){if(hu)return function(yi,Ur){return hu(yi,(0,ct.Z)((0,ct.Z)({},Ur),{},{range:Fn?"end":"start"}))}},[Fn,hu]);Pt&&(Pt.current={focus:function(){vo.current&&vo.current.focus()},blur:function(){vo.current&&vo.current.blur(),Bo.current&&Bo.current.blur()}});var vs=vt(ol,Xi);function ds(){var yi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Io=null;Jn&&Pi&&Pi[0]&&Pi[1]&&Ln.isAfter(Pi[1],Pi[0])&&(Io=Pi);var bi=zn;if(zn&&(0,In.Z)(zn)==="object"&&zn.defaultValue){var Ji=zn.defaultValue;bi=(0,ct.Z)((0,ct.Z)({},zn),{},{defaultValue:ba(Ji,Fn)||void 0})}return ie.createElement(pr.Provider,{value:{inRange:!0,panelPosition:yi,rangedValue:dl||ce,hoverRangedValue:Io}},ie.createElement(Wa,(0,ue.Z)({},me,Ur,{cellRender:Es,showTime:bi,mode:tn[Fn],generateConfig:Ln,style:void 0,direction:jr,disabledDate:Fn===0?ta:la,disabledTime:function(Ql){return zo?zo(Ql,Fn===0?"start":"end"):!1},className:$e()((0,_e.Z)({},"".concat(Kt,"-panel-focused"),Fn===0?!Ml:!Vl)),value:ba(ce,Fn),locale:da,tabIndex:-1,onPanelChange:function(Ql,iu){Fn===0&&wl(!0),Fn===1&&Jo(!0),ma(wn(tn,iu,Fn),wn(ce,Ql,Fn));var ql=Ql;yi==="right"&&tn[Fn]===iu&&(ql=Te(ql,iu,Ln,-1)),Mr(ql,Fn)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Fn===0?ba(ce,1):ba(ce,0)})))}var Qa=0,oo=0;if(Fn&&Po.current&&Lr.current&&Gr.current&&ka.current){Qa=Po.current.offsetWidth+Lr.current.offsetWidth;var Qo=ka.current.offsetLeft>Qa?ka.current.offsetLeft-Qa:ka.current.offsetLeft,di=Gr.current.offsetWidth,ti=ka.current.offsetWidth;di&&ti&&Qa>di-ti-(jr==="rtl"?0:Qo)&&(oo=Qa)}var Ko=jr==="rtl"?{right:Qa}:{left:Qa};function Li(){var yi,Ur=na(Kt,tn[Fn],Yt),Io=Un({prefixCls:Kt,components:Kr,needConfirmButton:Ga,okDisabled:!ba(ce,Fn)||Ro&&Ro(ce[Fn]),locale:da,onOk:function(){var lu=ba(ce,Fn);lu&&(cr(ce,Fn),nr==null||nr(ce),sn(!1,Fn,"confirm"))}});if(Or!=="time"&&!zn){var bi=Xr(Fn),Ji=Te(bi,Or,Ln),Pu=tn[Fn],Ql=Pu===Or,iu=ds(Ql?"left":!1,{pickerValue:bi,onPickerValueChange:function(lu){Mr(lu,Fn)}}),ql=ds("right",{pickerValue:Ji,onPickerValueChange:function(lu){Mr(Te(lu,Or,Ln,-1),Fn)}});jr==="rtl"?yi=ie.createElement(ie.Fragment,null,ql,Ql&&iu):yi=ie.createElement(ie.Fragment,null,iu,Ql&&ql)}else yi=ds();var cs=ie.createElement("div",{className:"".concat(Kt,"-panel-layout")},ie.createElement(Vo,{prefixCls:Kt,presets:vs,onClick:function(lu){cr(lu,null),sn(!1,Fn,"preset")},onHover:function(lu){Bl(lu)}}),ie.createElement("div",null,ie.createElement("div",{className:"".concat(Kt,"-panels")},yi),(Ur||Io)&&ie.createElement("div",{className:"".concat(Kt,"-footer")},Ur,Io)));return Mo&&(cs=Mo(cs)),ie.createElement("div",{className:"".concat(Kt,"-panel-container"),style:{marginLeft:oo},ref:Gr,onMouseDown:function(lu){lu.preventDefault()}},cs)}var Ki=ie.createElement("div",{className:$e()("".concat(Kt,"-range-wrapper"),"".concat(Kt,"-").concat(Or,"-range-wrapper")),style:{minWidth:Ca}},ie.createElement("div",{ref:ka,className:"".concat(Kt,"-range-arrow"),style:Ko}),Li()),bl;Ue&&(bl=ie.createElement("span",{className:"".concat(Kt,"-suffix"),onMouseDown:function(Ur){Ur.preventDefault()}},Ue));var $l=Gi(Kt,Ce,rt),Su=ie.createElement("span",{onMouseDown:function(Ur){Ur.preventDefault(),Ur.stopPropagation()},onMouseUp:function(Ur){Ur.preventDefault(),Ur.stopPropagation();var Io=Vr;Do[0]||(Io=wn(Io,null,0)),Do[1]||(Io=wn(Io,null,1)),cr(Io,null),sn(!1,Fn,"clear")},className:"".concat(Kt,"-clear"),role:"button"},$l),Ol=Ce&&(ba(Vr,0)&&!Do[0]||ba(Vr,1)&&!Do[1]),Ul={size:yr(Or,wo[0],Ln)},Eu=0,Du=0;Po.current&&lo.current&&Lr.current&&(Fn===0?Du=Po.current.offsetWidth:(Eu=Qa,Du=lo.current.offsetWidth));var ps=jr==="rtl"?{right:Eu}:{left:Eu},hs=function(Ur,Io){var bi=wn(ce,Ur,Fn);if(Io==="submit"||Io!=="key"&&!Ga){cr(bi,Fn),Fn===0?wl():Jo();var Ji=Fn===0?1:0;Do[Ji]?sn(!1,!1,"confirm"):sn(!1,Fn,"confirm")}else pe(bi)};return ie.createElement(Hn.Provider,{value:{operationRef:Ci,hideHeader:Or==="time",onDateMouseEnter:vu,onDateMouseLeave:pu,hideRanges:!0,onSelect:hs,open:Jn}},ie.createElement(co,{visible:Jn,popupElement:Ki,popupStyle:Ba,prefixCls:Kt,dropdownClassName:ga,dropdownAlign:Da,getPopupContainer:Ra,transitionName:gn,range:!0,direction:jr},ie.createElement("div",(0,ue.Z)({ref:ar,className:$e()(Kt,"".concat(Kt,"-range"),oa,(Se={},(0,_e.Z)(Se,"".concat(Kt,"-disabled"),Do[0]&&Do[1]),(0,_e.Z)(Se,"".concat(Kt,"-focused"),Fn===0?el:Sl),(0,_e.Z)(Se,"".concat(Kt,"-rtl"),jr==="rtl"),Se)),style:Mn,onClick:kl,onMouseEnter:Ht,onMouseLeave:Ja,onMouseDown:Ku,onMouseUp:Oa},(0,It.Z)(me,{aria:!0,data:!0})),ie.createElement("div",{className:$e()("".concat(Kt,"-input"),(ye={},(0,_e.Z)(ye,"".concat(Kt,"-input-active"),Fn===0),(0,_e.Z)(ye,"".concat(Kt,"-input-placeholder"),!!ul),ye)),ref:Po},ie.createElement("input",(0,ue.Z)({id:kn,disabled:Do[0],readOnly:Et||typeof wo[0]=="function"||!Ml,value:ul||Co,onChange:function(Ur){Mi(Ur.target.value)},autoFocus:Br,placeholder:ba(Ma,0)||"",ref:vo},Ai,Ul,{autoComplete:tr}))),ie.createElement("div",{className:"".concat(Kt,"-range-separator"),ref:Lr},Go),ie.createElement("div",{className:$e()("".concat(Kt,"-input"),(nt={},(0,_e.Z)(nt,"".concat(Kt,"-input-active"),Fn===1),(0,_e.Z)(nt,"".concat(Kt,"-input-placeholder"),!!qi),nt)),ref:lo},ie.createElement("input",(0,ue.Z)({disabled:Do[1],readOnly:Et||typeof wo[0]=="function"||!Vl,value:qi||ri,onChange:function(Ur){il(Ur.target.value)},placeholder:ba(Ma,1)||"",ref:Bo},Hi,Ul,{autoComplete:tr}))),ie.createElement("div",{className:"".concat(Kt,"-active-bar"),style:(0,ct.Z)((0,ct.Z)({},ps),{},{width:Du,position:"absolute"})}),bl,Ol&&Su)))}var El=function(me){(0,Zt.Z)(ye,me);var Se=(0,On.Z)(ye);function ye(){var nt;(0,dt.Z)(this,ye);for(var it=arguments.length,en=new Array(it),Kt=0;Kt<it;Kt++)en[Kt]=arguments[Kt];return nt=Se.call.apply(Se,[this].concat(en)),(0,_e.Z)((0,Yn.Z)(nt),"pickerRef",ie.createRef()),(0,_e.Z)((0,Yn.Z)(nt),"focus",function(){nt.pickerRef.current&&nt.pickerRef.current.focus()}),(0,_e.Z)((0,Yn.Z)(nt),"blur",function(){nt.pickerRef.current&&nt.pickerRef.current.blur()}),nt}return(0,on.Z)(ye,[{key:"render",value:function(){return ie.createElement(Yu,(0,ue.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),ye}(ie.Component),Ru=El,Mu=Al,rl=ee(19080),ku=ee(36355),nu=ee(1684),Ju=ee(19716),bu=ee(32441),Tu=ee(9763),Xu=ee(33234),_u=ee(48183),yl=ee(64993),Wi=ee(9937),Zu=ee(17313),fs=ee(47585),au=ee(74207),wi=ee(13826),Cu=ee(92899),zu=ee(37613),rs=ee(83116);const Il=(me,Se,ye,nt)=>{const{lineHeight:it}=me,en=Math.floor(ye*it)+2,Kt=Math.max((Se-en)/2,0),kn=Math.max(Se-en-Kt,0);return{padding:`${Kt}px ${nt}px ${kn}px`}},Hu=me=>{const{componentCls:Se,pickerCellCls:ye,pickerCellInnerCls:nt,cellHeight:it,motionDurationSlow:en,borderRadiusSM:Kt,motionDurationMid:kn,cellHoverBg:Mn,lineWidth:oa,lineType:Ba,colorPrimary:ga,cellActiveWithRangeBg:gn,colorTextLightSolid:Da,controlHeightSM:Ra,cellRangeBorderColor:Ln,pickerCellBorderGap:da,cellHoverWithRangeBg:Ma,cellWidth:Br,colorTextDisabled:vr,cellBgDisabled:wr}=me;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:it,transform:"translateY(-50%)",transition:`all ${en}`,content:'""'},[nt]:{position:"relative",zIndex:2,display:"inline-block",minWidth:it,height:it,lineHeight:`${it}px`,borderRadius:Kt,transition:`background ${kn}, border ${kn}`},"&-range-hover-start, &-range-hover-end":{[nt]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${ye}-in-view),
&:hover:not(${ye}-selected):not(${ye}-range-start):not(${ye}-range-end):not(${ye}-range-hover-start):not(${ye}-range-hover-end)`]:{[nt]:{background:Mn}},[`&-in-view${ye}-today ${nt}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${oa}px ${Ba} ${ga}`,borderRadius:Kt,content:'""'}},[`&-in-view${ye}-in-range`]:{position:"relative","&::before":{background:gn}},[`&-in-view${ye}-selected ${nt},
&-in-view${ye}-range-start ${nt},
&-in-view${ye}-range-end ${nt}`]:{color:Da,background:ga},[`&-in-view${ye}-range-start:not(${ye}-range-start-single),
&-in-view${ye}-range-end:not(${ye}-range-end-single)`]:{"&::before":{background:gn}},[`&-in-view${ye}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${ye}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${ye}-range-hover-start:not(${ye}-in-range):not(${ye}-range-start):not(${ye}-range-end),
&-in-view${ye}-range-hover-end:not(${ye}-in-range):not(${ye}-range-start):not(${ye}-range-end),
&-in-view${ye}-range-hover-start${ye}-range-start-single,
&-in-view${ye}-range-hover-start${ye}-range-start${ye}-range-end${ye}-range-end-near-hover,
&-in-view${ye}-range-hover-end${ye}-range-start${ye}-range-end${ye}-range-start-near-hover,
&-in-view${ye}-range-hover-end${ye}-range-end-single,
&-in-view${ye}-range-hover:not(${ye}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Ra,borderTop:`${oa}px dashed ${Ln}`,borderBottom:`${oa}px dashed ${Ln}`,transform:"translateY(-50%)",transition:`all ${en}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:da},[`&-in-view${ye}-in-range${ye}-range-hover::before,
&-in-view${ye}-in-range${ye}-range-hover-start::before,
&-in-view${ye}-in-range${ye}-range-hover-end::before,
&-in-view${ye}-range-start${ye}-range-hover::before,
&-in-view${ye}-range-end${ye}-range-hover::before,
&-in-view${ye}-range-start:not(${ye}-range-start-single)${ye}-range-hover-start::before,
&-in-view${ye}-range-end:not(${ye}-range-end-single)${ye}-range-hover-end::before,
${Se}-panel
> :not(${Se}-date-panel)
&-in-view${ye}-in-range${ye}-range-hover-start::before,
${Se}-panel
> :not(${Se}-date-panel)
&-in-view${ye}-in-range${ye}-range-hover-end::before`]:{background:Ma},[`&-in-view${ye}-range-start:not(${ye}-range-start-single):not(${ye}-range-end) ${nt}`]:{borderStartStartRadius:Kt,borderEndStartRadius:Kt,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ye}-range-end:not(${ye}-range-end-single):not(${ye}-range-start) ${nt}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Kt,borderEndEndRadius:Kt},[`&-range-hover${ye}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${ye}-range-hover:first-child::after,
tr > &-in-view${ye}-range-hover-end:first-child::after,
&-in-view${ye}-start${ye}-range-hover-edge-start${ye}-range-hover-edge-start-near-range::after,
&-in-view${ye}-range-hover-edge-start:not(${ye}-range-hover-edge-start-near-range)::after,
&-in-view${ye}-range-hover-start::after`]:{insetInlineStart:(Br-it)/2,borderInlineStart:`${oa}px dashed ${Ln}`,borderStartStartRadius:Kt,borderEndStartRadius:Kt},[`tr > &-in-view${ye}-range-hover:last-child::after,
tr > &-in-view${ye}-range-hover-start:last-child::after,
&-in-view${ye}-end${ye}-range-hover-edge-end${ye}-range-hover-edge-end-near-range::after,
&-in-view${ye}-range-hover-edge-end:not(${ye}-range-hover-edge-end-near-range)::after,
&-in-view${ye}-range-hover-end::after`]:{insetInlineEnd:(Br-it)/2,borderInlineEnd:`${oa}px dashed ${Ln}`,borderStartEndRadius:Kt,borderEndEndRadius:Kt},"&-disabled":{color:vr,pointerEvents:"none",[nt]:{background:"transparent"},"&::before":{background:wr}},[`&-disabled${ye}-today ${nt}::before`]:{borderColor:vr}}},xu=me=>{const{componentCls:Se,pickerCellCls:ye,pickerCellInnerCls:nt,pickerYearMonthCellWidth:it,pickerControlIconSize:en,cellWidth:Kt,paddingSM:kn,paddingXS:Mn,paddingXXS:oa,colorBgContainer:Ba,lineWidth:ga,lineType:gn,borderRadiusLG:Da,colorPrimary:Ra,colorTextHeading:Ln,colorSplit:da,pickerControlIconBorderWidth:Ma,colorIcon:Br,textHeight:vr,motionDurationMid:wr,colorIconHover:Hr,fontWeightStrong:Or,cellHeight:zn,pickerCellPaddingVertical:$o,colorTextDisabled:fo,colorText:Go,fontSize:qo,cellHoverWithRangeBg:oi,motionDurationSlow:Si,withoutTimeCellHeight:zi,pickerQuarterPanelContentHeight:ro,colorLink:Ro,colorLinkActive:zo,colorLinkHover:Di,cellRangeBorderColor:Ii,borderRadiusSM:fi,colorTextLightSolid:Mo,cellHoverBg:ol,timeColumnHeight:Xi,timeColumnWidth:Ee,timeCellHeight:Ce,controlItemBgActive:Ue,marginXXS:rt,pickerDatePanelPaddingHorizontal:Pt}=me,Et=Kt*7+Pt*2,$t=(Et-Mn*2)/3-it-kn,Yt=(Et-Mn*2)/4-it;return{[Se]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ba,border:`${ga}px ${gn} ${da}`,borderRadius:Da,outline:"none","&-focused":{borderColor:Ra},"&-rtl":{direction:"rtl",[`${Se}-prev-icon,
${Se}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${Se}-next-icon,
${Se}-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:Et},"&-header":{display:"flex",padding:`0 ${Mn}px`,color:Ln,borderBottom:`${ga}px ${gn} ${da}`,"> *":{flex:"none"},button:{padding:0,color:Br,lineHeight:`${vr}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${wr}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:qo,"&:hover":{color:Hr}},"&-view":{flex:"auto",fontWeight:Or,lineHeight:`${vr}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Mn},"&:hover":{color:Ra}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:en,height:en,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:en,height:en,border:"0 solid currentcolor",borderBlockStartWidth:Ma,borderBlockEndWidth:0,borderInlineStartWidth:Ma,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(en/2),insetInlineStart:Math.ceil(en/2),display:"inline-block",width:en,height:en,border:"0 solid currentcolor",borderBlockStartWidth:Ma,borderBlockEndWidth:0,borderInlineStartWidth:Ma,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:zn,fontWeight:"normal"},th:{height:zn+$o*2,color:Go,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${$o}px 0`,color:fo,cursor:"pointer","&-in-view":{color:Go}},Hu(me)),[`&-date-panel ${Se}-cell-in-view${Se}-cell-in-range${Se}-cell-range-hover-start ${nt},
&-date-panel ${Se}-cell-in-view${Se}-cell-in-range${Se}-cell-range-hover-end ${nt}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:oi,transition:`all ${Si}`,content:'""'}},[`&-date-panel
${Se}-cell-in-view${Se}-cell-in-range${Se}-cell-range-hover-start
${nt}::after`]:{insetInlineEnd:-(Kt-zn)/2,insetInlineStart:0},[`&-date-panel ${Se}-cell-in-view${Se}-cell-in-range${Se}-cell-range-hover-end ${nt}::after`]:{insetInlineEnd:0,insetInlineStart:-(Kt-zn)/2},[`&-range-hover${Se}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Se}-content`]:{height:zi*4},[nt]:{padding:`0 ${Mn}px`}},"&-quarter-panel":{[`${Se}-content`]:{height:ro},[`${Se}-cell-range-hover-start::after`]:{insetInlineStart:Yt,borderInlineStart:`${ga}px dashed ${Ii}`,[`${Se}-panel-rtl &`]:{insetInlineEnd:Yt,borderInlineEnd:`${ga}px dashed ${Ii}`}},[`${Se}-cell-range-hover-end::after`]:{insetInlineEnd:Yt,borderInlineEnd:`${ga}px dashed ${Ii}`,[`${Se}-panel-rtl &`]:{insetInlineStart:Yt,borderInlineStart:`${ga}px dashed ${Ii}`}}},[`&-panel ${Se}-footer`]:{borderTop:`${ga}px ${gn} ${da}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${vr-2*ga}px`,textAlign:"center","&-extra":{padding:`0 ${kn}px`,lineHeight:`${vr-2*ga}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${ga}px ${gn} ${da}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:Ro,"&:hover":{color:Di},"&:active":{color:zo},[`&${Se}-today-btn-disabled`]:{color:fo,cursor:"not-allowed"}},"&-decade-panel":{[nt]:{padding:`0 ${Mn/2}px`},[`${Se}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${Se}-body`]:{padding:`0 ${Mn}px`},[nt]:{width:it},[`${Se}-cell-range-hover-start::after`]:{borderStartStartRadius:fi,borderEndStartRadius:fi,borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:fi,borderEndEndRadius:fi}},[`${Se}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:fi,borderEndEndRadius:fi,[`${Se}-panel-rtl &`]:{borderStartStartRadius:fi,borderEndStartRadius:fi,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${Se}-cell-range-hover-start::after`]:{insetInlineStart:$t,borderInlineStart:`${ga}px dashed ${Ii}`,[`${Se}-panel-rtl &`]:{insetInlineEnd:$t,borderInlineEnd:`${ga}px dashed ${Ii}`}},[`${Se}-cell-range-hover-end::after`]:{insetInlineEnd:$t,borderInlineEnd:`${ga}px dashed ${Ii}`,[`${Se}-panel-rtl &`]:{insetInlineStart:$t,borderInlineStart:`${ga}px dashed ${Ii}`}}},"&-week-panel":{[`${Se}-body`]:{padding:`${Mn}px ${kn}px`},[`${Se}-cell`]:{[`&:hover ${nt},
&-selected ${nt},
${nt}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${wr}`},"&:first-child:before":{borderStartStartRadius:fi,borderEndStartRadius:fi},"&:last-child:before":{borderStartEndRadius:fi,borderEndEndRadius:fi}},"&:hover td":{"&:before":{background:ol}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${ye}`]:{"&:before":{background:Ra},[`&${Se}-cell-week`]:{color:new yl.C(Mo).setAlpha(.5).toHexString()},[nt]:{color:Mo}}},"&-range-hover td:before":{background:Ue}}},"&-date-panel":{[`${Se}-body`]:{padding:`${Mn}px ${Pt}px`},[`${Se}-content`]:{width:Kt*7,th:{width:Kt,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${Se}-time-panel`]:{borderInlineStart:`${ga}px ${gn} ${da}`},[`${Se}-date-panel,
${Se}-time-panel`]:{transition:`opacity ${Si}`},"&-active":{[`${Se}-date-panel,
${Se}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${Se}-content`]:{display:"flex",flex:"auto",height:Xi},"&-column":{flex:"1 0 auto",width:Ee,margin:`${oa}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${wr}`,overflowX:"hidden","&::after":{display:"block",height:Xi-Ce,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ga}px ${gn} ${da}`},"&-active":{background:new yl.C(Ue).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${Se}-time-panel-cell`]:{marginInline:rt,[`${Se}-time-panel-cell-inner`]:{display:"block",width:Ee-2*rt,height:Ce,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Ee-Ce)/2,color:Go,lineHeight:`${Ce}px`,borderRadius:fi,cursor:"pointer",transition:`background ${wr}`,"&:hover":{background:ol}},"&-selected":{[`${Se}-time-panel-cell-inner`]:{background:Ue}},"&-disabled":{[`${Se}-time-panel-cell-inner`]:{color:fo,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${Se}-time-panel-column:after`]:{height:Xi-Ce+oa*2}}}},Fu=me=>{const{componentCls:Se,colorBgContainer:ye,colorError:nt,errorActiveShadow:it,colorWarning:en,warningActiveShadow:Kt}=me;return{[`${Se}:not(${Se}-disabled)`]:{[`&${Se}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:ye,borderColor:nt},[`&${Se}-focused, &:focus`]:Object.assign({},(0,Wi.M1)((0,zu.TS)(me,{activeBorderColor:nt,activeShadow:it}))),[`${Se}-active-bar`]:{background:nt}},[`&${Se}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:ye,borderColor:en},[`&${Se}-focused, &:focus`]:Object.assign({},(0,Wi.M1)((0,zu.TS)(me,{activeBorderColor:en,activeShadow:Kt}))),[`${Se}-active-bar`]:{background:en}}}}},Fl=me=>{const{componentCls:Se,antCls:ye,controlHeight:nt,fontSize:it,paddingInline:en,colorBgContainer:Kt,lineWidth:kn,lineType:Mn,colorBorder:oa,borderRadius:Ba,motionDurationMid:ga,colorBgContainerDisabled:gn,colorTextDisabled:Da,colorTextPlaceholder:Ra,controlHeightLG:Ln,fontSizeLG:da,controlHeightSM:Ma,paddingInlineSM:Br,paddingXS:vr,marginXS:wr,colorTextDescription:Hr,lineWidthBold:Or,lineHeight:zn,colorPrimary:$o,motionDurationSlow:fo,zIndexPopup:Go,paddingXXS:qo,paddingSM:oi,textHeight:Si,cellActiveWithRangeBg:zi,colorPrimaryBorder:ro,sizePopupArrow:Ro,borderRadiusXS:zo,borderRadiusOuter:Di,colorBgElevated:Ii,borderRadiusLG:fi,boxShadowSecondary:Mo,borderRadiusSM:ol,colorSplit:Xi,cellHoverBg:Ee,presetsWidth:Ce,presetsMaxWidth:Ue,boxShadowPopoverArrow:rt,colorTextQuaternary:Pt}=me;return[{[Se]:Object.assign(Object.assign(Object.assign({},(0,Zu.Wf)(me)),Il(me,nt,it,en)),{position:"relative",display:"inline-flex",alignItems:"center",background:Kt,lineHeight:1,border:`${kn}px ${Mn} ${oa}`,borderRadius:Ba,transition:`border ${ga}, box-shadow ${ga}`,"&:hover, &-focused":Object.assign({},(0,Wi.pU)(me)),"&-focused":Object.assign({},(0,Wi.M1)(me)),[`&${Se}-disabled`]:{background:gn,borderColor:oa,cursor:"not-allowed",[`${Se}-suffix`]:{color:Pt}},[`&${Se}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${Se}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Wi.ik)(me)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${Se}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Ra}}},"&-large":Object.assign(Object.assign({},Il(me,Ln,da,en)),{[`${Se}-input > input`]:{fontSize:da}}),"&-small":Object.assign({},Il(me,Ma,it,Br)),[`${Se}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:vr/2,color:Da,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:wr}}},[`${Se}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Da,lineHeight:1,background:Kt,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${ga}, color ${ga}`,"> *":{verticalAlign:"top"},"&:hover":{color:Hr}},[`${Se}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:da,color:Da,fontSize:da,verticalAlign:"top",cursor:"default",[`${Se}-focused &`]:{color:Hr},[`${Se}-range-separator &`]:{[`${Se}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${Se}-clear`]:{insetInlineEnd:en},"&:hover":{[`${Se}-clear`]:{opacity:1}},[`${Se}-active-bar`]:{bottom:-kn,height:Or,marginInlineStart:en,background:$o,opacity:0,transition:`all ${fo} ease-out`,pointerEvents:"none"},[`&${Se}-focused`]:{[`${Se}-active-bar`]:{opacity:1}},[`${Se}-range-separator`]:{alignItems:"center",padding:`0 ${vr}px`,lineHeight:1},[`&${Se}-small`]:{[`${Se}-clear`]:{insetInlineEnd:Br},[`${Se}-active-bar`]:{marginInlineStart:Br}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Zu.Wf)(me)),xu(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Go,[`&${Se}-dropdown-hidden`]:{display:"none"},[`&${Se}-dropdown-placement-bottomLeft`]:{[`${Se}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${Se}-dropdown-placement-topLeft`]:{[`${Se}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${ye}-slide-up-enter${ye}-slide-up-enter-active${Se}-dropdown-placement-topLeft,
&${ye}-slide-up-enter${ye}-slide-up-enter-active${Se}-dropdown-placement-topRight,
&${ye}-slide-up-appear${ye}-slide-up-appear-active${Se}-dropdown-placement-topLeft,
&${ye}-slide-up-appear${ye}-slide-up-appear-active${Se}-dropdown-placement-topRight`]:{animationName:wi.Qt},[`&${ye}-slide-up-enter${ye}-slide-up-enter-active${Se}-dropdown-placement-bottomLeft,
&${ye}-slide-up-enter${ye}-slide-up-enter-active${Se}-dropdown-placement-bottomRight,
&${ye}-slide-up-appear${ye}-slide-up-appear-active${Se}-dropdown-placement-bottomLeft,
&${ye}-slide-up-appear${ye}-slide-up-appear-active${Se}-dropdown-placement-bottomRight`]:{animationName:wi.fJ},[`&${ye}-slide-up-leave${ye}-slide-up-leave-active${Se}-dropdown-placement-topLeft,
&${ye}-slide-up-leave${ye}-slide-up-leave-active${Se}-dropdown-placement-topRight`]:{animationName:wi.ly},[`&${ye}-slide-up-leave${ye}-slide-up-leave-active${Se}-dropdown-placement-bottomLeft,
&${ye}-slide-up-leave${ye}-slide-up-leave-active${Se}-dropdown-placement-bottomRight`]:{animationName:wi.Uw},[`${Se}-panel > ${Se}-time-panel`]:{paddingTop:qo},[`${Se}-ranges`]:{marginBottom:0,padding:`${qo}px ${oi}px`,overflow:"hidden",lineHeight:`${Si-2*kn-vr/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${Se}-preset > ${ye}-tag-blue`]:{color:$o,background:zi,borderColor:ro,cursor:"pointer"},[`${Se}-ok`]:{marginInlineStart:"auto"}},[`${Se}-range-wrapper`]:{display:"flex",position:"relative"},[`${Se}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:en*1.5,transition:`left ${fo} ease-out`},(0,fs.r)(Ro,zo,Di,Ii,rt)),[`${Se}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Ii,borderRadius:fi,boxShadow:Mo,transition:`margin ${fo}`,[`${Se}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${Se}-presets`]:{display:"flex",flexDirection:"column",minWidth:Ce,maxWidth:Ue,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:vr,borderInlineEnd:`${kn}px ${Mn} ${Xi}`,li:Object.assign(Object.assign({},Zu.vS),{borderRadius:ol,paddingInline:vr,paddingBlock:(Ma-Math.round(it*zn))/2,cursor:"pointer",transition:`all ${fo}`,"+ li":{marginTop:wr},"&:hover":{background:Ee}})}},[`${Se}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${Se}-panel`]:{borderWidth:`0 0 ${kn}px`},"&:last-child":{[`${Se}-panel`]:{borderWidth:0}}},[`${Se}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${Se}-content,
table`]:{textAlign:"center"},"&-focused":{borderColor:oa}}}}),"&-dropdown-range":{padding:`${Ro*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${Se}-separator`]:{transform:"rotate(180deg)"},[`${Se}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,wi.oN)(me,"slide-up"),(0,wi.oN)(me,"slide-down"),(0,Cu.Fm)(me,"move-up"),(0,Cu.Fm)(me,"move-down")]},zl=me=>{const{componentCls:Se,controlHeightLG:ye,paddingXXS:nt,padding:it}=me;return{pickerCellCls:`${Se}-cell`,pickerCellInnerCls:`${Se}-cell-inner`,pickerYearMonthCellWidth:ye*1.5,pickerQuarterPanelContentHeight:ye*1.4,pickerCellPaddingVertical:nt+nt/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:it+nt/2}},os=me=>({cellHoverBg:me.controlItemBgHover,cellActiveWithRangeBg:me.controlItemBgActive,cellHoverWithRangeBg:new yl.C(me.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new yl.C(me.colorPrimary).lighten(20).toHexString(),cellBgDisabled:me.colorBgContainerDisabled,timeColumnWidth:me.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:me.controlHeightSM*1.5,cellHeight:me.controlHeightSM,textHeight:me.controlHeightLG,withoutTimeCellHeight:me.controlHeightLG*1.65});var qu=(0,rs.Z)("DatePicker",me=>{const Se=(0,zu.TS)((0,Wi.e5)(me),zl(me));return[Fl(Se),Fu(Se),(0,au.c)(me,{focusElCls:`${me.componentCls}-focused`})]},me=>Object.assign(Object.assign(Object.assign({},(0,Wi.TM)(me)),os(me)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:me.zIndexPopupBase+50}));function ju(me,Se,ye){return ye!==void 0?ye:Se==="year"&&me.lang.yearPlaceholder?me.lang.yearPlaceholder:Se==="quarter"&&me.lang.quarterPlaceholder?me.lang.quarterPlaceholder:Se==="month"&&me.lang.monthPlaceholder?me.lang.monthPlaceholder:Se==="week"&&me.lang.weekPlaceholder?me.lang.weekPlaceholder:Se==="time"&&me.timePickerLocale.placeholder?me.timePickerLocale.placeholder:me.lang.placeholder}function Ar(me,Se,ye){return ye!==void 0?ye:Se==="year"&&me.lang.yearPlaceholder?me.lang.rangeYearPlaceholder:Se==="quarter"&&me.lang.quarterPlaceholder?me.lang.rangeQuarterPlaceholder:Se==="month"&&me.lang.monthPlaceholder?me.lang.rangeMonthPlaceholder:Se==="week"&&me.lang.weekPlaceholder?me.lang.rangeWeekPlaceholder:Se==="time"&&me.timePickerLocale.placeholder?me.timePickerLocale.rangePlaceholder:me.lang.rangePlaceholder}function Bu(me,Se){const ye={adjustX:1,adjustY:1};switch(Se){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:ye};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:ye};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:ye};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:ye};default:return{points:me==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:ye}}}function Yl(me){return me?Array.isArray(me)?me:[me]:[]}function Hl(me){const{format:Se,picker:ye,showHour:nt,showMinute:it,showSecond:en,use12Hours:Kt}=me,kn=Yl(Se)[0],Mn=Object.assign({},me);return Se&&Array.isArray(Se)&&(Mn.format=kn),kn&&typeof kn=="string"&&(!kn.includes("s")&&en===void 0&&(Mn.showSecond=!1),!kn.includes("m")&&it===void 0&&(Mn.showMinute=!1),!kn.includes("H")&&!kn.includes("h")&&!kn.includes("K")&&!kn.includes("k")&&nt===void 0&&(Mn.showHour=!1),(kn.includes("a")||kn.includes("A"))&&Kt===void 0&&(Mn.use12Hours=!0)),ye==="time"?Mn:(typeof kn=="function"&&delete Mn.format,{showTime:Mn})}function Xa(me,Se,ye){if(me===!1)return!1;const nt={clearIcon:Se!=null?Se:ye};return typeof me=="object"?Object.assign(Object.assign({},nt),me):nt}var du=ee(3113);function es(me){return ie.createElement(du.ZP,Object.assign({size:"small",type:"primary"},me))}var wu={button:es},ts=function(me,Se){var ye={};for(var nt in me)Object.prototype.hasOwnProperty.call(me,nt)&&Se.indexOf(nt)<0&&(ye[nt]=me[nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,nt=Object.getOwnPropertySymbols(me);it<nt.length;it++)Se.indexOf(nt[it])<0&&Object.prototype.propertyIsEnumerable.call(me,nt[it])&&(ye[nt[it]]=me[nt[it]]);return ye};function cu(me){return(0,ie.forwardRef)((ye,nt)=>{const{prefixCls:it,getPopupContainer:en,className:Kt,placement:kn,size:Mn,disabled:oa,bordered:Ba=!0,placeholder:ga,popupClassName:gn,dropdownClassName:Da,status:Ra,clearIcon:Ln,allowClear:da,rootClassName:Ma}=ye,Br=ts(ye,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),vr=ie.useRef(null),{getPrefixCls:wr,direction:Hr,getPopupContainer:Or}=(0,ie.useContext)(ku.E_),zn=wr("picker",it),{compactSize:$o,compactItemClassnames:fo}=(0,Xu.ri)(zn,Hr),{format:Go,showTime:qo,picker:oi}=ye,Si=wr(),[zi,ro]=qu(zn),Ro=Object.assign(Object.assign({},qo?Hl(Object.assign({format:Go,picker:oi},qo)):{}),oi==="time"?Hl(Object.assign(Object.assign({format:Go},ye),{picker:oi})):{}),zo=(0,Ju.Z)(rt=>{var Pt;return(Pt=Mn!=null?Mn:$o)!==null&&Pt!==void 0?Pt:rt}),Di=ie.useContext(nu.Z),Ii=oa!=null?oa:Di,fi=(0,ie.useContext)(bu.aM),{hasFeedback:Mo,status:ol,feedbackIcon:Xi}=fi,Ee=ie.createElement(ie.Fragment,null,oi==="time"?ie.createElement(ot,null):ie.createElement(he,null),Mo&&Xi);(0,ie.useImperativeHandle)(nt,()=>({focus:()=>{var rt;return(rt=vr.current)===null||rt===void 0?void 0:rt.focus()},blur:()=>{var rt;return(rt=vr.current)===null||rt===void 0?void 0:rt.blur()}}));const[Ce]=(0,Tu.Z)("Calendar",_u.Z),Ue=Object.assign(Object.assign({},Ce),ye.locale);return zi(ie.createElement(Ru,Object.assign({separator:ie.createElement("span",{"aria-label":"to",className:`${zn}-separator`},ie.createElement(nn,null)),disabled:Ii,ref:vr,dropdownAlign:Bu(Hr,kn),placeholder:Ar(Ue,oi,ga),suffixIcon:Ee,prevIcon:ie.createElement("span",{className:`${zn}-prev-icon`}),nextIcon:ie.createElement("span",{className:`${zn}-next-icon`}),superPrevIcon:ie.createElement("span",{className:`${zn}-super-prev-icon`}),superNextIcon:ie.createElement("span",{className:`${zn}-super-next-icon`}),transitionName:`${Si}-slide-up`},Br,Ro,{className:$e()({[`${zn}-${zo}`]:zo,[`${zn}-borderless`]:!Ba},(0,rl.Z)(zn,(0,rl.F)(ol,Ra),Mo),ro,fo,Kt,Ma),locale:Ue.lang,prefixCls:zn,getPopupContainer:en||Or,generateConfig:me,components:wu,direction:Hr,dropdownClassName:$e()(ro,gn||Da,Ma),allowClear:Xa(da,Ln,ie.createElement(lt.Z,null))})))})}var Yi=function(me,Se){var ye={};for(var nt in me)Object.prototype.hasOwnProperty.call(me,nt)&&Se.indexOf(nt)<0&&(ye[nt]=me[nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,nt=Object.getOwnPropertySymbols(me);it<nt.length;it++)Se.indexOf(nt[it])<0&&Object.prototype.propertyIsEnumerable.call(me,nt[it])&&(ye[nt[it]]=me[nt[it]]);return ye};function ls(me){function Se(Mn,oa){const Ba=oa==="TimePicker"?"timePicker":"datePicker",ga=(0,ie.forwardRef)((gn,Da)=>{const{prefixCls:Ra,getPopupContainer:Ln,style:da,className:Ma,rootClassName:Br,size:vr,bordered:wr=!0,placement:Hr,placeholder:Or,popupClassName:zn,dropdownClassName:$o,disabled:fo,status:Go,clearIcon:qo,allowClear:oi}=gn,Si=Yi(gn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:zi,direction:ro,getPopupContainer:Ro,[Ba]:zo}=(0,ie.useContext)(ku.E_),Di=zi("picker",Ra),{compactSize:Ii,compactItemClassnames:fi}=(0,Xu.ri)(Di,ro),Mo=ie.useRef(null),{format:ol,showTime:Xi}=gn,[Ee,Ce]=qu(Di);(0,ie.useImperativeHandle)(Da,()=>({focus:()=>{var Ht;return(Ht=Mo.current)===null||Ht===void 0?void 0:Ht.focus()},blur:()=>{var Ht;return(Ht=Mo.current)===null||Ht===void 0?void 0:Ht.blur()}}));const Ue={showToday:!0};let rt={};Mn&&(rt.picker=Mn);const Pt=Mn||gn.picker;rt=Object.assign(Object.assign(Object.assign({},rt),Xi?Hl(Object.assign({format:ol,picker:Pt},Xi)):{}),Pt==="time"?Hl(Object.assign(Object.assign({format:ol},gn),{picker:Pt})):{});const Et=zi(),$t=(0,Ju.Z)(Ht=>{var Ja;return(Ja=vr!=null?vr:Ii)!==null&&Ja!==void 0?Ja:Ht}),Yt=ie.useContext(nu.Z),Ut=fo!=null?fo:Yt,xn=(0,ie.useContext)(bu.aM),{hasFeedback:pn,status:hn,feedbackIcon:qn}=xn,aa=ie.createElement(ie.Fragment,null,Pt==="time"?ie.createElement(ot,null):ie.createElement(he,null),pn&&qn),[ca]=(0,Tu.Z)("DatePicker",_u.Z),Oa=Object.assign(Object.assign({},ca),gn.locale);return Ee(ie.createElement(Mu,Object.assign({ref:Mo,placeholder:ju(Oa,Pt,Or),suffixIcon:aa,dropdownAlign:Bu(ro,Hr),prevIcon:ie.createElement("span",{className:`${Di}-prev-icon`}),nextIcon:ie.createElement("span",{className:`${Di}-next-icon`}),superPrevIcon:ie.createElement("span",{className:`${Di}-super-prev-icon`}),superNextIcon:ie.createElement("span",{className:`${Di}-super-next-icon`}),transitionName:`${Et}-slide-up`},Ue,Si,rt,{locale:Oa.lang,className:$e()({[`${Di}-${$t}`]:$t,[`${Di}-borderless`]:!wr},(0,rl.Z)(Di,(0,rl.F)(hn,Go),pn),Ce,fi,zo==null?void 0:zo.className,Ma,Br),style:Object.assign(Object.assign({},zo==null?void 0:zo.style),da),prefixCls:Di,getPopupContainer:Ln||Ro,generateConfig:me,components:wu,direction:ro,disabled:Ut,dropdownClassName:$e()(Ce,Br,zn||$o),allowClear:Xa(oi,qo,ie.createElement(lt.Z,null))})))});return oa&&(ga.displayName=oa),ga}const ye=Se(),nt=Se("week","WeekPicker"),it=Se("month","MonthPicker"),en=Se("year","YearPicker"),Kt=Se("time","TimePicker"),kn=Se("quarter","QuarterPicker");return{DatePicker:ye,WeekPicker:nt,MonthPicker:it,YearPicker:en,TimePicker:Kt,QuarterPicker:kn}}const us=null;function ss(me){const{DatePicker:Se,WeekPicker:ye,MonthPicker:nt,YearPicker:it,TimePicker:en,QuarterPicker:Kt}=ls(me),kn=cu(me),Mn=Se;return Mn.WeekPicker=ye,Mn.MonthPicker=nt,Mn.YearPicker=it,Mn.RangePicker=kn,Mn.TimePicker=en,Mn.QuarterPicker=Kt,Mn}var Gu=ss;const Jl=Gu(ne);function Xl(me){const Se=Bu(me.direction,me.placement);return Se.overflow.adjustY=!1,Se.overflow.adjustX=!1,Object.assign(Object.assign({},me),{dropdownAlign:Se})}const ru=(0,re.Z)(Jl,"picker",null,Xl);Jl._InternalPanelDoNotUseOrYouWillBeFired=ru;const fu=(0,re.Z)(Jl.RangePicker,"picker",null,Xl);Jl._InternalRangePanelDoNotUseOrYouWillBeFired=fu,Jl.generatePicker=Gu;var Wu=Jl},43428:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return _e}});var b=ee(92310),de=ee.n(b),Be=ee(33708),Ae=ee(33606),ze=ee(43403),Me=ee(34280),le=ee(59301),st=le.createContext(null),et=le.createContext({}),Ve=st,We=ee(400),Je=ee(92413),Ye=ee(77900),se=ee(10228),E=ee(26112),a=ee(70425),x=function(kt){var mt=kt.prefixCls,It=kt.className,ut=kt.style,at=kt.children,Ie=kt.containerRef,fe=kt.id,qe=kt.onMouseEnter,At=kt.onMouseOver,Oe=kt.onMouseLeave,Ne=kt.onClick,Ct=kt.onKeyDown,tt=kt.onKeyUp,ke={onMouseEnter:qe,onMouseOver:At,onMouseLeave:Oe,onClick:Ne,onKeyDown:Ct,onKeyUp:tt},ht=le.useContext(et),Sn=ht.panel,rn=(0,a.useComposeRef)(Sn,Ie);return le.createElement(le.Fragment,null,le.createElement("div",(0,Je.Z)({id:fe,className:de()("".concat(mt,"-content"),It),style:(0,Be.Z)({},ut),"aria-modal":"true",role:"dialog",ref:rn},ke),at))},y=x,z=ee(48736);function ne(ct){return typeof ct=="string"&&String(Number(ct))===ct?((0,z.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ct)):ct}function re(ct){warning(!("wrapperClassName"in ct),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ct.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ue={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ie(ct,kt){var mt,It,ut,at,Ie=ct.prefixCls,fe=ct.open,qe=ct.placement,At=ct.inline,Oe=ct.push,Ne=ct.forceRender,Ct=ct.autoFocus,tt=ct.keyboard,ke=ct.rootClassName,ht=ct.rootStyle,Sn=ct.zIndex,rn=ct.className,an=ct.id,mn=ct.style,cn=ct.motion,Te=ct.width,Ft=ct.height,zt=ct.children,wt=ct.contentWrapperStyle,Rt=ct.mask,un=ct.maskClosable,dn=ct.maskMotion,_n=ct.maskClassName,Vn=ct.maskStyle,va=ct.afterOpenChange,La=ct.onClose,Na=ct.onMouseEnter,rr=ct.onMouseOver,Ka=ct.onMouseLeave,Ea=ct.onClick,yr=ct.onKeyDown,Xt=ct.onKeyUp,jn=le.useRef(),Qn=le.useRef(),Ia=le.useRef();le.useImperativeHandle(kt,function(){return jn.current});var Ge=function(ya){var ba=ya.keyCode,wn=ya.shiftKey;switch(ba){case se.Z.TAB:{if(ba===se.Z.TAB){if(!wn&&document.activeElement===Ia.current){var mr;(mr=Qn.current)===null||mr===void 0||mr.focus({preventScroll:!0})}else if(wn&&document.activeElement===Qn.current){var Er;(Er=Ia.current)===null||Er===void 0||Er.focus({preventScroll:!0})}}break}case se.Z.ESC:{La&&tt&&(ya.stopPropagation(),La(ya));break}}};le.useEffect(function(){if(fe&&Ct){var Rn;(Rn=jn.current)===null||Rn===void 0||Rn.focus({preventScroll:!0})}},[fe]);var Ot=le.useState(!1),_t=(0,Ae.Z)(Ot,2),Vt=_t[0],Wt=_t[1],Nn=le.useContext(Ve),Bn;Oe===!1?Bn={distance:0}:Oe===!0?Bn={}:Bn=Oe||{};var vt=(mt=(It=(ut=Bn)===null||ut===void 0?void 0:ut.distance)!==null&&It!==void 0?It:Nn==null?void 0:Nn.pushDistance)!==null&&mt!==void 0?mt:180,Bt=le.useMemo(function(){return{pushDistance:vt,push:function(){Wt(!0)},pull:function(){Wt(!1)}}},[vt]);le.useEffect(function(){if(fe){var Rn;Nn==null||(Rn=Nn.push)===null||Rn===void 0||Rn.call(Nn)}else{var ya;Nn==null||(ya=Nn.pull)===null||ya===void 0||ya.call(Nn)}},[fe]),le.useEffect(function(){return function(){var Rn;Nn==null||(Rn=Nn.pull)===null||Rn===void 0||Rn.call(Nn)}},[]);var pt=Rt&&le.createElement(Ye.default,(0,Je.Z)({key:"mask"},dn,{visible:fe}),function(Rn,ya){var ba=Rn.className,wn=Rn.style;return le.createElement("div",{className:de()("".concat(Ie,"-mask"),ba,_n),style:(0,Be.Z)((0,Be.Z)({},wn),Vn),onClick:un&&fe?La:void 0,ref:ya})}),vn=typeof cn=="function"?cn(qe):cn,Hn={};if(Vt&&vt)switch(qe){case"top":Hn.transform="translateY(".concat(vt,"px)");break;case"bottom":Hn.transform="translateY(".concat(-vt,"px)");break;case"left":Hn.transform="translateX(".concat(vt,"px)");break;default:Hn.transform="translateX(".concat(-vt,"px)");break}qe==="left"||qe==="right"?Hn.width=ne(Te):Hn.height=ne(Ft);var In={onMouseEnter:Na,onMouseOver:rr,onMouseLeave:Ka,onClick:Ea,onKeyDown:yr,onKeyUp:Xt},Ta=le.createElement(Ye.default,(0,Je.Z)({key:"panel"},vn,{visible:fe,forceRender:Ne,onVisibleChanged:function(ya){va==null||va(ya)},removeOnLeave:!1,leavedClassName:"".concat(Ie,"-content-wrapper-hidden")}),function(Rn,ya){var ba=Rn.className,wn=Rn.style;return le.createElement("div",(0,Je.Z)({className:de()("".concat(Ie,"-content-wrapper"),ba),style:(0,Be.Z)((0,Be.Z)((0,Be.Z)({},Hn),wn),wt)},(0,E.Z)(ct,{data:!0})),le.createElement(y,(0,Je.Z)({id:an,containerRef:ya,prefixCls:Ie,className:rn,style:mn},In),zt))}),Pa=(0,Be.Z)({},ht);return Sn&&(Pa.zIndex=Sn),le.createElement(Ve.Provider,{value:Bt},le.createElement("div",{className:de()(Ie,"".concat(Ie,"-").concat(qe),ke,(at={},(0,We.Z)(at,"".concat(Ie,"-open"),fe),(0,We.Z)(at,"".concat(Ie,"-inline"),At),at)),style:Pa,tabIndex:-1,ref:jn,onKeyDown:Ge},pt,le.createElement("div",{tabIndex:0,ref:Qn,style:ue,"aria-hidden":"true","data-sentinel":"start"}),Ta,le.createElement("div",{tabIndex:0,ref:Ia,style:ue,"aria-hidden":"true","data-sentinel":"end"})))}var ve=le.forwardRef(ie),be=ve,je=function(kt){var mt=kt.open,It=mt===void 0?!1:mt,ut=kt.prefixCls,at=ut===void 0?"rc-drawer":ut,Ie=kt.placement,fe=Ie===void 0?"right":Ie,qe=kt.autoFocus,At=qe===void 0?!0:qe,Oe=kt.keyboard,Ne=Oe===void 0?!0:Oe,Ct=kt.width,tt=Ct===void 0?378:Ct,ke=kt.mask,ht=ke===void 0?!0:ke,Sn=kt.maskClosable,rn=Sn===void 0?!0:Sn,an=kt.getContainer,mn=kt.forceRender,cn=kt.afterOpenChange,Te=kt.destroyOnClose,Ft=kt.onMouseEnter,zt=kt.onMouseOver,wt=kt.onMouseLeave,Rt=kt.onClick,un=kt.onKeyDown,dn=kt.onKeyUp,_n=kt.panelRef,Vn=le.useState(!1),va=(0,Ae.Z)(Vn,2),La=va[0],Na=va[1],rr=le.useState(!1),Ka=(0,Ae.Z)(rr,2),Ea=Ka[0],yr=Ka[1];(0,Me.Z)(function(){yr(!0)},[]);var Xt=Ea?It:!1,jn=le.useRef(),Qn=le.useRef();(0,Me.Z)(function(){Xt&&(Qn.current=document.activeElement)},[Xt]);var Ia=function(Wt){var Nn;if(Na(Wt),cn==null||cn(Wt),!Wt&&Qn.current&&!((Nn=jn.current)!==null&&Nn!==void 0&&Nn.contains(Qn.current))){var Bn;(Bn=Qn.current)===null||Bn===void 0||Bn.focus({preventScroll:!0})}},Ge=le.useMemo(function(){return{panel:_n}},[_n]);if(!mn&&!La&&!Xt&&Te)return null;var Ot={onMouseEnter:Ft,onMouseOver:zt,onMouseLeave:wt,onClick:Rt,onKeyDown:un,onKeyUp:dn},_t=(0,Be.Z)((0,Be.Z)({},kt),{},{open:Xt,prefixCls:at,placement:fe,autoFocus:At,keyboard:Ne,width:tt,mask:ht,maskClosable:rn,inline:an===!1,afterOpenChange:Ia,ref:jn},Ot);return le.createElement(et.Provider,{value:Ge},le.createElement(ze.Z,{open:Xt||mn||La,autoDestroy:!1,getContainer:an,autoLock:ht&&(Xt||La)},le.createElement(be,_t)))},De=je,He=De,he=ee(62892),Xe=ee(36355),Ke=ee(32441),St=ee(47729),ot=ct=>{const{prefixCls:kt,title:mt,footer:It,extra:ut,closeIcon:at,closable:Ie,onClose:fe,headerStyle:qe,drawerStyle:At,bodyStyle:Oe,footerStyle:Ne,children:Ct}=ct,tt=le.useCallback(an=>le.createElement("button",{type:"button",onClick:fe,"aria-label":"Close",className:`${kt}-close`},an),[fe]),[ke,ht]=(0,St.Z)(Ie,at,tt,void 0,!0),Sn=le.useMemo(()=>!mt&&!ke?null:le.createElement("div",{style:qe,className:de()(`${kt}-header`,{[`${kt}-header-close-only`]:ke&&!mt&&!ut})},le.createElement("div",{className:`${kt}-header-title`},ht,mt&&le.createElement("div",{className:`${kt}-title`},mt)),ut&&le.createElement("div",{className:`${kt}-extra`},ut)),[ke,ht,ut,qe,kt,mt]),rn=le.useMemo(()=>{if(!It)return null;const an=`${kt}-footer`;return le.createElement("div",{className:an,style:Ne},It)},[It,Ne,kt]);return le.createElement("div",{className:`${kt}-wrapper-body`,style:At},Sn,le.createElement("div",{className:`${kt}-body`,style:Oe},Ct),rn)},lt=ee(33234),gt=ee(83116),ft=ee(37613),xt=ct=>{const{componentCls:kt,motionDurationSlow:mt}=ct,It={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${mt}`}}};return{[kt]:{[`${kt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${mt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${kt}-panel-motion`]:{"&-left":[It,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[It,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[It,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[It,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const nn=ct=>{const{componentCls:kt,zIndexPopup:mt,colorBgMask:It,colorBgElevated:ut,motionDurationSlow:at,motionDurationMid:Ie,padding:fe,paddingLG:qe,fontSizeLG:At,lineHeightLG:Oe,lineWidth:Ne,lineType:Ct,colorSplit:tt,marginSM:ke,colorIcon:ht,colorIconHover:Sn,colorText:rn,fontWeightStrong:an,footerPaddingBlock:mn,footerPaddingInline:cn}=ct,Te=`${kt}-content-wrapper`;return{[kt]:{position:"fixed",inset:0,zIndex:mt,pointerEvents:"none","&-pure":{position:"relative",background:ut,[`&${kt}-left`]:{boxShadow:ct.boxShadowDrawerLeft},[`&${kt}-right`]:{boxShadow:ct.boxShadowDrawerRight},[`&${kt}-top`]:{boxShadow:ct.boxShadowDrawerUp},[`&${kt}-bottom`]:{boxShadow:ct.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${kt}-mask`]:{position:"absolute",inset:0,zIndex:mt,background:It,pointerEvents:"auto"},[Te]:{position:"absolute",zIndex:mt,maxWidth:"100vw",transition:`all ${at}`,"&-hidden":{display:"none"}},[`&-left > ${Te}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ct.boxShadowDrawerLeft},[`&-right > ${Te}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ct.boxShadowDrawerRight},[`&-top > ${Te}`]:{top:0,insetInline:0,boxShadow:ct.boxShadowDrawerUp},[`&-bottom > ${Te}`]:{bottom:0,insetInline:0,boxShadow:ct.boxShadowDrawerDown},[`${kt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:ut,pointerEvents:"auto"},[`${kt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${kt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${fe}px ${qe}px`,fontSize:At,lineHeight:Oe,borderBottom:`${Ne}px ${Ct} ${tt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${kt}-extra`]:{flex:"none"},[`${kt}-close`]:{display:"inline-block",marginInlineEnd:ke,color:ht,fontWeight:an,fontSize:At,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ie}`,textRendering:"auto","&:focus, &:hover":{color:Sn,textDecoration:"none"}},[`${kt}-title`]:{flex:1,margin:0,color:rn,fontWeight:ct.fontWeightStrong,fontSize:At,lineHeight:Oe},[`${kt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:qe,overflow:"auto"},[`${kt}-footer`]:{flexShrink:0,padding:`${mn}px ${cn}px`,borderTop:`${Ne}px ${Ct} ${tt}`},"&-rtl":{direction:"rtl"}}}};var En=(0,gt.Z)("Drawer",ct=>{const kt=(0,ft.TS)(ct,{});return[nn(kt),xt(kt)]},ct=>({zIndexPopup:ct.zIndexPopupBase,footerPaddingBlock:ct.paddingXS,footerPaddingInline:ct.padding})),$e=ee(11575),dt=function(ct,kt){var mt={};for(var It in ct)Object.prototype.hasOwnProperty.call(ct,It)&&kt.indexOf(It)<0&&(mt[It]=ct[It]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,It=Object.getOwnPropertySymbols(ct);ut<It.length;ut++)kt.indexOf(It[ut])<0&&Object.prototype.propertyIsEnumerable.call(ct,It[ut])&&(mt[It[ut]]=ct[It[ut]]);return mt};const on=null,Yn={distance:180},Zt=ct=>{var kt;const{rootClassName:mt,width:It,height:ut,size:at="default",mask:Ie=!0,push:fe=Yn,open:qe,afterOpenChange:At,onClose:Oe,prefixCls:Ne,getContainer:Ct,style:tt,className:ke,visible:ht,afterVisibleChange:Sn}=ct,rn=dt(ct,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:an,getPrefixCls:mn,direction:cn,drawer:Te}=le.useContext(Xe.E_),Ft=mn("drawer",Ne),[zt,wt]=En(Ft),Rt=Ct===void 0&&an?()=>an(document.body):Ct,un=de()({"no-mask":!Ie,[`${Ft}-rtl`]:cn==="rtl"},mt,wt),dn=le.useMemo(()=>It!=null?It:at==="large"?736:378,[It,at]),_n=le.useMemo(()=>ut!=null?ut:at==="large"?736:378,[ut,at]),Vn={motionName:(0,he.m)(Ft,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},va=Na=>({motionName:(0,he.m)(Ft,`panel-motion-${Na}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),La=(0,$e.H)();return zt(le.createElement(lt.BR,null,le.createElement(Ke.Ux,{status:!0,override:!0},le.createElement(He,Object.assign({prefixCls:Ft,onClose:Oe,maskMotion:Vn,motion:va},rn,{open:qe!=null?qe:ht,mask:Ie,push:fe,width:dn,height:_n,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),tt),className:de()(Te==null?void 0:Te.className,ke),rootClassName:un,getContainer:Rt,afterOpenChange:At!=null?At:Sn,panelRef:La}),le.createElement(ot,Object.assign({prefixCls:Ft},rn,{onClose:Oe}))))))},On=ct=>{const{prefixCls:kt,style:mt,className:It,placement:ut="right"}=ct,at=dt(ct,["prefixCls","style","className","placement"]),{getPrefixCls:Ie}=le.useContext(Xe.E_),fe=Ie("drawer",kt),[qe,At]=En(fe),Oe=de()(fe,`${fe}-pure`,`${fe}-${ut}`,At,It);return qe(le.createElement("div",{className:Oe,style:mt},le.createElement(ot,Object.assign({prefixCls:fe},at))))};Zt._InternalPanelDoNotUseOrYouWillBeFired=On;var _e=Zt},91857:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=ee(38819),Be=ee(92310),Ae=ee.n(Be),ze=ee(31561),Me=ee(70425),le=ee(18929),st=ee(2738),et=ee(79676),Ve=ee(53487),We=ee(92343),Je=ee(36355),Ye=ee(20834),se=ee(40875),E=ee(88088),a=ee(47211);const x=null,y=ue=>{const{menu:ie,arrow:ve,prefixCls:be,children:je,trigger:De,disabled:He,dropdownRender:he,getPopupContainer:Xe,overlayClassName:Ke,rootClassName:St,open:Le,onOpenChange:ot,visible:lt,onVisibleChange:gt,mouseEnterDelay:ft=.15,mouseLeaveDelay:ln=.1,autoAdjustOverflow:xt=!0,placement:nn="",overlay:En,transitionName:$e}=ue,{getPopupContainer:dt,getPrefixCls:on,direction:Yn}=b.useContext(Je.E_),Zt=b.useMemo(()=>{const ke=on();return $e!==void 0?$e:nn.includes("top")?`${ke}-slide-down`:`${ke}-slide-up`},[on,nn,$e]),On=b.useMemo(()=>nn?nn.includes("Center")?nn.slice(0,nn.indexOf("Center")):nn:Yn==="rtl"?"bottomRight":"bottomLeft",[nn,Yn]),_e=on("dropdown",be),[ct,kt]=(0,a.Z)(_e),[,mt]=(0,E.Z)(),It=b.Children.only(je),ut=(0,We.Tm)(It,{className:Ae()(`${_e}-trigger`,{[`${_e}-rtl`]:Yn==="rtl"},It.props.className),disabled:He}),at=He?[]:De;let Ie;at&&at.includes("contextMenu")&&(Ie=!0);const[fe,qe]=(0,le.Z)(!1,{value:Le!=null?Le:lt}),At=(0,Me.useEvent)(ke=>{ot==null||ot(ke),gt==null||gt(ke),qe(ke)}),Oe=Ae()(Ke,St,kt,{[`${_e}-rtl`]:Yn==="rtl"}),Ne=(0,et.Z)({arrowPointAtCenter:typeof ve=="object"&&ve.pointAtCenter,autoAdjustOverflow:xt,offset:mt.marginXXS,arrowWidth:ve?mt.sizePopupArrow:0,borderRadius:mt.borderRadius}),Ct=b.useCallback(()=>{qe(!1)},[]),tt=()=>{let ke;return ie!=null&&ie.items?ke=b.createElement(Ye.default,Object.assign({},ie)):typeof En=="function"?ke=En():ke=En,he&&(ke=he(ke)),ke=b.Children.only(typeof ke=="string"?b.createElement("span",null,ke):ke),b.createElement(se.J,{prefixCls:`${_e}-menu`,expandIcon:b.createElement("span",{className:`${_e}-menu-submenu-arrow`},b.createElement(de.Z,{className:`${_e}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ct,validator:ht=>{let{mode:Sn}=ht}},ke)};return ct(b.createElement(ze.Z,Object.assign({alignPoint:Ie},(0,st.Z)(ue,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:ln,visible:fe,builtinPlacements:Ne,arrow:!!ve,overlayClassName:Oe,prefixCls:_e,getPopupContainer:Xe||dt,transitionName:Zt,trigger:at,overlay:tt,placement:On,onVisibleChange:At}),ut))};function z(ue){return Object.assign(Object.assign({},ue),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ne=(0,Ve.Z)(y,"dropdown",ue=>ue,z),re=ue=>b.createElement(ne,Object.assign({},ue),b.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=re,Gt.Z=y},38854:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return E}});var b=ee(91857),de=ee(92310),Be=ee.n(de),Ae=ee(59301),ze=ee(18785),Me=ee(3113),le=ee(36355),st=ee(81327),et=ee(33234),Ve=ee(47211),We=function(a,x){var y={};for(var z in a)Object.prototype.hasOwnProperty.call(a,z)&&x.indexOf(z)<0&&(y[z]=a[z]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,z=Object.getOwnPropertySymbols(a);ne<z.length;ne++)x.indexOf(z[ne])<0&&Object.prototype.propertyIsEnumerable.call(a,z[ne])&&(y[z[ne]]=a[z[ne]]);return y};const Je=a=>{const{getPopupContainer:x,getPrefixCls:y,direction:z}=Ae.useContext(le.E_),{prefixCls:ne,type:re="default",danger:ue,disabled:ie,loading:ve,onClick:be,htmlType:je,children:De,className:He,menu:he,arrow:Xe,autoFocus:Ke,overlay:St,trigger:Le,align:ot,open:lt,onOpenChange:gt,placement:ft,getPopupContainer:ln,href:xt,icon:nn=Ae.createElement(ze.Z,null),title:En,buttonsRender:$e=tt=>tt,mouseEnterDelay:dt,mouseLeaveDelay:on,overlayClassName:Yn,overlayStyle:Zt,destroyPopupOnHide:On,dropdownRender:_e}=a,ct=We(a,["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"]),kt=y("dropdown",ne),mt=`${kt}-button`,[It,ut]=(0,Ve.Z)(kt),at={menu:he,arrow:Xe,autoFocus:Ke,align:ot,disabled:ie,trigger:ie?[]:Le,onOpenChange:gt,getPopupContainer:ln||x,mouseEnterDelay:dt,mouseLeaveDelay:on,overlayClassName:Yn,overlayStyle:Zt,destroyPopupOnHide:On,dropdownRender:_e},{compactSize:Ie,compactItemClassnames:fe}=(0,et.ri)(kt,z),qe=Be()(mt,fe,He,ut);"overlay"in a&&(at.overlay=St),"open"in a&&(at.open=lt),"placement"in a?at.placement=ft:at.placement=z==="rtl"?"bottomLeft":"bottomRight";const At=Ae.createElement(Me.ZP,{type:re,danger:ue,disabled:ie,loading:ve,onClick:be,htmlType:je,href:xt,title:En},De),Oe=Ae.createElement(Me.ZP,{type:re,danger:ue,icon:nn}),[Ne,Ct]=$e([At,Oe]);return It(Ae.createElement(st.Z.Compact,Object.assign({className:qe,size:Ie,block:!0},ct),Ne,Ae.createElement(b.Z,Object.assign({},at),Ct)))};Je.__ANT_BUTTON=!0;var Ye=Je;const se=b.Z;se.Button=Ye;var E=se},47211:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return We}});var b=ee(17313),de=ee(13826),Be=ee(92899),Ae=ee(29878),ze=ee(19447),Me=ee(83116),le=ee(37613),et=Je=>{const{componentCls:Ye,menuCls:se,colorError:E,colorTextLightSolid:a}=Je,x=`${se}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${se} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:E,"&:hover":{color:a,backgroundColor:E}}}}}};const Ve=Je=>{const{componentCls:Ye,menuCls:se,zIndexPopup:E,dropdownArrowDistance:a,sizePopupArrow:x,antCls:y,iconCls:z,motionDurationMid:ne,dropdownPaddingVertical:re,fontSize:ue,dropdownEdgeChildPadding:ie,colorTextDisabled:ve,fontSizeIcon:be,controlPaddingHorizontal:je,colorBgElevated:De}=Je;return[{[Ye]:Object.assign(Object.assign({},(0,b.Wf)(Je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,display:"block","&::before":{position:"absolute",insetBlock:-a+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${z}-down, & > ${y}-btn-icon > ${z}-down`]:{fontSize:be}},[`${Ye}-wrap`]:{position:"relative",[`${y}-btn > ${z}-down`]:{fontSize:be},[`${z}-down::before`]:{transition:`transform ${ne}`}},[`${Ye}-wrap-open`]:{[`${z}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${Ye}-placement-bottomLeft,
&${y}-slide-down-appear${y}-slide-down-appear-active${Ye}-placement-bottomLeft,
&${y}-slide-down-enter${y}-slide-down-enter-active${Ye}-placement-bottom,
&${y}-slide-down-appear${y}-slide-down-appear-active${Ye}-placement-bottom,
&${y}-slide-down-enter${y}-slide-down-enter-active${Ye}-placement-bottomRight,
&${y}-slide-down-appear${y}-slide-down-appear-active${Ye}-placement-bottomRight`]:{animationName:de.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${Ye}-placement-topLeft,
&${y}-slide-up-appear${y}-slide-up-appear-active${Ye}-placement-topLeft,
&${y}-slide-up-enter${y}-slide-up-enter-active${Ye}-placement-top,
&${y}-slide-up-appear${y}-slide-up-appear-active${Ye}-placement-top,
&${y}-slide-up-enter${y}-slide-up-enter-active${Ye}-placement-topRight,
&${y}-slide-up-appear${y}-slide-up-appear-active${Ye}-placement-topRight`]:{animationName:de.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${Ye}-placement-bottomLeft,
&${y}-slide-down-leave${y}-slide-down-leave-active${Ye}-placement-bottom,
&${y}-slide-down-leave${y}-slide-down-leave-active${Ye}-placement-bottomRight`]:{animationName:de.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${Ye}-placement-topLeft,
&${y}-slide-up-leave${y}-slide-up-leave-active${Ye}-placement-top,
&${y}-slide-up-leave${y}-slide-up-leave-active${Ye}-placement-topRight`]:{animationName:de.ly}})},(0,ze.ZP)(Je,{colorBg:De,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${se}`]:{position:"relative",margin:0},[`${se}-submenu-popup`]:{position:"absolute",zIndex:E,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:{[se]:Object.assign(Object.assign({padding:ie,listStyleType:"none",backgroundColor:De,backgroundClip:"padding-box",borderRadius:Je.borderRadiusLG,outline:"none",boxShadow:Je.boxShadowSecondary},(0,b.Qy)(Je)),{[`${se}-item-group-title`]:{padding:`${re}px ${je}px`,color:Je.colorTextDescription,transition:`all ${ne}`},[`${se}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${se}-item-icon`]:{minWidth:ue,marginInlineEnd:Je.marginXS,fontSize:Je.fontSizeSM},[`${se}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ne}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${se}-item, ${se}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${je}px`,color:Je.colorText,fontWeight:"normal",fontSize:ue,lineHeight:Je.lineHeight,cursor:"pointer",transition:`all ${ne}`,borderRadius:Je.borderRadiusSM,"&:hover, &-active":{backgroundColor:Je.controlItemBgHover}},(0,b.Qy)(Je)),{"&-selected":{color:Je.colorPrimary,backgroundColor:Je.controlItemBgActive,"&:hover, &-active":{backgroundColor:Je.controlItemBgActiveHover}},"&-disabled":{color:ve,cursor:"not-allowed","&:hover":{color:ve,backgroundColor:De,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Je.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Je.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Je.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Je.colorTextDescription,fontSize:be,fontStyle:"normal"}}}),[`${se}-item-group-list`]:{margin:`0 ${Je.marginXS}px`,padding:0,listStyle:"none"},[`${se}-submenu-title`]:{paddingInlineEnd:je+Je.fontSizeSM},[`${se}-submenu-vertical`]:{position:"relative"},[`${se}-submenu${se}-submenu-disabled ${Ye}-menu-submenu-title`]:{[`&, ${Ye}-menu-submenu-arrow-icon`]:{color:ve,backgroundColor:De,cursor:"not-allowed"}},[`${se}-submenu-selected ${Ye}-menu-submenu-title`]:{color:Je.colorPrimary}})}},[(0,de.oN)(Je,"slide-up"),(0,de.oN)(Je,"slide-down"),(0,Be.Fm)(Je,"move-up"),(0,Be.Fm)(Je,"move-down"),(0,Ae._y)(Je,"zoom-big")]]};var We=(0,Me.Z)("Dropdown",(Je,Ye)=>{let{rootPrefixCls:se}=Ye;const{marginXXS:E,sizePopupArrow:a,controlHeight:x,fontSize:y,lineHeight:z,paddingXXS:ne,componentCls:re,borderRadiusLG:ue}=Je,ie=(x-y*z)/2,{dropdownArrowOffset:ve}=(0,ze.fS)({contentRadius:ue}),be=(0,le.TS)(Je,{menuCls:`${re}-menu`,rootPrefixCls:se,dropdownArrowDistance:a/2+E,dropdownArrowOffset:ve,dropdownPaddingVertical:ie,dropdownEdgeChildPadding:ne});return[Ve(be),et(be)]},Je=>({zIndexPopup:Je.zIndexPopupBase+50}))},8628:function(Qt,Gt,ee){"use strict";var b=ee(59301),de=ee(34280),Be=ee(56762),Ae=ee(69507);function ze(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const le=(0,b.useRef)({}),st=(0,Be.Z)(),et=(0,Ae.ZP)();return(0,de.Z)(()=>{const Ve=et.subscribe(We=>{le.current=We,Me&&st()});return()=>et.unsubscribe(Ve)},[]),le.current}Gt.Z=ze},45818:function(Qt,Gt,ee){"use strict";ee.d(Gt,{D:function(){return ne},Z:function(){return ie}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(be,je){return de.createElement(ze.Z,(0,b.Z)({},be,{ref:je,icon:Ae}))},le=de.forwardRef(Me),st=le,et=ee(33853),Ve=ee(38819),We=ee(92310),Je=ee.n(We),Ye=ee(2738),E=ve=>!isNaN(parseFloat(ve))&&isFinite(ve),a=ee(36355),x=ee(84966),y=function(ve,be){var je={};for(var De in ve)Object.prototype.hasOwnProperty.call(ve,De)&&be.indexOf(De)<0&&(je[De]=ve[De]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,De=Object.getOwnPropertySymbols(ve);He<De.length;He++)be.indexOf(De[He])<0&&Object.prototype.propertyIsEnumerable.call(ve,De[He])&&(je[De[He]]=ve[De[He]]);return je};const z={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ne=de.createContext({}),re=(()=>{let ve=0;return function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ve+=1,`${be}${ve}`}})();var ie=de.forwardRef((ve,be)=>{const{prefixCls:je,className:De,trigger:He,children:he,defaultCollapsed:Xe=!1,theme:Ke="dark",style:St={},collapsible:Le=!1,reverseArrow:ot=!1,width:lt=200,collapsedWidth:gt=80,zeroWidthTriggerStyle:ft,breakpoint:ln,onCollapse:xt,onBreakpoint:nn}=ve,En=y(ve,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$e}=(0,de.useContext)(x.Gs),[dt,on]=(0,de.useState)("collapsed"in ve?ve.collapsed:Xe),[Yn,Zt]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in ve&&on(ve.collapsed)},[ve.collapsed]);const On=(ut,at)=>{"collapsed"in ve||on(ut),xt==null||xt(ut,at)},_e=(0,de.useRef)();_e.current=ut=>{Zt(ut.matches),nn==null||nn(ut.matches),dt!==ut.matches&&On(ut.matches,"responsive")},(0,de.useEffect)(()=>{function ut(Ie){return _e.current(Ie)}let at;if(typeof window!="undefined"){const{matchMedia:Ie}=window;if(Ie&&ln&&ln in z){at=Ie(`(max-width: ${z[ln]})`);try{at.addEventListener("change",ut)}catch(fe){at.addListener(ut)}ut(at)}}return()=>{try{at==null||at.removeEventListener("change",ut)}catch(Ie){at==null||at.removeListener(ut)}}},[ln]),(0,de.useEffect)(()=>{const ut=re("ant-sider-");return $e.addSider(ut),()=>$e.removeSider(ut)},[]);const ct=()=>{On(!dt,"clickTrigger")},{getPrefixCls:kt}=(0,de.useContext)(a.E_),mt=()=>{const ut=kt("layout-sider",je),at=(0,Ye.Z)(En,["collapsed"]),Ie=dt?gt:lt,fe=E(Ie)?`${Ie}px`:String(Ie),qe=parseFloat(String(gt||0))===0?de.createElement("span",{onClick:ct,className:Je()(`${ut}-zero-width-trigger`,`${ut}-zero-width-trigger-${ot?"right":"left"}`),style:ft},He||de.createElement(st,null)):null,Ne={expanded:ot?de.createElement(Ve.Z,null):de.createElement(et.Z,null),collapsed:ot?de.createElement(et.Z,null):de.createElement(Ve.Z,null)}[dt?"collapsed":"expanded"],Ct=He!==null?qe||de.createElement("div",{className:`${ut}-trigger`,onClick:ct,style:{width:fe}},He||Ne):null,tt=Object.assign(Object.assign({},St),{flex:`0 0 ${fe}`,maxWidth:fe,minWidth:fe,width:fe}),ke=Je()(ut,`${ut}-${Ke}`,{[`${ut}-collapsed`]:!!dt,[`${ut}-has-trigger`]:Le&&He!==null&&!qe,[`${ut}-below`]:!!Yn,[`${ut}-zero-width`]:parseFloat(fe)===0},De);return de.createElement("aside",Object.assign({className:ke},at,{style:tt,ref:be}),de.createElement("div",{className:`${ut}-children`},he),Le||Yn&&qe?Ct:null)},It=de.useMemo(()=>({siderCollapsed:dt}),[dt]);return de.createElement(ne.Provider,{value:It},mt())})},84966:function(Qt,Gt,ee){"use strict";ee.d(Gt,{VY:function(){return ne},$_:function(){return z},h4:function(){return y},Gs:function(){return Ye},ZP:function(){return re}});var b=ee(26407),de=ee(92310),Be=ee.n(de),Ae=ee(2738),ze=ee(59301),Me=ee(36355),le=ee(83116),et=ue=>{const{componentCls:ie,bodyBg:ve,lightSiderBg:be,lightTriggerBg:je,lightTriggerColor:De}=ue;return{[`${ie}-sider-light`]:{background:be,[`${ie}-sider-trigger`]:{color:De,background:je},[`${ie}-sider-zero-width-trigger`]:{color:De,background:je,border:`1px solid ${ve}`,borderInlineStart:0}}}};const Ve=ue=>{const{antCls:ie,componentCls:ve,colorText:be,triggerColor:je,footerBg:De,triggerBg:He,headerHeight:he,headerPadding:Xe,headerColor:Ke,footerPadding:St,triggerHeight:Le,zeroTriggerHeight:ot,zeroTriggerWidth:lt,motionDurationMid:gt,motionDurationSlow:ft,fontSize:ln,borderRadius:xt,bodyBg:nn,headerBg:En,siderBg:$e}=ue;return{[ve]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nn,"&, *":{boxSizing:"border-box"},[`&${ve}-has-sider`]:{flexDirection:"row",[`> ${ve}, > ${ve}-content`]:{width:0}},[`${ve}-header, &${ve}-footer`]:{flex:"0 0 auto"},[`${ve}-sider`]:{position:"relative",minWidth:0,background:$e,transition:`all ${gt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ie}-menu${ie}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:je,lineHeight:`${Le}px`,textAlign:"center",background:He,cursor:"pointer",transition:`all ${gt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:he,insetInlineEnd:-lt,zIndex:1,width:lt,height:ot,color:je,fontSize:ue.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:xt,borderEndEndRadius:xt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ft} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ft}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-lt,borderStartStartRadius:xt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:xt}}}}},et(ue)),{"&-rtl":{direction:"rtl"}}),[`${ve}-header`]:{height:he,padding:Xe,color:Ke,lineHeight:`${he}px`,background:En,[`${ie}-menu`]:{lineHeight:"inherit"}},[`${ve}-footer`]:{padding:St,color:be,fontSize:ln,background:De},[`${ve}-content`]:{flex:"auto",minHeight:0}}};var We=(0,le.Z)("Layout",ue=>[Ve(ue)],ue=>{const{colorBgLayout:ie,controlHeight:ve,controlHeightLG:be,colorText:je,controlHeightSM:De,marginXXS:He,colorTextLightSolid:he,colorBgContainer:Xe}=ue,Ke=be*1.25;return{colorBgHeader:"#001529",colorBgBody:ie,colorBgTrigger:"#002140",bodyBg:ie,headerBg:"#001529",headerHeight:ve*2,headerPadding:`0 ${Ke}px`,headerColor:je,footerPadding:`${De}px ${Ke}px`,footerBg:ie,siderBg:"#001529",triggerHeight:be+He*2,triggerBg:"#002140",triggerColor:he,zeroTriggerWidth:be,zeroTriggerHeight:be,lightSiderBg:Xe,lightTriggerBg:Xe,lightTriggerColor:je}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Je=function(ue,ie){var ve={};for(var be in ue)Object.prototype.hasOwnProperty.call(ue,be)&&ie.indexOf(be)<0&&(ve[be]=ue[be]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,be=Object.getOwnPropertySymbols(ue);je<be.length;je++)ie.indexOf(be[je])<0&&Object.prototype.propertyIsEnumerable.call(ue,be[je])&&(ve[be[je]]=ue[be[je]]);return ve};const Ye=ze.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function se(ue){let{suffixCls:ie,tagName:ve,displayName:be}=ue;return je=>ze.forwardRef((He,he)=>ze.createElement(je,Object.assign({ref:he,suffixCls:ie,tagName:ve},He)))}const E=ze.forwardRef((ue,ie)=>{const{prefixCls:ve,suffixCls:be,className:je,tagName:De}=ue,He=Je(ue,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:he}=ze.useContext(Me.E_),Xe=he("layout",ve),[Ke,St]=We(Xe),Le=be?`${Xe}-${be}`:Xe;return Ke(ze.createElement(De,Object.assign({className:Be()(ve||Le,je,St),ref:ie},He)))}),a=ze.forwardRef((ue,ie)=>{const{direction:ve}=ze.useContext(Me.E_),[be,je]=ze.useState([]),{prefixCls:De,className:He,rootClassName:he,children:Xe,hasSider:Ke,tagName:St,style:Le}=ue,ot=Je(ue,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),lt=(0,Ae.Z)(ot,["suffixCls"]),{getPrefixCls:gt,layout:ft}=ze.useContext(Me.E_),ln=gt("layout",De),[xt,nn]=We(ln),En=Be()(ln,{[`${ln}-has-sider`]:typeof Ke=="boolean"?Ke:be.length>0,[`${ln}-rtl`]:ve==="rtl"},ft==null?void 0:ft.className,He,he,nn),$e=ze.useMemo(()=>({siderHook:{addSider:dt=>{je(on=>[].concat((0,b.Z)(on),[dt]))},removeSider:dt=>{je(on=>on.filter(Yn=>Yn!==dt))}}}),[]);return xt(ze.createElement(Ye.Provider,{value:$e},ze.createElement(St,Object.assign({ref:ie,className:En,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),Le)},lt),Xe)))}),x=se({tagName:"div",displayName:"Layout"})(a),y=se({suffixCls:"header",tagName:"header",displayName:"Header"})(E),z=se({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(E),ne=se({suffixCls:"content",tagName:"main",displayName:"Content"})(E);var re=x},40875:function(Qt,Gt,ee){"use strict";ee.d(Gt,{J:function(){return Me}});var b=ee(59301),de=ee(33234),Be=ee(70425),Ae=function(le,st){var et={};for(var Ve in le)Object.prototype.hasOwnProperty.call(le,Ve)&&st.indexOf(Ve)<0&&(et[Ve]=le[Ve]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ve=Object.getOwnPropertySymbols(le);We<Ve.length;We++)st.indexOf(Ve[We])<0&&Object.prototype.propertyIsEnumerable.call(le,Ve[We])&&(et[Ve[We]]=le[Ve[We]]);return et};const ze=b.createContext(null),Me=b.forwardRef((le,st)=>{const{children:et}=le,Ve=Ae(le,["children"]),We=b.useContext(ze),Je=b.useMemo(()=>Object.assign(Object.assign({},We),Ve),[We,Ve.prefixCls,Ve.mode,Ve.selectable]);return b.createElement(ze.Provider,{value:Je},b.createElement(de.BR,null,(0,Be.supportNodeRef)(et)?b.cloneElement(et,{ref:st}):et))});Gt.Z=ze},20834:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return It}});var b=ee(15285),de=ee(59301),Be=ee(45818),Ae=ee(92310),ze=ee.n(Ae),Me=ee(36355),le=function(ut,at){var Ie={};for(var fe in ut)Object.prototype.hasOwnProperty.call(ut,fe)&&at.indexOf(fe)<0&&(Ie[fe]=ut[fe]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,fe=Object.getOwnPropertySymbols(ut);qe<fe.length;qe++)at.indexOf(fe[qe])<0&&Object.prototype.propertyIsEnumerable.call(ut,fe[qe])&&(Ie[fe[qe]]=ut[fe[qe]]);return Ie},et=ut=>{const{prefixCls:at,className:Ie,dashed:fe}=ut,qe=le(ut,["prefixCls","className","dashed"]),{getPrefixCls:At}=de.useContext(Me.E_),Oe=At("menu",at),Ne=ze()({[`${Oe}-item-divider-dashed`]:!!fe},Ie);return de.createElement(b.iz,Object.assign({className:Ne},qe))},Ve=ee(11592),We=ee(2738),Je=ee(6848),Ye=ee(92343),E=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ut=>{var at;const{className:Ie,children:fe,icon:qe,title:At,danger:Oe}=ut,{prefixCls:Ne,firstLevel:Ct,direction:tt,disableMenuItemTitleTooltip:ke,inlineCollapsed:ht}=de.useContext(E),Sn=Ft=>{const zt=de.createElement("span",{className:`${Ne}-title-content`},fe);return(!qe||(0,Ye.l$)(fe)&&fe.type==="span")&&fe&&Ft&&Ct&&typeof fe=="string"?de.createElement("div",{className:`${Ne}-inline-collapsed-noicon`},fe.charAt(0)):zt},{siderCollapsed:rn}=de.useContext(Be.D);let an=At;typeof At=="undefined"?an=Ct?fe:"":At===!1&&(an="");const mn={title:an};!rn&&!ht&&(mn.title=null,mn.open=!1);const cn=(0,Ve.Z)(fe).length;let Te=de.createElement(b.ck,Object.assign({},(0,We.Z)(ut,["title","icon","danger"]),{className:ze()({[`${Ne}-item-danger`]:Oe,[`${Ne}-item-only-child`]:(qe?cn+1:cn)===1},Ie),title:typeof At=="string"?At:void 0}),(0,Ye.Tm)(qe,{className:ze()((0,Ye.l$)(qe)?(at=qe.props)===null||at===void 0?void 0:at.className:"",`${Ne}-item-icon`)}),Sn(ht));return ke||(Te=de.createElement(Je.Z,Object.assign({},mn,{placement:tt==="rtl"?"left":"right",overlayClassName:`${Ne}-inline-collapsed-tooltip`}),Te)),Te},z=ut=>{var at;const{popupClassName:Ie,icon:fe,title:qe,theme:At}=ut,Oe=de.useContext(E),{prefixCls:Ne,inlineCollapsed:Ct,theme:tt}=Oe,ke=(0,b.Xl)();let ht;if(!fe)ht=Ct&&!ke.length&&qe&&typeof qe=="string"?de.createElement("div",{className:`${Ne}-inline-collapsed-noicon`},qe.charAt(0)):de.createElement("span",{className:`${Ne}-title-content`},qe);else{const rn=(0,Ye.l$)(qe)&&qe.type==="span";ht=de.createElement(de.Fragment,null,(0,Ye.Tm)(fe,{className:ze()((0,Ye.l$)(fe)?(at=fe.props)===null||at===void 0?void 0:at.className:"",`${Ne}-item-icon`)}),rn?qe:de.createElement("span",{className:`${Ne}-title-content`},qe))}const Sn=de.useMemo(()=>Object.assign(Object.assign({},Oe),{firstLevel:!1}),[Oe]);return de.createElement(E.Provider,{value:Sn},de.createElement(b.Wd,Object.assign({},(0,We.Z)(ut,["icon"]),{title:ht,popupClassName:ze()(Ne,Ie,`${Ne}-${At||tt}`)})))},ne=ee(18785),re=ee(70425),ue=ee(62892),ie=ee(40875),ve=function(ut,at){var Ie={};for(var fe in ut)Object.prototype.hasOwnProperty.call(ut,fe)&&at.indexOf(fe)<0&&(Ie[fe]=ut[fe]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,fe=Object.getOwnPropertySymbols(ut);qe<fe.length;qe++)at.indexOf(fe[qe])<0&&Object.prototype.propertyIsEnumerable.call(ut,fe[qe])&&(Ie[fe[qe]]=ut[fe[qe]]);return Ie};function be(ut){return(ut||[]).map((at,Ie)=>{if(at&&typeof at=="object"){const fe=at,{label:qe,children:At,key:Oe,type:Ne}=fe,Ct=ve(fe,["label","children","key","type"]),tt=Oe!=null?Oe:`tmp-${Ie}`;return At||Ne==="group"?Ne==="group"?de.createElement(b.BW,Object.assign({key:tt},Ct,{title:qe}),be(At)):de.createElement(z,Object.assign({key:tt},Ct,{title:qe}),be(At)):Ne==="divider"?de.createElement(et,Object.assign({key:tt},Ct)):de.createElement(x,Object.assign({key:tt},Ct),qe)}return null}).filter(at=>at)}function je(ut){return de.useMemo(()=>ut&&be(ut),[ut])}var De=ee(64993),He=ee(17313),he=ee(8378),Xe=ee(13826),Ke=ee(29878),St=ee(83116),Le=ee(37613),lt=ut=>{const{componentCls:at,motionDurationSlow:Ie,horizontalLineHeight:fe,colorSplit:qe,lineWidth:At,lineType:Oe,itemPaddingInline:Ne}=ut;return{[`${at}-horizontal`]:{lineHeight:fe,border:0,borderBottom:`${At}px ${Oe} ${qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${at}-item, ${at}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ne},[`> ${at}-item:hover,
> ${at}-item-active,
> ${at}-submenu ${at}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${at}-item, ${at}-submenu-title`]:{transition:[`border-color ${Ie}`,`background ${Ie}`].join(",")},[`${at}-submenu-arrow`]:{display:"none"}}}},ft=ut=>{let{componentCls:at,menuArrowOffset:Ie}=ut;return{[`${at}-rtl`]:{direction:"rtl"},[`${at}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${at}-rtl${at}-vertical,
${at}-submenu-rtl ${at}-vertical`]:{[`${at}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ie})`},"&::after":{transform:`rotate(45deg) translateY(${Ie})`}}}}};const ln=ut=>Object.assign({},(0,He.oN)(ut));var nn=(ut,at)=>{const{componentCls:Ie,itemColor:fe,itemSelectedColor:qe,groupTitleColor:At,itemBg:Oe,subMenuItemBg:Ne,itemSelectedBg:Ct,activeBarHeight:tt,activeBarWidth:ke,activeBarBorderWidth:ht,motionDurationSlow:Sn,motionEaseInOut:rn,motionEaseOut:an,itemPaddingInline:mn,motionDurationMid:cn,itemHoverColor:Te,lineType:Ft,colorSplit:zt,itemDisabledColor:wt,dangerItemColor:Rt,dangerItemHoverColor:un,dangerItemSelectedColor:dn,dangerItemActiveBg:_n,dangerItemSelectedBg:Vn,itemHoverBg:va,itemActiveBg:La,menuSubMenuBg:Na,horizontalItemSelectedColor:rr,horizontalItemSelectedBg:Ka,horizontalItemBorderRadius:Ea,horizontalItemHoverBg:yr,popupBg:Xt}=ut;return{[`${Ie}-${at}, ${Ie}-${at} > ${Ie}`]:{color:fe,background:Oe,[`&${Ie}-root:focus-visible`]:Object.assign({},ln(ut)),[`${Ie}-item-group-title`]:{color:At},[`${Ie}-submenu-selected`]:{[`> ${Ie}-submenu-title`]:{color:qe}},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{color:`${wt} !important`},[`${Ie}-item:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{[`&:hover, > ${Ie}-submenu-title:hover`]:{color:Te}},[`&:not(${Ie}-horizontal)`]:{[`${Ie}-item:not(${Ie}-item-selected)`]:{"&:hover":{backgroundColor:va},"&:active":{backgroundColor:La}},[`${Ie}-submenu-title`]:{"&:hover":{backgroundColor:va},"&:active":{backgroundColor:La}}},[`${Ie}-item-danger`]:{color:Rt,[`&${Ie}-item:hover`]:{[`&:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{color:un}},[`&${Ie}-item:active`]:{background:_n}},[`${Ie}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ie}-item-selected`]:{color:qe,[`&${Ie}-item-danger`]:{color:dn},"a, a:hover":{color:"inherit"}},[`& ${Ie}-item-selected`]:{backgroundColor:Ct,[`&${Ie}-item-danger`]:{backgroundColor:Vn}},[`${Ie}-item, ${Ie}-submenu-title`]:{[`&:not(${Ie}-item-disabled):focus-visible`]:Object.assign({},ln(ut))},[`&${Ie}-submenu > ${Ie}`]:{backgroundColor:Na},[`&${Ie}-popup > ${Ie}`]:{backgroundColor:Xt},[`&${Ie}-horizontal`]:Object.assign(Object.assign({},at==="dark"?{borderBottom:0}:{}),{[`> ${Ie}-item, > ${Ie}-submenu`]:{top:ht,marginTop:-ht,marginBottom:0,borderRadius:Ea,"&::after":{position:"absolute",insetInline:mn,bottom:0,borderBottom:`${tt}px solid transparent`,transition:`border-color ${Sn} ${rn}`,content:'""'},"&:hover, &-active, &-open":{background:yr,"&::after":{borderBottomWidth:tt,borderBottomColor:rr}},"&-selected":{color:rr,backgroundColor:Ka,"&:hover":{backgroundColor:Ka},"&::after":{borderBottomWidth:tt,borderBottomColor:rr}}}}),[`&${Ie}-root`]:{[`&${Ie}-inline, &${Ie}-vertical`]:{borderInlineEnd:`${ht}px ${Ft} ${zt}`}},[`&${Ie}-inline`]:{[`${Ie}-sub${Ie}-inline`]:{background:Ne},[`${Ie}-item, ${Ie}-submenu-title`]:ht&&ke?{width:`calc(100% + ${ht}px)`}:{},[`${Ie}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ke}px solid ${qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${cn} ${an}`,`opacity ${cn} ${an}`].join(","),content:'""'},[`&${Ie}-item-danger`]:{"&::after":{borderInlineEndColor:dn}}},[`${Ie}-selected, ${Ie}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${cn} ${rn}`,`opacity ${cn} ${rn}`].join(",")}}}}}};const En=ut=>{const{componentCls:at,itemHeight:Ie,itemMarginInline:fe,padding:qe,menuArrowSize:At,marginXS:Oe,itemMarginBlock:Ne}=ut,Ct=qe+At+Oe;return{[`${at}-item`]:{position:"relative",overflow:"hidden"},[`${at}-item, ${at}-submenu-title`]:{height:Ie,lineHeight:`${Ie}px`,paddingInline:qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:fe,marginBlock:Ne,width:`calc(100% - ${fe*2}px)`},[`> ${at}-item,
> ${at}-submenu > ${at}-submenu-title`]:{height:Ie,lineHeight:`${Ie}px`},[`${at}-item-group-list ${at}-submenu-title,
${at}-submenu-title`]:{paddingInlineEnd:Ct}}};var dt=ut=>{const{componentCls:at,iconCls:Ie,itemHeight:fe,colorTextLightSolid:qe,dropdownWidth:At,controlHeightLG:Oe,motionDurationMid:Ne,motionEaseOut:Ct,paddingXL:tt,itemMarginInline:ke,fontSizeLG:ht,motionDurationSlow:Sn,paddingXS:rn,boxShadowSecondary:an,collapsedWidth:mn,collapsedIconSize:cn}=ut,Te={height:fe,lineHeight:`${fe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[at]:{"&-inline, &-vertical":Object.assign({[`&${at}-root`]:{boxShadow:"none"}},En(ut))},[`${at}-submenu-popup`]:{[`${at}-vertical`]:Object.assign(Object.assign({},En(ut)),{boxShadow:an})}},{[`${at}-submenu-popup ${at}-vertical${at}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${Oe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${at}-inline`]:{width:"100%",[`&${at}-root`]:{[`${at}-item, ${at}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Sn}`,`background ${Sn}`,`padding ${Ne} ${Ct}`].join(","),[`> ${at}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${at}-sub${at}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${at}-submenu > ${at}-submenu-title`]:Te,[`& ${at}-item-group-title`]:{paddingInlineStart:tt}},[`${at}-item`]:Te}},{[`${at}-inline-collapsed`]:{width:mn,[`&${at}-root`]:{[`${at}-item, ${at}-submenu ${at}-submenu-title`]:{[`> ${at}-inline-collapsed-noicon`]:{fontSize:ht,textAlign:"center"}}},[`> ${at}-item,
> ${at}-item-group > ${at}-item-group-list > ${at}-item,
> ${at}-item-group > ${at}-item-group-list > ${at}-submenu > ${at}-submenu-title,
> ${at}-submenu > ${at}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ht/2}px - ${ke}px)`,textOverflow:"clip",[`
${at}-submenu-arrow,
${at}-submenu-expand-icon
`]:{opacity:0},[`${at}-item-icon, ${Ie}`]:{margin:0,fontSize:cn,lineHeight:`${fe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${at}-item-icon, ${Ie}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${at}-item-icon, ${Ie}`]:{display:"none"},"a, a:hover":{color:qe}},[`${at}-item-group-title`]:Object.assign(Object.assign({},He.vS),{paddingInline:rn})}}]};const on=ut=>{const{componentCls:at,motionDurationSlow:Ie,motionDurationMid:fe,motionEaseInOut:qe,motionEaseOut:At,iconCls:Oe,iconSize:Ne,iconMarginInlineEnd:Ct}=ut;return{[`${at}-item, ${at}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ie}`,`background ${Ie}`,`padding ${Ie} ${qe}`].join(","),[`${at}-item-icon, ${Oe}`]:{minWidth:Ne,fontSize:Ne,transition:[`font-size ${fe} ${At}`,`margin ${Ie} ${qe}`,`color ${Ie}`].join(","),"+ span":{marginInlineStart:Ct,opacity:1,transition:[`opacity ${Ie} ${qe}`,`margin ${Ie}`,`color ${Ie}`].join(",")}},[`${at}-item-icon`]:Object.assign({},(0,He.Ro)()),[`&${at}-item-only-child`]:{[`> ${Oe}, > ${at}-item-icon`]:{marginInlineEnd:0}}},[`${at}-item-disabled, ${at}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${at}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Yn=ut=>{const{componentCls:at,motionDurationSlow:Ie,motionEaseInOut:fe,borderRadius:qe,menuArrowSize:At,menuArrowOffset:Oe}=ut;return{[`${at}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ut.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ie} ${fe}, opacity ${Ie}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:qe,transition:[`background ${Ie} ${fe}`,`transform ${Ie} ${fe}`,`top ${Ie} ${fe}`,`color ${Ie} ${fe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Oe})`},"&::after":{transform:`rotate(-45deg) translateY(${Oe})`}}}}},Zt=ut=>{const{antCls:at,componentCls:Ie,fontSize:fe,motionDurationSlow:qe,motionDurationMid:At,motionEaseInOut:Oe,paddingXS:Ne,padding:Ct,colorSplit:tt,lineWidth:ke,zIndexPopup:ht,borderRadiusLG:Sn,subMenuItemBorderRadius:rn,menuArrowSize:an,menuArrowOffset:mn,lineType:cn,menuPanelMaskInset:Te,groupTitleLineHeight:Ft,groupTitleFontSize:zt}=ut;return[{"":{[`${Ie}`]:Object.assign(Object.assign({},(0,He.dF)()),{"&-hidden":{display:"none"}})},[`${Ie}-submenu-hidden`]:{display:"none"}},{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,He.Wf)(ut)),(0,He.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:fe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${qe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ie}-item`]:{flex:"none"}},[`${Ie}-item, ${Ie}-submenu, ${Ie}-submenu-title`]:{borderRadius:ut.itemBorderRadius},[`${Ie}-item-group-title`]:{padding:`${Ne}px ${Ct}px`,fontSize:zt,lineHeight:Ft,transition:`all ${qe}`},[`&-horizontal ${Ie}-submenu`]:{transition:[`border-color ${qe} ${Oe}`,`background ${qe} ${Oe}`].join(",")},[`${Ie}-submenu, ${Ie}-submenu-inline`]:{transition:[`border-color ${qe} ${Oe}`,`background ${qe} ${Oe}`,`padding ${At} ${Oe}`].join(",")},[`${Ie}-submenu ${Ie}-sub`]:{cursor:"initial",transition:[`background ${qe} ${Oe}`,`padding ${qe} ${Oe}`].join(",")},[`${Ie}-title-content`]:{transition:`color ${qe}`},[`${Ie}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ie}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:tt,borderStyle:cn,borderWidth:0,borderTopWidth:ke,marginBlock:ke,padding:0,"&-dashed":{borderStyle:"dashed"}}}),on(ut)),{[`${Ie}-item-group`]:{[`${Ie}-item-group-list`]:{margin:0,padding:0,[`${Ie}-item, ${Ie}-submenu-title`]:{paddingInline:`${fe*2}px ${Ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ht,borderRadius:Sn,boxShadow:"none",transformOrigin:"0 0",[`&${Ie}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Te}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Te},"\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:ut.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ut.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ut.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ut.paddingXS},[`> ${Ie}`]:Object.assign(Object.assign(Object.assign({borderRadius:Sn},on(ut)),Yn(ut)),{[`${Ie}-item, ${Ie}-submenu > ${Ie}-submenu-title`]:{borderRadius:rn},[`${Ie}-submenu-title::after`]:{transition:`transform ${qe} ${Oe}`}})}}),Yn(ut)),{[`&-inline-collapsed ${Ie}-submenu-arrow,
&-inline ${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${mn})`},"&::after":{transform:`rotate(45deg) translateX(-${mn})`}},[`${Ie}-submenu-open${Ie}-submenu-inline > ${Ie}-submenu-title > ${Ie}-submenu-arrow`]:{transform:`translateY(-${an*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${mn})`},"&::before":{transform:`rotate(45deg) translateX(${mn})`}}})},{[`${at}-layout-header`]:{[Ie]:{lineHeight:"inherit"}}}]};var On=(ut,at)=>(0,St.Z)("Menu",fe=>{if(at===!1)return[];const{colorBgElevated:qe,colorPrimary:At,colorTextLightSolid:Oe,controlHeightLG:Ne,fontSize:Ct,darkItemColor:tt,darkDangerItemColor:ke,darkItemBg:ht,darkSubMenuItemBg:Sn,darkItemSelectedColor:rn,darkItemSelectedBg:an,darkDangerItemSelectedBg:mn,darkItemHoverBg:cn,darkGroupTitleColor:Te,darkItemHoverColor:Ft,darkItemDisabledColor:zt,darkDangerItemHoverColor:wt,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:un}=fe,dn=Ct/7*5,_n=(0,Le.TS)(fe,{menuArrowSize:dn,menuHorizontalHeight:Ne*1.15,menuArrowOffset:`${dn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:qe}),Vn=(0,Le.TS)(_n,{itemColor:tt,itemHoverColor:Ft,groupTitleColor:Te,itemSelectedColor:rn,itemBg:ht,popupBg:ht,subMenuItemBg:Sn,itemActiveBg:"transparent",itemSelectedBg:an,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:cn,itemDisabledColor:zt,dangerItemColor:ke,dangerItemHoverColor:wt,dangerItemSelectedColor:Rt,dangerItemActiveBg:un,dangerItemSelectedBg:mn,menuSubMenuBg:Sn,horizontalItemSelectedColor:Oe,horizontalItemSelectedBg:At});return[Zt(_n),lt(_n),dt(_n),nn(_n,"light"),nn(Vn,"dark"),ft(_n),(0,he.Z)(_n),(0,Xe.oN)(_n,"slide-up"),(0,Xe.oN)(_n,"slide-down"),(0,Ke._y)(_n,"zoom-big")]},fe=>{const{colorPrimary:qe,colorError:At,colorTextDisabled:Oe,colorErrorBg:Ne,colorText:Ct,colorTextDescription:tt,colorBgContainer:ke,colorFillAlter:ht,colorFillContent:Sn,lineWidth:rn,lineWidthBold:an,controlItemBgActive:mn,colorBgTextHover:cn,controlHeightLG:Te,lineHeight:Ft,colorBgElevated:zt,marginXXS:wt,padding:Rt,fontSize:un,controlHeightSM:dn,fontSizeLG:_n,colorTextLightSolid:Vn,colorErrorHover:va}=fe,La=new De.C(Vn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:fe.zIndexPopupBase+50,radiusItem:fe.borderRadiusLG,itemBorderRadius:fe.borderRadiusLG,radiusSubMenuItem:fe.borderRadiusSM,subMenuItemBorderRadius:fe.borderRadiusSM,colorItemText:Ct,itemColor:Ct,colorItemTextHover:Ct,itemHoverColor:Ct,colorItemTextHoverHorizontal:qe,horizontalItemHoverColor:qe,colorGroupTitle:tt,groupTitleColor:tt,colorItemTextSelected:qe,itemSelectedColor:qe,colorItemTextSelectedHorizontal:qe,horizontalItemSelectedColor:qe,colorItemBg:ke,itemBg:ke,colorItemBgHover:cn,itemHoverBg:cn,colorItemBgActive:Sn,itemActiveBg:mn,colorSubItemBg:ht,subMenuItemBg:ht,colorItemBgSelected:mn,itemSelectedBg:mn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:an,activeBarHeight:an,colorActiveBarBorderSize:rn,activeBarBorderWidth:rn,colorItemTextDisabled:Oe,itemDisabledColor:Oe,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:Ne,dangerItemActiveBg:Ne,colorDangerItemBgSelected:Ne,dangerItemSelectedBg:Ne,itemMarginInline:fe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Te,groupTitleLineHeight:Ft,collapsedWidth:Te*2,popupBg:zt,itemMarginBlock:wt,itemPaddingInline:Rt,horizontalLineHeight:`${Te*1.15}px`,iconSize:un,iconMarginInlineEnd:dn-un,collapsedIconSize:_n,groupTitleFontSize:un,darkItemDisabledColor:new De.C(Vn).setAlpha(.25).toRgbString(),darkItemColor:La,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vn,darkItemSelectedBg:qe,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:La,darkItemHoverColor:Vn,darkDangerItemHoverColor:va,darkDangerItemSelectedColor:Vn,darkDangerItemActiveBg:At}},{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"]]})(ut),_e=function(ut,at){var Ie={};for(var fe in ut)Object.prototype.hasOwnProperty.call(ut,fe)&&at.indexOf(fe)<0&&(Ie[fe]=ut[fe]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,fe=Object.getOwnPropertySymbols(ut);qe<fe.length;qe++)at.indexOf(fe[qe])<0&&Object.prototype.propertyIsEnumerable.call(ut,fe[qe])&&(Ie[fe[qe]]=ut[fe[qe]]);return Ie},kt=(0,de.forwardRef)((ut,at)=>{var Ie,fe;const qe=de.useContext(ie.Z),At=qe||{},{getPrefixCls:Oe,getPopupContainer:Ne,direction:Ct,menu:tt}=de.useContext(Me.E_),ke=Oe(),{prefixCls:ht,className:Sn,style:rn,theme:an="light",expandIcon:mn,_internalDisableMenuItemTitleTooltip:cn,inlineCollapsed:Te,siderCollapsed:Ft,items:zt,children:wt,rootClassName:Rt,mode:un,selectable:dn,onClick:_n,overflowedIndicatorPopupClassName:Vn}=ut,va=_e(ut,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),La=(0,We.Z)(va,["collapsedWidth"]),Na=je(zt)||wt;(Ie=At.validator)===null||Ie===void 0||Ie.call(At,{mode:un});const rr=(0,re.useEvent)(function(){var Vt;_n==null||_n.apply(void 0,arguments),(Vt=At.onClick)===null||Vt===void 0||Vt.call(At)}),Ka=At.mode||un,Ea=dn!=null?dn:At.selectable,yr=de.useMemo(()=>Ft!==void 0?Ft:Te,[Te,Ft]),Xt={horizontal:{motionName:`${ke}-slide-up`},inline:(0,ue.Z)(ke),other:{motionName:`${ke}-zoom-big`}},jn=Oe("menu",ht||At.prefixCls),[Qn,Ia]=On(jn,!qe),Ge=ze()(`${jn}-${an}`,tt==null?void 0:tt.className,Sn);let Ot;if(typeof mn=="function")Ot=mn;else if(mn===null||mn===!1)Ot=null;else if(At.expandIcon===null||At.expandIcon===!1)Ot=null;else{const Vt=mn!=null?mn:At.expandIcon;Ot=(0,Ye.Tm)(Vt,{className:ze()(`${jn}-submenu-expand-icon`,(0,Ye.l$)(Vt)?(fe=Vt.props)===null||fe===void 0?void 0:fe.className:"")})}const _t=de.useMemo(()=>({prefixCls:jn,inlineCollapsed:yr||!1,direction:Ct,firstLevel:!0,theme:an,mode:Ka,disableMenuItemTitleTooltip:cn}),[jn,yr,Ct,cn,an]);return Qn(de.createElement(ie.Z.Provider,{value:null},de.createElement(E.Provider,{value:_t},de.createElement(b.ZP,Object.assign({getPopupContainer:Ne,overflowedIndicator:de.createElement(ne.Z,null),overflowedIndicatorPopupClassName:ze()(jn,`${jn}-${an}`,Vn),mode:Ka,selectable:Ea,onClick:rr},La,{inlineCollapsed:yr,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),rn),className:Ge,prefixCls:jn,direction:Ct,defaultMotions:Xt,expandIcon:Ot,ref:at,rootClassName:ze()(Rt,Ia)}),Na))))});const mt=(0,de.forwardRef)((ut,at)=>{const Ie=(0,de.useRef)(null),fe=de.useContext(Be.D);return(0,de.useImperativeHandle)(at,()=>({menu:Ie.current,focus:qe=>{var At;(At=Ie.current)===null||At===void 0||At.focus(qe)}})),de.createElement(kt,Object.assign({ref:Ie},ut,fe))});mt.Item=x,mt.SubMenu=z,mt.Divider=et,mt.ItemGroup=b.BW;var It=mt},58421:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return At}});var b=ee(92413),de=ee(59301),Be={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"},Ae=Be,ze=ee(7657),Me=function(Ne,Ct){return de.createElement(ze.Z,(0,b.Z)({},Ne,{ref:Ct,icon:Ae}))},le=de.forwardRef(Me),st=le,et=ee(49198),Ve=ee(33853),We=ee(38819),Je=ee(92310),Ye=ee.n(Je),se=ee(400),E=ee(33708),a=ee(6909),x=ee(4771),y=ee(9427),z=ee(25440),ne=ee(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ue=re,ie=ee(91735),ve=function(Oe){(0,y.Z)(Ct,Oe);var Ne=(0,z.Z)(Ct);function Ct(){var tt;(0,a.Z)(this,Ct);for(var ke=arguments.length,ht=new Array(ke),Sn=0;Sn<ke;Sn++)ht[Sn]=arguments[Sn];return tt=Ne.call.apply(Ne,[this].concat(ht)),tt.state={goInputText:""},tt.getValidValue=function(){var rn=tt.state.goInputText;return!rn||Number.isNaN(rn)?void 0:Number(rn)},tt.buildOptionText=function(rn){return"".concat(rn," ").concat(tt.props.locale.items_per_page)},tt.changeSize=function(rn){tt.props.changeSize(Number(rn))},tt.handleChange=function(rn){tt.setState({goInputText:rn.target.value})},tt.handleBlur=function(rn){var an=tt.props,mn=an.goButton,cn=an.quickGo,Te=an.rootPrefixCls,Ft=tt.state.goInputText;mn||Ft===""||(tt.setState({goInputText:""}),!(rn.relatedTarget&&(rn.relatedTarget.className.indexOf("".concat(Te,"-item-link"))>=0||rn.relatedTarget.className.indexOf("".concat(Te,"-item"))>=0))&&cn(tt.getValidValue()))},tt.go=function(rn){var an=tt.state.goInputText;an!==""&&(rn.keyCode===ue.ENTER||rn.type==="click")&&(tt.setState({goInputText:""}),tt.props.quickGo(tt.getValidValue()))},tt}return(0,x.Z)(Ct,[{key:"getPageSizeOptions",value:function(){var ke=this.props,ht=ke.pageSize,Sn=ke.pageSizeOptions;return Sn.some(function(rn){return rn.toString()===ht.toString()})?Sn:Sn.concat([ht.toString()]).sort(function(rn,an){var mn=Number.isNaN(Number(rn))?0:Number(rn),cn=Number.isNaN(Number(an))?0:Number(an);return mn-cn})}},{key:"render",value:function(){var ke=this,ht=this.props,Sn=ht.pageSize,rn=ht.locale,an=ht.rootPrefixCls,mn=ht.changeSize,cn=ht.quickGo,Te=ht.goButton,Ft=ht.selectComponentClass,zt=ht.buildOptionText,wt=ht.selectPrefixCls,Rt=ht.disabled,un=this.state.goInputText,dn="".concat(an,"-options"),_n=Ft,Vn=null,va=null,La=null;if(!mn&&!cn)return null;var Na=this.getPageSizeOptions();if(mn&&_n){var rr=Na.map(function(Ka,Ea){return de.createElement(_n.Option,{key:Ea,value:Ka.toString()},(zt||ke.buildOptionText)(Ka))});Vn=de.createElement(_n,{disabled:Rt,prefixCls:wt,showSearch:!1,className:"".concat(dn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Sn||Na[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ea){return Ea.parentNode},"aria-label":rn.page_size,defaultOpen:!1},rr)}return cn&&(Te&&(La=typeof Te=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Rt,className:"".concat(dn,"-quick-jumper-button")},rn.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},Te)),va=de.createElement("div",{className:"".concat(dn,"-quick-jumper")},rn.jump_to,de.createElement("input",{disabled:Rt,type:"text",value:un,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":rn.page}),rn.page,La)),de.createElement("li",{className:"".concat(dn)},Vn,va)}}]),Ct}(de.Component);ve.defaultProps={pageSizeOptions:["10","20","50","100"]};var be=ve,je=function(Ne){var Ct,tt=Ne.rootPrefixCls,ke=Ne.page,ht=Ne.active,Sn=Ne.className,rn=Ne.showTitle,an=Ne.onClick,mn=Ne.onKeyPress,cn=Ne.itemRender,Te="".concat(tt,"-item"),Ft=Ye()(Te,"".concat(Te,"-").concat(ke),(Ct={},(0,se.Z)(Ct,"".concat(Te,"-active"),ht),(0,se.Z)(Ct,"".concat(Te,"-disabled"),!ke),(0,se.Z)(Ct,Ne.className,Sn),Ct)),zt=function(){an(ke)},wt=function(dn){mn(dn,an,ke)},Rt=cn(ke,"page",de.createElement("a",{rel:"nofollow"},ke));return Rt?de.createElement("li",{title:rn?ke.toString():null,className:Ft,onClick:zt,onKeyPress:wt,tabIndex:0},Rt):null},De=je;function He(){}function he(Oe){var Ne=Number(Oe);return typeof Ne=="number"&&!Number.isNaN(Ne)&&isFinite(Ne)&&Math.floor(Ne)===Ne}var Xe=function(Ne,Ct,tt){return tt};function Ke(Oe,Ne,Ct){var tt=typeof Oe=="undefined"?Ne.pageSize:Oe;return Math.floor((Ct.total-1)/tt)+1}var St=function(Oe){(0,y.Z)(Ct,Oe);var Ne=(0,z.Z)(Ct);function Ct(tt){var ke;(0,a.Z)(this,Ct),ke=Ne.call(this,tt),ke.paginationNode=de.createRef(),ke.getJumpPrevPage=function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))},ke.getJumpNextPage=function(){return Math.min(Ke(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))},ke.getItemIcon=function(mn,cn){var Te=ke.props.prefixCls,Ft=mn||de.createElement("button",{type:"button","aria-label":cn,className:"".concat(Te,"-item-link")});return typeof mn=="function"&&(Ft=de.createElement(mn,(0,E.Z)({},ke.props))),Ft},ke.isValid=function(mn){var cn=ke.props.total;return he(mn)&&mn!==ke.state.current&&he(cn)&&cn>0},ke.shouldDisplayQuickJumper=function(){var mn=ke.props,cn=mn.showQuickJumper,Te=mn.total,Ft=ke.state.pageSize;return Te<=Ft?!1:cn},ke.handleKeyDown=function(mn){(mn.keyCode===ue.ARROW_UP||mn.keyCode===ue.ARROW_DOWN)&&mn.preventDefault()},ke.handleKeyUp=function(mn){var cn=ke.getValidValue(mn),Te=ke.state.currentInputValue;cn!==Te&&ke.setState({currentInputValue:cn}),mn.keyCode===ue.ENTER?ke.handleChange(cn):mn.keyCode===ue.ARROW_UP?ke.handleChange(cn-1):mn.keyCode===ue.ARROW_DOWN&&ke.handleChange(cn+1)},ke.handleBlur=function(mn){var cn=ke.getValidValue(mn);ke.handleChange(cn)},ke.changePageSize=function(mn){var cn=ke.state.current,Te=Ke(mn,ke.state,ke.props);cn=cn>Te?Te:cn,Te===0&&(cn=ke.state.current),typeof mn=="number"&&("pageSize"in ke.props||ke.setState({pageSize:mn}),"current"in ke.props||ke.setState({current:cn,currentInputValue:cn})),ke.props.onShowSizeChange(cn,mn),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(cn,mn)},ke.handleChange=function(mn){var cn=ke.props,Te=cn.disabled,Ft=cn.onChange,zt=ke.state,wt=zt.pageSize,Rt=zt.current,un=zt.currentInputValue;if(ke.isValid(mn)&&!Te){var dn=Ke(void 0,ke.state,ke.props),_n=mn;return mn>dn?_n=dn:mn<1&&(_n=1),"current"in ke.props||ke.setState({current:_n}),_n!==un&&ke.setState({currentInputValue:_n}),Ft(_n,wt),_n}return Rt},ke.prev=function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)},ke.next=function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)},ke.jumpPrev=function(){ke.handleChange(ke.getJumpPrevPage())},ke.jumpNext=function(){ke.handleChange(ke.getJumpNextPage())},ke.hasPrev=function(){return ke.state.current>1},ke.hasNext=function(){return ke.state.current<Ke(void 0,ke.state,ke.props)},ke.runIfEnter=function(mn,cn){if(mn.key==="Enter"||mn.charCode===13){for(var Te=arguments.length,Ft=new Array(Te>2?Te-2:0),zt=2;zt<Te;zt++)Ft[zt-2]=arguments[zt];cn.apply(void 0,Ft)}},ke.runIfEnterPrev=function(mn){ke.runIfEnter(mn,ke.prev)},ke.runIfEnterNext=function(mn){ke.runIfEnter(mn,ke.next)},ke.runIfEnterJumpPrev=function(mn){ke.runIfEnter(mn,ke.jumpPrev)},ke.runIfEnterJumpNext=function(mn){ke.runIfEnter(mn,ke.jumpNext)},ke.handleGoTO=function(mn){(mn.keyCode===ue.ENTER||mn.type==="click")&&ke.handleChange(ke.state.currentInputValue)},ke.renderPrev=function(mn){var cn=ke.props,Te=cn.prevIcon,Ft=cn.itemRender,zt=Ft(mn,"prev",ke.getItemIcon(Te,"prev page")),wt=!ke.hasPrev();return(0,de.isValidElement)(zt)?(0,de.cloneElement)(zt,{disabled:wt}):zt},ke.renderNext=function(mn){var cn=ke.props,Te=cn.nextIcon,Ft=cn.itemRender,zt=Ft(mn,"next",ke.getItemIcon(Te,"next page")),wt=!ke.hasNext();return(0,de.isValidElement)(zt)?(0,de.cloneElement)(zt,{disabled:wt}):zt};var ht=tt.onChange!==He,Sn="current"in tt;Sn&&!ht&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var rn=tt.defaultCurrent;"current"in tt&&(rn=tt.current);var an=tt.defaultPageSize;return"pageSize"in tt&&(an=tt.pageSize),rn=Math.min(rn,Ke(an,void 0,tt)),ke.state={current:rn,currentInputValue:rn,pageSize:an},ke}return(0,x.Z)(Ct,[{key:"componentDidUpdate",value:function(ke,ht){var Sn=this.props.prefixCls;if(ht.current!==this.state.current&&this.paginationNode.current){var rn=this.paginationNode.current.querySelector(".".concat(Sn,"-item-").concat(ht.current));if(rn&&document.activeElement===rn){var an;rn==null||(an=rn.blur)===null||an===void 0||an.call(rn)}}}},{key:"getValidValue",value:function(ke){var ht=ke.target.value,Sn=Ke(void 0,this.state,this.props),rn=this.state.currentInputValue,an;return ht===""?an=ht:Number.isNaN(Number(ht))?an=rn:ht>=Sn?an=Sn:an=Number(ht),an}},{key:"getShowSizeChanger",value:function(){var ke=this.props,ht=ke.showSizeChanger,Sn=ke.total,rn=ke.totalBoundaryShowSizeChanger;return typeof ht!="undefined"?ht:Sn>rn}},{key:"render",value:function(){var ke=this.props,ht=ke.prefixCls,Sn=ke.className,rn=ke.style,an=ke.disabled,mn=ke.hideOnSinglePage,cn=ke.total,Te=ke.locale,Ft=ke.showQuickJumper,zt=ke.showLessItems,wt=ke.showTitle,Rt=ke.showTotal,un=ke.simple,dn=ke.itemRender,_n=ke.showPrevNextJumpers,Vn=ke.jumpPrevIcon,va=ke.jumpNextIcon,La=ke.selectComponentClass,Na=ke.selectPrefixCls,rr=ke.pageSizeOptions,Ka=this.state,Ea=Ka.current,yr=Ka.pageSize,Xt=Ka.currentInputValue;if(mn===!0&&cn<=yr)return null;var jn=Ke(void 0,this.state,this.props),Qn=[],Ia=null,Ge=null,Ot=null,_t=null,Vt=null,Wt=Ft&&Ft.goButton,Nn=zt?1:2,Bn=Ea-1>0?Ea-1:0,vt=Ea+1<jn?Ea+1:jn,Bt=(0,ne.Z)(this.props,{aria:!0,data:!0}),pt=Rt&&de.createElement("li",{className:"".concat(ht,"-total-text")},Rt(cn,[cn===0?0:(Ea-1)*yr+1,Ea*yr>cn?cn:Ea*yr]));if(un){Wt&&(typeof Wt=="boolean"?Vt=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Te.jump_to_confirm):Vt=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Wt),Vt=de.createElement("li",{title:wt?"".concat(Te.jump_to).concat(Ea,"/").concat(jn):null,className:"".concat(ht,"-simple-pager")},Vt));var vn=this.renderPrev(Bn);return de.createElement("ul",(0,b.Z)({className:Ye()(ht,"".concat(ht,"-simple"),(0,se.Z)({},"".concat(ht,"-disabled"),an),Sn),style:rn,ref:this.paginationNode},Bt),pt,vn?de.createElement("li",{title:wt?Te.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ye()("".concat(ht,"-prev"),(0,se.Z)({},"".concat(ht,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},vn):null,de.createElement("li",{title:wt?"".concat(Ea,"/").concat(jn):null,className:"".concat(ht,"-simple-pager")},de.createElement("input",{type:"text",value:Xt,disabled:an,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(ht,"-slash")},"/"),jn),de.createElement("li",{title:wt?Te.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ye()("".concat(ht,"-next"),(0,se.Z)({},"".concat(ht,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(vt)),Vt)}if(jn<=3+Nn*2){var Hn={locale:Te,rootPrefixCls:ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:wt,itemRender:dn};jn||Qn.push(de.createElement(De,(0,b.Z)({},Hn,{key:"noPager",page:1,className:"".concat(ht,"-item-disabled")})));for(var In=1;In<=jn;In+=1){var Ta=Ea===In;Qn.push(de.createElement(De,(0,b.Z)({},Hn,{key:In,page:In,active:Ta})))}}else{var Pa=zt?Te.prev_3:Te.prev_5,Rn=zt?Te.next_3:Te.next_5,ya=dn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Vn,"prev page")),ba=dn(this.getJumpNextPage(),"jump-next",this.getItemIcon(va,"next page"));_n&&(Ia=ya?de.createElement("li",{title:wt?Pa:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ye()("".concat(ht,"-jump-prev"),(0,se.Z)({},"".concat(ht,"-jump-prev-custom-icon"),!!Vn))},ya):null,Ge=ba?de.createElement("li",{title:wt?Rn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ye()("".concat(ht,"-jump-next"),(0,se.Z)({},"".concat(ht,"-jump-next-custom-icon"),!!va))},ba):null),_t=de.createElement(De,{locale:Te,last:!0,rootPrefixCls:ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jn,page:jn,active:!1,showTitle:wt,itemRender:dn}),Ot=de.createElement(De,{locale:Te,rootPrefixCls:ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:wt,itemRender:dn});var wn=Math.max(1,Ea-Nn),mr=Math.min(Ea+Nn,jn);Ea-1<=Nn&&(mr=1+Nn*2),jn-Ea<=Nn&&(wn=jn-Nn*2);for(var Er=wn;Er<=mr;Er+=1){var Jr=Ea===Er;Qn.push(de.createElement(De,{locale:Te,rootPrefixCls:ht,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Er,page:Er,active:Jr,showTitle:wt,itemRender:dn}))}Ea-1>=Nn*2&&Ea!==3&&(Qn[0]=(0,de.cloneElement)(Qn[0],{className:"".concat(ht,"-item-after-jump-prev")}),Qn.unshift(Ia)),jn-Ea>=Nn*2&&Ea!==jn-2&&(Qn[Qn.length-1]=(0,de.cloneElement)(Qn[Qn.length-1],{className:"".concat(ht,"-item-before-jump-next")}),Qn.push(Ge)),wn!==1&&Qn.unshift(Ot),mr!==jn&&Qn.push(_t)}var pr=!this.hasPrev()||!jn,Qe=!this.hasNext()||!jn,Pn=this.renderPrev(Bn),qt=this.renderNext(vt);return de.createElement("ul",(0,b.Z)({className:Ye()(ht,Sn,(0,se.Z)({},"".concat(ht,"-disabled"),an)),style:rn,ref:this.paginationNode},Bt),pt,Pn?de.createElement("li",{title:wt?Te.prev_page:null,onClick:this.prev,tabIndex:pr?null:0,onKeyPress:this.runIfEnterPrev,className:Ye()("".concat(ht,"-prev"),(0,se.Z)({},"".concat(ht,"-disabled"),pr)),"aria-disabled":pr},Pn):null,Qn,qt?de.createElement("li",{title:wt?Te.next_page:null,onClick:this.next,tabIndex:Qe?null:0,onKeyPress:this.runIfEnterNext,className:Ye()("".concat(ht,"-next"),(0,se.Z)({},"".concat(ht,"-disabled"),Qe)),"aria-disabled":Qe},qt):null,de.createElement(be,{disabled:an,locale:Te,rootPrefixCls:ht,selectComponentClass:La,selectPrefixCls:Na,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ea,pageSize:yr,pageSizeOptions:rr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Wt}))}}],[{key:"getDerivedStateFromProps",value:function(ke,ht){var Sn={};if("current"in ke&&(Sn.current=ke.current,ke.current!==ht.current&&(Sn.currentInputValue=Sn.current)),"pageSize"in ke&&ke.pageSize!==ht.pageSize){var rn=ht.current,an=Ke(ke.pageSize,ht,ke);rn=rn>an?an:rn,"current"in ke||(Sn.current=rn,Sn.currentInputValue=rn),Sn.pageSize=ke.pageSize}return Sn}}]),Ct}(de.Component);St.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:He,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:He,locale:ie.Z,style:{},itemRender:Xe,totalBoundaryShowSizeChanger:50};var Le=St,ot=ee(22075),lt=ee(36355),gt=ee(19716),ft=ee(8628),ln=ee(9763),xt=ee(57809);const nn=Oe=>de.createElement(xt.default,Object.assign({},Oe,{showSearch:!0,size:"small"})),En=Oe=>de.createElement(xt.default,Object.assign({},Oe,{showSearch:!0,size:"middle"}));nn.Option=xt.default.Option,En.Option=xt.default.Option;var $e=ee(9937),dt=ee(17313),on=ee(83116),Yn=ee(37613);const Zt=Oe=>{const{componentCls:Ne}=Oe;return{[`${Ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ne}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ne}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ne}-disabled`]:{cursor:"not-allowed",[`${Ne}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Oe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Oe.colorBorder,backgroundColor:Oe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Oe.itemActiveBgDisabled},a:{color:Oe.itemActiveColorDisabled}}},[`${Ne}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ne}-simple-pager`]:{color:Oe.colorTextDisabled},[`${Ne}-jump-prev, ${Ne}-jump-next`]:{[`${Ne}-item-link-icon`]:{opacity:0},[`${Ne}-item-ellipsis`]:{opacity:1}}},[`&${Ne}-simple`]:{[`${Ne}-prev, ${Ne}-next`]:{[`&${Ne}-disabled ${Ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},On=Oe=>{const{componentCls:Ne}=Oe;return{[`&${Ne}-mini ${Ne}-total-text, &${Ne}-mini ${Ne}-simple-pager`]:{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`},[`&${Ne}-mini ${Ne}-item`]:{minWidth:Oe.itemSizeSM,height:Oe.itemSizeSM,margin:0,lineHeight:`${Oe.itemSizeSM-2}px`},[`&${Ne}-mini:not(${Ne}-disabled) ${Ne}-item:not(${Ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive}},[`&${Ne}-mini ${Ne}-prev, &${Ne}-mini ${Ne}-next`]:{minWidth:Oe.itemSizeSM,height:Oe.itemSizeSM,margin:0,lineHeight:`${Oe.itemSizeSM}px`},[`&${Ne}-mini:not(${Ne}-disabled)`]:{[`${Ne}-prev, ${Ne}-next`]:{[`&:hover ${Ne}-item-link`]:{backgroundColor:Oe.colorBgTextHover},[`&:active ${Ne}-item-link`]:{backgroundColor:Oe.colorBgTextActive},[`&${Ne}-disabled:hover ${Ne}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Ne}-mini ${Ne}-prev ${Ne}-item-link,
&${Ne}-mini ${Ne}-next ${Ne}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`}},[`&${Ne}-mini ${Ne}-jump-prev, &${Ne}-mini ${Ne}-jump-next`]:{height:Oe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Oe.itemSizeSM}px`},[`&${Ne}-mini ${Ne}-options`]:{marginInlineStart:Oe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Oe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,$e.x0)(Oe)),{width:Oe.paginationMiniQuickJumperInputWidth,height:Oe.controlHeightSM})}}}},_e=Oe=>{const{componentCls:Ne}=Oe;return{[`
&${Ne}-simple ${Ne}-prev,
&${Ne}-simple ${Ne}-next
`]:{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`,verticalAlign:"top",[`${Ne}-item-link`]:{height:Oe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive},"&::after":{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`}}},[`&${Ne}-simple ${Ne}-simple-pager`]:{display:"inline-block",height:Oe.itemSizeSM,marginInlineEnd:Oe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Oe.marginXS,padding:`0 ${Oe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Oe.itemInputBg,border:`${Oe.lineWidth}px ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadius,outline:"none",transition:`border-color ${Oe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Oe.colorPrimary},"&:focus":{borderColor:Oe.colorPrimaryHover,boxShadow:`${Oe.inputOutlineOffset}px 0 ${Oe.controlOutlineWidth}px ${Oe.controlOutline}`},"&[disabled]":{color:Oe.colorTextDisabled,backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,cursor:"not-allowed"}}}}},ct=Oe=>{const{componentCls:Ne}=Oe;return{[`${Ne}-jump-prev, ${Ne}-jump-next`]:{outline:0,[`${Ne}-item-container`]:{position:"relative",[`${Ne}-item-link-icon`]:{color:Oe.colorPrimary,fontSize:Oe.fontSizeSM,opacity:0,transition:`all ${Oe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ne}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Oe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Oe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Oe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Oe.motionDurationMid}`}},"&:hover":{[`${Ne}-item-link-icon`]:{opacity:1},[`${Ne}-item-ellipsis`]:{opacity:0}}},[`
${Ne}-prev,
${Ne}-jump-prev,
${Ne}-jump-next
`]:{marginInlineEnd:Oe.marginXS},[`
${Ne}-prev,
${Ne}-next,
${Ne}-jump-prev,
${Ne}-jump-next
`]:{display:"inline-block",minWidth:Oe.itemSize,height:Oe.itemSize,color:Oe.colorText,fontFamily:Oe.fontFamily,lineHeight:`${Oe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Oe.borderRadius,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`},[`${Ne}-prev, ${Ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Oe.colorText,cursor:"pointer",userSelect:"none"},[`${Ne}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Oe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Oe.lineWidth}px ${Oe.lineType} transparent`,borderRadius:Oe.borderRadius,outline:"none",transition:`all ${Oe.motionDurationMid}`},[`&:hover ${Ne}-item-link`]:{backgroundColor:Oe.colorBgTextHover},[`&:active ${Ne}-item-link`]:{backgroundColor:Oe.colorBgTextActive},[`&${Ne}-disabled:hover`]:{[`${Ne}-item-link`]:{backgroundColor:"transparent"}}},[`${Ne}-slash`]:{marginInlineEnd:Oe.paginationSlashMarginInlineEnd,marginInlineStart:Oe.paginationSlashMarginInlineStart},[`${Ne}-options`]:{display:"inline-block",marginInlineStart:Oe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Oe.controlHeight,marginInlineStart:Oe.marginXS,lineHeight:`${Oe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,$e.ik)(Oe)),{width:Oe.controlHeightLG*1.25,height:Oe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Oe.marginXS,marginInlineEnd:Oe.marginXS})}}}},kt=Oe=>{const{componentCls:Ne}=Oe;return{[`${Ne}-item`]:{display:"inline-block",minWidth:Oe.itemSize,height:Oe.itemSize,marginInlineEnd:Oe.marginXS,fontFamily:Oe.fontFamily,lineHeight:`${Oe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Oe.lineWidth}px ${Oe.lineType} transparent`,borderRadius:Oe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Oe.paginationItemPaddingInline}px`,color:Oe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ne}-item-active)`]:{"&:hover":{transition:`all ${Oe.motionDurationMid}`,backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive}},"&-active":{fontWeight:Oe.fontWeightStrong,backgroundColor:Oe.itemActiveBg,borderColor:Oe.colorPrimary,a:{color:Oe.colorPrimary},"&:hover":{borderColor:Oe.colorPrimaryHover},"&:hover a":{color:Oe.colorPrimaryHover}}}}},mt=Oe=>{const{componentCls:Ne}=Oe;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(Oe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ne}-total-text`]:{display:"inline-block",height:Oe.itemSize,marginInlineEnd:Oe.marginXS,lineHeight:`${Oe.itemSize-2}px`,verticalAlign:"middle"}}),kt(Oe)),ct(Oe)),_e(Oe)),On(Oe)),Zt(Oe)),{[`@media only screen and (max-width: ${Oe.screenLG}px)`]:{[`${Ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Oe.screenSM}px)`]:{[`${Ne}-options`]:{display:"none"}}}),[`&${Oe.componentCls}-rtl`]:{direction:"rtl"}}},It=Oe=>{const{componentCls:Ne}=Oe;return{[`${Ne}${Ne}-disabled:not(${Ne}-mini)`]:{"&, &:hover":{[`${Ne}-item-link`]:{borderColor:Oe.colorBorder}},"&:focus-visible":{[`${Ne}-item-link`]:{borderColor:Oe.colorBorder}},[`${Ne}-item, ${Ne}-item-link`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,[`&:hover:not(${Ne}-item-active)`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,a:{color:Oe.colorTextDisabled}},[`&${Ne}-item-active`]:{backgroundColor:Oe.itemActiveBgDisabled}},[`${Ne}-prev, ${Ne}-next`]:{"&:hover button":{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,color:Oe.colorTextDisabled},[`${Ne}-item-link`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder}}},[`${Ne}:not(${Ne}-mini)`]:{[`${Ne}-prev, ${Ne}-next`]:{"&:hover button":{borderColor:Oe.colorPrimaryHover,backgroundColor:Oe.itemBg},[`${Ne}-item-link`]:{backgroundColor:Oe.itemLinkBg,borderColor:Oe.colorBorder},[`&:hover ${Ne}-item-link`]:{borderColor:Oe.colorPrimary,backgroundColor:Oe.itemBg,color:Oe.colorPrimary},[`&${Ne}-disabled`]:{[`${Ne}-item-link`]:{borderColor:Oe.colorBorder,color:Oe.colorTextDisabled}}},[`${Ne}-item`]:{backgroundColor:Oe.itemBg,border:`${Oe.lineWidth}px ${Oe.lineType} ${Oe.colorBorder}`,[`&:hover:not(${Ne}-item-active)`]:{borderColor:Oe.colorPrimary,backgroundColor:Oe.itemBg,a:{color:Oe.colorPrimary}},"&-active":{borderColor:Oe.colorPrimary}}}}},ut=Oe=>{const{componentCls:Ne}=Oe;return{[`${Ne}:not(${Ne}-disabled)`]:{[`${Ne}-item`]:Object.assign({},(0,dt.Qy)(Oe)),[`${Ne}-jump-prev, ${Ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ne}-item-link-icon`]:{opacity:1},[`${Ne}-item-ellipsis`]:{opacity:0}},(0,dt.oN)(Oe))},[`${Ne}-prev, ${Ne}-next`]:{[`&:focus-visible ${Ne}-item-link`]:Object.assign({},(0,dt.oN)(Oe))}}}};var at=(0,on.Z)("Pagination",Oe=>{const Ne=(0,Yn.TS)(Oe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Oe.marginXXS/2,paginationMiniQuickJumperInputWidth:Oe.controlHeightLG*1.1,paginationItemPaddingInline:Oe.marginXXS*1.5,paginationEllipsisLetterSpacing:Oe.marginXXS/2,paginationSlashMarginInlineStart:Oe.marginXXS,paginationSlashMarginInlineEnd:Oe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,$e.e5)(Oe),(0,$e.TM)(Oe));return[mt(Ne),ut(Ne),Oe.wireframe&&It(Ne)]},Oe=>({itemBg:Oe.colorBgContainer,itemSize:Oe.controlHeight,itemSizeSM:Oe.controlHeightSM,itemActiveBg:Oe.colorBgContainer,itemLinkBg:Oe.colorBgContainer,itemActiveColorDisabled:Oe.colorTextDisabled,itemActiveBgDisabled:Oe.controlItemBgActiveDisabled,itemInputBg:Oe.colorBgContainer,miniOptionsSizeChangerTop:0})),Ie=function(Oe,Ne){var Ct={};for(var tt in Oe)Object.prototype.hasOwnProperty.call(Oe,tt)&&Ne.indexOf(tt)<0&&(Ct[tt]=Oe[tt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,tt=Object.getOwnPropertySymbols(Oe);ke<tt.length;ke++)Ne.indexOf(tt[ke])<0&&Object.prototype.propertyIsEnumerable.call(Oe,tt[ke])&&(Ct[tt[ke]]=Oe[tt[ke]]);return Ct},qe=Oe=>{const{prefixCls:Ne,selectPrefixCls:Ct,className:tt,rootClassName:ke,style:ht,size:Sn,locale:rn,selectComponentClass:an,responsive:mn,showSizeChanger:cn}=Oe,Te=Ie(Oe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ft}=(0,ft.Z)(mn),{getPrefixCls:zt,direction:wt,pagination:Rt={}}=de.useContext(lt.E_),un=zt("pagination",Ne),[dn,_n]=at(un),Vn=cn!=null?cn:Rt.showSizeChanger,va=de.useMemo(()=>{const jn=de.createElement("span",{className:`${un}-item-ellipsis`},"\u2022\u2022\u2022"),Qn=de.createElement("button",{className:`${un}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?de.createElement(We.Z,null):de.createElement(Ve.Z,null)),Ia=de.createElement("button",{className:`${un}-item-link`,type:"button",tabIndex:-1},wt==="rtl"?de.createElement(Ve.Z,null):de.createElement(We.Z,null)),Ge=de.createElement("a",{className:`${un}-item-link`},de.createElement("div",{className:`${un}-item-container`},wt==="rtl"?de.createElement(et.Z,{className:`${un}-item-link-icon`}):de.createElement(st,{className:`${un}-item-link-icon`}),jn)),Ot=de.createElement("a",{className:`${un}-item-link`},de.createElement("div",{className:`${un}-item-container`},wt==="rtl"?de.createElement(st,{className:`${un}-item-link-icon`}):de.createElement(et.Z,{className:`${un}-item-link-icon`}),jn));return{prevIcon:Qn,nextIcon:Ia,jumpPrevIcon:Ge,jumpNextIcon:Ot}},[wt,un]),[La]=(0,ln.Z)("Pagination",ot.Z),Na=Object.assign(Object.assign({},La),rn),rr=(0,gt.Z)(Sn),Ka=rr==="small"||!!(Ft&&!rr&&mn),Ea=zt("select",Ct),yr=Ye()({[`${un}-mini`]:Ka,[`${un}-rtl`]:wt==="rtl"},Rt==null?void 0:Rt.className,tt,ke,_n),Xt=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ht);return dn(de.createElement(Le,Object.assign({},va,Te,{style:Xt,prefixCls:un,selectPrefixCls:Ea,className:yr,selectComponentClass:an||(Ka?nn:En),locale:Na,showSizeChanger:Vn})))},At=qe},39722:function(Qt,Gt,ee){"use strict";ee.d(Gt,{t5:function(){return Ve}});var b=ee(92310),de=ee.n(b),Be=ee(55477),Ae=ee(59301),ze=ee(36355),Me=ee(77578),le=ee(17356),st=function(Je,Ye){var se={};for(var E in Je)Object.prototype.hasOwnProperty.call(Je,E)&&Ye.indexOf(E)<0&&(se[E]=Je[E]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(Je);a<E.length;a++)Ye.indexOf(E[a])<0&&Object.prototype.propertyIsEnumerable.call(Je,E[a])&&(se[E[a]]=Je[E[a]]);return se};const et=(Je,Ye,se)=>{if(!(!Ye&&!se))return Ae.createElement(Ae.Fragment,null,Ye&&Ae.createElement("div",{className:`${Je}-title`},(0,Me.Z)(Ye)),Ae.createElement("div",{className:`${Je}-inner-content`},(0,Me.Z)(se)))},Ve=Je=>{const{hashId:Ye,prefixCls:se,className:E,style:a,placement:x="top",title:y,content:z,children:ne}=Je;return Ae.createElement("div",{className:de()(Ye,se,`${se}-pure`,`${se}-placement-${x}`,E),style:a},Ae.createElement("div",{className:`${se}-arrow`}),Ae.createElement(Be.G,Object.assign({},Je,{className:Ye,prefixCls:se}),ne||et(se,y,z)))},We=Je=>{const{prefixCls:Ye}=Je,se=st(Je,["prefixCls"]),{getPrefixCls:E}=Ae.useContext(ze.E_),a=E("popover",Ye),[x,y]=(0,le.Z)(a);return x(Ae.createElement(Ve,Object.assign({},se,{prefixCls:a,hashId:y})))};Gt.ZP=We},60324:function(Qt,Gt,ee){"use strict";var b=ee(92310),de=ee.n(b),Be=ee(59301),Ae=ee(77578),ze=ee(62892),Me=ee(36355),le=ee(6848),st=ee(39722),et=ee(17356),Ve=function(Ye,se){var E={};for(var a in Ye)Object.prototype.hasOwnProperty.call(Ye,a)&&se.indexOf(a)<0&&(E[a]=Ye[a]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ye);x<a.length;x++)se.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(Ye,a[x])&&(E[a[x]]=Ye[a[x]]);return E};const We=Ye=>{let{title:se,content:E,prefixCls:a}=Ye;return Be.createElement(Be.Fragment,null,se&&Be.createElement("div",{className:`${a}-title`},(0,Ae.Z)(se)),Be.createElement("div",{className:`${a}-inner-content`},(0,Ae.Z)(E)))},Je=Be.forwardRef((Ye,se)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:ne="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ue=.1,overlayStyle:ie={}}=Ye,ve=Ve(Ye,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:be}=Be.useContext(Me.E_),je=be("popover",E),[De,He]=(0,et.Z)(je),he=be(),Xe=de()(y,He);return De(Be.createElement(le.Z,Object.assign({placement:z,trigger:ne,mouseEnterDelay:re,mouseLeaveDelay:ue,overlayStyle:ie},ve,{prefixCls:je,overlayClassName:Xe,ref:se,overlay:a||x?Be.createElement(We,{prefixCls:je,title:a,content:x}):null,transitionName:(0,ze.m)(he,"zoom-big",ve.transitionName),"data-popover-inject":!0})))});Je._InternalPanelDoNotUseOrYouWillBeFired=st.ZP,Gt.Z=Je},17356:function(Qt,Gt,ee){"use strict";var b=ee(17313),de=ee(29878),Be=ee(19447),Ae=ee(33166),ze=ee(83116),Me=ee(37613);const le=Ve=>{const{componentCls:We,popoverColor:Je,minWidth:Ye,fontWeightStrong:se,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:ne,colorBgElevated:re,popoverBg:ue}=Ve;return[{[We]:Object.assign(Object.assign({},(0,b.Wf)(Ve)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${We}-content`]:{position:"relative"},[`${We}-inner`]:{backgroundColor:ue,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${We}-title`]:{minWidth:Ye,marginBottom:ne,color:x,fontWeight:se},[`${We}-inner-content`]:{color:Je}})},(0,Be.ZP)(Ve,{colorBg:"var(--antd-arrow-background-color)"}),{[`${We}-pure`]:{position:"relative",maxWidth:"none",margin:Ve.sizePopupArrow,display:"inline-block",[`${We}-content`]:{display:"inline-block"}}}]},st=Ve=>{const{componentCls:We}=Ve;return{[We]:Ae.i.map(Je=>{const Ye=Ve[`${Je}6`];return{[`&${We}-${Je}`]:{"--antd-arrow-background-color":Ye,[`${We}-inner`]:{backgroundColor:Ye},[`${We}-arrow`]:{background:"transparent"}}}})}},et=Ve=>{const{componentCls:We,lineWidth:Je,lineType:Ye,colorSplit:se,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=Ve,ne=a-Math.round(x*y),re=ne/2,ue=ne/2-Je,ie=z;return{[We]:{[`${We}-inner`]:{padding:0},[`${We}-title`]:{margin:0,padding:`${re}px ${ie}px ${ue}px`,borderBottom:`${Je}px ${Ye} ${se}`},[`${We}-inner-content`]:{padding:`${E}px ${ie}px`}}}};Gt.Z=(0,ze.Z)("Popover",Ve=>{const{colorBgElevated:We,colorText:Je,wireframe:Ye}=Ve,se=(0,Me.TS)(Ve,{popoverPadding:12,popoverBg:We,popoverColor:Je});return[le(se),st(se),Ye&&et(se),(0,de._y)(se,"zoom-big")]},Ve=>({width:177,minWidth:177,zIndexPopup:Ve.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93948:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return cn}});var b=ee(59301),de=ee(29679),Be=ee(40001),Ae=ee(19248),ze=ee(99267),Me=ee(92310),le=ee.n(Me),st=ee(2738),et=ee(36355),Ve=ee(92413),We=ee(33708),Je=ee(37061),Ye={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},se=function(){var Ft=(0,b.useRef)([]),zt=(0,b.useRef)(null);return(0,b.useEffect)(function(){var wt=Date.now(),Rt=!1;Ft.current.forEach(function(un){if(un){Rt=!0;var dn=un.style;dn.transitionDuration=".3s, .3s, .3s, .06s",zt.current&&wt-zt.current<100&&(dn.transitionDuration="0s, 0s")}}),Rt&&(zt.current=Date.now())}),Ft.current},E=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],a=function(Ft){var zt=(0,We.Z)((0,We.Z)({},Ye),Ft),wt=zt.className,Rt=zt.percent,un=zt.prefixCls,dn=zt.strokeColor,_n=zt.strokeLinecap,Vn=zt.strokeWidth,va=zt.style,La=zt.trailColor,Na=zt.trailWidth,rr=zt.transition,Ka=(0,Je.Z)(zt,E);delete Ka.gapPosition;var Ea=Array.isArray(Rt)?Rt:[Rt],yr=Array.isArray(dn)?dn:[dn],Xt=se(),jn=Vn/2,Qn=100-Vn/2,Ia="M ".concat(_n==="round"?jn:0,",").concat(jn,`
L `).concat(_n==="round"?Qn:100,",").concat(jn),Ge="0 0 100 ".concat(Vn),Ot=0;return b.createElement("svg",(0,Ve.Z)({className:le()("".concat(un,"-line"),wt),viewBox:Ge,preserveAspectRatio:"none",style:va},Ka),b.createElement("path",{className:"".concat(un,"-line-trail"),d:Ia,strokeLinecap:_n,stroke:La,strokeWidth:Na||Vn,fillOpacity:"0"}),Ea.map(function(_t,Vt){var Wt=1;switch(_n){case"round":Wt=1-Vn/100;break;case"square":Wt=1-Vn/2/100;break;default:Wt=1;break}var Nn={strokeDasharray:"".concat(_t*Wt,"px, 100px"),strokeDashoffset:"-".concat(Ot,"px"),transition:rr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Bn=yr[Vt]||yr[yr.length-1];return Ot+=_t,b.createElement("path",{key:Vt,className:"".concat(un,"-line-path"),d:Ia,strokeLinecap:_n,stroke:Bn,strokeWidth:Vn,fillOpacity:"0",ref:function(Bt){Xt[Vt]=Bt},style:Nn})}))},x=a,y=ee(39559),z=ee(33606),ne=ee(47273),re=0,ue=(0,ne.Z)();function ie(){var Te;return ue?(Te=re,re+=1):Te="TEST_OR_SSR",Te}var ve=function(Te){var Ft=b.useState(),zt=(0,z.Z)(Ft,2),wt=zt[0],Rt=zt[1];return b.useEffect(function(){Rt("rc_progress_".concat(ie()))},[]),Te||wt},be=function(Ft){var zt=Ft.bg,wt=Ft.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:zt}},wt)};function je(Te,Ft){return Object.keys(Te).map(function(zt){var wt=parseFloat(zt),Rt="".concat(Math.floor(wt*Ft),"%");return"".concat(Te[zt]," ").concat(Rt)})}var De=b.forwardRef(function(Te,Ft){var zt=Te.prefixCls,wt=Te.color,Rt=Te.gradientId,un=Te.radius,dn=Te.style,_n=Te.ptg,Vn=Te.strokeLinecap,va=Te.strokeWidth,La=Te.size,Na=Te.gapDegree,rr=wt&&(0,y.Z)(wt)==="object",Ka=rr?"#FFF":void 0,Ea=La/2,yr=b.createElement("circle",{className:"".concat(zt,"-circle-path"),r:un,cx:Ea,cy:Ea,stroke:Ka,strokeLinecap:Vn,strokeWidth:va,opacity:_n===0?0:1,style:dn,ref:Ft});if(!rr)return yr;var Xt="".concat(Rt,"-conic"),jn=Na?"".concat(180+Na/2,"deg"):"0deg",Qn=je(wt,(360-Na)/360),Ia=je(wt,1),Ge="conic-gradient(from ".concat(jn,", ").concat(Qn.join(", "),")"),Ot="linear-gradient(to ".concat(Na?"bottom":"top",", ").concat(Ia.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:Xt},yr),b.createElement("foreignObject",{x:0,y:0,width:La,height:La,mask:"url(#".concat(Xt,")")},b.createElement(be,{bg:Ot},b.createElement(be,{bg:Ge}))))}),He=De,he=100,Xe=function(Ft,zt,wt,Rt,un,dn,_n,Vn,va,La){var Na=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rr=wt/100*360*((360-dn)/360),Ka=dn===0?0:{bottom:0,top:180,left:90,right:-90}[_n],Ea=(100-Rt)/100*zt;va==="round"&&Rt!==100&&(Ea+=La/2,Ea>=zt&&(Ea=zt-.01));var yr=he/2;return{stroke:typeof Vn=="string"?Vn:void 0,strokeDasharray:"".concat(zt,"px ").concat(Ft),strokeDashoffset:Ea+Na,transform:"rotate(".concat(un+rr+Ka,"deg)"),transformOrigin:"".concat(yr,"px ").concat(yr,"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}},Ke=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function St(Te){var Ft=Te!=null?Te:[];return Array.isArray(Ft)?Ft:[Ft]}var Le=function(Ft){var zt=(0,We.Z)((0,We.Z)({},Ye),Ft),wt=zt.id,Rt=zt.prefixCls,un=zt.steps,dn=zt.strokeWidth,_n=zt.trailWidth,Vn=zt.gapDegree,va=Vn===void 0?0:Vn,La=zt.gapPosition,Na=zt.trailColor,rr=zt.strokeLinecap,Ka=zt.style,Ea=zt.className,yr=zt.strokeColor,Xt=zt.percent,jn=(0,Je.Z)(zt,Ke),Qn=he/2,Ia=ve(wt),Ge="".concat(Ia,"-gradient"),Ot=Qn-dn/2,_t=Math.PI*2*Ot,Vt=va>0?90+va/2:-90,Wt=_t*((360-va)/360),Nn=(0,y.Z)(un)==="object"?un:{count:un,space:2},Bn=Nn.count,vt=Nn.space,Bt=St(Xt),pt=St(yr),vn=pt.find(function(ba){return ba&&(0,y.Z)(ba)==="object"}),Hn=vn&&(0,y.Z)(vn)==="object",In=Hn?"butt":rr,Ta=Xe(_t,Wt,0,100,Vt,va,La,Na,In,dn),Pa=se(),Rn=function(){var wn=0;return Bt.map(function(mr,Er){var Jr=pt[Er]||pt[pt.length-1],pr=Xe(_t,Wt,wn,mr,Vt,va,La,Jr,In,dn);return wn+=mr,b.createElement(He,{key:Er,color:Jr,ptg:mr,radius:Ot,prefixCls:Rt,gradientId:Ge,style:pr,strokeLinecap:In,strokeWidth:dn,gapDegree:va,ref:function(Pn){Pa[Er]=Pn},size:he})}).reverse()},ya=function(){var wn=Math.round(Bn*(Bt[0]/100)),mr=100/Bn,Er=0;return new Array(Bn).fill(null).map(function(Jr,pr){var Qe=pr<=wn-1?pt[0]:Na,Pn=Qe&&(0,y.Z)(Qe)==="object"?"url(#".concat(Ge,")"):void 0,qt=Xe(_t,Wt,Er,mr,Vt,va,La,Qe,"butt",dn,vt);return Er+=(Wt-qt.strokeDashoffset+vt)*100/Wt,b.createElement("circle",{key:pr,className:"".concat(Rt,"-circle-path"),r:Ot,cx:Qn,cy:Qn,stroke:Pn,strokeWidth:dn,opacity:1,style:qt,ref:function(Gn){Pa[pr]=Gn}})})};return b.createElement("svg",(0,Ve.Z)({className:le()("".concat(Rt,"-circle"),Ea),viewBox:"0 0 ".concat(he," ").concat(he),style:Ka,id:wt,role:"presentation"},jn),!Bn&&b.createElement("circle",{className:"".concat(Rt,"-circle-trail"),r:Ot,cx:Qn,cy:Qn,stroke:Na,strokeLinecap:In,strokeWidth:_n||dn,style:Ta}),Bn?ya():Rn())},ot=Le,lt={Line:x,Circle:ot},gt=ee(6848),ft=ee(93398);function ln(Te){return!Te||Te<0?0:Te>100?100:Te}function xt(Te){let{success:Ft,successPercent:zt}=Te,wt=zt;return Ft&&"progress"in Ft&&(wt=Ft.progress),Ft&&"percent"in Ft&&(wt=Ft.percent),wt}const nn=Te=>{let{percent:Ft,success:zt,successPercent:wt}=Te;const Rt=ln(xt({success:zt,successPercent:wt}));return[Rt,ln(ln(Ft)-Rt)]},En=Te=>{let{success:Ft={},strokeColor:zt}=Te;const{strokeColor:wt}=Ft;return[wt||ft.presetPrimaryColors.green,zt||null]},$e=(Te,Ft,zt)=>{var wt,Rt,un,dn;let _n=-1,Vn=-1;if(Ft==="step"){const va=zt.steps,La=zt.strokeWidth;typeof Te=="string"||typeof Te=="undefined"?(_n=Te==="small"?2:14,Vn=La!=null?La:8):typeof Te=="number"?[_n,Vn]=[Te,Te]:[_n=14,Vn=8]=Te,_n*=va}else if(Ft==="line"){const va=zt==null?void 0:zt.strokeWidth;typeof Te=="string"||typeof Te=="undefined"?Vn=va||(Te==="small"?6:8):typeof Te=="number"?[_n,Vn]=[Te,Te]:[_n=-1,Vn=8]=Te}else(Ft==="circle"||Ft==="dashboard")&&(typeof Te=="string"||typeof Te=="undefined"?[_n,Vn]=Te==="small"?[60,60]:[120,120]:typeof Te=="number"?[_n,Vn]=[Te,Te]:(_n=(Rt=(wt=Te[0])!==null&&wt!==void 0?wt:Te[1])!==null&&Rt!==void 0?Rt:120,Vn=(dn=(un=Te[0])!==null&&un!==void 0?un:Te[1])!==null&&dn!==void 0?dn:120));return[_n,Vn]},dt=3,on=Te=>dt/Te*100;var Zt=Te=>{const{prefixCls:Ft,trailColor:zt=null,strokeLinecap:wt="round",gapPosition:Rt,gapDegree:un,width:dn=120,type:_n,children:Vn,success:va,size:La=dn}=Te,[Na,rr]=$e(La,"circle");let{strokeWidth:Ka}=Te;Ka===void 0&&(Ka=Math.max(on(Na),6));const Ea={width:Na,height:rr,fontSize:Na*.15+6},yr=b.useMemo(()=>{if(un||un===0)return un;if(_n==="dashboard")return 75},[un,_n]),Xt=Rt||_n==="dashboard"&&"bottom"||void 0,jn=Object.prototype.toString.call(Te.strokeColor)==="[object Object]",Qn=En({success:va,strokeColor:Te.strokeColor}),Ia=le()(`${Ft}-inner`,{[`${Ft}-circle-gradient`]:jn}),Ge=b.createElement(ot,{percent:nn(Te),strokeWidth:Ka,trailWidth:Ka,strokeColor:Qn,strokeLinecap:wt,trailColor:zt,prefixCls:Ft,gapDegree:yr,gapPosition:Xt});return b.createElement("div",{className:Ia,style:Ea},Na<=20?b.createElement(gt.Z,{title:Vn},b.createElement("span",null,Ge)):b.createElement(b.Fragment,null,Ge,Vn))},On=function(Te,Ft){var zt={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&&Ft.indexOf(wt)<0&&(zt[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,wt=Object.getOwnPropertySymbols(Te);Rt<wt.length;Rt++)Ft.indexOf(wt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Te,wt[Rt])&&(zt[wt[Rt]]=Te[wt[Rt]]);return zt};const _e=Te=>{let Ft=[];return Object.keys(Te).forEach(zt=>{const wt=parseFloat(zt.replace(/%/g,""));isNaN(wt)||Ft.push({key:wt,value:Te[zt]})}),Ft=Ft.sort((zt,wt)=>zt.key-wt.key),Ft.map(zt=>{let{key:wt,value:Rt}=zt;return`${Rt} ${wt}%`}).join(", ")},ct=(Te,Ft)=>{const{from:zt=ft.presetPrimaryColors.blue,to:wt=ft.presetPrimaryColors.blue,direction:Rt=Ft==="rtl"?"to left":"to right"}=Te,un=On(Te,["from","to","direction"]);if(Object.keys(un).length!==0){const dn=_e(un);return{backgroundImage:`linear-gradient(${Rt}, ${dn})`}}return{backgroundImage:`linear-gradient(${Rt}, ${zt}, ${wt})`}};var mt=Te=>{const{prefixCls:Ft,direction:zt,percent:wt,size:Rt,strokeWidth:un,strokeColor:dn,strokeLinecap:_n="round",children:Vn,trailColor:va=null,success:La}=Te,Na=dn&&typeof dn!="string"?ct(dn,zt):{backgroundColor:dn},rr=_n==="square"||_n==="butt"?0:void 0,Ka={backgroundColor:va||void 0,borderRadius:rr},Ea=Rt!=null?Rt:[-1,un||(Rt==="small"?6:8)],[yr,Xt]=$e(Ea,"line",{strokeWidth:un}),jn=Object.assign({width:`${ln(wt)}%`,height:Xt,borderRadius:rr},Na),Qn=xt(Te),Ia={width:`${ln(Qn)}%`,height:Xt,borderRadius:rr,backgroundColor:La==null?void 0:La.strokeColor},Ge={width:yr<0?"100%":yr,height:Xt};return b.createElement(b.Fragment,null,b.createElement("div",{className:`${Ft}-outer`,style:Ge},b.createElement("div",{className:`${Ft}-inner`,style:Ka},b.createElement("div",{className:`${Ft}-bg`,style:jn}),Qn!==void 0?b.createElement("div",{className:`${Ft}-success-bg`,style:Ia}):null)),Vn)},ut=Te=>{const{size:Ft,steps:zt,percent:wt=0,strokeWidth:Rt=8,strokeColor:un,trailColor:dn=null,prefixCls:_n,children:Vn}=Te,va=Math.round(zt*(wt/100)),La=Ft==="small"?2:14,Na=Ft!=null?Ft:[La,Rt],[rr,Ka]=$e(Na,"step",{steps:zt,strokeWidth:Rt}),Ea=rr/zt,yr=new Array(zt);for(let Xt=0;Xt<zt;Xt++){const jn=Array.isArray(un)?un[Xt]:un;yr[Xt]=b.createElement("div",{key:Xt,className:le()(`${_n}-steps-item`,{[`${_n}-steps-item-active`]:Xt<=va-1}),style:{backgroundColor:Xt<=va-1?jn:dn,width:Ea,height:Ka}})}return b.createElement("div",{className:`${_n}-steps-outer`},yr,Vn)},at=ee(93083),Ie=ee(17313),fe=ee(83116),qe=ee(37613);const At=Te=>{const Ft=Te?"100%":"-100%";return new at.Keyframes(`antProgress${Te?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ft}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ft}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Oe=Te=>{const{componentCls:Ft,iconCls:zt}=Te;return{[Ft]:Object.assign(Object.assign({},(0,Ie.Wf)(Te)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Te.fontSize,marginInlineEnd:Te.marginXS,marginBottom:Te.marginXS},[`${Ft}-outer`]:{display:"inline-block",width:"100%"},[`&${Ft}-show-info`]:{[`${Ft}-outer`]:{marginInlineEnd:`calc(-2em - ${Te.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Te.paddingXS}px)`}},[`${Ft}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Te.remainingColor,borderRadius:Te.lineBorderRadius},[`${Ft}-inner:not(${Ft}-circle-gradient)`]:{[`${Ft}-circle-path`]:{stroke:Te.defaultColor}},[`${Ft}-success-bg, ${Ft}-bg`]:{position:"relative",backgroundColor:Te.defaultColor,borderRadius:Te.lineBorderRadius,transition:`all ${Te.motionDurationSlow} ${Te.motionEaseInOutCirc}`},[`${Ft}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Te.colorSuccess},[`${Ft}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Te.marginXS,color:Te.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[zt]:{fontSize:Te.fontSize}},[`&${Ft}-status-active`]:{[`${Ft}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Te.colorBgContainer,borderRadius:Te.lineBorderRadius,opacity:0,animationName:At(),animationDuration:Te.progressActiveMotionDuration,animationTimingFunction:Te.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ft}-rtl${Ft}-status-active`]:{[`${Ft}-bg::before`]:{animationName:At(!0)}},[`&${Ft}-status-exception`]:{[`${Ft}-bg`]:{backgroundColor:Te.colorError},[`${Ft}-text`]:{color:Te.colorError}},[`&${Ft}-status-exception ${Ft}-inner:not(${Ft}-circle-gradient)`]:{[`${Ft}-circle-path`]:{stroke:Te.colorError}},[`&${Ft}-status-success`]:{[`${Ft}-bg`]:{backgroundColor:Te.colorSuccess},[`${Ft}-text`]:{color:Te.colorSuccess}},[`&${Ft}-status-success ${Ft}-inner:not(${Ft}-circle-gradient)`]:{[`${Ft}-circle-path`]:{stroke:Te.colorSuccess}}})}},Ne=Te=>{const{componentCls:Ft,iconCls:zt}=Te;return{[Ft]:{[`${Ft}-circle-trail`]:{stroke:Te.remainingColor},[`&${Ft}-circle ${Ft}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ft}-circle ${Ft}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Te.circleTextColor,fontSize:Te.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[zt]:{fontSize:`${Te.fontSize/Te.fontSizeSM}em`}},[`${Ft}-circle&-status-exception`]:{[`${Ft}-text`]:{color:Te.colorError}},[`${Ft}-circle&-status-success`]:{[`${Ft}-text`]:{color:Te.colorSuccess}}},[`${Ft}-inline-circle`]:{lineHeight:1,[`${Ft}-inner`]:{verticalAlign:"bottom"}}}},Ct=Te=>{const{componentCls:Ft}=Te;return{[Ft]:{[`${Ft}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Te.progressStepMinWidth,marginInlineEnd:Te.progressStepMarginInlineEnd,backgroundColor:Te.remainingColor,transition:`all ${Te.motionDurationSlow}`,"&-active":{backgroundColor:Te.defaultColor}}}}}},tt=Te=>{const{componentCls:Ft,iconCls:zt}=Te;return{[Ft]:{[`${Ft}-small&-line, ${Ft}-small&-line ${Ft}-text ${zt}`]:{fontSize:Te.fontSizeSM}}}};var ke=(0,fe.Z)("Progress",Te=>{const Ft=Te.marginXXS/2,zt=(0,qe.TS)(Te,{progressStepMarginInlineEnd:Ft,progressStepMinWidth:Ft,progressActiveMotionDuration:"2.4s"});return[Oe(zt),Ne(zt),Ct(zt),tt(zt)]},Te=>({circleTextColor:Te.colorText,defaultColor:Te.colorInfo,remainingColor:Te.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ht=function(Te,Ft){var zt={};for(var wt in Te)Object.prototype.hasOwnProperty.call(Te,wt)&&Ft.indexOf(wt)<0&&(zt[wt]=Te[wt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,wt=Object.getOwnPropertySymbols(Te);Rt<wt.length;Rt++)Ft.indexOf(wt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Te,wt[Rt])&&(zt[wt[Rt]]=Te[wt[Rt]]);return zt};const Sn=null,rn=["normal","exception","active","success"];var mn=b.forwardRef((Te,Ft)=>{const{prefixCls:zt,className:wt,rootClassName:Rt,steps:un,strokeColor:dn,percent:_n=0,size:Vn="default",showInfo:va=!0,type:La="line",status:Na,format:rr,style:Ka}=Te,Ea=ht(Te,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),yr=b.useMemo(()=>{var Bt,pt;const vn=xt(Te);return parseInt(vn!==void 0?(Bt=vn!=null?vn:0)===null||Bt===void 0?void 0:Bt.toString():(pt=_n!=null?_n:0)===null||pt===void 0?void 0:pt.toString(),10)},[_n,Te.success,Te.successPercent]),Xt=b.useMemo(()=>!rn.includes(Na)&&yr>=100?"success":Na||"normal",[Na,yr]),{getPrefixCls:jn,direction:Qn,progress:Ia}=b.useContext(et.E_),Ge=jn("progress",zt),[Ot,_t]=ke(Ge),Vt=b.useMemo(()=>{if(!va)return null;const Bt=xt(Te);let pt;const vn=rr||(In=>`${In}%`),Hn=La==="line";return rr||Xt!=="exception"&&Xt!=="success"?pt=vn(ln(_n),ln(Bt)):Xt==="exception"?pt=Hn?b.createElement(Ae.Z,null):b.createElement(ze.Z,null):Xt==="success"&&(pt=Hn?b.createElement(de.Z,null):b.createElement(Be.Z,null)),b.createElement("span",{className:`${Ge}-text`,title:typeof pt=="string"?pt:void 0},pt)},[va,_n,yr,Xt,La,Ge,rr]),Wt=Array.isArray(dn)?dn[0]:dn,Nn=typeof dn=="string"||Array.isArray(dn)?dn:void 0;let Bn;La==="line"?Bn=un?b.createElement(ut,Object.assign({},Te,{strokeColor:Nn,prefixCls:Ge,steps:un}),Vt):b.createElement(mt,Object.assign({},Te,{strokeColor:Wt,prefixCls:Ge,direction:Qn}),Vt):(La==="circle"||La==="dashboard")&&(Bn=b.createElement(Zt,Object.assign({},Te,{strokeColor:Wt,prefixCls:Ge,progressStatus:Xt}),Vt));const vt=le()(Ge,`${Ge}-status-${Xt}`,`${Ge}-${La==="dashboard"&&"circle"||un&&"steps"||La}`,{[`${Ge}-inline-circle`]:La==="circle"&&$e(Vn,"circle")[0]<=20,[`${Ge}-show-info`]:va,[`${Ge}-${Vn}`]:typeof Vn=="string",[`${Ge}-rtl`]:Qn==="rtl"},Ia==null?void 0:Ia.className,wt,Rt,_t);return Ot(b.createElement("div",Object.assign({ref:Ft,style:Object.assign(Object.assign({},Ia==null?void 0:Ia.style),Ka),className:vt,role:"progressbar","aria-valuenow":yr},(0,st.Z)(Ea,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Bn))}),cn=mn},13570:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return ln}});var b=ee(92413),de=ee(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ae=Be,ze=ee(7657),Me=function(nn,En){return de.createElement(ze.Z,(0,b.Z)({},nn,{ref:En,icon:Ae}))},le=de.forwardRef(Me),st=le,et=ee(92310),Ve=ee.n(et),We=ee(400),Je=ee(33606),Ye=ee(37061),se=ee(18929),E=ee(10228),a=ee(26112);function x(xt,nn){var En=xt.disabled,$e=xt.prefixCls,dt=xt.character,on=xt.characterRender,Yn=xt.index,Zt=xt.count,On=xt.value,_e=xt.allowHalf,ct=xt.focused,kt=xt.onHover,mt=xt.onClick,It=function(Ne){kt(Ne,Yn)},ut=function(Ne){mt(Ne,Yn)},at=function(Ne){Ne.keyCode===E.Z.ENTER&&mt(Ne,Yn)},Ie=Yn+1,fe=new Set([$e]);On===0&&Yn===0&&ct?fe.add("".concat($e,"-focused")):_e&&On+.5>=Ie&&On<Ie?(fe.add("".concat($e,"-half")),fe.add("".concat($e,"-active")),ct&&fe.add("".concat($e,"-focused"))):(Ie<=On?fe.add("".concat($e,"-full")):fe.add("".concat($e,"-zero")),Ie===On&&ct&&fe.add("".concat($e,"-focused")));var qe=typeof dt=="function"?dt(xt):dt,At=de.createElement("li",{className:Ve()(Array.from(fe)),ref:nn},de.createElement("div",{onClick:En?null:ut,onKeyDown:En?null:at,onMouseMove:En?null:It,role:"radio","aria-checked":On>Yn?"true":"false","aria-posinset":Yn+1,"aria-setsize":Zt,tabIndex:En?-1:0},de.createElement("div",{className:"".concat($e,"-first")},qe),de.createElement("div",{className:"".concat($e,"-second")},qe)));return on&&(At=on(At,xt)),At}var y=de.forwardRef(x);function z(){var xt=de.useRef({});function nn($e){return xt.current[$e]}function En($e){return function(dt){xt.current[$e]=dt}}return[nn,En]}function ne(xt){var nn=xt.pageXOffset,En="scrollLeft";if(typeof nn!="number"){var $e=xt.document;nn=$e.documentElement[En],typeof nn!="number"&&(nn=$e.body[En])}return nn}function re(xt){var nn,En,$e=xt.ownerDocument,dt=$e.body,on=$e&&$e.documentElement,Yn=xt.getBoundingClientRect();return nn=Yn.left,En=Yn.top,nn-=on.clientLeft||dt.clientLeft||0,En-=on.clientTop||dt.clientTop||0,{left:nn,top:En}}function ue(xt){var nn=re(xt),En=xt.ownerDocument,$e=En.defaultView||En.parentWindow;return nn.left+=ne($e),nn.left}var ie=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ve(xt,nn){var En,$e=xt.prefixCls,dt=$e===void 0?"rc-rate":$e,on=xt.className,Yn=xt.defaultValue,Zt=xt.value,On=xt.count,_e=On===void 0?5:On,ct=xt.allowHalf,kt=ct===void 0?!1:ct,mt=xt.allowClear,It=mt===void 0?!0:mt,ut=xt.character,at=ut===void 0?"\u2605":ut,Ie=xt.characterRender,fe=xt.disabled,qe=xt.direction,At=qe===void 0?"ltr":qe,Oe=xt.tabIndex,Ne=Oe===void 0?0:Oe,Ct=xt.autoFocus,tt=xt.onHoverChange,ke=xt.onChange,ht=xt.onFocus,Sn=xt.onBlur,rn=xt.onKeyDown,an=xt.onMouseLeave,mn=(0,Ye.Z)(xt,ie),cn=z(),Te=(0,Je.Z)(cn,2),Ft=Te[0],zt=Te[1],wt=de.useRef(null),Rt=function(){if(!fe){var In;(In=wt.current)===null||In===void 0||In.focus()}};de.useImperativeHandle(nn,function(){return{focus:Rt,blur:function(){if(!fe){var In;(In=wt.current)===null||In===void 0||In.blur()}}}});var un=(0,se.Z)(Yn||0,{value:Zt}),dn=(0,Je.Z)(un,2),_n=dn[0],Vn=dn[1],va=(0,se.Z)(null),La=(0,Je.Z)(va,2),Na=La[0],rr=La[1],Ka=function(In,Ta){var Pa=At==="rtl",Rn=In+1;if(kt){var ya=Ft(In),ba=ue(ya),wn=ya.clientWidth;(Pa&&Ta-ba>wn/2||!Pa&&Ta-ba<wn/2)&&(Rn-=.5)}return Rn},Ea=function(In){Vn(In),ke==null||ke(In)},yr=de.useState(!1),Xt=(0,Je.Z)(yr,2),jn=Xt[0],Qn=Xt[1],Ia=function(){Qn(!0),ht==null||ht()},Ge=function(){Qn(!1),Sn==null||Sn()},Ot=de.useState(null),_t=(0,Je.Z)(Ot,2),Vt=_t[0],Wt=_t[1],Nn=function(In,Ta){var Pa=Ka(Ta,In.pageX);Pa!==Na&&(Wt(Pa),rr(null)),tt==null||tt(Pa)},Bn=function(In){fe||(Wt(null),rr(null),tt==null||tt(void 0)),In&&(an==null||an(In))},vt=function(In,Ta){var Pa=Ka(Ta,In.pageX),Rn=!1;It&&(Rn=Pa===_n),Bn(),Ea(Rn?0:Pa),rr(Rn?Pa:null)},Bt=function(In){var Ta=In.keyCode,Pa=At==="rtl",Rn=_n;Ta===E.Z.RIGHT&&Rn<_e&&!Pa?(kt?Rn+=.5:Rn+=1,Ea(Rn),In.preventDefault()):Ta===E.Z.LEFT&&Rn>0&&!Pa||Ta===E.Z.RIGHT&&Rn>0&&Pa?(kt?Rn-=.5:Rn-=1,Ea(Rn),In.preventDefault()):Ta===E.Z.LEFT&&Rn<_e&&Pa&&(kt?Rn+=.5:Rn+=1,Ea(Rn),In.preventDefault()),rn==null||rn(In)};de.useEffect(function(){Ct&&!fe&&Rt()},[]);var pt=new Array(_e).fill(0).map(function(Hn,In){return de.createElement(y,{ref:zt(In),index:In,count:_e,disabled:fe,prefixCls:"".concat(dt,"-star"),allowHalf:kt,value:Vt===null?_n:Vt,onClick:vt,onHover:Nn,key:Hn||In,character:at,characterRender:Ie,focused:jn})}),vn=Ve()(dt,on,(En={},(0,We.Z)(En,"".concat(dt,"-disabled"),fe),(0,We.Z)(En,"".concat(dt,"-rtl"),At==="rtl"),En));return de.createElement("ul",(0,b.Z)({className:vn,onMouseLeave:Bn,tabIndex:fe?-1:Ne,onFocus:fe?null:Ia,onBlur:fe?null:Ge,onKeyDown:fe?null:Bt,ref:wt,role:"radiogroup"},(0,a.Z)(mn,{aria:!0,data:!0,attr:!0})),pt)}var be=de.forwardRef(ve),je=be,De=ee(36355),He=ee(6848),he=ee(17313),Xe=ee(83116),Ke=ee(37613);const St=xt=>{const{componentCls:nn}=xt;return{[`${nn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:xt.marginXS},"> div":{transition:`all ${xt.motionDurationMid}, outline 0s`,"&:hover":{transform:xt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${xt.lineWidth}px dashed ${xt.starColor}`,transform:xt.starHoverScale}},"&-first, &-second":{color:xt.starBg,transition:`all ${xt.motionDurationMid}`,userSelect:"none",[xt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${nn}-star-first, &-half ${nn}-star-second`]:{opacity:1},[`&-half ${nn}-star-first, &-full ${nn}-star-second`]:{color:"inherit"}}}},Le=xt=>({[`&-rtl${xt.componentCls}`]:{direction:"rtl"}}),ot=xt=>{const{componentCls:nn}=xt;return{[nn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(xt)),{display:"inline-block",margin:0,padding:0,color:xt.starColor,fontSize:xt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${nn} ${nn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),St(xt)),{[`+ ${nn}-text`]:{display:"inline-block",marginInlineStart:xt.marginXS,fontSize:xt.fontSize}}),Le(xt))}};var lt=(0,Xe.Z)("Rate",xt=>{const nn=(0,Ke.TS)(xt,{});return[ot(nn)]},xt=>({starColor:xt.yellow6,starSize:xt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:xt.colorFillContent})),gt=function(xt,nn){var En={};for(var $e in xt)Object.prototype.hasOwnProperty.call(xt,$e)&&nn.indexOf($e)<0&&(En[$e]=xt[$e]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,$e=Object.getOwnPropertySymbols(xt);dt<$e.length;dt++)nn.indexOf($e[dt])<0&&Object.prototype.propertyIsEnumerable.call(xt,$e[dt])&&(En[$e[dt]]=xt[$e[dt]]);return En},ln=de.forwardRef((xt,nn)=>{const{prefixCls:En,className:$e,rootClassName:dt,style:on,tooltips:Yn,character:Zt=de.createElement(st,null)}=xt,On=gt(xt,["prefixCls","className","rootClassName","style","tooltips","character"]),_e=(fe,qe)=>{let{index:At}=qe;return Yn?de.createElement(He.Z,{title:Yn[At]},fe):fe},{getPrefixCls:ct,direction:kt,rate:mt}=de.useContext(De.E_),It=ct("rate",En),[ut,at]=lt(It),Ie=Object.assign(Object.assign({},mt==null?void 0:mt.style),on);return ut(de.createElement(je,Object.assign({ref:nn,character:Zt,characterRender:_e},On,{className:Ve()($e,dt,at,mt==null?void 0:mt.className),style:Ie,prefixCls:It,direction:kt})))})},61621:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return at}});var b=ee(92310),de=ee.n(b),Be=ee(59301),Ae=ee(36355),ze=ee(2738),le=Ie=>{const{prefixCls:fe,className:qe,style:At,size:Oe,shape:Ne}=Ie,Ct=de()({[`${fe}-lg`]:Oe==="large",[`${fe}-sm`]:Oe==="small"}),tt=de()({[`${fe}-circle`]:Ne==="circle",[`${fe}-square`]:Ne==="square",[`${fe}-round`]:Ne==="round"}),ke=Be.useMemo(()=>typeof Oe=="number"?{width:Oe,height:Oe,lineHeight:`${Oe}px`}:{},[Oe]);return Be.createElement("span",{className:de()(fe,Ct,tt,qe),style:Object.assign(Object.assign({},ke),At)})},st=ee(93083),et=ee(83116),Ve=ee(37613);const We=new st.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Je=Ie=>({height:Ie,lineHeight:`${Ie}px`}),Ye=Ie=>Object.assign({width:Ie},Je(Ie)),se=Ie=>({background:Ie.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:We,animationDuration:Ie.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),E=Ie=>Object.assign({width:Ie*5,minWidth:Ie*5},Je(Ie)),a=Ie=>{const{skeletonAvatarCls:fe,gradientFromColor:qe,controlHeight:At,controlHeightLG:Oe,controlHeightSM:Ne}=Ie;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:qe},Ye(At)),[`${fe}${fe}-circle`]:{borderRadius:"50%"},[`${fe}${fe}-lg`]:Object.assign({},Ye(Oe)),[`${fe}${fe}-sm`]:Object.assign({},Ye(Ne))}},x=Ie=>{const{controlHeight:fe,borderRadiusSM:qe,skeletonInputCls:At,controlHeightLG:Oe,controlHeightSM:Ne,gradientFromColor:Ct}=Ie;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ct,borderRadius:qe},E(fe)),[`${At}-lg`]:Object.assign({},E(Oe)),[`${At}-sm`]:Object.assign({},E(Ne))}},y=Ie=>Object.assign({width:Ie},Je(Ie)),z=Ie=>{const{skeletonImageCls:fe,imageSizeBase:qe,gradientFromColor:At,borderRadiusSM:Oe}=Ie;return{[`${fe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:At,borderRadius:Oe},y(qe*2)),{[`${fe}-path`]:{fill:"#bfbfbf"},[`${fe}-svg`]:Object.assign(Object.assign({},y(qe)),{maxWidth:qe*4,maxHeight:qe*4}),[`${fe}-svg${fe}-svg-circle`]:{borderRadius:"50%"}}),[`${fe}${fe}-circle`]:{borderRadius:"50%"}}},ne=(Ie,fe,qe)=>{const{skeletonButtonCls:At}=Ie;return{[`${qe}${At}-circle`]:{width:fe,minWidth:fe,borderRadius:"50%"},[`${qe}${At}-round`]:{borderRadius:fe}}},re=Ie=>Object.assign({width:Ie*2,minWidth:Ie*2},Je(Ie)),ue=Ie=>{const{borderRadiusSM:fe,skeletonButtonCls:qe,controlHeight:At,controlHeightLG:Oe,controlHeightSM:Ne,gradientFromColor:Ct}=Ie;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ct,borderRadius:fe,width:At*2,minWidth:At*2},re(At))},ne(Ie,At,qe)),{[`${qe}-lg`]:Object.assign({},re(Oe))}),ne(Ie,Oe,`${qe}-lg`)),{[`${qe}-sm`]:Object.assign({},re(Ne))}),ne(Ie,Ne,`${qe}-sm`))},ie=Ie=>{const{componentCls:fe,skeletonAvatarCls:qe,skeletonTitleCls:At,skeletonParagraphCls:Oe,skeletonButtonCls:Ne,skeletonInputCls:Ct,skeletonImageCls:tt,controlHeight:ke,controlHeightLG:ht,controlHeightSM:Sn,gradientFromColor:rn,padding:an,marginSM:mn,borderRadius:cn,titleHeight:Te,blockRadius:Ft,paragraphLiHeight:zt,controlHeightXS:wt,paragraphMarginTop:Rt}=Ie;return{[`${fe}`]:{display:"table",width:"100%",[`${fe}-header`]:{display:"table-cell",paddingInlineEnd:an,verticalAlign:"top",[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:rn},Ye(ke)),[`${qe}-circle`]:{borderRadius:"50%"},[`${qe}-lg`]:Object.assign({},Ye(ht)),[`${qe}-sm`]:Object.assign({},Ye(Sn))},[`${fe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${At}`]:{width:"100%",height:Te,background:rn,borderRadius:Ft,[`+ ${Oe}`]:{marginBlockStart:Sn}},[`${Oe}`]:{padding:0,"> li":{width:"100%",height:zt,listStyle:"none",background:rn,borderRadius:Ft,"+ li":{marginBlockStart:wt}}},[`${Oe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${fe}-content`]:{[`${At}, ${Oe} > li`]:{borderRadius:cn}}},[`${fe}-with-avatar ${fe}-content`]:{[`${At}`]:{marginBlockStart:mn,[`+ ${Oe}`]:{marginBlockStart:Rt}}},[`${fe}${fe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ue(Ie)),a(Ie)),x(Ie)),z(Ie)),[`${fe}${fe}-block`]:{width:"100%",[`${Ne}`]:{width:"100%"},[`${Ct}`]:{width:"100%"}},[`${fe}${fe}-active`]:{[`
${At},
${Oe} > li,
${qe},
${Ne},
${Ct},
${tt}
`]:Object.assign({},se(Ie))}}};var ve=(0,et.Z)("Skeleton",Ie=>{const{componentCls:fe}=Ie,qe=(0,Ve.TS)(Ie,{skeletonAvatarCls:`${fe}-avatar`,skeletonTitleCls:`${fe}-title`,skeletonParagraphCls:`${fe}-paragraph`,skeletonButtonCls:`${fe}-button`,skeletonInputCls:`${fe}-input`,skeletonImageCls:`${fe}-image`,imageSizeBase:Ie.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ie.gradientFromColor} 25%, ${Ie.gradientToColor} 37%, ${Ie.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ie(qe)]},Ie=>{const{colorFillContent:fe,colorFill:qe}=Ie,At=fe,Oe=qe;return{color:At,colorGradientEnd:Oe,gradientFromColor:At,gradientToColor:Oe,titleHeight:Ie.controlHeight/2,blockRadius:Ie.borderRadiusSM,paragraphMarginTop:Ie.marginLG+Ie.marginXXS,paragraphLiHeight:Ie.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),je=Ie=>{const{prefixCls:fe,className:qe,rootClassName:At,active:Oe,shape:Ne="circle",size:Ct="default"}=Ie,{getPrefixCls:tt}=Be.useContext(Ae.E_),ke=tt("skeleton",fe),[ht,Sn]=ve(ke),rn=(0,ze.Z)(Ie,["prefixCls","className"]),an=de()(ke,`${ke}-element`,{[`${ke}-active`]:Oe},qe,At,Sn);return ht(Be.createElement("div",{className:an},Be.createElement(le,Object.assign({prefixCls:`${ke}-avatar`,shape:Ne,size:Ct},rn))))},He=Ie=>{const{prefixCls:fe,className:qe,rootClassName:At,active:Oe,block:Ne=!1,size:Ct="default"}=Ie,{getPrefixCls:tt}=Be.useContext(Ae.E_),ke=tt("skeleton",fe),[ht,Sn]=ve(ke),rn=(0,ze.Z)(Ie,["prefixCls"]),an=de()(ke,`${ke}-element`,{[`${ke}-active`]:Oe,[`${ke}-block`]:Ne},qe,At,Sn);return ht(Be.createElement("div",{className:an},Be.createElement(le,Object.assign({prefixCls:`${ke}-button`,size:Ct},rn))))};const he="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ke=Ie=>{const{prefixCls:fe,className:qe,rootClassName:At,style:Oe,active:Ne}=Ie,{getPrefixCls:Ct}=Be.useContext(Ae.E_),tt=Ct("skeleton",fe),[ke,ht]=ve(tt),Sn=de()(tt,`${tt}-element`,{[`${tt}-active`]:Ne},qe,At,ht);return ke(Be.createElement("div",{className:Sn},Be.createElement("div",{className:de()(`${tt}-image`,qe),style:Oe},Be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${tt}-image-svg`},Be.createElement("path",{d:he,className:`${tt}-image-path`})))))},Le=Ie=>{const{prefixCls:fe,className:qe,rootClassName:At,active:Oe,block:Ne,size:Ct="default"}=Ie,{getPrefixCls:tt}=Be.useContext(Ae.E_),ke=tt("skeleton",fe),[ht,Sn]=ve(ke),rn=(0,ze.Z)(Ie,["prefixCls"]),an=de()(ke,`${ke}-element`,{[`${ke}-active`]:Oe,[`${ke}-block`]:Ne},qe,At,Sn);return ht(Be.createElement("div",{className:an},Be.createElement(le,Object.assign({prefixCls:`${ke}-input`,size:Ct},rn))))},ot=ee(92413),lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},gt=lt,ft=ee(7657),ln=function(fe,qe){return Be.createElement(ft.Z,(0,ot.Z)({},fe,{ref:qe,icon:gt}))},xt=Be.forwardRef(ln),nn=xt,$e=Ie=>{const{prefixCls:fe,className:qe,rootClassName:At,style:Oe,active:Ne,children:Ct}=Ie,{getPrefixCls:tt}=Be.useContext(Ae.E_),ke=tt("skeleton",fe),[ht,Sn]=ve(ke),rn=de()(ke,`${ke}-element`,{[`${ke}-active`]:Ne},Sn,qe,At),an=Ct!=null?Ct:Be.createElement(nn,null);return ht(Be.createElement("div",{className:rn},Be.createElement("div",{className:de()(`${ke}-image`,qe),style:Oe},an)))},dt=ee(26407),Yn=Ie=>{const fe=tt=>{const{width:ke,rows:ht=2}=Ie;if(Array.isArray(ke))return ke[tt];if(ht-1===tt)return ke},{prefixCls:qe,className:At,style:Oe,rows:Ne}=Ie,Ct=(0,dt.Z)(Array(Ne)).map((tt,ke)=>Be.createElement("li",{key:ke,style:{width:fe(ke)}}));return Be.createElement("ul",{className:de()(qe,At),style:Oe},Ct)},On=Ie=>{let{prefixCls:fe,className:qe,width:At,style:Oe}=Ie;return Be.createElement("h3",{className:de()(fe,qe),style:Object.assign({width:At},Oe)})};function _e(Ie){return Ie&&typeof Ie=="object"?Ie:{}}function ct(Ie,fe){return Ie&&!fe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function kt(Ie,fe){return!Ie&&fe?{width:"38%"}:Ie&&fe?{width:"50%"}:{}}function mt(Ie,fe){const qe={};return(!Ie||!fe)&&(qe.width="61%"),!Ie&&fe?qe.rows=3:qe.rows=2,qe}const It=Ie=>{const{prefixCls:fe,loading:qe,className:At,rootClassName:Oe,style:Ne,children:Ct,avatar:tt=!1,title:ke=!0,paragraph:ht=!0,active:Sn,round:rn}=Ie,{getPrefixCls:an,direction:mn,skeleton:cn}=Be.useContext(Ae.E_),Te=an("skeleton",fe),[Ft,zt]=ve(Te);if(qe||!("loading"in Ie)){const wt=!!tt,Rt=!!ke,un=!!ht;let dn;if(wt){const va=Object.assign(Object.assign({prefixCls:`${Te}-avatar`},ct(Rt,un)),_e(tt));dn=Be.createElement("div",{className:`${Te}-header`},Be.createElement(le,Object.assign({},va)))}let _n;if(Rt||un){let va;if(Rt){const Na=Object.assign(Object.assign({prefixCls:`${Te}-title`},kt(wt,un)),_e(ke));va=Be.createElement(On,Object.assign({},Na))}let La;if(un){const Na=Object.assign(Object.assign({prefixCls:`${Te}-paragraph`},mt(wt,Rt)),_e(ht));La=Be.createElement(Yn,Object.assign({},Na))}_n=Be.createElement("div",{className:`${Te}-content`},va,La)}const Vn=de()(Te,{[`${Te}-with-avatar`]:wt,[`${Te}-active`]:Sn,[`${Te}-rtl`]:mn==="rtl",[`${Te}-round`]:rn},cn==null?void 0:cn.className,At,Oe,zt);return Ft(Be.createElement("div",{className:Vn,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),Ne)},dn,_n))}return typeof Ct!="undefined"?Ct:null};It.Button=He,It.Avatar=je,It.Input=Le,It.Image=Ke,It.Node=$e;var ut=It,at=ut},31797:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return ve}});var b=ee(59301),de=ee(56762),Be=ee(92343),Ae=ee(92310),ze=ee.n(Ae),Me=ee(36355),le=ee(61621),et=be=>{const{value:je,formatter:De,precision:He,decimalSeparator:he,groupSeparator:Xe="",prefixCls:Ke}=be;let St;if(typeof De=="function")St=De(je);else{const Le=String(je),ot=Le.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ot||Le==="-")St=Le;else{const lt=ot[1];let gt=ot[2]||"0",ft=ot[4]||"";gt=gt.replace(/\B(?=(\d{3})+(?!\d))/g,Xe),typeof He=="number"&&(ft=ft.padEnd(He,"0").slice(0,He>0?He:0)),ft&&(ft=`${he}${ft}`),St=[b.createElement("span",{key:"int",className:`${Ke}-content-value-int`},lt,gt),ft&&b.createElement("span",{key:"decimal",className:`${Ke}-content-value-decimal`},ft)]}}return b.createElement("span",{className:`${Ke}-content-value`},St)},Ve=ee(17313),We=ee(83116),Je=ee(37613);const Ye=be=>{const{componentCls:je,marginXXS:De,padding:He,colorTextDescription:he,titleFontSize:Xe,colorTextHeading:Ke,contentFontSize:St,fontFamily:Le}=be;return{[`${je}`]:Object.assign(Object.assign({},(0,Ve.Wf)(be)),{[`${je}-title`]:{marginBottom:De,color:he,fontSize:Xe},[`${je}-skeleton`]:{paddingTop:He},[`${je}-content`]:{color:Ke,fontSize:St,fontFamily:Le,[`${je}-content-value`]:{display:"inline-block",direction:"ltr"},[`${je}-content-prefix, ${je}-content-suffix`]:{display:"inline-block"},[`${je}-content-prefix`]:{marginInlineEnd:De},[`${je}-content-suffix`]:{marginInlineStart:De}}})}};var se=(0,We.Z)("Statistic",be=>{const je=(0,Je.TS)(be,{});return[Ye(je)]},be=>{const{fontSizeHeading3:je,fontSize:De}=be;return{titleFontSize:De,contentFontSize:je}}),a=be=>{const{prefixCls:je,className:De,rootClassName:He,style:he,valueStyle:Xe,value:Ke=0,title:St,valueRender:Le,prefix:ot,suffix:lt,loading:gt=!1,onMouseEnter:ft,onMouseLeave:ln,decimalSeparator:xt=".",groupSeparator:nn=","}=be,{getPrefixCls:En,direction:$e,statistic:dt}=b.useContext(Me.E_),on=En("statistic",je),[Yn,Zt]=se(on),On=b.createElement(et,Object.assign({decimalSeparator:xt,groupSeparator:nn,prefixCls:on},be,{value:Ke})),_e=ze()(on,{[`${on}-rtl`]:$e==="rtl"},dt==null?void 0:dt.className,De,He,Zt);return Yn(b.createElement("div",{className:_e,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),he),onMouseEnter:ft,onMouseLeave:ln},St&&b.createElement("div",{className:`${on}-title`},St),b.createElement(le.Z,{paragraph:!1,loading:gt,className:`${on}-skeleton`},b.createElement("div",{style:Xe,className:`${on}-content`},ot&&b.createElement("span",{className:`${on}-content-prefix`},ot),Le?Le(On):On,lt&&b.createElement("span",{className:`${on}-content-suffix`},lt)))))};const x=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function y(be,je){let De=be;const He=/\[[^\]]*]/g,he=(je.match(He)||[]).map(Le=>Le.slice(1,-1)),Xe=je.replace(He,"[]"),Ke=x.reduce((Le,ot)=>{let[lt,gt]=ot;if(Le.includes(lt)){const ft=Math.floor(De/gt);return De-=ft*gt,Le.replace(new RegExp(`${lt}+`,"g"),ln=>{const xt=ln.length;return ft.toString().padStart(xt,"0")})}return Le},Xe);let St=0;return Ke.replace(He,()=>{const Le=he[St];return St+=1,Le})}function z(be,je){const{format:De=""}=je,He=new Date(be).getTime(),he=Date.now(),Xe=Math.max(He-he,0);return y(Xe,De)}const ne=1e3/30;function re(be){return new Date(be).getTime()}const ue=be=>{const{value:je,format:De="HH:mm:ss",onChange:He,onFinish:he}=be,Xe=(0,de.Z)(),Ke=b.useRef(null),St=()=>{he==null||he(),Ke.current&&(clearInterval(Ke.current),Ke.current=null)},Le=()=>{const gt=re(je);gt>=Date.now()&&(Ke.current=setInterval(()=>{Xe(),He==null||He(gt-Date.now()),gt<Date.now()&&St()},ne))};b.useEffect(()=>(Le(),()=>{Ke.current&&(clearInterval(Ke.current),Ke.current=null)}),[je]);const ot=(gt,ft)=>z(gt,Object.assign(Object.assign({},ft),{format:De})),lt=gt=>(0,Be.Tm)(gt,{title:void 0});return b.createElement(a,Object.assign({},be,{valueRender:lt,formatter:ot}))};var ie=b.memo(ue);a.Countdown=ie;var ve=a},15969:function(Qt,Gt,ee){"use strict";ee.d(Gt,{N:function(){return b}});const b=de=>({color:de.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${de.motionDurationSlow}`,"&:focus, &:hover":{color:de.colorLinkHover},"&:active":{color:de.colorLinkActive}})},1710:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return Xi}});var b={},de="rc-table-internal-hook",Be=ee(33606),Ae=ee(6089),ze=ee(34280),Me=ee(13697),le=ee(59301),st=ee(4676);function et(Ee){var Ce=le.createContext(void 0),Ue=function(Pt){var Et=Pt.value,$t=Pt.children,Yt=le.useRef(Et);Yt.current=Et;var Ut=le.useState(function(){return{getValue:function(){return Yt.current},listeners:new Set}}),xn=(0,Be.Z)(Ut,1),pn=xn[0];return(0,ze.Z)(function(){(0,st.unstable_batchedUpdates)(function(){pn.listeners.forEach(function(hn){hn(Et)})})},[Et]),le.createElement(Ce.Provider,{value:pn},$t)};return{Context:Ce,Provider:Ue,defaultValue:Ee}}function Ve(Ee,Ce){var Ue=(0,Ae.Z)(typeof Ce=="function"?Ce:function(hn){if(Ce===void 0)return hn;if(!Array.isArray(Ce))return hn[Ce];var qn={};return Ce.forEach(function(aa){qn[aa]=hn[aa]}),qn}),rt=le.useContext(Ee==null?void 0:Ee.Context),Pt=rt||{},Et=Pt.listeners,$t=Pt.getValue,Yt=le.useRef();Yt.current=Ue(rt?$t():Ee==null?void 0:Ee.defaultValue);var Ut=le.useState({}),xn=(0,Be.Z)(Ut,2),pn=xn[1];return(0,ze.Z)(function(){if(!rt)return;function hn(qn){var aa=Ue(qn);(0,Me.Z)(Yt.current,aa,!0)||pn({})}return Et.add(hn),function(){Et.delete(hn)}},[rt]),Yt.current}var We=ee(92413),Je=ee(8654);function Ye(){var Ee=le.createContext(null);function Ce(){return le.useContext(Ee)}function Ue(Pt,Et){var $t=(0,Je.Yr)(Pt),Yt=function(xn,pn){var hn=$t?{ref:pn}:{},qn=le.useRef(0),aa=le.useRef(xn),ca=Ce();return ca!==null?le.createElement(Pt,(0,We.Z)({},xn,hn)):((!Et||Et(aa.current,xn))&&(qn.current+=1),aa.current=xn,le.createElement(Ee.Provider,{value:qn.current},le.createElement(Pt,(0,We.Z)({},xn,hn))))};return $t?le.forwardRef(Yt):Yt}function rt(Pt,Et){var $t=(0,Je.Yr)(Pt),Yt=function(xn,pn){var hn=$t?{ref:pn}:{};return Ce(),le.createElement(Pt,(0,We.Z)({},xn,hn))};return $t?le.memo(le.forwardRef(Yt),Et):le.memo(Yt,Et)}return{makeImmutable:Ue,responseImmutable:rt,useImmutableMark:Ce}}var se=Ye(),E=se.makeImmutable,a=se.responseImmutable,x=se.useImmutableMark,y=Ye(),z=y.makeImmutable,ne=y.responseImmutable,re=y.useImmutableMark,ue=et(),ie=ue;function ve(Ee,Ce){var Ue=le.useRef(0);Ue.current+=1;var rt=le.useRef(Ee),Pt=[];Object.keys(Ee||{}).map(function($t){var Yt;(Ee==null?void 0:Ee[$t])!==((Yt=rt.current)===null||Yt===void 0?void 0:Yt[$t])&&Pt.push($t)}),rt.current=Ee;var Et=le.useRef([]);return Pt.length&&(Et.current=Pt),le.useDebugValue(Ue.current),le.useDebugValue(Et.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Ue.current,Et.current),Ue.current}var be=null,je=le.memo(function(){var Ee=ve();return le.createElement("h1",null,"Render Times: ",Ee)});je.displayName="RenderBlock";var De=ee(39559),He=ee(33708),he=ee(400),Xe=ee(92310),Ke=ee.n(Xe),St=ee(80547),Le=ee(97938),ot=ee(48736),lt=le.createContext({renderWithProps:!1}),gt=lt,ft="RC_TABLE_KEY";function ln(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function xt(Ee){var Ce=[],Ue={};return Ee.forEach(function(rt){for(var Pt=rt||{},Et=Pt.key,$t=Pt.dataIndex,Yt=Et||ln($t).join("-")||ft;Ue[Yt];)Yt="".concat(Yt,"_next");Ue[Yt]=!0,Ce.push(Yt)}),Ce}function nn(Ee){return Ee!=null}function En(Ee){return Ee&&(0,De.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!le.isValidElement(Ee)}function $e(Ee,Ce,Ue,rt,Pt,Et){var $t=le.useContext(gt),Yt=re(),Ut=(0,St.Z)(function(){if(nn(rt))return[rt];var xn=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],pn=(0,Le.Z)(Ee,xn),hn=pn,qn=void 0;if(Pt){var aa=Pt(pn,Ee,Ue);En(aa)?(hn=aa.children,qn=aa.props,$t.renderWithProps=!0):hn=aa}return[hn,qn]},[Yt,Ee,rt,Ce,Pt,Ue],function(xn,pn){if(Et){var hn=(0,Be.Z)(xn,2),qn=hn[1],aa=(0,Be.Z)(pn,2),ca=aa[1];return Et(ca,qn)}return $t.renderWithProps?!0:!(0,Me.Z)(xn,pn,!0)});return Ut}function dt(Ee,Ce,Ue,rt){var Pt=Ee+Ce-1;return Ee<=rt&&Pt>=Ue}function on(Ee,Ce){return Ve(ie,function(Ue){var rt=dt(Ee,Ce||1,Ue.hoverStartRow,Ue.hoverEndRow);return[rt,Ue.onHover]})}var Yn=function(Ce){var Ue=Ce.ellipsis,rt=Ce.rowType,Pt=Ce.children,Et,$t=Ue===!0?{showTitle:!0}:Ue;return $t&&($t.showTitle||rt==="header")&&(typeof Pt=="string"||typeof Pt=="number"?Et=Pt.toString():le.isValidElement(Pt)&&typeof Pt.props.children=="string"&&(Et=Pt.props.children)),Et};function Zt(Ee){var Ce,Ue,rt,Pt,Et,$t,Yt,Ut,xn=Ee.component,pn=Ee.children,hn=Ee.ellipsis,qn=Ee.scope,aa=Ee.prefixCls,ca=Ee.className,Oa=Ee.align,Ht=Ee.record,Ja=Ee.render,_a=Ee.dataIndex,nr=Ee.renderIndex,Rr=Ee.shouldCellUpdate,Kr=Ee.index,Dr=Ee.rowType,jr=Ee.colSpan,_r=Ee.rowSpan,er=Ee.fixLeft,tr=Ee.fixRight,fr=Ee.firstFixLeft,Ga=Ee.lastFixLeft,ar=Ee.firstFixRight,Gr=Ee.lastFixRight,Po=Ee.appendNode,lo=Ee.additionalProps,Lr=lo===void 0?{}:lo,vo=Ee.isSticky,Bo="".concat(aa,"-cell"),ka=Ve(ie,["supportSticky","allColumnsFixedLeft"]),wo=ka.supportSticky,Ci=ka.allColumnsFixedLeft,Do=$e(Ht,_a,nr,pn,Ja,Rr),Qr=(0,Be.Z)(Do,2),xi=Qr[0],Vr=Qr[1],gi={},Ho=typeof er=="number"&&wo,_i=typeof tr=="number"&&wo;Ho&&(gi.position="sticky",gi.left=er),_i&&(gi.position="sticky",gi.right=tr);var Xr=(Ce=(Ue=(rt=Vr==null?void 0:Vr.colSpan)!==null&&rt!==void 0?rt:Lr.colSpan)!==null&&Ue!==void 0?Ue:jr)!==null&&Ce!==void 0?Ce:1,Mr=(Pt=(Et=($t=Vr==null?void 0:Vr.rowSpan)!==null&&$t!==void 0?$t:Lr.rowSpan)!==null&&Et!==void 0?Et:_r)!==null&&Pt!==void 0?Pt:1,$r=on(Kr,Mr),kr=(0,Be.Z)($r,2),ce=kr[0],pe=kr[1],Pe=function(Fn){var bt;Ht&&pe(Kr,Kr+Mr-1),Lr==null||(bt=Lr.onMouseEnter)===null||bt===void 0||bt.call(Lr,Fn)},Lt=function(Fn){var bt;Ht&&pe(-1,-1),Lr==null||(bt=Lr.onMouseLeave)===null||bt===void 0||bt.call(Lr,Fn)};if(Xr===0||Mr===0)return null;var tn=(Yt=Lr.title)!==null&&Yt!==void 0?Yt:Yn({rowType:Dr,ellipsis:hn,children:xi}),Aa=Ke()(Bo,ca,(Ut={},(0,he.Z)(Ut,"".concat(Bo,"-fix-left"),Ho&&wo),(0,he.Z)(Ut,"".concat(Bo,"-fix-left-first"),fr&&wo),(0,he.Z)(Ut,"".concat(Bo,"-fix-left-last"),Ga&&wo),(0,he.Z)(Ut,"".concat(Bo,"-fix-left-all"),Ga&&Ci&&wo),(0,he.Z)(Ut,"".concat(Bo,"-fix-right"),_i&&wo),(0,he.Z)(Ut,"".concat(Bo,"-fix-right-first"),ar&&wo),(0,he.Z)(Ut,"".concat(Bo,"-fix-right-last"),Gr&&wo),(0,he.Z)(Ut,"".concat(Bo,"-ellipsis"),hn),(0,he.Z)(Ut,"".concat(Bo,"-with-append"),Po),(0,he.Z)(Ut,"".concat(Bo,"-fix-sticky"),(Ho||_i)&&vo&&wo),(0,he.Z)(Ut,"".concat(Bo,"-row-hover"),!Vr&&ce),Ut),Lr.className,Vr==null?void 0:Vr.className),ma={};Oa&&(ma.textAlign=Oa);var Tn=(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},gi),Lr.style),ma),Vr==null?void 0:Vr.style),jt=xi;return(0,De.Z)(jt)==="object"&&!Array.isArray(jt)&&!le.isValidElement(jt)&&(jt=null),hn&&(Ga||ar)&&(jt=le.createElement("span",{className:"".concat(Bo,"-content")},jt)),le.createElement(xn,(0,We.Z)({},Vr,Lr,{className:Aa,style:Tn,title:tn,scope:qn,onMouseEnter:Pe,onMouseLeave:Lt,colSpan:Xr!==1?Xr:null,rowSpan:Mr!==1?Mr:null}),Po,jt)}var On=le.memo(Zt);function _e(Ee,Ce,Ue,rt,Pt,Et){var $t=Ue[Ee]||{},Yt=Ue[Ce]||{},Ut,xn;$t.fixed==="left"?Ut=rt.left[Pt==="rtl"?Ce:Ee]:Yt.fixed==="right"&&(xn=rt.right[Pt==="rtl"?Ee:Ce]);var pn=!1,hn=!1,qn=!1,aa=!1,ca=Ue[Ce+1],Oa=Ue[Ee-1],Ht=!(Et!=null&&Et.children);if(Pt==="rtl"){if(Ut!==void 0){var Ja=Oa&&Oa.fixed==="left";aa=!Ja&&Ht}else if(xn!==void 0){var _a=ca&&ca.fixed==="right";qn=!_a&&Ht}}else if(Ut!==void 0){var nr=ca&&ca.fixed==="left";pn=!nr&&Ht}else if(xn!==void 0){var Rr=Oa&&Oa.fixed==="right";hn=!Rr&&Ht}return{fixLeft:Ut,fixRight:xn,lastFixLeft:pn,firstFixRight:hn,lastFixRight:qn,firstFixLeft:aa,isSticky:rt.isSticky}}var ct=le.createContext({}),kt=ct;function mt(Ee){var Ce=Ee.className,Ue=Ee.index,rt=Ee.children,Pt=Ee.colSpan,Et=Pt===void 0?1:Pt,$t=Ee.rowSpan,Yt=Ee.align,Ut=Ve(ie,["prefixCls","direction"]),xn=Ut.prefixCls,pn=Ut.direction,hn=le.useContext(kt),qn=hn.scrollColumnIndex,aa=hn.stickyOffsets,ca=hn.flattenColumns,Oa=hn.columns,Ht=Ue+Et-1,Ja=Ht+1===qn?Et+1:Et,_a=_e(Ue,Ue+Ja-1,ca,aa,pn,Oa==null?void 0:Oa[Ue]);return le.createElement(On,(0,We.Z)({className:Ce,index:Ue,component:"td",prefixCls:xn,record:null,dataIndex:null,align:Yt,colSpan:Ja,rowSpan:$t,render:function(){return rt}},_a))}var It=ee(37061),ut=["children"];function at(Ee){var Ce=Ee.children,Ue=(0,It.Z)(Ee,ut);return le.createElement("tr",Ue,Ce)}function Ie(Ee){var Ce=Ee.children;return Ce}Ie.Row=at,Ie.Cell=mt;var fe=Ie;function qe(Ee){var Ce=Ee.children,Ue=Ee.stickyOffsets,rt=Ee.flattenColumns,Pt=Ee.columns,Et=Ve(ie,"prefixCls"),$t=rt.length-1,Yt=rt[$t],Ut=le.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:rt,scrollColumnIndex:Yt!=null&&Yt.scrollbar?$t:null,columns:Pt}},[Yt,rt,$t,Ue,Pt]);return le.createElement(kt.Provider,{value:Ut},le.createElement("tfoot",{className:"".concat(Et,"-summary")},Ce))}var At=ne(qe),Oe=fe,Ne=ee(70425),Ct=ee(29301),tt=ee(29194),ke=ee(24514),ht=ee(75152),Sn=ee(26112);function rn(Ee,Ce,Ue,rt,Pt,Et,$t){Ee.push({record:Ce,indent:Ue,index:$t});var Yt=Et(Ce),Ut=Pt==null?void 0:Pt.has(Yt);if(Ce&&Array.isArray(Ce[rt])&&Ut)for(var xn=0;xn<Ce[rt].length;xn+=1)rn(Ee,Ce[rt][xn],Ue+1,rt,Pt,Et,xn)}function an(Ee,Ce,Ue,rt){var Pt=le.useMemo(function(){if(Ue!=null&&Ue.size){for(var Et=[],$t=0;$t<(Ee==null?void 0:Ee.length);$t+=1){var Yt=Ee[$t];rn(Et,Yt,0,Ce,Ue,rt,$t)}return Et}return Ee==null?void 0:Ee.map(function(Ut,xn){return{record:Ut,indent:0,index:xn}})},[Ee,Ce,Ue,rt]);return Pt}function mn(Ee){var Ce=Ee.prefixCls,Ue=Ee.children,rt=Ee.component,Pt=Ee.cellComponent,Et=Ee.className,$t=Ee.expanded,Yt=Ee.colSpan,Ut=Ee.isEmpty,xn=Ve(ie,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),pn=xn.scrollbarSize,hn=xn.fixHeader,qn=xn.fixColumn,aa=xn.componentWidth,ca=xn.horizonScroll,Oa=Ue;return(Ut?ca&&aa:qn)&&(Oa=le.createElement("div",{style:{width:aa-(hn?pn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Oa)),le.createElement(rt,{className:Et,style:{display:$t?null:"none"}},le.createElement(On,{component:Pt,prefixCls:Ce,colSpan:Yt},Oa))}var cn=mn;function Te(Ee,Ce,Ue,rt){var Pt=Ve(ie,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Et=Pt.flattenColumns,$t=Pt.expandableType,Yt=Pt.expandedKeys,Ut=Pt.childrenColumnName,xn=Pt.onTriggerExpand,pn=Pt.rowExpandable,hn=Pt.onRow,qn=Pt.expandRowByClick,aa=Pt.rowClassName,ca=$t==="nest",Oa=$t==="row"&&(!pn||pn(Ee)),Ht=Oa||ca,Ja=Yt&&Yt.has(Ce),_a=Ut&&Ee&&Ee[Ut],nr=(0,Ne.useEvent)(xn),Rr=hn==null?void 0:hn(Ee,Ue),Kr=Rr==null?void 0:Rr.onClick,Dr=function(tr){qn&&Ht&&xn(Ee,tr);for(var fr=arguments.length,Ga=new Array(fr>1?fr-1:0),ar=1;ar<fr;ar++)Ga[ar-1]=arguments[ar];Kr==null||Kr.apply(void 0,[tr].concat(Ga))},jr;typeof aa=="string"?jr=aa:typeof aa=="function"&&(jr=aa(Ee,Ue,rt));var _r=xt(Et);return(0,He.Z)((0,He.Z)({},Pt),{},{columnsKey:_r,nestExpandable:ca,expanded:Ja,hasNestChildren:_a,record:Ee,onTriggerExpand:nr,rowSupportExpand:Oa,expandable:Ht,rowProps:(0,He.Z)((0,He.Z)({},Rr),{},{className:Ke()(jr,Rr==null?void 0:Rr.className),onClick:Dr})})}function Ft(Ee,Ce,Ue,rt,Pt){var Et=Ee.record,$t=Ee.prefixCls,Yt=Ee.columnsKey,Ut=Ee.fixedInfoList,xn=Ee.expandIconColumnIndex,pn=Ee.nestExpandable,hn=Ee.indentSize,qn=Ee.expandIcon,aa=Ee.expanded,ca=Ee.hasNestChildren,Oa=Ee.onTriggerExpand,Ht=Yt[Ue],Ja=Ut[Ue],_a;Ue===(xn||0)&&pn&&(_a=le.createElement(le.Fragment,null,le.createElement("span",{style:{paddingLeft:"".concat(hn*rt,"px")},className:"".concat($t,"-row-indent indent-level-").concat(rt)}),qn({prefixCls:$t,expanded:aa,expandable:ca,record:Et,onExpand:Oa})));var nr;return Ce.onCell&&(nr=Ce.onCell(Et,Pt)),{key:Ht,fixedInfo:Ja,appendCellNode:_a,additionalCellProps:nr||{}}}function zt(Ee){var Ce=Ee.className,Ue=Ee.style,rt=Ee.record,Pt=Ee.index,Et=Ee.renderIndex,$t=Ee.rowKey,Yt=Ee.indent,Ut=Yt===void 0?0:Yt,xn=Ee.rowComponent,pn=Ee.cellComponent,hn=Ee.scopeCellComponent,qn=Te(rt,$t,Pt,Ut),aa=qn.prefixCls,ca=qn.flattenColumns,Oa=qn.expandedRowClassName,Ht=qn.expandedRowRender,Ja=qn.rowProps,_a=qn.expanded,nr=qn.rowSupportExpand,Rr=le.useState(!1),Kr=(0,Be.Z)(Rr,2),Dr=Kr[0],jr=Kr[1];le.useEffect(function(){_a&&jr(!0)},[_a]);var _r=le.createElement(xn,(0,We.Z)({},Ja,{"data-row-key":$t,className:Ke()(Ce,"".concat(aa,"-row"),"".concat(aa,"-row-level-").concat(Ut),Ja==null?void 0:Ja.className),style:(0,He.Z)((0,He.Z)({},Ue),Ja==null?void 0:Ja.style)}),ca.map(function(Ga,ar){var Gr=Ga.render,Po=Ga.dataIndex,lo=Ga.className,Lr=Ft(qn,Ga,ar,Ut,Pt),vo=Lr.key,Bo=Lr.fixedInfo,ka=Lr.appendCellNode,wo=Lr.additionalCellProps;return le.createElement(On,(0,We.Z)({className:lo,ellipsis:Ga.ellipsis,align:Ga.align,scope:Ga.rowScope,component:Ga.rowScope?hn:pn,prefixCls:aa,key:vo,record:rt,index:Pt,renderIndex:Et,dataIndex:Po,render:Gr,shouldCellUpdate:Ga.shouldCellUpdate},Bo,{appendNode:ka,additionalProps:wo}))})),er;if(nr&&(Dr||_a)){var tr=Ht(rt,Pt,Ut+1,_a),fr=Oa&&Oa(rt,Pt,Ut);er=le.createElement(cn,{expanded:_a,className:Ke()("".concat(aa,"-expanded-row"),"".concat(aa,"-expanded-row-level-").concat(Ut+1),fr),prefixCls:aa,component:xn,cellComponent:pn,colSpan:ca.length,isEmpty:!1},tr)}return le.createElement(le.Fragment,null,_r,er)}zt.displayName="BodyRow";var wt=ne(zt);function Rt(Ee){var Ce=Ee.columnKey,Ue=Ee.onColumnResize,rt=le.useRef();return le.useEffect(function(){rt.current&&Ue(Ce,rt.current.offsetWidth)},[]),le.createElement(Ct.Z,{data:Ce},le.createElement("td",{ref:rt,style:{padding:0,border:0,height:0}},le.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function un(Ee){var Ce=Ee.prefixCls,Ue=Ee.columnsKey,rt=Ee.onColumnResize;return le.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},le.createElement(Ct.Z.Collection,{onBatchResize:function(Et){Et.forEach(function($t){var Yt=$t.data,Ut=$t.size;rt(Yt,Ut.offsetWidth)})}},Ue.map(function(Pt){return le.createElement(Rt,{key:Pt,columnKey:Pt,onColumnResize:rt})})))}function dn(Ee){var Ce=Ee.data,Ue=Ee.measureColumnWidth,rt=Ve(ie,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Pt=rt.prefixCls,Et=rt.getComponent,$t=rt.onColumnResize,Yt=rt.flattenColumns,Ut=rt.getRowKey,xn=rt.expandedKeys,pn=rt.childrenColumnName,hn=rt.emptyNode,qn=an(Ce,pn,xn,Ut),aa=le.useRef({renderWithProps:!1}),ca=Et(["body","wrapper"],"tbody"),Oa=Et(["body","row"],"tr"),Ht=Et(["body","cell"],"td"),Ja=Et(["body","cell"],"th"),_a;Ce.length?_a=qn.map(function(Rr,Kr){var Dr=Rr.record,jr=Rr.indent,_r=Rr.index,er=Ut(Dr,Kr);return le.createElement(wt,{key:er,rowKey:er,record:Dr,index:Kr,renderIndex:_r,rowComponent:Oa,cellComponent:Ht,scopeCellComponent:Ja,getRowKey:Ut,indent:jr})}):_a=le.createElement(cn,{expanded:!0,className:"".concat(Pt,"-placeholder"),prefixCls:Pt,component:Oa,cellComponent:Ht,colSpan:Yt.length,isEmpty:!0},hn);var nr=xt(Yt);return le.createElement(gt.Provider,{value:aa.current},le.createElement(ca,{className:"".concat(Pt,"-tbody")},Ue&&le.createElement(un,{prefixCls:Pt,columnsKey:nr,onColumnResize:$t}),_a))}dn.displayName="Body";var _n=ne(dn),Vn=["expandable"],va="RC_TABLE_INTERNAL_COL_DEFINE";function La(Ee){var Ce=Ee.expandable,Ue=(0,It.Z)(Ee,Vn),rt;return"expandable"in Ee?rt=(0,He.Z)((0,He.Z)({},Ue),Ce):rt=Ue,rt.showExpandColumn===!1&&(rt.expandIconColumnIndex=-1),rt}var Na=["columnType"];function rr(Ee){for(var Ce=Ee.colWidths,Ue=Ee.columns,rt=Ee.columCount,Pt=[],Et=rt||Ue.length,$t=!1,Yt=Et-1;Yt>=0;Yt-=1){var Ut=Ce[Yt],xn=Ue&&Ue[Yt],pn=xn&&xn[va];if(Ut||pn||$t){var hn=pn||{},qn=hn.columnType,aa=(0,It.Z)(hn,Na);Pt.unshift(le.createElement("col",(0,We.Z)({key:Yt,style:{width:Ut}},aa))),$t=!0}}return le.createElement("colgroup",null,Pt)}var Ka=rr,Ea=ee(26407),yr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Xt(Ee,Ce){return(0,le.useMemo)(function(){for(var Ue=[],rt=0;rt<Ce;rt+=1){var Pt=Ee[rt];if(Pt!==void 0)Ue[rt]=Pt;else return null}return Ue},[Ee.join("_"),Ce])}var jn=le.forwardRef(function(Ee,Ce){var Ue=Ee.className,rt=Ee.noData,Pt=Ee.columns,Et=Ee.flattenColumns,$t=Ee.colWidths,Yt=Ee.columCount,Ut=Ee.stickyOffsets,xn=Ee.direction,pn=Ee.fixHeader,hn=Ee.stickyTopOffset,qn=Ee.stickyBottomOffset,aa=Ee.stickyClassName,ca=Ee.onScroll,Oa=Ee.maxContentScroll,Ht=Ee.children,Ja=(0,It.Z)(Ee,yr),_a=Ve(ie,["prefixCls","scrollbarSize","isSticky"]),nr=_a.prefixCls,Rr=_a.scrollbarSize,Kr=_a.isSticky,Dr=Kr&&!pn?0:Rr,jr=le.useRef(null),_r=le.useCallback(function(lo){(0,Je.mH)(Ce,lo),(0,Je.mH)(jr,lo)},[]);le.useEffect(function(){var lo;function Lr(vo){var Bo=vo,ka=Bo.currentTarget,wo=Bo.deltaX;wo&&(ca({currentTarget:ka,scrollLeft:ka.scrollLeft+wo}),vo.preventDefault())}return(lo=jr.current)===null||lo===void 0||lo.addEventListener("wheel",Lr),function(){var vo;(vo=jr.current)===null||vo===void 0||vo.removeEventListener("wheel",Lr)}},[]);var er=le.useMemo(function(){return Et.every(function(lo){return lo.width})},[Et]),tr=Et[Et.length-1],fr={fixed:tr?tr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(nr,"-cell-scrollbar")}}},Ga=(0,le.useMemo)(function(){return Dr?[].concat((0,Ea.Z)(Pt),[fr]):Pt},[Dr,Pt]),ar=(0,le.useMemo)(function(){return Dr?[].concat((0,Ea.Z)(Et),[fr]):Et},[Dr,Et]),Gr=(0,le.useMemo)(function(){var lo=Ut.right,Lr=Ut.left;return(0,He.Z)((0,He.Z)({},Ut),{},{left:xn==="rtl"?[].concat((0,Ea.Z)(Lr.map(function(vo){return vo+Dr})),[0]):Lr,right:xn==="rtl"?lo:[].concat((0,Ea.Z)(lo.map(function(vo){return vo+Dr})),[0]),isSticky:Kr})},[Dr,Ut,Kr]),Po=Xt($t,Yt);return le.createElement("div",{style:(0,He.Z)({overflow:"hidden"},Kr?{top:hn,bottom:qn}:{}),ref:_r,className:Ke()(Ue,(0,he.Z)({},aa,!!aa))},le.createElement("table",{style:{tableLayout:"fixed",visibility:rt||Po?null:"hidden"}},(!rt||!Oa||er)&&le.createElement(Ka,{colWidths:Po?[].concat((0,Ea.Z)(Po),[Dr]):[],columCount:Yt+1,columns:ar}),Ht((0,He.Z)((0,He.Z)({},Ja),{},{stickyOffsets:Gr,columns:Ga,flattenColumns:ar}))))});jn.displayName="FixedHolder";var Qn=le.memo(jn);function Ia(Ee){var Ce=Ee.cells,Ue=Ee.stickyOffsets,rt=Ee.flattenColumns,Pt=Ee.rowComponent,Et=Ee.cellComponent,$t=Ee.tdCellComponent,Yt=Ee.onHeaderRow,Ut=Ee.index,xn=Ve(ie,["prefixCls","direction"]),pn=xn.prefixCls,hn=xn.direction,qn;Yt&&(qn=Yt(Ce.map(function(ca){return ca.column}),Ut));var aa=xt(Ce.map(function(ca){return ca.column}));return le.createElement(Pt,qn,Ce.map(function(ca,Oa){var Ht=ca.column,Ja=_e(ca.colStart,ca.colEnd,rt,Ue,hn,Ht),_a;return Ht&&Ht.onHeaderCell&&(_a=ca.column.onHeaderCell(Ht)),le.createElement(On,(0,We.Z)({},ca,{scope:Ht.title?ca.colSpan>1?"colgroup":"col":null,ellipsis:Ht.ellipsis,align:Ht.align,component:Ht.title?Et:$t,prefixCls:pn,key:aa[Oa]},Ja,{additionalProps:_a,rowType:"header"}))}))}Ia.displayName="HeaderRow";var Ge=Ia;function Ot(Ee){var Ce=[];function Ue($t,Yt){var Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[Ut]=Ce[Ut]||[];var xn=Yt,pn=$t.filter(Boolean).map(function(hn){var qn={key:hn.key,className:hn.className||"",children:hn.title,column:hn,colStart:xn},aa=1,ca=hn.children;return ca&&ca.length>0&&(aa=Ue(ca,xn,Ut+1).reduce(function(Oa,Ht){return Oa+Ht},0),qn.hasSubColumns=!0),"colSpan"in hn&&(aa=hn.colSpan),"rowSpan"in hn&&(qn.rowSpan=hn.rowSpan),qn.colSpan=aa,qn.colEnd=qn.colStart+aa-1,Ce[Ut].push(qn),xn+=aa,aa});return pn}Ue(Ee,0);for(var rt=Ce.length,Pt=function(Yt){Ce[Yt].forEach(function(Ut){!("rowSpan"in Ut)&&!Ut.hasSubColumns&&(Ut.rowSpan=rt-Yt)})},Et=0;Et<rt;Et+=1)Pt(Et);return Ce}function _t(Ee){var Ce=Ee.stickyOffsets,Ue=Ee.columns,rt=Ee.flattenColumns,Pt=Ee.onHeaderRow,Et=Ve(ie,["prefixCls","getComponent"]),$t=Et.prefixCls,Yt=Et.getComponent,Ut=le.useMemo(function(){return Ot(Ue)},[Ue]),xn=Yt(["header","wrapper"],"thead"),pn=Yt(["header","row"],"tr"),hn=Yt(["header","cell"],"th"),qn=Yt(["header","cell"],"td");return le.createElement(xn,{className:"".concat($t,"-thead")},Ut.map(function(aa,ca){var Oa=le.createElement(Ge,{key:ca,flattenColumns:rt,cells:aa,stickyOffsets:Ce,rowComponent:pn,cellComponent:hn,tdCellComponent:qn,onHeaderRow:Pt,index:ca});return Oa}))}var Vt=ne(_t),Wt=ee(11592);function Nn(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?Ee*parseFloat(Ce)/100:null}function Bn(Ee,Ce){return le.useMemo(function(){if(Ce&&Ce>0){var Ue=0,rt=0;Ee.forEach(function(xn){var pn=Nn(Ce,xn.width);pn?Ue+=pn:rt+=1});var Pt=Ce-Ue,Et=rt,$t=Pt/rt,Yt=0,Ut=Ee.map(function(xn){var pn=(0,He.Z)({},xn),hn=Nn(Ce,pn.width);if(hn)pn.width=hn;else{var qn=Math.floor($t);pn.width=Et===1?Pt:qn,Pt-=qn,Et-=1}return Yt+=pn.width,pn});return[Ut,Yt]}return[Ee,Ce]},[Ee,Ce])}var vt=["children"],Bt=["fixed"];function pt(Ee){return(0,Wt.Z)(Ee).filter(function(Ce){return le.isValidElement(Ce)}).map(function(Ce){var Ue=Ce.key,rt=Ce.props,Pt=rt.children,Et=(0,It.Z)(rt,vt),$t=(0,He.Z)({key:Ue},Et);return Pt&&($t.children=pt(Pt)),$t})}function vn(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(Ue){return Ue&&(0,De.Z)(Ue)==="object"}).reduce(function(Ue,rt,Pt){var Et=rt.fixed,$t=Et===!0?"left":Et,Yt="".concat(Ce,"-").concat(Pt),Ut=rt.children;return Ut&&Ut.length>0?[].concat((0,Ea.Z)(Ue),(0,Ea.Z)(vn(Ut,Yt).map(function(xn){return(0,He.Z)({fixed:$t},xn)}))):[].concat((0,Ea.Z)(Ue),[(0,He.Z)((0,He.Z)({key:Yt},rt),{},{fixed:$t})])},[])}function Hn(Ee){for(var Ce=!0,Ue=0;Ue<Ee.length;Ue+=1){var rt=Ee[Ue];if(Ce&&rt.fixed!=="left")Ce=!1;else if(!Ce&&rt.fixed==="left"){warning(!1,"Index ".concat(Ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var Pt=!0,Et=Ee.length-1;Et>=0;Et-=1){var $t=Ee[Et];if(Pt&&$t.fixed!=="right")Pt=!1;else if(!Pt&&$t.fixed==="right"){warning(!1,"Index ".concat(Et+1," of `columns` missing `fixed='right'` prop."));break}}}function In(Ee){return Ee.map(function(Ce){var Ue=Ce.fixed,rt=(0,It.Z)(Ce,Bt),Pt=Ue;return Ue==="left"?Pt="right":Ue==="right"&&(Pt="left"),(0,He.Z)({fixed:Pt},rt)})}function Ta(Ee,Ce){var Ue=Ee.prefixCls,rt=Ee.columns,Pt=Ee.children,Et=Ee.expandable,$t=Ee.expandedKeys,Yt=Ee.columnTitle,Ut=Ee.getRowKey,xn=Ee.onTriggerExpand,pn=Ee.expandIcon,hn=Ee.rowExpandable,qn=Ee.expandIconColumnIndex,aa=Ee.direction,ca=Ee.expandRowByClick,Oa=Ee.columnWidth,Ht=Ee.fixed,Ja=Ee.scrollWidth,_a=le.useMemo(function(){return rt||pt(Pt)},[rt,Pt]),nr=le.useMemo(function(){if(Et){var tr,fr=_a.slice();if(!fr.includes(b)){var Ga=qn||0;Ga>=0&&fr.splice(Ga,0,b)}var ar=fr.indexOf(b);fr=fr.filter(function(Lr,vo){return Lr!==b||vo===ar});var Gr=_a[ar],Po;(Ht==="left"||Ht)&&!qn?Po="left":(Ht==="right"||Ht)&&qn===_a.length?Po="right":Po=Gr?Gr.fixed:null;var lo=(tr={},(0,he.Z)(tr,va,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,he.Z)(tr,"title",Yt),(0,he.Z)(tr,"fixed",Po),(0,he.Z)(tr,"className","".concat(Ue,"-row-expand-icon-cell")),(0,he.Z)(tr,"width",Oa),(0,he.Z)(tr,"render",function(vo,Bo,ka){var wo=Ut(Bo,ka),Ci=$t.has(wo),Do=hn?hn(Bo):!0,Qr=pn({prefixCls:Ue,expanded:Ci,expandable:Do,record:Bo,onExpand:xn});return ca?le.createElement("span",{onClick:function(Vr){return Vr.stopPropagation()}},Qr):Qr}),tr);return fr.map(function(Lr){return Lr===b?lo:Lr})}return _a.filter(function(Lr){return Lr!==b})},[Et,_a,Ut,$t,pn,aa]),Rr=le.useMemo(function(){var tr=nr;return Ce&&(tr=Ce(tr)),tr.length||(tr=[{render:function(){return null}}]),tr},[Ce,nr,aa]),Kr=le.useMemo(function(){return aa==="rtl"?In(vn(Rr)):vn(Rr)},[Rr,aa,Ja]),Dr=Bn(Kr,Ja),jr=(0,Be.Z)(Dr,2),_r=jr[0],er=jr[1];return[Rr,_r,er]}var Pa=Ta;function Rn(Ee){var Ce,Ue=Ee.prefixCls,rt=Ee.record,Pt=Ee.onExpand,Et=Ee.expanded,$t=Ee.expandable,Yt="".concat(Ue,"-row-expand-icon");if(!$t)return le.createElement("span",{className:Ke()(Yt,"".concat(Ue,"-row-spaced"))});var Ut=function(pn){Pt(rt,pn),pn.stopPropagation()};return le.createElement("span",{className:Ke()(Yt,(Ce={},(0,he.Z)(Ce,"".concat(Ue,"-row-expanded"),Et),(0,he.Z)(Ce,"".concat(Ue,"-row-collapsed"),!Et),Ce)),onClick:Ut})}function ya(Ee,Ce,Ue){var rt=[];function Pt(Et){(Et||[]).forEach(function($t,Yt){rt.push(Ce($t,Yt)),Pt($t[Ue])})}return Pt(Ee),rt}function ba(Ee,Ce,Ue){var rt=La(Ee),Pt=rt.expandIcon,Et=rt.expandedRowKeys,$t=rt.defaultExpandedRowKeys,Yt=rt.defaultExpandAllRows,Ut=rt.expandedRowRender,xn=rt.onExpand,pn=rt.onExpandedRowsChange,hn=rt.childrenColumnName,qn=Pt||Rn,aa=hn||"children",ca=le.useMemo(function(){return Ut?"row":Ee.expandable&&Ee.internalHooks===de&&Ee.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Kr){return Kr&&(0,De.Z)(Kr)==="object"&&Kr[aa]})?"nest":!1},[!!Ut,Ce]),Oa=le.useState(function(){return $t||(Yt?ya(Ce,Ue,aa):[])}),Ht=(0,Be.Z)(Oa,2),Ja=Ht[0],_a=Ht[1],nr=le.useMemo(function(){return new Set(Et||Ja||[])},[Et,Ja]),Rr=le.useCallback(function(Kr){var Dr=Ue(Kr,Ce.indexOf(Kr)),jr,_r=nr.has(Dr);_r?(nr.delete(Dr),jr=(0,Ea.Z)(nr)):jr=[].concat((0,Ea.Z)(nr),[Dr]),_a(jr),xn&&xn(!_r,Kr),pn&&pn(jr)},[Ue,nr,Ce,xn,pn]);return[rt,ca,nr,qn,aa,Rr]}function wn(Ee,Ce,Ue,rt){var Pt=Ee.map(function(Et,$t){return _e($t,$t,Ee,Ce,Ue,rt==null?void 0:rt[$t])});return(0,St.Z)(function(){return Pt},[Pt],function(Et,$t){return!(0,Me.Z)(Et,$t)})}function mr(Ee){var Ce=(0,le.useRef)(Ee),Ue=(0,le.useState)({}),rt=(0,Be.Z)(Ue,2),Pt=rt[1],Et=(0,le.useRef)(null),$t=(0,le.useRef)([]);function Yt(Ut){$t.current.push(Ut);var xn=Promise.resolve();Et.current=xn,xn.then(function(){if(Et.current===xn){var pn=$t.current,hn=Ce.current;$t.current=[],pn.forEach(function(qn){Ce.current=qn(Ce.current)}),Et.current=null,hn!==Ce.current&&Pt({})}})}return(0,le.useEffect)(function(){return function(){Et.current=null}},[]),[Ce.current,Yt]}function Er(Ee){var Ce=(0,le.useRef)(Ee||null),Ue=(0,le.useRef)();function rt(){window.clearTimeout(Ue.current)}function Pt($t){Ce.current=$t,rt(),Ue.current=window.setTimeout(function(){Ce.current=null,Ue.current=void 0},100)}function Et(){return Ce.current}return(0,le.useEffect)(function(){return rt},[]),[Pt,Et]}function Jr(){var Ee=le.useState(-1),Ce=(0,Be.Z)(Ee,2),Ue=Ce[0],rt=Ce[1],Pt=le.useState(-1),Et=(0,Be.Z)(Pt,2),$t=Et[0],Yt=Et[1],Ut=le.useCallback(function(xn,pn){rt(xn),Yt(pn)},[]);return[Ue,$t,Ut]}var pr=ee(47273),Qe=(0,pr.Z)()?window:null;function Pn(Ee,Ce){var Ue=(0,De.Z)(Ee)==="object"?Ee:{},rt=Ue.offsetHeader,Pt=rt===void 0?0:rt,Et=Ue.offsetSummary,$t=Et===void 0?0:Et,Yt=Ue.offsetScroll,Ut=Yt===void 0?0:Yt,xn=Ue.getContainer,pn=xn===void 0?function(){return Qe}:xn,hn=pn()||Qe;return le.useMemo(function(){var qn=!!Ee;return{isSticky:qn,stickyClassName:qn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:Pt,offsetSummary:$t,offsetScroll:Ut,container:hn}},[Ut,Pt,$t,Ce,hn])}function qt(Ee,Ce,Ue){var rt=(0,le.useMemo)(function(){for(var Pt=[],Et=[],$t=0,Yt=0,Ut=0;Ut<Ce;Ut+=1)if(Ue==="rtl"){Et[Ut]=Yt,Yt+=Ee[Ut]||0;var xn=Ce-Ut-1;Pt[xn]=$t,$t+=Ee[xn]||0}else{Pt[Ut]=$t,$t+=Ee[Ut]||0;var pn=Ce-Ut-1;Et[pn]=Yt,Yt+=Ee[pn]||0}return{left:Pt,right:Et}},[Ee,Ce,Ue]);return rt}var Dn=qt;function Gn(Ee){var Ce=Ee.className,Ue=Ee.children;return le.createElement("div",{className:Ce},Ue)}var ra=Gn,Xn=ee(8224),$n=ee(55468),sr=function(Ce,Ue){var rt,Pt,Et=Ce.scrollBodyRef,$t=Ce.onScroll,Yt=Ce.offsetScroll,Ut=Ce.container,xn=Ve(ie,"prefixCls"),pn=((rt=Et.current)===null||rt===void 0?void 0:rt.scrollWidth)||0,hn=((Pt=Et.current)===null||Pt===void 0?void 0:Pt.clientWidth)||0,qn=pn&&hn*(hn/pn),aa=le.useRef(),ca=mr({scrollLeft:0,isHiddenScrollBar:!1}),Oa=(0,Be.Z)(ca,2),Ht=Oa[0],Ja=Oa[1],_a=le.useRef({delta:0,x:0}),nr=le.useState(!1),Rr=(0,Be.Z)(nr,2),Kr=Rr[0],Dr=Rr[1],jr=function(){Dr(!1)},_r=function(ar){ar.persist(),_a.current.delta=ar.pageX-Ht.scrollLeft,_a.current.x=0,Dr(!0),ar.preventDefault()},er=function(ar){var Gr,Po=ar||((Gr=window)===null||Gr===void 0?void 0:Gr.event),lo=Po.buttons;if(!Kr||lo===0){Kr&&Dr(!1);return}var Lr=_a.current.x+ar.pageX-_a.current.x-_a.current.delta;Lr<=0&&(Lr=0),Lr+qn>=hn&&(Lr=hn-qn),$t({scrollLeft:Lr/hn*(pn+2)}),_a.current.x=ar.pageX},tr=function(){if(Et.current){var ar=(0,$n.os)(Et.current).top,Gr=ar+Et.current.offsetHeight,Po=Ut===window?document.documentElement.scrollTop+window.innerHeight:(0,$n.os)(Ut).top+Ut.clientHeight;Gr-(0,ht.Z)()<=Po||ar>=Po-Yt?Ja(function(lo){return(0,He.Z)((0,He.Z)({},lo),{},{isHiddenScrollBar:!0})}):Ja(function(lo){return(0,He.Z)((0,He.Z)({},lo),{},{isHiddenScrollBar:!1})})}},fr=function(ar){Ja(function(Gr){return(0,He.Z)((0,He.Z)({},Gr),{},{scrollLeft:ar/pn*hn||0})})};return le.useImperativeHandle(Ue,function(){return{setScrollLeft:fr}}),le.useEffect(function(){var Ga=(0,Xn.Z)(document.body,"mouseup",jr,!1),ar=(0,Xn.Z)(document.body,"mousemove",er,!1);return tr(),function(){Ga.remove(),ar.remove()}},[qn,Kr]),le.useEffect(function(){var Ga=(0,Xn.Z)(Ut,"scroll",tr,!1),ar=(0,Xn.Z)(window,"resize",tr,!1);return function(){Ga.remove(),ar.remove()}},[Ut]),le.useEffect(function(){Ht.isHiddenScrollBar||Ja(function(Ga){var ar=Et.current;return ar?(0,He.Z)((0,He.Z)({},Ga),{},{scrollLeft:ar.scrollLeft/ar.scrollWidth*ar.clientWidth}):Ga})},[Ht.isHiddenScrollBar]),pn<=hn||!qn||Ht.isHiddenScrollBar?null:le.createElement("div",{style:{height:(0,ht.Z)(),width:hn,bottom:Yt},className:"".concat(xn,"-sticky-scroll")},le.createElement("div",{onMouseDown:_r,ref:aa,className:Ke()("".concat(xn,"-sticky-scroll-bar"),(0,he.Z)({},"".concat(xn,"-sticky-scroll-bar-active"),Kr)),style:{width:"".concat(qn,"px"),transform:"translate3d(".concat(Ht.scrollLeft,"px, 0, 0)")}}))},sa=le.forwardRef(sr);function Cn(Ee){return null}var dr=Cn;function Nr(Ee){return null}var Zr=Nr,Ir="rc-table",ha=[],za={};function or(){return"No Data"}function Fa(Ee){var Ce,Ue=(0,He.Z)({rowKey:"key",prefixCls:Ir,emptyText:or},Ee),rt=Ue.prefixCls,Pt=Ue.className,Et=Ue.rowClassName,$t=Ue.style,Yt=Ue.data,Ut=Ue.rowKey,xn=Ue.scroll,pn=Ue.tableLayout,hn=Ue.direction,qn=Ue.title,aa=Ue.footer,ca=Ue.summary,Oa=Ue.caption,Ht=Ue.id,Ja=Ue.showHeader,_a=Ue.components,nr=Ue.emptyText,Rr=Ue.onRow,Kr=Ue.onHeaderRow,Dr=Ue.internalHooks,jr=Ue.transformColumns,_r=Ue.internalRefs,er=Ue.tailor,tr=Ue.sticky,fr=Yt||ha,Ga=!!fr.length,ar=Dr===de,Gr=le.useCallback(function(ei,Hi){return(0,Le.Z)(_a,ei)||Hi},[_a]),Po=le.useMemo(function(){return typeof Ut=="function"?Ut:function(ei){var Hi=ei&&ei[Ut];return Hi}},[Ut]),lo=Gr(["body"]),Lr=Jr(),vo=(0,Be.Z)(Lr,3),Bo=vo[0],ka=vo[1],wo=vo[2],Ci=ba(Ue,fr,Po),Do=(0,Be.Z)(Ci,6),Qr=Do[0],xi=Do[1],Vr=Do[2],gi=Do[3],Ho=Do[4],_i=Do[5],Xr=xn==null?void 0:xn.x,Mr=le.useState(0),$r=(0,Be.Z)(Mr,2),kr=$r[0],ce=$r[1],pe=Pa((0,He.Z)((0,He.Z)((0,He.Z)({},Ue),Qr),{},{expandable:!!Qr.expandedRowRender,columnTitle:Qr.columnTitle,expandedKeys:Vr,getRowKey:Po,onTriggerExpand:_i,expandIcon:gi,expandIconColumnIndex:Qr.expandIconColumnIndex,direction:hn,scrollWidth:ar&&er&&typeof Xr=="number"?Xr:null}),ar?jr:null),Pe=(0,Be.Z)(pe,3),Lt=Pe[0],tn=Pe[1],Aa=Pe[2],ma=Aa!=null?Aa:Xr,Tn=le.useMemo(function(){return{columns:Lt,flattenColumns:tn}},[Lt,tn]),jt=le.useRef(),Jn=le.useRef(),Fn=le.useRef(),bt=le.useRef(),sn=le.useRef(),An=le.useState(!1),ia=(0,Be.Z)(An,2),Zn=ia[0],xa=ia[1],ta=le.useState(!1),la=(0,Be.Z)(ta,2),Ua=la[0],bn=la[1],Ca=mr(new Map),Ha=(0,Be.Z)(Ca,2),Yr=Ha[0],cr=Ha[1],ii=xt(tn),Za=ii.map(function(ei){return Yr.get(ei)}),bo=le.useMemo(function(){return Za},[Za.join("_")]),Cr=Dn(bo,tn.length,hn),to=xn&&nn(xn.y),So=xn&&nn(ma)||!!Qr.fixed,Ei=So&&tn.some(function(ei){var Hi=ei.fixed;return Hi}),mi=le.useRef(),hr=Pn(tr,rt),po=hr.isSticky,Vi=hr.offsetHeader,Ri=hr.offsetSummary,ea=hr.offsetScroll,Co=hr.stickyClassName,Mi=hr.container,jo=le.useMemo(function(){return ca==null?void 0:ca(fr)},[ca,fr]),Fi=(to||po)&&le.isValidElement(jo)&&jo.type===fe&&jo.props.fixed,ki,ri,il;to&&(ri={overflowY:"scroll",maxHeight:xn.y}),So&&(ki={overflowX:"auto"},to||(ri={overflowY:"hidden"}),il={width:ma===!0?"auto":ma,minWidth:"100%"});var ll=le.useCallback(function(ei,Hi){(0,tt.Z)(jt.current)&&cr(function(Dl){if(Dl.get(ei)!==Hi){var Sl=new Map(Dl);return Sl.set(ei,Hi),Sl}return Dl})},[]),jl=Er(null),Oi=(0,Be.Z)(jl,2),dl=Oi[0],Bl=Oi[1];function Gl(ei,Hi){Hi&&(typeof Hi=="function"?Hi(ei):Hi.scrollLeft!==ei&&(Hi.scrollLeft=ei,Hi.scrollLeft!==ei&&setTimeout(function(){Hi.scrollLeft=ei},0)))}var No=(0,Ae.Z)(function(ei){var Hi=ei.currentTarget,Dl=ei.scrollLeft,Sl=hn==="rtl",Vl=typeof Dl=="number"?Dl:Hi.scrollLeft,kl=Hi||za;if(!Bl()||Bl()===kl){var Ku;dl(kl),Gl(Vl,Jn.current),Gl(Vl,Fn.current),Gl(Vl,sn.current),Gl(Vl,(Ku=mi.current)===null||Ku===void 0?void 0:Ku.setScrollLeft)}var Vu=Hi||Jn.current;if(Vu){var $u=Vu.scrollWidth,hu=Vu.clientWidth;if($u===hu){xa(!1),bn(!1);return}Sl?(xa(-Vl<$u-hu),bn(-Vl>0)):(xa(Vl>0),bn(Vl<$u-hu))}}),Pi=function(){So&&Fn.current?No({currentTarget:Fn.current}):(xa(!1),bn(!1))},Ui=function(Hi){var Dl=Hi.width;Dl!==kr&&(Pi(),ce(jt.current?jt.current.offsetWidth:Dl))},Zi=le.useRef(!1);le.useEffect(function(){Zi.current&&Pi()},[So,Yt,Lt.length]),le.useEffect(function(){Zi.current=!0},[]);var hl=le.useState(0),ul=(0,Be.Z)(hl,2),sl=ul[0],wl=ul[1],Rl=le.useState(!0),ml=(0,Be.Z)(Rl,2),qi=ml[0],Wl=ml[1];le.useEffect(function(){(!er||!ar)&&(Fn.current instanceof Element?wl((0,ht.o)(Fn.current).width):wl((0,ht.o)(bt.current).width)),Wl((0,ke.G)("position","sticky"))},[]),le.useEffect(function(){ar&&_r&&(_r.body.current=Fn.current)});var Jo=le.useCallback(function(ei){return le.createElement(le.Fragment,null,le.createElement(Vt,ei),Fi==="top"&&le.createElement(At,ei,jo))},[Fi,jo]),vu=le.useCallback(function(ei){return le.createElement(At,ei,jo)},[jo]),pu=Gr(["table"],"table"),Kl=le.useMemo(function(){return pn||(Ei?ma==="max-content"?"auto":"fixed":to||po||tn.some(function(ei){var Hi=ei.ellipsis;return Hi})?"fixed":"auto")},[to,Ei,tn,pn,po]),gu,ua={colWidths:bo,columCount:tn.length,stickyOffsets:Cr,onHeaderRow:Kr,fixHeader:to,scroll:xn},qa=le.useMemo(function(){return Ga?null:typeof nr=="function"?nr():nr},[Ga,nr]),Wo=le.createElement(_n,{data:fr,measureColumnWidth:to||So||po}),uo=le.createElement(Ka,{colWidths:tn.map(function(ei){var Hi=ei.width;return Hi}),columns:tn}),xo=Oa!=null?le.createElement("caption",{className:"".concat(rt,"-caption")},Oa):void 0,Xo=(0,Sn.Z)(Ue,{data:!0}),$i=(0,Sn.Z)(Ue,{aria:!0});if(to||po){var Ai;typeof lo=="function"?(Ai=lo(fr,{scrollbarSize:sl,ref:Fn,onScroll:No}),ua.colWidths=tn.map(function(ei,Hi){var Dl=ei.width,Sl=Hi===tn.length-1?Dl-sl:Dl;return typeof Sl=="number"&&!Number.isNaN(Sl)?Sl:0})):Ai=le.createElement("div",{style:(0,He.Z)((0,He.Z)({},ki),ri),onScroll:No,ref:Fn,className:Ke()("".concat(rt,"-body"))},le.createElement(pu,(0,We.Z)({style:(0,He.Z)((0,He.Z)({},il),{},{tableLayout:Kl})},$i),xo,uo,Wo,!Fi&&jo&&le.createElement(At,{stickyOffsets:Cr,flattenColumns:tn,columns:Lt},jo)));var fl=(0,He.Z)((0,He.Z)((0,He.Z)({noData:!fr.length,maxContentScroll:So&&ma==="max-content"},ua),Tn),{},{direction:hn,stickyClassName:Co,onScroll:No});gu=le.createElement(le.Fragment,null,Ja!==!1&&le.createElement(Qn,(0,We.Z)({},fl,{stickyTopOffset:Vi,className:"".concat(rt,"-header"),ref:Jn}),Jo),Ai,Fi&&Fi!=="top"&&le.createElement(Qn,(0,We.Z)({},fl,{stickyBottomOffset:Ri,className:"".concat(rt,"-summary"),ref:sn}),vu),po&&le.createElement(sa,{ref:mi,offsetScroll:ea,scrollBodyRef:Fn,onScroll:No,container:Mi}))}else gu=le.createElement("div",{style:(0,He.Z)((0,He.Z)({},ki),ri),className:Ke()("".concat(rt,"-content")),onScroll:No,ref:Fn},le.createElement(pu,(0,We.Z)({style:(0,He.Z)((0,He.Z)({},il),{},{tableLayout:Kl})},$i),xo,uo,Ja!==!1&&le.createElement(Vt,(0,We.Z)({},ua,Tn)),Wo,jo&&le.createElement(At,{stickyOffsets:Cr,flattenColumns:tn,columns:Lt},jo)));var el=le.createElement("div",(0,We.Z)({className:Ke()(rt,Pt,(Ce={},(0,he.Z)(Ce,"".concat(rt,"-rtl"),hn==="rtl"),(0,he.Z)(Ce,"".concat(rt,"-ping-left"),Zn),(0,he.Z)(Ce,"".concat(rt,"-ping-right"),Ua),(0,he.Z)(Ce,"".concat(rt,"-layout-fixed"),pn==="fixed"),(0,he.Z)(Ce,"".concat(rt,"-fixed-header"),to),(0,he.Z)(Ce,"".concat(rt,"-fixed-column"),Ei),(0,he.Z)(Ce,"".concat(rt,"-scroll-horizontal"),So),(0,he.Z)(Ce,"".concat(rt,"-has-fix-left"),tn[0]&&tn[0].fixed),(0,he.Z)(Ce,"".concat(rt,"-has-fix-right"),tn[tn.length-1]&&tn[tn.length-1].fixed==="right"),Ce)),style:$t,id:Ht,ref:jt},Xo),qn&&le.createElement(ra,{className:"".concat(rt,"-title")},qn(fr)),le.createElement("div",{ref:bt,className:"".concat(rt,"-container")},gu),aa&&le.createElement(ra,{className:"".concat(rt,"-footer")},aa(fr)));So&&(el=le.createElement(Ct.Z,{onResize:Ui},el));var Ml=wn(tn,Cr,hn,Lt),ou=le.useMemo(function(){return{scrollX:ma,prefixCls:rt,getComponent:Gr,scrollbarSize:sl,direction:hn,fixedInfoList:Ml,isSticky:po,supportSticky:qi,componentWidth:kr,fixHeader:to,fixColumn:Ei,horizonScroll:So,tableLayout:Kl,rowClassName:Et,expandedRowClassName:Qr.expandedRowClassName,expandIcon:gi,expandableType:xi,expandRowByClick:Qr.expandRowByClick,expandedRowRender:Qr.expandedRowRender,onTriggerExpand:_i,expandIconColumnIndex:Qr.expandIconColumnIndex,indentSize:Qr.indentSize,allColumnsFixedLeft:tn.every(function(ei){return ei.fixed==="left"}),emptyNode:qa,columns:Lt,flattenColumns:tn,onColumnResize:ll,hoverStartRow:Bo,hoverEndRow:ka,onHover:wo,rowExpandable:Qr.rowExpandable,onRow:Rr,getRowKey:Po,expandedKeys:Vr,childrenColumnName:Ho}},[ma,rt,Gr,sl,hn,Ml,po,qi,kr,to,Ei,So,Kl,Et,Qr.expandedRowClassName,gi,xi,Qr.expandRowByClick,Qr.expandedRowRender,_i,Qr.expandIconColumnIndex,Qr.indentSize,qa,Lt,tn,ll,Bo,ka,wo,Qr.rowExpandable,Rr,Po,Vr,Ho]);return le.createElement(ie.Provider,{value:ou},el)}function xr(Ee){return z(Fa,Ee)}var qr=xr();qr.EXPAND_COLUMN=b,qr.INTERNAL_HOOKS=de,qr.Column=dr,qr.ColumnGroup=Zr,qr.Summary=Oe;var Fr=qr,io=ee(24916),lr=et(null),ko=et(null);function ui(Ee,Ce,Ue){var rt=Ce||1;return Ue[Ee+rt]-(Ue[Ee]||0)}function pi(Ee){var Ce=Ee.rowInfo,Ue=Ee.column,rt=Ee.colIndex,Pt=Ee.indent,Et=Ee.index,$t=Ee.renderIndex,Yt=Ee.record,Ut=Ee.style,xn=Ee.className,pn=Ee.inverse,hn=Ee.getHeight,qn=Ue.render,aa=Ue.dataIndex,ca=Ue.className,Oa=Ue.width,Ht=Ve(ko,["columnsOffset"]),Ja=Ht.columnsOffset,_a=Ft(Ce,Ue,rt,Pt,Et),nr=_a.key,Rr=_a.fixedInfo,Kr=_a.appendCellNode,Dr=_a.additionalCellProps,jr=Dr.style,_r=Dr.colSpan,er=_r===void 0?1:_r,tr=Dr.rowSpan,fr=tr===void 0?1:tr,Ga=rt-1,ar=ui(Ga,er,Ja),Gr=er>1?Oa-ar:0,Po=(0,He.Z)((0,He.Z)((0,He.Z)({},jr),Ut),{},{flex:"0 0 ".concat(ar,"px"),width:"".concat(ar,"px"),marginRight:Gr,pointerEvents:"auto"}),lo=le.useMemo(function(){return pn?fr<=1:er===0||fr===0||fr>1},[fr,er,pn]);lo?Po.visibility="hidden":pn&&(Po.height=hn==null?void 0:hn(fr));var Lr=lo?function(){return null}:qn,vo={};return(fr===0||er===0)&&(vo.rowSpan=1,vo.colSpan=1),le.createElement(On,(0,We.Z)({className:Ke()(ca,xn),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Ce.prefixCls,key:nr,record:Yt,index:Et,renderIndex:$t,dataIndex:aa,render:Lr,shouldCellUpdate:Ue.shouldCellUpdate},Rr,{appendNode:Kr,additionalProps:(0,He.Z)((0,He.Z)({},Dr),{},{style:Po},vo)}))}var yo=pi,Eo=["data","index","className","rowKey","style","extra","getHeight"],Yo=le.forwardRef(function(Ee,Ce){var Ue=Ee.data,rt=Ee.index,Pt=Ee.className,Et=Ee.rowKey,$t=Ee.style,Yt=Ee.extra,Ut=Ee.getHeight,xn=(0,It.Z)(Ee,Eo),pn=Ue.record,hn=Ue.indent,qn=Ue.index,aa=Ve(ie,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ca=aa.scrollX,Oa=aa.flattenColumns,Ht=aa.prefixCls,Ja=aa.fixColumn,_a=aa.componentWidth,nr=Te(pn,Et,rt,hn),Rr=nr.rowSupportExpand,Kr=nr.expanded,Dr=nr.rowProps,jr=nr.expandedRowRender,_r=nr.expandedRowClassName,er;if(Rr&&Kr){var tr=jr(pn,rt,hn+1,Kr),fr=_r==null?void 0:_r(pn,rt,hn),Ga={};Ja&&(Ga={style:(0,he.Z)({},"--virtual-width","".concat(_a,"px"))});var ar="".concat(Ht,"-expanded-row-cell");er=le.createElement("div",{className:Ke()("".concat(Ht,"-expanded-row"),"".concat(Ht,"-expanded-row-level-").concat(hn+1),fr)},le.createElement(On,{component:"div",prefixCls:Ht,className:Ke()(ar,(0,he.Z)({},"".concat(ar,"-fixed"),Ja)),additionalProps:Ga},tr))}var Gr=(0,He.Z)((0,He.Z)({},$t),{},{width:ca});Yt&&(Gr.position="absolute",Gr.pointerEvents="none");var Po=le.createElement("div",(0,We.Z)({},Dr,xn,{ref:Rr?null:Ce,className:Ke()(Pt,"".concat(Ht,"-row"),Dr==null?void 0:Dr.className,(0,he.Z)({},"".concat(Ht,"-row-extra"),Yt)),style:(0,He.Z)((0,He.Z)({},Gr),Dr==null?void 0:Dr.style)}),Oa.map(function(lo,Lr){return le.createElement(yo,{key:Lr,rowInfo:nr,column:lo,colIndex:Lr,indent:hn,index:rt,renderIndex:qn,record:pn,inverse:Yt,getHeight:Ut})}));return Rr?le.createElement("div",{ref:Ce},Po,er):Po}),Fo=ne(Yo),Ao=Fo,eo=le.forwardRef(function(Ee,Ce){var Ue=Ee.data,rt=Ee.onScroll,Pt=Ve(ie,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Et=Pt.flattenColumns,$t=Pt.onColumnResize,Yt=Pt.getRowKey,Ut=Pt.expandedKeys,xn=Pt.prefixCls,pn=Pt.childrenColumnName,hn=Pt.emptyNode,qn=Pt.scrollX,aa=Ve(lr),ca=aa.scrollY,Oa=aa.listItemHeight,Ht=le.useRef(),Ja=an(Ue,pn,Ut,Yt),_a=le.useMemo(function(){var er=0;return Et.map(function(tr){var fr=tr.width,Ga=tr.key;return er+=fr,[Ga,fr,er]})},[Et]),nr=le.useMemo(function(){return _a.map(function(er){return er[2]})},[_a]);le.useEffect(function(){_a.forEach(function(er){var tr=(0,Be.Z)(er,2),fr=tr[0],Ga=tr[1];$t(fr,Ga)})},[_a]),le.useImperativeHandle(Ce,function(){var er={};return Object.defineProperty(er,"scrollLeft",{get:function(){var fr;return((fr=Ht.current)===null||fr===void 0?void 0:fr.getScrollInfo().x)||0},set:function(fr){var Ga;(Ga=Ht.current)===null||Ga===void 0||Ga.scrollTo({left:fr})}}),er});var Rr=function(tr,fr){var Ga,ar=(Ga=Ja[fr])===null||Ga===void 0?void 0:Ga.record,Gr=tr.onCell;if(Gr){var Po,lo=Gr(ar,fr);return(Po=lo==null?void 0:lo.rowSpan)!==null&&Po!==void 0?Po:1}return 1},Kr=function(tr){var fr=tr.start,Ga=tr.end,ar=tr.getSize,Gr=tr.offsetY;if(Ga<0)return null;for(var Po=Et.filter(function(Xr){return Rr(Xr,fr)===0}),lo=fr,Lr=function(Mr){if(Po=Po.filter(function($r){return Rr($r,Mr)===0}),!Po.length)return lo=Mr,"break"},vo=fr;vo>=0;vo-=1){var Bo=Lr(vo);if(Bo==="break")break}for(var ka=Et.filter(function(Xr){return Rr(Xr,Ga)!==1}),wo=Ga,Ci=function(Mr){if(ka=ka.filter(function($r){return Rr($r,Mr)!==1}),!ka.length)return wo=Math.max(Mr-1,Ga),"break"},Do=Ga;Do<Ja.length;Do+=1){var Qr=Ci(Do);if(Qr==="break")break}for(var xi=[],Vr=function(Mr){var $r=Ja[Mr];if(!$r)return"continue";Et.some(function(kr){return Rr(kr,Mr)>1})&&xi.push(Mr)},gi=lo;gi<=wo;gi+=1)var Ho=Vr(gi);var _i=xi.map(function(Xr){var Mr=Ja[Xr],$r=Yt(Mr.record,Xr),kr=function(Pe){var Lt=Xr+Pe-1,tn=Yt(Ja[Lt].record,Lt),Aa=ar($r,tn);return Aa.bottom-Aa.top},ce=ar($r);return le.createElement(Ao,{key:Xr,data:Mr,rowKey:$r,index:Xr,style:{top:-Gr+ce.top},extra:!0,getHeight:kr})});return _i},Dr=le.useMemo(function(){return{columnsOffset:nr}},[nr]),jr="".concat(xn,"-tbody"),_r;return Ja.length?_r=le.createElement(io.Z,{fullHeight:!1,ref:Ht,className:Ke()(jr,"".concat(jr,"-virtual")),height:ca,itemHeight:Oa||24,data:Ja,itemKey:function(tr){return Yt(tr.record)},scrollWidth:qn,onVirtualScroll:function(tr){var fr=tr.x;rt({scrollLeft:fr})},extraRender:Kr},function(er,tr,fr){var Ga=Yt(er.record,tr);return le.createElement(Ao,(0,We.Z)({data:er,rowKey:Ga,index:tr},fr))}):_r=le.createElement("div",{className:Ke()("".concat(xn,"-placeholder"))},le.createElement(On,{component:"div",prefixCls:xn},hn)),le.createElement(ko.Provider,{value:Dr},_r)}),Pr=ne(eo),To=Pr,vi=function(Ce,Ue){var rt=Ue.ref,Pt=Ue.onScroll;return le.createElement(To,{ref:rt,data:Ce,onScroll:Pt})},Oo=100;function br(Ee){var Ce=Ee.columns,Ue=Ee.scroll,rt=Ee.prefixCls,Pt=rt===void 0?Ir:rt,Et=Ee.className,$t=Ee.listItemHeight,Yt=Ue||{},Ut=Yt.x,xn=Yt.y;typeof Ut!="number"&&(Ut=((Ce||[]).length+1)*Oo),typeof xn!="number"&&(xn=500);var pn=le.useMemo(function(){return{scrollY:xn,listItemHeight:$t}},[xn,$t]);return le.createElement(lr.Provider,{value:pn},le.createElement(Fr,(0,We.Z)({},Ee,{className:Ke()(Et,"".concat(Pt,"-virtual")),scroll:(0,He.Z)((0,He.Z)({},Ue),{},{x:Ut}),components:{body:vi},columns:Ce,internalHooks:de,tailor:!0})))}function ai(Ee){return z(br,Ee)}var zr=ai(),Lo=null;function ao(Ee){return null}var si=ao;function hi(Ee){return null}var Qi=hi,tl=ee(2738),nl=ee(68031),Uo=ee(36355),Bi=ee(93891),gl=ee(19716),ji=ee(8628),cl=ee(31724),Cl=ee(58421),Tr=ee(71418),Va=ee(88088);function ja(Ee){return function(Ue){let{prefixCls:rt,onExpand:Pt,record:Et,expanded:$t,expandable:Yt}=Ue;const Ut=`${rt}-row-expand-icon`;return le.createElement("button",{type:"button",onClick:xn=>{Pt(Et,xn),xn.stopPropagation()},className:Ke()(Ut,{[`${Ut}-spaced`]:!Yt,[`${Ut}-expanded`]:Yt&&$t,[`${Ut}-collapsed`]:Yt&&!$t}),"aria-label":$t?Ee.collapse:Ee.expand,"aria-expanded":$t})}}var Ya=ja;function so(Ee,Ce){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:Ce}function Zo(Ee,Ce){return Ce?`${Ce}-${Ee}`:`${Ee}`}function we(Ee,Ce){return typeof Ee=="function"?Ee(Ce):Ee}function fn(Ee,Ce){const Ue=we(Ee,Ce);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var Wn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},fa=Wn,yn=ee(7657),wa=function(Ce,Ue){return le.createElement(yn.Z,(0,We.Z)({},Ce,{ref:Ue,icon:fa}))},na=le.forwardRef(wa),Un=na,pa=ee(56762);function Sa(Ee){const Ce=le.useRef(Ee),Ue=(0,pa.Z)();return[()=>Ce.current,rt=>{Ce.current=rt,Ue()}]}var Wa=ee(3113),ur=ee(24905),$a=ee(38854),_o=ee(64165),co=ee(20834),Vo=ee(40875),ci=ee(5112),Gi=ee(17574),al=ee(47472),Zl=ee(92832);function Al(Ee){let{value:Ce,onChange:Ue,filterSearch:rt,tablePrefixCls:Pt,locale:Et}=Ee;return rt?le.createElement("div",{className:`${Pt}-filter-dropdown-search`},le.createElement(Zl.default,{prefix:le.createElement(al.Z,null),placeholder:Et.filterSearchPlaceholder,onChange:Ue,value:Ce,htmlSize:1,className:`${Pt}-filter-dropdown-search-input`})):null}var ho=Al,Pl=ee(10228);const eu=Ee=>{const{keyCode:Ce}=Ee;Ce===Pl.Z.ENTER&&Ee.stopPropagation()};var xl=le.forwardRef((Ee,Ce)=>le.createElement("div",{className:Ee.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:eu,ref:Ce},Ee.children));function tu(Ee){let Ce=[];return(Ee||[]).forEach(Ue=>{let{value:rt,children:Pt}=Ue;Ce.push(rt),Pt&&(Ce=[].concat((0,Ea.Z)(Ce),(0,Ea.Z)(tu(Pt))))}),Ce}function Qu(Ee){return Ee.some(Ce=>{let{children:Ue}=Ce;return Ue})}function su(Ee,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function mu(Ee){let{filters:Ce,prefixCls:Ue,filteredKeys:rt,filterMultiple:Pt,searchValue:Et,filterSearch:$t}=Ee;return Ce.map((Yt,Ut)=>{const xn=String(Yt.value);if(Yt.children)return{key:xn||Ut,label:Yt.text,popupClassName:`${Ue}-dropdown-submenu`,children:mu({filters:Yt.children,prefixCls:Ue,filteredKeys:rt,filterMultiple:Pt,searchValue:Et,filterSearch:$t})};const pn=Pt?ur.default:ci.ZP,hn={key:Yt.value!==void 0?xn:Ut,label:le.createElement(le.Fragment,null,le.createElement(pn,{checked:rt.includes(xn)}),le.createElement("span",null,Yt.text))};return Et.trim()?typeof $t=="function"?$t(Et,Yt)?hn:null:su(Et,Yt.text)?hn:null:hn})}function Yu(Ee){var Ce,Ue;const{tablePrefixCls:rt,prefixCls:Pt,column:Et,dropdownPrefixCls:$t,columnKey:Yt,filterMultiple:Ut,filterMode:xn="menu",filterSearch:pn=!1,filterState:hn,triggerFilter:qn,locale:aa,children:ca,getPopupContainer:Oa}=Ee,{filterDropdownOpen:Ht,onFilterDropdownOpenChange:Ja,filterResetToDefaultFilteredValue:_a,defaultFilteredValue:nr,filterDropdownVisible:Rr,onFilterDropdownVisibleChange:Kr}=Et,[Dr,jr]=le.useState(!1),_r=!!(hn&&(!((Ce=hn.filteredKeys)===null||Ce===void 0)&&Ce.length||hn.forceFiltered)),er=pe=>{jr(pe),Ja==null||Ja(pe),Kr==null||Kr(pe)},tr=(Ue=Ht!=null?Ht:Rr)!==null&&Ue!==void 0?Ue:Dr,fr=hn==null?void 0:hn.filteredKeys,[Ga,ar]=Sa(fr||[]),Gr=pe=>{let{selectedKeys:Pe}=pe;ar(Pe)},Po=(pe,Pe)=>{let{node:Lt,checked:tn}=Pe;Gr(Ut?{selectedKeys:pe}:{selectedKeys:tn&&Lt.key?[Lt.key]:[]})};le.useEffect(()=>{Dr&&Gr({selectedKeys:fr||[]})},[fr]);const[lo,Lr]=le.useState([]),vo=pe=>{Lr(pe)},[Bo,ka]=le.useState(""),wo=pe=>{const{value:Pe}=pe.target;ka(Pe)};le.useEffect(()=>{Dr||ka("")},[Dr]);const Ci=pe=>{const Pe=pe&&pe.length?pe:null;if(Pe===null&&(!hn||!hn.filteredKeys)||(0,Me.Z)(Pe,hn==null?void 0:hn.filteredKeys,!0))return null;qn({column:Et,key:Yt,filteredKeys:Pe})},Do=()=>{er(!1),Ci(Ga())},Qr=function(){let{confirm:pe,closeDropdown:Pe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};pe&&Ci([]),Pe&&er(!1),ka(""),ar(_a?(nr||[]).map(Lt=>String(Lt)):[])},xi=function(){let{closeDropdown:pe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};pe&&er(!1),Ci(Ga())},Vr=pe=>{pe&&fr!==void 0&&ar(fr||[]),er(pe),!pe&&!Et.filterDropdown&&Do()},gi=Ke()({[`${$t}-menu-without-submenu`]:!Qu(Et.filters||[])}),Ho=pe=>{if(pe.target.checked){const Pe=tu(Et==null?void 0:Et.filters).map(Lt=>String(Lt));ar(Pe)}else ar([])},_i=pe=>{let{filters:Pe}=pe;return(Pe||[]).map((Lt,tn)=>{const Aa=String(Lt.value),ma={title:Lt.text,key:Lt.value!==void 0?Aa:tn};return Lt.children&&(ma.children=_i({filters:Lt.children})),ma})},Xr=pe=>{var Pe;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((Pe=pe.children)===null||Pe===void 0?void 0:Pe.map(Lt=>Xr(Lt)))||[]})};let Mr;if(typeof Et.filterDropdown=="function")Mr=Et.filterDropdown({prefixCls:`${$t}-custom`,setSelectedKeys:pe=>Gr({selectedKeys:pe}),selectedKeys:Ga(),confirm:xi,clearFilters:Qr,filters:Et.filters,visible:tr,close:()=>{er(!1)}});else if(Et.filterDropdown)Mr=Et.filterDropdown;else{const pe=Ga()||[],Pe=()=>(Et.filters||[]).length===0?le.createElement(_o.Z,{image:_o.Z.PRESENTED_IMAGE_SIMPLE,description:aa.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xn==="tree"?le.createElement(le.Fragment,null,le.createElement(ho,{filterSearch:pn,value:Bo,onChange:wo,tablePrefixCls:rt,locale:aa}),le.createElement("div",{className:`${rt}-filter-dropdown-tree`},Ut?le.createElement(ur.default,{checked:pe.length===tu(Et.filters).length,indeterminate:pe.length>0&&pe.length<tu(Et.filters).length,className:`${rt}-filter-dropdown-checkall`,onChange:Ho},aa.filterCheckall):null,le.createElement(Gi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ut,checkStrictly:!Ut,className:`${$t}-menu`,onCheck:Po,checkedKeys:pe,selectedKeys:pe,showIcon:!1,treeData:_i({filters:Et.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Bo.trim()?tn=>typeof pn=="function"?pn(Bo,Xr(tn)):su(Bo,tn.title):void 0}))):le.createElement(le.Fragment,null,le.createElement(ho,{filterSearch:pn,value:Bo,onChange:wo,tablePrefixCls:rt,locale:aa}),le.createElement(co.default,{selectable:!0,multiple:Ut,prefixCls:`${$t}-menu`,className:gi,onSelect:Gr,onDeselect:Gr,selectedKeys:pe,getPopupContainer:Oa,openKeys:lo,onOpenChange:vo,items:mu({filters:Et.filters||[],filterSearch:pn,prefixCls:Pt,filteredKeys:Ga(),filterMultiple:Ut,searchValue:Bo})})),Lt=()=>_a?(0,Me.Z)((nr||[]).map(tn=>String(tn)),pe,!0):pe.length===0;Mr=le.createElement(le.Fragment,null,Pe(),le.createElement("div",{className:`${Pt}-dropdown-btns`},le.createElement(Wa.ZP,{type:"link",size:"small",disabled:Lt(),onClick:()=>Qr()},aa.filterReset),le.createElement(Wa.ZP,{type:"primary",size:"small",onClick:Do},aa.filterConfirm)))}Et.filterDropdown&&(Mr=le.createElement(Vo.J,{selectable:void 0},Mr));const $r=()=>le.createElement(xl,{className:`${Pt}-dropdown`},Mr);let kr;typeof Et.filterIcon=="function"?kr=Et.filterIcon(_r):Et.filterIcon?kr=Et.filterIcon:kr=le.createElement(Un,null);const{direction:ce}=le.useContext(Uo.E_);return le.createElement("div",{className:`${Pt}-column`},le.createElement("span",{className:`${rt}-column-title`},ca),le.createElement($a.Z,{dropdownRender:$r,trigger:["click"],open:tr,onOpenChange:Vr,getPopupContainer:Oa,placement:ce==="rtl"?"bottomLeft":"bottomRight"},le.createElement("span",{role:"button",tabIndex:-1,className:Ke()(`${Pt}-trigger`,{active:_r}),onClick:pe=>{pe.stopPropagation()}},kr)))}var El=Yu;function Ru(Ee,Ce,Ue){let rt=[];return(Ee||[]).forEach((Pt,Et)=>{var $t;const Yt=Zo(Et,Ue);if(Pt.filters||"filterDropdown"in Pt||"onFilter"in Pt)if("filteredValue"in Pt){let Ut=Pt.filteredValue;"filterDropdown"in Pt||(Ut=($t=Ut==null?void 0:Ut.map(String))!==null&&$t!==void 0?$t:Ut),rt.push({column:Pt,key:so(Pt,Yt),filteredKeys:Ut,forceFiltered:Pt.filtered})}else rt.push({column:Pt,key:so(Pt,Yt),filteredKeys:Ce&&Pt.defaultFilteredValue?Pt.defaultFilteredValue:void 0,forceFiltered:Pt.filtered});"children"in Pt&&(rt=[].concat((0,Ea.Z)(rt),(0,Ea.Z)(Ru(Pt.children,Ce,Yt))))}),rt}function Mu(Ee,Ce,Ue,rt,Pt,Et,$t,Yt){return Ue.map((Ut,xn)=>{const pn=Zo(xn,Yt),{filterMultiple:hn=!0,filterMode:qn,filterSearch:aa}=Ut;let ca=Ut;if(ca.filters||ca.filterDropdown){const Oa=so(ca,pn),Ht=rt.find(Ja=>{let{key:_a}=Ja;return Oa===_a});ca=Object.assign(Object.assign({},ca),{title:Ja=>le.createElement(El,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:Ce,column:ca,columnKey:Oa,filterState:Ht,filterMultiple:hn,filterMode:qn,filterSearch:aa,triggerFilter:Et,locale:Pt,getPopupContainer:$t},we(Ut.title,Ja))})}return"children"in ca&&(ca=Object.assign(Object.assign({},ca),{children:Mu(Ee,Ce,ca.children,rt,Pt,Et,$t,pn)})),ca})}function rl(Ee){const Ce={};return Ee.forEach(Ue=>{let{key:rt,filteredKeys:Pt,column:Et}=Ue;const{filters:$t,filterDropdown:Yt}=Et;if(Yt)Ce[rt]=Pt||null;else if(Array.isArray(Pt)){const Ut=tu($t);Ce[rt]=Ut.filter(xn=>Pt.includes(String(xn)))}else Ce[rt]=null}),Ce}function ku(Ee,Ce){return Ce.reduce((Ue,rt)=>{const{column:{onFilter:Pt,filters:Et},filteredKeys:$t}=rt;return Pt&&$t&&$t.length?Ue.filter(Yt=>$t.some(Ut=>{const xn=tu(Et),pn=xn.findIndex(qn=>String(qn)===String(Ut)),hn=pn!==-1?xn[pn]:Ut;return Pt(hn,Yt)})):Ue},Ee)}const nu=Ee=>Ee.flatMap(Ce=>"children"in Ce?[Ce].concat((0,Ea.Z)(nu(Ce.children||[]))):[Ce]);function Ju(Ee){let{prefixCls:Ce,dropdownPrefixCls:Ue,mergedColumns:rt,onFilterChange:Pt,getPopupContainer:Et,locale:$t}=Ee;const Yt=le.useMemo(()=>nu(rt||[]),[rt]),[Ut,xn]=le.useState(()=>Ru(Yt,!0)),pn=le.useMemo(()=>{const ca=Ru(Yt,!1);if(ca.length===0)return ca;let Oa=!0,Ht=!0;if(ca.forEach(Ja=>{let{filteredKeys:_a}=Ja;_a!==void 0?Oa=!1:Ht=!1}),Oa){const Ja=(Yt||[]).map((_a,nr)=>so(_a,Zo(nr)));return Ut.filter(_a=>{let{key:nr}=_a;return Ja.includes(nr)}).map(_a=>{const nr=Yt[Ja.findIndex(Rr=>Rr===_a.key)];return Object.assign(Object.assign({},_a),{column:Object.assign(Object.assign({},_a.column),nr),forceFiltered:nr.filtered})})}return ca},[Yt,Ut]),hn=le.useMemo(()=>rl(pn),[pn]),qn=ca=>{const Oa=pn.filter(Ht=>{let{key:Ja}=Ht;return Ja!==ca.key});Oa.push(ca),xn(Oa),Pt(rl(Oa),Oa)};return[ca=>Mu(Ce,Ue,ca,pn,$t,qn,Et),pn,hn]}var bu=Ju;function Tu(Ee,Ce,Ue){const rt=le.useRef({});function Pt(Et){if(!rt.current||rt.current.data!==Ee||rt.current.childrenColumnName!==Ce||rt.current.getRowKey!==Ue){let Yt=function(Ut){Ut.forEach((xn,pn)=>{const hn=Ue(xn,pn);$t.set(hn,xn),xn&&typeof xn=="object"&&Ce in xn&&Yt(xn[Ce]||[])})};const $t=new Map;Yt(Ee),rt.current={data:Ee,childrenColumnName:Ce,kvMap:$t,getRowKey:Ue}}return rt.current.kvMap.get(Et)}return[Pt]}var Xu=ee(50371),_u=function(Ee,Ce){var Ue={};for(var rt in Ee)Object.prototype.hasOwnProperty.call(Ee,rt)&&Ce.indexOf(rt)<0&&(Ue[rt]=Ee[rt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,rt=Object.getOwnPropertySymbols(Ee);Pt<rt.length;Pt++)Ce.indexOf(rt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,rt[Pt])&&(Ue[rt[Pt]]=Ee[rt[Pt]]);return Ue};const yl=10;function Wi(Ee,Ce){const Ue={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(Pt=>{const Et=Ee[Pt];typeof Et!="function"&&(Ue[Pt]=Et)}),Ue}function Zu(Ee,Ce,Ue){const rt=Ue&&typeof Ue=="object"?Ue:{},{total:Pt=0}=rt,Et=_u(rt,["total"]),[$t,Yt]=(0,le.useState)(()=>({current:"defaultCurrent"in Et?Et.defaultCurrent:1,pageSize:"defaultPageSize"in Et?Et.defaultPageSize:yl})),Ut=(0,Xu.Z)($t,Et,{total:Pt>0?Pt:Ee}),xn=Math.ceil((Pt||Ee)/Ut.pageSize);Ut.current>xn&&(Ut.current=xn||1);const pn=(qn,aa)=>{Yt({current:qn!=null?qn:1,pageSize:aa||Ut.pageSize})},hn=(qn,aa)=>{var ca;Ue&&((ca=Ue.onChange)===null||ca===void 0||ca.call(Ue,qn,aa)),pn(qn,aa),Ce(qn,aa||(Ut==null?void 0:Ut.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ut),{onChange:hn}),pn]}var fs=Zu,au=ee(84105),wi=ee(35654),Cu=ee(90782),zu=ee(71430),rs=ee(18929);const Il={},Hu="SELECT_ALL",xu="SELECT_INVERT",Fu="SELECT_NONE",Fl=[],zl=(Ee,Ce)=>{let Ue=[];return(Ce||[]).forEach(rt=>{Ue.push(rt),rt&&typeof rt=="object"&&Ee in rt&&(Ue=[].concat((0,Ea.Z)(Ue),(0,Ea.Z)(zl(Ee,rt[Ee]))))}),Ue};var qu=(Ee,Ce)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:rt,defaultSelectedRowKeys:Pt,getCheckboxProps:Et,onChange:$t,onSelect:Yt,onSelectAll:Ut,onSelectInvert:xn,onSelectNone:pn,onSelectMultiple:hn,columnWidth:qn,type:aa,selections:ca,fixed:Oa,renderCell:Ht,hideSelectAll:Ja,checkStrictly:_a=!0}=Ce||{},{prefixCls:nr,data:Rr,pageData:Kr,getRecordByKey:Dr,getRowKey:jr,expandType:_r,childrenColumnName:er,locale:tr,getPopupContainer:fr}=Ee,[Ga,ar]=(0,rs.Z)(rt||Pt||Fl,{value:rt}),Gr=le.useRef(new Map),Po=(0,le.useCallback)(Xr=>{if(Ue){const Mr=new Map;Xr.forEach($r=>{let kr=Dr($r);!kr&&Gr.current.has($r)&&(kr=Gr.current.get($r)),Mr.set($r,kr)}),Gr.current=Mr}},[Dr,Ue]);le.useEffect(()=>{Po(Ga)},[Ga]);const{keyEntities:lo}=(0,le.useMemo)(()=>{if(_a)return{keyEntities:null};let Xr=Rr;if(Ue){const Mr=new Set(Rr.map((kr,ce)=>jr(kr,ce))),$r=Array.from(Gr.current).reduce((kr,ce)=>{let[pe,Pe]=ce;return Mr.has(pe)?kr:kr.concat(Pe)},[]);Xr=[].concat((0,Ea.Z)(Xr),(0,Ea.Z)($r))}return(0,zu.I8)(Xr,{externalGetKey:jr,childrenPropName:er})},[Rr,jr,_a,er,Ue]),Lr=(0,le.useMemo)(()=>zl(er,Kr),[er,Kr]),vo=(0,le.useMemo)(()=>{const Xr=new Map;return Lr.forEach((Mr,$r)=>{const kr=jr(Mr,$r),ce=(Et?Et(Mr):null)||{};Xr.set(kr,ce)}),Xr},[Lr,jr,Et]),Bo=(0,le.useCallback)(Xr=>{var Mr;return!!(!((Mr=vo.get(jr(Xr)))===null||Mr===void 0)&&Mr.disabled)},[vo,jr]),[ka,wo]=(0,le.useMemo)(()=>{if(_a)return[Ga||[],[]];const{checkedKeys:Xr,halfCheckedKeys:Mr}=(0,Cu.S)(Ga,!0,lo,Bo);return[Xr||[],Mr]},[Ga,_a,lo,Bo]),Ci=(0,le.useMemo)(()=>{const Xr=aa==="radio"?ka.slice(0,1):ka;return new Set(Xr)},[ka,aa]),Do=(0,le.useMemo)(()=>aa==="radio"?new Set:new Set(wo),[wo,aa]),[Qr,xi]=(0,le.useState)(null);le.useEffect(()=>{Ce||ar(Fl)},[!!Ce]);const Vr=(0,le.useCallback)((Xr,Mr)=>{let $r,kr;Po(Xr),Ue?($r=Xr,kr=Xr.map(ce=>Gr.current.get(ce))):($r=[],kr=[],Xr.forEach(ce=>{const pe=Dr(ce);pe!==void 0&&($r.push(ce),kr.push(pe))})),ar($r),$t==null||$t($r,kr,{type:Mr})},[ar,Dr,$t,Ue]),gi=(0,le.useCallback)((Xr,Mr,$r,kr)=>{if(Yt){const ce=$r.map(pe=>Dr(pe));Yt(Dr(Xr),Mr,ce,kr)}Vr($r,"single")},[Yt,Dr,Vr]),Ho=(0,le.useMemo)(()=>!ca||Ja?null:(ca===!0?[Hu,xu,Fu]:ca).map(Mr=>Mr===Hu?{key:"all",text:tr.selectionAll,onSelect(){Vr(Rr.map(($r,kr)=>jr($r,kr)).filter($r=>{const kr=vo.get($r);return!(kr!=null&&kr.disabled)||Ci.has($r)}),"all")}}:Mr===xu?{key:"invert",text:tr.selectInvert,onSelect(){const $r=new Set(Ci);Kr.forEach((ce,pe)=>{const Pe=jr(ce,pe),Lt=vo.get(Pe);Lt!=null&&Lt.disabled||($r.has(Pe)?$r.delete(Pe):$r.add(Pe))});const kr=Array.from($r);xn&&xn(kr),Vr(kr,"invert")}}:Mr===Fu?{key:"none",text:tr.selectNone,onSelect(){pn==null||pn(),Vr(Array.from(Ci).filter($r=>{const kr=vo.get($r);return kr==null?void 0:kr.disabled}),"none")}}:Mr).map(Mr=>Object.assign(Object.assign({},Mr),{onSelect:function(){for(var $r,kr,ce=arguments.length,pe=new Array(ce),Pe=0;Pe<ce;Pe++)pe[Pe]=arguments[Pe];(kr=Mr.onSelect)===null||kr===void 0||($r=kr).call.apply($r,[Mr].concat(pe)),xi(null)}})),[ca,Ci,Kr,jr,xn,Vr]);return[(0,le.useCallback)(Xr=>{var Mr;if(!Ce)return Xr.filter(An=>An!==Il);let $r=(0,Ea.Z)(Xr);const kr=new Set(Ci),ce=Lr.map(jr).filter(An=>!vo.get(An).disabled),pe=ce.every(An=>kr.has(An)),Pe=ce.some(An=>kr.has(An)),Lt=()=>{const An=[];pe?ce.forEach(Zn=>{kr.delete(Zn),An.push(Zn)}):ce.forEach(Zn=>{kr.has(Zn)||(kr.add(Zn),An.push(Zn))});const ia=Array.from(kr);Ut==null||Ut(!pe,ia.map(Zn=>Dr(Zn)),An.map(Zn=>Dr(Zn))),Vr(ia,"all"),xi(null)};let tn;if(aa!=="radio"){let An;if(Ho){const la={getPopupContainer:fr,items:Ho.map((Ua,bn)=>{const{key:Ca,text:Ha,onSelect:Yr}=Ua;return{key:Ca!=null?Ca:bn,onClick:()=>{Yr==null||Yr(ce)},label:Ha}})};An=le.createElement("div",{className:`${nr}-selection-extra`},le.createElement($a.Z,{menu:la,getPopupContainer:fr},le.createElement("span",null,le.createElement(au.Z,null))))}const ia=Lr.map((la,Ua)=>{const bn=jr(la,Ua),Ca=vo.get(bn)||{};return Object.assign({checked:kr.has(bn)},Ca)}).filter(la=>{let{disabled:Ua}=la;return Ua}),Zn=!!ia.length&&ia.length===Lr.length,xa=Zn&&ia.every(la=>{let{checked:Ua}=la;return Ua}),ta=Zn&&ia.some(la=>{let{checked:Ua}=la;return Ua});tn=!Ja&&le.createElement("div",{className:`${nr}-selection`},le.createElement(ur.default,{checked:Zn?xa:!!Lr.length&&pe,indeterminate:Zn?!xa&&ta:!pe&&Pe,onChange:Lt,disabled:Lr.length===0||Zn,"aria-label":An?"Custom selection":"Select all",skipGroup:!0}),An)}let Aa;aa==="radio"?Aa=(An,ia,Zn)=>{const xa=jr(ia,Zn),ta=kr.has(xa);return{node:le.createElement(ci.ZP,Object.assign({},vo.get(xa),{checked:ta,onClick:la=>la.stopPropagation(),onChange:la=>{kr.has(xa)||gi(xa,!0,[xa],la.nativeEvent)}})),checked:ta}}:Aa=(An,ia,Zn)=>{var xa;const ta=jr(ia,Zn),la=kr.has(ta),Ua=Do.has(ta),bn=vo.get(ta);let Ca;return _r==="nest"?Ca=Ua:Ca=(xa=bn==null?void 0:bn.indeterminate)!==null&&xa!==void 0?xa:Ua,{node:le.createElement(ur.default,Object.assign({},bn,{indeterminate:Ca,checked:la,skipGroup:!0,onClick:Ha=>Ha.stopPropagation(),onChange:Ha=>{let{nativeEvent:Yr}=Ha;const{shiftKey:cr}=Yr;let ii=-1,Za=-1;if(cr&&_a){const bo=new Set([Qr,ta]);ce.some((Cr,to)=>{if(bo.has(Cr))if(ii===-1)ii=to;else return Za=to,!0;return!1})}if(Za!==-1&&ii!==Za&&_a){const bo=ce.slice(ii,Za+1),Cr=[];la?bo.forEach(So=>{kr.has(So)&&(Cr.push(So),kr.delete(So))}):bo.forEach(So=>{kr.has(So)||(Cr.push(So),kr.add(So))});const to=Array.from(kr);hn==null||hn(!la,to.map(So=>Dr(So)),Cr.map(So=>Dr(So))),Vr(to,"multiple")}else{const bo=ka;if(_a){const Cr=la?(0,wi._5)(bo,ta):(0,wi.L0)(bo,ta);gi(ta,!la,Cr,Yr)}else{const Cr=(0,Cu.S)([].concat((0,Ea.Z)(bo),[ta]),!0,lo,Bo),{checkedKeys:to,halfCheckedKeys:So}=Cr;let Ei=to;if(la){const mi=new Set(to);mi.delete(ta),Ei=(0,Cu.S)(Array.from(mi),{checked:!1,halfCheckedKeys:So},lo,Bo).checkedKeys}gi(ta,!la,Ei,Yr)}}xi(la?null:ta)}})),checked:la}};const ma=(An,ia,Zn)=>{const{node:xa,checked:ta}=Aa(An,ia,Zn);return Ht?Ht(ta,ia,Zn,xa):xa};if(!$r.includes(Il))if($r.findIndex(An=>{var ia;return((ia=An[va])===null||ia===void 0?void 0:ia.columnType)==="EXPAND_COLUMN"})===0){const[An,...ia]=$r;$r=[An,Il].concat((0,Ea.Z)(ia))}else $r=[Il].concat((0,Ea.Z)($r));const Tn=$r.indexOf(Il);$r=$r.filter((An,ia)=>An!==Il||ia===Tn);const jt=$r[Tn-1],Jn=$r[Tn+1];let Fn=Oa;Fn===void 0&&((Jn==null?void 0:Jn.fixed)!==void 0?Fn=Jn.fixed:(jt==null?void 0:jt.fixed)!==void 0&&(Fn=jt.fixed)),Fn&&jt&&((Mr=jt[va])===null||Mr===void 0?void 0:Mr.columnType)==="EXPAND_COLUMN"&&jt.fixed===void 0&&(jt.fixed=Fn);const bt=Ke()(`${nr}-selection-col`,{[`${nr}-selection-col-with-dropdown`]:ca&&aa==="checkbox"}),sn={fixed:Fn,width:qn,className:`${nr}-selection-column`,title:Ce.columnTitle||tn,render:ma,onCell:Ce.onCell,[va]:{className:bt}};return $r.map(An=>An===Il?sn:An)},[jr,Lr,Ce,ka,Ci,Do,qn,Ho,_r,Qr,vo,hn,gi,Bo]),Ci]},ju=ee(89489),Ar=ee(59477),Bu=ee(6848);const Yl="ascend",Hl="descend";function Xa(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function du(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function es(Ee,Ce){return Ce?Ee[Ee.indexOf(Ce)+1]:Ee[0]}function is(Ee,Ce,Ue){let rt=[];function Pt(Et,$t){rt.push({column:Et,key:so(Et,$t),multiplePriority:Xa(Et),sortOrder:Et.sortOrder})}return(Ee||[]).forEach((Et,$t)=>{const Yt=Zo($t,Ue);Et.children?("sortOrder"in Et&&Pt(Et,Yt),rt=[].concat((0,Ea.Z)(rt),(0,Ea.Z)(is(Et.children,Ce,Yt)))):Et.sorter&&("sortOrder"in Et?Pt(Et,Yt):Ce&&Et.defaultSortOrder&&rt.push({column:Et,key:so(Et,Yt),multiplePriority:Xa(Et),sortOrder:Et.defaultSortOrder}))}),rt}function wu(Ee,Ce,Ue,rt,Pt,Et,$t,Yt){return(Ce||[]).map((Ut,xn)=>{const pn=Zo(xn,Yt);let hn=Ut;if(hn.sorter){const qn=hn.sortDirections||Pt,aa=hn.showSorterTooltip===void 0?$t:hn.showSorterTooltip,ca=so(hn,pn),Oa=Ue.find(_r=>{let{key:er}=_r;return er===ca}),Ht=Oa?Oa.sortOrder:null,Ja=es(qn,Ht);let _a;if(Ut.sortIcon)_a=Ut.sortIcon({sortOrder:Ht});else{const _r=qn.includes(Yl)&&le.createElement(Ar.Z,{className:Ke()(`${Ee}-column-sorter-up`,{active:Ht===Yl})}),er=qn.includes(Hl)&&le.createElement(ju.Z,{className:Ke()(`${Ee}-column-sorter-down`,{active:Ht===Hl})});_a=le.createElement("span",{className:Ke()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!(_r&&er)})},le.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},_r,er))}const{cancelSort:nr,triggerAsc:Rr,triggerDesc:Kr}=Et||{};let Dr=nr;Ja===Hl?Dr=Kr:Ja===Yl&&(Dr=Rr);const jr=typeof aa=="object"?aa:{title:Dr};hn=Object.assign(Object.assign({},hn),{className:Ke()(hn.className,{[`${Ee}-column-sort`]:Ht}),title:_r=>{const er=le.createElement("div",{className:`${Ee}-column-sorters`},le.createElement("span",{className:`${Ee}-column-title`},we(Ut.title,_r)),_a);return aa?le.createElement(Bu.Z,Object.assign({},jr),er):er},onHeaderCell:_r=>{const er=Ut.onHeaderCell&&Ut.onHeaderCell(_r)||{},tr=er.onClick,fr=er.onKeyDown;er.onClick=Gr=>{rt({column:Ut,key:ca,sortOrder:Ja,multiplePriority:Xa(Ut)}),tr==null||tr(Gr)},er.onKeyDown=Gr=>{Gr.keyCode===Pl.Z.ENTER&&(rt({column:Ut,key:ca,sortOrder:Ja,multiplePriority:Xa(Ut)}),fr==null||fr(Gr))};const Ga=fn(Ut.title,{}),ar=Ga==null?void 0:Ga.toString();return Ht?er["aria-sort"]=Ht==="ascend"?"ascending":"descending":er["aria-label"]=ar||"",er.className=Ke()(er.className,`${Ee}-column-has-sorters`),er.tabIndex=0,Ut.ellipsis&&(er.title=(Ga!=null?Ga:"").toString()),er}})}return"children"in hn&&(hn=Object.assign(Object.assign({},hn),{children:wu(Ee,hn.children,Ue,rt,Pt,Et,$t,pn)})),hn})}function ts(Ee){const{column:Ce,sortOrder:Ue}=Ee;return{column:Ce,order:Ue,field:Ce.dataIndex,columnKey:Ce.key}}function cu(Ee){const Ce=Ee.filter(Ue=>{let{sortOrder:rt}=Ue;return rt}).map(ts);return Ce.length===0&&Ee.length?Object.assign(Object.assign({},ts(Ee[Ee.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function Yi(Ee,Ce,Ue){const rt=Ce.slice().sort(($t,Yt)=>Yt.multiplePriority-$t.multiplePriority),Pt=Ee.slice(),Et=rt.filter($t=>{let{column:{sorter:Yt},sortOrder:Ut}=$t;return du(Yt)&&Ut});return Et.length?Pt.sort(($t,Yt)=>{for(let Ut=0;Ut<Et.length;Ut+=1){const xn=Et[Ut],{column:{sorter:pn},sortOrder:hn}=xn,qn=du(pn);if(qn&&hn){const aa=qn($t,Yt,hn);if(aa!==0)return hn===Yl?aa:-aa}}return 0}).map($t=>{const Yt=$t[Ue];return Yt?Object.assign(Object.assign({},$t),{[Ue]:Yi(Yt,Ce,Ue)}):$t}):Pt}function ls(Ee){let{prefixCls:Ce,mergedColumns:Ue,onSorterChange:rt,sortDirections:Pt,tableLocale:Et,showSorterTooltip:$t}=Ee;const[Yt,Ut]=le.useState(is(Ue,!0)),xn=le.useMemo(()=>{let ca=!0;const Oa=is(Ue,!1);if(!Oa.length)return Yt;const Ht=[];function Ja(nr){ca?Ht.push(nr):Ht.push(Object.assign(Object.assign({},nr),{sortOrder:null}))}let _a=null;return Oa.forEach(nr=>{_a===null?(Ja(nr),nr.sortOrder&&(nr.multiplePriority===!1?ca=!1:_a=!0)):(_a&&nr.multiplePriority!==!1||(ca=!1),Ja(nr))}),Ht},[Ue,Yt]),pn=le.useMemo(()=>{const ca=xn.map(Oa=>{let{column:Ht,sortOrder:Ja}=Oa;return{column:Ht,order:Ja}});return{sortColumns:ca,sortColumn:ca[0]&&ca[0].column,sortOrder:ca[0]&&ca[0].order}},[xn]);function hn(ca){let Oa;ca.multiplePriority===!1||!xn.length||xn[0].multiplePriority===!1?Oa=[ca]:Oa=[].concat((0,Ea.Z)(xn.filter(Ht=>{let{key:Ja}=Ht;return Ja!==ca.key})),[ca]),Ut(Oa),rt(cu(Oa),Oa)}return[ca=>wu(Ce,ca,xn,hn,Pt,Et,$t),xn,pn,()=>cu(xn)]}function us(Ee,Ce){return Ee.map(Ue=>{const rt=Object.assign({},Ue);return rt.title=we(Ue.title,Ce),"children"in rt&&(rt.children=us(rt.children,Ce)),rt})}function ss(Ee){return[le.useCallback(Ue=>us(Ue,Ee),[Ee])]}var Gu=xr((Ee,Ce)=>{const{_renderTimes:Ue}=Ee,{_renderTimes:rt}=Ce;return Ue!==rt}),Jl=ai((Ee,Ce)=>{const{_renderTimes:Ue}=Ee,{_renderTimes:rt}=Ce;return Ue!==rt}),Xl=ee(64993),ru=ee(17313),fu=ee(83116),Wu=ee(37613),Se=Ee=>{const{componentCls:Ce}=Ee,Ue=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,rt=(Pt,Et,$t)=>({[`&${Ce}-${Pt}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${Et}px -${$t+Ee.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:Ue,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:Ue,borderTop:Ue,[`
> ${Ce}-content,
> ${Ce}-header,
> ${Ce}-body,
> ${Ce}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Ue},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ue},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:Ue}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:Ue,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
> tr${Ce}-expanded-row,
> tr${Ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},rt("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),rt("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:Ue,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:Ue}}}},nt=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},ru.vS),{wordBreak:"keep-all",[`
&${Ce}-cell-fix-left-last,
&${Ce}-cell-fix-right-first
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},en=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},Kt=ee(15969),Mn=Ee=>{const{componentCls:Ce,antCls:Ue,controlInteractiveSize:rt,motionDurationSlow:Pt,lineWidth:Et,paddingXS:$t,lineType:Yt,tableBorderColor:Ut,tableExpandIconBg:xn,tableExpandColumnWidth:pn,borderRadius:hn,fontSize:qn,fontSizeSM:aa,lineHeight:ca,tablePaddingVertical:Oa,tablePaddingHorizontal:Ht,tableExpandedRowBg:Ja,paddingXXS:_a}=Ee,nr=rt/2-Et,Rr=nr*2+Et*3,Kr=`${Et}px ${Yt} ${Ut}`,Dr=_a-Et;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:pn},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,Kt.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:Rr,height:Rr,padding:0,color:"inherit",lineHeight:`${Rr}px`,background:xn,border:Kr,borderRadius:hn,transform:`scale(${rt/Rr})`,transition:`all ${Pt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Pt} ease-out`,content:'""'},"&::before":{top:nr,insetInlineEnd:Dr,insetInlineStart:Dr,height:Et},"&::after":{top:Dr,bottom:Dr,insetInlineStart:nr,width:Et,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(qn*ca-Et*3)/2-Math.ceil((aa*1.4-Et*3)/2),marginInlineEnd:$t},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ja}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Oa}px -${Ht}px`,padding:`${Oa}px ${Ht}px`}}}},Ba=Ee=>{const{componentCls:Ce,antCls:Ue,iconCls:rt,tableFilterDropdownWidth:Pt,tableFilterDropdownSearchWidth:Et,paddingXXS:$t,paddingXS:Yt,colorText:Ut,lineWidth:xn,lineType:pn,tableBorderColor:hn,tableHeaderIconColor:qn,fontSizeSM:aa,tablePaddingHorizontal:ca,borderRadius:Oa,motionDurationSlow:Ht,colorTextDescription:Ja,colorPrimary:_a,tableHeaderFilterActiveBg:nr,colorTextDisabled:Rr,tableFilterDropdownBg:Kr,tableFilterDropdownHeight:Dr,controlItemBgHover:jr,controlItemBgActive:_r,boxShadowSecondary:er,filterDropdownMenuBg:tr}=Ee,fr=`${Ue}-dropdown`,Ga=`${Ce}-filter-dropdown`,ar=`${Ue}-tree`,Gr=`${xn}px ${pn} ${hn}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-$t,marginInline:`${$t}px ${-ca/2}px`,padding:`0 ${$t}px`,color:qn,fontSize:aa,borderRadius:Oa,cursor:"pointer",transition:`all ${Ht}`,"&:hover":{color:Ja,background:nr},"&.active":{color:_a}}}},{[`${Ue}-dropdown`]:{[Ga]:Object.assign(Object.assign({},(0,ru.Wf)(Ee)),{minWidth:Pt,backgroundColor:Kr,borderRadius:Oa,boxShadow:er,overflow:"hidden",[`${fr}-menu`]:{maxHeight:Dr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:tr,"&:empty::after":{display:"block",padding:`${Yt}px 0`,color:Rr,fontSize:aa,textAlign:"center",content:'"Not Found"'}},[`${Ga}-tree`]:{paddingBlock:`${Yt}px 0`,paddingInline:Yt,[ar]:{padding:0},[`${ar}-treenode ${ar}-node-content-wrapper:hover`]:{backgroundColor:jr},[`${ar}-treenode-checkbox-checked ${ar}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_r}}},[`${Ga}-search`]:{padding:Yt,borderBottom:Gr,"&-input":{input:{minWidth:Et},[rt]:{color:Rr}}},[`${Ga}-checkall`]:{width:"100%",marginBottom:$t,marginInlineStart:$t},[`${Ga}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Yt-xn}px ${Yt}px`,overflow:"hidden",borderTop:Gr}})}},{[`${Ue}-dropdown ${Ga}, ${Ga}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:Yt,color:Ut},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},gn=Ee=>{const{componentCls:Ce,lineWidth:Ue,colorSplit:rt,motionDurationSlow:Pt,zIndexTableFixed:Et,tableBg:$t,zIndexTableSticky:Yt}=Ee,Ut=rt;return{[`${Ce}-wrapper`]:{[`
${Ce}-cell-fix-left,
${Ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:Et,background:$t},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ue,width:30,transform:"translateX(100%)",transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ue,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Yt+1,width:30,transition:`box-shadow ${Pt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ut}`}},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Ut}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ut}`}},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Ut}`}}}}},Ra=Ee=>{const{componentCls:Ce,antCls:Ue}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${Ue}-pagination`]:{margin:`${Ee.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},da=Ee=>{const{componentCls:Ce,tableRadius:Ue}=Ee;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${Ue}px ${Ue}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ue,borderStartEndRadius:Ue,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ue},"> *:last-child":{borderStartEndRadius:Ue}}},"&-footer":{borderRadius:`0 0 ${Ue}px ${Ue}px`}}}}},Br=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},wr=Ee=>{const{componentCls:Ce,antCls:Ue,iconCls:rt,fontSizeIcon:Pt,padding:Et,paddingXS:$t,tableHeaderIconColor:Yt,tableHeaderIconColorHover:Ut,tableSelectionColumnWidth:xn}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:xn,[`&${Ce}-selection-col-with-dropdown`]:{width:xn+Pt+Et/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:xn+$t*2,[`&${Ce}-selection-col-with-dropdown`]:{width:xn+Pt+Et/4+$t*2}},[`
table tr th${Ce}-selection-column,
table tr td${Ce}-selection-column
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[rt]:{color:Yt,fontSize:Pt,verticalAlign:"baseline","&:hover":{color:Ut}}}}}},Or=Ee=>{const{componentCls:Ce}=Ee,Ue=(rt,Pt,Et,$t)=>({[`${Ce}${Ce}-${rt}`]:{fontSize:$t,[`
${Ce}-title,
${Ce}-footer,
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Pt}px ${Et}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${Et/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${Pt}px -${Et}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${Pt}px`,marginInline:`${Ee.tableExpandColumnWidth-Et}px -${Et}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${Et/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Ue("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),Ue("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},$o=Ee=>{const{componentCls:Ce,marginXXS:Ue,fontSizeIcon:rt,tableHeaderIconColor:Pt,tableHeaderIconColorHover:Et}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
&${Ce}-cell-fix-left:hover,
&${Ce}-cell-fix-right:hover
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:Ee.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:Ue,color:Pt,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:rt,"&.active":{color:Ee.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:Et}}}},Go=Ee=>{const{componentCls:Ce,opacityLoading:Ue,tableScrollThumbBg:rt,tableScrollThumbBgHover:Pt,tableScrollThumbSize:Et,tableScrollBg:$t,zIndexTableSticky:Yt,stickyScrollBarBorderRadius:Ut}=Ee,xn=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:Yt,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Et}px !important`,zIndex:Yt,display:"flex",alignItems:"center",background:$t,borderTop:xn,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Et,backgroundColor:rt,borderRadius:Ut,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Pt}}}}}}},oi=Ee=>{const{componentCls:Ce,lineWidth:Ue,tableBorderColor:rt}=Ee,Pt=`${Ue}px ${Ee.lineType} ${rt}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:Pt}}},[`div${Ce}-summary`]:{boxShadow:`0 -${Ue}px 0 ${rt}`}}}},zi=Ee=>{const{componentCls:Ce}=Ee,Ue=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,rt=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:Ue},[`${Ce}-expanded-row`]:{[`${rt}${rt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ue,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:Ue,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:Ue}}}}}}};const ro=Ee=>{const{componentCls:Ce,fontWeightStrong:Ue,tablePaddingVertical:rt,tablePaddingHorizontal:Pt,lineWidth:Et,lineType:$t,tableBorderColor:Yt,tableFontSize:Ut,tableBg:xn,tableRadius:pn,tableHeaderTextColor:hn,motionDurationMid:qn,tableHeaderBg:aa,tableHeaderCellSplitColor:ca,tableRowHoverBg:Oa,tableSelectedRowBg:Ht,tableSelectedRowHoverBg:Ja,tableFooterTextColor:_a,tableFooterBg:nr,paddingContentVerticalLG:Rr}=Ee,Kr=`${Et}px ${$t} ${Yt}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ru.dF)()),{[Ce]:Object.assign(Object.assign({},(0,ru.Wf)(Ee)),{fontSize:Ut,background:xn,borderRadius:`${pn}px ${pn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${pn}px ${pn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Rr}px ${Pt}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${rt}px ${Pt}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:hn,fontWeight:Ue,textAlign:"start",background:aa,borderBottom:Kr,transition:`background ${qn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ca,transform:"translateY(-50%)",transition:`background-color ${qn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${qn}, border-color ${qn}`,borderBottom:Kr,[`
> ${Ce}-wrapper:only-child,
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
`]:{[Ce]:{marginBlock:`-${rt}px`,marginInline:`${Ee.tableExpandColumnWidth-Pt}px -${Pt}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:hn,fontWeight:Ue,textAlign:"start",background:aa,borderBottom:Kr,transition:`background ${qn} ease`},[`
&${Ce}-row:hover > th,
&${Ce}-row:hover > td,
> th${Ce}-cell-row-hover,
> td${Ce}-cell-row-hover
`]:{background:Oa},[`&${Ce}-row-selected`]:{"> th, > td":{background:Ht},"&:hover > th, &:hover > td":{background:Ja}}}},[`${Ce}-footer`]:{padding:`${rt}px ${Pt}px`,color:_a,background:nr}})}};var Ro=(0,fu.Z)("Table",Ee=>{const{colorTextHeading:Ce,colorSplit:Ue,colorIcon:rt,colorIconHover:Pt,opacityLoading:Et,colorBgContainer:$t,controlInteractiveSize:Yt,headerBg:Ut,headerColor:xn,headerSortActiveBg:pn,headerSortHoverBg:hn,bodySortBg:qn,rowHoverBg:aa,rowSelectedBg:ca,rowSelectedHoverBg:Oa,rowExpandedBg:Ht,cellPaddingBlock:Ja,cellPaddingInline:_a,cellPaddingBlockMD:nr,cellPaddingInlineMD:Rr,cellPaddingBlockSM:Kr,cellPaddingInlineSM:Dr,borderColor:jr,footerBg:_r,footerColor:er,headerBorderRadius:tr,cellFontSize:fr,cellFontSizeMD:Ga,cellFontSizeSM:ar,headerSplitColor:Gr,fixedHeaderSortActiveBg:Po,headerFilterHoverBg:lo,filterDropdownBg:Lr,expandIconBg:vo,selectionColumnWidth:Bo,stickyScrollBarBg:ka}=Ee,wo=new Xl.C(rt),Ci=new Xl.C(Pt),Do=2,Qr=(0,Wu.TS)(Ee,{tableFontSize:fr,tableBg:$t,tableRadius:tr,tablePaddingVertical:Ja,tablePaddingHorizontal:_a,tablePaddingVerticalMiddle:nr,tablePaddingHorizontalMiddle:Rr,tablePaddingVerticalSmall:Kr,tablePaddingHorizontalSmall:Dr,tableBorderColor:jr,tableHeaderTextColor:xn,tableHeaderBg:Ut,tableFooterTextColor:er,tableFooterBg:_r,tableHeaderCellSplitColor:Gr,tableHeaderSortBg:pn,tableHeaderSortHoverBg:hn,tableHeaderIconColor:wo.clone().setAlpha(wo.getAlpha()*Et).toRgbString(),tableHeaderIconColorHover:Ci.clone().setAlpha(Ci.getAlpha()*Et).toRgbString(),tableBodySortBg:qn,tableFixedHeaderSortActiveBg:Po,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:Lr,tableRowHoverBg:aa,tableSelectedRowBg:ca,tableSelectedRowHoverBg:Oa,zIndexTableFixed:Do,zIndexTableSticky:Do+1,tableFontSizeMiddle:Ga,tableFontSizeSmall:ar,tableSelectionColumnWidth:Bo,tableExpandIconBg:vo,tableExpandColumnWidth:Yt+2*Ee.padding,tableExpandedRowBg:Ht,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ka,tableScrollThumbBgHover:Ce,tableScrollBg:Ue});return[ro(Qr),Ra(Qr),oi(Qr),$o(Qr),Ba(Qr),Se(Qr),da(Qr),Mn(Qr),oi(Qr),en(Qr),wr(Qr),gn(Qr),Go(Qr),nt(Qr),Or(Qr),Br(Qr),zi(Qr)]},Ee=>{const{colorFillAlter:Ce,colorBgContainer:Ue,colorTextHeading:rt,colorFillSecondary:Pt,colorFillContent:Et,controlItemBgActive:$t,controlItemBgActiveHover:Yt,padding:Ut,paddingSM:xn,paddingXS:pn,colorBorderSecondary:hn,borderRadiusLG:qn,fontSize:aa,controlHeight:ca,colorTextPlaceholder:Oa}=Ee,Ht=new Xl.C(Pt).onBackground(Ue).toHexShortString(),Ja=new Xl.C(Et).onBackground(Ue).toHexShortString(),_a=new Xl.C(Ce).onBackground(Ue).toHexShortString();return{headerBg:_a,headerColor:rt,headerSortActiveBg:Ht,headerSortHoverBg:Ja,bodySortBg:_a,rowHoverBg:_a,rowSelectedBg:$t,rowSelectedHoverBg:Yt,rowExpandedBg:Ce,cellPaddingBlock:Ut,cellPaddingInline:Ut,cellPaddingBlockMD:xn,cellPaddingInlineMD:pn,cellPaddingBlockSM:pn,cellPaddingInlineSM:pn,borderColor:hn,headerBorderRadius:qn,footerBg:_a,footerColor:rt,cellFontSize:aa,cellFontSizeMD:aa,cellFontSizeSM:aa,headerSplitColor:hn,fixedHeaderSortActiveBg:Ht,headerFilterHoverBg:Et,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:ca,stickyScrollBarBg:Oa,stickyScrollBarBorderRadius:100}});const zo=[],Di=(Ee,Ce)=>{const{prefixCls:Ue,className:rt,rootClassName:Pt,style:Et,size:$t,bordered:Yt,dropdownPrefixCls:Ut,dataSource:xn,pagination:pn,rowSelection:hn,rowKey:qn="key",rowClassName:aa,columns:ca,children:Oa,childrenColumnName:Ht,onChange:Ja,getPopupContainer:_a,loading:nr,expandIcon:Rr,expandable:Kr,expandedRowRender:Dr,expandIconColumnIndex:jr,indentSize:_r,scroll:er,sortDirections:tr,locale:fr,showSorterTooltip:Ga=!0,virtual:ar}=Ee,Gr=le.useMemo(()=>ca||pt(Oa),[ca,Oa]),Po=le.useMemo(()=>Gr.some(ea=>ea.responsive),[Gr]),lo=(0,ji.Z)(Po),Lr=le.useMemo(()=>{const ea=new Set(Object.keys(lo).filter(Co=>lo[Co]));return Gr.filter(Co=>!Co.responsive||Co.responsive.some(Mi=>ea.has(Mi)))},[Gr,lo]),vo=(0,tl.Z)(Ee,["className","style","columns"]),{locale:Bo=cl.Z,direction:ka,table:wo,renderEmpty:Ci,getPrefixCls:Do,getPopupContainer:Qr}=le.useContext(Uo.E_),xi=(0,gl.Z)($t),Vr=Object.assign(Object.assign({},Bo.Table),fr),gi=xn||zo,Ho=Do("table",Ue),_i=Do("dropdown",Ut),Xr=Object.assign({childrenColumnName:Ht,expandIconColumnIndex:jr},Kr),{childrenColumnName:Mr="children"}=Xr,$r=le.useMemo(()=>gi.some(ea=>ea==null?void 0:ea[Mr])?"nest":Dr||Kr&&Kr.expandedRowRender?"row":null,[gi]),kr={body:le.useRef()},ce=le.useMemo(()=>typeof qn=="function"?qn:ea=>ea==null?void 0:ea[qn],[qn]),[pe]=Tu(gi,Mr,ce),Pe={},Lt=function(ea,Co){let Mi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var jo,Fi,ki;const ri=Object.assign(Object.assign({},Pe),ea);Mi&&((jo=Pe.resetPagination)===null||jo===void 0||jo.call(Pe),!((Fi=ri.pagination)===null||Fi===void 0)&&Fi.current&&(ri.pagination.current=1),pn&&pn.onChange&&pn.onChange(1,(ki=ri.pagination)===null||ki===void 0?void 0:ki.pageSize)),er&&er.scrollToFirstRowOnChange!==!1&&kr.body.current&&(0,nl.Z)(0,{getContainer:()=>kr.body.current}),Ja==null||Ja(ri.pagination,ri.filters,ri.sorter,{currentDataSource:ku(Yi(gi,ri.sorterStates,Mr),ri.filterStates),action:Co})},tn=(ea,Co)=>{Lt({sorter:ea,sorterStates:Co},"sort",!1)},[Aa,ma,Tn,jt]=ls({prefixCls:Ho,mergedColumns:Lr,onSorterChange:tn,sortDirections:tr||["ascend","descend"],tableLocale:Vr,showSorterTooltip:Ga}),Jn=le.useMemo(()=>Yi(gi,ma,Mr),[gi,ma]);Pe.sorter=jt(),Pe.sorterStates=ma;const Fn=(ea,Co)=>{Lt({filters:ea,filterStates:Co},"filter",!0)},[bt,sn,An]=bu({prefixCls:Ho,locale:Vr,dropdownPrefixCls:_i,mergedColumns:Lr,onFilterChange:Fn,getPopupContainer:_a||Qr}),ia=ku(Jn,sn);Pe.filters=An,Pe.filterStates=sn;const Zn=le.useMemo(()=>{const ea={};return Object.keys(An).forEach(Co=>{An[Co]!==null&&(ea[Co]=An[Co])}),Object.assign(Object.assign({},Tn),{filters:ea})},[Tn,An]),[xa]=ss(Zn),ta=(ea,Co)=>{Lt({pagination:Object.assign(Object.assign({},Pe.pagination),{current:ea,pageSize:Co})},"paginate")},[la,Ua]=fs(ia.length,ta,pn);Pe.pagination=pn===!1?{}:Wi(la,pn),Pe.resetPagination=Ua;const bn=le.useMemo(()=>{if(pn===!1||!la.pageSize)return ia;const{current:ea=1,total:Co,pageSize:Mi=yl}=la;return ia.length<Co?ia.length>Mi?ia.slice((ea-1)*Mi,ea*Mi):ia:ia.slice((ea-1)*Mi,ea*Mi)},[!!pn,ia,la&&la.current,la&&la.pageSize,la&&la.total]),[Ca,Ha]=qu({prefixCls:Ho,data:ia,pageData:bn,getRowKey:ce,getRecordByKey:pe,expandType:$r,childrenColumnName:Mr,locale:Vr,getPopupContainer:_a||Qr},hn),Yr=(ea,Co,Mi)=>{let jo;return typeof aa=="function"?jo=Ke()(aa(ea,Co,Mi)):jo=Ke()(aa),Ke()({[`${Ho}-row-selected`]:Ha.has(ce(ea,Co))},jo)};Xr.__PARENT_RENDER_ICON__=Xr.expandIcon,Xr.expandIcon=Xr.expandIcon||Rr||Ya(Vr),$r==="nest"&&Xr.expandIconColumnIndex===void 0?Xr.expandIconColumnIndex=hn?1:0:Xr.expandIconColumnIndex>0&&hn&&(Xr.expandIconColumnIndex-=1),typeof Xr.indentSize!="number"&&(Xr.indentSize=typeof _r=="number"?_r:15);const cr=le.useCallback(ea=>xa(Ca(bt(Aa(ea)))),[Aa,bt,Ca]);let ii,Za;if(pn!==!1&&(la!=null&&la.total)){let ea;la.size?ea=la.size:ea=xi==="small"||xi==="middle"?"small":void 0;const Co=Fi=>le.createElement(Cl.Z,Object.assign({},la,{className:Ke()(`${Ho}-pagination ${Ho}-pagination-${Fi}`,la.className),size:ea})),Mi=ka==="rtl"?"left":"right",{position:jo}=la;if(jo!==null&&Array.isArray(jo)){const Fi=jo.find(il=>il.includes("top")),ki=jo.find(il=>il.includes("bottom")),ri=jo.every(il=>`${il}`=="none");!Fi&&!ki&&!ri&&(Za=Co(Mi)),Fi&&(ii=Co(Fi.toLowerCase().replace("top",""))),ki&&(Za=Co(ki.toLowerCase().replace("bottom","")))}else Za=Co(Mi)}let bo;typeof nr=="boolean"?bo={spinning:nr}:typeof nr=="object"&&(bo=Object.assign({spinning:!0},nr));const[Cr,to]=Ro(Ho),[,So]=(0,Va.Z)(),Ei=Ke()(`${Ho}-wrapper`,wo==null?void 0:wo.className,{[`${Ho}-wrapper-rtl`]:ka==="rtl"},rt,Pt,to),mi=Object.assign(Object.assign({},wo==null?void 0:wo.style),Et),hr=fr&&fr.emptyText||(Ci==null?void 0:Ci("Table"))||le.createElement(Bi.Z,{componentName:"Table"}),po=ar?Jl:Gu,Vi={},Ri=le.useMemo(()=>{const{fontSize:ea,lineHeight:Co,padding:Mi,paddingXS:jo,paddingSM:Fi}=So,ki=Math.floor(ea*Co);switch(xi){case"large":return Mi*2+ki;case"small":return jo*2+ki;default:return Fi*2+ki}},[So,xi]);return ar&&(Vi.listItemHeight=Ri),Cr(le.createElement("div",{ref:Ce,className:Ei,style:mi},le.createElement(Tr.Z,Object.assign({spinning:!1},bo),ii,le.createElement(po,Object.assign({},Vi,vo,{columns:Lr,direction:ka,expandable:Xr,prefixCls:Ho,className:Ke()({[`${Ho}-middle`]:xi==="middle",[`${Ho}-small`]:xi==="small",[`${Ho}-bordered`]:Yt,[`${Ho}-empty`]:gi.length===0}),data:bn,rowKey:ce,rowClassName:Yr,emptyText:hr,internalHooks:de,internalRefs:kr,transformColumns:cr})),Za)))};var Ii=le.forwardRef(Di);const fi=(Ee,Ce)=>{const Ue=le.useRef(0);return Ue.current+=1,le.createElement(Ii,Object.assign({},Ee,{ref:Ce,_renderTimes:Ue.current}))},Mo=le.forwardRef(fi);Mo.SELECTION_COLUMN=Il,Mo.EXPAND_COLUMN=b,Mo.SELECTION_ALL=Hu,Mo.SELECTION_INVERT=xu,Mo.SELECTION_NONE=Fu,Mo.Column=si,Mo.ColumnGroup=Qi,Mo.Summary=Oe;var ol=Mo,Xi=ol},12563:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return He}});var b=ee(59301),de=ee(99267),Be=ee(92310),Ae=ee.n(Be),ze=ee(36785),Me=ee(47729),le=ee(14088),st=ee(36355),et=ee(17313),Ve=ee(37613),We=ee(83116);const Je=he=>{const{paddingXXS:Xe,lineWidth:Ke,tagPaddingHorizontal:St,componentCls:Le}=he,ot=St-Ke,lt=Xe-Ke;return{[Le]:Object.assign(Object.assign({},(0,et.Wf)(he)),{display:"inline-block",height:"auto",marginInlineEnd:he.marginXS,paddingInline:ot,fontSize:he.tagFontSize,lineHeight:he.tagLineHeight,whiteSpace:"nowrap",background:he.defaultBg,border:`${he.lineWidth}px ${he.lineType} ${he.colorBorder}`,borderRadius:he.borderRadiusSM,opacity:1,transition:`all ${he.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Le}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:he.defaultColor},[`${Le}-close-icon`]:{marginInlineStart:lt,color:he.colorTextDescription,fontSize:he.tagIconSize,cursor:"pointer",transition:`all ${he.motionDurationMid}`,"&:hover":{color:he.colorTextHeading}},[`&${Le}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${he.iconCls}-close, ${he.iconCls}-close:hover`]:{color:he.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Le}-checkable-checked):hover`]:{color:he.colorPrimary,backgroundColor:he.colorFillSecondary},"&:active, &-checked":{color:he.colorTextLightSolid},"&-checked":{backgroundColor:he.colorPrimary,"&:hover":{backgroundColor:he.colorPrimaryHover}},"&:active":{backgroundColor:he.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${he.iconCls} + span, > span + ${he.iconCls}`]:{marginInlineStart:ot}}),[`${Le}-borderless`]:{borderColor:"transparent",background:he.tagBorderlessBg}}},Ye=he=>{const{lineWidth:Xe,fontSizeIcon:Ke}=he,St=he.fontSizeSM,Le=`${he.lineHeightSM*St}px`;return(0,Ve.TS)(he,{tagFontSize:St,tagLineHeight:Le,tagIconSize:Ke-2*Xe,tagPaddingHorizontal:8,tagBorderlessBg:he.colorFillTertiary})},se=he=>({defaultBg:he.colorFillQuaternary,defaultColor:he.colorText});var E=(0,We.Z)("Tag",he=>{const Xe=Ye(he);return Je(Xe)},se),a=function(he,Xe){var Ke={};for(var St in he)Object.prototype.hasOwnProperty.call(he,St)&&Xe.indexOf(St)<0&&(Ke[St]=he[St]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,St=Object.getOwnPropertySymbols(he);Le<St.length;Le++)Xe.indexOf(St[Le])<0&&Object.prototype.propertyIsEnumerable.call(he,St[Le])&&(Ke[St[Le]]=he[St[Le]]);return Ke},y=he=>{const{prefixCls:Xe,style:Ke,className:St,checked:Le,onChange:ot,onClick:lt}=he,gt=a(he,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ft,tag:ln}=b.useContext(st.E_),xt=on=>{ot==null||ot(!Le),lt==null||lt(on)},nn=ft("tag",Xe),[En,$e]=E(nn),dt=Ae()(nn,`${nn}-checkable`,{[`${nn}-checkable-checked`]:Le},ln==null?void 0:ln.className,St,$e);return En(b.createElement("span",Object.assign({},gt,{style:Object.assign(Object.assign({},Ke),ln==null?void 0:ln.style),className:dt,onClick:xt})))},z=ee(45157);const ne=he=>(0,z.Z)(he,(Xe,Ke)=>{let{textColor:St,lightBorderColor:Le,lightColor:ot,darkColor:lt}=Ke;return{[`${he.componentCls}-${Xe}`]:{color:St,background:ot,borderColor:Le,"&-inverse":{color:he.colorTextLightSolid,background:lt,borderColor:lt},[`&${he.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,We.b)(["Tag","preset"],he=>{const Xe=Ye(he);return ne(Xe)},se);function ue(he){return typeof he!="string"?he:he.charAt(0).toUpperCase()+he.slice(1)}const ie=(he,Xe,Ke)=>{const St=ue(Ke);return{[`${he.componentCls}-${Xe}`]:{color:he[`color${Ke}`],background:he[`color${St}Bg`],borderColor:he[`color${St}Border`],[`&${he.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ve=(0,We.b)(["Tag","status"],he=>{const Xe=Ye(he);return[ie(Xe,"success","Success"),ie(Xe,"processing","Info"),ie(Xe,"error","Error"),ie(Xe,"warning","Warning")]},se),be=function(he,Xe){var Ke={};for(var St in he)Object.prototype.hasOwnProperty.call(he,St)&&Xe.indexOf(St)<0&&(Ke[St]=he[St]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,St=Object.getOwnPropertySymbols(he);Le<St.length;Le++)Xe.indexOf(St[Le])<0&&Object.prototype.propertyIsEnumerable.call(he,St[Le])&&(Ke[St[Le]]=he[St[Le]]);return Ke};const je=(he,Xe)=>{const{prefixCls:Ke,className:St,rootClassName:Le,style:ot,children:lt,icon:gt,color:ft,onClose:ln,closeIcon:xt,closable:nn,bordered:En=!0}=he,$e=be(he,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:dt,direction:on,tag:Yn}=b.useContext(st.E_),[Zt,On]=b.useState(!0);b.useEffect(()=>{"visible"in $e&&On($e.visible)},[$e.visible]);const _e=(0,ze.o2)(ft),ct=(0,ze.yT)(ft),kt=_e||ct,mt=Object.assign(Object.assign({backgroundColor:ft&&!kt?ft:void 0},Yn==null?void 0:Yn.style),ot),It=dt("tag",Ke),[ut,at]=E(It),Ie=Ae()(It,Yn==null?void 0:Yn.className,{[`${It}-${ft}`]:kt,[`${It}-has-color`]:ft&&!kt,[`${It}-hidden`]:!Zt,[`${It}-rtl`]:on==="rtl",[`${It}-borderless`]:!En},St,Le,at),fe=tt=>{tt.stopPropagation(),ln==null||ln(tt),!tt.defaultPrevented&&On(!1)},[,qe]=(0,Me.Z)(nn,xt,tt=>tt===null?b.createElement(de.Z,{className:`${It}-close-icon`,onClick:fe}):b.createElement("span",{className:`${It}-close-icon`,onClick:fe},tt),null,!1),At=typeof $e.onClick=="function"||lt&&lt.type==="a",Oe=gt||null,Ne=Oe?b.createElement(b.Fragment,null,Oe,lt&&b.createElement("span",null,lt)):lt,Ct=b.createElement("span",Object.assign({},$e,{ref:Xe,className:Ie,style:mt}),Ne,qe,_e&&b.createElement(re,{key:"preset",prefixCls:It}),ct&&b.createElement(ve,{key:"status",prefixCls:It}));return ut(At?b.createElement(le.Z,{component:"Tag"},Ct):Ct)},De=b.forwardRef(je);De.CheckableTag=y;var He=De},98228:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return yr}});var b=ee(92310),de=ee.n(b),Be=ee(92413),Ae=ee(26407),ze=ee(33708),Me=ee(33606),le=ee(37061),st=ee(39559),et=ee(77861),Ve=ee(17115),We=ee(90782),Je=ee(18929),Ye=ee(48736),se=ee(59301),E=function(Xt){var jn=se.useRef({valueLabels:new Map});return se.useMemo(function(){var Qn=jn.current.valueLabels,Ia=new Map,Ge=Xt.map(function(Ot){var _t,Vt=Ot.value,Wt=(_t=Ot.label)!==null&&_t!==void 0?_t:Qn.get(Vt);return Ia.set(Vt,Wt),(0,ze.Z)((0,ze.Z)({},Ot),{},{label:Wt})});return jn.current.valueLabels=Ia,[Ge]},[Xt])},a=function(Xt,jn,Qn,Ia){return se.useMemo(function(){var Ge=Xt.map(function(Wt){var Nn=Wt.value;return Nn}),Ot=jn.map(function(Wt){var Nn=Wt.value;return Nn}),_t=Ge.filter(function(Wt){return!Ia[Wt]});if(Qn){var Vt=(0,We.S)(Ge,!0,Ia);Ge=Vt.checkedKeys,Ot=Vt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ae.Z)(_t),(0,Ae.Z)(Ge)))),Ot]},[Xt,jn,Qn,Ia])},x=ee(71430),y=function(Xt,jn){return se.useMemo(function(){var Qn=(0,x.I8)(Xt,{fieldNames:jn,initWrapper:function(Ge){return(0,ze.Z)((0,ze.Z)({},Ge),{},{valueEntities:new Map})},processEntity:function(Ge,Ot){var _t=Ge.node[jn.value];if(0)var Vt;Ot.valueEntities.set(_t,Ge)}});return Qn},[Xt,jn])},z=ee(400),ne=ee(11592),re=function(){return null},ue=re,ie=["children","value"];function ve(Xt){return(0,ne.Z)(Xt).map(function(jn){if(!se.isValidElement(jn)||!jn.type)return null;var Qn=jn,Ia=Qn.key,Ge=Qn.props,Ot=Ge.children,_t=Ge.value,Vt=(0,le.Z)(Ge,ie),Wt=(0,ze.Z)({key:Ia,value:_t},Vt),Nn=ve(Ot);return Nn.length&&(Wt.children=Nn),Wt}).filter(function(jn){return jn})}function be(Xt){if(!Xt)return Xt;var jn=(0,ze.Z)({},Xt);return"props"in jn||Object.defineProperty(jn,"props",{get:function(){return(0,Ye.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),jn}}),jn}function je(Xt,jn,Qn,Ia,Ge,Ot){var _t=null,Vt=null;function Wt(){function Nn(Bn){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Bn.map(function(pt,vn){var Hn="".concat(vt,"-").concat(vn),In=pt[Ot.value],Ta=Qn.includes(In),Pa=Nn(pt[Ot.children]||[],Hn,Ta),Rn=se.createElement(ue,pt,Pa.map(function(ba){return ba.node}));if(jn===In&&(_t=Rn),Ta){var ya={pos:Hn,node:Rn,children:Pa};return Bt||Vt.push(ya),ya}return null}).filter(function(pt){return pt})}Vt||(Vt=[],Nn(Ia),Vt.sort(function(Bn,vt){var Bt=Bn.node.props.value,pt=vt.node.props.value,vn=Qn.indexOf(Bt),Hn=Qn.indexOf(pt);return vn-Hn}))}Object.defineProperty(Xt,"triggerNode",{get:function(){return(0,Ye.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Wt(),_t}}),Object.defineProperty(Xt,"allCheckedNodes",{get:function(){return(0,Ye.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Wt(),Ge?Vt:Vt.map(function(Bn){var vt=Bn.node;return vt})}})}var De=function(Xt,jn,Qn){var Ia=Qn.treeNodeFilterProp,Ge=Qn.filterTreeNode,Ot=Qn.fieldNames,_t=Ot.children;return se.useMemo(function(){if(!jn||Ge===!1)return Xt;var Vt;if(typeof Ge=="function")Vt=Ge;else{var Wt=jn.toUpperCase();Vt=function(vt,Bt){var pt=Bt[Ia];return String(pt).toUpperCase().includes(Wt)}}function Nn(Bn){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Bn.reduce(function(Bt,pt){var vn=pt[_t],Hn=vt||Vt(jn,be(pt)),In=Nn(vn||[],Hn);return(Hn||In.length)&&Bt.push((0,ze.Z)((0,ze.Z)({},pt),{},(0,z.Z)({isLeaf:void 0},_t,In))),Bt},[])}return Nn(Xt)},[Xt,jn,_t,Ia,Ge])};function He(Xt){var jn=se.useRef();jn.current=Xt;var Qn=se.useCallback(function(){return jn.current.apply(jn,arguments)},[]);return Qn}function he(Xt,jn){var Qn=jn.id,Ia=jn.pId,Ge=jn.rootPId,Ot={},_t=[],Vt=Xt.map(function(Wt){var Nn=(0,ze.Z)({},Wt),Bn=Nn[Qn];return Ot[Bn]=Nn,Nn.key=Nn.key||Bn,Nn});return Vt.forEach(function(Wt){var Nn=Wt[Ia],Bn=Ot[Nn];Bn&&(Bn.children=Bn.children||[],Bn.children.push(Wt)),(Nn===Ge||!Bn&&Ge===null)&&_t.push(Wt)}),_t}function Xe(Xt,jn,Qn){return se.useMemo(function(){return Xt?Qn?he(Xt,(0,ze.Z)({id:"id",pId:"pId",rootPId:null},Qn!==!0?Qn:{})):Xt:ve(jn)},[jn,Qn,Xt])}var Ke=se.createContext(null),St=Ke,Le=ee(10228),ot=ee(80547),lt=ee(23130),gt=se.createContext(null),ft=gt;function ln(Xt){return Array.isArray(Xt)?Xt:Xt!==void 0?[Xt]:[]}function xt(Xt){var jn=Xt||{},Qn=jn.label,Ia=jn.value,Ge=jn.children,Ot=Ia||"value";return{_title:Qn?[Qn]:["title","label"],value:Ot,key:Ot,children:Ge||"children"}}function nn(Xt){return!Xt||Xt.disabled||Xt.disableCheckbox||Xt.checkable===!1}function En(Xt,jn){var Qn=[];function Ia(Ge){Ge.forEach(function(Ot){var _t=Ot[jn.children];_t&&(Qn.push(Ot[jn.value]),Ia(_t))})}return Ia(Xt),Qn}function $e(Xt){return Xt==null}var dt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},on=function(jn,Qn){var Ia=(0,et.lk)(),Ge=Ia.prefixCls,Ot=Ia.multiple,_t=Ia.searchValue,Vt=Ia.toggleOpen,Wt=Ia.open,Nn=Ia.notFoundContent,Bn=se.useContext(ft),vt=Bn.virtual,Bt=Bn.listHeight,pt=Bn.listItemHeight,vn=Bn.treeData,Hn=Bn.fieldNames,In=Bn.onSelect,Ta=Bn.dropdownMatchSelectWidth,Pa=Bn.treeExpandAction,Rn=se.useContext(St),ya=Rn.checkable,ba=Rn.checkedKeys,wn=Rn.halfCheckedKeys,mr=Rn.treeExpandedKeys,Er=Rn.treeDefaultExpandAll,Jr=Rn.treeDefaultExpandedKeys,pr=Rn.onTreeExpand,Qe=Rn.treeIcon,Pn=Rn.showTreeIcon,qt=Rn.switcherIcon,Dn=Rn.treeLine,Gn=Rn.treeNodeFilterProp,ra=Rn.loadData,Xn=Rn.treeLoadedKeys,$n=Rn.treeMotion,sr=Rn.onTreeLoad,sa=Rn.keyEntities,Cn=se.useRef(),dr=(0,ot.Z)(function(){return vn},[Wt,vn],function(Pr,To){return To[0]&&Pr[1]!==To[1]}),Nr=se.useState(null),Zr=(0,Me.Z)(Nr,2),Ir=Zr[0],ha=Zr[1],za=sa[Ir],or=se.useMemo(function(){return ya?{checked:ba,halfChecked:wn}:null},[ya,ba,wn]);se.useEffect(function(){if(Wt&&!Ot&&ba.length){var Pr;(Pr=Cn.current)===null||Pr===void 0||Pr.scrollTo({key:ba[0]}),ha(ba[0])}},[Wt]);var Fa=String(_t).toLowerCase(),xr=function(To){return Fa?String(To[Gn]).toLowerCase().includes(Fa):!1},qr=se.useState(Jr),Fr=(0,Me.Z)(qr,2),io=Fr[0],lr=Fr[1],ko=se.useState(null),ui=(0,Me.Z)(ko,2),pi=ui[0],yo=ui[1],Eo=se.useMemo(function(){return mr?(0,Ae.Z)(mr):_t?pi:io},[io,pi,mr,_t]);se.useEffect(function(){_t&&yo(En(vn,Hn))},[_t]);var Yo=function(To){lr(To),yo(To),pr&&pr(To)},Fo=function(To){To.preventDefault()},Ao=function(To,vi){var Oo=vi.node;ya&&nn(Oo)||(In(Oo.key,{selected:!ba.includes(Oo.key)}),Ot||Vt(!1))};if(se.useImperativeHandle(Qn,function(){var Pr;return{scrollTo:(Pr=Cn.current)===null||Pr===void 0?void 0:Pr.scrollTo,onKeyDown:function(vi){var Oo,br=vi.which;switch(br){case Le.Z.UP:case Le.Z.DOWN:case Le.Z.LEFT:case Le.Z.RIGHT:(Oo=Cn.current)===null||Oo===void 0||Oo.onKeyDown(vi);break;case Le.Z.ENTER:{if(za){var ai=(za==null?void 0:za.node)||{},zr=ai.selectable,Lo=ai.value;zr!==!1&&Ao(null,{node:{key:Ir},selected:!ba.includes(Lo)})}break}case Le.Z.ESC:Vt(!1)}},onKeyUp:function(){}}}),dr.length===0)return se.createElement("div",{role:"listbox",className:"".concat(Ge,"-empty"),onMouseDown:Fo},Nn);var eo={fieldNames:Hn};return Xn&&(eo.loadedKeys=Xn),Eo&&(eo.expandedKeys=Eo),se.createElement("div",{onMouseDown:Fo},za&&Wt&&se.createElement("span",{style:dt,"aria-live":"assertive"},za.node.value),se.createElement(lt.Z,(0,Be.Z)({ref:Cn,focusable:!1,prefixCls:"".concat(Ge,"-tree"),treeData:dr,height:Bt,itemHeight:pt,virtual:vt!==!1&&Ta!==!1,multiple:Ot,icon:Qe,showIcon:Pn,switcherIcon:qt,showLine:Dn,loadData:_t?null:ra,motion:$n,activeKey:Ir,checkable:ya,checkStrictly:!0,checkedKeys:or,selectedKeys:ya?[]:ba,defaultExpandAll:Er},eo,{onActiveChange:ha,onSelect:Ao,onCheck:Ao,onExpand:Yo,onLoad:sr,filterTreeNode:xr,expandAction:Pa})))},Yn=se.forwardRef(on);Yn.displayName="OptionList";var Zt=Yn,On="SHOW_ALL",_e="SHOW_PARENT",ct="SHOW_CHILD";function kt(Xt,jn,Qn,Ia){var Ge=new Set(Xt);return jn===ct?Xt.filter(function(Ot){var _t=Qn[Ot];return!(_t&&_t.children&&_t.children.some(function(Vt){var Wt=Vt.node;return Ge.has(Wt[Ia.value])})&&_t.children.every(function(Vt){var Wt=Vt.node;return nn(Wt)||Ge.has(Wt[Ia.value])}))}):jn===_e?Xt.filter(function(Ot){var _t=Qn[Ot],Vt=_t?_t.parent:null;return!(Vt&&!nn(Vt.node)&&Ge.has(Vt.key))}):Xt}function mt(Xt){var jn=Xt.searchPlaceholder,Qn=Xt.treeCheckStrictly,Ia=Xt.treeCheckable,Ge=Xt.labelInValue,Ot=Xt.value,_t=Xt.multiple;warning(!jn,"`searchPlaceholder` has been removed."),Qn&&Ge===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ge||Qn)&&warning(toArray(Ot).every(function(Vt){return Vt&&_typeof(Vt)==="object"&&"value"in Vt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Qn||_t||Ia?warning(!Ot||Array.isArray(Ot),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Ot),"`value` should not be array when `TreeSelect` is single mode.")}var It=null,ut=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function at(Xt){return!Xt||(0,st.Z)(Xt)!=="object"}var Ie=se.forwardRef(function(Xt,jn){var Qn=Xt.id,Ia=Xt.prefixCls,Ge=Ia===void 0?"rc-tree-select":Ia,Ot=Xt.value,_t=Xt.defaultValue,Vt=Xt.onChange,Wt=Xt.onSelect,Nn=Xt.onDeselect,Bn=Xt.searchValue,vt=Xt.inputValue,Bt=Xt.onSearch,pt=Xt.autoClearSearchValue,vn=pt===void 0?!0:pt,Hn=Xt.filterTreeNode,In=Xt.treeNodeFilterProp,Ta=In===void 0?"value":In,Pa=Xt.showCheckedStrategy,Rn=Xt.treeNodeLabelProp,ya=Xt.multiple,ba=Xt.treeCheckable,wn=Xt.treeCheckStrictly,mr=Xt.labelInValue,Er=Xt.fieldNames,Jr=Xt.treeDataSimpleMode,pr=Xt.treeData,Qe=Xt.children,Pn=Xt.loadData,qt=Xt.treeLoadedKeys,Dn=Xt.onTreeLoad,Gn=Xt.treeDefaultExpandAll,ra=Xt.treeExpandedKeys,Xn=Xt.treeDefaultExpandedKeys,$n=Xt.onTreeExpand,sr=Xt.treeExpandAction,sa=Xt.virtual,Cn=Xt.listHeight,dr=Cn===void 0?200:Cn,Nr=Xt.listItemHeight,Zr=Nr===void 0?20:Nr,Ir=Xt.onDropdownVisibleChange,ha=Xt.dropdownMatchSelectWidth,za=ha===void 0?!0:ha,or=Xt.treeLine,Fa=Xt.treeIcon,xr=Xt.showTreeIcon,qr=Xt.switcherIcon,Fr=Xt.treeMotion,io=(0,le.Z)(Xt,ut),lr=(0,Ve.ZP)(Qn),ko=ba&&!wn,ui=ba||wn,pi=wn||mr,yo=ui||ya,Eo=(0,Je.Z)(_t,{value:Ot}),Yo=(0,Me.Z)(Eo,2),Fo=Yo[0],Ao=Yo[1],eo=se.useMemo(function(){return ba?Pa||ct:On},[Pa,ba]),Pr=se.useMemo(function(){return xt(Er)},[JSON.stringify(Er)]),To=(0,Je.Z)("",{value:Bn!==void 0?Bn:vt,postState:function(Wa){return Wa||""}}),vi=(0,Me.Z)(To,2),Oo=vi[0],br=vi[1],ai=function(Wa){br(Wa),Bt==null||Bt(Wa)},zr=Xe(pr,Qe,Jr),Lo=y(zr,Pr),ao=Lo.keyEntities,si=Lo.valueEntities,hi=se.useCallback(function(Sa){var Wa=[],ur=[];return Sa.forEach(function($a){si.has($a)?ur.push($a):Wa.push($a)}),{missingRawValues:Wa,existRawValues:ur}},[si]),Qi=De(zr,Oo,{fieldNames:Pr,treeNodeFilterProp:Ta,filterTreeNode:Hn}),tl=se.useCallback(function(Sa){if(Sa){if(Rn)return Sa[Rn];for(var Wa=Pr._title,ur=0;ur<Wa.length;ur+=1){var $a=Sa[Wa[ur]];if($a!==void 0)return $a}}},[Pr,Rn]),nl=se.useCallback(function(Sa){var Wa=ln(Sa);return Wa.map(function(ur){return at(ur)?{value:ur}:ur})},[]),Uo=se.useCallback(function(Sa){var Wa=nl(Sa);return Wa.map(function(ur){var $a=ur.label,_o=ur.value,co=ur.halfChecked,Vo,ci=si.get(_o);if(ci){var Gi;$a=(Gi=$a)!==null&&Gi!==void 0?Gi:tl(ci.node),Vo=ci.node.disabled}else if($a===void 0){var al=nl(Fo).find(function(Zl){return Zl.value===_o});$a=al.label}return{label:$a,value:_o,halfChecked:co,disabled:Vo}})},[si,tl,nl,Fo]),Bi=se.useMemo(function(){return nl(Fo)},[nl,Fo]),gl=se.useMemo(function(){var Sa=[],Wa=[];return Bi.forEach(function(ur){ur.halfChecked?Wa.push(ur):Sa.push(ur)}),[Sa,Wa]},[Bi]),ji=(0,Me.Z)(gl,2),cl=ji[0],Cl=ji[1],Tr=se.useMemo(function(){return cl.map(function(Sa){return Sa.value})},[cl]),Va=a(cl,Cl,ko,ao),ja=(0,Me.Z)(Va,2),Ya=ja[0],so=ja[1],Zo=se.useMemo(function(){var Sa=kt(Ya,eo,ao,Pr),Wa=Sa.map(function(co){var Vo,ci,Gi;return(Vo=(ci=ao[co])===null||ci===void 0||(Gi=ci.node)===null||Gi===void 0?void 0:Gi[Pr.value])!==null&&Vo!==void 0?Vo:co}),ur=Wa.map(function(co){var Vo=cl.find(function(ci){return ci.value===co});return{value:co,label:Vo==null?void 0:Vo.label}}),$a=Uo(ur),_o=$a[0];return!yo&&_o&&$e(_o.value)&&$e(_o.label)?[]:$a.map(function(co){var Vo;return(0,ze.Z)((0,ze.Z)({},co),{},{label:(Vo=co.label)!==null&&Vo!==void 0?Vo:co.value})})},[Pr,yo,Ya,cl,Uo,eo,ao]),we=E(Zo),fn=(0,Me.Z)(we,1),Wn=fn[0],fa=He(function(Sa,Wa,ur){var $a=Uo(Sa);if(Ao($a),vn&&br(""),Vt){var _o=Sa;if(ko){var co=kt(Sa,eo,ao,Pr);_o=co.map(function(Nl){var xl=si.get(Nl);return xl?xl.node[Pr.value]:Nl})}var Vo=Wa||{triggerValue:void 0,selected:void 0},ci=Vo.triggerValue,Gi=Vo.selected,al=_o;if(wn){var Zl=Cl.filter(function(Nl){return!_o.includes(Nl.value)});al=[].concat((0,Ae.Z)(al),(0,Ae.Z)(Zl))}var Al=Uo(al),ho={preValue:cl,triggerValue:ci},Pl=!0;(wn||ur==="selection"&&!Gi)&&(Pl=!1),je(ho,ci,Sa,zr,Pl,Pr),ui?ho.checked=Gi:ho.selected=Gi;var eu=pi?Al:Al.map(function(Nl){return Nl.value});Vt(yo?eu:eu[0],pi?null:Al.map(function(Nl){return Nl.label}),ho)}}),yn=se.useCallback(function(Sa,Wa){var ur,$a=Wa.selected,_o=Wa.source,co=ao[Sa],Vo=co==null?void 0:co.node,ci=(ur=Vo==null?void 0:Vo[Pr.value])!==null&&ur!==void 0?ur:Sa;if(!yo)fa([ci],{selected:!0,triggerValue:ci},"option");else{var Gi=$a?[].concat((0,Ae.Z)(Tr),[ci]):Ya.filter(function(xl){return xl!==ci});if(ko){var al=hi(Gi),Zl=al.missingRawValues,Al=al.existRawValues,ho=Al.map(function(xl){return si.get(xl).key}),Pl;if($a){var eu=(0,We.S)(ho,!0,ao);Pl=eu.checkedKeys}else{var Nl=(0,We.S)(ho,{checked:!1,halfCheckedKeys:so},ao);Pl=Nl.checkedKeys}Gi=[].concat((0,Ae.Z)(Zl),(0,Ae.Z)(Pl.map(function(xl){return ao[xl].node[Pr.value]})))}fa(Gi,{selected:$a,triggerValue:ci},_o||"option")}$a||!yo?Wt==null||Wt(ci,be(Vo)):Nn==null||Nn(ci,be(Vo))},[hi,si,ao,Pr,yo,Tr,fa,ko,Wt,Nn,Ya,so]),wa=se.useCallback(function(Sa){if(Ir){var Wa={};Object.defineProperty(Wa,"documentClickClose",{get:function(){return(0,Ye.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ir(Sa,Wa)}},[Ir]),na=He(function(Sa,Wa){var ur=Sa.map(function($a){return $a.value});if(Wa.type==="clear"){fa(ur,{},"selection");return}Wa.values.length&&yn(Wa.values[0].value,{selected:!1,source:"selection"})}),Un=se.useMemo(function(){return{virtual:sa,dropdownMatchSelectWidth:za,listHeight:dr,listItemHeight:Zr,treeData:Qi,fieldNames:Pr,onSelect:yn,treeExpandAction:sr}},[sa,za,dr,Zr,Qi,Pr,yn,sr]),pa=se.useMemo(function(){return{checkable:ui,loadData:Pn,treeLoadedKeys:qt,onTreeLoad:Dn,checkedKeys:Ya,halfCheckedKeys:so,treeDefaultExpandAll:Gn,treeExpandedKeys:ra,treeDefaultExpandedKeys:Xn,onTreeExpand:$n,treeIcon:Fa,treeMotion:Fr,showTreeIcon:xr,switcherIcon:qr,treeLine:or,treeNodeFilterProp:Ta,keyEntities:ao}},[ui,Pn,qt,Dn,Ya,so,Gn,ra,Xn,$n,Fa,Fr,xr,qr,or,Ta,ao]);return se.createElement(ft.Provider,{value:Un},se.createElement(St.Provider,{value:pa},se.createElement(et.Ac,(0,Be.Z)({ref:jn},io,{id:lr,prefixCls:Ge,mode:yo?"multiple":void 0,displayValues:Wn,onDisplayValuesChange:na,searchValue:Oo,onSearch:ai,OptionList:Zt,emptyOptions:!zr.length,onDropdownVisibleChange:wa,dropdownMatchSelectWidth:za}))))}),fe=Ie;fe.TreeNode=ue,fe.SHOW_ALL=On,fe.SHOW_PARENT=_e,fe.SHOW_CHILD=ct;var qe=fe,At=qe,Oe=ee(2738),Ne=ee(53487),Ct=ee(62892),tt=ee(19080),ke=ee(36355),ht=ee(1684),Sn=ee(93891),rn=ee(19716),an=ee(32441),mn=ee(14154),cn=ee(58582),Te=ee(84443),Ft=ee(66339),zt=ee(33234),wt=ee(71997),Rt=ee(98447),un=ee(37613),dn=ee(83116),_n=ee(20648);const Vn=Xt=>{const{componentCls:jn,treePrefixCls:Qn,colorBgElevated:Ia}=Xt,Ge=`.${Qn}`;return[{[`${jn}-dropdown`]:[{padding:`${Xt.paddingXS}px ${Xt.paddingXS/2}px`},(0,_n.Yk)(Qn,(0,un.TS)(Xt,{colorBgContainer:Ia})),{[Ge]:{borderRadius:0,[`${Ge}-list-holder-inner`]:{alignItems:"stretch",[`${Ge}-treenode`]:{[`${Ge}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Rt.C2)(`${Qn}-checkbox`,Xt),{"&-rtl":{direction:"rtl",[`${Ge}-switcher${Ge}-switcher_close`]:{[`${Ge}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function va(Xt,jn){return(0,dn.Z)("TreeSelect",Qn=>{const Ia=(0,un.TS)(Qn,{treePrefixCls:jn});return[Vn(Ia)]},_n.TM)(Xt)}var La=function(Xt,jn){var Qn={};for(var Ia in Xt)Object.prototype.hasOwnProperty.call(Xt,Ia)&&jn.indexOf(Ia)<0&&(Qn[Ia]=Xt[Ia]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ia=Object.getOwnPropertySymbols(Xt);Ge<Ia.length;Ge++)jn.indexOf(Ia[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Ia[Ge])&&(Qn[Ia[Ge]]=Xt[Ia[Ge]]);return Qn};const Na=(Xt,jn)=>{var Qn,{prefixCls:Ia,size:Ge,disabled:Ot,bordered:_t=!0,className:Vt,rootClassName:Wt,treeCheckable:Nn,multiple:Bn,listHeight:vt=256,listItemHeight:Bt=26,placement:pt,notFoundContent:vn,switcherIcon:Hn,treeLine:In,getPopupContainer:Ta,popupClassName:Pa,dropdownClassName:Rn,treeIcon:ya=!1,transitionName:ba,choiceTransitionName:wn="",status:mr,treeExpandAction:Er,builtinPlacements:Jr,dropdownMatchSelectWidth:pr,popupMatchSelectWidth:Qe,allowClear:Pn}=Xt,qt=La(Xt,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Dn,getPrefixCls:Gn,renderEmpty:ra,direction:Xn,virtual:$n,popupMatchSelectWidth:sr,popupOverflow:sa}=se.useContext(ke.E_),Cn=Gn(),dr=Gn("select",Ia),Nr=Gn("select-tree",Ia),Zr=Gn("tree-select",Ia),{compactSize:Ir,compactItemClassnames:ha}=(0,zt.ri)(dr,Xn),[za,or]=(0,mn.Z)(dr),[Fa]=va(Zr,Nr),xr=de()(Pa||Rn,`${Zr}-dropdown`,{[`${Zr}-dropdown-rtl`]:Xn==="rtl"},Wt,or),qr=!!(Nn||Bn),Fr=(0,Te.Z)(qt.suffixIcon,qt.showArrow),io=(Qn=Qe!=null?Qe:pr)!==null&&Qn!==void 0?Qn:sr,{status:lr,hasFeedback:ko,isFormItemInput:ui,feedbackIcon:pi}=se.useContext(an.aM),yo=(0,tt.F)(lr,mr),{suffixIcon:Eo,removeIcon:Yo,clearIcon:Fo}=(0,Ft.Z)(Object.assign(Object.assign({},qt),{multiple:qr,showSuffixIcon:Fr,hasFeedback:ko,feedbackIcon:pi,prefixCls:dr,componentName:"TreeSelect"})),Ao=Pn===!0?{clearIcon:Fo}:Pn;let eo;vn!==void 0?eo=vn:eo=(ra==null?void 0:ra("Select"))||se.createElement(Sn.Z,{componentName:"Select"});const Pr=(0,Oe.Z)(qt,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),To=se.useMemo(()=>pt!==void 0?pt:Xn==="rtl"?"bottomRight":"bottomLeft",[pt,Xn]),vi=(0,cn.Z)(Jr,sa),Oo=(0,rn.Z)(si=>{var hi;return(hi=Ge!=null?Ge:Ir)!==null&&hi!==void 0?hi:si}),br=se.useContext(ht.Z),ai=Ot!=null?Ot:br,zr=de()(!Ia&&Zr,{[`${dr}-lg`]:Oo==="large",[`${dr}-sm`]:Oo==="small",[`${dr}-rtl`]:Xn==="rtl",[`${dr}-borderless`]:!_t,[`${dr}-in-form-item`]:ui},(0,tt.Z)(dr,yo,ko),ha,Vt,Wt,or),Lo=si=>se.createElement(wt.Z,{prefixCls:Nr,switcherIcon:Hn,treeNodeProps:si,showLine:In}),ao=se.createElement(At,Object.assign({virtual:$n,disabled:ai},Pr,{dropdownMatchSelectWidth:io,builtinPlacements:vi,ref:jn,prefixCls:dr,className:zr,listHeight:vt,listItemHeight:Bt,treeCheckable:Nn&&se.createElement("span",{className:`${dr}-tree-checkbox-inner`}),treeLine:!!In,suffixIcon:Eo,multiple:qr,placement:To,removeIcon:Yo,allowClear:Ao,switcherIcon:Lo,showTreeIcon:ya,notFoundContent:eo,getPopupContainer:Ta||Dn,treeMotion:null,dropdownClassName:xr,choiceTransitionName:(0,Ct.m)(Cn,"",wn),transitionName:(0,Ct.m)(Cn,"slide-up",ba),treeExpandAction:Er}));return za(Fa(ao))},Ka=se.forwardRef(Na),Ea=(0,Ne.Z)(Ka);Ka.TreeNode=ue,Ka.SHOW_ALL=On,Ka.SHOW_PARENT=_e,Ka.SHOW_CHILD=ct,Ka._InternalPanelDoNotUseOrYouWillBeFired=Ea;var yr=Ka},17574:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return ft}});var b=ee(23130),de=ee(26407),Be=ee(52671),Ae=ee(8657),ze=ee(92413),Me=ee(59301),le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},st=le,et=ee(7657),Ve=function(xt,nn){return Me.createElement(et.Z,(0,ze.Z)({},xt,{ref:nn,icon:st}))},We=Me.forwardRef(Ve),Je=We,Ye=ee(92310),se=ee.n(Ye),E=ee(35654),a=ee(71430),x=ee(36355),y=ee(56082),z=ee(62892),ne=ee(20648);const re=4;function ue(ln){const{dropPosition:xt,dropLevelOffset:nn,prefixCls:En,indent:$e,direction:dt="ltr"}=ln,on=dt==="ltr"?"left":"right",Yn=dt==="ltr"?"right":"left",Zt={[on]:-nn*$e+re,[Yn]:0};switch(xt){case-1:Zt.top=-3;break;case 1:Zt.bottom=-3;break;default:Zt.bottom=-3,Zt[on]=$e+re;break}return Me.createElement("div",{style:Zt,className:`${En}-drop-indicator`})}var ie=ee(71997),be=Me.forwardRef((ln,xt)=>{const{getPrefixCls:nn,direction:En,virtual:$e,tree:dt}=Me.useContext(x.E_),{prefixCls:on,className:Yn,showIcon:Zt=!1,showLine:On,switcherIcon:_e,blockNode:ct=!1,children:kt,checkable:mt=!1,selectable:It=!0,draggable:ut,motion:at,style:Ie}=ln,fe=nn("tree",on),qe=nn(),At=at!=null?at:Object.assign(Object.assign({},(0,z.Z)(qe)),{motionAppear:!1}),Oe=Object.assign(Object.assign({},ln),{checkable:mt,selectable:It,showIcon:Zt,motion:At,blockNode:ct,showLine:!!On,dropIndicatorRender:ue}),[Ne,Ct]=(0,ne.ZP)(fe),tt=Me.useMemo(()=>{if(!ut)return!1;let ht={};switch(typeof ut){case"function":ht.nodeDraggable=ut;break;case"object":ht=Object.assign({},ut);break;default:break}return ht.icon!==!1&&(ht.icon=ht.icon||Me.createElement(y.Z,null)),ht},[ut]),ke=ht=>Me.createElement(ie.Z,{prefixCls:fe,switcherIcon:_e,treeNodeProps:ht,showLine:On});return Ne(Me.createElement(b.Z,Object.assign({itemHeight:20,ref:xt,virtual:$e},Oe,{style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Ie),prefixCls:fe,className:se()({[`${fe}-icon-hide`]:!Zt,[`${fe}-block-node`]:ct,[`${fe}-unselectable`]:!It,[`${fe}-rtl`]:En==="rtl"},dt==null?void 0:dt.className,Yn,Ct),direction:En,checkable:mt&&Me.createElement("span",{className:`${fe}-checkbox-inner`}),selectable:It,switcherIcon:ke,draggable:tt}),kt))}),je;(function(ln){ln[ln.None=0]="None",ln[ln.Start=1]="Start",ln[ln.End=2]="End"})(je||(je={}));function De(ln,xt){function nn(En){const{key:$e,children:dt}=En;xt($e,En)!==!1&&De(dt||[],xt)}ln.forEach(nn)}function He(ln){let{treeData:xt,expandedKeys:nn,startKey:En,endKey:$e}=ln;const dt=[];let on=je.None;if(En&&En===$e)return[En];if(!En||!$e)return[];function Yn(Zt){return Zt===En||Zt===$e}return De(xt,Zt=>{if(on===je.End)return!1;if(Yn(Zt)){if(dt.push(Zt),on===je.None)on=je.Start;else if(on===je.Start)return on=je.End,!1}else on===je.Start&&dt.push(Zt);return nn.includes(Zt)}),dt}function he(ln,xt){const nn=(0,de.Z)(xt),En=[];return De(ln,($e,dt)=>{const on=nn.indexOf($e);return on!==-1&&(En.push(dt),nn.splice(on,1)),!!nn.length}),En}var Xe=function(ln,xt){var nn={};for(var En in ln)Object.prototype.hasOwnProperty.call(ln,En)&&xt.indexOf(En)<0&&(nn[En]=ln[En]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,En=Object.getOwnPropertySymbols(ln);$e<En.length;$e++)xt.indexOf(En[$e])<0&&Object.prototype.propertyIsEnumerable.call(ln,En[$e])&&(nn[En[$e]]=ln[En[$e]]);return nn};function Ke(ln){const{isLeaf:xt,expanded:nn}=ln;return xt?Me.createElement(Be.Z,null):nn?Me.createElement(Ae.Z,null):Me.createElement(Je,null)}function St(ln){let{treeData:xt,children:nn}=ln;return xt||(0,a.zn)(nn)}const Le=(ln,xt)=>{var{defaultExpandAll:nn,defaultExpandParent:En,defaultExpandedKeys:$e}=ln,dt=Xe(ln,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const on=Me.useRef(),Yn=Me.useRef(),Zt=()=>{const{keyEntities:tt}=(0,a.I8)(St(dt));let ke;return nn?ke=Object.keys(tt):En?ke=(0,E.r7)(dt.expandedKeys||$e||[],tt):ke=dt.expandedKeys||$e,ke},[On,_e]=Me.useState(dt.selectedKeys||dt.defaultSelectedKeys||[]),[ct,kt]=Me.useState(()=>Zt());Me.useEffect(()=>{"selectedKeys"in dt&&_e(dt.selectedKeys)},[dt.selectedKeys]),Me.useEffect(()=>{"expandedKeys"in dt&&kt(dt.expandedKeys)},[dt.expandedKeys]);const mt=(tt,ke)=>{var ht;return"expandedKeys"in dt||kt(tt),(ht=dt.onExpand)===null||ht===void 0?void 0:ht.call(dt,tt,ke)},It=(tt,ke)=>{var ht;const{multiple:Sn}=dt,{node:rn,nativeEvent:an}=ke,{key:mn=""}=rn,cn=St(dt),Te=Object.assign(Object.assign({},ke),{selected:!0}),Ft=(an==null?void 0:an.ctrlKey)||(an==null?void 0:an.metaKey),zt=an==null?void 0:an.shiftKey;let wt;Sn&&Ft?(wt=tt,on.current=mn,Yn.current=wt,Te.selectedNodes=he(cn,wt)):Sn&&zt?(wt=Array.from(new Set([].concat((0,de.Z)(Yn.current||[]),(0,de.Z)(He({treeData:cn,expandedKeys:ct,startKey:mn,endKey:on.current}))))),Te.selectedNodes=he(cn,wt)):(wt=[mn],on.current=mn,Yn.current=wt,Te.selectedNodes=he(cn,wt)),(ht=dt.onSelect)===null||ht===void 0||ht.call(dt,wt,Te),"selectedKeys"in dt||_e(wt)},{getPrefixCls:ut,direction:at}=Me.useContext(x.E_),{prefixCls:Ie,className:fe,showIcon:qe=!0,expandAction:At="click"}=dt,Oe=Xe(dt,["prefixCls","className","showIcon","expandAction"]),Ne=ut("tree",Ie),Ct=se()(`${Ne}-directory`,{[`${Ne}-directory-rtl`]:at==="rtl"},fe);return Me.createElement(be,Object.assign({icon:Ke,ref:xt,blockNode:!0},Oe,{showIcon:qe,expandAction:At,prefixCls:Ne,className:Ct,expandedKeys:ct,selectedKeys:On,onSelect:It,onExpand:mt}))};var lt=Me.forwardRef(Le);const gt=be;gt.DirectoryTree=lt,gt.TreeNode=b.O;var ft=gt},20648:function(Qt,Gt,ee){"use strict";ee.d(Gt,{TM:function(){return Ye},Yk:function(){return Je}});var b=ee(93083),de=ee(98447),Be=ee(17313),Ae=ee(8378),ze=ee(37613),Me=ee(83116);const le=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),st=(se,E)=>({[`.${se}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${E.motionDurationSlow}`}}}),et=(se,E)=>({[`.${se}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:E.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${E.lineWidthBold}px solid ${E.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ve=(se,E)=>{const{treeCls:a,treeNodeCls:x,treeNodePadding:y,titleHeight:z,nodeSelectedBg:ne,nodeHoverBg:re}=E,ue=E.paddingXS;return{[a]:Object.assign(Object.assign({},(0,Be.Wf)(E)),{background:E.colorBgContainer,borderRadius:E.borderRadius,transition:`background-color ${E.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,Be.oN)(E)),[`${a}-list-holder-inner`]:{alignItems:"flex-start"},[`&${a}-block-node`]:{[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-node-content-wrapper`]:{flex:"auto"},[`${x}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:y,insetInlineStart:0,border:`1px solid ${E.colorPrimary}`,opacity:0,animationName:le,animationDuration:E.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${x}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${y}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${a}-node-content-wrapper`]:{color:E.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,Be.oN)(E)),[`&:not(${x}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:z,lineHeight:`${z}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${E.motionDurationSlow}`,[`${x}:hover &`]:{opacity:.45}},[`&${x}-disabled`]:{[`${a}-draggable-icon`]:{visibility:"hidden"}}}},[`${a}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:z}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},st(se,E)),{position:"relative",flex:"none",alignSelf:"stretch",width:z,margin:0,lineHeight:`${z}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:E.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:z/2,bottom:-y,marginInlineStart:-1,borderInlineEnd:`1px solid ${E.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:z/2*.8,height:z/2,borderBottom:`1px solid ${E.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:ue},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:z,margin:0,padding:`0 ${E.paddingXS/2}px`,color:"inherit",lineHeight:`${z}px`,background:"transparent",borderRadius:E.borderRadius,cursor:"pointer",transition:`all ${E.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${a}-node-selected`]:{backgroundColor:ne},[`${a}-iconEle`]:{display:"inline-block",width:z,height:z,lineHeight:`${z}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${z}px`,userSelect:"none"},et(se,E)),[`${x}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${E.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:z/2,bottom:-y,borderInlineEnd:`1px solid ${E.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${a}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${x}-leaf-last`]:{[`${a}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${z/2}px !important`}}}}})}},We=se=>{const{treeCls:E,treeNodeCls:a,treeNodePadding:x,directoryNodeSelectedBg:y,directoryNodeSelectedColor:z}=se;return{[`${E}${E}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:x,insetInlineStart:0,transition:`background-color ${se.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:se.controlItemBgHover}},"> *":{zIndex:1},[`${E}-switcher`]:{transition:`color ${se.motionDurationMid}`},[`${E}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${E}-node-selected`]:{color:z,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:y},[`${E}-switcher`]:{color:z},[`${E}-node-content-wrapper`]:{color:z,background:"transparent"}}}}}},Je=(se,E)=>{const a=`.${se}`,x=`${a}-treenode`,y=E.paddingXS/2,z=(0,ze.TS)(E,{treeCls:a,treeNodeCls:x,treeNodePadding:y});return[Ve(se,z),We(z)]},Ye=se=>{const{controlHeightSM:E}=se;return{titleHeight:E,nodeHoverBg:se.controlItemBgHover,nodeSelectedBg:se.controlItemBgActive}};Gt.ZP=(0,Me.Z)("Tree",(se,E)=>{let{prefixCls:a}=E;return[{[se.componentCls]:(0,de.C2)(`${a}-checkbox`,se)},Je(a,se),(0,Ae.Z)(se)]},se=>{const{colorTextLightSolid:E,colorPrimary:a}=se;return Object.assign(Object.assign({},Ye(se)),{directoryNodeSelectedColor:E,directoryNodeSelectedBg:a})})},71997:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return x}});var b=ee(92413),de=ee(59301),Be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ae=Be,ze=ee(7657),Me=function(z,ne){return de.createElement(ze.Z,(0,b.Z)({},z,{ref:ne,icon:Ae}))},le=de.forwardRef(Me),st=le,et=ee(52671),Ve=ee(58617),We=ee(15075),Je=ee(43531),Ye=ee(92310),se=ee.n(Ye),E=ee(92343),x=y=>{const{prefixCls:z,switcherIcon:ne,treeNodeProps:re,showLine:ue}=y,{isLeaf:ie,expanded:ve,loading:be}=re;if(be)return de.createElement(Ve.Z,{className:`${z}-switcher-loading-icon`});let je;if(ue&&typeof ue=="object"&&(je=ue.showLeafIcon),ie){if(!ue)return null;if(typeof je!="boolean"&&je){const he=typeof je=="function"?je(re):je,Xe=`${z}-switcher-line-custom-icon`;return(0,E.l$)(he)?(0,E.Tm)(he,{className:se()(he.props.className||"",Xe)}):he}return je?de.createElement(et.Z,{className:`${z}-switcher-line-icon`}):de.createElement("span",{className:`${z}-switcher-leaf-line`})}const De=`${z}-switcher-icon`,He=typeof ne=="function"?ne(re):ne;return(0,E.l$)(He)?(0,E.Tm)(He,{className:se()(He.props.className||"",De)}):He!==void 0?He:ue?ve?de.createElement(We.Z,{className:`${z}-switcher-line-icon`}):de.createElement(Je.Z,{className:`${z}-switcher-line-icon`}):de.createElement(st,{className:De})}},54580:function(Qt,Gt,ee){"use strict";ee.d(Gt,{default:function(){return pr}});var b=ee(59301),de=ee(26407),Be=ee(92310),Ae=ee.n(Be),ze=ee(92413),Me=ee(6909),le=ee(4771),st=ee(9427),et=ee(25440),Ve=ee(400),We=ee(37061),Je=ee(85195),Ye=ee(39559),se=ee(20569),E=ee(26112);function a(Qe,Pn){var qt="cannot ".concat(Qe.method," ").concat(Qe.action," ").concat(Pn.status,"'"),Dn=new Error(qt);return Dn.status=Pn.status,Dn.method=Qe.method,Dn.url=Qe.action,Dn}function x(Qe){var Pn=Qe.responseText||Qe.response;if(!Pn)return Pn;try{return JSON.parse(Pn)}catch(qt){return Pn}}function y(Qe){var Pn=new XMLHttpRequest;Qe.onProgress&&Pn.upload&&(Pn.upload.onprogress=function(ra){ra.total>0&&(ra.percent=ra.loaded/ra.total*100),Qe.onProgress(ra)});var qt=new FormData;Qe.data&&Object.keys(Qe.data).forEach(function(Gn){var ra=Qe.data[Gn];if(Array.isArray(ra)){ra.forEach(function(Xn){qt.append("".concat(Gn,"[]"),Xn)});return}qt.append(Gn,ra)}),Qe.file instanceof Blob?qt.append(Qe.filename,Qe.file,Qe.file.name):qt.append(Qe.filename,Qe.file),Pn.onerror=function(ra){Qe.onError(ra)},Pn.onload=function(){return Pn.status<200||Pn.status>=300?Qe.onError(a(Qe,Pn),x(Pn)):Qe.onSuccess(x(Pn),Pn)},Pn.open(Qe.method,Qe.action,!0),Qe.withCredentials&&"withCredentials"in Pn&&(Pn.withCredentials=!0);var Dn=Qe.headers||{};return Dn["X-Requested-With"]!==null&&Pn.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Dn).forEach(function(Gn){Dn[Gn]!==null&&Pn.setRequestHeader(Gn,Dn[Gn])}),Pn.send(qt),{abort:function(){Pn.abort()}}}var z=+new Date,ne=0;function re(){return"rc-upload-".concat(z,"-").concat(++ne)}var ue=ee(48736),ie=function(Qe,Pn){if(Qe&&Pn){var qt=Array.isArray(Pn)?Pn:Pn.split(","),Dn=Qe.name||"",Gn=Qe.type||"",ra=Gn.replace(/\/.*$/,"");return qt.some(function(Xn){var $n=Xn.trim();if(/^\*(\/\*)?$/.test(Xn))return!0;if($n.charAt(0)==="."){var sr=Dn.toLowerCase(),sa=$n.toLowerCase(),Cn=[sa];return(sa===".jpg"||sa===".jpeg")&&(Cn=[".jpg",".jpeg"]),Cn.some(function(dr){return sr.endsWith(dr)})}return/\/\*$/.test($n)?ra===$n.replace(/\/.*$/,""):Gn===$n?!0:/^\w+$/.test($n)?((0,ue.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat($n,"'.Skip for check.")),!0):!1})}return!0};function ve(Qe,Pn){var qt=Qe.createReader(),Dn=[];function Gn(){qt.readEntries(function(ra){var Xn=Array.prototype.slice.apply(ra);Dn=Dn.concat(Xn);var $n=!Xn.length;$n?Pn(Dn):Gn()})}Gn()}var be=function(Pn,qt,Dn){var Gn=function ra(Xn,$n){Xn&&(Xn.path=$n||"",Xn.isFile?Xn.file(function(sr){Dn(sr)&&(Xn.fullPath&&!sr.webkitRelativePath&&(Object.defineProperties(sr,{webkitRelativePath:{writable:!0}}),sr.webkitRelativePath=Xn.fullPath.replace(/^\//,""),Object.defineProperties(sr,{webkitRelativePath:{writable:!1}})),qt([sr]))}):Xn.isDirectory&&ve(Xn,function(sr){sr.forEach(function(sa){ra(sa,"".concat($n).concat(Xn.name,"/"))})}))};Pn.forEach(function(ra){Gn(ra.webkitGetAsEntry())})},je=be,De=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],He=function(Qe){(0,st.Z)(qt,Qe);var Pn=(0,et.Z)(qt);function qt(){var Dn;(0,Me.Z)(this,qt);for(var Gn=arguments.length,ra=new Array(Gn),Xn=0;Xn<Gn;Xn++)ra[Xn]=arguments[Xn];return Dn=Pn.call.apply(Pn,[this].concat(ra)),Dn.state={uid:re()},Dn.reqs={},Dn.fileInput=void 0,Dn._isMounted=void 0,Dn.onChange=function($n){var sr=Dn.props,sa=sr.accept,Cn=sr.directory,dr=$n.target.files,Nr=(0,de.Z)(dr).filter(function(Zr){return!Cn||ie(Zr,sa)});Dn.uploadFiles(Nr),Dn.reset()},Dn.onClick=function($n){var sr=Dn.fileInput;if(sr){var sa=$n.target,Cn=Dn.props.onClick;if(sa&&sa.tagName==="BUTTON"){var dr=sr.parentNode;dr.focus(),sa.blur()}sr.click(),Cn&&Cn($n)}},Dn.onKeyDown=function($n){$n.key==="Enter"&&Dn.onClick($n)},Dn.onFileDrop=function($n){var sr=Dn.props.multiple;if($n.preventDefault(),$n.type!=="dragover")if(Dn.props.directory)je(Array.prototype.slice.call($n.dataTransfer.items),Dn.uploadFiles,function(Cn){return ie(Cn,Dn.props.accept)});else{var sa=(0,de.Z)($n.dataTransfer.files).filter(function(Cn){return ie(Cn,Dn.props.accept)});sr===!1&&(sa=sa.slice(0,1)),Dn.uploadFiles(sa)}},Dn.uploadFiles=function($n){var sr=(0,de.Z)($n),sa=sr.map(function(Cn){return Cn.uid=re(),Dn.processFile(Cn,sr)});Promise.all(sa).then(function(Cn){var dr=Dn.props.onBatchStart;dr==null||dr(Cn.map(function(Nr){var Zr=Nr.origin,Ir=Nr.parsedFile;return{file:Zr,parsedFile:Ir}})),Cn.filter(function(Nr){return Nr.parsedFile!==null}).forEach(function(Nr){Dn.post(Nr)})})},Dn.processFile=function(){var $n=(0,se.Z)((0,Je.Z)().mark(function sr(sa,Cn){var dr,Nr,Zr,Ir,ha,za,or,Fa,xr;return(0,Je.Z)().wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:if(dr=Dn.props.beforeUpload,Nr=sa,!dr){Fr.next=14;break}return Fr.prev=3,Fr.next=6,dr(sa,Cn);case 6:Nr=Fr.sent,Fr.next=12;break;case 9:Fr.prev=9,Fr.t0=Fr.catch(3),Nr=!1;case 12:if(Nr!==!1){Fr.next=14;break}return Fr.abrupt("return",{origin:sa,parsedFile:null,action:null,data:null});case 14:if(Zr=Dn.props.action,typeof Zr!="function"){Fr.next=21;break}return Fr.next=18,Zr(sa);case 18:Ir=Fr.sent,Fr.next=22;break;case 21:Ir=Zr;case 22:if(ha=Dn.props.data,typeof ha!="function"){Fr.next=29;break}return Fr.next=26,ha(sa);case 26:za=Fr.sent,Fr.next=30;break;case 29:za=ha;case 30:return or=((0,Ye.Z)(Nr)==="object"||typeof Nr=="string")&&Nr?Nr:sa,or instanceof File?Fa=or:Fa=new File([or],sa.name,{type:sa.type}),xr=Fa,xr.uid=sa.uid,Fr.abrupt("return",{origin:sa,data:za,parsedFile:xr,action:Ir});case 35:case"end":return Fr.stop()}},sr,null,[[3,9]])}));return function(sr,sa){return $n.apply(this,arguments)}}(),Dn.saveFileInput=function($n){Dn.fileInput=$n},Dn}return(0,le.Z)(qt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Gn){var ra=this,Xn=Gn.data,$n=Gn.origin,sr=Gn.action,sa=Gn.parsedFile;if(this._isMounted){var Cn=this.props,dr=Cn.onStart,Nr=Cn.customRequest,Zr=Cn.name,Ir=Cn.headers,ha=Cn.withCredentials,za=Cn.method,or=$n.uid,Fa=Nr||y,xr={action:sr,filename:Zr,data:Xn,file:sa,headers:Ir,withCredentials:ha,method:za||"post",onProgress:function(Fr){var io=ra.props.onProgress;io==null||io(Fr,sa)},onSuccess:function(Fr,io){var lr=ra.props.onSuccess;lr==null||lr(Fr,sa,io),delete ra.reqs[or]},onError:function(Fr,io){var lr=ra.props.onError;lr==null||lr(Fr,io,sa),delete ra.reqs[or]}};dr($n),this.reqs[or]=Fa(xr)}}},{key:"reset",value:function(){this.setState({uid:re()})}},{key:"abort",value:function(Gn){var ra=this.reqs;if(Gn){var Xn=Gn.uid?Gn.uid:Gn;ra[Xn]&&ra[Xn].abort&&ra[Xn].abort(),delete ra[Xn]}else Object.keys(ra).forEach(function($n){ra[$n]&&ra[$n].abort&&ra[$n].abort(),delete ra[$n]})}},{key:"render",value:function(){var Gn=this.props,ra=Gn.component,Xn=Gn.prefixCls,$n=Gn.className,sr=Gn.disabled,sa=Gn.id,Cn=Gn.style,dr=Gn.multiple,Nr=Gn.accept,Zr=Gn.capture,Ir=Gn.children,ha=Gn.directory,za=Gn.openFileDialogOnClick,or=Gn.onMouseEnter,Fa=Gn.onMouseLeave,xr=(0,We.Z)(Gn,De),qr=Ae()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},Xn,!0),"".concat(Xn,"-disabled"),sr),$n,$n)),Fr=ha?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},io=sr?{}:{onClick:za?this.onClick:function(){},onKeyDown:za?this.onKeyDown:function(){},onMouseEnter:or,onMouseLeave:Fa,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return b.createElement(ra,(0,ze.Z)({},io,{className:qr,role:"button",style:Cn}),b.createElement("input",(0,ze.Z)({},(0,E.Z)(xr,{aria:!0,data:!0}),{id:sa,disabled:sr,type:"file",ref:this.saveFileInput,onClick:function(ko){return ko.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Nr},Fr,{multiple:dr,onChange:this.onChange},Zr!=null?{capture:Zr}:{})),Ir)}}]),qt}(b.Component),he=He;function Xe(){}var Ke=function(Qe){(0,st.Z)(qt,Qe);var Pn=(0,et.Z)(qt);function qt(){var Dn;(0,Me.Z)(this,qt);for(var Gn=arguments.length,ra=new Array(Gn),Xn=0;Xn<Gn;Xn++)ra[Xn]=arguments[Xn];return Dn=Pn.call.apply(Pn,[this].concat(ra)),Dn.uploader=void 0,Dn.saveUploader=function($n){Dn.uploader=$n},Dn}return(0,le.Z)(qt,[{key:"abort",value:function(Gn){this.uploader.abort(Gn)}},{key:"render",value:function(){return b.createElement(he,(0,ze.Z)({},this.props,{ref:this.saveUploader}))}}]),qt}(b.Component);Ke.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Xe,onError:Xe,onSuccess:Xe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var St=Ke,Le=St,ot=ee(18929),lt=ee(4676),gt=ee(36355),ft=ee(1684),ln=ee(9763),xt=ee(31724),nn={icon:function(Pn,qt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:qt}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Pn}}]}},name:"file",theme:"twotone"},En=nn,$e=ee(7657),dt=function(Pn,qt){return b.createElement($e.Z,(0,ze.Z)({},Pn,{ref:qt,icon:En}))},on=b.forwardRef(dt),Yn=on,Zt=ee(58617),On={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},_e=On,ct=function(Pn,qt){return b.createElement($e.Z,(0,ze.Z)({},Pn,{ref:qt,icon:_e}))},kt=b.forwardRef(ct),mt=kt,It={icon:function(Pn,qt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Pn}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:qt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:qt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:qt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Pn}}]}},name:"picture",theme:"twotone"},ut=It,at=function(Pn,qt){return b.createElement($e.Z,(0,ze.Z)({},Pn,{ref:qt,icon:ut}))},Ie=b.forwardRef(at),fe=Ie,qe=ee(77900),At=ee(56762),Oe=ee(62892),Ne=ee(92343),Ct=ee(3113);function tt(Qe){return Object.assign(Object.assign({},Qe),{lastModified:Qe.lastModified,lastModifiedDate:Qe.lastModifiedDate,name:Qe.name,size:Qe.size,type:Qe.type,uid:Qe.uid,percent:0,originFileObj:Qe})}function ke(Qe,Pn){const qt=(0,de.Z)(Pn),Dn=qt.findIndex(Gn=>{let{uid:ra}=Gn;return ra===Qe.uid});return Dn===-1?qt.push(Qe):qt[Dn]=Qe,qt}function ht(Qe,Pn){const qt=Qe.uid!==void 0?"uid":"name";return Pn.filter(Dn=>Dn[qt]===Qe[qt])[0]}function Sn(Qe,Pn){const qt=Qe.uid!==void 0?"uid":"name",Dn=Pn.filter(Gn=>Gn[qt]!==Qe[qt]);return Dn.length===Pn.length?null:Dn}const rn=function(){const Pn=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Dn=Pn[Pn.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Dn)||[""])[0]},an=Qe=>Qe.indexOf("image/")===0,mn=Qe=>{if(Qe.type&&!Qe.thumbUrl)return an(Qe.type);const Pn=Qe.thumbUrl||Qe.url||"",qt=rn(Pn);return/^data:image\//.test(Pn)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(qt)?!0:!(/^data:/.test(Pn)||qt)},cn=200;function Te(Qe){return new Promise(Pn=>{if(!Qe.type||!an(Qe.type)){Pn("");return}const qt=document.createElement("canvas");qt.width=cn,qt.height=cn,qt.style.cssText=`position: fixed; left: 0; top: 0; width: ${cn}px; height: ${cn}px; z-index: 9999; display: none;`,document.body.appendChild(qt);const Dn=qt.getContext("2d"),Gn=new Image;if(Gn.onload=()=>{const{width:ra,height:Xn}=Gn;let $n=cn,sr=cn,sa=0,Cn=0;ra>Xn?(sr=Xn*(cn/ra),Cn=-(sr-$n)/2):($n=ra*(cn/Xn),sa=-($n-sr)/2),Dn.drawImage(Gn,sa,Cn,$n,sr);const dr=qt.toDataURL();document.body.removeChild(qt),window.URL.revokeObjectURL(Gn.src),Pn(dr)},Gn.crossOrigin="anonymous",Qe.type.startsWith("image/svg+xml")){const ra=new FileReader;ra.onload=()=>{ra.result&&(Gn.src=ra.result)},ra.readAsDataURL(Qe)}else if(Qe.type.startsWith("image/gif")){const ra=new FileReader;ra.onload=()=>{ra.result&&Pn(ra.result)},ra.readAsDataURL(Qe)}else Gn.src=window.URL.createObjectURL(Qe)})}var Ft=ee(26227),zt=ee(41464),wt=ee(15277),Rt=ee(93948),un=ee(6848),_n=b.forwardRef((Qe,Pn)=>{let{prefixCls:qt,className:Dn,style:Gn,locale:ra,listType:Xn,file:$n,items:sr,progress:sa,iconRender:Cn,actionIconRender:dr,itemRender:Nr,isImgUrl:Zr,showPreviewIcon:Ir,showRemoveIcon:ha,showDownloadIcon:za,previewIcon:or,removeIcon:Fa,downloadIcon:xr,onPreview:qr,onDownload:Fr,onClose:io}=Qe;var lr,ko;const{status:ui}=$n,[pi,yo]=b.useState(ui);b.useEffect(()=>{ui!=="removed"&&yo(ui)},[ui]);const[Eo,Yo]=b.useState(!1);b.useEffect(()=>{const Uo=setTimeout(()=>{Yo(!0)},300);return()=>{clearTimeout(Uo)}},[]);const Fo=Cn($n);let Ao=b.createElement("div",{className:`${qt}-icon`},Fo);if(Xn==="picture"||Xn==="picture-card"||Xn==="picture-circle")if(pi==="uploading"||!$n.thumbUrl&&!$n.url){const Uo=Ae()(`${qt}-list-item-thumbnail`,{[`${qt}-list-item-file`]:pi!=="uploading"});Ao=b.createElement("div",{className:Uo},Fo)}else{const Uo=Zr!=null&&Zr($n)?b.createElement("img",{src:$n.thumbUrl||$n.url,alt:$n.name,className:`${qt}-list-item-image`,crossOrigin:$n.crossOrigin}):Fo,Bi=Ae()(`${qt}-list-item-thumbnail`,{[`${qt}-list-item-file`]:Zr&&!Zr($n)});Ao=b.createElement("a",{className:Bi,onClick:gl=>qr($n,gl),href:$n.url||$n.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Uo)}const eo=Ae()(`${qt}-list-item`,`${qt}-list-item-${pi}`),Pr=typeof $n.linkProps=="string"?JSON.parse($n.linkProps):$n.linkProps,To=ha?dr((typeof Fa=="function"?Fa($n):Fa)||b.createElement(Ft.Z,null),()=>io($n),qt,ra.removeFile):null,vi=za&&pi==="done"?dr((typeof xr=="function"?xr($n):xr)||b.createElement(zt.Z,null),()=>Fr($n),qt,ra.downloadFile):null,Oo=Xn!=="picture-card"&&Xn!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:Ae()(`${qt}-list-item-actions`,{picture:Xn==="picture"})},vi,To),br=Ae()(`${qt}-list-item-name`),ai=$n.url?[b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:br,title:$n.name},Pr,{href:$n.url,onClick:Uo=>qr($n,Uo)}),$n.name),Oo]:[b.createElement("span",{key:"view",className:br,onClick:Uo=>qr($n,Uo),title:$n.name},$n.name),Oo],zr={pointerEvents:"none",opacity:.5},Lo=Ir?b.createElement("a",{href:$n.url||$n.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:$n.url||$n.thumbUrl?void 0:zr,onClick:Uo=>qr($n,Uo),title:ra.previewFile},typeof or=="function"?or($n):or||b.createElement(wt.Z,null)):null,ao=(Xn==="picture-card"||Xn==="picture-circle")&&pi!=="uploading"&&b.createElement("span",{className:`${qt}-list-item-actions`},Lo,pi==="done"&&vi,To),{getPrefixCls:si}=b.useContext(gt.E_),hi=si(),Qi=b.createElement("div",{className:eo},Ao,ai,ao,Eo&&b.createElement(qe.default,{motionName:`${hi}-fade`,visible:pi==="uploading",motionDeadline:2e3},Uo=>{let{className:Bi}=Uo;const gl="percent"in $n?b.createElement(Rt.Z,Object.assign({},sa,{type:"line",percent:$n.percent,"aria-label":$n["aria-label"],"aria-labelledby":$n["aria-labelledby"]})):null;return b.createElement("div",{className:Ae()(`${qt}-list-item-progress`,Bi)},gl)})),tl=$n.response&&typeof $n.response=="string"?$n.response:((lr=$n.error)===null||lr===void 0?void 0:lr.statusText)||((ko=$n.error)===null||ko===void 0?void 0:ko.message)||ra.uploadError,nl=pi==="error"?b.createElement(un.Z,{title:tl,getPopupContainer:Uo=>Uo.parentNode},Qi):Qi;return b.createElement("div",{className:Ae()(`${qt}-list-item-container`,Dn),style:Gn,ref:Pn},Nr?Nr(nl,$n,sr,{download:Fr.bind(null,$n),preview:qr.bind(null,$n),remove:io.bind(null,$n)}):nl)});const Vn=(Qe,Pn)=>{const{listType:qt="text",previewFile:Dn=Te,onPreview:Gn,onDownload:ra,onRemove:Xn,locale:$n,iconRender:sr,isImageUrl:sa=mn,prefixCls:Cn,items:dr=[],showPreviewIcon:Nr=!0,showRemoveIcon:Zr=!0,showDownloadIcon:Ir=!1,removeIcon:ha,previewIcon:za,downloadIcon:or,progress:Fa={size:[-1,2],showInfo:!1},appendAction:xr,appendActionVisible:qr=!0,itemRender:Fr,disabled:io}=Qe,lr=(0,At.Z)(),[ko,ui]=b.useState(!1);b.useEffect(()=>{qt!=="picture"&&qt!=="picture-card"&&qt!=="picture-circle"||(dr||[]).forEach(zr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(zr.originFileObj instanceof File||zr.originFileObj instanceof Blob)||zr.thumbUrl!==void 0||(zr.thumbUrl="",Dn&&Dn(zr.originFileObj).then(Lo=>{zr.thumbUrl=Lo||"",lr()}))})},[qt,dr,Dn]),b.useEffect(()=>{ui(!0)},[]);const pi=(zr,Lo)=>{if(Gn)return Lo==null||Lo.preventDefault(),Gn(zr)},yo=zr=>{typeof ra=="function"?ra(zr):zr.url&&window.open(zr.url)},Eo=zr=>{Xn==null||Xn(zr)},Yo=zr=>{if(sr)return sr(zr,qt);const Lo=zr.status==="uploading",ao=sa&&sa(zr)?b.createElement(fe,null):b.createElement(Yn,null);let si=Lo?b.createElement(Zt.Z,null):b.createElement(mt,null);return qt==="picture"?si=Lo?b.createElement(Zt.Z,null):ao:(qt==="picture-card"||qt==="picture-circle")&&(si=Lo?$n.uploading:ao),si},Fo=(zr,Lo,ao,si)=>{const hi={type:"text",size:"small",title:si,onClick:Qi=>{Lo(),(0,Ne.l$)(zr)&&zr.props.onClick&&zr.props.onClick(Qi)},className:`${ao}-list-item-action`,disabled:io};if((0,Ne.l$)(zr)){const Qi=(0,Ne.Tm)(zr,Object.assign(Object.assign({},zr.props),{onClick:()=>{}}));return b.createElement(Ct.ZP,Object.assign({},hi,{icon:Qi}))}return b.createElement(Ct.ZP,Object.assign({},hi),b.createElement("span",null,zr))};b.useImperativeHandle(Pn,()=>({handlePreview:pi,handleDownload:yo}));const{getPrefixCls:Ao}=b.useContext(gt.E_),eo=Ao("upload",Cn),Pr=Ao(),To=Ae()(`${eo}-list`,`${eo}-list-${qt}`),vi=(0,de.Z)(dr.map(zr=>({key:zr.uid,file:zr})));let br={motionDeadline:2e3,motionName:`${eo}-${qt==="picture-card"||qt==="picture-circle"?"animate-inline":"animate"}`,keys:vi,motionAppear:ko};const ai=b.useMemo(()=>{const zr=Object.assign({},(0,Oe.Z)(Pr));return delete zr.onAppearEnd,delete zr.onEnterEnd,delete zr.onLeaveEnd,zr},[Pr]);return qt!=="picture-card"&&qt!=="picture-circle"&&(br=Object.assign(Object.assign({},ai),br)),b.createElement("div",{className:To},b.createElement(qe.CSSMotionList,Object.assign({},br,{component:!1}),zr=>{let{key:Lo,file:ao,className:si,style:hi}=zr;return b.createElement(_n,{key:Lo,locale:$n,prefixCls:eo,className:si,style:hi,file:ao,items:dr,progress:Fa,listType:qt,isImgUrl:sa,showPreviewIcon:Nr,showRemoveIcon:Zr,showDownloadIcon:Ir,removeIcon:ha,previewIcon:za,downloadIcon:or,iconRender:Yo,actionIconRender:Fo,itemRender:Fr,onPreview:pi,onDownload:yo,onClose:Eo})}),xr&&b.createElement(qe.default,Object.assign({},br,{visible:qr,forceRender:!0}),zr=>{let{className:Lo,style:ao}=zr;return(0,Ne.Tm)(xr,si=>({className:Ae()(si.className,Lo),style:Object.assign(Object.assign(Object.assign({},ao),{pointerEvents:Lo?"none":void 0}),si.style)}))}))};var La=b.forwardRef(Vn),Na=ee(17313),rr=ee(8378),Ka=ee(83116),Ea=ee(37613),Xt=Qe=>{const{componentCls:Pn,iconCls:qt}=Qe;return{[`${Pn}-wrapper`]:{[`${Pn}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Qe.colorFillAlter,border:`${Qe.lineWidth}px dashed ${Qe.colorBorder}`,borderRadius:Qe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Qe.motionDurationSlow}`,[Pn]:{padding:`${Qe.padding}px 0`},[`${Pn}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Pn}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Pn}-disabled):hover`]:{borderColor:Qe.colorPrimaryHover},[`p${Pn}-drag-icon`]:{marginBottom:Qe.margin,[qt]:{color:Qe.colorPrimary,fontSize:Qe.uploadThumbnailSize}},[`p${Pn}-text`]:{margin:`0 0 ${Qe.marginXXS}px`,color:Qe.colorTextHeading,fontSize:Qe.fontSizeLG},[`p${Pn}-hint`]:{color:Qe.colorTextDescription,fontSize:Qe.fontSize},[`&${Pn}-disabled`]:{cursor:"not-allowed",[`p${Pn}-drag-icon ${qt},
p${Pn}-text,
p${Pn}-hint
`]:{color:Qe.colorTextDisabled}}}}}},Qn=Qe=>{const{componentCls:Pn,antCls:qt,iconCls:Dn,fontSize:Gn,lineHeight:ra}=Qe,Xn=`${Pn}-list-item`,$n=`${Xn}-actions`,sr=`${Xn}-action`,sa=Math.round(Gn*ra);return{[`${Pn}-wrapper`]:{[`${Pn}-list`]:Object.assign(Object.assign({},(0,Na.dF)()),{lineHeight:Qe.lineHeight,[Xn]:{position:"relative",height:Qe.lineHeight*Gn,marginTop:Qe.marginXS,fontSize:Gn,display:"flex",alignItems:"center",transition:`background-color ${Qe.motionDurationSlow}`,"&:hover":{backgroundColor:Qe.controlItemBgHover},[`${Xn}-name`]:Object.assign(Object.assign({},Na.vS),{padding:`0 ${Qe.paddingXS}px`,lineHeight:ra,flex:"auto",transition:`all ${Qe.motionDurationSlow}`}),[$n]:{[sr]:{opacity:0},[`${sr}${qt}-btn-sm`]:{height:sa,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${sr}:focus-visible,
&.picture ${sr}
`]:{opacity:1},[Dn]:{color:Qe.actionsColor,transition:`all ${Qe.motionDurationSlow}`},[`&:hover ${Dn}`]:{color:Qe.colorText}},[`${Pn}-icon ${Dn}`]:{color:Qe.colorTextDescription,fontSize:Gn},[`${Xn}-progress`]:{position:"absolute",bottom:-Qe.uploadProgressOffset,width:"100%",paddingInlineStart:Gn+Qe.paddingXS,fontSize:Gn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Xn}:hover ${sr}`]:{opacity:1,color:Qe.colorText},[`${Xn}-error`]:{color:Qe.colorError,[`${Xn}-name, ${Pn}-icon ${Dn}`]:{color:Qe.colorError},[$n]:{[`${Dn}, ${Dn}:hover`]:{color:Qe.colorError},[sr]:{opacity:1}}},[`${Pn}-list-item-container`]:{transition:`opacity ${Qe.motionDurationSlow}, height ${Qe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ia=ee(93083),Ge=ee(1950);const Ot=new Ia.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),_t=new Ia.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wt=Qe=>{const{componentCls:Pn}=Qe,qt=`${Pn}-animate-inline`;return[{[`${Pn}-wrapper`]:{[`${qt}-appear, ${qt}-enter, ${qt}-leave`]:{animationDuration:Qe.motionDurationSlow,animationTimingFunction:Qe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${qt}-appear, ${qt}-enter`]:{animationName:Ot},[`${qt}-leave`]:{animationName:_t}}},{[`${Pn}-wrapper`]:(0,Ge.J$)(Qe)},Ot,_t]},Nn=ee(93398),Bn=ee(64993);const vt=Qe=>{const{componentCls:Pn,iconCls:qt,uploadThumbnailSize:Dn,uploadProgressOffset:Gn}=Qe,ra=`${Pn}-list`,Xn=`${ra}-item`;return{[`${Pn}-wrapper`]:{[`
${ra}${ra}-picture,
${ra}${ra}-picture-card,
${ra}${ra}-picture-circle
`]:{[Xn]:{position:"relative",height:Dn+Qe.lineWidth*2+Qe.paddingXS*2,padding:Qe.paddingXS,border:`${Qe.lineWidth}px ${Qe.lineType} ${Qe.colorBorder}`,borderRadius:Qe.borderRadiusLG,"&:hover":{background:"transparent"},[`${Xn}-thumbnail`]:Object.assign(Object.assign({},Na.vS),{width:Dn,height:Dn,lineHeight:`${Dn+Qe.paddingSM}px`,textAlign:"center",flex:"none",[qt]:{fontSize:Qe.fontSizeHeading2,color:Qe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Xn}-progress`]:{bottom:Gn,width:`calc(100% - ${Qe.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Dn+Qe.paddingXS}},[`${Xn}-error`]:{borderColor:Qe.colorError,[`${Xn}-thumbnail ${qt}`]:{[`svg path[fill='${Nn.blue[0]}']`]:{fill:Qe.colorErrorBg},[`svg path[fill='${Nn.blue.primary}']`]:{fill:Qe.colorError}}},[`${Xn}-uploading`]:{borderStyle:"dashed",[`${Xn}-name`]:{marginBottom:Gn}}},[`${ra}${ra}-picture-circle ${Xn}`]:{[`&, &::before, ${Xn}-thumbnail`]:{borderRadius:"50%"}}}}},Bt=Qe=>{const{componentCls:Pn,iconCls:qt,fontSizeLG:Dn,colorTextLightSolid:Gn}=Qe,ra=`${Pn}-list`,Xn=`${ra}-item`,$n=Qe.uploadPicCardSize;return{[`
${Pn}-wrapper${Pn}-picture-card-wrapper,
${Pn}-wrapper${Pn}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Na.dF)()),{display:"inline-block",width:"100%",[`${Pn}${Pn}-select`]:{width:$n,height:$n,marginInlineEnd:Qe.marginXS,marginBottom:Qe.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Qe.colorFillAlter,border:`${Qe.lineWidth}px dashed ${Qe.colorBorder}`,borderRadius:Qe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Qe.motionDurationSlow}`,[`> ${Pn}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Pn}-disabled):hover`]:{borderColor:Qe.colorPrimary}},[`${ra}${ra}-picture-card, ${ra}${ra}-picture-circle`]:{[`${ra}-item-container`]:{display:"inline-block",width:$n,height:$n,marginBlock:`0 ${Qe.marginXS}px`,marginInline:`0 ${Qe.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Xn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Qe.paddingXS*2}px)`,height:`calc(100% - ${Qe.paddingXS*2}px)`,backgroundColor:Qe.colorBgMask,opacity:0,transition:`all ${Qe.motionDurationSlow}`,content:'" "'}},[`${Xn}:hover`]:{[`&::before, ${Xn}-actions`]:{opacity:1}},[`${Xn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Qe.motionDurationSlow}`,[`${qt}-eye, ${qt}-download, ${qt}-delete`]:{zIndex:10,width:Dn,margin:`0 ${Qe.marginXXS}px`,fontSize:Dn,cursor:"pointer",transition:`all ${Qe.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Xn}-actions, ${Xn}-actions:hover`]:{[`${qt}-eye, ${qt}-download, ${qt}-delete`]:{color:new Bn.C(Gn).setAlpha(.65).toRgbString(),"&:hover":{color:Gn}}},[`${Xn}-thumbnail, ${Xn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Xn}-name`]:{display:"none",textAlign:"center"},[`${Xn}-file + ${Xn}-name`]:{position:"absolute",bottom:Qe.margin,display:"block",width:`calc(100% - ${Qe.paddingXS*2}px)`},[`${Xn}-uploading`]:{[`&${Xn}`]:{backgroundColor:Qe.colorFillAlter},[`&::before, ${qt}-eye, ${qt}-download, ${qt}-delete`]:{display:"none"}},[`${Xn}-progress`]:{bottom:Qe.marginXL,width:`calc(100% - ${Qe.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Pn}-wrapper${Pn}-picture-circle-wrapper`]:{[`${Pn}${Pn}-select`]:{borderRadius:"50%"}}}};var vn=Qe=>{const{componentCls:Pn}=Qe;return{[`${Pn}-rtl`]:{direction:"rtl"}}};const Hn=Qe=>{const{componentCls:Pn,colorTextDisabled:qt}=Qe;return{[`${Pn}-wrapper`]:Object.assign(Object.assign({},(0,Na.Wf)(Qe)),{[Pn]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Pn}-select`]:{display:"inline-block"},[`${Pn}-disabled`]:{color:qt,cursor:"not-allowed"}})}};var In=(0,Ka.Z)("Upload",Qe=>{const{fontSizeHeading3:Pn,fontSize:qt,lineHeight:Dn,lineWidth:Gn,controlHeightLG:ra}=Qe,Xn=Math.round(qt*Dn),$n=(0,Ea.TS)(Qe,{uploadThumbnailSize:Pn*2,uploadProgressOffset:Xn/2+Gn,uploadPicCardSize:ra*2.55});return[Hn($n),Xt($n),vt($n),Bt($n),Qn($n),Wt($n),vn($n),(0,rr.Z)($n)]},Qe=>({actionsColor:Qe.colorTextDescription})),Ta=function(Qe,Pn,qt,Dn){function Gn(ra){return ra instanceof qt?ra:new qt(function(Xn){Xn(ra)})}return new(qt||(qt=Promise))(function(ra,Xn){function $n(Cn){try{sa(Dn.next(Cn))}catch(dr){Xn(dr)}}function sr(Cn){try{sa(Dn.throw(Cn))}catch(dr){Xn(dr)}}function sa(Cn){Cn.done?ra(Cn.value):Gn(Cn.value).then($n,sr)}sa((Dn=Dn.apply(Qe,Pn||[])).next())})};const Pa=`__LIST_IGNORE_${Date.now()}__`,Rn=(Qe,Pn)=>{const{fileList:qt,defaultFileList:Dn,onRemove:Gn,showUploadList:ra=!0,listType:Xn="text",onPreview:$n,onDownload:sr,onChange:sa,onDrop:Cn,previewFile:dr,disabled:Nr,locale:Zr,iconRender:Ir,isImageUrl:ha,progress:za,prefixCls:or,className:Fa,type:xr="select",children:qr,style:Fr,itemRender:io,maxCount:lr,data:ko={},multiple:ui=!1,action:pi="",accept:yo="",supportServerRender:Eo=!0,rootClassName:Yo}=Qe,Fo=b.useContext(ft.Z),Ao=Nr!=null?Nr:Fo,[eo,Pr]=(0,ot.Z)(Dn||[],{value:qt,postState:na=>na!=null?na:[]}),[To,vi]=b.useState("drop"),Oo=b.useRef(null);b.useMemo(()=>{const na=Date.now();(qt||[]).forEach((Un,pa)=>{!Un.uid&&!Object.isFrozen(Un)&&(Un.uid=`__AUTO__${na}_${pa}__`)})},[qt]);const br=(na,Un,pa)=>{let Sa=(0,de.Z)(Un),Wa=!1;lr===1?Sa=Sa.slice(-1):lr&&(Wa=Sa.length>lr,Sa=Sa.slice(0,lr)),(0,lt.flushSync)(()=>{Pr(Sa)});const ur={file:na,fileList:Sa};pa&&(ur.event=pa),(!Wa||Sa.some($a=>$a.uid===na.uid))&&(0,lt.flushSync)(()=>{sa==null||sa(ur)})},ai=(na,Un)=>Ta(void 0,void 0,void 0,function*(){const{beforeUpload:pa,transformFile:Sa}=Qe;let Wa=na;if(pa){const ur=yield pa(na,Un);if(ur===!1)return!1;if(delete na[Pa],ur===Pa)return Object.defineProperty(na,Pa,{value:!0,configurable:!0}),!1;typeof ur=="object"&&ur&&(Wa=ur)}return Sa&&(Wa=yield Sa(Wa)),Wa}),zr=na=>{const Un=na.filter(Wa=>!Wa.file[Pa]);if(!Un.length)return;const pa=Un.map(Wa=>tt(Wa.file));let Sa=(0,de.Z)(eo);pa.forEach(Wa=>{Sa=ke(Wa,Sa)}),pa.forEach((Wa,ur)=>{let $a=Wa;if(Un[ur].parsedFile)Wa.status="uploading";else{const{originFileObj:_o}=Wa;let co;try{co=new File([_o],_o.name,{type:_o.type})}catch(Vo){co=new Blob([_o],{type:_o.type}),co.name=_o.name,co.lastModifiedDate=new Date,co.lastModified=new Date().getTime()}co.uid=Wa.uid,$a=co}br($a,Sa)})},Lo=(na,Un,pa)=>{try{typeof na=="string"&&(na=JSON.parse(na))}catch(ur){}if(!ht(Un,eo))return;const Sa=tt(Un);Sa.status="done",Sa.percent=100,Sa.response=na,Sa.xhr=pa;const Wa=ke(Sa,eo);br(Sa,Wa)},ao=(na,Un)=>{if(!ht(Un,eo))return;const pa=tt(Un);pa.status="uploading",pa.percent=na.percent;const Sa=ke(pa,eo);br(pa,Sa,na)},si=(na,Un,pa)=>{if(!ht(pa,eo))return;const Sa=tt(pa);Sa.error=na,Sa.response=Un,Sa.status="error";const Wa=ke(Sa,eo);br(Sa,Wa)},hi=na=>{let Un;Promise.resolve(typeof Gn=="function"?Gn(na):Gn).then(pa=>{var Sa;if(pa===!1)return;const Wa=Sn(na,eo);Wa&&(Un=Object.assign(Object.assign({},na),{status:"removed"}),eo==null||eo.forEach(ur=>{const $a=Un.uid!==void 0?"uid":"name";ur[$a]===Un[$a]&&!Object.isFrozen(ur)&&(ur.status="removed")}),(Sa=Oo.current)===null||Sa===void 0||Sa.abort(Un),br(Un,Wa))})},Qi=na=>{vi(na.type),na.type==="drop"&&(Cn==null||Cn(na))};b.useImperativeHandle(Pn,()=>({onBatchStart:zr,onSuccess:Lo,onProgress:ao,onError:si,fileList:eo,upload:Oo.current}));const{getPrefixCls:tl,direction:nl,upload:Uo}=b.useContext(gt.E_),Bi=tl("upload",or),gl=Object.assign(Object.assign({onBatchStart:zr,onError:si,onProgress:ao,onSuccess:Lo},Qe),{data:ko,multiple:ui,action:pi,accept:yo,supportServerRender:Eo,prefixCls:Bi,disabled:Ao,beforeUpload:ai,onChange:void 0});delete gl.className,delete gl.style,(!qr||Ao)&&delete gl.id;const[ji,cl]=In(Bi),[Cl]=(0,ln.Z)("Upload",xt.Z.Upload),{showRemoveIcon:Tr,showPreviewIcon:Va,showDownloadIcon:ja,removeIcon:Ya,previewIcon:so,downloadIcon:Zo}=typeof ra=="boolean"?{}:ra,we=(na,Un)=>ra?b.createElement(La,{prefixCls:Bi,listType:Xn,items:eo,previewFile:dr,onPreview:$n,onDownload:sr,onRemove:hi,showRemoveIcon:!Ao&&Tr,showPreviewIcon:Va,showDownloadIcon:ja,removeIcon:Ya,previewIcon:so,downloadIcon:Zo,iconRender:Ir,locale:Object.assign(Object.assign({},Cl),Zr),isImageUrl:ha,progress:za,appendAction:na,appendActionVisible:Un,itemRender:io,disabled:Ao}):na,fn=Ae()(`${Bi}-wrapper`,Fa,Yo,cl,Uo==null?void 0:Uo.className,{[`${Bi}-rtl`]:nl==="rtl",[`${Bi}-picture-card-wrapper`]:Xn==="picture-card",[`${Bi}-picture-circle-wrapper`]:Xn==="picture-circle"}),Wn=Object.assign(Object.assign({},Uo==null?void 0:Uo.style),Fr);if(xr==="drag"){const na=Ae()(cl,Bi,`${Bi}-drag`,{[`${Bi}-drag-uploading`]:eo.some(Un=>Un.status==="uploading"),[`${Bi}-drag-hover`]:To==="dragover",[`${Bi}-disabled`]:Ao,[`${Bi}-rtl`]:nl==="rtl"});return ji(b.createElement("span",{className:fn},b.createElement("div",{className:na,style:Wn,onDrop:Qi,onDragOver:Qi,onDragLeave:Qi},b.createElement(Le,Object.assign({},gl,{ref:Oo,className:`${Bi}-btn`}),b.createElement("div",{className:`${Bi}-drag-container`},qr))),we()))}const fa=Ae()(Bi,`${Bi}-select`,{[`${Bi}-disabled`]:Ao}),wa=(na=>b.createElement("div",{className:fa,style:na},b.createElement(Le,Object.assign({},gl,{ref:Oo}))))(qr?void 0:{display:"none"});return ji(Xn==="picture-card"||Xn==="picture-circle"?b.createElement("span",{className:fn},we(wa,!!qr)):b.createElement("span",{className:fn},wa,we()))};var ba=b.forwardRef(Rn),wn=function(Qe,Pn){var qt={};for(var Dn in Qe)Object.prototype.hasOwnProperty.call(Qe,Dn)&&Pn.indexOf(Dn)<0&&(qt[Dn]=Qe[Dn]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gn=0,Dn=Object.getOwnPropertySymbols(Qe);Gn<Dn.length;Gn++)Pn.indexOf(Dn[Gn])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Dn[Gn])&&(qt[Dn[Gn]]=Qe[Dn[Gn]]);return qt},Er=b.forwardRef((Qe,Pn)=>{var{style:qt,height:Dn}=Qe,Gn=wn(Qe,["style","height"]);return b.createElement(ba,Object.assign({ref:Pn},Gn,{type:"drag",style:Object.assign(Object.assign({},qt),{height:Dn})}))});const Jr=ba;Jr.Dragger=Er,Jr.LIST_IGNORE=Pa;var pr=Jr},24334:function(Qt,Gt,ee){var b,de;(function(Be,Ae){Qt.exports=Ae(Be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(Be){"use strict";Be=Be||{};var Ae=Be.Base64,ze="2.6.4",Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=function(Ke){for(var St={},Le=0,ot=Ke.length;Le<ot;Le++)St[Ke.charAt(Le)]=Le;return St}(Me),st=String.fromCharCode,et=function(Ke){if(Ke.length<2){var St=Ke.charCodeAt(0);return St<128?Ke:St<2048?st(192|St>>>6)+st(128|St&63):st(224|St>>>12&15)+st(128|St>>>6&63)+st(128|St&63)}else{var St=65536+(Ke.charCodeAt(0)-55296)*1024+(Ke.charCodeAt(1)-56320);return st(240|St>>>18&7)+st(128|St>>>12&63)+st(128|St>>>6&63)+st(128|St&63)}},Ve=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,We=function(Ke){return Ke.replace(Ve,et)},Je=function(Ke){var St=[0,2,1][Ke.length%3],Le=Ke.charCodeAt(0)<<16|(Ke.length>1?Ke.charCodeAt(1):0)<<8|(Ke.length>2?Ke.charCodeAt(2):0),ot=[Me.charAt(Le>>>18),Me.charAt(Le>>>12&63),St>=2?"=":Me.charAt(Le>>>6&63),St>=1?"=":Me.charAt(Le&63)];return ot.join("")},Ye=Be.btoa&&typeof Be.btoa=="function"?function(Ke){return Be.btoa(Ke)}:function(Ke){if(Ke.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ke.replace(/[\s\S]{1,3}/g,Je)},se=function(Ke){return Ye(We(String(Ke)))},E=function(Ke){return Ke.replace(/[+\/]/g,function(St){return St=="+"?"-":"_"}).replace(/=/g,"")},a=function(Ke,St){return St?E(se(Ke)):se(Ke)},x=function(Ke){return a(Ke,!0)},y;Be.Uint8Array&&(y=function(Ke,St){for(var Le="",ot=0,lt=Ke.length;ot<lt;ot+=3){var gt=Ke[ot],ft=Ke[ot+1],ln=Ke[ot+2],xt=gt<<16|ft<<8|ln;Le+=Me.charAt(xt>>>18)+Me.charAt(xt>>>12&63)+(typeof ft!="undefined"?Me.charAt(xt>>>6&63):"=")+(typeof ln!="undefined"?Me.charAt(xt&63):"=")}return St?E(Le):Le});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(Ke){switch(Ke.length){case 4:var St=(7&Ke.charCodeAt(0))<<18|(63&Ke.charCodeAt(1))<<12|(63&Ke.charCodeAt(2))<<6|63&Ke.charCodeAt(3),Le=St-65536;return st((Le>>>10)+55296)+st((Le&1023)+56320);case 3:return st((15&Ke.charCodeAt(0))<<12|(63&Ke.charCodeAt(1))<<6|63&Ke.charCodeAt(2));default:return st((31&Ke.charCodeAt(0))<<6|63&Ke.charCodeAt(1))}},re=function(Ke){return Ke.replace(z,ne)},ue=function(Ke){var St=Ke.length,Le=St%4,ot=(St>0?le[Ke.charAt(0)]<<18:0)|(St>1?le[Ke.charAt(1)]<<12:0)|(St>2?le[Ke.charAt(2)]<<6:0)|(St>3?le[Ke.charAt(3)]:0),lt=[st(ot>>>16),st(ot>>>8&255),st(ot&255)];return lt.length-=[0,0,2,1][Le],lt.join("")},ie=Be.atob&&typeof Be.atob=="function"?function(Ke){return Be.atob(Ke)}:function(Ke){return Ke.replace(/\S{1,4}/g,ue)},ve=function(Ke){return ie(String(Ke).replace(/[^A-Za-z0-9\+\/]/g,""))},be=function(Ke){return re(ie(Ke))},je=function(Ke){return String(Ke).replace(/[-_]/g,function(St){return St=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},De=function(Ke){return be(je(Ke))},He;Be.Uint8Array&&(He=function(Ke){return Uint8Array.from(ve(je(Ke)),function(St){return St.charCodeAt(0)})});var he=function(){var Ke=Be.Base64;return Be.Base64=Ae,Ke};if(Be.Base64={VERSION:ze,atob:ve,btoa:Ye,fromBase64:De,toBase64:a,utob:We,encode:a,encodeURI:x,btou:re,decode:De,noConflict:he,fromUint8Array:y,toUint8Array:He},typeof Object.defineProperty=="function"){var Xe=function(Ke){return{value:Ke,enumerable:!1,writable:!0,configurable:!0}};Be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xe(function(){return De(this)})),Object.defineProperty(String.prototype,"toBase64",Xe(function(Ke){return a(this,Ke)})),Object.defineProperty(String.prototype,"toBase64URI",Xe(function(){return a(this,!0)}))}}return Be.Meteor&&(Base64=Be.Base64),Qt.exports?Qt.exports.Base64=Be.Base64:(b=[],de=function(){return Be.Base64}.apply(Gt,b),de!==void 0&&(Qt.exports=de)),{Base64:Be.Base64}})},39417:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return be}});var b=ee(92413),de=ee(400),Be=ee(37061),Ae=ee(33708),ze=ee(6909),Me=ee(4771),le=ee(25314),st=ee(9427),et=ee(25440),Ve=ee(92310),We=ee.n(Ve),Je=ee(26112),Ye=ee(59301),se=ee(39378),E=function(De){for(var He=De.prefixCls,he=De.level,Xe=De.isStart,Ke=De.isEnd,St="".concat(He,"-indent-unit"),Le=[],ot=0;ot<he;ot+=1){var lt;Le.push(Ye.createElement("span",{key:ot,className:We()(St,(lt={},(0,de.Z)(lt,"".concat(St,"-start"),Xe[ot]),(0,de.Z)(lt,"".concat(St,"-end"),Ke[ot]),lt))}))}return Ye.createElement("span",{"aria-hidden":"true",className:"".concat(He,"-indent")},Le)},a=Ye.memo(E),x=ee(67841),y=ee(71430),z=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ne="open",re="close",ue="---",ie=function(je){(0,st.Z)(He,je);var De=(0,et.Z)(He);function He(){var he;(0,ze.Z)(this,He);for(var Xe=arguments.length,Ke=new Array(Xe),St=0;St<Xe;St++)Ke[St]=arguments[St];return he=De.call.apply(De,[this].concat(Ke)),he.state={dragNodeHighlight:!1},he.selectHandle=void 0,he.cacheIndent=void 0,he.onSelectorClick=function(Le){var ot=he.props.context.onNodeClick;ot(Le,(0,y.F)(he.props)),he.isSelectable()?he.onSelect(Le):he.onCheck(Le)},he.onSelectorDoubleClick=function(Le){var ot=he.props.context.onNodeDoubleClick;ot(Le,(0,y.F)(he.props))},he.onSelect=function(Le){if(!he.isDisabled()){var ot=he.props.context.onNodeSelect;ot(Le,(0,y.F)(he.props))}},he.onCheck=function(Le){if(!he.isDisabled()){var ot=he.props,lt=ot.disableCheckbox,gt=ot.checked,ft=he.props.context.onNodeCheck;if(!(!he.isCheckable()||lt)){var ln=!gt;ft(Le,(0,y.F)(he.props),ln)}}},he.onMouseEnter=function(Le){var ot=he.props.context.onNodeMouseEnter;ot(Le,(0,y.F)(he.props))},he.onMouseLeave=function(Le){var ot=he.props.context.onNodeMouseLeave;ot(Le,(0,y.F)(he.props))},he.onContextMenu=function(Le){var ot=he.props.context.onNodeContextMenu;ot(Le,(0,y.F)(he.props))},he.onDragStart=function(Le){var ot=he.props.context.onNodeDragStart;Le.stopPropagation(),he.setState({dragNodeHighlight:!0}),ot(Le,(0,le.Z)(he));try{Le.dataTransfer.setData("text/plain","")}catch(lt){}},he.onDragEnter=function(Le){var ot=he.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),ot(Le,(0,le.Z)(he))},he.onDragOver=function(Le){var ot=he.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),ot(Le,(0,le.Z)(he))},he.onDragLeave=function(Le){var ot=he.props.context.onNodeDragLeave;Le.stopPropagation(),ot(Le,(0,le.Z)(he))},he.onDragEnd=function(Le){var ot=he.props.context.onNodeDragEnd;Le.stopPropagation(),he.setState({dragNodeHighlight:!1}),ot(Le,(0,le.Z)(he))},he.onDrop=function(Le){var ot=he.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),he.setState({dragNodeHighlight:!1}),ot(Le,(0,le.Z)(he))},he.onExpand=function(Le){var ot=he.props,lt=ot.loading,gt=ot.context.onNodeExpand;lt||gt(Le,(0,y.F)(he.props))},he.setSelectHandle=function(Le){he.selectHandle=Le},he.getNodeState=function(){var Le=he.props.expanded;return he.isLeaf()?null:Le?ne:re},he.hasChildren=function(){var Le=he.props.eventKey,ot=he.props.context.keyEntities,lt=(0,x.Z)(ot,Le)||{},gt=lt.children;return!!(gt||[]).length},he.isLeaf=function(){var Le=he.props,ot=Le.isLeaf,lt=Le.loaded,gt=he.props.context.loadData,ft=he.hasChildren();return ot===!1?!1:ot||!gt&&!ft||gt&&lt&&!ft},he.isDisabled=function(){var Le=he.props.disabled,ot=he.props.context.disabled;return!!(ot||Le)},he.isCheckable=function(){var Le=he.props.checkable,ot=he.props.context.checkable;return!ot||Le===!1?!1:ot},he.syncLoadData=function(Le){var ot=Le.expanded,lt=Le.loading,gt=Le.loaded,ft=he.props.context,ln=ft.loadData,xt=ft.onNodeLoad;lt||ln&&ot&&!he.isLeaf()&&!he.hasChildren()&&!gt&&xt((0,y.F)(he.props))},he.isDraggable=function(){var Le=he.props,ot=Le.data,lt=Le.context.draggable;return!!(lt&&(!lt.nodeDraggable||lt.nodeDraggable(ot)))},he.renderDragHandler=function(){var Le=he.props.context,ot=Le.draggable,lt=Le.prefixCls;return ot!=null&&ot.icon?Ye.createElement("span",{className:"".concat(lt,"-draggable-icon")},ot.icon):null},he.renderSwitcherIconDom=function(Le){var ot=he.props.switcherIcon,lt=he.props.context.switcherIcon,gt=ot||lt;return typeof gt=="function"?gt((0,Ae.Z)((0,Ae.Z)({},he.props),{},{isLeaf:Le})):gt},he.renderSwitcher=function(){var Le=he.props.expanded,ot=he.props.context.prefixCls;if(he.isLeaf()){var lt=he.renderSwitcherIconDom(!0);return lt!==!1?Ye.createElement("span",{className:We()("".concat(ot,"-switcher"),"".concat(ot,"-switcher-noop"))},lt):null}var gt=We()("".concat(ot,"-switcher"),"".concat(ot,"-switcher_").concat(Le?ne:re)),ft=he.renderSwitcherIconDom(!1);return ft!==!1?Ye.createElement("span",{onClick:he.onExpand,className:gt},ft):null},he.renderCheckbox=function(){var Le=he.props,ot=Le.checked,lt=Le.halfChecked,gt=Le.disableCheckbox,ft=he.props.context.prefixCls,ln=he.isDisabled(),xt=he.isCheckable();if(!xt)return null;var nn=typeof xt!="boolean"?xt:null;return Ye.createElement("span",{className:We()("".concat(ft,"-checkbox"),ot&&"".concat(ft,"-checkbox-checked"),!ot&&lt&&"".concat(ft,"-checkbox-indeterminate"),(ln||gt)&&"".concat(ft,"-checkbox-disabled")),onClick:he.onCheck},nn)},he.renderIcon=function(){var Le=he.props.loading,ot=he.props.context.prefixCls;return Ye.createElement("span",{className:We()("".concat(ot,"-iconEle"),"".concat(ot,"-icon__").concat(he.getNodeState()||"docu"),Le&&"".concat(ot,"-icon_loading"))})},he.renderSelector=function(){var Le=he.state.dragNodeHighlight,ot=he.props,lt=ot.title,gt=lt===void 0?ue:lt,ft=ot.selected,ln=ot.icon,xt=ot.loading,nn=ot.data,En=he.props.context,$e=En.prefixCls,dt=En.showIcon,on=En.icon,Yn=En.loadData,Zt=En.titleRender,On=he.isDisabled(),_e="".concat($e,"-node-content-wrapper"),ct;if(dt){var kt=ln||on;ct=kt?Ye.createElement("span",{className:We()("".concat($e,"-iconEle"),"".concat($e,"-icon__customize"))},typeof kt=="function"?kt(he.props):kt):he.renderIcon()}else Yn&&xt&&(ct=he.renderIcon());var mt;typeof gt=="function"?mt=gt(nn):Zt?mt=Zt(nn):mt=gt;var It=Ye.createElement("span",{className:"".concat($e,"-title")},mt);return Ye.createElement("span",{ref:he.setSelectHandle,title:typeof gt=="string"?gt:"",className:We()("".concat(_e),"".concat(_e,"-").concat(he.getNodeState()||"normal"),!On&&(ft||Le)&&"".concat($e,"-node-selected")),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave,onContextMenu:he.onContextMenu,onClick:he.onSelectorClick,onDoubleClick:he.onSelectorDoubleClick},ct,It,he.renderDropIndicator())},he.renderDropIndicator=function(){var Le=he.props,ot=Le.disabled,lt=Le.eventKey,gt=he.props.context,ft=gt.draggable,ln=gt.dropLevelOffset,xt=gt.dropPosition,nn=gt.prefixCls,En=gt.indent,$e=gt.dropIndicatorRender,dt=gt.dragOverNodeKey,on=gt.direction,Yn=!!ft,Zt=!ot&&Yn&&dt===lt,On=En!=null?En:he.cacheIndent;return he.cacheIndent=En,Zt?$e({dropPosition:xt,dropLevelOffset:ln,indent:On,prefixCls:nn,direction:on}):null},he}return(0,Me.Z)(He,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Xe=this.props.selectable,Ke=this.props.context.selectable;return typeof Xe=="boolean"?Xe:Ke}},{key:"render",value:function(){var Xe,Ke=this.props,St=Ke.eventKey,Le=Ke.className,ot=Ke.style,lt=Ke.dragOver,gt=Ke.dragOverGapTop,ft=Ke.dragOverGapBottom,ln=Ke.isLeaf,xt=Ke.isStart,nn=Ke.isEnd,En=Ke.expanded,$e=Ke.selected,dt=Ke.checked,on=Ke.halfChecked,Yn=Ke.loading,Zt=Ke.domRef,On=Ke.active,_e=Ke.data,ct=Ke.onMouseMove,kt=Ke.selectable,mt=(0,Be.Z)(Ke,z),It=this.props.context,ut=It.prefixCls,at=It.filterTreeNode,Ie=It.keyEntities,fe=It.dropContainerKey,qe=It.dropTargetKey,At=It.draggingNodeKey,Oe=this.isDisabled(),Ne=(0,Je.Z)(mt,{aria:!0,data:!0}),Ct=(0,x.Z)(Ie,St)||{},tt=Ct.level,ke=nn[nn.length-1],ht=this.isDraggable(),Sn=!Oe&&ht,rn=At===St,an=kt!==void 0?{"aria-selected":!!kt}:void 0;return Ye.createElement("div",(0,b.Z)({ref:Zt,className:We()(Le,"".concat(ut,"-treenode"),(Xe={},(0,de.Z)(Xe,"".concat(ut,"-treenode-disabled"),Oe),(0,de.Z)(Xe,"".concat(ut,"-treenode-switcher-").concat(En?"open":"close"),!ln),(0,de.Z)(Xe,"".concat(ut,"-treenode-checkbox-checked"),dt),(0,de.Z)(Xe,"".concat(ut,"-treenode-checkbox-indeterminate"),on),(0,de.Z)(Xe,"".concat(ut,"-treenode-selected"),$e),(0,de.Z)(Xe,"".concat(ut,"-treenode-loading"),Yn),(0,de.Z)(Xe,"".concat(ut,"-treenode-active"),On),(0,de.Z)(Xe,"".concat(ut,"-treenode-leaf-last"),ke),(0,de.Z)(Xe,"".concat(ut,"-treenode-draggable"),ht),(0,de.Z)(Xe,"dragging",rn),(0,de.Z)(Xe,"drop-target",qe===St),(0,de.Z)(Xe,"drop-container",fe===St),(0,de.Z)(Xe,"drag-over",!Oe&&lt),(0,de.Z)(Xe,"drag-over-gap-top",!Oe&&gt),(0,de.Z)(Xe,"drag-over-gap-bottom",!Oe&&ft),(0,de.Z)(Xe,"filter-node",at&&at((0,y.F)(this.props))),Xe)),style:ot,draggable:Sn,"aria-grabbed":rn,onDragStart:Sn?this.onDragStart:void 0,onDragEnter:ht?this.onDragEnter:void 0,onDragOver:ht?this.onDragOver:void 0,onDragLeave:ht?this.onDragLeave:void 0,onDrop:ht?this.onDrop:void 0,onDragEnd:ht?this.onDragEnd:void 0,onMouseMove:ct},an,Ne),Ye.createElement(a,{prefixCls:ut,level:tt,isStart:xt,isEnd:nn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),He}(Ye.Component),ve=function(De){return Ye.createElement(se.k.Consumer,null,function(He){return Ye.createElement(ie,(0,b.Z)({},De,{context:He}))})};ve.displayName="TreeNode",ve.isTreeNode=1;var be=ve},39378:function(Qt,Gt,ee){"use strict";ee.d(Gt,{k:function(){return de}});var b=ee(59301),de=b.createContext(null)},23130:function(Qt,Gt,ee){"use strict";ee.d(Gt,{O:function(){return be.Z},Z:function(){return It}});var b=ee(92413),de=ee(400),Be=ee(39559),Ae=ee(33708),ze=ee(26407),Me=ee(6909),le=ee(4771),st=ee(25314),et=ee(9427),Ve=ee(25440),We=ee(92310),Je=ee.n(We),Ye=ee(10228),se=ee(26112),E=ee(48736),a=ee(59301),x=ee(39378);function y(ut){var at=ut.dropPosition,Ie=ut.dropLevelOffset,fe=ut.indent,qe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(at){case-1:qe.top=0,qe.left=-Ie*fe;break;case 1:qe.bottom=0,qe.left=-Ie*fe;break;case 0:qe.bottom=0,qe.left=fe;break}return a.createElement("div",{style:qe})}function z(ut){if(ut==null)throw new TypeError("Cannot destructure "+ut)}var ne=ee(33606),re=ee(37061),ue=ee(34280),ie=ee(24916),ve=ee(77900),be=ee(39417);function je(ut,at){var Ie=a.useState(!1),fe=(0,ne.Z)(Ie,2),qe=fe[0],At=fe[1];a.useLayoutEffect(function(){if(qe)return ut(),function(){at()}},[qe]),a.useLayoutEffect(function(){return At(!0),function(){At(!1)}},[])}var De=ee(71430),He=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],he=function(at,Ie){var fe=at.className,qe=at.style,At=at.motion,Oe=at.motionNodes,Ne=at.motionType,Ct=at.onMotionStart,tt=at.onMotionEnd,ke=at.active,ht=at.treeNodeRequiredProps,Sn=(0,re.Z)(at,He),rn=a.useState(!0),an=(0,ne.Z)(rn,2),mn=an[0],cn=an[1],Te=a.useContext(x.k),Ft=Te.prefixCls,zt=Oe&&Ne!=="hide";(0,ue.Z)(function(){Oe&&zt!==mn&&cn(zt)},[Oe]);var wt=function(){Oe&&Ct()},Rt=a.useRef(!1),un=function(){Oe&&!Rt.current&&(Rt.current=!0,tt())};je(wt,un);var dn=function(Vn){zt===Vn&&un()};return Oe?a.createElement(ve.default,(0,b.Z)({ref:Ie,visible:mn},At,{motionAppear:Ne==="show",onVisibleChanged:dn}),function(_n,Vn){var va=_n.className,La=_n.style;return a.createElement("div",{ref:Vn,className:Je()("".concat(Ft,"-treenode-motion"),va),style:La},Oe.map(function(Na){var rr=(0,b.Z)({},(z(Na.data),Na.data)),Ka=Na.title,Ea=Na.key,yr=Na.isStart,Xt=Na.isEnd;delete rr.children;var jn=(0,De.H8)(Ea,ht);return a.createElement(be.Z,(0,b.Z)({},rr,jn,{title:Ka,active:ke,data:Na.data,key:Ea,isStart:yr,isEnd:Xt}))}))}):a.createElement(be.Z,(0,b.Z)({domRef:Ie,className:fe,style:qe},Sn,{active:ke}))};he.displayName="MotionTreeNode";var Xe=a.forwardRef(he),Ke=Xe;function St(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ie=ut.length,fe=at.length;if(Math.abs(Ie-fe)!==1)return{add:!1,key:null};function qe(At,Oe){var Ne=new Map;At.forEach(function(tt){Ne.set(tt,!0)});var Ct=Oe.filter(function(tt){return!Ne.has(tt)});return Ct.length===1?Ct[0]:null}return Ie<fe?{add:!0,key:qe(ut,at)}:{add:!1,key:qe(at,ut)}}function Le(ut,at,Ie){var fe=ut.findIndex(function(Ne){return Ne.key===Ie}),qe=ut[fe+1],At=at.findIndex(function(Ne){return Ne.key===Ie});if(qe){var Oe=at.findIndex(function(Ne){return Ne.key===qe.key});return at.slice(At+1,Oe)}return at.slice(At+1)}var ot=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],lt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gt=function(){},ft="RC_TREE_MOTION_".concat(Math.random()),ln={key:ft},xt={key:ft,level:0,index:0,pos:"0",node:ln,nodes:[ln]},nn={parent:null,children:[],pos:xt.pos,data:ln,title:null,key:ft,isStart:[],isEnd:[]};function En(ut,at,Ie,fe){return at===!1||!Ie?ut:ut.slice(0,Math.ceil(Ie/fe)+1)}function $e(ut){var at=ut.key,Ie=ut.pos;return(0,De.km)(at,Ie)}function dt(ut){for(var at=String(ut.data.key),Ie=ut;Ie.parent;)Ie=Ie.parent,at="".concat(Ie.data.key," > ").concat(at);return at}var on=a.forwardRef(function(ut,at){var Ie=ut.prefixCls,fe=ut.data,qe=ut.selectable,At=ut.checkable,Oe=ut.expandedKeys,Ne=ut.selectedKeys,Ct=ut.checkedKeys,tt=ut.loadedKeys,ke=ut.loadingKeys,ht=ut.halfCheckedKeys,Sn=ut.keyEntities,rn=ut.disabled,an=ut.dragging,mn=ut.dragOverNodeKey,cn=ut.dropPosition,Te=ut.motion,Ft=ut.height,zt=ut.itemHeight,wt=ut.virtual,Rt=ut.focusable,un=ut.activeItem,dn=ut.focused,_n=ut.tabIndex,Vn=ut.onKeyDown,va=ut.onFocus,La=ut.onBlur,Na=ut.onActiveChange,rr=ut.onListChangeStart,Ka=ut.onListChangeEnd,Ea=(0,re.Z)(ut,ot),yr=a.useRef(null),Xt=a.useRef(null);a.useImperativeHandle(at,function(){return{scrollTo:function(pr){yr.current.scrollTo(pr)},getIndentWidth:function(){return Xt.current.offsetWidth}}});var jn=a.useState(Oe),Qn=(0,ne.Z)(jn,2),Ia=Qn[0],Ge=Qn[1],Ot=a.useState(fe),_t=(0,ne.Z)(Ot,2),Vt=_t[0],Wt=_t[1],Nn=a.useState(fe),Bn=(0,ne.Z)(Nn,2),vt=Bn[0],Bt=Bn[1],pt=a.useState([]),vn=(0,ne.Z)(pt,2),Hn=vn[0],In=vn[1],Ta=a.useState(null),Pa=(0,ne.Z)(Ta,2),Rn=Pa[0],ya=Pa[1],ba=a.useRef(fe);ba.current=fe;function wn(){var Jr=ba.current;Wt(Jr),Bt(Jr),In([]),ya(null),Ka()}(0,ue.Z)(function(){Ge(Oe);var Jr=St(Ia,Oe);if(Jr.key!==null)if(Jr.add){var pr=Vt.findIndex(function(ra){var Xn=ra.key;return Xn===Jr.key}),Qe=En(Le(Vt,fe,Jr.key),wt,Ft,zt),Pn=Vt.slice();Pn.splice(pr+1,0,nn),Bt(Pn),In(Qe),ya("show")}else{var qt=fe.findIndex(function(ra){var Xn=ra.key;return Xn===Jr.key}),Dn=En(Le(fe,Vt,Jr.key),wt,Ft,zt),Gn=fe.slice();Gn.splice(qt+1,0,nn),Bt(Gn),In(Dn),ya("hide")}else Vt!==fe&&(Wt(fe),Bt(fe))},[Oe,fe]),a.useEffect(function(){an||wn()},[an]);var mr=Te?vt:fe,Er={expandedKeys:Oe,selectedKeys:Ne,loadedKeys:tt,loadingKeys:ke,checkedKeys:Ct,halfCheckedKeys:ht,dragOverNodeKey:mn,dropPosition:cn,keyEntities:Sn};return a.createElement(a.Fragment,null,dn&&un&&a.createElement("span",{style:lt,"aria-live":"assertive"},dt(un)),a.createElement("div",null,a.createElement("input",{style:lt,disabled:Rt===!1||rn,tabIndex:Rt!==!1?_n:null,onKeyDown:Vn,onFocus:va,onBlur:La,value:"",onChange:gt,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(Ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(Ie,"-indent")},a.createElement("div",{ref:Xt,className:"".concat(Ie,"-indent-unit")}))),a.createElement(ie.Z,(0,b.Z)({},Ea,{data:mr,itemKey:$e,height:Ft,fullHeight:!1,virtual:wt,itemHeight:zt,prefixCls:"".concat(Ie,"-list"),ref:yr,onVisibleChange:function(pr,Qe){var Pn=new Set(pr),qt=Qe.filter(function(Dn){return!Pn.has(Dn)});qt.some(function(Dn){return $e(Dn)===ft})&&wn()}}),function(Jr){var pr=Jr.pos,Qe=(0,b.Z)({},(z(Jr.data),Jr.data)),Pn=Jr.title,qt=Jr.key,Dn=Jr.isStart,Gn=Jr.isEnd,ra=(0,De.km)(qt,pr);delete Qe.key,delete Qe.children;var Xn=(0,De.H8)(ra,Er);return a.createElement(Ke,(0,b.Z)({},Qe,Xn,{title:Pn,active:!!un&&qt===un.key,pos:pr,data:Jr.data,isStart:Dn,isEnd:Gn,motion:Te,motionNodes:qt===ft?Hn:null,motionType:Rn,onMotionStart:rr,onMotionEnd:wn,treeNodeRequiredProps:Er,onMouseMove:function(){Na(null)}}))}))});on.displayName="NodeList";var Yn=on,Zt=ee(35654),On=ee(90782),_e=ee(67841),ct=10,kt=function(ut){(0,et.Z)(Ie,ut);var at=(0,Ve.Z)(Ie);function Ie(){var fe;(0,Me.Z)(this,Ie);for(var qe=arguments.length,At=new Array(qe),Oe=0;Oe<qe;Oe++)At[Oe]=arguments[Oe];return fe=at.call.apply(at,[this].concat(At)),fe.destroyed=!1,fe.delayedDragEnterLogic=void 0,fe.loadingRetryTimes={},fe.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,De.w$)()},fe.dragStartMousePosition=null,fe.dragNode=void 0,fe.currentMouseOverDroppableNodeKey=null,fe.listRef=a.createRef(),fe.onNodeDragStart=function(Ne,Ct){var tt=fe.state,ke=tt.expandedKeys,ht=tt.keyEntities,Sn=fe.props.onDragStart,rn=Ct.props.eventKey;fe.dragNode=Ct,fe.dragStartMousePosition={x:Ne.clientX,y:Ne.clientY};var an=(0,Zt._5)(ke,rn);fe.setState({draggingNodeKey:rn,dragChildrenKeys:(0,Zt.wA)(rn,ht),indent:fe.listRef.current.getIndentWidth()}),fe.setExpandedKeys(an),window.addEventListener("dragend",fe.onWindowDragEnd),Sn==null||Sn({event:Ne,node:(0,De.F)(Ct.props)})},fe.onNodeDragEnter=function(Ne,Ct){var tt=fe.state,ke=tt.expandedKeys,ht=tt.keyEntities,Sn=tt.dragChildrenKeys,rn=tt.flattenNodes,an=tt.indent,mn=fe.props,cn=mn.onDragEnter,Te=mn.onExpand,Ft=mn.allowDrop,zt=mn.direction,wt=Ct.props,Rt=wt.pos,un=wt.eventKey,dn=(0,st.Z)(fe),_n=dn.dragNode;if(fe.currentMouseOverDroppableNodeKey!==un&&(fe.currentMouseOverDroppableNodeKey=un),!_n){fe.resetDragState();return}var Vn=(0,Zt.OM)(Ne,_n,Ct,an,fe.dragStartMousePosition,Ft,rn,ht,ke,zt),va=Vn.dropPosition,La=Vn.dropLevelOffset,Na=Vn.dropTargetKey,rr=Vn.dropContainerKey,Ka=Vn.dropTargetPos,Ea=Vn.dropAllowed,yr=Vn.dragOverNodeKey;if(Sn.indexOf(Na)!==-1||!Ea){fe.resetDragState();return}if(fe.delayedDragEnterLogic||(fe.delayedDragEnterLogic={}),Object.keys(fe.delayedDragEnterLogic).forEach(function(Xt){clearTimeout(fe.delayedDragEnterLogic[Xt])}),_n.props.eventKey!==Ct.props.eventKey&&(Ne.persist(),fe.delayedDragEnterLogic[Rt]=window.setTimeout(function(){if(fe.state.draggingNodeKey!==null){var Xt=(0,ze.Z)(ke),jn=(0,_e.Z)(ht,Ct.props.eventKey);jn&&(jn.children||[]).length&&(Xt=(0,Zt.L0)(ke,Ct.props.eventKey)),"expandedKeys"in fe.props||fe.setExpandedKeys(Xt),Te==null||Te(Xt,{node:(0,De.F)(Ct.props),expanded:!0,nativeEvent:Ne.nativeEvent})}},800)),_n.props.eventKey===Na&&La===0){fe.resetDragState();return}fe.setState({dragOverNodeKey:yr,dropPosition:va,dropLevelOffset:La,dropTargetKey:Na,dropContainerKey:rr,dropTargetPos:Ka,dropAllowed:Ea}),cn==null||cn({event:Ne,node:(0,De.F)(Ct.props),expandedKeys:ke})},fe.onNodeDragOver=function(Ne,Ct){var tt=fe.state,ke=tt.dragChildrenKeys,ht=tt.flattenNodes,Sn=tt.keyEntities,rn=tt.expandedKeys,an=tt.indent,mn=fe.props,cn=mn.onDragOver,Te=mn.allowDrop,Ft=mn.direction,zt=(0,st.Z)(fe),wt=zt.dragNode;if(wt){var Rt=(0,Zt.OM)(Ne,wt,Ct,an,fe.dragStartMousePosition,Te,ht,Sn,rn,Ft),un=Rt.dropPosition,dn=Rt.dropLevelOffset,_n=Rt.dropTargetKey,Vn=Rt.dropContainerKey,va=Rt.dropAllowed,La=Rt.dropTargetPos,Na=Rt.dragOverNodeKey;ke.indexOf(_n)!==-1||!va||(wt.props.eventKey===_n&&dn===0?fe.state.dropPosition===null&&fe.state.dropLevelOffset===null&&fe.state.dropTargetKey===null&&fe.state.dropContainerKey===null&&fe.state.dropTargetPos===null&&fe.state.dropAllowed===!1&&fe.state.dragOverNodeKey===null||fe.resetDragState():un===fe.state.dropPosition&&dn===fe.state.dropLevelOffset&&_n===fe.state.dropTargetKey&&Vn===fe.state.dropContainerKey&&La===fe.state.dropTargetPos&&va===fe.state.dropAllowed&&Na===fe.state.dragOverNodeKey||fe.setState({dropPosition:un,dropLevelOffset:dn,dropTargetKey:_n,dropContainerKey:Vn,dropTargetPos:La,dropAllowed:va,dragOverNodeKey:Na}),cn==null||cn({event:Ne,node:(0,De.F)(Ct.props)}))}},fe.onNodeDragLeave=function(Ne,Ct){fe.currentMouseOverDroppableNodeKey===Ct.props.eventKey&&!Ne.currentTarget.contains(Ne.relatedTarget)&&(fe.resetDragState(),fe.currentMouseOverDroppableNodeKey=null);var tt=fe.props.onDragLeave;tt==null||tt({event:Ne,node:(0,De.F)(Ct.props)})},fe.onWindowDragEnd=function(Ne){fe.onNodeDragEnd(Ne,null,!0),window.removeEventListener("dragend",fe.onWindowDragEnd)},fe.onNodeDragEnd=function(Ne,Ct){var tt=fe.props.onDragEnd;fe.setState({dragOverNodeKey:null}),fe.cleanDragState(),tt==null||tt({event:Ne,node:(0,De.F)(Ct.props)}),fe.dragNode=null,window.removeEventListener("dragend",fe.onWindowDragEnd)},fe.onNodeDrop=function(Ne,Ct){var tt,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ht=fe.state,Sn=ht.dragChildrenKeys,rn=ht.dropPosition,an=ht.dropTargetKey,mn=ht.dropTargetPos,cn=ht.dropAllowed;if(cn){var Te=fe.props.onDrop;if(fe.setState({dragOverNodeKey:null}),fe.cleanDragState(),an!==null){var Ft=(0,Ae.Z)((0,Ae.Z)({},(0,De.H8)(an,fe.getTreeNodeRequiredProps())),{},{active:((tt=fe.getActiveItem())===null||tt===void 0?void 0:tt.key)===an,data:(0,_e.Z)(fe.state.keyEntities,an).node}),zt=Sn.indexOf(an)!==-1;(0,E.ZP)(!zt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var wt=(0,Zt.yx)(mn),Rt={event:Ne,node:(0,De.F)(Ft),dragNode:fe.dragNode?(0,De.F)(fe.dragNode.props):null,dragNodesKeys:[fe.dragNode.props.eventKey].concat(Sn),dropToGap:rn!==0,dropPosition:rn+Number(wt[wt.length-1])};ke||Te==null||Te(Rt),fe.dragNode=null}}},fe.cleanDragState=function(){var Ne=fe.state.draggingNodeKey;Ne!==null&&fe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),fe.dragStartMousePosition=null,fe.currentMouseOverDroppableNodeKey=null},fe.triggerExpandActionExpand=function(Ne,Ct){var tt=fe.state,ke=tt.expandedKeys,ht=tt.flattenNodes,Sn=Ct.expanded,rn=Ct.key,an=Ct.isLeaf;if(!(an||Ne.shiftKey||Ne.metaKey||Ne.ctrlKey)){var mn=ht.filter(function(Te){return Te.key===rn})[0],cn=(0,De.F)((0,Ae.Z)((0,Ae.Z)({},(0,De.H8)(rn,fe.getTreeNodeRequiredProps())),{},{data:mn.data}));fe.setExpandedKeys(Sn?(0,Zt._5)(ke,rn):(0,Zt.L0)(ke,rn)),fe.onNodeExpand(Ne,cn)}},fe.onNodeClick=function(Ne,Ct){var tt=fe.props,ke=tt.onClick,ht=tt.expandAction;ht==="click"&&fe.triggerExpandActionExpand(Ne,Ct),ke==null||ke(Ne,Ct)},fe.onNodeDoubleClick=function(Ne,Ct){var tt=fe.props,ke=tt.onDoubleClick,ht=tt.expandAction;ht==="doubleClick"&&fe.triggerExpandActionExpand(Ne,Ct),ke==null||ke(Ne,Ct)},fe.onNodeSelect=function(Ne,Ct){var tt=fe.state.selectedKeys,ke=fe.state,ht=ke.keyEntities,Sn=ke.fieldNames,rn=fe.props,an=rn.onSelect,mn=rn.multiple,cn=Ct.selected,Te=Ct[Sn.key],Ft=!cn;Ft?mn?tt=(0,Zt.L0)(tt,Te):tt=[Te]:tt=(0,Zt._5)(tt,Te);var zt=tt.map(function(wt){var Rt=(0,_e.Z)(ht,wt);return Rt?Rt.node:null}).filter(function(wt){return wt});fe.setUncontrolledState({selectedKeys:tt}),an==null||an(tt,{event:"select",selected:Ft,node:Ct,selectedNodes:zt,nativeEvent:Ne.nativeEvent})},fe.onNodeCheck=function(Ne,Ct,tt){var ke=fe.state,ht=ke.keyEntities,Sn=ke.checkedKeys,rn=ke.halfCheckedKeys,an=fe.props,mn=an.checkStrictly,cn=an.onCheck,Te=Ct.key,Ft,zt={event:"check",node:Ct,checked:tt,nativeEvent:Ne.nativeEvent};if(mn){var wt=tt?(0,Zt.L0)(Sn,Te):(0,Zt._5)(Sn,Te),Rt=(0,Zt._5)(rn,Te);Ft={checked:wt,halfChecked:Rt},zt.checkedNodes=wt.map(function(La){return(0,_e.Z)(ht,La)}).filter(function(La){return La}).map(function(La){return La.node}),fe.setUncontrolledState({checkedKeys:wt})}else{var un=(0,On.S)([].concat((0,ze.Z)(Sn),[Te]),!0,ht),dn=un.checkedKeys,_n=un.halfCheckedKeys;if(!tt){var Vn=new Set(dn);Vn.delete(Te);var va=(0,On.S)(Array.from(Vn),{checked:!1,halfCheckedKeys:_n},ht);dn=va.checkedKeys,_n=va.halfCheckedKeys}Ft=dn,zt.checkedNodes=[],zt.checkedNodesPositions=[],zt.halfCheckedKeys=_n,dn.forEach(function(La){var Na=(0,_e.Z)(ht,La);if(Na){var rr=Na.node,Ka=Na.pos;zt.checkedNodes.push(rr),zt.checkedNodesPositions.push({node:rr,pos:Ka})}}),fe.setUncontrolledState({checkedKeys:dn},!1,{halfCheckedKeys:_n})}cn==null||cn(Ft,zt)},fe.onNodeLoad=function(Ne){var Ct=Ne.key,tt=new Promise(function(ke,ht){fe.setState(function(Sn){var rn=Sn.loadedKeys,an=rn===void 0?[]:rn,mn=Sn.loadingKeys,cn=mn===void 0?[]:mn,Te=fe.props,Ft=Te.loadData,zt=Te.onLoad;if(!Ft||an.indexOf(Ct)!==-1||cn.indexOf(Ct)!==-1)return null;var wt=Ft(Ne);return wt.then(function(){var Rt=fe.state.loadedKeys,un=(0,Zt.L0)(Rt,Ct);zt==null||zt(un,{event:"load",node:Ne}),fe.setUncontrolledState({loadedKeys:un}),fe.setState(function(dn){return{loadingKeys:(0,Zt._5)(dn.loadingKeys,Ct)}}),ke()}).catch(function(Rt){if(fe.setState(function(dn){return{loadingKeys:(0,Zt._5)(dn.loadingKeys,Ct)}}),fe.loadingRetryTimes[Ct]=(fe.loadingRetryTimes[Ct]||0)+1,fe.loadingRetryTimes[Ct]>=ct){var un=fe.state.loadedKeys;(0,E.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),fe.setUncontrolledState({loadedKeys:(0,Zt.L0)(un,Ct)}),ke()}ht(Rt)}),{loadingKeys:(0,Zt.L0)(cn,Ct)}})});return tt.catch(function(){}),tt},fe.onNodeMouseEnter=function(Ne,Ct){var tt=fe.props.onMouseEnter;tt==null||tt({event:Ne,node:Ct})},fe.onNodeMouseLeave=function(Ne,Ct){var tt=fe.props.onMouseLeave;tt==null||tt({event:Ne,node:Ct})},fe.onNodeContextMenu=function(Ne,Ct){var tt=fe.props.onRightClick;tt&&(Ne.preventDefault(),tt({event:Ne,node:Ct}))},fe.onFocus=function(){var Ne=fe.props.onFocus;fe.setState({focused:!0});for(var Ct=arguments.length,tt=new Array(Ct),ke=0;ke<Ct;ke++)tt[ke]=arguments[ke];Ne==null||Ne.apply(void 0,tt)},fe.onBlur=function(){var Ne=fe.props.onBlur;fe.setState({focused:!1}),fe.onActiveChange(null);for(var Ct=arguments.length,tt=new Array(Ct),ke=0;ke<Ct;ke++)tt[ke]=arguments[ke];Ne==null||Ne.apply(void 0,tt)},fe.getTreeNodeRequiredProps=function(){var Ne=fe.state,Ct=Ne.expandedKeys,tt=Ne.selectedKeys,ke=Ne.loadedKeys,ht=Ne.loadingKeys,Sn=Ne.checkedKeys,rn=Ne.halfCheckedKeys,an=Ne.dragOverNodeKey,mn=Ne.dropPosition,cn=Ne.keyEntities;return{expandedKeys:Ct||[],selectedKeys:tt||[],loadedKeys:ke||[],loadingKeys:ht||[],checkedKeys:Sn||[],halfCheckedKeys:rn||[],dragOverNodeKey:an,dropPosition:mn,keyEntities:cn}},fe.setExpandedKeys=function(Ne){var Ct=fe.state,tt=Ct.treeData,ke=Ct.fieldNames,ht=(0,De.oH)(tt,Ne,ke);fe.setUncontrolledState({expandedKeys:Ne,flattenNodes:ht},!0)},fe.onNodeExpand=function(Ne,Ct){var tt=fe.state.expandedKeys,ke=fe.state,ht=ke.listChanging,Sn=ke.fieldNames,rn=fe.props,an=rn.onExpand,mn=rn.loadData,cn=Ct.expanded,Te=Ct[Sn.key];if(!ht){var Ft=tt.indexOf(Te),zt=!cn;if((0,E.ZP)(cn&&Ft!==-1||!cn&&Ft===-1,"Expand state not sync with index check"),zt?tt=(0,Zt.L0)(tt,Te):tt=(0,Zt._5)(tt,Te),fe.setExpandedKeys(tt),an==null||an(tt,{node:Ct,expanded:zt,nativeEvent:Ne.nativeEvent}),zt&&mn){var wt=fe.onNodeLoad(Ct);wt&&wt.then(function(){var Rt=(0,De.oH)(fe.state.treeData,tt,Sn);fe.setUncontrolledState({flattenNodes:Rt})}).catch(function(){var Rt=fe.state.expandedKeys,un=(0,Zt._5)(Rt,Te);fe.setExpandedKeys(un)})}}},fe.onListChangeStart=function(){fe.setUncontrolledState({listChanging:!0})},fe.onListChangeEnd=function(){setTimeout(function(){fe.setUncontrolledState({listChanging:!1})})},fe.onActiveChange=function(Ne){var Ct=fe.state.activeKey,tt=fe.props.onActiveChange;Ct!==Ne&&(fe.setState({activeKey:Ne}),Ne!==null&&fe.scrollTo({key:Ne}),tt==null||tt(Ne))},fe.getActiveItem=function(){var Ne=fe.state,Ct=Ne.activeKey,tt=Ne.flattenNodes;return Ct===null?null:tt.find(function(ke){var ht=ke.key;return ht===Ct})||null},fe.offsetActiveKey=function(Ne){var Ct=fe.state,tt=Ct.flattenNodes,ke=Ct.activeKey,ht=tt.findIndex(function(an){var mn=an.key;return mn===ke});ht===-1&&Ne<0&&(ht=tt.length),ht=(ht+Ne+tt.length)%tt.length;var Sn=tt[ht];if(Sn){var rn=Sn.key;fe.onActiveChange(rn)}else fe.onActiveChange(null)},fe.onKeyDown=function(Ne){var Ct=fe.state,tt=Ct.activeKey,ke=Ct.expandedKeys,ht=Ct.checkedKeys,Sn=Ct.fieldNames,rn=fe.props,an=rn.onKeyDown,mn=rn.checkable,cn=rn.selectable;switch(Ne.which){case Ye.Z.UP:{fe.offsetActiveKey(-1),Ne.preventDefault();break}case Ye.Z.DOWN:{fe.offsetActiveKey(1),Ne.preventDefault();break}}var Te=fe.getActiveItem();if(Te&&Te.data){var Ft=fe.getTreeNodeRequiredProps(),zt=Te.data.isLeaf===!1||!!(Te.data[Sn.children]||[]).length,wt=(0,De.F)((0,Ae.Z)((0,Ae.Z)({},(0,De.H8)(tt,Ft)),{},{data:Te.data,active:!0}));switch(Ne.which){case Ye.Z.LEFT:{zt&&ke.includes(tt)?fe.onNodeExpand({},wt):Te.parent&&fe.onActiveChange(Te.parent.key),Ne.preventDefault();break}case Ye.Z.RIGHT:{zt&&!ke.includes(tt)?fe.onNodeExpand({},wt):Te.children&&Te.children.length&&fe.onActiveChange(Te.children[0].key),Ne.preventDefault();break}case Ye.Z.ENTER:case Ye.Z.SPACE:{mn&&!wt.disabled&&wt.checkable!==!1&&!wt.disableCheckbox?fe.onNodeCheck({},wt,!ht.includes(tt)):!mn&&cn&&!wt.disabled&&wt.selectable!==!1&&fe.onNodeSelect({},wt);break}}}an==null||an(Ne)},fe.setUncontrolledState=function(Ne){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!fe.destroyed){var ke=!1,ht=!0,Sn={};Object.keys(Ne).forEach(function(rn){if(rn in fe.props){ht=!1;return}ke=!0,Sn[rn]=Ne[rn]}),ke&&(!Ct||ht)&&fe.setState((0,Ae.Z)((0,Ae.Z)({},Sn),tt))}},fe.scrollTo=function(Ne){fe.listRef.current.scrollTo(Ne)},fe}return(0,le.Z)(Ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var qe=this.props.activeKey;qe!==void 0&&qe!==this.state.activeKey&&(this.setState({activeKey:qe}),qe!==null&&this.scrollTo({key:qe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var qe,At=this.state,Oe=At.focused,Ne=At.flattenNodes,Ct=At.keyEntities,tt=At.draggingNodeKey,ke=At.activeKey,ht=At.dropLevelOffset,Sn=At.dropContainerKey,rn=At.dropTargetKey,an=At.dropPosition,mn=At.dragOverNodeKey,cn=At.indent,Te=this.props,Ft=Te.prefixCls,zt=Te.className,wt=Te.style,Rt=Te.showLine,un=Te.focusable,dn=Te.tabIndex,_n=dn===void 0?0:dn,Vn=Te.selectable,va=Te.showIcon,La=Te.icon,Na=Te.switcherIcon,rr=Te.draggable,Ka=Te.checkable,Ea=Te.checkStrictly,yr=Te.disabled,Xt=Te.motion,jn=Te.loadData,Qn=Te.filterTreeNode,Ia=Te.height,Ge=Te.itemHeight,Ot=Te.virtual,_t=Te.titleRender,Vt=Te.dropIndicatorRender,Wt=Te.onContextMenu,Nn=Te.onScroll,Bn=Te.direction,vt=Te.rootClassName,Bt=Te.rootStyle,pt=(0,se.Z)(this.props,{aria:!0,data:!0}),vn;return rr&&((0,Be.Z)(rr)==="object"?vn=rr:typeof rr=="function"?vn={nodeDraggable:rr}:vn={}),a.createElement(x.k.Provider,{value:{prefixCls:Ft,selectable:Vn,showIcon:va,icon:La,switcherIcon:Na,draggable:vn,draggingNodeKey:tt,checkable:Ka,checkStrictly:Ea,disabled:yr,keyEntities:Ct,dropLevelOffset:ht,dropContainerKey:Sn,dropTargetKey:rn,dropPosition:an,dragOverNodeKey:mn,indent:cn,direction:Bn,dropIndicatorRender:Vt,loadData:jn,filterTreeNode:Qn,titleRender:_t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},a.createElement("div",{role:"tree",className:Je()(Ft,zt,vt,(qe={},(0,de.Z)(qe,"".concat(Ft,"-show-line"),Rt),(0,de.Z)(qe,"".concat(Ft,"-focused"),Oe),(0,de.Z)(qe,"".concat(Ft,"-active-focused"),ke!==null),qe)),style:Bt},a.createElement(Yn,(0,b.Z)({ref:this.listRef,prefixCls:Ft,style:wt,data:Ne,disabled:yr,selectable:Vn,checkable:!!Ka,motion:Xt,dragging:tt!==null,height:Ia,itemHeight:Ge,virtual:Ot,focusable:un,focused:Oe,tabIndex:_n,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Wt,onScroll:Nn},this.getTreeNodeRequiredProps(),pt))))}}],[{key:"getDerivedStateFromProps",value:function(qe,At){var Oe=At.prevProps,Ne={prevProps:qe};function Ct(un){return!Oe&&un in qe||Oe&&Oe[un]!==qe[un]}var tt,ke=At.fieldNames;if(Ct("fieldNames")&&(ke=(0,De.w$)(qe.fieldNames),Ne.fieldNames=ke),Ct("treeData")?tt=qe.treeData:Ct("children")&&((0,E.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),tt=(0,De.zn)(qe.children)),tt){Ne.treeData=tt;var ht=(0,De.I8)(tt,{fieldNames:ke});Ne.keyEntities=(0,Ae.Z)((0,de.Z)({},ft,xt),ht.keyEntities)}var Sn=Ne.keyEntities||At.keyEntities;if(Ct("expandedKeys")||Oe&&Ct("autoExpandParent"))Ne.expandedKeys=qe.autoExpandParent||!Oe&&qe.defaultExpandParent?(0,Zt.r7)(qe.expandedKeys,Sn):qe.expandedKeys;else if(!Oe&&qe.defaultExpandAll){var rn=(0,Ae.Z)({},Sn);delete rn[ft],Ne.expandedKeys=Object.keys(rn).map(function(un){return rn[un].key})}else!Oe&&qe.defaultExpandedKeys&&(Ne.expandedKeys=qe.autoExpandParent||qe.defaultExpandParent?(0,Zt.r7)(qe.defaultExpandedKeys,Sn):qe.defaultExpandedKeys);if(Ne.expandedKeys||delete Ne.expandedKeys,tt||Ne.expandedKeys){var an=(0,De.oH)(tt||At.treeData,Ne.expandedKeys||At.expandedKeys,ke);Ne.flattenNodes=an}if(qe.selectable&&(Ct("selectedKeys")?Ne.selectedKeys=(0,Zt.BT)(qe.selectedKeys,qe):!Oe&&qe.defaultSelectedKeys&&(Ne.selectedKeys=(0,Zt.BT)(qe.defaultSelectedKeys,qe))),qe.checkable){var mn;if(Ct("checkedKeys")?mn=(0,Zt.E6)(qe.checkedKeys)||{}:!Oe&&qe.defaultCheckedKeys?mn=(0,Zt.E6)(qe.defaultCheckedKeys)||{}:tt&&(mn=(0,Zt.E6)(qe.checkedKeys)||{checkedKeys:At.checkedKeys,halfCheckedKeys:At.halfCheckedKeys}),mn){var cn=mn,Te=cn.checkedKeys,Ft=Te===void 0?[]:Te,zt=cn.halfCheckedKeys,wt=zt===void 0?[]:zt;if(!qe.checkStrictly){var Rt=(0,On.S)(Ft,!0,Sn);Ft=Rt.checkedKeys,wt=Rt.halfCheckedKeys}Ne.checkedKeys=Ft,Ne.halfCheckedKeys=wt}}return Ct("loadedKeys")&&(Ne.loadedKeys=qe.loadedKeys),Ne}}]),Ie}(a.Component);kt.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:y,allowDrop:function(){return!0},expandAction:!1},kt.TreeNode=be.Z;var mt=kt,It=mt},35654:function(Qt,Gt,ee){"use strict";ee.d(Gt,{BT:function(){return a},E6:function(){return z},L0:function(){return Ve},OM:function(){return E},_5:function(){return et},r7:function(){return ne},wA:function(){return Je},yx:function(){return We}});var b=ee(26407),de=ee(39559),Be=ee(48736),Ae=ee(59301),ze=ee(39417),Me=ee(67841),le=ee(71430),st=null;function et(re,ue){if(!re)return[];var ie=re.slice(),ve=ie.indexOf(ue);return ve>=0&&ie.splice(ve,1),ie}function Ve(re,ue){var ie=(re||[]).slice();return ie.indexOf(ue)===-1&&ie.push(ue),ie}function We(re){return re.split("-")}function Je(re,ue){var ie=[],ve=(0,Me.Z)(ue,re);function be(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];je.forEach(function(De){var He=De.key,he=De.children;ie.push(He),be(he)})}return be(ve.children),ie}function Ye(re){if(re.parent){var ue=We(re.pos);return Number(ue[ue.length-1])===re.parent.children.length-1}return!1}function se(re){var ue=We(re.pos);return Number(ue[ue.length-1])===0}function E(re,ue,ie,ve,be,je,De,He,he,Xe){var Ke,St=re.clientX,Le=re.clientY,ot=re.target.getBoundingClientRect(),lt=ot.top,gt=ot.height,ft=(Xe==="rtl"?-1:1)*(((be==null?void 0:be.x)||0)-St),ln=(ft-12)/ve,xt=(0,Me.Z)(He,ie.props.eventKey);if(Le<lt+gt/2){var nn=De.findIndex(function(It){return It.key===xt.key}),En=nn<=0?0:nn-1,$e=De[En].key;xt=(0,Me.Z)(He,$e)}var dt=xt.key,on=xt,Yn=xt.key,Zt=0,On=0;if(!he.includes(dt))for(var _e=0;_e<ln&&Ye(xt);_e+=1)xt=xt.parent,On+=1;var ct=ue.props.data,kt=xt.node,mt=!0;return se(xt)&&xt.level===0&&Le<lt+gt/2&&je({dragNode:ct,dropNode:kt,dropPosition:-1})&&xt.key===ie.props.eventKey?Zt=-1:(on.children||[]).length&&he.includes(Yn)?je({dragNode:ct,dropNode:kt,dropPosition:0})?Zt=0:mt=!1:On===0?ln>-1.5?je({dragNode:ct,dropNode:kt,dropPosition:1})?Zt=1:mt=!1:je({dragNode:ct,dropNode:kt,dropPosition:0})?Zt=0:je({dragNode:ct,dropNode:kt,dropPosition:1})?Zt=1:mt=!1:je({dragNode:ct,dropNode:kt,dropPosition:1})?Zt=1:mt=!1,{dropPosition:Zt,dropLevelOffset:On,dropTargetKey:xt.key,dropTargetPos:xt.pos,dragOverNodeKey:Yn,dropContainerKey:Zt===0?null:((Ke=xt.parent)===null||Ke===void 0?void 0:Ke.key)||null,dropAllowed:mt}}function a(re,ue){if(re){var ie=ue.multiple;return ie?re.slice():re.length?[re[0]]:re}}var x=function(ue){return ue};function y(re,ue){if(!re)return[];var ie=ue||{},ve=ie.processProps,be=ve===void 0?x:ve,je=Array.isArray(re)?re:[re];return je.map(function(De){var He=De.children,he=_objectWithoutProperties(De,st),Xe=y(He,ue);return React.createElement(TreeNode,_extends({key:he.key},be(he)),Xe)})}function z(re){if(!re)return null;var ue;if(Array.isArray(re))ue={checkedKeys:re,halfCheckedKeys:void 0};else if((0,de.Z)(re)==="object")ue={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,Be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ue}function ne(re,ue){var ie=new Set;function ve(be){if(!ie.has(be)){var je=(0,Me.Z)(ue,be);if(je){ie.add(be);var De=je.parent,He=je.node;He.disabled||De&&ve(De.key)}}}return(re||[]).forEach(function(be){ve(be)}),(0,b.Z)(ie)}},90782:function(Qt,Gt,ee){"use strict";ee.d(Gt,{S:function(){return le}});var b=ee(48736),de=ee(67841);function Be(st,et){var Ve=new Set;return st.forEach(function(We){et.has(We)||Ve.add(We)}),Ve}function Ae(st){var et=st||{},Ve=et.disabled,We=et.disableCheckbox,Je=et.checkable;return!!(Ve||We)||Je===!1}function ze(st,et,Ve,We){for(var Je=new Set(st),Ye=new Set,se=0;se<=Ve;se+=1){var E=et.get(se)||new Set;E.forEach(function(z){var ne=z.key,re=z.node,ue=z.children,ie=ue===void 0?[]:ue;Je.has(ne)&&!We(re)&&ie.filter(function(ve){return!We(ve.node)}).forEach(function(ve){Je.add(ve.key)})})}for(var a=new Set,x=Ve;x>=0;x-=1){var y=et.get(x)||new Set;y.forEach(function(z){var ne=z.parent,re=z.node;if(!(We(re)||!z.parent||a.has(z.parent.key))){if(We(z.parent.node)){a.add(ne.key);return}var ue=!0,ie=!1;(ne.children||[]).filter(function(ve){return!We(ve.node)}).forEach(function(ve){var be=ve.key,je=Je.has(be);ue&&!je&&(ue=!1),!ie&&(je||Ye.has(be))&&(ie=!0)}),ue&&Je.add(ne.key),ie&&Ye.add(ne.key),a.add(ne.key)}})}return{checkedKeys:Array.from(Je),halfCheckedKeys:Array.from(Be(Ye,Je))}}function Me(st,et,Ve,We,Je){for(var Ye=new Set(st),se=new Set(et),E=0;E<=We;E+=1){var a=Ve.get(E)||new Set;a.forEach(function(ne){var re=ne.key,ue=ne.node,ie=ne.children,ve=ie===void 0?[]:ie;!Ye.has(re)&&!se.has(re)&&!Je(ue)&&ve.filter(function(be){return!Je(be.node)}).forEach(function(be){Ye.delete(be.key)})})}se=new Set;for(var x=new Set,y=We;y>=0;y-=1){var z=Ve.get(y)||new Set;z.forEach(function(ne){var re=ne.parent,ue=ne.node;if(!(Je(ue)||!ne.parent||x.has(ne.parent.key))){if(Je(ne.parent.node)){x.add(re.key);return}var ie=!0,ve=!1;(re.children||[]).filter(function(be){return!Je(be.node)}).forEach(function(be){var je=be.key,De=Ye.has(je);ie&&!De&&(ie=!1),!ve&&(De||se.has(je))&&(ve=!0)}),ie||Ye.delete(re.key),ve&&se.add(re.key),x.add(re.key)}})}return{checkedKeys:Array.from(Ye),halfCheckedKeys:Array.from(Be(se,Ye))}}function le(st,et,Ve,We){var Je=[],Ye;We?Ye=We:Ye=Ae;var se=new Set(st.filter(function(y){var z=!!(0,de.Z)(Ve,y);return z||Je.push(y),z})),E=new Map,a=0;Object.keys(Ve).forEach(function(y){var z=Ve[y],ne=z.level,re=E.get(ne);re||(re=new Set,E.set(ne,re)),re.add(z),a=Math.max(a,ne)}),(0,b.ZP)(!Je.length,"Tree missing follow keys: ".concat(Je.slice(0,100).map(function(y){return"'".concat(y,"'")}).join(", ")));var x;return et===!0?x=ze(se,E,a,Ye):x=Me(se,et.halfCheckedKeys,E,a,Ye),x}},67841:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return b}});function b(de,Be){return de[Be]}},71430:function(Qt,Gt,ee){"use strict";ee.d(Gt,{F:function(){return ne},H8:function(){return z},I8:function(){return y},km:function(){return Je},oH:function(){return a},w$:function(){return Ye},zn:function(){return E}});var b=ee(39559),de=ee(26407),Be=ee(33708),Ae=ee(37061),ze=ee(11592),Me=ee(2738),le=ee(48736),st=ee(67841),et=["children"];function Ve(re,ue){return"".concat(re,"-").concat(ue)}function We(re){return re&&re.type&&re.type.isTreeNode}function Je(re,ue){return re!=null?re:ue}function Ye(re){var ue=re||{},ie=ue.title,ve=ue._title,be=ue.key,je=ue.children,De=ie||"title";return{title:De,_title:ve||[De],key:be||"key",children:je||"children"}}function se(re,ue){var ie=new Map;function ve(be){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(be||[]).forEach(function(De){var He=De[ue.key],he=De[ue.children];warning(He!=null,"Tree node must have a certain key: [".concat(je).concat(He,"]"));var Xe=String(He);warning(!ie.has(Xe)||He===null||He===void 0,"Same 'key' exist in the Tree: ".concat(Xe)),ie.set(Xe,!0),ve(he,"".concat(je).concat(Xe," > "))})}ve(re)}function E(re){function ue(ie){var ve=(0,ze.Z)(ie);return ve.map(function(be){if(!We(be))return(0,le.ZP)(!be,"Tree/TreeNode can only accept TreeNode as children."),null;var je=be.key,De=be.props,He=De.children,he=(0,Ae.Z)(De,et),Xe=(0,Be.Z)({key:je},he),Ke=ue(He);return Ke.length&&(Xe.children=Ke),Xe}).filter(function(be){return be})}return ue(re)}function a(re,ue,ie){var ve=Ye(ie),be=ve._title,je=ve.key,De=ve.children,He=new Set(ue===!0?[]:ue),he=[];function Xe(Ke){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ke.map(function(Le,ot){for(var lt=Ve(St?St.pos:"0",ot),gt=Je(Le[je],lt),ft,ln=0;ln<be.length;ln+=1){var xt=be[ln];if(Le[xt]!==void 0){ft=Le[xt];break}}var nn=(0,Be.Z)((0,Be.Z)({},(0,Me.Z)(Le,[].concat((0,de.Z)(be),[je,De]))),{},{title:ft,key:gt,parent:St,pos:lt,children:null,data:Le,isStart:[].concat((0,de.Z)(St?St.isStart:[]),[ot===0]),isEnd:[].concat((0,de.Z)(St?St.isEnd:[]),[ot===Ke.length-1])});return he.push(nn),ue===!0||He.has(gt)?nn.children=Xe(Le[De]||[],nn):nn.children=[],nn})}return Xe(re),he}function x(re,ue,ie){var ve={};(0,b.Z)(ie)==="object"?ve=ie:ve={externalGetKey:ie},ve=ve||{};var be=ve,je=be.childrenPropName,De=be.externalGetKey,He=be.fieldNames,he=Ye(He),Xe=he.key,Ke=he.children,St=je||Ke,Le;De?typeof De=="string"?Le=function(gt){return gt[De]}:typeof De=="function"&&(Le=function(gt){return De(gt)}):Le=function(gt,ft){return Je(gt[Xe],ft)};function ot(lt,gt,ft,ln){var xt=lt?lt[St]:re,nn=lt?Ve(ft.pos,gt):"0",En=lt?[].concat((0,de.Z)(ln),[lt]):[];if(lt){var $e=Le(lt,nn),dt={node:lt,index:gt,pos:nn,key:$e,parentPos:ft.node?ft.pos:null,level:ft.level+1,nodes:En};ue(dt)}xt&&xt.forEach(function(on,Yn){ot(on,Yn,{node:lt,pos:nn,level:ft?ft.level+1:-1},En)})}ot(null)}function y(re){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=ue.initWrapper,ve=ue.processEntity,be=ue.onProcessFinished,je=ue.externalGetKey,De=ue.childrenPropName,He=ue.fieldNames,he=arguments.length>2?arguments[2]:void 0,Xe=je||he,Ke={},St={},Le={posEntities:Ke,keyEntities:St};return ie&&(Le=ie(Le)||Le),x(re,function(ot){var lt=ot.node,gt=ot.index,ft=ot.pos,ln=ot.key,xt=ot.parentPos,nn=ot.level,En=ot.nodes,$e={node:lt,nodes:En,index:gt,key:ln,pos:ft,level:nn},dt=Je(ln,ft);Ke[ft]=$e,St[dt]=$e,$e.parent=Ke[xt],$e.parent&&($e.parent.children=$e.parent.children||[],$e.parent.children.push($e)),ve&&ve($e,Le)},{externalGetKey:Xe,childrenPropName:De,fieldNames:He}),be&&be(Le),Le}function z(re,ue){var ie=ue.expandedKeys,ve=ue.selectedKeys,be=ue.loadedKeys,je=ue.loadingKeys,De=ue.checkedKeys,He=ue.halfCheckedKeys,he=ue.dragOverNodeKey,Xe=ue.dropPosition,Ke=ue.keyEntities,St=(0,st.Z)(Ke,re),Le={eventKey:re,expanded:ie.indexOf(re)!==-1,selected:ve.indexOf(re)!==-1,loaded:be.indexOf(re)!==-1,loading:je.indexOf(re)!==-1,checked:De.indexOf(re)!==-1,halfChecked:He.indexOf(re)!==-1,pos:String(St?St.pos:""),dragOver:he===re&&Xe===0,dragOverGapTop:he===re&&Xe===-1,dragOverGapBottom:he===re&&Xe===1};return Le}function ne(re){var ue=re.data,ie=re.expanded,ve=re.selected,be=re.checked,je=re.loaded,De=re.loading,He=re.halfChecked,he=re.dragOver,Xe=re.dragOverGapTop,Ke=re.dragOverGapBottom,St=re.pos,Le=re.active,ot=re.eventKey,lt=(0,Be.Z)((0,Be.Z)({},ue),{},{expanded:ie,selected:ve,checked:be,loaded:je,loading:De,halfChecked:He,dragOver:he,dragOverGapTop:Xe,dragOverGapBottom:Ke,pos:St,active:Le,key:ot});return"props"in lt||Object.defineProperty(lt,"props",{get:function(){return(0,le.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),lt}},8224:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z:function(){return de}});var b=ee(4676);function de(Be,Ae,ze,Me){var le=b.unstable_batchedUpdates?function(et){b.unstable_batchedUpdates(ze,et)}:ze;return Be!=null&&Be.addEventListener&&Be.addEventListener(Ae,le,Me),{remove:function(){Be!=null&&Be.removeEventListener&&Be.removeEventListener(Ae,le,Me)}}}},55468:function(Qt,Gt,ee){"use strict";ee.d(Gt,{g1:function(){return We},os:function(){return Ye}});var b=/margin|padding|width|height|max|min|offset/,de={left:!0,top:!0},Be={cssFloat:1,styleFloat:1,float:1};function Ae(se){return se.nodeType===1?se.ownerDocument.defaultView.getComputedStyle(se,null):{}}function ze(se,E,a){if(E=E.toLowerCase(),a==="auto"){if(E==="height")return se.offsetHeight;if(E==="width")return se.offsetWidth}return E in de||(de[E]=b.test(E)),de[E]?parseFloat(a)||0:a}function Me(se,E){var a=arguments.length,x=Ae(se);return E=Be[E]?"cssFloat"in se.style?"cssFloat":"styleFloat":E,a===1?x:ze(se,E,x[E]||se.style[E])}function le(se,E,a){var x=arguments.length;if(E=Be[E]?"cssFloat"in se.style?"cssFloat":"styleFloat":E,x===3)return typeof a=="number"&&b.test(E)&&(a="".concat(a,"px")),se.style[E]=a,a;for(var y in E)E.hasOwnProperty(y)&&le(se,y,E[y]);return Ae(se)}function st(se){return se===document.body?document.documentElement.clientWidth:se.offsetWidth}function et(se){return se===document.body?window.innerHeight||document.documentElement.clientHeight:se.offsetHeight}function Ve(){var se=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),E=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:se,height:E}}function We(){var se=document.documentElement.clientWidth,E=window.innerHeight||document.documentElement.clientHeight;return{width:se,height:E}}function Je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Ye(se){var E=se.getBoundingClientRect(),a=document.documentElement;return{left:E.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:E.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},24514:function(Qt,Gt,ee){"use strict";ee.d(Gt,{G:function(){return Ae}});var b=ee(47273),de=function(Me){if((0,b.Z)()&&window.document.documentElement){var le=Array.isArray(Me)?Me:[Me],st=window.document.documentElement;return le.some(function(et){return et in st.style})}return!1},Be=function(Me,le){if(!de(Me))return!1;var st=document.createElement("div"),et=st.style[Me];return st.style[Me]=le,st.style[Me]!==et};function Ae(ze,Me){return!Array.isArray(ze)&&Me!==void 0?Be(ze,Me):de(ze)}},78113:function(Qt,Gt,ee){"use strict";ee.d(Gt,{Z5:function(){return iu},_l:function(){return jd},bK:function(){return qs}});var b=ee(59301),de=ee(2505);function Be(te,ae){te.prototype=Object.create(ae.prototype),te.prototype.constructor=te,(0,de.Z)(te,ae)}var Ae=ee(92413),ze=ee(59781),Me=b.createContext(null),le=null;function st(te){te()}var et=st,Ve=function(ae){return et=ae},We=function(){return et};function Je(){var te=We(),ae=null,oe=null;return{clear:function(){ae=null,oe=null},notify:function(){te(function(){for(var xe=ae;xe;)xe.callback(),xe=xe.next})},get:function(){for(var xe=[],Fe=ae;Fe;)xe.push(Fe),Fe=Fe.next;return xe},subscribe:function(xe){var Fe=!0,Re=oe={callback:xe,next:null,prev:oe};return Re.prev?Re.prev.next=Re:ae=Re,function(){!Fe||ae===null||(Fe=!1,Re.next?Re.next.prev=Re.prev:oe=Re.prev,Re.prev?Re.prev.next=Re.next:ae=Re.next)}}}}var Ye={notify:function(){},get:function(){return[]}};function se(te,ae){var oe,ge=Ye;function xe(Dt){return yt(),ge.subscribe(Dt)}function Fe(){ge.notify()}function Re(){Mt.onStateChange&&Mt.onStateChange()}function Ze(){return!!oe}function yt(){oe||(oe=ae?ae.addNestedSub(Re):te.subscribe(Re),ge=Je())}function Tt(){oe&&(oe(),oe=void 0,ge.clear(),ge=Ye)}var Mt={addNestedSub:xe,notifyNestedSubs:Fe,handleChangeWrapper:Re,isSubscribed:Ze,trySubscribe:yt,tryUnsubscribe:Tt,getListeners:function(){return ge}};return Mt}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(te){var ae=te.store,oe=te.context,ge=te.children,xe=(0,b.useMemo)(function(){var Ze=se(ae);return{store:ae,subscription:Ze}},[ae]),Fe=(0,b.useMemo)(function(){return ae.getState()},[ae]);E(function(){var Ze=xe.subscription;return Ze.onStateChange=Ze.notifyNestedSubs,Ze.trySubscribe(),Fe!==ae.getState()&&Ze.notifyNestedSubs(),function(){Ze.tryUnsubscribe(),Ze.onStateChange=null}},[xe,Fe]);var Re=oe||Me;return b.createElement(Re.Provider,{value:xe},ge)}var x=a,y=ee(96529),z=ee(94266),ne=ee.n(z),re=ee(53410),ue=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ie=["reactReduxForwardedRef"],ve=[],be=[null,null],je=function(ae){try{return JSON.stringify(ae)}catch(oe){return String(ae)}};function De(te,ae){var oe=te[1];return[ae.payload,oe+1]}function He(te,ae,oe){E(function(){return te.apply(void 0,ae)},oe)}function he(te,ae,oe,ge,xe,Fe,Re){te.current=ge,ae.current=xe,oe.current=!1,Fe.current&&(Fe.current=null,Re())}function Xe(te,ae,oe,ge,xe,Fe,Re,Ze,yt,Tt){if(te){var Mt=!1,Dt=null,Nt=function(){if(!Mt){var ir=ae.getState(),gr,Sr;try{gr=ge(ir,xe.current)}catch(Wr){Sr=Wr,Dt=Wr}Sr||(Dt=null),gr===Fe.current?Re.current||yt():(Fe.current=gr,Ze.current=gr,Re.current=!0,Tt({type:"STORE_UPDATED",payload:{error:Sr}}))}};oe.onStateChange=Nt,oe.trySubscribe(),Nt();var Jt=function(){if(Mt=!0,oe.tryUnsubscribe(),oe.onStateChange=null,Dt)throw Dt};return Jt}}var Ke=function(){return[null,0]};function St(te,ae){ae===void 0&&(ae={});var oe=ae,ge=oe.getDisplayName,xe=ge===void 0?function(ni){return"ConnectAdvanced("+ni+")"}:ge,Fe=oe.methodName,Re=Fe===void 0?"connectAdvanced":Fe,Ze=oe.renderCountProp,yt=Ze===void 0?void 0:Ze,Tt=oe.shouldHandleStateChanges,Mt=Tt===void 0?!0:Tt,Dt=oe.storeKey,Nt=Dt===void 0?"store":Dt,Jt=oe.withRef,Kn=Jt===void 0?!1:Jt,ir=oe.forwardRef,gr=ir===void 0?!1:ir,Sr=oe.context,Wr=Sr===void 0?Me:Sr,no=(0,y.Z)(oe,ue);if(0)var mo;var li=Wr;return function(Ni){var vl=Ni.displayName||Ni.name||"Component",Ti=xe(vl),pl=(0,Ae.Z)({},no,{getDisplayName:xe,methodName:Re,renderCountProp:yt,shouldHandleStateChanges:Mt,storeKey:Nt,displayName:Ti,wrappedComponentName:vl,WrappedComponent:Ni}),Ll=no.pure;function Tl(_l){return te(_l.dispatch,pl)}var Au=Ll?b.useMemo:function(_l){return _l()};function yu(_l){var ns=(0,b.useMemo)(function(){var bs=_l.reactReduxForwardedRef,zs=(0,y.Z)(_l,ie);return[_l.context,bs,zs]},[_l]),Iu=ns[0],Ps=ns[1],gs=ns[2],as=(0,b.useMemo)(function(){return Iu&&Iu.Consumer&&(0,re.isContextConsumer)(b.createElement(Iu.Consumer,null))?Iu:li},[Iu,li]),Ou=(0,b.useContext)(as),ms=!!_l.store&&!!_l.store.getState&&!!_l.store.dispatch,Fs=!!Ou&&!!Ou.store,Lu=ms?_l.store:Ou.store,ys=(0,b.useMemo)(function(){return Tl(Lu)},[Lu]),Bs=(0,b.useMemo)(function(){if(!Mt)return be;var bs=se(Lu,ms?null:Ou.subscription),zs=bs.notifyNestedSubs.bind(bs);return[bs,zs]},[Lu,ms,Ou]),Ss=Bs[0],ws=Bs[1],Ds=(0,b.useMemo)(function(){return ms?Ou:(0,Ae.Z)({},Ou,{subscription:Ss})},[ms,Ou,Ss]),ed=(0,b.useReducer)(De,ve,Ke),Ud=ed[0],As=Ud[0],Qd=ed[1];if(As&&As.error)throw As.error;var td=(0,b.useRef)(),Ts=(0,b.useRef)(gs),Ns=(0,b.useRef)(),nd=(0,b.useRef)(!1),_s=Au(function(){return Ns.current&&gs===Ts.current?Ns.current:ys(Lu.getState(),gs)},[Lu,As,gs]);He(he,[Ts,td,nd,gs,_s,Ns,ws]),He(Xe,[Mt,Lu,Ss,ys,Ts,td,nd,Ns,ws,Qd],[Lu,Ss,ys]);var Zs=(0,b.useMemo)(function(){return b.createElement(Ni,(0,Ae.Z)({},_s,{ref:Ps}))},[Ps,Ni,_s]),Yd=(0,b.useMemo)(function(){return Mt?b.createElement(as.Provider,{value:Ds},Zs):Zs},[as,Zs,Ds]);return Yd}var uu=Ll?b.memo(yu):yu;if(uu.WrappedComponent=Ni,uu.displayName=yu.displayName=Ti,gr){var Nu=b.forwardRef(function(ns,Iu){return b.createElement(uu,(0,Ae.Z)({},ns,{reactReduxForwardedRef:Iu}))});return Nu.displayName=Ti,Nu.WrappedComponent=Ni,ne()(Nu,Ni)}return ne()(uu,Ni)}}function Le(te,ae){return te===ae?te!==0||ae!==0||1/te===1/ae:te!==te&&ae!==ae}function ot(te,ae){if(Le(te,ae))return!0;if(typeof te!="object"||te===null||typeof ae!="object"||ae===null)return!1;var oe=Object.keys(te),ge=Object.keys(ae);if(oe.length!==ge.length)return!1;for(var xe=0;xe<oe.length;xe++)if(!Object.prototype.hasOwnProperty.call(ae,oe[xe])||!Le(te[oe[xe]],ae[oe[xe]]))return!1;return!0}function lt(te,ae){var oe={},ge=function(Re){var Ze=te[Re];typeof Ze=="function"&&(oe[Re]=function(){return ae(Ze.apply(void 0,arguments))})};for(var xe in te)ge(xe);return oe}function gt(te){return function(oe,ge){var xe=te(oe,ge);function Fe(){return xe}return Fe.dependsOnOwnProps=!1,Fe}}function ft(te){return te.dependsOnOwnProps!==null&&te.dependsOnOwnProps!==void 0?!!te.dependsOnOwnProps:te.length!==1}function ln(te,ae){return function(ge,xe){var Fe=xe.displayName,Re=function(yt,Tt){return Re.dependsOnOwnProps?Re.mapToProps(yt,Tt):Re.mapToProps(yt)};return Re.dependsOnOwnProps=!0,Re.mapToProps=function(yt,Tt){Re.mapToProps=te,Re.dependsOnOwnProps=ft(te);var Mt=Re(yt,Tt);return typeof Mt=="function"&&(Re.mapToProps=Mt,Re.dependsOnOwnProps=ft(Mt),Mt=Re(yt,Tt)),Mt},Re}}function xt(te){return typeof te=="function"?ln(te,"mapDispatchToProps"):void 0}function nn(te){return te?void 0:gt(function(ae){return{dispatch:ae}})}function En(te){return te&&typeof te=="object"?gt(function(ae){return lt(te,ae)}):void 0}var $e=[xt,nn,En];function dt(te){return typeof te=="function"?ln(te,"mapStateToProps"):void 0}function on(te){return te?void 0:gt(function(){return{}})}var Yn=[dt,on];function Zt(te,ae,oe){return(0,Ae.Z)({},oe,te,ae)}function On(te){return function(oe,ge){var xe=ge.displayName,Fe=ge.pure,Re=ge.areMergedPropsEqual,Ze=!1,yt;return function(Mt,Dt,Nt){var Jt=te(Mt,Dt,Nt);return Ze?(!Fe||!Re(Jt,yt))&&(yt=Jt):(Ze=!0,yt=Jt),yt}}}function _e(te){return typeof te=="function"?On(te):void 0}function ct(te){return te?void 0:function(){return Zt}}var kt=[_e,ct],mt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function It(te,ae,oe,ge){return function(Fe,Re){return oe(te(Fe,Re),ae(ge,Re),Re)}}function ut(te,ae,oe,ge,xe){var Fe=xe.areStatesEqual,Re=xe.areOwnPropsEqual,Ze=xe.areStatePropsEqual,yt=!1,Tt,Mt,Dt,Nt,Jt;function Kn(no,mo){return Tt=no,Mt=mo,Dt=te(Tt,Mt),Nt=ae(ge,Mt),Jt=oe(Dt,Nt,Mt),yt=!0,Jt}function ir(){return Dt=te(Tt,Mt),ae.dependsOnOwnProps&&(Nt=ae(ge,Mt)),Jt=oe(Dt,Nt,Mt),Jt}function gr(){return te.dependsOnOwnProps&&(Dt=te(Tt,Mt)),ae.dependsOnOwnProps&&(Nt=ae(ge,Mt)),Jt=oe(Dt,Nt,Mt),Jt}function Sr(){var no=te(Tt,Mt),mo=!Ze(no,Dt);return Dt=no,mo&&(Jt=oe(Dt,Nt,Mt)),Jt}function Wr(no,mo){var li=!Re(mo,Mt),ni=!Fe(no,Tt,mo,Mt);return Tt=no,Mt=mo,li&&ni?ir():li?gr():ni?Sr():Jt}return function(mo,li){return yt?Wr(mo,li):Kn(mo,li)}}function at(te,ae){var oe=ae.initMapStateToProps,ge=ae.initMapDispatchToProps,xe=ae.initMergeProps,Fe=(0,y.Z)(ae,mt),Re=oe(te,Fe),Ze=ge(te,Fe),yt=xe(te,Fe),Tt=Fe.pure?ut:It;return Tt(Re,Ze,yt,te,Fe)}var Ie=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function fe(te,ae,oe){for(var ge=ae.length-1;ge>=0;ge--){var xe=ae[ge](te);if(xe)return xe}return function(Fe,Re){throw new Error("Invalid value of type "+typeof te+" for "+oe+" argument when connecting component "+Re.wrappedComponentName+".")}}function qe(te,ae){return te===ae}function At(te){var ae=te===void 0?{}:te,oe=ae.connectHOC,ge=oe===void 0?St:oe,xe=ae.mapStateToPropsFactories,Fe=xe===void 0?Yn:xe,Re=ae.mapDispatchToPropsFactories,Ze=Re===void 0?$e:Re,yt=ae.mergePropsFactories,Tt=yt===void 0?kt:yt,Mt=ae.selectorFactory,Dt=Mt===void 0?at:Mt;return function(Jt,Kn,ir,gr){gr===void 0&&(gr={});var Sr=gr,Wr=Sr.pure,no=Wr===void 0?!0:Wr,mo=Sr.areStatesEqual,li=mo===void 0?qe:mo,ni=Sr.areOwnPropsEqual,Ni=ni===void 0?ot:ni,vl=Sr.areStatePropsEqual,Ti=vl===void 0?ot:vl,pl=Sr.areMergedPropsEqual,Ll=pl===void 0?ot:pl,Tl=(0,y.Z)(Sr,Ie),Au=fe(Jt,Fe,"mapStateToProps"),yu=fe(Kn,Ze,"mapDispatchToProps"),uu=fe(ir,Tt,"mergeProps");return ge(Dt,(0,Ae.Z)({methodName:"connect",getDisplayName:function(_l){return"Connect("+_l+")"},shouldHandleStateChanges:!!Jt,initMapStateToProps:Au,initMapDispatchToProps:yu,initMergeProps:uu,pure:no,areStatesEqual:li,areOwnPropsEqual:Ni,areStatePropsEqual:Ti,areMergedPropsEqual:Ll},Tl))}}var Oe=At();function Ne(){var te=useContext(ReactReduxContext);return te}function Ct(te){te===void 0&&(te=ReactReduxContext);var ae=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(){var ge=ae(),xe=ge.store;return xe}}var tt=null;function ke(te){te===void 0&&(te=ReactReduxContext);var ae=te===ReactReduxContext?useDefaultStore:createStoreHook(te);return function(){var ge=ae();return ge.dispatch}}var ht=null,Sn=function(ae,oe){return ae===oe};function rn(te,ae,oe,ge){var xe=useReducer(function(Kn){return Kn+1},0),Fe=xe[1],Re=useMemo(function(){return createSubscription(oe,ge)},[oe,ge]),Ze=useRef(),yt=useRef(),Tt=useRef(),Mt=useRef(),Dt=oe.getState(),Nt;try{if(te!==yt.current||Dt!==Tt.current||Ze.current){var Jt=te(Dt);Mt.current===void 0||!ae(Jt,Mt.current)?Nt=Jt:Nt=Mt.current}else Nt=Mt.current}catch(Kn){throw Ze.current&&(Kn.message+=`
The error may be correlated with this previous error:
`+Ze.current.stack+`
`),Kn}return useIsomorphicLayoutEffect(function(){yt.current=te,Tt.current=Dt,Mt.current=Nt,Ze.current=void 0}),useIsomorphicLayoutEffect(function(){function Kn(){try{var ir=oe.getState();if(ir===Tt.current)return;var gr=yt.current(ir);if(ae(gr,Mt.current))return;Mt.current=gr,Tt.current=ir}catch(Sr){Ze.current=Sr}Fe()}return Re.onStateChange=Kn,Re.trySubscribe(),Kn(),function(){return Re.tryUnsubscribe()}},[oe,Re]),Nt}function an(te){te===void 0&&(te=ReactReduxContext);var ae=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(ge,xe){xe===void 0&&(xe=Sn);var Fe=ae(),Re=Fe.store,Ze=Fe.subscription,yt=rn(ge,xe,Re,Ze);return useDebugValue(yt),yt}}var mn=null,cn=ee(4676);Ve(cn.unstable_batchedUpdates);function Te(te,ae){if(te.length!==ae.length)return!1;for(var oe=0;oe<te.length;oe++)if(te[oe]!==ae[oe])return!1;return!0}function Ft(te,ae){var oe=(0,b.useState)(function(){return{inputs:ae,result:te()}})[0],ge=(0,b.useRef)(!0),xe=(0,b.useRef)(oe),Fe=ge.current||!!(ae&&xe.current.inputs&&Te(ae,xe.current.inputs)),Re=Fe?xe.current:{inputs:ae,result:te()};return(0,b.useEffect)(function(){ge.current=!1,xe.current=Re},[Re]),Re.result}function zt(te,ae){return Ft(function(){return te},ae)}var wt=Ft,Rt=zt,un=!0,dn="Invariant failed";function _n(te,ae){if(!te){if(un)throw new Error(dn);var oe=typeof ae=="function"?ae():ae,ge=oe?"".concat(dn,": ").concat(oe):dn;throw new Error(ge)}}var Vn=function(ae){var oe=ae.top,ge=ae.right,xe=ae.bottom,Fe=ae.left,Re=ge-Fe,Ze=xe-oe,yt={top:oe,right:ge,bottom:xe,left:Fe,width:Re,height:Ze,x:Fe,y:oe,center:{x:(ge+Fe)/2,y:(xe+oe)/2}};return yt},va=function(ae,oe){return{top:ae.top-oe.top,left:ae.left-oe.left,bottom:ae.bottom+oe.bottom,right:ae.right+oe.right}},La=function(ae,oe){return{top:ae.top+oe.top,left:ae.left+oe.left,bottom:ae.bottom-oe.bottom,right:ae.right-oe.right}},Na=function(ae,oe){return{top:ae.top+oe.y,left:ae.left+oe.x,bottom:ae.bottom+oe.y,right:ae.right+oe.x}},rr={top:0,right:0,bottom:0,left:0},Ka=function(ae){var oe=ae.borderBox,ge=ae.margin,xe=ge===void 0?rr:ge,Fe=ae.border,Re=Fe===void 0?rr:Fe,Ze=ae.padding,yt=Ze===void 0?rr:Ze,Tt=Vn(va(oe,xe)),Mt=Vn(La(oe,Re)),Dt=Vn(La(Mt,yt));return{marginBox:Tt,borderBox:Vn(oe),paddingBox:Mt,contentBox:Dt,margin:xe,border:Re,padding:yt}},Ea=function(ae){var oe=ae.slice(0,-2),ge=ae.slice(-2);if(ge!=="px")return 0;var xe=Number(oe);return isNaN(xe)&&_n(!1),xe},yr=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Xt=function(ae,oe){var ge=ae.borderBox,xe=ae.border,Fe=ae.margin,Re=ae.padding,Ze=Na(ge,oe);return Ka({borderBox:Ze,border:xe,margin:Fe,padding:Re})},jn=function(ae,oe){return oe===void 0&&(oe=yr()),Xt(ae,oe)},Qn=function(ae,oe){var ge={top:Ea(oe.marginTop),right:Ea(oe.marginRight),bottom:Ea(oe.marginBottom),left:Ea(oe.marginLeft)},xe={top:Ea(oe.paddingTop),right:Ea(oe.paddingRight),bottom:Ea(oe.paddingBottom),left:Ea(oe.paddingLeft)},Fe={top:Ea(oe.borderTopWidth),right:Ea(oe.borderRightWidth),bottom:Ea(oe.borderBottomWidth),left:Ea(oe.borderLeftWidth)};return Ka({borderBox:ae,margin:ge,padding:xe,border:Fe})},Ia=function(ae){var oe=ae.getBoundingClientRect(),ge=window.getComputedStyle(ae);return Qn(oe,ge)},Ge=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function Ot(te,ae){return!!(te===ae||Ge(te)&&Ge(ae))}function _t(te,ae){if(te.length!==ae.length)return!1;for(var oe=0;oe<te.length;oe++)if(!Ot(te[oe],ae[oe]))return!1;return!0}function Vt(te,ae){ae===void 0&&(ae=_t);var oe,ge=[],xe,Fe=!1;function Re(){for(var Ze=[],yt=0;yt<arguments.length;yt++)Ze[yt]=arguments[yt];return Fe&&oe===this&&ae(Ze,ge)||(xe=te.apply(this,Ze),Fe=!0,oe=this,ge=Ze),xe}return Re}var Wt=Vt,Nn=function(ae){var oe=[],ge=null,xe=function(){for(var Re=arguments.length,Ze=new Array(Re),yt=0;yt<Re;yt++)Ze[yt]=arguments[yt];oe=Ze,!ge&&(ge=requestAnimationFrame(function(){ge=null,ae.apply(void 0,oe)}))};return xe.cancel=function(){ge&&(cancelAnimationFrame(ge),ge=null)},xe},Bn=Nn,vt=!0,Bt=/[ \t]{2,}/g,pt=/^[ \t]*/gm,vn=function(ae){return ae.replace(Bt," ").replace(pt,"").trim()},Hn=function(ae){return vn(`
%creact-beautiful-dnd
%c`+vn(ae)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},In=function(ae){return[Hn(ae),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Ta="__react-beautiful-dnd-disable-dev-warnings";function Pa(te,ae){var oe;vt||typeof window!="undefined"&&window[Ta]||(oe=console)[te].apply(oe,In(ae))}var Rn=Pa.bind(null,"warn"),ya=Pa.bind(null,"error");function ba(){}function wn(te,ae){return(0,Ae.Z)({},te,{},ae)}function mr(te,ae,oe){var ge=ae.map(function(xe){var Fe=wn(oe,xe.options);return te.addEventListener(xe.eventName,xe.fn,Fe),function(){te.removeEventListener(xe.eventName,xe.fn,Fe)}});return function(){ge.forEach(function(Fe){Fe()})}}var Er=!0,Jr="Invariant failed";function pr(te){this.message=te}pr.prototype.toString=function(){return this.message};function Qe(te,ae){if(!te)throw Er?new pr(Jr):new pr(Jr+": "+(ae||""))}var Pn=function(te){Be(ae,te);function ae(){for(var ge,xe=arguments.length,Fe=new Array(xe),Re=0;Re<xe;Re++)Fe[Re]=arguments[Re];return ge=te.call.apply(te,[this].concat(Fe))||this,ge.callbacks=null,ge.unbind=ba,ge.onWindowError=function(Ze){var yt=ge.getCallbacks();yt.isDragging()&&yt.tryAbort();var Tt=Ze.error;Tt instanceof pr&&Ze.preventDefault()},ge.getCallbacks=function(){if(!ge.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ge.callbacks},ge.setCallbacks=function(Ze){ge.callbacks=Ze},ge}var oe=ae.prototype;return oe.componentDidMount=function(){this.unbind=mr(window,[{eventName:"error",fn:this.onWindowError}])},oe.componentWillUnmount=function(){this.unbind()},oe.componentDidCatch=function(xe){if(xe instanceof pr){this.setState({});return}throw xe},oe.render=function(){return this.props.children(this.setCallbacks)},ae}(b.Component),qt=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,Dn=function(ae){return ae+1},Gn=function(ae){return`
You have lifted an item in position `+Dn(ae.source.index)+`
`},ra=function(ae,oe){var ge=ae.droppableId===oe.droppableId,xe=Dn(ae.index),Fe=Dn(oe.index);return ge?`
You have moved the item from position `+xe+`
to position `+Fe+`
`:`
You have moved the item from position `+xe+`
in list `+ae.droppableId+`
to list `+oe.droppableId+`
in position `+Fe+`
`},Xn=function(ae,oe,ge){var xe=oe.droppableId===ge.droppableId;return xe?`
The item `+ae+`
has been combined with `+ge.draggableId:`
The item `+ae+`
in list `+oe.droppableId+`
has been combined with `+ge.draggableId+`
in list `+ge.droppableId+`
`},$n=function(ae){var oe=ae.destination;if(oe)return ra(ae.source,oe);var ge=ae.combine;return ge?Xn(ae.draggableId,ae.source,ge):"You are over an area that cannot be dropped on"},sr=function(ae){return`
The item has returned to its starting position
of `+Dn(ae.index)+`
`},sa=function(ae){if(ae.reason==="CANCEL")return`
Movement cancelled.
`+sr(ae.source)+`
`;var oe=ae.destination,ge=ae.combine;return oe?`
You have dropped the item.
`+ra(ae.source,oe)+`
`:ge?`
You have dropped the item.
`+Xn(ae.draggableId,ae.source,ge)+`
`:`
The item has been dropped while not over a drop area.
`+sr(ae.source)+`
`},Cn={dragHandleUsageInstructions:qt,onDragStart:Gn,onDragUpdate:$n,onDragEnd:sa},dr={x:0,y:0},Nr=function(ae,oe){return{x:ae.x+oe.x,y:ae.y+oe.y}},Zr=function(ae,oe){return{x:ae.x-oe.x,y:ae.y-oe.y}},Ir=function(ae,oe){return ae.x===oe.x&&ae.y===oe.y},ha=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},za=function(ae,oe,ge){var xe;return ge===void 0&&(ge=0),xe={},xe[ae]=oe,xe[ae==="x"?"y":"x"]=ge,xe},or=function(ae,oe){return Math.sqrt(Math.pow(oe.x-ae.x,2)+Math.pow(oe.y-ae.y,2))},Fa=function(ae,oe){return Math.min.apply(Math,oe.map(function(ge){return or(ae,ge)}))},xr=function(ae){return function(oe){return{x:ae(oe.x),y:ae(oe.y)}}},qr=function(te,ae){var oe=Vn({top:Math.max(ae.top,te.top),right:Math.min(ae.right,te.right),bottom:Math.min(ae.bottom,te.bottom),left:Math.max(ae.left,te.left)});return oe.width<=0||oe.height<=0?null:oe},Fr=function(ae,oe){return{top:ae.top+oe.y,left:ae.left+oe.x,bottom:ae.bottom+oe.y,right:ae.right+oe.x}},io=function(ae){return[{x:ae.left,y:ae.top},{x:ae.right,y:ae.top},{x:ae.left,y:ae.bottom},{x:ae.right,y:ae.bottom}]},lr={top:0,right:0,bottom:0,left:0},ko=function(ae,oe){return oe?Fr(ae,oe.scroll.diff.displacement):ae},ui=function(ae,oe,ge){if(ge&&ge.increasedBy){var xe;return(0,Ae.Z)({},ae,(xe={},xe[oe.end]=ae[oe.end]+ge.increasedBy[oe.line],xe))}return ae},pi=function(ae,oe){return oe&&oe.shouldClipSubject?qr(oe.pageMarginBox,ae):Vn(ae)},yo=function(te){var ae=te.page,oe=te.withPlaceholder,ge=te.axis,xe=te.frame,Fe=ko(ae.marginBox,xe),Re=ui(Fe,ge,oe),Ze=pi(Re,xe);return{page:ae,withPlaceholder:oe,active:Ze}},Eo=function(te,ae){te.frame||Qe(!1);var oe=te.frame,ge=Zr(ae,oe.scroll.initial),xe=ha(ge),Fe=(0,Ae.Z)({},oe,{scroll:{initial:oe.scroll.initial,current:ae,diff:{value:ge,displacement:xe},max:oe.scroll.max}}),Re=yo({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:Fe}),Ze=(0,Ae.Z)({},te,{frame:Fe,subject:Re});return Ze};function Yo(te){return Number.isInteger?Number.isInteger(te):typeof te=="number"&&isFinite(te)&&Math.floor(te)===te}function Fo(te){return Object.values?Object.values(te):Object.keys(te).map(function(ae){return te[ae]})}function Ao(te,ae){if(te.findIndex)return te.findIndex(ae);for(var oe=0;oe<te.length;oe++)if(ae(te[oe]))return oe;return-1}function eo(te,ae){if(te.find)return te.find(ae);var oe=Ao(te,ae);if(oe!==-1)return te[oe]}function Pr(te){return Array.prototype.slice.call(te)}var To=Wt(function(te){return te.reduce(function(ae,oe){return ae[oe.descriptor.id]=oe,ae},{})}),vi=Wt(function(te){return te.reduce(function(ae,oe){return ae[oe.descriptor.id]=oe,ae},{})}),Oo=Wt(function(te){return Fo(te)}),br=Wt(function(te){return Fo(te)}),ai=Wt(function(te,ae){var oe=br(ae).filter(function(ge){return te===ge.descriptor.droppableId}).sort(function(ge,xe){return ge.descriptor.index-xe.descriptor.index});return oe});function zr(te){return te.at&&te.at.type==="REORDER"?te.at.destination:null}function Lo(te){return te.at&&te.at.type==="COMBINE"?te.at.combine:null}var ao=Wt(function(te,ae){return ae.filter(function(oe){return oe.descriptor.id!==te.descriptor.id})}),si=function(te){var ae=te.isMovingForward,oe=te.draggable,ge=te.destination,xe=te.insideDestination,Fe=te.previousImpact;if(!ge.isCombineEnabled)return null;var Re=zr(Fe);if(!Re)return null;function Ze(ir){var gr={type:"COMBINE",combine:{draggableId:ir,droppableId:ge.descriptor.id}};return(0,Ae.Z)({},Fe,{at:gr})}var yt=Fe.displaced.all,Tt=yt.length?yt[0]:null;if(ae)return Tt?Ze(Tt):null;var Mt=ao(oe,xe);if(!Tt){if(!Mt.length)return null;var Dt=Mt[Mt.length-1];return Ze(Dt.descriptor.id)}var Nt=Ao(Mt,function(ir){return ir.descriptor.id===Tt});Nt===-1&&Qe(!1);var Jt=Nt-1;if(Jt<0)return null;var Kn=Mt[Jt];return Ze(Kn.descriptor.id)},hi=function(te,ae){return te.descriptor.droppableId===ae.descriptor.id},Qi={point:dr,value:0},tl={invisible:{},visible:{},all:[]},nl={displaced:tl,displacedBy:Qi,at:null},Uo=function(te,ae){return function(oe){return te<=oe&&oe<=ae}},Bi=function(te){var ae=Uo(te.top,te.bottom),oe=Uo(te.left,te.right);return function(ge){var xe=ae(ge.top)&&ae(ge.bottom)&&oe(ge.left)&&oe(ge.right);if(xe)return!0;var Fe=ae(ge.top)||ae(ge.bottom),Re=oe(ge.left)||oe(ge.right),Ze=Fe&&Re;if(Ze)return!0;var yt=ge.top<te.top&&ge.bottom>te.bottom,Tt=ge.left<te.left&&ge.right>te.right,Mt=yt&&Tt;if(Mt)return!0;var Dt=yt&&Re||Tt&&Fe;return Dt}},gl=function(te){var ae=Uo(te.top,te.bottom),oe=Uo(te.left,te.right);return function(ge){var xe=ae(ge.top)&&ae(ge.bottom)&&oe(ge.left)&&oe(ge.right);return xe}},ji={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},cl={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Cl=function(te){return function(ae){var oe=Uo(ae.top,ae.bottom),ge=Uo(ae.left,ae.right);return function(xe){return te===ji?oe(xe.top)&&oe(xe.bottom):ge(xe.left)&&ge(xe.right)}}},Tr=function(ae,oe){var ge=oe.frame?oe.frame.scroll.diff.displacement:dr;return Fr(ae,ge)},Va=function(ae,oe,ge){return oe.subject.active?ge(oe.subject.active)(ae):!1},ja=function(ae,oe,ge){return ge(oe)(ae)},Ya=function(ae){var oe=ae.target,ge=ae.destination,xe=ae.viewport,Fe=ae.withDroppableDisplacement,Re=ae.isVisibleThroughFrameFn,Ze=Fe?Tr(oe,ge):oe;return Va(Ze,ge,Re)&&ja(Ze,xe,Re)},so=function(ae){return Ya((0,Ae.Z)({},ae,{isVisibleThroughFrameFn:Bi}))},Zo=function(ae){return Ya((0,Ae.Z)({},ae,{isVisibleThroughFrameFn:gl}))},we=function(ae){return Ya((0,Ae.Z)({},ae,{isVisibleThroughFrameFn:Cl(ae.destination.axis)}))},fn=function(ae,oe,ge){if(typeof ge=="boolean")return ge;if(!oe)return!0;var xe=oe.invisible,Fe=oe.visible;if(xe[ae])return!1;var Re=Fe[ae];return Re?Re.shouldAnimate:!0};function Wn(te,ae){var oe=te.page.marginBox,ge={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return Vn(va(oe,ge))}function fa(te){var ae=te.afterDragging,oe=te.destination,ge=te.displacedBy,xe=te.viewport,Fe=te.forceShouldAnimate,Re=te.last;return ae.reduce(function(yt,Tt){var Mt=Wn(Tt,ge),Dt=Tt.descriptor.id;yt.all.push(Dt);var Nt=so({target:Mt,destination:oe,viewport:xe,withDroppableDisplacement:!0});if(!Nt)return yt.invisible[Tt.descriptor.id]=!0,yt;var Jt=fn(Dt,Re,Fe),Kn={draggableId:Dt,shouldAnimate:Jt};return yt.visible[Dt]=Kn,yt},{all:[],visible:{},invisible:{}})}function yn(te,ae){if(!te.length)return 0;var oe=te[te.length-1].descriptor.index;return ae.inHomeList?oe:oe+1}function wa(te){var ae=te.insideDestination,oe=te.inHomeList,ge=te.displacedBy,xe=te.destination,Fe=yn(ae,{inHomeList:oe});return{displaced:tl,displacedBy:ge,at:{type:"REORDER",destination:{droppableId:xe.descriptor.id,index:Fe}}}}function na(te){var ae=te.draggable,oe=te.insideDestination,ge=te.destination,xe=te.viewport,Fe=te.displacedBy,Re=te.last,Ze=te.index,yt=te.forceShouldAnimate,Tt=hi(ae,ge);if(Ze==null)return wa({insideDestination:oe,inHomeList:Tt,displacedBy:Fe,destination:ge});var Mt=eo(oe,function(ir){return ir.descriptor.index===Ze});if(!Mt)return wa({insideDestination:oe,inHomeList:Tt,displacedBy:Fe,destination:ge});var Dt=ao(ae,oe),Nt=oe.indexOf(Mt),Jt=Dt.slice(Nt),Kn=fa({afterDragging:Jt,destination:ge,displacedBy:Fe,last:Re,viewport:xe.frame,forceShouldAnimate:yt});return{displaced:Kn,displacedBy:Fe,at:{type:"REORDER",destination:{droppableId:ge.descriptor.id,index:Ze}}}}function Un(te,ae){return!!ae.effected[te]}var pa=function(te){var ae=te.isMovingForward,oe=te.destination,ge=te.draggables,xe=te.combine,Fe=te.afterCritical;if(!oe.isCombineEnabled)return null;var Re=xe.draggableId,Ze=ge[Re],yt=Ze.descriptor.index,Tt=Un(Re,Fe);return Tt?ae?yt:yt-1:ae?yt+1:yt},Sa=function(te){var ae=te.isMovingForward,oe=te.isInHomeList,ge=te.insideDestination,xe=te.location;if(!ge.length)return null;var Fe=xe.index,Re=ae?Fe+1:Fe-1,Ze=ge[0].descriptor.index,yt=ge[ge.length-1].descriptor.index,Tt=oe?yt:yt+1;return Re<Ze||Re>Tt?null:Re},Wa=function(te){var ae=te.isMovingForward,oe=te.isInHomeList,ge=te.draggable,xe=te.draggables,Fe=te.destination,Re=te.insideDestination,Ze=te.previousImpact,yt=te.viewport,Tt=te.afterCritical,Mt=Ze.at;if(Mt||Qe(!1),Mt.type==="REORDER"){var Dt=Sa({isMovingForward:ae,isInHomeList:oe,location:Mt.destination,insideDestination:Re});return Dt==null?null:na({draggable:ge,insideDestination:Re,destination:Fe,viewport:yt,last:Ze.displaced,displacedBy:Ze.displacedBy,index:Dt})}var Nt=pa({isMovingForward:ae,destination:Fe,displaced:Ze.displaced,draggables:xe,combine:Mt.combine,afterCritical:Tt});return Nt==null?null:na({draggable:ge,insideDestination:Re,destination:Fe,viewport:yt,last:Ze.displaced,displacedBy:Ze.displacedBy,index:Nt})},ur=function(te){var ae=te.displaced,oe=te.afterCritical,ge=te.combineWith,xe=te.displacedBy,Fe=!!(ae.visible[ge]||ae.invisible[ge]);return Un(ge,oe)?Fe?dr:ha(xe.point):Fe?xe.point:dr},$a=function(te){var ae=te.afterCritical,oe=te.impact,ge=te.draggables,xe=Lo(oe);xe||Qe(!1);var Fe=xe.draggableId,Re=ge[Fe].page.borderBox.center,Ze=ur({displaced:oe.displaced,afterCritical:ae,combineWith:Fe,displacedBy:oe.displacedBy});return Nr(Re,Ze)},_o=function(ae,oe){return oe.margin[ae.start]+oe.borderBox[ae.size]/2},co=function(ae,oe){return oe.margin[ae.end]+oe.borderBox[ae.size]/2},Vo=function(ae,oe,ge){return oe[ae.crossAxisStart]+ge.margin[ae.crossAxisStart]+ge.borderBox[ae.crossAxisSize]/2},ci=function(ae){var oe=ae.axis,ge=ae.moveRelativeTo,xe=ae.isMoving;return za(oe.line,ge.marginBox[oe.end]+_o(oe,xe),Vo(oe,ge.marginBox,xe))},Gi=function(ae){var oe=ae.axis,ge=ae.moveRelativeTo,xe=ae.isMoving;return za(oe.line,ge.marginBox[oe.start]-co(oe,xe),Vo(oe,ge.marginBox,xe))},al=function(ae){var oe=ae.axis,ge=ae.moveInto,xe=ae.isMoving;return za(oe.line,ge.contentBox[oe.start]+_o(oe,xe),Vo(oe,ge.contentBox,xe))},Zl=function(te){var ae=te.impact,oe=te.draggable,ge=te.draggables,xe=te.droppable,Fe=te.afterCritical,Re=ai(xe.descriptor.id,ge),Ze=oe.page,yt=xe.axis;if(!Re.length)return al({axis:yt,moveInto:xe.page,isMoving:Ze});var Tt=ae.displaced,Mt=ae.displacedBy,Dt=Tt.all[0];if(Dt){var Nt=ge[Dt];if(Un(Dt,Fe))return Gi({axis:yt,moveRelativeTo:Nt.page,isMoving:Ze});var Jt=Xt(Nt.page,Mt.point);return Gi({axis:yt,moveRelativeTo:Jt,isMoving:Ze})}var Kn=Re[Re.length-1];if(Kn.descriptor.id===oe.descriptor.id)return Ze.borderBox.center;if(Un(Kn.descriptor.id,Fe)){var ir=Xt(Kn.page,ha(Fe.displacedBy.point));return ci({axis:yt,moveRelativeTo:ir,isMoving:Ze})}return ci({axis:yt,moveRelativeTo:Kn.page,isMoving:Ze})},Al=function(te,ae){var oe=te.frame;return oe?Nr(ae,oe.scroll.diff.displacement):ae},ho=function(ae){var oe=ae.impact,ge=ae.draggable,xe=ae.droppable,Fe=ae.draggables,Re=ae.afterCritical,Ze=ge.page.borderBox.center,yt=oe.at;return!xe||!yt?Ze:yt.type==="REORDER"?Zl({impact:oe,draggable:ge,draggables:Fe,droppable:xe,afterCritical:Re}):$a({impact:oe,draggables:Fe,afterCritical:Re})},Pl=function(te){var ae=ho(te),oe=te.droppable,ge=oe?Al(oe,ae):ae;return ge},eu=function(te,ae){var oe=Zr(ae,te.scroll.initial),ge=ha(oe),xe=Vn({top:ae.y,bottom:ae.y+te.frame.height,left:ae.x,right:ae.x+te.frame.width}),Fe={frame:xe,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ae,diff:{value:oe,displacement:ge}}};return Fe};function Nl(te,ae){return te.map(function(oe){return ae[oe]})}function xl(te,ae){for(var oe=0;oe<ae.length;oe++){var ge=ae[oe].visible[te];if(ge)return ge}return null}var tu=function(te){var ae=te.impact,oe=te.viewport,ge=te.destination,xe=te.draggables,Fe=te.maxScrollChange,Re=eu(oe,Nr(oe.scroll.current,Fe)),Ze=ge.frame?Eo(ge,Nr(ge.frame.scroll.current,Fe)):ge,yt=ae.displaced,Tt=fa({afterDragging:Nl(yt.all,xe),destination:ge,displacedBy:ae.displacedBy,viewport:Re.frame,last:yt,forceShouldAnimate:!1}),Mt=fa({afterDragging:Nl(yt.all,xe),destination:Ze,displacedBy:ae.displacedBy,viewport:oe.frame,last:yt,forceShouldAnimate:!1}),Dt={},Nt={},Jt=[yt,Tt,Mt];yt.all.forEach(function(ir){var gr=xl(ir,Jt);if(gr){Nt[ir]=gr;return}Dt[ir]=!0});var Kn=(0,Ae.Z)({},ae,{displaced:{all:yt.all,invisible:Dt,visible:Nt}});return Kn},Qu=function(te,ae){return Nr(te.scroll.diff.displacement,ae)},su=function(te){var ae=te.pageBorderBoxCenter,oe=te.draggable,ge=te.viewport,xe=Qu(ge,ae),Fe=Zr(xe,oe.page.borderBox.center);return Nr(oe.client.borderBox.center,Fe)},mu=function(te){var ae=te.draggable,oe=te.destination,ge=te.newPageBorderBoxCenter,xe=te.viewport,Fe=te.withDroppableDisplacement,Re=te.onlyOnMainAxis,Ze=Re===void 0?!1:Re,yt=Zr(ge,ae.page.borderBox.center),Tt=Fr(ae.page.borderBox,yt),Mt={target:Tt,destination:oe,withDroppableDisplacement:Fe,viewport:xe};return Ze?we(Mt):Zo(Mt)},Yu=function(te){var ae=te.isMovingForward,oe=te.draggable,ge=te.destination,xe=te.draggables,Fe=te.previousImpact,Re=te.viewport,Ze=te.previousPageBorderBoxCenter,yt=te.previousClientSelection,Tt=te.afterCritical;if(!ge.isEnabled)return null;var Mt=ai(ge.descriptor.id,xe),Dt=hi(oe,ge),Nt=si({isMovingForward:ae,draggable:oe,destination:ge,insideDestination:Mt,previousImpact:Fe})||Wa({isMovingForward:ae,isInHomeList:Dt,draggable:oe,draggables:xe,destination:ge,insideDestination:Mt,previousImpact:Fe,viewport:Re,afterCritical:Tt});if(!Nt)return null;var Jt=Pl({impact:Nt,draggable:oe,droppable:ge,draggables:xe,afterCritical:Tt}),Kn=mu({draggable:oe,destination:ge,newPageBorderBoxCenter:Jt,viewport:Re.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Kn){var ir=su({pageBorderBoxCenter:Jt,draggable:oe,viewport:Re});return{clientSelection:ir,impact:Nt,scrollJumpRequest:null}}var gr=Zr(Jt,Ze),Sr=tu({impact:Nt,viewport:Re,destination:ge,draggables:xe,maxScrollChange:gr});return{clientSelection:yt,impact:Sr,scrollJumpRequest:gr}},El=function(ae){var oe=ae.subject.active;return oe||Qe(!1),oe},Ru=function(te){var ae=te.isMovingForward,oe=te.pageBorderBoxCenter,ge=te.source,xe=te.droppables,Fe=te.viewport,Re=ge.subject.active;if(!Re)return null;var Ze=ge.axis,yt=Uo(Re[Ze.start],Re[Ze.end]),Tt=Oo(xe).filter(function(Dt){return Dt!==ge}).filter(function(Dt){return Dt.isEnabled}).filter(function(Dt){return!!Dt.subject.active}).filter(function(Dt){return Bi(Fe.frame)(El(Dt))}).filter(function(Dt){var Nt=El(Dt);return ae?Re[Ze.crossAxisEnd]<Nt[Ze.crossAxisEnd]:Nt[Ze.crossAxisStart]<Re[Ze.crossAxisStart]}).filter(function(Dt){var Nt=El(Dt),Jt=Uo(Nt[Ze.start],Nt[Ze.end]);return yt(Nt[Ze.start])||yt(Nt[Ze.end])||Jt(Re[Ze.start])||Jt(Re[Ze.end])}).sort(function(Dt,Nt){var Jt=El(Dt)[Ze.crossAxisStart],Kn=El(Nt)[Ze.crossAxisStart];return ae?Jt-Kn:Kn-Jt}).filter(function(Dt,Nt,Jt){return El(Dt)[Ze.crossAxisStart]===El(Jt[0])[Ze.crossAxisStart]});if(!Tt.length)return null;if(Tt.length===1)return Tt[0];var Mt=Tt.filter(function(Dt){var Nt=Uo(El(Dt)[Ze.start],El(Dt)[Ze.end]);return Nt(oe[Ze.line])});return Mt.length===1?Mt[0]:Mt.length>1?Mt.sort(function(Dt,Nt){return El(Dt)[Ze.start]-El(Nt)[Ze.start]})[0]:Tt.sort(function(Dt,Nt){var Jt=Fa(oe,io(El(Dt))),Kn=Fa(oe,io(El(Nt)));return Jt!==Kn?Jt-Kn:El(Dt)[Ze.start]-El(Nt)[Ze.start]})[0]},Mu=function(ae,oe){var ge=ae.page.borderBox.center;return Un(ae.descriptor.id,oe)?Zr(ge,oe.displacedBy.point):ge},rl=function(ae,oe){var ge=ae.page.borderBox;return Un(ae.descriptor.id,oe)?Fr(ge,ha(oe.displacedBy.point)):ge},ku=function(te){var ae=te.pageBorderBoxCenter,oe=te.viewport,ge=te.destination,xe=te.insideDestination,Fe=te.afterCritical,Re=xe.filter(function(Ze){return Zo({target:rl(Ze,Fe),destination:ge,viewport:oe.frame,withDroppableDisplacement:!0})}).sort(function(Ze,yt){var Tt=or(ae,Al(ge,Mu(Ze,Fe))),Mt=or(ae,Al(ge,Mu(yt,Fe)));return Tt<Mt?-1:Mt<Tt?1:Ze.descriptor.index-yt.descriptor.index});return Re[0]||null},nu=Wt(function(ae,oe){var ge=oe[ae.line];return{value:ge,point:za(ae.line,ge)}}),Ju=function(ae,oe,ge){var xe=ae.axis;if(ae.descriptor.mode==="virtual")return za(xe.line,oe[xe.line]);var Fe=ae.subject.page.contentBox[xe.size],Re=ai(ae.descriptor.id,ge),Ze=Re.reduce(function(Mt,Dt){return Mt+Dt.client.marginBox[xe.size]},0),yt=Ze+oe[xe.line],Tt=yt-Fe;return Tt<=0?null:za(xe.line,Tt)},bu=function(ae,oe){return(0,Ae.Z)({},ae,{scroll:(0,Ae.Z)({},ae.scroll,{max:oe})})},Tu=function(ae,oe,ge){var xe=ae.frame;hi(oe,ae)&&Qe(!1),ae.subject.withPlaceholder&&Qe(!1);var Fe=nu(ae.axis,oe.displaceBy).point,Re=Ju(ae,Fe,ge),Ze={placeholderSize:Fe,increasedBy:Re,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!xe){var yt=yo({page:ae.subject.page,withPlaceholder:Ze,axis:ae.axis,frame:ae.frame});return(0,Ae.Z)({},ae,{subject:yt})}var Tt=Re?Nr(xe.scroll.max,Re):xe.scroll.max,Mt=bu(xe,Tt),Dt=yo({page:ae.subject.page,withPlaceholder:Ze,axis:ae.axis,frame:Mt});return(0,Ae.Z)({},ae,{subject:Dt,frame:Mt})},Xu=function(ae){var oe=ae.subject.withPlaceholder;oe||Qe(!1);var ge=ae.frame;if(!ge){var xe=yo({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return(0,Ae.Z)({},ae,{subject:xe})}var Fe=oe.oldFrameMaxScroll;Fe||Qe(!1);var Re=bu(ge,Fe),Ze=yo({page:ae.subject.page,axis:ae.axis,frame:Re,withPlaceholder:null});return(0,Ae.Z)({},ae,{subject:Ze,frame:Re})},_u=function(te){var ae=te.previousPageBorderBoxCenter,oe=te.moveRelativeTo,ge=te.insideDestination,xe=te.draggable,Fe=te.draggables,Re=te.destination,Ze=te.viewport,yt=te.afterCritical;if(!oe){if(ge.length)return null;var Tt={displaced:tl,displacedBy:Qi,at:{type:"REORDER",destination:{droppableId:Re.descriptor.id,index:0}}},Mt=Pl({impact:Tt,draggable:xe,droppable:Re,draggables:Fe,afterCritical:yt}),Dt=hi(xe,Re)?Re:Tu(Re,xe,Fe),Nt=mu({draggable:xe,destination:Dt,newPageBorderBoxCenter:Mt,viewport:Ze.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Nt?Tt:null}var Jt=ae[Re.axis.line]<=oe.page.borderBox.center[Re.axis.line],Kn=function(){var gr=oe.descriptor.index;return oe.descriptor.id===xe.descriptor.id||Jt?gr:gr+1}(),ir=nu(Re.axis,xe.displaceBy);return na({draggable:xe,insideDestination:ge,destination:Re,viewport:Ze,displacedBy:ir,last:tl,index:Kn})},yl=function(te){var ae=te.isMovingForward,oe=te.previousPageBorderBoxCenter,ge=te.draggable,xe=te.isOver,Fe=te.draggables,Re=te.droppables,Ze=te.viewport,yt=te.afterCritical,Tt=Ru({isMovingForward:ae,pageBorderBoxCenter:oe,source:xe,droppables:Re,viewport:Ze});if(!Tt)return null;var Mt=ai(Tt.descriptor.id,Fe),Dt=ku({pageBorderBoxCenter:oe,viewport:Ze,destination:Tt,insideDestination:Mt,afterCritical:yt}),Nt=_u({previousPageBorderBoxCenter:oe,destination:Tt,draggable:ge,draggables:Fe,moveRelativeTo:Dt,insideDestination:Mt,viewport:Ze,afterCritical:yt});if(!Nt)return null;var Jt=Pl({impact:Nt,draggable:ge,droppable:Tt,draggables:Fe,afterCritical:yt}),Kn=su({pageBorderBoxCenter:Jt,draggable:ge,viewport:Ze});return{clientSelection:Kn,impact:Nt,scrollJumpRequest:null}},Wi=function(te){var ae=te.at;return ae?ae.type==="REORDER"?ae.destination.droppableId:ae.combine.droppableId:null},Zu=function(ae,oe){var ge=Wi(ae);return ge?oe[ge]:null},fs=function(te){var ae=te.state,oe=te.type,ge=Zu(ae.impact,ae.dimensions.droppables),xe=!!ge,Fe=ae.dimensions.droppables[ae.critical.droppable.id],Re=ge||Fe,Ze=Re.axis.direction,yt=Ze==="vertical"&&(oe==="MOVE_UP"||oe==="MOVE_DOWN")||Ze==="horizontal"&&(oe==="MOVE_LEFT"||oe==="MOVE_RIGHT");if(yt&&!xe)return null;var Tt=oe==="MOVE_DOWN"||oe==="MOVE_RIGHT",Mt=ae.dimensions.draggables[ae.critical.draggable.id],Dt=ae.current.page.borderBoxCenter,Nt=ae.dimensions,Jt=Nt.draggables,Kn=Nt.droppables;return yt?Yu({isMovingForward:Tt,previousPageBorderBoxCenter:Dt,draggable:Mt,destination:Re,draggables:Jt,viewport:ae.viewport,previousClientSelection:ae.current.client.selection,previousImpact:ae.impact,afterCritical:ae.afterCritical}):yl({isMovingForward:Tt,previousPageBorderBoxCenter:Dt,draggable:Mt,isOver:Re,draggables:Jt,droppables:Kn,viewport:ae.viewport,afterCritical:ae.afterCritical})};function au(te){return te.phase==="DRAGGING"||te.phase==="COLLECTING"}function wi(te){var ae=Uo(te.top,te.bottom),oe=Uo(te.left,te.right);return function(xe){return ae(xe.y)&&oe(xe.x)}}function Cu(te,ae){return te.left<ae.right&&te.right>ae.left&&te.top<ae.bottom&&te.bottom>ae.top}function zu(te){var ae=te.pageBorderBox,oe=te.draggable,ge=te.candidates,xe=oe.page.borderBox.center,Fe=ge.map(function(Re){var Ze=Re.axis,yt=za(Re.axis.line,ae.center[Ze.line],Re.page.borderBox.center[Ze.crossAxisLine]);return{id:Re.descriptor.id,distance:or(xe,yt)}}).sort(function(Re,Ze){return Ze.distance-Re.distance});return Fe[0]?Fe[0].id:null}function rs(te){var ae=te.pageBorderBox,oe=te.draggable,ge=te.droppables,xe=Oo(ge).filter(function(Fe){if(!Fe.isEnabled)return!1;var Re=Fe.subject.active;if(!Re||!Cu(ae,Re))return!1;if(wi(Re)(ae.center))return!0;var Ze=Fe.axis,yt=Re.center[Ze.crossAxisLine],Tt=ae[Ze.crossAxisStart],Mt=ae[Ze.crossAxisEnd],Dt=Uo(Re[Ze.crossAxisStart],Re[Ze.crossAxisEnd]),Nt=Dt(Tt),Jt=Dt(Mt);return!Nt&&!Jt?!0:Nt?Tt<yt:Mt>yt});return xe.length?xe.length===1?xe[0].descriptor.id:zu({pageBorderBox:ae,draggable:oe,candidates:xe}):null}var Il=function(ae,oe){return Vn(Fr(ae,oe))},Hu=function(te,ae){var oe=te.frame;return oe?Il(ae,oe.scroll.diff.value):ae};function xu(te){var ae=te.displaced,oe=te.id;return!!(ae.visible[oe]||ae.invisible[oe])}function Fu(te){var ae=te.draggable,oe=te.closest,ge=te.inHomeList;return oe?ge&&oe.descriptor.index>ae.descriptor.index?oe.descriptor.index-1:oe.descriptor.index:null}var Fl=function(te){var ae=te.pageBorderBoxWithDroppableScroll,oe=te.draggable,ge=te.destination,xe=te.insideDestination,Fe=te.last,Re=te.viewport,Ze=te.afterCritical,yt=ge.axis,Tt=nu(ge.axis,oe.displaceBy),Mt=Tt.value,Dt=ae[yt.start],Nt=ae[yt.end],Jt=ao(oe,xe),Kn=eo(Jt,function(gr){var Sr=gr.descriptor.id,Wr=gr.page.borderBox.center[yt.line],no=Un(Sr,Ze),mo=xu({displaced:Fe,id:Sr});return no?mo?Nt<=Wr:Dt<Wr-Mt:mo?Nt<=Wr+Mt:Dt<Wr}),ir=Fu({draggable:oe,closest:Kn,inHomeList:hi(oe,ge)});return na({draggable:oe,insideDestination:xe,destination:ge,viewport:Re,last:Fe,displacedBy:Tt,index:ir})},zl=4,os=function(te){var ae=te.draggable,oe=te.pageBorderBoxWithDroppableScroll,ge=te.previousImpact,xe=te.destination,Fe=te.insideDestination,Re=te.afterCritical;if(!xe.isCombineEnabled)return null;var Ze=xe.axis,yt=nu(xe.axis,ae.displaceBy),Tt=yt.value,Mt=oe[Ze.start],Dt=oe[Ze.end],Nt=ao(ae,Fe),Jt=eo(Nt,function(ir){var gr=ir.descriptor.id,Sr=ir.page.borderBox,Wr=Sr[Ze.size],no=Wr/zl,mo=Un(gr,Re),li=xu({displaced:ge.displaced,id:gr});return mo?li?Dt>Sr[Ze.start]+no&&Dt<Sr[Ze.end]-no:Mt>Sr[Ze.start]-Tt+no&&Mt<Sr[Ze.end]-Tt-no:li?Dt>Sr[Ze.start]+Tt+no&&Dt<Sr[Ze.end]+Tt-no:Mt>Sr[Ze.start]+no&&Mt<Sr[Ze.end]-no});if(!Jt)return null;var Kn={displacedBy:yt,displaced:ge.displaced,at:{type:"COMBINE",combine:{draggableId:Jt.descriptor.id,droppableId:xe.descriptor.id}}};return Kn},qu=function(te){var ae=te.pageOffset,oe=te.draggable,ge=te.draggables,xe=te.droppables,Fe=te.previousImpact,Re=te.viewport,Ze=te.afterCritical,yt=Il(oe.page.borderBox,ae),Tt=rs({pageBorderBox:yt,draggable:oe,droppables:xe});if(!Tt)return nl;var Mt=xe[Tt],Dt=ai(Mt.descriptor.id,ge),Nt=Hu(Mt,yt);return os({pageBorderBoxWithDroppableScroll:Nt,draggable:oe,previousImpact:Fe,destination:Mt,insideDestination:Dt,afterCritical:Ze})||Fl({pageBorderBoxWithDroppableScroll:Nt,draggable:oe,destination:Mt,insideDestination:Dt,last:Fe.displaced,viewport:Re,afterCritical:Ze})},ju=function(te,ae){var oe;return(0,Ae.Z)({},te,(oe={},oe[ae.descriptor.id]=ae,oe))},Ar=function(ae){var oe=ae.previousImpact,ge=ae.impact,xe=ae.droppables,Fe=Wi(oe),Re=Wi(ge);if(!Fe||Fe===Re)return xe;var Ze=xe[Fe];if(!Ze.subject.withPlaceholder)return xe;var yt=Xu(Ze);return ju(xe,yt)},Bu=function(te){var ae=te.draggable,oe=te.draggables,ge=te.droppables,xe=te.previousImpact,Fe=te.impact,Re=Ar({previousImpact:xe,impact:Fe,droppables:ge}),Ze=Wi(Fe);if(!Ze)return Re;var yt=ge[Ze];if(hi(ae,yt)||yt.subject.withPlaceholder)return Re;var Tt=Tu(yt,ae,oe);return ju(Re,Tt)},Yl=function(te){var ae=te.state,oe=te.clientSelection,ge=te.dimensions,xe=te.viewport,Fe=te.impact,Re=te.scrollJumpRequest,Ze=xe||ae.viewport,yt=ge||ae.dimensions,Tt=oe||ae.current.client.selection,Mt=Zr(Tt,ae.initial.client.selection),Dt={offset:Mt,selection:Tt,borderBoxCenter:Nr(ae.initial.client.borderBoxCenter,Mt)},Nt={selection:Nr(Dt.selection,Ze.scroll.current),borderBoxCenter:Nr(Dt.borderBoxCenter,Ze.scroll.current),offset:Nr(Dt.offset,Ze.scroll.diff.value)},Jt={client:Dt,page:Nt};if(ae.phase==="COLLECTING")return(0,Ae.Z)({phase:"COLLECTING"},ae,{dimensions:yt,viewport:Ze,current:Jt});var Kn=yt.draggables[ae.critical.draggable.id],ir=Fe||qu({pageOffset:Nt.offset,draggable:Kn,draggables:yt.draggables,droppables:yt.droppables,previousImpact:ae.impact,viewport:Ze,afterCritical:ae.afterCritical}),gr=Bu({draggable:Kn,impact:ir,previousImpact:ae.impact,draggables:yt.draggables,droppables:yt.droppables}),Sr=(0,Ae.Z)({},ae,{current:Jt,dimensions:{draggables:yt.draggables,droppables:gr},impact:ir,viewport:Ze,scrollJumpRequest:Re||null,forceShouldAnimate:Re?!1:null});return Sr};function Hl(te,ae){return te.map(function(oe){return ae[oe]})}var Xa=function(te){var ae=te.impact,oe=te.viewport,ge=te.draggables,xe=te.destination,Fe=te.forceShouldAnimate,Re=ae.displaced,Ze=Hl(Re.all,ge),yt=fa({afterDragging:Ze,destination:xe,displacedBy:ae.displacedBy,viewport:oe.frame,forceShouldAnimate:Fe,last:Re});return(0,Ae.Z)({},ae,{displaced:yt})},du=function(te){var ae=te.impact,oe=te.draggable,ge=te.droppable,xe=te.draggables,Fe=te.viewport,Re=te.afterCritical,Ze=Pl({impact:ae,draggable:oe,draggables:xe,droppable:ge,afterCritical:Re});return su({pageBorderBoxCenter:Ze,draggable:oe,viewport:Fe})},es=function(te){var ae=te.state,oe=te.dimensions,ge=te.viewport;ae.movementMode!=="SNAP"&&Qe(!1);var xe=ae.impact,Fe=ge||ae.viewport,Re=oe||ae.dimensions,Ze=Re.draggables,yt=Re.droppables,Tt=Ze[ae.critical.draggable.id],Mt=Wi(xe);Mt||Qe(!1);var Dt=yt[Mt],Nt=Xa({impact:xe,viewport:Fe,destination:Dt,draggables:Ze}),Jt=du({impact:Nt,draggable:Tt,droppable:Dt,draggables:Ze,viewport:Fe,afterCritical:ae.afterCritical});return Yl({impact:Nt,clientSelection:Jt,state:ae,dimensions:Re,viewport:Fe})},is=function(te){return{index:te.index,droppableId:te.droppableId}},wu=function(te){var ae=te.draggable,oe=te.home,ge=te.draggables,xe=te.viewport,Fe=nu(oe.axis,ae.displaceBy),Re=ai(oe.descriptor.id,ge),Ze=Re.indexOf(ae);Ze===-1&&Qe(!1);var yt=Re.slice(Ze+1),Tt=yt.reduce(function(Jt,Kn){return Jt[Kn.descriptor.id]=!0,Jt},{}),Mt={inVirtualList:oe.descriptor.mode==="virtual",displacedBy:Fe,effected:Tt},Dt=fa({afterDragging:yt,destination:oe,displacedBy:Fe,last:null,viewport:xe.frame,forceShouldAnimate:!1}),Nt={displaced:Dt,displacedBy:Fe,at:{type:"REORDER",destination:is(ae.descriptor)}};return{impact:Nt,afterCritical:Mt}},ts=function(te,ae){return{draggables:te.draggables,droppables:ju(te.droppables,ae)}},cu=function(ae){},Yi=function(ae){},ls=function(te){var ae=te.draggable,oe=te.offset,ge=te.initialWindowScroll,xe=Xt(ae.client,oe),Fe=jn(xe,ge),Re=(0,Ae.Z)({},ae,{placeholder:(0,Ae.Z)({},ae.placeholder,{client:xe}),client:xe,page:Fe});return Re},us=function(te){var ae=te.frame;return ae||Qe(!1),ae},ss=function(te){var ae=te.additions,oe=te.updatedDroppables,ge=te.viewport,xe=ge.scroll.diff.value;return ae.map(function(Fe){var Re=Fe.descriptor.droppableId,Ze=oe[Re],yt=us(Ze),Tt=yt.scroll.diff.value,Mt=Nr(xe,Tt),Dt=ls({draggable:Fe,offset:Mt,initialWindowScroll:ge.scroll.initial});return Dt})},Gu=function(te){var ae=te.state,oe=te.published;cu();var ge=oe.modified.map(function(no){var mo=ae.dimensions.droppables[no.droppableId],li=Eo(mo,no.scroll);return li}),xe=(0,Ae.Z)({},ae.dimensions.droppables,{},To(ge)),Fe=vi(ss({additions:oe.additions,updatedDroppables:xe,viewport:ae.viewport})),Re=(0,Ae.Z)({},ae.dimensions.draggables,{},Fe);oe.removals.forEach(function(no){delete Re[no]});var Ze={droppables:xe,draggables:Re},yt=Wi(ae.impact),Tt=yt?Ze.droppables[yt]:null,Mt=Ze.draggables[ae.critical.draggable.id],Dt=Ze.droppables[ae.critical.droppable.id],Nt=wu({draggable:Mt,home:Dt,draggables:Re,viewport:ae.viewport}),Jt=Nt.impact,Kn=Nt.afterCritical,ir=Tt&&Tt.isCombineEnabled?ae.impact:Jt,gr=qu({pageOffset:ae.current.page.offset,draggable:Ze.draggables[ae.critical.draggable.id],draggables:Ze.draggables,droppables:Ze.droppables,previousImpact:ir,viewport:ae.viewport,afterCritical:Kn});Yi();var Sr=(0,Ae.Z)({phase:"DRAGGING"},ae,{phase:"DRAGGING",impact:gr,onLiftImpact:Jt,dimensions:Ze,afterCritical:Kn,forceShouldAnimate:!1});if(ae.phase==="COLLECTING")return Sr;var Wr=(0,Ae.Z)({phase:"DROP_PENDING"},Sr,{phase:"DROP_PENDING",reason:ae.reason,isWaiting:!1});return Wr},Jl=function(ae){return ae.movementMode==="SNAP"},Xl=function(ae,oe,ge){var xe=ts(ae.dimensions,oe);return!Jl(ae)||ge?Yl({state:ae,dimensions:xe}):es({state:ae,dimensions:xe})};function ru(te){return te.isDragging&&te.movementMode==="SNAP"?(0,Ae.Z)({phase:"DRAGGING"},te,{scrollJumpRequest:null}):te}var fu={phase:"IDLE",completed:null,shouldFlush:!1},Wu=function(te,ae){if(te===void 0&&(te=fu),ae.type==="FLUSH")return(0,Ae.Z)({},fu,{shouldFlush:!0});if(ae.type==="INITIAL_PUBLISH"){te.phase!=="IDLE"&&Qe(!1);var oe=ae.payload,ge=oe.critical,xe=oe.clientSelection,Fe=oe.viewport,Re=oe.dimensions,Ze=oe.movementMode,yt=Re.draggables[ge.draggable.id],Tt=Re.droppables[ge.droppable.id],Mt={selection:xe,borderBoxCenter:yt.client.borderBox.center,offset:dr},Dt={client:Mt,page:{selection:Nr(Mt.selection,Fe.scroll.initial),borderBoxCenter:Nr(Mt.selection,Fe.scroll.initial),offset:Nr(Mt.selection,Fe.scroll.diff.value)}},Nt=Oo(Re.droppables).every(function(Ds){return!Ds.isFixedOnPage}),Jt=wu({draggable:yt,home:Tt,draggables:Re.draggables,viewport:Fe}),Kn=Jt.impact,ir=Jt.afterCritical,gr={phase:"DRAGGING",isDragging:!0,critical:ge,movementMode:Ze,dimensions:Re,initial:Dt,current:Dt,isWindowScrollAllowed:Nt,impact:Kn,afterCritical:ir,onLiftImpact:Kn,viewport:Fe,scrollJumpRequest:null,forceShouldAnimate:null};return gr}if(ae.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&Qe(!1);var Sr=(0,Ae.Z)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return Sr}if(ae.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||Qe(!1),Gu({state:te,published:ae.payload});if(ae.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;au(te)||Qe(!1);var Wr=ae.payload.client;return Ir(Wr,te.current.client.selection)?te:Yl({state:te,clientSelection:Wr,impact:Jl(te)?te.impact:null})}if(ae.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="COLLECTING")return ru(te);au(te)||Qe(!1);var no=ae.payload,mo=no.id,li=no.newScroll,ni=te.dimensions.droppables[mo];if(!ni)return te;var Ni=Eo(ni,li);return Xl(te,Ni,!1)}if(ae.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;au(te)||Qe(!1);var vl=ae.payload,Ti=vl.id,pl=vl.isEnabled,Ll=te.dimensions.droppables[Ti];Ll||Qe(!1),Ll.isEnabled===pl&&Qe(!1);var Tl=(0,Ae.Z)({},Ll,{isEnabled:pl});return Xl(te,Tl,!0)}if(ae.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;au(te)||Qe(!1);var Au=ae.payload,yu=Au.id,uu=Au.isCombineEnabled,Nu=te.dimensions.droppables[yu];Nu||Qe(!1),Nu.isCombineEnabled===uu&&Qe(!1);var _l=(0,Ae.Z)({},Nu,{isCombineEnabled:uu});return Xl(te,_l,!0)}if(ae.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;au(te)||Qe(!1),te.isWindowScrollAllowed||Qe(!1);var ns=ae.payload.newScroll;if(Ir(te.viewport.scroll.current,ns))return ru(te);var Iu=eu(te.viewport,ns);return Jl(te)?es({state:te,viewport:Iu}):Yl({state:te,viewport:Iu})}if(ae.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!au(te))return te;var Ps=ae.payload.maxScroll;if(Ir(Ps,te.viewport.scroll.max))return te;var gs=(0,Ae.Z)({},te.viewport,{scroll:(0,Ae.Z)({},te.viewport.scroll,{max:Ps})});return(0,Ae.Z)({phase:"DRAGGING"},te,{viewport:gs})}if(ae.type==="MOVE_UP"||ae.type==="MOVE_DOWN"||ae.type==="MOVE_LEFT"||ae.type==="MOVE_RIGHT"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&Qe(!1);var as=fs({state:te,type:ae.type});return as?Yl({state:te,impact:as.impact,clientSelection:as.clientSelection,scrollJumpRequest:as.scrollJumpRequest}):te}if(ae.type==="DROP_PENDING"){var Ou=ae.payload.reason;te.phase!=="COLLECTING"&&Qe(!1);var ms=(0,Ae.Z)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:Ou});return ms}if(ae.type==="DROP_ANIMATE"){var Fs=ae.payload,Lu=Fs.completed,ys=Fs.dropDuration,Bs=Fs.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||Qe(!1);var Ss={phase:"DROP_ANIMATING",completed:Lu,dropDuration:ys,newHomeClientOffset:Bs,dimensions:te.dimensions};return Ss}if(ae.type==="DROP_COMPLETE"){var ws=ae.payload.completed;return{phase:"IDLE",completed:ws,shouldFlush:!1}}return te},me=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},Se=function(ae){return{type:"LIFT",payload:ae}},ye=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},nt=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},it=function(){return{type:"COLLECTION_STARTING",payload:null}},en=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},Kt=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},kn=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},Mn=function(ae){return{type:"MOVE",payload:ae}},oa=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},Ba=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},ga=function(){return{type:"MOVE_UP",payload:null}},gn=function(){return{type:"MOVE_DOWN",payload:null}},Da=function(){return{type:"MOVE_RIGHT",payload:null}},Ra=function(){return{type:"MOVE_LEFT",payload:null}},Ln=function(){return{type:"FLUSH",payload:null}},da=function(ae){return{type:"DROP_ANIMATE",payload:ae}},Ma=function(ae){return{type:"DROP_COMPLETE",payload:ae}},Br=function(ae){return{type:"DROP",payload:ae}},vr=function(ae){return{type:"DROP_PENDING",payload:ae}},wr=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Hr(te){if(!(te.length<=1)){for(var ae=te.map(function(Ze){return Ze.descriptor.index}),oe={},ge=1;ge<ae.length;ge++){var xe=ae[ge],Fe=ae[ge-1];xe!==Fe+1&&(oe[xe]=!0)}if(Object.keys(oe).length)var Re=ae.map(function(Ze){var yt=!!oe[Ze];return yt?"[\u{1F525}"+Ze+"]":""+Ze}).join(", ")}}function Or(te,ae){if(0)var oe}var zn=function(te){return function(ae){var oe=ae.getState,ge=ae.dispatch;return function(xe){return function(Fe){if(Fe.type!=="LIFT"){xe(Fe);return}var Re=Fe.payload,Ze=Re.id,yt=Re.clientSelection,Tt=Re.movementMode,Mt=oe();Mt.phase==="DROP_ANIMATING"&&ge(Ma({completed:Mt.completed})),oe().phase!=="IDLE"&&Qe(!1),ge(Ln()),ge(me({draggableId:Ze,movementMode:Tt}));var Dt={shouldPublishImmediately:Tt==="SNAP"},Nt={draggableId:Ze,scrollOptions:Dt},Jt=te.startPublishing(Nt),Kn=Jt.critical,ir=Jt.dimensions,gr=Jt.viewport;Or(Kn,ir),ge(ye({critical:Kn,dimensions:ir,clientSelection:yt,movementMode:Tt,viewport:gr}))}}}},$o=function(te){return function(){return function(ae){return function(oe){oe.type==="INITIAL_PUBLISH"&&te.dragging(),oe.type==="DROP_ANIMATE"&&te.dropping(oe.payload.completed.result.reason),(oe.type==="FLUSH"||oe.type==="DROP_COMPLETE")&&te.resting(),ae(oe)}}}},fo={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Go={opacity:{drop:0,combining:.7},scale:{drop:.75}},qo={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},oi=qo.outOfTheWay+"s "+fo.outOfTheWay,Si={fluid:"opacity "+oi,snap:"transform "+oi+", opacity "+oi,drop:function(ae){var oe=ae+"s "+fo.drop;return"transform "+oe+", opacity "+oe},outOfTheWay:"transform "+oi,placeholder:"height "+oi+", width "+oi+", margin "+oi},zi=function(ae){return Ir(ae,dr)?null:"translate("+ae.x+"px, "+ae.y+"px)"},ro={moveTo:zi,drop:function(ae,oe){var ge=zi(ae);return ge?oe?ge+" scale("+Go.scale.drop+")":ge:null}},Ro=qo.minDropTime,zo=qo.maxDropTime,Di=zo-Ro,Ii=1500,fi=.6,Mo=function(te){var ae=te.current,oe=te.destination,ge=te.reason,xe=or(ae,oe);if(xe<=0)return Ro;if(xe>=Ii)return zo;var Fe=xe/Ii,Re=Ro+Di*Fe,Ze=ge==="CANCEL"?Re*fi:Re;return Number(Ze.toFixed(2))},ol=function(te){var ae=te.impact,oe=te.draggable,ge=te.dimensions,xe=te.viewport,Fe=te.afterCritical,Re=ge.draggables,Ze=ge.droppables,yt=Wi(ae),Tt=yt?Ze[yt]:null,Mt=Ze[oe.descriptor.droppableId],Dt=du({impact:ae,draggable:oe,draggables:Re,afterCritical:Fe,droppable:Tt||Mt,viewport:xe}),Nt=Zr(Dt,oe.client.borderBox.center);return Nt},Xi=function(te){var ae=te.draggables,oe=te.reason,ge=te.lastImpact,xe=te.home,Fe=te.viewport,Re=te.onLiftImpact;if(!ge.at||oe!=="DROP"){var Ze=Xa({draggables:ae,impact:Re,destination:xe,viewport:Fe,forceShouldAnimate:!0});return{impact:Ze,didDropInsideDroppable:!1}}if(ge.at.type==="REORDER")return{impact:ge,didDropInsideDroppable:!0};var yt=(0,Ae.Z)({},ge,{displaced:tl});return{impact:yt,didDropInsideDroppable:!0}},Ee=function(te){var ae=te.getState,oe=te.dispatch;return function(ge){return function(xe){if(xe.type!=="DROP"){ge(xe);return}var Fe=ae(),Re=xe.payload.reason;if(Fe.phase==="COLLECTING"){oe(vr({reason:Re}));return}if(Fe.phase!=="IDLE"){var Ze=Fe.phase==="DROP_PENDING"&&Fe.isWaiting;Ze&&Qe(!1),Fe.phase==="DRAGGING"||Fe.phase==="DROP_PENDING"||Qe(!1);var yt=Fe.critical,Tt=Fe.dimensions,Mt=Tt.draggables[Fe.critical.draggable.id],Dt=Xi({reason:Re,lastImpact:Fe.impact,afterCritical:Fe.afterCritical,onLiftImpact:Fe.onLiftImpact,home:Fe.dimensions.droppables[Fe.critical.droppable.id],viewport:Fe.viewport,draggables:Fe.dimensions.draggables}),Nt=Dt.impact,Jt=Dt.didDropInsideDroppable,Kn=Jt?zr(Nt):null,ir=Jt?Lo(Nt):null,gr={index:yt.draggable.index,droppableId:yt.droppable.id},Sr={draggableId:Mt.descriptor.id,type:Mt.descriptor.type,source:gr,reason:Re,mode:Fe.movementMode,destination:Kn,combine:ir},Wr=ol({impact:Nt,draggable:Mt,dimensions:Tt,viewport:Fe.viewport,afterCritical:Fe.afterCritical}),no={critical:Fe.critical,afterCritical:Fe.afterCritical,result:Sr,impact:Nt},mo=!Ir(Fe.current.client.offset,Wr)||!!Sr.combine;if(!mo){oe(Ma({completed:no}));return}var li=Mo({current:Fe.current.client.offset,destination:Wr,reason:Re}),ni={newHomeClientOffset:Wr,dropDuration:li,completed:no};oe(da(ni))}}}},Ce=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ue(te){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(oe){oe.target!==window&&oe.target!==window.document||te()}}}function rt(te){var ae=te.onWindowScroll;function oe(){ae(Ce())}var ge=Bn(oe),xe=Ue(ge),Fe=ba;function Re(){return Fe!==ba}function Ze(){Re()&&Qe(!1),Fe=mr(window,[xe])}function yt(){Re()||Qe(!1),ge.cancel(),Fe(),Fe=ba}return{start:Ze,stop:yt,isActive:Re}}var Pt=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},Et=function(te){var ae=rt({onWindowScroll:function(ge){te.dispatch(oa({newScroll:ge}))}});return function(oe){return function(ge){!ae.isActive()&&ge.type==="INITIAL_PUBLISH"&&ae.start(),ae.isActive()&&Pt(ge)&&ae.stop(),oe(ge)}}},$t=function(te){var ae=!1,oe=!1,ge=setTimeout(function(){oe=!0}),xe=function(Re){ae||oe||(ae=!0,te(Re),clearTimeout(ge))};return xe.wasCalled=function(){return ae},xe},Yt=function(){var te=[],ae=function(Fe){var Re=Ao(te,function(Tt){return Tt.timerId===Fe});Re===-1&&Qe(!1);var Ze=te.splice(Re,1),yt=Ze[0];yt.callback()},oe=function(Fe){var Re=setTimeout(function(){return ae(Re)}),Ze={timerId:Re,callback:Fe};te.push(Ze)},ge=function(){if(te.length){var Fe=[].concat(te);te.length=0,Fe.forEach(function(Re){clearTimeout(Re.timerId),Re.callback()})}};return{add:oe,flush:ge}},Ut=function(ae,oe){return ae==null&&oe==null?!0:ae==null||oe==null?!1:ae.droppableId===oe.droppableId&&ae.index===oe.index},xn=function(ae,oe){return ae==null&&oe==null?!0:ae==null||oe==null?!1:ae.draggableId===oe.draggableId&&ae.droppableId===oe.droppableId},pn=function(ae,oe){if(ae===oe)return!0;var ge=ae.draggable.id===oe.draggable.id&&ae.draggable.droppableId===oe.draggable.droppableId&&ae.draggable.type===oe.draggable.type&&ae.draggable.index===oe.draggable.index,xe=ae.droppable.id===oe.droppable.id&&ae.droppable.type===oe.droppable.type;return ge&&xe},hn=function(ae,oe){cu(),oe(),Yi()},qn=function(ae,oe){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:oe}},aa=function(ae,oe,ge,xe){if(!ae){ge(xe(oe));return}var Fe=$t(ge),Re={announce:Fe};ae(oe,Re),Fe.wasCalled()||ge(xe(oe))},ca=function(te,ae){var oe=Yt(),ge=null,xe=function(Nt,Jt){ge&&Qe(!1),hn("onBeforeCapture",function(){var Kn=te().onBeforeCapture;if(Kn){var ir={draggableId:Nt,mode:Jt};Kn(ir)}})},Fe=function(Nt,Jt){ge&&Qe(!1),hn("onBeforeDragStart",function(){var Kn=te().onBeforeDragStart;Kn&&Kn(qn(Nt,Jt))})},Re=function(Nt,Jt){ge&&Qe(!1);var Kn=qn(Nt,Jt);ge={mode:Jt,lastCritical:Nt,lastLocation:Kn.source,lastCombine:null},oe.add(function(){hn("onDragStart",function(){return aa(te().onDragStart,Kn,ae,Cn.onDragStart)})})},Ze=function(Nt,Jt){var Kn=zr(Jt),ir=Lo(Jt);ge||Qe(!1);var gr=!pn(Nt,ge.lastCritical);gr&&(ge.lastCritical=Nt);var Sr=!Ut(ge.lastLocation,Kn);Sr&&(ge.lastLocation=Kn);var Wr=!xn(ge.lastCombine,ir);if(Wr&&(ge.lastCombine=ir),!(!gr&&!Sr&&!Wr)){var no=(0,Ae.Z)({},qn(Nt,ge.mode),{combine:ir,destination:Kn});oe.add(function(){hn("onDragUpdate",function(){return aa(te().onDragUpdate,no,ae,Cn.onDragUpdate)})})}},yt=function(){ge||Qe(!1),oe.flush()},Tt=function(Nt){ge||Qe(!1),ge=null,hn("onDragEnd",function(){return aa(te().onDragEnd,Nt,ae,Cn.onDragEnd)})},Mt=function(){if(ge){var Nt=(0,Ae.Z)({},qn(ge.lastCritical,ge.mode),{combine:null,destination:null,reason:"CANCEL"});Tt(Nt)}};return{beforeCapture:xe,beforeStart:Fe,start:Re,update:Ze,flush:yt,drop:Tt,abort:Mt}},Oa=function(te,ae){var oe=ca(te,ae);return function(ge){return function(xe){return function(Fe){if(Fe.type==="BEFORE_INITIAL_CAPTURE"){oe.beforeCapture(Fe.payload.draggableId,Fe.payload.movementMode);return}if(Fe.type==="INITIAL_PUBLISH"){var Re=Fe.payload.critical;oe.beforeStart(Re,Fe.payload.movementMode),xe(Fe),oe.start(Re,Fe.payload.movementMode);return}if(Fe.type==="DROP_COMPLETE"){var Ze=Fe.payload.completed.result;oe.flush(),xe(Fe),oe.drop(Ze);return}if(xe(Fe),Fe.type==="FLUSH"){oe.abort();return}var yt=ge.getState();yt.phase==="DRAGGING"&&oe.update(yt.critical,yt.impact)}}}},Ht=function(te){return function(ae){return function(oe){if(oe.type!=="DROP_ANIMATION_FINISHED"){ae(oe);return}var ge=te.getState();ge.phase!=="DROP_ANIMATING"&&Qe(!1),te.dispatch(Ma({completed:ge.completed}))}}},Ja=function(te){var ae=null,oe=null;function ge(){oe&&(cancelAnimationFrame(oe),oe=null),ae&&(ae(),ae=null)}return function(xe){return function(Fe){if((Fe.type==="FLUSH"||Fe.type==="DROP_COMPLETE"||Fe.type==="DROP_ANIMATION_FINISHED")&&ge(),xe(Fe),Fe.type==="DROP_ANIMATE"){var Re={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var yt=te.getState();yt.phase==="DROP_ANIMATING"&&te.dispatch(wr())}};oe=requestAnimationFrame(function(){oe=null,ae=mr(window,[Re])})}}}},_a=function(te){return function(){return function(ae){return function(oe){(oe.type==="DROP_COMPLETE"||oe.type==="FLUSH"||oe.type==="DROP_ANIMATE")&&te.stopPublishing(),ae(oe)}}}},nr=function(te){var ae=!1;return function(){return function(oe){return function(ge){if(ge.type==="INITIAL_PUBLISH"){ae=!0,te.tryRecordFocus(ge.payload.critical.draggable.id),oe(ge),te.tryRestoreFocusRecorded();return}if(oe(ge),!!ae){if(ge.type==="FLUSH"){ae=!1,te.tryRestoreFocusRecorded();return}if(ge.type==="DROP_COMPLETE"){ae=!1;var xe=ge.payload.completed.result;xe.combine&&te.tryShiftRecord(xe.draggableId,xe.combine.draggableId),te.tryRestoreFocusRecorded()}}}}}},Rr=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},Kr=function(te){return function(ae){return function(oe){return function(ge){if(Rr(ge)){te.stop(),oe(ge);return}if(ge.type==="INITIAL_PUBLISH"){oe(ge);var xe=ae.getState();xe.phase!=="DRAGGING"&&Qe(!1),te.start(xe);return}oe(ge),te.scroll(ae.getState())}}}},Dr=function(te){return function(ae){return function(oe){if(ae(oe),oe.type==="PUBLISH_WHILE_DRAGGING"){var ge=te.getState();ge.phase==="DROP_PENDING"&&(ge.isWaiting||te.dispatch(Br({reason:ge.reason})))}}}},jr=ze.qC,_r=function(te){var ae=te.dimensionMarshal,oe=te.focusMarshal,ge=te.styleMarshal,xe=te.getResponders,Fe=te.announce,Re=te.autoScroller;return(0,ze.MT)(Wu,jr((0,ze.md)($o(ge),_a(ae),zn(ae),Ee,Ht,Ja,Dr,Kr(Re),Et,nr(oe),Oa(xe,Fe))))},er=function(){return{additions:{},removals:{},modified:{}}};function tr(te){var ae=te.registry,oe=te.callbacks,ge=er(),xe=null,Fe=function(){xe||(oe.collectionStarting(),xe=requestAnimationFrame(function(){xe=null,cu();var Mt=ge,Dt=Mt.additions,Nt=Mt.removals,Jt=Mt.modified,Kn=Object.keys(Dt).map(function(Sr){return ae.draggable.getById(Sr).getDimension(dr)}).sort(function(Sr,Wr){return Sr.descriptor.index-Wr.descriptor.index}),ir=Object.keys(Jt).map(function(Sr){var Wr=ae.droppable.getById(Sr),no=Wr.callbacks.getScrollWhileDragging();return{droppableId:Sr,scroll:no}}),gr={additions:Kn,removals:Object.keys(Nt),modified:ir};ge=er(),Yi(),oe.publish(gr)}))},Re=function(Mt){var Dt=Mt.descriptor.id;ge.additions[Dt]=Mt,ge.modified[Mt.descriptor.droppableId]=!0,ge.removals[Dt]&&delete ge.removals[Dt],Fe()},Ze=function(Mt){var Dt=Mt.descriptor;ge.removals[Dt.id]=!0,ge.modified[Dt.droppableId]=!0,ge.additions[Dt.id]&&delete ge.additions[Dt.id],Fe()},yt=function(){xe&&(cancelAnimationFrame(xe),xe=null,ge=er())};return{add:Re,remove:Ze,stop:yt}}var fr=function(te){var ae=te.scrollHeight,oe=te.scrollWidth,ge=te.height,xe=te.width,Fe=Zr({x:oe,y:ae},{x:xe,y:ge}),Re={x:Math.max(0,Fe.x),y:Math.max(0,Fe.y)};return Re},Ga=function(){var te=document.documentElement;return te||Qe(!1),te},ar=function(){var te=Ga(),ae=fr({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ae},Gr=function(){var te=Ce(),ae=ar(),oe=te.y,ge=te.x,xe=Ga(),Fe=xe.clientWidth,Re=xe.clientHeight,Ze=ge+Fe,yt=oe+Re,Tt=Vn({top:oe,left:ge,right:Ze,bottom:yt}),Mt={frame:Tt,scroll:{initial:te,current:te,max:ae,diff:{value:dr,displacement:dr}}};return Mt},Po=function(te){var ae=te.critical,oe=te.scrollOptions,ge=te.registry;cu();var xe=Gr(),Fe=xe.scroll.current,Re=ae.droppable,Ze=ge.droppable.getAllByType(Re.type).map(function(Dt){return Dt.callbacks.getDimensionAndWatchScroll(Fe,oe)}),yt=ge.draggable.getAllByType(ae.draggable.type).map(function(Dt){return Dt.getDimension(Fe)}),Tt={draggables:vi(yt),droppables:To(Ze)};Yi();var Mt={dimensions:Tt,critical:ae,viewport:xe};return Mt};function lo(te,ae,oe){if(oe.descriptor.id===ae.id||oe.descriptor.type!==ae.type)return!1;var ge=te.droppable.getById(oe.descriptor.droppableId);return ge.descriptor.mode==="virtual"}var Lr=function(te,ae){var oe=null,ge=tr({callbacks:{publish:ae.publishWhileDragging,collectionStarting:ae.collectionStarting},registry:te}),xe=function(Jt,Kn){te.droppable.exists(Jt)||Qe(!1),oe&&ae.updateDroppableIsEnabled({id:Jt,isEnabled:Kn})},Fe=function(Jt,Kn){oe&&(te.droppable.exists(Jt)||Qe(!1),ae.updateDroppableIsCombineEnabled({id:Jt,isCombineEnabled:Kn}))},Re=function(Jt,Kn){oe&&(te.droppable.exists(Jt)||Qe(!1),ae.updateDroppableScroll({id:Jt,newScroll:Kn}))},Ze=function(Jt,Kn){oe&&te.droppable.getById(Jt).callbacks.scroll(Kn)},yt=function(){if(oe){ge.stop();var Jt=oe.critical.droppable;te.droppable.getAllByType(Jt.type).forEach(function(Kn){return Kn.callbacks.dragStopped()}),oe.unsubscribe(),oe=null}},Tt=function(Jt){oe||Qe(!1);var Kn=oe.critical.draggable;Jt.type==="ADDITION"&&lo(te,Kn,Jt.value)&&ge.add(Jt.value),Jt.type==="REMOVAL"&&lo(te,Kn,Jt.value)&&ge.remove(Jt.value)},Mt=function(Jt){oe&&Qe(!1);var Kn=te.draggable.getById(Jt.draggableId),ir=te.droppable.getById(Kn.descriptor.droppableId),gr={draggable:Kn.descriptor,droppable:ir.descriptor},Sr=te.subscribe(Tt);return oe={critical:gr,unsubscribe:Sr},Po({critical:gr,registry:te,scrollOptions:Jt.scrollOptions})},Dt={updateDroppableIsEnabled:xe,updateDroppableIsCombineEnabled:Fe,scrollDroppable:Ze,updateDroppableScroll:Re,startPublishing:Mt,stopPublishing:yt};return Dt},vo=function(te,ae){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===ae?!1:te.completed.result.reason==="DROP"},Bo=function(te){window.scrollBy(te.x,te.y)},ka=Wt(function(te){return Oo(te).filter(function(ae){return!(!ae.isEnabled||!ae.frame)})}),wo=function(ae,oe){var ge=eo(ka(oe),function(xe){return xe.frame||Qe(!1),wi(xe.frame.pageMarginBox)(ae)});return ge},Ci=function(te){var ae=te.center,oe=te.destination,ge=te.droppables;if(oe){var xe=ge[oe];return xe.frame?xe:null}var Fe=wo(ae,ge);return Fe},Do={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Qr=function(te,ae){var oe=te[ae.size]*Do.startFromPercentage,ge=te[ae.size]*Do.maxScrollAtPercentage,xe={startScrollingFrom:oe,maxScrollValueAt:ge};return xe},xi=function(te){var ae=te.startOfRange,oe=te.endOfRange,ge=te.current,xe=oe-ae;if(xe===0)return 0;var Fe=ge-ae,Re=Fe/xe;return Re},Vr=1,gi=function(te,ae){if(te>ae.startScrollingFrom)return 0;if(te<=ae.maxScrollValueAt)return Do.maxPixelScroll;if(te===ae.startScrollingFrom)return Vr;var oe=xi({startOfRange:ae.maxScrollValueAt,endOfRange:ae.startScrollingFrom,current:te}),ge=1-oe,xe=Do.maxPixelScroll*Do.ease(ge);return Math.ceil(xe)},Ho=Do.durationDampening.accelerateAt,_i=Do.durationDampening.stopDampeningAt,Xr=function(te,ae){var oe=ae,ge=_i,xe=Date.now(),Fe=xe-oe;if(Fe>=_i)return te;if(Fe<Ho)return Vr;var Re=xi({startOfRange:Ho,endOfRange:ge,current:Fe}),Ze=te*Do.ease(Re);return Math.ceil(Ze)},Mr=function(te){var ae=te.distanceToEdge,oe=te.thresholds,ge=te.dragStartTime,xe=te.shouldUseTimeDampening,Fe=gi(ae,oe);return Fe===0?0:xe?Math.max(Xr(Fe,ge),Vr):Fe},$r=function(te){var ae=te.container,oe=te.distanceToEdges,ge=te.dragStartTime,xe=te.axis,Fe=te.shouldUseTimeDampening,Re=Qr(ae,xe),Ze=oe[xe.end]<oe[xe.start];return Ze?Mr({distanceToEdge:oe[xe.end],thresholds:Re,dragStartTime:ge,shouldUseTimeDampening:Fe}):-1*Mr({distanceToEdge:oe[xe.start],thresholds:Re,dragStartTime:ge,shouldUseTimeDampening:Fe})},kr=function(te){var ae=te.container,oe=te.subject,ge=te.proposedScroll,xe=oe.height>ae.height,Fe=oe.width>ae.width;return!Fe&&!xe?ge:Fe&&xe?null:{x:Fe?0:ge.x,y:xe?0:ge.y}},ce=xr(function(te){return te===0?0:te}),pe=function(te){var ae=te.dragStartTime,oe=te.container,ge=te.subject,xe=te.center,Fe=te.shouldUseTimeDampening,Re={top:xe.y-oe.top,right:oe.right-xe.x,bottom:oe.bottom-xe.y,left:xe.x-oe.left},Ze=$r({container:oe,distanceToEdges:Re,dragStartTime:ae,axis:ji,shouldUseTimeDampening:Fe}),yt=$r({container:oe,distanceToEdges:Re,dragStartTime:ae,axis:cl,shouldUseTimeDampening:Fe}),Tt=ce({x:yt,y:Ze});if(Ir(Tt,dr))return null;var Mt=kr({container:oe,subject:ge,proposedScroll:Tt});return Mt?Ir(Mt,dr)?null:Mt:null},Pe=xr(function(te){return te===0?0:te>0?1:-1}),Lt=function(){var te=function(oe,ge){return oe<0?oe:oe>ge?oe-ge:0};return function(ae){var oe=ae.current,ge=ae.max,xe=ae.change,Fe=Nr(oe,xe),Re={x:te(Fe.x,ge.x),y:te(Fe.y,ge.y)};return Ir(Re,dr)?null:Re}}(),tn=function(ae){var oe=ae.max,ge=ae.current,xe=ae.change,Fe={x:Math.max(ge.x,oe.x),y:Math.max(ge.y,oe.y)},Re=Pe(xe),Ze=Lt({max:Fe,current:ge,change:Re});return!Ze||Re.x!==0&&Ze.x===0||Re.y!==0&&Ze.y===0},Aa=function(ae,oe){return tn({current:ae.scroll.current,max:ae.scroll.max,change:oe})},ma=function(ae,oe){if(!Aa(ae,oe))return null;var ge=ae.scroll.max,xe=ae.scroll.current;return Lt({current:xe,max:ge,change:oe})},Tn=function(ae,oe){var ge=ae.frame;return ge?tn({current:ge.scroll.current,max:ge.scroll.max,change:oe}):!1},jt=function(ae,oe){var ge=ae.frame;return!ge||!Tn(ae,oe)?null:Lt({current:ge.scroll.current,max:ge.scroll.max,change:oe})},Jn=function(te){var ae=te.viewport,oe=te.subject,ge=te.center,xe=te.dragStartTime,Fe=te.shouldUseTimeDampening,Re=pe({dragStartTime:xe,container:ae.frame,subject:oe,center:ge,shouldUseTimeDampening:Fe});return Re&&Aa(ae,Re)?Re:null},Fn=function(te){var ae=te.droppable,oe=te.subject,ge=te.center,xe=te.dragStartTime,Fe=te.shouldUseTimeDampening,Re=ae.frame;if(!Re)return null;var Ze=pe({dragStartTime:xe,container:Re.pageMarginBox,subject:oe,center:ge,shouldUseTimeDampening:Fe});return Ze&&Tn(ae,Ze)?Ze:null},bt=function(te){var ae=te.state,oe=te.dragStartTime,ge=te.shouldUseTimeDampening,xe=te.scrollWindow,Fe=te.scrollDroppable,Re=ae.current.page.borderBoxCenter,Ze=ae.dimensions.draggables[ae.critical.draggable.id],yt=Ze.page.marginBox;if(ae.isWindowScrollAllowed){var Tt=ae.viewport,Mt=Jn({dragStartTime:oe,viewport:Tt,subject:yt,center:Re,shouldUseTimeDampening:ge});if(Mt){xe(Mt);return}}var Dt=Ci({center:Re,destination:Wi(ae.impact),droppables:ae.dimensions.droppables});if(Dt){var Nt=Fn({dragStartTime:oe,droppable:Dt,subject:yt,center:Re,shouldUseTimeDampening:ge});Nt&&Fe(Dt.descriptor.id,Nt)}},sn=function(te){var ae=te.scrollWindow,oe=te.scrollDroppable,ge=Bn(ae),xe=Bn(oe),Fe=null,Re=function(Mt){Fe||Qe(!1);var Dt=Fe,Nt=Dt.shouldUseTimeDampening,Jt=Dt.dragStartTime;bt({state:Mt,scrollWindow:ge,scrollDroppable:xe,dragStartTime:Jt,shouldUseTimeDampening:Nt})},Ze=function(Mt){cu(),Fe&&Qe(!1);var Dt=Date.now(),Nt=!1,Jt=function(){Nt=!0};bt({state:Mt,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Jt,scrollDroppable:Jt}),Fe={dragStartTime:Dt,shouldUseTimeDampening:Nt},Yi(),Nt&&Re(Mt)},yt=function(){Fe&&(ge.cancel(),xe.cancel(),Fe=null)};return{start:Ze,stop:yt,scroll:Re}},An=function(te){var ae=te.move,oe=te.scrollDroppable,ge=te.scrollWindow,xe=function(Tt,Mt){var Dt=Nr(Tt.current.client.selection,Mt);ae({client:Dt})},Fe=function(Tt,Mt){if(!Tn(Tt,Mt))return Mt;var Dt=jt(Tt,Mt);if(!Dt)return oe(Tt.descriptor.id,Mt),null;var Nt=Zr(Mt,Dt);oe(Tt.descriptor.id,Nt);var Jt=Zr(Mt,Nt);return Jt},Re=function(Tt,Mt,Dt){if(!Tt||!Aa(Mt,Dt))return Dt;var Nt=ma(Mt,Dt);if(!Nt)return ge(Dt),null;var Jt=Zr(Dt,Nt);ge(Jt);var Kn=Zr(Dt,Jt);return Kn},Ze=function(Tt){var Mt=Tt.scrollJumpRequest;if(Mt){var Dt=Wi(Tt.impact);Dt||Qe(!1);var Nt=Fe(Tt.dimensions.droppables[Dt],Mt);if(Nt){var Jt=Tt.viewport,Kn=Re(Tt.isWindowScrollAllowed,Jt,Nt);Kn&&xe(Tt,Kn)}}};return Ze},ia=function(te){var ae=te.scrollDroppable,oe=te.scrollWindow,ge=te.move,xe=sn({scrollWindow:oe,scrollDroppable:ae}),Fe=An({move:ge,scrollWindow:oe,scrollDroppable:ae}),Re=function(Tt){if(Tt.phase==="DRAGGING"){if(Tt.movementMode==="FLUID"){xe.scroll(Tt);return}Tt.scrollJumpRequest&&Fe(Tt)}},Ze={scroll:Re,start:xe.start,stop:xe.stop};return Ze},Zn="data-rbd",xa=function(){var te=Zn+"-drag-handle";return{base:te,draggableId:te+"-draggable-id",contextId:te+"-context-id"}}(),ta=function(){var te=Zn+"-draggable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),la=function(){var te=Zn+"-droppable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),Ua={contextId:Zn+"-scroll-container-context-id"},bn=function(ae){return function(oe){return"["+oe+'="'+ae+'"]'}},Ca=function(ae,oe){return ae.map(function(ge){var xe=ge.styles[oe];return xe?ge.selector+" { "+xe+" }":""}).join(" ")},Ha="pointer-events: none;",Yr=function(te){var ae=bn(te),oe=function(){var Ze=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:ae(xa.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ze,dragging:Ha,dropAnimating:Ze}}}(),ge=function(){var Ze=`
transition: `+Si.outOfTheWay+`;
`;return{selector:ae(ta.contextId),styles:{dragging:Ze,dropAnimating:Ze,userCancel:Ze}}}(),xe={selector:ae(la.contextId),styles:{always:"overflow-anchor: none;"}},Fe={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},Re=[ge,oe,xe,Fe];return{always:Ca(Re,"always"),resting:Ca(Re,"resting"),dragging:Ca(Re,"dragging"),dropAnimating:Ca(Re,"dropAnimating"),userCancel:Ca(Re,"userCancel")}},cr=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,ii=function(){var ae=document.querySelector("head");return ae||Qe(!1),ae},Za=function(ae){var oe=document.createElement("style");return ae&&oe.setAttribute("nonce",ae),oe.type="text/css",oe};function bo(te,ae){var oe=wt(function(){return Yr(te)},[te]),ge=(0,b.useRef)(null),xe=(0,b.useRef)(null),Fe=Rt(Wt(function(Dt){var Nt=xe.current;Nt||Qe(!1),Nt.textContent=Dt}),[]),Re=Rt(function(Dt){var Nt=ge.current;Nt||Qe(!1),Nt.textContent=Dt},[]);cr(function(){!ge.current&&!xe.current||Qe(!1);var Dt=Za(ae),Nt=Za(ae);return ge.current=Dt,xe.current=Nt,Dt.setAttribute(Zn+"-always",te),Nt.setAttribute(Zn+"-dynamic",te),ii().appendChild(Dt),ii().appendChild(Nt),Re(oe.always),Fe(oe.resting),function(){var Jt=function(ir){var gr=ir.current;gr||Qe(!1),ii().removeChild(gr),ir.current=null};Jt(ge),Jt(xe)}},[ae,Re,Fe,oe.always,oe.resting,te]);var Ze=Rt(function(){return Fe(oe.dragging)},[Fe,oe.dragging]),yt=Rt(function(Dt){if(Dt==="DROP"){Fe(oe.dropAnimating);return}Fe(oe.userCancel)},[Fe,oe.dropAnimating,oe.userCancel]),Tt=Rt(function(){xe.current&&Fe(oe.resting)},[Fe,oe.resting]),Mt=wt(function(){return{dragging:Ze,dropping:yt,resting:Tt}},[Ze,yt,Tt]);return Mt}var Cr=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function to(te){return te instanceof Cr(te).HTMLElement}function So(te,ae){var oe="["+xa.contextId+'="'+te+'"]',ge=Pr(document.querySelectorAll(oe));if(!ge.length)return null;var xe=eo(ge,function(Fe){return Fe.getAttribute(xa.draggableId)===ae});return!xe||!to(xe)?null:xe}function Ei(te){var ae=(0,b.useRef)({}),oe=(0,b.useRef)(null),ge=(0,b.useRef)(null),xe=(0,b.useRef)(!1),Fe=Rt(function(Nt,Jt){var Kn={id:Nt,focus:Jt};return ae.current[Nt]=Kn,function(){var gr=ae.current,Sr=gr[Nt];Sr!==Kn&&delete gr[Nt]}},[]),Re=Rt(function(Nt){var Jt=So(te,Nt);Jt&&Jt!==document.activeElement&&Jt.focus()},[te]),Ze=Rt(function(Nt,Jt){oe.current===Nt&&(oe.current=Jt)},[]),yt=Rt(function(){ge.current||xe.current&&(ge.current=requestAnimationFrame(function(){ge.current=null;var Nt=oe.current;Nt&&Re(Nt)}))},[Re]),Tt=Rt(function(Nt){oe.current=null;var Jt=document.activeElement;Jt&&Jt.getAttribute(xa.draggableId)===Nt&&(oe.current=Nt)},[]);cr(function(){return xe.current=!0,function(){xe.current=!1;var Nt=ge.current;Nt&&cancelAnimationFrame(Nt)}},[]);var Mt=wt(function(){return{register:Fe,tryRecordFocus:Tt,tryRestoreFocusRecorded:yt,tryShiftRecord:Ze}},[Fe,Tt,yt,Ze]);return Mt}function mi(){var te={draggables:{},droppables:{}},ae=[];function oe(Dt){return ae.push(Dt),function(){var Jt=ae.indexOf(Dt);Jt!==-1&&ae.splice(Jt,1)}}function ge(Dt){ae.length&&ae.forEach(function(Nt){return Nt(Dt)})}function xe(Dt){return te.draggables[Dt]||null}function Fe(Dt){var Nt=xe(Dt);return Nt||Qe(!1),Nt}var Re={register:function(Nt){te.draggables[Nt.descriptor.id]=Nt,ge({type:"ADDITION",value:Nt})},update:function(Nt,Jt){var Kn=te.draggables[Jt.descriptor.id];Kn&&Kn.uniqueId===Nt.uniqueId&&(delete te.draggables[Jt.descriptor.id],te.draggables[Nt.descriptor.id]=Nt)},unregister:function(Nt){var Jt=Nt.descriptor.id,Kn=xe(Jt);Kn&&Nt.uniqueId===Kn.uniqueId&&(delete te.draggables[Jt],ge({type:"REMOVAL",value:Nt}))},getById:Fe,findById:xe,exists:function(Nt){return!!xe(Nt)},getAllByType:function(Nt){return Fo(te.draggables).filter(function(Jt){return Jt.descriptor.type===Nt})}};function Ze(Dt){return te.droppables[Dt]||null}function yt(Dt){var Nt=Ze(Dt);return Nt||Qe(!1),Nt}var Tt={register:function(Nt){te.droppables[Nt.descriptor.id]=Nt},unregister:function(Nt){var Jt=Ze(Nt.descriptor.id);Jt&&Nt.uniqueId===Jt.uniqueId&&delete te.droppables[Nt.descriptor.id]},getById:yt,findById:Ze,exists:function(Nt){return!!Ze(Nt)},getAllByType:function(Nt){return Fo(te.droppables).filter(function(Jt){return Jt.descriptor.type===Nt})}};function Mt(){te.draggables={},te.droppables={},ae.length=0}return{draggable:Re,droppable:Tt,subscribe:oe,clean:Mt}}function hr(){var te=wt(mi,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(te.clean)}},[te]),te}var po=b.createContext(null),Vi=function(){var te=document.body;return te||Qe(!1),te},Ri={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ea=function(ae){return"rbd-announcement-"+ae};function Co(te){var ae=wt(function(){return ea(te)},[te]),oe=(0,b.useRef)(null);(0,b.useEffect)(function(){var Fe=document.createElement("div");return oe.current=Fe,Fe.id=ae,Fe.setAttribute("aria-live","assertive"),Fe.setAttribute("aria-atomic","true"),(0,Ae.Z)(Fe.style,Ri),Vi().appendChild(Fe),function(){setTimeout(function(){var yt=Vi();yt.contains(Fe)&&yt.removeChild(Fe),Fe===oe.current&&(oe.current=null)})}},[ae]);var ge=Rt(function(xe){var Fe=oe.current;if(Fe){Fe.textContent=xe;return}},[]);return ge}var Mi=0,jo={separator:"::"};function Fi(){Mi=0}function ki(te,ae){return ae===void 0&&(ae=jo),wt(function(){return""+te+ae.separator+Mi++},[ae.separator,te])}function ri(te){var ae=te.contextId,oe=te.uniqueId;return"rbd-hidden-text-"+ae+"-"+oe}function il(te){var ae=te.contextId,oe=te.text,ge=ki("hidden-text",{separator:"-"}),xe=wt(function(){return ri({contextId:ae,uniqueId:ge})},[ge,ae]);return(0,b.useEffect)(function(){var Re=document.createElement("div");return Re.id=xe,Re.textContent=oe,Re.style.display="none",Vi().appendChild(Re),function(){var yt=Vi();yt.contains(Re)&&yt.removeChild(Re)}},[xe,oe]),xe}var ll=b.createContext(null),jl={react:"^16.8.5","react-dom":"^16.8.5"},Oi=/(\d+)\.(\d+)\.(\d+)/,dl=function(ae){var oe=Oi.exec(ae);oe==null&&Qe(!1);var ge=Number(oe[1]),xe=Number(oe[2]),Fe=Number(oe[3]);return{major:ge,minor:xe,patch:Fe,raw:ae}},Bl=function(ae,oe){return oe.major>ae.major?!0:oe.major<ae.major?!1:oe.minor>ae.minor?!0:oe.minor<ae.minor?!1:oe.patch>=ae.patch},Gl=function(te,ae){var oe=dl(te),ge=dl(ae);Bl(oe,ge)},No=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,Pi=function(te){var ae=te.doctype;ae&&(ae.name.toLowerCase(),ae.publicId)};function Ui(te){}function Zi(te,ae){}function hl(){Zi(function(){Gl(jl.react,b.version),Pi(document)},[])}function ul(te){var ae=(0,b.useRef)(te);return(0,b.useEffect)(function(){ae.current=te}),ae}function sl(){var te=null;function ae(){return!!te}function oe(Re){return Re===te}function ge(Re){te&&Qe(!1);var Ze={abandon:Re};return te=Ze,Ze}function xe(){te||Qe(!1),te=null}function Fe(){te&&(te.abandon(),xe())}return{isClaimed:ae,isActive:oe,claim:ge,release:xe,tryAbandon:Fe}}var wl=9,Rl=13,ml=27,qi=32,Wl=33,Jo=34,vu=35,pu=36,Kl=37,gu=38,ua=39,qa=40,Wo,uo=(Wo={},Wo[Rl]=!0,Wo[wl]=!0,Wo),xo=function(te){uo[te.keyCode]&&te.preventDefault()},Xo=function(){var te="visibilitychange";if(typeof document=="undefined")return te;var ae=[te,"ms"+te,"webkit"+te,"moz"+te,"o"+te],oe=eo(ae,function(ge){return"on"+ge in document});return oe||te}(),$i=0,Ai=5;function fl(te,ae){return Math.abs(ae.x-te.x)>=Ai||Math.abs(ae.y-te.y)>=Ai}var el={type:"IDLE"};function Ml(te){var ae=te.cancel,oe=te.completed,ge=te.getPhase,xe=te.setPhase;return[{eventName:"mousemove",fn:function(Re){var Ze=Re.button,yt=Re.clientX,Tt=Re.clientY;if(Ze===$i){var Mt={x:yt,y:Tt},Dt=ge();if(Dt.type==="DRAGGING"){Re.preventDefault(),Dt.actions.move(Mt);return}Dt.type!=="PENDING"&&Qe(!1);var Nt=Dt.point;if(fl(Nt,Mt)){Re.preventDefault();var Jt=Dt.actions.fluidLift(Mt);xe({type:"DRAGGING",actions:Jt})}}}},{eventName:"mouseup",fn:function(Re){var Ze=ge();if(Ze.type!=="DRAGGING"){ae();return}Re.preventDefault(),Ze.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"mousedown",fn:function(Re){ge().type==="DRAGGING"&&Re.preventDefault(),ae()}},{eventName:"keydown",fn:function(Re){var Ze=ge();if(Ze.type==="PENDING"){ae();return}if(Re.keyCode===ml){Re.preventDefault(),ae();return}xo(Re)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ge().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function(Re){var Ze=ge();if(Ze.type==="IDLE"&&Qe(!1),Ze.actions.shouldRespectForcePress()){ae();return}Re.preventDefault()}},{eventName:Xo,fn:ae}]}function ou(te){var ae=(0,b.useRef)(el),oe=(0,b.useRef)(ba),ge=wt(function(){return{eventName:"mousedown",fn:function(Dt){if(!Dt.defaultPrevented&&Dt.button===$i&&!(Dt.ctrlKey||Dt.metaKey||Dt.shiftKey||Dt.altKey)){var Nt=te.findClosestDraggableId(Dt);if(Nt){var Jt=te.tryGetLock(Nt,Re,{sourceEvent:Dt});if(Jt){Dt.preventDefault();var Kn={x:Dt.clientX,y:Dt.clientY};oe.current(),Tt(Jt,Kn)}}}}}},[te]),xe=wt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Dt){if(!Dt.defaultPrevented){var Nt=te.findClosestDraggableId(Dt);if(Nt){var Jt=te.findOptionsForDraggable(Nt);Jt&&(Jt.shouldRespectForcePress||te.canGetLock(Nt)&&Dt.preventDefault())}}}}},[te]),Fe=Rt(function(){var Dt={passive:!1,capture:!0};oe.current=mr(window,[xe,ge],Dt)},[xe,ge]),Re=Rt(function(){var Mt=ae.current;Mt.type!=="IDLE"&&(ae.current=el,oe.current(),Fe())},[Fe]),Ze=Rt(function(){var Mt=ae.current;Re(),Mt.type==="DRAGGING"&&Mt.actions.cancel({shouldBlockNextClick:!0}),Mt.type==="PENDING"&&Mt.actions.abort()},[Re]),yt=Rt(function(){var Dt={capture:!0,passive:!1},Nt=Ml({cancel:Ze,completed:Re,getPhase:function(){return ae.current},setPhase:function(Kn){ae.current=Kn}});oe.current=mr(window,Nt,Dt)},[Ze,Re]),Tt=Rt(function(Dt,Nt){ae.current.type!=="IDLE"&&Qe(!1),ae.current={type:"PENDING",point:Nt,actions:Dt},yt()},[yt]);cr(function(){return Fe(),function(){oe.current()}},[Fe])}var ei;function Hi(){}var Dl=(ei={},ei[Jo]=!0,ei[Wl]=!0,ei[pu]=!0,ei[vu]=!0,ei);function Sl(te,ae){function oe(){ae(),te.cancel()}function ge(){ae(),te.drop()}return[{eventName:"keydown",fn:function(Fe){if(Fe.keyCode===ml){Fe.preventDefault(),oe();return}if(Fe.keyCode===qi){Fe.preventDefault(),ge();return}if(Fe.keyCode===qa){Fe.preventDefault(),te.moveDown();return}if(Fe.keyCode===gu){Fe.preventDefault(),te.moveUp();return}if(Fe.keyCode===ua){Fe.preventDefault(),te.moveRight();return}if(Fe.keyCode===Kl){Fe.preventDefault(),te.moveLeft();return}if(Dl[Fe.keyCode]){Fe.preventDefault();return}xo(Fe)}},{eventName:"mousedown",fn:oe},{eventName:"mouseup",fn:oe},{eventName:"click",fn:oe},{eventName:"touchstart",fn:oe},{eventName:"resize",fn:oe},{eventName:"wheel",fn:oe,options:{passive:!0}},{eventName:Xo,fn:oe}]}function Vl(te){var ae=(0,b.useRef)(Hi),oe=wt(function(){return{eventName:"keydown",fn:function(Fe){if(Fe.defaultPrevented||Fe.keyCode!==qi)return;var Re=te.findClosestDraggableId(Fe);if(!Re)return;var Ze=te.tryGetLock(Re,Mt,{sourceEvent:Fe});if(!Ze)return;Fe.preventDefault();var yt=!0,Tt=Ze.snapLift();ae.current();function Mt(){yt||Qe(!1),yt=!1,ae.current(),ge()}ae.current=mr(window,Sl(Tt,Mt),{capture:!0,passive:!1})}}},[te]),ge=Rt(function(){var Fe={passive:!1,capture:!0};ae.current=mr(window,[oe],Fe)},[oe]);cr(function(){return ge(),function(){ae.current()}},[ge])}var kl={type:"IDLE"},Ku=120,Vu=.15;function $u(te){var ae=te.cancel,oe=te.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(xe){xe.preventDefault()}},{eventName:"keydown",fn:function(xe){if(oe().type!=="DRAGGING"){ae();return}xe.keyCode===ml&&xe.preventDefault(),ae()}},{eventName:Xo,fn:ae}]}function hu(te){var ae=te.cancel,oe=te.completed,ge=te.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Fe){var Re=ge();if(Re.type!=="DRAGGING"){ae();return}Re.hasMoved=!0;var Ze=Fe.touches[0],yt=Ze.clientX,Tt=Ze.clientY,Mt={x:yt,y:Tt};Fe.preventDefault(),Re.actions.move(Mt)}},{eventName:"touchend",fn:function(Fe){var Re=ge();if(Re.type!=="DRAGGING"){ae();return}Fe.preventDefault(),Re.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"touchcancel",fn:function(Fe){if(ge().type!=="DRAGGING"){ae();return}Fe.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(Fe){var Re=ge();Re.type==="IDLE"&&Qe(!1);var Ze=Fe.touches[0];if(Ze){var yt=Ze.force>=Vu;if(yt){var Tt=Re.actions.shouldRespectForcePress();if(Re.type==="PENDING"){Tt&&ae();return}if(Tt){if(Re.hasMoved){Fe.preventDefault();return}ae();return}Fe.preventDefault()}}}},{eventName:Xo,fn:ae}]}function Es(te){var ae=(0,b.useRef)(kl),oe=(0,b.useRef)(ba),ge=Rt(function(){return ae.current},[]),xe=Rt(function(Jt){ae.current=Jt},[]),Fe=wt(function(){return{eventName:"touchstart",fn:function(Jt){if(!Jt.defaultPrevented){var Kn=te.findClosestDraggableId(Jt);if(Kn){var ir=te.tryGetLock(Kn,Ze,{sourceEvent:Jt});if(ir){var gr=Jt.touches[0],Sr=gr.clientX,Wr=gr.clientY,no={x:Sr,y:Wr};oe.current(),Dt(ir,no)}}}}}},[te]),Re=Rt(function(){var Jt={capture:!0,passive:!1};oe.current=mr(window,[Fe],Jt)},[Fe]),Ze=Rt(function(){var Nt=ae.current;Nt.type!=="IDLE"&&(Nt.type==="PENDING"&&clearTimeout(Nt.longPressTimerId),xe(kl),oe.current(),Re())},[Re,xe]),yt=Rt(function(){var Nt=ae.current;Ze(),Nt.type==="DRAGGING"&&Nt.actions.cancel({shouldBlockNextClick:!0}),Nt.type==="PENDING"&&Nt.actions.abort()},[Ze]),Tt=Rt(function(){var Jt={capture:!0,passive:!1},Kn={cancel:yt,completed:Ze,getPhase:ge},ir=mr(window,hu(Kn),Jt),gr=mr(window,$u(Kn),Jt);oe.current=function(){ir(),gr()}},[yt,ge,Ze]),Mt=Rt(function(){var Jt=ge();Jt.type!=="PENDING"&&Qe(!1);var Kn=Jt.actions.fluidLift(Jt.point);xe({type:"DRAGGING",actions:Kn,hasMoved:!1})},[ge,xe]),Dt=Rt(function(Jt,Kn){ge().type!=="IDLE"&&Qe(!1);var ir=setTimeout(Mt,Ku);xe({type:"PENDING",point:Kn,actions:Jt,longPressTimerId:ir}),Tt()},[Tt,ge,xe,Mt]);cr(function(){return Re(),function(){oe.current();var Kn=ge();Kn.type==="PENDING"&&(clearTimeout(Kn.longPressTimerId),xe(kl))}},[ge,Re,xe]),cr(function(){var Jt=mr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Jt},[])}function vs(te){}var ds={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Qa(te,ae){if(ae==null)return!1;var oe=!!ds[ae.tagName.toLowerCase()];if(oe)return!0;var ge=ae.getAttribute("contenteditable");return ge==="true"||ge===""?!0:ae===te?!1:Qa(te,ae.parentElement)}function oo(te,ae){var oe=ae.target;return to(oe)?Qa(te,oe):!1}var Qo=function(te){return Vn(te.getBoundingClientRect()).center};function di(te){return te instanceof Cr(te).Element}var ti=function(){var te="matches";if(typeof document=="undefined")return te;var ae=[te,"msMatchesSelector","webkitMatchesSelector"],oe=eo(ae,function(ge){return ge in Element.prototype});return oe||te}();function Ko(te,ae){return te==null?null:te[ti](ae)?te:Ko(te.parentElement,ae)}function Li(te,ae){return te.closest?te.closest(ae):Ko(te,ae)}function Ki(te){return"["+xa.contextId+'="'+te+'"]'}function bl(te,ae){var oe=ae.target;if(!di(oe))return null;var ge=Ki(te),xe=Li(oe,ge);return!xe||!to(xe)?null:xe}function $l(te,ae){var oe=bl(te,ae);return oe?oe.getAttribute(xa.draggableId):null}function Su(te,ae){var oe="["+ta.contextId+'="'+te+'"]',ge=Pr(document.querySelectorAll(oe)),xe=eo(ge,function(Fe){return Fe.getAttribute(ta.id)===ae});return!xe||!to(xe)?null:xe}function Ol(te){te.preventDefault()}function Ul(te){var ae=te.expected,oe=te.phase,ge=te.isLockActive,xe=te.shouldWarn;return!(!ge()||ae!==oe)}function Eu(te){var ae=te.lockAPI,oe=te.store,ge=te.registry,xe=te.draggableId;if(ae.isClaimed())return!1;var Fe=ge.draggable.findById(xe);return!(!Fe||!Fe.options.isEnabled||!vo(oe.getState(),xe))}function Du(te){var ae=te.lockAPI,oe=te.contextId,ge=te.store,xe=te.registry,Fe=te.draggableId,Re=te.forceSensorStop,Ze=te.sourceEvent,yt=Eu({lockAPI:ae,store:ge,registry:xe,draggableId:Fe});if(!yt)return null;var Tt=xe.draggable.getById(Fe),Mt=Su(oe,Tt.descriptor.id);if(!Mt||Ze&&!Tt.options.canDragInteractiveElements&&oo(Mt,Ze))return null;var Dt=ae.claim(Re||ba),Nt="PRE_DRAG";function Jt(){return Tt.options.shouldRespectForcePress}function Kn(){return ae.isActive(Dt)}function ir(ni,Ni){Ul({expected:ni,phase:Nt,isLockActive:Kn,shouldWarn:!0})&&ge.dispatch(Ni())}var gr=ir.bind(null,"DRAGGING");function Sr(ni){function Ni(){ae.release(),Nt="COMPLETED"}Nt!=="PRE_DRAG"&&(Ni(),Nt!=="PRE_DRAG"&&Qe(!1)),ge.dispatch(Se(ni.liftActionArgs)),Nt="DRAGGING";function vl(Ti,pl){if(pl===void 0&&(pl={shouldBlockNextClick:!1}),ni.cleanup(),pl.shouldBlockNextClick){var Ll=mr(window,[{eventName:"click",fn:Ol,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Ll)}Ni(),ge.dispatch(Br({reason:Ti}))}return(0,Ae.Z)({isActive:function(){return Ul({expected:"DRAGGING",phase:Nt,isLockActive:Kn,shouldWarn:!1})},shouldRespectForcePress:Jt,drop:function(pl){return vl("DROP",pl)},cancel:function(pl){return vl("CANCEL",pl)}},ni.actions)}function Wr(ni){var Ni=Bn(function(Ti){gr(function(){return Mn({client:Ti})})}),vl=Sr({liftActionArgs:{id:Fe,clientSelection:ni,movementMode:"FLUID"},cleanup:function(){return Ni.cancel()},actions:{move:Ni}});return(0,Ae.Z)({},vl,{move:Ni})}function no(){var ni={moveUp:function(){return gr(ga)},moveRight:function(){return gr(Da)},moveDown:function(){return gr(gn)},moveLeft:function(){return gr(Ra)}};return Sr({liftActionArgs:{id:Fe,clientSelection:Qo(Mt),movementMode:"SNAP"},cleanup:ba,actions:ni})}function mo(){var ni=Ul({expected:"PRE_DRAG",phase:Nt,isLockActive:Kn,shouldWarn:!0});ni&&ae.release()}var li={isActive:function(){return Ul({expected:"PRE_DRAG",phase:Nt,isLockActive:Kn,shouldWarn:!1})},shouldRespectForcePress:Jt,fluidLift:Wr,snapLift:no,abort:mo};return li}var ps=[ou,Vl,Es];function hs(te){var ae=te.contextId,oe=te.store,ge=te.registry,xe=te.customSensors,Fe=te.enableDefaultSensors,Re=[].concat(Fe?ps:[],xe||[]),Ze=(0,b.useState)(function(){return sl()})[0],yt=Rt(function(Wr,no){Wr.isDragging&&!no.isDragging&&Ze.tryAbandon()},[Ze]);cr(function(){var Wr=oe.getState(),no=oe.subscribe(function(){var mo=oe.getState();yt(Wr,mo),Wr=mo});return no},[Ze,oe,yt]),cr(function(){return Ze.tryAbandon},[Ze.tryAbandon]);var Tt=Rt(function(Sr){return Eu({lockAPI:Ze,registry:ge,store:oe,draggableId:Sr})},[Ze,ge,oe]),Mt=Rt(function(Sr,Wr,no){return Du({lockAPI:Ze,registry:ge,contextId:ae,store:oe,draggableId:Sr,forceSensorStop:Wr,sourceEvent:no&&no.sourceEvent?no.sourceEvent:null})},[ae,Ze,ge,oe]),Dt=Rt(function(Sr){return $l(ae,Sr)},[ae]),Nt=Rt(function(Sr){var Wr=ge.draggable.findById(Sr);return Wr?Wr.options:null},[ge.draggable]),Jt=Rt(function(){Ze.isClaimed()&&(Ze.tryAbandon(),oe.getState().phase!=="IDLE"&&oe.dispatch(Ln()))},[Ze,oe]),Kn=Rt(Ze.isClaimed,[Ze]),ir=wt(function(){return{canGetLock:Tt,tryGetLock:Mt,findClosestDraggableId:Dt,findOptionsForDraggable:Nt,tryReleaseLock:Jt,isLockClaimed:Kn}},[Tt,Mt,Dt,Nt,Jt,Kn]);vs(Re);for(var gr=0;gr<Re.length;gr++)Re[gr](ir)}var yi=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function Ur(te){return te.current||Qe(!1),te.current}function Io(te){var ae=te.contextId,oe=te.setCallbacks,ge=te.sensors,xe=te.nonce,Fe=te.dragHandleUsageInstructions,Re=(0,b.useRef)(null);hl();var Ze=ul(te),yt=Rt(function(){return yi(Ze.current)},[Ze]),Tt=Co(ae),Mt=il({contextId:ae,text:Fe}),Dt=bo(ae,xe),Nt=Rt(function(Ti){Ur(Re).dispatch(Ti)},[]),Jt=wt(function(){return(0,ze.DE)({publishWhileDragging:nt,updateDroppableScroll:en,updateDroppableIsEnabled:Kt,updateDroppableIsCombineEnabled:kn,collectionStarting:it},Nt)},[Nt]),Kn=hr(),ir=wt(function(){return Lr(Kn,Jt)},[Kn,Jt]),gr=wt(function(){return ia((0,Ae.Z)({scrollWindow:Bo,scrollDroppable:ir.scrollDroppable},(0,ze.DE)({move:Mn},Nt)))},[ir.scrollDroppable,Nt]),Sr=Ei(ae),Wr=wt(function(){return _r({announce:Tt,autoScroller:gr,dimensionMarshal:ir,focusMarshal:Sr,getResponders:yt,styleMarshal:Dt})},[Tt,gr,ir,Sr,yt,Dt]);Re.current=Wr;var no=Rt(function(){var Ti=Ur(Re),pl=Ti.getState();pl.phase!=="IDLE"&&Ti.dispatch(Ln())},[]),mo=Rt(function(){var Ti=Ur(Re).getState();return Ti.isDragging||Ti.phase==="DROP_ANIMATING"},[]),li=wt(function(){return{isDragging:mo,tryAbort:no}},[mo,no]);oe(li);var ni=Rt(function(Ti){return vo(Ur(Re).getState(),Ti)},[]),Ni=Rt(function(){return au(Ur(Re).getState())},[]),vl=wt(function(){return{marshal:ir,focus:Sr,contextId:ae,canLift:ni,isMovementAllowed:Ni,dragHandleUsageInstructionsId:Mt,registry:Kn}},[ae,ir,Mt,Sr,ni,Ni,Kn]);return hs({contextId:ae,store:Wr,registry:Kn,customSensors:ge,enableDefaultSensors:te.enableDefaultSensors!==!1}),(0,b.useEffect)(function(){return no},[no]),b.createElement(ll.Provider,{value:vl},b.createElement(x,{context:po,store:Wr},te.children))}var bi=0;function Ji(){bi=0}function Pu(){return wt(function(){return""+bi++},[])}function Ql(){Ji(),Fi()}function iu(te){var ae=Pu(),oe=te.dragHandleUsageInstructions||Cn.dragHandleUsageInstructions;return b.createElement(Pn,null,function(ge){return b.createElement(Io,{nonce:te.nonce,contextId:ae,setCallbacks:ge,dragHandleUsageInstructions:oe,enableDefaultSensors:te.enableDefaultSensors,sensors:te.sensors,onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragUpdate:te.onDragUpdate,onDragEnd:te.onDragEnd},te.children)})}var ql=function(ae){return function(oe){return ae===oe}},cs=ql("scroll"),Uu=ql("auto"),lu=ql("visible"),Hs=function(ae,oe){return oe(ae.overflowX)||oe(ae.overflowY)},ad=function(ae,oe){return oe(ae.overflowX)&&oe(ae.overflowY)},js=function(ae){var oe=window.getComputedStyle(ae),ge={overflowX:oe.overflowX,overflowY:oe.overflowY};return Hs(ge,cs)||Hs(ge,Uu)},rd=function(){return!1;var ae,oe,ge,xe},Gs=function te(ae){return ae==null?null:ae===document.body?rd()?ae:null:ae===document.documentElement?null:js(ae)?ae:te(ae.parentElement)},Jd=function(te){if(te)var ae=Gs(te.parentElement)},Is=function(te){return{x:te.scrollLeft,y:te.scrollTop}},od=function te(ae){if(!ae)return!1;var oe=window.getComputedStyle(ae);return oe.position==="fixed"?!0:te(ae.parentElement)},id=function(te){var ae=Gs(te),oe=od(te);return{closestScrollable:ae,isFixedOnPage:oe}},ld=function(te){var ae=te.descriptor,oe=te.isEnabled,ge=te.isCombineEnabled,xe=te.isFixedOnPage,Fe=te.direction,Re=te.client,Ze=te.page,yt=te.closest,Tt=function(){if(!yt)return null;var Jt=yt.scrollSize,Kn=yt.client,ir=fr({scrollHeight:Jt.scrollHeight,scrollWidth:Jt.scrollWidth,height:Kn.paddingBox.height,width:Kn.paddingBox.width});return{pageMarginBox:yt.page.marginBox,frameClient:Kn,scrollSize:Jt,shouldClipSubject:yt.shouldClipSubject,scroll:{initial:yt.scroll,current:yt.scroll,max:ir,diff:{value:dr,displacement:dr}}}}(),Mt=Fe==="vertical"?ji:cl,Dt=yo({page:Ze,withPlaceholder:null,axis:Mt,frame:Tt}),Nt={descriptor:ae,isCombineEnabled:ge,isFixedOnPage:xe,axis:Mt,isEnabled:oe,client:Re,page:Ze,frame:Tt,subject:Dt};return Nt},ud=function(ae,oe){var ge=Ia(ae);if(!oe||ae!==oe)return ge;var xe=ge.paddingBox.top-oe.scrollTop,Fe=ge.paddingBox.left-oe.scrollLeft,Re=xe+oe.scrollHeight,Ze=Fe+oe.scrollWidth,yt={top:xe,right:Ze,bottom:Re,left:Fe},Tt=va(yt,ge.border),Mt=Ka({borderBox:Tt,margin:ge.margin,border:ge.border,padding:ge.padding});return Mt},sd=function(te){var ae=te.ref,oe=te.descriptor,ge=te.env,xe=te.windowScroll,Fe=te.direction,Re=te.isDropDisabled,Ze=te.isCombineEnabled,yt=te.shouldClipSubject,Tt=ge.closestScrollable,Mt=ud(ae,Tt),Dt=jn(Mt,xe),Nt=function(){if(!Tt)return null;var Kn=Ia(Tt),ir={scrollHeight:Tt.scrollHeight,scrollWidth:Tt.scrollWidth};return{client:Kn,page:jn(Kn,xe),scroll:Is(Tt),scrollSize:ir,shouldClipSubject:yt}}(),Jt=ld({descriptor:oe,isEnabled:!Re,isCombineEnabled:Ze,isFixedOnPage:ge.isFixedOnPage,direction:Fe,client:Mt,page:Dt,closest:Nt});return Jt},dd={passive:!1},cd={passive:!0},Ws=function(te){return te.shouldPublishImmediately?dd:cd};function Cs(te){var ae=(0,b.useContext)(te);return ae||Qe(!1),ae}var xs=function(ae){return ae&&ae.env.closestScrollable||null};function gd(te){var ae=(0,b.useRef)(null),oe=Cs(ll),ge=ki("droppable"),xe=oe.registry,Fe=oe.marshal,Re=ul(te),Ze=wt(function(){return{id:te.droppableId,type:te.type,mode:te.mode}},[te.droppableId,te.mode,te.type]),yt=(0,b.useRef)(Ze),Tt=wt(function(){return Wt(function(mo,li){ae.current||Qe(!1);var ni={x:mo,y:li};Fe.updateDroppableScroll(Ze.id,ni)})},[Ze.id,Fe]),Mt=Rt(function(){var mo=ae.current;return!mo||!mo.env.closestScrollable?dr:Is(mo.env.closestScrollable)},[]),Dt=Rt(function(){var mo=Mt();Tt(mo.x,mo.y)},[Mt,Tt]),Nt=wt(function(){return Bn(Dt)},[Dt]),Jt=Rt(function(){var mo=ae.current,li=xs(mo);mo&&li||Qe(!1);var ni=mo.scrollOptions;if(ni.shouldPublishImmediately){Dt();return}Nt()},[Nt,Dt]),Kn=Rt(function(mo,li){ae.current&&Qe(!1);var ni=Re.current,Ni=ni.getDroppableRef();Ni||Qe(!1);var vl=id(Ni),Ti={ref:Ni,descriptor:Ze,env:vl,scrollOptions:li};ae.current=Ti;var pl=sd({ref:Ni,descriptor:Ze,env:vl,windowScroll:mo,direction:ni.direction,isDropDisabled:ni.isDropDisabled,isCombineEnabled:ni.isCombineEnabled,shouldClipSubject:!ni.ignoreContainerClipping}),Ll=vl.closestScrollable;return Ll&&(Ll.setAttribute(Ua.contextId,oe.contextId),Ll.addEventListener("scroll",Jt,Ws(Ti.scrollOptions))),pl},[oe.contextId,Ze,Jt,Re]),ir=Rt(function(){var mo=ae.current,li=xs(mo);return mo&&li||Qe(!1),Is(li)},[]),gr=Rt(function(){var mo=ae.current;mo||Qe(!1);var li=xs(mo);ae.current=null,li&&(Nt.cancel(),li.removeAttribute(Ua.contextId),li.removeEventListener("scroll",Jt,Ws(mo.scrollOptions)))},[Jt,Nt]),Sr=Rt(function(mo){var li=ae.current;li||Qe(!1);var ni=xs(li);ni||Qe(!1),ni.scrollTop+=mo.y,ni.scrollLeft+=mo.x},[]),Wr=wt(function(){return{getDimensionAndWatchScroll:Kn,getScrollWhileDragging:ir,dragStopped:gr,scroll:Sr}},[gr,Kn,ir,Sr]),no=wt(function(){return{uniqueId:ge,descriptor:Ze,callbacks:Wr}},[Wr,Ze,ge]);cr(function(){return yt.current=no.descriptor,xe.droppable.register(no),function(){ae.current&&gr(),xe.droppable.unregister(no)}},[Wr,Ze,gr,no,Fe,xe.droppable]),cr(function(){ae.current&&Fe.updateDroppableIsEnabled(yt.current.id,!te.isDropDisabled)},[te.isDropDisabled,Fe]),cr(function(){ae.current&&Fe.updateDroppableIsCombineEnabled(yt.current.id,te.isCombineEnabled)},[te.isCombineEnabled,Fe])}function Os(){}var Ks={width:0,height:0,margin:lr},md=function(ae){var oe=ae.isAnimatingOpenOnMount,ge=ae.placeholder,xe=ae.animate;return oe||xe==="close"?Ks:{height:ge.client.borderBox.height,width:ge.client.borderBox.width,margin:ge.client.margin}},fd=function(ae){var oe=ae.isAnimatingOpenOnMount,ge=ae.placeholder,xe=ae.animate,Fe=md({isAnimatingOpenOnMount:oe,placeholder:ge,animate:xe});return{display:ge.display,boxSizing:"border-box",width:Fe.width,height:Fe.height,marginTop:Fe.margin.top,marginRight:Fe.margin.right,marginBottom:Fe.margin.bottom,marginLeft:Fe.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:xe!=="none"?Si.placeholder:null}};function vd(te){var ae=(0,b.useRef)(null),oe=Rt(function(){ae.current&&(clearTimeout(ae.current),ae.current=null)},[]),ge=te.animate,xe=te.onTransitionEnd,Fe=te.onClose,Re=te.contextId,Ze=(0,b.useState)(te.animate==="open"),yt=Ze[0],Tt=Ze[1];(0,b.useEffect)(function(){return yt?ge!=="open"?(oe(),Tt(!1),Os):ae.current?Os:(ae.current=setTimeout(function(){ae.current=null,Tt(!1)}),oe):Os},[ge,yt,oe]);var Mt=Rt(function(Nt){Nt.propertyName==="height"&&(xe(),ge==="close"&&Fe())},[ge,Fe,xe]),Dt=fd({isAnimatingOpenOnMount:yt,animate:te.animate,placeholder:te.placeholder});return b.createElement(te.placeholder.tagName,{style:Dt,"data-rbd-placeholder-context-id":Re,onTransitionEnd:Mt,ref:te.innerRef})}var pd=b.memo(vd),Ls=b.createContext(null);function Vs(te){te&&to(te)||Qe(!1)}function Rs(te){return typeof te=="boolean"}function Ms(te,ae){ae.forEach(function(oe){return oe(te)})}var hd=[function(ae){var oe=ae.props;oe.droppableId||Qe(!1),typeof oe.droppableId!="string"&&Qe(!1)},function(ae){var oe=ae.props;Rs(oe.isDropDisabled)||Qe(!1),Rs(oe.isCombineEnabled)||Qe(!1),Rs(oe.ignoreContainerClipping)||Qe(!1)},function(ae){var oe=ae.getDroppableRef;Vs(oe())}],Sd=[function(ae){var oe=ae.props,ge=ae.getPlaceholderRef;if(oe.placeholder)var xe=ge()}],Ed=[function(ae){var oe=ae.props;oe.renderClone||Qe(!1)},function(ae){var oe=ae.getPlaceholderRef;oe()&&Qe(!1)}];function Pd(te){Zi(function(){Ms(te,hd),te.props.mode==="standard"&&Ms(te,Sd),te.props.mode==="virtual"&&Ms(te,Ed)})}var yd=function(te){Be(ae,te);function ae(){for(var ge,xe=arguments.length,Fe=new Array(xe),Re=0;Re<xe;Re++)Fe[Re]=arguments[Re];return ge=te.call.apply(te,[this].concat(Fe))||this,ge.state={isVisible:!!ge.props.on,data:ge.props.on,animate:ge.props.shouldAnimate&&ge.props.on?"open":"none"},ge.onClose=function(){ge.state.animate==="close"&&ge.setState({isVisible:!1})},ge}ae.getDerivedStateFromProps=function(xe,Fe){return xe.shouldAnimate?xe.on?{isVisible:!0,data:xe.on,animate:"open"}:Fe.isVisible?{isVisible:!0,data:Fe.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!xe.on,data:xe.on,animate:"none"}};var oe=ae.prototype;return oe.render=function(){if(!this.state.isVisible)return null;var xe={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(xe)},ae}(b.PureComponent),$s={dragging:5e3,dropAnimating:4500},bd=function(ae,oe){return oe?Si.drop(oe.duration):ae?Si.snap:Si.fluid},Cd=function(ae,oe){return ae?oe?Go.opacity.drop:Go.opacity.combining:null},xd=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function Fd(te){var ae=te.dimension,oe=ae.client,ge=te.offset,xe=te.combineWith,Fe=te.dropping,Re=!!xe,Ze=xd(te),yt=!!Fe,Tt=yt?ro.drop(ge,Re):ro.moveTo(ge),Mt={position:"fixed",top:oe.marginBox.top,left:oe.marginBox.left,boxSizing:"border-box",width:oe.borderBox.width,height:oe.borderBox.height,transition:bd(Ze,Fe),transform:Tt,opacity:Cd(Re,yt),zIndex:yt?$s.dropAnimating:$s.dragging,pointerEvents:"none"};return Mt}function Bd(te){return{transform:ro.moveTo(te.offset),transition:te.shouldAnimateDisplacement?null:"none"}}function wd(te){return te.type==="DRAGGING"?Fd(te):Bd(te)}function Dd(te,ae,oe){oe===void 0&&(oe=dr);var ge=window.getComputedStyle(ae),xe=ae.getBoundingClientRect(),Fe=Qn(xe,ge),Re=jn(Fe,oe),Ze={client:Fe,tagName:ae.tagName.toLowerCase(),display:ge.display},yt={x:Fe.marginBox.width,y:Fe.marginBox.height},Tt={descriptor:te,placeholder:Ze,displaceBy:yt,client:Fe,page:Re};return Tt}function Ad(te){var ae=ki("draggable"),oe=te.descriptor,ge=te.registry,xe=te.getDraggableRef,Fe=te.canDragInteractiveElements,Re=te.shouldRespectForcePress,Ze=te.isEnabled,yt=wt(function(){return{canDragInteractiveElements:Fe,shouldRespectForcePress:Re,isEnabled:Ze}},[Fe,Ze,Re]),Tt=Rt(function(Jt){var Kn=xe();return Kn||Qe(!1),Dd(oe,Kn,Jt)},[oe,xe]),Mt=wt(function(){return{uniqueId:ae,descriptor:oe,options:yt,getDimension:Tt}},[oe,Tt,yt,ae]),Dt=(0,b.useRef)(Mt),Nt=(0,b.useRef)(!0);cr(function(){return ge.draggable.register(Dt.current),function(){return ge.draggable.unregister(Dt.current)}},[ge.draggable]),cr(function(){if(Nt.current){Nt.current=!1;return}var Jt=Dt.current;Dt.current=Mt,ge.draggable.update(Mt,Jt)},[Mt,ge.draggable])}function Nd(te,ae,oe){Zi(function(){function ge(Fe){return"Draggable[id: "+Fe+"]: "}var xe=te.draggableId;xe||Qe(!1),typeof xe!="string"&&Qe(!1),Yo(te.index)||Qe(!1),te.mapped.type!=="DRAGGING"&&(Vs(oe()),te.isEnabled&&(So(ae,xe)||Qe(!1)))})}function Id(te){}function Od(te){te.preventDefault()}function Ld(te){var ae=(0,b.useRef)(null),oe=Rt(function(Ti){ae.current=Ti},[]),ge=Rt(function(){return ae.current},[]),xe=Cs(ll),Fe=xe.contextId,Re=xe.dragHandleUsageInstructionsId,Ze=xe.registry,yt=Cs(Ls),Tt=yt.type,Mt=yt.droppableId,Dt=wt(function(){return{id:te.draggableId,index:te.index,type:Tt,droppableId:Mt}},[te.draggableId,te.index,Tt,Mt]),Nt=te.children,Jt=te.draggableId,Kn=te.isEnabled,ir=te.shouldRespectForcePress,gr=te.canDragInteractiveElements,Sr=te.isClone,Wr=te.mapped,no=te.dropAnimationFinished;if(Nd(te,Fe,ge),Id(Sr),!Sr){var mo=wt(function(){return{descriptor:Dt,registry:Ze,getDraggableRef:ge,canDragInteractiveElements:gr,shouldRespectForcePress:ir,isEnabled:Kn}},[Dt,Ze,ge,gr,ir,Kn]);Ad(mo)}var li=wt(function(){return Kn?{tabIndex:0,role:"button","aria-describedby":Re,"data-rbd-drag-handle-draggable-id":Jt,"data-rbd-drag-handle-context-id":Fe,draggable:!1,onDragStart:Od}:null},[Fe,Re,Jt,Kn]),ni=Rt(function(Ti){Wr.type==="DRAGGING"&&Wr.dropping&&Ti.propertyName==="transform"&&no()},[no,Wr]),Ni=wt(function(){var Ti=wd(Wr),pl=Wr.type==="DRAGGING"&&Wr.dropping?ni:null,Ll={innerRef:oe,draggableProps:{"data-rbd-draggable-context-id":Fe,"data-rbd-draggable-id":Jt,style:Ti,onTransitionEnd:pl},dragHandleProps:li};return Ll},[Fe,li,Jt,Wr,ni,oe]),vl=wt(function(){return{draggableId:Dt.id,type:Dt.type,source:{index:Dt.index,droppableId:Dt.droppableId}}},[Dt.droppableId,Dt.id,Dt.index,Dt.type]);return Nt(Ni,Wr.snapshot,vl)}var Us=function(te,ae){return te===ae},Qs=function(te){var ae=te.combine,oe=te.destination;return oe?oe.droppableId:ae?ae.droppableId:null},Rd=function(ae){return ae.combine?ae.combine.draggableId:null},Md=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function kd(){var te=Wt(function(xe,Fe){return{x:xe,y:Fe}}),ae=Wt(function(xe,Fe,Re,Ze,yt){return{isDragging:!0,isClone:Fe,isDropAnimating:!!yt,dropAnimation:yt,mode:xe,draggingOver:Re,combineWith:Ze,combineTargetFor:null}}),oe=Wt(function(xe,Fe,Re,Ze,yt,Tt,Mt){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:yt,combineWith:Tt,mode:Fe,offset:xe,dimension:Re,forceShouldAnimate:Mt,snapshot:ae(Fe,Ze,yt,Tt,null)}}}),ge=function(Fe,Re){if(Fe.isDragging){if(Fe.critical.draggable.id!==Re.draggableId)return null;var Ze=Fe.current.client.offset,yt=Fe.dimensions.draggables[Re.draggableId],Tt=Wi(Fe.impact),Mt=Md(Fe.impact),Dt=Fe.forceShouldAnimate;return oe(te(Ze.x,Ze.y),Fe.movementMode,yt,Re.isClone,Tt,Mt,Dt)}if(Fe.phase==="DROP_ANIMATING"){var Nt=Fe.completed;if(Nt.result.draggableId!==Re.draggableId)return null;var Jt=Re.isClone,Kn=Fe.dimensions.draggables[Re.draggableId],ir=Nt.result,gr=ir.mode,Sr=Qs(ir),Wr=Rd(ir),no=Fe.dropDuration,mo={duration:no,curve:fo.drop,moveTo:Fe.newHomeClientOffset,opacity:Wr?Go.opacity.drop:null,scale:Wr?Go.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Fe.newHomeClientOffset,dimension:Kn,dropping:mo,draggingOver:Sr,combineWith:Wr,mode:gr,forceShouldAnimate:null,snapshot:ae(gr,Jt,Sr,Wr,mo)}}}return null};return ge}function Ys(te){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:te,combineWith:null}}var Td={mapped:{type:"SECONDARY",offset:dr,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Ys(null)}};function _d(){var te=Wt(function(Re,Ze){return{x:Re,y:Ze}}),ae=Wt(Ys),oe=Wt(function(Re,Ze,yt){return Ze===void 0&&(Ze=null),{mapped:{type:"SECONDARY",offset:Re,combineTargetFor:Ze,shouldAnimateDisplacement:yt,snapshot:ae(Ze)}}}),ge=function(Ze){return Ze?oe(dr,Ze,!0):null},xe=function(Ze,yt,Tt,Mt){var Dt=Tt.displaced.visible[Ze],Nt=!!(Mt.inVirtualList&&Mt.effected[Ze]),Jt=Lo(Tt),Kn=Jt&&Jt.draggableId===Ze?yt:null;if(!Dt){if(!Nt)return ge(Kn);if(Tt.displaced.invisible[Ze])return null;var ir=ha(Mt.displacedBy.point),gr=te(ir.x,ir.y);return oe(gr,Kn,!0)}if(Nt)return ge(Kn);var Sr=Tt.displacedBy.point,Wr=te(Sr.x,Sr.y);return oe(Wr,Kn,Dt.shouldAnimate)},Fe=function(Ze,yt){if(Ze.isDragging)return Ze.critical.draggable.id===yt.draggableId?null:xe(yt.draggableId,Ze.critical.draggable.id,Ze.impact,Ze.afterCritical);if(Ze.phase==="DROP_ANIMATING"){var Tt=Ze.completed;return Tt.result.draggableId===yt.draggableId?null:xe(yt.draggableId,Tt.result.draggableId,Tt.impact,Tt.afterCritical)}return null};return Fe}var Zd=function(){var ae=kd(),oe=_d(),ge=function(Fe,Re){return ae(Fe,Re)||oe(Fe,Re)||Td};return ge},zd={dropAnimationFinished:wr},Hd=Oe(Zd,zd,null,{context:po,pure:!0,areStatePropsEqual:Us})(Ld);function Js(te){var ae=Cs(Ls),oe=ae.isUsingCloneFor;return oe===te.draggableId&&!te.isClone?null:b.createElement(Hd,te)}function jd(te){var ae=typeof te.isDragDisabled=="boolean"?!te.isDragDisabled:!0,oe=!!te.disableInteractiveElementBlocking,ge=!!te.shouldRespectForcePress;return b.createElement(Js,(0,Ae.Z)({},te,{isClone:!1,isEnabled:ae,canDragInteractiveElements:oe,shouldRespectForcePress:ge}))}function Gd(te){var ae=(0,b.useContext)(ll);ae||Qe(!1);var oe=ae.contextId,ge=ae.isMovementAllowed,xe=(0,b.useRef)(null),Fe=(0,b.useRef)(null),Re=te.children,Ze=te.droppableId,yt=te.type,Tt=te.mode,Mt=te.direction,Dt=te.ignoreContainerClipping,Nt=te.isDropDisabled,Jt=te.isCombineEnabled,Kn=te.snapshot,ir=te.useClone,gr=te.updateViewportMaxScroll,Sr=te.getContainerForClone,Wr=Rt(function(){return xe.current},[]),no=Rt(function(Tl){xe.current=Tl},[]),mo=Rt(function(){return Fe.current},[]),li=Rt(function(Tl){Fe.current=Tl},[]);Pd({props:te,getDroppableRef:Wr,getPlaceholderRef:mo});var ni=Rt(function(){ge()&&gr({maxScroll:ar()})},[ge,gr]);gd({droppableId:Ze,type:yt,mode:Tt,direction:Mt,isDropDisabled:Nt,isCombineEnabled:Jt,ignoreContainerClipping:Dt,getDroppableRef:Wr});var Ni=b.createElement(yd,{on:te.placeholder,shouldAnimate:te.shouldAnimatePlaceholder},function(Tl){var Au=Tl.onClose,yu=Tl.data,uu=Tl.animate;return b.createElement(pd,{placeholder:yu,onClose:Au,innerRef:li,animate:uu,contextId:oe,onTransitionEnd:ni})}),vl=wt(function(){return{innerRef:no,placeholder:Ni,droppableProps:{"data-rbd-droppable-id":Ze,"data-rbd-droppable-context-id":oe}}},[oe,Ze,Ni,no]),Ti=ir?ir.dragging.draggableId:null,pl=wt(function(){return{droppableId:Ze,type:yt,isUsingCloneFor:Ti}},[Ze,Ti,yt]);function Ll(){if(!ir)return null;var Tl=ir.dragging,Au=ir.render,yu=b.createElement(Js,{draggableId:Tl.draggableId,index:Tl.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(uu,Nu){return Au(uu,Nu,Tl)});return cn.createPortal(yu,Sr())}return b.createElement(Ls.Provider,{value:pl},Re(vl,Kn),Ll())}var ks=function(ae,oe){return ae===oe.droppable.type},Xs=function(ae,oe){return oe.draggables[ae.draggable.id]},Wd=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},oe=(0,Ae.Z)({},ae,{shouldAnimatePlaceholder:!1}),ge=Wt(function(Re){return{draggableId:Re.id,type:Re.type,source:{index:Re.index,droppableId:Re.droppableId}}}),xe=Wt(function(Re,Ze,yt,Tt,Mt,Dt){var Nt=Mt.descriptor.id,Jt=Mt.descriptor.droppableId===Re;if(Jt){var Kn=Dt?{render:Dt,dragging:ge(Mt.descriptor)}:null,ir={isDraggingOver:yt,draggingOverWith:yt?Nt:null,draggingFromThisWith:Nt,isUsingPlaceholder:!0};return{placeholder:Mt.placeholder,shouldAnimatePlaceholder:!1,snapshot:ir,useClone:Kn}}if(!Ze)return oe;if(!Tt)return ae;var gr={isDraggingOver:yt,draggingOverWith:Nt,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Mt.placeholder,shouldAnimatePlaceholder:!0,snapshot:gr,useClone:null}}),Fe=function(Ze,yt){var Tt=yt.droppableId,Mt=yt.type,Dt=!yt.isDropDisabled,Nt=yt.renderClone;if(Ze.isDragging){var Jt=Ze.critical;if(!ks(Mt,Jt))return oe;var Kn=Xs(Jt,Ze.dimensions),ir=Wi(Ze.impact)===Tt;return xe(Tt,Dt,ir,ir,Kn,Nt)}if(Ze.phase==="DROP_ANIMATING"){var gr=Ze.completed;if(!ks(Mt,gr.critical))return oe;var Sr=Xs(gr.critical,Ze.dimensions);return xe(Tt,Dt,Qs(gr.result)===Tt,Wi(gr.impact)===Tt,Sr,Nt)}if(Ze.phase==="IDLE"&&Ze.completed&&!Ze.shouldFlush){var Wr=Ze.completed;if(!ks(Mt,Wr.critical))return oe;var no=Wi(Wr.impact)===Tt,mo=!!(Wr.impact.at&&Wr.impact.at.type==="COMBINE"),li=Wr.critical.droppable.id===Tt;return no?mo?ae:oe:li?ae:oe}return oe};return Fe},Kd={updateViewportMaxScroll:Ba};function Vd(){return document.body||Qe(!1),document.body}var $d={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Vd},qs=Oe(Wd,Kd,null,{context:po,pure:!0,areStatePropsEqual:Us})(Gd);qs.defaultProps=$d},38486:function(Qt,Gt){"use strict";var ee;var b=60103,de=60106,Be=60107,Ae=60108,ze=60114,Me=60109,le=60110,st=60112,et=60113,Ve=60120,We=60115,Je=60116,Ye=60121,se=60122,E=60117,a=60129,x=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;b=y("react.element"),de=y("react.portal"),Be=y("react.fragment"),Ae=y("react.strict_mode"),ze=y("react.profiler"),Me=y("react.provider"),le=y("react.context"),st=y("react.forward_ref"),et=y("react.suspense"),Ve=y("react.suspense_list"),We=y("react.memo"),Je=y("react.lazy"),Ye=y("react.block"),se=y("react.server.block"),E=y("react.fundamental"),a=y("react.debug_trace_mode"),x=y("react.legacy_hidden")}function z(Xe){if(typeof Xe=="object"&&Xe!==null){var Ke=Xe.$$typeof;switch(Ke){case b:switch(Xe=Xe.type,Xe){case Be:case ze:case Ae:case et:case Ve:return Xe;default:switch(Xe=Xe&&Xe.$$typeof,Xe){case le:case st:case Je:case We:case Me:return Xe;default:return Ke}}case de:return Ke}}}var ne=Me,re=b,ue=st,ie=Be,ve=Je,be=We,je=de,De=ze,He=Ae,he=et;ee=le,ee=ne,ee=re,ee=ue,ee=ie,ee=ve,ee=be,ee=je,ee=De,ee=He,ee=he,ee=function(){return!1},ee=function(){return!1},Gt.isContextConsumer=function(Xe){return z(Xe)===le},ee=function(Xe){return z(Xe)===Me},ee=function(Xe){return typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===b},ee=function(Xe){return z(Xe)===st},ee=function(Xe){return z(Xe)===Be},ee=function(Xe){return z(Xe)===Je},ee=function(Xe){return z(Xe)===We},ee=function(Xe){return z(Xe)===de},ee=function(Xe){return z(Xe)===ze},ee=function(Xe){return z(Xe)===Ae},ee=function(Xe){return z(Xe)===et},ee=function(Xe){return typeof Xe=="string"||typeof Xe=="function"||Xe===Be||Xe===ze||Xe===a||Xe===Ae||Xe===et||Xe===Ve||Xe===x||typeof Xe=="object"&&Xe!==null&&(Xe.$$typeof===Je||Xe.$$typeof===We||Xe.$$typeof===Me||Xe.$$typeof===le||Xe.$$typeof===st||Xe.$$typeof===E||Xe.$$typeof===Ye||Xe[0]===se)},ee=z},53410:function(Qt,Gt,ee){"use strict";Qt.exports=ee(38486)},32637:function(Qt,Gt,ee){"use strict";Qt.exports=ee.p+"static/AssistantCode3.a8740efb.jpeg"},73631:function(Qt){"use strict";Qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(Qt){"use strict";Qt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/Aq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